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
53 lines (51 loc) • 1.02 kB
TypeScript
interface ExecOptions {
profile?: string;
verbose?: boolean;
dryRun?: boolean;
confirm?: boolean;
interactive?: boolean;
timeout?: number;
shell?: string;
workingDirectory?: string;
copyCommand?: boolean;
}
interface ExecContext {
os: {
type: string;
release: string;
platform: string;
arch: string;
};
node: {
version: string;
};
shell: string;
cwd: string;
home: string;
cpu: {
model: string;
cores: number;
};
memory: {
total: number;
free: number;
};
directoryListing: string;
}
interface ExecResult {
command: string;
stdout?: string;
stderr?: string;
exitCode?: number;
executionTime: number;
success: boolean;
}
interface ExecSession {
id: string;
profile: string;
description: string;
commands: ExecResult[];
createdAt: Date;
updatedAt: Date;
}
export type { ExecContext, ExecOptions, ExecResult, ExecSession };