Skip to content

Add CLI JSON bridge status#225

Open
NagyVikt wants to merge 1 commit intomainfrom
agent/agent-10/cli-bridge-status-json-2026-04-29-00-43
Open

Add CLI JSON bridge status#225
NagyVikt wants to merge 1 commit intomainfrom
agent/agent-10/cli-bridge-status-json-2026-04-29-00-43

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Summary

  • export the MCP bridge status builder for CLI reuse
  • make colony bridge status --json emit compact one-line JSON
  • assert CLI JSON output stays compact while preserving the MCP payload shape

Verification

  • pnpm --filter @imdeadpool/colony-cli test -- bridge.test.ts
  • pnpm --filter @colony/mcp-server test -- bridge-status.test.ts
  • pnpm --filter @imdeadpool/colony-cli typecheck
  • pnpm --filter @imdeadpool/colony-cli build
  • node apps/cli/dist/index.js bridge status --json --repo-root /home/deadpool/Documents/recodee/colony --session-id agent10-cli-bridge-status-20260429 --agent codex --branch agent/agent-10/cli-bridge-status-json-2026-04-29-00-43

Notes

Local-only constraint was superseded by the follow-up request to create the PR.

The CLI already had the bridge status surface, but it reached into workspace source and pretty-printed JSON. HUD callers need the same builder-backed payload as MCP through the packaged CLI with compact output.

Constraint: User requested local-only work; no push or PR was created.

Rejected: Keep importing ../../../mcp-server/src/tools/bridge.js | packaged CLI builds would depend on workspace source layout.

Confidence: high

Scope-risk: narrow

Directive: Keep bridge status shape owned by the MCP bridge builder; CLI should only collect identity/options and serialize the payload.

Tested: pnpm --filter @imdeadpool/colony-cli test -- bridge.test.ts; pnpm --filter @colony/mcp-server test -- bridge-status.test.ts; pnpm --filter @imdeadpool/colony-cli typecheck; pnpm --filter @imdeadpool/colony-cli build; node apps/cli/dist/index.js bridge status --json --repo-root /home/deadpool/Documents/recodee/colony --session-id agent10-cli-bridge-status-20260429 --agent codex --branch agent/agent-10/cli-bridge-status-json-2026-04-29-00-43

Not-tested: Full monorepo test suite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant