import { type RegisteredProject } from '../../infra/config/global/projectRegistry.js'; import { CentralTaskRepository, type CentralTaskLaunchDecision, type CentralWorktreeRequest } from '../../infra/task/centralStateRepository.js'; import { type CentralTaskAction, type CentralTaskActionResult } from './task-actions.js'; import type { WebChatService, WebTaskActionClaim, WebTaskActionKind } from './chat.js'; import { buildWorkerArguments, CENTRAL_EXECUTION_ID_ENV, CENTRAL_GENERATION_ENV, CENTRAL_OWNER_TOKEN_ENV, CENTRAL_STATE_ID_ENV, CENTRAL_TASK_ID_ENV, type SpawnProcess } from './central-worker-spawn.js'; export interface LaunchRequest { readonly prompt: string; readonly workflow: string; readonly worktree?: CentralWorktreeRequest; readonly branch?: string; readonly baseBranch?: string; readonly autoPr?: boolean; readonly draftPr?: boolean; } export interface LaunchResult { readonly pid: number; readonly disposition: 'started' | 'reused'; readonly mode: 'run' | 'watch'; } export { buildWorkerArguments, CENTRAL_EXECUTION_ID_ENV, CENTRAL_GENERATION_ENV, CENTRAL_OWNER_TOKEN_ENV, CENTRAL_STATE_ID_ENV, CENTRAL_TASK_ID_ENV, }; export type { SpawnProcess } from './central-worker-spawn.js'; export declare function parseLaunchRequest(value: unknown): LaunchRequest; export declare function openProjectRepository(globalConfigDirectory: string, project: RegisteredProject): Promise; export declare function spawnReservedDecision(options: { readonly workerEntryPath?: string; readonly globalConfigDirectory: string; readonly project: RegisteredProject; readonly repository: CentralTaskRepository; readonly decision: CentralTaskLaunchDecision; readonly spawnProcess: SpawnProcess; }): Promise; export declare function launchTaktRun(options: { readonly workerEntryPath?: string; readonly projectDirectory: string; readonly globalConfigDirectory?: string; readonly registeredProject?: RegisteredProject; readonly request: LaunchRequest; readonly spawnProcess: SpawnProcess; }): Promise; export declare function requeueTaktTask(options: { readonly workerEntryPath?: string; readonly projectDirectory: string; readonly globalConfigDirectory?: string; readonly registeredProject?: RegisteredProject; readonly taskId: string; readonly spawnProcess: SpawnProcess; }): Promise; export declare function launchWithNodeSpawn(options: Omit[0], 'spawnProcess'>): Promise; export declare function requeueWithNodeSpawn(options: Omit[0], 'spawnProcess'>): Promise; /** * Execute an action against the central ledger selected by the registered * project. Unlike the legacy requeue endpoint this never constructs a * project-local TaskRunner or touches tasks.yaml. */ export declare function executeCentralTaskActionWithNodeSpawn(options: { readonly projectDirectory: string; readonly globalConfigDirectory?: string; readonly registeredProject?: RegisteredProject; readonly taskId: string; readonly action: CentralTaskAction; readonly input?: string; readonly conversationId?: string; readonly taskActionClaim?: WebTaskActionClaim; }): Promise; /** Open retry/instruct without mutating the central task until the user uses /go. */ export declare function startCentralTaskActionConversation(options: { readonly projectDirectory: string; readonly globalConfigDirectory?: string; readonly registeredProject?: RegisteredProject; readonly taskId: string; readonly action: WebTaskActionKind; readonly chat: WebChatService; }): Promise; //# sourceMappingURL=launcher.d.ts.map