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.9 kB
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/* 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. */ var _chunkFAD6MIW3cjs = require('./chunk-FAD6MIW3.cjs');var _os = require('os');var _path = require('path');var l=!1,x= exports.b =(...t)=>{l&&console.log(...t)},f= exports.c =()=>_path.join.call(void 0, _os.homedir.call(void 0, ),_chunkFAD6MIW3cjs.b),D= exports.d =()=>_path.join.call(void 0, f(),_chunkFAD6MIW3cjs.c),M= exports.e =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= exports.f =t=>t>=0&&t<=2,v= exports.g =t=>t>=1&&t<=1e5,E= exports.h =t=>!!(t&&t.trim().length>0),w= exports.i =t=>["english","arabic"].includes(t),L= exports.j =(t,e)=>t.length<=e?t:`${t.slice(0,e-3)}...`,m= exports.k =t=>new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}),T= exports.l =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)};exports.a = l; exports.b = x; exports.c = f; exports.d = D; exports.e = M; exports.f = b; exports.g = v; exports.h = E; exports.i = w; exports.j = L; exports.k = m; exports.l = T; /* 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-WE5IMBZ6.cjs.map