planflow-ai 1.0.6 → 1.0.7
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.
|
@@ -68,7 +68,7 @@ Check `flow/contracts/` for any relevant integration contracts. If found, note t
|
|
|
68
68
|
|
|
69
69
|
1. **Read** the file `.claude/commands/discovery-plan.md` to load discovery context
|
|
70
70
|
2. Execute the discovery skill following that command's instructions
|
|
71
|
-
3. **PAUSE**:
|
|
71
|
+
3. **PAUSE**: Use the `AskUserQuestion` tool to ask clarifying questions about requirements (mandatory checkpoint). Present structured multiple-choice options — do NOT ask as plain text when the tool is available.
|
|
72
72
|
4. Produce the discovery document in `flow/discovery/`
|
|
73
73
|
5. Write transition summary (see format below)
|
|
74
74
|
6. **Auto-proceed** to Step 3 (override the "ask before proceeding" rule)
|
package/package.json
CHANGED
|
@@ -32,7 +32,14 @@ When autopilot is ON, classify every new user input before acting:
|
|
|
32
32
|
|
|
33
33
|
### When Uncertain
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
If the input doesn't clearly fit a category, **CALL** `AskQuestion` to ask:
|
|
36
|
+
|
|
37
|
+
- **CALL** `SwitchMode(target_mode_id: "plan", explanation: "Classifying user input for autopilot mode")` — **actually invoke the tool**
|
|
38
|
+
- **CALL** `AskQuestion` with these options:
|
|
39
|
+
- A) Run the full flow (discovery → plan → execute → review)
|
|
40
|
+
- B) Handle it directly without the full flow
|
|
41
|
+
- After the user answers, **CALL** `SwitchMode(target_mode_id: "agent", explanation: "Input classified, returning to Agent mode")` — **actually invoke the tool**
|
|
42
|
+
- If `SwitchMode` or `AskQuestion` tools are not available, fall back to asking as plain text in chat
|
|
36
43
|
|
|
37
44
|
---
|
|
38
45
|
|
|
@@ -59,7 +66,12 @@ Check `flow/contracts/` for any relevant integration contracts. If found, note t
|
|
|
59
66
|
1. Read the file `.cursor/commands/discovery-plan.md` for detailed instructions
|
|
60
67
|
2. Search the codebase to find all files related to the feature (components, types, API routes, stores, tests)
|
|
61
68
|
3. Read referenced documents or contracts if any
|
|
62
|
-
4. **
|
|
69
|
+
4. **SWITCH TO PLAN MODE and ask clarifying questions** — this is a mandatory checkpoint:
|
|
70
|
+
- **CALL** `SwitchMode(target_mode_id: "plan", explanation: "Discovery phase: Gathering requirements via interactive questions")` — **actually invoke the tool, do not describe it**
|
|
71
|
+
- **CALL** `AskQuestion` tool for each clarifying question about requirements (use 2-6 options per question, A/B/C/D format)
|
|
72
|
+
- Wait for the user to answer all questions
|
|
73
|
+
- **CALL** `SwitchMode(target_mode_id: "agent", explanation: "Discovery questions complete, returning to Agent mode")` — **actually invoke the tool**
|
|
74
|
+
- If `SwitchMode` or `AskQuestion` tools are not available, fall back to asking questions as plain text in chat
|
|
63
75
|
5. Document requirements as: Functional (FR-), Non-Functional (NFR-), Constraints (C-)
|
|
64
76
|
6. Identify technical considerations, risks, and proposed approach (high-level, NO code)
|
|
65
77
|
7. **Save the discovery document** to `flow/discovery/discovery_<feature>_v1.md`
|