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

5 lines 1.96 kB
"use strict";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 _chunkJOG5X644cjs = require('./chunk-JOG5X644.cjs');var _chunkBYXIMFPFcjs = require('./chunk-BYXIMFPF.cjs');var _chunkEZDARBSPcjs = require('./chunk-EZDARBSP.cjs');var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk);var _commander = require('commander');var h=()=>{let e=new (0, _commander.Command)("chat");return e.description([_chalk2.default.bold("Start an interactive chat session with AI."),"",_chalk2.default.gray("Engage in back-and-forth conversations with AI models."),_chalk2.default.gray("Use --act <template> for expert prompt templates."),_chalk2.default.gray("Type /quit or /exit to end the chat session."),"\u2500".repeat(80)].join(` `)),_chunkJOG5X644cjs.a.forEach(a=>{"defaultValue"in a&&a.defaultValue!==void 0?e.option(a.flags,a.description,a.defaultValue):e.option(a.flags,a.description)}),e.action(async a=>{let r=null;try{a.verbose&&console.log(_chalk2.default.dim("\u{1F680} Starting chat session...")),r=new _chunkEZDARBSPcjs.a,await _chunkBYXIMFPFcjs.a.call(void 0, r,a)}catch(i){a.verbose&&console.error("Error in chat session:",i),process.exit(1)}finally{r&&r.close()}}),e};exports.a = h; /* 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-BETBSVXN.cjs.map