/** * daemon/a2a-cli.ts — `aibroker a2a`, from a shell rather than an MCP tool. * * Two families of verb. `card`, `send`, `get`, `cancel`, `check` are pure * A2A CLIENT operations — they speak to ANY A2A v0.3.0 agent over the * network and need no daemon running locally; `check` in particular is * generic interoperability tooling, not a self-test, and is meant to be * pointed at agents this project did not write. * * `expose`, `unexpose`, `exposed`, `tasks`, `setup` operate on THIS * machine's A2A server: which sessions it publishes as skills, what * tasks are on file, and how the endpoint is exposed to the internet. * `reply` goes through the daemon (`WatcherClient`), the same reason * `aibroker issue` does — the calling session's identity and the audit * record both live there, and a CLI that mutated the task file directly * would bypass both. */ /** AIBROKER_A2A_URL wins whole; otherwise https:///a2a. Exported for tests. */ export declare function resolveOwnA2AUrl(): string; export interface EnsureTokenResult { token: string; /** False when a token was already set — nothing was generated or written. */ generated: boolean; } /** * `AIBROKER_A2A_TOKEN` if already set; otherwise a fresh 32-byte token, * written to `envFile` unless `printOnly`. Never overwrites an existing * token — mirrors inbound.ts's secret handling: generated once, shown once. * Pulled out of `runSetup` so the generate-once / keep-existing behaviour * is testable without touching a real `tailscale` binary or the network. */ export declare function ensureA2AToken(envFile: string, printOnly: boolean): EnsureTokenResult; export interface VerifyResult { ok: boolean; detail: string; skillCount?: number; } /** * Fetch `/.well-known/agent-card.json` and report what came * back. Pulled out of `runSetup` so `setup`'s pass/fail reporting is * testable against an arbitrary URL, without going through DNS, Tailscale, * or this machine's own configured public host. */ export declare function verifyPublicCard(publicBase: string, timeoutMs?: number): Promise; export declare function runA2A(args: string[]): Promise; //# sourceMappingURL=a2a-cli.d.ts.map