/** * `adapters remote install ` / `adapters remote update `. * * Self-install pipeline — uses `buildInvocationCommand()` to build each step * so the transport (ssh/docker/k8s) is selectable via `--mode` and works * uniformly across environments. * * Steps: * 1. Probe: `adapters --version` — check if adapters is on the remote. * 2. Install: `npm install -g @a5c-ai/adapters-cli` if missing (or --force). * 3. Harness: `adapters install ` — deploy the desired harness. * 4. Verify: `adapters detect --all --json` — confirm the harness is active. */ import type { AgentMuxClient } from '@a5c-ai/comm-adapter'; import type { ParsedArgs, FlagDef } from '../parse-args.js'; export declare const REMOTE_FLAGS: Record; /** Minimal spawner used by the remote command. Injectable for tests. */ export type RemoteSpawner = (command: string, args: string[]) => Promise<{ code: number; stdout: string; stderr: string; }>; export interface RemoteCommandDeps { spawner?: RemoteSpawner; } /** * `adapters remote install [--mode ssh|docker|k8s|local] [--harness ]` * `adapters remote update ...` */ export declare function remoteCommand(_client: AgentMuxClient, args: ParsedArgs, deps?: RemoteCommandDeps): Promise;