import { t as DeliveryContext } from "./delivery-context.types-CMuLXJxD.js"; //#region src/process/command-queue.types.d.ts type CommandQueueEnqueueOptions = { warnAfterMs?: number; onWait?: (waitMs: number, queuedAhead: number) => void; taskTimeoutMs?: number; taskTimeoutProgressAtMs?: () => number | undefined; priority?: "foreground" | "normal" | "background"; }; type CommandQueueEnqueueFn = (task: () => Promise, opts?: CommandQueueEnqueueOptions) => Promise; //#endregion //#region src/tasks/task-registry.types.d.ts type TaskRuntime = "subagent" | "acp" | "cli" | "cron"; type TaskStatus = "queued" | "running" | "succeeded" | "failed" | "timed_out" | "cancelled" | "lost"; type TaskDeliveryStatus = "pending" | "delivered" | "session_queued" | "failed" | "parent_missing" | "not_applicable"; type TaskNotifyPolicy = "done_only" | "state_changes" | "silent"; type TaskTerminalOutcome = "succeeded" | "blocked"; type TaskScopeKind = "session" | "system"; type TaskStatusCounts = Record; type TaskRuntimeCounts = Record; type TaskRegistrySummary = { total: number; active: number; terminal: number; failures: number; byStatus: TaskStatusCounts; byRuntime: TaskRuntimeCounts; }; type TaskDeliveryState = { taskId: string; requesterOrigin?: DeliveryContext; lastNotifiedEventAt?: number; }; type TaskRecord = { taskId: string; runtime: TaskRuntime; taskKind?: string; sourceId?: string; requesterSessionKey: string; ownerKey: string; scopeKind: TaskScopeKind; childSessionKey?: string; parentFlowId?: string; parentTaskId?: string; agentId?: string; runId?: string; label?: string; task: string; status: TaskStatus; deliveryStatus: TaskDeliveryStatus; notifyPolicy: TaskNotifyPolicy; createdAt: number; startedAt?: number; endedAt?: number; lastEventAt?: number; cleanupAfter?: number; error?: string; progressSummary?: string; terminalSummary?: string; terminalOutcome?: TaskTerminalOutcome; }; //#endregion //#region src/tasks/task-flow-registry.types.d.ts type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; }; type TaskFlowSyncMode = "task_mirrored" | "managed"; type TaskFlowStatus = "queued" | "running" | "waiting" | "blocked" | "succeeded" | "failed" | "cancelled" | "lost"; type TaskFlowRecord = { flowId: string; syncMode: TaskFlowSyncMode; ownerKey: string; requesterOrigin?: DeliveryContext; controllerId?: string; revision: number; status: TaskFlowStatus; notifyPolicy: TaskNotifyPolicy; goal: string; currentStep?: string; blockedTaskId?: string; blockedSummary?: string; stateJson?: JsonValue; waitJson?: JsonValue; cancelRequestedAt?: number; createdAt: number; updatedAt: number; endedAt?: number; }; //#endregion export { TaskDeliveryStatus as a, TaskRegistrySummary as c, TaskScopeKind as d, TaskStatus as f, CommandQueueEnqueueFn as h, TaskDeliveryState as i, TaskRuntime as l, TaskTerminalOutcome as m, TaskFlowRecord as n, TaskNotifyPolicy as o, TaskStatusCounts as p, TaskFlowStatus as r, TaskRecord as s, JsonValue as t, TaskRuntimeCounts as u };