Step 0 — Immediate Output
Before ANY tool calls, display this banner:
code
╔══════════════════════════════════════════════════════════════╗ ║ PLAN-BUILD-RUN ► DASHBOARD ║ ╚══════════════════════════════════════════════════════════════╝
Then proceed to Step 1.
Behavior
- •
Parse arguments: Extract
--port Nfrom the user's input. Default to3000. - •
Locate dashboard: The dashboard lives at
../../dashboard/relative to this plugin's root directory (i.e. two levels up fromplugins/copilot-pbr/). Resolve the absolute path. - •
Check dependencies: Check if
node_modules/exists in the dashboard directory. If not, run:codenpm install --prefix <dashboard-dir>
- •
Launch dashboard: Run in background:
codenode <dashboard-dir>/bin/cli.js --dir <cwd> --port <port> &
- •
Output to user:
codeDashboard running at http://localhost:<port> Open this URL in your browser to view your project's planning state.
Notes
- •If the port is already in use, the dashboard will fail to start — suggest the user try a different port with
--port. - •The dashboard watches
.planning/for live updates via SSE.