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.67 kB
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }/* 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. */ var _chunkPAKWO5INcjs = require('./chunk-PAKWO5IN.cjs');var r=class extends _chunkPAKWO5INcjs.b{constructor(e={}){super(e)}async getFileStats(e){let{promises:t}=await Promise.resolve().then(() => _interopRequireWildcard(require("fs"))),{stat:s}=t;try{return{size:(await s(e)).size,exists:!0}}catch (e2){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}`)}};exports.a = r; /* 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-YW2ECH45.cjs.map