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 2 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. */ var a={type:"email",pattern:/\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\b/g,replacement:"[EMAIL]",description:"Email addresses"},p={type:"phone",pattern:/(\+\d{1,3}[\s-]?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{3,4}/g,replacement:"[PHONE]",description:"Phone numbers"},o={type:"creditcard",pattern:/\b(?:\d{4}[ -]?\d{4}[ -]?\d{4}[ -]?\d{4})\b/g,replacement:"[CREDIT_CARD]",description:"Credit card numbers"},s={type:"ssn",pattern:/\b(?:\d{3}-\d{2}-\d{4}|\d{9})\b/g,replacement:"[SSN]",description:"Social Security Numbers"},d={type:"ip",pattern:/\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/g,replacement:"[IP_ADDRESS]",description:"IP addresses"},c={type:"url",pattern:/\bhttps?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}(?:[-a-zA-Z0-9()@:%_+.~#?&//=]*)/g,replacement:"[URL]",description:"URLs"},P={type:"address",pattern:/\b\d+\s+[A-Za-z\s]+(?:Avenue|Lane|Road|Boulevard|Drive|Street|Ave|Dr|Rd|Blvd|Ln|St)\.?\b/g,replacement:"[ADDRESS]",description:"Physical addresses"},i=[a,p,o,s,d,c,P];function l(e){return i.find(t=>t.type===e)}function D(){return i.map(e=>e.type)}function T(e,t){let n=0,r=e.match(t.pattern);return n=r?r.length:0,{filteredText:e.replace(t.pattern,t.replacement),count:n}}export{a,p as b,o as c,s as d,d as e,c as f,P as g,i as h,l as i,D as j,T as k}; /* 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-572P46YW.js.map