@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 CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  set -euo pipefail
18
18
 
19
- MOXIE_VERSION="0.4.3"
19
+ MOXIE_VERSION="0.4.4"
20
20
  # Resolve symlinks (npm installs bin as a symlink)
21
21
  _self="$0"
22
22
  while [ -L "$_self" ]; do
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 _is_gateway_agent "$name"; then
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",
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"