/** * CLI entry point for team runtime. * Reads JSON config from --input-json, --input-json-base64, or stdin, * runs startTeam/monitorTeam/shutdownTeam, writes structured JSON result * to stdout. * * Spawned by OMX team orchestration entrypoints when a background team run starts. */ import type { TeamShutdownSummary } from './runtime.js'; import type { ApprovedTeamExecutionBinding } from './approved-execution.js'; import type { TeamDecompositionMetadata } from './repo-aware-decomposition.js'; interface CliInput { teamName: string; task?: string; workerCount?: number; agentType?: string; agentTypes?: string[]; tasks: Array<{ subject: string; description: string; owner?: string; blocked_by?: string[]; depends_on?: string[]; symbolic_depends_on?: string[]; role?: string; requires_code_change?: boolean; filePaths?: string[]; domains?: string[]; lane?: string; allocation_reason?: string; symbolic_id?: string; }>; cwd: string; approvedExecution?: ApprovedTeamExecutionBinding | null; pollIntervalMs?: number; decompositionMetadata?: TeamDecompositionMetadata; } type TeamWorkerProvider = 'codex' | 'claude' | 'gemini'; interface TaskResult { taskId: string; status: string; summary: string; } interface CliOutput { status: 'completed' | 'failed'; teamName: string; taskResults: TaskResult[]; duration: number; workerCount: number; } export type TerminalPhaseResult = 'complete' | 'failed' | 'cancelled'; export interface TerminalCliResult { output: CliOutput; exitCode: number; notice: string; } export interface LivePaneState { paneIds: string[]; leaderPaneId: string; } export declare function loadLivePaneState(teamName: string, cwd: string): Promise; export declare function shutdownWithForceFallback(teamName: string, cwd: string): Promise; export declare function detectDeadWorkerFailure(deadWorkerCount: number, liveWorkerPaneCount: number, hasOutstandingWork: boolean, phase: string): { deadWorkerFailure: boolean; fixingWithNoWorkers: boolean; }; export declare function resolveRuntimeCliStateRoot(cwd: string, env?: NodeJS.ProcessEnv): string; export declare function collectTaskResults(stateRoot: string, teamName: string): TaskResult[]; export declare function buildCliOutput(stateRoot: string, teamName: string, status: 'completed' | 'failed', workerCount: number, startTimeMs: number): CliOutput; export declare function buildTerminalCliResult(stateRoot: string, teamName: string, phase: TerminalPhaseResult, workerCount: number, startTimeMs: number): TerminalCliResult; export declare function normalizeAgentTypes(raw: string[], workerCount: number): TeamWorkerProvider[]; export declare function resolveRuntimeCliProviderMap(raw: string[] | undefined, workerCount: number): string | null; export declare function resolveRuntimeCliAgentType(raw: string | undefined): string; export declare function resolveRuntimeCliMissingFields(input: Partial): string[]; export declare function resolveRuntimeCliTask(input: Pick): string; export declare function resolveRuntimeCliInlineInput(argv: readonly string[]): string | null; export {}; //# sourceMappingURL=runtime-cli.d.ts.map