chore(plugin 版本): 升版 0.0.6 —— 同版無法觸發更新 #20

Merged
admin merged 1 commits from develop into master 2026-07-29 04:33:11 +00:00
Member

問題

PR #19SLEEP_BATCH 修正沿用了 0.0.5(與當時的 master 同版),合併後:

master 的 SLEEP_BATCH:12   ← 修正已在 master
已安裝的 SLEEP_BATCH:60    ← 但裝不上去

$ claude plugin update jsc-generic@generic
✔ jsc-generic is already at the latest version (0.0.5).

版號沒遞增,更新機制就偵測不到內容變更,修正永遠裝不上去。這正是 spec-plugin-version「新版本必須大於 master 現行版本」那條規則要防的情況。

判斷錯在哪

當初「同一 PR 不再累加」的判斷本身是對的,但 PR #19 是新的一批變更,基準應取「合併後的 master」而非沿用前一個 PR 的版號。

規則釐清(同一句話的兩種情境,容易混淆):

情境 做法
同一個未合併 PR 內追加 commit 不再 bump,沿用該 PR 已定的版號
前一個 PR 已合併後的新變更 以合併後的 master 為基準 +1

改動

三份 manifest 版號 0.0.50.0.6,讓 SLEEP_BATCH = 12 的修正能實際安裝。

🤖 Generated with Claude Code

## 問題 PR #19 的 `SLEEP_BATCH` 修正沿用了 `0.0.5`(與當時的 master 同版),合併後: ``` master 的 SLEEP_BATCH:12 ← 修正已在 master 已安裝的 SLEEP_BATCH:60 ← 但裝不上去 $ claude plugin update jsc-generic@generic ✔ jsc-generic is already at the latest version (0.0.5). ``` **版號沒遞增,更新機制就偵測不到內容變更**,修正永遠裝不上去。這正是 `spec-plugin-version`「新版本必須大於 master 現行版本」那條規則要防的情況。 ## 判斷錯在哪 當初「同一 PR 不再累加」的判斷本身是對的,但 **PR #19 是新的一批變更**,基準應取「合併後的 master」而非沿用前一個 PR 的版號。 規則釐清(同一句話的兩種情境,容易混淆): | 情境 | 做法 | | --- | --- | | 同一個**未合併** PR 內追加 commit | 不再 bump,沿用該 PR 已定的版號 | | 前一個 PR **已合併**後的新變更 | 以合併後的 master 為基準 +1 | ## 改動 三份 manifest 版號 `0.0.5` → `0.0.6`,讓 `SLEEP_BATCH = 12` 的修正能實際安裝。 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jiantw83 added 1 commit 2026-07-29 04:29:57 +00:00
PR #19 的 SLEEP_BATCH 修正沿用了 0.0.5(與 master 同版),導致 claude plugin update
回報「already at the latest version (0.0.5)」而不更新,修正永遠裝不上去:
master 的 SLEEP_BATCH 已是 12,但實際安裝的仍是 60。

這正是 spec-plugin-version「新版本必須大於 master 現行版本」要防的情況。
當初判斷「同一 PR 不再累加」是對的,但 PR #19 是**新的一批變更**,
基準應取合併後的 master(0.0.5)而非沿用,因此本次為 0.0.6。

規則釐清(同一句話兩種情境,容易混淆):
- 同一個未合併 PR 內追加 commit → 不再 bump,沿用該 PR 已定的版號
- 前一個 PR 已合併後的新變更 → 以合併後的 master 為基準 +1

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
admin approved these changes 2026-07-29 04:33:09 +00:00
admin merged commit 3b1c466202 into master 2026-07-29 04:33:11 +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/shared#20