sillyspec 3.7.29 → 3.7.30

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.
@@ -8,10 +8,9 @@ description: 项目自检 — 检查 CLI、配置、构建环境和外部依赖
8
8
  **在执行任何检查之前,先确认 SillySpec CLI 是否可用:**
9
9
 
10
10
  1. 运行 `sillyspec --version`
11
- 2. 如果失败,运行 `npx sillyspec --version`
12
- 3. 如果都失败:
13
- - 输出:❌ SillySpec CLI 未安装,后续检查无法执行
14
- - 给出安装命令:`npm install -g sillyspec`(生产环境)或 `npx sillyspec`(临时使用)
11
+ 2. 如果失败:
12
+ - 输出:❌ SillySpec CLI 未安装
13
+ - 给出安装命令:`npm install -g sillyspec`
15
14
  - 停止,不要继续后续步骤
16
15
 
17
16
  ## 执行
@@ -148,7 +148,6 @@ ls -la
148
148
  ```bash
149
149
  git init
150
150
  git add .
151
- git commit -m "chore: sillyspec init - project initialized"
152
151
  ```
153
152
 
154
153
  ### 最后说:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sillyspec",
3
- "version": "3.7.29",
3
+ "version": "3.7.30",
4
4
  "description": "SillySpec CLI — 流程状态机,让 AI 严格按步骤来",
5
5
  "icon": "logo.jpg",
6
6
  "homepage": "https://sillyspec.ppdmq.top/",
package/src/run.js CHANGED
@@ -106,6 +106,8 @@ function outputStep(stageName, stepIndex, steps, cwd) {
106
106
  console.log(`\n### ⚠️ 铁律`)
107
107
  console.log('- 只做本步骤描述的操作,不得自行扩展或跳过')
108
108
  console.log('- 不要回头修改已完成的步骤')
109
+ console.log('- 不要使用 npx 命令,直接使用 sillyspec(已全局安装)')
110
+ console.log('- 不要编造不存在的 CLI 子命令')
109
111
  console.log('- 完成后立即执行 --done 命令,不得跳过')
110
112
  console.log('- 生成的文件头部必须包含 author(git 用户名)和 created_at(精确到秒)')
111
113
  console.log('- 执行构建/测试前必须先读 local.yaml,优先使用其中配置的命令、路径和环境变量;未配置时才使用默认值')
@@ -164,8 +164,9 @@ export const definition = {
164
164
  prompt: `撰写 design 文档并进行 AI 自审。
165
165
 
166
166
  ### 操作
167
- 1. 将确认的设计写入 \`.sillyspec/changes/<变更名>/design.md\`
168
- 2. 自审检查:
167
+ 1. 确认变更目录存在:\`mkdir -p .sillyspec/changes/<变更名>\`(Windows 用 \`mkdir .sillyspec\\changes\\<变更名>\` 或 PowerShell \`New-Item -ItemType Directory -Force -Path .sillyspec/changes/<变更名>\`)
168
+ 2. 将确认的设计写入 \`.sillyspec/changes/<变更名>/design.md\`
169
+ 3. 自审检查:
169
170
  - 需求覆盖:是否完整覆盖 Step 6 确认的需求
170
171
  - 约束一致性:是否与 CONVENTIONS.md、ARCHITECTURE.md 一致
171
172
  - 真实性:表名/字段名来自真实 schema 或标注"新增"
@@ -281,7 +281,7 @@ timeout 5 which docker 2>/dev/null && echo "✅ Docker 可用" || echo "ℹ️ D
281
281
  根据问题类型给出具体可操作的修复命令:
282
282
 
283
283
  **常见问题及修复:**
284
- - CLI 未安装 → \`npm install -g sillyspec\` 或 \`npx sillyspec\`
284
+ - CLI 未安装 → \`npm install -g sillyspec\`
285
285
  - 缺少 local.yaml → \`sillyspec init\` 重新生成,或手动创建
286
286
  - local.yaml 缺少 build/test → 补充对应命令
287
287
  - 缺少 STACK.md → \`sillyspec run scan\` 重新扫描
@@ -106,7 +106,8 @@ Wave 3(依赖 Wave 2):Task 4`,
106
106
  prompt: `保存计划文件,更新进度。
107
107
 
108
108
  ### 操作
109
- 1. 保存到 \`.sillyspec/changes/<变更名>/plan.md\`
109
+ 1. 确认变更目录存在:\`mkdir -p .sillyspec/changes/<变更名>\`
110
+ 2. 保存到 \`.sillyspec/changes/<变更名>/plan.md\`
110
111
 
111
112
  ### 输出
112
113
  计划文件路径 + 下一步命令`,