feat(agent): hierarchical executor with path resolve, runtime probe, quiet UI
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:
@@ -0,0 +1,32 @@
|
||||
#!/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
|
||||
BASE="${PUBLIC_URL:-https://ai-router.ift.calentiq.com}"
|
||||
KEY="${ROUTER_API_KEY:-$LITELLM_MASTER_KEY}"
|
||||
echo "BASE=$BASE"
|
||||
# 1) Plan request (no tools) — hierarchical plan confirm
|
||||
curl -sS --max-time 120 "$BASE/v1/chat/completions" \
|
||||
-H "Authorization: Bearer $KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "X-AI-Orchestrate: force" \
|
||||
-H "X-AI-Quality: balanced" \
|
||||
-d '{
|
||||
"model": "smart-router",
|
||||
"stream": false,
|
||||
"messages": [
|
||||
{"role": "user", "content": "observer.ift.calentiq.com не работает - Bad Gateway почини"}
|
||||
]
|
||||
}' | tee /tmp/agent-plan.json | python3 -c '
|
||||
import json,sys
|
||||
d=json.load(sys.stdin)
|
||||
msg=(d.get("choices") or [{}])[0].get("message") or {}
|
||||
print("=== PLAN CONTENT ===")
|
||||
print((msg.get("content") or "")[:2500])
|
||||
meta=d.get("x_router_meta") or {}
|
||||
print("=== META keys ===", sorted(meta.keys())[:30])
|
||||
print("mode", meta.get("mode"), "awaiting", meta.get("awaiting_plan_confirm"), "planner", meta.get("planner_model"))
|
||||
'
|
||||
REMOTE
|
||||
Reference in New Issue
Block a user