UNPKG

rawi

Version:

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

4 lines 1.23 kB
/* Rawi (راوي) is the developer-friendly AI CLI that brings the power of 12 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into an intelligent development workspace. */ import{b as i}from"./chunk-LSO6QN77.js";var r=class extends i{constructor(e={}){super(e)}async getFileStats(e){let{promises:t}=await import("fs"),{stat:s}=t;try{return{size:(await s(e)).size,exists:!0}}catch{return{size:0,exists:!1}}}async validateFile(e){let{exists:t,size:s}=await this.getFileStats(e);if(!t)throw new Error(`File not found: ${e}`);this.validateFileSize(s)}logVerbose(e){this.options.verbose&&console.log(`[FileReader] ${e}`)}handleError(e,t){let s=e instanceof Error?e.message:String(e);throw new Error(`Failed to read file "${t}": ${s}`)}};export{r as a}; /* Rawi (راوي) is the developer-friendly AI CLI that brings the power of 12 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into an intelligent development workspace. */ //# sourceMappingURL=chunk-ULKST7AH.js.map