sdd-flow-kit 1.2.2 → 1.2.3

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/dist/cli.js CHANGED
@@ -62,8 +62,10 @@ function printHelp() {
62
62
  "8) 阶段推进(更新 session + NEXT.md):",
63
63
  " npx sdd-flow-kit phase advance --project-root . --run-id <runId> --to after-prd|docs-done|propose-done|impl|shipped",
64
64
  "",
65
- "9) 提案 / 交付:",
65
+ "9) 提案 / 实现 / 交付:",
66
66
  " npx sdd-flow-kit propose --project-root . --run-id <runId> --change <name>",
67
+ " npx sdd-flow-kit phase advance --project-root . --run-id <runId> --to impl --change <name>",
68
+ " # 在 AI 工具执行 /opsx-apply,按 tasks.md 逐条实现并勾选 [x]",
67
69
  " npx sdd-flow-kit deliver --project-root . --run-id <runId> --change <name>",
68
70
  "",
69
71
  "可选参数:",
@@ -363,7 +365,7 @@ async function main() {
363
365
  // eslint-disable-next-line no-console
364
366
  console.log(`流程已初始化:openspec/PRD/${result.runId}/`);
365
367
  // eslint-disable-next-line no-console
366
- console.log(`请打开 openspec/PRD/${result.runId}/NEXT.md,严格按 gate→phase→propose→deliver 执行;确认点前禁止改 src/。`);
368
+ console.log(`请打开 openspec/PRD/${result.runId}/NEXT.md,严格按 gate→phase→propose→impl(/opsx-apply)→deliver 执行;确认点前禁止改 src/。`);
367
369
  // eslint-disable-next-line no-console
368
370
  console.log(`agent=${result.adapterName}, cli=${result.adapterAvailable ? "detected" : "missing"}, autoExecute=${result.executed ? "yes" : "manual"}`);
369
371
  // eslint-disable-next-line no-console
@@ -42,9 +42,14 @@ async function writeInitialNext(outputRoot, projectRoot, runId) {
42
42
  `npx sdd-flow-kit phase advance --project-root "${pr}" --run-id ${runId} --to propose-done --change <kebab-name>`,
43
43
  "```",
44
44
  "",
45
- "## 5. 阶段 D — 实现 + 交付",
45
+ "## 5. 阶段 D — /opsx-apply 实现 tasks(必做)",
46
46
  "```bash",
47
47
  `npx sdd-flow-kit phase advance --project-root "${pr}" --run-id ${runId} --to impl --change <kebab-name>`,
48
+ "# 然后在 AI 工具中执行 /opsx-apply,按 tasks.md 逐条实现并勾选为 [x]",
49
+ "```",
50
+ "",
51
+ "## 6. 阶段 E — 交付与收尾",
52
+ "```bash",
48
53
  `npx sdd-flow-kit deliver --project-root "${pr}" --run-id ${runId} --change <kebab-name>`,
49
54
  `npx sdd-flow-kit phase advance --project-root "${pr}" --run-id ${runId} --to shipped --change <kebab-name>`,
50
55
  "```",
@@ -117,6 +117,7 @@ async function runPhaseAdvance(options) {
117
117
  await (0, fs_1.writeTextFileEnsuredDir)(path_1.default.join(installRoot, ".opsx-active-change"), `${changeName}\n`);
118
118
  await writeNextMd(outputRoot, [
119
119
  "## 当前:阶段 C 完成 → 进入 D(实现)",
120
+ "说明:先进入 impl,再在 AI 工具执行 `/opsx-apply` 按 tasks.md 实现;完成后才可 deliver。",
120
121
  "```bash",
121
122
  `npx sdd-flow-kit phase advance --project-root ${options.projectRoot} --run-id ${runId} --to impl --change ${changeName}`,
122
123
  "```",
@@ -158,6 +159,7 @@ async function runPhaseAdvance(options) {
158
159
  "```bash",
159
160
  `npx sdd-flow-kit gate --project-root ${options.projectRoot} --run-id ${runId} --expect impl-allowed --change ${changeName}`,
160
161
  "```",
162
+ "在 AI 工具中执行:`/opsx-apply`(必须先完成 tasks.md 全部 [x])",
161
163
  "完成后交付:",
162
164
  "```bash",
163
165
  `npx sdd-flow-kit deliver --project-root ${options.projectRoot} --run-id ${runId} --change ${changeName}`,
@@ -51,7 +51,9 @@ async function runPropose(options) {
51
51
  "",
52
52
  `change: \`${options.change}\``,
53
53
  "",
54
- "AI 须按 openspec-propose skill 生成 proposal/design/specs/tasks,完成后执行:",
54
+ "AI 须按 openspec-propose skill 生成 proposal/design/specs/tasks",
55
+ "注意:propose 结束后不能直接 deliver,必须先 `/opsx-apply` 执行 tasks。",
56
+ "完成提案后执行:",
55
57
  "```bash",
56
58
  `npx sdd-flow-kit gate --project-root ${options.projectRoot} --run-id ${loaded.resolved.runId} --expect propose-ready --change ${options.change}`,
57
59
  `npx sdd-flow-kit phase advance --project-root ${options.projectRoot} --run-id ${loaded.resolved.runId} --to propose-done --change ${options.change}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdd-flow-kit",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "private": false,
5
5
  "description": "Cross-agent SDD automated development workflow kit (ADI/ADI-like).",
6
6
  "license": "MIT",