ai-psychosis/hooks/scripts
Kjell Tore Guttormsen 7d53a7325e fix(hooks): include required hookEventName in hookSpecificOutput JSON
outputWithContext() emitted a hookSpecificOutput object without the
required hookEventName field, so Claude Code rejected the hook output
("hookSpecificOutput is missing required field hookEventName") and
dropped the context the SessionStart, UserPromptSubmit, and PostToolUse
hooks tried to inject. Thread the event name through the helper; each
caller now passes its own (SessionStart / UserPromptSubmit / PostToolUse).
Existing emission tests now assert hookEventName per event.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VmHCQjJHUyWwxGAVVjNLgp
2026-06-24 06:46:11 +02:00
..
lib.mjs fix(hooks): include required hookEventName in hookSpecificOutput JSON 2026-06-24 06:46:11 +02:00
prompt-analyzer.mjs fix(hooks): include required hookEventName in hookSpecificOutput JSON 2026-06-24 06:46:11 +02:00
report-reader.mjs feat(ai-psychosis): report-reader v1.2 schema + aggregations 2026-05-01 21:47:53 +02:00
session-end.mjs feat(ai-psychosis): tier-2 user-info isolation alert (cross-session) 2026-05-01 21:40:24 +02:00
session-start.mjs fix(hooks): include required hookEventName in hookSpecificOutput JSON 2026-06-24 06:46:11 +02:00
tool-tracker.mjs fix(hooks): include required hookEventName in hookSpecificOutput JSON 2026-06-24 06:46:11 +02:00