@qijenchen/design-system 0.1.0-beta.46 → 0.1.0-beta.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CLAUDE.md
CHANGED
|
@@ -107,7 +107,7 @@ CLAUDE.md target ≤ 200(Anthropic best-practice)/ transition ≤ 400 / hard cap
|
|
|
107
107
|
| 3 告訴 user 主要 change(or preview URL)| 讓 user 知道看什麼 |
|
|
108
108
|
| 4 等 user trigger | **「push / OK / 好 / 合 main」** → step 5;**「改 X / 不對 / 等等」** → 繼續 step 1 |
|
|
109
109
|
| 5 Squash merge to main | 不開 PR(可 GitHub API squash-merge OR fast-forward)|
|
|
110
|
-
| 5.5 **SSOT propagation gate**(2026-05-26 加 per user verbatim「push main 後所有 repo 都能獲得更新」)| Hook `check_post_main_ssot_propagate.sh` 偵測 `git push origin main` + diff HEAD~..HEAD 含 SSOT-affecting paths(`packages/design-system/src` + `packages/storybook-config/{addons,addons-preset.ts,preview.tsx}`(無 src/ dir)/ `.claude/{rules,hooks,skills,commands,references}` / `.claude-plugin/*.json` / `hooks/hooks.json` / `CLAUDE.md`)→ inject context
|
|
110
|
+
| 5.5 **SSOT propagation gate**(2026-05-26 加 per user verbatim「push main 後所有 repo 都能獲得更新」)| Hook `check_post_main_ssot_propagate.sh` 偵測 `git push origin main` + diff HEAD~..HEAD 含 SSOT-affecting paths(`packages/design-system/src` + `packages/storybook-config/{addons,addons-preset.ts,preview.tsx}`(無 src/ dir)/ `.claude/{rules,hooks,skills,commands,references}` / `.claude-plugin/*.json` / `hooks/hooks.json` / `CLAUDE.md`)→ inject context。**AI 必「全自動執行」整條發版鏈、不需 user 再問也不需 user 再確認(2026-06-02 user directive Option A verbatim「我說 push main 時,應該就一切要自動弄得完整弄得好」)**:動到 skill/hook/spec/token/CLAUDE 等 SSOT-affecting paths + user 已給 merge trigger → AI 自動 bump → preflight → tag → publish → `npm view` 驗證,全程不停下問;preflight(發版前 gate)+ `npm view`(發版後驗)= 安全網,故全自動不增風險;user 隨時可喊停。bump npm `0.1.0-beta.<N+1>`。**bump 版本後、tag 前必跑單一指令 `npm run release:preflight`**(sync version 5-manifest + sync ds-canonical + 全 deterministic gate + build + dogfood + 5-manifest verify,fail-fast,全過寫 HEAD-bound pass-marker)—— 取代舊「手動逐道跑」checklist,根治 beta.43/45 連環 push 失敗(漏 sync 步驟)。全過才 tag + push tag → Release workflow auto-fire → npm publish → ds-product-template + fork repos Dependabot daily auto-PR(整鏈 1 trigger 涵蓋所有 SSOT-affecting 來源)|
|
|
111
111
|
| 6 砍 remote branch | `git push origin --delete <branch>` ;sandbox HTTP 403 → 提醒 user GitHub UI 手動 |
|
|
112
112
|
| 7 Local 對齊 | `git checkout main && git fetch && git reset --hard origin/main && git branch -d <branch>` |
|
|
113
113
|
|
|
@@ -68,17 +68,19 @@ cat <<EOF
|
|
|
68
68
|
|
|
69
69
|
📊 偵測:HEAD~1..HEAD 含 $SSOT_COUNT 個 SSOT-affecting file changes
|
|
70
70
|
📦 目前 npm version:$PKG_VERSION
|
|
71
|
-
🎯
|
|
71
|
+
🎯 AI 必「全自動執行」(不需 user 再問 / 再確認 — per Step 5.5 2026-06-02 user directive Option A):
|
|
72
|
+
bump → release:preflight → tag → push tag → Release workflow → npm publish → npm view 驗證
|
|
72
73
|
→ 24h 內 product-workspace + 所有 fork repo 自動拿最新
|
|
73
74
|
|
|
74
75
|
Touched(top 5):
|
|
75
76
|
$(echo "$SSOT_DIFF" | head -5 | sed 's/^/ - /')
|
|
76
77
|
|
|
77
|
-
|
|
78
|
-
1.
|
|
79
|
-
2.
|
|
80
|
-
3. git push origin main
|
|
81
|
-
4. Release workflow auto-fire → npm publish + Dependabot
|
|
78
|
+
AI 全自動執行步驟(user 已給 merge trigger → 以下不需再問;user 隨時可喊停):
|
|
79
|
+
1. bump packages/design-system/package.json → node scripts/sync-version-to-all-manifests.mjs(同步全 5 manifest)
|
|
80
|
+
2. npm run release:preflight(全過才寫 HEAD-bound pass-marker;R4 hook 認它才放行 tag)
|
|
81
|
+
3. git tag v0.1.0-beta.<N+1> + git push origin main + git push origin v0.1.0-beta.<N+1>
|
|
82
|
+
4. Release workflow auto-fire → npm publish + Dependabot 日常 cross-repo sweep
|
|
83
|
+
5. npm view <pkg> version 驗證真上架(非看 CI 綠燈)
|
|
82
84
|
|
|
83
85
|
對應 canonical:
|
|
84
86
|
- CLAUDE.md \`# Git solo-work canonical\` Step 5.5
|
package/ds-story-manifest.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"scripts/composition-fidelity-visual-diff.mjs",
|
|
8
8
|
"product-workspace apps/template/src/AllDsComponents.stories.tsx (DsCanonicalPortal)"
|
|
9
9
|
],
|
|
10
|
-
"generatedAt": "2026-06-
|
|
10
|
+
"generatedAt": "2026-06-02T14:01:59.871Z"
|
|
11
11
|
},
|
|
12
12
|
"components": {
|
|
13
13
|
"accordion": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qijenchen/design-system",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.47",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "World-class design system — components, patterns, tokens, hooks (single source of truth for team distribution).",
|
|
6
6
|
"type": "module",
|