import { c as TaskAction } from "./task-hLh4BOO7.mjs"; import { Static, Type } from "typebox"; //#region src/schemas/task.d.ts declare const TASK_ACTIONS: readonly ['upsert', 'list', 'get', 'delete', 'clear', 'assign', 'cancel']; declare const TASK_STATUSES: readonly ['pending', 'in_progress', 'completed', 'failed', 'deleted']; declare const TASK_CONTEXTS: readonly ['fresh', 'fork']; declare const TOOL_NAME = "task"; declare const TOOL_LABEL = "Task"; declare const ERR_REQUIRES_INTERACTIVE = "/tasks requires interactive mode"; declare const MSG_NO_TASKS = "No tasks yet. Ask the agent to add some!"; /** * Which top-level fields each action accepts. * * The params object is flat and shared across every action, so the schema alone * cannot express "upsert has no top-level id". That gap matters: a call like * `{"action":"upsert","id":3,"tasks":[{"status":"completed"}]}` would otherwise * silently create a duplicate task, because the entry itself carries no id. */ declare const TASK_ACTION_FIELDS: { readonly upsert: readonly ["action", "tasks"]; readonly list: readonly ["action", "status", "includeDeleted"]; readonly get: readonly ["action", "id"]; readonly delete: readonly ["action", "id"]; readonly clear: readonly ["action"]; readonly assign: readonly ["action", "assignments"]; readonly cancel: readonly ["action", "id"]; }; declare function taskActionAcceptsField(action: TaskAction, field: string): boolean; /** Correction hint appended when a per-task field lands at the top level. */ declare const MSG_UPSERT_FIELD_MISPLACED = "Per-task fields belong inside each tasks[] entry, not at the top level: {\"action\":\"upsert\",\"tasks\":[{\"id\":3,\"status\":\"completed\"}]}."; /** * One entry of an upsert. `additionalProperties: false` is load-bearing: pi * validates tool arguments against this schema before `execute` runs, so a * stray `{"action":"update"}` inside an entry is rejected at the boundary. */ declare const TaskItemSchema: Type.TObject<{ id: Type.TOptional; ref: Type.TOptional; subject: Type.TOptional; description: Type.TOptional; activeForm: Type.TOptional; status: Type.TOptional; blockedBy: Type.TOptional>>; addBlockedBy: Type.TOptional>>; removeBlockedBy: Type.TOptional>>; owner: Type.TOptional; metadata: Type.TOptional>; }>; /** One task-to-agent handoff in a native assignment batch. */ declare const TaskAssignmentSchema: Type.TObject<{ id: Type.TInteger; agent: Type.TString; inlineAgent: Type.TOptional>; instructions: Type.TOptional; relevantFiles: Type.TOptional>; priorFindings: Type.TOptional; model: Type.TOptional; context: Type.TOptional; }>; /** * Tool parameters. Every `description` doubles as LLM-facing prompt copy, so * wording changes here change model behaviour. */ declare const TaskParamsSchema: Type.TObject<{ action: Type.TString; tasks: Type.TOptional; ref: Type.TOptional; subject: Type.TOptional; description: Type.TOptional; activeForm: Type.TOptional; status: Type.TOptional; blockedBy: Type.TOptional>>; addBlockedBy: Type.TOptional>>; removeBlockedBy: Type.TOptional>>; owner: Type.TOptional; metadata: Type.TOptional>; }>>>; assignments: Type.TOptional>; instructions: Type.TOptional; relevantFiles: Type.TOptional>; priorFindings: Type.TOptional; model: Type.TOptional; context: Type.TOptional; }>>>; id: Type.TOptional; status: Type.TOptional; includeDeleted: Type.TOptional; }>; /** Remote MCP connections track tasks only; delegation stays with the local agent. */ declare const REMOTE_TASK_ACTIONS: readonly ['upsert', 'list', 'get', 'delete', 'clear']; declare const RemoteTaskParamsSchema: Type.TObject<{ tasks: Type.TOptional; ref: Type.TOptional; subject: Type.TOptional; description: Type.TOptional; activeForm: Type.TOptional; status: Type.TOptional; blockedBy: Type.TOptional>>; addBlockedBy: Type.TOptional>>; removeBlockedBy: Type.TOptional>>; owner: Type.TOptional; metadata: Type.TOptional>; }>>>; id: Type.TOptional; status: Type.TOptional; includeDeleted: Type.TOptional; action: Type.TString; }>; type TaskItemParams = Static; type TaskAssignmentParams = Static; type TaskParams = Static; //#endregion export { TaskParamsSchema as _, RemoteTaskParamsSchema as a, TASK_CONTEXTS as c, TOOL_NAME as d, TaskAssignmentParams as f, TaskParams as g, TaskItemSchema as h, REMOTE_TASK_ACTIONS as i, TASK_STATUSES as l, TaskItemParams as m, MSG_NO_TASKS as n, TASK_ACTIONS as o, TaskAssignmentSchema as p, MSG_UPSERT_FIELD_MISPLACED as r, TASK_ACTION_FIELDS as s, ERR_REQUIRES_INTERACTIVE as t, TOOL_LABEL as u, taskActionAcceptsField as v }; //# sourceMappingURL=task-lCI3ZCI6.d.mts.map