prizmkit 1.0.140 → 1.0.141
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
|
@@ -101,11 +101,12 @@ prizm_detect_subagents() {
|
|
|
101
101
|
|
|
102
102
|
local count=0
|
|
103
103
|
if [[ "$USE_STREAM_JSON" == "true" ]]; then
|
|
104
|
-
count=$(grep -c '"name"[[:space:]]*:[[:space:]]*"Agent"' "$session_log" 2>/dev/null ||
|
|
104
|
+
count=$(grep -c '"name"[[:space:]]*:[[:space:]]*"Agent"' "$session_log" 2>/dev/null) || true
|
|
105
105
|
else
|
|
106
|
-
count=$(grep -cE '(Tool: Agent|"tool":\s*"Agent"|tool_use.*Agent|subagent_type)' "$session_log" 2>/dev/null ||
|
|
106
|
+
count=$(grep -cE '(Tool: Agent|"tool":\s*"Agent"|tool_use.*Agent|subagent_type)' "$session_log" 2>/dev/null) || true
|
|
107
107
|
fi
|
|
108
108
|
|
|
109
|
+
count=${count:-0}
|
|
109
110
|
_SUBAGENT_COUNT=$count
|
|
110
111
|
if [[ "$count" -gt 0 ]]; then
|
|
111
112
|
log_info "Subagent calls detected in session: $count"
|
|
@@ -266,7 +266,7 @@ After all critics return, read all 3 reports:
|
|
|
266
266
|
|
|
267
267
|
Before spawning Dev, check plan.md Tasks section:
|
|
268
268
|
```bash
|
|
269
|
-
grep -c '^\- \[ \]' .prizmkit/specs/{{FEATURE_SLUG}}/plan.md 2>/dev/null ||
|
|
269
|
+
grep -c '^\- \[ \]' .prizmkit/specs/{{FEATURE_SLUG}}/plan.md 2>/dev/null || true
|
|
270
270
|
```
|
|
271
271
|
- If result is `0` (all tasks already `[x]`) → **SKIP Phase 4**, go directly to Phase 5. Do NOT spawn Dev.
|
|
272
272
|
- If result is non-zero → spawn Dev agent below.
|