mirror of
https://github.com/OthmanAdi/planning-with-files.git
synced 2026-09-14 16:09:40 +08:00
102 lines
2.2 KiB
JSON
102 lines
2.2 KiB
JSON
{
|
|
"description": "Planning with Files lifecycle integration for Claude Code",
|
|
"hooks": {
|
|
"SessionStart": [
|
|
{
|
|
"matcher": "startup|resume|clear|compact",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "sh",
|
|
"args": [
|
|
"${CLAUDE_PLUGIN_ROOT}/hooks/claude-hook.sh",
|
|
"session-start"
|
|
],
|
|
"timeout": 10,
|
|
"statusMessage": "Restoring planning context"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"UserPromptSubmit": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "sh",
|
|
"args": [
|
|
"${CLAUDE_PLUGIN_ROOT}/hooks/claude-hook.sh",
|
|
"user-prompt-submit"
|
|
],
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "Write|Edit|Bash|Read|Glob|Grep",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "sh",
|
|
"args": [
|
|
"${CLAUDE_PLUGIN_ROOT}/hooks/claude-hook.sh",
|
|
"pre-tool-use"
|
|
],
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Write|Edit|Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "sh",
|
|
"args": [
|
|
"${CLAUDE_PLUGIN_ROOT}/hooks/claude-hook.sh",
|
|
"post-tool-use"
|
|
],
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PreCompact": [
|
|
{
|
|
"matcher": "*",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "sh",
|
|
"args": [
|
|
"${CLAUDE_PLUGIN_ROOT}/hooks/claude-hook.sh",
|
|
"pre-compact"
|
|
],
|
|
"timeout": 10
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Stop": [
|
|
{
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "sh",
|
|
"args": [
|
|
"${CLAUDE_PLUGIN_ROOT}/hooks/claude-hook.sh",
|
|
"stop"
|
|
],
|
|
"timeout": 10,
|
|
"statusMessage": "Checking planning completion"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|