import { z } from 'zod'; import { type CapabilityDispatcher } from '../../capabilities/runtime/dispatcher.js'; import { TaskApplicationService } from '../task-application-service.js'; import type { Config } from '../../config/schema.js'; import type { ProjectService } from '../../projects/index.js'; export declare const TaskMutationOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ ok: z.ZodLiteral; model: z.ZodObject<{ task: z.ZodObject<{ id: z.ZodString; title: z.ZodString; body: z.ZodOptional; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; projectId: z.ZodOptional; milestoneId: z.ZodOptional; parentTaskId: z.ZodOptional; ownerId: z.ZodOptional; delegateAgentId: z.ZodOptional; source: z.ZodString; locale: z.ZodOptional>; latestContractVersion: z.ZodNumber; boardRank: z.ZodDefault; version: z.ZodNumber; contract: z.ZodOptional; resultPolicy: z.ZodEnum<{ selected: "selected"; standard: "standard"; connected: "connected"; }>; expectedOutputs: z.ZodArray; acceptanceCriteria: z.ZodArray; constraints: z.ZodArray; approvalRequired: z.ZodArray; assumptions: z.ZodArray; risks: z.ZodArray; acceptancePolicy: z.ZodEnum<{ verified_auto: "verified_auto"; verified_then_review: "verified_then_review"; manual: "manual"; }>; outputDestinations: z.ZodArray>; createdBy: z.ZodObject<{ kind: z.ZodEnum<{ user: "user"; agent: "agent"; system: "system"; integration: "integration"; }>; id: z.ZodOptional; }, z.core.$strip>; createdAt: z.ZodNumber; }, z.core.$strip>>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; closedAt: z.ZodOptional; }, z.core.$strip>; presentation: z.ZodObject<{ status: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; ready: "ready"; active: "active"; paused: "paused"; completed: "completed"; failed: "failed"; running: "running"; waiting: "waiting"; review: "review"; ended: "ended"; allocating: "allocating"; verifying: "verifying"; blocked: "blocked"; needsUser: "needsUser"; captured: "captured"; }>; reason: z.ZodOptional; primaryAction: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resume">; waitId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resolve_wait">; waitId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"inspect_run">; runId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"review">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"signoff">; resultId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"retry_allocation">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"mark_ready">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"start">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"retry_run">; runId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; attention: z.ZodArray; summary: z.ZodString; sourceId: z.ZodOptional; }, z.core.$strip>>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; allocation: z.ZodOptional; selectedAgentId: z.ZodOptional; selectionReason: z.ZodOptional; reasonCode: z.ZodOptional; attempts: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>>; acceptanceTarget: z.ZodOptional; canSignOff: z.ZodBoolean; }, z.core.$strip>>; allowedCommands: z.ZodArray; }, z.core.$strip>; runId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ ok: z.ZodLiteral; reason: z.ZodEnum<{ not_found: "not_found"; blocked: "blocked"; conflict: "conflict"; invalid_transition: "invalid_transition"; }>; model: z.ZodOptional; phase: z.ZodEnum<{ ready: "ready"; active: "active"; review: "review"; backlog: "backlog"; closed: "closed"; }>; resolution: z.ZodOptional>; priority: z.ZodEnum<{ low: "low"; normal: "normal"; high: "high"; critical: "critical"; }>; dueAt: z.ZodOptional; projectId: z.ZodOptional; milestoneId: z.ZodOptional; parentTaskId: z.ZodOptional; ownerId: z.ZodOptional; delegateAgentId: z.ZodOptional; source: z.ZodString; locale: z.ZodOptional>; latestContractVersion: z.ZodNumber; boardRank: z.ZodDefault; version: z.ZodNumber; contract: z.ZodOptional; resultPolicy: z.ZodEnum<{ selected: "selected"; standard: "standard"; connected: "connected"; }>; expectedOutputs: z.ZodArray; acceptanceCriteria: z.ZodArray; constraints: z.ZodArray; approvalRequired: z.ZodArray; assumptions: z.ZodArray; risks: z.ZodArray; acceptancePolicy: z.ZodEnum<{ verified_auto: "verified_auto"; verified_then_review: "verified_then_review"; manual: "manual"; }>; outputDestinations: z.ZodArray>; createdBy: z.ZodObject<{ kind: z.ZodEnum<{ user: "user"; agent: "agent"; system: "system"; integration: "integration"; }>; id: z.ZodOptional; }, z.core.$strip>; createdAt: z.ZodNumber; }, z.core.$strip>>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; closedAt: z.ZodOptional; }, z.core.$strip>; presentation: z.ZodObject<{ status: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; ready: "ready"; active: "active"; paused: "paused"; completed: "completed"; failed: "failed"; running: "running"; waiting: "waiting"; review: "review"; ended: "ended"; allocating: "allocating"; verifying: "verifying"; blocked: "blocked"; needsUser: "needsUser"; captured: "captured"; }>; reason: z.ZodOptional; primaryAction: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resume">; waitId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"resolve_wait">; waitId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"inspect_run">; runId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"review">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"signoff">; resultId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"retry_allocation">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"mark_ready">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"start">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"retry_run">; runId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; attention: z.ZodArray; summary: z.ZodString; sourceId: z.ZodOptional; }, z.core.$strip>>; operationalState: z.ZodEnum<{ queued: "queued"; cancelled: "cancelled"; failed: "failed"; running: "running"; waiting: "waiting"; allocating: "allocating"; idle: "idle"; verifying: "verifying"; blocked: "blocked"; }>; allocation: z.ZodOptional; selectedAgentId: z.ZodOptional; selectionReason: z.ZodOptional; reasonCode: z.ZodOptional; attempts: z.ZodNumber; updatedAt: z.ZodNumber; }, z.core.$strip>>; acceptanceTarget: z.ZodOptional; canSignOff: z.ZodBoolean; }, z.core.$strip>>; allowedCommands: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>], "ok">; export interface TaskWriteCapabilityDeps { createTask?: TaskApplicationService['create']; getConfig?: () => Config | undefined; getProjects?: () => ProjectService | undefined; wake?: (runs: boolean) => void; abortConversation?: (conversationId: string) => void | Promise; } export declare function registerTaskWriteCapabilities(dispatcher: CapabilityDispatcher, deps: TaskWriteCapabilityDeps): void;