/** * TaskOutput tool: companion tool for polling backgrounded processes. * * Auto-registered alongside the Bash tool. Provides three actions: * - poll: get latest output and status * - send: send input to process stdin * - kill: send a signal to the process * * Reference: docs/cortex/tools/bash.md (Background Execution) */ import { Type, type Static } from 'typebox'; import type { ToolContentDetails } from '../types.js'; import type { CortexToolRuntime } from './runtime.js'; export declare const TaskOutputParams: Type.TObject<{ task_id: Type.TString; action: Type.TUnion<[Type.TLiteral<"poll">, Type.TLiteral<"send">, Type.TLiteral<"kill">]>; input: Type.TOptional; signal: Type.TOptional; }>; export type TaskOutputParamsType = Static; export interface TaskOutputDetails { taskId: string; action: string; status: 'running' | 'completed' | 'failed' | 'not_found'; exitCode: number | null; stdout: string; stderr: string; } export interface TaskOutputToolConfig { runtime?: CortexToolRuntime | undefined; } export declare function createTaskOutputTool(config?: TaskOutputToolConfig): { name: string; description: string; parameters: typeof TaskOutputParams; execute: (params: TaskOutputParamsType) => Promise>; }; //# sourceMappingURL=task-output.d.ts.map