Skip to content

Commit da34d30

Browse files
committed
chore: release v1.4.0 — 上游漂移 P0 全量修复 + 防回归基建
跟 PR #28 + #30 + #31 一起构成 v1.4.0 的完整内容。本 PR 仅做发布层 (版本号 bump + plugin manifest 同步 + release notes),不动 skill 内容。 版本号 1.3.0 → 1.4.0: - package.json - .claude-plugin/plugin.json + marketplace.json - .cursor-plugin/plugin.json - .codex-plugin/plugin.json - gemini-extension.json(之前卡在 1.1.6,本次顺带追上) 工具链小修: - scripts/sync-plugin-version.js TARGETS 加入 gemini-extension.json (之前漏掉,是 gemini-extension.json 长期卡在老版本的根因) - package.json 的 version 钩子 git add 列表加上 gemini-extension.json RELEASE-NOTES.zh.md 新增 v1.4.0 段,按"上游同步"性质分组列出 9 项 修复内容,明确标注每项的上游 ref + 本 fork PR 号。 注意:本 PR 应在 #28 + #30 + #31 merge 之后才 merge —— 顺序错了 会导致 release notes 描述的 PR 在 git log 里还没有。 不影响: - 上游 marketplace 安装路径(仍按主站路径正常工作) - 现有 npm 用户向后兼容(npx superpowers-zh 仍可用)
1 parent 132b658 commit da34d30

8 files changed

