create-specfuse 0.18.0 → 0.19.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.
- package/README.md +27 -9
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/prompts.d.ts +2 -0
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +32 -2
- package/dist/prompts.js.map +1 -1
- package/dist/scaffolder.d.ts.map +1 -1
- package/dist/scaffolder.js +44 -1
- package/dist/scaffolder.js.map +1 -1
- package/dist/templates/claude-md.d.ts.map +1 -1
- package/dist/templates/claude-md.js +5 -3
- package/dist/templates/claude-md.js.map +1 -1
- package/dist/templates/specfuse-command.d.ts +2 -19
- package/dist/templates/specfuse-command.d.ts.map +1 -1
- package/dist/templates/specfuse-command.js +121 -37
- package/dist/templates/specfuse-command.js.map +1 -1
- package/dist/templates/specfuse-flash-agent.d.ts +12 -0
- package/dist/templates/specfuse-flash-agent.d.ts.map +1 -0
- package/dist/templates/specfuse-flash-agent.js +70 -0
- package/dist/templates/specfuse-flash-agent.js.map +1 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> 把 AI 编码从即兴发挥,改造成工程流水线。
|
|
4
4
|
|
|
5
|
-
SpecFuse 不发明新工具。它把 OpenSpec(流程引擎)和 Superpowers(行为约束)编排成一条 **Think → Do → FuseReview → Verify** 四拍流水线,一条命令注入任何项目——它不产生新能力,它约束产出可靠性。端到端 QA 默认是按需技能;`/specfuse:full` 会把它作为完整流水线的一步自动执行。
|
|
5
|
+
SpecFuse 不发明新工具。它把 OpenSpec(流程引擎)和 Superpowers(行为约束)编排成一条 **Think → Do → FuseReview → Verify** 四拍流水线,一条命令注入任何项目——它不产生新能力,它约束产出可靠性。端到端 QA 默认是按需技能;`/specfuse:full` 与 `/specfuse:flashmode` 会把它作为完整流水线的一步自动执行。
|
|
6
6
|
|
|
7
7
|
## 快速开始
|
|
8
8
|
|
|
@@ -33,12 +33,15 @@ my-app/
|
|
|
33
33
|
│ │ ├── opsx/ # OpenSpec 提供:/opsx:* 命令面
|
|
34
34
|
│ │ ├── specfuse.md # SpecFuse 提供:全自动四拍入口
|
|
35
35
|
│ │ └── specfuse/
|
|
36
|
-
│ │
|
|
36
|
+
│ │ ├── full.md # SpecFuse 提供:全自动完整入口(含 FuseQA)
|
|
37
|
+
│ │ └── flashmode.md # SpecFuse 提供:成本优化完整入口
|
|
38
|
+
│ ├── agents/
|
|
39
|
+
│ │ └── specfuse-flash.md # SpecFuse 提供:flash subagent 定义(绑定模型 id)
|
|
37
40
|
│ └── skills/
|
|
38
41
|
│ ├── design-md/ # 设计令牌生成技能(含 16 个原型模板)
|
|
39
42
|
│ ├── fusedoc/ # 文档标准技能(含 3 份参考文件)
|
|
40
43
|
│ ├── fusereview/ # 实施后代码评审技能
|
|
41
|
-
│ ├── fuseqa/ #
|
|
44
|
+
│ ├── fuseqa/ # 端到端验收技能(默认按需;full/flashmode 自动执行)
|
|
42
45
|
│ └── openspec-*/ # OpenSpec 提供:随其 init 生成
|
|
43
46
|
├── .agents/ # dsh 选装(仅在选择 dsh 时生成)
|
|
44
47
|
│ └── skills/
|
|
@@ -86,9 +89,9 @@ FuseReview apply 收尾检查点 —— 冷读评审
|
|
|
86
89
|
Verify /opsx:verify → /opsx:archive —— 全量验收与归档
|
|
87
90
|
```
|
|
88
91
|
|
|
89
|
-
默认四拍不含 FuseQA:需要时显式调用 `/fuseqa`,或用 `/specfuse:full` 自动执行。
|
|
92
|
+
默认四拍不含 FuseQA:需要时显式调用 `/fuseqa`,或用 `/specfuse:full`、`/specfuse:flashmode` 自动执行。
|
|
90
93
|
|
|
91
|
-
### 无人值守:`/specfuse` 与 `/specfuse:
|
|
94
|
+
### 无人值守:`/specfuse`、`/specfuse:full` 与 `/specfuse:flashmode`
|
|
92
95
|
|
|
93
96
|
需求已经明确、不想逐拍确认时,用一条命令跑完整条流水线:
|
|
94
97
|
|
|
@@ -96,8 +99,20 @@ Verify /opsx:verify → /opsx:archive —— 全量验收与归档
|
|
|
96
99
|
|---|---|---|
|
|
97
100
|
| `/specfuse <需求描述>` | Think → Do → FuseReview → Verify → archive | 不进入;需要时单独调用 `/fuseqa` |
|
|
98
101
|
| `/specfuse:full <需求描述>` | Think → Do → FuseReview → **FuseQA** → Verify → archive | 自动进入,记录 `auto: entered` |
|
|
102
|
+
| `/specfuse:flashmode <需求描述>` | Think → Do → FuseReview → **FuseQA** → Verify → archive | Do、FuseReview、FuseQA 由 `specfuse-flash` subagent(默认 `deepseek-flash[1m]`)执行,其余节拍主模型 |
|
|
99
103
|
|
|
100
|
-
|
|
104
|
+
这些命令都由模型按推荐答案自答并记录在最终报告中:模型切换默认不切换,FuseReview 自动进入,verify 全部通过后 archive,全程不 commit、不 push。verify 仍失败时不 archive,保留变更目录并把失败写进报告。`/specfuse:full` 把 FuseQA 放在 FuseReview 之后、Verify 之前,让它新写的用例进入随后的全量测试。默认的 `/opsx:*` 交互行为不受影响。
|
|
105
|
+
|
|
106
|
+
### Flashmode(成本优化)
|
|
107
|
+
|
|
108
|
+
`/specfuse:flashmode <需求描述>` 按 `/specfuse:full` 的完整顺序执行,但把 Do、FuseReview、FuseQA 三拍交给 `specfuse-flash` 的 subagent;Think(制品)、Verify 与归档仍由主模型完成。subagent 顺序执行,不使用 worktree,也没有 merge。
|
|
109
|
+
|
|
110
|
+
- agent 定义在 `.claude/agents/specfuse-flash.md`,模型 id 写在它的 `model:` 行。初始化时回答第四个问题,或在非交互模式用 `--flash-model` 指定;之后改这一行即可。
|
|
111
|
+
- 默认值是 `deepseek-flash[1m]`,它必须由你的模型路由提供;否则第一次派发会失败,报告会指出该文件。
|
|
112
|
+
- 脚手架运行时已打开的 Claude Code 会话不会加载新写入的 agent 定义,需要新开一个 Claude Code 会话。
|
|
113
|
+
- `CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1` 会让宿主忽略所有 agent 定义的 `model`,包括这一个。
|
|
114
|
+
- dsh 没有 flashmode 入口:该模式依赖 Claude Code 的具名 agent 与模型绑定。
|
|
115
|
+
- Do 的交接记录与证据先放在被 `.gitignore` 忽略的 `tmp/` 目录,评审结束后移入 change 目录的 `handoff/` 与 `evidence/`,随归档保留。
|
|
101
116
|
|
|
102
117
|
### Think
|
|
103
118
|
|
|
@@ -117,9 +132,9 @@ Verify /opsx:verify → /opsx:archive —— 全量验收与归档
|
|
|
117
132
|
- Blocking 发现走 TDD 修复;修复后只复审修复 diff,不进行第二轮全量评审。
|
|
118
133
|
- 跳过评审必须记录在收尾报告中留痕。
|
|
119
134
|
|
|
120
|
-
### FuseQA(默认按需;`/specfuse:full` 自动执行)
|
|
135
|
+
### FuseQA(默认按需;`/specfuse:full` 与 `/specfuse:flashmode` 自动执行)
|
|
121
136
|
|
|
122
|
-
- 默认只有显式调用 `/fuseqa` 才执行;`/specfuse:full` 会在 FuseReview 之后、Verify 之前自动执行。没有检查点,不进入 apply 收尾,也不影响 verify。
|
|
137
|
+
- 默认只有显式调用 `/fuseqa` 才执行;`/specfuse:full` 与 `/specfuse:flashmode` 会在 FuseReview 之后、Verify 之前自动执行。没有检查点,不进入 apply 收尾,也不影响 verify。
|
|
123
138
|
- 适合能在本地完整部署和验证的小项目:CLI、小型服务、库、本地 Web 应用。
|
|
124
139
|
- 分布式系统在本地复现不了真实拓扑、网络分区与共享状态竞争,应在 CI/CD 中运行等价检查,而不是在开发阶段做本地 QA。
|
|
125
140
|
- 方法仍完整保留:从 specs 的 Scenario 派生用例、真实入口、构建产物而非 `src/`、归因分级、用例台账。
|
|
@@ -158,6 +173,8 @@ Verify /opsx:verify → /opsx:archive —— 全量验收与归档
|
|
|
158
173
|
| `.claude/commands/specfuse.md` | 已存在 → 不覆盖 |
|
|
159
174
|
| `.claude/commands/specfuse/full.md` | 已存在 → 不覆盖 |
|
|
160
175
|
| `.agents/skills/*` | 选装 dsh 时写入;已存在 → 不覆盖 |
|
|
176
|
+
| `.claude/agents/specfuse-flash.md` | 已存在 → 不覆盖;与 `--flash-model` 不同时打印提示 |
|
|
177
|
+
| `.claude/commands/specfuse/flashmode.md` | 已存在 → 不覆盖 |
|
|
161
178
|
|
|
162
179
|
技能与命令已存在时不会被覆盖。已有项目升级到四拍时,先删除 `.claude/skills/fuseqa/SKILL.md`、`.claude/skills/fusereview/SKILL.md`、`.claude/commands/specfuse.md`,以及对应的 `.agents/skills/fuseqa/`、`.agents/skills/fusereview/`、`.agents/skills/specfuse/`、`.agents/skills/specfuse-full/`,再运行 scaffolder:`CLAUDE.md` 的 FUSION 块会被替换,这些文件会按新模板重写。重新运行时需勾选 dsh 或加 `--dsh`,`.agents` 下的文件才会重写。其它用户自定义技能不受影响。
|
|
163
180
|
|
|
@@ -185,11 +202,12 @@ Arguments:
|
|
|
185
202
|
Options:
|
|
186
203
|
-y, --yes 非交互模式(全取默认值,CI 友好)
|
|
187
204
|
--dsh 非交互模式下一并安装 DeepSeek Harness (dsh) 支持
|
|
205
|
+
--flash-model <model-id> flash subagent 的模型 id(默认 deepseek-flash[1m])
|
|
188
206
|
-V, --version 版本号
|
|
189
207
|
-h, --help 帮助
|
|
190
208
|
```
|
|
191
209
|
|
|
192
|
-
|
|
210
|
+
交互模式依次询问四个问题:是否初始化 git(仅新目录)、是否初始化 OpenSpec、安装目标(多选:`Claude Code` 默认勾选且必须保留,`DeepSeek Harness (dsh)` 选装)、flash 模型 id(默认 `deepseek-flash[1m]`,直接回车即用)。项目名由参数给出,不提问。
|
|
193
211
|
|
|
194
212
|
启动脚手架时先打印一行 `SpecFuse v<版本>`,便于确认当前运行版本;`--version` 仍只输出裸版本号,`--help` 不含该行。
|
|
195
213
|
|
package/dist/index.js
CHANGED
|
@@ -19,10 +19,14 @@ program
|
|
|
19
19
|
.argument('[project-name]', 'Target directory (omit or use "." to init in current directory)')
|
|
20
20
|
.option('-y, --yes', 'Non-interactive mode (use defaults, CI-friendly)')
|
|
21
21
|
.option('--dsh', 'Include DeepSeek Harness (dsh) support (opt-in; Claude Code is the default)')
|
|
22
|
+
.option('--flash-model <model-id>', 'Flash model id for the specfuse-flash subagent (default: deepseek-flash[1m])')
|
|
22
23
|
.action(async (projectName, opts) => {
|
|
23
24
|
try {
|
|
24
25
|
console.log(formatVersionBanner(pkg.version));
|
|
25
|
-
const config = await collectProjectConfig(projectName, opts.yes, {
|
|
26
|
+
const config = await collectProjectConfig(projectName, opts.yes, {
|
|
27
|
+
dsh: opts.dsh,
|
|
28
|
+
flashModel: opts.flashModel,
|
|
29
|
+
});
|
|
26
30
|
await scaffold(config);
|
|
27
31
|
}
|
|
28
32
|
catch (err) {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;AAExF,MAAM,UAAU,mBAAmB,CAAC,OAAe;IACjD,OAAO,aAAa,OAAO,EAAE,CAAC;AAChC,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,OAAO,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E,CAAC;IACnB,OAAO,CAAC,KAAK,EAAE,CAAC;AAClB,CAAC"}
|
package/dist/prompts.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import type { ProjectConfig } from './types.js';
|
|
|
2
2
|
export interface CollectOptions {
|
|
3
3
|
/** Include DeepSeek Harness (dsh) in the installation targets. */
|
|
4
4
|
dsh?: boolean;
|
|
5
|
+
/** The flash model id requested on the command line. */
|
|
6
|
+
flashModel?: string;
|
|
5
7
|
}
|
|
6
8
|
export declare function collectProjectConfig(projectNameArg?: string, skipPrompts?: boolean, options?: CollectOptions): Promise<ProjectConfig>;
|
|
7
9
|
//# sourceMappingURL=prompts.d.ts.map
|
package/dist/prompts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAMhD,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,oBAAoB,CACxC,cAAc,CAAC,EAAE,MAAM,EACvB,WAAW,CAAC,EAAE,OAAO,EACrB,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,aAAa,CAAC,CA4ExB"}
|
package/dist/prompts.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
-
import {
|
|
2
|
+
import { existsSync } from 'node:fs';
|
|
3
|
+
import { confirm, checkbox, input } from '@inquirer/prompts';
|
|
4
|
+
import { DEFAULT_FLASH_MODEL, validateFlashModel } from './templates/specfuse-flash-agent.js';
|
|
3
5
|
const TARGET_CLAUDE = 'claude';
|
|
4
6
|
const TARGET_DSH = 'dsh';
|
|
5
7
|
export async function collectProjectConfig(projectNameArg, skipPrompts, options = {}) {
|
|
@@ -17,6 +19,14 @@ export async function collectProjectConfig(projectNameArg, skipPrompts, options
|
|
|
17
19
|
}
|
|
18
20
|
targetDir = path.join(process.cwd(), projectName);
|
|
19
21
|
}
|
|
22
|
+
// Validate the option before any prompt: a bad id must fail before the user
|
|
23
|
+
// answers three questions for a run that cannot be written.
|
|
24
|
+
const requestedFlashModel = options.flashModel?.trim();
|
|
25
|
+
if (requestedFlashModel !== undefined) {
|
|
26
|
+
const valid = validateFlashModel(requestedFlashModel);
|
|
27
|
+
if (valid !== true)
|
|
28
|
+
throw new Error(valid);
|
|
29
|
+
}
|
|
20
30
|
const initGit = isExisting
|
|
21
31
|
? false
|
|
22
32
|
: (skipPrompts ? true : await confirm({ message: 'Initialize git repository?', default: true }));
|
|
@@ -41,6 +51,26 @@ export async function collectProjectConfig(projectNameArg, skipPrompts, options
|
|
|
41
51
|
});
|
|
42
52
|
initDsh = targets.includes(TARGET_DSH);
|
|
43
53
|
}
|
|
44
|
-
|
|
54
|
+
// The question is skipped when the agent definition already exists: the
|
|
55
|
+
// scaffold preserves that file, so a new answer could not reach it.
|
|
56
|
+
let flashModel = requestedFlashModel;
|
|
57
|
+
const definitionPath = path.join(targetDir, '.claude', 'agents', 'specfuse-flash.md');
|
|
58
|
+
if (!skipPrompts && !existsSync(definitionPath)) {
|
|
59
|
+
const answer = await input({
|
|
60
|
+
message: 'Flash model id for the specfuse-flash subagent?',
|
|
61
|
+
default: requestedFlashModel ?? DEFAULT_FLASH_MODEL,
|
|
62
|
+
validate: (value) => validateFlashModel(value.trim()),
|
|
63
|
+
});
|
|
64
|
+
flashModel = answer.trim();
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
projectName,
|
|
68
|
+
initGit,
|
|
69
|
+
initOpenspec,
|
|
70
|
+
initDsh,
|
|
71
|
+
...(flashModel !== undefined ? { flashModel } : {}),
|
|
72
|
+
targetDir,
|
|
73
|
+
isExisting,
|
|
74
|
+
};
|
|
45
75
|
}
|
|
46
76
|
//# sourceMappingURL=prompts.js.map
|
package/dist/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE9F,MAAM,aAAa,GAAG,QAAQ,CAAC;AAC/B,MAAM,UAAU,GAAG,KAAK,CAAC;AASzB,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,cAAuB,EACvB,WAAqB,EACrB,UAA0B,EAAE;IAE5B,MAAM,UAAU,GAAG,cAAc,KAAK,SAAS,IAAI,cAAc,KAAK,GAAG,CAAC;IAE1E,IAAI,WAAmB,CAAC;IACxB,IAAI,SAAiB,CAAC;IAEtB,IAAI,UAAU,EAAE,CAAC;QACf,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QAC1B,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACzC,CAAC;SAAM,CAAC;QACN,WAAW,GAAG,cAAc,CAAC;QAC7B,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YAC1C,MAAM,IAAI,KAAK,CAAC,qEAAqE,CAAC,CAAC;QACzF,CAAC;QACD,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
+
{"version":3,"file":"scaffolder.d.ts","sourceRoot":"","sources":["../src/scaffolder.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAkPhD,wBAAsB,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAwRnE"}
|
package/dist/scaffolder.js
CHANGED
|
@@ -11,7 +11,9 @@ import { composeDesignMdSkill } from './templates/design-md-skill.js';
|
|
|
11
11
|
import { composeFuseReviewSkill } from './templates/fusereview-skill.js';
|
|
12
12
|
import { composeFuseQASkill } from './templates/fuseqa-skill.js';
|
|
13
13
|
import { composeFuseDocSkill } from './templates/fusedoc-skill.js';
|
|
14
|
-
import { composeSpecfuseCommand, composeSpecfuseDshSkill, composeSpecfuseFullCommand } from './templates/specfuse-command.js';
|
|
14
|
+
import { composeSpecfuseCommand, composeSpecfuseDshSkill, composeSpecfuseFlashmodeCommand, composeSpecfuseFullCommand, } from './templates/specfuse-command.js';
|
|
15
|
+
import { DEFAULT_FLASH_MODEL, composeSpecfuseFlashAgent, validateFlashModel, } from './templates/specfuse-flash-agent.js';
|
|
16
|
+
import { parse as parseYaml } from 'yaml';
|
|
15
17
|
import { composeCLAUDEmd } from './templates/claude-md.js';
|
|
16
18
|
import { createDir, writeText, writeJSON, writeYAML } from './utils/fs.js';
|
|
17
19
|
import { gitInit, gitInitialCommit } from './utils/git.js';
|
|
@@ -90,6 +92,18 @@ async function trustDirectory(absPath) {
|
|
|
90
92
|
data.projects[absPath].hasTrustDialogAccepted = true;
|
|
91
93
|
await writeFile(claudeJsonPath, JSON.stringify(data, null, 2) + '\n', 'utf-8');
|
|
92
94
|
}
|
|
95
|
+
function readAgentModel(markdown) {
|
|
96
|
+
const match = /^---\n([\s\S]*?)\n---\n/.exec(markdown);
|
|
97
|
+
if (!match)
|
|
98
|
+
return undefined;
|
|
99
|
+
try {
|
|
100
|
+
const parsed = parseYaml(match[1]);
|
|
101
|
+
return isJsonObject(parsed) && typeof parsed.model === 'string' ? parsed.model : undefined;
|
|
102
|
+
}
|
|
103
|
+
catch {
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
93
107
|
async function fileExists(filePath) {
|
|
94
108
|
try {
|
|
95
109
|
await access(filePath);
|
|
@@ -187,6 +201,14 @@ async function copyTemplateDir(srcDir, destDir) {
|
|
|
187
201
|
}
|
|
188
202
|
export async function scaffold(config) {
|
|
189
203
|
const { targetDir, projectName, isExisting } = config;
|
|
204
|
+
// Validate before the first write: a direct caller with a bad id must not
|
|
205
|
+
// leave a half-written project behind.
|
|
206
|
+
if (config.flashModel !== undefined) {
|
|
207
|
+
const valid = validateFlashModel(config.flashModel);
|
|
208
|
+
if (valid !== true)
|
|
209
|
+
throw new Error(valid);
|
|
210
|
+
}
|
|
211
|
+
const flashModel = config.flashModel ?? DEFAULT_FLASH_MODEL;
|
|
190
212
|
const ctx = { projectName };
|
|
191
213
|
let openspecStatus = 'skipped';
|
|
192
214
|
const openspecAdapters = config.initDsh ? ['claude', 'agents'] : ['claude'];
|
|
@@ -258,6 +280,25 @@ export async function scaffold(config) {
|
|
|
258
280
|
await installSkillFile(path.join(targetDir, '.claude', 'commands', 'specfuse.md'), composeSpecfuseCommand());
|
|
259
281
|
spinner.text = 'Writing .claude/commands/specfuse/full.md...';
|
|
260
282
|
await installSkillFile(path.join(targetDir, '.claude', 'commands', 'specfuse', 'full.md'), composeSpecfuseFullCommand());
|
|
283
|
+
spinner.text = 'Writing .claude/commands/specfuse/flashmode.md...';
|
|
284
|
+
await installSkillFile(path.join(targetDir, '.claude', 'commands', 'specfuse', 'flashmode.md'), composeSpecfuseFlashmodeCommand());
|
|
285
|
+
// The agent definition carries the flash model id. An existing definition is
|
|
286
|
+
// never rewritten, so a requested id that differs is reported instead.
|
|
287
|
+
const definitionPath = path.join(targetDir, '.claude', 'agents', 'specfuse-flash.md');
|
|
288
|
+
const existingDefinition = await readTextSafe(definitionPath);
|
|
289
|
+
spinner.text = 'Writing .claude/agents/specfuse-flash.md...';
|
|
290
|
+
await installSkillFile(definitionPath, composeSpecfuseFlashAgent(flashModel));
|
|
291
|
+
if (existingDefinition !== null && config.flashModel !== undefined) {
|
|
292
|
+
const heldModel = readAgentModel(existingDefinition);
|
|
293
|
+
if (heldModel === undefined) {
|
|
294
|
+
console.log(` Keeping .claude/agents/specfuse-flash.md; its model could not be read. ` +
|
|
295
|
+
'Edit its model: line to change it.');
|
|
296
|
+
}
|
|
297
|
+
else if (heldModel !== config.flashModel) {
|
|
298
|
+
console.log(` Keeping .claude/agents/specfuse-flash.md (model: ${heldModel}); ` +
|
|
299
|
+
`edit its model: line to use ${config.flashModel}.`);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
261
302
|
// dsh entry points: user-invocable skills, hidden from the model catalog.
|
|
262
303
|
if (config.initDsh) {
|
|
263
304
|
spinner.text = 'Writing .agents/skills/specfuse/SKILL.md...';
|
|
@@ -339,6 +380,8 @@ export async function scaffold(config) {
|
|
|
339
380
|
console.log(` .claude/skills/fusedoc/ ${chalk.dim('Documentation standard')}`);
|
|
340
381
|
console.log(` .claude/commands/specfuse.md ${chalk.dim('Unattended pipeline')}`);
|
|
341
382
|
console.log(` .claude/commands/specfuse/full.md ${chalk.dim('Complete unattended pipeline')}`);
|
|
383
|
+
console.log(` .claude/commands/specfuse/flashmode.md ${chalk.dim('Cost-optimized pipeline')}`);
|
|
384
|
+
console.log(` .claude/agents/specfuse-flash.md ${chalk.dim('Flash subagent definition')}`);
|
|
342
385
|
if (config.initDsh) {
|
|
343
386
|
console.log(` .agents/skills/ ${chalk.dim('dsh-discoverable skills')}`);
|
|
344
387
|
console.log(` .agents/skills/specfuse/ ${chalk.dim('dsh: /specfuse')}`);
|
package/dist/scaffolder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffolder.js","sourceRoot":"","sources":["../src/scaffolder.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,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AC;QACtE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,mEAAmE,CAAC,CAAC,CAAC;QAC5F,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,CAAC;QACpD,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-md.d.ts","sourceRoot":"","sources":["../../src/templates/claude-md.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAyFnD,wBAAgB,gBAAgB,IAAI,MAAM,CA0DzC;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CA2B9C;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAkB7C;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAY9C;AAED,wBAAgB,cAAc,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"claude-md.d.ts","sourceRoot":"","sources":["../../src/templates/claude-md.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAyFnD,wBAAgB,gBAAgB,IAAI,MAAM,CA0DzC;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CA2B9C;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAkB7C;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAY9C;AAED,wBAAgB,cAAc,IAAI,MAAM,CA4BvC;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAU1C;AAiBD,wBAAgB,eAAe,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAsC7D"}
|
|
@@ -170,7 +170,7 @@ FuseReview is the post-apply review: Think reviews direction, Do produces code,
|
|
|
170
170
|
export function renderFuseQAOnDemand() {
|
|
171
171
|
return `### On-Demand: FuseQA (E2E Verification)
|
|
172
172
|
|
|
173
|
-
FuseQA verifies the built artifact through real user entry points. It is **not part of the default \`/specfuse\` pipeline — not a pipeline beat — and has no checkpoint**: \`/specfuse\` never invokes it, and neither apply completion nor entry to Verify depends on a FuseQA decision. Run it explicitly with \`/fuseqa\` when local end-to-end verification is meaningful; \`/specfuse:full\`
|
|
173
|
+
FuseQA verifies the built artifact through real user entry points. It is **not part of the default \`/specfuse\` pipeline — not a pipeline beat — and has no checkpoint**: \`/specfuse\` never invokes it, and neither apply completion nor entry to Verify depends on a FuseQA decision. Run it explicitly with \`/fuseqa\` when local end-to-end verification is meaningful; \`/specfuse:full\` and \`/specfuse:flashmode\` are the complete variants that enter it automatically after FuseReview and before Verify.
|
|
174
174
|
|
|
175
175
|
**Applicability.** Use it when the artifact can be deployed and exercised locally — a CLI, a small service, a library, a local web app. A distributed system cannot be meaningfully exercised on one machine; run equivalent checks in CI/CD rather than in the development phase.
|
|
176
176
|
|
|
@@ -209,7 +209,7 @@ export function renderAutoMode() {
|
|
|
209
209
|
- **Design tokens:** when the three-gate test triggers \`/design-md\`, answer the questionnaire with recommended values; never overwrite an existing \`DESIGN-TOKENS.md\`.
|
|
210
210
|
- **Model switch:** record \`continue with current model\`; do not switch and do not ask.
|
|
211
211
|
- **FuseReview:** record \`auto: entered\` and run the review.
|
|
212
|
-
- **FuseQA:** under \`/specfuse\`, not part of the pipeline; do not invoke it. It remains available only through an explicit \`/fuseqa\` request or the \`/specfuse:full\`
|
|
212
|
+
- **FuseQA:** under \`/specfuse\`, not part of the pipeline; do not invoke it. It remains available only through an explicit \`/fuseqa\` request or the \`/specfuse:full\` and \`/specfuse:flashmode\` variants.
|
|
213
213
|
- **Path B pace control:** generate all artifacts in one pass; do not stop between artifacts for review.
|
|
214
214
|
|
|
215
215
|
**Execution order.** Brainstorming decisions → proposal → specs → design → tasks → apply under \`test-driven-development\` and \`verification-before-completion\` → FuseReview → verify → archive. The command definition at \`.claude/commands/specfuse.md\` carries the full procedure.
|
|
@@ -218,9 +218,11 @@ export function renderAutoMode() {
|
|
|
218
218
|
|
|
219
219
|
**Full variant.** \`/specfuse:full\` runs the same policy but enters FuseQA after FuseReview and before Verify, recording \`auto: entered\` for both decisions. It keeps the no-commit/no-push and verify-gates-archive rules unchanged; \`/specfuse\` still leaves FuseQA on demand.
|
|
220
220
|
|
|
221
|
+
**Flashmode variant.** \`/specfuse:flashmode\` runs the same sequence with Do, FuseReview, and FuseQA on \`specfuse-flash\` subagents, one per beat; the main model writes the artifacts, runs Verify, and archives. The command is \`.claude/commands/specfuse/flashmode.md\` and the agent definition is \`.claude/agents/specfuse-flash.md\`. A \`specfuse-flash\` subagent follows its agent definition: the checkpoint questions above and the subagent-mode trigger do not apply to it, and it asks no question.
|
|
222
|
+
|
|
221
223
|
**Verify gates archive.** Archive only after \`/opsx:verify\`, the project's full test suite, and the project's linter pass. If any check still fails after best-effort repair, do not archive; keep the change directory and write each failure with its raw output into the final report.
|
|
222
224
|
|
|
223
|
-
**Worktree isolation.** When a worktree trigger condition is met, create and enter the worktree before writing any artifact, so the whole pipeline stays inside it. Never merge it back to the trunk; leave it in place for the user to inspect. If worktree creation fails, continue in the current working tree and record the fallback. Because auto mode does not commit, FuseReview reads the working-tree diff from the baseline, including untracked files. Subagent-driven development is not used under auto mode: its integration step requires a merge.
|
|
225
|
+
**Worktree isolation.** When a worktree trigger condition is met, create and enter the worktree before writing any artifact, so the whole pipeline stays inside it. Never merge it back to the trunk; leave it in place for the user to inspect. If worktree creation fails, continue in the current working tree and record the fallback. Because auto mode does not commit, FuseReview reads the working-tree diff from the baseline, including untracked files. Subagent-driven development is not used to parallelize work under auto mode: its integration step requires a merge. \`/specfuse:flashmode\` dispatches one subagent at a time into the same workspace, with no worktree per subagent and no merge.
|
|
224
226
|
|
|
225
227
|
**Prohibitions.** Never run \`git commit\`, \`git push\`, or \`git merge\`. Auto mode does not waive TDD, verification evidence, or the documentation standard.
|
|
226
228
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-md.js","sourceRoot":"","sources":["../../src/templates/claude-md.ts"],"names":[],"mappings":"AAEA,SAAS,sBAAsB;IAC7B,OAAO;;iCAEwB,CAAC;AAClC,CAAC;AAED,SAAS,uBAAuB;IAC9B,OAAO;;;;;;;;;;;;;oJAa2I,CAAC;AACrJ,CAAC;AAED,SAAS,WAAW;IAClB,OAAO;;;;;;;;;;;;;;;;+DAgBsD,CAAC;AAChE,CAAC;AAED,SAAS,WAAW;IAClB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;4EAwBmE,CAAC;AAC7E,CAAC;AAED,SAAS,iBAAiB;IACxB,OAAO;;;;;;;;;;;;qGAY4F,CAAC;AACtG,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAwDuC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,qBAAqB;IACnC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;uHAyB8G,CAAC;AACxH,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,OAAO;;;;;;;;;;;;;;;;6DAgBoD,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,qBAAqB;IACnC,OAAO;;;;;;;;;;wHAU+G,CAAC;AACzH,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO
|
|
1
|
+
{"version":3,"file":"claude-md.js","sourceRoot":"","sources":["../../src/templates/claude-md.ts"],"names":[],"mappings":"AAEA,SAAS,sBAAsB;IAC7B,OAAO;;iCAEwB,CAAC;AAClC,CAAC;AAED,SAAS,uBAAuB;IAC9B,OAAO;;;;;;;;;;;;;oJAa2I,CAAC;AACrJ,CAAC;AAED,SAAS,WAAW;IAClB,OAAO;;;;;;;;;;;;;;;;+DAgBsD,CAAC;AAChE,CAAC;AAED,SAAS,WAAW;IAClB,OAAO;;;;;;;;;;;;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qBAAqB,EAAE;QACvB,EAAE;QACF,iBAAiB,EAAE;QACnB,EAAE;QACF,oBAAoB,EAAE;QACtB,EAAE;QACF,kBAAkB,EAAE;QACpB,qBAAqB;KACtB,CAAC;IACF,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AACpC,CAAC"}
|
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Renders the unattended pipeline as Claude Code slash commands and as
|
|
3
|
-
* dsh-invocable skills.
|
|
4
|
-
*
|
|
5
|
-
* The pipeline is prose, not a runtime: every ordering rule below is enforced
|
|
6
|
-
* only by the model reading it. Keep clauses exact — the tests assert the
|
|
7
|
-
* sentences that carry each requirement, because a looser paraphrase can drop
|
|
8
|
-
* a prohibition (for example, "archive after verify" without "only when every
|
|
9
|
-
* check passes") while every keyword still appears.
|
|
10
|
-
*
|
|
11
|
-
* Both modes share the same automatic-decision policy, TDD rules, verify gate,
|
|
12
|
-
* and prohibitions. They differ only in the FuseQA posture, the execution
|
|
13
|
-
* order, the worktree phase list, and the completion report. The Claude and
|
|
14
|
-
* dsh variants differ only in their frontmatter, the way the requirement
|
|
15
|
-
* arrives, and the harness-specific skill and verify paths.
|
|
16
|
-
*/
|
|
17
|
-
type SpecfuseMode = 'default' | 'full';
|
|
18
1
|
export declare function composeSpecfuseCommand(): string;
|
|
19
2
|
export declare function composeSpecfuseFullCommand(): string;
|
|
20
|
-
export declare function
|
|
21
|
-
export
|
|
3
|
+
export declare function composeSpecfuseFlashmodeCommand(): string;
|
|
4
|
+
export declare function composeSpecfuseDshSkill(mode: 'default' | 'full'): string;
|
|
22
5
|
//# sourceMappingURL=specfuse-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specfuse-command.d.ts","sourceRoot":"","sources":["../../src/templates/specfuse-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"specfuse-command.d.ts","sourceRoot":"","sources":["../../src/templates/specfuse-command.ts"],"names":[],"mappings":"AAyPA,wBAAgB,sBAAsB,IAAI,MAAM,CAE/C;AAED,wBAAgB,0BAA0B,IAAI,MAAM,CAEnD;AAED,wBAAgB,+BAA+B,IAAI,MAAM,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAexE"}
|
|
@@ -33,44 +33,124 @@ ${verifyStep(harness)} Paste the raw output for each. Structural validation alon
|
|
|
33
33
|
|
|
34
34
|
Archive only when every verify check passes: run \`openspec archive <change> --yes\`. If any check still fails after best-effort repair, do not archive; leave the change directory in place and write each failure with its raw output into the final report.`;
|
|
35
35
|
}
|
|
36
|
+
function flashExecution(harness) {
|
|
37
|
+
const verify = verifyStep(harness);
|
|
38
|
+
return `### 4. FuseReview — \`specfuse-flash\` subagent, separate context
|
|
39
|
+
|
|
40
|
+
Dispatch a subagent other than the Do subagent, using the same \`specfuse-flash\` definition. Do not resume the Do subagent to perform the review.
|
|
41
|
+
|
|
42
|
+
The dispatch names only the change name, the baseline commit, the paths of \`proposal.md\`, \`specs/\`, \`design.md\`, and \`tasks.md\`, and the path \`.claude/skills/fusereview/SKILL.md\`. Do not include the Do note, its evidence, or a summary of the work.
|
|
43
|
+
|
|
44
|
+
The Do note and evidence wait in \`tmp/specfuse-flash/<change>/\`, outside the reviewed tree, until the review closes. If a note or evidence file is already inside the change directory, name it in the dispatch as out of review scope. When the review closes, move the Do note to \`handoff/do.md\` and its evidence to \`evidence/\`.
|
|
45
|
+
|
|
46
|
+
The reviewer reads \`.claude/skills/fusereview/SKILL.md\`, reviews the working-tree diff from the baseline including untracked files, and writes its findings to \`handoff/review.md\`.
|
|
47
|
+
|
|
48
|
+
### Fix rounds
|
|
49
|
+
|
|
50
|
+
Read \`handoff/review.md\`. Route each Blocking finding by its subject:
|
|
51
|
+
|
|
52
|
+
- design, specs, or scope → the main model must resolve it and amend the artifacts before any code changes.
|
|
53
|
+
- code, tests, or docs assigned by \`tasks.md\` → resume the Do subagent with the findings note as the message.
|
|
54
|
+
- when the host cannot resume a subagent, dispatch a fresh \`specfuse-flash\` subagent with the note and the paths.
|
|
55
|
+
|
|
56
|
+
Resume the reviewer with the fix diff and the same findings note for a re-review. No gate allows more than two fix rounds, whether the implementer is resumed or freshly dispatched; when the count is reached the gate stays closed and the run stops. There is no second full review round.
|
|
57
|
+
|
|
58
|
+
### 5. FuseQA — \`specfuse-flash\` subagent
|
|
59
|
+
|
|
60
|
+
Dispatch a fresh \`specfuse-flash\` subagent. It reads \`.claude/skills/fuseqa/SKILL.md\`, authors E2E cases for this change's entry-point behavior, handles what they expose, and writes \`handoff/qa.md\` and \`evidence/qa-*.txt\`. FuseQA is a step, not a checkpoint. Its new cases are included in the Verify full test run.
|
|
61
|
+
|
|
62
|
+
### 6. Verify — main model
|
|
63
|
+
|
|
64
|
+
The main model runs Verify itself. Do not dispatch Verify to a subagent.
|
|
65
|
+
|
|
66
|
+
Verify compares the implementation against the specs and runs ${verify.replace("Run the verify phase with", "the verify phase with")} Redirect each command's raw output to \`evidence/verify-*.txt\` and read it; do not accept a subagent's report of success in its place.
|
|
67
|
+
|
|
68
|
+
If Verify fails, resume the Do subagent with the failure output as a new fix round, record each round in the final report, and rerun Verify. No gate allows more than two fix rounds, whether the implementer is resumed or freshly dispatched; when the count is reached, stop without archiving.
|
|
69
|
+
|
|
70
|
+
### 7. Archive — main model
|
|
71
|
+
|
|
72
|
+
Before archiving, replace the absolute path of the workspace root with \`.\` in every note under \`handoff/\` and every file under \`evidence/\`, because the change directory is committed.
|
|
73
|
+
|
|
74
|
+
Archive only when every verify check passes: run \`openspec archive <change> --yes\`. Archived change directories keep \`handoff/\` and \`evidence/\`, so those files remain in the change directory after archive. If any check still fails after best-effort repair, do not archive; leave the change directory in place and write each failure with its raw output and evidence path into the final report.`;
|
|
75
|
+
}
|
|
76
|
+
function flashSections() {
|
|
77
|
+
return `
|
|
78
|
+
|
|
79
|
+
## Beat ownership
|
|
80
|
+
|
|
81
|
+
- The main model writes the brainstorming decisions, \`proposal.md\`, \`specs/\`, \`design.md\`, \`tasks.md\`, runs Verify, archives, and writes the final report.
|
|
82
|
+
- A \`specfuse-flash\` subagent runs each of Do, FuseReview, and FuseQA: one subagent per beat, one at a time in the main agent's workspace.
|
|
83
|
+
|
|
84
|
+
## Dispatch rules
|
|
85
|
+
|
|
86
|
+
Dispatch with \`subagent_type\` \`specfuse-flash\`. Do not pass a \`model\` parameter: it outranks the agent definition and accepts aliases only. Do not dispatch a \`fork\`.
|
|
87
|
+
|
|
88
|
+
If a dispatch fails — unknown agent type, unavailable model, or the concurrency limit — stop the run with a failure report. Do not continue that beat on the main model. When \`specfuse-flash\` is not found, the report names \`.claude/agents/specfuse-flash.md\` and tells the user to start a new Claude Code session, because a definition written after a session started may not be loaded by that session.
|
|
89
|
+
|
|
90
|
+
## Write authority
|
|
91
|
+
|
|
92
|
+
Subagents must not edit \`proposal.md\`, \`design.md\`, or \`specs/\`. The main model must not edit the implementation, tests, and docs that \`tasks.md\` assigns. A subagent that finds the artifacts incomplete or contradictory returns \`BLOCKED\` with the question.
|
|
93
|
+
|
|
94
|
+
## Handoffs
|
|
95
|
+
|
|
96
|
+
A dispatch carries pointers — the change name, the baseline commit, artifact paths, and prior note paths. Do not summarize prior work in a dispatch. The baseline commit recorded in step 1 is the review baseline for the whole run.
|
|
97
|
+
|
|
98
|
+
Notes go in \`handoff/\` and evidence in \`evidence/\`, both under the change directory. Evidence files use the \`.txt\` extension, because the generated \`.gitignore\` excludes \`*.log\`. Redirect raw command output into those files; never restate output.`;
|
|
99
|
+
}
|
|
36
100
|
function renderPipelineBody(mode, harness) {
|
|
37
101
|
const full = mode === 'full';
|
|
102
|
+
const flash = mode === 'flashmode';
|
|
103
|
+
const complete = full || flash;
|
|
38
104
|
const isDsh = harness === 'dsh';
|
|
39
|
-
const slug = full ? '/specfuse-full' : '/specfuse';
|
|
40
|
-
const claudeSlug = full ? '/specfuse:full' : '/specfuse';
|
|
41
|
-
const title =
|
|
42
|
-
?
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
105
|
+
const slug = full ? '/specfuse-full' : flash ? '/specfuse-flashmode' : '/specfuse';
|
|
106
|
+
const claudeSlug = full ? '/specfuse:full' : flash ? '/specfuse:flashmode' : '/specfuse';
|
|
107
|
+
const title = flash
|
|
108
|
+
? '/specfuse:flashmode — cost-optimized complete unattended pipeline'
|
|
109
|
+
: full
|
|
110
|
+
? isDsh
|
|
111
|
+
? '/specfuse-full — complete unattended pipeline'
|
|
112
|
+
: '/specfuse:full — complete unattended pipeline'
|
|
113
|
+
: '/specfuse — unattended pipeline';
|
|
114
|
+
const fuseqaDecision = flash
|
|
115
|
+
? '- **FuseQA:** record `auto: entered` and run the `fuseqa` skill after FuseReview and before Verify. It is a step, not a checkpoint.'
|
|
116
|
+
: complete
|
|
117
|
+
? isDsh
|
|
118
|
+
? '- **FuseQA:** record `auto: entered` and run the `fuseqa` skill (`.agents/skills/fuseqa/SKILL.md`) after FuseReview, before Verify. It is a step, not a checkpoint.'
|
|
119
|
+
: '- **FuseQA:** record `auto: entered` and run the `fuseqa` skill after FuseReview, before Verify. It is a step, not a checkpoint.'
|
|
120
|
+
: '- **FuseQA:** not part of the pipeline; do not invoke it. It remains available only through an explicit `/fuseqa` request.';
|
|
121
|
+
const worktreePhases = flash
|
|
122
|
+
? 'artifacts, Do, FuseReview, FuseQA, verify, and archive'
|
|
123
|
+
: complete
|
|
124
|
+
? 'artifacts, apply, FuseReview, FuseQA, verify, and archive'
|
|
125
|
+
: 'artifacts, apply, FuseReview, verify, and archive';
|
|
126
|
+
const report = flash
|
|
127
|
+
? 'State the change name and location, the artifacts written, the task count, verification output, the FuseReview decision (`auto: entered`), the FuseQA decision (`auto: entered`), which beats ran on `specfuse-flash`, the archive outcome, any worktree path, every automatic decision with its rationale, and that no commit and no push were performed.'
|
|
128
|
+
: full
|
|
129
|
+
? 'State the change name and location, the artifacts written, the task count, verification output, the FuseReview decision (`auto: entered`), the FuseQA decision (`auto: entered`), the archive outcome, any worktree path, every automatic decision with its rationale, and that no commit and no push were performed.'
|
|
130
|
+
: 'State the change name and location, the artifacts written, the task count, verification output, the FuseReview decision (`auto: entered`), the archive outcome, any worktree path, every automatic decision with its rationale, and that no commit and no push were performed. FuseQA is not part of the pipeline, so no FuseQA decision is recorded.';
|
|
131
|
+
const execution = flash ? flashExecution(harness) : full ? fullExecution(harness) : defaultExecution(harness);
|
|
58
132
|
const fusedocPath = isDsh ? '.agents/skills/fusedoc/SKILL.md' : '.claude/skills/fusedoc/SKILL.md';
|
|
59
133
|
const questionRule = isDsh
|
|
60
134
|
? 'Do not ask the user a question at any decision point. Answer each with the recommended option and record the decision in the final report.'
|
|
61
135
|
: 'Do not call AskUserQuestion at any decision point. Answer each with the recommended option and record the decision in the final report.';
|
|
62
|
-
const applyRule =
|
|
63
|
-
? '
|
|
64
|
-
:
|
|
136
|
+
const applyRule = flash
|
|
137
|
+
? 'Dispatch one `specfuse-flash` subagent for the whole beat. It works through every task in `tasks.md`, follows strict Red-Green-Refactor, writes the failing test first, and redirects each verification command\'s output to an evidence file. This is one dispatch covering every task in `tasks.md`. Do not dispatch one subagent per task. Do not create a worktree per subagent. There is no merge step.\n\nIts note records, per task, the files it touched and its verification command. It writes the note and evidence to `tmp/specfuse-flash/<change>/`, which the generated `.gitignore` excludes.'
|
|
138
|
+
: isDsh
|
|
139
|
+
? 'Apply strict Red-Green-Refactor: for every task, write the failing test first, make it pass, then refactor. Before checking off a task, run the project\'s test command and paste the raw output as evidence. Do not dispatch implementation subagents: their worktrees would require a merge, which auto mode forbids.'
|
|
140
|
+
: 'Activate `test-driven-development` and `verification-before-completion`. For every task, write the failing test first, make it pass, then refactor. Before checking a task off, run the project\'s test command and paste the raw output as evidence. Do not dispatch implementation subagents: their worktrees would require a merge, which auto mode forbids.';
|
|
65
141
|
const skillRootNote = isDsh
|
|
66
142
|
? '\n\nThe shared skills are installed under `.agents/skills/`: `design-md`, `fusedoc`, `fusereview`, and `fuseqa`.'
|
|
67
143
|
: '';
|
|
68
|
-
const invocation =
|
|
69
|
-
?
|
|
70
|
-
:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
144
|
+
const invocation = flash
|
|
145
|
+
? 'Run the complete SpecFuse pipeline on the cost-optimized flash model for: $ARGUMENTS'
|
|
146
|
+
: isDsh
|
|
147
|
+
? `Run the ${full ? 'complete ' : 'full '}SpecFuse pipeline for the requirement text following \`${slug}\` in the user's message.`
|
|
148
|
+
: `Run the ${full ? 'complete ' : 'full '}SpecFuse pipeline for: $ARGUMENTS`;
|
|
149
|
+
const missing = flash
|
|
150
|
+
? `If \`$ARGUMENTS\` is empty, print usage as \`/specfuse:flashmode <requirement description>\` and stop. Do not create a change, dispatch a subagent, or generate an artifact. Do not ask a question.`
|
|
151
|
+
: isDsh
|
|
152
|
+
? `If no requirement text follows the invocation, print exactly \`${full ? 'SPECFUSE_FULL_USAGE: /specfuse-full' : 'SPECFUSE_USAGE: /specfuse'} <requirement description>\` and stop. Do not create a change or generate an artifact. Do not ask a question.`
|
|
153
|
+
: `If \`$ARGUMENTS\` is empty, print usage as \`${claudeSlug} <requirement description>\` and stop. Do not create a change or generate an artifact. Do not ask a question.`;
|
|
74
154
|
return `# ${title}
|
|
75
155
|
|
|
76
156
|
${invocation}
|
|
@@ -94,19 +174,19 @@ ${fuseqaDecision}
|
|
|
94
174
|
|
|
95
175
|
When a Git Worktree trigger condition is met, create and enter a dedicated worktree before writing anything, so every artifact stays inside it. If worktree creation fails, continue in the current working tree and record the fallback.
|
|
96
176
|
|
|
97
|
-
### 1. Create the change
|
|
177
|
+
${flash ? '### 1. Create the change — main model' : '### 1. Create the change'}
|
|
98
178
|
|
|
99
179
|
Run \`openspec new change <kebab-case-name>\`. Record the current HEAD as the review baseline.
|
|
100
180
|
|
|
101
|
-
### 2. Generate the artifacts
|
|
181
|
+
${flash ? '### 2. Generate the artifacts — main model' : '### 2. Generate the artifacts'}
|
|
102
182
|
|
|
103
183
|
Read \`openspec instructions <artifact-id> --change <name>\` for each artifact and write them in one pass, in this order: \`proposal.md\`, \`specs/\`, \`design.md\`, \`tasks.md\`. Artifact prose follows the FuseDoc standard at \`${fusedocPath}\`.${skillRootNote}
|
|
104
184
|
|
|
105
|
-
### 3. Apply
|
|
185
|
+
${flash ? '### 3. Do — `specfuse-flash` subagent' : '### 3. Apply'}
|
|
106
186
|
|
|
107
187
|
${applyRule}
|
|
108
188
|
|
|
109
|
-
${execution}
|
|
189
|
+
${execution}${flash ? flashSections() : ''}
|
|
110
190
|
|
|
111
191
|
## Worktree isolation
|
|
112
192
|
|
|
@@ -117,7 +197,7 @@ When a Git Worktree trigger condition is met, the worktree is selected in step 0
|
|
|
117
197
|
- Never run \`git commit\`, \`git push\`, or \`git merge\`.
|
|
118
198
|
- Never skip TDD or verification evidence.
|
|
119
199
|
- Never archive after a failing verify.
|
|
120
|
-
- Never leave an automatic decision out of the final report.
|
|
200
|
+
- Never leave an automatic decision out of the final report.${flash ? '\n- The final report must state that no commit and no push were performed.' : ''}
|
|
121
201
|
|
|
122
202
|
## Final report
|
|
123
203
|
|
|
@@ -125,10 +205,11 @@ ${report}
|
|
|
125
205
|
`;
|
|
126
206
|
}
|
|
127
207
|
function renderClaudeCommand(mode) {
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
208
|
+
const description = mode === 'flashmode'
|
|
209
|
+
? 'Run the complete SpecFuse pipeline unattended with Do, FuseReview, and FuseQA on the cost-optimized flash model'
|
|
210
|
+
: mode === 'full'
|
|
211
|
+
? 'Run the complete SpecFuse pipeline unattended, including FuseQA, from brainstorming through archive'
|
|
212
|
+
: 'Run the SpecFuse pipeline unattended, from brainstorming through archive';
|
|
132
213
|
return `---
|
|
133
214
|
description: ${description}
|
|
134
215
|
argument-hint: <requirement description>
|
|
@@ -142,6 +223,9 @@ export function composeSpecfuseCommand() {
|
|
|
142
223
|
export function composeSpecfuseFullCommand() {
|
|
143
224
|
return renderClaudeCommand('full');
|
|
144
225
|
}
|
|
226
|
+
export function composeSpecfuseFlashmodeCommand() {
|
|
227
|
+
return renderClaudeCommand('flashmode');
|
|
228
|
+
}
|
|
145
229
|
export function composeSpecfuseDshSkill(mode) {
|
|
146
230
|
const full = mode === 'full';
|
|
147
231
|
const name = full ? 'specfuse-full' : 'specfuse';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"specfuse-command.js","sourceRoot":"","sources":["../../src/templates/specfuse-command.ts"],"names":[],"mappings":"AAmBA,SAAS,UAAU,CAAC,OAAgB;IAClC,OAAO,OAAO,KAAK,QAAQ;QACzB,CAAC,CAAC,mHAAmH;QACrH,CAAC,CAAC,wKAAwK,CAAC;AAC/K,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAgB;IACxC,OAAO;;;;;;EAMP,UAAU,CAAC,OAAO,CAAC;;;;+PAI0O,CAAC;AAChQ,CAAC;AAED,SAAS,aAAa,CAAC,OAAgB;IACrC,OAAO;;;;;;;;;;EAUP,UAAU,CAAC,OAAO,CAAC;;;;+PAI0O,CAAC;AAChQ,CAAC;AAED,SAAS,kBAAkB,CAAC,IAAkB,EAAE,OAAgB;IAC9D,MAAM,IAAI,GAAG,IAAI,KAAK,MAAM,CAAC;IAC7B,MAAM,KAAK,GAAG,OAAO,KAAK,KAAK,CAAC;IAChC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"specfuse-command.js","sourceRoot":"","sources":["../../src/templates/specfuse-command.ts"],"names":[],"mappings":"AAmBA,SAAS,UAAU,CAAC,OAAgB;IAClC,OAAO,OAAO,KAAK,QAAQ;QACzB,CAA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AC,EAAE,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,sBAAsB;IACpC,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAC;AACxC,CAAC;AAED,MAAM,UAAU,0BAA0B;IACxC,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,+BAA+B;IAC7C,OAAO,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,IAAwB;IAC9D,MAAM,IAAI,GAAG,IAAI,KAAK,MAAM,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC;IACjD,MAAM,WAAW,GAAG,IAAI;QACtB,CAAC,CAAC,iIAAiI;QACnI,CAAC,CAAC,iGAAiG,CAAC;IAEtG,OAAO;QACD,IAAI;eACG,WAAW;;;;;EAKxB,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;AACpC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The model id is written into YAML frontmatter that Claude Code parses with an
|
|
3
|
+
* unspecified parser version. The character grammar alone is not enough:
|
|
4
|
+
* `true`, `123`, and `12:30` all pass it and are then parsed as a boolean or a
|
|
5
|
+
* number, so the id would silently differ from what the user typed. Validation
|
|
6
|
+
* therefore round-trips the id through both YAML versions the host may use.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_FLASH_MODEL = "deepseek-flash[1m]";
|
|
9
|
+
/** Returns true, or the message to show. Never throws. */
|
|
10
|
+
export declare function validateFlashModel(id: string): true | string;
|
|
11
|
+
export declare function composeSpecfuseFlashAgent(flashModel: string): string;
|
|
12
|
+
//# sourceMappingURL=specfuse-flash-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specfuse-flash-agent.d.ts","sourceRoot":"","sources":["../../src/templates/specfuse-flash-agent.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,uBAAuB,CAAC;AAcxD,0DAA0D;AAC1D,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAY5D;AAED,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAgCpE"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { parse as parseYaml } from 'yaml';
|
|
2
|
+
/**
|
|
3
|
+
* The model id is written into YAML frontmatter that Claude Code parses with an
|
|
4
|
+
* unspecified parser version. The character grammar alone is not enough:
|
|
5
|
+
* `true`, `123`, and `12:30` all pass it and are then parsed as a boolean or a
|
|
6
|
+
* number, so the id would silently differ from what the user typed. Validation
|
|
7
|
+
* therefore round-trips the id through both YAML versions the host may use.
|
|
8
|
+
*/
|
|
9
|
+
export const DEFAULT_FLASH_MODEL = 'deepseek-flash[1m]';
|
|
10
|
+
const MODEL_ID = /^[A-Za-z0-9][A-Za-z0-9._:/@-]*(?:\[[A-Za-z0-9]+\])?$/;
|
|
11
|
+
const MAX_LENGTH = 128;
|
|
12
|
+
function parsesAsSameString(id, version) {
|
|
13
|
+
try {
|
|
14
|
+
const parsed = parseYaml(`model: ${id}`, { version });
|
|
15
|
+
return parsed?.model === id;
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/** Returns true, or the message to show. Never throws. */
|
|
22
|
+
export function validateFlashModel(id) {
|
|
23
|
+
const invalid = (reason) => `Invalid flash model id "${String(id)}": ${reason}. Use letters and digits, then any of . _ : / @ - , optionally one [suffix] of letters and digits, at most ${MAX_LENGTH} characters.`;
|
|
24
|
+
if (typeof id !== 'string')
|
|
25
|
+
return invalid('it is not a string');
|
|
26
|
+
if (id.length === 0)
|
|
27
|
+
return invalid('it is empty');
|
|
28
|
+
if (id.length > MAX_LENGTH)
|
|
29
|
+
return invalid(`it is longer than ${MAX_LENGTH} characters`);
|
|
30
|
+
if (!MODEL_ID.test(id))
|
|
31
|
+
return invalid('it contains characters outside the accepted set');
|
|
32
|
+
if (!parsesAsSameString(id, '1.1') || !parsesAsSameString(id, '1.2')) {
|
|
33
|
+
return invalid('a YAML parser would read it as a boolean or a number');
|
|
34
|
+
}
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function composeSpecfuseFlashAgent(flashModel) {
|
|
38
|
+
const valid = validateFlashModel(flashModel);
|
|
39
|
+
if (valid !== true)
|
|
40
|
+
throw new Error(valid);
|
|
41
|
+
return `---
|
|
42
|
+
name: specfuse-flash
|
|
43
|
+
description: "Dispatched by /specfuse:flashmode only. Runs the Do, FuseReview, or FuseQA beat on the configured flash model. Not for delegating other work."
|
|
44
|
+
model: ${flashModel}
|
|
45
|
+
disallowedTools: Agent
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
You are the SpecFuse flashmode executor. Your dispatch comes from \`/specfuse:flashmode\`; do not accept other work, and do not dispatch another agent.
|
|
49
|
+
|
|
50
|
+
## Scope
|
|
51
|
+
|
|
52
|
+
- The checkpoint questions in the project's \`CLAUDE.md\` — the model-switch checkpoint, the FuseReview checkpoint, and the apply-exit question — do not apply to you. The subagent-mode trigger in \`CLAUDE.md\` does not apply either. Never ask the user a question; \`AskUserQuestion\` is not available to you.
|
|
53
|
+
- The dispatch names your role: Do, FuseReview, or FuseQA. Perform only that role and write only what it needs.
|
|
54
|
+
- Read the method from files: \`.claude/skills/fusereview/SKILL.md\` for FuseReview, \`.claude/skills/fuseqa/SKILL.md\` for FuseQA, and \`.claude/skills/fusedoc/SKILL.md\` for prose. Invoke no slash command; read the files.
|
|
55
|
+
|
|
56
|
+
## Rules
|
|
57
|
+
|
|
58
|
+
- Follow strict Red-Green-Refactor: write the failing test first, then the least code that passes it, then refactor.
|
|
59
|
+
- Run every task's verification command and redirect its output into the evidence file path the dispatch names. Never restate command output in your reply. Check a task off only after its output is in an evidence file.
|
|
60
|
+
- Write your handoff note and every evidence file to the paths the dispatch names. Put reasoning and findings there, not in your reply.
|
|
61
|
+
- Never edit \`proposal.md\`, \`design.md\`, or anything under the change's \`specs/\`. Those belong to the main model.
|
|
62
|
+
- Never run \`git commit\`, \`git push\`, \`git merge\`, or \`git stash\`; never create a worktree; never run \`openspec archive\`; never dispatch another agent.
|
|
63
|
+
- When the artifacts are missing information or contradict each other, stop and return \`BLOCKED\` with the question instead of guessing.
|
|
64
|
+
|
|
65
|
+
## Reply
|
|
66
|
+
|
|
67
|
+
Your final message is one line: \`DONE\`, \`BLOCKED\`, or \`FAILED\`, followed by the path of your note and every evidence file you wrote. Nothing else.
|
|
68
|
+
`;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=specfuse-flash-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specfuse-flash-agent.js","sourceRoot":"","sources":["../../src/templates/specfuse-flash-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAExD,MAAM,QAAQ,GAAG,sDAAsD,CAAC;AACxE,MAAM,UAAU,GAAG,GAAG,CAAC;AAEvB,SAAS,kBAAkB,CAAC,EAAU,EAAE,OAAsB;IAC5D,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,SAAS,CAAC,UAAU,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAA+B,CAAC;QACpF,OAAO,MAAM,EAAE,KAAK,KAAK,EAAE,CAAC;IAC9B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,0DAA0D;AAC1D,MAAM,UAAU,kBAAkB,CAAC,EAAU;IAC3C,MAAM,OAAO,GAAG,CAAC,MAAc,EAAU,EAAE,CACzC,2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EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-specfuse",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Scaffold projects with OpenSpec + Superpowers fusion methodology",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"create-specfuse": "
|
|
7
|
+
"create-specfuse": "dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|