@zachjxyz/moxie 0.3.2 → 0.3.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.
Files changed (3) hide show
  1. package/bin/moxie +1 -1
  2. package/lib/phases.sh +25 -16
  3. package/package.json +1 -1
package/bin/moxie CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  set -euo pipefail
18
18
 
19
- MOXIE_VERSION="0.3.2"
19
+ MOXIE_VERSION="0.3.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
@@ -857,8 +857,8 @@ cmd_run() {
857
857
  set -euo pipefail; cd '$(pwd)'
858
858
  export DRY_RUN=0 MOXIE_ROOT='$MOXIE_ROOT' MOXIE_LIB='$MOXIE_LIB'
859
859
  source '$MOXIE_LIB/platform.sh'; source '$MOXIE_LIB/core.sh'
860
- source '$MOXIE_LIB/agents.sh'; source '$MOXIE_LIB/phases.sh'
861
- source '$MOXIE_LIB/tokens.sh'
860
+ source '$MOXIE_LIB/gateway-keys.sh'; source '$MOXIE_LIB/agents.sh'
861
+ source '$MOXIE_LIB/phases.sh'; source '$MOXIE_LIB/tokens.sh'
862
862
  load_agents; _run_pipeline ${run_phases[*]}
863
863
  "
864
864
  elif [ "$MOXIE_PLATFORM" = "linux" ] && command -v systemd-inhibit &>/dev/null; then
@@ -866,8 +866,8 @@ cmd_run() {
866
866
  set -euo pipefail; cd '$(pwd)'
867
867
  export DRY_RUN=0 MOXIE_ROOT='$MOXIE_ROOT' MOXIE_LIB='$MOXIE_LIB'
868
868
  source '$MOXIE_LIB/platform.sh'; source '$MOXIE_LIB/core.sh'
869
- source '$MOXIE_LIB/agents.sh'; source '$MOXIE_LIB/phases.sh'
870
- source '$MOXIE_LIB/tokens.sh'
869
+ source '$MOXIE_LIB/gateway-keys.sh'; source '$MOXIE_LIB/agents.sh'
870
+ source '$MOXIE_LIB/phases.sh'; source '$MOXIE_LIB/tokens.sh'
871
871
  load_agents; _run_pipeline ${run_phases[*]}
872
872
  "
873
873
  else
@@ -875,8 +875,8 @@ cmd_run() {
875
875
  set -euo pipefail; cd '$(pwd)'
876
876
  export DRY_RUN=0 MOXIE_ROOT='$MOXIE_ROOT' MOXIE_LIB='$MOXIE_LIB'
877
877
  source '$MOXIE_LIB/platform.sh'; source '$MOXIE_LIB/core.sh'
878
- source '$MOXIE_LIB/agents.sh'; source '$MOXIE_LIB/phases.sh'
879
- source '$MOXIE_LIB/tokens.sh'
878
+ source '$MOXIE_LIB/gateway-keys.sh'; source '$MOXIE_LIB/agents.sh'
879
+ source '$MOXIE_LIB/phases.sh'; source '$MOXIE_LIB/tokens.sh'
880
880
  load_agents; _run_pipeline ${run_phases[*]}
881
881
  "
882
882
  fi
@@ -929,8 +929,8 @@ cmd_start() {
929
929
  set -euo pipefail; cd '$(pwd)'
930
930
  export DRY_RUN=0 MOXIE_ROOT='$MOXIE_ROOT' MOXIE_LIB='$MOXIE_LIB'
931
931
  source '$MOXIE_LIB/platform.sh'; source '$MOXIE_LIB/core.sh'
932
- source '$MOXIE_LIB/agents.sh'; source '$MOXIE_LIB/phases.sh'
933
- source '$MOXIE_LIB/tokens.sh'
932
+ source '$MOXIE_LIB/gateway-keys.sh'; source '$MOXIE_LIB/agents.sh'
933
+ source '$MOXIE_LIB/phases.sh'; source '$MOXIE_LIB/tokens.sh'
934
934
  load_agents
935
935
  if [ -n '$target_phase' ]; then
936
936
  phases=('$target_phase')
@@ -1425,15 +1425,24 @@ cmd_status() {
1425
1425
  local agent_health=""
1426
1426
  local all_healthy=1
1427
1427
  for name in "${AGENT_NAMES[@]}"; do
1428
- local cmd
1429
- cmd=$(_agent_cmd "$name")
1430
- local binary
1431
- binary=$(echo "$cmd" | awk '{print $1}')
1432
- if command -v "$binary" &>/dev/null; then
1433
- agent_health="$agent_health $name[ok]"
1428
+ if _is_gateway_agent "$name"; then
1429
+ if command -v node &>/dev/null && gateway_has_key "vercel-ai-gateway"; then
1430
+ agent_health="$agent_health $name[ok]"
1431
+ else
1432
+ agent_health="$agent_health $name[!!]"
1433
+ all_healthy=0
1434
+ fi
1434
1435
  else
1435
- agent_health="$agent_health $name[!!]"
1436
- all_healthy=0
1436
+ local cmd
1437
+ cmd=$(_agent_cmd "$name")
1438
+ local binary
1439
+ binary=$(echo "$cmd" | awk '{print $1}')
1440
+ if command -v "$binary" &>/dev/null; then
1441
+ agent_health="$agent_health $name[ok]"
1442
+ else
1443
+ agent_health="$agent_health $name[!!]"
1444
+ all_healthy=0
1445
+ fi
1437
1446
  fi
1438
1447
  done
1439
1448
  echo "Agents:$agent_health"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zachjxyz/moxie",
3
- "version": "0.3.2",
3
+ "version": "0.3.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"