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

5 lines 1.38 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. */ function s(i){let n=i.replace(/<think>[\s\S]*?<\/think>/gi,"");n=n.replace(/```[\s\S]*?```/g,""),n=n.replace(/`([^`]+)`/g,"$1");let o=n.split(` `).map(e=>e.trim()).filter(Boolean);for(let e of o)if(!(e.toLowerCase().includes("to ")&&e.toLowerCase().includes(" command"))&&!(e.toLowerCase().includes("here")&&e.toLowerCase().includes("command"))&&!(e.toLowerCase().includes("you can")&&e.toLowerCase().includes("use"))&&/^[a-zA-Z][a-zA-Z0-9_-]*(\s|$)/.test(e))return e;for(let e of o)if(!e.includes("To ")&&!e.includes("Here")&&!e.includes("You can")&&!e.includes("This command")&&!e.includes("The command")&&e.length>0)return e;return n.trim()}exports.a = s; /* 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-YTPAJ6Q2.cjs.map