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
18 lines (17 loc) • 1.8 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{exec as i}from"child_process";import r from"os";import{promisify as c}from"util";var l=c(i);async function y(){let e="";try{let o=process.platform==="win32"?"dir":"ls -la",{stdout:n}=await l(o);e=n}catch(o){console.warn("Warning: Could not get directory listing:",o),e="Unable to get directory listing"}let s=r.cpus(),t=r.totalmem(),m=r.freemem();return{os:{type:r.type(),release:r.release(),platform:r.platform(),arch:r.arch()},node:{version:process.version},shell:process.env.SHELL||"unknown",cwd:process.cwd(),home:r.homedir(),cpu:{model:s[0]?.model||"unknown",cores:s.length},memory:{total:Math.round(t/1024/1024),free:Math.round(m/1024/1024)},directoryListing:e}}function u(e){return`
--- ENVIRONMENT CONTEXT ---
Operating System: ${e.os.type} ${e.os.release} (${e.os.platform} - ${e.os.arch})
Node.js Version: ${e.node.version}
Shell: ${e.shell}
Current Working Directory: ${e.cwd}
Home Directory: ${e.home}
CPU Info: ${e.cpu.model} (${e.cpu.cores} cores)
Total Memory: ${e.memory.total} MB
Free Memory: ${e.memory.free} MB
--- END ENVIRONMENT CONTEXT ---
Current directory listing:
${e.directoryListing}
`.trim()}export{y as a,u 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-RAPYU56U.js.map