feat(graceful-handoff): 2.0 — register hooks and statusLine in hooks.json [skip-docs]
Step 7 of v2.0 plan. Registers SessionStart, Stop, and statusLine hooks. Note: statusLine top-level placement in hooks.json is an open assumption (brief Assumption 1) — verified to be valid JSON syntax; live smoke-test required to confirm Claude Code loads it from this location vs requiring settings.json placement.
This commit is contained in:
parent
4076bf904a
commit
a67411ae26
1 changed files with 31 additions and 0 deletions
31
plugins/graceful-handoff/hooks/hooks.json
Normal file
31
plugins/graceful-handoff/hooks/hooks.json
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"hooks": {
|
||||
"SessionStart": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-start-load-handoff.mjs",
|
||||
"timeout": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Stop": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/stop-context-monitor.mjs",
|
||||
"timeout": 30
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"statusLine": {
|
||||
"type": "command",
|
||||
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/statusline-monitor.mjs",
|
||||
"padding": 0
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue