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.
Files changed (81) hide show
  1. package/README.md +30 -111
  2. package/dist/auth/login.js +1 -1
  3. package/dist/browser/index.d.ts +78 -0
  4. package/dist/browser/index.js +1 -0
  5. package/dist/browser/server.d.ts +13 -0
  6. package/dist/browser/server.js +1 -0
  7. package/dist/browser/tools.d.ts +13 -0
  8. package/dist/browser/tools.js +1 -0
  9. package/dist/chat/agent.js +1 -1
  10. package/dist/config/mcp.js +1 -1
  11. package/dist/config/settings.js +1 -1
  12. package/dist/discord/client.d.ts +3 -0
  13. package/dist/discord/client.js +1 -0
  14. package/dist/discord/config.d.ts +5 -0
  15. package/dist/discord/config.js +1 -0
  16. package/dist/discord/index.d.ts +3 -0
  17. package/dist/discord/index.js +1 -0
  18. package/dist/discord/setup.d.ts +1 -0
  19. package/dist/discord/setup.js +1 -0
  20. package/dist/email/config.d.ts +31 -0
  21. package/dist/email/config.js +1 -0
  22. package/dist/email/index.d.ts +3 -0
  23. package/dist/email/index.js +1 -0
  24. package/dist/email/service.d.ts +4 -0
  25. package/dist/email/service.js +1 -0
  26. package/dist/email/setup.d.ts +1 -0
  27. package/dist/email/setup.js +1 -0
  28. package/dist/github/api.d.ts +25 -0
  29. package/dist/github/api.js +1 -0
  30. package/dist/github/auth.d.ts +4 -0
  31. package/dist/github/auth.js +1 -0
  32. package/dist/github/auto-setup.d.ts +1 -0
  33. package/dist/github/auto-setup.js +1 -0
  34. package/dist/github/index.d.ts +1 -0
  35. package/dist/github/index.js +1 -0
  36. package/dist/github/manual-setup.d.ts +1 -0
  37. package/dist/github/manual-setup.js +1 -0
  38. package/dist/index.js +1 -1
  39. package/dist/mcp-servers/computer-use.js +1 -1
  40. package/dist/services/bot-manager.d.ts +13 -0
  41. package/dist/services/bot-manager.js +1 -0
  42. package/dist/services/voice-agent.d.ts +6 -0
  43. package/dist/services/voice-agent.js +1 -0
  44. package/dist/telegram/bot.js +1 -1
  45. package/dist/telegram/config.js +1 -1
  46. package/dist/telegram/index.d.ts +1 -0
  47. package/dist/telegram/index.js +1 -1
  48. package/dist/telegram/reminders.d.ts +11 -0
  49. package/dist/telegram/reminders.js +1 -0
  50. package/dist/telegram/setup.d.ts +1 -0
  51. package/dist/telegram/setup.js +1 -0
  52. package/dist/tools/command.js +1 -1
  53. package/dist/tools/file.js +1 -1
  54. package/dist/tools/index.d.ts +1 -0
  55. package/dist/tools/index.js +1 -1
  56. package/dist/tools/mcp.js +1 -1
  57. package/dist/tools/rollback.js +1 -1
  58. package/dist/tools/rules.js +1 -1
  59. package/dist/twilio/config.d.ts +11 -0
  60. package/dist/twilio/config.js +1 -0
  61. package/dist/twilio/index.d.ts +3 -0
  62. package/dist/twilio/index.js +1 -0
  63. package/dist/twilio/server.d.ts +5 -0
  64. package/dist/twilio/server.js +1 -0
  65. package/dist/twilio/setup.d.ts +1 -0
  66. package/dist/twilio/setup.js +1 -0
  67. package/dist/ui/output.d.ts +2 -2
  68. package/dist/ui/output.js +1 -1
  69. package/dist/ui/select.js +1 -1
  70. package/dist/ui/themes.d.ts +12 -0
  71. package/dist/ui/themes.js +1 -0
  72. package/dist/utils/api.js +1 -1
  73. package/dist/utils/history.js +1 -1
  74. package/dist/utils/mcp-installer.js +1 -1
  75. package/dist/utils/platform.js +1 -1
  76. package/dist/utils/storage.d.ts +3 -0
  77. package/dist/utils/storage.js +1 -1
  78. package/dist/utils/update-check.js +1 -1
  79. package/dist/verify_repro.d.ts +4 -0
  80. package/dist/verify_repro.js +1 -0
  81. package/package.json +21 -10
