/** * Built-in Bash Tools for Chat Mode * Provides bash command execution without external MCP server dependency */ export interface BashTool { name: string; description: string; inputSchema: any; } export interface BashToolResult { stdout: string; stderr: string; exitCode: number; error?: string; } export declare class BashTools { private static instance; private constructor(); static getInstance(): BashTools; /** * Get available bash tools */ getTools(): BashTool[]; /** * Execute a bash tool */ executeTool(toolName: string, args: any): Promise; /** * Format tools for AI system prompt */ formatToolsForPrompt(): string; /** * Parse tool call from AI response */ parseToolCall(response: string): { tool: string; args: any; } | null; } /** * Usage Example: * * const bashTools = BashTools.getInstance(); * * // Get available tools * const tools = bashTools.getTools(); * * // Execute a command * const result = await bashTools.executeTool('bash.execute_command', { * command: 'ls -la' * }); * * // Add tools to AI prompt * const systemPrompt = "You are a helpful assistant." + bashTools.formatToolsForPrompt(); */ //# sourceMappingURL=bash-tools.d.ts.map