sillyspec 3.11.5 → 3.11.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/run.js +9 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sillyspec",
3
- "version": "3.11.5",
3
+ "version": "3.11.6",
4
4
  "description": "SillySpec CLI — 流程状态机,让 AI 严格按步骤来",
5
5
  "icon": "logo.jpg",
6
6
  "homepage": "https://sillyspec.ppdmq.top/",
package/src/run.js CHANGED
@@ -233,17 +233,18 @@ export async function runCommand(args, cwd) {
233
233
  if (autoChange) {
234
234
  progress = pm.initChange(cwd, autoChange)
235
235
  } else if (!isAuxiliary) {
236
- // brainstorm / propose 作为流程入口,可以自动创建变更
236
+ // brainstorm / propose 作为流程入口,自动生成变更名并初始化
237
237
  if (stageName === 'brainstorm' || stageName === 'propose') {
238
- // 引导用户指定变更名
239
- console.error('❌ 请指定变更名')
240
- console.error(' 用法: sillyspec run brainstorm --change <变更名>')
241
- console.error(' 示例: sillyspec run brainstorm --change 2026-05-28-agent-log-streaming')
238
+ const date = new Date().toISOString().slice(0, 10)
239
+ const autoName = `${date}-new-change`
240
+ console.log(`🔄 自动创建变更:${autoName}`)
241
+ console.log(` 提示:可以用 --change <名称> 指定自定义变更名`)
242
+ progress = pm.initChange(cwd, autoName)
243
+ changeName = autoName
244
+ } else {
245
+ console.error('❌ 未找到 progress.json,请先运行 sillyspec init 或指定 --change <变更名>')
242
246
  process.exit(1)
243
247
  }
244
- console.error('❌ 未找到 progress.json,请先运行 sillyspec init')
245
- console.error(' 提示:使用 --change <name> 指定变更名')
246
- process.exit(1)
247
248
  }
248
249
  }
249
250