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
4 lines • 2.63 kB
JavaScript
Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }/* 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 an intelligent development workspace. */
var _chunkW2WH4GMZcjs = require('./chunk-W2WH4GMZ.cjs');var _chunkG3NONHT6cjs = require('./chunk-G3NONHT6.cjs');var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);var d=(o,e)=>{_chunkW2WH4GMZcjs.b.call(void 0, o)||(e.verbose&&(console.error(_chalk2.default.red(`\u274C Profile '${o}' does not exist or is not properly configured.`)),console.error(_chalk2.default.yellow(`Run 'rawi configure -p ${o}' to set up this profile.`))),process.exit(1))},v= exports.b =async(o,e,s)=>{let i;if(s.newSession)i=await o.createSession(e),s.verbose&&console.log(_chalk2.default.dim(`\u{1F195} Started new session: ${i}`));else if(s.session){i=s.session;let t=await o.getSession(i);t||(s.verbose&&console.error(_chalk2.default.red(`\u274C Session '${i}' not found.`)),process.exit(1)),t.profile!==e&&(s.verbose&&console.error(_chalk2.default.red(`\u274C Session '${i}' belongs to profile '${t.profile}', not '${e}'.`)),process.exit(1)),s.verbose&&console.log(_chalk2.default.dim(`\u{1F504} Continuing session: ${i}`))}else i=await o.getCurrentSession(e),s.verbose&&console.log(_chalk2.default.dim(`\u{1F4DD} Using current session: ${i}`));return i},u= exports.c =(o,e)=>{e.verbose&&_chunkG3NONHT6cjs.b.start("validation","Validating configuration...");let s=_chunkW2WH4GMZcjs.a.call(void 0, o);return s||(e.verbose&&(_chunkG3NONHT6cjs.b.fail("validation","Configuration validation failed"),console.error(_chalk2.default.red(`\u274C Unable to load credentials for profile '${o}'.`))),process.exit(1)),e.verbose&&_chunkG3NONHT6cjs.b.succeed("validation","Configuration validated successfully"),s},b= exports.d =(o,e,s)=>{s.verbose&&(console.log(`Using profile: ${o}`),console.log(`Processing query: ${e.length>100?`${e.substring(0,100)}...`:e}`))};exports.a = d; exports.b = v; exports.c = u; exports.d = b;
/* 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 an intelligent development workspace. */
//# sourceMappingURL=chunk-LSK3BZJV.cjs.map
;