/** * `agents` Command — read the installed agent CLI versions, and update one * (Issue #2069). * * commandmate agents versions [--json] * commandmate agents update [--yes] [--json] [--check] * * ## Why the update runs here rather than through the server * * The whole point of this Issue is that the updater must not run inside an * agent's tmux pane: codex's own "Update now" terminates codex and does not * restart it, leaving the pane at a bare shell (#2070). A CLI process is * already the "somewhere else" that requirement asks for, so this command runs * `lib/updates/agent-updater` directly — no server, no port, and it works on a * machine where CommandMate is not running at all. The GUI's button reaches the * same two functions through `POST /api/agents/update`. * * ## Imports are relative on purpose * * `tsconfig.cli.json` resets `"paths"` to `{}`, so a single `@/...` anywhere in * this file's transitive closure breaks `npm run build:cli` (the #1933 defect * PR #1991 fixed). `lib/updates/*` is written to that constraint — see the note * in `codex-version.ts` about not importing `getCodexHome`. */ import { Command } from 'commander'; /** Options accepted by `agents versions` / `agents update`. */ export interface AgentsCommandOptions { json?: boolean; yes?: boolean; /** Report the plan and stop, changing nothing. */ check?: boolean; } /** Build the `agents` command tree. */ export declare function createAgentsCommand(): Command; //# sourceMappingURL=agents.d.ts.map