/** * task-tools.ts — Restored legacy `task_*` compatibility surface. * * The seven task_* tools were renamed to dispatch_* in commit 18e3f68 and * later consolidated into the graph execution engine (Phase C). The external * test suite still expects the legacy names, so this module restores them as * THIN ADAPTERS over the surviving subsystems — it must NOT duplicate logic * that already lives in the dispatch/graph/query/progress/checkpoint modules. * * Each factory returns a real CanonicalToolDef (via defineTool) backed by the * DispatchManager and its subservices. They are wired into the platform via * `taskToolsOverride` in buildCanonicalTools (see src/platform/tool-assembly.ts * and src/core/services/tool-service.ts), mirroring the dispatch_* and loop_* * restoration pattern. */ import { defineTool } from "../../platform/ports/tool-factory.ts"; import { z } from "zod"; import type { DispatchManager } from "../core/manager.ts"; export declare function createTaskSearchTool(dispatchManager: DispatchManager, directory: string): import("../../platform/types.ts").CanonicalToolDef<{ query: z.ZodString; status: z.ZodOptional>; from_date: z.ZodOptional; to_date: z.ZodOptional; limit: z.ZodDefault>; include_result: z.ZodDefault>; }>; export declare function createTaskBudgetTool(dispatchManager: DispatchManager): import("../../platform/types.ts").CanonicalToolDef<{ session_id: z.ZodOptional; }>; export declare function createTaskGraphTool(dispatchManager: DispatchManager): import("../../platform/types.ts").CanonicalToolDef<{ root_session: z.ZodOptional; depth: z.ZodDefault>; include_status: z.ZodDefault>; }>; export declare function createTaskRetryTool(dispatchManager: DispatchManager): import("../../platform/types.ts").CanonicalToolDef<{ task_id: z.ZodString; modify_prompt: z.ZodOptional; reset_budget: z.ZodDefault>; }>; export declare function createTaskChronologyTool(manager: DispatchManager): import("../../platform/types.ts").CanonicalToolDef<{ group_by: z.ZodDefault>>; from_date: z.ZodOptional; to_date: z.ZodOptional; }>; export declare function createTaskExportTool(manager: DispatchManager, directory: string): import("../../platform/types.ts").CanonicalToolDef<{ task_id: z.ZodString; format: z.ZodDefault>>; export_path: z.ZodOptional; output_path: z.ZodOptional; include_prompt: z.ZodDefault>; }>; /** * Build the restored legacy `task_*` tool surface. * * Thin adapters over the surviving subsystems (dispatch manager, budget, * checkpoint, concurrency, graph status queries). Consumed via `taskToolsOverride` * in buildCanonicalTools (see src/platform/tool-assembly.ts and * src/core/services/tool-service.ts). */ export declare function createTaskTools(manager: DispatchManager, directory: string): Record>; //# sourceMappingURL=task-tools.d.ts.map