export declare const EXTERNAL_RUN_REGISTRY_VERSION = 1; export declare const EXTERNAL_RUN_REGISTRY_KEY = "pi-subagents.external-runs.v1"; export type ExternalRunState = "running" | "completed" | "failed" | "stopped"; export type ExternalRunCompletionReason = "exit" | "timeout" | "user-kill" | "auto-close-quiet" | "crash" | "unknown"; /** An observational record for work owned by another runtime. */ export interface ExternalRun { id: string; sessionId: string; source: string; state: ExternalRunState; command?: string; cwd?: string; isolationPath?: string; owner?: string; completionReason?: ExternalRunCompletionReason; reportPath?: string; startedAt?: number; completedAt?: number; exitCode?: number | null; residualRisks?: string[]; } export interface ExternalRunProvider { name: string; listExternalRuns(): readonly ExternalRun[]; } export interface RegisteredExternalRun extends ExternalRun { provider: string; } /** Register an observational provider. pi-subagents never starts, stops, or steers these processes. */ export declare function registerExternalRunProvider(provider: ExternalRunProvider): () => void; /** Snapshot records for one Pi session. Records are read-only observations of foreign process ownership. */ export declare function snapshotExternalRuns(sessionId: string): readonly RegisteredExternalRun[]; //# sourceMappingURL=external-runs.d.ts.map