- P1: Banner v1.3→v1.5, Hooks 29→34 - P1: 卸载脚本补删 更新Bookworm.lnk - P1: git stash pop 安全检查 - P2: Playwright 检测改用 npm list - P2: 代理端口扫描 500ms async 超时 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
164 lines
3.6 KiB
JSON
164 lines
3.6 KiB
JSON
{
|
|
"env": {
|
|
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
|
|
"HOME": "{{HOME}}",
|
|
"SUPABASE_ACCESS_TOKEN": "${SUPABASE_ACCESS_TOKEN}"
|
|
},
|
|
"permissions": {
|
|
"allow": [
|
|
"Read",
|
|
"Glob",
|
|
"Grep",
|
|
"WebSearch",
|
|
"WebFetch",
|
|
"Skill",
|
|
"Task",
|
|
"TaskCreate",
|
|
"TaskUpdate",
|
|
"TaskList",
|
|
"TaskGet",
|
|
"AskUserQuestion"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"UserPromptSubmit": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/prompt-dispatcher.js",
|
|
"timeout": 3000
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/clipboard-image-hook.js",
|
|
"timeout": 5000
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/bash-precheck-dispatcher.js",
|
|
"timeout": 5000
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Skill",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/route-compliance-gate.js",
|
|
"timeout": 2000
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "mcp__",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/mcp-safety-gate.js",
|
|
"timeout": 3000
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit|Write|NotebookEdit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/post-edit-dispatcher.js",
|
|
"timeout": 8000
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Skill|Agent",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/memory-persistence-trigger.js",
|
|
"timeout": 2000
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Edit|Write|Skill|Agent|Bash|mcp__.*",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/activity-logger.js",
|
|
"timeout": 2000
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Edit|Write|Skill|Agent|Bash|mcp__.*",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/session-heartbeat.js",
|
|
"timeout": 2000
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/build-outcome-tracker.js",
|
|
"timeout": 3000
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Edit|Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/constitution-delivery-reminder.js",
|
|
"timeout": 3000
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"SubagentStart": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/subagent-route-injector.js",
|
|
"timeout": 2000
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "node {{CLAUDE_ROOT}}/hooks/stop-dispatcher.js 2>>{{CLAUDE_ROOT}}/debug/hook-errors.log || true",
|
|
"timeout": 5000
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"effortLevel": "high",
|
|
"skipDangerousModePermissionPrompt": false
|
|
}
|