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

4 lines 1.33 kB
/* 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{existsSync as i}from"fs";import{homedir as t}from"os";import{join as r}from"path";var c=()=>{if(process.platform==="win32")return"cmd";let e=process.env.SHELL;if(e){if(e.includes("bash"))return"bash";if(e.includes("zsh"))return"zsh";if(e.includes("fish"))return"fish"}return process.env.ZSH_NAME||process.env.ZSH_VERSION?"zsh":process.env.BASH_VERSION?"bash":process.env.FISH_VERSION?"fish":"bash"},u=e=>{let s=t();switch(e){case"bash":return i(r(s,".bashrc"))?r(s,".bashrc"):i(r(s,".bash_profile"))?r(s,".bash_profile"):r(s,".bashrc");case"zsh":return r(s,".zshrc");case"fish":{let n=r(s,".config","fish");return r(n,"config.fish")}default:return null}};export{c 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-IUUGRWE5.js.map