/** * Bash capability — execute shell commands with timeout and output capture. */ import type { CapabilityHandler, CapabilityResult } from '../agent/types.js'; interface BackgroundTask { id: string; command: string; description: string; startedAt: number; status: 'running' | 'completed' | 'failed'; result?: CapabilityResult; } /** Get a background task's result (called by the agent to check status). */ export declare function getBackgroundTask(id: string): BackgroundTask | undefined; /** List all background tasks. */ export declare function listBackgroundTasks(): BackgroundTask[]; /** * Drop completed/failed task records. Running tasks are left in place — * we have no safe way to terminate a spawned process from here, and killing * one out from under a caller that may still be polling it would silently * lose output. Callers starting a fresh session can still query prior * running tasks by id if they need to; anything finished is gone. */ export declare function clearSessionState(): void; export declare const bashCapability: CapabilityHandler; export {};