From a67411ae26e473adc7ecfc74abc90ea349a98c71 Mon Sep 17 00:00:00 2001 From: Kjell Tore Guttormsen Date: Fri, 1 May 2026 05:58:49 +0200 Subject: [PATCH] =?UTF-8?q?feat(graceful-handoff):=202.0=20=E2=80=94=20reg?= =?UTF-8?q?ister=20hooks=20and=20statusLine=20in=20hooks.json=20[skip-docs?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- plugins/graceful-handoff/hooks/hooks.json | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 plugins/graceful-handoff/hooks/hooks.json diff --git a/plugins/graceful-handoff/hooks/hooks.json b/plugins/graceful-handoff/hooks/hooks.json new file mode 100644 index 0000000..a89fe5c --- /dev/null +++ b/plugins/graceful-handoff/hooks/hooks.json @@ -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 + } +}