woozlit 2.0.0 → 2.0.2
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.
- package/README.md +30 -111
- package/dist/auth/login.js +1 -1
- package/dist/browser/index.d.ts +78 -0
- package/dist/browser/index.js +1 -0
- package/dist/browser/server.d.ts +13 -0
- package/dist/browser/server.js +1 -0
- package/dist/browser/tools.d.ts +13 -0
- package/dist/browser/tools.js +1 -0
- package/dist/chat/agent.js +1 -1
- package/dist/config/mcp.js +1 -1
- package/dist/config/settings.js +1 -1
- package/dist/discord/client.d.ts +3 -0
- package/dist/discord/client.js +1 -0
- package/dist/discord/config.d.ts +5 -0
- package/dist/discord/config.js +1 -0
- package/dist/discord/index.d.ts +3 -0
- package/dist/discord/index.js +1 -0
- package/dist/discord/setup.d.ts +1 -0
- package/dist/discord/setup.js +1 -0
- package/dist/email/config.d.ts +31 -0
- package/dist/email/config.js +1 -0
- package/dist/email/index.d.ts +3 -0
- package/dist/email/index.js +1 -0
- package/dist/email/service.d.ts +4 -0
- package/dist/email/service.js +1 -0
- package/dist/email/setup.d.ts +1 -0
- package/dist/email/setup.js +1 -0
- package/dist/github/api.d.ts +25 -0
- package/dist/github/api.js +1 -0
- package/dist/github/auth.d.ts +4 -0
- package/dist/github/auth.js +1 -0
- package/dist/github/auto-setup.d.ts +1 -0
- package/dist/github/auto-setup.js +1 -0
- package/dist/github/index.d.ts +1 -0
- package/dist/github/index.js +1 -0
- package/dist/github/manual-setup.d.ts +1 -0
- package/dist/github/manual-setup.js +1 -0
- package/dist/index.js +1 -1
- package/dist/mcp-servers/computer-use.js +1 -1
- package/dist/services/bot-manager.d.ts +13 -0
- package/dist/services/bot-manager.js +1 -0
- package/dist/services/voice-agent.d.ts +6 -0
- package/dist/services/voice-agent.js +1 -0
- package/dist/telegram/bot.js +1 -1
- package/dist/telegram/config.js +1 -1
- package/dist/telegram/index.d.ts +1 -0
- package/dist/telegram/index.js +1 -1
- package/dist/telegram/reminders.d.ts +11 -0
- package/dist/telegram/reminders.js +1 -0
- package/dist/telegram/setup.d.ts +1 -0
- package/dist/telegram/setup.js +1 -0
- package/dist/tools/command.js +1 -1
- package/dist/tools/file.js +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.js +1 -1
- package/dist/tools/mcp.js +1 -1
- package/dist/tools/rollback.js +1 -1
- package/dist/tools/rules.js +1 -1
- package/dist/twilio/config.d.ts +11 -0
- package/dist/twilio/config.js +1 -0
- package/dist/twilio/index.d.ts +3 -0
- package/dist/twilio/index.js +1 -0
- package/dist/twilio/server.d.ts +5 -0
- package/dist/twilio/server.js +1 -0
- package/dist/twilio/setup.d.ts +1 -0
- package/dist/twilio/setup.js +1 -0
- package/dist/ui/output.d.ts +2 -2
- package/dist/ui/output.js +1 -1
- package/dist/ui/select.js +1 -1
- package/dist/ui/themes.d.ts +12 -0
- package/dist/ui/themes.js +1 -0
- package/dist/utils/api.js +1 -1
- package/dist/utils/history.js +1 -1
- package/dist/utils/mcp-installer.js +1 -1
- package/dist/utils/platform.js +1 -1
- package/dist/utils/storage.d.ts +3 -0
- package/dist/utils/storage.js +1 -1
- package/dist/utils/update-check.js +1 -1
- package/dist/verify_repro.d.ts +4 -0
- package/dist/verify_repro.js +1 -0
- package/package.json +21 -10
package/dist/utils/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x824ee0,_0x56b5d1){const _0x842b85=a42_0x302d,_0x464b67=_0x824ee0();while(!![]){try{const _0x410bb5=-parseInt(_0x842b85(0x19a))/0x1*(parseInt(_0x842b85(0x1a0))/0x2)+-parseInt(_0x842b85(0x185))/0x3*(parseInt(_0x842b85(0x1ad))/0x4)+-parseInt(_0x842b85(0x1a2))/0x5*(-parseInt(_0x842b85(0x1ae))/0x6)+parseInt(_0x842b85(0x1b4))/0x7+-parseInt(_0x842b85(0x1c1))/0x8*(parseInt(_0x842b85(0x1b2))/0x9)+-parseInt(_0x842b85(0x1b5))/0xa+-parseInt(_0x842b85(0x1bd))/0xb*(-parseInt(_0x842b85(0x1b8))/0xc);if(_0x410bb5===_0x56b5d1)break;else _0x464b67['push'](_0x464b67['shift']());}catch(_0x528431){_0x464b67['push'](_0x464b67['shift']());}}}(a42_0x5b6e,0xade21));import{getApiUrl}from'../config/settings.js';import{getToken,getUser}from'./storage.js';function a42_0x302d(_0x59e847,_0x2494c3){_0x59e847=_0x59e847-0x17b;const _0x5b6ea9=a42_0x5b6e();let _0x302dc8=_0x5b6ea9[_0x59e847];return _0x302dc8;}import a42_0x13ab5c from'crypto';import a42_0x1efc15 from'fs';import a42_0x24a2bd from'path';import{dirname}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a42_0x5b6e(){const _0x250f22=['485ftdDMX','\x20-\x20',':chat','now','trim','stringify','update','fromCharCode','endsWith','map','from','4PBwJNm','58746AbHVjS','/api/auth/verify','createDecipheriv','resetIn','1439595LSkkWh','slice','5022066VtluKh','1324820Wirgpx','final','charCodeAt','210804fjDRpB','error','true','aes-256-cbc','No\x20response\x20body','33GrQHhx','length','cli-','status','8TuPxNJ','text','/api/chat','toString','read','\x20seconds.','cwd','getReader','Rate\x20limit\x20exceeded.\x20Try\x20again\x20in\x20','padStart','Not\x20authenticated.\x20Please\x20run\x20\x27woozlit\x20login\x27\x20first.','woozlit:','woozlit_internal_secure_key_2026_v2_!!!','substring','1909410JUvGGM','digest','decode','API\x20error:\x20','readFileSync','R9fC2XWkQeY1B6Z0aM3S7UoI5dVJH8NpbKTL4GmEAr','isRateLimit','json','get','1.1.0','headers','createHash','utf8','sha256','env.woozlit','catch','imul','POST','../../env.woozlit','e5c','join','39367VDklcR','application/json','https://woozlit.com','arch','hex','../../../env.woozlit','4nTbeuw','platform'];a42_0x5b6e=function(){return _0x250f22;};return a42_0x5b6e();}function getDecryptedSecret(){const _0xcaf56e=a42_0x302d;try{const _0x17b903=[a42_0x24a2bd[_0xcaf56e(0x199)](__dirname,_0xcaf56e(0x197)),a42_0x24a2bd[_0xcaf56e(0x199)](__dirname,_0xcaf56e(0x19f)),a42_0x24a2bd['join'](__dirname,'../env.woozlit'),a42_0x24a2bd[_0xcaf56e(0x199)](process[_0xcaf56e(0x17d)](),_0xcaf56e(0x193))];let _0x584177='';for(const _0x16633e of _0x17b903){if(a42_0x1efc15['existsSync'](_0x16633e)){_0x584177=a42_0x1efc15[_0xcaf56e(0x189)](_0x16633e,_0xcaf56e(0x191))[_0xcaf56e(0x1a6)]();break;}}if(!_0x584177)return reconstructSecret();const [_0x3f87db,_0x1b98dc]=_0x584177['split'](':');if(!_0x3f87db||!_0x1b98dc)return reconstructSecret();const _0x3e726a=Buffer[_0xcaf56e(0x1ac)](_0x3f87db,'hex'),_0x5f5de5=a42_0x13ab5c[_0xcaf56e(0x190)](_0xcaf56e(0x192))[_0xcaf56e(0x1a8)](_0xcaf56e(0x183))[_0xcaf56e(0x186)](),_0xfce8a1=a42_0x13ab5c[_0xcaf56e(0x1b0)](_0xcaf56e(0x1bb),_0x5f5de5,_0x3e726a);let _0x4c4859=_0xfce8a1[_0xcaf56e(0x1a8)](_0x1b98dc,_0xcaf56e(0x19e),_0xcaf56e(0x191));return _0x4c4859+=_0xfce8a1[_0xcaf56e(0x1b6)](_0xcaf56e(0x191)),_0x4c4859;}catch(_0x11febc){return reconstructSecret();}}function reconstructSecret(){const _0x1de0ed=a42_0x302d,_0x2492af=[0x77,0x7a,0x5f,0x63,0x6c,0x69,0x5f,0x70,0x72,0x6f,0x64,0x5f][_0x1de0ed(0x1ab)](_0x2bf3d6=>String[_0x1de0ed(0x1a9)](_0x2bf3d6))[_0x1de0ed(0x199)](''),_0x14ea60=String[_0x1de0ed(0x1a9)](0x73,0x33,0x63,0x72,0x33,0x74,0x5f,0x78,0x39,0x32,0x5f),_0x14a1a7=(0x8*0x186a0+0x26610+0x190+0x32+0x6)[_0x1de0ed(0x1c4)](0x10)+_0x1de0ed(0x198)+(0x4*0xa+0x3)[_0x1de0ed(0x1c4)](0x10)+'3a2_',_0x48815a=['s','e','c','u','r','e','_','h','a','s','h'][_0x1de0ed(0x199)]('');return _0x2492af+_0x14ea60+'8f7d6'+_0x14a1a7[_0x1de0ed(0x184)](0x5)+_0x48815a;}function simpleHash(_0x5a3a23){const _0x238f6e=a42_0x302d;let _0x20bf54=0x811c9dc5;for(let _0x188138=0x0;_0x188138<_0x5a3a23[_0x238f6e(0x1be)];_0x188138++){_0x20bf54^=_0x5a3a23[_0x238f6e(0x1b7)](_0x188138),_0x20bf54=Math[_0x238f6e(0x195)](_0x20bf54,0x1000193);}const _0x475c67=(_0x20bf54>>>0x0)[_0x238f6e(0x1c4)](0x10)[_0x238f6e(0x180)](0x8,'0');let _0x331537=0x0;for(let _0x312ea8=0x0;_0x312ea8<_0x5a3a23['length'];_0x312ea8++){_0x331537=(_0x331537<<0x5)-_0x331537+_0x5a3a23[_0x238f6e(0x1b7)](_0x312ea8)|0x0;}const _0x14e8f6=(_0x331537>>>0x0)[_0x238f6e(0x1c4)](0x10)[_0x238f6e(0x180)](0x8,'0');return''+_0x475c67+_0x14e8f6;}function createRequestSignature(){const _0x7975d7=a42_0x302d,_0x537a54=Date['now']()['toString'](),_0x175450=_0x7975d7(0x182)+_0x537a54+_0x7975d7(0x1a4),_0x3ada5b=_0x7975d7(0x18a),_0x677ccd=simpleHash(_0x175450+_0x3ada5b);return{'signature':_0x677ccd,'timestamp':_0x537a54};}export async function sendChatMessage(_0x5e2da4,_0x33a5bb,_0x5a77e5,_0xab989c){const _0x4651bf=a42_0x302d,_0x359f1b=getToken(),_0x2f4350=getApiUrl(),{userId:_0x252713}=getUser();if(!_0x359f1b||!_0x252713)throw new Error(_0x4651bf(0x181));const _0x74b4b=_0x4651bf(0x1bf)+Date[_0x4651bf(0x1a5)]()+'-'+Math['random']()[_0x4651bf(0x1c4)](0x24)['substring'](0x2,0x9),_0x4da11e=process[_0x4651bf(0x1a1)]+'-'+process[_0x4651bf(0x19d)]+'-'+process['version'],_0x1f2414=getDecryptedSecret(),{signature:_0x278c1c,timestamp:_0x56a604}=createRequestSignature(),_0x1d3860=await fetch(_0x2f4350+_0x4651bf(0x1c3),{'method':_0x4651bf(0x196),'headers':{'Content-Type':_0x4651bf(0x19b),'X-Woozlit-CLI':_0x4651bf(0x1ba),'X-Woozlit-CLI-Version':_0x4651bf(0x18e),'X-Request-ID':_0x74b4b,'X-Device-Fingerprint':_0x4da11e,'Authorization':'Bearer\x20'+_0x359f1b,'X-Woozlit-Token':'Bearer\x20'+_0x359f1b,'Origin':_0x4651bf(0x19c),'X-Woozlit-App-Secret':_0x1f2414,'X-Request-Signature':_0x278c1c,'X-Request-Timestamp':_0x56a604},'body':JSON[_0x4651bf(0x1a7)]({'model':_0x5e2da4,'messages':_0x33a5bb,'stream':!![],'userId':_0x252713}),'signal':_0xab989c});if(!_0x1d3860['ok']){if(_0x1d3860['status']===0x1ad){const _0x3dd50f=_0x1d3860[_0x4651bf(0x18f)][_0x4651bf(0x18d)]('X-RateLimit-Reset'),_0x3eaec5=_0x3dd50f?parseInt(_0x3dd50f):0x3c,_0x3a4914=await _0x1d3860['json']()[_0x4651bf(0x194)](()=>({})),_0x122b1b=new Error(_0x3a4914[_0x4651bf(0x1b9)]||_0x4651bf(0x17f)+_0x3eaec5+_0x4651bf(0x17c));_0x122b1b[_0x4651bf(0x1c0)]=0x1ad,_0x122b1b[_0x4651bf(0x1b1)]=_0x3eaec5,_0x122b1b[_0x4651bf(0x18b)]=!![];throw _0x122b1b;}const _0x26cd66=await _0x1d3860[_0x4651bf(0x1c2)]();throw new Error(_0x4651bf(0x188)+_0x1d3860[_0x4651bf(0x1c0)]+_0x4651bf(0x1a3)+_0x26cd66);}if(!_0x1d3860['body'])throw new Error(_0x4651bf(0x1bc));const _0xc0851=_0x1d3860['body'][_0x4651bf(0x17e)](),_0x15257b=new TextDecoder();let _0x1756dd='';const _0x2ff70f=[];while(!![]){const {done:_0x1e1a06,value:_0xa36a4}=await _0xc0851[_0x4651bf(0x17b)]();if(_0x1e1a06)break;const _0xefa9b=_0x15257b[_0x4651bf(0x187)](_0xa36a4,{'stream':!![]});if(_0xefa9b['includes']('0:')){const _0xc28618=_0xefa9b['split']('\x0a');for(const _0x2c0ef8 of _0xc28618){if(_0x2c0ef8['startsWith']('0:')){const _0x49e6bf=_0x2c0ef8[_0x4651bf(0x1b3)](0x2)[_0x4651bf(0x1a6)]();if(_0x49e6bf['startsWith']('\x22')&&_0x49e6bf[_0x4651bf(0x1aa)]('\x22'))try{const _0x3fb658=JSON['parse'](_0x49e6bf);_0x1756dd+=_0x3fb658;if(_0x5a77e5)_0x5a77e5(_0x3fb658);}catch{}}}}else{_0x1756dd+=_0xefa9b;if(_0x5a77e5)_0x5a77e5(_0xefa9b);}}return{'content':_0x1756dd,'toolCalls':_0x2ff70f};}export async function checkAuth(){const _0x9cc499=a42_0x302d,_0x170246=getToken();if(!_0x170246)return![];try{const _0x2f664c=getApiUrl(),_0x352e5d=await fetch(_0x2f664c+_0x9cc499(0x1af),{'headers':{'Authorization':'Bearer\x20'+_0x170246}});return _0x352e5d['ok'];}catch{return![];}}export async function getUserUsage(){const _0x26f1cc=a42_0x302d,_0x25f989=getToken();if(!_0x25f989)return null;try{const _0x357be6=getApiUrl(),_0xeb2009=await fetch(_0x357be6+'/api/user/usage',{'headers':{'Authorization':'Bearer\x20'+_0x25f989}});if(!_0xeb2009['ok'])return null;return await _0xeb2009[_0x26f1cc(0x18c)]();}catch(_0x482ff5){return null;}}
|
package/dist/utils/history.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a43_0x2444(_0x3feabb,_0x46a860){_0x3feabb=_0x3feabb-0x197;const _0x27fef1=a43_0x27fe();let _0x24448e=_0x27fef1[_0x3feabb];return _0x24448e;}const a43_0x119e57=a43_0x2444;(function(_0x596d1a,_0x20fa6b){const _0x3225eb=a43_0x2444,_0x298226=_0x596d1a();while(!![]){try{const _0x46fcae=parseInt(_0x3225eb(0x199))/0x1*(parseInt(_0x3225eb(0x1ad))/0x2)+-parseInt(_0x3225eb(0x19d))/0x3*(parseInt(_0x3225eb(0x198))/0x4)+-parseInt(_0x3225eb(0x19f))/0x5*(parseInt(_0x3225eb(0x1ac))/0x6)+-parseInt(_0x3225eb(0x1ae))/0x7*(parseInt(_0x3225eb(0x1a4))/0x8)+-parseInt(_0x3225eb(0x1a6))/0x9+-parseInt(_0x3225eb(0x1a1))/0xa*(-parseInt(_0x3225eb(0x1a5))/0xb)+parseInt(_0x3225eb(0x19a))/0xc;if(_0x46fcae===_0x20fa6b)break;else _0x298226['push'](_0x298226['shift']());}catch(_0x1f5856){_0x298226['push'](_0x298226['shift']());}}}(a43_0x27fe,0x6aac6));import a43_0x288878 from'conf';const WEEK_MS=0x7*0x18*0x3c*0x3c*0x3e8,config=new a43_0x288878({'projectName':a43_0x119e57(0x197),'defaults':{'entries':[],'lastCleanup':Date[a43_0x119e57(0x19e)]()}});function cleanup(){const _0x2faaf1=a43_0x119e57,_0x21873b=Date[_0x2faaf1(0x19e)](),_0x283158=config[_0x2faaf1(0x1a0)]('lastCleanup');if(_0x21873b-_0x283158<0x18*0x3c*0x3c*0x3e8)return;const _0x3f2282=config[_0x2faaf1(0x1a0)](_0x2faaf1(0x19c)),_0xb471f9=_0x3f2282[_0x2faaf1(0x1aa)](_0x4330e6=>_0x21873b-_0x4330e6['timestamp']<WEEK_MS);config['set']('entries',_0xb471f9),config[_0x2faaf1(0x1a8)](_0x2faaf1(0x1a3),_0x21873b);}function a43_0x27fe(){const _0x4060e1=['now','2655yzlNAq','get','3726010VkZmOD','message','lastCleanup','1112872SISbTe','22owmhPa','5185656xcwBAr','map','set','push','filter','shift','7914ZjPOTS','950394HvZUdC','28CuPPmD','woozlit-cli-history','64XpbeTu','1jkuKSM','17096160QdxKxo','length','entries','70338XosEHF'];a43_0x27fe=function(){return _0x4060e1;};return a43_0x27fe();}export function addToHistory(_0x17daaf){const _0x239cf3=a43_0x119e57;cleanup();const _0x27e4fc=config[_0x239cf3(0x1a0)](_0x239cf3(0x19c));_0x27e4fc[_0x239cf3(0x1a9)]({'message':_0x17daaf,'timestamp':Date[_0x239cf3(0x19e)]()});if(_0x27e4fc[_0x239cf3(0x19b)]>0x64)_0x27e4fc[_0x239cf3(0x1ab)]();config[_0x239cf3(0x1a8)](_0x239cf3(0x19c),_0x27e4fc);}export function getHistory(){const _0x4e65af=a43_0x119e57;return cleanup(),config[_0x4e65af(0x1a0)](_0x4e65af(0x19c))[_0x4e65af(0x1a7)](_0x58caa0=>_0x58caa0[_0x4e65af(0x1a2)]);}export function clearHistory(){const _0x15d7c3=a43_0x119e57;config[_0x15d7c3(0x1a8)](_0x15d7c3(0x19c),[]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44_0x47aecf=a44_0x53d6;(function(_0x344c94,_0x47cec9){const _0x2b4345=a44_0x53d6,_0x52b1e4=_0x344c94();while(!![]){try{const _0x52e8d3=parseInt(_0x2b4345(0xd7))/0x1+-parseInt(_0x2b4345(0x11e))/0x2+parseInt(_0x2b4345(0xea))/0x3+parseInt(_0x2b4345(0x122))/0x4*(-parseInt(_0x2b4345(0x110))/0x5)+-parseInt(_0x2b4345(0xed))/0x6*(parseInt(_0x2b4345(0xd6))/0x7)+parseInt(_0x2b4345(0xff))/0x8*(parseInt(_0x2b4345(0xdf))/0x9)+parseInt(_0x2b4345(0xe3))/0xa*(parseInt(_0x2b4345(0x107))/0xb);if(_0x52e8d3===_0x47cec9)break;else _0x52b1e4['push'](_0x52b1e4['shift']());}catch(_0x2d0063){_0x52b1e4['push'](_0x52b1e4['shift']());}}}(a44_0x5a4d,0x965e5));import{execSync}from'child_process';import a44_0x3b0719 from'path';import a44_0x3911f8 from'fs';function a44_0x53d6(_0x11995b,_0x29d79a){_0x11995b=_0x11995b-0xd6;const _0x5a4dfd=a44_0x5a4d();let _0x53d67e=_0x5a4dfd[_0x11995b];return _0x53d67e;}import a44_0x599d94 from'os';import*as a44_0x4dee5a from'../ui/output.js';import{addMcpServer,addMcpHttpServer}from'../config/mcp.js';const SERVERS_DIR=a44_0x3b0719[a44_0x47aecf(0xe2)](a44_0x599d94[a44_0x47aecf(0xe7)](),a44_0x47aecf(0xd8),a44_0x47aecf(0x11d));function ensureServersDir(){const _0x4538e4=a44_0x47aecf;!a44_0x3911f8[_0x4538e4(0xef)](SERVERS_DIR)&&a44_0x3911f8[_0x4538e4(0xe9)](SERVERS_DIR,{'recursive':!![]});}function getRepoName(_0x2d9475){const _0x5494af=a44_0x47aecf,_0x2296bb=_0x2d9475[_0x5494af(0xd9)]('/');let _0x476ef9=_0x2296bb[_0x2296bb[_0x5494af(0x11a)]-0x1];return _0x476ef9[_0x5494af(0xe4)]('.git')&&(_0x476ef9=_0x476ef9['slice'](0x0,-0x4)),_0x476ef9;}async function installFromGithub(_0x3e0fbd,_0x50333a){const _0x432fbc=a44_0x47aecf;ensureServersDir();const _0x29478c=_0x50333a||getRepoName(_0x3e0fbd),_0x1cede5=a44_0x3b0719[_0x432fbc(0xe2)](SERVERS_DIR,_0x29478c);a44_0x4dee5a['info']('Cloning\x20'+_0x3e0fbd+_0x432fbc(0x109)+_0x1cede5+'...');if(a44_0x3911f8['existsSync'](_0x1cede5)){a44_0x4dee5a[_0x432fbc(0x106)](_0x432fbc(0x112)+_0x1cede5+_0x432fbc(0x10c));try{execSync('git\x20pull',{'cwd':_0x1cede5,'stdio':_0x432fbc(0x10d)});}catch(_0x3f8bda){a44_0x4dee5a[_0x432fbc(0xe8)](_0x432fbc(0x117));return;}}else try{execSync(_0x432fbc(0xdb)+_0x3e0fbd+'\x20'+_0x1cede5,{'stdio':'inherit'});}catch(_0x400503){a44_0x4dee5a[_0x432fbc(0xe8)]('Failed\x20to\x20clone\x20repository:\x20'+_0x400503);return;}a44_0x4dee5a[_0x432fbc(0xe5)]('Installing\x20dependencies...');try{const _0x34ded3=a44_0x3911f8[_0x432fbc(0xef)](a44_0x3b0719[_0x432fbc(0xe2)](_0x1cede5,_0x432fbc(0xeb))),_0x36ecdb=a44_0x3911f8['existsSync'](a44_0x3b0719['join'](_0x1cede5,_0x432fbc(0x10b))),_0x4fbf4f=_0x34ded3?_0x432fbc(0xf9):_0x36ecdb?_0x432fbc(0x121):_0x432fbc(0x108);execSync(_0x4fbf4f,{'cwd':_0x1cede5,'stdio':'inherit'});const _0x23da09=a44_0x3b0719['join'](_0x1cede5,'package.json');if(a44_0x3911f8[_0x432fbc(0xef)](_0x23da09)){const _0x58b845=JSON[_0x432fbc(0xf6)](a44_0x3911f8[_0x432fbc(0x11c)](_0x23da09,_0x432fbc(0xdd)));_0x58b845['scripts']&&_0x58b845[_0x432fbc(0x114)][_0x432fbc(0x11f)]&&(a44_0x4dee5a[_0x432fbc(0xe5)]('Building\x20project...'),execSync((_0x34ded3?_0x432fbc(0xe6):_0x36ecdb?_0x432fbc(0xf5):_0x432fbc(0x10e))+_0x432fbc(0x105),{'cwd':_0x1cede5,'stdio':_0x432fbc(0x10d)}));}}catch(_0x32061b){a44_0x4dee5a[_0x432fbc(0xe8)](_0x432fbc(0xfd)+_0x32061b);return;}const _0x48f766=a44_0x3b0719['join'](_0x1cede5,_0x432fbc(0x123));let _0x9b0fdf='';if(a44_0x3911f8[_0x432fbc(0xef)](_0x48f766)){const _0x471bff=JSON[_0x432fbc(0xf6)](a44_0x3911f8[_0x432fbc(0x11c)](_0x48f766,_0x432fbc(0xdd)));if(_0x471bff[_0x432fbc(0x101)]){if(typeof _0x471bff[_0x432fbc(0x101)]===_0x432fbc(0x111))_0x9b0fdf=a44_0x3b0719[_0x432fbc(0xe2)](_0x1cede5,_0x471bff[_0x432fbc(0x101)]);else{if(typeof _0x471bff[_0x432fbc(0x101)]===_0x432fbc(0xf8)){const _0x492ca7=Object[_0x432fbc(0xfe)](_0x471bff['bin'])[0x0];_0x9b0fdf=a44_0x3b0719[_0x432fbc(0xe2)](_0x1cede5,_0x471bff[_0x432fbc(0x101)][_0x492ca7]);}}}else _0x471bff[_0x432fbc(0x10f)]&&(_0x9b0fdf=a44_0x3b0719['join'](_0x1cede5,_0x471bff[_0x432fbc(0x10f)]));}if(!_0x9b0fdf){const _0x56e344=['dist/index.js','build/index.js','src/index.ts',_0x432fbc(0xdc)];for(const _0x56c368 of _0x56e344){if(a44_0x3911f8[_0x432fbc(0xef)](a44_0x3b0719[_0x432fbc(0xe2)](_0x1cede5,_0x56c368))){_0x9b0fdf=a44_0x3b0719[_0x432fbc(0xe2)](_0x1cede5,_0x56c368);break;}}}if(!_0x9b0fdf){a44_0x4dee5a[_0x432fbc(0xe8)](_0x432fbc(0xf3));return;}const _0x3c9d43=_0x9b0fdf[_0x432fbc(0xe4)](_0x432fbc(0xe1))?_0x432fbc(0x116):'node';a44_0x4dee5a[_0x432fbc(0xe5)](_0x432fbc(0xfc)+_0x9b0fdf),addMcpServer(_0x29478c,_0x3c9d43,[_0x9b0fdf]),a44_0x4dee5a[_0x432fbc(0xee)](_0x432fbc(0xf1)+_0x29478c+_0x432fbc(0x102));}async function installMcpChromeBridge(){const _0x3c2f1e=a44_0x47aecf;a44_0x4dee5a['info']('Installing\x20mcp-chrome-bridge\x20globally...');try{execSync(_0x3c2f1e(0x115),{'stdio':'inherit'});}catch(_0x594af3){a44_0x4dee5a[_0x3c2f1e(0xe8)]('Failed\x20to\x20install\x20mcp-chrome-bridge\x20using\x20pnpm:\x20'+_0x594af3),a44_0x4dee5a[_0x3c2f1e(0xe5)](_0x3c2f1e(0xf0));try{execSync(_0x3c2f1e(0x11b),{'stdio':_0x3c2f1e(0x10d)});}catch(_0x27b583){a44_0x4dee5a[_0x3c2f1e(0xe8)](_0x3c2f1e(0x10a)+_0x27b583),a44_0x4dee5a['info'](_0x3c2f1e(0xfa));return;}}const _0x39ba32=_0x3c2f1e(0xfb);addMcpHttpServer(_0x3c2f1e(0xe0),_0x39ba32),a44_0x4dee5a[_0x3c2f1e(0xee)](_0x3c2f1e(0x104)),a44_0x4dee5a['header'](_0x3c2f1e(0x100)),a44_0x4dee5a[_0x3c2f1e(0xe5)](_0x3c2f1e(0xec)),a44_0x4dee5a[_0x3c2f1e(0xe5)](_0x3c2f1e(0xde)),a44_0x4dee5a[_0x3c2f1e(0xe5)](_0x3c2f1e(0x119)),a44_0x4dee5a[_0x3c2f1e(0xe5)](_0x3c2f1e(0xf7));}function a44_0x5a4d(){const _0x42d732=['git\x20clone\x20','index.js','utf-8','2.\x20Load\x20unpacked\x20extension\x20in\x20Chrome\x20Developer\x20Mode','9mzJUUE','mcp-chrome','.ts','join','10BnIwnP','endsWith','info','pnpm','homedir','error','mkdirSync','793002FgXfQt','pnpm-lock.yaml','1.\x20Download\x20the\x20Chrome\x20Extension:\x20https://github.com/hangwin/mcp-chrome/releases','182754biASUn','success','existsSync','Trying\x20npm\x20as\x20fallback...','Successfully\x20installed\x20and\x20added\x20\x27','Unknown\x20installation\x20source.\x20Please\x20provide\x20a\x20GitHub\x20URL\x20or\x20\x27mcp-chrome-bridge\x27.','Could\x20not\x20auto-detect\x20entry\x20point.\x20Please\x20add\x20the\x20server\x20manually\x20using\x20\x27woozlit\x20mcp\x20add\x27.','includes','yarn','parse','4.\x20Make\x20sure\x20\x27mcp-chrome-bridge\x27\x20is\x20running\x20(if\x20not\x20started\x20automatically)','object','pnpm\x20install','Try\x20running\x20with\x20sudo\x20or\x20administrative\x20privileges.','http://127.0.0.1:12306/mcp','Detected\x20entry\x20point:\x20','Failed\x20to\x20install/build:\x20','keys','5394872rrAdIu','Next\x20Steps:','bin','\x27\x20from\x20GitHub!','mcp-chrome-bridge','Installed\x20mcp-chrome-bridge\x20and\x20added\x20configuration!','\x20run\x20build','warn','13733247ODzsFX','npm\x20install','\x20to\x20','Failed\x20to\x20install\x20mcp-chrome-bridge:\x20','yarn.lock','\x20already\x20exists.\x20Updating...','inherit','npm','main','5qgNOzz','string','Directory\x20','.git','scripts','pnpm\x20add\x20-g\x20mcp-chrome-bridge','tsx','Failed\x20to\x20update\x20repo.\x20Try\x20checking\x20it\x20out\x20manually\x20or\x20deleting\x20the\x20folder.','chrome','3.\x20Click\x20extension\x20icon\x20and\x20\x27Connect\x27','length','npm\x20install\x20-g\x20mcp-chrome-bridge','readFileSync','servers','212566MCScls','build','https://github.com/','yarn\x20install','3884020SUpXhN','package.json','161TAwbsk','206584knbuyE','.woozlit','split','github.com'];a44_0x5a4d=function(){return _0x42d732;};return a44_0x5a4d();}export async function installMcpServer(_0x38e553,_0x4d71aa){const _0x4a7736=a44_0x47aecf;if(_0x38e553===_0x4a7736(0x103)||_0x38e553===_0x4a7736(0x118))return installMcpChromeBridge();if(_0x38e553[_0x4a7736(0xf4)](_0x4a7736(0xda))||_0x38e553[_0x4a7736(0xe4)](_0x4a7736(0x113)))return installFromGithub(_0x38e553,_0x4d71aa);if(/^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/['test'](_0x38e553))return installFromGithub(_0x4a7736(0x120)+_0x38e553+_0x4a7736(0x113),_0x4d71aa);a44_0x4dee5a[_0x4a7736(0xe8)](_0x4a7736(0xf2));}
|
package/dist/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a45_0x3f35(){const _0x4f0d50=['linux','6TzUoLI','arch','macOS','3934992EEDUPu','3790324fETblI','5RNOHGG','win32','6991579djwdlR','383302NwGKAV','1949058oTnQRK','Windows','2507754kLfEoE','3efbUba','sudo\x20','Linux','44UDYkGP','2829520rXyZYO','darwin','windows','macos','platform'];a45_0x3f35=function(){return _0x4f0d50;};return a45_0x3f35();}const a45_0x61e9ea=a45_0x4256;(function(_0x510903,_0x443c5e){const _0x20f9bc=a45_0x4256,_0x922339=_0x510903();while(!![]){try{const _0x5686d6=parseInt(_0x20f9bc(0x1ca))/0x1*(parseInt(_0x20f9bc(0x1bc))/0x2)+parseInt(_0x20f9bc(0x1c0))/0x3*(-parseInt(_0x20f9bc(0x1b8))/0x4)+parseInt(_0x20f9bc(0x1b9))/0x5*(-parseInt(_0x20f9bc(0x1bf))/0x6)+-parseInt(_0x20f9bc(0x1bb))/0x7+parseInt(_0x20f9bc(0x1b7))/0x8+parseInt(_0x20f9bc(0x1bd))/0x9+parseInt(_0x20f9bc(0x1c4))/0xa*(parseInt(_0x20f9bc(0x1c3))/0xb);if(_0x5686d6===_0x443c5e)break;else _0x922339['push'](_0x922339['shift']());}catch(_0x22f186){_0x922339['push'](_0x922339['shift']());}}}(a45_0x3f35,0x98c95));const platform=process[a45_0x61e9ea(0x1c8)],arch=process[a45_0x61e9ea(0x1cb)];export function getPlatform(){const _0x5b721d=a45_0x61e9ea;if(platform===_0x5b721d(0x1ba))return _0x5b721d(0x1c6);if(platform===_0x5b721d(0x1c5))return _0x5b721d(0x1c7);return _0x5b721d(0x1c9);}export function getArch(){return arch;}export function isWindows(){const _0x59d1b6=a45_0x61e9ea;return platform===_0x59d1b6(0x1ba);}function a45_0x4256(_0x444176,_0xd6d45e){_0x444176=_0x444176-0x1b6;const _0x3f3519=a45_0x3f35();let _0x42563c=_0x3f3519[_0x444176];return _0x42563c;}export function isMac(){const _0x396716=a45_0x61e9ea;return platform===_0x396716(0x1c5);}export function isLinux(){const _0x10c0d5=a45_0x61e9ea;return platform===_0x10c0d5(0x1c9);}export function getShellPrefix(){const _0x43e37e=a45_0x61e9ea;return isWindows()?'':_0x43e37e(0x1c1);}export function getPlatformInfo(){const _0x39d215=a45_0x61e9ea,_0xf62c5b=getPlatform(),_0x43acee=_0xf62c5b===_0x39d215(0x1c6)?_0x39d215(0x1be):_0xf62c5b==='macos'?_0x39d215(0x1b6):_0x39d215(0x1c2);return _0x43acee+'\x20('+arch+')';}
|
package/dist/utils/storage.d.ts
CHANGED
|
@@ -10,8 +10,11 @@ export declare function setUser(userId: string, email: string, displayName: stri
|
|
|
10
10
|
export declare function clearUser(): void;
|
|
11
11
|
export declare function getSelectedModel(): string;
|
|
12
12
|
export declare function setSelectedModel(model: string): void;
|
|
13
|
+
export declare function getTheme(): string;
|
|
14
|
+
export declare function setTheme(themeId: string): void;
|
|
13
15
|
export declare function getRules(): string[];
|
|
14
16
|
export declare function addRule(rule: string): void;
|
|
15
17
|
export declare function clearRules(): void;
|
|
16
18
|
export declare function isLoggedIn(): boolean;
|
|
17
19
|
export declare function logout(): void;
|
|
20
|
+
export declare function wipeAll(): void;
|
package/dist/utils/storage.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xc1e327,_0x4bc641){const _0xac8b29=a46_0x4e2d,_0x1d56ce=_0xc1e327();while(!![]){try{const _0x82a6ef=parseInt(_0xac8b29(0x89))/0x1+parseInt(_0xac8b29(0x83))/0x2+-parseInt(_0xac8b29(0x8e))/0x3*(-parseInt(_0xac8b29(0x81))/0x4)+-parseInt(_0xac8b29(0x85))/0x5+parseInt(_0xac8b29(0x84))/0x6+-parseInt(_0xac8b29(0x7e))/0x7*(-parseInt(_0xac8b29(0x91))/0x8)+-parseInt(_0xac8b29(0x86))/0x9;if(_0x82a6ef===_0x4bc641)break;else _0x1d56ce['push'](_0x1d56ce['shift']());}catch(_0x58e69b){_0x1d56ce['push'](_0x1d56ce['shift']());}}}(a46_0x4714,0xba29e));import a46_0x1f5376 from'conf';function a46_0x4e2d(_0x4e5293,_0xc347f1){_0x4e5293=_0x4e5293-0x7e;const _0x4714e0=a46_0x4714();let _0x4e2d2e=_0x4714e0[_0x4e5293];return _0x4e2d2e;}const config=new a46_0x1f5376({'projectName':'woozlit-cli'});export function getToken(){const _0x34c901=a46_0x4e2d;return config['get'](_0x34c901(0x8d));}export function setToken(_0x561973){const _0xdd76d1=a46_0x4e2d;config[_0xdd76d1(0x90)](_0xdd76d1(0x8d),_0x561973);}export function clearToken(){const _0xdb9841=a46_0x4e2d;config['delete'](_0xdb9841(0x8d));}export function getUser(){const _0x479302=a46_0x4e2d;return{'userId':config[_0x479302(0x80)](_0x479302(0x87)),'email':config['get'](_0x479302(0x8f)),'displayName':config[_0x479302(0x80)](_0x479302(0x8a))};}function a46_0x4714(){const _0x432e2d=['userId','delete','1111036RSDZIG','displayName','theme','push','token','2769IlhmAW','email','set','2419216hivFMG','21vzReJr','rules','get','4868MZmqGn','woozlit_blue','1661804UWIhat','9033096MpjZPe','2315375CIcLmG','38271150EtDLmW'];a46_0x4714=function(){return _0x432e2d;};return a46_0x4714();}export function setUser(_0x429833,_0x1d2820,_0x3e78cb){const _0x28d73e=a46_0x4e2d;config[_0x28d73e(0x90)](_0x28d73e(0x87),_0x429833),config[_0x28d73e(0x90)](_0x28d73e(0x8f),_0x1d2820),config[_0x28d73e(0x90)](_0x28d73e(0x8a),_0x3e78cb);}export function clearUser(){const _0x532605=a46_0x4e2d;config['delete'](_0x532605(0x87)),config[_0x532605(0x88)](_0x532605(0x8f)),config[_0x532605(0x88)](_0x532605(0x8a));}export function getSelectedModel(){return config['get']('selectedModel')||'gemini-2.5-flash';}export function setSelectedModel(_0x5ad6c3){const _0x1f639c=a46_0x4e2d;config[_0x1f639c(0x90)]('selectedModel',_0x5ad6c3);}export function getTheme(){const _0x185273=a46_0x4e2d;return config[_0x185273(0x80)](_0x185273(0x8b))||_0x185273(0x82);}export function setTheme(_0x7bbc57){const _0x3809bf=a46_0x4e2d;config[_0x3809bf(0x90)](_0x3809bf(0x8b),_0x7bbc57);}export function getRules(){const _0x33a597=a46_0x4e2d;return config[_0x33a597(0x80)]('rules')||[];}export function addRule(_0x7f6828){const _0x22f3bf=a46_0x4e2d,_0x1b8982=getRules();_0x1b8982[_0x22f3bf(0x8c)](_0x7f6828),config[_0x22f3bf(0x90)](_0x22f3bf(0x7f),_0x1b8982);}export function clearRules(){const _0x432e48=a46_0x4e2d;config[_0x432e48(0x90)](_0x432e48(0x7f),[]);}export function isLoggedIn(){const _0x2105b8=a46_0x4e2d;return!!config[_0x2105b8(0x80)](_0x2105b8(0x8d))&&!!config[_0x2105b8(0x80)](_0x2105b8(0x87));}export function logout(){clearToken(),clearUser();}export function wipeAll(){config['clear']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x595320,_0x13c4b7){const _0x3499f8=a47_0x429d,_0x12450a=_0x595320();while(!![]){try{const _0x329db9=-parseInt(_0x3499f8(0x1cc))/0x1*(parseInt(_0x3499f8(0x1c6))/0x2)+parseInt(_0x3499f8(0x1c7))/0x3*(parseInt(_0x3499f8(0x1b9))/0x4)+-parseInt(_0x3499f8(0x1cf))/0x5*(parseInt(_0x3499f8(0x1bf))/0x6)+-parseInt(_0x3499f8(0x1cb))/0x7+parseInt(_0x3499f8(0x1b7))/0x8+-parseInt(_0x3499f8(0x1c2))/0x9+parseInt(_0x3499f8(0x1c9))/0xa;if(_0x329db9===_0x13c4b7)break;else _0x12450a['push'](_0x12450a['shift']());}catch(_0xdbe3d2){_0x12450a['push'](_0x12450a['shift']());}}}(a47_0x41e1,0x8adf5));import a47_0x47dc31 from'chalk';const CURRENT_VERSION='2.0.0';function a47_0x429d(_0x128656,_0x40b260){_0x128656=_0x128656-0x1b5;const _0x41e1bc=a47_0x41e1();let _0x429d81=_0x41e1bc[_0x128656];return _0x429d81;}export async function checkForUpdate(){const _0x57a860=a47_0x429d;try{const _0x37a902=await fetch(_0x57a860(0x1bb),{'headers':{'Accept':'application/json'},'signal':AbortSignal['timeout'](0x5dc)});if(!_0x37a902['ok'])return;const _0x5e93bd=await _0x37a902[_0x57a860(0x1c4)](),_0x5d1c79=_0x5e93bd[_0x57a860(0x1c5)]?.[_0x57a860(0x1ba)];_0x5d1c79&&_0x5d1c79!==CURRENT_VERSION&&(isNewer(_0x5d1c79,CURRENT_VERSION)&&printUpdateBox(_0x5d1c79,CURRENT_VERSION));}catch{}}function isNewer(_0x36a58b,_0x28ba9b){const _0x5bee5b=a47_0x429d,_0x1b3b75=_0x36a58b[_0x5bee5b(0x1cd)]('.')[_0x5bee5b(0x1bc)](Number),_0x29bed1=_0x28ba9b['split']('.')[_0x5bee5b(0x1bc)](Number);for(let _0x32f813=0x0;_0x32f813<0x3;_0x32f813++){if(_0x1b3b75[_0x32f813]>_0x29bed1[_0x32f813])return!![];if(_0x1b3b75[_0x32f813]<_0x29bed1[_0x32f813])return![];}return![];}function a47_0x41e1(){const _0xbdb71b=['latest','https://registry.npmjs.org/woozlit','map','\x20\x20Update\x20Available!\x20','yellow','6QDDoHY','error','gray','98496xDvoVM','npm\x20install\x20-g\x20woozlit','json','dist-tags','4TugpMo','15nrVZmL','red','62390susnYf','\x20\x20Failed\x20to\x20auto-update.\x20Please\x20run:\x20npm\x20install\x20-g\x20woozlit','2221289EaVIoC','37028FbhNAU','split','dim','822095IIZzSG','repeat','\x20\x20Please\x20restart\x20the\x20CLI\x20to\x20use\x20the\x20new\x20version.','child_process','\x20→\x20','log','inherit','8384984IkLdsr','exit','64964rPBHVh'];a47_0x41e1=function(){return _0xbdb71b;};return a47_0x41e1();}function printUpdateBox(_0x12d29e,_0x147d95){const _0x321b5b=a47_0x429d,_0x9cce1d=a47_0x47dc31[_0x321b5b(0x1be)]('─'[_0x321b5b(0x1d0)](0x32));console['log'](),console[_0x321b5b(0x1b5)](_0x9cce1d),console[_0x321b5b(0x1b5)](a47_0x47dc31[_0x321b5b(0x1be)](_0x321b5b(0x1bd)+a47_0x47dc31[_0x321b5b(0x1ce)](_0x147d95)+_0x321b5b(0x1d3)+a47_0x47dc31['green'](_0x12d29e))),console[_0x321b5b(0x1b5)](a47_0x47dc31[_0x321b5b(0x1c1)]('\x20\x20Auto-updating\x20to\x20version\x20'+_0x12d29e+'...')),console[_0x321b5b(0x1b5)](_0x9cce1d),console[_0x321b5b(0x1b5)]();try{const {execSync:_0x3ce42c}=require(_0x321b5b(0x1d2));_0x3ce42c(_0x321b5b(0x1c3),{'stdio':_0x321b5b(0x1b6)}),console[_0x321b5b(0x1b5)](),console[_0x321b5b(0x1b5)](a47_0x47dc31['green']('\x20\x20✔\x20Woozlit\x20updated\x20successfully!')),console[_0x321b5b(0x1b5)](a47_0x47dc31['dim'](_0x321b5b(0x1d1))),console[_0x321b5b(0x1b5)](),process[_0x321b5b(0x1b8)](0x0);}catch(_0xb425cd){console[_0x321b5b(0x1c0)](a47_0x47dc31[_0x321b5b(0x1c8)](_0x321b5b(0x1ca)));}}
|