feat(agent): hierarchical executor with path resolve, runtime probe, quiet UI
CI / build-gateway (push) Failing after 16s
CI / sync-config (push) Failing after 0s

Make Zed Agent closer to Cursor: deterministic DevOps path index, live Traefik
port probe before blind edits, stop-after-edit, and quieter Russian progress.
This commit is contained in:
2026-08-13 11:41:27 +03:00
parent 6fd2f0e689
commit a2d238d92e
71 changed files with 10617 additions and 449 deletions
+36
View File
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
set -euo pipefail
ssh -o BatchMode=yes eventhub-ift bash -s <<'REMOTE'
set -euo pipefail
cd /opt/ai-router-stack
set -a; source .env; set +a
echo "== Services =="
docker stack services ai-router --format '{{.Name}} {{.Replicas}} {{.Image}}' | grep -E 'litellm|postgres|router' || true
echo "== Health =="
curl -sS -o /tmp/llh.txt -w "liveliness:%{http_code}\n" --max-time 10 https://litellm.ift.calentiq.com/health/liveliness || true
curl -sS -o /tmp/llr.txt -w "readiness:%{http_code}\n" --max-time 10 https://litellm.ift.calentiq.com/health/readiness || true
head -c 300 /tmp/llh.txt; echo; head -c 500 /tmp/llr.txt; echo
echo "== Recent litellm logs (errors) =="
docker service logs --tail 120 ai-router_litellm 2>&1 \
| grep -iE 'error|exception|fail|traceback|500|401|prisma|database|budget|key|warning' \
| tail -60 || true
echo "== Last 40 lines raw =="
docker service logs --tail 40 ai-router_litellm 2>&1 | tail -40
echo "== Postgres quick =="
PG=$(docker ps -q -f name=ai-router_postgres | head -1)
docker exec -e PGPASSWORD="$POSTGRES_PASSWORD" "$PG" \
psql -U "${POSTGRES_USER:-litellm}" -d "${POSTGRES_DB:-litellm}" -c \
"SELECT count(*) AS spend FROM \"LiteLLM_SpendLogs\"; SELECT count(*) AS users FROM \"LiteLLM_UserTable\"; SELECT count(*) AS tokens FROM \"LiteLLM_VerificationToken\";"
echo "== UI/home probe =="
curl -sS -o /tmp/ui.txt -w "ui:%{http_code}\n" --max-time 15 https://litellm.ift.calentiq.com/ui/ || true
curl -sS -o /tmp/models.txt -w "models:%{http_code}\n" --max-time 20 \
-H "Authorization: Bearer ${LITELLM_MASTER_KEY}" \
https://litellm.ift.calentiq.com/v1/models || true
head -c 200 /tmp/models.txt; echo
REMOTE