planflow-ai 1.0.3 → 1.0.5

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.
@@ -147,17 +147,38 @@ Plan Created!
147
147
  - X phases created
148
148
  - Total complexity: XX/XX
149
149
  - Highest complexity: Phase X at Y/10
150
+ ```
151
+
152
+ **CRITICAL — Check autopilot mode BEFORE presenting next steps:**
153
+
154
+ 1. **Check if `flow/.autopilot` exists**
155
+ 2. **If autopilot is ON**: Do NOT show "Next Steps" or "invoke manually". Instead, use `AskUserQuestion` to ask for plan approval, then **immediately auto-proceed** to `/execute-plan` with the plan file. Do NOT stop. Do NOT wait for the user to manually invoke `/execute-plan`.
156
+
157
+ ```typescript
158
+ // When autopilot is ON, ask for approval then auto-proceed:
159
+ AskUserQuestion({
160
+ questions: [{
161
+ question: "Plan is ready. Approve to proceed with execution?",
162
+ header: "Plan",
163
+ options: [
164
+ { label: "Approve and execute", description: "Start executing the plan now" },
165
+ { label: "Refine first", description: "Let me suggest changes to the plan before executing" }
166
+ ],
167
+ multiSelect: false
168
+ }]
169
+ })
170
+ // If approved → immediately invoke /execute-plan (do NOT stop)
171
+ ```
172
+
173
+ 3. **If autopilot is OFF**: Show next steps and stop:
150
174
 
151
- **Next Steps** (user must invoke manually):
175
+ ```markdown
176
+ **Next Steps**:
152
177
  1. Review the plan above
153
178
  2. Request any refinements
154
179
  3. When ready, invoke `/execute-plan @flow/plans/plan_<feature>_v<version>.md`
155
180
  ```
156
181
 
157
- **CRITICAL**: If autopilot mode is OFF (`flow/.autopilot` does not exist), this command is now complete. Do NOT auto-invoke `/execute-plan`. Wait for the user to explicitly invoke it.
158
-
159
- **If autopilot mode is ON** (`flow/.autopilot` exists): Auto-proceed to `/execute-plan` with the plan file after the user approves the plan.
160
-
161
182
  ---
162
183
 
163
184
  ## Flow Diagram
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "planflow-ai",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Structured AI-assisted development workflows for discovery, planning, execution, code reviews, and testing",
5
5
  "type": "module",
6
6
  "main": "dist/cli/index.js",
@@ -71,7 +71,7 @@ Check `flow/contracts/` for any relevant integration contracts. If found, note t
71
71
 
72
72
  ### Step 2: Discovery
73
73
 
74
- 1. **Read** the discovery command to load discovery context
74
+ 1. **Read** the file `.cursor/commands/discovery-plan.md` to load discovery context
75
75
  2. Execute the discovery skill following that command's instructions
76
76
  3. **PAUSE**: Ask user discovery questions as needed (mandatory checkpoint)
77
77
  4. Produce the discovery document in `flow/discovery/`
@@ -83,7 +83,7 @@ Check `flow/contracts/` for any relevant integration contracts. If found, note t
83
83
  **GATE CHECK**: Before proceeding, verify that Step 2 produced a discovery document in `flow/discovery/`. If no discovery document exists, **DO NOT proceed** — go back to Step 2. A plan cannot be created without a discovery document. This is a hard requirement with no exceptions.
84
84
 
85
85
  1. **Verify** discovery document exists in `flow/discovery/` (created in Step 2)
86
- 2. **Read** the create-plan command to load planning context
86
+ 2. **Read** the file `.cursor/commands/create-plan.md` to load planning context
87
87
  3. Execute the create-plan skill with the discovery document as input
88
88
  4. **PAUSE**: Present the plan for user approval (mandatory checkpoint)
89
89
  5. Wait for user to approve the plan before proceeding
@@ -93,7 +93,7 @@ Check `flow/contracts/` for any relevant integration contracts. If found, note t
93
93
 
94
94
  ### Step 4: Execute Plan
95
95
 
96
- 1. **Read** the execute-plan command to load execution context
96
+ 1. **Read** the file `.cursor/commands/execute-plan.md` to load execution context
97
97
  2. Execute the plan following complexity-based grouping strategy
98
98
  3. Update the plan file with progress
99
99
  4. Run build + test verification at the end
@@ -102,7 +102,7 @@ Check `flow/contracts/` for any relevant integration contracts. If found, note t
102
102
 
103
103
  ### Step 5: Review Code
104
104
 
105
- 1. **Read** the review-code command to load review context
105
+ 1. **Read** the file `.cursor/commands/review-code.md` to load review context
106
106
  2. Review all uncommitted changes
107
107
  3. Present the review summary
108
108
 
@@ -174,10 +174,10 @@ All other transitions happen automatically.
174
174
 
175
175
  When autopilot is ON, the following rules in individual commands are **suspended**:
176
176
 
177
- - Discovery command: "Ask Before Proceeding" and "No Auto-Execution" rules
178
- - Create-plan command: "No Auto-Chaining" and "Complete and Stop" rules
179
- - Execute-plan command: "Complete and Stop" rule
180
- - Review-code command: completion stop behavior
177
+ - `.cursor/commands/discovery-plan.md`: "Ask Before Proceeding" and "No Auto-Execution" rules
178
+ - `.cursor/commands/create-plan.md`: "No Auto-Chaining" and "Complete and Stop" rules
179
+ - `.cursor/commands/execute-plan.md`: "Complete and Stop" rule
180
+ - `.cursor/commands/review-code.md`: completion stop behavior
181
181
 
182
182
  These rules remain fully active when autopilot is OFF.
183
183