Skip to content

Commit ab994e0

Browse files
committed
Tighten shell deny list and bump dev deps
Add numerous destructive commands to .claude/settings.json deny list (e.g. rm -rf variants, git force/reset/clean/rebase, gh repo delete/archive, npm unpublish/deprecate, dd, mkfs) to prevent accidental destructive operations. Update package.json and regenerate package-lock.json to bump development dependencies and related subpackages (notably @types/node, TypeScript/@typescript-eslint packages, vitest and related test utils, and rollup platform packages); lockfile refreshed to record those version updates.
1 parent e2437c3 commit ab994e0

3 files changed

Lines changed: 252 additions & 238 deletions

File tree

.claude/settings.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,28 @@
22
"permissions": {
33
"allow": ["Bash(*)"],
44
"deny": [
5+
"Bash(rm -rf*)",
6+
"Bash(rm -fr*)",
57
"Bash(git commit*)",
6-
"Bash(git push*)",
7-
"Bash(git tag*)",
8-
"Bash(git merge*)",
9-
"Bash(git reset*)",
10-
"Bash(git checkout*)",
11-
"Bash(git clean*)",
12-
"Bash(rm -rf*)"
8+
"Bash(gh repo delete*)",
9+
"Bash(gh repo archive*)",
10+
"Bash(git push --force*)",
11+
"Bash(git push -f*)",
12+
"Bash(git reset --hard*)",
13+
"Bash(git clean -f*)",
14+
"Bash(git clean -d*)",
15+
"Bash(git clean -x*)",
16+
"Bash(git branch -D*)",
17+
"Bash(git branch -d*)",
18+
"Bash(git tag -d*)",
19+
"Bash(git filter-branch*)",
20+
"Bash(git filter-repo*)",
21+
"Bash(git gc --prune*)",
22+
"Bash(git rebase*)",
23+
"Bash(npm unpublish*)",
24+
"Bash(npm deprecate*)",
25+
"Bash(dd *)",
26+
"Bash(mkfs*)"
1327
]
1428
}
1529
}

0 commit comments

Comments
 (0)