woozlit 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x4c90b6,_0x509e16){const _0x2b8a63=a0_0x23a4,_0x288ec7=_0x4c90b6();while(!![]){try{const _0x3a18c4=parseInt(_0x2b8a63(0x19d))/0x1*(parseInt(_0x2b8a63(0x1a7))/0x2)+parseInt(_0x2b8a63(0x1a1))/0x3+-parseInt(_0x2b8a63(0x1a3))/0x4+-parseInt(_0x2b8a63(0x1ac))/0x5+-parseInt(_0x2b8a63(0x1a0))/0x6*(-parseInt(_0x2b8a63(0x1b0))/0x7)+-parseInt(_0x2b8a63(0x1a5))/0x8+parseInt(_0x2b8a63(0x19c))/0x9;if(_0x3a18c4===_0x509e16)break;else _0x288ec7['push'](_0x288ec7['shift']());}catch(_0x26a8bf){_0x288ec7['push'](_0x288ec7['shift']());}}}(a0_0xe1e1,0x70c82));import a0_0xc2f002 from'open';import{createServer}from'http';import{getApiUrl}from'../config/settings.js';import{setToken,setUser,isLoggedIn,logout as a0_0x10ec74}from'../utils/storage.js';export async function login(){const _0x484133=getApiUrl(),_0x1ec094=0x2694;return new Promise(_0x3b2579=>{const _0x370db5=createServer(async(_0x298d44,_0x348644)=>{const _0x3466bc=a0_0x23a4,_0x33f857=new URL(_0x298d44[_0x3466bc(0x19e)]||'','http://localhost:'+_0x1ec094);if(_0x33f857['pathname']===_0x3466bc(0x1af)){const _0x2e3636=_0x33f857[_0x3466bc(0x1b1)]['get'](_0x3466bc(0x1ad)),_0x28aff2=_0x33f857[_0x3466bc(0x1b1)][_0x3466bc(0x1a4)](_0x3466bc(0x1ab)),_0x2e5a3e=_0x33f857[_0x3466bc(0x1b1)]['get'](_0x3466bc(0x1a6)),_0x515c13=_0x33f857[_0x3466bc(0x1b1)][_0x3466bc(0x1a4)](_0x3466bc(0x1a8));_0x2e3636&&_0x28aff2?(setToken(_0x2e3636),setUser(_0x28aff2,_0x2e5a3e||'',_0x515c13||''),_0x348644[_0x3466bc(0x1aa)](0xc8,{'Content-Type':_0x3466bc(0x19b)}),_0x348644[_0x3466bc(0x1ae)](_0x3466bc(0x19f)),_0x370db5[_0x3466bc(0x1a9)](),_0x3b2579(!![])):(_0x348644[_0x3466bc(0x1aa)](0x190,{'Content-Type':_0x3466bc(0x19b)}),_0x348644['end'](_0x3466bc(0x1a2)),_0x370db5[_0x3466bc(0x1a9)](),_0x3b2579(![]));}});_0x370db5['listen'](_0x1ec094,()=>{const _0x3f82ee=_0x484133+'/auth/cli?callback=http://localhost:'+_0x1ec094+'/callback';a0_0xc2f002(_0x3f82ee);}),setTimeout(()=>{const _0xab5446=a0_0x23a4;_0x370db5[_0xab5446(0x1a9)](),_0x3b2579(![]);},0x1d4c0);});}function a0_0x23a4(_0x4623cb,_0x18db32){_0x4623cb=_0x4623cb-0x19b;const _0xe1e194=a0_0xe1e1();let _0x23a459=_0xe1e194[_0x4623cb];return _0x23a459;}function a0_0xe1e1(){const _0x17f0a6=['end','/callback','14gaGxIu','searchParams','text/html','7705872vneADh','17199rfwtGC','url','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!DOCTYPE\x20html>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<html>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<head>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<title>Woozlit\x20CLI</title>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20system-ui,\x20-apple-system,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20#0a0a0a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#fff;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.container\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x202rem;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20h1\x20{\x20color:\x20#10b981;\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p\x20{\x20color:\x20#9ca3af;\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</head>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<body>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<h1>Login\x20Successful</h1>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>You\x20can\x20close\x20this\x20window\x20and\x20return\x20to\x20the\x20terminal.</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</body>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</html>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1797606LiwxVU','1954305VJKgST','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!DOCTYPE\x20html>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<html>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<head><title>Woozlit\x20CLI</title></head>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<body\x20style=\x22font-family:\x20sans-serif;\x20text-align:\x20center;\x20padding:\x202rem;\x20background:\x20#0a0a0a;\x20color:\x20#fff;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<h1\x20style=\x22color:\x20#ef4444;\x22>Login\x20Failed</h1>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>Missing\x20authentication\x20data.\x20Please\x20try\x20again.</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</body>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</html>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3179524Ftqzcn','get','3160320ZQreTb','email','44GvYVJF','displayName','close','writeHead','userId','4166740thKGsO','token'];a0_0xe1e1=function(){return _0x17f0a6;};return a0_0xe1e1();}export function logout(){a0_0x10ec74();}export{isLoggedIn};
1
+ function a0_0x3a8d(_0x539793,_0x41f009){_0x539793=_0x539793-0xbe;const _0x466069=a0_0x4660();let _0x3a8d76=_0x466069[_0x539793];return _0x3a8d76;}(function(_0x3285bb,_0x273f47){const _0x198c65=a0_0x3a8d,_0x198a34=_0x3285bb();while(!![]){try{const _0x837be7=-parseInt(_0x198c65(0xbf))/0x1+-parseInt(_0x198c65(0xc8))/0x2*(-parseInt(_0x198c65(0xd1))/0x3)+parseInt(_0x198c65(0xcd))/0x4*(-parseInt(_0x198c65(0xc0))/0x5)+-parseInt(_0x198c65(0xcf))/0x6*(parseInt(_0x198c65(0xd6))/0x7)+parseInt(_0x198c65(0xd2))/0x8+-parseInt(_0x198c65(0xd5))/0x9+parseInt(_0x198c65(0xd3))/0xa;if(_0x837be7===_0x273f47)break;else _0x198a34['push'](_0x198a34['shift']());}catch(_0x5d7152){_0x198a34['push'](_0x198a34['shift']());}}}(a0_0x4660,0x5ece6));import a0_0x330ba3 from'open';import{createServer}from'http';import{getApiUrl}from'../config/settings.js';function a0_0x4660(){const _0x2b720c=['2871350enXiwb','email','writeHead','userId','get','url','listen','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!DOCTYPE\x20html>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<html>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<head>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<title>Woozlit\x20CLI</title>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20system-ui,\x20-apple-system,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20#0a0a0a;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#fff;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.container\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x202rem;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20h1\x20{\x20color:\x20#10b981;\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p\x20{\x20color:\x20#9ca3af;\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</head>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<body>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<h1>Login\x20Successful</h1>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>You\x20can\x20close\x20this\x20window\x20and\x20return\x20to\x20the\x20terminal.</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</body>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</html>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2198cYUuXC','close','searchParams','text/html','token','4buYEJo','/callback','24iTsGKE','displayName','648yRtxKl','3322568eizeSX','11626400vpEPKl','/auth/cli?callback=http://localhost:','2368845xsaOPh','791357DmkufN','end','137340cMsJuN'];a0_0x4660=function(){return _0x2b720c;};return a0_0x4660();}import{setToken,setUser,isLoggedIn,logout as a0_0x5cad15}from'../utils/storage.js';export async function login(){const _0x41bd34=getApiUrl(),_0x5604b5=0x2694;return new Promise(_0x517f39=>{const _0x46a2ce=a0_0x3a8d,_0x28fe6c=createServer(async(_0x38955f,_0x627430)=>{const _0x2467c7=a0_0x3a8d,_0x4e4670=new URL(_0x38955f[_0x2467c7(0xc5)]||'','http://localhost:'+_0x5604b5);if(_0x4e4670['pathname']===_0x2467c7(0xce)){const _0x3be5e1=_0x4e4670[_0x2467c7(0xca)]['get'](_0x2467c7(0xcc)),_0x5929aa=_0x4e4670['searchParams'][_0x2467c7(0xc4)](_0x2467c7(0xc3)),_0x12c95e=_0x4e4670[_0x2467c7(0xca)][_0x2467c7(0xc4)](_0x2467c7(0xc1)),_0x87cdb6=_0x4e4670[_0x2467c7(0xca)][_0x2467c7(0xc4)](_0x2467c7(0xd0));_0x3be5e1&&_0x5929aa?(setToken(_0x3be5e1),setUser(_0x5929aa,_0x12c95e||'',_0x87cdb6||''),_0x627430[_0x2467c7(0xc2)](0xc8,{'Content-Type':_0x2467c7(0xcb)}),_0x627430[_0x2467c7(0xbe)](_0x2467c7(0xc7)),_0x28fe6c[_0x2467c7(0xc9)](),_0x517f39(!![])):(_0x627430[_0x2467c7(0xc2)](0x190,{'Content-Type':_0x2467c7(0xcb)}),_0x627430[_0x2467c7(0xbe)]('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!DOCTYPE\x20html>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<html>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<head><title>Woozlit\x20CLI</title></head>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<body\x20style=\x22font-family:\x20sans-serif;\x20text-align:\x20center;\x20padding:\x202rem;\x20background:\x20#0a0a0a;\x20color:\x20#fff;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<h1\x20style=\x22color:\x20#ef4444;\x22>Login\x20Failed</h1>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>Missing\x20authentication\x20data.\x20Please\x20try\x20again.</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</body>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</html>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x28fe6c[_0x2467c7(0xc9)](),_0x517f39(![]));}});_0x28fe6c[_0x46a2ce(0xc6)](_0x5604b5,()=>{const _0x1d75e0=_0x46a2ce,_0x51dfc4=_0x41bd34+_0x1d75e0(0xd4)+_0x5604b5+'/callback';a0_0x330ba3(_0x51dfc4);}),setTimeout(()=>{_0x28fe6c['close'](),_0x517f39(![]);},0x1d4c0);});}export function logout(){a0_0x5cad15();}export{isLoggedIn};
@@ -1 +1 @@
1
- const a1_0x4a82b3=a1_0x57ad;(function(_0x3b5577,_0x2f012a){const _0x41c8ec=a1_0x57ad,_0x3feb9e=_0x3b5577();while(!![]){try{const _0x3ab4af=parseInt(_0x41c8ec(0x216))/0x1+parseInt(_0x41c8ec(0x20e))/0x2+parseInt(_0x41c8ec(0x21e))/0x3+-parseInt(_0x41c8ec(0x23f))/0x4+-parseInt(_0x41c8ec(0x227))/0x5+parseInt(_0x41c8ec(0x229))/0x6*(parseInt(_0x41c8ec(0x253))/0x7)+parseInt(_0x41c8ec(0x25c))/0x8*(-parseInt(_0x41c8ec(0x22a))/0x9);if(_0x3ab4af===_0x2f012a)break;else _0x3feb9e['push'](_0x3feb9e['shift']());}catch(_0x230a07){_0x3feb9e['push'](_0x3feb9e['shift']());}}}(a1_0x3d89,0xe47a3));import{input}from'@inquirer/prompts';import{sendChatMessage,getUserUsage}from'../utils/api.js';import{getSelectedModel,getUser}from'../utils/storage.js';function a1_0x3d89(){const _0x22dc08=['/help','/rollback','\x20\x20/model\x20\x20\x20\x20-\x20Switch\x20AI\x20model','message','error','inputSchema','/clear','trim','Creating...','usageBox','info','search_file','start','commandOutput','tokensUsed','Please\x20restart\x20the\x20chat\x20for\x20the\x20change\x20to\x20take\x20full\x20effect.','forEach','keys','Unknown','displayName','No\x20changes\x20to\x20rollback','edit_file','):\x20','\x20for\x20commands\x20requiring\x20elevated\x20privileges.','exit','search','aiMessage','Listing...','Reached\x20maximum\x20iterations','length','match','search_directory','/usage','No\x20MCP\x20tools\x20connected.','Fetching\x20usage...','1084194mqTkAo','#60a5fa','\x20\x20/mcp\x20\x20\x20\x20\x20\x20-\x20List\x20connected\x20tools','\x0aUse\x20\x27woozlit\x20mcp\x27\x20command\x20to\x20manage\x20servers.','loggedInBox','\x0a\x0aYou\x20also\x20have\x20access\x20to\x20these\x20external\x20MCP\x20tools:\x0a','edit','Connected\x20MCP\x20Tools:','407458fHsMBb','Tool\x20error:\x20','read','toolActivity','../tools/rollback.js','Goodbye!','properties','serverName','5614137hCfYXm','map','MCP\x20Tool\x20error:\x20','email','name','#2563eb','join','\x20\x20/usage\x20\x20\x20\x20-\x20Show\x20token\x20usage\x20stats','Commands','3754325qxqJhS','list','1074QOcLzt','16488sYWFJu','You\x20are\x20Woozlit\x20AI,\x20a\x20powerful\x20agentic\x20coding\x20assistant.\x20You\x20help\x20users\x20with\x20coding\x20tasks\x20by\x20executing\x20actions\x20until\x20the\x20task\x20is\x20complete.\x0a\x0aYou\x20have\x20access\x20to\x20the\x20following\x20tools:\x0a-\x20create_file(path,\x20content):\x20Create\x20a\x20new\x20file\x20with\x20the\x20given\x20content\x0a-\x20read_file(path):\x20Read\x20the\x20contents\x20of\x20a\x20file\x0a-\x20list_directory(path):\x20List\x20files\x20and\x20directories\x0a-\x20edit_file(path,\x20search,\x20replace):\x20Edit\x20a\x20file\x20by\x20replacing\x20text\x0a-\x20search_file(path,\x20pattern):\x20Search\x20for\x20a\x20regex\x20pattern\x20in\x20a\x20file\x0a-\x20find_files(path,\x20pattern):\x20Find\x20files\x20by\x20name\x20pattern\x20in\x20a\x20directory\x20(recursive)\x0a-\x20search_directory(path,\x20pattern):\x20Search\x20for\x20text/code\x20in\x20all\x20files\x20in\x20a\x20directory\x20(like\x20grep)\x0a-\x20run_command(command,\x20background?,\x20wait?):\x20Execute\x20a\x20shell\x20command.\x20Set\x20background=true\x20to\x20run\x20detached.\x20wait=time_in_ms\x20(default\x203000)\x20for\x20background\x20check.\x0a\x0aYou\x20have\x20full\x20access\x20to\x20the\x20system.\x20You\x20can\x20install\x20packages,\x20run\x20servers,\x20and\x20modify\x20files.\x0aIf\x20you\x20encounter\x20an\x20error\x20(e.g.,\x20missing\x20package,\x20syntax\x20error),\x20you\x20MUST\x20attempt\x20to\x20fix\x20it\x20yourself\x20immediately.\x0aDo\x20not\x20ask\x20for\x20permission\x20to\x20fix\x20errors.\x20Just\x20fix\x20them\x20and\x20continue.\x0aYou\x20can\x20run\x20any\x20command\x20necessary\x20to\x20complete\x20the\x20task.\x0a\x0aWhen\x20the\x20user\x20gives\x20you\x20a\x20task:\x0a1.\x20Analyze\x20what\x20needs\x20to\x20be\x20done.\x0a2.\x20If\x20the\x20task\x20is\x20complex\x20or\x20long-running,\x20create\x20a\x20file\x20named\x20\x22info.woozlit\x22\x20to\x20store\x20your\x20plan\x20and\x20track\x20your\x20progress.\x0a3.\x20Execute\x20the\x20necessary\x20actions\x20step\x20by\x20step.\x0a4.\x20Continue\x20until\x20the\x20task\x20is\x20complete.\x0a5.\x20Report\x20what\x20you\x20accomplished.\x0a\x0aTo\x20use\x20a\x20tool,\x20respond\x20with\x20a\x20JSON\x20block\x20like\x20this:\x0a```tool\x0a{\x22name\x22:\x20\x22create_file\x22,\x20\x22args\x22:\x20{\x22path\x22:\x20\x22hello.txt\x22,\x20\x22content\x22:\x20\x22Hello\x20World\x22}}\x0a```\x0a\x0aFor\x20all\x20other\x20responses,\x20just\x20write\x20plain\x20text.\x20Do\x20NOT\x20wrap\x20your\x20response\x20in\x20JSON.\x20Do\x20NOT\x20output\x20{\x22message\x22:\x20\x22...\x22}.\x20Just\x20write\x20the\x20message\x20directly.\x0a','.\x20Use\x20PowerShell\x20commands.','success','list_directory','read_file','pattern','slice','stop','user','aiMessageEnd','warn','write','header','parse','/model','Running...','find','Thinking...','actionSpinner','Current\x20model:\x20','5456052tkVVad','```tool','run_command','Searching...','includes','createSpinner','stringify','description','\x20\x20/rollback\x20-\x20Undo\x20last\x20AI\x20file\x20change','/mcp','Unknown\x20tool','stdout','push','/stats','\x0aYou\x20are\x20running\x20on\x20','cwd','force\x20closed','mcpConnected','../tools/file.js','currentDir','62503mjpOyN','Model\x20changed\x20to:\x20','Conversation\x20cleared','\x20\x20/exit\x20\x20\x20\x20\x20-\x20Exit\x20the\x20chat','```','isSpinning','/exit','path','args','5976DWcnqb','Editing...','size','startsWith','dim','\x20>\x20','Failed\x20JSON\x20content:'];a1_0x3d89=function(){return _0x22dc08;};return a1_0x3d89();}import{formatRulesForSystem}from'../tools/rules.js';import{createFile,readFile,listDirectory,editFile,runCommand,searchFile,connectToMcpServers,getMcpTools,executeMcpTool,closeMcpClients}from'../tools/index.js';function a1_0x57ad(_0x400bd7,_0x53aa2f){_0x400bd7=_0x400bd7-0x1eb;const _0x3d8973=a1_0x3d89();let _0x57ad88=_0x3d8973[_0x400bd7];return _0x57ad88;}import*as a1_0x55dc0e from'../ui/output.js';import{selectModel}from'../ui/select.js';import{getPlatformInfo,isWindows,getShellPrefix}from'../utils/platform.js';const SYSTEM_PROMPT=a1_0x4a82b3(0x22b);export async function startChat(_0x324b11){const _0x3c1b1f=a1_0x4a82b3,_0x357e81=getSelectedModel();await connectToMcpServers();const _0x1678c8=await getMcpTools(),_0x4ab8d5=new Set(_0x1678c8[_0x3c1b1f(0x21f)](_0x40a81f=>_0x40a81f[_0x3c1b1f(0x21d)]));_0x4ab8d5[_0x3c1b1f(0x25e)]>0x0&&a1_0x55dc0e[_0x3c1b1f(0x250)](_0x4ab8d5[_0x3c1b1f(0x25e)],_0x1678c8[_0x3c1b1f(0x208)]);process['on'](_0x3c1b1f(0x203),()=>closeMcpClients());const _0x1283fd=formatRulesForSystem(),_0x2c4772=getPlatformInfo(),_0x28e9e3=getShellPrefix(),_0x8079a3=_0x1678c8[_0x3c1b1f(0x208)]>0x0?_0x3c1b1f(0x213)+_0x1678c8['map'](_0x441d8b=>{const _0x1d8774=_0x3c1b1f,_0x5b957d=Object[_0x1d8774(0x1fc)](_0x441d8b[_0x1d8774(0x1f0)]?.[_0x1d8774(0x21c)]||{})[_0x1d8774(0x224)](',\x20');return'-\x20'+_0x441d8b[_0x1d8774(0x222)]+'('+_0x5b957d+_0x1d8774(0x201)+_0x441d8b[_0x1d8774(0x246)];})['join']('\x0a'):'',_0x4d46ae=isWindows()?_0x3c1b1f(0x24d)+_0x2c4772+_0x3c1b1f(0x22c):_0x3c1b1f(0x24d)+_0x2c4772+'.\x20Use\x20'+_0x28e9e3+_0x3c1b1f(0x202),_0x25b0ab=SYSTEM_PROMPT+_0x8079a3+_0x4d46ae+'\x0a'+_0x1283fd,_0x8b6b97=getUser(),_0x1dfce6=[{'role':'system','content':_0x25b0ab}];(_0x8b6b97[_0x3c1b1f(0x1fe)]||_0x8b6b97[_0x3c1b1f(0x221)])&&a1_0x55dc0e[_0x3c1b1f(0x212)](_0x8b6b97['displayName']||_0x8b6b97['email']||_0x3c1b1f(0x1fd));a1_0x55dc0e[_0x3c1b1f(0x252)](process[_0x3c1b1f(0x24e)]()),a1_0x55dc0e[_0x3c1b1f(0x260)]('Tips:\x20/exit\x20to\x20quit,\x20/clear\x20to\x20reset,\x20/model\x20to\x20switch,\x20/help\x20for\x20more'),a1_0x55dc0e['statusBar'](_0x357e81,0x64);const _0xd25268=async _0x408dd1=>{const _0x5dd185=_0x3c1b1f;if(!_0x408dd1||_0x408dd1['trim']()==='')return!![];const _0x5de588=_0x408dd1[_0x5dd185(0x1f2)]();if(_0x5de588===_0x5dd185(0x259)||_0x5de588==='/quit')return a1_0x55dc0e['info'](_0x5dd185(0x21b)),![];if(_0x5de588===_0x5dd185(0x1f1))return _0x1dfce6['length']=0x1,a1_0x55dc0e[_0x5dd185(0x1f5)](_0x5dd185(0x255)),!![];if(_0x5de588===_0x5dd185(0x248)){const _0x3dcbb0=await getMcpTools();return _0x3dcbb0[_0x5dd185(0x208)]===0x0?a1_0x55dc0e[_0x5dd185(0x1f5)](_0x5dd185(0x20c)):(a1_0x55dc0e['info'](_0x5dd185(0x215)),_0x3dcbb0[_0x5dd185(0x1fb)](_0x5aa523=>a1_0x55dc0e['dim']('-\x20'+_0x5aa523[_0x5dd185(0x222)]+'\x20('+_0x5aa523[_0x5dd185(0x21d)]+_0x5dd185(0x201)+(_0x5aa523[_0x5dd185(0x246)]?.[_0x5dd185(0x231)](0x0,0x32)||'')))),a1_0x55dc0e['dim'](_0x5dd185(0x211)),!![];}if(_0x5de588===_0x5dd185(0x1eb))return a1_0x55dc0e[_0x5dd185(0x237)](_0x5dd185(0x226)),a1_0x55dc0e[_0x5dd185(0x260)](_0x5dd185(0x256)),a1_0x55dc0e[_0x5dd185(0x260)]('\x20\x20/clear\x20\x20\x20\x20-\x20Clear\x20conversation\x20history'),a1_0x55dc0e[_0x5dd185(0x260)](_0x5dd185(0x1ed)),a1_0x55dc0e[_0x5dd185(0x260)](_0x5dd185(0x210)),a1_0x55dc0e['dim'](_0x5dd185(0x225)),a1_0x55dc0e[_0x5dd185(0x260)](_0x5dd185(0x247)),a1_0x55dc0e[_0x5dd185(0x260)]('\x20\x20/help\x20\x20\x20\x20\x20-\x20Show\x20this\x20help'),!![];if(_0x5de588===_0x5dd185(0x1ec)){const {rollbackLast:_0x2c9dca,getChanges:_0x56d05b}=await import(_0x5dd185(0x21a)),_0x43f4aa=_0x56d05b();if(_0x43f4aa['length']===0x0)a1_0x55dc0e[_0x5dd185(0x1f5)](_0x5dd185(0x1ff));else{const _0x42f5b5=_0x2c9dca();_0x42f5b5[_0x5dd185(0x22d)]?a1_0x55dc0e[_0x5dd185(0x22d)](_0x42f5b5[_0x5dd185(0x1ee)]):a1_0x55dc0e[_0x5dd185(0x1ef)](_0x42f5b5[_0x5dd185(0x1ee)]);}return!![];}if(_0x5de588===_0x5dd185(0x239)){const _0x432434=await selectModel();return _0x432434!==_0x357e81?(a1_0x55dc0e[_0x5dd185(0x1f5)](_0x5dd185(0x254)+_0x432434),a1_0x55dc0e[_0x5dd185(0x1f5)](_0x5dd185(0x1fa))):a1_0x55dc0e[_0x5dd185(0x1f5)](_0x5dd185(0x23e)+_0x357e81),!![];}if(_0x5de588===_0x5dd185(0x20b)||_0x5de588===_0x5dd185(0x24c)){const _0x3959d7=a1_0x55dc0e['createSpinner'](_0x5dd185(0x20d));_0x3959d7['start']();const _0x2775ed=await getUserUsage();return _0x3959d7['stop'](),_0x2775ed?a1_0x55dc0e[_0x5dd185(0x1f4)](_0x2775ed[_0x5dd185(0x1f9)],_0x2775ed['monthlyLimit'],_0x2775ed['isOverLimit']):a1_0x55dc0e['error']('Failed\x20to\x20fetch\x20usage\x20data.'),!![];}return _0x1dfce6['push']({'role':_0x5dd185(0x233),'content':_0x5de588}),await processAgentLoop(_0x1dfce6,_0x357e81),!![];};if(_0x324b11){const _0x1a6506=await _0xd25268(_0x324b11);if(!_0x1a6506)return;}while(!![]){try{const _0x50211c=a1_0x55dc0e['gradientText'](_0x3c1b1f(0x261),_0x3c1b1f(0x20f),_0x3c1b1f(0x223)),_0x21629d=await input({'message':_0x50211c,'theme':{'prefix':''}}),_0x111a51=await _0xd25268(_0x21629d);if(!_0x111a51)break;}catch(_0xfd3551){if(_0xfd3551 instanceof Error&&_0xfd3551[_0x3c1b1f(0x1ee)][_0x3c1b1f(0x243)](_0x3c1b1f(0x24f)))break;a1_0x55dc0e[_0x3c1b1f(0x1ef)]('Unexpected\x20error:\x20'+_0xfd3551);}}}async function processAgentLoop(_0x28d1e9,_0x5c858c){const _0x399b53=a1_0x4a82b3;let _0x2f1fb6=0x0;const _0x42fab3=0x3e8;while(_0x2f1fb6<_0x42fab3){_0x2f1fb6++;const _0xc51542=a1_0x55dc0e[_0x399b53(0x244)](_0x399b53(0x23c));_0xc51542['start']();let _0x5c38c2='',_0x91e0cb=![],_0x221fab='';try{const _0x4b6db8=await sendChatMessage(_0x5c858c,_0x28d1e9,_0x3b7ae5=>{const _0x47b481=_0x399b53;_0xc51542['isSpinning']&&(_0xc51542[_0x47b481(0x232)](),a1_0x55dc0e[_0x47b481(0x205)](''));_0x5c38c2+=_0x3b7ae5;for(const _0x571289 of _0x3b7ae5){_0x221fab+=_0x571289;if(_0x571289==='\x0a'){if(!_0x91e0cb){if(_0x221fab[_0x47b481(0x25f)](_0x47b481(0x240)))_0x91e0cb=!![];else _0x221fab[_0x47b481(0x25f)](_0x47b481(0x257))?process[_0x47b481(0x24a)][_0x47b481(0x236)](_0x221fab):process[_0x47b481(0x24a)][_0x47b481(0x236)](_0x221fab);}else _0x221fab['startsWith'](_0x47b481(0x257))&&!_0x221fab[_0x47b481(0x25f)](_0x47b481(0x240))&&(_0x91e0cb=![]);_0x221fab='';}}});_0x221fab&&!_0x91e0cb&&!_0x221fab[_0x399b53(0x25f)]('```tool')&&process[_0x399b53(0x24a)][_0x399b53(0x236)](_0x221fab),_0x5c38c2=_0x4b6db8['content'];}catch(_0x1d8247){_0xc51542[_0x399b53(0x232)](),a1_0x55dc0e[_0x399b53(0x1ef)]('API\x20error:\x20'+_0x1d8247);return;}_0xc51542[_0x399b53(0x258)]&&_0xc51542[_0x399b53(0x232)]();a1_0x55dc0e[_0x399b53(0x234)](),_0x28d1e9[_0x399b53(0x24b)]({'role':'assistant','content':_0x5c38c2});const _0x597193=_0x5c38c2[_0x399b53(0x209)](/```tool\n([\s\S]*?)\n```/);if(!_0x597193)break;try{const _0x171610=_0x597193[0x1][_0x399b53(0x1f2)](),_0x27c447=JSON[_0x399b53(0x238)](_0x171610);a1_0x55dc0e[_0x399b53(0x219)](_0x27c447[_0x399b53(0x222)],_0x27c447['args']);let _0x380688='Executing...';if(_0x27c447[_0x399b53(0x222)][_0x399b53(0x25f)](_0x399b53(0x218)))_0x380688='Reading...';if(_0x27c447[_0x399b53(0x222)][_0x399b53(0x25f)]('create'))_0x380688=_0x399b53(0x1f3);if(_0x27c447[_0x399b53(0x222)][_0x399b53(0x25f)](_0x399b53(0x214)))_0x380688=_0x399b53(0x25d);if(_0x27c447[_0x399b53(0x222)][_0x399b53(0x25f)](_0x399b53(0x228)))_0x380688=_0x399b53(0x206);if(_0x27c447[_0x399b53(0x222)][_0x399b53(0x25f)](_0x399b53(0x204)))_0x380688=_0x399b53(0x242);if(_0x27c447[_0x399b53(0x222)]===_0x399b53(0x241))_0x380688=_0x399b53(0x23a);const _0x27a905=a1_0x55dc0e[_0x399b53(0x23d)](_0x380688);_0x27a905[_0x399b53(0x1f7)]();const _0x2e1695=performance['now']();let _0x158f46;try{_0x158f46=await executeToolCall(_0x27c447[_0x399b53(0x222)],_0x27c447[_0x399b53(0x25b)]);}catch(_0x102c28){if(_0x102c28['message']&&_0x102c28['message'][_0x399b53(0x243)](_0x399b53(0x249))){const _0x1a4a7d=await getMcpTools(),_0x3733bf=_0x1a4a7d[_0x399b53(0x23b)](_0xd48e5c=>_0xd48e5c['name']===_0x27c447[_0x399b53(0x222)]);if(_0x3733bf)try{_0x158f46=await executeMcpTool(_0x3733bf[_0x399b53(0x21d)],_0x3733bf[_0x399b53(0x222)],_0x27c447[_0x399b53(0x25b)]);}catch(_0x15f168){throw new Error(_0x399b53(0x220)+_0x15f168);}else throw _0x102c28;}else throw _0x102c28;}_0x27a905[_0x399b53(0x232)](),_0x28d1e9['push']({'role':_0x399b53(0x233),'content':'Tool\x20result\x20for\x20'+_0x27c447[_0x399b53(0x222)]+':\x0a'+JSON[_0x399b53(0x245)](_0x158f46,null,0x2)}),await new Promise(_0x46b898=>setTimeout(_0x46b898,0x3e8));}catch(_0x47459a){a1_0x55dc0e['error'](_0x399b53(0x217)+_0x47459a);_0x597193&&_0x597193[0x1]&&(a1_0x55dc0e[_0x399b53(0x260)](_0x399b53(0x262)),a1_0x55dc0e[_0x399b53(0x260)](_0x597193[0x1]));break;}}_0x2f1fb6>=_0x42fab3&&a1_0x55dc0e[_0x399b53(0x235)](_0x399b53(0x207));}async function executeToolCall(_0x2e82de,_0x703f46){const _0xba43da=a1_0x4a82b3;switch(_0x2e82de){case'create_file':return createFile(_0x703f46[_0xba43da(0x25a)],_0x703f46['content']);case _0xba43da(0x22f):return readFile(_0x703f46[_0xba43da(0x25a)]);case _0xba43da(0x22e):return listDirectory(_0x703f46[_0xba43da(0x25a)]||'.');case _0xba43da(0x200):return editFile(_0x703f46['path'],_0x703f46['search'],_0x703f46['replace']);case _0xba43da(0x1f6):return searchFile(_0x703f46[_0xba43da(0x25a)],_0x703f46[_0xba43da(0x230)]);case _0xba43da(0x241):const {command:_0x5a9dbd,background:_0x4e5eba,wait:_0xfa730a}=_0x703f46,_0x3eb3b1=await runCommand(_0x5a9dbd,_0x408bf0=>{const _0x11b91d=_0xba43da;a1_0x55dc0e[_0x11b91d(0x1f8)](_0x408bf0);},_0x4e5eba,_0xfa730a);return _0x3eb3b1;case'find_files':{const {findFiles:_0x51cbd9}=await import(_0xba43da(0x251));return _0x51cbd9(_0x703f46['path']||'.',_0x703f46[_0xba43da(0x230)]);}case _0xba43da(0x20a):{const {searchDirectory:_0x5b0f82}=await import('../tools/file.js');return _0x5b0f82(_0x703f46[_0xba43da(0x25a)]||'.',_0x703f46[_0xba43da(0x230)]);}default:return{'error':'Unknown\x20tool:\x20'+_0x2e82de};}}
1
+ const a1_0x292ec6=a1_0x4630;(function(_0x44b341,_0x5749c){const _0x1ed1de=a1_0x4630,_0x322bd8=_0x44b341();while(!![]){try{const _0x6d20e4=parseInt(_0x1ed1de(0x179))/0x1+-parseInt(_0x1ed1de(0x161))/0x2+parseInt(_0x1ed1de(0x15e))/0x3*(-parseInt(_0x1ed1de(0x15f))/0x4)+-parseInt(_0x1ed1de(0x11e))/0x5*(parseInt(_0x1ed1de(0x137))/0x6)+-parseInt(_0x1ed1de(0x182))/0x7+parseInt(_0x1ed1de(0x16c))/0x8*(-parseInt(_0x1ed1de(0x116))/0x9)+parseInt(_0x1ed1de(0x15d))/0xa;if(_0x6d20e4===_0x5749c)break;else _0x322bd8['push'](_0x322bd8['shift']());}catch(_0x3a8a45){_0x322bd8['push'](_0x322bd8['shift']());}}}(a1_0x5715,0x94326));import{input}from'@inquirer/prompts';function a1_0x4630(_0x44a88c,_0x286482){_0x44a88c=_0x44a88c-0x10f;const _0x571560=a1_0x5715();let _0x463073=_0x571560[_0x44a88c];return _0x463073;}function a1_0x5715(){const _0x522324=['stdout','run_command','#2563eb','/mcp','trim','Listing...','Commands','Conversation\x20cleared','#60a5fa','Reached\x20maximum\x20iterations','read_file','length','Running...','string','Reading...','search_directory','stop','search_file','info','actionSpinner','serverName','/help','.\x20Use\x20','282QiEyIj','commandOutput','list_directory','cwd','Executing...','):\x20','\x20\x20/rollback\x20-\x20Undo\x20last\x20AI\x20file\x20change','content','\x20\x20/help\x20\x20\x20\x20\x20-\x20Show\x20this\x20help','pattern','create_file','path','\x0a\x0aYou\x20also\x20have\x20access\x20to\x20these\x20external\x20MCP\x20tools:\x0a','Unknown\x20tool:\x20','...\x20(truncated)','../tools/file.js','isOverLimit','gradientText','Result:','/stats','read','/rollback','startsWith','\x20\x20/exit\x20\x20\x20\x20\x20-\x20Exit\x20the\x20chat','/usage','push','.\x20Use\x20PowerShell\x20commands.','write','includes','Unexpected\x20error:\x20','user','args','../tools/rollback.js','No\x20MCP\x20tools\x20connected.','\x20>\x20','match','success','isSpinning','28262550EeNQbi','159veQpSx','82568JekeNk','```','438514tsbwOO','Connected\x20MCP\x20Tools:','currentDir','inputSchema','Searching...','email','aiMessageEnd','description','You\x20are\x20Woozlit\x20AI,\x20a\x20powerful\x20agentic\x20coding\x20assistant.\x20You\x20help\x20users\x20with\x20coding\x20tasks\x20by\x20executing\x20actions\x20until\x20the\x20task\x20is\x20complete.\x0a\x0aYou\x20have\x20access\x20to\x20the\x20following\x20tools:\x0a-\x20create_file(path,\x20content):\x20Create\x20a\x20new\x20file\x20with\x20the\x20given\x20content\x0a-\x20read_file(path):\x20Read\x20the\x20contents\x20of\x20a\x20file\x0a-\x20list_directory(path):\x20List\x20files\x20and\x20directories\x0a-\x20edit_file(path,\x20search,\x20replace):\x20Edit\x20a\x20file\x20by\x20replacing\x20text\x0a-\x20search_file(path,\x20pattern):\x20Search\x20for\x20a\x20regex\x20pattern\x20in\x20a\x20file\x0a-\x20find_files(path,\x20pattern):\x20Find\x20files\x20by\x20name\x20pattern\x20in\x20a\x20directory\x20(recursive)\x0a-\x20search_directory(path,\x20pattern):\x20Search\x20for\x20text/code\x20in\x20all\x20files\x20in\x20a\x20directory\x20(like\x20grep)\x0a-\x20run_command(command,\x20background?,\x20wait?):\x20Execute\x20a\x20shell\x20command.\x20Set\x20background=true\x20to\x20run\x20detached.\x20wait=time_in_ms\x20(default\x203000)\x20for\x20background\x20check.\x0a\x0aYou\x20have\x20full\x20access\x20to\x20the\x20system.\x20You\x20can\x20install\x20packages,\x20run\x20servers,\x20and\x20modify\x20files.\x0aIf\x20you\x20encounter\x20an\x20error\x20(e.g.,\x20missing\x20package,\x20syntax\x20error),\x20you\x20MUST\x20attempt\x20to\x20fix\x20it\x20yourself\x20immediately.\x0aDo\x20not\x20ask\x20for\x20permission\x20to\x20fix\x20errors.\x20Just\x20fix\x20them\x20and\x20continue.\x0aYou\x20can\x20run\x20any\x20command\x20necessary\x20to\x20complete\x20the\x20task.\x0a\x0aWhen\x20the\x20user\x20gives\x20you\x20a\x20task:\x0a1.\x20Analyze\x20what\x20needs\x20to\x20be\x20done.\x0a2.\x20If\x20the\x20task\x20is\x20complex\x20or\x20long-running,\x20create\x20a\x20file\x20named\x20\x22info.woozlit\x22\x20to\x20store\x20your\x20plan\x20and\x20track\x20your\x20progress.\x0a3.\x20Execute\x20the\x20necessary\x20actions\x20step\x20by\x20step.\x0a4.\x20Continue\x20until\x20the\x20task\x20is\x20complete.\x0a5.\x20Report\x20what\x20you\x20accomplished.\x0a\x0aTo\x20use\x20a\x20tool,\x20respond\x20with\x20a\x20JSON\x20block\x20like\x20this:\x0a```tool\x0a{\x22name\x22:\x20\x22create_file\x22,\x20\x22args\x22:\x20{\x22path\x22:\x20\x22hello.txt\x22,\x20\x22content\x22:\x20\x22Hello\x20World\x22}}\x0a```\x0a\x0aFor\x20all\x20other\x20responses,\x20just\x20write\x20plain\x20text.\x20Do\x20NOT\x20wrap\x20your\x20response\x20in\x20JSON.\x20Do\x20NOT\x20output\x20{\x22message\x22:\x20\x22...\x22}.\x20Just\x20write\x20the\x20message\x20directly.\x0a','list','Goodbye!','3584808QKVZrQ','Fetching\x20usage...','Failed\x20JSON\x20content:','stringify','\x0aYou\x20are\x20running\x20on\x20','edit_file','Current\x20model:\x20','name','parse','displayName','Thinking...','/quit','map','387099Auiwvj','Editing...','edit','mcpConnected','replace','\x20\x20/mcp\x20\x20\x20\x20\x20\x20-\x20List\x20connected\x20tools','toolActivity','usageBox','\x20\x20/clear\x20\x20\x20\x20-\x20Clear\x20conversation\x20history','5030669qhkqGT','start','message','find_files','monthlyLimit','now','join','force\x20closed','dim','9qSOHMg','search','size','error','```tool','createSpinner','create','MCP\x20Tool\x20error:\x20','13435sHXWRc','Model\x20changed\x20to:\x20'];a1_0x5715=function(){return _0x522324;};return a1_0x5715();}import{sendChatMessage,getUserUsage}from'../utils/api.js';import{getSelectedModel,getUser}from'../utils/storage.js';import{formatRulesForSystem}from'../tools/rules.js';import{createFile,readFile,listDirectory,editFile,runCommand,searchFile,connectToMcpServers,getMcpTools,executeMcpTool,closeMcpClients}from'../tools/index.js';import*as a1_0x868dc from'../ui/output.js';import{selectModel}from'../ui/select.js';import{getPlatformInfo,isWindows,getShellPrefix}from'../utils/platform.js';const SYSTEM_PROMPT=a1_0x292ec6(0x169);export async function startChat(_0x20a3ad){const _0x1a7c3d=a1_0x292ec6,_0x4dd3e0=getSelectedModel();await connectToMcpServers();const _0x299b4a=await getMcpTools(),_0xa7907f=new Set(_0x299b4a[_0x1a7c3d(0x178)](_0xebc090=>_0xebc090[_0x1a7c3d(0x134)]));_0xa7907f[_0x1a7c3d(0x118)]>0x0&&a1_0x868dc[_0x1a7c3d(0x17c)](_0xa7907f[_0x1a7c3d(0x118)],_0x299b4a[_0x1a7c3d(0x12b)]);process['on']('exit',()=>closeMcpClients());const _0x1cf834=formatRulesForSystem(),_0x313a69=getPlatformInfo(),_0x2ad92f=getShellPrefix(),_0x560a65=_0x299b4a[_0x1a7c3d(0x12b)]>0x0?_0x1a7c3d(0x143)+_0x299b4a['map'](_0x28e1ba=>{const _0x5cbad4=_0x1a7c3d,_0xd7d3f1=Object['keys'](_0x28e1ba[_0x5cbad4(0x164)]?.['properties']||{})[_0x5cbad4(0x113)](',\x20');return'-\x20'+_0x28e1ba[_0x5cbad4(0x173)]+'('+_0xd7d3f1+_0x5cbad4(0x13c)+_0x28e1ba['description'];})['join']('\x0a'):'',_0x3f01bf=isWindows()?'\x0aYou\x20are\x20running\x20on\x20'+_0x313a69+_0x1a7c3d(0x151):_0x1a7c3d(0x170)+_0x313a69+_0x1a7c3d(0x136)+_0x2ad92f+'\x20for\x20commands\x20requiring\x20elevated\x20privileges.',_0x5aa8e8=SYSTEM_PROMPT+_0x560a65+_0x3f01bf+'\x0a'+_0x1cf834,_0x42f21b=getUser(),_0x33b25b=[{'role':'system','content':_0x5aa8e8}];(_0x42f21b['displayName']||_0x42f21b[_0x1a7c3d(0x166)])&&a1_0x868dc['loggedInBox'](_0x42f21b[_0x1a7c3d(0x175)]||_0x42f21b[_0x1a7c3d(0x166)]||'Unknown');a1_0x868dc[_0x1a7c3d(0x163)](process[_0x1a7c3d(0x13a)]()),a1_0x868dc[_0x1a7c3d(0x115)]('Tips:\x20/exit\x20to\x20quit,\x20/clear\x20to\x20reset,\x20/model\x20to\x20switch,\x20/help\x20for\x20more'),a1_0x868dc['statusBar'](_0x4dd3e0,0x64);const _0x5516fd=async _0x4a2c27=>{const _0x2b7bbc=_0x1a7c3d;if(!_0x4a2c27||_0x4a2c27[_0x2b7bbc(0x124)]()==='')return!![];const _0x4296e3=_0x4a2c27[_0x2b7bbc(0x124)]();if(_0x4296e3==='/exit'||_0x4296e3===_0x2b7bbc(0x177))return a1_0x868dc[_0x2b7bbc(0x132)](_0x2b7bbc(0x16b)),![];if(_0x4296e3==='/clear')return _0x33b25b['length']=0x1,a1_0x868dc[_0x2b7bbc(0x132)](_0x2b7bbc(0x127)),!![];if(_0x4296e3===_0x2b7bbc(0x123)){const _0x3432f1=await getMcpTools();return _0x3432f1[_0x2b7bbc(0x12b)]===0x0?a1_0x868dc[_0x2b7bbc(0x132)](_0x2b7bbc(0x158)):(a1_0x868dc[_0x2b7bbc(0x132)](_0x2b7bbc(0x162)),_0x3432f1['forEach'](_0x409996=>a1_0x868dc['dim']('-\x20'+_0x409996[_0x2b7bbc(0x173)]+'\x20('+_0x409996[_0x2b7bbc(0x134)]+_0x2b7bbc(0x13c)+(_0x409996[_0x2b7bbc(0x168)]?.['slice'](0x0,0x32)||'')))),a1_0x868dc[_0x2b7bbc(0x115)]('\x0aUse\x20\x27woozlit\x20mcp\x27\x20command\x20to\x20manage\x20servers.'),!![];}if(_0x4296e3===_0x2b7bbc(0x135))return a1_0x868dc['header'](_0x2b7bbc(0x126)),a1_0x868dc['dim'](_0x2b7bbc(0x14e)),a1_0x868dc[_0x2b7bbc(0x115)](_0x2b7bbc(0x181)),a1_0x868dc[_0x2b7bbc(0x115)]('\x20\x20/model\x20\x20\x20\x20-\x20Switch\x20AI\x20model'),a1_0x868dc[_0x2b7bbc(0x115)](_0x2b7bbc(0x17e)),a1_0x868dc[_0x2b7bbc(0x115)]('\x20\x20/usage\x20\x20\x20\x20-\x20Show\x20token\x20usage\x20stats'),a1_0x868dc['dim'](_0x2b7bbc(0x13d)),a1_0x868dc[_0x2b7bbc(0x115)](_0x2b7bbc(0x13f)),!![];if(_0x4296e3===_0x2b7bbc(0x14c)){const {rollbackLast:_0x3d834d,getChanges:_0x3410b1}=await import(_0x2b7bbc(0x157)),_0x496b27=_0x3410b1();if(_0x496b27['length']===0x0)a1_0x868dc[_0x2b7bbc(0x132)]('No\x20changes\x20to\x20rollback');else{const _0x55bad2=_0x3d834d();_0x55bad2[_0x2b7bbc(0x15b)]?a1_0x868dc[_0x2b7bbc(0x15b)](_0x55bad2[_0x2b7bbc(0x10f)]):a1_0x868dc['error'](_0x55bad2[_0x2b7bbc(0x10f)]);}return!![];}if(_0x4296e3==='/model'){const _0x5e7f14=await selectModel();return _0x5e7f14!==_0x4dd3e0?(a1_0x868dc['info'](_0x2b7bbc(0x11f)+_0x5e7f14),a1_0x868dc[_0x2b7bbc(0x132)]('Please\x20restart\x20the\x20chat\x20for\x20the\x20change\x20to\x20take\x20full\x20effect.')):a1_0x868dc['info'](_0x2b7bbc(0x172)+_0x4dd3e0),!![];}if(_0x4296e3===_0x2b7bbc(0x14f)||_0x4296e3===_0x2b7bbc(0x14a)){const _0x4ee519=a1_0x868dc[_0x2b7bbc(0x11b)](_0x2b7bbc(0x16d));_0x4ee519[_0x2b7bbc(0x183)]();const _0x10aa4a=await getUserUsage();return _0x4ee519['stop'](),_0x10aa4a?a1_0x868dc[_0x2b7bbc(0x180)](_0x10aa4a['tokensUsed'],_0x10aa4a[_0x2b7bbc(0x111)],_0x10aa4a[_0x2b7bbc(0x147)]):a1_0x868dc['error']('Failed\x20to\x20fetch\x20usage\x20data.'),!![];}return _0x33b25b[_0x2b7bbc(0x150)]({'role':_0x2b7bbc(0x155),'content':_0x4296e3}),await processAgentLoop(_0x33b25b,_0x4dd3e0),!![];};if(_0x20a3ad){const _0x29740f=await _0x5516fd(_0x20a3ad);if(!_0x29740f)return;}while(!![]){try{const _0x4f5d49=a1_0x868dc[_0x1a7c3d(0x148)](_0x1a7c3d(0x159),_0x1a7c3d(0x128),_0x1a7c3d(0x122)),_0x406d84=await input({'message':_0x4f5d49,'theme':{'prefix':''}}),_0x348397=await _0x5516fd(_0x406d84);if(!_0x348397)break;}catch(_0x53aa4f){if(_0x53aa4f instanceof Error&&_0x53aa4f[_0x1a7c3d(0x10f)]['includes'](_0x1a7c3d(0x114)))break;a1_0x868dc[_0x1a7c3d(0x119)](_0x1a7c3d(0x154)+_0x53aa4f);}}}async function processAgentLoop(_0x369443,_0x4f2b5f){const _0x5dcb92=a1_0x292ec6;let _0x9fb093=0x0;const _0x1778ec=0x3e8;while(_0x9fb093<_0x1778ec){_0x9fb093++;const _0x63b6d3=a1_0x868dc[_0x5dcb92(0x11b)](_0x5dcb92(0x176));_0x63b6d3[_0x5dcb92(0x183)]();let _0x35337c='',_0x4eee45=![],_0x5c5786='';try{const _0x4ab4d4=await sendChatMessage(_0x4f2b5f,_0x369443,_0x236a87=>{const _0x482fc5=_0x5dcb92;_0x63b6d3[_0x482fc5(0x15c)]&&(_0x63b6d3[_0x482fc5(0x130)](),a1_0x868dc['aiMessage'](''));_0x35337c+=_0x236a87;for(const _0x198081 of _0x236a87){_0x5c5786+=_0x198081;if(_0x198081==='\x0a'){const _0x55672a=_0x5c5786[_0x482fc5(0x124)]();if(!_0x4eee45){if(_0x55672a['startsWith'](_0x482fc5(0x11a)))_0x4eee45=!![];else _0x55672a[_0x482fc5(0x14d)](_0x482fc5(0x160))?process['stdout'][_0x482fc5(0x152)](_0x5c5786):process[_0x482fc5(0x120)][_0x482fc5(0x152)](_0x5c5786);}else _0x55672a[_0x482fc5(0x14d)](_0x482fc5(0x160))&&!_0x55672a['includes']('tool')&&(_0x4eee45=![]);_0x5c5786='';}}});_0x5c5786&&!_0x4eee45&&!_0x5c5786[_0x5dcb92(0x14d)](_0x5dcb92(0x11a))&&process['stdout'][_0x5dcb92(0x152)](_0x5c5786),_0x35337c=_0x4ab4d4[_0x5dcb92(0x13e)];}catch(_0x2006c9){_0x63b6d3[_0x5dcb92(0x130)](),a1_0x868dc[_0x5dcb92(0x119)]('API\x20error:\x20'+_0x2006c9);return;}_0x63b6d3['isSpinning']&&_0x63b6d3['stop']();a1_0x868dc[_0x5dcb92(0x167)](),_0x369443[_0x5dcb92(0x150)]({'role':'assistant','content':_0x35337c});const _0x6d2315=_0x35337c[_0x5dcb92(0x15a)](/```tool\s*([\s\S]*?)\s*```/);if(!_0x6d2315)break;try{const _0x234dd0=_0x6d2315[0x1][_0x5dcb92(0x124)](),_0x4f0903=JSON[_0x5dcb92(0x174)](_0x234dd0);a1_0x868dc[_0x5dcb92(0x17f)](_0x4f0903['name'],_0x4f0903[_0x5dcb92(0x156)]);let _0x6741fb=_0x5dcb92(0x13b);if(_0x4f0903[_0x5dcb92(0x173)][_0x5dcb92(0x14d)](_0x5dcb92(0x14b)))_0x6741fb=_0x5dcb92(0x12e);if(_0x4f0903[_0x5dcb92(0x173)]['startsWith'](_0x5dcb92(0x11c)))_0x6741fb='Creating...';if(_0x4f0903[_0x5dcb92(0x173)][_0x5dcb92(0x14d)](_0x5dcb92(0x17b)))_0x6741fb=_0x5dcb92(0x17a);if(_0x4f0903[_0x5dcb92(0x173)]['startsWith'](_0x5dcb92(0x16a)))_0x6741fb=_0x5dcb92(0x125);if(_0x4f0903[_0x5dcb92(0x173)][_0x5dcb92(0x14d)](_0x5dcb92(0x117)))_0x6741fb=_0x5dcb92(0x165);if(_0x4f0903[_0x5dcb92(0x173)]===_0x5dcb92(0x121))_0x6741fb=_0x5dcb92(0x12c);const _0x34017b=a1_0x868dc[_0x5dcb92(0x133)](_0x6741fb);_0x34017b[_0x5dcb92(0x183)]();const _0x4ea5cd=performance[_0x5dcb92(0x112)]();let _0x17e8f1;try{_0x17e8f1=await executeToolCall(_0x4f0903[_0x5dcb92(0x173)],_0x4f0903['args']);}catch(_0x155ab8){if(_0x155ab8[_0x5dcb92(0x10f)]&&_0x155ab8[_0x5dcb92(0x10f)][_0x5dcb92(0x153)]('Unknown\x20tool')){const _0x528208=await getMcpTools(),_0x7c2823=_0x528208['find'](_0x428f7f=>_0x428f7f['name']===_0x4f0903[_0x5dcb92(0x173)]);if(_0x7c2823)try{_0x17e8f1=await executeMcpTool(_0x7c2823[_0x5dcb92(0x134)],_0x7c2823[_0x5dcb92(0x173)],_0x4f0903[_0x5dcb92(0x156)]);}catch(_0x247d65){throw new Error(_0x5dcb92(0x11d)+_0x247d65);}else throw _0x155ab8;}else throw _0x155ab8;}_0x34017b['stop']();if(_0x17e8f1){const _0x581e96=typeof _0x17e8f1===_0x5dcb92(0x12d)?_0x17e8f1:JSON[_0x5dcb92(0x16f)](_0x17e8f1,null,0x2),_0x4fad6e=_0x581e96[_0x5dcb92(0x12b)]>0x3e8?_0x581e96['substring'](0x0,0x3e8)+_0x5dcb92(0x145):_0x581e96;a1_0x868dc[_0x5dcb92(0x115)](_0x5dcb92(0x149)),a1_0x868dc['dim'](_0x4fad6e);}_0x369443[_0x5dcb92(0x150)]({'role':_0x5dcb92(0x155),'content':'Tool\x20result\x20for\x20'+_0x4f0903[_0x5dcb92(0x173)]+':\x0a'+JSON['stringify'](_0x17e8f1,null,0x2)}),await new Promise(_0x16e461=>setTimeout(_0x16e461,0x3e8));}catch(_0x24aa6c){a1_0x868dc[_0x5dcb92(0x119)]('Tool\x20error:\x20'+_0x24aa6c);_0x6d2315&&_0x6d2315[0x1]&&(a1_0x868dc[_0x5dcb92(0x115)](_0x5dcb92(0x16e)),a1_0x868dc[_0x5dcb92(0x115)](_0x6d2315[0x1]));break;}}_0x9fb093>=_0x1778ec&&a1_0x868dc['warn'](_0x5dcb92(0x129));}async function executeToolCall(_0x10763b,_0x2210ad){const _0x313544=a1_0x292ec6;switch(_0x10763b){case _0x313544(0x141):return createFile(_0x2210ad[_0x313544(0x142)],_0x2210ad['content']);case _0x313544(0x12a):return readFile(_0x2210ad['path']);case _0x313544(0x139):return listDirectory(_0x2210ad['path']||'.');case _0x313544(0x171):return editFile(_0x2210ad['path'],_0x2210ad['search'],_0x2210ad[_0x313544(0x17d)]);case _0x313544(0x131):return searchFile(_0x2210ad['path'],_0x2210ad[_0x313544(0x140)]);case _0x313544(0x121):const {command:_0x5d1a60,background:_0x1f4152,wait:_0x7ca801}=_0x2210ad,_0x57b6e3=await runCommand(_0x5d1a60,_0x317654=>{const _0x43d0fc=_0x313544;a1_0x868dc[_0x43d0fc(0x138)](_0x317654);},_0x1f4152,_0x7ca801);return _0x57b6e3;case _0x313544(0x110):{const {findFiles:_0x262efd}=await import(_0x313544(0x146));return _0x262efd(_0x2210ad['path']||'.',_0x2210ad[_0x313544(0x140)]);}case _0x313544(0x12f):{const {searchDirectory:_0x28a269}=await import(_0x313544(0x146));return _0x28a269(_0x2210ad['path']||'.',_0x2210ad[_0x313544(0x140)]);}default:return{'error':_0x313544(0x144)+_0x10763b};}}
@@ -1 +1 @@
1
- const a2_0x927b07=a2_0x101c;(function(_0x56ba26,_0x2d3225){const _0x9e839c=a2_0x101c,_0x395dd7=_0x56ba26();while(!![]){try{const _0x5003dd=parseInt(_0x9e839c(0x1d0))/0x1+-parseInt(_0x9e839c(0x1d1))/0x2+parseInt(_0x9e839c(0x1c9))/0x3*(parseInt(_0x9e839c(0x1da))/0x4)+-parseInt(_0x9e839c(0x1d4))/0x5*(parseInt(_0x9e839c(0x1c7))/0x6)+parseInt(_0x9e839c(0x1bd))/0x7*(parseInt(_0x9e839c(0x1cc))/0x8)+-parseInt(_0x9e839c(0x1b6))/0x9*(parseInt(_0x9e839c(0x1d7))/0xa)+-parseInt(_0x9e839c(0x1cd))/0xb;if(_0x5003dd===_0x2d3225)break;else _0x395dd7['push'](_0x395dd7['shift']());}catch(_0x29c60c){_0x395dd7['push'](_0x395dd7['shift']());}}}(a2_0x1b99,0xae48d));import a2_0x551512 from'conf';import a2_0x4b05ea from'path';function a2_0x1b99(){const _0x345199=['C:\x5cUsers','mcp.json','computer-use.js','1823856YJMzQM','USERPROFILE','3239430YBGMlQ','endsWith','.woozlit','36904fJEHNS','4177833tewAHH','set','dirname','1131823OqtmFY','48470BfAELi','src','woozlit-cli','5rZtMgf','npx','command','110aByCAF','HOME','mcp-servers','4cqbCQZ','node','windows-mcp','921681xzPnQj','@modelcontextprotocol/server-filesystem','mcpServers','uvx','object','cwd','join','511kuLtAL','env','stdio','computer-use','.js','get','existsSync'];a2_0x1b99=function(){return _0x345199;};return a2_0x1b99();}import a2_0x32393c from'fs';import{fileURLToPath}from'url';const config=new a2_0x551512({'projectName':a2_0x927b07(0x1d3),'defaults':{'mcpServers':{}}});export function getMcpServers(){const _0x270ad1=a2_0x927b07,_0x3d1933=config[_0x270ad1(0x1c2)]('mcpServers'),_0x326f74=loadMcpConfigFile();return{..._0x3d1933,..._0x326f74};}export function addMcpServer(_0x2c71de,_0x2de41a,_0x32d451=[],_0x5f0b7b){const _0x571548=a2_0x927b07,_0x57f4d4=config['get'](_0x571548(0x1b8));_0x57f4d4[_0x2c71de]={'type':'stdio','command':_0x2de41a,'args':_0x32d451,'env':_0x5f0b7b},config['set'](_0x571548(0x1b8),_0x57f4d4);}export function addMcpHttpServer(_0xe0470e,_0x355077){const _0x318d29=a2_0x927b07,_0x589867=config[_0x318d29(0x1c2)](_0x318d29(0x1b8));_0x589867[_0xe0470e]={'type':'streamable-http','url':_0x355077},config[_0x318d29(0x1ce)]('mcpServers',_0x589867);}export function removeMcpServer(_0x369fff){const _0x1bdb97=a2_0x927b07,_0x219276=config[_0x1bdb97(0x1c2)]('mcpServers');if(_0x219276[_0x369fff])return delete _0x219276[_0x369fff],config[_0x1bdb97(0x1ce)](_0x1bdb97(0x1b8),_0x219276),!![];return![];}export function getMcpServer(_0x307363){return getMcpServers()[_0x307363];}function loadMcpConfigFile(){const _0x36de5d=a2_0x927b07,_0x4f5b78=[a2_0x4b05ea[_0x36de5d(0x1bc)](process[_0x36de5d(0x1bb)](),_0x36de5d(0x1c5)),a2_0x4b05ea['join'](process[_0x36de5d(0x1bb)](),_0x36de5d(0x1cb),_0x36de5d(0x1c5)),a2_0x4b05ea['join'](process[_0x36de5d(0x1be)][_0x36de5d(0x1d8)]||process['env'][_0x36de5d(0x1c8)]||'',_0x36de5d(0x1cb),_0x36de5d(0x1c5))];for(const _0x1b32b0 of _0x4f5b78){try{if(a2_0x32393c[_0x36de5d(0x1c3)](_0x1b32b0)){const _0x253107=a2_0x32393c['readFileSync'](_0x1b32b0,'utf-8'),_0x585776=JSON['parse'](_0x253107);if(_0x585776[_0x36de5d(0x1b8)]&&typeof _0x585776['mcpServers']===_0x36de5d(0x1ba))return _0x585776[_0x36de5d(0x1b8)];}}catch{}}return{};}function a2_0x101c(_0x1f7175,_0x266e3a){_0x1f7175=_0x1f7175-0x1b4;const _0x1b99d0=a2_0x1b99();let _0x101c75=_0x1b99d0[_0x1f7175];return _0x101c75;}export function ensureDefaultServers(){const _0x384be9=a2_0x927b07,_0x1bec5d=config[_0x384be9(0x1c2)]('mcpServers'),_0x22eb35=fileURLToPath(import.meta.url),_0xd1b6b0=a2_0x4b05ea[_0x384be9(0x1cf)](_0x22eb35),_0x3a8f25=_0xd1b6b0['includes']('dist')||_0x22eb35[_0x384be9(0x1ca)](_0x384be9(0x1c1)),_0x425c36=_0x3a8f25?a2_0x4b05ea[_0x384be9(0x1bc)](_0xd1b6b0,'..',_0x384be9(0x1d9),_0x384be9(0x1c6)):a2_0x4b05ea[_0x384be9(0x1bc)](_0xd1b6b0,'..','..',_0x384be9(0x1d2),_0x384be9(0x1d9),'computer-use.ts'),_0x4124ec=_0x3a8f25?_0x384be9(0x1b4):'tsx';_0x1bec5d[_0x384be9(0x1c0)]={'type':_0x384be9(0x1bf),'command':_0x4124ec,'args':[_0x425c36],'env':{}},(!_0x1bec5d['windows-mcp']||_0x1bec5d['windows-mcp'][_0x384be9(0x1d6)]===_0x384be9(0x1b9))&&(_0x1bec5d[_0x384be9(0x1b5)]={'type':_0x384be9(0x1bf),'command':_0x384be9(0x1d5),'args':['-y',_0x384be9(0x1b7),_0x384be9(0x1c4)],'env':{}}),config['set'](_0x384be9(0x1b8),_0x1bec5d);}export function getConfigFilePath(){return config['path'];}
1
+ const a2_0x3377d6=a2_0x14ba;(function(_0x46a384,_0x450daf){const _0x374800=a2_0x14ba,_0x1f952b=_0x46a384();while(!![]){try{const _0x4527c6=-parseInt(_0x374800(0xcb))/0x1*(-parseInt(_0x374800(0xe4))/0x2)+parseInt(_0x374800(0xd7))/0x3+-parseInt(_0x374800(0xe5))/0x4+-parseInt(_0x374800(0xdb))/0x5+-parseInt(_0x374800(0xc9))/0x6+parseInt(_0x374800(0xcd))/0x7+-parseInt(_0x374800(0xe1))/0x8*(parseInt(_0x374800(0xce))/0x9);if(_0x4527c6===_0x450daf)break;else _0x1f952b['push'](_0x1f952b['shift']());}catch(_0x5e6b5e){_0x1f952b['push'](_0x1f952b['shift']());}}}(a2_0x4f8b,0x50366));import a2_0x596045 from'conf';import a2_0x22303b from'path';import a2_0xce0741 from'fs';import{fileURLToPath}from'url';const config=new a2_0x596045({'projectName':a2_0x3377d6(0xe6),'defaults':{'mcpServers':{}}});export function getMcpServers(){const _0x58fe0c=a2_0x3377d6,_0x26a97b=config['get'](_0x58fe0c(0xec)),_0x29f025=loadMcpConfigFile();return{..._0x26a97b,..._0x29f025};}export function addMcpServer(_0x572d07,_0x487c52,_0x10f4dc=[],_0x18d6bd){const _0x1bf4e9=a2_0x3377d6,_0xb06d97=config['get'](_0x1bf4e9(0xec));_0xb06d97[_0x572d07]={'type':_0x1bf4e9(0xcf),'command':_0x487c52,'args':_0x10f4dc,'env':_0x18d6bd},config[_0x1bf4e9(0xee)](_0x1bf4e9(0xec),_0xb06d97);}export function addMcpHttpServer(_0x2dc6ac,_0x440400){const _0x538ae3=a2_0x3377d6,_0x18b3e9=config['get'](_0x538ae3(0xec));_0x18b3e9[_0x2dc6ac]={'type':_0x538ae3(0xc7),'url':_0x440400},config[_0x538ae3(0xee)]('mcpServers',_0x18b3e9);}export function removeMcpServer(_0x4584ca){const _0x38a46e=a2_0x3377d6,_0x2e8b08=config[_0x38a46e(0xd8)](_0x38a46e(0xec));if(_0x2e8b08[_0x4584ca])return delete _0x2e8b08[_0x4584ca],config[_0x38a46e(0xee)](_0x38a46e(0xec),_0x2e8b08),!![];return![];}export function getMcpServer(_0x3ee60b){return getMcpServers()[_0x3ee60b];}function a2_0x4f8b(){const _0x2c48f9=['821802IorZCp','endsWith','23HqEylr','utf-8','4330228vqbRNc','410391LQRvzw','stdio','computer-use.js','object','.js','npx','computer-use','cwd','node','1591164oCouDo','get','src','mcp.json','746800aznYgu','dirname','C:\x5cUsers','existsSync','env','join','80XpZZZF','mcp-servers','tsx','40646qgwufi','2182216kJRPwQ','woozlit-cli','dist','readFileSync','@modelcontextprotocol/server-filesystem','uvx','parse','mcpServers','USERPROFILE','set','windows-mcp','streamable-http','path'];a2_0x4f8b=function(){return _0x2c48f9;};return a2_0x4f8b();}function loadMcpConfigFile(){const _0x5c23f1=a2_0x3377d6,_0x308075=[a2_0x22303b[_0x5c23f1(0xe0)](process[_0x5c23f1(0xd5)](),_0x5c23f1(0xda)),a2_0x22303b[_0x5c23f1(0xe0)](process[_0x5c23f1(0xd5)](),'.woozlit','mcp.json'),a2_0x22303b['join'](process[_0x5c23f1(0xdf)]['HOME']||process[_0x5c23f1(0xdf)][_0x5c23f1(0xed)]||'','.woozlit',_0x5c23f1(0xda))];for(const _0x422916 of _0x308075){try{if(a2_0xce0741[_0x5c23f1(0xde)](_0x422916)){const _0x5119b0=a2_0xce0741[_0x5c23f1(0xe8)](_0x422916,_0x5c23f1(0xcc)),_0x1b4c4f=JSON[_0x5c23f1(0xeb)](_0x5119b0);if(_0x1b4c4f[_0x5c23f1(0xec)]&&typeof _0x1b4c4f['mcpServers']===_0x5c23f1(0xd1))return _0x1b4c4f[_0x5c23f1(0xec)];}}catch{}}return{};}function a2_0x14ba(_0x4ccaa1,_0xa45cdb){_0x4ccaa1=_0x4ccaa1-0xc6;const _0x4f8be5=a2_0x4f8b();let _0x14bafd=_0x4f8be5[_0x4ccaa1];return _0x14bafd;}export function ensureDefaultServers(){const _0x2c4140=a2_0x3377d6,_0x25e548=config[_0x2c4140(0xd8)]('mcpServers'),_0x3cc97a=fileURLToPath(import.meta.url),_0x38616a=a2_0x22303b[_0x2c4140(0xdc)](_0x3cc97a),_0x299617=_0x38616a['includes'](_0x2c4140(0xe7))||_0x3cc97a[_0x2c4140(0xca)](_0x2c4140(0xd2)),_0x47419a=_0x299617?a2_0x22303b['join'](_0x38616a,'..',_0x2c4140(0xe2),_0x2c4140(0xd0)):a2_0x22303b[_0x2c4140(0xe0)](_0x38616a,'..','..',_0x2c4140(0xd9),_0x2c4140(0xe2),'computer-use.ts'),_0x41df3b=_0x299617?_0x2c4140(0xd6):_0x2c4140(0xe3);_0x25e548[_0x2c4140(0xd4)]={'type':_0x2c4140(0xcf),'command':_0x41df3b,'args':[_0x47419a],'env':{}},(!_0x25e548[_0x2c4140(0xc6)]||_0x25e548[_0x2c4140(0xc6)]['command']===_0x2c4140(0xea))&&(_0x25e548[_0x2c4140(0xc6)]={'type':'stdio','command':_0x2c4140(0xd3),'args':['-y',_0x2c4140(0xe9),_0x2c4140(0xdd)],'env':{}}),config[_0x2c4140(0xee)]('mcpServers',_0x25e548);}export function getConfigFilePath(){const _0x29b5bb=a2_0x3377d6;return config[_0x29b5bb(0xc8)];}
@@ -1 +1 @@
1
- const a3_0x1554c2=a3_0x5f3b;(function(_0x7adbc7,_0x5dc2c9){const _0x2c07c0=a3_0x5f3b,_0xb19af8=_0x7adbc7();while(!![]){try{const _0x1b2d39=-parseInt(_0x2c07c0(0x82))/0x1*(parseInt(_0x2c07c0(0x9f))/0x2)+parseInt(_0x2c07c0(0x77))/0x3*(-parseInt(_0x2c07c0(0x80))/0x4)+parseInt(_0x2c07c0(0x81))/0x5*(-parseInt(_0x2c07c0(0x7e))/0x6)+-parseInt(_0x2c07c0(0x8b))/0x7*(parseInt(_0x2c07c0(0x88))/0x8)+parseInt(_0x2c07c0(0x7a))/0x9*(-parseInt(_0x2c07c0(0x9b))/0xa)+-parseInt(_0x2c07c0(0x92))/0xb*(parseInt(_0x2c07c0(0x85))/0xc)+-parseInt(_0x2c07c0(0x9a))/0xd*(-parseInt(_0x2c07c0(0x99))/0xe);if(_0x1b2d39===_0x5dc2c9)break;else _0xb19af8['push'](_0xb19af8['shift']());}catch(_0x541419){_0xb19af8['push'](_0xb19af8['shift']());}}}(a3_0x1361,0x5a5ec));const API_URL=process[a3_0x1554c2(0x87)][a3_0x1554c2(0x7d)]||'https://woozlit.com',PROD_URL=a3_0x1554c2(0x83);function a3_0x5f3b(_0x47c45f,_0x223f57){_0x47c45f=_0x47c45f-0x75;const _0x13610e=a3_0x1361();let _0x5f3b46=_0x13610e[_0x47c45f];return _0x5f3b46;}export function getApiUrl(){return API_URL;}export function getProdUrl(){return PROD_URL;}export function isProduction(){return API_URL===PROD_URL;}export const MODELS=[{'id':'xiaomi/mimo-v2-flash:free','name':a3_0x1554c2(0x75),'description':'Xiaomi\x27s\x20fast\x20AI\x20model'},{'id':a3_0x1554c2(0x8e),'name':a3_0x1554c2(0x8a),'description':a3_0x1554c2(0x7c)},{'id':a3_0x1554c2(0x79),'name':'Qwen3\x20Coder','description':a3_0x1554c2(0x97)},{'id':a3_0x1554c2(0x8f),'name':a3_0x1554c2(0x9d),'description':a3_0x1554c2(0x94)},{'id':a3_0x1554c2(0x78),'name':a3_0x1554c2(0x7f),'description':a3_0x1554c2(0x96)},{'id':a3_0x1554c2(0x76),'name':'Devstral\x20Small','description':'Developer-focused'},{'id':a3_0x1554c2(0x89),'name':a3_0x1554c2(0x8d),'description':a3_0x1554c2(0x98)},{'id':'nvidia/nemotron-nano-12b-v2-vl:free','name':'Nemotron\x20Nano\x2012B','description':a3_0x1554c2(0x9c)},{'id':a3_0x1554c2(0x93),'name':'Kimi\x20K2','description':a3_0x1554c2(0x91)},{'id':a3_0x1554c2(0x90),'name':a3_0x1554c2(0x84),'description':'Zhipu\x20AI\x20model'},{'id':a3_0x1554c2(0x8c),'name':'Kat\x20Coder\x20Pro','description':a3_0x1554c2(0x95)},{'id':a3_0x1554c2(0x86),'name':a3_0x1554c2(0x7b),'description':a3_0x1554c2(0x91)}];function a3_0x1361(){const _0xa66e80=['Qwen3\x20235B','1134CcvxPn','kwaipilot/kat-coder-pro:free','Mistral\x20Small\x203.2','qwen/qwen3-235b-a22b:free','meta-llama/llama-3.3-70b-instruct:free','z-ai/glm-4.5-air:free','Reasoning\x20model','3971NISNtX','moonshotai/kimi-k2','Meta\x27s\x20powerful\x20model','Advanced\x20coding','Meta\x27s\x20latest','Coding\x20specialist','Latest\x20Mistral','981484DOkmLo','559enfgBC','810pbvtoo','NVIDIA\x20vision','Llama\x203.3\x2070B','xiaomi/mimo-v2-flash:free','3274eRxwjE','MiMo\x20V2','mistralai/devstral-small','257841TmIINL','meta-llama/llama-4-maverick','qwen/qwen3-coder:free','68436dQgsMN','DeepSeek\x20R1T\x20Chimera','Alibaba\x27s\x20largest','WOOZLIT_API_URL','919824KyBjyx','Llama\x204\x20Maverick','28TvCffx','5nFdKTN','347PidHJt','https://woozlit.com','GLM\x204.5\x20Air','9456NToUOE','tngtech/deepseek-r1t-chimera:free','env','20792GiYfUW','mistralai/mistral-small-3.2-24b-instruct'];a3_0x1361=function(){return _0xa66e80;};return a3_0x1361();}export const DEFAULT_MODEL=a3_0x1554c2(0x9e);
1
+ const a3_0x35365d=a3_0x59df;(function(_0x5e62f1,_0x333cbb){const _0x49979c=a3_0x59df,_0x283398=_0x5e62f1();while(!![]){try{const _0x2e0465=-parseInt(_0x49979c(0xbc))/0x1+parseInt(_0x49979c(0xb6))/0x2+parseInt(_0x49979c(0x9c))/0x3*(-parseInt(_0x49979c(0xb3))/0x4)+parseInt(_0x49979c(0xa2))/0x5*(parseInt(_0x49979c(0xbd))/0x6)+parseInt(_0x49979c(0xa1))/0x7*(-parseInt(_0x49979c(0x99))/0x8)+-parseInt(_0x49979c(0xb2))/0x9+parseInt(_0x49979c(0x9b))/0xa;if(_0x2e0465===_0x333cbb)break;else _0x283398['push'](_0x283398['shift']());}catch(_0x55e825){_0x283398['push'](_0x283398['shift']());}}}(a3_0x44de,0x6c5eb));const API_URL=process[a3_0x35365d(0x9f)][a3_0x35365d(0xb0)]||a3_0x35365d(0xaa),PROD_URL=a3_0x35365d(0xaa);export function getApiUrl(){return API_URL;}function a3_0x59df(_0x43ef4a,_0xfca4ad){_0x43ef4a=_0x43ef4a-0x99;const _0x44def0=a3_0x44de();let _0x59dfad=_0x44def0[_0x43ef4a];return _0x59dfad;}export function getProdUrl(){return PROD_URL;}export function isProduction(){return API_URL===PROD_URL;}function a3_0x44de(){const _0x411a24=['Reasoning\x20model','Mistral\x20Small\x203.2','meta-llama/llama-3.3-70b-instruct:free','https://woozlit.com','Kat\x20Coder\x20Pro','kwaipilot/kat-coder-pro:free','moonshotai/kimi-k2','tngtech/deepseek-r1t-chimera:free','GLM\x204.5\x20Air','WOOZLIT_API_URL','Alibaba\x27s\x20largest','6804774mgGIub','64vQrzje','Latest\x20Mistral','Zhipu\x20AI\x20model','137686tJNdim','mistralai/devstral-small','Advanced\x20coding','Devstral\x20Small','MiMo\x20V2','nvidia/nemotron-nano-12b-v2-vl:free','328768tYBWWM','6FirMzU','Xiaomi\x27s\x20fast\x20AI\x20model','112vugKKO','Nemotron\x20Nano\x2012B','14733350qbRcTz','31626sGhHua','Llama\x204\x20Maverick','meta-llama/llama-4-maverick','env','Meta\x27s\x20latest','205863hyJNMT','2834785joxrjM','mistralai/mistral-small-3.2-24b-instruct','qwen/qwen3-235b-a22b:free','Meta\x27s\x20powerful\x20model','xiaomi/mimo-v2-flash:free'];a3_0x44de=function(){return _0x411a24;};return a3_0x44de();}export const MODELS=[{'id':a3_0x35365d(0xa6),'name':a3_0x35365d(0xba),'description':a3_0x35365d(0xbe)},{'id':a3_0x35365d(0xa4),'name':'Qwen3\x20235B','description':a3_0x35365d(0xb1)},{'id':'qwen/qwen3-coder:free','name':'Qwen3\x20Coder','description':'Coding\x20specialist'},{'id':a3_0x35365d(0xa9),'name':'Llama\x203.3\x2070B','description':a3_0x35365d(0xa5)},{'id':a3_0x35365d(0x9e),'name':a3_0x35365d(0x9d),'description':a3_0x35365d(0xa0)},{'id':a3_0x35365d(0xb7),'name':a3_0x35365d(0xb9),'description':'Developer-focused'},{'id':a3_0x35365d(0xa3),'name':a3_0x35365d(0xa8),'description':a3_0x35365d(0xb4)},{'id':a3_0x35365d(0xbb),'name':a3_0x35365d(0x9a),'description':'NVIDIA\x20vision'},{'id':a3_0x35365d(0xad),'name':'Kimi\x20K2','description':a3_0x35365d(0xa7)},{'id':'z-ai/glm-4.5-air:free','name':a3_0x35365d(0xaf),'description':a3_0x35365d(0xb5)},{'id':a3_0x35365d(0xac),'name':a3_0x35365d(0xab),'description':a3_0x35365d(0xb8)},{'id':a3_0x35365d(0xae),'name':'DeepSeek\x20R1T\x20Chimera','description':a3_0x35365d(0xa7)}];export const DEFAULT_MODEL=a3_0x35365d(0xa6);
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a4_0x1b498a=a4_0xc783;function a4_0x15cd(){const _0x29dc12=['createSpinner','entries','908991IcpEFP','N/A','Add\x20an\x20HTTP\x20MCP\x20server\x20(streamable-http)','Initialize\x20Woozlit\x20in\x20current\x20directory','Add\x20a\x20stdio\x20MCP\x20server','Show\x20current\x20user\x20info','add\x20<name>\x20<command>\x20[args...]','Opening\x20browser\x20for\x20login...','You\x20must\x20be\x20logged\x20in\x20to\x20use\x20chat.','Configure\x20CLI\x20settings','name','Added\x20HTTP\x20MCP\x20server:\x20','Not\x20logged\x20in.\x20Use\x20\x27woozlit\x20login\x27\x20to\x20authenticate.','Removed\x20MCP\x20server:\x20','No\x20rules\x20defined','start','\x27\x20not\x20found','3126226PoAOqt','info','config','dim','streamable-http','URL:\x20','header','928386cWACYK','Select\x20AI\x20model','woozlit','length','MCP\x20Servers','Login\x20failed\x20or\x20timed\x20out','Manage\x20AI\x20behavior\x20rules','Ask\x20a\x20single\x20question','warn','Model\x20set\x20to:\x20','Waiting\x20for\x20authentication...','add-http\x20<name>\x20<url>','./utils/mcp-installer.js','rules','command','forEach','./tools/file.js','List\x20all\x20MCP\x20servers','Added\x20stdio\x20MCP\x20server:\x20','join','9PZpEdm','Model:\x20',':\x20[HTTP]\x20','4lRXqml','MCP\x20server\x20\x27','ask\x20<message>','6YVvPOO','Remove\x20an\x20MCP\x20server','Config\x20file:\x20','Logged\x20out\x20successfully','showLogo','You\x20can\x20also\x20add\x20servers\x20via\x20mcp.json\x20in\x20your\x20project\x20directory','Initialized\x20Woozlit\x20in\x20current\x20directory','Install\x20an\x20MCP\x20server\x20from\x20GitHub\x20or\x20registry\x20(e.g.\x20\x27mcp-chrome-bridge\x27,\x20\x27owner/repo\x27)','whoami','Start\x20an\x20AI\x20chat\x20session','Manage\x20MCP\x20servers','description','error','action','stop','Current\x20User','2930008XRdfSQ','model','Woozlit\x20already\x20initialized\x20in\x20this\x20directory','displayName','remove\x20<name>','All\x20rules\x20cleared','url','9576469NOnqls','Added\x20rule:\x20','args','.woozlit','2671455SCWEjy','#\x20Project\x20Rules\x0a\x0aAdd\x20your\x20project-specific\x20rules\x20here.\x0a','Rules','list','.woozlit/rules.md','success','Logged\x20in\x20as\x20','11062960JyTrQp','chat\x20[message]','Login\x20with\x20your\x20Woozlit\x20account','email'];a4_0x15cd=function(){return _0x29dc12;};return a4_0x15cd();}(function(_0x1e87d6,_0xc7c91f){const _0x58aa1e=a4_0xc783,_0xf8441a=_0x1e87d6();while(!![]){try{const _0x4a9e31=-parseInt(_0x58aa1e(0x1c2))/0x1+parseInt(_0x58aa1e(0x1bb))/0x2+parseInt(_0x58aa1e(0x204))/0x3*(parseInt(_0x58aa1e(0x1d9))/0x4)+parseInt(_0x58aa1e(0x1f7))/0x5+-parseInt(_0x58aa1e(0x1dc))/0x6*(parseInt(_0x58aa1e(0x1f3))/0x7)+-parseInt(_0x58aa1e(0x1ec))/0x8*(parseInt(_0x58aa1e(0x1d6))/0x9)+parseInt(_0x58aa1e(0x1fe))/0xa;if(_0x4a9e31===_0xc7c91f)break;else _0xf8441a['push'](_0xf8441a['shift']());}catch(_0x3192d7){_0xf8441a['push'](_0xf8441a['shift']());}}}(a4_0x15cd,0xce0d9));import{Command}from'commander';import{login,logout,isLoggedIn}from'./auth/login.js';import{startChat}from'./chat/agent.js';import{selectModel,getSelectedModel}from'./ui/select.js';function a4_0xc783(_0x403f77,_0x4df223){_0x403f77=_0x403f77-0x1b4;const _0x15cd87=a4_0x15cd();let _0xc7838a=_0x15cd87[_0x403f77];return _0xc7838a;}import{listRules,addRule,clearRules}from'./tools/rules.js';import{getUser}from'./utils/storage.js';import{addMcpServer,addMcpHttpServer,removeMcpServer,getMcpServers,ensureDefaultServers,getConfigFilePath}from'./config/mcp.js';import{checkForUpdate}from'./utils/update-check.js';import*as a4_0x2541eb from'./ui/output.js';const program=new Command();program[a4_0x1b498a(0x1b4)](a4_0x1b498a(0x1c4))[a4_0x1b498a(0x1e7)]('Woozlit\x20AI\x20-\x20Agentic\x20Coding\x20Assistant')['version']('1.1.0')[a4_0x1b498a(0x1e9)](async()=>{const _0x29441b=a4_0x1b498a;await checkForUpdate(),ensureDefaultServers(),a4_0x2541eb['showLogo']();if(!isLoggedIn()){a4_0x2541eb[_0x29441b(0x1ca)](_0x29441b(0x20c)),a4_0x2541eb[_0x29441b(0x1be)](''),a4_0x2541eb['info']('Opening\x20browser\x20for\x20login...');const _0x471098=a4_0x2541eb[_0x29441b(0x202)](_0x29441b(0x1cc));_0x471098[_0x29441b(0x1b9)]();const _0x509b48=await login();_0x471098[_0x29441b(0x1ea)]();if(!_0x509b48){a4_0x2541eb[_0x29441b(0x1e8)](_0x29441b(0x1c7));return;}const _0x122b73=getUser();a4_0x2541eb[_0x29441b(0x1fc)]('Logged\x20in\x20as\x20'+(_0x122b73[_0x29441b(0x1ef)]||_0x122b73[_0x29441b(0x201)]));}await startChat();}),program[a4_0x1b498a(0x1d0)]('login')[a4_0x1b498a(0x1e7)](a4_0x1b498a(0x200))[a4_0x1b498a(0x1e9)](async()=>{const _0xb94066=a4_0x1b498a;if(isLoggedIn()){const _0x3e10ec=getUser();a4_0x2541eb[_0xb94066(0x1bc)]('Already\x20logged\x20in\x20as\x20'+_0x3e10ec['email']);return;}a4_0x2541eb[_0xb94066(0x1bc)](_0xb94066(0x20b));const _0x4e85d2=a4_0x2541eb['createSpinner'](_0xb94066(0x1cc));_0x4e85d2['start']();const _0x27216d=await login();_0x4e85d2[_0xb94066(0x1ea)]();if(_0x27216d){const _0x4a8722=getUser();a4_0x2541eb['success'](_0xb94066(0x1fd)+(_0x4a8722[_0xb94066(0x1ef)]||_0x4a8722[_0xb94066(0x201)]));}else a4_0x2541eb[_0xb94066(0x1e8)]('Login\x20failed\x20or\x20timed\x20out');}),program[a4_0x1b498a(0x1d0)]('logout')['description']('Logout\x20from\x20your\x20Woozlit\x20account')['action'](()=>{const _0x20d585=a4_0x1b498a;logout(),a4_0x2541eb[_0x20d585(0x1fc)](_0x20d585(0x1df));}),program[a4_0x1b498a(0x1d0)](a4_0x1b498a(0x1e4))[a4_0x1b498a(0x1e7)](a4_0x1b498a(0x209))['action'](()=>{const _0x2539f9=a4_0x1b498a;if(!isLoggedIn()){a4_0x2541eb[_0x2539f9(0x1ca)](_0x2539f9(0x1b6));return;}const _0xdd0e60=getUser();a4_0x2541eb['header'](_0x2539f9(0x1eb)),a4_0x2541eb[_0x2539f9(0x1bc)]('Name:\x20'+(_0xdd0e60[_0x2539f9(0x1ef)]||_0x2539f9(0x205))),a4_0x2541eb['info']('Email:\x20'+(_0xdd0e60[_0x2539f9(0x201)]||_0x2539f9(0x205))),a4_0x2541eb[_0x2539f9(0x1bc)](_0x2539f9(0x1d7)+getSelectedModel());}),program[a4_0x1b498a(0x1d0)](a4_0x1b498a(0x1ff))[a4_0x1b498a(0x1e7)](a4_0x1b498a(0x1e5))[a4_0x1b498a(0x1e9)](async _0x2b8d8d=>{const _0x5344e6=a4_0x1b498a;a4_0x2541eb[_0x5344e6(0x1e0)]();if(!isLoggedIn()){a4_0x2541eb[_0x5344e6(0x1ca)]('You\x20must\x20be\x20logged\x20in\x20to\x20use\x20chat.'),a4_0x2541eb[_0x5344e6(0x1be)](''),a4_0x2541eb[_0x5344e6(0x1bc)](_0x5344e6(0x20b));const _0x2ba68d=a4_0x2541eb['createSpinner'](_0x5344e6(0x1cc));_0x2ba68d[_0x5344e6(0x1b9)]();const _0x356814=await login();_0x2ba68d[_0x5344e6(0x1ea)]();if(!_0x356814){a4_0x2541eb[_0x5344e6(0x1e8)](_0x5344e6(0x1c7));return;}const _0x20c9ae=getUser();a4_0x2541eb[_0x5344e6(0x1fc)](_0x5344e6(0x1fd)+(_0x20c9ae[_0x5344e6(0x1ef)]||_0x20c9ae['email']));}await startChat(_0x2b8d8d);}),program[a4_0x1b498a(0x1d0)](a4_0x1b498a(0x1db))[a4_0x1b498a(0x1e7)](a4_0x1b498a(0x1c9))[a4_0x1b498a(0x1e9)](async _0x48331a=>{const _0x52104a=a4_0x1b498a;a4_0x2541eb[_0x52104a(0x1e0)]();if(!isLoggedIn()){a4_0x2541eb[_0x52104a(0x1ca)](_0x52104a(0x20c)),a4_0x2541eb[_0x52104a(0x1be)](''),a4_0x2541eb[_0x52104a(0x1bc)]('Opening\x20browser\x20for\x20login...');const _0x361e82=a4_0x2541eb[_0x52104a(0x202)]('Waiting\x20for\x20authentication...');_0x361e82['start']();const _0x507887=await login();_0x361e82['stop']();if(!_0x507887){a4_0x2541eb[_0x52104a(0x1e8)](_0x52104a(0x1c7));return;}const _0x7a34ea=getUser();a4_0x2541eb[_0x52104a(0x1fc)](_0x52104a(0x1fd)+(_0x7a34ea[_0x52104a(0x1ef)]||_0x7a34ea[_0x52104a(0x201)]));}await startChat(_0x48331a);});const configCmd=program[a4_0x1b498a(0x1d0)](a4_0x1b498a(0x1bd))['description'](a4_0x1b498a(0x20d));configCmd[a4_0x1b498a(0x1d0)](a4_0x1b498a(0x1ed))[a4_0x1b498a(0x1e7)](a4_0x1b498a(0x1c3))[a4_0x1b498a(0x1e9)](async()=>{const _0x334370=a4_0x1b498a,_0x1991c1=await selectModel();a4_0x2541eb[_0x334370(0x1fc)](_0x334370(0x1cb)+_0x1991c1);});const rulesCmd=program[a4_0x1b498a(0x1d0)](a4_0x1b498a(0x1cf))['description'](a4_0x1b498a(0x1c8));rulesCmd[a4_0x1b498a(0x1d0)](a4_0x1b498a(0x1fa))[a4_0x1b498a(0x1e7)]('List\x20all\x20rules')[a4_0x1b498a(0x1e9)](()=>{const _0x495409=a4_0x1b498a,_0xe96b67=listRules();if(_0xe96b67[_0x495409(0x1c5)]===0x0){a4_0x2541eb[_0x495409(0x1bc)](_0x495409(0x1b8));return;}a4_0x2541eb[_0x495409(0x1c1)](_0x495409(0x1f9)),_0xe96b67[_0x495409(0x1d1)]((_0xed2038,_0x43721d)=>{process['stdout']['write'](_0x43721d+0x1+'.\x20'+_0xed2038+'\x0a');});}),rulesCmd['command']('add\x20<rule>')[a4_0x1b498a(0x1e7)]('Add\x20a\x20new\x20rule')[a4_0x1b498a(0x1e9)](_0x3245b7=>{const _0x4a15a6=a4_0x1b498a;addRule(_0x3245b7),a4_0x2541eb[_0x4a15a6(0x1fc)](_0x4a15a6(0x1f4)+_0x3245b7);})[a4_0x1b498a(0x1e9)](()=>{const _0x542e5a=a4_0x1b498a;clearRules(),a4_0x2541eb[_0x542e5a(0x1fc)](_0x542e5a(0x1f1));});const mcpCmd=program[a4_0x1b498a(0x1d0)]('mcp')[a4_0x1b498a(0x1e7)](a4_0x1b498a(0x1e6));mcpCmd[a4_0x1b498a(0x1d0)](a4_0x1b498a(0x1fa))[a4_0x1b498a(0x1e7)](a4_0x1b498a(0x1d3))[a4_0x1b498a(0x1e9)](()=>{const _0x45ca13=a4_0x1b498a,_0xe85151=getMcpServers(),_0x44035a=Object['keys'](_0xe85151);if(_0x44035a['length']===0x0){a4_0x2541eb[_0x45ca13(0x1bc)]('No\x20MCP\x20servers\x20configured'),a4_0x2541eb[_0x45ca13(0x1be)](_0x45ca13(0x1de)+getConfigFilePath());return;}a4_0x2541eb[_0x45ca13(0x1c1)](_0x45ca13(0x1c6)),_0x44035a[_0x45ca13(0x1d1)](_0x20d7b9=>{const _0x28dc62=_0x45ca13,_0x27d29b=_0xe85151[_0x20d7b9];_0x27d29b['type']===_0x28dc62(0x1bf)?a4_0x2541eb[_0x28dc62(0x1bc)]('-\x20'+_0x20d7b9+_0x28dc62(0x1d8)+_0x27d29b[_0x28dc62(0x1f2)]):a4_0x2541eb[_0x28dc62(0x1bc)]('-\x20'+_0x20d7b9+':\x20[stdio]\x20'+_0x27d29b[_0x28dc62(0x1d0)]+'\x20'+(_0x27d29b[_0x28dc62(0x1f5)]?.[_0x28dc62(0x1d5)]('\x20')||''));}),a4_0x2541eb[_0x45ca13(0x1be)]('\x0aConfig\x20file:\x20'+getConfigFilePath()),a4_0x2541eb['dim'](_0x45ca13(0x1e1));}),mcpCmd[a4_0x1b498a(0x1d0)](a4_0x1b498a(0x20a))[a4_0x1b498a(0x1e7)](a4_0x1b498a(0x208))['action']((_0x32a7ea,_0x171c2a,_0x25909c)=>{const _0x3109de=a4_0x1b498a;addMcpServer(_0x32a7ea,_0x171c2a,_0x25909c),a4_0x2541eb['success'](_0x3109de(0x1d4)+_0x32a7ea);}),mcpCmd[a4_0x1b498a(0x1d0)](a4_0x1b498a(0x1cd))[a4_0x1b498a(0x1e7)](a4_0x1b498a(0x206))[a4_0x1b498a(0x1e9)]((_0x12ee83,_0xfa6457)=>{const _0x1d85e1=a4_0x1b498a;addMcpHttpServer(_0x12ee83,_0xfa6457),a4_0x2541eb[_0x1d85e1(0x1fc)](_0x1d85e1(0x1b5)+_0x12ee83),a4_0x2541eb[_0x1d85e1(0x1be)](_0x1d85e1(0x1c0)+_0xfa6457);}),mcpCmd[a4_0x1b498a(0x1d0)]('install\x20<source>\x20[name]')[a4_0x1b498a(0x1e7)](a4_0x1b498a(0x1e3))[a4_0x1b498a(0x1e9)](async(_0x482bcd,_0x1fb9d7)=>{const _0x4dbd51=a4_0x1b498a,{installMcpServer:_0x36a406}=await import(_0x4dbd51(0x1ce));await _0x36a406(_0x482bcd,_0x1fb9d7);}),mcpCmd['command'](a4_0x1b498a(0x1f0))[a4_0x1b498a(0x1e7)](a4_0x1b498a(0x1dd))[a4_0x1b498a(0x1e9)](_0x1b5c16=>{const _0x94d0af=a4_0x1b498a;removeMcpServer(_0x1b5c16)?a4_0x2541eb['success'](_0x94d0af(0x1b7)+_0x1b5c16):a4_0x2541eb[_0x94d0af(0x1e8)](_0x94d0af(0x1da)+_0x1b5c16+_0x94d0af(0x1ba));}),program['command']('init')[a4_0x1b498a(0x1e7)](a4_0x1b498a(0x207))[a4_0x1b498a(0x1e9)](()=>{const _0x532fc3=a4_0x1b498a,{createFile:_0x1a2769,listDirectory:_0x23b38d}=require(_0x532fc3(0x1d2)),_0xdbc2d9=_0x23b38d('.'),_0x496b01=_0xdbc2d9[_0x532fc3(0x203)]?.['some'](_0x2ffd64=>_0x2ffd64[_0x532fc3(0x1b4)]===_0x532fc3(0x1f6));if(_0x496b01){a4_0x2541eb[_0x532fc3(0x1ca)](_0x532fc3(0x1ee));return;}_0x1a2769(_0x532fc3(0x1fb),_0x532fc3(0x1f8)),_0x1a2769('.woozlit/context.md','#\x20Project\x20Context\x0a\x0aDescribe\x20your\x20project\x20here.\x0a'),a4_0x2541eb['success'](_0x532fc3(0x1e2)),a4_0x2541eb[_0x532fc3(0x1be)]('Created\x20.woozlit/rules.md\x20and\x20.woozlit/context.md');}),program['parse']();
2
+ const a4_0x44d59b=a4_0x1b25;(function(_0x1a007b,_0x401bcd){const _0x2332f5=a4_0x1b25,_0x10293d=_0x1a007b();while(!![]){try{const _0x229f56=parseInt(_0x2332f5(0x24d))/0x1*(-parseInt(_0x2332f5(0x221))/0x2)+parseInt(_0x2332f5(0x208))/0x3+parseInt(_0x2332f5(0x219))/0x4*(parseInt(_0x2332f5(0x238))/0x5)+-parseInt(_0x2332f5(0x22d))/0x6*(parseInt(_0x2332f5(0x23f))/0x7)+parseInt(_0x2332f5(0x212))/0x8*(-parseInt(_0x2332f5(0x217))/0x9)+parseInt(_0x2332f5(0x24f))/0xa+parseInt(_0x2332f5(0x210))/0xb*(parseInt(_0x2332f5(0x226))/0xc);if(_0x229f56===_0x401bcd)break;else _0x10293d['push'](_0x10293d['shift']());}catch(_0x26453b){_0x10293d['push'](_0x10293d['shift']());}}}(a4_0x28e7,0xc94b1));import{Command}from'commander';import{login,logout,isLoggedIn}from'./auth/login.js';import{startChat}from'./chat/agent.js';import{selectModel,getSelectedModel}from'./ui/select.js';import{listRules,addRule,clearRules}from'./tools/rules.js';import{getUser}from'./utils/storage.js';import{addMcpServer,addMcpHttpServer,removeMcpServer,getMcpServers,ensureDefaultServers,getConfigFilePath}from'./config/mcp.js';function a4_0x28e7(){const _0x1e8aba=['ask\x20<message>','Logged\x20in\x20as\x20','11642517zlXOSR','Already\x20logged\x20in\x20as\x20','1573060lKzWzP','chat\x20[message]','list','some','List\x20all\x20MCP\x20servers','start','Configure\x20CLI\x20settings','Login\x20with\x20your\x20Woozlit\x20account','2TZEYUK','N/A','You\x20must\x20be\x20logged\x20in\x20to\x20use\x20chat.','./utils/mcp-installer.js','add\x20<rule>','12zfkkSq','Show\x20current\x20user\x20info','Login\x20failed\x20or\x20timed\x20out','URL:\x20','version','keys','write','6564fqSUlN','success',':\x20[HTTP]\x20','Initialize\x20Woozlit\x20in\x20current\x20directory','All\x20rules\x20cleared','Initialized\x20Woozlit\x20in\x20current\x20directory','woozlit','length','entries','stop','logout','20wlKhMS','Logged\x20out\x20successfully','args','Start\x20an\x20AI\x20chat\x20session','info','Model\x20set\x20to:\x20','config','10101EUkDta','displayName','command',':\x20[stdio]\x20','Added\x20HTTP\x20MCP\x20server:\x20','.woozlit/context.md','Opening\x20browser\x20for\x20login...','\x0aConfig\x20file:\x20','model','remove\x20<name>','Created\x20.woozlit/rules.md\x20and\x20.woozlit/context.md','url','Add\x20an\x20HTTP\x20MCP\x20server\x20(streamable-http)','#\x20Project\x20Context\x0a\x0aDescribe\x20your\x20project\x20here.\x0a','1009504tBDUHz','name','13529390cZGHaj','Add\x20a\x20new\x20rule','header','Config\x20file:\x20','error','You\x20can\x20also\x20add\x20servers\x20via\x20mcp.json\x20in\x20your\x20project\x20directory','Waiting\x20for\x20authentication...','.woozlit','showLogo','action','./tools/file.js','mcp','Ask\x20a\x20single\x20question','dim','Removed\x20MCP\x20server:\x20','whoami','Added\x20stdio\x20MCP\x20server:\x20','forEach','warn','rules','Add\x20a\x20stdio\x20MCP\x20server','\x27\x20not\x20found','1.1.1','email','description','stdout','add-http\x20<name>\x20<url>','Select\x20AI\x20model','265200xPTsrE','Woozlit\x20already\x20initialized\x20in\x20this\x20directory','No\x20rules\x20defined','MCP\x20server\x20\x27','createSpinner','No\x20MCP\x20servers\x20configured','Remove\x20an\x20MCP\x20server','login','18610427WrYRPs','#\x20Project\x20Rules\x0a\x0aAdd\x20your\x20project-specific\x20rules\x20here.\x0a','8wcMCmD','Manage\x20MCP\x20servers','install\x20<source>\x20[name]'];a4_0x28e7=function(){return _0x1e8aba;};return a4_0x28e7();}import{checkForUpdate}from'./utils/update-check.js';function a4_0x1b25(_0x24db4a,_0x5aabac){_0x24db4a=_0x24db4a-0x1f0;const _0x28e77c=a4_0x28e7();let _0x1b2562=_0x28e77c[_0x24db4a];return _0x1b2562;}import*as a4_0x5e4935 from'./ui/output.js';const program=new Command();program[a4_0x44d59b(0x24e)](a4_0x44d59b(0x233))['description']('Woozlit\x20AI\x20-\x20Agentic\x20Coding\x20Assistant')[a4_0x44d59b(0x22a)](a4_0x44d59b(0x202))[a4_0x44d59b(0x1f5)](async()=>{const _0x303732=a4_0x44d59b;await checkForUpdate(),ensureDefaultServers(),a4_0x5e4935[_0x303732(0x1f4)]();if(!isLoggedIn()){a4_0x5e4935[_0x303732(0x1fe)]('You\x20must\x20be\x20logged\x20in\x20to\x20use\x20chat.'),a4_0x5e4935['dim'](''),a4_0x5e4935[_0x303732(0x23c)](_0x303732(0x245));const _0x23cfe1=a4_0x5e4935['createSpinner'](_0x303732(0x1f2));_0x23cfe1['start']();const _0x4c3d5d=await login();_0x23cfe1[_0x303732(0x236)]();if(!_0x4c3d5d){a4_0x5e4935['error'](_0x303732(0x228));return;}const _0x186242=getUser();a4_0x5e4935['success']('Logged\x20in\x20as\x20'+(_0x186242[_0x303732(0x240)]||_0x186242['email']));}await startChat();}),program[a4_0x44d59b(0x241)](a4_0x44d59b(0x20f))[a4_0x44d59b(0x204)](a4_0x44d59b(0x220))[a4_0x44d59b(0x1f5)](async()=>{const _0x15dcf4=a4_0x44d59b;if(isLoggedIn()){const _0x4b05cd=getUser();a4_0x5e4935[_0x15dcf4(0x23c)](_0x15dcf4(0x218)+_0x4b05cd[_0x15dcf4(0x203)]);return;}a4_0x5e4935[_0x15dcf4(0x23c)](_0x15dcf4(0x245));const _0xf516c5=a4_0x5e4935[_0x15dcf4(0x20c)](_0x15dcf4(0x1f2));_0xf516c5[_0x15dcf4(0x21e)]();const _0x555c5d=await login();_0xf516c5[_0x15dcf4(0x236)]();if(_0x555c5d){const _0x47d2b5=getUser();a4_0x5e4935[_0x15dcf4(0x22e)](_0x15dcf4(0x216)+(_0x47d2b5[_0x15dcf4(0x240)]||_0x47d2b5[_0x15dcf4(0x203)]));}else a4_0x5e4935['error']('Login\x20failed\x20or\x20timed\x20out');}),program['command'](a4_0x44d59b(0x237))[a4_0x44d59b(0x204)]('Logout\x20from\x20your\x20Woozlit\x20account')[a4_0x44d59b(0x1f5)](()=>{const _0x235976=a4_0x44d59b;logout(),a4_0x5e4935[_0x235976(0x22e)](_0x235976(0x239));}),program[a4_0x44d59b(0x241)](a4_0x44d59b(0x1fb))[a4_0x44d59b(0x204)](a4_0x44d59b(0x227))[a4_0x44d59b(0x1f5)](()=>{const _0x443254=a4_0x44d59b;if(!isLoggedIn()){a4_0x5e4935[_0x443254(0x1fe)]('Not\x20logged\x20in.\x20Use\x20\x27woozlit\x20login\x27\x20to\x20authenticate.');return;}const _0x25faa0=getUser();a4_0x5e4935['header']('Current\x20User'),a4_0x5e4935['info']('Name:\x20'+(_0x25faa0[_0x443254(0x240)]||_0x443254(0x222))),a4_0x5e4935[_0x443254(0x23c)]('Email:\x20'+(_0x25faa0[_0x443254(0x203)]||_0x443254(0x222))),a4_0x5e4935[_0x443254(0x23c)]('Model:\x20'+getSelectedModel());}),program[a4_0x44d59b(0x241)](a4_0x44d59b(0x21a))[a4_0x44d59b(0x204)](a4_0x44d59b(0x23b))[a4_0x44d59b(0x1f5)](async _0xa9a1b3=>{const _0x47de03=a4_0x44d59b;a4_0x5e4935['showLogo']();if(!isLoggedIn()){a4_0x5e4935['warn'](_0x47de03(0x223)),a4_0x5e4935[_0x47de03(0x1f9)](''),a4_0x5e4935[_0x47de03(0x23c)]('Opening\x20browser\x20for\x20login...');const _0x437593=a4_0x5e4935[_0x47de03(0x20c)](_0x47de03(0x1f2));_0x437593[_0x47de03(0x21e)]();const _0x56bc90=await login();_0x437593[_0x47de03(0x236)]();if(!_0x56bc90){a4_0x5e4935['error'](_0x47de03(0x228));return;}const _0x2122db=getUser();a4_0x5e4935[_0x47de03(0x22e)](_0x47de03(0x216)+(_0x2122db[_0x47de03(0x240)]||_0x2122db['email']));}await startChat(_0xa9a1b3);}),program[a4_0x44d59b(0x241)](a4_0x44d59b(0x215))[a4_0x44d59b(0x204)](a4_0x44d59b(0x1f8))['action'](async _0x14bc4b=>{const _0x495e47=a4_0x44d59b;a4_0x5e4935[_0x495e47(0x1f4)]();if(!isLoggedIn()){a4_0x5e4935[_0x495e47(0x1fe)]('You\x20must\x20be\x20logged\x20in\x20to\x20use\x20chat.'),a4_0x5e4935['dim'](''),a4_0x5e4935[_0x495e47(0x23c)](_0x495e47(0x245));const _0x3315f0=a4_0x5e4935[_0x495e47(0x20c)](_0x495e47(0x1f2));_0x3315f0['start']();const _0x24b03e=await login();_0x3315f0[_0x495e47(0x236)]();if(!_0x24b03e){a4_0x5e4935[_0x495e47(0x1f0)](_0x495e47(0x228));return;}const _0x3c6555=getUser();a4_0x5e4935[_0x495e47(0x22e)](_0x495e47(0x216)+(_0x3c6555['displayName']||_0x3c6555[_0x495e47(0x203)]));}await startChat(_0x14bc4b);});const configCmd=program[a4_0x44d59b(0x241)](a4_0x44d59b(0x23e))[a4_0x44d59b(0x204)](a4_0x44d59b(0x21f));configCmd['command'](a4_0x44d59b(0x247))[a4_0x44d59b(0x204)](a4_0x44d59b(0x207))[a4_0x44d59b(0x1f5)](async()=>{const _0xc4adcd=a4_0x44d59b,_0x54495d=await selectModel();a4_0x5e4935['success'](_0xc4adcd(0x23d)+_0x54495d);});const rulesCmd=program[a4_0x44d59b(0x241)](a4_0x44d59b(0x1ff))[a4_0x44d59b(0x204)]('Manage\x20AI\x20behavior\x20rules');rulesCmd[a4_0x44d59b(0x241)]('list')['description']('List\x20all\x20rules')[a4_0x44d59b(0x1f5)](()=>{const _0x1cc71c=a4_0x44d59b,_0x3fef73=listRules();if(_0x3fef73[_0x1cc71c(0x234)]===0x0){a4_0x5e4935['info'](_0x1cc71c(0x20a));return;}a4_0x5e4935[_0x1cc71c(0x251)]('Rules'),_0x3fef73[_0x1cc71c(0x1fd)]((_0x27bd39,_0x52a050)=>{const _0x1d941b=_0x1cc71c;process[_0x1d941b(0x205)][_0x1d941b(0x22c)](_0x52a050+0x1+'.\x20'+_0x27bd39+'\x0a');});}),rulesCmd[a4_0x44d59b(0x241)](a4_0x44d59b(0x225))[a4_0x44d59b(0x204)](a4_0x44d59b(0x250))['action'](_0x410116=>{const _0x13396b=a4_0x44d59b;addRule(_0x410116),a4_0x5e4935[_0x13396b(0x22e)]('Added\x20rule:\x20'+_0x410116);})[a4_0x44d59b(0x1f5)](()=>{const _0x1758c5=a4_0x44d59b;clearRules(),a4_0x5e4935[_0x1758c5(0x22e)](_0x1758c5(0x231));});const mcpCmd=program[a4_0x44d59b(0x241)](a4_0x44d59b(0x1f7))[a4_0x44d59b(0x204)](a4_0x44d59b(0x213));mcpCmd['command'](a4_0x44d59b(0x21b))['description'](a4_0x44d59b(0x21d))[a4_0x44d59b(0x1f5)](()=>{const _0x49ccb6=a4_0x44d59b,_0x4ed639=getMcpServers(),_0xd8791c=Object[_0x49ccb6(0x22b)](_0x4ed639);if(_0xd8791c[_0x49ccb6(0x234)]===0x0){a4_0x5e4935[_0x49ccb6(0x23c)](_0x49ccb6(0x20d)),a4_0x5e4935['dim'](_0x49ccb6(0x252)+getConfigFilePath());return;}a4_0x5e4935[_0x49ccb6(0x251)]('MCP\x20Servers'),_0xd8791c[_0x49ccb6(0x1fd)](_0x46ed82=>{const _0x2f9e21=_0x49ccb6,_0x52485a=_0x4ed639[_0x46ed82];_0x52485a['type']==='streamable-http'?a4_0x5e4935[_0x2f9e21(0x23c)]('-\x20'+_0x46ed82+_0x2f9e21(0x22f)+_0x52485a[_0x2f9e21(0x24a)]):a4_0x5e4935[_0x2f9e21(0x23c)]('-\x20'+_0x46ed82+_0x2f9e21(0x242)+_0x52485a[_0x2f9e21(0x241)]+'\x20'+(_0x52485a[_0x2f9e21(0x23a)]?.['join']('\x20')||''));}),a4_0x5e4935[_0x49ccb6(0x1f9)](_0x49ccb6(0x246)+getConfigFilePath()),a4_0x5e4935[_0x49ccb6(0x1f9)](_0x49ccb6(0x1f1));}),mcpCmd[a4_0x44d59b(0x241)]('add\x20<name>\x20<command>\x20[args...]')[a4_0x44d59b(0x204)](a4_0x44d59b(0x200))[a4_0x44d59b(0x1f5)]((_0x4449fd,_0x56cc7f,_0x5c501f)=>{const _0x37041a=a4_0x44d59b;addMcpServer(_0x4449fd,_0x56cc7f,_0x5c501f),a4_0x5e4935[_0x37041a(0x22e)](_0x37041a(0x1fc)+_0x4449fd);}),mcpCmd['command'](a4_0x44d59b(0x206))['description'](a4_0x44d59b(0x24b))['action']((_0x253669,_0x26eb7f)=>{const _0x5197aa=a4_0x44d59b;addMcpHttpServer(_0x253669,_0x26eb7f),a4_0x5e4935[_0x5197aa(0x22e)](_0x5197aa(0x243)+_0x253669),a4_0x5e4935[_0x5197aa(0x1f9)](_0x5197aa(0x229)+_0x26eb7f);}),mcpCmd[a4_0x44d59b(0x241)](a4_0x44d59b(0x214))['description']('Install\x20an\x20MCP\x20server\x20from\x20GitHub\x20or\x20registry\x20(e.g.\x20\x27mcp-chrome-bridge\x27,\x20\x27owner/repo\x27)')[a4_0x44d59b(0x1f5)](async(_0x57d361,_0x58c814)=>{const _0x6140ee=a4_0x44d59b,{installMcpServer:_0x4cb455}=await import(_0x6140ee(0x224));await _0x4cb455(_0x57d361,_0x58c814);}),mcpCmd[a4_0x44d59b(0x241)](a4_0x44d59b(0x248))[a4_0x44d59b(0x204)](a4_0x44d59b(0x20e))['action'](_0x25079c=>{const _0x279404=a4_0x44d59b;removeMcpServer(_0x25079c)?a4_0x5e4935[_0x279404(0x22e)](_0x279404(0x1fa)+_0x25079c):a4_0x5e4935['error'](_0x279404(0x20b)+_0x25079c+_0x279404(0x201));}),program[a4_0x44d59b(0x241)]('init')[a4_0x44d59b(0x204)](a4_0x44d59b(0x230))[a4_0x44d59b(0x1f5)](()=>{const _0x2ad2ae=a4_0x44d59b,{createFile:_0x265ad2,listDirectory:_0x3bfacd}=require(_0x2ad2ae(0x1f6)),_0x4b9b9a=_0x3bfacd('.'),_0x183a27=_0x4b9b9a[_0x2ad2ae(0x235)]?.[_0x2ad2ae(0x21c)](_0x23a17a=>_0x23a17a[_0x2ad2ae(0x24e)]===_0x2ad2ae(0x1f3));if(_0x183a27){a4_0x5e4935[_0x2ad2ae(0x1fe)](_0x2ad2ae(0x209));return;}_0x265ad2('.woozlit/rules.md',_0x2ad2ae(0x211)),_0x265ad2(_0x2ad2ae(0x244),_0x2ad2ae(0x24c)),a4_0x5e4935[_0x2ad2ae(0x22e)](_0x2ad2ae(0x232)),a4_0x5e4935['dim'](_0x2ad2ae(0x249));}),program['parse']();
@@ -1 +1 @@
1
- const a5_0x36a379=a5_0x49d8;(function(_0x414729,_0x33d6d7){const _0x46cad2=a5_0x49d8,_0x2940e2=_0x414729();while(!![]){try{const _0x581df2=parseInt(_0x46cad2(0x190))/0x1*(parseInt(_0x46cad2(0x179))/0x2)+parseInt(_0x46cad2(0x18f))/0x3+parseInt(_0x46cad2(0x18e))/0x4+parseInt(_0x46cad2(0x196))/0x5+parseInt(_0x46cad2(0x177))/0x6+-parseInt(_0x46cad2(0x178))/0x7+-parseInt(_0x46cad2(0x191))/0x8;if(_0x581df2===_0x33d6d7)break;else _0x2940e2['push'](_0x2940e2['shift']());}catch(_0x515fc4){_0x2940e2['push'](_0x2940e2['shift']());}}}(a5_0x2af2,0x89978));import{Server}from'@modelcontextprotocol/sdk/server/index.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{CallToolRequestSchema,ListToolsRequestSchema}from'@modelcontextprotocol/sdk/types.js';import{Jimp}from'jimp';function a5_0x2af2(){const _0x3748cb=['computer_type','computer-use','getBuffer','boolean','\x20button','left','Get\x20the\x20screen\x20resolution.','Move\x20the\x20mouse\x20cursor\x20to\x20specific\x20coordinates.','Type\x20a\x20string\x20of\x20text.','bitmap','connect','computer_screen_size','string','Text\x20to\x20type','object','control','height','computer_key_tap','image','width','keyTap','5039460yIKplD','5307274PDijwH','17098qIiOQJ','Key\x20to\x20tap\x20(e.g.\x20\x27enter\x27,\x20\x27a\x27,\x20\x27backspace\x27)','base64','key','Clicked\x20','toString','resize','Modifier\x20keys','X\x20coordinate','Typed:\x20\x22','Error:\x20','Tap\x20a\x20single\x20key\x20with\x20optional\x20modifiers.','setRequestHandler','computer_mouse_move','params','Screenshot\x20taken.','number','Click\x20the\x20mouse\x20button.','read','1.0.0','command','1164644oHTONz','1647483fAWDaE','62RgXpel','9330592kCdmFh','\x20(double)','image/jpeg','array','computer_mouse_click','1389060MVqIEE','Unknown\x20tool:\x20','shift','middle','text','screenshot-desktop'];a5_0x2af2=function(){return _0x3748cb;};return a5_0x2af2();}import{createRequire}from'module';const require=createRequire(import.meta.url);function a5_0x49d8(_0x1265aa,_0x3ccb88){_0x1265aa=_0x1265aa-0x164;const _0x2af2f5=a5_0x2af2();let _0x49d899=_0x2af2f5[_0x1265aa];return _0x49d899;}let robot,screenshot;try{robot=require('robotjs');}catch(a5_0x4b9567){}try{screenshot=require(a5_0x36a379(0x19b));}catch(a5_0xa0148f){}const AUTO=-0x1,MIME_JPEG=a5_0x36a379(0x193),server=new Server({'name':a5_0x36a379(0x19d),'version':a5_0x36a379(0x18c)},{'capabilities':{'tools':{}}});server[a5_0x36a379(0x185)](ListToolsRequestSchema,async()=>{const _0x14bcc1=a5_0x36a379;return{'tools':[{'name':'computer_screenshot','description':'Take\x20a\x20screenshot\x20of\x20the\x20primary\x20display.\x20Returns\x20base64\x20encoded\x20image.','inputSchema':{'type':_0x14bcc1(0x170),'properties':{}}},{'name':'computer_mouse_move','description':_0x14bcc1(0x169),'inputSchema':{'type':_0x14bcc1(0x170),'properties':{'x':{'type':_0x14bcc1(0x189),'description':_0x14bcc1(0x181)},'y':{'type':_0x14bcc1(0x189),'description':'Y\x20coordinate'}},'required':['x','y']}},{'name':_0x14bcc1(0x195),'description':_0x14bcc1(0x18a),'inputSchema':{'type':_0x14bcc1(0x170),'properties':{'button':{'type':_0x14bcc1(0x16e),'enum':[_0x14bcc1(0x167),'right',_0x14bcc1(0x199)],'default':_0x14bcc1(0x167)},'double':{'type':_0x14bcc1(0x165),'default':![]}}}},{'name':_0x14bcc1(0x19c),'description':_0x14bcc1(0x16a),'inputSchema':{'type':_0x14bcc1(0x170),'properties':{'text':{'type':_0x14bcc1(0x16e),'description':_0x14bcc1(0x16f)}},'required':[_0x14bcc1(0x19a)]}},{'name':_0x14bcc1(0x173),'description':_0x14bcc1(0x184),'inputSchema':{'type':_0x14bcc1(0x170),'properties':{'key':{'type':_0x14bcc1(0x16e),'description':_0x14bcc1(0x17a)},'modifiers':{'type':_0x14bcc1(0x194),'items':{'type':'string','enum':['alt',_0x14bcc1(0x18d),_0x14bcc1(0x171),_0x14bcc1(0x198)]},'description':_0x14bcc1(0x180)}},'required':[_0x14bcc1(0x17c)]}},{'name':_0x14bcc1(0x16d),'description':_0x14bcc1(0x168),'inputSchema':{'type':_0x14bcc1(0x170),'properties':{}}}]};}),server['setRequestHandler'](CallToolRequestSchema,async _0x226d2b=>{const _0x1f9623=a5_0x36a379,{name:_0x11dc08,arguments:_0x1929d0}=_0x226d2b[_0x1f9623(0x187)];try{if(_0x11dc08==='computer_screenshot'){const _0x49c675=await screenshot(),_0x3ace70=await Jimp[_0x1f9623(0x18b)](_0x49c675);_0x3ace70[_0x1f9623(0x16b)]['width']>0x400&&_0x3ace70[_0x1f9623(0x17f)]({'w':0x400});const _0x3e2f5f=await _0x3ace70[_0x1f9623(0x164)](MIME_JPEG),_0x252976=_0x3e2f5f[_0x1f9623(0x17e)](_0x1f9623(0x17b));return{'content':[{'type':_0x1f9623(0x19a),'text':_0x1f9623(0x188)},{'type':_0x1f9623(0x174),'data':_0x252976,'mimeType':_0x1f9623(0x193)}]};}if(_0x11dc08===_0x1f9623(0x186)){const {x:_0x375d50,y:_0x584531}=_0x1929d0;return robot['moveMouse'](_0x375d50,_0x584531),{'content':[{'type':_0x1f9623(0x19a),'text':'Moved\x20mouse\x20to\x20'+_0x375d50+',\x20'+_0x584531}]};}if(_0x11dc08===_0x1f9623(0x195)){const {button:button=_0x1f9623(0x167),double:double=![]}=_0x1929d0;return robot['mouseClick'](button,double),{'content':[{'type':'text','text':_0x1f9623(0x17d)+button+_0x1f9623(0x166)+(double?_0x1f9623(0x192):'')}]};}if(_0x11dc08==='computer_type'){const {text:_0xbb6147}=_0x1929d0;return robot['typeString'](_0xbb6147),{'content':[{'type':'text','text':_0x1f9623(0x182)+_0xbb6147+'\x22'}]};}if(_0x11dc08===_0x1f9623(0x173)){const {key:_0x23e6e5,modifiers:_0x5340dd}=_0x1929d0;return robot[_0x1f9623(0x176)](_0x23e6e5,_0x5340dd),{'content':[{'type':_0x1f9623(0x19a),'text':'Tapped\x20key:\x20'+_0x23e6e5+'\x20'+(_0x5340dd?'with\x20'+_0x5340dd['join']('+'):'')}]};}if(_0x11dc08===_0x1f9623(0x16d)){const _0x17d5cd=robot['getScreenSize']();return{'content':[{'type':_0x1f9623(0x19a),'text':'Screen\x20size:\x20'+_0x17d5cd[_0x1f9623(0x175)]+'x'+_0x17d5cd[_0x1f9623(0x172)]}]};}throw new Error(_0x1f9623(0x197)+_0x11dc08);}catch(_0x3ec4a7){return{'content':[{'type':_0x1f9623(0x19a),'text':_0x1f9623(0x183)+_0x3ec4a7}],'isError':!![]};}});const transport=new StdioServerTransport();await server[a5_0x36a379(0x16c)](transport);
1
+ const a5_0x108e00=a5_0x2627;(function(_0xcc3def,_0x2f78a9){const _0x226ccf=a5_0x2627,_0x1568f7=_0xcc3def();while(!![]){try{const _0x321c54=-parseInt(_0x226ccf(0x102))/0x1*(-parseInt(_0x226ccf(0x11c))/0x2)+parseInt(_0x226ccf(0xfe))/0x3*(parseInt(_0x226ccf(0xf7))/0x4)+parseInt(_0x226ccf(0x12e))/0x5*(parseInt(_0x226ccf(0x118))/0x6)+parseInt(_0x226ccf(0x106))/0x7*(parseInt(_0x226ccf(0x128))/0x8)+parseInt(_0x226ccf(0xff))/0x9+-parseInt(_0x226ccf(0x113))/0xa*(parseInt(_0x226ccf(0x123))/0xb)+-parseInt(_0x226ccf(0x11d))/0xc;if(_0x321c54===_0x2f78a9)break;else _0x1568f7['push'](_0x1568f7['shift']());}catch(_0x2f6f77){_0x1568f7['push'](_0x1568f7['shift']());}}}(a5_0x27e0,0x79da9));function a5_0x27e0(){const _0xbefb18=['Take\x20a\x20screenshot\x20of\x20the\x20primary\x20display.\x20Returns\x20base64\x20encoded\x20image.','Modifier\x20keys','getScreenSize','Move\x20the\x20mouse\x20cursor\x20to\x20specific\x20coordinates.','setRequestHandler','2442LXolOb','left','\x20(double)','Clicked\x20','Typed:\x20\x22','8xOPwMj','width','toString','Y\x20coordinate','robotjs','\x20button','5hFqqId','typeString','keyTap','number','alt','computer-use','computer_type','getBuffer','3932732CPZtSM','base64','computer_screenshot','right','array','mouseClick','Key\x20to\x20tap\x20(e.g.\x20\x27enter\x27,\x20\x27a\x27,\x20\x27backspace\x27)','3BgOInb','2746584eMIxaO','Text\x20to\x20type','control','2SSRDGO','Moved\x20mouse\x20to\x20','read','text','1521779yovjQG','Get\x20the\x20screen\x20resolution.','image/jpeg','string','computer_screen_size','Unknown\x20tool:\x20','1.0.0','command','computer_mouse_click','bitmap','resize','key','computer_key_tap','42600mVgmHC','screenshot-desktop','object','connect','computer_mouse_move','4456644xrOxJV','Screen\x20size:\x20','Error:\x20','height','698366rONkZa','18024756feYUtq'];a5_0x27e0=function(){return _0xbefb18;};return a5_0x27e0();}import{Server}from'@modelcontextprotocol/sdk/server/index.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{CallToolRequestSchema,ListToolsRequestSchema}from'@modelcontextprotocol/sdk/types.js';import{Jimp}from'jimp';import{createRequire}from'module';const require=createRequire(import.meta.url);let robot,screenshot;try{robot=require(a5_0x108e00(0x12c));}catch(a5_0x5d6fc8){}try{screenshot=require(a5_0x108e00(0x114));}catch(a5_0x1e4fed){}function a5_0x2627(_0x334b96,_0x13195b){_0x334b96=_0x334b96-0xf6;const _0x27e0dd=a5_0x27e0();let _0x2627b4=_0x27e0dd[_0x334b96];return _0x2627b4;}const AUTO=-0x1,MIME_JPEG=a5_0x108e00(0x108),server=new Server({'name':a5_0x108e00(0x133),'version':a5_0x108e00(0x10c)},{'capabilities':{'tools':{}}});server[a5_0x108e00(0x122)](ListToolsRequestSchema,async()=>{const _0xc3313e=a5_0x108e00;return{'tools':[{'name':_0xc3313e(0xf9),'description':_0xc3313e(0x11e),'inputSchema':{'type':_0xc3313e(0x115),'properties':{}}},{'name':_0xc3313e(0x117),'description':_0xc3313e(0x121),'inputSchema':{'type':_0xc3313e(0x115),'properties':{'x':{'type':_0xc3313e(0x131),'description':'X\x20coordinate'},'y':{'type':_0xc3313e(0x131),'description':_0xc3313e(0x12b)}},'required':['x','y']}},{'name':_0xc3313e(0x10e),'description':'Click\x20the\x20mouse\x20button.','inputSchema':{'type':_0xc3313e(0x115),'properties':{'button':{'type':_0xc3313e(0x109),'enum':[_0xc3313e(0x124),_0xc3313e(0xfa),'middle'],'default':_0xc3313e(0x124)},'double':{'type':'boolean','default':![]}}}},{'name':_0xc3313e(0x134),'description':'Type\x20a\x20string\x20of\x20text.','inputSchema':{'type':_0xc3313e(0x115),'properties':{'text':{'type':_0xc3313e(0x109),'description':_0xc3313e(0x100)}},'required':['text']}},{'name':'computer_key_tap','description':'Tap\x20a\x20single\x20key\x20with\x20optional\x20modifiers.','inputSchema':{'type':_0xc3313e(0x115),'properties':{'key':{'type':_0xc3313e(0x109),'description':_0xc3313e(0xfd)},'modifiers':{'type':_0xc3313e(0xfb),'items':{'type':_0xc3313e(0x109),'enum':[_0xc3313e(0x132),_0xc3313e(0x10d),_0xc3313e(0x101),'shift']},'description':_0xc3313e(0x11f)}},'required':[_0xc3313e(0x111)]}},{'name':_0xc3313e(0x10a),'description':_0xc3313e(0x107),'inputSchema':{'type':_0xc3313e(0x115),'properties':{}}}]};}),server[a5_0x108e00(0x122)](CallToolRequestSchema,async _0x5242a8=>{const _0x16c312=a5_0x108e00,{name:_0x2ea6f6,arguments:_0x3b5fa7}=_0x5242a8['params'];try{if(_0x2ea6f6===_0x16c312(0xf9)){const _0xf60fbb=await screenshot(),_0x45f784=await Jimp[_0x16c312(0x104)](_0xf60fbb);_0x45f784[_0x16c312(0x10f)]['width']>0x400&&_0x45f784[_0x16c312(0x110)]({'w':0x400});const _0x191dc5=await _0x45f784[_0x16c312(0xf6)](MIME_JPEG),_0x23feeb=_0x191dc5[_0x16c312(0x12a)](_0x16c312(0xf8));return{'content':[{'type':'text','text':'Screenshot\x20taken.'},{'type':'image','data':_0x23feeb,'mimeType':_0x16c312(0x108)}]};}if(_0x2ea6f6==='computer_mouse_move'){const {x:_0x2103f8,y:_0x153625}=_0x3b5fa7;return robot['moveMouse'](_0x2103f8,_0x153625),{'content':[{'type':_0x16c312(0x105),'text':_0x16c312(0x103)+_0x2103f8+',\x20'+_0x153625}]};}if(_0x2ea6f6==='computer_mouse_click'){const {button:button=_0x16c312(0x124),double:double=![]}=_0x3b5fa7;return robot[_0x16c312(0xfc)](button,double),{'content':[{'type':_0x16c312(0x105),'text':_0x16c312(0x126)+button+_0x16c312(0x12d)+(double?_0x16c312(0x125):'')}]};}if(_0x2ea6f6===_0x16c312(0x134)){const {text:_0x4dae47}=_0x3b5fa7;return robot[_0x16c312(0x12f)](_0x4dae47),{'content':[{'type':'text','text':_0x16c312(0x127)+_0x4dae47+'\x22'}]};}if(_0x2ea6f6===_0x16c312(0x112)){const {key:_0xa92ef0,modifiers:_0x104470}=_0x3b5fa7;return robot[_0x16c312(0x130)](_0xa92ef0,_0x104470),{'content':[{'type':_0x16c312(0x105),'text':'Tapped\x20key:\x20'+_0xa92ef0+'\x20'+(_0x104470?'with\x20'+_0x104470['join']('+'):'')}]};}if(_0x2ea6f6===_0x16c312(0x10a)){const _0x4a4618=robot[_0x16c312(0x120)]();return{'content':[{'type':_0x16c312(0x105),'text':_0x16c312(0x119)+_0x4a4618[_0x16c312(0x129)]+'x'+_0x4a4618[_0x16c312(0x11b)]}]};}throw new Error(_0x16c312(0x10b)+_0x2ea6f6);}catch(_0x2ba18){return{'content':[{'type':'text','text':_0x16c312(0x11a)+_0x2ba18}],'isError':!![]};}});const transport=new StdioServerTransport();await server[a5_0x108e00(0x116)](transport);
@@ -1 +1 @@
1
- function a6_0x2d8c(_0x30806e,_0x2e1566){_0x30806e=_0x30806e-0xd6;const _0x47d33d=a6_0x47d3();let _0x2d8cef=_0x47d33d[_0x30806e];return _0x2d8cef;}(function(_0x2401b7,_0x3bafba){const _0x39adf7=a6_0x2d8c,_0xf51282=_0x2401b7();while(!![]){try{const _0x40a2ee=-parseInt(_0x39adf7(0xe9))/0x1+-parseInt(_0x39adf7(0xe3))/0x2+parseInt(_0x39adf7(0xe0))/0x3+parseInt(_0x39adf7(0xda))/0x4*(-parseInt(_0x39adf7(0xdd))/0x5)+-parseInt(_0x39adf7(0xd6))/0x6+parseInt(_0x39adf7(0xdc))/0x7*(parseInt(_0x39adf7(0xe5))/0x8)+parseInt(_0x39adf7(0xe2))/0x9;if(_0x40a2ee===_0x3bafba)break;else _0xf51282['push'](_0xf51282['shift']());}catch(_0x2b6ad4){_0xf51282['push'](_0xf51282['shift']());}}}(a6_0x47d3,0x99ecf));import{spawn}from'child_process';function a6_0x47d3(){const _0x1de433=['8svlkkz','cmd.exe','/bin/sh','stderr','479471ozLnyt','error','close','cwd','removeAllListeners','pipe','7008000UEFMZp','toString','platform','unref','77684LHOHYq','message','7803754paoFYg','5TDBoWD','data','env','2261901mHYGBM','win32','11826648lyaPeU','1770980IjrxZF','stdout'];a6_0x47d3=function(){return _0x1de433;};return a6_0x47d3();}export async function runCommand(_0x28f681,_0x354b0f,_0x5a80c4=![],_0x2c56c3=0xbb8){return new Promise(_0x433727=>{const _0x3b5541=a6_0x2d8c,_0x112ca3=process[_0x3b5541(0xd8)]===_0x3b5541(0xe1),_0x12d81e=_0x112ca3?_0x3b5541(0xe6):_0x3b5541(0xe7),_0x2edee8=_0x112ca3?'/c':'-c',_0x462747=spawn(_0x12d81e,[_0x2edee8,_0x28f681],{'cwd':process[_0x3b5541(0xec)](),'env':process[_0x3b5541(0xdf)],'detached':_0x5a80c4,'stdio':_0x3b5541(0xee)});let _0x49dff1='',_0xf54e0b='',_0x234b41=![];_0x5a80c4&&setTimeout(()=>{const _0x576927=_0x3b5541;if(!_0x234b41){_0x234b41=!![];if(_0x462747[_0x576927(0xd9)])_0x462747['unref']();_0x462747[_0x576927(0xe4)]?.[_0x576927(0xed)](_0x576927(0xde)),_0x462747[_0x576927(0xe8)]?.[_0x576927(0xed)](_0x576927(0xde)),_0x433727({'success':!![],'stdout':_0x49dff1+('\x0a[Woozlit:\x20Command\x20continuing\x20in\x20background\x20after\x20'+_0x2c56c3+'ms...]'),'stderr':_0xf54e0b,'exitCode':0x0});}},_0x2c56c3),_0x462747[_0x3b5541(0xe4)]?.['on'](_0x3b5541(0xde),_0x52e73d=>{const _0x3b59c7=_0x3b5541;if(_0x234b41)return;const _0x3be177=_0x52e73d[_0x3b59c7(0xd7)]();_0x49dff1+=_0x3be177;if(_0x354b0f)_0x354b0f(_0x3be177);}),_0x462747['stderr']?.['on'](_0x3b5541(0xde),_0x33a445=>{const _0xf8f1df=_0x3b5541;if(_0x234b41)return;const _0x18c601=_0x33a445[_0xf8f1df(0xd7)]();_0xf54e0b+=_0x18c601;if(_0x354b0f)_0x354b0f(_0x18c601);}),_0x462747['on'](_0x3b5541(0xeb),_0x18e984=>{!_0x234b41&&(_0x234b41=!![],_0x433727({'success':_0x18e984===0x0,'stdout':_0x49dff1,'stderr':_0xf54e0b,'exitCode':_0x18e984||0x0}));}),_0x462747['on'](_0x3b5541(0xea),_0x2a2440=>{const _0x52ad66=_0x3b5541;!_0x234b41&&(_0x234b41=!![],_0x433727({'success':![],'stdout':_0x49dff1,'stderr':_0x2a2440[_0x52ad66(0xdb)],'exitCode':0x1}));});});}
1
+ function a6_0x5a9c(){const _0x46081c=['removeAllListeners','env','2OVCJCY','2007552CESgaZ','/bin/sh','cmd.exe','error','2718440KHiRvm','12kNCRzD','471081hdXxlZ','7069707sVzhSn','cwd','2024630LOipzE','win32','message','stdout','platform','862687LGLUki','pipe','\x0a[Woozlit:\x20Command\x20continuing\x20in\x20background\x20after\x20','data','7VuxgLn','unref','44SUgdhg','stderr','12835OHsAJQ','186GfqQYL'];a6_0x5a9c=function(){return _0x46081c;};return a6_0x5a9c();}(function(_0x50b089,_0x5a2725){const _0x5a9d11=a6_0x1289,_0x7cdd94=_0x50b089();while(!![]){try{const _0x1d7cd3=-parseInt(_0x5a9d11(0xc8))/0x1*(-parseInt(_0x5a9d11(0xd4))/0x2)+-parseInt(_0x5a9d11(0xdb))/0x3*(parseInt(_0x5a9d11(0xda))/0x4)+-parseInt(_0x5a9d11(0xd0))/0x5*(parseInt(_0x5a9d11(0xd1))/0x6)+parseInt(_0x5a9d11(0xcc))/0x7*(parseInt(_0x5a9d11(0xd9))/0x8)+-parseInt(_0x5a9d11(0xdc))/0x9+-parseInt(_0x5a9d11(0xde))/0xa*(-parseInt(_0x5a9d11(0xce))/0xb)+-parseInt(_0x5a9d11(0xd5))/0xc;if(_0x1d7cd3===_0x5a2725)break;else _0x7cdd94['push'](_0x7cdd94['shift']());}catch(_0x5af5d7){_0x7cdd94['push'](_0x7cdd94['shift']());}}}(a6_0x5a9c,0x7c3c3));function a6_0x1289(_0x54ac7d,_0x14adc){_0x54ac7d=_0x54ac7d-0xc7;const _0x5a9c32=a6_0x5a9c();let _0x1289f1=_0x5a9c32[_0x54ac7d];return _0x1289f1;}import{spawn}from'child_process';export async function runCommand(_0x5d0a8,_0x173a14,_0x5a0803=![],_0x211630=0xbb8){return new Promise(_0x3145c5=>{const _0x4ca9b4=a6_0x1289,_0x2bed23=process[_0x4ca9b4(0xc7)]===_0x4ca9b4(0xdf),_0x34a273=_0x2bed23?_0x4ca9b4(0xd7):_0x4ca9b4(0xd6),_0x21f2ca=_0x2bed23?'/c':'-c',_0x1dece7=spawn(_0x34a273,[_0x21f2ca,_0x5d0a8],{'cwd':process[_0x4ca9b4(0xdd)](),'env':process[_0x4ca9b4(0xd3)],'detached':_0x5a0803,'stdio':_0x4ca9b4(0xc9)});let _0xd4ec5='',_0x2412f8='',_0x5dd088=![];_0x5a0803&&setTimeout(()=>{const _0x5740cd=_0x4ca9b4;if(!_0x5dd088){_0x5dd088=!![];if(_0x1dece7[_0x5740cd(0xcd)])_0x1dece7[_0x5740cd(0xcd)]();_0x1dece7[_0x5740cd(0xe1)]?.[_0x5740cd(0xd2)](_0x5740cd(0xcb)),_0x1dece7[_0x5740cd(0xcf)]?.['removeAllListeners'](_0x5740cd(0xcb)),_0x3145c5({'success':!![],'stdout':_0xd4ec5+(_0x5740cd(0xca)+_0x211630+'ms...]'),'stderr':_0x2412f8,'exitCode':0x0});}},_0x211630),_0x1dece7['stdout']?.['on']('data',_0x1ea524=>{if(_0x5dd088)return;const _0x32142e=_0x1ea524['toString']();_0xd4ec5+=_0x32142e;if(_0x173a14)_0x173a14(_0x32142e);}),_0x1dece7[_0x4ca9b4(0xcf)]?.['on'](_0x4ca9b4(0xcb),_0x100d2f=>{if(_0x5dd088)return;const _0x15acdf=_0x100d2f['toString']();_0x2412f8+=_0x15acdf;if(_0x173a14)_0x173a14(_0x15acdf);}),_0x1dece7['on']('close',_0x400605=>{!_0x5dd088&&(_0x5dd088=!![],_0x3145c5({'success':_0x400605===0x0,'stdout':_0xd4ec5,'stderr':_0x2412f8,'exitCode':_0x400605||0x0}));}),_0x1dece7['on'](_0x4ca9b4(0xd8),_0xf02a41=>{const _0x3b2c87=_0x4ca9b4;!_0x5dd088&&(_0x5dd088=!![],_0x3145c5({'success':![],'stdout':_0xd4ec5,'stderr':_0xf02a41[_0x3b2c87(0xe0)],'exitCode':0x1}));});});}
@@ -1 +1 @@
1
- function a7_0x4c89(_0x3dacc4,_0x2206f1){_0x3dacc4=_0x3dacc4-0x177;const _0x5f0aec=a7_0x5f0a();let _0x4c8926=_0x5f0aec[_0x3dacc4];return _0x4c8926;}function a7_0x5f0a(){const _0x18f63e=['Listed\x20','.css','.rs','.jsx','File\x20not\x20found:\x20','size','3389928hlSuVj','substring','Failed\x20to\x20find\x20files:\x20','file','Created\x20','.bin','Edited\x20','directory','length','utf-8','\x20items\x20in\x20','.py','slice','toLowerCase','.txt','[Binary\x20file\x20detected\x20(.','.gif','.dll','test','.exe','Failed\x20to\x20search\x20','35KAejPg','Failed\x20to\x20create\x20','pop','isDirectory','Failed\x20to\x20edit\x20','\x20files\x20matching\x20\x22','split','731021wyjUVr','node_modules','1824762xpGRzL','1486404weZETR','map','.jpg','\x20matches\x20for\x20\x22','.js','.md','Directory\x20not\x20found:\x20','startsWith','includes','Failed\x20to\x20list\x20','.go','1023360ODphGf','Failed\x20to\x20search\x20directory:\x20','Failed\x20to\x20read\x20','969186rJMIOo','\x20output\x20matches\x20in\x20','7177940CpOxmW','.html','trim','cwd','.ts',').\x20Use\x20\x27computer_screenshot\x27\x20or\x20specific\x20tools\x20to\x20handle\x20this\x20file\x20type.\x20Direct\x20reading\x20is\x20not\x20supported.]'];a7_0x5f0a=function(){return _0x18f63e;};return a7_0x5f0a();}(function(_0x5085a1,_0x3891d5){const _0x45a6be=a7_0x4c89,_0x3ac8c4=_0x5085a1();while(!![]){try{const _0x464288=parseInt(_0x45a6be(0x19f))/0x1+-parseInt(_0x45a6be(0x1a1))/0x2+parseInt(_0x45a6be(0x1a2))/0x3+-parseInt(_0x45a6be(0x1ad))/0x4+parseInt(_0x45a6be(0x198))/0x5*(parseInt(_0x45a6be(0x1b0))/0x6)+-parseInt(_0x45a6be(0x177))/0x7+parseInt(_0x45a6be(0x183))/0x8;if(_0x464288===_0x3891d5)break;else _0x3ac8c4['push'](_0x3ac8c4['shift']());}catch(_0x5d5fc9){_0x3ac8c4['push'](_0x3ac8c4['shift']());}}}(a7_0x5f0a,0x8f62a));import{readFileSync,writeFileSync,existsSync,readdirSync,statSync,mkdirSync}from'fs';import{dirname,resolve,relative}from'path';import{trackFileCreate,trackFileModify}from'./rollback.js';export function createFile(_0x375809,_0x488da9){const _0x4a4651=a7_0x4c89;try{const _0x236166=resolve(process['cwd'](),_0x375809),_0x3e54c1=dirname(_0x236166);return!existsSync(_0x3e54c1)&&mkdirSync(_0x3e54c1,{'recursive':!![]}),writeFileSync(_0x236166,_0x488da9,'utf-8'),trackFileCreate(_0x236166),{'success':!![],'message':_0x4a4651(0x187)+_0x375809};}catch(_0x2444ce){return{'success':![],'message':_0x4a4651(0x199)+_0x375809+':\x20'+_0x2444ce};}}export function readFile(_0x107fbe){const _0x400f2b=a7_0x4c89;try{const _0x360f08=resolve(process[_0x400f2b(0x17a)](),_0x107fbe);if(!existsSync(_0x360f08))return{'success':![],'message':_0x400f2b(0x181)+_0x107fbe};const _0x388df5=['.png',_0x400f2b(0x1a4),'.jpeg',_0x400f2b(0x193),_0x400f2b(0x196),_0x400f2b(0x194),_0x400f2b(0x188)],_0x3e26c3=_0x360f08[_0x400f2b(0x19e)]('.')[_0x400f2b(0x19a)]()?.['toLowerCase']();if(_0x3e26c3&&_0x388df5[_0x400f2b(0x1aa)]('.'+_0x3e26c3))return{'success':![],'message':_0x400f2b(0x192)+_0x3e26c3+_0x400f2b(0x17c)};const _0x34edfb=readFileSync(_0x360f08,_0x400f2b(0x18c));return{'success':!![],'content':_0x34edfb,'message':'Read\x20'+_0x107fbe};}catch(_0x218716){return{'success':![],'message':_0x400f2b(0x1af)+_0x107fbe+':\x20'+_0x218716};}}export function listDirectory(_0x59dc70='.'){const _0x40b4fc=a7_0x4c89;try{const _0x3fb997=resolve(process[_0x40b4fc(0x17a)](),_0x59dc70);if(!existsSync(_0x3fb997))return{'success':![],'message':'Directory\x20not\x20found:\x20'+_0x59dc70};const _0x16bbd9=readdirSync(_0x3fb997),_0x1910c8=_0x16bbd9[_0x40b4fc(0x1a3)](_0x4768ba=>{const _0x18945c=_0x40b4fc,_0x4530d1=resolve(_0x3fb997,_0x4768ba),_0x15f2ba=statSync(_0x4530d1);return{'name':_0x4768ba,'type':_0x15f2ba[_0x18945c(0x19b)]()?_0x18945c(0x18a):_0x18945c(0x186),'size':_0x15f2ba['isFile']()?_0x15f2ba[_0x18945c(0x182)]:undefined};});return{'success':!![],'entries':_0x1910c8,'message':_0x40b4fc(0x17d)+_0x1910c8[_0x40b4fc(0x18b)]+_0x40b4fc(0x18d)+_0x59dc70};}catch(_0x3bce04){return{'success':![],'message':_0x40b4fc(0x1ab)+_0x59dc70+':\x20'+_0x3bce04};}}export function editFile(_0x2cc9b7,_0x3ed98a,_0x270665){const _0x1f70f0=a7_0x4c89;try{const _0x38e0e7=resolve(process['cwd'](),_0x2cc9b7);if(!existsSync(_0x38e0e7))return{'success':![],'message':_0x1f70f0(0x181)+_0x2cc9b7};const _0x52b21d=readFileSync(_0x38e0e7,_0x1f70f0(0x18c));if(!_0x52b21d[_0x1f70f0(0x1aa)](_0x3ed98a))return{'success':![],'message':'Search\x20string\x20not\x20found\x20in\x20'+_0x2cc9b7};trackFileModify(_0x38e0e7,_0x52b21d);const _0x1e2d9e=_0x52b21d['replace'](_0x3ed98a,_0x270665);return writeFileSync(_0x38e0e7,_0x1e2d9e,_0x1f70f0(0x18c)),{'success':!![],'message':_0x1f70f0(0x189)+_0x2cc9b7};}catch(_0x22c1f6){return{'success':![],'message':_0x1f70f0(0x19c)+_0x2cc9b7+':\x20'+_0x22c1f6};}}export function searchFile(_0x1a1520,_0x259e0d){const _0x538932=a7_0x4c89;try{const _0x29efc4=resolve(process[_0x538932(0x17a)](),_0x1a1520);if(!existsSync(_0x29efc4))return{'success':![],'message':'File\x20not\x20found:\x20'+_0x1a1520};const _0x4a5599=readFileSync(_0x29efc4,_0x538932(0x18c)),_0x474a4d=new RegExp(_0x259e0d,'g'),_0x41e606=_0x4a5599['match'](_0x474a4d)||[],_0x288936=_0x4a5599[_0x538932(0x19e)]('\x0a'),_0xbfb3bb=_0x288936['filter']((_0x2fa373,_0x209bd4)=>new RegExp(_0x259e0d)[_0x538932(0x195)](_0x2fa373));return{'success':!![],'matches':_0xbfb3bb,'message':'Found\x20'+_0xbfb3bb[_0x538932(0x18b)]+_0x538932(0x1b1)+_0x1a1520};}catch(_0x286400){return{'success':![],'message':_0x538932(0x197)+_0x1a1520+':\x20'+_0x286400};}}export function findFiles(_0x31ab11,_0x131250){const _0x58210c=a7_0x4c89;try{const _0x1cd183=resolve(process['cwd'](),_0x31ab11);if(!existsSync(_0x1cd183))return{'success':![],'message':_0x58210c(0x1a8)+_0x31ab11};const _0x2fd82e=[],_0x3536fb=new RegExp(_0x131250,'i');function _0x49daa2(_0x4f3c3b){const _0x110722=_0x58210c,_0x5e5b1c=readdirSync(_0x4f3c3b);for(const _0x30c4cf of _0x5e5b1c){if(_0x30c4cf[_0x110722(0x1a9)]('.')||_0x30c4cf===_0x110722(0x1a0))continue;const _0x184ee5=resolve(_0x4f3c3b,_0x30c4cf),_0x5e45d5=statSync(_0x184ee5);if(_0x5e45d5[_0x110722(0x19b)]())_0x49daa2(_0x184ee5);else _0x3536fb[_0x110722(0x195)](_0x30c4cf)&&_0x2fd82e['push'](relative(_0x1cd183,_0x184ee5));}}return _0x49daa2(_0x1cd183),{'success':!![],'files':_0x2fd82e[_0x58210c(0x18f)](0x0,0x32),'message':'Found\x20'+_0x2fd82e[_0x58210c(0x18b)]+_0x58210c(0x19d)+_0x131250+'\x22'};}catch(_0x52c659){return{'success':![],'message':_0x58210c(0x185)+_0x52c659};}}export function searchDirectory(_0x53b44e,_0x760767){const _0x5e492a=a7_0x4c89;try{const _0x1bff95=resolve(process['cwd'](),_0x53b44e);if(!existsSync(_0x1bff95))return{'success':![],'message':'Directory\x20not\x20found:\x20'+_0x53b44e};const _0x3245c2=[],_0x2cfbe5=new RegExp(_0x760767,'i'),_0x1278fd=[_0x5e492a(0x17b),_0x5e492a(0x1a6),'.tsx',_0x5e492a(0x180),'.json',_0x5e492a(0x1a7),_0x5e492a(0x191),_0x5e492a(0x17e),_0x5e492a(0x178),_0x5e492a(0x18e),_0x5e492a(0x1ac),_0x5e492a(0x17f)];function _0x4d6604(_0x1e7abc){const _0x533870=_0x5e492a,_0xf36104=readdirSync(_0x1e7abc);for(const _0x2651fa of _0xf36104){if(_0x2651fa[_0x533870(0x1a9)]('.')||_0x2651fa===_0x533870(0x1a0))continue;const _0x1af92d=resolve(_0x1e7abc,_0x2651fa),_0x2bf3e1=statSync(_0x1af92d);if(_0x2bf3e1[_0x533870(0x19b)]())_0x4d6604(_0x1af92d);else{const _0x58140a='.'+_0x2651fa[_0x533870(0x19e)]('.')[_0x533870(0x19a)]()?.[_0x533870(0x190)]();if(_0x1278fd[_0x533870(0x1aa)](_0x58140a))try{const _0x3489d0=readFileSync(_0x1af92d,'utf-8'),_0x30765d=_0x3489d0[_0x533870(0x19e)]('\x0a');_0x30765d['forEach']((_0x5e3319,_0x382e06)=>{const _0x278cb3=_0x533870;_0x2cfbe5[_0x278cb3(0x195)](_0x5e3319)&&_0x3245c2['push']({'file':relative(_0x1bff95,_0x1af92d),'line':_0x382e06+0x1,'content':_0x5e3319[_0x278cb3(0x179)]()[_0x278cb3(0x184)](0x0,0x64)});});}catch{}}}}return _0x4d6604(_0x1bff95),{'success':!![],'results':_0x3245c2[_0x5e492a(0x18f)](0x0,0x1e),'message':'Found\x20'+_0x3245c2[_0x5e492a(0x18b)]+_0x5e492a(0x1a5)+_0x760767+'\x22'};}catch(_0x2e68be){return{'success':![],'message':_0x5e492a(0x1ae)+_0x2e68be};}}
1
+ (function(_0x11c8d5,_0x3b5e6e){const _0x33fd63=a7_0xf410,_0x30dc6a=_0x11c8d5();while(!![]){try{const _0x389bf8=-parseInt(_0x33fd63(0x153))/0x1+-parseInt(_0x33fd63(0x177))/0x2+parseInt(_0x33fd63(0x155))/0x3*(parseInt(_0x33fd63(0x164))/0x4)+parseInt(_0x33fd63(0x160))/0x5+-parseInt(_0x33fd63(0x16a))/0x6+-parseInt(_0x33fd63(0x169))/0x7+parseInt(_0x33fd63(0x16f))/0x8*(parseInt(_0x33fd63(0x15f))/0x9);if(_0x389bf8===_0x3b5e6e)break;else _0x30dc6a['push'](_0x30dc6a['shift']());}catch(_0x45dfd7){_0x30dc6a['push'](_0x30dc6a['shift']());}}}(a7_0xa21f,0xe7e52));import{readFileSync,writeFileSync,existsSync,readdirSync,statSync,mkdirSync}from'fs';import{dirname,resolve,relative}from'path';import{trackFileCreate,trackFileModify}from'./rollback.js';function a7_0xf410(_0x120dca,_0x176da7){_0x120dca=_0x120dca-0x146;const _0xa21fb9=a7_0xa21f();let _0xf410f8=_0xa21fb9[_0x120dca];return _0xf410f8;}export function createFile(_0x51dd18,_0x88dc38){const _0x125f52=a7_0xf410;try{const _0x4f841e=resolve(process[_0x125f52(0x167)](),_0x51dd18),_0x55086f=dirname(_0x4f841e);return!existsSync(_0x55086f)&&mkdirSync(_0x55086f,{'recursive':!![]}),writeFileSync(_0x4f841e,_0x88dc38,'utf-8'),trackFileCreate(_0x4f841e),{'success':!![],'message':_0x125f52(0x165)+_0x51dd18};}catch(_0x470715){return{'success':![],'message':'Failed\x20to\x20create\x20'+_0x51dd18+':\x20'+_0x470715};}}export function readFile(_0x35f2c9){const _0x1ab822=a7_0xf410;try{const _0x11b6ef=resolve(process['cwd'](),_0x35f2c9);if(!existsSync(_0x11b6ef))return{'success':![],'message':_0x1ab822(0x179)+_0x35f2c9};const _0x573a5d=[_0x1ab822(0x161),_0x1ab822(0x17c),_0x1ab822(0x147),_0x1ab822(0x14a),'.exe',_0x1ab822(0x14b),_0x1ab822(0x170)],_0x26e976=_0x11b6ef['split']('.')[_0x1ab822(0x15a)]()?.[_0x1ab822(0x151)]();if(_0x26e976&&_0x573a5d['includes']('.'+_0x26e976))return{'success':![],'message':_0x1ab822(0x180)+_0x26e976+').\x20Use\x20\x27computer_screenshot\x27\x20or\x20specific\x20tools\x20to\x20handle\x20this\x20file\x20type.\x20Direct\x20reading\x20is\x20not\x20supported.]'};const _0x55c13e=readFileSync(_0x11b6ef,_0x1ab822(0x15c));return{'success':!![],'content':_0x55c13e,'message':'Read\x20'+_0x35f2c9};}catch(_0x2ceb52){return{'success':![],'message':'Failed\x20to\x20read\x20'+_0x35f2c9+':\x20'+_0x2ceb52};}}export function listDirectory(_0x514a6f='.'){const _0x48a2a1=a7_0xf410;try{const _0x8fd324=resolve(process[_0x48a2a1(0x167)](),_0x514a6f);if(!existsSync(_0x8fd324))return{'success':![],'message':'Directory\x20not\x20found:\x20'+_0x514a6f};const _0x4d9595=readdirSync(_0x8fd324),_0x5d84f4=_0x4d9595[_0x48a2a1(0x162)](_0x154e64=>{const _0x5b3b5d=_0x48a2a1,_0x1ff505=resolve(_0x8fd324,_0x154e64),_0x4e656a=statSync(_0x1ff505);return{'name':_0x154e64,'type':_0x4e656a[_0x5b3b5d(0x14e)]()?_0x5b3b5d(0x14d):'file','size':_0x4e656a[_0x5b3b5d(0x17a)]()?_0x4e656a[_0x5b3b5d(0x175)]:undefined};});return{'success':!![],'entries':_0x5d84f4,'message':_0x48a2a1(0x178)+_0x5d84f4[_0x48a2a1(0x17b)]+_0x48a2a1(0x172)+_0x514a6f};}catch(_0x10dfe9){return{'success':![],'message':_0x48a2a1(0x168)+_0x514a6f+':\x20'+_0x10dfe9};}}export function editFile(_0x2ff36f,_0x1bfcd1,_0x2c07d5){const _0x59fc95=a7_0xf410;try{const _0x54362b=resolve(process['cwd'](),_0x2ff36f);if(!existsSync(_0x54362b))return{'success':![],'message':'File\x20not\x20found:\x20'+_0x2ff36f};const _0x24d334=readFileSync(_0x54362b,'utf-8');if(!_0x24d334[_0x59fc95(0x146)](_0x1bfcd1))return{'success':![],'message':'Search\x20string\x20not\x20found\x20in\x20'+_0x2ff36f};trackFileModify(_0x54362b,_0x24d334);const _0x45c950=_0x24d334[_0x59fc95(0x176)](_0x1bfcd1,_0x2c07d5);return writeFileSync(_0x54362b,_0x45c950,_0x59fc95(0x15c)),{'success':!![],'message':_0x59fc95(0x14f)+_0x2ff36f};}catch(_0x1a7b44){return{'success':![],'message':_0x59fc95(0x150)+_0x2ff36f+':\x20'+_0x1a7b44};}}function a7_0xa21f(){const _0x16e233=['test','1384816XWagqB','Failed\x20to\x20search\x20','3984ZBjznv','.go','Directory\x20not\x20found:\x20','.tsx','.ts','pop','trim','utf-8','filter','.html','150462givstE','9036065LCgEWp','.png','map','node_modules','1516SlfvlP','Created\x20','substring','cwd','Failed\x20to\x20list\x20','11354763EGxvrz','9743820ASWzTx','push','split','.md','.js','2240TAkTtM','.bin','Failed\x20to\x20find\x20files:\x20','\x20items\x20in\x20','match','slice','size','replace','2821656PVCuWU','Listed\x20','File\x20not\x20found:\x20','isFile','length','.jpg','Found\x20','.py','.jsx','[Binary\x20file\x20detected\x20(.','startsWith','includes','.jpeg','.json','.css','.gif','.dll','\x20files\x20matching\x20\x22','directory','isDirectory','Edited\x20','Failed\x20to\x20edit\x20','toLowerCase'];a7_0xa21f=function(){return _0x16e233;};return a7_0xa21f();}export function searchFile(_0x2dfd0d,_0xd1d078){const _0x5f81c4=a7_0xf410;try{const _0xdc4be3=resolve(process[_0x5f81c4(0x167)](),_0x2dfd0d);if(!existsSync(_0xdc4be3))return{'success':![],'message':_0x5f81c4(0x179)+_0x2dfd0d};const _0x1c1697=readFileSync(_0xdc4be3,_0x5f81c4(0x15c)),_0x9c8450=new RegExp(_0xd1d078,'g'),_0x48d328=_0x1c1697[_0x5f81c4(0x173)](_0x9c8450)||[],_0x13ce3d=_0x1c1697['split']('\x0a'),_0x3501d9=_0x13ce3d[_0x5f81c4(0x15d)]((_0x3403d6,_0x4ed29d)=>new RegExp(_0xd1d078)['test'](_0x3403d6));return{'success':!![],'matches':_0x3501d9,'message':_0x5f81c4(0x17d)+_0x3501d9[_0x5f81c4(0x17b)]+'\x20output\x20matches\x20in\x20'+_0x2dfd0d};}catch(_0x1b6040){return{'success':![],'message':_0x5f81c4(0x154)+_0x2dfd0d+':\x20'+_0x1b6040};}}export function findFiles(_0x56a7c4,_0x22bdcf){const _0x49d662=a7_0xf410;try{const _0x849d6c=resolve(process[_0x49d662(0x167)](),_0x56a7c4);if(!existsSync(_0x849d6c))return{'success':![],'message':'Directory\x20not\x20found:\x20'+_0x56a7c4};const _0xa0a819=[],_0x135680=new RegExp(_0x22bdcf,'i');function _0x5da08e(_0x5ccda8){const _0xd197db=_0x49d662,_0x4bc2cd=readdirSync(_0x5ccda8);for(const _0x45c619 of _0x4bc2cd){if(_0x45c619[_0xd197db(0x181)]('.')||_0x45c619===_0xd197db(0x163))continue;const _0x536189=resolve(_0x5ccda8,_0x45c619),_0x538a3c=statSync(_0x536189);if(_0x538a3c[_0xd197db(0x14e)]())_0x5da08e(_0x536189);else _0x135680[_0xd197db(0x152)](_0x45c619)&&_0xa0a819[_0xd197db(0x16b)](relative(_0x849d6c,_0x536189));}}return _0x5da08e(_0x849d6c),{'success':!![],'files':_0xa0a819[_0x49d662(0x174)](0x0,0x32),'message':_0x49d662(0x17d)+_0xa0a819[_0x49d662(0x17b)]+_0x49d662(0x14c)+_0x22bdcf+'\x22'};}catch(_0x21487f){return{'success':![],'message':_0x49d662(0x171)+_0x21487f};}}export function searchDirectory(_0x48fead,_0x40ee21){const _0x6c960=a7_0xf410;try{const _0x1c95b6=resolve(process[_0x6c960(0x167)](),_0x48fead);if(!existsSync(_0x1c95b6))return{'success':![],'message':_0x6c960(0x157)+_0x48fead};const _0x3bdfff=[],_0x22206b=new RegExp(_0x40ee21,'i'),_0x29b211=[_0x6c960(0x159),_0x6c960(0x16e),_0x6c960(0x158),_0x6c960(0x17f),_0x6c960(0x148),_0x6c960(0x16d),'.txt',_0x6c960(0x149),_0x6c960(0x15e),_0x6c960(0x17e),_0x6c960(0x156),'.rs'];function _0x35936d(_0x34483e){const _0x26edc6=_0x6c960,_0x373ac4=readdirSync(_0x34483e);for(const _0x1fed71 of _0x373ac4){if(_0x1fed71[_0x26edc6(0x181)]('.')||_0x1fed71===_0x26edc6(0x163))continue;const _0x5188fd=resolve(_0x34483e,_0x1fed71),_0x3d0a09=statSync(_0x5188fd);if(_0x3d0a09[_0x26edc6(0x14e)]())_0x35936d(_0x5188fd);else{const _0x4da339='.'+_0x1fed71[_0x26edc6(0x16c)]('.')[_0x26edc6(0x15a)]()?.[_0x26edc6(0x151)]();if(_0x29b211[_0x26edc6(0x146)](_0x4da339))try{const _0x3a0032=readFileSync(_0x5188fd,_0x26edc6(0x15c)),_0x2a59d6=_0x3a0032['split']('\x0a');_0x2a59d6['forEach']((_0x592147,_0x47b3da)=>{const _0x38e5b0=_0x26edc6;_0x22206b[_0x38e5b0(0x152)](_0x592147)&&_0x3bdfff[_0x38e5b0(0x16b)]({'file':relative(_0x1c95b6,_0x5188fd),'line':_0x47b3da+0x1,'content':_0x592147[_0x38e5b0(0x15b)]()[_0x38e5b0(0x166)](0x0,0x64)});});}catch{}}}}return _0x35936d(_0x1c95b6),{'success':!![],'results':_0x3bdfff[_0x6c960(0x174)](0x0,0x1e),'message':_0x6c960(0x17d)+_0x3bdfff[_0x6c960(0x17b)]+'\x20matches\x20for\x20\x22'+_0x40ee21+'\x22'};}catch(_0x11af9a){return{'success':![],'message':'Failed\x20to\x20search\x20directory:\x20'+_0x11af9a};}}
@@ -1 +1 @@
1
- (function(_0x241883,_0x2902e8){var _0x356af6=a8_0x3fb9,_0x48da68=_0x241883();while(!![]){try{var _0x38d09f=parseInt(_0x356af6(0xb6))/0x1*(parseInt(_0x356af6(0xbe))/0x2)+-parseInt(_0x356af6(0xb8))/0x3*(-parseInt(_0x356af6(0xbc))/0x4)+-parseInt(_0x356af6(0xbf))/0x5*(-parseInt(_0x356af6(0xb7))/0x6)+parseInt(_0x356af6(0xbb))/0x7+-parseInt(_0x356af6(0xb9))/0x8*(-parseInt(_0x356af6(0xba))/0x9)+parseInt(_0x356af6(0xc0))/0xa*(parseInt(_0x356af6(0xb5))/0xb)+-parseInt(_0x356af6(0xbd))/0xc;if(_0x38d09f===_0x2902e8)break;else _0x48da68['push'](_0x48da68['shift']());}catch(_0x16ddbc){_0x48da68['push'](_0x48da68['shift']());}}}(a8_0x9f6e,0x4aaa2));export{createFile,readFile,listDirectory,editFile,searchFile,findFiles,searchDirectory}from'./file.js';export{runCommand}from'./command.js';export{listRules,addRule,clearRules,formatRulesForSystem}from'./rules.js';function a8_0x3fb9(_0x1f3a30,_0x2f015f){_0x1f3a30=_0x1f3a30-0xb5;var _0x9f6e31=a8_0x9f6e();var _0x3fb94e=_0x9f6e31[_0x1f3a30];return _0x3fb94e;}export{connectToMcpServers,getMcpTools,executeMcpTool,closeMcpClients}from'./mcp.js';function a8_0x9f6e(){var _0x3d168b=['2OnHNiy','20MswmTW','100zAOepT','539671laQsnE','70954zOQXPL','180624YjvNHT','9bbhQCg','92176qgzOTg','198Dejncf','2525068kfRKQU','186032vwvOAm','13558632fDgbrc'];a8_0x9f6e=function(){return _0x3d168b;};return a8_0x9f6e();}export{trackFileCreate,trackFileModify,rollbackLast,rollbackAll,getChanges,clearChanges}from'./rollback.js';
1
+ (function(_0x27852f,_0x3d61c1){var _0x1ad050=a8_0x5d58,_0x2b8bb7=_0x27852f();while(!![]){try{var _0x23a192=parseInt(_0x1ad050(0x193))/0x1+-parseInt(_0x1ad050(0x194))/0x2+-parseInt(_0x1ad050(0x197))/0x3*(parseInt(_0x1ad050(0x190))/0x4)+parseInt(_0x1ad050(0x192))/0x5*(parseInt(_0x1ad050(0x196))/0x6)+-parseInt(_0x1ad050(0x198))/0x7+-parseInt(_0x1ad050(0x191))/0x8+parseInt(_0x1ad050(0x195))/0x9;if(_0x23a192===_0x3d61c1)break;else _0x2b8bb7['push'](_0x2b8bb7['shift']());}catch(_0x238b85){_0x2b8bb7['push'](_0x2b8bb7['shift']());}}}(a8_0x5b81,0xb5c94));export{createFile,readFile,listDirectory,editFile,searchFile,findFiles,searchDirectory}from'./file.js';export{runCommand}from'./command.js';export{listRules,addRule,clearRules,formatRulesForSystem}from'./rules.js';function a8_0x5b81(){var _0x24df0b=['558212kicVqg','772677pofCqD','2686902DWlnlO','2121WLyawS','1507555CrNfLz','928ZYvaGl','1640840nLTVXw','15SDNcbR','178892dWsobP'];a8_0x5b81=function(){return _0x24df0b;};return a8_0x5b81();}export{connectToMcpServers,getMcpTools,executeMcpTool,closeMcpClients}from'./mcp.js';function a8_0x5d58(_0x3bd4fe,_0x314b8c){_0x3bd4fe=_0x3bd4fe-0x190;var _0x5b8155=a8_0x5b81();var _0x5d582c=_0x5b8155[_0x3bd4fe];return _0x5d582c;}export{trackFileCreate,trackFileModify,rollbackLast,rollbackAll,getChanges,clearChanges}from'./rollback.js';
package/dist/tools/mcp.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2ccad2,_0x36bdcb){const _0x199b9a=a9_0x5b97,_0x25201e=_0x2ccad2();while(!![]){try{const _0x3107e4=parseInt(_0x199b9a(0x15f))/0x1*(parseInt(_0x199b9a(0x146))/0x2)+-parseInt(_0x199b9a(0x13f))/0x3+parseInt(_0x199b9a(0x15a))/0x4+parseInt(_0x199b9a(0x143))/0x5+-parseInt(_0x199b9a(0x158))/0x6*(-parseInt(_0x199b9a(0x149))/0x7)+-parseInt(_0x199b9a(0x141))/0x8*(-parseInt(_0x199b9a(0x13d))/0x9)+-parseInt(_0x199b9a(0x151))/0xa;if(_0x3107e4===_0x36bdcb)break;else _0x25201e['push'](_0x25201e['shift']());}catch(_0x28014b){_0x25201e['push'](_0x25201e['shift']());}}}(a9_0x387b,0xdf6cc));import{Client}from'@modelcontextprotocol/sdk/client/index.js';function a9_0x387b(){const _0x23c959=['5265432TiWcZd','env','1120oXoLIE','type','145045Jngqeq','clear','\x27:\x20','723252hgeLTe','get','command','567ZuNISN','\x27\x20not\x20connected','connect','listTools','Connecting\x20to\x20MCP\x20servers...','has','tools','forEach','25202120xCitLx','set','Failed\x20to\x20connect\x20to\x20HTTP\x20MCP\x20server\x20\x27','Failed\x20to\x20list\x20tools\x20for\x20\x27','values','entries','info','106086SXiqum','length','3049160tquLye','woozlit-cli','keys','pipe','map','4JpSsbm','callTool','close','streamable-http','push','error','97749PGzrOy','1.0.0'];a9_0x387b=function(){return _0x23c959;};return a9_0x387b();}import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';function a9_0x5b97(_0x4b4010,_0x14666f){_0x4b4010=_0x4b4010-0x13c;const _0x387b08=a9_0x387b();let _0x5b979a=_0x387b08[_0x4b4010];return _0x5b979a;}import{getMcpServers}from'../config/mcp.js';import*as a9_0x2dea7e from'../ui/output.js';const clients=new Map();async function connectStdioServer(_0x23a4f9,_0x214edc){const _0x507ab2=a9_0x5b97;try{const _0x279525={...process[_0x507ab2(0x140)],..._0x214edc[_0x507ab2(0x140)]};Object[_0x507ab2(0x15c)](_0x279525)[_0x507ab2(0x150)](_0x46f693=>_0x279525[_0x46f693]===undefined&&delete _0x279525[_0x46f693]);const _0x137da7=new StdioClientTransport({'command':_0x214edc[_0x507ab2(0x148)],'args':_0x214edc['args'],'env':_0x279525,'stderr':_0x507ab2(0x15d)}),_0x17c6bb=new Client({'name':_0x507ab2(0x15b),'version':_0x507ab2(0x13e)},{'capabilities':{}});return await _0x17c6bb[_0x507ab2(0x14b)](_0x137da7),_0x17c6bb;}catch(_0x261f89){return a9_0x2dea7e['error']('Failed\x20to\x20connect\x20to\x20stdio\x20MCP\x20server\x20\x27'+_0x23a4f9+_0x507ab2(0x145)+_0x261f89),null;}}async function connectHttpServer(_0xf7e478,_0x266542){const _0x27ee46=a9_0x5b97;try{const _0x39661c=new StreamableHTTPClientTransport(new URL(_0x266542)),_0xaee033=new Client({'name':_0x27ee46(0x15b),'version':_0x27ee46(0x13e)},{'capabilities':{}});return await _0xaee033[_0x27ee46(0x14b)](_0x39661c),_0xaee033;}catch(_0x4051cb){return a9_0x2dea7e['error'](_0x27ee46(0x153)+_0xf7e478+_0x27ee46(0x145)+_0x4051cb),null;}}export async function connectToMcpServers(){const _0x7f919e=a9_0x5b97,_0x235a6a=getMcpServers(),_0xa83984=Object[_0x7f919e(0x15c)](_0x235a6a);if(_0xa83984[_0x7f919e(0x159)]===0x0)return;a9_0x2dea7e[_0x7f919e(0x157)](_0x7f919e(0x14d));for(const _0x3dee7a of _0xa83984){if(clients[_0x7f919e(0x14e)](_0x3dee7a))continue;const _0x11e9a8=_0x235a6a[_0x3dee7a];let _0x38793f=null;_0x11e9a8[_0x7f919e(0x142)]===_0x7f919e(0x162)?_0x38793f=await connectHttpServer(_0x3dee7a,_0x11e9a8['url']):_0x38793f=await connectStdioServer(_0x3dee7a,_0x11e9a8),_0x38793f&&clients[_0x7f919e(0x152)](_0x3dee7a,_0x38793f);}}export async function getMcpTools(){const _0x13ef88=a9_0x5b97,_0x37447f=[];for(const [_0x2c00a9,_0x31f32e]of clients[_0x13ef88(0x156)]()){try{const _0x523bd5=await _0x31f32e[_0x13ef88(0x14c)](),_0xbc050d=_0x523bd5[_0x13ef88(0x14f)][_0x13ef88(0x15e)](_0x18d7c2=>({'name':_0x18d7c2['name'],'description':_0x18d7c2['description'],'inputSchema':_0x18d7c2['inputSchema'],'serverName':_0x2c00a9}));_0x37447f[_0x13ef88(0x163)](..._0xbc050d);}catch(_0x45d11e){a9_0x2dea7e[_0x13ef88(0x13c)](_0x13ef88(0x154)+_0x2c00a9+_0x13ef88(0x145)+_0x45d11e);}}return _0x37447f;}export async function executeMcpTool(_0xf323db,_0x57a6d7,_0x39f9ea){const _0x250256=a9_0x5b97,_0x32b732=clients[_0x250256(0x147)](_0xf323db);if(!_0x32b732)throw new Error('MCP\x20server\x20\x27'+_0xf323db+_0x250256(0x14a));try{const _0x3bab86=await _0x32b732[_0x250256(0x160)]({'name':_0x57a6d7,'arguments':_0x39f9ea});return _0x3bab86;}catch(_0x552310){throw new Error('MCP\x20tool\x20execution\x20failed:\x20'+_0x552310);}}export function closeMcpClients(){const _0x3fbe7f=a9_0x5b97;for(const _0x3586dd of clients[_0x3fbe7f(0x155)]()){try{_0x3586dd[_0x3fbe7f(0x161)]();}catch(_0x2d8a04){}}clients[_0x3fbe7f(0x144)]();}
1
+ (function(_0x38ae7f,_0x1d952c){const _0x477a4f=a9_0x21c3,_0x5b65db=_0x38ae7f();while(!![]){try{const _0x4aa909=parseInt(_0x477a4f(0xb7))/0x1*(parseInt(_0x477a4f(0xcd))/0x2)+parseInt(_0x477a4f(0xc3))/0x3+-parseInt(_0x477a4f(0xaf))/0x4*(parseInt(_0x477a4f(0xb1))/0x5)+parseInt(_0x477a4f(0xd2))/0x6*(parseInt(_0x477a4f(0xbc))/0x7)+parseInt(_0x477a4f(0xcf))/0x8+-parseInt(_0x477a4f(0xd4))/0x9+-parseInt(_0x477a4f(0xb6))/0xa*(parseInt(_0x477a4f(0xc5))/0xb);if(_0x4aa909===_0x1d952c)break;else _0x5b65db['push'](_0x5b65db['shift']());}catch(_0x59b426){_0x5b65db['push'](_0x5b65db['shift']());}}}(a9_0x264b,0xb358d));import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';function a9_0x264b(){const _0x2427d9=['has','36YDDxhl','1.0.0','4550373MmVdLw','command','woozlit-cli','error','set','tools','4fxfAMD','map','1445055CtBPqY','streamable-http','Failed\x20to\x20list\x20tools\x20for\x20\x27','MCP\x20tool\x20execution\x20failed:\x20','args','1989810VWJqBg','308519JYJtkk','type','info','inputSchema','listTools','116592GDFtxS','callTool','close','keys','pipe','env','get','2004474Mkspip','entries','66QfxWuT','Failed\x20to\x20connect\x20to\x20HTTP\x20MCP\x20server\x20\x27','Connecting\x20to\x20MCP\x20servers...','description','\x27:\x20','\x27\x20not\x20connected','MCP\x20server\x20\x27','connect','6tmyKtK','forEach','8235584iJsfvH','Failed\x20to\x20connect\x20to\x20stdio\x20MCP\x20server\x20\x27'];a9_0x264b=function(){return _0x2427d9;};return a9_0x264b();}import{getMcpServers}from'../config/mcp.js';function a9_0x21c3(_0x516fa1,_0x50fd5d){_0x516fa1=_0x516fa1-0xac;const _0x264bd6=a9_0x264b();let _0x21c348=_0x264bd6[_0x516fa1];return _0x21c348;}import*as a9_0x5222c9 from'../ui/output.js';const clients=new Map();async function connectStdioServer(_0x2c6c1a,_0x30adce){const _0x4be582=a9_0x21c3;try{const _0x52ed70={...process[_0x4be582(0xc1)],..._0x30adce[_0x4be582(0xc1)]};Object[_0x4be582(0xbf)](_0x52ed70)[_0x4be582(0xce)](_0x596537=>_0x52ed70[_0x596537]===undefined&&delete _0x52ed70[_0x596537]);const _0x1f1238=new StdioClientTransport({'command':_0x30adce[_0x4be582(0xd5)],'args':_0x30adce[_0x4be582(0xb5)],'env':_0x52ed70,'stderr':_0x4be582(0xc0)}),_0x52262f=new Client({'name':_0x4be582(0xd6),'version':_0x4be582(0xd3)},{'capabilities':{}});return await _0x52262f[_0x4be582(0xcc)](_0x1f1238),_0x52262f;}catch(_0x18344c){return a9_0x5222c9['error'](_0x4be582(0xd0)+_0x2c6c1a+_0x4be582(0xc9)+_0x18344c),null;}}async function connectHttpServer(_0x4ce978,_0x118d81){const _0x3b67e1=a9_0x21c3;try{const _0x1ff2f2=new StreamableHTTPClientTransport(new URL(_0x118d81)),_0x50106f=new Client({'name':_0x3b67e1(0xd6),'version':'1.0.0'},{'capabilities':{}});return await _0x50106f[_0x3b67e1(0xcc)](_0x1ff2f2),_0x50106f;}catch(_0x1c7e9f){return a9_0x5222c9[_0x3b67e1(0xac)](_0x3b67e1(0xc6)+_0x4ce978+'\x27:\x20'+_0x1c7e9f),null;}}export async function connectToMcpServers(){const _0x5d5e45=a9_0x21c3,_0x5905bc=getMcpServers(),_0x571ddc=Object[_0x5d5e45(0xbf)](_0x5905bc);if(_0x571ddc['length']===0x0)return;a9_0x5222c9[_0x5d5e45(0xb9)](_0x5d5e45(0xc7));for(const _0x2c149f of _0x571ddc){if(clients[_0x5d5e45(0xd1)](_0x2c149f))continue;const _0x1e25ae=_0x5905bc[_0x2c149f];let _0x36a568=null;_0x1e25ae[_0x5d5e45(0xb8)]===_0x5d5e45(0xb2)?_0x36a568=await connectHttpServer(_0x2c149f,_0x1e25ae['url']):_0x36a568=await connectStdioServer(_0x2c149f,_0x1e25ae),_0x36a568&&clients[_0x5d5e45(0xad)](_0x2c149f,_0x36a568);}}export async function getMcpTools(){const _0x5bb3fa=a9_0x21c3,_0x3834dd=[];for(const [_0x3842b5,_0x5d525e]of clients[_0x5bb3fa(0xc4)]()){try{const _0x218921=await _0x5d525e[_0x5bb3fa(0xbb)](),_0x504068=_0x218921[_0x5bb3fa(0xae)][_0x5bb3fa(0xb0)](_0x4bec6d=>({'name':_0x4bec6d['name'],'description':_0x4bec6d[_0x5bb3fa(0xc8)],'inputSchema':_0x4bec6d[_0x5bb3fa(0xba)],'serverName':_0x3842b5}));_0x3834dd['push'](..._0x504068);}catch(_0x292d37){a9_0x5222c9[_0x5bb3fa(0xac)](_0x5bb3fa(0xb3)+_0x3842b5+_0x5bb3fa(0xc9)+_0x292d37);}}return _0x3834dd;}export async function executeMcpTool(_0x3477e7,_0x5c9f51,_0x4f9564){const _0x3818e7=a9_0x21c3,_0x4344b8=clients[_0x3818e7(0xc2)](_0x3477e7);if(!_0x4344b8)throw new Error(_0x3818e7(0xcb)+_0x3477e7+_0x3818e7(0xca));try{const _0x4bd115=await _0x4344b8[_0x3818e7(0xbd)]({'name':_0x5c9f51,'arguments':_0x4f9564});return _0x4bd115;}catch(_0x259f1f){throw new Error(_0x3818e7(0xb4)+_0x259f1f);}}export function closeMcpClients(){const _0x25a69f=a9_0x21c3;for(const _0x31cb6b of clients['values']()){try{_0x31cb6b[_0x25a69f(0xbe)]();}catch(_0x564f09){}}clients['clear']();}
@@ -1 +1 @@
1
- function a10_0x1b6d(_0x1de715,_0x5c8c2a){_0x1de715=_0x1de715-0x75;const _0x32d226=a10_0x32d2();let _0x1b6d0a=_0x32d226[_0x1de715];return _0x1b6d0a;}function a10_0x32d2(){const _0x1ea173=['modify','Deleted:\x20','Restored:\x20','push','message','previousContent','pop','61002OLevad','now','3084304cnPMgo','create','3039255MAPsWj','8319184gjkrmz','No\x20changes\x20to\x20rollback','54yGtXnK','path','5117784bnpmTc','21374MDJIZD','writeFileSync','323465qXIbzg','delete','length','1790scTKoc','Rollback\x20failed:\x20','Unknown\x20change\x20type','14xXXcHa','resolve'];a10_0x32d2=function(){return _0x1ea173;};return a10_0x32d2();}(function(_0x5e6019,_0x501b47){const _0x37ab3=a10_0x1b6d,_0x5e5372=_0x5e6019();while(!![]){try{const _0x31db72=-parseInt(_0x37ab3(0x7e))/0x1*(-parseInt(_0x37ab3(0x76))/0x2)+-parseInt(_0x37ab3(0x8b))/0x3+parseInt(_0x37ab3(0x89))/0x4+-parseInt(_0x37ab3(0x78))/0x5*(parseInt(_0x37ab3(0x8e))/0x6)+-parseInt(_0x37ab3(0x75))/0x7+parseInt(_0x37ab3(0x8c))/0x8+parseInt(_0x37ab3(0x87))/0x9*(parseInt(_0x37ab3(0x7b))/0xa);if(_0x31db72===_0x501b47)break;else _0x5e5372['push'](_0x5e5372['shift']());}catch(_0x44a437){_0x5e5372['push'](_0x5e5372['shift']());}}}(a10_0x32d2,0xcee3c));import*as a10_0x5c8d57 from'fs';import*as a10_0x2ceffb from'path';const changes=[];export function trackFileCreate(_0x16f173){const _0x29bdb3=a10_0x1b6d;changes[_0x29bdb3(0x83)]({'path':a10_0x2ceffb['resolve'](_0x16f173),'type':_0x29bdb3(0x8a),'previousContent':null,'timestamp':Date[_0x29bdb3(0x88)]()});}export function trackFileModify(_0x950413,_0x5057ad){const _0x5e0074=a10_0x1b6d;changes[_0x5e0074(0x83)]({'path':a10_0x2ceffb[_0x5e0074(0x7f)](_0x950413),'type':_0x5e0074(0x80),'previousContent':_0x5057ad,'timestamp':Date[_0x5e0074(0x88)]()});}export function trackFileDelete(_0x304e56,_0xf27b6d){const _0x2096d7=a10_0x1b6d;changes[_0x2096d7(0x83)]({'path':a10_0x2ceffb[_0x2096d7(0x7f)](_0x304e56),'type':_0x2096d7(0x79),'previousContent':_0xf27b6d,'timestamp':Date[_0x2096d7(0x88)]()});}export function getChanges(){return[...changes];}export function rollbackLast(){const _0x465511=a10_0x1b6d;if(changes[_0x465511(0x7a)]===0x0)return{'success':![],'message':_0x465511(0x8d)};const _0x3bf3e=changes[_0x465511(0x86)]();try{switch(_0x3bf3e['type']){case _0x465511(0x8a):a10_0x5c8d57['existsSync'](_0x3bf3e[_0x465511(0x8f)])&&a10_0x5c8d57['unlinkSync'](_0x3bf3e[_0x465511(0x8f)]);return{'success':!![],'message':_0x465511(0x81)+_0x3bf3e['path']};case'modify':_0x3bf3e[_0x465511(0x85)]!==null&&a10_0x5c8d57[_0x465511(0x77)](_0x3bf3e[_0x465511(0x8f)],_0x3bf3e['previousContent']);return{'success':!![],'message':_0x465511(0x82)+_0x3bf3e[_0x465511(0x8f)]};case _0x465511(0x79):_0x3bf3e[_0x465511(0x85)]!==null&&a10_0x5c8d57[_0x465511(0x77)](_0x3bf3e[_0x465511(0x8f)],_0x3bf3e[_0x465511(0x85)]);return{'success':!![],'message':_0x465511(0x82)+_0x3bf3e[_0x465511(0x8f)]};default:return{'success':![],'message':_0x465511(0x7d)};}}catch(_0x33b38b){return{'success':![],'message':_0x465511(0x7c)+_0x33b38b};}}export function rollbackAll(){const _0x3ffc7d=a10_0x1b6d,_0x5eb56f=[];let _0x5b4500=0x0;while(changes[_0x3ffc7d(0x7a)]>0x0){const _0x3b782f=rollbackLast();_0x3b782f['success']&&(_0x5b4500++,_0x5eb56f[_0x3ffc7d(0x83)](_0x3b782f[_0x3ffc7d(0x84)]));}return{'success':_0x5b4500>0x0,'count':_0x5b4500,'messages':_0x5eb56f};}export function clearChanges(){const _0x39feec=a10_0x1b6d;changes[_0x39feec(0x7a)]=0x0;}
1
+ (function(_0x8f506,_0x166263){const _0x3e2bde=a10_0x5121,_0x89acca=_0x8f506();while(!![]){try{const _0x44c4e3=-parseInt(_0x3e2bde(0xd4))/0x1*(-parseInt(_0x3e2bde(0xd5))/0x2)+-parseInt(_0x3e2bde(0xdf))/0x3+parseInt(_0x3e2bde(0xd1))/0x4+parseInt(_0x3e2bde(0xdb))/0x5*(parseInt(_0x3e2bde(0xd2))/0x6)+-parseInt(_0x3e2bde(0xce))/0x7+parseInt(_0x3e2bde(0xdc))/0x8*(parseInt(_0x3e2bde(0xe1))/0x9)+-parseInt(_0x3e2bde(0xe2))/0xa;if(_0x44c4e3===_0x166263)break;else _0x89acca['push'](_0x89acca['shift']());}catch(_0x4860f1){_0x89acca['push'](_0x89acca['shift']());}}}(a10_0x49c6,0xe4d95));import*as a10_0xb89637 from'fs';import*as a10_0x416abe from'path';const changes=[];export function trackFileCreate(_0x69154b){const _0x30b4c3=a10_0x5121;changes[_0x30b4c3(0xe3)]({'path':a10_0x416abe[_0x30b4c3(0xdd)](_0x69154b),'type':_0x30b4c3(0xe7),'previousContent':null,'timestamp':Date['now']()});}function a10_0x49c6(){const _0x4f905d=['819pRyrPA','26007070ZLxqij','push','length','delete','existsSync','create','type','1036917zvNure','writeFileSync','modify','2406576MMDbwn','8144628fzWRcq','previousContent','394bfKPZr','9262rqXbBS','pop','now','unlinkSync','Restored:\x20','path','5iQVnAc','110584tuIvTK','resolve','No\x20changes\x20to\x20rollback','4066158CwLypJ','Deleted:\x20'];a10_0x49c6=function(){return _0x4f905d;};return a10_0x49c6();}export function trackFileModify(_0x3e449b,_0x255787){const _0x508dc8=a10_0x5121;changes[_0x508dc8(0xe3)]({'path':a10_0x416abe[_0x508dc8(0xdd)](_0x3e449b),'type':_0x508dc8(0xd0),'previousContent':_0x255787,'timestamp':Date[_0x508dc8(0xd7)]()});}export function trackFileDelete(_0x4e5faf,_0x4d041d){const _0x30de41=a10_0x5121;changes[_0x30de41(0xe3)]({'path':a10_0x416abe[_0x30de41(0xdd)](_0x4e5faf),'type':'delete','previousContent':_0x4d041d,'timestamp':Date[_0x30de41(0xd7)]()});}export function getChanges(){return[...changes];}function a10_0x5121(_0x35ed38,_0x2753e9){_0x35ed38=_0x35ed38-0xce;const _0x49c6c1=a10_0x49c6();let _0x512174=_0x49c6c1[_0x35ed38];return _0x512174;}export function rollbackLast(){const _0x5d40dd=a10_0x5121;if(changes[_0x5d40dd(0xe4)]===0x0)return{'success':![],'message':_0x5d40dd(0xde)};const _0x4689eb=changes[_0x5d40dd(0xd6)]();try{switch(_0x4689eb[_0x5d40dd(0xe8)]){case'create':a10_0xb89637[_0x5d40dd(0xe6)](_0x4689eb['path'])&&a10_0xb89637[_0x5d40dd(0xd8)](_0x4689eb[_0x5d40dd(0xda)]);return{'success':!![],'message':_0x5d40dd(0xe0)+_0x4689eb[_0x5d40dd(0xda)]};case _0x5d40dd(0xd0):_0x4689eb['previousContent']!==null&&a10_0xb89637[_0x5d40dd(0xcf)](_0x4689eb[_0x5d40dd(0xda)],_0x4689eb[_0x5d40dd(0xd3)]);return{'success':!![],'message':'Restored:\x20'+_0x4689eb[_0x5d40dd(0xda)]};case _0x5d40dd(0xe5):_0x4689eb[_0x5d40dd(0xd3)]!==null&&a10_0xb89637[_0x5d40dd(0xcf)](_0x4689eb[_0x5d40dd(0xda)],_0x4689eb['previousContent']);return{'success':!![],'message':_0x5d40dd(0xd9)+_0x4689eb[_0x5d40dd(0xda)]};default:return{'success':![],'message':'Unknown\x20change\x20type'};}}catch(_0x86b927){return{'success':![],'message':'Rollback\x20failed:\x20'+_0x86b927};}}export function rollbackAll(){const _0x8bc5de=a10_0x5121,_0x22d5e=[];let _0x6cc26e=0x0;while(changes['length']>0x0){const _0x4d00e0=rollbackLast();_0x4d00e0['success']&&(_0x6cc26e++,_0x22d5e[_0x8bc5de(0xe3)](_0x4d00e0['message']));}return{'success':_0x6cc26e>0x0,'count':_0x6cc26e,'messages':_0x22d5e};}export function clearChanges(){changes['length']=0x0;}
@@ -1 +1 @@
1
- (function(_0x3ee06c,_0x3e11ea){const _0x44e9de=a11_0x1c98,_0x2d60f6=_0x3ee06c();while(!![]){try{const _0x2d5d0d=-parseInt(_0x44e9de(0x145))/0x1*(-parseInt(_0x44e9de(0x14a))/0x2)+-parseInt(_0x44e9de(0x14c))/0x3+parseInt(_0x44e9de(0x148))/0x4+parseInt(_0x44e9de(0x146))/0x5+-parseInt(_0x44e9de(0x147))/0x6+parseInt(_0x44e9de(0x14f))/0x7+parseInt(_0x44e9de(0x149))/0x8*(parseInt(_0x44e9de(0x14b))/0x9);if(_0x2d5d0d===_0x3e11ea)break;else _0x2d60f6['push'](_0x2d60f6['shift']());}catch(_0x2509d4){_0x2d60f6['push'](_0x2d60f6['shift']());}}}(a11_0x2c6e,0x93174));import{getRules,addRule as a11_0x4774a9,clearRules as a11_0x320bab}from'../utils/storage.js';function a11_0x1c98(_0x266bc0,_0x52a29d){_0x266bc0=_0x266bc0-0x145;const _0x2c6eea=a11_0x2c6e();let _0x1c98ac=_0x2c6eea[_0x266bc0];return _0x1c98ac;}export function listRules(){return getRules();}export function addRule(_0x33694a){a11_0x4774a9(_0x33694a);}function a11_0x2c6e(){const _0x5e695c=['3990335LWHyPz','5517552bjfCBE','530640BOxOEJ','11584BRuLeh','4GjxbDQ','225QAOIzP','814533BDggyS','\x0a\x0aUser-defined\x20rules:\x0a','join','2556722BWfNsD','230707klhrCe'];a11_0x2c6e=function(){return _0x5e695c;};return a11_0x2c6e();}export function clearRules(){a11_0x320bab();}export function formatRulesForSystem(){const _0x413c01=a11_0x1c98,_0x22ea10=getRules();if(_0x22ea10['length']===0x0)return'';return _0x413c01(0x14d)+_0x22ea10['map']((_0x24a8f3,_0x3754ba)=>_0x3754ba+0x1+'.\x20'+_0x24a8f3)[_0x413c01(0x14e)]('\x0a');}
1
+ (function(_0x33c18c,_0x3f071f){const _0x16ee08=a11_0x2f0d,_0x56f431=_0x33c18c();while(!![]){try{const _0x41a696=-parseInt(_0x16ee08(0x103))/0x1*(parseInt(_0x16ee08(0x102))/0x2)+-parseInt(_0x16ee08(0xfa))/0x3*(parseInt(_0x16ee08(0xfd))/0x4)+parseInt(_0x16ee08(0xfe))/0x5*(-parseInt(_0x16ee08(0xff))/0x6)+-parseInt(_0x16ee08(0xfc))/0x7+-parseInt(_0x16ee08(0x105))/0x8+parseInt(_0x16ee08(0xfb))/0x9+parseInt(_0x16ee08(0x101))/0xa;if(_0x41a696===_0x3f071f)break;else _0x56f431['push'](_0x56f431['shift']());}catch(_0x4ff007){_0x56f431['push'](_0x56f431['shift']());}}}(a11_0x2787,0x604b8));import{getRules,addRule as a11_0x1870cb,clearRules as a11_0x510859}from'../utils/storage.js';export function listRules(){return getRules();}export function addRule(_0x8c0cf3){a11_0x1870cb(_0x8c0cf3);}export function clearRules(){a11_0x510859();}function a11_0x2f0d(_0x430779,_0x53b212){_0x430779=_0x430779-0xfa;const _0x27871e=a11_0x2787();let _0x2f0dfc=_0x27871e[_0x430779];return _0x2f0dfc;}function a11_0x2787(){const _0x16086e=['2083000qHSDDj','map','18GHytto','2438829gjstRO','2646868TntHho','7824xlnOtq','10xsCnxs','1814394BRtJCJ','join','15087210hKrnVj','30inDOLf','8683XsRmkB','length'];a11_0x2787=function(){return _0x16086e;};return a11_0x2787();}export function formatRulesForSystem(){const _0x4f8405=a11_0x2f0d,_0x1dc4f3=getRules();if(_0x1dc4f3[_0x4f8405(0x104)]===0x0)return'';return'\x0a\x0aUser-defined\x20rules:\x0a'+_0x1dc4f3[_0x4f8405(0x106)]((_0x11bb8b,_0x25964e)=>_0x25964e+0x1+'.\x20'+_0x11bb8b)[_0x4f8405(0x100)]('\x0a');}
package/dist/ui/output.js CHANGED
@@ -1 +1 @@
1
- const a12_0x2fa03b=a12_0x4253;(function(_0x18e500,_0x2b7c9a){const _0x662dc9=a12_0x4253,_0x3aa7c8=_0x18e500();while(!![]){try{const _0x4997e1=parseInt(_0x662dc9(0x179))/0x1*(parseInt(_0x662dc9(0x197))/0x2)+-parseInt(_0x662dc9(0x191))/0x3+parseInt(_0x662dc9(0x16a))/0x4*(parseInt(_0x662dc9(0x1ab))/0x5)+parseInt(_0x662dc9(0x18c))/0x6*(parseInt(_0x662dc9(0x199))/0x7)+-parseInt(_0x662dc9(0x16c))/0x8*(parseInt(_0x662dc9(0x1a5))/0x9)+-parseInt(_0x662dc9(0x18b))/0xa+-parseInt(_0x662dc9(0x1b9))/0xb;if(_0x4997e1===_0x2b7c9a)break;else _0x3aa7c8['push'](_0x3aa7c8['shift']());}catch(_0x5b659e){_0x3aa7c8['push'](_0x3aa7c8['shift']());}}}(a12_0x29ef,0x91108));import a12_0x3e794c from'chalk';import a12_0x479699 from'ora';const LOGO='\x0a'+a12_0x3e794c['hex']('#93c5fd')(a12_0x2fa03b(0x1a8))+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x16e))('\x20██████╗\x20\x20██████╗\x20')+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x17a))(a12_0x2fa03b(0x177))+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x190))(a12_0x2fa03b(0x1a6))+'\x0a'+a12_0x3e794c['hex'](a12_0x2fa03b(0x18a))(a12_0x2fa03b(0x1b1))+a12_0x3e794c[a12_0x2fa03b(0x1ba)]('#60a5fa')(a12_0x2fa03b(0x1af))+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x17a))('╚══███╔╝██║\x20\x20\x20\x20\x20')+a12_0x3e794c[a12_0x2fa03b(0x1ba)]('#2563eb')(a12_0x2fa03b(0x172))+'\x0a'+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x18a))(a12_0x2fa03b(0x1b5))+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x16e))('██║\x20\x20\x20██║██║\x20\x20\x20██║')+a12_0x3e794c['hex'](a12_0x2fa03b(0x17a))(a12_0x2fa03b(0x18f))+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x190))('██║\x20\x20\x20██║\x20\x20\x20')+'\x0a'+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x18a))(a12_0x2fa03b(0x16b))+a12_0x3e794c['hex'](a12_0x2fa03b(0x16e))(a12_0x2fa03b(0x17f))+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x17a))(a12_0x2fa03b(0x1b3))+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x190))(a12_0x2fa03b(0x193))+'\x0a'+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x18a))(a12_0x2fa03b(0x17d))+a12_0x3e794c[a12_0x2fa03b(0x1ba)]('#60a5fa')(a12_0x2fa03b(0x171))+a12_0x3e794c[a12_0x2fa03b(0x1ba)]('#3b82f6')(a12_0x2fa03b(0x1b2))+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x190))('██║\x20\x20\x20██║\x20\x20\x20')+'\x0a'+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x18a))(a12_0x2fa03b(0x176))+a12_0x3e794c['hex']('#60a5fa')(a12_0x2fa03b(0x1ae))+a12_0x3e794c[a12_0x2fa03b(0x1ba)]('#3b82f6')(a12_0x2fa03b(0x18e))+a12_0x3e794c[a12_0x2fa03b(0x1ba)](a12_0x2fa03b(0x190))(a12_0x2fa03b(0x182))+'\x0a';export function showLogo(){const _0x6657bf=a12_0x2fa03b;process[_0x6657bf(0x1ac)][_0x6657bf(0x181)](LOGO+'\x0a');}export function createSpinner(_0x1459ee){const _0x67b573=a12_0x2fa03b;return a12_0x479699({'text':_0x1459ee,'color':'blue','spinner':_0x67b573(0x198)});}export function success(_0x3980b4){const _0x2b02e4=a12_0x2fa03b;process[_0x2b02e4(0x1ac)][_0x2b02e4(0x181)](a12_0x3e794c['hex'](_0x2b02e4(0x17a))('\x20\x20')+_0x3980b4+'\x0a');}export function error(_0x5ec232){const _0x437149=a12_0x2fa03b;process[_0x437149(0x1ac)][_0x437149(0x181)](a12_0x3e794c[_0x437149(0x1aa)]('\x20\x20')+_0x5ec232+'\x0a');}export function info(_0xf914c8){const _0x5a20b6=a12_0x2fa03b;process[_0x5a20b6(0x1ac)][_0x5a20b6(0x181)](a12_0x3e794c[_0x5a20b6(0x1ba)](_0x5a20b6(0x16e))('\x20\x20')+_0xf914c8+'\x0a');}export function warn(_0x1b1cae){const _0x29235e=a12_0x2fa03b;process[_0x29235e(0x1ac)][_0x29235e(0x181)](a12_0x3e794c[_0x29235e(0x17e)]('\x20\x20')+_0x1b1cae+'\x0a');}export function dim(_0x456e41){const _0x5da5e5=a12_0x2fa03b;process[_0x5da5e5(0x1ac)][_0x5da5e5(0x181)](a12_0x3e794c['dim']('\x20\x20'+_0x456e41)+'\x0a');}export function header(_0x543b77){const _0x3a259f=a12_0x2fa03b;process[_0x3a259f(0x1ac)][_0x3a259f(0x181)]('\x0a'+a12_0x3e794c[_0x3a259f(0x195)][_0x3a259f(0x1ba)](_0x3a259f(0x17a))(_0x543b77)+'\x0a');}export function divider(){const _0x200a40=a12_0x2fa03b;process[_0x200a40(0x1ac)][_0x200a40(0x181)](a12_0x3e794c[_0x200a40(0x1a4)]('\x20\x20'+'-'[_0x200a40(0x1ad)](0x32))+'\x0a');}function a12_0x29ef(){const _0x2326a7=['command','│\x20\x20','╚██████╔╝╚██████╔╝','██║╚══██╔══╝','substring','\x20\x20Working\x20in:\x20','Unlimited','\x20╚══╝╚══╝\x20','███████╗██╗\x20\x20\x20\x20\x20','pattern','1169207bnKKJv','#3b82f6','blue','pop','╚███╔███╔╝','yellow','██║\x20\x20\x20██║██║\x20\x20\x20██║','white','write','╚═╝\x20\x20\x20╚═╝\x20\x20\x20','Logged\x20in\x20as:\x20','\x20\x20>\x20','\x20/\x20','\x20\x20Done\x20in\x20','split','slice','servers','#93c5fd','4389440xLYDoz','6kgbODu','max','╚══════╝╚══════╝','\x20\x20███╔╝\x20██║\x20\x20\x20\x20\x20','#2563eb','1975065ZgIqYd','\x20tools)\x0a','██║\x20\x20\x20██║\x20\x20\x20','min','bold','\x0a\x20\x20','2svHuvp','dots','3040415GxeWXJ','Editing','Searching',':free','Running','length','Listing','map','path','join','toString','dim','99rlohhl','██╗████████╗','toFixed','██╗\x20\x20\x20\x20██╗','replace','red','335aveldA','stdout','repeat','\x20╚═════╝\x20\x20╚═════╝\x20','██╔═══██╗██╔═══██╗','toLocaleString','██║\x20\x20\x20\x20██║','███████╗███████╗','\x20███╔╝\x20\x20██║\x20\x20\x20\x20\x20','forEach','██║\x20█╗\x20██║','\x20\x20\x20','Reading','\x20MCP\x20','3310175QAwLRz','hex','\x0a\x20\x20You:\x20','65188fyWKHY','██║███╗██║','511304vUHzAs','round','#60a5fa'];a12_0x29ef=function(){return _0x2326a7;};return a12_0x29ef();}export function tip(_0x1d3ecb,_0x5c6c36){const _0x200696=a12_0x2fa03b;process[_0x200696(0x1ac)][_0x200696(0x181)](a12_0x3e794c[_0x200696(0x1a4)]('\x20\x20')+a12_0x3e794c[_0x200696(0x180)](_0x1d3ecb)+a12_0x3e794c['dim']('\x20'+_0x5c6c36)+'\x0a');}export function userMessage(_0x286e90){const _0x407dba=a12_0x2fa03b;process[_0x407dba(0x1ac)][_0x407dba(0x181)](a12_0x3e794c['bold'][_0x407dba(0x1ba)]('#60a5fa')(_0x407dba(0x169))+_0x286e90+'\x0a');}export function aiMessage(_0x585a43){const _0x456f07=a12_0x2fa03b;process[_0x456f07(0x1ac)][_0x456f07(0x181)]('\x0a\x20\x20'+_0x585a43);}export function aiMessageEnd(){const _0x30be5a=a12_0x2fa03b;process[_0x30be5a(0x1ac)][_0x30be5a(0x181)]('\x0a');}export function toolCall(_0x47c1c1,_0xb4dcf2){const _0x23ae80=a12_0x2fa03b;process[_0x23ae80(0x1ac)][_0x23ae80(0x181)](a12_0x3e794c[_0x23ae80(0x1a4)]('\x20\x20\x20\x20->\x20')+a12_0x3e794c[_0x23ae80(0x1ba)](_0x23ae80(0x16e))(_0x47c1c1)+a12_0x3e794c['dim'](':\x20'+_0xb4dcf2)+'\x0a');}export function statusBar(_0x4e670d,_0xa3c7e){const _0x298f62=a12_0x2fa03b,_0x47b258=_0x4e670d[_0x298f62(0x187)]('/')[_0x298f62(0x17c)]()?.[_0x298f62(0x1a9)](_0x298f62(0x19c),'')||_0x4e670d,_0x11bedb=a12_0x3e794c[_0x298f62(0x1ba)](_0x298f62(0x17a))(_0x47b258),_0x3044af=a12_0x3e794c[_0x298f62(0x1a4)](_0xa3c7e+'%\x20context\x20left');process[_0x298f62(0x1ac)][_0x298f62(0x181)]('\x20\x20'+_0x11bedb+'\x20\x20'+a12_0x3e794c[_0x298f62(0x1a4)]('|')+'\x20\x20'+_0x3044af+'\x0a');}function a12_0x4253(_0x168d8d,_0x2e00f2){_0x168d8d=_0x168d8d-0x169;const _0x29efb4=a12_0x29ef();let _0x4253d8=_0x29efb4[_0x168d8d];return _0x4253d8;}export function prompt(){const _0x132cd3=a12_0x2fa03b;process[_0x132cd3(0x1ac)]['write'](a12_0x3e794c[_0x132cd3(0x1ba)]('#3b82f6')(_0x132cd3(0x184)));}function lerpColor(_0x40fe1f,_0xfbbfa8,_0x5e50fc){const _0x50128e=a12_0x2fa03b,_0xd967f6=parseInt(_0x40fe1f[_0x50128e(0x1a9)]('#',''),0x10),_0xfd5100=parseInt(_0xfbbfa8['replace']('#',''),0x10),_0x25591f=_0xd967f6>>0x10&0xff,_0x9d2a8b=_0xd967f6>>0x8&0xff,_0xb4aa94=_0xd967f6&0xff,_0x3ce28f=_0xfd5100>>0x10&0xff,_0x90aacb=_0xfd5100>>0x8&0xff,_0x22add5=_0xfd5100&0xff,_0x3ec2c7=Math[_0x50128e(0x16d)](_0x25591f+(_0x3ce28f-_0x25591f)*_0x5e50fc),_0x2908d3=Math[_0x50128e(0x16d)](_0x9d2a8b+(_0x90aacb-_0x9d2a8b)*_0x5e50fc),_0x2a9dba=Math[_0x50128e(0x16d)](_0xb4aa94+(_0x22add5-_0xb4aa94)*_0x5e50fc);return'#'+((0x1<<0x18)+(_0x3ec2c7<<0x10)+(_0x2908d3<<0x8)+_0x2a9dba)[_0x50128e(0x1a3)](0x10)[_0x50128e(0x188)](0x1);}export function gradientText(_0x5507bd,_0x42b6d7,_0x475b43){const _0x3f1f55=a12_0x2fa03b,_0x55b3c9=_0x5507bd[_0x3f1f55(0x187)]('');return _0x55b3c9[_0x3f1f55(0x1a0)]((_0xc41b2b,_0x4abf21)=>{const _0x2e989c=_0x3f1f55,_0x58d19b=_0x4abf21/Math[_0x2e989c(0x18d)](_0x55b3c9[_0x2e989c(0x19e)]-0x1,0x1);return a12_0x3e794c[_0x2e989c(0x1ba)](lerpColor(_0x42b6d7,_0x475b43,_0x58d19b))(_0xc41b2b);})[_0x3f1f55(0x1a2)]('');}export function loggedInBox(_0x32465c){const _0x1d55e9=a12_0x2fa03b,_0x198f77=_0x1d55e9(0x183),_0x837ae9=_0x32465c['trim'](),_0x148c99=_0x198f77[_0x1d55e9(0x19e)]+_0x837ae9[_0x1d55e9(0x19e)]+0x4,_0xa98858=a12_0x3e794c[_0x1d55e9(0x1ba)](_0x1d55e9(0x17a))('─'[_0x1d55e9(0x1ad)](_0x148c99)),_0x48833d=a12_0x3e794c[_0x1d55e9(0x1ba)](_0x1d55e9(0x17a))('╭'+_0xa98858+'╮'),_0x337d71=a12_0x3e794c[_0x1d55e9(0x1ba)](_0x1d55e9(0x17a))('╰'+_0xa98858+'╯'),_0x33ec85=gradientText(_0x837ae9,_0x1d55e9(0x16e),_0x1d55e9(0x190));process[_0x1d55e9(0x1ac)]['write'](_0x1d55e9(0x196)+_0x48833d+'\x0a'),process[_0x1d55e9(0x1ac)]['write']('\x20\x20'+a12_0x3e794c['hex'](_0x1d55e9(0x17a))(_0x1d55e9(0x170))+a12_0x3e794c[_0x1d55e9(0x1a4)](_0x198f77)+_0x33ec85+a12_0x3e794c[_0x1d55e9(0x1ba)](_0x1d55e9(0x17a))('\x20\x20│')+'\x0a'),process[_0x1d55e9(0x1ac)]['write']('\x20\x20'+_0x337d71+'\x0a');}export function actionSpinner(_0x4c88d3){const _0x101fa1=a12_0x2fa03b;return a12_0x479699({'text':a12_0x3e794c[_0x101fa1(0x1ba)](_0x101fa1(0x16e))(_0x4c88d3),'color':_0x101fa1(0x17b),'spinner':'dots'});}export function toolActivity(_0x5b58e1,_0x334eb6){const _0x6ce419=a12_0x2fa03b,_0x2f2728={'create_file':'Creating','read_file':_0x6ce419(0x1b7),'edit_file':_0x6ce419(0x19a),'list_directory':_0x6ce419(0x19f),'search_file':_0x6ce419(0x19b),'find_files':'Finding','search_directory':'Searching','run_command':_0x6ce419(0x19d)},_0x14ef12=_0x2f2728[_0x5b58e1]||_0x5b58e1;let _0x28657b='';if(_0x5b58e1==='run_command'&&_0x334eb6[_0x6ce419(0x16f)])_0x28657b=_0x334eb6[_0x6ce419(0x16f)][_0x6ce419(0x173)](0x0,0x32);else{if(_0x334eb6[_0x6ce419(0x1a1)])_0x28657b=_0x334eb6[_0x6ce419(0x1a1)];else _0x334eb6['pattern']&&(_0x28657b='\x22'+_0x334eb6[_0x6ce419(0x178)]+'\x22');}process[_0x6ce419(0x1ac)][_0x6ce419(0x181)](a12_0x3e794c[_0x6ce419(0x1a4)]('\x20\x20'+_0x14ef12+'\x20'+_0x28657b+'\x0a'));}export function commandOutput(_0xe84a65){const _0x1a63db=a12_0x2fa03b,_0x5f22cc=_0xe84a65['split']('\x0a');_0x5f22cc[_0x1a63db(0x1b4)](_0x38ab6c=>{const _0x3b96f8=_0x1a63db;_0x38ab6c['trim']()&&process[_0x3b96f8(0x1ac)][_0x3b96f8(0x181)](a12_0x3e794c[_0x3b96f8(0x1a4)](_0x3b96f8(0x1b6))+a12_0x3e794c[_0x3b96f8(0x1a4)](_0x38ab6c)+'\x0a');});}export function usageBox(_0x494fdc,_0x1dca44,_0x4d0ca3){const _0x442434=a12_0x2fa03b,_0x399d03=_0x1dca44>0x0?Math[_0x442434(0x194)](Math[_0x442434(0x16d)](_0x494fdc/_0x1dca44*0x64),0x64):0x0,_0xe122ef=0x1e,_0x297cef=Math[_0x442434(0x16d)](_0x399d03/0x64*_0xe122ef),_0x216f26=_0xe122ef-_0x297cef,_0x4a85cf=_0x4d0ca3?a12_0x3e794c[_0x442434(0x1aa)]:_0x399d03>0x50?a12_0x3e794c['yellow']:a12_0x3e794c['green'],_0x45d9ac=_0x4a85cf('█'['repeat'](_0x297cef))+a12_0x3e794c[_0x442434(0x1a4)]('░'[_0x442434(0x1ad)](_0x216f26)),_0xf8555f=_0x1dca44>=0x3b9ac9ff?_0x442434(0x175):_0x1dca44[_0x442434(0x1b0)](),_0x1a319d=_0x494fdc[_0x442434(0x1b0)]()+_0x442434(0x185)+_0xf8555f+'\x20tokens';process['stdout'][_0x442434(0x181)]('\x0a'),process[_0x442434(0x1ac)]['write'](a12_0x3e794c[_0x442434(0x195)]['hex'](_0x442434(0x16e))('\x20\x20Token\x20Usage\x0a')),process[_0x442434(0x1ac)]['write']('\x20\x20'+_0x45d9ac+'\x20'+a12_0x3e794c['dim'](_0x399d03+'%')+'\x0a'),process[_0x442434(0x1ac)]['write'](a12_0x3e794c['dim']('\x20\x20'+_0x1a319d+'\x0a')),_0x4d0ca3&&process[_0x442434(0x1ac)][_0x442434(0x181)](a12_0x3e794c[_0x442434(0x1aa)]('\x20\x20Limit\x20Reached\x0a')),process['stdout'][_0x442434(0x181)]('\x0a');}export function mcpConnected(_0x165207,_0x27a9ba){const _0xf100c0=a12_0x2fa03b,_0x3cee61=_0x165207===0x1?'server':_0xf100c0(0x189);process[_0xf100c0(0x1ac)]['write'](a12_0x3e794c[_0xf100c0(0x1a4)]('\x20\x20'+a12_0x3e794c[_0xf100c0(0x1ba)](_0xf100c0(0x17a))(_0x165207[_0xf100c0(0x1a3)]())+_0xf100c0(0x1b8)+_0x3cee61+'\x20connected\x20('+_0x27a9ba+_0xf100c0(0x192)));}export function elapsedTime(_0x2f2095){const _0xf26f5d=a12_0x2fa03b,_0x2bc7a8=_0x2f2095<0x3c?_0x2f2095[_0xf26f5d(0x1a7)](0x1)+'s':Math['floor'](_0x2f2095/0x3c)+'m\x20'+(_0x2f2095%0x3c)[_0xf26f5d(0x1a7)](0x0)+'s';process[_0xf26f5d(0x1ac)][_0xf26f5d(0x181)](a12_0x3e794c[_0xf26f5d(0x1a4)](_0xf26f5d(0x186)+_0x2bc7a8+'\x0a'));}export function currentDir(_0x371235){const _0x55e306=a12_0x2fa03b;process['stdout']['write'](a12_0x3e794c['dim'](_0x55e306(0x174))+a12_0x3e794c[_0x55e306(0x1ba)](_0x55e306(0x16e))(_0x371235)+'\x0a');}
1
+ const a12_0x4926ab=a12_0x324b;(function(_0x320475,_0x308579){const _0x2c6752=a12_0x324b,_0x35bc13=_0x320475();while(!![]){try{const _0x5b3b40=parseInt(_0x2c6752(0x107))/0x1*(-parseInt(_0x2c6752(0x10e))/0x2)+parseInt(_0x2c6752(0xec))/0x3+parseInt(_0x2c6752(0x12c))/0x4+parseInt(_0x2c6752(0xda))/0x5*(-parseInt(_0x2c6752(0xeb))/0x6)+parseInt(_0x2c6752(0xd9))/0x7+-parseInt(_0x2c6752(0xf3))/0x8+-parseInt(_0x2c6752(0x101))/0x9*(parseInt(_0x2c6752(0xe2))/0xa);if(_0x5b3b40===_0x308579)break;else _0x35bc13['push'](_0x35bc13['shift']());}catch(_0x2e351c){_0x35bc13['push'](_0x35bc13['shift']());}}}(a12_0x5325,0x26685));import a12_0x37f995 from'chalk';import a12_0x12f93e from'ora';const LOGO='\x0a'+a12_0x37f995[a12_0x4926ab(0x11d)](a12_0x4926ab(0xed))(a12_0x4926ab(0xdc))+a12_0x37f995[a12_0x4926ab(0x11d)]('#60a5fa')(a12_0x4926ab(0xdf))+a12_0x37f995[a12_0x4926ab(0x11d)]('#3b82f6')(a12_0x4926ab(0x10c))+a12_0x37f995[a12_0x4926ab(0x11d)](a12_0x4926ab(0xee))(a12_0x4926ab(0xe6))+'\x0a'+a12_0x37f995[a12_0x4926ab(0x11d)](a12_0x4926ab(0xed))('██║\x20\x20\x20\x20██║')+a12_0x37f995[a12_0x4926ab(0x11d)](a12_0x4926ab(0xe1))(a12_0x4926ab(0x11e))+a12_0x37f995[a12_0x4926ab(0x11d)]('#3b82f6')(a12_0x4926ab(0xf0))+a12_0x37f995[a12_0x4926ab(0x11d)]('#2563eb')(a12_0x4926ab(0x119))+'\x0a'+a12_0x37f995[a12_0x4926ab(0x11d)](a12_0x4926ab(0xed))(a12_0x4926ab(0xff))+a12_0x37f995['hex'](a12_0x4926ab(0xe1))(a12_0x4926ab(0x11b))+a12_0x37f995[a12_0x4926ab(0x11d)]('#3b82f6')(a12_0x4926ab(0xf9))+a12_0x37f995[a12_0x4926ab(0x11d)]('#2563eb')(a12_0x4926ab(0xf1))+'\x0a'+a12_0x37f995[a12_0x4926ab(0x11d)](a12_0x4926ab(0xed))(a12_0x4926ab(0x10f))+a12_0x37f995[a12_0x4926ab(0x11d)](a12_0x4926ab(0xe1))(a12_0x4926ab(0x11b))+a12_0x37f995[a12_0x4926ab(0x11d)]('#3b82f6')(a12_0x4926ab(0x114))+a12_0x37f995['hex'](a12_0x4926ab(0xee))(a12_0x4926ab(0xf1))+'\x0a'+a12_0x37f995['hex'](a12_0x4926ab(0xed))(a12_0x4926ab(0x103))+a12_0x37f995[a12_0x4926ab(0x11d)](a12_0x4926ab(0xe1))(a12_0x4926ab(0x110))+a12_0x37f995[a12_0x4926ab(0x11d)](a12_0x4926ab(0xfa))(a12_0x4926ab(0xf8))+a12_0x37f995[a12_0x4926ab(0x11d)]('#2563eb')('██║\x20\x20\x20██║\x20\x20\x20')+'\x0a'+a12_0x37f995[a12_0x4926ab(0x11d)](a12_0x4926ab(0xed))(a12_0x4926ab(0x105))+a12_0x37f995[a12_0x4926ab(0x11d)]('#60a5fa')(a12_0x4926ab(0x127))+a12_0x37f995[a12_0x4926ab(0x11d)](a12_0x4926ab(0xfa))(a12_0x4926ab(0x129))+a12_0x37f995[a12_0x4926ab(0x11d)]('#2563eb')(a12_0x4926ab(0x123))+'\x0a';export function showLogo(){const _0x29553c=a12_0x4926ab;process['stdout'][_0x29553c(0x12a)](LOGO+'\x0a');}function a12_0x324b(_0x33b2bd,_0xa3616f){_0x33b2bd=_0x33b2bd-0xd8;const _0x5325c8=a12_0x5325();let _0x324bc9=_0x5325c8[_0x33b2bd];return _0x324bc9;}export function createSpinner(_0x591206){const _0x491a29=a12_0x4926ab;return a12_0x12f93e({'text':_0x591206,'color':_0x491a29(0x104),'spinner':_0x491a29(0xea)});}export function success(_0x2d38c4){const _0x26bce8=a12_0x4926ab;process['stdout'][_0x26bce8(0x12a)](a12_0x37f995['hex'](_0x26bce8(0xfa))('\x20\x20')+_0x2d38c4+'\x0a');}export function error(_0xa0665e){const _0x18a3b0=a12_0x4926ab;process[_0x18a3b0(0x10d)]['write'](a12_0x37f995[_0x18a3b0(0x124)]('\x20\x20')+_0xa0665e+'\x0a');}export function info(_0x261aa1){const _0x3a651a=a12_0x4926ab;process[_0x3a651a(0x10d)][_0x3a651a(0x12a)](a12_0x37f995['hex'](_0x3a651a(0xe1))('\x20\x20')+_0x261aa1+'\x0a');}export function warn(_0xe64a6c){const _0x1620af=a12_0x4926ab;process[_0x1620af(0x10d)][_0x1620af(0x12a)](a12_0x37f995[_0x1620af(0x122)]('\x20\x20')+_0xe64a6c+'\x0a');}export function dim(_0x3a01a4){const _0x19d3a7=a12_0x4926ab;process[_0x19d3a7(0x10d)][_0x19d3a7(0x12a)](a12_0x37f995[_0x19d3a7(0x11f)]('\x20\x20'+_0x3a01a4)+'\x0a');}export function header(_0x289e7c){const _0x31ef44=a12_0x4926ab;process[_0x31ef44(0x10d)][_0x31ef44(0x12a)]('\x0a'+a12_0x37f995['bold'][_0x31ef44(0x11d)]('#3b82f6')(_0x289e7c)+'\x0a');}export function divider(){const _0x232044=a12_0x4926ab;process[_0x232044(0x10d)][_0x232044(0x12a)](a12_0x37f995[_0x232044(0x11f)]('\x20\x20'+'-'['repeat'](0x32))+'\x0a');}export function tip(_0x50a079,_0x192447){const _0x285477=a12_0x4926ab;process[_0x285477(0x10d)][_0x285477(0x12a)](a12_0x37f995[_0x285477(0x11f)]('\x20\x20')+a12_0x37f995[_0x285477(0x12d)](_0x50a079)+a12_0x37f995['dim']('\x20'+_0x192447)+'\x0a');}export function userMessage(_0x4bee34){const _0x1e70e9=a12_0x4926ab;process[_0x1e70e9(0x10d)][_0x1e70e9(0x12a)](a12_0x37f995[_0x1e70e9(0x10b)][_0x1e70e9(0x11d)](_0x1e70e9(0xe1))(_0x1e70e9(0x108))+_0x4bee34+'\x0a');}export function aiMessage(_0x6f7bc3){const _0x1a9571=a12_0x4926ab;process[_0x1a9571(0x10d)]['write'](_0x1a9571(0x120)+_0x6f7bc3);}export function aiMessageEnd(){const _0x4f5734=a12_0x4926ab;process['stdout'][_0x4f5734(0x12a)]('\x0a');}export function toolCall(_0x1ef382,_0x487e1f){const _0x38e044=a12_0x4926ab;process[_0x38e044(0x10d)][_0x38e044(0x12a)](a12_0x37f995[_0x38e044(0x11f)](_0x38e044(0xe3))+a12_0x37f995[_0x38e044(0x11d)](_0x38e044(0xe1))(_0x1ef382)+a12_0x37f995['dim'](':\x20'+_0x487e1f)+'\x0a');}export function statusBar(_0x16ffcb,_0x2ca418){const _0x1fa291=a12_0x4926ab,_0x5d61fa=_0x16ffcb[_0x1fa291(0x116)]('/')['pop']()?.[_0x1fa291(0xf2)](_0x1fa291(0xfb),'')||_0x16ffcb,_0x51551e=a12_0x37f995['hex']('#3b82f6')(_0x5d61fa),_0x59797e=a12_0x37f995[_0x1fa291(0x11f)](_0x2ca418+_0x1fa291(0x115));process[_0x1fa291(0x10d)]['write']('\x20\x20'+_0x51551e+'\x20\x20'+a12_0x37f995[_0x1fa291(0x11f)]('|')+'\x20\x20'+_0x59797e+'\x0a');}export function prompt(){const _0x2b7a7f=a12_0x4926ab;process[_0x2b7a7f(0x10d)]['write'](a12_0x37f995['hex'](_0x2b7a7f(0xfa))(_0x2b7a7f(0x12b)));}function a12_0x5325(){const _0x791764=['Unlimited','dots','1374fvRAfQ','777105pZDybg','#93c5fd','#2563eb','max','╚══███╔╝██║\x20\x20\x20\x20\x20','██║\x20\x20\x20██║\x20\x20\x20','replace','2122264jBqjWf','repeat','trim','green','│\x20\x20','███████╗███████╗','\x20\x20███╔╝\x20██║\x20\x20\x20\x20\x20','#3b82f6',':free','\x20\x20\x20','\x20\x20│','\x20\x20Limit\x20Reached\x0a','██║\x20█╗\x20██║','Editing','56187XhsYid','Running','╚███╔███╔╝','blue','\x20╚══╝╚══╝\x20','min','2yGAVro','\x0a\x20\x20You:\x20','servers','\x20\x20Working\x20in:\x20','bold','███████╗██╗\x20\x20\x20\x20\x20','stdout','12166UgIuJU','██║███╗██║','╚██████╔╝╚██████╔╝','Searching','toString','\x20\x20Done\x20in\x20','\x20███╔╝\x20\x20██║\x20\x20\x20\x20\x20','%\x20context\x20left','split','run_command','slice','██║╚══██╔══╝','map','██║\x20\x20\x20██║██║\x20\x20\x20██║','substring','hex','██╔═══██╗██╔═══██╗','dim','\x0a\x20\x20','path','yellow','╚═╝\x20\x20\x20╚═╝\x20\x20\x20','red','Listing','\x20/\x20','\x20╚═════╝\x20\x20╚═════╝\x20','round','╚══════╝╚══════╝','write','\x20\x20>\x20','482512wYjVtv','white','Reading','Logged\x20in\x20as:\x20','Finding','766129lbBfIU','505CkYsgq','command','██╗\x20\x20\x20\x20██╗','Creating','length','\x20██████╗\x20\x20██████╗\x20','\x20connected\x20(','#60a5fa','50dBzdut','\x20\x20\x20\x20->\x20','pattern','floor','██╗████████╗','join','server'];a12_0x5325=function(){return _0x791764;};return a12_0x5325();}function lerpColor(_0x3390dc,_0x3dea0e,_0x3d06a1){const _0x56a982=a12_0x4926ab,_0x37ee60=parseInt(_0x3390dc[_0x56a982(0xf2)]('#',''),0x10),_0x47e4d5=parseInt(_0x3dea0e['replace']('#',''),0x10),_0x5b33b4=_0x37ee60>>0x10&0xff,_0xac346d=_0x37ee60>>0x8&0xff,_0x386667=_0x37ee60&0xff,_0x22c05e=_0x47e4d5>>0x10&0xff,_0x3ffab8=_0x47e4d5>>0x8&0xff,_0x137f33=_0x47e4d5&0xff,_0x3395b6=Math[_0x56a982(0x128)](_0x5b33b4+(_0x22c05e-_0x5b33b4)*_0x3d06a1),_0x275c56=Math['round'](_0xac346d+(_0x3ffab8-_0xac346d)*_0x3d06a1),_0x5413e9=Math[_0x56a982(0x128)](_0x386667+(_0x137f33-_0x386667)*_0x3d06a1);return'#'+((0x1<<0x18)+(_0x3395b6<<0x10)+(_0x275c56<<0x8)+_0x5413e9)[_0x56a982(0x112)](0x10)[_0x56a982(0x118)](0x1);}export function gradientText(_0x25b2b2,_0x4a3bd1,_0x4b62b2){const _0x30a118=a12_0x4926ab,_0x2018d4=_0x25b2b2['split']('');return _0x2018d4[_0x30a118(0x11a)]((_0x88248,_0x3345da)=>{const _0x2e0b01=_0x30a118,_0xe92df4=_0x3345da/Math[_0x2e0b01(0xef)](_0x2018d4[_0x2e0b01(0xde)]-0x1,0x1);return a12_0x37f995[_0x2e0b01(0x11d)](lerpColor(_0x4a3bd1,_0x4b62b2,_0xe92df4))(_0x88248);})[_0x30a118(0xe7)]('');}export function loggedInBox(_0x547987){const _0x39d4a2=a12_0x4926ab,_0x29343b=_0x39d4a2(0x12f),_0x40d581=_0x547987[_0x39d4a2(0xf5)](),_0x1158ec=_0x29343b[_0x39d4a2(0xde)]+_0x40d581[_0x39d4a2(0xde)]+0x4,_0x2e07f1=a12_0x37f995[_0x39d4a2(0x11d)]('#3b82f6')('─'['repeat'](_0x1158ec)),_0x414464=a12_0x37f995[_0x39d4a2(0x11d)](_0x39d4a2(0xfa))('╭'+_0x2e07f1+'╮'),_0x305c4f=a12_0x37f995[_0x39d4a2(0x11d)](_0x39d4a2(0xfa))('╰'+_0x2e07f1+'╯'),_0x50d864=gradientText(_0x40d581,_0x39d4a2(0xe1),_0x39d4a2(0xee));process[_0x39d4a2(0x10d)][_0x39d4a2(0x12a)](_0x39d4a2(0x120)+_0x414464+'\x0a'),process[_0x39d4a2(0x10d)][_0x39d4a2(0x12a)]('\x20\x20'+a12_0x37f995[_0x39d4a2(0x11d)]('#3b82f6')(_0x39d4a2(0xf7))+a12_0x37f995[_0x39d4a2(0x11f)](_0x29343b)+_0x50d864+a12_0x37f995['hex']('#3b82f6')(_0x39d4a2(0xfd))+'\x0a'),process[_0x39d4a2(0x10d)][_0x39d4a2(0x12a)]('\x20\x20'+_0x305c4f+'\x0a');}export function actionSpinner(_0x4cbb72){const _0x96e5dc=a12_0x4926ab;return a12_0x12f93e({'text':a12_0x37f995[_0x96e5dc(0x11d)](_0x96e5dc(0xe1))(_0x4cbb72),'color':'blue','spinner':_0x96e5dc(0xea)});}export function toolActivity(_0x31271a,_0x37fbab){const _0x505f36=a12_0x4926ab,_0x162218={'create_file':_0x505f36(0xdd),'read_file':_0x505f36(0x12e),'edit_file':_0x505f36(0x100),'list_directory':_0x505f36(0x125),'search_file':_0x505f36(0x111),'find_files':_0x505f36(0xd8),'search_directory':_0x505f36(0x111),'run_command':_0x505f36(0x102)},_0x4fd8ad=_0x162218[_0x31271a]||_0x31271a;let _0x37273e='';if(_0x31271a===_0x505f36(0x117)&&_0x37fbab[_0x505f36(0xdb)])_0x37273e=_0x37fbab[_0x505f36(0xdb)][_0x505f36(0x11c)](0x0,0x32);else{if(_0x37fbab[_0x505f36(0x121)])_0x37273e=_0x37fbab[_0x505f36(0x121)];else _0x37fbab['pattern']&&(_0x37273e='\x22'+_0x37fbab[_0x505f36(0xe4)]+'\x22');}process[_0x505f36(0x10d)][_0x505f36(0x12a)](a12_0x37f995[_0x505f36(0x11f)]('\x20\x20'+_0x4fd8ad+'\x20'+_0x37273e+'\x0a'));}export function commandOutput(_0x44c9dd){const _0xd9b3c=a12_0x4926ab,_0x2d400e=_0x44c9dd[_0xd9b3c(0x116)]('\x0a');_0x2d400e['forEach'](_0xe9bf09=>{const _0x3f8e9f=_0xd9b3c;_0xe9bf09['trim']()&&process[_0x3f8e9f(0x10d)]['write'](a12_0x37f995[_0x3f8e9f(0x11f)](_0x3f8e9f(0xfc))+a12_0x37f995['dim'](_0xe9bf09)+'\x0a');});}export function usageBox(_0x38bc8d,_0xb0f838,_0x48d141){const _0x1ccc43=a12_0x4926ab,_0x25adc9=_0xb0f838>0x0?Math[_0x1ccc43(0x106)](Math['round'](_0x38bc8d/_0xb0f838*0x64),0x64):0x0,_0x1bd430=0x1e,_0x2301d4=Math[_0x1ccc43(0x128)](_0x25adc9/0x64*_0x1bd430),_0x13891d=_0x1bd430-_0x2301d4,_0x3937bc=_0x48d141?a12_0x37f995[_0x1ccc43(0x124)]:_0x25adc9>0x50?a12_0x37f995['yellow']:a12_0x37f995[_0x1ccc43(0xf6)],_0x23ec63=_0x3937bc('█'[_0x1ccc43(0xf4)](_0x2301d4))+a12_0x37f995[_0x1ccc43(0x11f)]('░'[_0x1ccc43(0xf4)](_0x13891d)),_0x1cebd5=_0xb0f838>=0x3b9ac9ff?_0x1ccc43(0xe9):_0xb0f838['toLocaleString'](),_0x3ef2fb=_0x38bc8d['toLocaleString']()+_0x1ccc43(0x126)+_0x1cebd5+'\x20tokens';process[_0x1ccc43(0x10d)]['write']('\x0a'),process[_0x1ccc43(0x10d)]['write'](a12_0x37f995[_0x1ccc43(0x10b)][_0x1ccc43(0x11d)](_0x1ccc43(0xe1))('\x20\x20Token\x20Usage\x0a')),process['stdout'][_0x1ccc43(0x12a)]('\x20\x20'+_0x23ec63+'\x20'+a12_0x37f995[_0x1ccc43(0x11f)](_0x25adc9+'%')+'\x0a'),process[_0x1ccc43(0x10d)][_0x1ccc43(0x12a)](a12_0x37f995[_0x1ccc43(0x11f)]('\x20\x20'+_0x3ef2fb+'\x0a')),_0x48d141&&process['stdout']['write'](a12_0x37f995[_0x1ccc43(0x124)](_0x1ccc43(0xfe))),process['stdout']['write']('\x0a');}export function mcpConnected(_0x58a3ac,_0x44fe2a){const _0x3ab666=a12_0x4926ab,_0xe8d38a=_0x58a3ac===0x1?_0x3ab666(0xe8):_0x3ab666(0x109);process['stdout'][_0x3ab666(0x12a)](a12_0x37f995[_0x3ab666(0x11f)]('\x20\x20'+a12_0x37f995[_0x3ab666(0x11d)](_0x3ab666(0xfa))(_0x58a3ac[_0x3ab666(0x112)]())+'\x20MCP\x20'+_0xe8d38a+_0x3ab666(0xe0)+_0x44fe2a+'\x20tools)\x0a'));}export function elapsedTime(_0x7f6745){const _0x11b8ab=a12_0x4926ab,_0x4c2d86=_0x7f6745<0x3c?_0x7f6745['toFixed'](0x1)+'s':Math[_0x11b8ab(0xe5)](_0x7f6745/0x3c)+'m\x20'+(_0x7f6745%0x3c)['toFixed'](0x0)+'s';process[_0x11b8ab(0x10d)][_0x11b8ab(0x12a)](a12_0x37f995[_0x11b8ab(0x11f)](_0x11b8ab(0x113)+_0x4c2d86+'\x0a'));}export function currentDir(_0x182e27){const _0x5bb7d8=a12_0x4926ab;process[_0x5bb7d8(0x10d)][_0x5bb7d8(0x12a)](a12_0x37f995[_0x5bb7d8(0x11f)](_0x5bb7d8(0x10a))+a12_0x37f995[_0x5bb7d8(0x11d)]('#60a5fa')(_0x182e27)+'\x0a');}
package/dist/ui/select.js CHANGED
@@ -1 +1 @@
1
- (function(_0xda448f,_0x350fb8){const _0x386094=a13_0x54bf,_0x3d430e=_0xda448f();while(!![]){try{const _0x2f9b44=parseInt(_0x386094(0x1b8))/0x1*(-parseInt(_0x386094(0x1b7))/0x2)+-parseInt(_0x386094(0x1b6))/0x3*(parseInt(_0x386094(0x1af))/0x4)+-parseInt(_0x386094(0x1ae))/0x5+parseInt(_0x386094(0x1b1))/0x6+parseInt(_0x386094(0x1b5))/0x7+-parseInt(_0x386094(0x1b0))/0x8+parseInt(_0x386094(0x1b2))/0x9;if(_0x2f9b44===_0x350fb8)break;else _0x3d430e['push'](_0x3d430e['shift']());}catch(_0x2a8117){_0x3d430e['push'](_0x3d430e['shift']());}}}(a13_0x1601,0xf2203));function a13_0x54bf(_0x49f7d8,_0x24953c){_0x49f7d8=_0x49f7d8-0x1ac;const _0x1601ee=a13_0x1601();let _0x54bf72=_0x1601ee[_0x49f7d8];return _0x54bf72;}function a13_0x1601(){const _0x83b216=['Select\x20AI\x20Model','6048150qOLcrU','44SKoeOC','8081096PuxWfD','2421480SgEZQE','21663648lmfavz','\x20(current)','map','9162867HiwKXL','100431Phulbs','16nuBGLw','67484UnzKHM','description'];a13_0x1601=function(){return _0x83b216;};return a13_0x1601();}import{select}from'@inquirer/prompts';import{MODELS}from'../config/settings.js';import{getSelectedModel,setSelectedModel}from'../utils/storage.js';export async function selectModel(){const _0x2c4f1e=a13_0x54bf,_0x27fcb8=getSelectedModel(),_0x513585=MODELS[_0x2c4f1e(0x1b4)](_0x9e6136=>({'name':''+_0x9e6136['name']+(_0x9e6136['id']===_0x27fcb8?_0x2c4f1e(0x1b3):''),'value':_0x9e6136['id'],'description':_0x9e6136[_0x2c4f1e(0x1ac)]})),_0xbe9723=await select({'message':_0x2c4f1e(0x1ad),'choices':_0x513585,'default':_0x27fcb8});return setSelectedModel(_0xbe9723),_0xbe9723;}export{getSelectedModel,setSelectedModel};
1
+ function a13_0x1a43(_0x4a9100,_0x2cf401){_0x4a9100=_0x4a9100-0xa0;const _0x5ddfb7=a13_0x5ddf();let _0x1a4382=_0x5ddfb7[_0x4a9100];return _0x1a4382;}(function(_0x498eb3,_0x1decc4){const _0x323eed=a13_0x1a43,_0x31b7ad=_0x498eb3();while(!![]){try{const _0x699a7f=-parseInt(_0x323eed(0xa4))/0x1*(parseInt(_0x323eed(0xa7))/0x2)+parseInt(_0x323eed(0xaf))/0x3*(-parseInt(_0x323eed(0xa9))/0x4)+parseInt(_0x323eed(0xae))/0x5*(parseInt(_0x323eed(0xb0))/0x6)+-parseInt(_0x323eed(0xa6))/0x7*(-parseInt(_0x323eed(0xa1))/0x8)+-parseInt(_0x323eed(0xa2))/0x9*(parseInt(_0x323eed(0xa8))/0xa)+parseInt(_0x323eed(0xa5))/0xb+parseInt(_0x323eed(0xab))/0xc*(-parseInt(_0x323eed(0xa0))/0xd);if(_0x699a7f===_0x1decc4)break;else _0x31b7ad['push'](_0x31b7ad['shift']());}catch(_0x1c541a){_0x31b7ad['push'](_0x31b7ad['shift']());}}}(a13_0x5ddf,0x369b6));import{select}from'@inquirer/prompts';import{MODELS}from'../config/settings.js';function a13_0x5ddf(){const _0x51a0a1=['606896ZuOSyZ','19287QdAdbr','Select\x20AI\x20Model','390087OSpDsK','3671877xTNdsE','28mNSTwa','2emhvrI','240sNAwPH','4NvjqSR','\x20(current)','5664UYBXpP','description','map','5QOUjaT','978522GEPakF','2662728VeGSXj','2470SPAThL'];a13_0x5ddf=function(){return _0x51a0a1;};return a13_0x5ddf();}import{getSelectedModel,setSelectedModel}from'../utils/storage.js';export async function selectModel(){const _0x9d9e67=a13_0x1a43,_0x3f7624=getSelectedModel(),_0x23fec5=MODELS[_0x9d9e67(0xad)](_0x34ed21=>({'name':''+_0x34ed21['name']+(_0x34ed21['id']===_0x3f7624?_0x9d9e67(0xaa):''),'value':_0x34ed21['id'],'description':_0x34ed21[_0x9d9e67(0xac)]})),_0x463f25=await select({'message':_0x9d9e67(0xa3),'choices':_0x23fec5,'default':_0x3f7624});return setSelectedModel(_0x463f25),_0x463f25;}export{getSelectedModel,setSelectedModel};
package/dist/utils/api.js CHANGED
@@ -1 +1 @@
1
- (function(_0x293721,_0x4eb4a4){const _0xf74871=a14_0x14e2,_0x3ed525=_0x293721();while(!![]){try{const _0xc2f37e=parseInt(_0xf74871(0x10a))/0x1+-parseInt(_0xf74871(0xf6))/0x2+parseInt(_0xf74871(0x109))/0x3*(parseInt(_0xf74871(0x10c))/0x4)+parseInt(_0xf74871(0xff))/0x5*(parseInt(_0xf74871(0x113))/0x6)+parseInt(_0xf74871(0x11e))/0x7+parseInt(_0xf74871(0x11d))/0x8+-parseInt(_0xf74871(0x108))/0x9*(parseInt(_0xf74871(0x11a))/0xa);if(_0xc2f37e===_0x4eb4a4)break;else _0x3ed525['push'](_0x3ed525['shift']());}catch(_0x244652){_0x3ed525['push'](_0x3ed525['shift']());}}}(a14_0x5505,0x75e52));import{getApiUrl}from'../config/settings.js';import{getToken,getUser}from'./storage.js';import a14_0x20a366 from'crypto';import a14_0x5b0f19 from'fs';import a14_0x356eff from'path';function a14_0x5505(){const _0x33332a=['/api/chat','423oqqeZb','132jMIrkF','224780UfqjoH','final','14524TiMSqP','now','../env.woozlit','arch','createDecipheriv','Bearer\x20','map','4296obqwwf','from','random','env.woozlit','decode','utf8','https://woozlit.com','85090pJMvoS','cli-','3a2_','4268376DMbPSm','3240629SjwASu','No\x20response\x20body','existsSync','join','1.1.0','\x20-\x20','body','toString','hex','API\x20error:\x20','getReader','endsWith','split','1184026TUqHec','fromCharCode','platform','startsWith','substring','/api/auth/verify','sha256','update','aes-256-cbc','655IIoIYo','parse','true','application/json','read','text','trim','cwd'];a14_0x5505=function(){return _0x33332a;};return a14_0x5505();}import{dirname}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getDecryptedSecret(){const _0x4f8da9=a14_0x14e2;try{const _0x233305=[a14_0x356eff['join'](__dirname,'../../env.woozlit'),a14_0x356eff[_0x4f8da9(0xec)](__dirname,'../../../env.woozlit'),a14_0x356eff[_0x4f8da9(0xec)](__dirname,_0x4f8da9(0x10e)),a14_0x356eff['join'](process[_0x4f8da9(0x106)](),_0x4f8da9(0x116))];let _0x353dd2='';for(const _0x5efd69 of _0x233305){if(a14_0x5b0f19[_0x4f8da9(0xeb)](_0x5efd69)){_0x353dd2=a14_0x5b0f19['readFileSync'](_0x5efd69,_0x4f8da9(0x118))['trim']();break;}}if(!_0x353dd2)return reconstructSecret();const [_0x9547b1,_0xcd0b5f]=_0x353dd2['split'](':');if(!_0x9547b1||!_0xcd0b5f)return reconstructSecret();const _0x37162e=Buffer[_0x4f8da9(0x114)](_0x9547b1,_0x4f8da9(0xf1)),_0x4876c1=a14_0x20a366['createHash'](_0x4f8da9(0xfc))[_0x4f8da9(0xfd)]('woozlit_internal_secure_key_2026_v2_!!!')['digest'](),_0x58ae61=a14_0x20a366[_0x4f8da9(0x110)](_0x4f8da9(0xfe),_0x4876c1,_0x37162e);let _0x104a2b=_0x58ae61[_0x4f8da9(0xfd)](_0xcd0b5f,_0x4f8da9(0xf1),_0x4f8da9(0x118));return _0x104a2b+=_0x58ae61[_0x4f8da9(0x10b)](_0x4f8da9(0x118)),_0x104a2b;}catch(_0x3536b3){return reconstructSecret();}}function reconstructSecret(){const _0x21bb82=a14_0x14e2,_0x2e6153=[0x77,0x7a,0x5f,0x63,0x6c,0x69,0x5f,0x70,0x72,0x6f,0x64,0x5f][_0x21bb82(0x112)](_0x599c01=>String[_0x21bb82(0xf7)](_0x599c01))[_0x21bb82(0xec)](''),_0xa39ec8=String['fromCharCode'](0x73,0x33,0x63,0x72,0x33,0x74,0x5f,0x78,0x39,0x32,0x5f),_0x158c46=(0x8*0x186a0+0x26610+0x190+0x32+0x6)[_0x21bb82(0xf0)](0x10)+'e5c'+(0x4*0xa+0x3)[_0x21bb82(0xf0)](0x10)+_0x21bb82(0x11c),_0x1a561f=['s','e','c','u','r','e','_','h','a','s','h'][_0x21bb82(0xec)]('');return _0x2e6153+_0xa39ec8+'8f7d6'+_0x158c46[_0x21bb82(0xfa)](0x5)+_0x1a561f;}function a14_0x14e2(_0x3b8b22,_0x235502){_0x3b8b22=_0x3b8b22-0xeb;const _0x5505e2=a14_0x5505();let _0x14e225=_0x5505e2[_0x3b8b22];return _0x14e225;}export async function sendChatMessage(_0x2642b5,_0x495f74,_0x1726e7){const _0x5118b1=a14_0x14e2,_0x18a7d1=getToken(),_0x18f9ed=getApiUrl(),{userId:_0x42e6a8}=getUser();if(!_0x18a7d1||!_0x42e6a8)throw new Error('Not\x20authenticated.\x20Please\x20run\x20\x27woozlit\x20login\x27\x20first.');const _0x4d0a5e=_0x5118b1(0x11b)+Date[_0x5118b1(0x10d)]()+'-'+Math[_0x5118b1(0x115)]()[_0x5118b1(0xf0)](0x24)[_0x5118b1(0xfa)](0x2,0x9),_0x47f0dc=process[_0x5118b1(0xf8)]+'-'+process[_0x5118b1(0x10f)]+'-'+process['version'],_0x1b5f65=getDecryptedSecret(),_0x1ab2d8=await fetch(_0x18f9ed+_0x5118b1(0x107),{'method':'POST','headers':{'Content-Type':_0x5118b1(0x102),'X-Woozlit-CLI':_0x5118b1(0x101),'X-Woozlit-CLI-Version':_0x5118b1(0xed),'X-Request-ID':_0x4d0a5e,'X-Device-Fingerprint':_0x47f0dc,'Authorization':'Bearer\x20'+_0x18a7d1,'X-Woozlit-Token':_0x5118b1(0x111)+_0x18a7d1,'Origin':_0x5118b1(0x119),'X-Woozlit-App-Secret':_0x1b5f65},'body':JSON['stringify']({'model':_0x2642b5,'messages':_0x495f74,'stream':!![],'userId':_0x42e6a8})});if(!_0x1ab2d8['ok']){const _0x58eccd=await _0x1ab2d8[_0x5118b1(0x104)]();throw new Error(_0x5118b1(0xf2)+_0x1ab2d8['status']+_0x5118b1(0xee)+_0x58eccd);}if(!_0x1ab2d8[_0x5118b1(0xef)])throw new Error(_0x5118b1(0x11f));const _0x5265ea=_0x1ab2d8[_0x5118b1(0xef)][_0x5118b1(0xf3)](),_0x2f4d1=new TextDecoder();let _0x439fe6='';const _0x533c55=[];while(!![]){const {done:_0x17ecd5,value:_0x282965}=await _0x5265ea[_0x5118b1(0x103)]();if(_0x17ecd5)break;const _0x40c4a3=_0x2f4d1[_0x5118b1(0x117)](_0x282965,{'stream':!![]});if(_0x40c4a3['includes']('0:')){const _0x50eb07=_0x40c4a3[_0x5118b1(0xf5)]('\x0a');for(const _0x5b6115 of _0x50eb07){if(_0x5b6115['startsWith']('0:')){const _0x420c66=_0x5b6115['slice'](0x2)[_0x5118b1(0x105)]();if(_0x420c66[_0x5118b1(0xf9)]('\x22')&&_0x420c66[_0x5118b1(0xf4)]('\x22'))try{const _0x3f2566=JSON[_0x5118b1(0x100)](_0x420c66);_0x439fe6+=_0x3f2566;if(_0x1726e7)_0x1726e7(_0x3f2566);}catch{}}}}else{_0x439fe6+=_0x40c4a3;if(_0x1726e7)_0x1726e7(_0x40c4a3);}}return{'content':_0x439fe6,'toolCalls':_0x533c55};}export async function checkAuth(){const _0x543774=a14_0x14e2,_0x5e917d=getToken();if(!_0x5e917d)return![];try{const _0x3e27e5=getApiUrl(),_0x100a74=await fetch(_0x3e27e5+_0x543774(0xfb),{'headers':{'Authorization':_0x543774(0x111)+_0x5e917d}});return _0x100a74['ok'];}catch{return![];}}export async function getUserUsage(){const _0x19607d=getToken();if(!_0x19607d)return null;try{const _0x1b7df9=getApiUrl(),_0x854fc7=await fetch(_0x1b7df9+'/api/user/usage',{'headers':{'Authorization':'Bearer\x20'+_0x19607d}});if(!_0x854fc7['ok'])return null;return await _0x854fc7['json']();}catch(_0x1dd274){return null;}}
1
+ (function(_0xd6fc1d,_0x597b54){const _0xbdef3f=a14_0x3da3,_0x2af804=_0xd6fc1d();while(!![]){try{const _0x36cde8=-parseInt(_0xbdef3f(0xe1))/0x1+-parseInt(_0xbdef3f(0xea))/0x2*(parseInt(_0xbdef3f(0xce))/0x3)+-parseInt(_0xbdef3f(0xef))/0x4+parseInt(_0xbdef3f(0xed))/0x5*(-parseInt(_0xbdef3f(0xdb))/0x6)+parseInt(_0xbdef3f(0xf3))/0x7+-parseInt(_0xbdef3f(0xd4))/0x8+parseInt(_0xbdef3f(0xc6))/0x9*(parseInt(_0xbdef3f(0xd5))/0xa);if(_0x36cde8===_0x597b54)break;else _0x2af804['push'](_0x2af804['shift']());}catch(_0x5070d7){_0x2af804['push'](_0x2af804['shift']());}}}(a14_0x3e4b,0x28b18));import{getApiUrl}from'../config/settings.js';import{getToken,getUser}from'./storage.js';import a14_0x5367cf from'crypto';import a14_0x101555 from'fs';import a14_0x22642e from'path';import{dirname}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getDecryptedSecret(){const _0x14cc6f=a14_0x3da3;try{const _0x23e13e=[a14_0x22642e[_0x14cc6f(0xcd)](__dirname,_0x14cc6f(0xd6)),a14_0x22642e['join'](__dirname,'../../../env.woozlit'),a14_0x22642e[_0x14cc6f(0xcd)](__dirname,_0x14cc6f(0xca)),a14_0x22642e[_0x14cc6f(0xcd)](process[_0x14cc6f(0xf4)](),_0x14cc6f(0xd2))];let _0x5457a4='';for(const _0xf23422 of _0x23e13e){if(a14_0x101555[_0x14cc6f(0xc7)](_0xf23422)){_0x5457a4=a14_0x101555[_0x14cc6f(0xde)](_0xf23422,_0x14cc6f(0xc9))['trim']();break;}}if(!_0x5457a4)return reconstructSecret();const [_0x9b2cb7,_0x4180eb]=_0x5457a4[_0x14cc6f(0xe2)](':');if(!_0x9b2cb7||!_0x4180eb)return reconstructSecret();const _0x317095=Buffer[_0x14cc6f(0xc8)](_0x9b2cb7,_0x14cc6f(0xcb)),_0x598369=a14_0x5367cf['createHash'](_0x14cc6f(0xcf))[_0x14cc6f(0xe6)]('woozlit_internal_secure_key_2026_v2_!!!')['digest'](),_0x169525=a14_0x5367cf[_0x14cc6f(0xf9)](_0x14cc6f(0xd8),_0x598369,_0x317095);let _0x20e72b=_0x169525[_0x14cc6f(0xe6)](_0x4180eb,'hex','utf8');return _0x20e72b+=_0x169525[_0x14cc6f(0xd9)](_0x14cc6f(0xc9)),_0x20e72b;}catch(_0x488c80){return reconstructSecret();}}function reconstructSecret(){const _0x33bb30=a14_0x3da3,_0x2238f6=[0x77,0x7a,0x5f,0x63,0x6c,0x69,0x5f,0x70,0x72,0x6f,0x64,0x5f][_0x33bb30(0xcc)](_0x5a0397=>String['fromCharCode'](_0x5a0397))[_0x33bb30(0xcd)](''),_0x16cf07=String[_0x33bb30(0xe9)](0x73,0x33,0x63,0x72,0x33,0x74,0x5f,0x78,0x39,0x32,0x5f),_0x66ff3c=(0x8*0x186a0+0x26610+0x190+0x32+0x6)[_0x33bb30(0xe3)](0x10)+_0x33bb30(0xf8)+(0x4*0xa+0x3)[_0x33bb30(0xe3)](0x10)+_0x33bb30(0xf0),_0x4e0382=['s','e','c','u','r','e','_','h','a','s','h']['join']('');return _0x2238f6+_0x16cf07+_0x33bb30(0xc1)+_0x66ff3c[_0x33bb30(0xdf)](0x5)+_0x4e0382;}export async function sendChatMessage(_0xdf0883,_0x506152,_0x2580a0){const _0x479604=a14_0x3da3,_0xb44b53=getToken(),_0x428f1d=getApiUrl(),{userId:_0x2591f4}=getUser();if(!_0xb44b53||!_0x2591f4)throw new Error(_0x479604(0xf7));const _0x1641be=_0x479604(0xe7)+Date['now']()+'-'+Math[_0x479604(0xd3)]()['toString'](0x24)['substring'](0x2,0x9),_0x448689=process[_0x479604(0xdc)]+'-'+process[_0x479604(0xc2)]+'-'+process[_0x479604(0xf1)],_0x1ba61b=getDecryptedSecret(),_0x5dd4c5=await fetch(_0x428f1d+_0x479604(0xda),{'method':_0x479604(0xf6),'headers':{'Content-Type':'application/json','X-Woozlit-CLI':_0x479604(0xc4),'X-Woozlit-CLI-Version':'1.1.0','X-Request-ID':_0x1641be,'X-Device-Fingerprint':_0x448689,'Authorization':_0x479604(0xc3)+_0xb44b53,'X-Woozlit-Token':'Bearer\x20'+_0xb44b53,'Origin':_0x479604(0xc5),'X-Woozlit-App-Secret':_0x1ba61b},'body':JSON['stringify']({'model':_0xdf0883,'messages':_0x506152,'stream':!![],'userId':_0x2591f4})});if(!_0x5dd4c5['ok']){const _0x3d0f15=await _0x5dd4c5['text']();throw new Error(_0x479604(0xd0)+_0x5dd4c5[_0x479604(0xe5)]+_0x479604(0xec)+_0x3d0f15);}if(!_0x5dd4c5[_0x479604(0xe8)])throw new Error(_0x479604(0xeb));const _0x41fe0d=_0x5dd4c5[_0x479604(0xe8)]['getReader'](),_0x28a3ee=new TextDecoder();let _0x3211ee='';const _0xbcbdb9=[];while(!![]){const {done:_0x3f1ce4,value:_0x343b7b}=await _0x41fe0d[_0x479604(0xd7)]();if(_0x3f1ce4)break;const _0x5c7e61=_0x28a3ee[_0x479604(0xdd)](_0x343b7b,{'stream':!![]});if(_0x5c7e61['includes']('0:')){const _0x15ebec=_0x5c7e61[_0x479604(0xe2)]('\x0a');for(const _0x21101a of _0x15ebec){if(_0x21101a[_0x479604(0xee)]('0:')){const _0x3673b5=_0x21101a[_0x479604(0xd1)](0x2)[_0x479604(0xf2)]();if(_0x3673b5[_0x479604(0xee)]('\x22')&&_0x3673b5['endsWith']('\x22'))try{const _0x33654b=JSON[_0x479604(0xe4)](_0x3673b5);_0x3211ee+=_0x33654b;if(_0x2580a0)_0x2580a0(_0x33654b);}catch{}}}}else{_0x3211ee+=_0x5c7e61;if(_0x2580a0)_0x2580a0(_0x5c7e61);}}return{'content':_0x3211ee,'toolCalls':_0xbcbdb9};}export async function checkAuth(){const _0x1258b7=a14_0x3da3,_0xcfb6f=getToken();if(!_0xcfb6f)return![];try{const _0xb29fe8=getApiUrl(),_0x15725d=await fetch(_0xb29fe8+'/api/auth/verify',{'headers':{'Authorization':_0x1258b7(0xc3)+_0xcfb6f}});return _0x15725d['ok'];}catch{return![];}}function a14_0x3e4b(){const _0x510d6c=['map','join','3osotsT','sha256','API\x20error:\x20','slice','env.woozlit','random','2491264atnPRO','12670rqEeVa','../../env.woozlit','read','aes-256-cbc','final','/api/chat','20274PMGgKY','platform','decode','readFileSync','substring','json','53487vpxaEp','split','toString','parse','status','update','cli-','body','fromCharCode','203932ynmtGq','No\x20response\x20body','\x20-\x20','410yPpXMT','startsWith','73216frbsRL','3a2_','version','trim','631183eYZcvg','cwd','/api/user/usage','POST','Not\x20authenticated.\x20Please\x20run\x20\x27woozlit\x20login\x27\x20first.','e5c','createDecipheriv','8f7d6','arch','Bearer\x20','true','https://woozlit.com','5958CEbNqf','existsSync','from','utf8','../env.woozlit','hex'];a14_0x3e4b=function(){return _0x510d6c;};return a14_0x3e4b();}function a14_0x3da3(_0x2bc70e,_0x19ef19){_0x2bc70e=_0x2bc70e-0xc1;const _0x3e4b13=a14_0x3e4b();let _0x3da3ef=_0x3e4b13[_0x2bc70e];return _0x3da3ef;}export async function getUserUsage(){const _0x453294=a14_0x3da3,_0x5a08b9=getToken();if(!_0x5a08b9)return null;try{const _0x3d2c96=getApiUrl(),_0x5a06cd=await fetch(_0x3d2c96+_0x453294(0xf5),{'headers':{'Authorization':'Bearer\x20'+_0x5a08b9}});if(!_0x5a06cd['ok'])return null;return await _0x5a06cd[_0x453294(0xe0)]();}catch(_0x4394b7){return null;}}
@@ -1 +1 @@
1
- const a15_0x48aa9e=a15_0x23b0;function a15_0x4d8c(){const _0x171418=['map','now','get','6365688ndigLg','14417440iqohGo','length','woozlit-cli-history','set','entries','lastCleanup','654477jlmlka','1449112MfpoyA','1317CIGIAU','message','8QlgRXq','6rPzLAh','timestamp','push','3459897dpRdOl','3704nXaxGd','3375430jeYnSf'];a15_0x4d8c=function(){return _0x171418;};return a15_0x4d8c();}(function(_0x5e25fe,_0xe57a83){const _0x39946b=a15_0x23b0,_0x508f86=_0x5e25fe();while(!![]){try{const _0x556a64=-parseInt(_0x39946b(0x15e))/0x1+-parseInt(_0x39946b(0x167))/0x2*(parseInt(_0x39946b(0x160))/0x3)+parseInt(_0x39946b(0x15f))/0x4+parseInt(_0x39946b(0x168))/0x5+parseInt(_0x39946b(0x163))/0x6*(-parseInt(_0x39946b(0x157))/0x7)+-parseInt(_0x39946b(0x162))/0x8*(-parseInt(_0x39946b(0x166))/0x9)+parseInt(_0x39946b(0x158))/0xa;if(_0x556a64===_0xe57a83)break;else _0x508f86['push'](_0x508f86['shift']());}catch(_0x119749){_0x508f86['push'](_0x508f86['shift']());}}}(a15_0x4d8c,0x76cfc));function a15_0x23b0(_0x31f503,_0x4a2a37){_0x31f503=_0x31f503-0x156;const _0x4d8c3c=a15_0x4d8c();let _0x23b057=_0x4d8c3c[_0x31f503];return _0x23b057;}import a15_0x35b85f from'conf';const WEEK_MS=0x7*0x18*0x3c*0x3c*0x3e8,config=new a15_0x35b85f({'projectName':a15_0x48aa9e(0x15a),'defaults':{'entries':[],'lastCleanup':Date[a15_0x48aa9e(0x16a)]()}});function cleanup(){const _0x206e63=a15_0x48aa9e,_0x585021=Date[_0x206e63(0x16a)](),_0x101a13=config[_0x206e63(0x156)](_0x206e63(0x15d));if(_0x585021-_0x101a13<0x18*0x3c*0x3c*0x3e8)return;const _0x30d842=config[_0x206e63(0x156)](_0x206e63(0x15c)),_0x1661f0=_0x30d842['filter'](_0x59a558=>_0x585021-_0x59a558[_0x206e63(0x164)]<WEEK_MS);config[_0x206e63(0x15b)](_0x206e63(0x15c),_0x1661f0),config[_0x206e63(0x15b)](_0x206e63(0x15d),_0x585021);}export function addToHistory(_0x592b21){const _0x4eb48d=a15_0x48aa9e;cleanup();const _0x455eef=config[_0x4eb48d(0x156)](_0x4eb48d(0x15c));_0x455eef[_0x4eb48d(0x165)]({'message':_0x592b21,'timestamp':Date[_0x4eb48d(0x16a)]()});if(_0x455eef[_0x4eb48d(0x159)]>0x64)_0x455eef['shift']();config['set'](_0x4eb48d(0x15c),_0x455eef);}export function getHistory(){const _0x259e61=a15_0x48aa9e;return cleanup(),config[_0x259e61(0x156)]('entries')[_0x259e61(0x169)](_0x2da2d9=>_0x2da2d9[_0x259e61(0x161)]);}export function clearHistory(){const _0x3bc514=a15_0x48aa9e;config['set'](_0x3bc514(0x15c),[]);}
1
+ const a15_0x588a1e=a15_0x15ea;function a15_0x1ad9(){const _0x451272=['5FAfUTK','timestamp','3350697EQroWD','2156296CtlaaZ','get','1647250hSVcbg','woozlit-cli-history','map','set','4YNPuuC','length','lastCleanup','shift','filter','now','2844750elBCIu','entries','577186EgLhrD','1572330fPndwe','message','15482322KPKFmO'];a15_0x1ad9=function(){return _0x451272;};return a15_0x1ad9();}function a15_0x15ea(_0x4257ee,_0x1ad679){_0x4257ee=_0x4257ee-0x109;const _0x1ad939=a15_0x1ad9();let _0x15eaa0=_0x1ad939[_0x4257ee];return _0x15eaa0;}(function(_0xe5916b,_0x28c845){const _0x231e0f=a15_0x15ea,_0x4fbae6=_0xe5916b();while(!![]){try{const _0x4a508d=parseInt(_0x231e0f(0x111))/0x1+parseInt(_0x231e0f(0x11a))/0x2+parseInt(_0x231e0f(0x112))/0x3*(parseInt(_0x231e0f(0x109))/0x4)+parseInt(_0x231e0f(0x115))/0x5*(-parseInt(_0x231e0f(0x10f))/0x6)+parseInt(_0x231e0f(0x117))/0x7+parseInt(_0x231e0f(0x118))/0x8+-parseInt(_0x231e0f(0x114))/0x9;if(_0x4a508d===_0x28c845)break;else _0x4fbae6['push'](_0x4fbae6['shift']());}catch(_0x4738ee){_0x4fbae6['push'](_0x4fbae6['shift']());}}}(a15_0x1ad9,0x74e1a));import a15_0x5b6d0e from'conf';const WEEK_MS=0x7*0x18*0x3c*0x3c*0x3e8,config=new a15_0x5b6d0e({'projectName':a15_0x588a1e(0x11b),'defaults':{'entries':[],'lastCleanup':Date[a15_0x588a1e(0x10e)]()}});function cleanup(){const _0x11b176=a15_0x588a1e,_0x5f4f83=Date[_0x11b176(0x10e)](),_0x29dbbc=config[_0x11b176(0x119)](_0x11b176(0x10b));if(_0x5f4f83-_0x29dbbc<0x18*0x3c*0x3c*0x3e8)return;const _0x53bd3b=config['get'](_0x11b176(0x110)),_0x499890=_0x53bd3b[_0x11b176(0x10d)](_0x3a3528=>_0x5f4f83-_0x3a3528[_0x11b176(0x116)]<WEEK_MS);config[_0x11b176(0x11d)](_0x11b176(0x110),_0x499890),config[_0x11b176(0x11d)]('lastCleanup',_0x5f4f83);}export function addToHistory(_0x5bd4b5){const _0x386344=a15_0x588a1e;cleanup();const _0x2dcef9=config[_0x386344(0x119)](_0x386344(0x110));_0x2dcef9['push']({'message':_0x5bd4b5,'timestamp':Date[_0x386344(0x10e)]()});if(_0x2dcef9[_0x386344(0x10a)]>0x64)_0x2dcef9[_0x386344(0x10c)]();config['set'](_0x386344(0x110),_0x2dcef9);}export function getHistory(){const _0x457b67=a15_0x588a1e;return cleanup(),config[_0x457b67(0x119)](_0x457b67(0x110))[_0x457b67(0x11c)](_0x2bb26d=>_0x2bb26d[_0x457b67(0x113)]);}export function clearHistory(){const _0x4c8d52=a15_0x588a1e;config[_0x4c8d52(0x11d)](_0x4c8d52(0x110),[]);}
@@ -1 +1 @@
1
- const a16_0x4b92b5=a16_0x3e60;(function(_0x33709f,_0xaec48c){const _0x364630=a16_0x3e60,_0x4b274d=_0x33709f();while(!![]){try{const _0x2ffafc=parseInt(_0x364630(0x196))/0x1*(-parseInt(_0x364630(0x1b0))/0x2)+-parseInt(_0x364630(0x19c))/0x3*(-parseInt(_0x364630(0x17c))/0x4)+parseInt(_0x364630(0x177))/0x5+parseInt(_0x364630(0x1a7))/0x6*(parseInt(_0x364630(0x184))/0x7)+-parseInt(_0x364630(0x1b2))/0x8*(-parseInt(_0x364630(0x18d))/0x9)+-parseInt(_0x364630(0x17f))/0xa+parseInt(_0x364630(0x1a8))/0xb*(parseInt(_0x364630(0x1af))/0xc);if(_0x2ffafc===_0xaec48c)break;else _0x4b274d['push'](_0x4b274d['shift']());}catch(_0x1ce0e7){_0x4b274d['push'](_0x4b274d['shift']());}}}(a16_0x3072,0xe28ec));import{execSync}from'child_process';import a16_0x347cf6 from'path';import a16_0x4e1fca from'fs';function a16_0x3e60(_0x21d733,_0x39b636){_0x21d733=_0x21d733-0x170;const _0x307287=a16_0x3072();let _0x3e60bd=_0x307287[_0x21d733];return _0x3e60bd;}import a16_0x9f2068 from'os';import*as a16_0x2bf41c from'../ui/output.js';import{addMcpServer,addMcpHttpServer}from'../config/mcp.js';function a16_0x3072(){const _0x3aefaf=['existsSync','homedir','1.\x20Download\x20the\x20Chrome\x20Extension:\x20https://github.com/hangwin/mcp-chrome/releases','3232206KtiWZR','Failed\x20to\x20update\x20repo.\x20Try\x20checking\x20it\x20out\x20manually\x20or\x20deleting\x20the\x20folder.','https://github.com/','warn','Next\x20Steps:','pnpm-lock.yaml','header','Try\x20running\x20with\x20sudo\x20or\x20administrative\x20privileges.','yarn','readFileSync','.woozlit','54QQooII','1353LNJkBy','\x20already\x20exists.\x20Updating...','Detected\x20entry\x20point:\x20','scripts','main','Failed\x20to\x20clone\x20repository:\x20','Installing\x20mcp-chrome-bridge\x20globally...','2076zudlki','6AmSgUM','Directory\x20','2368wnlrPu','mkdirSync','3.\x20Click\x20extension\x20icon\x20and\x20\x27Connect\x27','chrome','inherit','pnpm','github.com','yarn\x20install','Installing\x20dependencies...','split','Trying\x20npm\x20as\x20fallback...','string','build/index.js','node','7209960eSrHAy','servers','endsWith','success','Cloning\x20','4pyUESJ','error','parse','3645080vCBnHa','npm\x20install\x20-g\x20mcp-chrome-bridge','bin','git\x20clone\x20','keys','207431SeOTzF','Successfully\x20installed\x20and\x20added\x20\x27','includes','\x27\x20from\x20GitHub!','npm\x20install','index.js','http://127.0.0.1:12306/mcp','package.json','Failed\x20to\x20install/build:\x20','1611UUmIpQ','join','Unknown\x20installation\x20source.\x20Please\x20provide\x20a\x20GitHub\x20URL\x20or\x20\x27mcp-chrome-bridge\x27.','.git','Building\x20project...','dist/index.js','pnpm\x20add\x20-g\x20mcp-chrome-bridge','object','test','522622oKTcnR','Installed\x20mcp-chrome-bridge\x20and\x20added\x20configuration!','info'];a16_0x3072=function(){return _0x3aefaf;};return a16_0x3072();}const SERVERS_DIR=a16_0x347cf6[a16_0x4b92b5(0x18e)](a16_0x9f2068[a16_0x4b92b5(0x19a)](),a16_0x4b92b5(0x1a6),a16_0x4b92b5(0x178));function ensureServersDir(){const _0x19f332=a16_0x4b92b5;!a16_0x4e1fca['existsSync'](SERVERS_DIR)&&a16_0x4e1fca[_0x19f332(0x1b3)](SERVERS_DIR,{'recursive':!![]});}function getRepoName(_0xbe84dd){const _0x9c1d8d=a16_0x4b92b5,_0x4e1328=_0xbe84dd[_0x9c1d8d(0x172)]('/');let _0x1d3824=_0x4e1328[_0x4e1328['length']-0x1];return _0x1d3824['endsWith'](_0x9c1d8d(0x190))&&(_0x1d3824=_0x1d3824['slice'](0x0,-0x4)),_0x1d3824;}async function installFromGithub(_0x2c140e,_0x56c46){const _0x211144=a16_0x4b92b5;ensureServersDir();const _0x242844=_0x56c46||getRepoName(_0x2c140e),_0x210e89=a16_0x347cf6[_0x211144(0x18e)](SERVERS_DIR,_0x242844);a16_0x2bf41c['info'](_0x211144(0x17b)+_0x2c140e+'\x20to\x20'+_0x210e89+'...');if(a16_0x4e1fca[_0x211144(0x199)](_0x210e89)){a16_0x2bf41c[_0x211144(0x19f)](_0x211144(0x1b1)+_0x210e89+_0x211144(0x1a9));try{execSync('git\x20pull',{'cwd':_0x210e89,'stdio':_0x211144(0x1b6)});}catch(_0x35650d){a16_0x2bf41c['error'](_0x211144(0x19d));return;}}else try{execSync(_0x211144(0x182)+_0x2c140e+'\x20'+_0x210e89,{'stdio':_0x211144(0x1b6)});}catch(_0x133594){a16_0x2bf41c[_0x211144(0x17d)](_0x211144(0x1ad)+_0x133594);return;}a16_0x2bf41c[_0x211144(0x198)](_0x211144(0x171));try{const _0x2e734f=a16_0x4e1fca[_0x211144(0x199)](a16_0x347cf6['join'](_0x210e89,_0x211144(0x1a1))),_0x55714e=a16_0x4e1fca[_0x211144(0x199)](a16_0x347cf6[_0x211144(0x18e)](_0x210e89,'yarn.lock')),_0x1c66dd=_0x2e734f?'pnpm\x20install':_0x55714e?_0x211144(0x170):_0x211144(0x188);execSync(_0x1c66dd,{'cwd':_0x210e89,'stdio':_0x211144(0x1b6)});const _0x5e677a=a16_0x347cf6[_0x211144(0x18e)](_0x210e89,_0x211144(0x18b));if(a16_0x4e1fca[_0x211144(0x199)](_0x5e677a)){const _0x34c880=JSON[_0x211144(0x17e)](a16_0x4e1fca['readFileSync'](_0x5e677a,'utf-8'));_0x34c880['scripts']&&_0x34c880[_0x211144(0x1ab)]['build']&&(a16_0x2bf41c[_0x211144(0x198)](_0x211144(0x191)),execSync((_0x2e734f?_0x211144(0x1b7):_0x55714e?_0x211144(0x1a4):'npm')+'\x20run\x20build',{'cwd':_0x210e89,'stdio':_0x211144(0x1b6)}));}}catch(_0x2daaba){a16_0x2bf41c[_0x211144(0x17d)](_0x211144(0x18c)+_0x2daaba);return;}const _0x36a5e5=a16_0x347cf6[_0x211144(0x18e)](_0x210e89,_0x211144(0x18b));let _0x14ed86='';if(a16_0x4e1fca['existsSync'](_0x36a5e5)){const _0x1a2b61=JSON[_0x211144(0x17e)](a16_0x4e1fca[_0x211144(0x1a5)](_0x36a5e5,'utf-8'));if(_0x1a2b61['bin']){if(typeof _0x1a2b61['bin']===_0x211144(0x174))_0x14ed86=a16_0x347cf6[_0x211144(0x18e)](_0x210e89,_0x1a2b61[_0x211144(0x181)]);else{if(typeof _0x1a2b61[_0x211144(0x181)]===_0x211144(0x194)){const _0x44e52d=Object[_0x211144(0x183)](_0x1a2b61[_0x211144(0x181)])[0x0];_0x14ed86=a16_0x347cf6[_0x211144(0x18e)](_0x210e89,_0x1a2b61[_0x211144(0x181)][_0x44e52d]);}}}else _0x1a2b61[_0x211144(0x1ac)]&&(_0x14ed86=a16_0x347cf6[_0x211144(0x18e)](_0x210e89,_0x1a2b61['main']));}if(!_0x14ed86){const _0x19e21e=[_0x211144(0x192),_0x211144(0x175),'src/index.ts',_0x211144(0x189)];for(const _0x54abe0 of _0x19e21e){if(a16_0x4e1fca[_0x211144(0x199)](a16_0x347cf6['join'](_0x210e89,_0x54abe0))){_0x14ed86=a16_0x347cf6[_0x211144(0x18e)](_0x210e89,_0x54abe0);break;}}}if(!_0x14ed86){a16_0x2bf41c[_0x211144(0x17d)]('Could\x20not\x20auto-detect\x20entry\x20point.\x20Please\x20add\x20the\x20server\x20manually\x20using\x20\x27woozlit\x20mcp\x20add\x27.');return;}const _0x16276b=_0x14ed86['endsWith']('.ts')?'tsx':_0x211144(0x176);a16_0x2bf41c[_0x211144(0x198)](_0x211144(0x1aa)+_0x14ed86),addMcpServer(_0x242844,_0x16276b,[_0x14ed86]),a16_0x2bf41c[_0x211144(0x17a)](_0x211144(0x185)+_0x242844+_0x211144(0x187));}async function installMcpChromeBridge(){const _0x4f9c0f=a16_0x4b92b5;a16_0x2bf41c[_0x4f9c0f(0x198)](_0x4f9c0f(0x1ae));try{execSync(_0x4f9c0f(0x193),{'stdio':_0x4f9c0f(0x1b6)});}catch(_0x20b997){a16_0x2bf41c[_0x4f9c0f(0x17d)]('Failed\x20to\x20install\x20mcp-chrome-bridge\x20using\x20pnpm:\x20'+_0x20b997),a16_0x2bf41c[_0x4f9c0f(0x198)](_0x4f9c0f(0x173));try{execSync(_0x4f9c0f(0x180),{'stdio':_0x4f9c0f(0x1b6)});}catch(_0x276a68){a16_0x2bf41c[_0x4f9c0f(0x17d)]('Failed\x20to\x20install\x20mcp-chrome-bridge:\x20'+_0x276a68),a16_0x2bf41c[_0x4f9c0f(0x198)](_0x4f9c0f(0x1a3));return;}}const _0xaef671=_0x4f9c0f(0x18a);addMcpHttpServer('mcp-chrome',_0xaef671),a16_0x2bf41c[_0x4f9c0f(0x17a)](_0x4f9c0f(0x197)),a16_0x2bf41c[_0x4f9c0f(0x1a2)](_0x4f9c0f(0x1a0)),a16_0x2bf41c[_0x4f9c0f(0x198)](_0x4f9c0f(0x19b)),a16_0x2bf41c[_0x4f9c0f(0x198)]('2.\x20Load\x20unpacked\x20extension\x20in\x20Chrome\x20Developer\x20Mode'),a16_0x2bf41c['info'](_0x4f9c0f(0x1b4)),a16_0x2bf41c['info']('4.\x20Make\x20sure\x20\x27mcp-chrome-bridge\x27\x20is\x20running\x20(if\x20not\x20started\x20automatically)');}export async function installMcpServer(_0x5025be,_0x18ee87){const _0x2926c1=a16_0x4b92b5;if(_0x5025be==='mcp-chrome-bridge'||_0x5025be===_0x2926c1(0x1b5))return installMcpChromeBridge();if(_0x5025be[_0x2926c1(0x186)](_0x2926c1(0x1b8))||_0x5025be[_0x2926c1(0x179)]('.git'))return installFromGithub(_0x5025be,_0x18ee87);if(/^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/[_0x2926c1(0x195)](_0x5025be))return installFromGithub(_0x2926c1(0x19e)+_0x5025be+'.git',_0x18ee87);a16_0x2bf41c[_0x2926c1(0x17d)](_0x2926c1(0x18f));}
1
+ const a16_0x8823e3=a16_0xd015;(function(_0x1094a8,_0x5b345d){const _0x2356fc=a16_0xd015,_0x4dcddf=_0x1094a8();while(!![]){try{const _0x51192b=-parseInt(_0x2356fc(0x14d))/0x1*(-parseInt(_0x2356fc(0x13b))/0x2)+-parseInt(_0x2356fc(0x12e))/0x3+-parseInt(_0x2356fc(0x14c))/0x4+parseInt(_0x2356fc(0x141))/0x5*(parseInt(_0x2356fc(0x158))/0x6)+-parseInt(_0x2356fc(0x15c))/0x7+-parseInt(_0x2356fc(0x143))/0x8+parseInt(_0x2356fc(0x12a))/0x9;if(_0x51192b===_0x5b345d)break;else _0x4dcddf['push'](_0x4dcddf['shift']());}catch(_0x19fd85){_0x4dcddf['push'](_0x4dcddf['shift']());}}}(a16_0x19f3,0xab7ff));import{execSync}from'child_process';import a16_0x49ac29 from'path';import a16_0x50ad69 from'fs';import a16_0x192c3c from'os';import*as a16_0x57e794 from'../ui/output.js';import{addMcpServer,addMcpHttpServer}from'../config/mcp.js';const SERVERS_DIR=a16_0x49ac29[a16_0x8823e3(0x12c)](a16_0x192c3c['homedir'](),'.woozlit',a16_0x8823e3(0x15a));function ensureServersDir(){const _0x3ad873=a16_0x8823e3;!a16_0x50ad69['existsSync'](SERVERS_DIR)&&a16_0x50ad69[_0x3ad873(0x12f)](SERVERS_DIR,{'recursive':!![]});}function a16_0x19f3(){const _0x209663=['Installing\x20mcp-chrome-bridge\x20globally...','pnpm','existsSync','github.com','2.\x20Load\x20unpacked\x20extension\x20in\x20Chrome\x20Developer\x20Mode','object','yarn\x20install','\x20already\x20exists.\x20Updating...','.ts','chrome','Failed\x20to\x20install/build:\x20','error','...','yarn.lock','Building\x20project...','10647342ADjRDL','length','join','npm\x20install','649980nIpcIA','mkdirSync','pnpm-lock.yaml','3.\x20Click\x20extension\x20icon\x20and\x20\x27Connect\x27','1.\x20Download\x20the\x20Chrome\x20Extension:\x20https://github.com/hangwin/mcp-chrome/releases','Directory\x20','scripts','string','main','Try\x20running\x20with\x20sudo\x20or\x20administrative\x20privileges.','bin','node','index.js','154372CpapcC','https://github.com/','\x27\x20from\x20GitHub!','inherit','http://127.0.0.1:12306/mcp','npm\x20install\x20-g\x20mcp-chrome-bridge','5zQWuRt','Installed\x20mcp-chrome-bridge\x20and\x20added\x20configuration!','4183128INEciL','tsx','.git','Next\x20Steps:','info','Detected\x20entry\x20point:\x20','keys','split','mcp-chrome-bridge','3518060zRGcrL','5EkVExU','4.\x20Make\x20sure\x20\x27mcp-chrome-bridge\x27\x20is\x20running\x20(if\x20not\x20started\x20automatically)','parse','Failed\x20to\x20clone\x20repository:\x20','src/index.ts','slice','pnpm\x20add\x20-g\x20mcp-chrome-bridge','Successfully\x20installed\x20and\x20added\x20\x27','mcp-chrome','build/index.js','Cloning\x20','5566134IuLLTY','endsWith','servers','\x20to\x20','1225896pQHnZA','includes','package.json','readFileSync','npm','utf-8'];a16_0x19f3=function(){return _0x209663;};return a16_0x19f3();}function getRepoName(_0x2fb2bb){const _0x10e08b=a16_0x8823e3,_0x218289=_0x2fb2bb[_0x10e08b(0x14a)]('/');let _0x237cd4=_0x218289[_0x218289[_0x10e08b(0x12b)]-0x1];return _0x237cd4[_0x10e08b(0x159)](_0x10e08b(0x145))&&(_0x237cd4=_0x237cd4[_0x10e08b(0x152)](0x0,-0x4)),_0x237cd4;}async function installFromGithub(_0x2e5330,_0x231410){const _0x509c2a=a16_0x8823e3;ensureServersDir();const _0x39f968=_0x231410||getRepoName(_0x2e5330),_0x3c26b7=a16_0x49ac29[_0x509c2a(0x12c)](SERVERS_DIR,_0x39f968);a16_0x57e794[_0x509c2a(0x147)](_0x509c2a(0x157)+_0x2e5330+_0x509c2a(0x15b)+_0x3c26b7+_0x509c2a(0x127));if(a16_0x50ad69[_0x509c2a(0x11d)](_0x3c26b7)){a16_0x57e794['warn'](_0x509c2a(0x133)+_0x3c26b7+_0x509c2a(0x122));try{execSync('git\x20pull',{'cwd':_0x3c26b7,'stdio':_0x509c2a(0x13e)});}catch(_0x342478){a16_0x57e794[_0x509c2a(0x126)]('Failed\x20to\x20update\x20repo.\x20Try\x20checking\x20it\x20out\x20manually\x20or\x20deleting\x20the\x20folder.');return;}}else try{execSync('git\x20clone\x20'+_0x2e5330+'\x20'+_0x3c26b7,{'stdio':_0x509c2a(0x13e)});}catch(_0x7e3f8e){a16_0x57e794[_0x509c2a(0x126)](_0x509c2a(0x150)+_0x7e3f8e);return;}a16_0x57e794[_0x509c2a(0x147)]('Installing\x20dependencies...');try{const _0x2c9a6d=a16_0x50ad69[_0x509c2a(0x11d)](a16_0x49ac29[_0x509c2a(0x12c)](_0x3c26b7,_0x509c2a(0x130))),_0x4dfe6c=a16_0x50ad69[_0x509c2a(0x11d)](a16_0x49ac29['join'](_0x3c26b7,_0x509c2a(0x128))),_0x1d619d=_0x2c9a6d?'pnpm\x20install':_0x4dfe6c?_0x509c2a(0x121):_0x509c2a(0x12d);execSync(_0x1d619d,{'cwd':_0x3c26b7,'stdio':_0x509c2a(0x13e)});const _0x7da9b9=a16_0x49ac29['join'](_0x3c26b7,_0x509c2a(0x15e));if(a16_0x50ad69['existsSync'](_0x7da9b9)){const _0x426be7=JSON[_0x509c2a(0x14f)](a16_0x50ad69[_0x509c2a(0x15f)](_0x7da9b9,_0x509c2a(0x161)));_0x426be7[_0x509c2a(0x134)]&&_0x426be7[_0x509c2a(0x134)]['build']&&(a16_0x57e794[_0x509c2a(0x147)](_0x509c2a(0x129)),execSync((_0x2c9a6d?_0x509c2a(0x11c):_0x4dfe6c?'yarn':_0x509c2a(0x160))+'\x20run\x20build',{'cwd':_0x3c26b7,'stdio':_0x509c2a(0x13e)}));}}catch(_0x1ba93d){a16_0x57e794[_0x509c2a(0x126)](_0x509c2a(0x125)+_0x1ba93d);return;}const _0xb49b10=a16_0x49ac29[_0x509c2a(0x12c)](_0x3c26b7,_0x509c2a(0x15e));let _0x1f9cb4='';if(a16_0x50ad69['existsSync'](_0xb49b10)){const _0x2b8004=JSON['parse'](a16_0x50ad69[_0x509c2a(0x15f)](_0xb49b10,_0x509c2a(0x161)));if(_0x2b8004[_0x509c2a(0x138)]){if(typeof _0x2b8004[_0x509c2a(0x138)]===_0x509c2a(0x135))_0x1f9cb4=a16_0x49ac29['join'](_0x3c26b7,_0x2b8004[_0x509c2a(0x138)]);else{if(typeof _0x2b8004['bin']===_0x509c2a(0x120)){const _0x46d59f=Object[_0x509c2a(0x149)](_0x2b8004[_0x509c2a(0x138)])[0x0];_0x1f9cb4=a16_0x49ac29['join'](_0x3c26b7,_0x2b8004[_0x509c2a(0x138)][_0x46d59f]);}}}else _0x2b8004['main']&&(_0x1f9cb4=a16_0x49ac29['join'](_0x3c26b7,_0x2b8004[_0x509c2a(0x136)]));}if(!_0x1f9cb4){const _0x337b1a=['dist/index.js',_0x509c2a(0x156),_0x509c2a(0x151),_0x509c2a(0x13a)];for(const _0x20920b of _0x337b1a){if(a16_0x50ad69[_0x509c2a(0x11d)](a16_0x49ac29[_0x509c2a(0x12c)](_0x3c26b7,_0x20920b))){_0x1f9cb4=a16_0x49ac29[_0x509c2a(0x12c)](_0x3c26b7,_0x20920b);break;}}}if(!_0x1f9cb4){a16_0x57e794[_0x509c2a(0x126)]('Could\x20not\x20auto-detect\x20entry\x20point.\x20Please\x20add\x20the\x20server\x20manually\x20using\x20\x27woozlit\x20mcp\x20add\x27.');return;}const _0x2ae311=_0x1f9cb4[_0x509c2a(0x159)](_0x509c2a(0x123))?_0x509c2a(0x144):_0x509c2a(0x139);a16_0x57e794[_0x509c2a(0x147)](_0x509c2a(0x148)+_0x1f9cb4),addMcpServer(_0x39f968,_0x2ae311,[_0x1f9cb4]),a16_0x57e794['success'](_0x509c2a(0x154)+_0x39f968+_0x509c2a(0x13d));}function a16_0xd015(_0x2d50fe,_0x958a2e){_0x2d50fe=_0x2d50fe-0x11b;const _0x19f38a=a16_0x19f3();let _0xd0156b=_0x19f38a[_0x2d50fe];return _0xd0156b;}async function installMcpChromeBridge(){const _0x1c59a4=a16_0x8823e3;a16_0x57e794['info'](_0x1c59a4(0x11b));try{execSync(_0x1c59a4(0x153),{'stdio':'inherit'});}catch(_0x1ecbfb){a16_0x57e794['error']('Failed\x20to\x20install\x20mcp-chrome-bridge\x20using\x20pnpm:\x20'+_0x1ecbfb),a16_0x57e794[_0x1c59a4(0x147)]('Trying\x20npm\x20as\x20fallback...');try{execSync(_0x1c59a4(0x140),{'stdio':_0x1c59a4(0x13e)});}catch(_0x3a72af){a16_0x57e794[_0x1c59a4(0x126)]('Failed\x20to\x20install\x20mcp-chrome-bridge:\x20'+_0x3a72af),a16_0x57e794[_0x1c59a4(0x147)](_0x1c59a4(0x137));return;}}const _0x3db44a=_0x1c59a4(0x13f);addMcpHttpServer(_0x1c59a4(0x155),_0x3db44a),a16_0x57e794['success'](_0x1c59a4(0x142)),a16_0x57e794['header'](_0x1c59a4(0x146)),a16_0x57e794[_0x1c59a4(0x147)](_0x1c59a4(0x132)),a16_0x57e794['info'](_0x1c59a4(0x11f)),a16_0x57e794['info'](_0x1c59a4(0x131)),a16_0x57e794[_0x1c59a4(0x147)](_0x1c59a4(0x14e));}export async function installMcpServer(_0x6bfd6c,_0x413c45){const _0x1c6c60=a16_0x8823e3;if(_0x6bfd6c===_0x1c6c60(0x14b)||_0x6bfd6c===_0x1c6c60(0x124))return installMcpChromeBridge();if(_0x6bfd6c[_0x1c6c60(0x15d)](_0x1c6c60(0x11e))||_0x6bfd6c[_0x1c6c60(0x159)](_0x1c6c60(0x145)))return installFromGithub(_0x6bfd6c,_0x413c45);if(/^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/['test'](_0x6bfd6c))return installFromGithub(_0x1c6c60(0x13c)+_0x6bfd6c+_0x1c6c60(0x145),_0x413c45);a16_0x57e794[_0x1c6c60(0x126)]('Unknown\x20installation\x20source.\x20Please\x20provide\x20a\x20GitHub\x20URL\x20or\x20\x27mcp-chrome-bridge\x27.');}
@@ -1 +1 @@
1
- const a17_0x37c79e=a17_0x4354;function a17_0x4354(_0x40a7a,_0x502573){_0x40a7a=_0x40a7a-0x194;const _0x2cfcd5=a17_0x2cfc();let _0x435477=_0x2cfcd5[_0x40a7a];return _0x435477;}(function(_0x4c45d1,_0x4b6ffa){const _0x51aeef=a17_0x4354,_0x5d04e5=_0x4c45d1();while(!![]){try{const _0x5425e6=parseInt(_0x51aeef(0x19f))/0x1*(-parseInt(_0x51aeef(0x1a0))/0x2)+-parseInt(_0x51aeef(0x19d))/0x3*(parseInt(_0x51aeef(0x1a5))/0x4)+-parseInt(_0x51aeef(0x19b))/0x5+parseInt(_0x51aeef(0x19a))/0x6+parseInt(_0x51aeef(0x195))/0x7*(-parseInt(_0x51aeef(0x19c))/0x8)+-parseInt(_0x51aeef(0x19e))/0x9+parseInt(_0x51aeef(0x1a3))/0xa;if(_0x5425e6===_0x4b6ffa)break;else _0x5d04e5['push'](_0x5d04e5['shift']());}catch(_0x395f60){_0x5d04e5['push'](_0x5d04e5['shift']());}}}(a17_0x2cfc,0x5c82f));const platform=process[a17_0x37c79e(0x198)],arch=process[a17_0x37c79e(0x196)];export function getPlatform(){const _0x11ef05=a17_0x37c79e;if(platform==='win32')return _0x11ef05(0x1a7);if(platform===_0x11ef05(0x199))return'macos';return _0x11ef05(0x197);}export function getArch(){return arch;}export function isWindows(){return platform==='win32';}function a17_0x2cfc(){const _0x3850b8=['469944IfBTly','2438937kADmwz','7241PWXizn','4iPxFNC','sudo\x20','Linux','4614200tWFUaV','macos','12GxNIAd','macOS','windows','Windows','7zqshDc','arch','linux','platform','darwin','4439664OTQyjR','43210yhEscX','467008bVgLbV'];a17_0x2cfc=function(){return _0x3850b8;};return a17_0x2cfc();}export function isMac(){return platform==='darwin';}export function isLinux(){return platform==='linux';}export function getShellPrefix(){const _0x278e74=a17_0x37c79e;return isWindows()?'':_0x278e74(0x1a1);}export function getPlatformInfo(){const _0x192443=a17_0x37c79e,_0x1f38f5=getPlatform(),_0x33362c=_0x1f38f5===_0x192443(0x1a7)?_0x192443(0x194):_0x1f38f5===_0x192443(0x1a4)?_0x192443(0x1a6):_0x192443(0x1a2);return _0x33362c+'\x20('+arch+')';}
1
+ const a17_0x2a157e=a17_0x465b;(function(_0xd064ad,_0x47dfa8){const _0x4e6d56=a17_0x465b,_0x4e86c0=_0xd064ad();while(!![]){try{const _0x12abbc=parseInt(_0x4e6d56(0x94))/0x1*(parseInt(_0x4e6d56(0x92))/0x2)+-parseInt(_0x4e6d56(0x8b))/0x3+parseInt(_0x4e6d56(0x8e))/0x4+parseInt(_0x4e6d56(0x96))/0x5*(parseInt(_0x4e6d56(0x8a))/0x6)+-parseInt(_0x4e6d56(0x8c))/0x7*(parseInt(_0x4e6d56(0x84))/0x8)+parseInt(_0x4e6d56(0x89))/0x9*(parseInt(_0x4e6d56(0x93))/0xa)+-parseInt(_0x4e6d56(0x87))/0xb*(parseInt(_0x4e6d56(0x88))/0xc);if(_0x12abbc===_0x47dfa8)break;else _0x4e86c0['push'](_0x4e86c0['shift']());}catch(_0x38566f){_0x4e86c0['push'](_0x4e86c0['shift']());}}}(a17_0x42b6,0xe53b7));function a17_0x465b(_0x2b0106,_0x4d63a2){_0x2b0106=_0x2b0106-0x83;const _0x42b6a4=a17_0x42b6();let _0x465bee=_0x42b6a4[_0x2b0106];return _0x465bee;}const platform=process[a17_0x2a157e(0x95)],arch=process[a17_0x2a157e(0x8f)];export function getPlatform(){const _0x7707b9=a17_0x2a157e;if(platform===_0x7707b9(0x8d))return'windows';if(platform===_0x7707b9(0x83))return'macos';return'linux';}export function getArch(){return arch;}export function isWindows(){const _0x1a3ae2=a17_0x2a157e;return platform===_0x1a3ae2(0x8d);}export function isMac(){const _0x435c9f=a17_0x2a157e;return platform===_0x435c9f(0x83);}export function isLinux(){const _0x3871ee=a17_0x2a157e;return platform===_0x3871ee(0x85);}function a17_0x42b6(){const _0x4f0c1f=['147460ZbzIDo','25444sygryL','platform','2365zugAMf','sudo\x20','darwin','10304nvIORb','linux','Linux','6061AFcNto','35628NINYTu','531DMUUMn','10896aloGwE','4727865vyVCTI','1533SvDJNN','win32','6032124eVAqdj','arch','macos','macOS','94wWinCp'];a17_0x42b6=function(){return _0x4f0c1f;};return a17_0x42b6();}export function getShellPrefix(){const _0x586b7e=a17_0x2a157e;return isWindows()?'':_0x586b7e(0x97);}export function getPlatformInfo(){const _0x424db6=a17_0x2a157e,_0x2a0bb4=getPlatform(),_0x88d123=_0x2a0bb4==='windows'?'Windows':_0x2a0bb4===_0x424db6(0x90)?_0x424db6(0x91):_0x424db6(0x86);return _0x88d123+'\x20('+arch+')';}
@@ -1 +1 @@
1
- function a18_0x5d24(_0x326194,_0x1b1043){_0x326194=_0x326194-0xb9;const _0x4e04e8=a18_0x4e04();let _0x5d2452=_0x4e04e8[_0x326194];return _0x5d2452;}const a18_0x4a21c6=a18_0x5d24;function a18_0x4e04(){const _0x4630f8=['woozlit-cli','38202urmAJB','3KYFdcd','9qywsNM','12lejkUW','set','displayName','222728foRYkN','223410yJRYQS','626720WVCJyu','55SvuQCT','get','204466LNSGED','email','rules','push','selectedModel','1613744qwWWpa','token','userId','85296iUfqxK','182qNoNvB','delete'];a18_0x4e04=function(){return _0x4630f8;};return a18_0x4e04();}(function(_0x4afad2,_0x5ecf52){const _0xf0302b=a18_0x5d24,_0x227aa5=_0x4afad2();while(!![]){try{const _0x45ca83=-parseInt(_0xf0302b(0xb9))/0x1*(parseInt(_0xf0302b(0xc3))/0x2)+-parseInt(_0xf0302b(0xbf))/0x3+-parseInt(_0xf0302b(0xcb))/0x4*(-parseInt(_0xf0302b(0xc1))/0x5)+-parseInt(_0xf0302b(0xcf))/0x6*(-parseInt(_0xf0302b(0xcc))/0x7)+parseInt(_0xf0302b(0xc8))/0x8+-parseInt(_0xf0302b(0xba))/0x9*(parseInt(_0xf0302b(0xc0))/0xa)+-parseInt(_0xf0302b(0xbe))/0xb*(-parseInt(_0xf0302b(0xbb))/0xc);if(_0x45ca83===_0x5ecf52)break;else _0x227aa5['push'](_0x227aa5['shift']());}catch(_0x2f3bc0){_0x227aa5['push'](_0x227aa5['shift']());}}}(a18_0x4e04,0x2b837));import a18_0x510df7 from'conf';const config=new a18_0x510df7({'projectName':a18_0x4a21c6(0xce)});export function getToken(){const _0x405a41=a18_0x4a21c6;return config[_0x405a41(0xc2)]('token');}export function setToken(_0x3654dc){const _0x3af183=a18_0x4a21c6;config[_0x3af183(0xbc)](_0x3af183(0xc9),_0x3654dc);}export function clearToken(){const _0x14d79b=a18_0x4a21c6;config[_0x14d79b(0xcd)](_0x14d79b(0xc9));}export function getUser(){const _0x34e1e9=a18_0x4a21c6;return{'userId':config[_0x34e1e9(0xc2)]('userId'),'email':config[_0x34e1e9(0xc2)](_0x34e1e9(0xc4)),'displayName':config[_0x34e1e9(0xc2)](_0x34e1e9(0xbd))};}export function setUser(_0x173e43,_0x485f30,_0x34aa0f){const _0x17fd1e=a18_0x4a21c6;config[_0x17fd1e(0xbc)](_0x17fd1e(0xca),_0x173e43),config[_0x17fd1e(0xbc)](_0x17fd1e(0xc4),_0x485f30),config[_0x17fd1e(0xbc)](_0x17fd1e(0xbd),_0x34aa0f);}export function clearUser(){const _0x23be54=a18_0x4a21c6;config[_0x23be54(0xcd)](_0x23be54(0xca)),config[_0x23be54(0xcd)]('email'),config['delete']('displayName');}export function getSelectedModel(){const _0x2ffeab=a18_0x4a21c6;return config[_0x2ffeab(0xc2)](_0x2ffeab(0xc7))||'xiaomi/mimo-v2-flash:free';}export function setSelectedModel(_0x47ac4d){const _0x167e72=a18_0x4a21c6;config[_0x167e72(0xbc)](_0x167e72(0xc7),_0x47ac4d);}export function getRules(){const _0x11bdf8=a18_0x4a21c6;return config[_0x11bdf8(0xc2)](_0x11bdf8(0xc5))||[];}export function addRule(_0x2470be){const _0x4e3d2b=a18_0x4a21c6,_0x5aa1a2=getRules();_0x5aa1a2[_0x4e3d2b(0xc6)](_0x2470be),config[_0x4e3d2b(0xbc)](_0x4e3d2b(0xc5),_0x5aa1a2);}export function clearRules(){const _0x5381cf=a18_0x4a21c6;config['set'](_0x5381cf(0xc5),[]);}export function isLoggedIn(){const _0xc569f4=a18_0x4a21c6;return!!config[_0xc569f4(0xc2)]('token')&&!!config[_0xc569f4(0xc2)](_0xc569f4(0xca));}export function logout(){clearToken(),clearUser();}
1
+ (function(_0x768527,_0x5d4b69){const _0x22467f=a18_0x2b77,_0x5217d7=_0x768527();while(!![]){try{const _0x14a67f=-parseInt(_0x22467f(0x8d))/0x1+-parseInt(_0x22467f(0x83))/0x2*(-parseInt(_0x22467f(0x87))/0x3)+-parseInt(_0x22467f(0x85))/0x4+parseInt(_0x22467f(0x8c))/0x5+parseInt(_0x22467f(0x80))/0x6+-parseInt(_0x22467f(0x7e))/0x7+parseInt(_0x22467f(0x7d))/0x8;if(_0x14a67f===_0x5d4b69)break;else _0x5217d7['push'](_0x5217d7['shift']());}catch(_0x22c288){_0x5217d7['push'](_0x5217d7['shift']());}}}(a18_0xa3b7,0x21757));import a18_0x4d2011 from'conf';const config=new a18_0x4d2011({'projectName':'woozlit-cli'});export function getToken(){return config['get']('token');}export function setToken(_0x54e98c){const _0xf58e7=a18_0x2b77;config[_0xf58e7(0x88)]('token',_0x54e98c);}export function clearToken(){const _0x2016f8=a18_0x2b77;config[_0x2016f8(0x81)](_0x2016f8(0x8e));}export function getUser(){const _0x50b6ae=a18_0x2b77;return{'userId':config['get'](_0x50b6ae(0x89)),'email':config[_0x50b6ae(0x7f)](_0x50b6ae(0x86)),'displayName':config[_0x50b6ae(0x7f)](_0x50b6ae(0x8b))};}export function setUser(_0x5f5241,_0x13aab3,_0x37761f){const _0x2cd1f4=a18_0x2b77;config['set'](_0x2cd1f4(0x89),_0x5f5241),config[_0x2cd1f4(0x88)](_0x2cd1f4(0x86),_0x13aab3),config[_0x2cd1f4(0x88)]('displayName',_0x37761f);}function a18_0xa3b7(){const _0xbce2f9=['delete','rules','2fpMaTW','xiaomi/mimo-v2-flash:free','618180BdWSbS','email','377577IpOLtJ','set','userId','selectedModel','displayName','934465yRVoNK','48727dOgaBI','token','434920LhmbBv','1489383YDKBFV','get','1115826BPuvND'];a18_0xa3b7=function(){return _0xbce2f9;};return a18_0xa3b7();}export function clearUser(){const _0xeb98ef=a18_0x2b77;config[_0xeb98ef(0x81)](_0xeb98ef(0x89)),config['delete'](_0xeb98ef(0x86)),config[_0xeb98ef(0x81)](_0xeb98ef(0x8b));}export function getSelectedModel(){const _0x1e7fa9=a18_0x2b77;return config['get'](_0x1e7fa9(0x8a))||_0x1e7fa9(0x84);}export function setSelectedModel(_0x264326){const _0x2535b6=a18_0x2b77;config[_0x2535b6(0x88)](_0x2535b6(0x8a),_0x264326);}export function getRules(){const _0x522437=a18_0x2b77;return config[_0x522437(0x7f)](_0x522437(0x82))||[];}export function addRule(_0x46020b){const _0x38c58d=a18_0x2b77,_0x3220ba=getRules();_0x3220ba['push'](_0x46020b),config[_0x38c58d(0x88)](_0x38c58d(0x82),_0x3220ba);}export function clearRules(){const _0x59cb64=a18_0x2b77;config[_0x59cb64(0x88)](_0x59cb64(0x82),[]);}function a18_0x2b77(_0x3e47ff,_0x239a21){_0x3e47ff=_0x3e47ff-0x7d;const _0xa3b78f=a18_0xa3b7();let _0x2b7730=_0xa3b78f[_0x3e47ff];return _0x2b7730;}export function isLoggedIn(){const _0x5f09be=a18_0x2b77;return!!config[_0x5f09be(0x7f)](_0x5f09be(0x8e))&&!!config[_0x5f09be(0x7f)](_0x5f09be(0x89));}export function logout(){clearToken(),clearUser();}
@@ -1 +1 @@
1
- const a19_0x5953c3=a19_0x2ce3;(function(_0x1993e2,_0x11f762){const _0x287ff5=a19_0x2ce3,_0x120dcb=_0x1993e2();while(!![]){try{const _0x12b7d5=parseInt(_0x287ff5(0xc3))/0x1+parseInt(_0x287ff5(0xbb))/0x2*(parseInt(_0x287ff5(0xb3))/0x3)+-parseInt(_0x287ff5(0xbc))/0x4+parseInt(_0x287ff5(0xc1))/0x5*(parseInt(_0x287ff5(0xb5))/0x6)+-parseInt(_0x287ff5(0xb1))/0x7+parseInt(_0x287ff5(0xb7))/0x8+-parseInt(_0x287ff5(0xbd))/0x9;if(_0x12b7d5===_0x11f762)break;else _0x120dcb['push'](_0x120dcb['shift']());}catch(_0x4c2560){_0x120dcb['push'](_0x120dcb['shift']());}}}(a19_0x1d87,0xb98db));import a19_0x270704 from'chalk';const CURRENT_VERSION=a19_0x5953c3(0xb6);export async function checkForUpdate(){const _0x407a10=a19_0x5953c3;try{const _0x158528=await fetch(_0x407a10(0xb8),{'headers':{'Accept':_0x407a10(0xbe)},'signal':AbortSignal[_0x407a10(0xc8)](0x5dc)});if(!_0x158528['ok'])return;const _0xad1a85=await _0x158528['json'](),_0x48420c=_0xad1a85[_0x407a10(0xb4)]?.[_0x407a10(0xc7)];_0x48420c&&_0x48420c!==CURRENT_VERSION&&(isNewer(_0x48420c,CURRENT_VERSION)&&printUpdateBox(_0x48420c,CURRENT_VERSION));}catch{}}function a19_0x1d87(){const _0x3cb76b=['map','dim','\x20\x20Update\x20Available!\x20','latest','timeout','green','split','4113242cukdeK','repeat','3MprFYd','dist-tags','19632gcftBJ','1.1.0','2983840LJOCiq','https://registry.npmjs.org/woozlit','cyan','\x20to\x20update','2004878JtcVQj','1643096hsxzYq','13154931rdZvZf','application/json','\x20→\x20','yellow','1165kPgjWm','log','1082271YkDSEX'];a19_0x1d87=function(){return _0x3cb76b;};return a19_0x1d87();}function isNewer(_0x2ee84c,_0x5ae684){const _0x1dcbfe=a19_0x5953c3,_0x33740e=_0x2ee84c[_0x1dcbfe(0xb0)]('.')[_0x1dcbfe(0xc4)](Number),_0x292765=_0x5ae684[_0x1dcbfe(0xb0)]('.')[_0x1dcbfe(0xc4)](Number);for(let _0x5060c7=0x0;_0x5060c7<0x3;_0x5060c7++){if(_0x33740e[_0x5060c7]>_0x292765[_0x5060c7])return!![];if(_0x33740e[_0x5060c7]<_0x292765[_0x5060c7])return![];}return![];}function a19_0x2ce3(_0x4c1ac4,_0x14ba28){_0x4c1ac4=_0x4c1ac4-0xaf;const _0x1d87d4=a19_0x1d87();let _0x2ce3f7=_0x1d87d4[_0x4c1ac4];return _0x2ce3f7;}function printUpdateBox(_0x33c0f7,_0xa88289){const _0x4b936b=a19_0x5953c3,_0x30b427=a19_0x270704[_0x4b936b(0xc0)]('─'[_0x4b936b(0xb2)](0x32));console[_0x4b936b(0xc2)](),console[_0x4b936b(0xc2)](_0x30b427),console[_0x4b936b(0xc2)](a19_0x270704[_0x4b936b(0xc0)](_0x4b936b(0xc6)+a19_0x270704[_0x4b936b(0xc5)](_0xa88289)+_0x4b936b(0xbf)+a19_0x270704[_0x4b936b(0xaf)](_0x33c0f7))),console[_0x4b936b(0xc2)](a19_0x270704[_0x4b936b(0xc0)]('\x20\x20Run\x20'+a19_0x270704[_0x4b936b(0xb9)]('npm\x20install\x20-g\x20woozlit')+_0x4b936b(0xba))),console[_0x4b936b(0xc2)](_0x30b427),console[_0x4b936b(0xc2)]();}
1
+ const a19_0x3ea1e0=a19_0x4dcf;function a19_0x5f38(){const _0x4db377=['yellow','21kxFmGV','5333832OvNYzs','json','latest','dist-tags','1.1.1','855NUaDfF','log','repeat','split','3142NupxmI','map','application/json','timeout','dim','66eosbDk','339132zaTLeY','360535bBIrJa','https://registry.npmjs.org/woozlit','100910HlhIYR','\x20to\x20update','12661385HPMUfY','\x20\x20Run\x20','2671275oqOXhO','166QqCyYI'];a19_0x5f38=function(){return _0x4db377;};return a19_0x5f38();}(function(_0x4d492a,_0x1dede6){const _0x116f1a=a19_0x4dcf,_0x4e4ca2=_0x4d492a();while(!![]){try{const _0x2f80a9=parseInt(_0x116f1a(0x104))/0x1*(parseInt(_0x116f1a(0x110))/0x2)+-parseInt(_0x116f1a(0x106))/0x3*(parseInt(_0x116f1a(0x116))/0x4)+-parseInt(_0x116f1a(0x103))/0x5+-parseInt(_0x116f1a(0x115))/0x6*(-parseInt(_0x116f1a(0x117))/0x7)+parseInt(_0x116f1a(0x107))/0x8+-parseInt(_0x116f1a(0x10c))/0x9*(parseInt(_0x116f1a(0x119))/0xa)+parseInt(_0x116f1a(0x101))/0xb;if(_0x2f80a9===_0x1dede6)break;else _0x4e4ca2['push'](_0x4e4ca2['shift']());}catch(_0x5582dc){_0x4e4ca2['push'](_0x4e4ca2['shift']());}}}(a19_0x5f38,0x88684));function a19_0x4dcf(_0x387185,_0x4de374){_0x387185=_0x387185-0x101;const _0x5f38f1=a19_0x5f38();let _0x4dcfc3=_0x5f38f1[_0x387185];return _0x4dcfc3;}import a19_0x1f1ade from'chalk';const CURRENT_VERSION=a19_0x3ea1e0(0x10b);export async function checkForUpdate(){const _0x40ee34=a19_0x3ea1e0;try{const _0x195c05=await fetch(_0x40ee34(0x118),{'headers':{'Accept':_0x40ee34(0x112)},'signal':AbortSignal[_0x40ee34(0x113)](0x5dc)});if(!_0x195c05['ok'])return;const _0x59921d=await _0x195c05[_0x40ee34(0x108)](),_0x1f8e28=_0x59921d[_0x40ee34(0x10a)]?.[_0x40ee34(0x109)];_0x1f8e28&&_0x1f8e28!==CURRENT_VERSION&&(isNewer(_0x1f8e28,CURRENT_VERSION)&&printUpdateBox(_0x1f8e28,CURRENT_VERSION));}catch{}}function isNewer(_0x54872b,_0x2bf697){const _0x5594f8=a19_0x3ea1e0,_0x357e5b=_0x54872b[_0x5594f8(0x10f)]('.')['map'](Number),_0x10a361=_0x2bf697[_0x5594f8(0x10f)]('.')[_0x5594f8(0x111)](Number);for(let _0x3a9fb7=0x0;_0x3a9fb7<0x3;_0x3a9fb7++){if(_0x357e5b[_0x3a9fb7]>_0x10a361[_0x3a9fb7])return!![];if(_0x357e5b[_0x3a9fb7]<_0x10a361[_0x3a9fb7])return![];}return![];}function printUpdateBox(_0x4cc199,_0x31e218){const _0xfe0a2a=a19_0x3ea1e0,_0x5436a4=a19_0x1f1ade[_0xfe0a2a(0x105)]('─'[_0xfe0a2a(0x10e)](0x32));console['log'](),console[_0xfe0a2a(0x10d)](_0x5436a4),console[_0xfe0a2a(0x10d)](a19_0x1f1ade[_0xfe0a2a(0x105)]('\x20\x20Update\x20Available!\x20'+a19_0x1f1ade[_0xfe0a2a(0x114)](_0x31e218)+'\x20→\x20'+a19_0x1f1ade['green'](_0x4cc199))),console[_0xfe0a2a(0x10d)](a19_0x1f1ade[_0xfe0a2a(0x105)](_0xfe0a2a(0x102)+a19_0x1f1ade['cyan']('npm\x20install\x20-g\x20woozlit')+_0xfe0a2a(0x11a))),console[_0xfe0a2a(0x10d)](_0x5436a4),console[_0xfe0a2a(0x10d)]();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "woozlit",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Woozlit AI - Agentic Coding Assistant",
5
5
  "type": "module",
6
6
  "files": [