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 • 1.75 kB
JavaScript
/* 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. */
import{a}from"./chunk-S2NLG6B4.js";var s=class{adapter;constructor(){this.adapter=new a}async createTemplate(t){if(await this.adapter.templateExists(t.id))throw new Error(`Template with ID '${t.id}' already exists`);await this.adapter.createActTemplate(t)}async updateTemplate(t,e){if(!await this.adapter.updateActTemplate(t,e))throw new Error(`Template '${t}' not found or could not be updated`)}async deleteTemplate(t){if(!await this.adapter.deleteActTemplate(t))throw new Error(`Template '${t}' not found or could not be deleted`)}async getTemplate(t){let e=await this.adapter.getActTemplate(t);return e?this.mapToCustomActTemplate(e):null}async listCustomTemplates(){return(await this.adapter.listActTemplates(!0)).map(this.mapToCustomActTemplate)}async listAllTemplates(){return(await this.adapter.listActTemplates(!1)).map(this.mapToCustomActTemplate)}mapToCustomActTemplate(t){return{id:t.id,label:t.label,category:t.category,description:t.description,template:t.template,isBuiltIn:!!t.is_built_in,createdAt:new Date(t.created_at*1e3),updatedAt:new Date(t.updated_at*1e3)}}};export{s as a};
/* 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-YYQXJ73P.js.map