/** * Knowledge of which tool inputs carry shell commands. Pi's built-ins plus context-mode's ctx_* tools, which many Pi users * run instead of bash. Unknown tools return nothing and are judged from their JSON input only. */ export interface CommandView { /** Shell text to pattern-match and judge. Several commands are joined with newlines. */ command: string; /** False when the code is not shell (JavaScript, Python …); pattern rules still run, the read-only shortcut does not. */ shell: boolean; } /** Extract the command text a tool call would execute, or undefined for tools that run no commands. */ export declare function commandOf(tool: string, input: Record): CommandView | undefined; /** Tools whose calls carry commands and should be guarded by default. */ export declare const COMMAND_TOOLS: string[]; /** Text that signals failure in tool output when the tool itself did not flag an error (context-mode reports exit codes inline). */ export declare function outputReportsFailure(text: string): boolean;