feat(hooks): 自動接手失敗接線與修復流程

This commit is contained in:
2026-08-25 16:33:38 +08:00
parent 8fc1f18c31
commit c68292acbc
7 changed files with 30 additions and 8 deletions
+2 -1
View File
@@ -18,6 +18,7 @@
# codex、copilot、antigravity、kiro 只有別名或規則檔,接不上 PreToolUse 與
# UserPromptSubmit,版本前置檢查與 SDLC 模型鎖
# 都沒接上,一律回報 degraded 並在 reason 講明
# 所有 jsc 標記段落都採整段重寫,重跑等同先移除舊內容再重裝
#
# 寫入後自我驗證,通過才回報成功:每個寫過的檔案重新讀一次,確認標記段落存在且落在
# 正確位置(codex 的 notify 必須是根層鍵,不能被歸進前一張表;kiro 的 JSON 必須成對
@@ -176,7 +177,7 @@ skip() { # $1=reason
fail() { # $1=reason
printf 'status=failed reason=%s\n' "$1"
echo "[jsc] 接線沒生效:$1" >&2
echo "[jsc] 請以 tools/report-error.sh 回報這次失敗,再修好原因重跑本腳本。" >&2
echo "[jsc] 請先以 tools/report-error.sh 回報這次失敗,再交給 /jsc-hooks:repair 自動修正並開 develop PR。" >&2
exit 4
}