superpowers-zh 1.7.2 → 1.7.3

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.
@@ -9,7 +9,7 @@
9
9
  {
10
10
  "name": "superpowers-zh",
11
11
  "description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 4 中国原创 + 2 上游历史保留),支持 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等 22 款工具",
12
- "version": "1.7.2",
12
+ "version": "1.7.3",
13
13
  "source": "./",
14
14
  "author": {
15
15
  "name": "jnMetaCode",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "superpowers-zh",
3
3
  "description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 4 中国原创 + 2 上游历史保留),支持 Claude Code / Hermes Agent / Cursor / Claw Code / Qoder 等 22 款工具",
4
- "version": "1.7.2",
4
+ "version": "1.7.3",
5
5
  "author": {
6
6
  "name": "jnMetaCode",
7
7
  "url": "https://github.com/jnMetaCode"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superpowers-zh",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "AI 编程超能力中文增强版:头脑风暴、subagent 驱动开发、规划、TDD、调试、代码审查、收尾工作流,附 4 个中文 skills 沉淀。",
5
5
  "author": {
6
6
  "name": "jnMetaCode",
@@ -2,7 +2,7 @@
2
2
  "name": "superpowers-zh",
3
3
  "displayName": "Superpowers 中文版",
4
4
  "description": "AI 编程超能力中文增强版:20 个 skills(14 翻译 + 4 中国原创 + 2 上游历史保留),支持 Cursor / Claude Code / Hermes Agent / Claw Code / Qoder 等 22 款工具",
5
- "version": "1.7.2",
5
+ "version": "1.7.3",
6
6
  "author": {
7
7
  "name": "jnMetaCode",
8
8
  "url": "https://github.com/jnMetaCode"
package/README.md CHANGED
@@ -16,7 +16,8 @@ Chinese community edition of [superpowers](https://github.com/obra/superpowers)
16
16
  >
17
17
  > 🌍 Also available in [English](https://aiolaola.com/en?utm_source=github&utm_campaign=superpowers) · [日本語](https://aiolaola.com/ja?utm_source=github&utm_campaign=superpowers) · [Español](https://aiolaola.com/es?utm_source=github&utm_campaign=superpowers) · [한국어](https://aiolaola.com/ko?utm_source=github&utm_campaign=superpowers) · [繁體中文](https://aiolaola.com/zh-Hant?utm_source=github&utm_campaign=superpowers)
18
18
 
19
- > 🆕 **v1.7.2 更新亮点**([完整 Release Notes →](RELEASE-NOTES.zh.md))
19
+ > 🆕 **v1.7.3 更新亮点**([完整 Release Notes →](RELEASE-NOTES.zh.md))
20
+ > - 🪟 **Windows bootstrap 修复** —— SessionStart hook 改经 Git Bash 分发(同步上游),hook 不加载 skill 就是死重
20
21
  > - 🧩 新增 **Cline** 与 **Kilo Code** 两款 VS Code 扩展(工具数 20 → 22)—— 按 rules 常驻开销做了专门设计,索引仅 4.5 KB
21
22
  > - 🔧 检测落空时会扫 PATH 给出**可直接复制的 `--tool` 命令**,不再只报「未检测到」
22
23
  > - 📦 README 补上 **Plugin Marketplace 安装方式**(`claude plugin marketplace add`,升级只需一条命令)
package/README.zh-Hant.md CHANGED
@@ -16,7 +16,8 @@ Chinese community edition of [superpowers](https://github.com/obra/superpowers)
16
16
 
17
17
  > 📖 **免費配套學習** → [從零學會 AI 編程](https://aiolaola.com/?utm_source=github&utm_campaign=superpowers):180 節免費實操課 + 《AI 編程實戰三卷書》線上閱讀 + 實戰社群 · superpowers 裝好後配上方法論效率翻倍 · 永久免費
18
18
 
19
- > 🆕 **v1.7.2 更新亮點**([完整 Release Notes →](RELEASE-NOTES.zh.md))
19
+ > 🆕 **v1.7.3 更新亮點**([完整 Release Notes →](RELEASE-NOTES.zh.md))
20
+ > - 🪟 **Windows bootstrap 修復** —— SessionStart hook 改經 Git Bash 分發(同步上游),hook 不載入 skill 就是死重
20
21
  > - 🧩 新增 **Cline** 與 **Kilo Code** 兩款 VS Code 外掛(工具數 20 → 22)—— 針對 rules 常駐開銷做了專門設計,索引僅 4.5 KB
21
22
  > - 🔧 偵測落空時會掃 PATH 給出**可直接複製的 `--tool` 命令**,不再只報「未偵測到」
22
23
  > - 📦 README 補上 **Plugin Marketplace 安裝方式**(`claude plugin marketplace add`,升級只需一條命令)
@@ -6,6 +6,50 @@
6
6
 
7
7
  ---
8
8
 
9
+ ## v1.7.3 (2026-08-07)
10
+
11
+ ### 🐛 同步上游两处纯代码修复(对齐 v6.1.1 → v6.2.0 时挑出)
12
+
13
+ 两个文件在我们这边都与上游 v6.1.1 **字节一致**(从未汉化改动),因此可直接取上游版 —— 无需翻译、无需 eval。
14
+
15
+ - **`hooks/hooks.json` 加 `"shell": "bash"`**(上游 `5151e7a`):SessionStart hook 在 Windows 上原先不经 Git Bash 分发。我们的 hooks.json 与上游除这一行外完全相同。这条直接改善 Windows 用户的 bootstrap 可靠性 —— **bootstrap 不加载,skill 就是死重**。
16
+ - **`skills/systematic-debugging/find-polluter.sh`**(上游 `6015d37`、`c8921b5`):修三个真 bug,已逐个实测新旧版对比:
17
+ - pattern 带 `./` 前缀时匹配不到(`find .` 输出 `./` 前缀路径):旧 1 个 → 新 2 个
18
+ - `-path` 的 `**/` 无法匹配零层目录,`src/**/*.test.ts` 漏掉 `src/top.test.ts`:旧 1 个 → 新 2 个
19
+ - 完全无匹配时计数为 1 而非 0(`echo` 空串仍算一行):旧 1 → 新 0
20
+
21
+ ### 🧪 新增工具计数一致性检查(audit Category 5,+24 项)
22
+
23
+ 加一款工具要同步简繁 README(各 6 处)、`package.json`、`CLAUDE.md`、`site/build.mjs`(三语言 15 处)、3 份 plugin manifest —— v1.7.2 全靠人工 grep 才没漏。现在从 installer 的 `TARGETS` 推导期望值并逐处断言,另加两条结构性检查:README 工具表行数必须等于宣称数、Category 2 实际测试的工具数必须等于宣称数(**宣称了就必须测**)。
24
+
25
+ 已验证会拦:把标题改成 23 款、删掉一行工具表,两种漂移都被抓到。
26
+
27
+ 口径写进注释:`TARGETS` 是「安装目标」共 21 个;Copilot CLI 与 CC 共用 `.claude/skills`(别名映射过去)不占独立条目,但文案里作为独立产品单独计数,所以「文案数 = TARGETS 数 + 1 = 22」。
28
+
29
+ ### 🐛 修 bash 3.2 下 CJK 报错信息乱码
30
+
31
+ macOS 自带 bash 3.2.57 解析标识符时不识别多字节字符,`$file「` 会把「的首字节 `0xE3` 吞进变量名,导致变量展开为空且字符被截断。报错信息变成「计数不一致: ����= ��应为 22」—— **只在检查失败时才暴露,写检查的人看不到**。
32
+
33
+ 复现:`bash -c 'f=README.md; echo "文件: $f「标签」结束"'` → `文件: ��标签」结束`
34
+
35
+ 修法是给紧跟 CJK 标点的变量加花括号。全仓扫描 `$var` 紧跟非 ASCII 字节的模式,命中 3 处(audit.sh 2 处、verify-release.sh 1 处 —— 后者因为检测项一直全通过,从没暴露过)。
36
+
37
+ ### 🧹 其他
38
+
39
+ - `.gitignore` 补上 `.cline/`、`.clinerules/`、`.kilocode/` —— 与 `.trae/`、`.qoder/` 一致,避免在本仓库内自测安装器留下未跟踪文件。
40
+ - 官网 `site/build.mjs` 工具计数 20 → 22,三语言 FAQ 枚举补入 Cline、Kilo Code(v1.7.2 发了但站点没跟)。
41
+
42
+ ### ✅ 验证
43
+
44
+ - `scripts/audit.sh`:**153 pass / 0 fail**(3 项 warn 为上游漂移,见 #19)
45
+ - `scripts/verify-release.sh`:**82 pass / 0 fail**
46
+ - SessionStart hook 冒烟:退出码 0,输出正确的 SessionStart JSON
47
+ - npm 包端到端:pack → 从 tarball 安装 → 真实跑安装器 → 卸载零残留
48
+
49
+ > ⚠️ audit 的上游漂移 warn 从 2 条变 3 条(新增 `using-git-worktrees`),且 `executing-plans` / `finishing-a-development-branch` 的上游 H 值有变化 —— 这是本次 `git fetch upstream` 把对比基准从旧快照更新到 **v6.2.0** 导致的,不是代码改动引起。
50
+
51
+ ---
52
+
9
53
  ## v1.7.2 (2026-08-07)
10
54
 
11
55
  ### 🆕 新增 Cline 与 Kilo Code 适配(工具数 20 → 22,关 #112、#88)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superpowers-zh",
3
3
  "description": "AI 编程超能力中文版 — TDD、调试、代码审查等经过实战验证的工作方法论",
4
- "version": "1.7.2",
4
+ "version": "1.7.3",
5
5
  "contextFileName": "GEMINI.md"
6
6
  }
package/hooks/hooks.json CHANGED
@@ -7,6 +7,7 @@
7
7
  {
8
8
  "type": "command",
9
9
  "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.cmd\" session-start",
10
+ "shell": "bash",
10
11
  "async": false
11
12
  }
12
13
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superpowers-zh",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },
@@ -18,9 +18,18 @@ echo "🔍 Searching for test that creates: $POLLUTION_CHECK"
18
18
  echo "Test pattern: $TEST_PATTERN"
19
19
  echo ""
20
20
 
21
- # Get list of test files
22
- TEST_FILES=$(find . -path "$TEST_PATTERN" | sort)
23
- TOTAL=$(echo "$TEST_FILES" | wc -l | tr -d ' ')
21
+ # Get list of test files (find . emits ./-prefixed paths, so accept the
22
+ # pattern written with or without a leading ./)
23
+ TEST_PATTERN="${TEST_PATTERN#./}"
24
+ # find -path can't match '**/' against zero directory levels, so a pattern
25
+ # like src/**/*.test.ts would skip src/top.test.ts; also try the pattern
26
+ # with '**/' collapsed to cover files directly under the base directory.
27
+ TEST_FILES=$(find . \( -path "./$TEST_PATTERN" -o -path "./${TEST_PATTERN//\*\*\//}" \) | sort -u)
28
+ if [ -z "$TEST_FILES" ]; then
29
+ TOTAL=0
30
+ else
31
+ TOTAL=$(printf '%s\n' "$TEST_FILES" | wc -l | tr -d ' ')
32
+ fi
24
33
 
25
34
  echo "Found $TOTAL test files"
26
35
  echo ""