@gordon.gan/specflow 1.2.0-beta.1 → 1.2.1-beta

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 CHANGED
@@ -170,6 +170,8 @@ artifacts:
170
170
  /specflow:archive
171
171
  ```
172
172
 
173
+ 需要少打断确认时,可用 `/specflow:apply --yes`:自动接受成功的 Gate A/B 确认,并在构建成功后串行执行 review → test → verify;失败、Block、设计缺口仍会停下,且不会自动 archive。
174
+
173
175
  **需求模糊:**
174
176
 
175
177
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gordon.gan/specflow",
3
- "version": "1.2.0-beta.1",
3
+ "version": "1.2.1-beta",
4
4
  "type": "module",
5
5
  "description": "SpecFlow — unified spec-driven development: OpenSpec planning + Superpowers execution in one CLI and cross-IDE workflow",
6
6
  "keywords": [
@@ -5,6 +5,15 @@ description: "Two-phase apply — task rewrite + subagent TDD execution"
5
5
 
6
6
  # SpecFlow: Apply
7
7
 
8
+ ## Invocation mode
9
+
10
+ Inspect the current user invocation before any stage work:
11
+
12
+ - **Default mode:** `/specflow:apply` preserves every existing user confirmation gate and the default interactive behavior.
13
+ - **Yes mode:** `/specflow:apply --yes` records non-interactive confirmation mode for the current invocation only. It auto-accepts only successful acknowledgement gates; it never bypasses prerequisites, gap detection, failing verification, or a review `Block`.
14
+
15
+ Report the selected mode once at the start of the session. Do not persist it to future invocations.
16
+
8
17
  > **HARD GATE (prerequisite)**: phase must be `refined`. Run /specflow:refine first if not.
9
18
  > **HARD GATE (Phase A)**: rewritten tasks.md must be user-confirmed before Phase B.
10
19
  > **HARD GATE (Phase B)**: each task must be reviewed (spec + code quality) and user-confirmed before next task.
@@ -63,7 +72,10 @@ Present the audit summary to the user: per-group task count (coarse → atomic),
63
72
 
64
73
  ### Gate A: Rewrite Confirmation
65
74
 
66
- Present the rewritten `tasks.md` to the user. **Ask the user to confirm the rewrite.** Do NOT proceed to Phase B until the user explicitly confirms.
75
+ - **Default mode:** Present the rewritten `tasks.md` and ask the user to confirm the rewrite. Do NOT proceed to Phase B until the user explicitly confirms.
76
+ - **Yes mode:** Present the rewrite audit and continue directly to Phase B after recording the rewrite as automatically accepted for this invocation.
77
+
78
+ If Phase A reports a reorganization choice or a design gap, stop regardless of mode; `--yes` does not choose a reorganization or fill a missing design decision.
67
79
 
68
80
  ---
69
81
 
@@ -115,16 +127,26 @@ ECC reviewer verdict routing:
115
127
 
116
128
  #### Gate B: Per-task Confirmation
117
129
 
118
- Present the task output and both review reports to the user. **Ask the user to confirm the task is complete.** Do NOT proceed to the next task until confirmation is received.
130
+ - **Default mode:** Present the task output and both review reports. Ask the user to confirm the task is complete. Do NOT proceed to the next task until confirmation is received.
131
+ - **Yes mode:** Present the task output and both review reports. If spec review passes and code-quality review returns `Approve` or `Warning`, record the task as automatically accepted and start the next task without waiting.
119
132
 
120
- If the user rejects, return to Stage B2a for the same task.
133
+ If either review blocks, return to Stage B2a for the same task. `--yes` never advances past a blocked review.
121
134
 
122
135
  ### Stage B3: Phase Transition
123
136
 
124
- Once all tasks are confirmed:
137
+ Once all tasks are confirmed in default mode or automatically accepted in yes mode:
125
138
  - Invoke `specflow change phase <name> --set apply` to transition the phase.
126
139
  - Summarize the build results and overall coverage.
127
- - Inform the user they can now run `/specflow:review` or `/specflow:verify`.
140
+
141
+ #### Yes-mode downstream sequence
142
+
143
+ When yes mode reaches this point:
144
+ 1. Invoke `/specflow:review`. Stop if it reports a CRITICAL or HIGH finding.
145
+ 2. Invoke `/specflow:test` only after review has no CRITICAL/HIGH findings. Stop if tests cannot be made green.
146
+ 3. Invoke `/specflow:verify` only after test succeeds. Stop if verify returns `FAIL`.
147
+ 4. Report review, test, and verification evidence. Do NOT invoke `/specflow:archive` automatically; archive remains the user's manual choice.
148
+
149
+ When default mode reaches this point, inform the user that they can now run `/specflow:review` or `/specflow:verify`.
128
150
 
129
151
  ---
130
152