Remove the local relay dashboard
Summary
Removes the local web dashboard (relay-dashboard-server / @agent-relay/dashboard-server) and every reference/dependency on it across the CLI, supporting packages, helper scripts, and current CLI docs.
agent-relay up is now a plain broker launcher:
- attached by default,
--backgroundto detach - the dashboard-only flags
--no-dashboard,--port, and--foregroundare gone
Changes
CLI / broker (packages/cli)
broker-lifecycle.ts: removed all dashboard machinery (spawning, static-asset discovery/refresh, the GitHubdashboard-ui.tar.gzdownload, dashboard port-fallback) and the dead "reuse broker for dashboard" branch. AddedresolveBrokerBasePort()backed byAGENT_RELAY_BROKER_PORT(default 3888; broker API binds base+1). Orphan detection now keys onupminus--backgroundinstead of the removed--foreground.core.ts: dropped the dashboard flags, the dashboard-binary resolver, and the unused dashboard-portfindBrokerApiPort.core-maintenance.ts: uninstall no longer touches dashboard assets, therelay-dashboard-serverbinary, or the@agent-relay/dashboard-servernpm package.telemetry/events.ts: dropped thedashboard/human_dashboardenum members.
Other packages: config (removed the dead localDashboardUrl / LOCAL_DASHBOARD_URL); comment fixes in harness-driver and policy.
Scripts: deleted run-dashboard.js and the stale sibling-repo test-spawn-refactor.sh; fixed removed-flag usages in ci-standalone-smoke.sh, e2e-test.sh (its --port now routes through AGENT_RELAY_BROKER_PORT, so the CI workflow keeps working), the demos, and watch-cli-tools.sh.
Tests: updated core.test.ts, broker-lifecycle.test.ts, and the e2e fleet harness for the new flag/port model.
Docs: removed the dashboard wording and the --no-dashboard/--port/--foreground rows from the current CLI docs (cli-broker-lifecycle.mdx, reference-cli.mdx, cli-overview.mdx). The 7.1.1/ snapshot (incl. relay-dashboard.mdx) is intentionally left as a historical version; generic uses of the word "dashboards" (operator consoles / API consumers) are left intact. The cloud dashboardUrl / appUrl (hosted web app) are a different concept and untouched.
Verification
npm run typecheck— passes (exit 0)- CLI test suite — 366 passed, 5 skipped