From 63d4185a4079a211340fed7420741d558bfff768 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Thu, 27 Aug 2026 10:27:40 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix(deploy):=20codex=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=A3=9C=E4=B8=8A=E9=80=90=E7=B6=B2=E5=9F=9F=20plugin=20add?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit What:deploy_codex 的 update 分支在 marketplace upgrade 之後,補上逐網域的 plugin add,與 install 分支一致。 Why:codex 沒有 plugin update 子指令,只有 add、list、marketplace、remove。 marketplace upgrade 只重抓 marketplace 快照,而 jsc 的 marketplace.json 只列各 網域的 git URL、不含版本,內容不會變,codex 一律回「already up to date」並結束碼 0。 已安裝外掛的版本在 plugin add 當下決定,快取不會被連帶重抓。結果是十個網域裡八個 版本完全沒動,指令卻全部成功——只看結束碼會判定成功,是最難察覺的那種失敗。 實機驗證過:更新前 review 是 0.0.2,跑完 marketplace upgrade 仍是 0.0.2。 How:update 分支照 install 的寫法逐網域跑 plugin add。實測 codex 的 add 會就地 升級到快照裡的最新版(review 0.0.2 升到 0.0.5),不需要先 remove。同時在函式上方 寫明這個限制與理由,避免後人再把那一行當成多餘的重複而刪掉。 Who:跨 CLI 技能組批次部署。 --- tools/deploy.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/deploy.sh b/tools/deploy.sh index 62e2dc5..d52a02a 100755 --- a/tools/deploy.sh +++ b/tools/deploy.sh @@ -132,6 +132,12 @@ marketplace_cli() { # $1=執行檔 esac } +# codex 沒有 plugin update 子指令,只有 add、list、marketplace、remove。 +# marketplace upgrade 只重抓 marketplace 快照,而 jsc 的 marketplace.json 只列各網域的 +# git URL、不含版本,所以那份檔案內容不會變,codex 一律回「already up to date」並結束碼 0。 +# 已安裝外掛的版本是 plugin add 當下決定的,快取不會被連帶重抓——換句話說,只跑 +# marketplace upgrade 的話,指令全部成功而版本一個都沒動,是最難察覺的那種失敗。 +# 正確做法是照樣逐網域 plugin add:codex 的 add 會就地升級到快照裡的最新版。 deploy_codex() { bin=$(cli_bin codex) case "$MODE" in @@ -141,6 +147,7 @@ deploy_codex() { ;; update) run "$bin" plugin marketplace upgrade jsc + for d in $DOMAINS; do run "$bin" plugin add "jsc-$d@jsc"; done ;; uninstall) for d in $DOMAINS; do run "$bin" plugin remove "jsc-$d@jsc"; done From 9a7fbeb2295d278e4751246b801f9fdc2276c4d5 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Thu, 27 Aug 2026 10:27:40 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix(manifest):=20=E4=B8=89=E4=BB=BD=20manif?= =?UTF-8?q?est=20=E7=89=88=E6=9C=AC=E5=8D=87=E5=88=B0=200.1.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit What:三份 manifest 由 0.1.5 升到 0.1.6。 Why:codex 更新路徑的修正要能被 version-guard.sh 判定為落後,使用者才會收到更新 提示。不升版的話,帶著壞掉更新路徑的舊版會一直留在各 CLI 上。 How:以 jsc-meta 的 sync-skill-manifest.sh 統一 bump,三份同步成同一個值。 Who:跨 CLI 技能組批次部署。 --- .claude-plugin/plugin.json | 2 +- .codex-plugin/plugin.json | 2 +- plugin.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 5f13f85..ca1c8e5 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "jsc-cli", - "version": "0.1.5", + "version": "0.1.6", "description": "CLI 偵測、模型能力標籤、子代理派工與技能庫批次部署", "skills": "./skills", "author": { diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index e73b34e..d2b6bdc 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "jsc-cli", - "version": "0.1.5", + "version": "0.1.6", "description": "CLI 偵測、模型能力標籤、子代理派工與技能庫批次部署", "skills": "./skills" } diff --git a/plugin.json b/plugin.json index ce80adb..37ea632 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "name": "jsc-cli", - "version": "0.1.5", + "version": "0.1.6", "description": "CLI 偵測、模型能力標籤、子代理派工與技能庫批次部署", "skills": "./skills/" } From ffff2152c26e3db28547080f7bd8937840a83821 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Thu, 27 Aug 2026 11:20:30 +0800 Subject: [PATCH 3/4] =?UTF-8?q?feat(config-spec):=20=E7=99=BB=E9=8C=84=20J?= =?UTF-8?q?SC=5FPR=5FWATCH=5FINTERVAL=20=E8=A8=AD=E5=AE=9A=E9=A0=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit What:`tools/config-spec.tsv` 新增一列 `JSC_PR_WATCH_INTERVAL`:型別 `env`、全域、非必填、預設 `60`、檢查方式 `set`、缺少時 `ask`,說明寫明它是 `pr-watch.sh` 輪詢 PR 狀態的間隔秒數,實作在 `jsc-gitea/tools/pr-watch.sh`。 Why:設定規格表是 jsc 環境變數的清單正本,`jsc-cli` 的部署與體檢都讀它。新變數沒登錄進來,體檢就看不到它,使用者也無從得知有這個旋鈕可以調。 How:只加一列,排在同為 `jsc-hooks` 系列旋鈕的 `JSC_VERSION_TTL` 之後,欄位順序與既有各列相同;說明點名實作位置,讀表的人才知道去哪裡查行為。 Who:`jsc-cli:deploy` 與環境體檢,以及要調整盯 PR 頻率的使用者。 --- tools/config-spec.tsv | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/config-spec.tsv b/tools/config-spec.tsv index bdcba2c..d420437 100644 --- a/tools/config-spec.tsv +++ b/tools/config-spec.tsv @@ -31,6 +31,7 @@ JSC_WIKI_REPO_CHECK env global no JSC_WIKI_REPO wiki-repo ask CHECK_CONTENTS、C JSC_WIKI_REPO_REPORT env global no JSC_WIKI_REPO wiki-repo ask REPORT_CONTENTS、REPORT_{HASH} 所在存取庫,年月週日報表寫在這裡 JSC_VERSION_GUARD env global no on set ask 設成 off 可完全略過版本前置檢查,離線工作時用 JSC_VERSION_TTL env global no 600 set ask 版本查詢快取秒數 +JSC_PR_WATCH_INTERVAL env global no 60 set ask pr-watch.sh 輪詢 PR 狀態的間隔秒數,實作在 jsc-gitea/tools/pr-watch.sh JSC_LOCAL_PLUGINS env global no $JSC_HOME/plugins dir auto antigravity 安裝來源的本地 plugin 目錄 JSC_PLUGINS_ROOT env global no - dir ask 技能組工作目錄根位置,jsc-meta 的工具用它找各 domain JSC_CLAUDE_SETTINGS_DIR env global no ~/.claude dir ask claude 使用者層設定檔目錄,測試 purge 時才需覆寫 From bbd48b5d95fbbd0c8b27d9e9331a087a31f4f39c Mon Sep 17 00:00:00 2001 From: Jeffery Date: Thu, 27 Aug 2026 11:20:30 +0800 Subject: [PATCH 4/4] =?UTF-8?q?chore(manifest):=20=E4=B8=89=E4=BB=BD=20man?= =?UTF-8?q?ifest=20=E7=89=88=E6=9C=AC=E5=8D=87=E5=88=B0=200.1.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit What:`plugin.json`、`.claude-plugin/plugin.json`、`.codex-plugin/plugin.json` 的 `version` 由 0.1.6 改為 0.1.7。 Why:設定規格表新增一個環境變數,讀表的部署與體檢行為跟著變,版本要往上走,各 CLI 才知道要更新。 How:三份只改 `version` 一個欄位,其餘內容不動,三份保持同一版號。 Who:`jsc-cli` 外掛的套件描述檔。 --- .claude-plugin/plugin.json | 2 +- .codex-plugin/plugin.json | 2 +- plugin.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index ca1c8e5..b693c4a 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "jsc-cli", - "version": "0.1.6", + "version": "0.1.7", "description": "CLI 偵測、模型能力標籤、子代理派工與技能庫批次部署", "skills": "./skills", "author": { diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index d2b6bdc..f18890e 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "jsc-cli", - "version": "0.1.6", + "version": "0.1.7", "description": "CLI 偵測、模型能力標籤、子代理派工與技能庫批次部署", "skills": "./skills" } diff --git a/plugin.json b/plugin.json index 37ea632..23e2c5a 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "name": "jsc-cli", - "version": "0.1.6", + "version": "0.1.7", "description": "CLI 偵測、模型能力標籤、子代理派工與技能庫批次部署", "skills": "./skills/" }