/** * claim_task tool — Atomically claim a pending task for an agent. * * Sets the task status to "claimed" and records the assignee. * Fails if the task is already claimed, in progress, or in a terminal state. * This prevents two agents from claiming the same task. * * After claiming, the agent should: * 1. Read the task note and all linked context_notes * 2. Call update_task to set status to "in_progress" * 3. Do the work * 4. Call complete_task when done */ import { z } from "zod"; import { Vault } from "../vault.js"; import { Config } from "../config.js"; export declare const claimTaskSchema: { task_id: z.ZodString; assignee: z.ZodString; worktree_branch: z.ZodOptional; worktree_path: z.ZodOptional; }; export declare const claimTaskHandler: (vault: Vault, config: Config) => (input: { task_id: string; assignee: string; worktree_branch?: string; worktree_path?: string; }) => Promise<{ content: { type: "text"; text: string; }[]; isError?: boolean; }>; //# sourceMappingURL=claim-task.d.ts.map