bytelyst-devops-tools/agent-queue/lib
saravanakumardb1 57831e3e7a feat(agent-queue): report run insights to the fleet + normalize API base
#1 fleet_report_insights: on a successful fleet run the factory now reports the
parsed cost/token/effort metrics (model, tokensIn/Out/cached, costUsd, turns,
toolCalls) plus the run result onto the coordinator run via POST
.../lease/release (which also frees the lease). parse_usage already extracted
these into the job meta; they were never sent. Engines that do not expose usage
locally (devin) still land result + endedAt.

#2 normalize AQ_FLEET_API: platform-service mounts fleet under /api, so a base
without it silently returned 404 on every call. Strip a trailing slash and
append /api unless already present, so AQ_FLEET_API=http://host:4003 works too.

selftest: +2 cases (insights reported via lease/release; API-base normalization).
Full self-test PASS.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-31 02:27:51 -07:00
..
fleet-client.sh feat(agent-queue): report run insights to the fleet + normalize API base 2026-05-31 02:27:51 -07:00
fleet-dash.mjs feat(agent-queue): re-point TUI dashboard at /fleet API (parity) 2026-05-30 19:47:56 -07:00
fleet-dash.test.mjs feat(agent-queue): re-point TUI dashboard at /fleet API (parity) 2026-05-30 19:47:56 -07:00