/** * `pretty_task_bg_run`, `pretty_task_bg_status`, `pretty_task_bg_logs`, `pretty_task_bg_kill` and `pretty_task_bg_wait`: what the agent can * do with process tasks. * * The tools are thin. They translate a turn into a scope, call the store, and * render the result as text a model can read — all knowledge of shells, * files and process state stays behind the store. * * @author mystery4f <40482524+mystery4f@users.noreply.github.com> */ import type { ToolDefinition } from "@earendil-works/pi-coding-agent"; import type { ChainTasks, ChainTaskView } from "../chain/chain-tasks.js"; import type { ProcessTasks, ProcessTaskView } from "./process-tasks.js"; import type { CommandTemplate } from "./templates.js"; /** One task as a labelled block, the shape both `pretty_task_bg_run` and `pretty_task_bg_status` return. */ export declare function describeTask(view: ProcessTaskView, options?: { full?: boolean; }): string; /** * A chain as a labelled block, its steps read from their own records: the queue * holds ids, so the only honest way to show a step's outcome is to ask the step * (ADR-0013). The cursor marks the step whose turn it is. */ export declare function describeChain(view: ChainTaskView, steps: readonly (ProcessTaskView | undefined)[]): string; export declare function processTaskTools(tasks: ProcessTasks, chains: ChainTasks, templates?: ReadonlyMap): ToolDefinition[];