fix(wiki 連結): 方向修正與跨存取庫改用絕對網址(升版 0.0.6) #9

Merged
admin merged 2 commits from fix/wiki-link-direction-and-scope into develop 2026-08-24 11:00:30 +00:00
5 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "jsc-log", "name": "jsc-log",
"version": "0.0.5", "version": "0.0.6",
"description": "工作日誌(LOG_{HASH} wiki 頁)、技能使用統計與教訓紀錄(LEARN_{HASH} wiki 頁)", "description": "工作日誌(LOG_{HASH} wiki 頁)、技能使用統計與教訓紀錄(LEARN_{HASH} wiki 頁)",
"skills": "./skills", "skills": "./skills",
"author": { "author": {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "jsc-log", "name": "jsc-log",
"version": "0.0.5", "version": "0.0.6",
"description": "工作日誌(LOG_{HASH} wiki 頁)、技能使用統計與教訓紀錄(LEARN_{HASH} wiki 頁)", "description": "工作日誌(LOG_{HASH} wiki 頁)、技能使用統計與教訓紀錄(LEARN_{HASH} wiki 頁)",
"skills": "./skills" "skills": "./skills"
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "jsc-log", "name": "jsc-log",
"version": "0.0.5", "version": "0.0.6",
"description": "工作日誌(LOG_{HASH} wiki 頁)、技能使用統計與教訓紀錄(LEARN_{HASH} wiki 頁)", "description": "工作日誌(LOG_{HASH} wiki 頁)、技能使用統計與教訓紀錄(LEARN_{HASH} wiki 頁)",
"skills": "./skills/" "skills": "./skills/"
} }
+2 -2
View File
@@ -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` | | 1 | Repository name | Parse `{owner}/{repo}` from `git remote get-url origin` |
| 2 | Branch name | `git branch --show-current` | | 2 | Branch name | `git branch --show-current` |
| 3 | Plan name | Link to the plan page `[[PLAN_{HASH}]]` | | 3 | Plan name | Absolute link to the plan page: `[PLAN_{HASH}](<url>)`, where `<url>` 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 | Link to the work package heading on the analyze page `[[ANALYZE_{HASH}#WP-xx]]` | | 4 | Work package id | Absolute link to the work package heading: `[WP-xx](<url>#wp-xx)`, `<url>` 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) | | 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 | | 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) | | 7 | Task status | One of the literal values 「完成」、「部分完成」、「阻塞」 (with reason when blocked) |
+3 -2
View File
@@ -2,6 +2,7 @@
> 由 `jsc-log:worklog` 維護。每完成一項工作附加一個條目在文末。 > 由 `jsc-log:worklog` 維護。每完成一項工作附加一個條目在文末。
> `HASH` 依共享規則計算;頁名不再寫入年月週數,但頁內仍依本工作週的週五整理內容。 > `HASH` 依共享規則計算;頁名不再寫入年月週數,但頁內仍依本工作週的週五整理內容。
> {PLAN 頁絕對網址}、{ANALYZE 頁絕對網址} 由 `jsc-gitea/tools/gitea.sh wiki-url` 取得——LOG 與 PLAN/ANALYZE 可能分屬不同存取庫,`[[頁名]]` 跨庫不通。
--- ---
@@ -11,8 +12,8 @@
| --- | --- | | --- | --- |
| 存取庫名稱 | {owner}/{repo} | | 存取庫名稱 | {owner}/{repo} |
| 分支名稱 | {branch} | | 分支名稱 | {branch} |
| 計畫名稱 | [[PLAN_{HASH}|{計畫名稱}]] | | 計畫名稱 | [{計畫名稱}]({PLAN 頁絕對網址}) |
| 工作包編號 | [[ANALYZE_{HASH}#wp-{編號}|WP-{編號} {工作包標題}]] | | 工作包編號 | [WP-{編號} {工作包標題}]({ANALYZE 頁絕對網址}#wp-{編號}) |
| 花費時間 | {h} 小時 {m} 分(session-timer report) | | 花費時間 | {h} 小時 {m} 分(session-timer report) |
| token 用量 | {CLI}: {input}/{output}(不可得填 N/A) | | token 用量 | {CLI}: {input}/{output}(不可得填 N/A) |
| 任務狀態 | 完成、部分完成、阻塞({原因})三選一 | | 任務狀態 | 完成、部分完成、阻塞({原因})三選一 |