chore(hooks): 新增 jsc-hooks 整合腳本(session timer、STE100 guard、skill usage logger)

This commit is contained in:
2026-08-24 13:48:45 +08:00
parent 127a59dafd
commit 8cd371d985
4 changed files with 43 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
{
"_comment": "kiro-cli has no verified native hook system (no 'hooks' field in kiro-cli agent config; no hook subcommand). This file documents the INTENDED wiring for when kiro-cli gains hook support, and doubles as a manual reference for the wrapper scripts in this directory. JSC_CLI=kiro is exported by each wrapper.",
"hooks": {
"SessionStart": [
{ "hooks": [ { "type": "command", "command": "sh \"$PWD/.kiro/hooks/session-timer.sh\" start" } ] }
],
"UserPromptSubmit": [
{ "hooks": [ { "type": "command", "command": "sh \"$PWD/.kiro/hooks/ste100-guard.sh\"" } ] }
],
"Stop": [
{ "hooks": [ { "type": "command", "command": "sh \"$PWD/.kiro/hooks/session-timer.sh\" mark" } ] }
],
"SessionEnd": [
{ "hooks": [ { "type": "command", "command": "sh \"$PWD/.kiro/hooks/session-timer.sh\" mark" } ] }
],
"PostToolUse": [
{ "matcher": "Skill", "hooks": [ { "type": "command", "command": "sh \"$PWD/.kiro/hooks/skill-usage.sh\"" } ] }
]
}
}