Ver Fonte

Fix SessionStart hook: add hookEventName field

The hookSpecificOutput requires hookEventName to be set.
Jesse Vincent há 11 meses atrás
pai
commit
2d20c951d7
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      hooks/hooks.json

+ 1 - 0
hooks/hooks.json

@@ -12,6 +12,7 @@
         {
           "type": "json",
           "hookSpecificOutput": {
+            "hookEventName": "SessionStart",
             "additionalContext": "<EXTREMELY_IMPORTANT>\nYou have superpowers.\n\nBefore ANY task, search for relevant skills:\n\n${CLAUDE_PLUGIN_ROOT}/skills/getting-started/skills-search PATTERN\n\n**Skills are mandatory when they exist, not optional.**\n\nFailed searches are logged to: ~/.superpowers/search-log.jsonl\n\n**Skills location**: ${CLAUDE_PLUGIN_ROOT}/skills/\n\nCategories:\n- testing/ - TDD, async testing, anti-patterns\n- debugging/ - Systematic debugging, root cause tracing, verification\n- collaboration/ - Brainstorming, planning, code review, parallel agents\n- meta/ - Creating, testing, and contributing skills\n\n**Critical**: Skills exist and you didn't use them = failed task.\n\n**RIGHT NOW, go read**: ${CLAUDE_PLUGIN_ROOT}/skills/getting-started/SKILL.md\n</EXTREMELY_IMPORTANT>"
           }
         }