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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "frameworkVersion": "1.1.29",
3
- "bundledAt": "2026-04-12T12:45:35.203Z",
4
- "bundledFrom": "4dc0cee"
2
+ "frameworkVersion": "1.1.30",
3
+ "bundledAt": "2026-04-12T13:39:08.680Z",
4
+ "bundledFrom": "62d04b3"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.29",
2
+ "version": "1.1.30",
3
3
  "skills": {
4
4
  "prizm-kit": {
5
5
  "description": "Full-lifecycle dev toolkit. Covers spec-driven development, Prizm context docs, code quality, debugging, deployment, and knowledge management.",
@@ -22,27 +22,18 @@ User says:
22
22
 
23
23
  ## Pipeline Recovery (Recommended)
24
24
 
25
- For reliable recovery that completes ALL remaining phases autonomously, use the shell-driven pipeline:
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
- ```bash
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
- # Override AI model
41
- ./dev-pipeline/run-recovery.sh run --model claude-opus-4.6
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 confirmation
68
+ ├── Phase 1: Report + user choice
78
69
  │ ├── Display detection results
79
70
  │ ├── If code changes exist → run test suite
80
- │ └── User confirms "continue" proceed
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 Confirm
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
- Ready to resume from Phase 5 (Review). Continue?
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 the user declines, suggest alternatives:
179
- - "Use `/bug-fix-workflow` to start fresh"
180
- - "Use `/feature-workflow` to start fresh"
181
- - "Use `/refactor-workflow` to start fresh"
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 confirmed recovery.
211
+ **CHECKPOINT CP-REC-1**: User chose recovery approach.
184
212
 
185
213
  ---
186
214
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prizmkit",
3
- "version": "1.1.29",
3
+ "version": "1.1.30",
4
4
  "description": "Create a new PrizmKit-powered project with clean initialization — no framework dev files, just what you need.",
5
5
  "type": "module",
6
6
  "bin": {