From da34d30f6c2e8a8742945dec25b9fad01bf9c56a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?AI=E4=B8=8D=E6=AD=A2=E8=AF=AD?= <12096460+jnMetaCode@users.noreply.github.com> Date: Tue, 12 May 2026 14:25:18 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20release=20v1.4.0=20=E2=80=94=20?= =?UTF-8?q?=E4=B8=8A=E6=B8=B8=E6=BC=82=E7=A7=BB=20P0=20=E5=85=A8=E9=87=8F?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20+=20=E9=98=B2=E5=9B=9E=E5=BD=92=E5=9F=BA?= =?UTF-8?q?=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 跟 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 仍可用) --- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- .codex-plugin/plugin.json | 2 +- .cursor-plugin/plugin.json | 2 +- RELEASE-NOTES.zh.md | 78 +++++++++++++++++++++++++++++++++ gemini-extension.json | 2 +- package.json | 4 +- scripts/sync-plugin-version.js | 1 + 8 files changed, 86 insertions(+), 7 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index e76c814..450d1dd 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -9,7 +9,7 @@ { "name": "superpowers-zh", "description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 6 中国原创),支持 Claude Code / Hermes Agent / Cursor / Claw Code 等 17 款工具", - "version": "1.3.0", + "version": "1.4.0", "source": "./", "author": { "name": "jnMetaCode", diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 7fc60b9..3af1423 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "superpowers-zh", "description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 6 中国原创),支持 Claude Code / Hermes Agent / Cursor / Claw Code 等 17 款工具", - "version": "1.3.0", + "version": "1.4.0", "author": { "name": "jnMetaCode", "url": "https://github.com/jnMetaCode" diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 9cbfde0..0daf6d2 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "superpowers-zh", - "version": "1.3.0", + "version": "1.4.0", "description": "AI 编程超能力中文增强版:头脑风暴、subagent 驱动开发、规划、TDD、调试、代码审查、收尾工作流,附 4 个中文 skills 沉淀。", "author": { "name": "jnMetaCode", diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index 8f8bc85..c929cb2 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -2,7 +2,7 @@ "name": "superpowers-zh", "displayName": "Superpowers 中文版", "description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 6 中国原创),支持 Cursor / Claude Code / Hermes Agent / Claw Code 等 17 款工具", - "version": "1.3.0", + "version": "1.4.0", "author": { "name": "jnMetaCode", "url": "https://github.com/jnMetaCode" diff --git a/RELEASE-NOTES.zh.md b/RELEASE-NOTES.zh.md index d45f339..fb9689d 100644 --- a/RELEASE-NOTES.zh.md +++ b/RELEASE-NOTES.zh.md @@ -6,6 +6,84 @@ --- +## v1.4.0 (2026-05-12) + +本版本核心目标:**修复全量质量审计发现的所有上游漂移 P0 缺陷**。改动全部是"主站有的同步过来"性质,不引入主站没有的新功能。 + +### 🔴 上游同步:v5.0.6 brainstorm server 拆分(PR #30) + +上游 v5.0.6(commit 9e3ed21)把 brainstorm server 的内容目录拆成 `CONTENT_DIR` + `STATE_DIR` peer 结构,但我们的 server 脚本还停在旧 `SCREEN_DIR` 单目录版本,导致 visual brainstorming 教程指向新路径但 server 用旧结构卡死。 + +- `skills/brainstorming/scripts/server.cjs` — 81 行 cherry-pick 同步 +- `skills/brainstorming/scripts/start-server.sh` — 36 行同步 +- `skills/brainstorming/scripts/stop-server.sh` — 29 行同步 + +**修复后:所有 visual brainstorming 用户路径解析正常。** + +### 🔴 上游同步:v5.1.0 Code Review 整合(PR #30) + +上游 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 拆分式。 + +- `skills/requesting-code-review/SKILL.md` 改 4 处:3 处 `superpowers:code-reviewer` 引用清零;占位符从 5 个精简到 4 个对齐上游;"执行计划" 集成段从 "每批(3 个任务)后审查" 改为 "每个任务完成后或在自然 checkpoint 审查"(对齐上游 v5.1.0 subagent 节奏调整) +- `skills/requesting-code-review/code-reviewer.md` 完整重写为 v5.1.0 self-contained 版(H header 6/6 对齐上游) + +**修复后:所有走 review 流程的用户得到的指令指向 `general-purpose` Task 而非已废弃的命名子代理。** + +### 🔴 上游同步:v5.1.0 worktree 安全修复(PR #28) + +上游 v5.1.0 [#991](https://github.com/obra/superpowers/issues/991) 修复了两类 worktree 安全问题:subagent 嵌套创建 + cleanup 误删 harness-managed workspace。 + +- `skills/using-git-worktrees/SKILL.md` 全面重构:新增 Step 0 检测现有隔离(GIT_DIR/GIT_COMMON + submodule 守卫 + 同意流程);Step 1 重组为 1a Native Tools + 1b Git Worktree Fallback + 沙盒回退;删除旧"示例工作流"段(含 `/Users/jesse` 硬编码) +- `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 一律不动 + +**修复后:subagent 不再嵌套创建 worktree;清理不会误删 harness-managed workspace。** + +### 🔴 平台兼容性修复:Windows Cursor hook 回归(PR #30) + +`hooks/hooks-cursor.json` 的 command 之前被本地改成直接调 unix shell `./hooks/session-start`,丢失上游的 polyglot wrapper `./hooks/run-hook.cmd session-start`,Windows + Cursor 组合用户 hook 完全不触发。 + +- 1 行恢复上游 polyglot wrapper + +**修复后:Windows Cursor 用户 hook 正常触发。** + +### 🆕 防回归基建:CI 自动漂移检测(PR #31) + +新增 `scripts/audit.sh` + `.github/workflows/audit.yml`,每次 PR 自动跑 4 类共 90+ 项检查: + +1. 静态校验(JSON parse / SKILL.md frontmatter / symlink / hook 可执行性) +2. Installer 功能(17 款工具装/重装/卸载全跑) +3. 上游对齐(hooks 4 文件 + brainstorm scripts 3 文件 + 14 翻译 skill 结构层级 + code-reviewer.md self-contained 结构) +4. 交叉引用(README → docs/ 链接 + skill 间引用 + 装完后 .claude/skills/using-superpowers/SKILL.md 路径解析) + +WARN(不阻塞)vs FAIL(阻塞)分级:本次"4 个 P0 漂"事件如果当时有这个 audit 在 CI 跑,PR 阶段就会被拦下。 + +**未来意义:维护者下次手抖把 `hooks-cursor.json` 改坏 / 上游同步漏一项,CI 立刻拦下。** + +### 🔧 工具链小修 + +- `scripts/sync-plugin-version.js` 加入 `gemini-extension.json`(之前漏掉,导致 gemini extension manifest 卡在 1.1.6 老版本) +- `package.json` 的 `version` 钩子 git add 列表同步更新 + +### 安装路径方针澄清 + +本版本明确:**有官方 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 路径的"完整支持"——它们走主站路径即可。 + +### 不在本版本范围 + +- `executing-plans/SKILL.md` 我们扩写了 105 行中文示例(主动选择,保留——是 fork 的中文优化,非漂移) +- `using-superpowers/SKILL.md` 的"中国特色技能路由"段(fork 增量,保留) +- 各 reviewer-prompt.md 翻译差异(结构对齐,纯翻译漂移,无行为 bug) +- open issues #18/#21/#26/#20(fork 增量需求,按方针延后) + +### Refs + +- PR #28(worktree 安全修复) +- PR #30(brainstorm scripts + code-reviewer 整合 + hooks-cursor + SKILL.md 引用) +- PR #31(audit script + CI workflow) +- issue #19 跟踪上游 v5.0.6 / v5.1.0 同步 → 关键项目全部覆盖 + +--- + ## v1.3.0 (2026-05-10) ### 跟上游对齐 (v5.1.0) diff --git a/gemini-extension.json b/gemini-extension.json index 93439cf..dd98b2b 100644 --- a/gemini-extension.json +++ b/gemini-extension.json @@ -1,6 +1,6 @@ { "name": "superpowers-zh", "description": "AI 编程超能力中文版 — TDD、调试、代码审查等经过实战验证的工作方法论", - "version": "1.1.6", + "version": "1.4.0", "contextFileName": "GEMINI.md" } diff --git a/package.json b/package.json index 2ae5a1e..acf50df 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "superpowers-zh", - "version": "1.3.0", + "version": "1.4.0", "engines": { "node": ">=20.0.0" }, @@ -11,7 +11,7 @@ "superpowers-zh": "bin/superpowers-zh.js" }, "scripts": { - "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" + "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" }, "files": [ "bin/", diff --git a/scripts/sync-plugin-version.js b/scripts/sync-plugin-version.js index cf5cf7b..114ee03 100644 --- a/scripts/sync-plugin-version.js +++ b/scripts/sync-plugin-version.js @@ -18,6 +18,7 @@ const TARGETS = [ { path: '.cursor-plugin/plugin.json', field: 'version' }, { path: '.codex-plugin/plugin.json', field: 'version' }, { path: '.claude-plugin/marketplace.json', field: 'plugins.0.version' }, + { path: 'gemini-extension.json', field: 'version' }, ]; function buildPattern(field) {