package/dist/utils/api.js CHANGED
@@ -1 +1 @@
1
- (function(_0x34aa59,_0x44e8f5){const _0x47ebb3=a17_0x3397,_0x6cf0b6=_0x34aa59();while(!![]){try{const _0x72f32b=parseInt(_0x47ebb3(0x1d8))/0x1+-parseInt(_0x47ebb3(0x1c4))/0x2+parseInt(_0x47ebb3(0x1fb))/0x3*(parseInt(_0x47ebb3(0x1c6))/0x4)+parseInt(_0x47ebb3(0x1c0))/0x5+parseInt(_0x47ebb3(0x1c7))/0x6*(-parseInt(_0x47ebb3(0x1cd))/0x7)+-parseInt(_0x47ebb3(0x1f2))/0x8+-parseInt(_0x47ebb3(0x1ef))/0x9*(parseInt(_0x47ebb3(0x1c2))/0xa);if(_0x72f32b===_0x44e8f5)break;else _0x6cf0b6['push'](_0x6cf0b6['shift']());}catch(_0x5e3233){_0x6cf0b6['push'](_0x6cf0b6['shift']());}}}(a17_0x4ab0,0x35e2b));import{getApiUrl}from'../config/settings.js';import{getToken,getUser}from'./storage.js';import a17_0x16a8a8 from'crypto';import a17_0x3dc828 from'fs';import a17_0x59b6f1 from'path';import{dirname}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getDecryptedSecret(){const _0x537371=a17_0x3397;try{const _0x4375ef=[a17_0x59b6f1[_0x537371(0x1c1)](__dirname,'../../env.woozlit'),a17_0x59b6f1[_0x537371(0x1c1)](__dirname,'../../../env.woozlit'),a17_0x59b6f1[_0x537371(0x1c1)](__dirname,_0x537371(0x1e1)),a17_0x59b6f1[_0x537371(0x1c1)](process[_0x537371(0x1e3)](),_0x537371(0x1ca))];let _0x12af7e='';for(const _0x5ca694 of _0x4375ef){if(a17_0x3dc828['existsSync'](_0x5ca694)){_0x12af7e=a17_0x3dc828[_0x537371(0x1d0)](_0x5ca694,_0x537371(0x1f6))[_0x537371(0x1e5)]();break;}}if(!_0x12af7e)return reconstructSecret();const [_0x445f25,_0x5ea90b]=_0x12af7e[_0x537371(0x1be)](':');if(!_0x445f25||!_0x5ea90b)return reconstructSecret();const _0x888792=Buffer['from'](_0x445f25,_0x537371(0x201)),_0x7f1fae=a17_0x16a8a8['createHash'](_0x537371(0x1f7))['update'](_0x537371(0x1ee))[_0x537371(0x1f9)](),_0x93dd30=a17_0x16a8a8[_0x537371(0x1ed)](_0x537371(0x1e4),_0x7f1fae,_0x888792);let _0x5c2b13=_0x93dd30[_0x537371(0x1bf)](_0x5ea90b,_0x537371(0x201),_0x537371(0x1f6));return _0x5c2b13+=_0x93dd30[_0x537371(0x1cb)](_0x537371(0x1f6)),_0x5c2b13;}catch(_0x497621){return reconstructSecret();}}function reconstructSecret(){const _0x177120=a17_0x3397,_0x862c8=[0x77,0x7a,0x5f,0x63,0x6c,0x69,0x5f,0x70,0x72,0x6f,0x64,0x5f][_0x177120(0x1d2)](_0x2c4c26=>String[_0x177120(0x1e6)](_0x2c4c26))[_0x177120(0x1c1)](''),_0x340331=String['fromCharCode'](0x73,0x33,0x63,0x72,0x33,0x74,0x5f,0x78,0x39,0x32,0x5f),_0x49ee4a=(0x8*0x186a0+0x26610+0x190+0x32+0x6)[_0x177120(0x1f1)](0x10)+_0x177120(0x1df)+(0x4*0xa+0x3)['toString'](0x10)+_0x177120(0x1fe),_0xc17130=['s','e','c','u','r','e','_','h','a','s','h'][_0x177120(0x1c1)]('');return _0x862c8+_0x340331+_0x177120(0x1ea)+_0x49ee4a['substring'](0x5)+_0xc17130;}function simpleHash(_0x50daa5){const _0xbd0993=a17_0x3397;let _0x28bd0c=0x811c9dc5;for(let _0x3ac207=0x0;_0x3ac207<_0x50daa5[_0xbd0993(0x1d9)];_0x3ac207++){_0x28bd0c^=_0x50daa5['charCodeAt'](_0x3ac207),_0x28bd0c=Math[_0xbd0993(0x1c3)](_0x28bd0c,0x1000193);}const _0x5d4215=(_0x28bd0c>>>0x0)['toString'](0x10)[_0xbd0993(0x1f4)](0x8,'0');let _0x25c45c=0x0;for(let _0x24c40f=0x0;_0x24c40f<_0x50daa5[_0xbd0993(0x1d9)];_0x24c40f++){_0x25c45c=(_0x25c45c<<0x5)-_0x25c45c+_0x50daa5[_0xbd0993(0x1fd)](_0x24c40f)|0x0;}const _0x5d802d=(_0x25c45c>>>0x0)[_0xbd0993(0x1f1)](0x10)[_0xbd0993(0x1f4)](0x8,'0');return''+_0x5d4215+_0x5d802d;}function a17_0x4ab0(){const _0x3a70be=['charCodeAt','3a2_','now','https://woozlit.com','hex','stringify','R9fC2XWkQeY1B6Z0aM3S7UoI5dVJH8NpbKTL4GmEAr','json','split','update','763760hmzvMI','join','10xWWMBm','imul','142358gMGoZB','decode','1560piaLiI','6WiKWTO','parse','POST','env.woozlit','final',':chat','89691GpcLtd','Not\x20authenticated.\x20Please\x20run\x20\x27woozlit\x20login\x27\x20first.','cli-','readFileSync','application/json','map','get','headers','catch','\x20seconds.','API\x20error:\x20','242581BHfaPg','length','1.1.0','body','No\x20response\x20body','version','\x20-\x20','e5c','random','../env.woozlit','status','cwd','aes-256-cbc','trim','fromCharCode','substring','isRateLimit','read','8f7d6','startsWith','slice','createDecipheriv','woozlit_internal_secure_key_2026_v2_!!!','668358FbTDaN','/api/chat','toString','2608192LaYyTP','X-RateLimit-Reset','padStart','error','utf8','sha256','includes','digest','woozlit:','2382XCrzbV','Bearer\x20'];a17_0x4ab0=function(){return _0x3a70be;};return a17_0x4ab0();}function createRequestSignature(){const _0x527102=a17_0x3397,_0xbd3711=Date[_0x527102(0x1ff)]()[_0x527102(0x1f1)](),_0xd66eb6=_0x527102(0x1fa)+_0xbd3711+_0x527102(0x1cc),_0x19ef7f=_0x527102(0x1bc),_0x5f6d18=simpleHash(_0xd66eb6+_0x19ef7f);return{'signature':_0x5f6d18,'timestamp':_0xbd3711};}export async function sendChatMessage(_0x18eb8a,_0x11b27f,_0x3a06fb,_0x23b123){const _0x29b9fa=a17_0x3397,_0x4e1ef9=getToken(),_0x3c8cc9=getApiUrl(),{userId:_0x3ac8a9}=getUser();if(!_0x4e1ef9||!_0x3ac8a9)throw new Error(_0x29b9fa(0x1ce));const _0x46a3e3=_0x29b9fa(0x1cf)+Date[_0x29b9fa(0x1ff)]()+'-'+Math[_0x29b9fa(0x1e0)]()[_0x29b9fa(0x1f1)](0x24)[_0x29b9fa(0x1e7)](0x2,0x9),_0x53a072=process['platform']+'-'+process['arch']+'-'+process[_0x29b9fa(0x1dd)],_0x5f4d3e=getDecryptedSecret(),{signature:_0x38555b,timestamp:_0x58c001}=createRequestSignature(),_0x5a1ce2=await fetch(_0x3c8cc9+_0x29b9fa(0x1f0),{'method':_0x29b9fa(0x1c9),'headers':{'Content-Type':_0x29b9fa(0x1d1),'X-Woozlit-CLI':'true','X-Woozlit-CLI-Version':_0x29b9fa(0x1da),'X-Request-ID':_0x46a3e3,'X-Device-Fingerprint':_0x53a072,'Authorization':_0x29b9fa(0x1fc)+_0x4e1ef9,'X-Woozlit-Token':'Bearer\x20'+_0x4e1ef9,'Origin':_0x29b9fa(0x200),'X-Woozlit-App-Secret':_0x5f4d3e,'X-Request-Signature':_0x38555b,'X-Request-Timestamp':_0x58c001},'body':JSON[_0x29b9fa(0x202)]({'model':_0x18eb8a,'messages':_0x11b27f,'stream':!![],'userId':_0x3ac8a9}),'signal':_0x23b123});if(!_0x5a1ce2['ok']){if(_0x5a1ce2[_0x29b9fa(0x1e2)]===0x1ad){const _0x563a02=_0x5a1ce2[_0x29b9fa(0x1d4)][_0x29b9fa(0x1d3)](_0x29b9fa(0x1f3)),_0x146620=_0x563a02?parseInt(_0x563a02):0x3c,_0x3d4d7a=await _0x5a1ce2[_0x29b9fa(0x1bd)]()[_0x29b9fa(0x1d5)](()=>({})),_0x54cd58=new Error(_0x3d4d7a[_0x29b9fa(0x1f5)]||'Rate\x20limit\x20exceeded.\x20Try\x20again\x20in\x20'+_0x146620+_0x29b9fa(0x1d6));_0x54cd58[_0x29b9fa(0x1e2)]=0x1ad,_0x54cd58['resetIn']=_0x146620,_0x54cd58[_0x29b9fa(0x1e8)]=!![];throw _0x54cd58;}const _0x3e003f=await _0x5a1ce2['text']();throw new Error(_0x29b9fa(0x1d7)+_0x5a1ce2[_0x29b9fa(0x1e2)]+_0x29b9fa(0x1de)+_0x3e003f);}if(!_0x5a1ce2['body'])throw new Error(_0x29b9fa(0x1dc));const _0x4603b2=_0x5a1ce2[_0x29b9fa(0x1db)]['getReader'](),_0x56f0b2=new TextDecoder();let _0x2a74e2='';const _0x29de61=[];while(!![]){const {done:_0x24388c,value:_0x4af6d3}=await _0x4603b2[_0x29b9fa(0x1e9)]();if(_0x24388c)break;const _0x2018cf=_0x56f0b2[_0x29b9fa(0x1c5)](_0x4af6d3,{'stream':!![]});if(_0x2018cf[_0x29b9fa(0x1f8)]('0:')){const _0x262809=_0x2018cf[_0x29b9fa(0x1be)]('\x0a');for(const _0x3419b0 of _0x262809){if(_0x3419b0[_0x29b9fa(0x1eb)]('0:')){const _0x259da1=_0x3419b0[_0x29b9fa(0x1ec)](0x2)['trim']();if(_0x259da1[_0x29b9fa(0x1eb)]('\x22')&&_0x259da1['endsWith']('\x22'))try{const _0x394cf1=JSON[_0x29b9fa(0x1c8)](_0x259da1);_0x2a74e2+=_0x394cf1;if(_0x3a06fb)_0x3a06fb(_0x394cf1);}catch{}}}}else{_0x2a74e2+=_0x2018cf;if(_0x3a06fb)_0x3a06fb(_0x2018cf);}}return{'content':_0x2a74e2,'toolCalls':_0x29de61};}export async function checkAuth(){const _0x322dd8=getToken();if(!_0x322dd8)return![];try{const _0x2d9ce2=getApiUrl(),_0x5d715a=await fetch(_0x2d9ce2+'/api/auth/verify',{'headers':{'Authorization':'Bearer\x20'+_0x322dd8}});return _0x5d715a['ok'];}catch{return![];}}function a17_0x3397(_0x8d6521,_0x348db0){_0x8d6521=_0x8d6521-0x1bc;const _0x4ab02d=a17_0x4ab0();let _0x339769=_0x4ab02d[_0x8d6521];return _0x339769;}export async function getUserUsage(){const _0x36ad26=a17_0x3397,_0x561bab=getToken();if(!_0x561bab)return null;try{const _0xd9677f=getApiUrl(),_0x305a2b=await fetch(_0xd9677f+'/api/user/usage',{'headers':{'Authorization':_0x36ad26(0x1fc)+_0x561bab}});if(!_0x305a2b['ok'])return null;return await _0x305a2b['json']();}catch(_0x2a02df){return null;}}
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;}}
@@ -1 +1 @@
1
- const a18_0x22a40a=a18_0x5550;(function(_0x404d50,_0x40a6e9){const _0x115807=a18_0x5550,_0x2d1aaf=_0x404d50();while(!![]){try{const _0x4cd8a0=-parseInt(_0x115807(0x161))/0x1*(-parseInt(_0x115807(0x15a))/0x2)+-parseInt(_0x115807(0x158))/0x3*(parseInt(_0x115807(0x14d))/0x4)+-parseInt(_0x115807(0x15e))/0x5+parseInt(_0x115807(0x15f))/0x6*(-parseInt(_0x115807(0x14f))/0x7)+-parseInt(_0x115807(0x15d))/0x8*(-parseInt(_0x115807(0x159))/0x9)+-parseInt(_0x115807(0x15c))/0xa+parseInt(_0x115807(0x150))/0xb;if(_0x4cd8a0===_0x40a6e9)break;else _0x2d1aaf['push'](_0x2d1aaf['shift']());}catch(_0x534b81){_0x2d1aaf['push'](_0x2d1aaf['shift']());}}}(a18_0x23ed,0x25f80));function a18_0x23ed(){const _0x125b87=['628730lqbqym','8ksRRcG','1423060svWIRf','24JyMtSZ','map','25oYTBhm','timestamp','get','124PgwjbO','set','249074qESfsH','3936988bBIqsU','woozlit-cli-history','shift','push','lastCleanup','now','message','entries','15126swyUTi','2577843WAhkwK','12584vDPsEX','filter'];a18_0x23ed=function(){return _0x125b87;};return a18_0x23ed();}import a18_0x2d8d3c from'conf';const WEEK_MS=0x7*0x18*0x3c*0x3c*0x3e8,config=new a18_0x2d8d3c({'projectName':a18_0x22a40a(0x151),'defaults':{'entries':[],'lastCleanup':Date[a18_0x22a40a(0x155)]()}});function a18_0x5550(_0x57d567,_0x5d551f){_0x57d567=_0x57d567-0x14c;const _0x23ed67=a18_0x23ed();let _0x55507b=_0x23ed67[_0x57d567];return _0x55507b;}function cleanup(){const _0x5d0b6a=a18_0x22a40a,_0x98baf7=Date['now'](),_0x4b07b3=config[_0x5d0b6a(0x14c)](_0x5d0b6a(0x154));if(_0x98baf7-_0x4b07b3<0x18*0x3c*0x3c*0x3e8)return;const _0x3a5e65=config[_0x5d0b6a(0x14c)](_0x5d0b6a(0x157)),_0x3f5703=_0x3a5e65[_0x5d0b6a(0x15b)](_0x4b96e6=>_0x98baf7-_0x4b96e6[_0x5d0b6a(0x162)]<WEEK_MS);config['set'](_0x5d0b6a(0x157),_0x3f5703),config[_0x5d0b6a(0x14e)]('lastCleanup',_0x98baf7);}export function addToHistory(_0x6b4c51){const _0x2024a7=a18_0x22a40a;cleanup();const _0x2684ec=config[_0x2024a7(0x14c)](_0x2024a7(0x157));_0x2684ec[_0x2024a7(0x153)]({'message':_0x6b4c51,'timestamp':Date[_0x2024a7(0x155)]()});if(_0x2684ec['length']>0x64)_0x2684ec[_0x2024a7(0x152)]();config[_0x2024a7(0x14e)](_0x2024a7(0x157),_0x2684ec);}export function getHistory(){const _0x1c38a4=a18_0x22a40a;return cleanup(),config[_0x1c38a4(0x14c)](_0x1c38a4(0x157))[_0x1c38a4(0x160)](_0x71de0e=>_0x71de0e[_0x1c38a4(0x156)]);}export function clearHistory(){const _0x5c300a=a18_0x22a40a;config[_0x5c300a(0x14e)](_0x5c300a(0x157),[]);}
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 a19_0x402cba=a19_0x3efb;function a19_0x3efb(_0x13e528,_0x5d7ccf){_0x13e528=_0x13e528-0xbf;const _0x407d55=a19_0x407d();let _0x3efbb1=_0x407d55[_0x13e528];return _0x3efbb1;}(function(_0x4f93b6,_0x4fe872){const _0x451af4=a19_0x3efb,_0x261b9f=_0x4f93b6();while(!![]){try{const _0x105711=-parseInt(_0x451af4(0xf2))/0x1*(-parseInt(_0x451af4(0xf1))/0x2)+-parseInt(_0x451af4(0xc7))/0x3*(parseInt(_0x451af4(0xec))/0x4)+-parseInt(_0x451af4(0xca))/0x5*(-parseInt(_0x451af4(0xbf))/0x6)+-parseInt(_0x451af4(0xde))/0x7*(parseInt(_0x451af4(0xee))/0x8)+-parseInt(_0x451af4(0xef))/0x9*(-parseInt(_0x451af4(0xe9))/0xa)+parseInt(_0x451af4(0xdc))/0xb*(-parseInt(_0x451af4(0x10c))/0xc)+parseInt(_0x451af4(0xd7))/0xd*(parseInt(_0x451af4(0xd8))/0xe);if(_0x105711===_0x4fe872)break;else _0x261b9f['push'](_0x261b9f['shift']());}catch(_0x4db386){_0x261b9f['push'](_0x261b9f['shift']());}}}(a19_0x407d,0x8d49e));import{execSync}from'child_process';import a19_0x3724e9 from'path';function a19_0x407d(){const _0x320c16=['Directory\x20','1420mswRDq','npm\x20install','info','3075692cTMhUP','build/index.js','304ZEBaki','5508nkHIlO','...','42Umxhuj','45111eOTJoR','npm','error','Detected\x20entry\x20point:\x20','success','servers','Successfully\x20installed\x20and\x20added\x20\x27','split','src/index.ts','scripts','2.\x20Load\x20unpacked\x20extension\x20in\x20Chrome\x20Developer\x20Mode','Building\x20project...','https://github.com/','index.js','git\x20clone\x20','pnpm\x20install','\x20to\x20','mcp-chrome','warn','pnpm\x20add\x20-g\x20mcp-chrome-bridge','pnpm','Trying\x20npm\x20as\x20fallback...','mkdirSync','homedir','inherit','chrome','838344UEsRhq','Unknown\x20installation\x20source.\x20Please\x20provide\x20a\x20GitHub\x20URL\x20or\x20\x27mcp-chrome-bridge\x27.','tsx','github.com','51138oSAqBP','parse','dist/index.js','.git','Failed\x20to\x20update\x20repo.\x20Try\x20checking\x20it\x20out\x20manually\x20or\x20deleting\x20the\x20folder.','header','bin','3.\x20Click\x20extension\x20icon\x20and\x20\x27Connect\x27','3xuufDe','Failed\x20to\x20install\x20mcp-chrome-bridge\x20using\x20pnpm:\x20','node','460OSiZHk','Failed\x20to\x20install\x20mcp-chrome-bridge:\x20','pnpm-lock.yaml','yarn','\x20run\x20build','join','git\x20pull','http://127.0.0.1:12306/mcp','keys','utf-8','string','Installing\x20mcp-chrome-bridge\x20globally...','build','26hSVWHK','4317978DpYHci','4.\x20Make\x20sure\x20\x27mcp-chrome-bridge\x27\x20is\x20running\x20(if\x20not\x20started\x20automatically)','yarn\x20install','Failed\x20to\x20install/build:\x20','165InLfVz','mcp-chrome-bridge','7301GEPeZR','Next\x20Steps:','existsSync','Try\x20running\x20with\x20sudo\x20or\x20administrative\x20privileges.','readFileSync','endsWith','Failed\x20to\x20clone\x20repository:\x20','Could\x20not\x20auto-detect\x20entry\x20point.\x20Please\x20add\x20the\x20server\x20manually\x20using\x20\x27woozlit\x20mcp\x20add\x27.','package.json','yarn.lock'];a19_0x407d=function(){return _0x320c16;};return a19_0x407d();}import a19_0x3b9976 from'fs';import a19_0x408b84 from'os';import*as a19_0x16f230 from'../ui/output.js';import{addMcpServer,addMcpHttpServer}from'../config/mcp.js';const SERVERS_DIR=a19_0x3724e9[a19_0x402cba(0xcf)](a19_0x408b84[a19_0x402cba(0x109)](),'.woozlit',a19_0x402cba(0xf7));function ensureServersDir(){const _0xc024ad=a19_0x402cba;!a19_0x3b9976[_0xc024ad(0xe0)](SERVERS_DIR)&&a19_0x3b9976[_0xc024ad(0x108)](SERVERS_DIR,{'recursive':!![]});}function getRepoName(_0x9a5132){const _0x3b6ba1=a19_0x402cba,_0x261314=_0x9a5132[_0x3b6ba1(0xf9)]('/');let _0x1d52eb=_0x261314[_0x261314['length']-0x1];return _0x1d52eb[_0x3b6ba1(0xe3)]('.git')&&(_0x1d52eb=_0x1d52eb['slice'](0x0,-0x4)),_0x1d52eb;}async function installFromGithub(_0xcfad4,_0x3e7e48){const _0x2fe11f=a19_0x402cba;ensureServersDir();const _0x792f37=_0x3e7e48||getRepoName(_0xcfad4),_0x507a25=a19_0x3724e9[_0x2fe11f(0xcf)](SERVERS_DIR,_0x792f37);a19_0x16f230[_0x2fe11f(0xeb)]('Cloning\x20'+_0xcfad4+_0x2fe11f(0x102)+_0x507a25+_0x2fe11f(0xf0));if(a19_0x3b9976[_0x2fe11f(0xe0)](_0x507a25)){a19_0x16f230[_0x2fe11f(0x104)](_0x2fe11f(0xe8)+_0x507a25+'\x20already\x20exists.\x20Updating...');try{execSync(_0x2fe11f(0xd0),{'cwd':_0x507a25,'stdio':_0x2fe11f(0x10a)});}catch(_0x15cb5f){a19_0x16f230['error'](_0x2fe11f(0xc3));return;}}else try{execSync(_0x2fe11f(0x100)+_0xcfad4+'\x20'+_0x507a25,{'stdio':_0x2fe11f(0x10a)});}catch(_0x3bffc1){a19_0x16f230[_0x2fe11f(0xf4)](_0x2fe11f(0xe4)+_0x3bffc1);return;}a19_0x16f230[_0x2fe11f(0xeb)]('Installing\x20dependencies...');try{const _0x3fa914=a19_0x3b9976['existsSync'](a19_0x3724e9['join'](_0x507a25,_0x2fe11f(0xcc))),_0x172dd7=a19_0x3b9976['existsSync'](a19_0x3724e9[_0x2fe11f(0xcf)](_0x507a25,_0x2fe11f(0xe7))),_0x5be77=_0x3fa914?_0x2fe11f(0x101):_0x172dd7?_0x2fe11f(0xda):_0x2fe11f(0xea);execSync(_0x5be77,{'cwd':_0x507a25,'stdio':_0x2fe11f(0x10a)});const _0x4fa18d=a19_0x3724e9[_0x2fe11f(0xcf)](_0x507a25,_0x2fe11f(0xe6));if(a19_0x3b9976[_0x2fe11f(0xe0)](_0x4fa18d)){const _0x6ee240=JSON[_0x2fe11f(0xc0)](a19_0x3b9976[_0x2fe11f(0xe2)](_0x4fa18d,'utf-8'));_0x6ee240[_0x2fe11f(0xfb)]&&_0x6ee240['scripts'][_0x2fe11f(0xd6)]&&(a19_0x16f230['info'](_0x2fe11f(0xfd)),execSync((_0x3fa914?_0x2fe11f(0x106):_0x172dd7?_0x2fe11f(0xcd):_0x2fe11f(0xf3))+_0x2fe11f(0xce),{'cwd':_0x507a25,'stdio':_0x2fe11f(0x10a)}));}}catch(_0x42dfc6){a19_0x16f230[_0x2fe11f(0xf4)](_0x2fe11f(0xdb)+_0x42dfc6);return;}const _0x45aa18=a19_0x3724e9['join'](_0x507a25,'package.json');let _0xda03a0='';if(a19_0x3b9976['existsSync'](_0x45aa18)){const _0x18e8fc=JSON['parse'](a19_0x3b9976['readFileSync'](_0x45aa18,_0x2fe11f(0xd3)));if(_0x18e8fc['bin']){if(typeof _0x18e8fc[_0x2fe11f(0xc5)]===_0x2fe11f(0xd4))_0xda03a0=a19_0x3724e9['join'](_0x507a25,_0x18e8fc[_0x2fe11f(0xc5)]);else{if(typeof _0x18e8fc[_0x2fe11f(0xc5)]==='object'){const _0x42d265=Object[_0x2fe11f(0xd2)](_0x18e8fc[_0x2fe11f(0xc5)])[0x0];_0xda03a0=a19_0x3724e9[_0x2fe11f(0xcf)](_0x507a25,_0x18e8fc[_0x2fe11f(0xc5)][_0x42d265]);}}}else _0x18e8fc['main']&&(_0xda03a0=a19_0x3724e9[_0x2fe11f(0xcf)](_0x507a25,_0x18e8fc['main']));}if(!_0xda03a0){const _0x2879f0=[_0x2fe11f(0xc1),_0x2fe11f(0xed),_0x2fe11f(0xfa),_0x2fe11f(0xff)];for(const _0x459431 of _0x2879f0){if(a19_0x3b9976[_0x2fe11f(0xe0)](a19_0x3724e9['join'](_0x507a25,_0x459431))){_0xda03a0=a19_0x3724e9[_0x2fe11f(0xcf)](_0x507a25,_0x459431);break;}}}if(!_0xda03a0){a19_0x16f230[_0x2fe11f(0xf4)](_0x2fe11f(0xe5));return;}const _0x46d8e4=_0xda03a0[_0x2fe11f(0xe3)]('.ts')?_0x2fe11f(0x10e):_0x2fe11f(0xc9);a19_0x16f230[_0x2fe11f(0xeb)](_0x2fe11f(0xf5)+_0xda03a0),addMcpServer(_0x792f37,_0x46d8e4,[_0xda03a0]),a19_0x16f230['success'](_0x2fe11f(0xf8)+_0x792f37+'\x27\x20from\x20GitHub!');}async function installMcpChromeBridge(){const _0x1fe54c=a19_0x402cba;a19_0x16f230[_0x1fe54c(0xeb)](_0x1fe54c(0xd5));try{execSync(_0x1fe54c(0x105),{'stdio':_0x1fe54c(0x10a)});}catch(_0x53306f){a19_0x16f230['error'](_0x1fe54c(0xc8)+_0x53306f),a19_0x16f230['info'](_0x1fe54c(0x107));try{execSync('npm\x20install\x20-g\x20mcp-chrome-bridge',{'stdio':_0x1fe54c(0x10a)});}catch(_0x58f0f5){a19_0x16f230[_0x1fe54c(0xf4)](_0x1fe54c(0xcb)+_0x58f0f5),a19_0x16f230[_0x1fe54c(0xeb)](_0x1fe54c(0xe1));return;}}const _0x2356ad=_0x1fe54c(0xd1);addMcpHttpServer(_0x1fe54c(0x103),_0x2356ad),a19_0x16f230[_0x1fe54c(0xf6)]('Installed\x20mcp-chrome-bridge\x20and\x20added\x20configuration!'),a19_0x16f230[_0x1fe54c(0xc4)](_0x1fe54c(0xdf)),a19_0x16f230[_0x1fe54c(0xeb)]('1.\x20Download\x20the\x20Chrome\x20Extension:\x20https://github.com/hangwin/mcp-chrome/releases'),a19_0x16f230[_0x1fe54c(0xeb)](_0x1fe54c(0xfc)),a19_0x16f230[_0x1fe54c(0xeb)](_0x1fe54c(0xc6)),a19_0x16f230['info'](_0x1fe54c(0xd9));}export async function installMcpServer(_0x3cdfbc,_0x2ab1a0){const _0x2d4715=a19_0x402cba;if(_0x3cdfbc===_0x2d4715(0xdd)||_0x3cdfbc===_0x2d4715(0x10b))return installMcpChromeBridge();if(_0x3cdfbc['includes'](_0x2d4715(0x10f))||_0x3cdfbc['endsWith'](_0x2d4715(0xc2)))return installFromGithub(_0x3cdfbc,_0x2ab1a0);if(/^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/['test'](_0x3cdfbc))return installFromGithub(_0x2d4715(0xfe)+_0x3cdfbc+_0x2d4715(0xc2),_0x2ab1a0);a19_0x16f230[_0x2d4715(0xf4)](_0x2d4715(0x10d));}
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));}
@@ -1 +1 @@
1
- const a20_0x541cbe=a20_0x16e9;(function(_0x45bd19,_0x31de74){const _0x37fbc0=a20_0x16e9,_0x3fc941=_0x45bd19();while(!![]){try{const _0x58076e=-parseInt(_0x37fbc0(0x1a0))/0x1+parseInt(_0x37fbc0(0x197))/0x2*(parseInt(_0x37fbc0(0x196))/0x3)+-parseInt(_0x37fbc0(0x19f))/0x4+-parseInt(_0x37fbc0(0x19b))/0x5*(-parseInt(_0x37fbc0(0x198))/0x6)+-parseInt(_0x37fbc0(0x19a))/0x7*(parseInt(_0x37fbc0(0x1a9))/0x8)+parseInt(_0x37fbc0(0x1a8))/0x9*(parseInt(_0x37fbc0(0x199))/0xa)+-parseInt(_0x37fbc0(0x1a4))/0xb*(-parseInt(_0x37fbc0(0x19c))/0xc);if(_0x58076e===_0x31de74)break;else _0x3fc941['push'](_0x3fc941['shift']());}catch(_0x3652f1){_0x3fc941['push'](_0x3fc941['shift']());}}}(a20_0x3de7,0xb15d7));function a20_0x16e9(_0x4bf2c5,_0x370369){_0x4bf2c5=_0x4bf2c5-0x196;const _0x3de70f=a20_0x3de7();let _0x16e985=_0x3de70f[_0x4bf2c5];return _0x16e985;}const platform=process[a20_0x541cbe(0x1a5)],arch=process['arch'];export function getPlatform(){const _0x4ef0e2=a20_0x541cbe;if(platform==='win32')return _0x4ef0e2(0x1a6);if(platform===_0x4ef0e2(0x1a1))return _0x4ef0e2(0x1a2);return _0x4ef0e2(0x19e);}export function getArch(){return arch;}function a20_0x3de7(){const _0x25b141=['linux','2530068rxWxhm','1313311nuQHoZ','darwin','macos','win32','9049359ETinRR','platform','windows','sudo\x20','126pnICFJ','104exXxAR','8037ftgrcE','908tFcgcE','322686mDwHII','959470gqwIot','469119qSUbFs','15gDhwXA','12EASBFb','macOS'];a20_0x3de7=function(){return _0x25b141;};return a20_0x3de7();}export function isWindows(){const _0x24968d=a20_0x541cbe;return platform===_0x24968d(0x1a3);}export function isMac(){const _0x8355a6=a20_0x541cbe;return platform===_0x8355a6(0x1a1);}export function isLinux(){const _0x47e488=a20_0x541cbe;return platform===_0x47e488(0x19e);}export function getShellPrefix(){const _0x198c01=a20_0x541cbe;return isWindows()?'':_0x198c01(0x1a7);}export function getPlatformInfo(){const _0x19c2cb=a20_0x541cbe,_0x56dbbb=getPlatform(),_0x42fa56=_0x56dbbb===_0x19c2cb(0x1a6)?'Windows':_0x56dbbb===_0x19c2cb(0x1a2)?_0x19c2cb(0x19d):'Linux';return _0x42fa56+'\x20('+arch+')';}
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+')';}
@@ -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;
@@ -1 +1 @@
1
- const a21_0x5543da=a21_0x387c;(function(_0x2b9cc6,_0x2e0077){const _0x5d3b19=a21_0x387c,_0x1a85d2=_0x2b9cc6();while(!![]){try{const _0x3b1185=parseInt(_0x5d3b19(0x8e))/0x1*(parseInt(_0x5d3b19(0x90))/0x2)+parseInt(_0x5d3b19(0x95))/0x3*(parseInt(_0x5d3b19(0x9c))/0x4)+parseInt(_0x5d3b19(0x96))/0x5*(parseInt(_0x5d3b19(0x85))/0x6)+parseInt(_0x5d3b19(0x9a))/0x7+-parseInt(_0x5d3b19(0x8f))/0x8*(-parseInt(_0x5d3b19(0x88))/0x9)+-parseInt(_0x5d3b19(0x8c))/0xa+-parseInt(_0x5d3b19(0x8b))/0xb*(parseInt(_0x5d3b19(0x93))/0xc);if(_0x3b1185===_0x2e0077)break;else _0x1a85d2['push'](_0x1a85d2['shift']());}catch(_0x3d86ff){_0x1a85d2['push'](_0x1a85d2['shift']());}}}(a21_0x1d5b,0x2a4eb));import a21_0x393244 from'conf';const config=new a21_0x393244({'projectName':a21_0x5543da(0x98)});export function getToken(){const _0x177503=a21_0x5543da;return config[_0x177503(0x86)]('token');}export function setToken(_0x4f92d4){const _0x56b767=a21_0x5543da;config[_0x56b767(0x8d)]('token',_0x4f92d4);}export function clearToken(){const _0x15ee47=a21_0x5543da;config[_0x15ee47(0x99)](_0x15ee47(0x94));}export function getUser(){const _0x540a92=a21_0x5543da;return{'userId':config[_0x540a92(0x86)]('userId'),'email':config[_0x540a92(0x86)](_0x540a92(0x91)),'displayName':config[_0x540a92(0x86)]('displayName')};}export function setUser(_0x5bd266,_0x1ba1d5,_0x457f89){const _0x19e623=a21_0x5543da;config['set'](_0x19e623(0x89),_0x5bd266),config[_0x19e623(0x8d)](_0x19e623(0x91),_0x1ba1d5),config[_0x19e623(0x8d)](_0x19e623(0x97),_0x457f89);}export function clearUser(){const _0x5eb8e0=a21_0x5543da;config[_0x5eb8e0(0x99)](_0x5eb8e0(0x89)),config[_0x5eb8e0(0x99)](_0x5eb8e0(0x91)),config[_0x5eb8e0(0x99)](_0x5eb8e0(0x97));}export function getSelectedModel(){const _0x32a706=a21_0x5543da;return config['get'](_0x32a706(0x9b))||_0x32a706(0x92);}export function setSelectedModel(_0x2097b2){const _0x24d4d2=a21_0x5543da;config[_0x24d4d2(0x8d)]('selectedModel',_0x2097b2);}export function getRules(){const _0x10eae7=a21_0x5543da;return config['get'](_0x10eae7(0x8a))||[];}export function addRule(_0x3fdda5){const _0x394f3f=a21_0x5543da,_0x478252=getRules();_0x478252[_0x394f3f(0x87)](_0x3fdda5),config[_0x394f3f(0x8d)](_0x394f3f(0x8a),_0x478252);}function a21_0x1d5b(){const _0x497586=['3275350XmraWi','set','92634BdgiCE','536rFfcMt','2qXYjos','email','xiaomi/mimo-v2-flash:free','48IPYcPC','token','820929iJJZnV','4985wqQtQv','displayName','woozlit-cli','delete','747117QkTzlU','selectedModel','4YaWfjR','30viZuuU','get','push','13347swmsAg','userId','rules','210452hXkiQE'];a21_0x1d5b=function(){return _0x497586;};return a21_0x1d5b();}function a21_0x387c(_0x1598f3,_0x3b75d1){_0x1598f3=_0x1598f3-0x85;const _0x1d5b46=a21_0x1d5b();let _0x387ce9=_0x1d5b46[_0x1598f3];return _0x387ce9;}export function clearRules(){const _0x82ce63=a21_0x5543da;config[_0x82ce63(0x8d)]('rules',[]);}export function isLoggedIn(){const _0x57ddba=a21_0x5543da;return!!config[_0x57ddba(0x86)](_0x57ddba(0x94))&&!!config[_0x57ddba(0x86)](_0x57ddba(0x89));}export function logout(){clearToken(),clearUser();}
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
- const a22_0x26a554=a22_0x30e0;function a22_0x30e0(_0x4af19f,_0x108a1e){_0x4af19f=_0x4af19f-0x1a2;const _0x1537c9=a22_0x1537();let _0x30e060=_0x1537c9[_0x4af19f];return _0x30e060;}(function(_0x147d7c,_0x3391a0){const _0x1b9d12=a22_0x30e0,_0x15b002=_0x147d7c();while(!![]){try{const _0x185d48=parseInt(_0x1b9d12(0x1ab))/0x1+-parseInt(_0x1b9d12(0x1a4))/0x2+-parseInt(_0x1b9d12(0x1aa))/0x3*(parseInt(_0x1b9d12(0x1a8))/0x4)+parseInt(_0x1b9d12(0x1b6))/0x5*(-parseInt(_0x1b9d12(0x1a5))/0x6)+parseInt(_0x1b9d12(0x1b8))/0x7+-parseInt(_0x1b9d12(0x1b7))/0x8+parseInt(_0x1b9d12(0x1bf))/0x9;if(_0x185d48===_0x3391a0)break;else _0x15b002['push'](_0x15b002['shift']());}catch(_0x14818c){_0x15b002['push'](_0x15b002['shift']());}}}(a22_0x1537,0x59b4d));import a22_0x391a30 from'chalk';const CURRENT_VERSION=a22_0x26a554(0x1be);function a22_0x1537(){const _0x547cca=['latest','map','green','inherit','\x20\x20Update\x20Available!\x20','84650DbRWvm','5595168alCRDX','2840215MNPrnf','error','npm\x20install\x20-g\x20woozlit','log','timeout','\x20\x20✔\x20Woozlit\x20updated\x20successfully!','2.0.0','9162072TMMzBL','\x20\x20Please\x20restart\x20the\x20CLI\x20to\x20use\x20the\x20new\x20version.','json','application/json','exit','36184dQyzhZ','210hbWXou','child_process','yellow','37116UMDhTo','dim','69oINCKd','467139JSEcCl','split','red','repeat','https://registry.npmjs.org/woozlit','gray'];a22_0x1537=function(){return _0x547cca;};return a22_0x1537();}export async function checkForUpdate(){const _0x31ba2b=a22_0x26a554;try{const _0x56e882=await fetch(_0x31ba2b(0x1af),{'headers':{'Accept':_0x31ba2b(0x1a2)},'signal':AbortSignal[_0x31ba2b(0x1bc)](0x5dc)});if(!_0x56e882['ok'])return;const _0x5ae4d0=await _0x56e882[_0x31ba2b(0x1c1)](),_0x10bc39=_0x5ae4d0['dist-tags']?.[_0x31ba2b(0x1b1)];_0x10bc39&&_0x10bc39!==CURRENT_VERSION&&(isNewer(_0x10bc39,CURRENT_VERSION)&&printUpdateBox(_0x10bc39,CURRENT_VERSION));}catch{}}function isNewer(_0x470165,_0x32e44f){const _0x517c37=a22_0x26a554,_0x581828=_0x470165[_0x517c37(0x1ac)]('.')['map'](Number),_0x18d358=_0x32e44f['split']('.')[_0x517c37(0x1b2)](Number);for(let _0xf6086=0x0;_0xf6086<0x3;_0xf6086++){if(_0x581828[_0xf6086]>_0x18d358[_0xf6086])return!![];if(_0x581828[_0xf6086]<_0x18d358[_0xf6086])return![];}return![];}function printUpdateBox(_0x18ffa3,_0x3ccbd2){const _0x3f9efd=a22_0x26a554,_0x3a8d45=a22_0x391a30[_0x3f9efd(0x1a7)]('─'[_0x3f9efd(0x1ae)](0x32));console[_0x3f9efd(0x1bb)](),console[_0x3f9efd(0x1bb)](_0x3a8d45),console['log'](a22_0x391a30[_0x3f9efd(0x1a7)](_0x3f9efd(0x1b5)+a22_0x391a30[_0x3f9efd(0x1a9)](_0x3ccbd2)+'\x20→\x20'+a22_0x391a30[_0x3f9efd(0x1b3)](_0x18ffa3))),console['log'](a22_0x391a30[_0x3f9efd(0x1b0)]('\x20\x20Auto-updating\x20to\x20version\x20'+_0x18ffa3+'...')),console[_0x3f9efd(0x1bb)](_0x3a8d45),console[_0x3f9efd(0x1bb)]();try{const {execSync:_0x1dfbb5}=require(_0x3f9efd(0x1a6));_0x1dfbb5(_0x3f9efd(0x1ba),{'stdio':_0x3f9efd(0x1b4)}),console[_0x3f9efd(0x1bb)](),console[_0x3f9efd(0x1bb)](a22_0x391a30['green'](_0x3f9efd(0x1bd))),console[_0x3f9efd(0x1bb)](a22_0x391a30['dim'](_0x3f9efd(0x1c0))),console['log'](),process[_0x3f9efd(0x1a3)](0x0);}catch(_0x4bd233){console[_0x3f9efd(0x1b9)](a22_0x391a30[_0x3f9efd(0x1ad)]('\x20\x20Failed\x20to\x20auto-update.\x20Please\x20run:\x20npm\x20install\x20-g\x20woozlit'));}}
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)));}}
@@ -0,0 +1,4 @@
1
+ declare const response = "<text>Hello world</text>";
2
+ declare const cleanResponse: string;
3
+ declare const responseWithReasoning = "<reasoning>Thinking...</reasoning><text>Target content</text>";
4
+ declare const cleanResponse2: string;