fix(#2089): register 4 new cursor hook scripts in build + managed-hooks whitelists
This commit is contained in:
@@ -21,7 +21,11 @@ const MANAGED_HOOKS = [
|
|||||||
'gsd-config-reload.js',
|
'gsd-config-reload.js',
|
||||||
'gsd-context-monitor.js',
|
'gsd-context-monitor.js',
|
||||||
'gsd-cursor-post-tool.js',
|
'gsd-cursor-post-tool.js',
|
||||||
|
'gsd-cursor-pre-tool.js',
|
||||||
'gsd-cursor-session-start.js',
|
'gsd-cursor-session-start.js',
|
||||||
|
'gsd-cursor-stop.js',
|
||||||
|
'gsd-cursor-subagent-start.js',
|
||||||
|
'gsd-cursor-subagent-stop.js',
|
||||||
'gsd-ensure-canonical-path.js',
|
'gsd-ensure-canonical-path.js',
|
||||||
'gsd-graphify-update.sh',
|
'gsd-graphify-update.sh',
|
||||||
'gsd-phase-boundary.sh',
|
'gsd-phase-boundary.sh',
|
||||||
|
|||||||
@@ -37,9 +37,13 @@ const HOOKS_TO_COPY = [
|
|||||||
// so require('./managed-hooks-registry.cjs') resolves in the installed hooks/ dir.
|
// so require('./managed-hooks-registry.cjs') resolves in the installed hooks/ dir.
|
||||||
'managed-hooks-registry.cjs',
|
'managed-hooks-registry.cjs',
|
||||||
'gsd-context-monitor.js',
|
'gsd-context-monitor.js',
|
||||||
// Cursor lifecycle hooks (issue #777): sessionStart context injection + postToolUse monitor
|
// Cursor lifecycle hooks (#777 + ADR-1239/#2089): 6 managed events
|
||||||
'gsd-cursor-session-start.js',
|
'gsd-cursor-session-start.js',
|
||||||
'gsd-cursor-post-tool.js',
|
'gsd-cursor-post-tool.js',
|
||||||
|
'gsd-cursor-pre-tool.js',
|
||||||
|
'gsd-cursor-stop.js',
|
||||||
|
'gsd-cursor-subagent-start.js',
|
||||||
|
'gsd-cursor-subagent-stop.js',
|
||||||
// Claude Code FileChanged hook (#770) — hot-reloads gsd config when
|
// Claude Code FileChanged hook (#770) — hot-reloads gsd config when
|
||||||
// .planning/config.json changes mid-session. Must ship to dist so the
|
// .planning/config.json changes mid-session. Must ship to dist so the
|
||||||
// installer can copy it to the target hooks/ dir and register FileChanged.
|
// installer can copy it to the target hooks/ dir and register FileChanged.
|
||||||
|
|||||||
@@ -32,7 +32,11 @@ export const BUNDLED_GSD_HOOK_FILES: ReadonlySet<string> = Object.freeze(new Set
|
|||||||
'hooks/gsd-config-reload.js',
|
'hooks/gsd-config-reload.js',
|
||||||
'hooks/gsd-context-monitor.js',
|
'hooks/gsd-context-monitor.js',
|
||||||
'hooks/gsd-cursor-post-tool.js',
|
'hooks/gsd-cursor-post-tool.js',
|
||||||
|
'hooks/gsd-cursor-pre-tool.js',
|
||||||
'hooks/gsd-cursor-session-start.js',
|
'hooks/gsd-cursor-session-start.js',
|
||||||
|
'hooks/gsd-cursor-stop.js',
|
||||||
|
'hooks/gsd-cursor-subagent-start.js',
|
||||||
|
'hooks/gsd-cursor-subagent-stop.js',
|
||||||
'hooks/gsd-ensure-canonical-path.js',
|
'hooks/gsd-ensure-canonical-path.js',
|
||||||
'hooks/gsd-graphify-update.sh',
|
'hooks/gsd-graphify-update.sh',
|
||||||
'hooks/gsd-phase-boundary.sh',
|
'hooks/gsd-phase-boundary.sh',
|
||||||
|
|||||||
Reference in New Issue
Block a user