prizmkit 1.0.78 → 1.0.79
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 +3 -3
- package/bundled/dev-pipeline/retry-bug.sh +5 -0
- package/bundled/dev-pipeline/retry-feature.sh +6 -0
- package/bundled/dev-pipeline/run-bugfix.sh +3 -0
- package/bundled/dev-pipeline/run.sh +9 -0
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/app-planner/SKILL.md +13 -0
- package/package.json +1 -1
package/bundled/VERSION.json
CHANGED
|
@@ -207,6 +207,11 @@ echo -e "${BOLD} Retry Bug Fix: $BUG_ID — $BUG_TITLE${NC}"
|
|
|
207
207
|
echo -e "${BOLD} Severity: $BUG_SEVERITY${NC}"
|
|
208
208
|
echo -e "${BOLD}════════════════════════════════════════════════════${NC}"
|
|
209
209
|
log_info "CLI: $CLI_CMD (platform: $PLATFORM)"
|
|
210
|
+
if [[ -n "${MODEL:-}" ]]; then
|
|
211
|
+
log_info "Model: $MODEL"
|
|
212
|
+
else
|
|
213
|
+
log_info "Model: (CLI default)"
|
|
214
|
+
fi
|
|
210
215
|
if [[ $SESSION_TIMEOUT -gt 0 ]]; then
|
|
211
216
|
log_info "Session timeout: ${SESSION_TIMEOUT}s"
|
|
212
217
|
else
|
|
@@ -208,6 +208,12 @@ echo -e "${BOLD}═════════════════════
|
|
|
208
208
|
echo -e "${BOLD} Retry: $FEATURE_ID — $FEATURE_TITLE${NC}"
|
|
209
209
|
echo -e "${BOLD}════════════════════════════════════════════════════${NC}"
|
|
210
210
|
log_info "CLI: $CLI_CMD (platform: $PLATFORM)"
|
|
211
|
+
EFFECTIVE_MODEL="${FEATURE_MODEL:-${MODEL:-}}"
|
|
212
|
+
if [[ -n "$EFFECTIVE_MODEL" ]]; then
|
|
213
|
+
log_info "Model: $EFFECTIVE_MODEL"
|
|
214
|
+
else
|
|
215
|
+
log_info "Model: (CLI default)"
|
|
216
|
+
fi
|
|
211
217
|
if [[ $SESSION_TIMEOUT -gt 0 ]]; then
|
|
212
218
|
log_info "Session timeout: ${SESSION_TIMEOUT}s"
|
|
213
219
|
else
|
|
@@ -515,6 +515,9 @@ main() {
|
|
|
515
515
|
log_info "Session timeout: none"
|
|
516
516
|
fi
|
|
517
517
|
log_info "AI CLI: $CLI_CMD (platform: $PLATFORM)"
|
|
518
|
+
if [[ -n "${MODEL:-}" ]]; then
|
|
519
|
+
log_info "Default Model: $MODEL"
|
|
520
|
+
fi
|
|
518
521
|
echo -e "${BOLD}════════════════════════════════════════════════════${NC}"
|
|
519
522
|
echo ""
|
|
520
523
|
|
|
@@ -705,6 +705,12 @@ sys.exit(1)
|
|
|
705
705
|
echo -e "${BOLD}════════════════════════════════════════════════════${NC}"
|
|
706
706
|
log_info "Session ID: $session_id"
|
|
707
707
|
log_info "Resume Phase: $resume_phase"
|
|
708
|
+
local effective_model="${feature_model:-$MODEL}"
|
|
709
|
+
if [[ -n "$effective_model" ]]; then
|
|
710
|
+
log_info "Model: $effective_model"
|
|
711
|
+
else
|
|
712
|
+
log_info "Model: (CLI default)"
|
|
713
|
+
fi
|
|
708
714
|
if [[ -n "$mode_override" ]]; then
|
|
709
715
|
log_info "Mode Override: $mode_override"
|
|
710
716
|
fi
|
|
@@ -886,6 +892,9 @@ main() {
|
|
|
886
892
|
log_info "Session timeout: none"
|
|
887
893
|
fi
|
|
888
894
|
log_info "AI CLI: $CLI_CMD (platform: $PLATFORM)"
|
|
895
|
+
if [[ -n "${MODEL:-}" ]]; then
|
|
896
|
+
log_info "Default Model: $MODEL"
|
|
897
|
+
fi
|
|
889
898
|
echo -e "${BOLD}════════════════════════════════════════════════════${NC}"
|
|
890
899
|
echo ""
|
|
891
900
|
|
|
@@ -49,6 +49,7 @@ Before questions, check optional context files (never block if absent):
|
|
|
49
49
|
- `.prizm-docs/root.prizm` (architecture/project context)
|
|
50
50
|
- `.prizmkit/config.json` (existing stack preferences)
|
|
51
51
|
- existing `feature-list.json` (required for incremental mode)
|
|
52
|
+
- `.prizmkit/available-models.json` (detected AI models, from detect-models.sh)
|
|
52
53
|
|
|
53
54
|
Note:
|
|
54
55
|
- This skill **reads** `.prizmkit/config.json` if present.
|
|
@@ -83,6 +84,12 @@ Execute the selected scenario workflow in conversation mode with mandatory check
|
|
|
83
84
|
### Interactive Phases
|
|
84
85
|
1. clarify business goal and scope
|
|
85
86
|
2. confirm constraints and tech assumptions
|
|
87
|
+
2b. (optional) if `.prizmkit/available-models.json` exists and `model_switch_supported == true`:
|
|
88
|
+
- read the file and show available models to user
|
|
89
|
+
- ask: "要为 feature 指定 AI 模型吗?" with options:
|
|
90
|
+
a) 全部使用某个模型(写入每个 feature 的 model 字段)
|
|
91
|
+
b) 不指定(使用 $MODEL 环境变量或 CLI 默认)
|
|
92
|
+
- if user chooses a model, remember it for Phase 6 JSON generation
|
|
86
93
|
3. propose feature set with dependencies
|
|
87
94
|
4. refine descriptions and acceptance criteria
|
|
88
95
|
5. verify DAG/order/priorities
|
|
@@ -151,6 +158,12 @@ AI: "Ready to proceed to dev-pipeline."
|
|
|
151
158
|
- valid dependency DAG
|
|
152
159
|
- new items default `status: "pending"`
|
|
153
160
|
- English feature titles for stable slug generation
|
|
161
|
+
- if `.prizmkit/available-models.json` exists and `model_switch_supported == true`:
|
|
162
|
+
- if user specified model preference during planning:
|
|
163
|
+
- set `model` field on every feature with user's chosen model
|
|
164
|
+
- if user said "no preference" → omit `model` field
|
|
165
|
+
- model IDs should come from `.prizmkit/available-models.json` models list
|
|
166
|
+
- `model` field is optional — omitting it means the pipeline uses $MODEL env or CLI default
|
|
154
167
|
|
|
155
168
|
## Next-Step Execution Policy (after planning)
|
|
156
169
|
|