@geravant/sinain 1.23.4 → 1.23.5
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/package.json
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"allowedTools": "mcp__sinain ToolSearch",
|
|
57
57
|
"escAllowedTools": "${allowedTools} Bash(git:*) Edit Write Read Glob Grep LS",
|
|
58
58
|
"spawnAllowedTools": "${allowedTools} Bash(git:*) Edit Write Read Glob Grep LS",
|
|
59
|
-
"autoApproveTools": "Read Glob Grep Ls Cat mcp__sinain* ToolSearch",
|
|
59
|
+
"autoApproveTools": "Read Glob Grep Ls Cat Edit Write MultiEdit NotebookEdit WebFetch WebSearch TaskCreate TaskUpdate TaskGet TaskList TaskOutput TaskStop LSP Skill Monitor BashOutput KillBash mcp__sinain* ToolSearch",
|
|
60
60
|
|
|
61
61
|
"analyzer": {
|
|
62
62
|
"debounceMs": 6000,
|
|
@@ -291,7 +291,15 @@ export function loadConfig(): CoreConfig {
|
|
|
291
291
|
const autoApproveRaw = fromCfgStr(
|
|
292
292
|
agentsCfg?.autoApproveTools,
|
|
293
293
|
"SINAIN_AUTO_APPROVE_TOOLS",
|
|
294
|
-
|
|
294
|
+
// Default auto-approve covers the Claude Code core tools the escalation
|
|
295
|
+
// flow realistically uses without prompting. Bash is intentionally NOT
|
|
296
|
+
// included — users wanting scoped shell commands without prompts should
|
|
297
|
+
// add patterns like "Bash(git:*) Bash(npm:*)" to agents.json.
|
|
298
|
+
"Read Glob Grep Ls Cat Edit Write MultiEdit NotebookEdit " +
|
|
299
|
+
"WebFetch WebSearch " +
|
|
300
|
+
"TaskCreate TaskUpdate TaskGet TaskList TaskOutput TaskStop " +
|
|
301
|
+
"LSP Skill Monitor BashOutput KillBash " +
|
|
302
|
+
"mcp__sinain* ToolSearch",
|
|
295
303
|
);
|
|
296
304
|
const permissionsConfig = {
|
|
297
305
|
autoApproveTools: autoApproveRaw.split(/\s+/).filter((t) => t.length > 0),
|