/** * Live-mesh helpers for manifest runs: a transient, invisible probe endpoint that `down -f` uses to * read the roster and drive the running manager, and the manager's `launch` call. Both go over the * v0.4 ep rails: the deployer credential or view carries the tier-matched instrument rows (static = * admin set; user-mode deployer view = privileged set + an owner-equality `launch` row, the * manager's ledger-derived admin flag governs). Channel-registry reads use `readChannelRegistry`, * which connects itself. */ import { CotalEndpoint, type ControlReply, type MeshLaunchSpec } from "@cotal-ai/core"; export interface MeshConn { space: string; server: string; creds?: string; /** The deploy credential's v0.4 lifecycle uid (static: the instrument mint's; user: the * bearer's ledger claim) — the probe endpoint's caller triple is keyed on it. */ lifecycleUid?: string; /** User mode: the "deployer" VIEW material — a bearer SOURCE (a deploy spans several ≤5-min * token lives across launch readiness waits) + sentinel + the pinned principal a source-mode * endpoint requires. */ user?: { source: () => Promise; sentinelCreds: string; owner: string; actor: string; }; } /** Connect a transient, presence-invisible endpoint (it watches the roster but doesn't register * itself) used to read live state + drive control. The caller stops it. */ export declare function connectProbe(conn: MeshConn): Promise; /** Ask the running manager to launch one resolved agent from the run spec — the v0.4 `launch` * command, capability-only: a static deploy credential holds it via the admin instrument set (a * spawn-capable agent holds no row at all), a user-mode deployer view holds the owner-equality * variant (the manager's ledger-derived admin flag keeps spec-owner === caller-owner there). The * manager derives `.cotal/run/.json` itself; we pass the runId, never a path. When the * serving manager lives in ANOTHER checkout/host, pass `spec` and the resolved spec rides the * control plane inline — the manager validates it as untrusted input and persists it under its own * run tree before launching. */ export declare function launchAgent(ep: CotalEndpoint, runId: string, name: string, spec?: MeshLaunchSpec): Promise; //# sourceMappingURL=live.d.ts.map