/** * 模块: 任务规划器(Task Planner) * * Tool: enhance_plan_task * Hook: before_prompt_build * * 功能: * - 将用户的复杂目标分解为可执行的子任务列表 * - 提供结构化的任务描述(目标、步骤、优先级、预计工时) * - 在检测到"帮我做"/"规划"/"分析一下"等触发词时自动注入规划提示 * * 对标 Claude Code "执行编排" 能力(Agent Harness 六层第3层) */ import type { OpenClawPluginApi } from "openclaw/plugin-sdk"; export interface SubTask { id: string; title: string; description: string; priority: "high" | "medium" | "low"; estimatedMinutes?: number; dependencies: string[]; status: "pending" | "in_progress" | "completed"; } export interface TaskPlan { goal: string; tasks: SubTask[]; summary: string; totalEstimatedMinutes?: number; } export declare function registerTaskPlanner(api: OpenClawPluginApi): void;