import type { Command } from "commander"; import { runAcpClientInteractive } from "../acp/client.js"; import { serveAcpGateway } from "../acp/server.js"; import { defaultRuntime } from "../runtime.js"; import { formatDocsLink } from "../terminal/links.js"; import { theme } from "../terminal/theme.js"; export function registerAcpCli(program: Command) { const acp = program.command("acp").description("Run an ACP bridge backed by the Gateway"); acp .option("--url ", "Gateway WebSocket URL (defaults to gateway.remote.url when configured)") .option("--token ", "Gateway token (if required)") .option("--password ", "Gateway password (if required)") .option("--session ", "Default session key (e.g. agent:main:main)") .option("--session-label