UNPKG

rawi

Version:

Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into

24 lines (21 loc) 964 B
import { ExecResult, ExecContext } from '../../cli/commands/exec/types.js'; interface ExecuteCommandOptions { command: string; shell?: string; cwd?: string; timeout?: number; dryRun?: boolean; interactive?: boolean; copyCommand?: boolean; } declare function executeCommand(options: ExecuteCommandOptions): Promise<ExecResult>; declare function formatExecutionResult(result: ExecResult): string; declare function generateCommandContext(): Promise<ExecContext>; declare function copyToClipboard(text: string): Promise<boolean>; declare function sanitizeCommandOutput(output: string, options?: { maxLength?: number; removeAnsi?: boolean; extractCodeBlock?: boolean; }): string; declare function isPotentiallyDangerousCommand(command: string): boolean; export { type ExecuteCommandOptions, copyToClipboard, executeCommand, formatExecutionResult, generateCommandContext, isPotentiallyDangerousCommand, sanitizeCommandOutput };