prizmkit 1.1.29 → 1.1.30
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/bundled/VERSION.json
CHANGED
|
@@ -22,27 +22,18 @@ User says:
|
|
|
22
22
|
|
|
23
23
|
## Pipeline Recovery (Recommended)
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
**IMPORTANT**: In Phase 1.3, you MUST present the user with a choice between pipeline recovery (`run-recovery.sh`) and interactive recovery. **NEVER skip this choice. NEVER decide for the user.** The pipeline approach is recommended because it generates a comprehensive bootstrap prompt that explicitly lists every remaining phase with full instructions, ensuring the AI completes the full workflow — not just the implementation part.
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
# Auto-detect and recover (with confirmation)
|
|
29
|
-
./dev-pipeline/run-recovery.sh
|
|
30
|
-
|
|
31
|
-
# Detection report only (no execution)
|
|
32
|
-
./dev-pipeline/run-recovery.sh detect
|
|
33
|
-
|
|
34
|
-
# Generate prompt without executing (inspect it)
|
|
35
|
-
./dev-pipeline/run-recovery.sh run --dry-run
|
|
36
|
-
|
|
37
|
-
# Skip confirmation (for scripted/daemon use)
|
|
38
|
-
./dev-pipeline/run-recovery.sh run --yes
|
|
27
|
+
Pipeline commands (for reference — Phase 1.3 will present these as a selectable option):
|
|
39
28
|
|
|
40
|
-
|
|
41
|
-
./dev-pipeline/run-recovery.sh
|
|
29
|
+
```bash
|
|
30
|
+
./dev-pipeline/run-recovery.sh # Auto-detect and recover
|
|
31
|
+
./dev-pipeline/run-recovery.sh detect # Detection report only
|
|
32
|
+
./dev-pipeline/run-recovery.sh run --dry-run # Generate prompt, don't execute
|
|
33
|
+
./dev-pipeline/run-recovery.sh run --yes # Skip confirmation
|
|
34
|
+
./dev-pipeline/run-recovery.sh run --model <model> # Override AI model
|
|
42
35
|
```
|
|
43
36
|
|
|
44
|
-
The pipeline approach generates a comprehensive bootstrap prompt that explicitly lists every remaining phase with full instructions, ensuring the AI completes the full workflow — not just the implementation part.
|
|
45
|
-
|
|
46
37
|
### When to use pipeline vs interactive recovery
|
|
47
38
|
|
|
48
39
|
| Scenario | Approach |
|
|
@@ -74,10 +65,10 @@ recovery-workflow
|
|
|
74
65
|
│ ├── Based on artifact presence → infer current phase
|
|
75
66
|
│ └── No match → reject and guide user
|
|
76
67
|
│
|
|
77
|
-
├── Phase 1: Report + user
|
|
68
|
+
├── Phase 1: Report + user choice
|
|
78
69
|
│ ├── Display detection results
|
|
79
70
|
│ ├── If code changes exist → run test suite
|
|
80
|
-
│ └── User
|
|
71
|
+
│ └── User chooses: run-recovery.sh (recommended) | interactive | start fresh
|
|
81
72
|
│
|
|
82
73
|
└── Phase 2: Execute remaining steps
|
|
83
74
|
├── Read target workflow's SKILL.md
|
|
@@ -169,18 +160,55 @@ Include test results in the report:
|
|
|
169
160
|
- How many tests pass/fail
|
|
170
161
|
- If failures exist — which tests and why
|
|
171
162
|
|
|
172
|
-
### 1.3 Ask User to
|
|
163
|
+
### 1.3 Ask User to Choose Recovery Approach
|
|
164
|
+
|
|
165
|
+
**User choice required (mandatory)** — Use `AskUserQuestion` to present interactive selectable options. **NEVER skip this step. NEVER choose for the user.**
|
|
173
166
|
|
|
174
167
|
```
|
|
175
|
-
|
|
168
|
+
AskUserQuestion:
|
|
169
|
+
question: "Interrupted {workflow_type} detected at Phase {N} ({phase_name}). How would you like to recover?"
|
|
170
|
+
header: "Recovery"
|
|
171
|
+
options:
|
|
172
|
+
- label: "Run recovery script (Recommended)"
|
|
173
|
+
description: "Execute ./dev-pipeline/run-recovery.sh — autonomously completes ALL remaining phases (review, commit, merge, etc.) via a dedicated AI session with explicit phase instructions"
|
|
174
|
+
- label: "Copy command and run manually"
|
|
175
|
+
description: "I'll give you the exact shell command to paste into your terminal — you run it yourself outside this session"
|
|
176
|
+
- label: "Resume interactively in this session"
|
|
177
|
+
description: "Continue from Phase {N} within this conversation — more control, but may not complete all phases if session is interrupted again"
|
|
178
|
+
- label: "Start fresh"
|
|
179
|
+
description: "Discard interrupted work and restart the original workflow from scratch"
|
|
176
180
|
```
|
|
177
181
|
|
|
178
|
-
If
|
|
179
|
-
|
|
180
|
-
-
|
|
181
|
-
|
|
182
|
+
**If "Run recovery script"** → Execute the pipeline recovery:
|
|
183
|
+
```bash
|
|
184
|
+
./dev-pipeline/run-recovery.sh
|
|
185
|
+
```
|
|
186
|
+
The script handles everything: detection, confirmation, prompt generation, session spawn, and post-session validation. **End this skill after launching the script** — do not proceed to Phase 2.
|
|
187
|
+
|
|
188
|
+
**If "Copy command and run manually"** → Output the command for the user to copy and run in their own terminal:
|
|
189
|
+
```
|
|
190
|
+
To recover, run this command in your project root:
|
|
191
|
+
|
|
192
|
+
./dev-pipeline/run-recovery.sh
|
|
193
|
+
|
|
194
|
+
Or with options:
|
|
195
|
+
./dev-pipeline/run-recovery.sh run --dry-run # Preview the recovery prompt first
|
|
196
|
+
./dev-pipeline/run-recovery.sh run --yes # Skip confirmation
|
|
197
|
+
./dev-pipeline/run-recovery.sh run --model <model> # Specify AI model
|
|
198
|
+
```
|
|
199
|
+
**End this skill** — do not proceed to Phase 2. The user will run the command themselves.
|
|
200
|
+
|
|
201
|
+
**If "Resume interactively"** → Continue to Phase 2 below (execute remaining steps in this session).
|
|
202
|
+
|
|
203
|
+
**If "Start fresh"** → Suggest the appropriate original workflow skill:
|
|
204
|
+
- bug-fix-workflow → `/bug-fix-workflow`
|
|
205
|
+
- feature-workflow → `/feature-workflow`
|
|
206
|
+
- refactor-workflow → `/refactor-workflow`
|
|
207
|
+
End this skill.
|
|
208
|
+
|
|
209
|
+
**NEVER proceed to Phase 2 without explicit user selection via `AskUserQuestion`. Do NOT render options as plain text — the user must be able to click/select.**
|
|
182
210
|
|
|
183
|
-
**CHECKPOINT CP-REC-1**: User
|
|
211
|
+
**CHECKPOINT CP-REC-1**: User chose recovery approach.
|
|
184
212
|
|
|
185
213
|
---
|
|
186
214
|
|