/** * `pretty_task_loop_create`, `pretty_task_loop_list`, `pretty_task_loop_update` and `pretty_task_loop_delete`: what the agent * can do with loop tasks. * * Like the process tools these are thin: they turn a turn into a scope, call the * loop store, and render the record as text. Nothing here owns a timer; the * extension's pump is the only clock. * * @author mystery4f <40482524+mystery4f@users.noreply.github.com> */ import type { ToolDefinition } from "@earendil-works/pi-coding-agent"; import type { CmdLoopTask, PromptLoopTask } from "../base/task.js"; import { type LoopTasks, type LoopTaskView } from "./loop-tasks.js"; /** One loop as a labelled block, shared by the loop tools. */ export declare function describeLoop(view: LoopTaskView): string; /** * The fire listing for one command loop, newest first: the same rows the panel * expands to, so a caller reading `pretty_task_loop_list id=…` sees what the user sees. * A trimmed record says how many older fires it dropped. */ export declare function describeFires(task: CmdLoopTask): string; /** * The iteration listing for one loop, newest first, with the tool calls each turn * made. This is the listing `pretty_task_loop_list id=…` returns and the panel (#9) draws: * an iteration is reachable from the loop, never as a row of its own (ADR-0002). * A truncated record says how much it dropped rather than hiding it. */ export declare function describeIterations(task: PromptLoopTask): string; /** The loop-task tools, bound to one store. */ export declare function loopTaskTools(loops: LoopTasks): ToolDefinition[];