UNPKG

rawi

Version:

Rawi (راوي) is the developer-friendly AI CLI that brings the power of 12 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.5 kB
/* Rawi (راوي) is the developer-friendly AI CLI that brings the power of 12 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{b as s,c as a}from"./chunk-3JCRW7ET.js";import{homedir as u}from"os";import{join as g}from"path";var l=!1,x=(...t)=>{l&&console.log(...t)},f=()=>g(u(),s),D=()=>g(f(),a),M=t=>{if(!t)return"";let e=Math.min(8,t.length),o=Math.max(0,t.length-e);return`${t.slice(0,e)}${"*".repeat(o)}`},b=t=>t>=0&&t<=2,v=t=>t>=1&&t<=1e5,E=t=>!!(t&&t.trim().length>0),w=t=>["english","arabic"].includes(t),L=(t,e)=>t.length<=e?t:`${t.slice(0,e-3)}...`,m=t=>new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}),T=t=>{let e=new Date(t),c=new Date().getTime()-e.getTime(),n=Math.floor(c/(1e3*60)),r=Math.floor(n/60),i=Math.floor(r/24);return n<1?"just now":n<60?`${n}m ago`:r<24?`${r}h ago`:i<7?`${i}d ago`:m(t)};export{l as a,x as b,f as c,D as d,M as e,b as f,v as g,E as h,w as i,L as j,m as k,T as l}; /* Rawi (راوي) is the developer-friendly AI CLI that brings the power of 12 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-Y7XFV3CR.js.map