claude-sdlc 1.3.0 → 1.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-sdlc",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "让 Claude Code 严格按 SDLC 规范开发 — 一条命令安装",
5
5
  "bin": {
6
6
  "claude-sdlc": "./bin/cli.js"
@@ -57,6 +57,24 @@
57
57
  3. 工具执行成功 → 解析输出,提取关键指标
58
58
  4. 所有工具输出原文保留在审查报告中
59
59
 
60
+ ### Bash 命令格式要求(重要)
61
+
62
+ **所有 Bash 命令必须写成单行**,禁止在命令中间换行。zsh 会将换行后的内容当作独立命令执行,导致 `command not found` 错误。
63
+
64
+ 正确示例:
65
+ ```bash
66
+ npx eslint src/ 2>&1; echo "EXIT=$?"
67
+ npx tsc --noEmit 2>&1; echo "EXIT=$?"
68
+ npx jest --coverage 2>&1; echo "EXIT=$?"
69
+ npm audit 2>&1; echo "EXIT=$?"
70
+ ```
71
+
72
+ 错误示例(禁止):
73
+ ```bash
74
+ npx eslint src/
75
+ 2>&1; echo "EXIT=$?" # ← zsh 会把 2 当命令执行!
76
+ ```
77
+
60
78
  ---
61
79
 
62
80
  ## 关键指标
@@ -88,3 +88,7 @@ P3/P4/P5 阶段有独立模块时,用 Task 工具并行派发自定义 Agents
88
88
  4. **状态** — 变更后 `.claude/project-state.md` 更新了吗?
89
89
 
90
90
  有疑问 → 用 Read 重读 `.claude/project-state.md`,不依赖记忆。详见 `.claude/rules/05-anti-amnesia.md`。
91
+
92
+ ### Bash 命令格式(必须遵守)
93
+
94
+ **所有 Bash 命令必须写成单行。** 禁止在 `2>&1`、`|`、`&&` 前换行,否则 zsh 会把下一行的内容当作独立命令执行导致报错。