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.42 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{f as s}from"./chunk-XTEBLTG6.js";function m(e={}){let t=e.filter||new s(e.filterOptions,!e.filterOptions);return function(a){return async function(d,f){let r=t.filterContent(f),p=r.filteredText;if(e.logStats&&Object.keys(r.filterCount).length>0){let n=Object.values(r.filterCount).reduce((i,o)=>i+o,0);console.log("\u{1F4CA} Filtered sensitive information from prompt:"),console.log(`Total filtered items: ${n}`),console.log(`
Breakdown by type:`);for(let[i,o]of Object.entries(r.filterCount)){let c=Math.round(o/n*100);console.log(` ${i.padEnd(15)}: ${o} (${c}%)`)}}let l=await a(d,p);return{...l,textStream:(async function*(){for await(let n of l.textStream)yield t.filterContent(n).filteredText})()}}}}function C(e,t={}){return m(t)(e)}export{m as a,C as 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-AHHBETNN.js.map