feat/error-wiki-templates #4

Merged
admin merged 3 commits from develop into master 2026-08-21 16:56:00 +00:00
Member

摘要

  • 需求描述:新增 hook 異常頁與異常目錄範本。
  • 計畫名稱:無
  • 計畫頁:無
  • 分析頁:無

變更內容

檔案 為什麼改
README、templates 補上 ERROR_CONTENTS 與 ERROR_{HASH} 範本說明

設計重點

  • hook 失敗記錄使用 ERROR_CONTENTS 與 ERROR_{HASH},交由 wiki 流程寫入。

測試結果

  • git diff --check 通過;STE100 lint 通過;manifest 版本已確認為 master + 1。

前置 Push Request

  • 無
## 摘要 - 需求描述:新增 hook 異常頁與異常目錄範本。 - 計畫名稱:無 - 計畫頁:無 - 分析頁:無 ## 變更內容 | 檔案 | 為什麼改 | | --- | --- | | README、templates | 補上 ERROR_CONTENTS 與 ERROR_{HASH} 範本說明 | ## 設計重點 - hook 失敗記錄使用 ERROR_CONTENTS 與 ERROR_{HASH},交由 wiki 流程寫入。 ## 測試結果 - git diff --check 通過;STE100 lint 通過;manifest 版本已確認為 master + 1。 ## 前置 Push Request - 無
jiantw83 added 3 commits 2026-08-21 16:54:19 +00:00
What(改了什麼):
刪除 .claude-plugin/plugin.json 中的 "hooks": "./hooks/hooks.json" 欄位,
並將 plugin.json、.claude-plugin/plugin.json、.codex-plugin/plugin.json
三份 manifest 的版本號從 0.0.1 升到 0.0.2。

Why(為什麼改):
claude plugin list 回報 jsc-hooks 載入失敗(Hook load failed:
Duplicate hooks file detected)。Claude Code 會自動載入標準路徑
hooks/hooks.json,manifest 再宣告同一份檔案就造成重複載入,
manifest.hooks 只該用來宣告額外的 hook 檔。

How(怎麼改):
移除多餘的 manifest.hooks 欄位,讓 hooks/hooks.json 只透過標準
自動載入機制載入一次;同步升版三份 manifest 以觸發各 CLI 的
plugin update,並以 python3 -m json.tool 驗證三份 JSON 格式正確。

Who(影響哪個功能/使用者):
影響 jsc-hooks 外掛的所有使用者。修正後外掛可在 claude CLI 正常
載入,STE100 語言強制、工時計時、技能用量記錄等 hooks 恢復生效。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Reviewed-on: #3
Reviewed-by: 系統管理員 <1+admin@noreply.localhost>
admin approved these changes 2026-08-21 16:55:57 +00:00
admin merged commit 4ef89fdda8 into master 2026-08-21 16:56:00 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: plugins/hooks#4