/** * BashOutput Tool - Retrieve output from background shells */ import type { Tool } from '../types.js'; import { type ShellManager } from './shell-manager.js'; /** * Input parameters for bashOutput tool */ export interface BashOutputInput { /** * The ID of the background shell to retrieve output from */ bash_id: string; /** * Optional regular expression to filter output lines * Only lines matching this regex will be included */ filter?: string; } /** * Result of bashOutput tool */ export interface BashOutputResult { /** * Shell ID */ id: string; /** * Current status of the shell */ status: 'running' | 'completed' | 'failed' | 'killed'; /** * Standard output (new since last read) */ stdout: string; /** * Standard error (new since last read) */ stderr: string; /** * Whether the shell is still running and may produce more output */ hasMore: boolean; /** * Exit code (if completed) */ exitCode?: number; } /** * BashOutput tool definition */ export declare const bashOutputTool: Tool; /** * Factory function to create a bashOutput tool with custom shell manager */ export declare function createBashOutputTool(options?: { /** * Custom shell manager to use */ shellManager?: ShellManager; }): Tool;