Lines changed: 86 additions & 7 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{
1010
"name": "superpowers-zh",
1111
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 6 中国原创),支持 Claude Code / Hermes Agent / Cursor / Claw Code 等 17 款工具",
12-
"version": "1.3.0",
12+
"version": "1.4.0",
1313
"source": "./",
1414
"author": {
1515
"name": "jnMetaCode",

.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "superpowers-zh",
33
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 6 中国原创),支持 Claude Code / Hermes Agent / Cursor / Claw Code 等 17 款工具",
4-
"version": "1.3.0",
4+
"version": "1.4.0",
55
"author": {
66
"name": "jnMetaCode",
77
"url": "https://github.com/jnMetaCode"

.codex-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "superpowers-zh",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"description": "AI 编程超能力中文增强版:头脑风暴、subagent 驱动开发、规划、TDD、调试、代码审查、收尾工作流,附 4 个中文 skills 沉淀。",
55
"author": {
66
"name": "jnMetaCode",

.cursor-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "superpowers-zh",
33
"displayName": "Superpowers 中文版",
44
"description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 6 中国原创),支持 Cursor / Claude Code / Hermes Agent / Claw Code 等 17 款工具",
5-
"version": "1.3.0",
5+
"version": "1.4.0",
66
"author": {
77
"name": "jnMetaCode",
88
"url": "https://github.com/jnMetaCode"

RELEASE-NOTES.zh.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,84 @@
66
77
---
88

9+
## v1.4.0 (2026-05-12)
10+
11+
本版本核心目标:**修复全量质量审计发现的所有上游漂移 P0 缺陷**。改动全部是"主站有的同步过来"性质,不引入主站没有的新功能。
12+
13+
### 🔴 上游同步:v5.0.6 brainstorm server 拆分(PR #30
14+
15+
上游 v5.0.6(commit 9e3ed21)把 brainstorm server 的内容目录拆成 `CONTENT_DIR` + `STATE_DIR` peer 结构,但我们的 server 脚本还停在旧 `SCREEN_DIR` 单目录版本,导致 visual brainstorming 教程指向新路径但 server 用旧结构卡死。
16+
17+
- `skills/brainstorming/scripts/server.cjs` — 81 行 cherry-pick 同步
18+
- `skills/brainstorming/scripts/start-server.sh` — 36 行同步
19+
- `skills/brainstorming/scripts/stop-server.sh` — 29 行同步
20+
21+
**修复后:所有 visual brainstorming 用户路径解析正常。**
22+
23+
### 🔴 上游同步:v5.1.0 Code Review 整合(PR #30
24+
25+
上游 v5.1.0 PR #1299 把 reviewer persona + checklist + dispatch 模板整合到单一 `code-reviewer.md` 实现 self-contained,并把 SKILL.md 里的 `superpowers:code-reviewer` 命名子代理引用改成 `general-purpose` Task + 模板路径形式。我们的版本停留在 v5.0.x 拆分式。
26+
27+
- `skills/requesting-code-review/SKILL.md` 改 4 处:3 处 `superpowers:code-reviewer` 引用清零;占位符从 5 个精简到 4 个对齐上游;"执行计划" 集成段从 "每批(3 个任务)后审查" 改为 "每个任务完成后或在自然 checkpoint 审查"(对齐上游 v5.1.0 subagent 节奏调整)
28+
- `skills/requesting-code-review/code-reviewer.md` 完整重写为 v5.1.0 self-contained 版(H header 6/6 对齐上游)
29+
30+
**修复后:所有走 review 流程的用户得到的指令指向 `general-purpose` Task 而非已废弃的命名子代理。**
31+
32+
### 🔴 上游同步:v5.1.0 worktree 安全修复(PR #28
33+
34+
上游 v5.1.0 [#991](https://github.com/obra/superpowers/issues/991) 修复了两类 worktree 安全问题:subagent 嵌套创建 + cleanup 误删 harness-managed workspace。
35+
36+
- `skills/using-git-worktrees/SKILL.md` 全面重构:新增 Step 0 检测现有隔离(GIT_DIR/GIT_COMMON + submodule 守卫 + 同意流程);Step 1 重组为 1a Native Tools + 1b Git Worktree Fallback + 沙盒回退;删除旧"示例工作流"段(含 `/Users/jesse` 硬编码)
37+
- `skills/finishing-a-development-branch/SKILL.md` 全面重构:新增 Step 2 检测环境(三态表);旧 Step 2-5 重编号为 3-6;Step 4 新增分离 HEAD 3 选项变体;Step 5 Option 1 重写(MAIN_ROOT cwd safety + merge→verify→cleanup→delete 严格排序);Step 6 清理范围限定在 `.worktrees/` / `worktrees/` / `~/.config/superpowers/worktrees/`,外部 harness-managed workspace 一律不动
38+
39+
**修复后:subagent 不再嵌套创建 worktree;清理不会误删 harness-managed workspace。**
40+
41+
### 🔴 平台兼容性修复:Windows Cursor hook 回归(PR #30
42+
43+
`hooks/hooks-cursor.json` 的 command 之前被本地改成直接调 unix shell `./hooks/session-start`,丢失上游的 polyglot wrapper `./hooks/run-hook.cmd session-start`,Windows + Cursor 组合用户 hook 完全不触发。
44+
45+
- 1 行恢复上游 polyglot wrapper
46+
47+
**修复后:Windows Cursor 用户 hook 正常触发。**
48+
49+
### 🆕 防回归基建:CI 自动漂移检测(PR #31
50+
51+
新增 `scripts/audit.sh` + `.github/workflows/audit.yml`,每次 PR 自动跑 4 类共 90+ 项检查:
52+
53+
1. 静态校验(JSON parse / SKILL.md frontmatter / symlink / hook 可执行性)
54+
2. Installer 功能(17 款工具装/重装/卸载全跑)
55+
3. 上游对齐(hooks 4 文件 + brainstorm scripts 3 文件 + 14 翻译 skill 结构层级 + code-reviewer.md self-contained 结构)
56+
4. 交叉引用(README → docs/ 链接 + skill 间引用 + 装完后 .claude/skills/using-superpowers/SKILL.md 路径解析)
57+
58+
WARN(不阻塞)vs FAIL(阻塞)分级:本次"4 个 P0 漂"事件如果当时有这个 audit 在 CI 跑,PR 阶段就会被拦下。
59+
60+
**未来意义:维护者下次手抖把 `hooks-cursor.json` 改坏 / 上游同步漏一项,CI 立刻拦下。**
61+
62+
### 🔧 工具链小修
63+
64+
- `scripts/sync-plugin-version.js` 加入 `gemini-extension.json`(之前漏掉,导致 gemini extension manifest 卡在 1.1.6 老版本)
65+
- `package.json``version` 钩子 git add 列表同步更新
66+
67+
### 安装路径方针澄清
68+
69+
本版本明确:**有官方 plugin marketplace 的工具(Claude Code / Codex CLI / OpenCode / VS Code)首选 marketplace 路径**,npx `superpowers-zh` 主要服务没有 marketplace 的工具(Cursor / Trae / Kiro / Gemini CLI / Hermes / Aider / Antigravity / Windsurf / Qwen / Claw / OpenClaw / DeerFlow 共 13 款)。fork 不再尝试给 marketplace 工具加 npx 路径的"完整支持"——它们走主站路径即可。
70+
71+
### 不在本版本范围
72+
73+
- `executing-plans/SKILL.md` 我们扩写了 105 行中文示例(主动选择,保留——是 fork 的中文优化,非漂移)
74+
- `using-superpowers/SKILL.md` 的"中国特色技能路由"段(fork 增量,保留)
75+
- 各 reviewer-prompt.md 翻译差异(结构对齐,纯翻译漂移,无行为 bug)
76+
- open issues #18/#21/#26/#20(fork 增量需求,按方针延后)
77+
78+
### Refs
79+
80+
- PR #28(worktree 安全修复)
81+
- PR #30(brainstorm scripts + code-reviewer 整合 + hooks-cursor + SKILL.md 引用)
82+
- PR #31(audit script + CI workflow)
83+
- issue #19 跟踪上游 v5.0.6 / v5.1.0 同步 → 关键项目全部覆盖
84+
85+
---
86+
987
## v1.3.0 (2026-05-10)
1088

1189
### 跟上游对齐 (v5.1.0)

gemini-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "superpowers-zh",
33
"description": "AI 编程超能力中文版 — TDD、调试、代码审查等经过实战验证的工作方法论",
4-
"version": "1.1.6",
4+
"version": "1.4.0",
55
"contextFileName": "GEMINI.md"
66
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "superpowers-zh",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"engines": {
55
"node": ">=20.0.0"
66
},
@@ -11,7 +11,7 @@
1111
"superpowers-zh": "bin/superpowers-zh.js"
1212
},
1313
"scripts": {
14-
"version": "node scripts/sync-plugin-version.js && git add .claude-plugin/plugin.json .claude-plugin/marketplace.json .cursor-plugin/plugin.json .codex-plugin/plugin.json"
14+
"version": "node scripts/sync-plugin-version.js && git add .claude-plugin/plugin.json .claude-plugin/marketplace.json .cursor-plugin/plugin.json .codex-plugin/plugin.json gemini-extension.json"
1515
},
1616
"files": [
1717
"bin/",

scripts/sync-plugin-version.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const TARGETS = [
1818
{ path: '.cursor-plugin/plugin.json', field: 'version' },
1919
{ path: '.codex-plugin/plugin.json', field: 'version' },
2020
{ path: '.claude-plugin/marketplace.json', field: 'plugins.0.version' },
21+
{ path: 'gemini-extension.json', field: 'version' },
2122
];
2223

2324
function buildPattern(field) {

0 commit comments

Comments
 (0)