diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index ffda172..3536cff 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "jsc-log", - "version": "0.0.5", + "version": "0.0.6", "description": "工作日誌(LOG_{HASH} wiki 頁)、技能使用統計與教訓紀錄(LEARN_{HASH} wiki 頁)", "skills": "./skills", "author": { diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index d274dc8..dfde5e2 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "jsc-log", - "version": "0.0.5", + "version": "0.0.6", "description": "工作日誌(LOG_{HASH} wiki 頁)、技能使用統計與教訓紀錄(LEARN_{HASH} wiki 頁)", "skills": "./skills" } diff --git a/plugin.json b/plugin.json index be7415d..9389bb4 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "name": "jsc-log", - "version": "0.0.5", + "version": "0.0.6", "description": "工作日誌(LOG_{HASH} wiki 頁)、技能使用統計與教訓紀錄(LEARN_{HASH} wiki 頁)", "skills": "./skills/" } diff --git a/skills/worklog/SKILL.md b/skills/worklog/SKILL.md index b08c2c7..2b7a90c 100644 --- a/skills/worklog/SKILL.md +++ b/skills/worklog/SKILL.md @@ -13,8 +13,8 @@ After work completes, collect the ten items below and append a `templates/log-en | --- | --- | --- | | 1 | Repository name | Parse `{owner}/{repo}` from `git remote get-url origin` | | 2 | Branch name | `git branch --show-current` | -| 3 | Plan name | Link to the plan page `[[PLAN_{HASH}]]` | -| 4 | Work package id | Link to the work package heading on the analyze page `[[ANALYZE_{HASH}#WP-xx]]` | +| 3 | Plan name | Absolute link to the plan page: `[PLAN_{HASH}]()`, where `` comes from `jsc-gitea/tools/gitea.sh wiki-url {owner}/{repo} PLAN_{HASH}` — PLAN and LOG may live in different wiki repos, and `[[...]]` only resolves inside one wiki | +| 4 | Work package id | Absolute link to the work package heading: `[WP-xx](#wp-xx)`, `` from `gitea.sh wiki-url {owner}/{repo} ANALYZE_{HASH}` | | 5 | Elapsed time | `jsc-hooks/hooks/session-timer.sh report {session_id}` (seconds; convert to h/m) | | 6 | Token usage | See the table below; per-CLI methods differ. Fill `N/A` when unavailable | | 7 | Task status | One of the literal values 「完成」、「部分完成」、「阻塞」 (with reason when blocked) | diff --git a/templates/log-entry.md b/templates/log-entry.md index 27c6969..8aa2954 100644 --- a/templates/log-entry.md +++ b/templates/log-entry.md @@ -2,6 +2,7 @@ > 由 `jsc-log:worklog` 維護。每完成一項工作附加一個條目在文末。 > `HASH` 依共享規則計算;頁名不再寫入年月週數,但頁內仍依本工作週的週五整理內容。 +> {PLAN 頁絕對網址}、{ANALYZE 頁絕對網址} 由 `jsc-gitea/tools/gitea.sh wiki-url` 取得——LOG 與 PLAN/ANALYZE 可能分屬不同存取庫,`[[頁名]]` 跨庫不通。 --- @@ -11,8 +12,8 @@ | --- | --- | | 存取庫名稱 | {owner}/{repo} | | 分支名稱 | {branch} | -| 計畫名稱 | [[PLAN_{HASH}|{計畫名稱}]] | -| 工作包編號 | [[ANALYZE_{HASH}#wp-{編號}|WP-{編號} {工作包標題}]] | +| 計畫名稱 | [{計畫名稱}]({PLAN 頁絕對網址}) | +| 工作包編號 | [WP-{編號} {工作包標題}]({ANALYZE 頁絕對網址}#wp-{編號}) | | 花費時間 | {h} 小時 {m} 分(session-timer report) | | token 用量 | {CLI}: {input}/{output}(不可得填 N/A) | | 任務狀態 | 完成、部分完成、阻塞({原因})三選一 |