fix(worklog): 修正 auto 模式的 CLI 判斷 #41

Merged
admin merged 3 commits from develop into master 2026-07-28 08:14:33 +00:00
3 Commits
Author SHA1 Message Date
JefferyandClaude Opus 5 a1e68dafaf chore(plugin 版本): 三家 manifest 升版 0.2.6
hooks/hooks.json 有變更,需升版才會重建版本化快取目錄並被載入。

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 14:21:24 +08:00
JefferyandClaude Opus 5 7b04cc6be6 feat(hooks): hooks.json 統一為合併超集並改用跨 cache 解析器
同名 plugin(三個 repo 都叫 jsc)只有一份 hooks.json 會生效,無法預期哪一
份會贏,因此三家必須同步為同一份超集。本次補上 role 的 SessionStart 與
Stop hook,避免 doc 贏得註冊時角色載入與記憶記錄靜默消失。

worklog 的 Stop 指令同步改用新解析器:先驗證 CLAUDE_PLUGIN_ROOT 下腳本存
在,再依「擁有者 marketplace 優先 → 全 cache 後援」搜尋 ~/.claude 與
~/.codex 快取。舊版在 CLAUDE_PLUGIN_ROOT 為空時只搜 ~/.codex,非 Claude
Code 的 CLI 會找不到腳本。

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 14:21:24 +08:00
Jeffery 2a24910790 fix(worklog): 修正 auto 模式的 CLI 判斷 2026-07-27 17:30:50 +08:00