@zachjxyz/moxie 0.4.3 → 0.4.4
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/bin/moxie +1 -1
- package/lib/phases.sh +21 -2
- package/package.json +1 -1
package/bin/moxie
CHANGED
package/lib/phases.sh
CHANGED
|
@@ -1487,11 +1487,27 @@ cmd_status() {
|
|
|
1487
1487
|
echo "Context: $ctx_count document(s) in .moxie/context/"
|
|
1488
1488
|
fi
|
|
1489
1489
|
|
|
1490
|
-
# Quick agent health check
|
|
1490
|
+
# Quick agent health check (includes persisted degradation)
|
|
1491
|
+
local deg_file="$MOXIE_DIR/degraded.json"
|
|
1491
1492
|
local agent_health=""
|
|
1492
1493
|
local all_healthy=1
|
|
1494
|
+
local any_degraded=0
|
|
1493
1495
|
for name in "${AGENT_NAMES[@]}"; do
|
|
1494
|
-
if
|
|
1496
|
+
# Check if agent is degraded (persisted across phases)
|
|
1497
|
+
local is_deg=0
|
|
1498
|
+
if [ -f "$deg_file" ]; then
|
|
1499
|
+
is_deg=$(python3 -c "
|
|
1500
|
+
import json
|
|
1501
|
+
with open('$deg_file') as f:
|
|
1502
|
+
d = json.load(f)
|
|
1503
|
+
print('1' if d.get('$name', False) else '0')
|
|
1504
|
+
" 2>/dev/null)
|
|
1505
|
+
fi
|
|
1506
|
+
|
|
1507
|
+
if [ "$is_deg" = "1" ]; then
|
|
1508
|
+
agent_health="$agent_health $name[DEGRADED]"
|
|
1509
|
+
any_degraded=1
|
|
1510
|
+
elif _is_gateway_agent "$name"; then
|
|
1495
1511
|
if command -v node &>/dev/null && gateway_has_key "vercel-ai-gateway"; then
|
|
1496
1512
|
agent_health="$agent_health $name[ok]"
|
|
1497
1513
|
else
|
|
@@ -1515,6 +1531,9 @@ cmd_status() {
|
|
|
1515
1531
|
if [ "$all_healthy" = "0" ]; then
|
|
1516
1532
|
echo " (some agents missing — run 'moxie doctor' for details)"
|
|
1517
1533
|
fi
|
|
1534
|
+
if [ "$any_degraded" = "1" ]; then
|
|
1535
|
+
echo " (degraded agents are skipped — rm .moxie/degraded.json to reset)"
|
|
1536
|
+
fi
|
|
1518
1537
|
echo ""
|
|
1519
1538
|
|
|
1520
1539
|
for phase in "${PHASES[@]}"; do
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zachjxyz/moxie",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Run multiple AI coding agents through spec-driven phases with quorum convergence. Supports CLI agents (Claude, Codex, Qwen, Aider, Goose, Amp, Cline, Roo) and Vercel AI Gateway models.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"moxie": "bin/moxie"
|