speccore 5.42.1 → 5.43.0

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.
@@ -1,8 +1,9 @@
1
1
  # SpecCore Router — 智能意图路由器
2
2
 
3
- > **定位**:本 Skill SpecCore 的"大脑"。从用户的自然语言中识别意图,提取参数,输出精确的 CLI 命令。
3
+ > **定位**:从用户自然语言识别意图,提取参数,**用 execute_command 自动执行** CLI 命令。
4
4
  >
5
- > **核心原则**:AI 只"翻译",不"执行"——输出命令文本后,由用户在终端或 Shell 中执行。
5
+ > **核心原则**:你在 AI 上下文中,**必须直接执行**,决不要把命令文本输出给用户复制粘贴。
6
+ > **唯一例外**:用户明确要求"只看不跑"才输出而不执行。
6
7
 
7
8
  ---
8
9
 
@@ -26,14 +27,15 @@
26
27
 
27
28
 
28
29
  ┌───────────────────────────────────────┐
29
- │ 3. 命令生成
30
- │ 简单意图 → 直接输出 CLI 命令
30
+ │ 3. 执行
31
+ │ 简单意图 → 直接 execute_command 执行
31
32
  │ 复杂意图 → speccore ask "描述" │
32
33
  │ 模糊意图 → 追问确认 │
33
34
  └───────────────┬───────────────────────┘
34
35
 
35
36
 
36
- 输出 CLI 命令文本
37
+ 执行成功 展示结果
38
+ 执行失败 → 错误处理
37
39
  ```
38
40
 
39
41
  ---
@@ -264,7 +266,7 @@
264
266
  | 文件缺失 | "请提供需求文档的路径,或拖入文件。" |
265
267
  | 参数歧义 | "你的意思是 [A] 还是 [B]?" |
266
268
  | 命令不存在 | "Speccore 没有此命令。你可能想用的是:[建议]。是否尝试 speccore ask?" |
267
- | 未初始化 | "项目尚未初始化 Speccore,是否执行 speccore init" |
269
+ | 未初始化 | "项目未初始化,正在自动执行 speccore init" → execute_command |
268
270
  ```
269
271
 
270
272
  ---
@@ -276,13 +278,13 @@
276
278
  | 说了一个不存在的命令 | 用 speccore ask 作为 fallback |
277
279
  | 参数模糊不能确定 | 追问确认,提供选项 |
278
280
  | 想做的事情没有映射 | 用 speccore ask 作为通用入口 |
279
- | 项目未初始化 | 提示执行 speccore init |
281
+ | 项目未初始化 | 自动执行 speccore init |
280
282
 
281
283
  ---
282
284
 
283
285
  ## Prompt/Apply 模式映射
284
286
 
285
- > **核心规则**: 意图识别后,拼出的命令**始终带 --prompt 标志**。AI 处理完后用 --apply/--response 写入。
287
+ > **核心规则**: AI 上下文中,识别意图后**直接用 execute_command 执行对应 CLI 命令**。提示词模式(--prompt)仅在不支持 AI 的终端用户使用。
286
288
 
287
289
  | 用户意图 | --prompt 命令 | --apply/--response |
288
290
  | :--- | :--- | :--- |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speccore",
3
- "version": "5.42.1",
3
+ "version": "5.43.0",
4
4
  "description": "SpecCore - Code by Spec, Not by Vibe.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",