claude-warden 1.5.3 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/dist/index.cjs +23 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-warden",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Smart command safety filter for Claude Code — parses shell pipelines and evaluates per-command safety rules to auto-approve safe commands and block dangerous ones",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "banyudu"
|
package/dist/index.cjs
CHANGED
|
@@ -19270,6 +19270,7 @@ var DEFAULT_CONFIG = {
|
|
|
19270
19270
|
"sudo",
|
|
19271
19271
|
"su",
|
|
19272
19272
|
"doas",
|
|
19273
|
+
"eval",
|
|
19273
19274
|
"mkfs",
|
|
19274
19275
|
"fdisk",
|
|
19275
19276
|
"dd",
|
|
@@ -19301,6 +19302,28 @@ var DEFAULT_CONFIG = {
|
|
|
19301
19302
|
{ match: { anyArgMatches: ["^--(version|help)$", "^-[vh]$"] }, decision: "allow", description: "Version/help flags" }
|
|
19302
19303
|
]
|
|
19303
19304
|
},
|
|
19305
|
+
// --- Shell sourcing ---
|
|
19306
|
+
...["source", "."].map((cmd) => ({
|
|
19307
|
+
command: cmd,
|
|
19308
|
+
default: "ask",
|
|
19309
|
+
argPatterns: [
|
|
19310
|
+
{
|
|
19311
|
+
match: { anyArgMatches: [
|
|
19312
|
+
"(\\.bashrc|\\.zshrc|\\.profile|\\.bash_profile|\\.zprofile|\\.shrc)$",
|
|
19313
|
+
"nvm\\.sh$",
|
|
19314
|
+
"\\.envrc$",
|
|
19315
|
+
"\\.env$"
|
|
19316
|
+
] },
|
|
19317
|
+
decision: "allow",
|
|
19318
|
+
description: "Common shell config and env files"
|
|
19319
|
+
},
|
|
19320
|
+
{
|
|
19321
|
+
match: { noArgs: true },
|
|
19322
|
+
decision: "deny",
|
|
19323
|
+
reason: "source/. requires a file argument"
|
|
19324
|
+
}
|
|
19325
|
+
]
|
|
19326
|
+
})),
|
|
19304
19327
|
// --- Shell interpreters ---
|
|
19305
19328
|
...["bash", "sh", "zsh"].map((cmd) => ({
|
|
19306
19329
|
command: cmd,
|