feat(1.18.0): 公開 mirror 落後偵測(手動同步的靜默失敗,只有外部用戶會撞到)

Gitea(草稿)↔ GitHub(正稿)是手動同步,改了零件沒發佈=用戶抓到舊版
且無任何錯誤訊息,只是行為不對——我們自己永遠測不到。

SessionStart hook 比對工作區 HEAD 與 .github-public 最後 release snapshot,
落後就出聲,含發佈指令;若該批改動含 .wasm 額外標紅(安裝器懶載直接抓那個)。
只提醒不阻擋(發佈需 leo 親跑 arm)。

實測 Arcrun:落後 25 個 commit 且含 wasm 變更。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-21 13:51:10 +08:00
parent 27c207c3e9
commit dc4fe67e15
5 changed files with 93 additions and 2 deletions
+9
View File
@@ -9,6 +9,15 @@
"command": ".claude/hooks/session-start-recall.sh"
}
]
},
{
"matcher": "startup|resume|clear",
"hooks": [
{
"type": "command",
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/publish-lag-check.sh"
}
]
}
],
"PreToolUse": [