import type { Tool } from "@modelcontextprotocol/server"; import type { ToolContext, ToolResult } from '../types.js'; /** * C1(2026-10-14 全维度审查): batch 三个 action(create_files/run_verify/diff_scenes)的 * 专属参数 schema 片段——单源导出,workflow.ts inputSchema 展开合并。 * v0.18 吸收时只搬了 handler 委托(workflow.ts handleBatchAction),没搬 schema 声明, * 导致 P8-2 顶层未知参数拒绝把 files/scene_a 等全拒("未知参数: files")——真实 MCP * 调用 100% 失败。此导出是两处声明的唯一来源,改动须同步消费方(workflow.ts)语义。 * 注意: timeout/project_path/action 不在此列——workflow schema 已有同名参数(dev_loop * 与 run_verify 的 timeout 范围不同由各自 handler validateTimeout 校验,schema 层同型)。 */ export declare const BATCH_ACTION_PARAMS: { files: { type: string; description: string; items: { type: string; properties: { path: { type: string; description: string; }; content: { type: string; description: string; }; overwrite: { type: string; description: string; default: boolean; }; }; required: string[]; }; }; validate: { type: string; description: string; default: boolean; }; scenes: { type: string; description: string; items: { type: string; }; }; capture_tree: { type: string; description: string; default: boolean; }; scene_a: { type: string; description: string; }; scene_b: { type: string; description: string; }; ignore_properties: { type: string; description: string; items: { type: string; }; default: string[]; }; }; export declare function getToolDefinitions(): Tool[]; export declare function handleTool(name: string, args: Record, ctx: ToolContext): Promise; export declare const TOOL_META: Record; export declare function handleBatchAction(action: string, args: Record, ctx: ToolContext): Promise;