woozlit 2.0.2 → 2.0.3

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 (50) hide show
  1. package/dist/auth/login.js +1 -1
  2. package/dist/browser/index.js +1 -1
  3. package/dist/browser/server.js +1 -1
  4. package/dist/browser/tools.js +1 -1
  5. package/dist/chat/agent.js +1 -1
  6. package/dist/config/mcp.js +1 -1
  7. package/dist/config/settings.js +1 -1
  8. package/dist/discord/client.js +1 -1
  9. package/dist/discord/config.js +1 -1
  10. package/dist/discord/index.js +1 -1
  11. package/dist/discord/setup.js +1 -1
  12. package/dist/email/config.js +1 -1
  13. package/dist/email/index.js +1 -1
  14. package/dist/email/service.js +1 -1
  15. package/dist/email/setup.js +1 -1
  16. package/dist/github/api.js +1 -1
  17. package/dist/github/auth.js +1 -1
  18. package/dist/github/auto-setup.js +1 -1
  19. package/dist/github/index.js +1 -1
  20. package/dist/github/manual-setup.js +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/mcp-servers/computer-use.js +1 -1
  23. package/dist/services/bot-manager.js +1 -1
  24. package/dist/services/voice-agent.js +1 -1
  25. package/dist/telegram/bot.js +1 -1
  26. package/dist/telegram/config.js +1 -1
  27. package/dist/telegram/index.js +1 -1
  28. package/dist/telegram/reminders.js +1 -1
  29. package/dist/telegram/setup.js +1 -1
  30. package/dist/tools/command.js +1 -1
  31. package/dist/tools/file.js +1 -1
  32. package/dist/tools/index.js +1 -1
  33. package/dist/tools/mcp.js +1 -1
  34. package/dist/tools/rollback.js +1 -1
  35. package/dist/tools/rules.js +1 -1
  36. package/dist/twilio/config.js +1 -1
  37. package/dist/twilio/index.js +1 -1
  38. package/dist/twilio/server.js +1 -1
  39. package/dist/twilio/setup.js +1 -1
  40. package/dist/ui/output.js +1 -1
  41. package/dist/ui/select.js +1 -1
  42. package/dist/ui/themes.js +1 -1
  43. package/dist/utils/api.js +1 -1
  44. package/dist/utils/history.js +1 -1
  45. package/dist/utils/mcp-installer.js +1 -1
  46. package/dist/utils/platform.js +1 -1
  47. package/dist/utils/storage.js +1 -1
  48. package/dist/utils/update-check.js +1 -1
  49. package/dist/verify_repro.js +1 -1
  50. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2038c2,_0x211ace){const _0x155882=a37_0x171e,_0x92d76f=_0x2038c2();while(!![]){try{const _0x18d4a1=parseInt(_0x155882(0x172))/0x1*(parseInt(_0x155882(0x16d))/0x2)+parseInt(_0x155882(0x195))/0x3*(parseInt(_0x155882(0x181))/0x4)+parseInt(_0x155882(0x189))/0x5+parseInt(_0x155882(0x16a))/0x6+-parseInt(_0x155882(0x183))/0x7+parseInt(_0x155882(0x1ba))/0x8*(-parseInt(_0x155882(0x17b))/0x9)+-parseInt(_0x155882(0x17e))/0xa;if(_0x18d4a1===_0x211ace)break;else _0x92d76f['push'](_0x92d76f['shift']());}catch(_0x2c3aa5){_0x92d76f['push'](_0x92d76f['shift']());}}}(a37_0x1a27,0x7542d),(function(_0x53c2e5,_0x1587db){const _0x4a3f51=a37_0x171e,_0x2ae7c7=a37_0x185b,_0x454434=_0x53c2e5();while(!![]){try{const _0x4affb9=-parseInt(_0x2ae7c7(0x1c6))/0x1+parseInt(_0x2ae7c7(0x18c))/0x2*(parseInt(_0x2ae7c7(0x1ca))/0x3)+-parseInt(_0x2ae7c7(0x183))/0x4*(-parseInt(_0x2ae7c7(0x19d))/0x5)+parseInt(_0x2ae7c7(0x1b7))/0x6+parseInt(_0x2ae7c7(0x1b8))/0x7+-parseInt(_0x2ae7c7(0x190))/0x8+-parseInt(_0x2ae7c7(0x192))/0x9*(parseInt(_0x2ae7c7(0x196))/0xa);if(_0x4affb9===_0x1587db)break;else _0x454434['push'](_0x454434[_0x4a3f51(0x18c)]());}catch(_0x35b55a){_0x454434['push'](_0x454434['shift']());}}}(a37_0x5bab,0x1a0bc),function(_0x2c99a1,_0x43bd21){const _0x3bb7a8=a37_0x171e,_0x3de4c4=a37_0x185b,_0x36fa1d=a37_0x4466,_0x1d55cc=_0x2c99a1();while(!![]){try{const _0x5c617e=-parseInt(_0x36fa1d(0x158))/0x1+-parseInt(_0x36fa1d(0x12f))/0x2*(-parseInt(_0x36fa1d(0x15e))/0x3)+-parseInt(_0x36fa1d(0x124))/0x4+-parseInt(_0x36fa1d(0x163))/0x5*(-parseInt(_0x36fa1d(0x159))/0x6)+parseInt(_0x36fa1d(0x16b))/0x7+parseInt(_0x36fa1d(0x143))/0x8*(-parseInt(_0x36fa1d(0x162))/0x9)+parseInt(_0x36fa1d(0x132))/0xa;if(_0x5c617e===_0x43bd21)break;else _0x1d55cc[_0x3de4c4(0x186)](_0x1d55cc[_0x3bb7a8(0x18c)]());}catch(_0x12b3fe){_0x1d55cc[_0x3de4c4(0x186)](_0x1d55cc[_0x3bb7a8(0x18c)]());}}}(a37_0x4ba3,0x35a17)));function a37_0x5bab(){const _0x535251=a37_0x171e,_0x4f28b9=['[Twilio]\x20Call\x20initiated:\x20',_0x535251(0x163),_0x535251(0x184),_0x535251(0x180),_0x535251(0x18f),'info',_0x535251(0x15f),'...',_0x535251(0x168),_0x535251(0x1a6),_0x535251(0x16e),_0x535251(0x1b8),_0x535251(0x18d),_0x535251(0x1b0),_0x535251(0x162),_0x535251(0x1a5),_0x535251(0x17f),_0x535251(0x1b1),_0x535251(0x174),'150628WWgkEp','includes','moreInfo','Hello,\x20this\x20is\x20Woozlit.\x20How\x20can\x20I\x20help\x20you?',_0x535251(0x194),_0x535251(0x1a2),_0x535251(0x197),_0x535251(0x15e),'pathname',_0x535251(0x173),_0x535251(0x17c),_0x535251(0x19f),_0x535251(0x190),'dim',_0x535251(0x18e),_0x535251(0x1ad),_0x535251(0x188),_0x535251(0x1a4),'[Twilio]\x20Calling\x20',_0x535251(0x19b),_0x535251(0x17d),'url',_0x535251(0x1a3),_0x535251(0x199),_0x535251(0x192),_0x535251(0x1b5),_0x535251(0x1b4),_0x535251(0x175),_0x535251(0x169),_0x535251(0x1b9),_0x535251(0x160),_0x535251(0x1a0),_0x535251(0x186),_0x535251(0x167),_0x535251(0x161),'authToken',_0x535251(0x1af),_0x535251(0x19c),_0x535251(0x1b6),_0x535251(0x18b),_0x535251(0x179),_0x535251(0x1a8),_0x535251(0x18a),'667158xfkARR','1268127zZePVD',_0x535251(0x19d),_0x535251(0x178),_0x535251(0x177),_0x535251(0x193),_0x535251(0x19e),_0x535251(0x1ab),_0x535251(0x1ac),_0x535251(0x185),_0x535251(0x171),_0x535251(0x1b2),'sid',_0x535251(0x1ae),_0x535251(0x15d),_0x535251(0x165),_0x535251(0x1b7),'gemini-live-2.5-flash-native-audio',_0x535251(0x1b3),_0x535251(0x1aa)];return a37_0x5bab=function(){return _0x4f28b9;},a37_0x5bab();}import a37_0x1693c9 from'http';import a37_0x101e7a from'twilio';import a37_0x349c10 from'@ngrok/ngrok';import*as a37_0xba037e from'./config.js';import*as a37_0x4bc2f4 from'../ui/output.js';function a37_0x185b(_0x36b22a,_0x1825a8){_0x36b22a=_0x36b22a-0x17d;const _0x227a0a=a37_0x5bab();let _0x4f2d01=_0x227a0a[_0x36b22a];return _0x4f2d01;}import{getSelectedModel}from'../utils/storage.js';import{sendChatMessage}from'../utils/api.js';function a37_0x4466(_0x14a584,_0x481c40){_0x14a584=_0x14a584-0x122;const _0xbd138c=a37_0x4ba3();let _0x56fbe9=_0xbd138c[_0x14a584];return _0x56fbe9;}let server=null,isRunning=![],listener=null;export async function startBot(){const _0x55a071=a37_0x171e,_0x21e660=a37_0x185b,_0x12ee38=a37_0x4466;if(!a37_0xba037e[_0x12ee38(0x166)]())return![];if(isRunning)return!![];const _0x5586f9=a37_0xba037e[_0x12ee38(0x169)](),_0xa80998=a37_0x101e7a(_0x5586f9[_0x12ee38(0x13a)],_0x5586f9[_0x21e660(0x1af)]);server=a37_0x1693c9[_0x12ee38(0x139)](async(_0x57e550,_0x37e73a)=>{const _0x51f06b=a37_0x171e,_0x5a0deb=_0x21e660,_0x51a079=_0x12ee38,_0x3348c7=new URL(_0x57e550[_0x51a079(0x15f)]||'/',_0x51a079(0x151)+_0x5586f9[_0x51a079(0x168)]);if(_0x57e550[_0x51a079(0x160)]===_0x51a079(0x16a)&&_0x3348c7[_0x5a0deb(0x194)]===_0x51a079(0x13c)){let _0x317a2d='';_0x57e550['on'](_0x51a079(0x154),_0x4ce066=>_0x317a2d+=_0x4ce066),_0x57e550['on'](_0x51a079(0x145),async()=>{const _0x21bdd2=a37_0x171e,_0x1bf62e=_0x5a0deb,_0x1d9720=_0x51a079,_0x6e344e=new URLSearchParams(_0x317a2d),_0x3e41d4=_0x6e344e[_0x1d9720(0x137)](_0x1d9720(0x135)),_0x138695=_0x6e344e['get'](_0x1bf62e(0x1bb));if(_0x3e41d4&&_0x138695){a37_0x4bc2f4[_0x21bdd2(0x1a7)](_0x1d9720(0x152)+_0x3e41d4+':\x20'+_0x138695);try{const _0x47445d=await sendChatMessage(getSelectedModel(),[{'role':_0x1d9720(0x134),'content':_0x138695}]),_0x292b93=new a37_0x101e7a[(_0x1d9720(0x15b))][(_0x1bf62e(0x1a2))]();_0x292b93[_0x1d9720(0x164)](_0x47445d[_0x1d9720(0x131)]),_0x37e73a[_0x1d9720(0x15d)](0xc8,{'Content-Type':_0x1d9720(0x122)}),_0x37e73a[_0x1d9720(0x145)](_0x292b93[_0x1d9720(0x13b)]());}catch(_0x46761c){a37_0x4bc2f4[_0x1d9720(0x14c)](_0x1d9720(0x14a)+_0x46761c[_0x1d9720(0x164)]),_0x37e73a[_0x1d9720(0x15d)](0xc8),_0x37e73a[_0x1d9720(0x145)]();}}else _0x37e73a[_0x1d9720(0x15d)](0x190),_0x37e73a[_0x1d9720(0x145)]();});return;}if(_0x57e550[_0x51a079(0x160)]===_0x5a0deb(0x1b9)&&_0x3348c7[_0x51f06b(0x1bb)]===_0x51a079(0x12e)){const _0x225ec8=new a37_0x101e7a[(_0x51f06b(0x1b5))][(_0x51a079(0x138))](),_0x134232=_0x225ec8[_0x51a079(0x150)]({'input':[_0x5a0deb(0x185)],'action':_0x51a079(0x149),'speechTimeout':_0x51a079(0x12b)});_0x134232[_0x51a079(0x133)](_0x5a0deb(0x18f)),_0x225ec8[_0x51a079(0x147)](_0x51a079(0x12e)),_0x37e73a[_0x51a079(0x15d)](0xc8,{'Content-Type':_0x51a079(0x122)}),_0x37e73a[_0x51a079(0x145)](_0x225ec8[_0x51a079(0x13b)]());return;}if(_0x57e550[_0x51a079(0x160)]===_0x51a079(0x16a)&&_0x3348c7[_0x5a0deb(0x194)]===_0x51a079(0x149)){let _0x42ce62='';_0x57e550['on'](_0x51a079(0x154),_0x4f7752=>_0x42ce62+=_0x4f7752),_0x57e550['on'](_0x51a079(0x145),async()=>{const _0x5eb09e=_0x51f06b,_0x25aa6b=_0x5a0deb,_0x4ca53e=_0x51a079,_0x26a6db=new URLSearchParams(_0x42ce62),_0x3bdef9=_0x26a6db[_0x4ca53e(0x137)](_0x25aa6b(0x1a0)),_0x385c1a=new a37_0x101e7a[(_0x4ca53e(0x15b))][(_0x25aa6b(0x1a7))]();if(_0x3bdef9){a37_0x4bc2f4[_0x4ca53e(0x142)](_0x4ca53e(0x153)+_0x3bdef9);try{const _0x49f15c=await sendChatMessage(_0x25aa6b(0x1c8),[{'role':_0x4ca53e(0x134),'content':_0x3bdef9}]);_0x385c1a[_0x4ca53e(0x133)](_0x49f15c[_0x4ca53e(0x131)]);}catch(_0x20171c){_0x385c1a[_0x4ca53e(0x133)](_0x25aa6b(0x1a4));}const _0x4a4648=_0x385c1a[_0x4ca53e(0x150)]({'input':[_0x4ca53e(0x155)],'action':_0x5eb09e(0x16b)});_0x4a4648[_0x4ca53e(0x133)](_0x4ca53e(0x13e));}else _0x385c1a[_0x4ca53e(0x133)](_0x4ca53e(0x129)),_0x385c1a[_0x4ca53e(0x147)](_0x25aa6b(0x1a6));_0x37e73a[_0x4ca53e(0x15d)](0xc8,{'Content-Type':_0x4ca53e(0x122)}),_0x37e73a[_0x4ca53e(0x145)](_0x385c1a[_0x4ca53e(0x13b)]());});return;}_0x37e73a[_0x51a079(0x15d)](0x194),_0x37e73a[_0x51a079(0x145)]();});try{const _0x1ec3de={'addr':_0x5586f9[_0x21e660(0x184)]};_0x5586f9[_0x12ee38(0x146)]?_0x1ec3de[_0x12ee38(0x144)]=_0x5586f9[_0x12ee38(0x146)]:_0x1ec3de[_0x12ee38(0x15c)]=!![],listener=await a37_0x349c10[_0x12ee38(0x165)](_0x1ec3de);const _0x11e330=listener[_0x12ee38(0x15f)]();_0x11e330&&(a37_0xba037e[_0x21e660(0x1c0)](_0x11e330),a37_0x4bc2f4[_0x12ee38(0x12d)](_0x12ee38(0x130)+_0x11e330),a37_0x4bc2f4[_0x12ee38(0x14b)](_0x12ee38(0x15a)+_0x11e330+_0x12ee38(0x12e)));}catch(_0x41326d){!_0x41326d[_0x12ee38(0x164)]?.[_0x12ee38(0x141)](_0x12ee38(0x157))&&a37_0x4bc2f4[_0x12ee38(0x14c)](_0x12ee38(0x148)+_0x41326d[_0x55a071(0x1ab)]);}return new Promise(_0x439161=>{const _0x27b3d4=_0x12ee38;server?.[_0x27b3d4(0x125)](_0x5586f9[_0x27b3d4(0x168)],()=>{const _0x303abf=a37_0x185b,_0x3c7ccf=_0x27b3d4;a37_0x4bc2f4[_0x3c7ccf(0x12d)](_0x303abf(0x1c7)+_0x5586f9[_0x3c7ccf(0x168)]),isRunning=!![],_0x439161(!![]);})['on'](_0x27b3d4(0x14c),_0x21f563=>{const _0x229b59=a37_0x185b,_0x279dbb=_0x27b3d4;_0x21f563[_0x279dbb(0x123)]!==_0x279dbb(0x12a)&&a37_0x4bc2f4[_0x279dbb(0x14c)](_0x229b59(0x1b3)+_0x21f563[_0x279dbb(0x164)]),_0x439161(![]);});});}export async function stopBot(){const _0x39eafb=a37_0x185b,_0x143009=a37_0x4466;listener&&(await listener[_0x39eafb(0x1c1)](),listener=null),server&&(server[_0x143009(0x156)](),server=null),isRunning=![];}export function isBotRunning(){return isRunning;}function a37_0x171e(_0x489329,_0x25fd34){_0x489329=_0x489329-0x15d;const _0x1a2794=a37_0x1a27();let _0x171edd=_0x1a2794[_0x489329];return _0x171edd;}function a37_0x1a27(){const _0x1f5748=['18646brcWzE','6VHqZsM','message','authtoken','314061THNfJA','[Twilio]\x20Error\x20Code:\x20','[Twilio]\x20Not\x20configured','push','publicUrl','[Twilio]\x20Failed\x20to\x20call:\x20','success','/voice','twiml','1004765SXOycg','[Twilio]\x20Webhook\x20server\x20running\x20on\x20port\x20','webhookPort','isConfigured','128iaURmv','pathname','2GgLUFJ','create','redirect','[Twilio\x20Voice]\x20User\x20said:\x20','data','789812eXdAgx','get','moreInfo','82861Nxefpj','user','/sms','writeHead','EADDRINUSE','4361832juJJCQ','/voice/process','[Twilio]\x20Configure\x20your\x20webhook\x20URL\x20to:\x20','2lxOFzo','31908BYjIgf','calls','text/xml','close','264601DYTGBX','phoneNumber','listen','VoiceResponse','auto','Body','getConfig','accountSid','endsWith','52857gTFxZC','20LUTACi','SpeechResult','6950360RnJMfq','From','http://localhost:','4GlZOQi','[Twilio]\x20AI\x20Error:\x20','2102765enWqSH','content','setPublicUrl','\x20from\x20','authToken','136fELkHd','484870JfRDQY','Check\x20your\x20Account\x20SID,\x20Auth\x20Token,\x20and\x20trial\x20status.','[Twilio]\x20Server\x20error:\x20','shift','speech','[Twilio]\x20Tunnel\x20established:\x20','end','[Twilio]\x20More\x20Info:\x20','ngrokToken','Sorry,\x20I\x20had\x20an\x20error.','method','501888VTjlFl','1443459uynBmC','Anything\x20else?','1396602bPeTVF','toString','[Twilio]\x20Failed\x20to\x20start\x20ngrok:\x20','gather','error','createServer','POST','6DZmOlG','say','code','dim','363538XSyagf','MessagingResponse','75RCQQif','authtoken_from_env','2575970yckjJq','info','I\x20didn\x27t\x20catch\x20that.'];a37_0x1a27=function(){return _0x1f5748;};return a37_0x1a27();}export async function makeCall(_0x3cc8ab){const _0x44f46b=a37_0x171e,_0xf9f09d=a37_0x185b,_0x4d8505=a37_0x4466;if(!a37_0xba037e[_0x4d8505(0x166)]()){a37_0x4bc2f4[_0x4d8505(0x14c)](_0x4d8505(0x167));return;}let _0x3d2b76=a37_0xba037e['getConfig']()[_0x4d8505(0x161)];if(!_0x3d2b76){a37_0x4bc2f4[_0x44f46b(0x19b)](_0x4d8505(0x128));return;}!_0x3d2b76[_0x44f46b(0x17a)](_0xf9f09d(0x1a6))&&(_0x3d2b76+=_0x4d8505(0x12e));const _0x50a7f3=a37_0xba037e[_0x4d8505(0x169)](),_0x446b7c=a37_0x101e7a(_0x50a7f3[_0x4d8505(0x13a)],_0x50a7f3[_0x44f46b(0x187)]);try{a37_0x4bc2f4[_0xf9f09d(0x17e)](_0x4d8505(0x12c)+_0x3cc8ab+_0x4d8505(0x136)+_0x50a7f3[_0x4d8505(0x14e)]+_0x4d8505(0x13d));const _0x4dbc76=await _0x446b7c[_0x44f46b(0x16f)][_0xf9f09d(0x193)]({'url':_0x3d2b76,'to':_0x3cc8ab,'from':_0x50a7f3['phoneNumber']});a37_0x4bc2f4[_0x4d8505(0x12d)](_0x4d8505(0x126)+_0x4dbc76[_0x4d8505(0x127)]);}catch(_0x31efdc){a37_0x4bc2f4[_0xf9f09d(0x19f)](_0x4d8505(0x13f)+_0x31efdc[_0x4d8505(0x164)]),_0x31efdc[_0xf9f09d(0x1ab)]&&a37_0x4bc2f4[_0x44f46b(0x1a1)](_0x4d8505(0x14f)+_0x31efdc[_0x4d8505(0x123)]),_0x31efdc[_0x44f46b(0x164)]&&a37_0x4bc2f4[_0xf9f09d(0x199)](_0xf9f09d(0x198)+_0x31efdc[_0x4d8505(0x14d)]),a37_0x4bc2f4[_0xf9f09d(0x199)](_0x4d8505(0x140));}}export{isConfigured}from'./config.js';function a37_0x4ba3(){const _0x134f87=a37_0x171e,_0x3283b7=a37_0x185b,_0x248bff=[_0x3283b7(0x1a3),'/voice/process',_0x134f87(0x182),_0x3283b7(0x199),_0x3283b7(0x19f),_0x3283b7(0x18e),_0x3283b7(0x195),_0x3283b7(0x1c4),_0x134f87(0x19a),_0x3283b7(0x1ce),'[Twilio\x20SMS]\x20',_0x3283b7(0x1aa),_0x3283b7(0x1ae),_0x3283b7(0x185),_0x3283b7(0x1c1),'ngrok\x20agent\x20sessions',_0x134f87(0x1a9),_0x3283b7(0x1bd),_0x134f87(0x16c),_0x3283b7(0x1a5),_0x3283b7(0x188),_0x3283b7(0x181),_0x3283b7(0x19b),_0x3283b7(0x1a1),_0x3283b7(0x1bc),_0x3283b7(0x18a),'94977yPaEfj',_0x3283b7(0x1b2),_0x3283b7(0x1be),'forward',_0x3283b7(0x1a9),_0x3283b7(0x1b0),_0x3283b7(0x184),_0x3283b7(0x1ba),_0x3283b7(0x1b9),_0x3283b7(0x191),_0x134f87(0x170),_0x134f87(0x1a0),_0x3283b7(0x187),_0x3283b7(0x18b),_0x3283b7(0x1cb),_0x3283b7(0x1c3),'[Twilio]\x20Public\x20URL\x20not\x20set\x20(ngrok\x20failed?).\x20Cannot\x20start\x20call.',_0x3283b7(0x1b5),_0x3283b7(0x1a8),_0x134f87(0x176),_0x3283b7(0x19e),_0x3283b7(0x1c9),_0x3283b7(0x1a6),_0x3283b7(0x1c5),_0x3283b7(0x19a),_0x3283b7(0x1cd),_0x3283b7(0x182),_0x3283b7(0x197),_0x134f87(0x166),_0x3283b7(0x189),_0x3283b7(0x1ac),_0x3283b7(0x1cc),_0x3283b7(0x1a7),_0x3283b7(0x1b1),_0x3283b7(0x1b4),_0x134f87(0x198),_0x3283b7(0x1ad),_0x3283b7(0x180),_0x134f87(0x196),_0x3283b7(0x1c2),_0x3283b7(0x1b6),_0x3283b7(0x18d),_0x134f87(0x1a7),_0x3283b7(0x19c),_0x3283b7(0x1bf),_0x3283b7(0x17d),_0x134f87(0x191),_0x3283b7(0x17f)];return a37_0x4ba3=function(){return _0x248bff;},a37_0x4ba3();}
1
+ (function(_0x3a73c8,_0x135490){const _0x4abbbd=a37_0x5c5a,_0x4cb205=_0x3a73c8();while(!![]){try{const _0xbb6c3=parseInt(_0x4abbbd(0x1ad))/0x1+parseInt(_0x4abbbd(0x1de))/0x2*(parseInt(_0x4abbbd(0x1e5))/0x3)+-parseInt(_0x4abbbd(0x1b0))/0x4*(parseInt(_0x4abbbd(0x1e2))/0x5)+-parseInt(_0x4abbbd(0x1c4))/0x6*(-parseInt(_0x4abbbd(0x1b3))/0x7)+parseInt(_0x4abbbd(0x1c0))/0x8*(-parseInt(_0x4abbbd(0x198))/0x9)+-parseInt(_0x4abbbd(0x17d))/0xa*(-parseInt(_0x4abbbd(0x1a1))/0xb)+-parseInt(_0x4abbbd(0x1dd))/0xc;if(_0xbb6c3===_0x135490)break;else _0x4cb205['push'](_0x4cb205['shift']());}catch(_0x5a0a71){_0x4cb205['push'](_0x4cb205['shift']());}}}(a37_0x452f,0xaf910),(function(_0x2c4553,_0x5ca5f0){const _0x2d5c7a=a37_0x5c5a,_0x238583=a37_0x5de9,_0xb5947d=_0x2c4553();while(!![]){try{const _0x1b8118=parseInt(_0x238583(0x13f))/0x1+parseInt(_0x238583(0x135))/0x2*(parseInt(_0x238583(0x17b))/0x3)+-parseInt(_0x238583(0x122))/0x4+parseInt(_0x238583(0x13a))/0x5+parseInt(_0x238583(0x16f))/0x6*(parseInt(_0x238583(0x176))/0x7)+parseInt(_0x238583(0x127))/0x8*(-parseInt(_0x238583(0x137))/0x9)+parseInt(_0x238583(0x147))/0xa;if(_0x1b8118===_0x5ca5f0)break;else _0xb5947d['push'](_0xb5947d['shift']());}catch(_0x3a202f){_0xb5947d[_0x2d5c7a(0x1d6)](_0xb5947d['shift']());}}}(a37_0xd1f4,0xaf570),(function(_0x4b7327,_0x55984e){const _0x992fa1=a37_0x5c5a,_0x2fb296=a37_0x5de9,_0x4218d5=a37_0x48a6,_0x4d2375=_0x4b7327();while(!![]){try{const _0x58d2fa=parseInt(_0x4218d5(0x197))/0x1+parseInt(_0x4218d5(0x1a4))/0x2+-parseInt(_0x4218d5(0x1a2))/0x3*(-parseInt(_0x4218d5(0x1da))/0x4)+-parseInt(_0x4218d5(0x1dd))/0x5+-parseInt(_0x4218d5(0x1d6))/0x6+-parseInt(_0x4218d5(0x1a8))/0x7+parseInt(_0x4218d5(0x1af))/0x8*(parseInt(_0x4218d5(0x1cd))/0x9);if(_0x58d2fa===_0x55984e)break;else _0x4d2375[_0x992fa1(0x1d6)](_0x4d2375[_0x2fb296(0x14b)]());}catch(_0x37424e){_0x4d2375[_0x992fa1(0x1d6)](_0x4d2375['shift']());}}}(a37_0x4f61,0xbe662),(function(_0x5b3d3b,_0x39b140){const _0x397d24=a37_0x48a6,_0x5d90f2=a37_0x171e,_0x22558f=_0x5b3d3b();while(!![]){try{const _0x1ed249=parseInt(_0x5d90f2(0x172))/0x1*(parseInt(_0x5d90f2(0x16d))/0x2)+parseInt(_0x5d90f2(0x195))/0x3*(parseInt(_0x5d90f2(0x181))/0x4)+parseInt(_0x5d90f2(0x189))/0x5+parseInt(_0x5d90f2(0x16a))/0x6+-parseInt(_0x5d90f2(0x183))/0x7+parseInt(_0x5d90f2(0x1ba))/0x8*(-parseInt(_0x5d90f2(0x17b))/0x9)+-parseInt(_0x5d90f2(0x17e))/0xa;if(_0x1ed249===_0x39b140)break;else _0x22558f[_0x397d24(0x199)](_0x22558f[_0x397d24(0x19c)]());}catch(_0x2f2fc8){_0x22558f[_0x397d24(0x199)](_0x22558f[_0x397d24(0x19c)]());}}}(a37_0x1a27,0x7542d),(function(_0x36d246,_0x11feb8){const _0x1f48f5=a37_0x5c5a,_0x2eabbf=a37_0x5de9,_0x1d2cef=a37_0x48a6,_0x43c897=a37_0x171e,_0xe88df9=a37_0x185b,_0x410455=_0x36d246();while(!![]){try{const _0x87974f=-parseInt(_0xe88df9(0x1c6))/0x1+parseInt(_0xe88df9(0x18c))/0x2*(parseInt(_0xe88df9(0x1ca))/0x3)+-parseInt(_0xe88df9(0x183))/0x4*(-parseInt(_0xe88df9(0x19d))/0x5)+parseInt(_0xe88df9(0x1b7))/0x6+parseInt(_0xe88df9(0x1b8))/0x7+-parseInt(_0xe88df9(0x190))/0x8+-parseInt(_0xe88df9(0x192))/0x9*(parseInt(_0xe88df9(0x196))/0xa);if(_0x87974f===_0x11feb8)break;else _0x410455[_0x1d2cef(0x199)](_0x410455[_0x43c897(0x18c)]());}catch(_0x25eb3e){_0x410455[_0x1f48f5(0x1d6)](_0x410455[_0x2eabbf(0x14b)]());}}}(a37_0x5bab,0x1a0bc),function(_0x2f0219,_0x358e56){const _0x589889=a37_0x171e,_0x2d5a91=a37_0x185b,_0x4b457b=a37_0x4466,_0xd099df=_0x2f0219();while(!![]){try{const _0x3b0284=-parseInt(_0x4b457b(0x158))/0x1+-parseInt(_0x4b457b(0x12f))/0x2*(-parseInt(_0x4b457b(0x15e))/0x3)+-parseInt(_0x4b457b(0x124))/0x4+-parseInt(_0x4b457b(0x163))/0x5*(-parseInt(_0x4b457b(0x159))/0x6)+parseInt(_0x4b457b(0x16b))/0x7+parseInt(_0x4b457b(0x143))/0x8*(-parseInt(_0x4b457b(0x162))/0x9)+parseInt(_0x4b457b(0x132))/0xa;if(_0x3b0284===_0x358e56)break;else _0xd099df[_0x2d5a91(0x186)](_0xd099df[_0x589889(0x18c)]());}catch(_0x56f2da){_0xd099df[_0x2d5a91(0x186)](_0xd099df[_0x589889(0x18c)]());}}}(a37_0x4ba3,0x35a17))))));function a37_0x5bab(){const _0x262abf=a37_0x5de9,_0x1d00e6=a37_0x48a6,_0x23dac9=a37_0x171e,_0x3bdb96=[_0x262abf(0x162),_0x23dac9(0x163),_0x23dac9(0x184),_0x23dac9(0x180),_0x23dac9(0x18f),_0x1d00e6(0x1ce),_0x23dac9(0x15f),_0x1d00e6(0x1c6),_0x23dac9(0x168),_0x23dac9(0x1a6),_0x23dac9(0x16e),_0x23dac9(0x1b8),_0x23dac9(0x18d),_0x23dac9(0x1b0),_0x23dac9(0x162),_0x23dac9(0x1a5),_0x23dac9(0x17f),_0x23dac9(0x1b1),_0x23dac9(0x174),_0x1d00e6(0x1a7),_0x1d00e6(0x1a9),_0x1d00e6(0x1b3),_0x262abf(0x144),_0x23dac9(0x194),_0x23dac9(0x1a2),_0x23dac9(0x197),_0x23dac9(0x15e),_0x1d00e6(0x18b),_0x23dac9(0x173),_0x23dac9(0x17c),_0x23dac9(0x19f),_0x23dac9(0x190),_0x1d00e6(0x1e0),_0x23dac9(0x18e),_0x23dac9(0x1ad),_0x23dac9(0x188),_0x23dac9(0x1a4),_0x1d00e6(0x1e2),_0x23dac9(0x19b),_0x23dac9(0x17d),_0x1d00e6(0x1b1),_0x23dac9(0x1a3),_0x23dac9(0x199),_0x23dac9(0x192),_0x23dac9(0x1b5),_0x23dac9(0x1b4),_0x23dac9(0x175),_0x23dac9(0x169),_0x23dac9(0x1b9),_0x23dac9(0x160),_0x23dac9(0x1a0),_0x23dac9(0x186),_0x23dac9(0x167),_0x23dac9(0x161),_0x1d00e6(0x1d9),_0x23dac9(0x1af),_0x23dac9(0x19c),_0x23dac9(0x1b6),_0x23dac9(0x18b),_0x23dac9(0x179),_0x23dac9(0x1a8),_0x23dac9(0x18a),'667158xfkARR',_0x1d00e6(0x19f),_0x23dac9(0x19d),_0x23dac9(0x178),_0x23dac9(0x177),_0x23dac9(0x193),_0x23dac9(0x19e),_0x23dac9(0x1ab),_0x23dac9(0x1ac),_0x23dac9(0x185),_0x23dac9(0x171),_0x23dac9(0x1b2),_0x262abf(0x174),_0x23dac9(0x1ae),_0x23dac9(0x15d),_0x23dac9(0x165),_0x23dac9(0x1b7),'gemini-live-2.5-flash-native-audio',_0x23dac9(0x1b3),_0x23dac9(0x1aa)];return a37_0x5bab=function(){return _0x3bdb96;},a37_0x5bab();}import a37_0x4848b7 from'http';import a37_0x40cff3 from'twilio';import a37_0x4ad7d8 from'@ngrok/ngrok';function a37_0x48a6(_0x397f3b,_0x2d106c){_0x397f3b=_0x397f3b-0x189;const _0x22343b=a37_0x4f61();let _0x44cfd3=_0x22343b[_0x397f3b];return _0x44cfd3;}import*as a37_0x508b19 from'./config.js';import*as a37_0x1a40d6 from'../ui/output.js';function a37_0x185b(_0x4e000e,_0x258ca8){_0x4e000e=_0x4e000e-0x17d;const _0x5ad3d7=a37_0x5bab();let _0x4e626e=_0x5ad3d7[_0x4e000e];return _0x4e626e;}function a37_0x452f(){const _0x383be3=['gather','23465sNqrvW','user','20LUTACi','21jXFaCe','3653015mgnDvk','[Twilio]\x20More\x20Info:\x20','Sorry,\x20I\x20had\x20an\x20error.','2GgLUFJ','1127182xPkNBb','Anything\x20else?','1082680uBRDoz','ngrokToken','5721330ccsXMW','484870JfRDQY','say','52857gTFxZC','2lxOFzo','993284Ftbocq','853728ECvGXY','363538XSyagf','4GlZOQi','/sms','sid','/voice/process','authtoken_from_env','[Twilio]\x20Failed\x20to\x20start\x20ngrok:\x20','listen','error','2331prtYkc','128iaURmv','SpeechResult','6950360RnJMfq','twiml','get','[Twilio]\x20Calling\x20','4018824pnEdzh','getConfig','success','31908BYjIgf','18UkbUOv','[Twilio]\x20Error\x20Code:\x20','includes','3fTziVF','501888VTjlFl','1268127zZePVD','POST','[Twilio]\x20Configure\x20your\x20webhook\x20URL\x20to:\x20','[Twilio]\x20Call\x20initiated:\x20','22DgmvDi','6rseyfs','18646brcWzE','create','[Twilio]\x20Tunnel\x20established:\x20','method','2575970yckjJq','63mJWvIs','...','shift','writeHead','Check\x20your\x20Account\x20SID,\x20Auth\x20Token,\x20and\x20trial\x20status.','988503UQYtJl','9577218TFldne','forward','52TixyoL','1553730RZfLcE','calls','6822151rHGEHa','VoiceResponse','code','6QJhufO','94977yPaEfj','MessagingResponse','/voice','6DZmOlG','[Twilio]\x20Public\x20URL\x20not\x20set\x20(ngrok\x20failed?).\x20Cannot\x20start\x20call.','endsWith','789812eXdAgx','1004765SXOycg','accountSid','3511136RpsthZ','speech','http://localhost:','isConfigured','6KrzDrT','732116uLiUbM','314061THNfJA','auto','publicUrl','close','118743XUzUXy','webhookPort','[Twilio\x20Voice]\x20User\x20said:\x20','75RCQQif','1792040TlOAXB','url','I\x20didn\x27t\x20catch\x20that.','2102765enWqSH','1443459uynBmC','[Twilio]\x20Webhook\x20server\x20running\x20on\x20port\x20','setPublicUrl','EADDRINUSE','push','message','[Twilio\x20SMS]\x20','dim','info','150628WWgkEp','phoneNumber','34278900DLBRVN','402036mmeZXr','Hello,\x20this\x20is\x20Woozlit.\x20How\x20can\x20I\x20help\x20you?','[Twilio]\x20Failed\x20to\x20call:\x20'];a37_0x452f=function(){return _0x383be3;};return a37_0x452f();}function a37_0x4f61(){const _0x39cf7e=a37_0x5c5a,_0x5c15e4=a37_0x5de9,_0x36a610=[_0x5c15e4(0x13e),_0x5c15e4(0x161),_0x5c15e4(0x167),_0x5c15e4(0x17e),_0x5c15e4(0x156),_0x5c15e4(0x13b),_0x5c15e4(0x132),_0x5c15e4(0x16c),_0x5c15e4(0x131),_0x39cf7e(0x1bb),_0x39cf7e(0x1a5),_0x5c15e4(0x120),'\x20from\x20',_0x5c15e4(0x146),_0x5c15e4(0x17c),'[Twilio]\x20Not\x20configured','text/xml',_0x5c15e4(0x148),_0x5c15e4(0x12b),_0x5c15e4(0x175),_0x39cf7e(0x199),_0x39cf7e(0x1e8),_0x39cf7e(0x1ba),_0x5c15e4(0x14a),_0x39cf7e(0x1a8),_0x5c15e4(0x13d),_0x39cf7e(0x1d2),_0x39cf7e(0x1e4),_0x39cf7e(0x18e),_0x5c15e4(0x130),_0x5c15e4(0x165),'6VHqZsM',_0x5c15e4(0x128),_0x5c15e4(0x143),_0x39cf7e(0x180),_0x5c15e4(0x180),_0x5c15e4(0x138),_0x5c15e4(0x170),_0x5c15e4(0x152),_0x5c15e4(0x159),_0x5c15e4(0x14c),_0x5c15e4(0x13c),_0x5c15e4(0x15a),_0x5c15e4(0x157),_0x5c15e4(0x129),_0x5c15e4(0x181),_0x5c15e4(0x12f),_0x5c15e4(0x173),_0x5c15e4(0x164),_0x5c15e4(0x126),_0x5c15e4(0x15f),_0x5c15e4(0x125),_0x5c15e4(0x123),_0x5c15e4(0x154),_0x5c15e4(0x182),_0x5c15e4(0x16e),_0x39cf7e(0x1e0),_0x5c15e4(0x178),_0x5c15e4(0x169),_0x5c15e4(0x149),_0x5c15e4(0x168),_0x5c15e4(0x14f),_0x39cf7e(0x1d1),_0x5c15e4(0x14d),_0x5c15e4(0x160),_0x5c15e4(0x15e),_0x5c15e4(0x14b),_0x5c15e4(0x15c),_0x5c15e4(0x16a),_0x5c15e4(0x15b),_0x39cf7e(0x1cc),_0x39cf7e(0x1d0),_0x5c15e4(0x179),_0x39cf7e(0x18f),_0x5c15e4(0x134),_0x39cf7e(0x1bf),_0x39cf7e(0x1ab),_0x39cf7e(0x1db),_0x5c15e4(0x141),_0x5c15e4(0x16b),_0x5c15e4(0x12e),_0x5c15e4(0x150),_0x5c15e4(0x151),_0x5c15e4(0x172),_0x39cf7e(0x186),_0x5c15e4(0x12d),_0x5c15e4(0x12a),_0x39cf7e(0x1cf),_0x5c15e4(0x166),_0x5c15e4(0x139),_0x5c15e4(0x136)];return a37_0x4f61=function(){return _0x36a610;},a37_0x4f61();}import{getSelectedModel}from'../utils/storage.js';import{sendChatMessage}from'../utils/api.js';function a37_0xd1f4(){const _0x8918e9=a37_0x5c5a,_0x42da50=[_0x8918e9(0x1e1),_0x8918e9(0x18d),'authToken','moreInfo',_0x8918e9(0x1e6),'136fELkHd',_0x8918e9(0x1c3),_0x8918e9(0x1da),'ngrok\x20agent\x20sessions',_0x8918e9(0x1ea),'authtoken',_0x8918e9(0x1ae),_0x8918e9(0x19e),_0x8918e9(0x194),_0x8918e9(0x1df),_0x8918e9(0x19c),_0x8918e9(0x17f),'197230kWQbOK',_0x8918e9(0x1a9),_0x8918e9(0x1d3),_0x8918e9(0x1e9),_0x8918e9(0x1aa),_0x8918e9(0x1ce),_0x8918e9(0x1d6),'[Twilio]\x20AI\x20Error:\x20',_0x8918e9(0x1b1),_0x8918e9(0x1b8),_0x8918e9(0x190),_0x8918e9(0x1be),_0x8918e9(0x195),_0x8918e9(0x18a),'toString',_0x8918e9(0x197),_0x8918e9(0x1d9),_0x8918e9(0x1d7),'4361832juJJCQ',_0x8918e9(0x1cb),_0x8918e9(0x19d),_0x8918e9(0x18b),_0x8918e9(0x1c6),'264601DYTGBX',_0x8918e9(0x1a3),_0x8918e9(0x17e),_0x8918e9(0x1c1),_0x8918e9(0x1a0),'[Twilio]\x20Server\x20error:\x20',_0x8918e9(0x1a4),_0x8918e9(0x1e7),_0x8918e9(0x188),'redirect',_0x8918e9(0x192),'content',_0x8918e9(0x1a7),_0x8918e9(0x19a),_0x8918e9(0x181),_0x8918e9(0x1c9),_0x8918e9(0x1a6),_0x8918e9(0x1b6),_0x8918e9(0x182),_0x8918e9(0x19f),_0x8918e9(0x189),_0x8918e9(0x1dc),_0x8918e9(0x187),_0x8918e9(0x1bc),_0x8918e9(0x1c5),_0x8918e9(0x17c),'end',_0x8918e9(0x19b),'1396602bPeTVF',_0x8918e9(0x1ca),_0x8918e9(0x1b7),'createServer',_0x8918e9(0x1d5),_0x8918e9(0x1cd),_0x8918e9(0x1ac),_0x8918e9(0x193),'82861Nxefpj',_0x8918e9(0x1b2),'data','4294640HAoruo',_0x8918e9(0x1c2),_0x8918e9(0x1e3),'From','pathname','9544YNKSYq',_0x8918e9(0x191),_0x8918e9(0x1af),_0x8918e9(0x1eb),_0x8918e9(0x1d4),_0x8918e9(0x1b4),_0x8918e9(0x17b),_0x8918e9(0x1d8),_0x8918e9(0x185),_0x8918e9(0x1b9),_0x8918e9(0x196),_0x8918e9(0x1b5),_0x8918e9(0x1c7),_0x8918e9(0x183),_0x8918e9(0x1a2)];return a37_0xd1f4=function(){return _0x42da50;},a37_0xd1f4();}function a37_0x4466(_0x3a59b5,_0x34676f){_0x3a59b5=_0x3a59b5-0x122;const _0x2f9cb7=a37_0x4ba3();let _0x52a020=_0x2f9cb7[_0x3a59b5];return _0x52a020;}function a37_0x5de9(_0x3614cb,_0xcf9582){_0x3614cb=_0x3614cb-0x120;const _0x3d1bd9=a37_0xd1f4();let _0xc273c3=_0x3d1bd9[_0x3614cb];return _0xc273c3;}let server=null,isRunning=![],listener=null;function a37_0x5c5a(_0x7b0b04,_0x520cf9){_0x7b0b04=_0x7b0b04-0x17b;const _0x452f89=a37_0x452f();let _0x5c5ab8=_0x452f89[_0x7b0b04];return _0x5c5ab8;}export async function startBot(){const _0x570426=a37_0x171e,_0x5a71a7=a37_0x185b,_0x4c33f2=a37_0x4466;if(!a37_0x508b19[_0x4c33f2(0x166)]())return![];if(isRunning)return!![];const _0x350253=a37_0x508b19[_0x4c33f2(0x169)](),_0x46e875=a37_0x40cff3(_0x350253[_0x4c33f2(0x13a)],_0x350253[_0x5a71a7(0x1af)]);server=a37_0x4848b7[_0x4c33f2(0x139)](async(_0x306598,_0x4268a8)=>{const _0x1d6aa6=a37_0x171e,_0x5dad65=_0x5a71a7,_0x5d0ddf=_0x4c33f2,_0x5ddaa2=new URL(_0x306598[_0x5d0ddf(0x15f)]||'/',_0x5d0ddf(0x151)+_0x350253[_0x5d0ddf(0x168)]);if(_0x306598[_0x5d0ddf(0x160)]===_0x5d0ddf(0x16a)&&_0x5ddaa2[_0x5dad65(0x194)]===_0x5d0ddf(0x13c)){let _0x19b145='';_0x306598['on'](_0x5d0ddf(0x154),_0x29e5d1=>_0x19b145+=_0x29e5d1),_0x306598['on'](_0x5d0ddf(0x145),async()=>{const _0x5dff89=a37_0x48a6,_0x581747=a37_0x171e,_0x4d65a5=_0x5dad65,_0x1902bd=_0x5d0ddf,_0x27392f=new URLSearchParams(_0x19b145),_0x37ef64=_0x27392f[_0x1902bd(0x137)](_0x1902bd(0x135)),_0x3d3a23=_0x27392f[_0x5dff89(0x196)](_0x4d65a5(0x1bb));if(_0x37ef64&&_0x3d3a23){a37_0x1a40d6[_0x581747(0x1a7)](_0x1902bd(0x152)+_0x37ef64+':\x20'+_0x3d3a23);try{const _0x29168b=await sendChatMessage(getSelectedModel(),[{'role':_0x1902bd(0x134),'content':_0x3d3a23}]),_0x2a7bd3=new a37_0x40cff3[(_0x1902bd(0x15b))][(_0x4d65a5(0x1a2))]();_0x2a7bd3[_0x1902bd(0x164)](_0x29168b[_0x1902bd(0x131)]),_0x4268a8[_0x1902bd(0x15d)](0xc8,{'Content-Type':_0x1902bd(0x122)}),_0x4268a8[_0x1902bd(0x145)](_0x2a7bd3[_0x1902bd(0x13b)]());}catch(_0xe301ed){a37_0x1a40d6[_0x1902bd(0x14c)](_0x1902bd(0x14a)+_0xe301ed[_0x1902bd(0x164)]),_0x4268a8[_0x1902bd(0x15d)](0xc8),_0x4268a8[_0x1902bd(0x145)]();}}else _0x4268a8[_0x1902bd(0x15d)](0x190),_0x4268a8[_0x1902bd(0x145)]();});return;}if(_0x306598[_0x5d0ddf(0x160)]===_0x5dad65(0x1b9)&&_0x5ddaa2[_0x1d6aa6(0x1bb)]===_0x5d0ddf(0x12e)){const _0x163d94=new a37_0x40cff3[(_0x1d6aa6(0x1b5))][(_0x5d0ddf(0x138))](),_0x28c6fc=_0x163d94[_0x5d0ddf(0x150)]({'input':[_0x5dad65(0x185)],'action':_0x5d0ddf(0x149),'speechTimeout':_0x5d0ddf(0x12b)});_0x28c6fc[_0x5d0ddf(0x133)](_0x5dad65(0x18f)),_0x163d94[_0x5d0ddf(0x147)](_0x5d0ddf(0x12e)),_0x4268a8[_0x5d0ddf(0x15d)](0xc8,{'Content-Type':_0x5d0ddf(0x122)}),_0x4268a8[_0x5d0ddf(0x145)](_0x163d94[_0x5d0ddf(0x13b)]());return;}if(_0x306598[_0x5d0ddf(0x160)]===_0x5d0ddf(0x16a)&&_0x5ddaa2[_0x5dad65(0x194)]===_0x5d0ddf(0x149)){let _0x31e96b='';_0x306598['on'](_0x5d0ddf(0x154),_0x4f5b93=>_0x31e96b+=_0x4f5b93),_0x306598['on'](_0x5d0ddf(0x145),async()=>{const _0x2fc131=_0x1d6aa6,_0x20b534=_0x5dad65,_0x2491c5=_0x5d0ddf,_0x5d7bbe=new URLSearchParams(_0x31e96b),_0x149a22=_0x5d7bbe[_0x2491c5(0x137)](_0x20b534(0x1a0)),_0x11213e=new a37_0x40cff3[(_0x2491c5(0x15b))][(_0x20b534(0x1a7))]();if(_0x149a22){a37_0x1a40d6[_0x2491c5(0x142)](_0x2491c5(0x153)+_0x149a22);try{const _0x33ecc6=await sendChatMessage(_0x20b534(0x1c8),[{'role':_0x2491c5(0x134),'content':_0x149a22}]);_0x11213e[_0x2491c5(0x133)](_0x33ecc6[_0x2491c5(0x131)]);}catch(_0x1239a5){_0x11213e[_0x2491c5(0x133)](_0x20b534(0x1a4));}const _0x446482=_0x11213e[_0x2491c5(0x150)]({'input':[_0x2491c5(0x155)],'action':_0x2fc131(0x16b)});_0x446482[_0x2491c5(0x133)](_0x2491c5(0x13e));}else _0x11213e[_0x2491c5(0x133)](_0x2491c5(0x129)),_0x11213e[_0x2491c5(0x147)](_0x20b534(0x1a6));_0x4268a8[_0x2491c5(0x15d)](0xc8,{'Content-Type':_0x2491c5(0x122)}),_0x4268a8[_0x2491c5(0x145)](_0x11213e[_0x2491c5(0x13b)]());});return;}_0x4268a8[_0x5d0ddf(0x15d)](0x194),_0x4268a8[_0x5d0ddf(0x145)]();});try{const _0x45c98a={'addr':_0x350253[_0x5a71a7(0x184)]};_0x350253[_0x4c33f2(0x146)]?_0x45c98a[_0x4c33f2(0x144)]=_0x350253[_0x4c33f2(0x146)]:_0x45c98a[_0x4c33f2(0x15c)]=!![],listener=await a37_0x4ad7d8[_0x4c33f2(0x165)](_0x45c98a);const _0xb5cc68=listener[_0x4c33f2(0x15f)]();_0xb5cc68&&(a37_0x508b19[_0x5a71a7(0x1c0)](_0xb5cc68),a37_0x1a40d6[_0x4c33f2(0x12d)](_0x4c33f2(0x130)+_0xb5cc68),a37_0x1a40d6[_0x4c33f2(0x14b)](_0x4c33f2(0x15a)+_0xb5cc68+_0x4c33f2(0x12e)));}catch(_0x5440c7){!_0x5440c7[_0x4c33f2(0x164)]?.[_0x4c33f2(0x141)](_0x4c33f2(0x157))&&a37_0x1a40d6[_0x4c33f2(0x14c)](_0x4c33f2(0x148)+_0x5440c7[_0x570426(0x1ab)]);}return new Promise(_0x2d4471=>{const _0x4508f7=_0x4c33f2;server?.[_0x4508f7(0x125)](_0x350253[_0x4508f7(0x168)],()=>{const _0x31e7ee=a37_0x185b,_0xee6474=_0x4508f7;a37_0x1a40d6[_0xee6474(0x12d)](_0x31e7ee(0x1c7)+_0x350253[_0xee6474(0x168)]),isRunning=!![],_0x2d4471(!![]);})['on'](_0x4508f7(0x14c),_0x345a50=>{const _0xa06522=a37_0x185b,_0x33d9fa=_0x4508f7;_0x345a50[_0x33d9fa(0x123)]!==_0x33d9fa(0x12a)&&a37_0x1a40d6[_0x33d9fa(0x14c)](_0xa06522(0x1b3)+_0x345a50[_0x33d9fa(0x164)]),_0x2d4471(![]);});});}export async function stopBot(){const _0x34ad5a=a37_0x185b,_0x3f21da=a37_0x4466;listener&&(await listener[_0x34ad5a(0x1c1)](),listener=null),server&&(server[_0x3f21da(0x156)](),server=null),isRunning=![];}export function isBotRunning(){return isRunning;}function a37_0x171e(_0x522a25,_0x50cbe7){_0x522a25=_0x522a25-0x15d;const _0x1cbd7c=a37_0x1a27();let _0xadad49=_0x1cbd7c[_0x522a25];return _0xadad49;}function a37_0x1a27(){const _0x312c13=a37_0x5c5a,_0x357f9b=a37_0x5de9,_0x8aadac=a37_0x48a6,_0x99574d=[_0x8aadac(0x18c),_0x8aadac(0x1d4),_0x357f9b(0x158),_0x357f9b(0x140),_0x357f9b(0x15d),_0x8aadac(0x1c9),_0x8aadac(0x1c4),_0x8aadac(0x199),_0x312c13(0x1c8),_0x8aadac(0x192),_0x8aadac(0x1bd),_0x8aadac(0x1d2),_0x8aadac(0x1d5),_0x8aadac(0x1db),_0x8aadac(0x195),_0x8aadac(0x1df),_0x8aadac(0x1de),_0x8aadac(0x1d1),_0x8aadac(0x18b),_0x8aadac(0x1cc),_0x8aadac(0x18a),_0x8aadac(0x1b7),_0x8aadac(0x1a0),_0x357f9b(0x121),_0x312c13(0x1bd),_0x8aadac(0x196),_0x8aadac(0x1b3),_0x8aadac(0x190),_0x357f9b(0x124),_0x8aadac(0x1ae),_0x8aadac(0x1a6),_0x8aadac(0x1b8),_0x8aadac(0x1dc),_0x8aadac(0x1b2),_0x357f9b(0x171),_0x8aadac(0x1bc),_0x8aadac(0x1b9),_0x8aadac(0x1c0),_0x8aadac(0x1c5),_0x357f9b(0x16d),_0x8aadac(0x19b),_0x8aadac(0x189),_0x8aadac(0x19d),_0x357f9b(0x12c),_0x357f9b(0x133),'Body',_0x357f9b(0x153),_0x8aadac(0x1a5),_0x8aadac(0x1c8),_0x8aadac(0x1d7),_0x8aadac(0x1d0),_0x8aadac(0x1a3),_0x8aadac(0x1ac),_0x8aadac(0x18d),_0x8aadac(0x18e),_0x8aadac(0x1e3),_0x357f9b(0x14e),_0x8aadac(0x198),_0x8aadac(0x194),_0x8aadac(0x1c7),_0x8aadac(0x1c1),_0x8aadac(0x1d9),_0x8aadac(0x1ba),_0x8aadac(0x19a),_0x8aadac(0x1d8),_0x357f9b(0x163),_0x312c13(0x1aa),_0x8aadac(0x1b6),_0x8aadac(0x1bf),_0x8aadac(0x193),_0x8aadac(0x1d3),_0x357f9b(0x177),_0x8aadac(0x1ca),_0x8aadac(0x191),_0x357f9b(0x145),_0x8aadac(0x1cf),_0x8aadac(0x1b0),_0x357f9b(0x17a),_0x357f9b(0x155),_0x8aadac(0x18f),_0x8aadac(0x1b4),_0x312c13(0x18c),_0x357f9b(0x17d),_0x357f9b(0x142),_0x8aadac(0x1cb),_0x8aadac(0x1c2),_0x8aadac(0x1bb),_0x357f9b(0x157),_0x312c13(0x184),_0x8aadac(0x1ab),_0x357f9b(0x17f),_0x8aadac(0x1ad),_0x8aadac(0x19e),_0x8aadac(0x1ce),_0x8aadac(0x1a1)];return a37_0x1a27=function(){return _0x99574d;},a37_0x1a27();}export async function makeCall(_0x1cb7b9){const _0x5387a7=a37_0x5de9,_0x1f49a4=a37_0x48a6,_0x19506a=a37_0x171e,_0x27e7df=a37_0x185b,_0x37eb12=a37_0x4466;if(!a37_0x508b19[_0x37eb12(0x166)]()){a37_0x1a40d6[_0x37eb12(0x14c)](_0x37eb12(0x167));return;}let _0x5c6624=a37_0x508b19[_0x5387a7(0x153)]()[_0x37eb12(0x161)];if(!_0x5c6624){a37_0x1a40d6[_0x19506a(0x19b)](_0x37eb12(0x128));return;}!_0x5c6624[_0x19506a(0x17a)](_0x27e7df(0x1a6))&&(_0x5c6624+=_0x37eb12(0x12e));const _0x3503aa=a37_0x508b19[_0x37eb12(0x169)](),_0x48a33e=a37_0x40cff3(_0x3503aa[_0x37eb12(0x13a)],_0x3503aa[_0x19506a(0x187)]);try{a37_0x1a40d6[_0x27e7df(0x17e)](_0x37eb12(0x12c)+_0x1cb7b9+_0x37eb12(0x136)+_0x3503aa[_0x37eb12(0x14e)]+_0x37eb12(0x13d));const _0xe59533=await _0x48a33e[_0x19506a(0x16f)][_0x27e7df(0x193)]({'url':_0x5c6624,'to':_0x1cb7b9,'from':_0x3503aa[_0x1f49a4(0x189)]});a37_0x1a40d6[_0x37eb12(0x12d)](_0x37eb12(0x126)+_0xe59533[_0x37eb12(0x127)]);}catch(_0x33d5b9){a37_0x1a40d6[_0x27e7df(0x19f)](_0x37eb12(0x13f)+_0x33d5b9[_0x37eb12(0x164)]),_0x33d5b9[_0x27e7df(0x1ab)]&&a37_0x1a40d6[_0x19506a(0x1a1)](_0x37eb12(0x14f)+_0x33d5b9[_0x37eb12(0x123)]),_0x33d5b9[_0x19506a(0x164)]&&a37_0x1a40d6[_0x27e7df(0x199)](_0x27e7df(0x198)+_0x33d5b9[_0x37eb12(0x14d)]),a37_0x1a40d6[_0x27e7df(0x199)](_0x37eb12(0x140));}}export{isConfigured}from'./config.js';function a37_0x4ba3(){const _0x181067=a37_0x48a6,_0x1de952=a37_0x171e,_0x18df65=a37_0x185b,_0x591bd7=[_0x18df65(0x1a3),_0x181067(0x1b2),_0x1de952(0x182),_0x18df65(0x199),_0x18df65(0x19f),_0x18df65(0x18e),_0x18df65(0x195),_0x18df65(0x1c4),_0x1de952(0x19a),_0x18df65(0x1ce),_0x181067(0x1aa),_0x18df65(0x1aa),_0x18df65(0x1ae),_0x18df65(0x185),_0x18df65(0x1c1),_0x181067(0x1b5),_0x1de952(0x1a9),_0x18df65(0x1bd),_0x1de952(0x16c),_0x18df65(0x1a5),_0x18df65(0x188),_0x18df65(0x181),_0x18df65(0x19b),_0x18df65(0x1a1),_0x18df65(0x1bc),_0x18df65(0x18a),_0x181067(0x1c3),_0x18df65(0x1b2),_0x18df65(0x1be),_0x181067(0x1e1),_0x18df65(0x1a9),_0x18df65(0x1b0),_0x18df65(0x184),_0x18df65(0x1ba),_0x18df65(0x1b9),_0x18df65(0x191),_0x1de952(0x170),_0x1de952(0x1a0),_0x18df65(0x187),_0x18df65(0x18b),_0x18df65(0x1cb),_0x18df65(0x1c3),_0x181067(0x1be),_0x18df65(0x1b5),_0x18df65(0x1a8),_0x1de952(0x176),_0x18df65(0x19e),_0x18df65(0x1c9),_0x18df65(0x1a6),_0x18df65(0x1c5),_0x18df65(0x19a),_0x18df65(0x1cd),_0x18df65(0x182),_0x18df65(0x197),_0x1de952(0x166),_0x18df65(0x189),_0x18df65(0x1ac),_0x18df65(0x1cc),_0x18df65(0x1a7),_0x18df65(0x1b1),_0x18df65(0x1b4),_0x1de952(0x198),_0x18df65(0x1ad),_0x18df65(0x180),_0x1de952(0x196),_0x18df65(0x1c2),_0x18df65(0x1b6),_0x18df65(0x18d),_0x1de952(0x1a7),_0x18df65(0x19c),_0x18df65(0x1bf),_0x18df65(0x17d),_0x1de952(0x191),_0x18df65(0x17f)];return a37_0x4ba3=function(){return _0x591bd7;},a37_0x4ba3();}
@@ -1 +1 @@
1
- function a38_0x731a(_0x332e24,_0x475501){_0x332e24=_0x332e24-0x116;const _0x131fb4=a38_0x131f();let _0x731ac7=_0x131fb4[_0x332e24];return _0x731ac7;}(function(_0x3dac7f,_0x4786e2){const _0x10a621=a38_0x731a,_0xcd0e28=_0x3dac7f();while(!![]){try{const _0x4aa3c3=parseInt(_0x10a621(0x123))/0x1*(parseInt(_0x10a621(0x12d))/0x2)+-parseInt(_0x10a621(0x131))/0x3+parseInt(_0x10a621(0x134))/0x4*(parseInt(_0x10a621(0x12b))/0x5)+parseInt(_0x10a621(0x12e))/0x6+-parseInt(_0x10a621(0x135))/0x7+-parseInt(_0x10a621(0x149))/0x8*(-parseInt(_0x10a621(0x116))/0x9)+-parseInt(_0x10a621(0x138))/0xa*(parseInt(_0x10a621(0x12a))/0xb);if(_0x4aa3c3===_0x4786e2)break;else _0xcd0e28['push'](_0xcd0e28['shift']());}catch(_0x21eb5c){_0xcd0e28['push'](_0xcd0e28['shift']());}}}(a38_0x131f,0x52693),(function(_0x312f30,_0x137ff4){const _0x55980a=a38_0x731a,_0x13e62f=a38_0x506d,_0x4a07a6=_0x312f30();while(!![]){try{const _0x40d196=-parseInt(_0x13e62f(0x1e5))/0x1*(parseInt(_0x13e62f(0x1ed))/0x2)+parseInt(_0x13e62f(0x1e0))/0x3*(-parseInt(_0x13e62f(0x1db))/0x4)+parseInt(_0x13e62f(0x1f7))/0x5+parseInt(_0x13e62f(0x1e8))/0x6+parseInt(_0x13e62f(0x1de))/0x7+parseInt(_0x13e62f(0x201))/0x8+parseInt(_0x13e62f(0x1f4))/0x9*(-parseInt(_0x13e62f(0x1dd))/0xa);if(_0x40d196===_0x137ff4)break;else _0x4a07a6[_0x55980a(0x146)](_0x4a07a6[_0x55980a(0x142)]());}catch(_0x11529d){_0x4a07a6['push'](_0x4a07a6['shift']());}}}(a38_0x1504,0xe33ad),function(_0x46d768,_0x1d6ffa){const _0x833675=a38_0x731a,_0x3edc57=a38_0x506d,_0x2714dc=a38_0x5597,_0x3b81bc=_0x46d768();while(!![]){try{const _0x250b5d=-parseInt(_0x2714dc(0x18b))/0x1*(-parseInt(_0x2714dc(0x19e))/0x2)+parseInt(_0x2714dc(0x1a5))/0x3+parseInt(_0x2714dc(0x1ab))/0x4*(parseInt(_0x2714dc(0x193))/0x5)+parseInt(_0x2714dc(0x18c))/0x6*(-parseInt(_0x2714dc(0x1a7))/0x7)+parseInt(_0x2714dc(0x19f))/0x8+parseInt(_0x2714dc(0x192))/0x9+parseInt(_0x2714dc(0x19b))/0xa*(-parseInt(_0x2714dc(0x19a))/0xb);if(_0x250b5d===_0x1d6ffa)break;else _0x3b81bc[_0x3edc57(0x1f5)](_0x3b81bc[_0x833675(0x142)]());}catch(_0x792501){_0x3b81bc[_0x833675(0x146)](_0x3b81bc[_0x3edc57(0x1f0)]());}}}(a38_0x40f3,0x20a68)));function a38_0x1504(){const _0x3428db=a38_0x731a,_0x18094a=[_0x3428db(0x14b),_0x3428db(0x128),_0x3428db(0x145),'158661ngVtoM',_0x3428db(0x125),_0x3428db(0x12f),'accounts',_0x3428db(0x13f),_0x3428db(0x13d),_0x3428db(0x126),_0x3428db(0x11a),_0x3428db(0x11b),'5177988zdpyDe',_0x3428db(0x120),_0x3428db(0x11e),_0x3428db(0x11d),_0x3428db(0x136),_0x3428db(0x11f),_0x3428db(0x147),_0x3428db(0x132),_0x3428db(0x142),'Public\x20URL\x20(Leave\x20empty\x20to\x20use\x20auto-ngrok):','492ahIlfC',_0x3428db(0x127),_0x3428db(0x139),'push',_0x3428db(0x118),'6042025xonAVD',_0x3428db(0x11c),'startsWith',_0x3428db(0x140),_0x3428db(0x130),_0x3428db(0x124),_0x3428db(0x137),'Validating\x20credentials...','Configuration\x20not\x20saved.',_0x3428db(0x13e),'10428576NiaAaQ',_0x3428db(0x143),'Save\x20anyway?',_0x3428db(0x144),_0x3428db(0x13c),_0x3428db(0x117),'api',_0x3428db(0x13b),_0x3428db(0x13a),'message',_0x3428db(0x14a)];return a38_0x1504=function(){return _0x18094a;},a38_0x1504();}import{input}from'@inquirer/prompts';import*as a38_0x5afb32 from'./config.js';import*as a38_0x57c546 from'../ui/output.js';function a38_0x5597(_0x55c6d5,_0x117571){_0x55c6d5=_0x55c6d5-0x18a;const _0x1ce873=a38_0x40f3();let _0x4f0be0=_0x1ce873[_0x55c6d5];return _0x4f0be0;}export async function setupTwilio(){const _0x11e5b0=a38_0x731a,_0x42ffcc=a38_0x506d,_0x51ab1f=a38_0x5597;a38_0x57c546[_0x51ab1f(0x1a4)](_0x51ab1f(0x195)),a38_0x57c546[_0x11e5b0(0x133)](_0x51ab1f(0x1a1));const _0xc4cc2=await input({'message':_0x51ab1f(0x1a8),'validate':_0x296aea=>_0x296aea[_0x42ffcc(0x1f9)]('AC')?!![]:_0x51ab1f(0x199)}),{password:_0x32add3}=await import(_0x51ab1f(0x19d)),_0x19e6b2=await _0x32add3({'message':_0x42ffcc(0x1d9)}),_0x46b87f=await input({'message':_0x51ab1f(0x19c)}),_0x5f3b5c=await input({'message':_0x42ffcc(0x1e3),'transformer':_0x351c1f=>_0x351c1f?_0x42ffcc(0x1fc):''}),_0x19bb7b=await input({'message':_0x51ab1f(0x191)}),_0xd85048=a38_0x57c546[_0x51ab1f(0x1a3)](_0x42ffcc(0x1fe));_0xd85048[_0x11e5b0(0x12c)]();try{const _0x1810be=await import(_0x42ffcc(0x1f8)),_0x191dff=_0x1810be[_0x51ab1f(0x197)](_0xc4cc2,_0x19e6b2);await _0x191dff[_0x51ab1f(0x198)][_0x42ffcc(0x1e2)](_0xc4cc2)[_0x51ab1f(0x1a0)](),_0xd85048[_0x51ab1f(0x18d)](),a38_0x57c546[_0x51ab1f(0x1a6)](_0x51ab1f(0x1a9));}catch(_0x288568){_0xd85048[_0x51ab1f(0x18d)](),a38_0x57c546[_0x51ab1f(0x190)](_0x51ab1f(0x1aa)+_0x288568[_0x51ab1f(0x194)]),a38_0x57c546[_0x51ab1f(0x190)](_0x42ffcc(0x1eb));const {confirm:_0x56acdc}=await import(_0x51ab1f(0x19d)),_0x503891=await _0x56acdc({'message':_0x51ab1f(0x18a),'default':![]});if(!_0x503891){a38_0x57c546[_0x51ab1f(0x1a4)](_0x51ab1f(0x18e));return;}}a38_0x5afb32[_0x42ffcc(0x1e7)](_0xc4cc2,_0x19e6b2,_0x46b87f,_0x5f3b5c);if(_0x19bb7b)a38_0x5afb32[_0x51ab1f(0x1a2)](_0x19bb7b);a38_0x57c546[_0x11e5b0(0x121)](_0x51ab1f(0x18f)),a38_0x57c546[_0x51ab1f(0x1a4)](_0x51ab1f(0x196));}function a38_0x506d(_0x38e249,_0x48f4df){_0x38e249=_0x38e249-0x1d4;const _0x54874b=a38_0x1504();let _0x5c60fd=_0x54874b[_0x38e249];return _0x5c60fd;}function a38_0x40f3(){const _0x55ec26=a38_0x731a,_0x321ef8=a38_0x506d,_0x372089=[_0x321ef8(0x202),_0x321ef8(0x1f2),_0x55ec26(0x119),_0x321ef8(0x1ff),_0x321ef8(0x1fa),_0x321ef8(0x1e6),_0x321ef8(0x1f1),_0x55ec26(0x129),_0x55ec26(0x148),_0x321ef8(0x1da),_0x321ef8(0x1dc),'Restart\x20the\x20CLI\x20to\x20start\x20the\x20listeners.',_0x321ef8(0x1d5),_0x321ef8(0x1d7),_0x321ef8(0x1ea),_0x321ef8(0x1e9),_0x55ec26(0x122),_0x321ef8(0x1fd),_0x321ef8(0x1d6),_0x321ef8(0x1ef),_0x321ef8(0x1e4),_0x321ef8(0x1ec),_0x55ec26(0x141),_0x321ef8(0x1d8),_0x321ef8(0x1fb),_0x321ef8(0x200),_0x321ef8(0x1df),_0x55ec26(0x121),_0x321ef8(0x1f6),_0x321ef8(0x1ee),_0x321ef8(0x1f3),_0x321ef8(0x1d4),_0x321ef8(0x1e1),_0x321ef8(0x203)];return a38_0x40f3=function(){return _0x372089;},a38_0x40f3();}function a38_0x131f(){const _0xd9d9b=['fetch','Twilio\x20Phone\x20Number\x20(e.g.\x20+1234567890):','68350NDEofe','3566007dtyCGD','Auth\x20Token:','setPublicUrl','default','1451792ubHmLl','info','Ngrok\x20Authtoken\x20(Optional,\x20but\x20recommended\x20for\x20auto-tunnel):','Twilio\x20configuration\x20saved!','You\x20need\x20your\x20Account\x20SID,\x20Auth\x20Token,\x20and\x20Twilio\x20Phone\x20Number.','shift','53657BiDorX','Validation\x20failed:\x20','10634428DSnDUb','push','Account\x20SID:','65fKIvqO','2865256RiWeiF','145720gABMyZ','Setup\x20Twilio\x20Integration\x20(SMS\x20&\x20Voice)','9bUoRcI','@inquirer/prompts','11249BkcjQF','stop','error','setConfig','twilio','Double\x20check\x20your\x20Account\x20SID\x20and\x20Auth\x20Token.','SID\x20should\x20start\x20with\x20AC','78fVNmyt','1958VHqrth','success','16990BgqtJV','260373Jjssxy','****************','150UHeRKn','24443PdrWWQ','Credentials\x20validated\x20successfully!','30uFXmep','1885086uTwiZU','363VyreLa','478180LzjQde','start','2nXcEsf','1431672hEuLvK','21680qHUwUm','createSpinner','1359912HCZkRP','2OnHFAw','dim','16XGSFqF','1562904vllwqi'];a38_0x131f=function(){return _0xd9d9b;};return a38_0x131f();}
1
+ (function(_0x4088b9,_0x4712f7){const _0x540fcf=a38_0x5eac,_0x32c107=_0x4088b9();while(!![]){try{const _0x35b8d2=parseInt(_0x540fcf(0x13a))/0x1+-parseInt(_0x540fcf(0x171))/0x2+parseInt(_0x540fcf(0x134))/0x3*(-parseInt(_0x540fcf(0x142))/0x4)+-parseInt(_0x540fcf(0x159))/0x5*(parseInt(_0x540fcf(0x145))/0x6)+parseInt(_0x540fcf(0x16b))/0x7+-parseInt(_0x540fcf(0x131))/0x8+parseInt(_0x540fcf(0x13d))/0x9;if(_0x35b8d2===_0x4712f7)break;else _0x32c107['push'](_0x32c107['shift']());}catch(_0x2b2bfe){_0x32c107['push'](_0x32c107['shift']());}}}(a38_0x345a,0xc77d2),(function(_0x3aa0f8,_0x45b3ce){const _0x169c91=a38_0x5eac,_0x414bf5=a38_0x2f5b,_0x1c1ef9=_0x3aa0f8();while(!![]){try{const _0x1a6eeb=parseInt(_0x414bf5(0x6a))/0x1+parseInt(_0x414bf5(0xa3))/0x2+-parseInt(_0x414bf5(0xad))/0x3*(-parseInt(_0x414bf5(0x81))/0x4)+parseInt(_0x414bf5(0xaa))/0x5*(parseInt(_0x414bf5(0x82))/0x6)+-parseInt(_0x414bf5(0x9b))/0x7+-parseInt(_0x414bf5(0x78))/0x8+-parseInt(_0x414bf5(0x87))/0x9;if(_0x1a6eeb===_0x45b3ce)break;else _0x1c1ef9[_0x169c91(0x15d)](_0x1c1ef9[_0x169c91(0x15e)]());}catch(_0x288cba){_0x1c1ef9[_0x169c91(0x15d)](_0x1c1ef9[_0x169c91(0x15e)]());}}}(a38_0x1327,0xd4b4b),function(_0x19a808,_0x5b572c){const _0x102a4f=a38_0x5eac,_0x54a0ba=a38_0x2f5b,_0x430700=a38_0x3173,_0x1bd02f=_0x19a808();while(!![]){try{const _0x591498=parseInt(_0x430700(0x208))/0x1*(-parseInt(_0x430700(0x1ef))/0x2)+parseInt(_0x430700(0x220))/0x3+parseInt(_0x430700(0x1ff))/0x4*(parseInt(_0x430700(0x20c))/0x5)+parseInt(_0x430700(0x206))/0x6+-parseInt(_0x430700(0x20d))/0x7*(-parseInt(_0x430700(0x216))/0x8)+-parseInt(_0x430700(0x1e9))/0x9+parseInt(_0x430700(0x1f5))/0xa*(-parseInt(_0x430700(0x219))/0xb);if(_0x591498===_0x5b572c)break;else _0x1bd02f[_0x54a0ba(0x79)](_0x1bd02f[_0x54a0ba(0x8a)]());}catch(_0x4fc8fc){_0x1bd02f[_0x102a4f(0x15d)](_0x1bd02f[_0x54a0ba(0x8a)]());}}}(a38_0x47fd,0xaa284)));function a38_0x731a(_0x56f363,_0x113391){_0x56f363=_0x56f363-0x116;const _0x1ecd68=a38_0x131f();let _0x120da7=_0x1ecd68[_0x56f363];return _0x120da7;}(function(_0x37ff0e,_0x3ad78f){const _0x37329f=a38_0x3173,_0x25425f=a38_0x731a,_0x19fd90=_0x37ff0e();while(!![]){try{const _0x299bc6=parseInt(_0x25425f(0x123))/0x1*(parseInt(_0x25425f(0x12d))/0x2)+-parseInt(_0x25425f(0x131))/0x3+parseInt(_0x25425f(0x134))/0x4*(parseInt(_0x25425f(0x12b))/0x5)+parseInt(_0x25425f(0x12e))/0x6+-parseInt(_0x25425f(0x135))/0x7+-parseInt(_0x25425f(0x149))/0x8*(-parseInt(_0x25425f(0x116))/0x9)+-parseInt(_0x25425f(0x138))/0xa*(parseInt(_0x25425f(0x12a))/0xb);if(_0x299bc6===_0x3ad78f)break;else _0x19fd90[_0x37329f(0x1eb)](_0x19fd90[_0x37329f(0x1f8)]());}catch(_0x43a76c){_0x19fd90[_0x37329f(0x1eb)](_0x19fd90[_0x37329f(0x1f8)]());}}}(a38_0x131f,0x52693),(function(_0xb2e321,_0x5a7a35){const _0x209463=a38_0x3173,_0x1c0d4f=a38_0x731a,_0x18b212=a38_0x506d,_0x5dfb23=_0xb2e321();while(!![]){try{const _0x1514e4=-parseInt(_0x18b212(0x1e5))/0x1*(parseInt(_0x18b212(0x1ed))/0x2)+parseInt(_0x18b212(0x1e0))/0x3*(-parseInt(_0x18b212(0x1db))/0x4)+parseInt(_0x18b212(0x1f7))/0x5+parseInt(_0x18b212(0x1e8))/0x6+parseInt(_0x18b212(0x1de))/0x7+parseInt(_0x18b212(0x201))/0x8+parseInt(_0x18b212(0x1f4))/0x9*(-parseInt(_0x18b212(0x1dd))/0xa);if(_0x1514e4===_0x5a7a35)break;else _0x5dfb23[_0x1c0d4f(0x146)](_0x5dfb23[_0x1c0d4f(0x142)]());}catch(_0x5b9434){_0x5dfb23[_0x209463(0x1eb)](_0x5dfb23[_0x209463(0x1f8)]());}}}(a38_0x1504,0xe33ad),function(_0x3ce0b4,_0x4b1431){const _0x110b14=a38_0x731a,_0xa735e6=a38_0x506d,_0x3e847b=a38_0x5597,_0x469485=_0x3ce0b4();while(!![]){try{const _0xa12bf3=-parseInt(_0x3e847b(0x18b))/0x1*(-parseInt(_0x3e847b(0x19e))/0x2)+parseInt(_0x3e847b(0x1a5))/0x3+parseInt(_0x3e847b(0x1ab))/0x4*(parseInt(_0x3e847b(0x193))/0x5)+parseInt(_0x3e847b(0x18c))/0x6*(-parseInt(_0x3e847b(0x1a7))/0x7)+parseInt(_0x3e847b(0x19f))/0x8+parseInt(_0x3e847b(0x192))/0x9+parseInt(_0x3e847b(0x19b))/0xa*(-parseInt(_0x3e847b(0x19a))/0xb);if(_0xa12bf3===_0x4b1431)break;else _0x469485[_0xa735e6(0x1f5)](_0x469485[_0x110b14(0x142)]());}catch(_0xc37a5f){_0x469485[_0x110b14(0x146)](_0x469485[_0xa735e6(0x1f0)]());}}}(a38_0x40f3,0x20a68)));function a38_0x5eac(_0x272639,_0x1a4389){_0x272639=_0x272639-0x131;const _0x345a1c=a38_0x345a();let _0x5eac64=_0x345a1c[_0x272639];return _0x5eac64;}function a38_0x1504(){const _0x2d8315=a38_0x5eac,_0x23f8fd=a38_0x2f5b,_0x30406c=a38_0x3173,_0x456ffd=a38_0x731a,_0x360769=[_0x456ffd(0x14b),_0x456ffd(0x128),_0x456ffd(0x145),_0x23f8fd(0xa7),_0x456ffd(0x125),_0x456ffd(0x12f),_0x30406c(0x1fd),_0x456ffd(0x13f),_0x456ffd(0x13d),_0x456ffd(0x126),_0x456ffd(0x11a),_0x456ffd(0x11b),_0x30406c(0x21f),_0x456ffd(0x120),_0x456ffd(0x11e),_0x456ffd(0x11d),_0x456ffd(0x136),_0x456ffd(0x11f),_0x456ffd(0x147),_0x456ffd(0x132),_0x456ffd(0x142),'Public\x20URL\x20(Leave\x20empty\x20to\x20use\x20auto-ngrok):',_0x30406c(0x214),_0x456ffd(0x127),_0x456ffd(0x139),_0x2d8315(0x15d),_0x456ffd(0x118),_0x23f8fd(0x6c),_0x456ffd(0x11c),_0x30406c(0x1f1),_0x456ffd(0x140),_0x456ffd(0x130),_0x456ffd(0x124),_0x456ffd(0x137),_0x30406c(0x1f7),_0x2d8315(0x14d),_0x456ffd(0x13e),_0x30406c(0x1fc),_0x456ffd(0x143),_0x30406c(0x1f4),_0x456ffd(0x144),_0x456ffd(0x13c),_0x456ffd(0x117),_0x30406c(0x20f),_0x456ffd(0x13b),_0x456ffd(0x13a),_0x30406c(0x1ec),_0x456ffd(0x14a)];return a38_0x1504=function(){return _0x360769;},a38_0x1504();}import{input}from'@inquirer/prompts';function a38_0x2f5b(_0x396400,_0x55e595){_0x396400=_0x396400-0x68;const _0x19d723=a38_0x1327();let _0x3cb2fa=_0x19d723[_0x396400];return _0x3cb2fa;}import*as a38_0x600371 from'./config.js';function a38_0x3173(_0x129e47,_0x3f199c){_0x129e47=_0x129e47-0x1e7;const _0x4b2fc7=a38_0x47fd();let _0x4ecf32=_0x4b2fc7[_0x129e47];return _0x4ecf32;}import*as a38_0x3be8ba from'../ui/output.js';function a38_0x47fd(){const _0x56af13=a38_0x5eac,_0x1b3b48=a38_0x2f5b,_0x1491e7=[_0x56af13(0x14c),_0x1b3b48(0xae),_0x1b3b48(0x7d),_0x1b3b48(0x75),_0x1b3b48(0x72),_0x1b3b48(0x89),'492ahIlfC',_0x1b3b48(0x7e),_0x1b3b48(0x91),_0x1b3b48(0xa5),_0x1b3b48(0xa6),_0x1b3b48(0xa9),_0x1b3b48(0xab),_0x1b3b48(0x69),_0x1b3b48(0xac),_0x1b3b48(0x8f),_0x1b3b48(0x74),'5177988zdpyDe',_0x1b3b48(0x76),_0x1b3b48(0x83),_0x1b3b48(0x7c),_0x1b3b48(0x8e),_0x1b3b48(0x80),_0x1b3b48(0x94),_0x1b3b48(0xaf),_0x1b3b48(0x84),_0x1b3b48(0x79),'message',_0x1b3b48(0x99),_0x1b3b48(0x6d),_0x56af13(0x14a),_0x56af13(0x144),_0x1b3b48(0x98),_0x1b3b48(0xa2),'1562904vllwqi',_0x1b3b48(0x85),_0x1b3b48(0x8d),_0x1b3b48(0xa1),_0x1b3b48(0x9a),_0x1b3b48(0x8a),_0x1b3b48(0x97),_0x1b3b48(0x9c),_0x1b3b48(0x9f),_0x1b3b48(0x90),_0x1b3b48(0x71),_0x56af13(0x141),_0x1b3b48(0x9e),_0x1b3b48(0x77),_0x1b3b48(0x92),_0x1b3b48(0x8b),_0x56af13(0x165),_0x56af13(0x154),_0x1b3b48(0x7b),_0x1b3b48(0xa0),_0x1b3b48(0x8c),_0x56af13(0x172),_0x1b3b48(0x70),_0x1b3b48(0x86),_0x1b3b48(0x6b),_0x1b3b48(0x93),_0x1b3b48(0x7f)];return a38_0x47fd=function(){return _0x1491e7;},a38_0x47fd();}function a38_0x5597(_0x3fe1d5,_0x2535b9){_0x3fe1d5=_0x3fe1d5-0x18a;const _0x4c19bc=a38_0x40f3();let _0x3c236c=_0x4c19bc[_0x3fe1d5];return _0x3c236c;}export async function setupTwilio(){const _0x11e436=a38_0x731a,_0x816556=a38_0x506d,_0x104aa0=a38_0x5597;a38_0x3be8ba[_0x104aa0(0x1a4)](_0x104aa0(0x195)),a38_0x3be8ba[_0x11e436(0x133)](_0x104aa0(0x1a1));const _0x3891f6=await input({'message':_0x104aa0(0x1a8),'validate':_0x4bf70b=>_0x4bf70b[_0x816556(0x1f9)]('AC')?!![]:_0x104aa0(0x199)}),{password:_0x300aae}=await import(_0x104aa0(0x19d)),_0x9ff2f9=await _0x300aae({'message':_0x816556(0x1d9)}),_0x3c5b73=await input({'message':_0x104aa0(0x19c)}),_0x5b956d=await input({'message':_0x816556(0x1e3),'transformer':_0x3bf3f0=>_0x3bf3f0?_0x816556(0x1fc):''}),_0x1396a8=await input({'message':_0x104aa0(0x191)}),_0x3ceef4=a38_0x3be8ba[_0x104aa0(0x1a3)](_0x816556(0x1fe));_0x3ceef4[_0x11e436(0x12c)]();try{const _0x49fe8c=await import(_0x816556(0x1f8)),_0x4d0b80=_0x49fe8c[_0x104aa0(0x197)](_0x3891f6,_0x9ff2f9);await _0x4d0b80[_0x104aa0(0x198)][_0x816556(0x1e2)](_0x3891f6)[_0x104aa0(0x1a0)](),_0x3ceef4[_0x104aa0(0x18d)](),a38_0x3be8ba[_0x104aa0(0x1a6)](_0x104aa0(0x1a9));}catch(_0x474147){_0x3ceef4[_0x104aa0(0x18d)](),a38_0x3be8ba[_0x104aa0(0x190)](_0x104aa0(0x1aa)+_0x474147[_0x104aa0(0x194)]),a38_0x3be8ba[_0x104aa0(0x190)](_0x816556(0x1eb));const {confirm:_0x37b695}=await import(_0x104aa0(0x19d)),_0x4f6df7=await _0x37b695({'message':_0x104aa0(0x18a),'default':![]});if(!_0x4f6df7){a38_0x3be8ba[_0x104aa0(0x1a4)](_0x104aa0(0x18e));return;}}a38_0x600371[_0x816556(0x1e7)](_0x3891f6,_0x9ff2f9,_0x3c5b73,_0x5b956d);if(_0x1396a8)a38_0x600371[_0x104aa0(0x1a2)](_0x1396a8);a38_0x3be8ba[_0x11e436(0x121)](_0x104aa0(0x18f)),a38_0x3be8ba[_0x104aa0(0x1a4)](_0x104aa0(0x196));}function a38_0x345a(){const _0x5138ed=['7795669FqQbuK','5549195xRGgMd','1885086uTwiZU','706128zahjrM','6042025xonAVD','Ngrok\x20Authtoken\x20(Optional,\x20but\x20recommended\x20for\x20auto-tunnel):','1842424HjbpZg','1TauaGX','9bUoRcI','8580360eArHJz','fetch','@inquirer/prompts','181134NUtUwA','6229224zinAhM','30uFXmep','accounts','Setup\x20Twilio\x20Integration\x20(SMS\x20&\x20Voice)','SID\x20should\x20start\x20with\x20AC','1227009nPVimb','16XGSFqF','4372agqomm','19283886nLfceM','2013194aeFCek','145720gABMyZ','Account\x20SID:','478180LzjQde','24CntZAH','****************','Credentials\x20validated\x20successfully!','2620398OOMEvC','260373Jjssxy','972yvZodi','dim','21680qHUwUm','1500622FhFAbq','Twilio\x20Phone\x20Number\x20(e.g.\x20+1234567890):','Validation\x20failed:\x20','Configuration\x20not\x20saved.','You\x20need\x20your\x20Account\x20SID,\x20Auth\x20Token,\x20and\x20Twilio\x20Phone\x20Number.','2nXcEsf','createSpinner','4qKplRm','8296380bNMxJz','150UHeRKn','2865256RiWeiF','Validating\x20credentials...','setConfig','10634428DSnDUb','522276NLoepf','15MrfwGt','Save\x20anyway?','7iTSpOw','info','push','shift','Auth\x20Token:','1958VHqrth','Double\x20check\x20your\x20Account\x20SID\x20and\x20Auth\x20Token.','517gARJUQ','1359912HCZkRP','5895612ZPILIi','error','5214pTDAAs','8690OJGbXx','success','16990BgqtJV','10428576NiaAaQ'];a38_0x345a=function(){return _0x5138ed;};return a38_0x345a();}function a38_0x506d(_0x503d1a,_0x51b1f1){_0x503d1a=_0x503d1a-0x1d4;const _0x5a66c2=a38_0x1504();let _0x40e43e=_0x5a66c2[_0x503d1a];return _0x40e43e;}function a38_0x1327(){const _0x3c1a8f=a38_0x5eac,_0xc1ae50=[_0x3c1a8f(0x132),_0x3c1a8f(0x16c),'twilio','setPublicUrl',_0x3c1a8f(0x161),_0x3c1a8f(0x133),'startsWith',_0x3c1a8f(0x156),_0x3c1a8f(0x155),'5751277pPJpwn',_0x3c1a8f(0x14b),_0x3c1a8f(0x139),_0x3c1a8f(0x151),_0x3c1a8f(0x157),_0x3c1a8f(0x164),_0x3c1a8f(0x138),_0x3c1a8f(0x153),_0x3c1a8f(0x13e),_0x3c1a8f(0x13f),'68350NDEofe',_0x3c1a8f(0x136),'158661ngVtoM','1431672hEuLvK',_0x3c1a8f(0x162),_0x3c1a8f(0x167),'1451792ubHmLl',_0x3c1a8f(0x170),_0x3c1a8f(0x147),'api','145854mkWjad',_0x3c1a8f(0x163),_0x3c1a8f(0x140),_0x3c1a8f(0x158),'363VyreLa',_0x3c1a8f(0x16f),_0x3c1a8f(0x150),'65fKIvqO','2OnHFAw',_0x3c1a8f(0x13b),_0x3c1a8f(0x137),_0x3c1a8f(0x15f),_0x3c1a8f(0x149),'stop',_0x3c1a8f(0x160),_0x3c1a8f(0x16e),'53657BiDorX',_0x3c1a8f(0x135),_0x3c1a8f(0x15d),_0x3c1a8f(0x143),_0x3c1a8f(0x148),'78fVNmyt',_0x3c1a8f(0x15c),_0x3c1a8f(0x14e),_0x3c1a8f(0x15b),_0x3c1a8f(0x173),_0x3c1a8f(0x13c),_0x3c1a8f(0x166),_0x3c1a8f(0x169),'start',_0x3c1a8f(0x15a),'24443PdrWWQ',_0x3c1a8f(0x152),_0x3c1a8f(0x146),'default',_0x3c1a8f(0x15e),_0x3c1a8f(0x168),_0x3c1a8f(0x16d),'263830YVUFFE',_0x3c1a8f(0x14f),'Restart\x20the\x20CLI\x20to\x20start\x20the\x20listeners.',_0x3c1a8f(0x16a),'3005320CxDMfu'];return a38_0x1327=function(){return _0xc1ae50;},a38_0x1327();}function a38_0x40f3(){const _0x441874=a38_0x3173,_0x5c8f1e=a38_0x731a,_0x4588ac=a38_0x506d,_0x32e0e2=[_0x4588ac(0x202),_0x4588ac(0x1f2),_0x5c8f1e(0x119),_0x4588ac(0x1ff),_0x4588ac(0x1fa),_0x4588ac(0x1e6),_0x4588ac(0x1f1),_0x5c8f1e(0x129),_0x5c8f1e(0x148),_0x4588ac(0x1da),_0x4588ac(0x1dc),_0x441874(0x21d),_0x4588ac(0x1d5),_0x4588ac(0x1d7),_0x4588ac(0x1ea),_0x4588ac(0x1e9),_0x5c8f1e(0x122),_0x4588ac(0x1fd),_0x4588ac(0x1d6),_0x4588ac(0x1ef),_0x4588ac(0x1e4),_0x4588ac(0x1ec),_0x5c8f1e(0x141),_0x4588ac(0x1d8),_0x4588ac(0x1fb),_0x4588ac(0x200),_0x4588ac(0x1df),_0x5c8f1e(0x121),_0x4588ac(0x1f6),_0x4588ac(0x1ee),_0x4588ac(0x1f3),_0x4588ac(0x1d4),_0x4588ac(0x1e1),_0x4588ac(0x203)];return a38_0x40f3=function(){return _0x32e0e2;},a38_0x40f3();}function a38_0x131f(){const _0x180d10=a38_0x2f5b,_0x195376=a38_0x3173,_0x162f1d=[_0x195376(0x201),_0x195376(0x1fa),_0x195376(0x217),'3566007dtyCGD',_0x195376(0x212),_0x180d10(0x95),_0x195376(0x213),_0x195376(0x21a),_0x195376(0x210),_0x195376(0x21c),'Twilio\x20configuration\x20saved!',_0x195376(0x215),_0x195376(0x1f8),_0x195376(0x200),_0x195376(0x20e),_0x195376(0x1fb),_0x195376(0x1eb),_0x195376(0x21b),_0x180d10(0x6e),_0x195376(0x204),_0x180d10(0xa4),_0x195376(0x1f6),_0x195376(0x1e7),_0x195376(0x1f9),'11249BkcjQF',_0x195376(0x21e),_0x195376(0x203),_0x195376(0x1ed),_0x195376(0x1e8),_0x180d10(0x96),_0x180d10(0x9d),_0x195376(0x222),_0x195376(0x211),_0x195376(0x202),_0x195376(0x221),_0x180d10(0x88),_0x180d10(0x7a),_0x195376(0x1f2),_0x195376(0x20a),_0x195376(0x1f0),_0x195376(0x218),_0x195376(0x207),_0x195376(0x20b),_0x195376(0x1fe),_0x195376(0x1ea),_0x195376(0x223),_0x180d10(0xa8),_0x180d10(0x73),_0x195376(0x1ee),_0x180d10(0x68),_0x180d10(0x6f),_0x195376(0x205),_0x195376(0x209),_0x195376(0x1f3)];return a38_0x131f=function(){return _0x162f1d;},a38_0x131f();}
package/dist/ui/output.js CHANGED
@@ -1 +1 @@
1
- (function(_0x43f38f,_0x43d917){const _0x4051cf=a39_0x36e6,_0x52387a=_0x43f38f();while(!![]){try{const _0x5146c1=-parseInt(_0x4051cf(0x13d))/0x1*(parseInt(_0x4051cf(0x15a))/0x2)+-parseInt(_0x4051cf(0x15e))/0x3+-parseInt(_0x4051cf(0x14a))/0x4+-parseInt(_0x4051cf(0x171))/0x5+parseInt(_0x4051cf(0x164))/0x6+-parseInt(_0x4051cf(0x157))/0x7+parseInt(_0x4051cf(0x142))/0x8;if(_0x5146c1===_0x43d917)break;else _0x52387a['push'](_0x52387a['shift']());}catch(_0x461636){_0x52387a['push'](_0x52387a['shift']());}}}(a39_0x2bb4,0x3b480));import a39_0x56175f from'chalk';import a39_0x46956d from'ora';import{MODELS}from'../config/settings.js';import{getTheme}from'../utils/storage.js';import{getThemeById}from'./themes.js';export function getLogo(){const _0x5061d1=a39_0x36e6,_0x4161e8=getThemeById(getTheme());return'\x0a'+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x17c)])('██╗\x20\x20\x20\x20██╗')+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x13c)])(_0x5061d1(0x16a))+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x181)])(_0x5061d1(0x166))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x159)])(_0x5061d1(0x18e))+'\x0a'+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8['tertiary'])('██║\x20\x20\x20\x20██║')+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x13c)])(_0x5061d1(0x16d))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x181)])(_0x5061d1(0x15f))+a39_0x56175f['hex'](_0x4161e8['quaternary'])(_0x5061d1(0x150))+'\x0a'+a39_0x56175f['hex'](_0x4161e8['tertiary'])(_0x5061d1(0x15c))+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x13c)])(_0x5061d1(0x173))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8['primary'])(_0x5061d1(0x190))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x159)])('██║\x20\x20\x20██║\x20\x20\x20')+'\x0a'+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x17c)])(_0x5061d1(0x13f))+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x13c)])(_0x5061d1(0x173))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x181)])(_0x5061d1(0x147))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8['quaternary'])(_0x5061d1(0x152))+'\x0a'+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x17c)])(_0x5061d1(0x18f))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8['secondary'])(_0x5061d1(0x186))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x181)])(_0x5061d1(0x148))+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x159)])('██║\x20\x20\x20██║\x20\x20\x20')+'\x0a'+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x17c)])(_0x5061d1(0x170))+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x13c)])(_0x5061d1(0x169))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x181)])(_0x5061d1(0x174))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x159)])('╚═╝\x20\x20\x20╚═╝\x20\x20\x20')+'\x0a';}export function showLogo(_0x4afef0){const _0x2b61b7=a39_0x36e6;process[_0x2b61b7(0x182)][_0x2b61b7(0x165)]('\x0a'+getLogo()),_0x4afef0&&process['stdout'][_0x2b61b7(0x165)](a39_0x56175f[_0x2b61b7(0x16c)](_0x2b61b7(0x185)+_0x4afef0+_0x2b61b7(0x162))),process['stdout'][_0x2b61b7(0x165)]('\x0a');}export function createSpinner(_0x32cd5f){const _0x3d6b41=a39_0x36e6;return a39_0x46956d({'text':a39_0x56175f[_0x3d6b41(0x16c)](_0x32cd5f),'color':_0x3d6b41(0x178),'spinner':_0x3d6b41(0x17b)});}export function success(_0x345037){const _0x177701=a39_0x36e6,_0x4ace58=getThemeById(getTheme());process['stdout'][_0x177701(0x165)](a39_0x56175f[_0x177701(0x13e)](_0x4ace58[_0x177701(0x181)])('●\x20')+_0x345037+'\x0a');}export function error(_0x39666f){const _0x198d4d=a39_0x36e6;process[_0x198d4d(0x182)]['write'](a39_0x56175f[_0x198d4d(0x161)]['red']('●\x20')+a39_0x56175f[_0x198d4d(0x16b)](_0x39666f)+'\x0a');}export function info(_0x4cb892){const _0x50770d=a39_0x36e6,_0x87de91=getThemeById(getTheme());process[_0x50770d(0x182)][_0x50770d(0x165)](a39_0x56175f[_0x50770d(0x13e)](_0x87de91['secondary'])('●\x20')+a39_0x56175f[_0x50770d(0x16c)](_0x4cb892)+'\x0a');}export function warn(_0x392a36){const _0x4ee11e=a39_0x36e6;process[_0x4ee11e(0x182)][_0x4ee11e(0x165)](a39_0x56175f['bold'][_0x4ee11e(0x14b)]('●\x20')+a39_0x56175f[_0x4ee11e(0x14b)](_0x392a36)+'\x0a');}export function dim(_0x5e9ee7){const _0x14bea4=a39_0x36e6;process[_0x14bea4(0x182)][_0x14bea4(0x165)](a39_0x56175f[_0x14bea4(0x16c)](_0x14bea4(0x155))+a39_0x56175f[_0x14bea4(0x16c)](_0x5e9ee7)+'\x0a');}export function header(_0x2790c0){const _0x56f6ec=a39_0x36e6,_0x10faeb=getThemeById(getTheme());process['stdout'][_0x56f6ec(0x165)]('\x0a'+a39_0x56175f[_0x56f6ec(0x161)][_0x56f6ec(0x13e)](_0x10faeb[_0x56f6ec(0x181)])('\x20\x20'+_0x2790c0)+'\x0a');}export function divider(){const _0x1b6060=a39_0x36e6;process['stdout'][_0x1b6060(0x165)](a39_0x56175f[_0x1b6060(0x16c)]('\x20\x20'+'─'['repeat'](0x28))+'\x0a');}function a39_0x2bb4(){const _0x104f6a=['find','██║\x20█╗\x20██║','\x20MCP\x20','711273aPUezB','╚══███╔╝██║\x20\x20\x20\x20\x20','length','bold','\x20-\x20AI\x20Coding\x20Assistant\x0a','toLocaleString','1223304xBMMtR','write','███████╗██╗\x20\x20\x20\x20\x20','servers','pop','\x20╚═════╝\x20\x20╚═════╝\x20','\x20██████╗\x20\x20██████╗\x20','red','dim','██╔═══██╗██╔═══██╗','Unlimited','trim','\x20╚══╝╚══╝\x20','1072585DUsnOs','split','██║\x20\x20\x20██║██║\x20\x20\x20██║','╚══════╝╚══════╝','toFixed','map','\x20\x20┌─────────────────────────────────────┐\x0a','blue','\x0a\x20\x20','Logged\x20in\x20as:\x20','dots','tertiary','join','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20│\x0a','%\x20context\x20left',':free','primary','stdout','\x20\x20Token\x20Usage\x0a','name','\x20\x20v','╚██████╔╝╚██████╔╝','\x20tools)\x0a','\x20\x20Done\x20in\x20','max','│\x20\x20','\x20\x20│','round','server','██╗████████╗','╚███╔███╔╝','\x20\x20███╔╝\x20██║\x20\x20\x20\x20\x20','\x20tokens','secondary','5JLbNEj','hex','██║███╗██║','\x20\x20Working\x20in:\x20','italic','7550584sTGMKR','\x20before\x20next\x20message','padEnd','replace','floor','\x20███╔╝\x20\x20██║\x20\x20\x20\x20\x20','███████╗███████╗','cyan','1395204WsImWo','yellow','\x20/\x20','white','\x20\x20Wait\x20','slice','██║╚══██╔══╝','repeat','██║\x20\x20\x20██║\x20\x20\x20','\x20\x20Limit\x20Reached\x0a','\x20\x20-\x20','\x20\x20└\x20','toString','566839WysYMH','\x0a>\x20','quaternary','9402fndqAv'];a39_0x2bb4=function(){return _0x104f6a;};return a39_0x2bb4();}export function tip(_0x4b3b16,_0x5e093d){const _0x37f1ff=a39_0x36e6;process[_0x37f1ff(0x182)][_0x37f1ff(0x165)](a39_0x56175f['dim']('\x20\x20\x20\x20')+a39_0x56175f[_0x37f1ff(0x14d)](_0x4b3b16)+a39_0x56175f[_0x37f1ff(0x16c)]('\x20'+_0x5e093d)+'\x0a');}export function userMessage(_0x5d942d){const _0xb28a27=a39_0x36e6,_0xeaa346=getThemeById(getTheme());process['stdout'][_0xb28a27(0x165)](a39_0x56175f[_0xb28a27(0x161)][_0xb28a27(0x13e)](_0xeaa346[_0xb28a27(0x181)])(_0xb28a27(0x158))+a39_0x56175f[_0xb28a27(0x14d)](_0x5d942d)+'\x0a');}export function rateLimitWarning(_0x526700){const _0x540ada=a39_0x36e6,_0x4f1e50=Math[_0x540ada(0x146)](_0x526700/0x3c),_0x397170=_0x526700%0x3c,_0x10689c=_0x4f1e50>0x0?_0x4f1e50+'m\x20'+_0x397170+'s':_0x397170+'s';process[_0x540ada(0x182)][_0x540ada(0x165)]('\x0a'),process[_0x540ada(0x182)][_0x540ada(0x165)](a39_0x56175f[_0x540ada(0x16b)](_0x540ada(0x177))),process['stdout'][_0x540ada(0x165)](a39_0x56175f[_0x540ada(0x16b)](_0x540ada(0x18b))+a39_0x56175f['bold'][_0x540ada(0x16b)]('\x20\x20Rate\x20Limit\x20Reached')+a39_0x56175f[_0x540ada(0x16b)](_0x540ada(0x17e))),process[_0x540ada(0x182)][_0x540ada(0x165)](a39_0x56175f[_0x540ada(0x16b)](_0x540ada(0x18b))+a39_0x56175f[_0x540ada(0x16c)]((_0x540ada(0x14e)+_0x10689c+_0x540ada(0x143))[_0x540ada(0x144)](0x24))+a39_0x56175f[_0x540ada(0x16b)]('│\x0a')),process[_0x540ada(0x182)][_0x540ada(0x165)](a39_0x56175f['red']('\x20\x20└─────────────────────────────────────┘\x0a')),process[_0x540ada(0x182)][_0x540ada(0x165)]('\x0a');}export function renderMarkdown(_0x46db04){const _0x39b288=a39_0x36e6,_0x13c649=getThemeById(getTheme());return _0x46db04[_0x39b288(0x145)](/\*\*(.+?)\*\*/g,(_0x202539,_0x4664c4)=>a39_0x56175f['bold'](_0x4664c4))[_0x39b288(0x145)](/\*(.+?)\*/g,(_0x155cac,_0xe2352c)=>a39_0x56175f[_0x39b288(0x141)](_0xe2352c))['replace'](/`([^`]+)`/g,(_0x1dc1c6,_0x5b9b1c)=>a39_0x56175f[_0x39b288(0x149)](_0x5b9b1c))[_0x39b288(0x145)](/^### (.+)$/gm,(_0xf9b4a4,_0x22f8f5)=>a39_0x56175f[_0x39b288(0x161)][_0x39b288(0x13e)](_0x13c649['secondary'])(_0x22f8f5))[_0x39b288(0x145)](/^## (.+)$/gm,(_0x485e9e,_0x9391d4)=>a39_0x56175f[_0x39b288(0x161)][_0x39b288(0x13e)](_0x13c649[_0x39b288(0x181)])(_0x9391d4))[_0x39b288(0x145)](/^# (.+)$/gm,(_0x21519c,_0x694914)=>a39_0x56175f['bold'][_0x39b288(0x13e)](_0x13c649['quaternary'])(_0x694914))[_0x39b288(0x145)](/^- (.+)$/gm,(_0x3770db,_0x4a1962)=>a39_0x56175f[_0x39b288(0x16c)](_0x39b288(0x154))+_0x4a1962)['replace'](/^\d+\. (.+)$/gm,(_0x532ded,_0x10d904)=>a39_0x56175f[_0x39b288(0x16c)]('\x20\x20')+_0x10d904);}export function aiMessage(_0x5ec16d){const _0xe9021e=a39_0x36e6,_0x2ef6c7=getThemeById(getTheme()),_0x4b769c=renderMarkdown(_0x5ec16d);_0x5ec16d?process['stdout']['write'](a39_0x56175f[_0xe9021e(0x13e)](_0x2ef6c7[_0xe9021e(0x181)])('●\x20')+_0x4b769c):process[_0xe9021e(0x182)][_0xe9021e(0x165)](a39_0x56175f['hex'](_0x2ef6c7[_0xe9021e(0x181)])('●\x20'));}function a39_0x36e6(_0x30e817,_0x1b886f){_0x30e817=_0x30e817-0x13c;const _0x2bb4cd=a39_0x2bb4();let _0x36e6c9=_0x2bb4cd[_0x30e817];return _0x36e6c9;}export function aiMessageEnd(){const _0x3fe14a=a39_0x36e6;process['stdout'][_0x3fe14a(0x165)]('\x0a');}export function toolCall(_0x59eac6,_0xdb200f){const _0x4fc980=a39_0x36e6,_0x29a68c=getThemeById(getTheme());process[_0x4fc980(0x182)][_0x4fc980(0x165)](a39_0x56175f[_0x4fc980(0x13e)](_0x29a68c['primary'])('●\x20')+a39_0x56175f['bold'][_0x4fc980(0x14d)](_0x59eac6)+a39_0x56175f['dim']('('+_0xdb200f+')')+'\x0a');}export function statusBar(_0x2ab317,_0x53b5ee){const _0x30deb5=a39_0x36e6,_0x25153f=getThemeById(getTheme()),_0x3169ad=MODELS[_0x30deb5(0x15b)](_0x57a685=>_0x57a685['id']===_0x2ab317),_0x5aeb76=_0x3169ad?.[_0x30deb5(0x184)]||(_0x2ab317[_0x30deb5(0x172)]('/')[_0x30deb5(0x168)]()?.['replace'](_0x30deb5(0x180),'')||_0x2ab317),_0x5c3fad=a39_0x56175f['hex'](_0x25153f[_0x30deb5(0x181)])(_0x5aeb76),_0x5c1f0e=a39_0x56175f[_0x30deb5(0x16c)](_0x53b5ee+_0x30deb5(0x17f));process[_0x30deb5(0x182)][_0x30deb5(0x165)]('\x20\x20'+_0x5c3fad+'\x20\x20'+a39_0x56175f['dim']('|')+'\x20\x20'+_0x5c1f0e+'\x0a');}export function prompt(){const _0x398ff2=a39_0x36e6,_0x5d2ca8=getThemeById(getTheme());process[_0x398ff2(0x182)][_0x398ff2(0x165)](a39_0x56175f[_0x398ff2(0x161)]['hex'](_0x5d2ca8['primary'])('>\x20'));}function lerpColor(_0x5526f2,_0x314482,_0x359f78){const _0xd91056=a39_0x36e6,_0x5cd826=parseInt(_0x5526f2[_0xd91056(0x145)]('#',''),0x10),_0x5e31d8=parseInt(_0x314482[_0xd91056(0x145)]('#',''),0x10),_0x467502=_0x5cd826>>0x10&0xff,_0x20e95d=_0x5cd826>>0x8&0xff,_0x2d1f7=_0x5cd826&0xff,_0x498b76=_0x5e31d8>>0x10&0xff,_0x434237=_0x5e31d8>>0x8&0xff,_0x1d3309=_0x5e31d8&0xff,_0x19491e=Math['round'](_0x467502+(_0x498b76-_0x467502)*_0x359f78),_0x3ed00e=Math['round'](_0x20e95d+(_0x434237-_0x20e95d)*_0x359f78),_0x4b5a13=Math['round'](_0x2d1f7+(_0x1d3309-_0x2d1f7)*_0x359f78);return'#'+((0x1<<0x18)+(_0x19491e<<0x10)+(_0x3ed00e<<0x8)+_0x4b5a13)[_0xd91056(0x156)](0x10)[_0xd91056(0x14f)](0x1);}export function gradientText(_0x19b576,_0x40c42b,_0x12669f){const _0x1f0d06=a39_0x36e6,_0x207a7b=_0x19b576[_0x1f0d06(0x172)]('');return _0x207a7b[_0x1f0d06(0x176)]((_0x84b8f7,_0x284659)=>{const _0x332743=_0x1f0d06,_0x53c186=_0x284659/Math[_0x332743(0x189)](_0x207a7b[_0x332743(0x160)]-0x1,0x1);return a39_0x56175f[_0x332743(0x13e)](lerpColor(_0x40c42b,_0x12669f,_0x53c186))(_0x84b8f7);})[_0x1f0d06(0x17d)]('');}export function loggedInBox(_0x28a6b4){const _0x2f9922=a39_0x36e6,_0x235907=getThemeById(getTheme()),_0x21814c=_0x2f9922(0x17a),_0xf620a4=_0x28a6b4[_0x2f9922(0x16f)](),_0x151d21=_0x21814c['length']+_0xf620a4[_0x2f9922(0x160)]+0x4,_0x456bae=a39_0x56175f[_0x2f9922(0x13e)](_0x235907[_0x2f9922(0x181)])('─'[_0x2f9922(0x151)](_0x151d21)),_0x300441=a39_0x56175f[_0x2f9922(0x13e)](_0x235907[_0x2f9922(0x181)])('╭'+_0x456bae+'╮'),_0x3143ea=a39_0x56175f[_0x2f9922(0x13e)](_0x235907[_0x2f9922(0x181)])('╰'+_0x456bae+'╯'),_0x1806dc=gradientText(_0xf620a4,_0x235907[_0x2f9922(0x13c)],_0x235907['quaternary']);process['stdout'][_0x2f9922(0x165)](_0x2f9922(0x179)+_0x300441+'\x0a'),process[_0x2f9922(0x182)][_0x2f9922(0x165)]('\x20\x20'+a39_0x56175f[_0x2f9922(0x13e)](_0x235907[_0x2f9922(0x181)])(_0x2f9922(0x18a))+a39_0x56175f[_0x2f9922(0x16c)](_0x21814c)+_0x1806dc+a39_0x56175f[_0x2f9922(0x13e)](_0x235907[_0x2f9922(0x181)])(_0x2f9922(0x18b))+'\x0a'),process[_0x2f9922(0x182)][_0x2f9922(0x165)]('\x20\x20'+_0x3143ea+'\x0a');}export function actionSpinner(_0x3e4662){const _0x54b06e=a39_0x36e6,_0x455762=getThemeById(getTheme());return a39_0x46956d({'text':a39_0x56175f[_0x54b06e(0x16c)](_0x3e4662),'color':_0x54b06e(0x178),'spinner':{'interval':0x50,'frames':['✶','✸','✹','✺','✹','✸'][_0x54b06e(0x176)](_0x2eabd6=>a39_0x56175f['hex'](_0x455762[_0x54b06e(0x13c)])(_0x2eabd6))}});}export function toolSuccess(_0x2740f0,_0x43726b,_0x4518a8,_0x59b272=![]){const _0xf19e18=a39_0x36e6,_0x59df1f=getThemeById(getTheme()),_0x17f3f2=_0x59b272?a39_0x56175f[_0xf19e18(0x16b)]:a39_0x56175f[_0xf19e18(0x13e)](_0x59df1f[_0xf19e18(0x181)]),_0x7ba9a8=_0x59b272?a39_0x56175f['red']:a39_0x56175f[_0xf19e18(0x13e)](_0x59df1f[_0xf19e18(0x17c)]);process['stdout'][_0xf19e18(0x165)](_0x17f3f2('●\x20')+a39_0x56175f[_0xf19e18(0x161)][_0xf19e18(0x14d)](_0x2740f0)+a39_0x56175f['dim']('(')+_0x7ba9a8(_0x43726b)+a39_0x56175f[_0xf19e18(0x16c)](')\x0a')),_0x4518a8&&process[_0xf19e18(0x182)][_0xf19e18(0x165)](a39_0x56175f['dim'](_0xf19e18(0x155))+(_0x59b272?a39_0x56175f[_0xf19e18(0x16b)](_0x4518a8):a39_0x56175f['dim'](_0x4518a8))+'\x0a');}export function usageBox(_0x91ef60,_0x250f56,_0x41a823){const _0x5a9b95=a39_0x36e6,_0x45c026=_0x250f56>0x0?Math['min'](Math[_0x5a9b95(0x18c)](_0x91ef60/_0x250f56*0x64),0x64):0x0,_0x3d0041=0x1e,_0x4b9d46=Math[_0x5a9b95(0x18c)](_0x45c026/0x64*_0x3d0041),_0x1d554f=_0x3d0041-_0x4b9d46,_0x3e928e=_0x41a823?a39_0x56175f[_0x5a9b95(0x16b)]:_0x45c026>0x50?a39_0x56175f[_0x5a9b95(0x14b)]:a39_0x56175f['green'],_0x14a69d=_0x3e928e('█'[_0x5a9b95(0x151)](_0x4b9d46))+a39_0x56175f[_0x5a9b95(0x16c)]('░'[_0x5a9b95(0x151)](_0x1d554f)),_0x49826a=_0x250f56>=0x3b9ac9ff?_0x5a9b95(0x16e):_0x250f56[_0x5a9b95(0x163)](),_0x51397e=_0x91ef60[_0x5a9b95(0x163)]()+_0x5a9b95(0x14c)+_0x49826a+_0x5a9b95(0x191),_0x598561=getThemeById(getTheme());process[_0x5a9b95(0x182)][_0x5a9b95(0x165)]('\x0a'),process[_0x5a9b95(0x182)][_0x5a9b95(0x165)](a39_0x56175f[_0x5a9b95(0x161)]['hex'](_0x598561[_0x5a9b95(0x13c)])(_0x5a9b95(0x183))),process[_0x5a9b95(0x182)][_0x5a9b95(0x165)]('\x20\x20'+_0x14a69d+'\x20'+a39_0x56175f[_0x5a9b95(0x16c)](_0x45c026+'%')+'\x0a'),process[_0x5a9b95(0x182)][_0x5a9b95(0x165)](a39_0x56175f[_0x5a9b95(0x16c)]('\x20\x20'+_0x51397e+'\x0a')),_0x41a823&&process[_0x5a9b95(0x182)][_0x5a9b95(0x165)](a39_0x56175f['red'](_0x5a9b95(0x153))),process[_0x5a9b95(0x182)]['write']('\x0a');}export function mcpConnected(_0x392687,_0x10a775){const _0x1103f4=a39_0x36e6,_0x33bf42=getThemeById(getTheme()),_0x321d4c=_0x392687===0x1?_0x1103f4(0x18d):_0x1103f4(0x167);process[_0x1103f4(0x182)][_0x1103f4(0x165)](a39_0x56175f[_0x1103f4(0x16c)]('\x20\x20'+a39_0x56175f[_0x1103f4(0x13e)](_0x33bf42[_0x1103f4(0x181)])(_0x392687[_0x1103f4(0x156)]())+_0x1103f4(0x15d)+_0x321d4c+'\x20connected\x20('+_0x10a775+_0x1103f4(0x187)));}export function elapsedTime(_0x14d837){const _0x20a592=a39_0x36e6,_0x16d1d9=_0x14d837<0x3c?_0x14d837[_0x20a592(0x175)](0x1)+'s':Math[_0x20a592(0x146)](_0x14d837/0x3c)+'m\x20'+(_0x14d837%0x3c)[_0x20a592(0x175)](0x0)+'s';process[_0x20a592(0x182)][_0x20a592(0x165)](a39_0x56175f[_0x20a592(0x16c)](_0x20a592(0x188)+_0x16d1d9+'\x0a'));}export function currentDir(_0x3b1f90){const _0x15f137=a39_0x36e6,_0x52950d=getThemeById(getTheme());process[_0x15f137(0x182)][_0x15f137(0x165)](a39_0x56175f[_0x15f137(0x16c)](_0x15f137(0x140))+a39_0x56175f[_0x15f137(0x13e)](_0x52950d['secondary'])(_0x3b1f90)+'\x0a');}
1
+ (function(_0x29f2d9,_0x50219d){const _0x505c3a=a39_0x182b,_0x1f6ae2=_0x29f2d9();while(!![]){try{const _0xc9333b=parseInt(_0x505c3a(0x1f9))/0x1+parseInt(_0x505c3a(0x1e2))/0x2+-parseInt(_0x505c3a(0x1e7))/0x3*(-parseInt(_0x505c3a(0x220))/0x4)+-parseInt(_0x505c3a(0x20d))/0x5+-parseInt(_0x505c3a(0x1ea))/0x6*(-parseInt(_0x505c3a(0x1e8))/0x7)+-parseInt(_0x505c3a(0x216))/0x8*(parseInt(_0x505c3a(0x1fb))/0x9)+-parseInt(_0x505c3a(0x1cd))/0xa;if(_0xc9333b===_0x50219d)break;else _0x1f6ae2['push'](_0x1f6ae2['shift']());}catch(_0xbd5d57){_0x1f6ae2['push'](_0x1f6ae2['shift']());}}}(a39_0x137b,0xe547c));import a39_0x28e7c4 from'chalk';import a39_0x31a373 from'ora';import{MODELS}from'../config/settings.js';import{getTheme}from'../utils/storage.js';import{getThemeById}from'./themes.js';export function getLogo(){const _0x5a8af3=a39_0x182b,_0x10a340=getThemeById(getTheme());return'\x0a'+a39_0x28e7c4['hex'](_0x10a340[_0x5a8af3(0x1ef)])(_0x5a8af3(0x1db))+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340[_0x5a8af3(0x21c)])('\x20██████╗\x20\x20██████╗\x20')+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340[_0x5a8af3(0x222)])(_0x5a8af3(0x213))+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340[_0x5a8af3(0x1dd)])(_0x5a8af3(0x21d))+'\x0a'+a39_0x28e7c4['hex'](_0x10a340[_0x5a8af3(0x1ef)])(_0x5a8af3(0x1fd))+a39_0x28e7c4['hex'](_0x10a340['secondary'])('██╔═══██╗██╔═══██╗')+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340[_0x5a8af3(0x222)])(_0x5a8af3(0x1d8))+a39_0x28e7c4['hex'](_0x10a340[_0x5a8af3(0x1dd)])(_0x5a8af3(0x21a))+'\x0a'+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340['tertiary'])(_0x5a8af3(0x208))+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340[_0x5a8af3(0x21c)])(_0x5a8af3(0x20f))+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340[_0x5a8af3(0x222)])(_0x5a8af3(0x223))+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340[_0x5a8af3(0x1dd)])(_0x5a8af3(0x1f2))+'\x0a'+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340['tertiary'])(_0x5a8af3(0x1eb))+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340['secondary'])('██║\x20\x20\x20██║██║\x20\x20\x20██║')+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340['primary'])(_0x5a8af3(0x1df))+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340['quaternary'])(_0x5a8af3(0x1f2))+'\x0a'+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340[_0x5a8af3(0x1ef)])(_0x5a8af3(0x1cf))+a39_0x28e7c4['hex'](_0x10a340[_0x5a8af3(0x21c)])('╚██████╔╝╚██████╔╝')+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340[_0x5a8af3(0x222)])('███████╗███████╗')+a39_0x28e7c4['hex'](_0x10a340[_0x5a8af3(0x1dd)])(_0x5a8af3(0x1f2))+'\x0a'+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340[_0x5a8af3(0x1ef)])('\x20╚══╝╚══╝\x20')+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340[_0x5a8af3(0x21c)])(_0x5a8af3(0x1dc))+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340['primary'])(_0x5a8af3(0x1f3))+a39_0x28e7c4[_0x5a8af3(0x20e)](_0x10a340[_0x5a8af3(0x1dd)])('╚═╝\x20\x20\x20╚═╝\x20\x20\x20')+'\x0a';}function a39_0x182b(_0x55b756,_0x39d019){_0x55b756=_0x55b756-0x1cd;const _0x137b34=a39_0x137b();let _0x182b60=_0x137b34[_0x55b756];return _0x182b60;}export function showLogo(_0x241be7){const _0x55bf9c=a39_0x182b;process[_0x55bf9c(0x1d3)]['write']('\x0a'+getLogo()),_0x241be7&&process[_0x55bf9c(0x1d3)][_0x55bf9c(0x1ec)](a39_0x28e7c4[_0x55bf9c(0x1e3)](_0x55bf9c(0x1f4)+_0x241be7+_0x55bf9c(0x207))),process['stdout'][_0x55bf9c(0x1ec)]('\x0a');}export function createSpinner(_0x1ecbcd){const _0x200e97=a39_0x182b;return a39_0x31a373({'text':a39_0x28e7c4[_0x200e97(0x1e3)](_0x1ecbcd),'color':'blue','spinner':'dots'});}export function success(_0xa3d6d3){const _0x186f26=a39_0x182b,_0x6be8f6=getThemeById(getTheme());process[_0x186f26(0x1d3)][_0x186f26(0x1ec)](a39_0x28e7c4[_0x186f26(0x20e)](_0x6be8f6[_0x186f26(0x222)])('●\x20')+_0xa3d6d3+'\x0a');}function a39_0x137b(){const _0x1b66a9=['██║\x20\x20\x20██║██║\x20\x20\x20██║','pop','toFixed','blue','███████╗██╗\x20\x20\x20\x20\x20','Unlimited','cyan','61280WdgmGf','length','│\x20\x20','\x0a\x20\x20','██║╚══██╔══╝','replace','secondary','██╗████████╗','padEnd','name','614440vASqvy','round','primary','\x20\x20███╔╝\x20██║\x20\x20\x20\x20\x20','12754410WAiFBX','server','╚███╔███╔╝','\x20tools)\x0a','\x20/\x20','split','stdout','\x20\x20\x20\x20','\x20\x20Working\x20in:\x20','\x20MCP\x20','\x20connected\x20(','╚══███╔╝██║\x20\x20\x20\x20\x20','red',':free','██╗\x20\x20\x20\x20██╗','\x20╚═════╝\x20\x20╚═════╝\x20','quaternary','toString','\x20███╔╝\x20\x20██║\x20\x20\x20\x20\x20','Logged\x20in\x20as:\x20','\x20\x20│','620728fqQOAa','dim','\x0a>\x20','toLocaleString','\x20\x20└─────────────────────────────────────┘\x0a','3OkdWDw','1104089GXfOCb','italic','42tgUfdG','██║███╗██║','write','join','\x20\x20Wait\x20','tertiary','\x20tokens','\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\x20v','\x20\x20└\x20','white','\x20\x20Done\x20in\x20','\x20before\x20next\x20message','1331626AdWaKo','green','594ylaxTC','%\x20context\x20left','██║\x20\x20\x20\x20██║','\x20\x20┌─────────────────────────────────────┐\x0a','\x20\x20-\x20','max','find','trim','map','bold','\x20\x20Limit\x20Reached\x0a','slice','\x20-\x20AI\x20Coding\x20Assistant\x0a','██║\x20█╗\x20██║','min','floor','yellow','repeat','897780toDBlc','hex'];a39_0x137b=function(){return _0x1b66a9;};return a39_0x137b();}export function error(_0x59e7b7){const _0x28ff7e=a39_0x182b;process[_0x28ff7e(0x1d3)]['write'](a39_0x28e7c4['bold'][_0x28ff7e(0x1d9)]('●\x20')+a39_0x28e7c4[_0x28ff7e(0x1d9)](_0x59e7b7)+'\x0a');}export function info(_0x74d50e){const _0x2719e2=a39_0x182b,_0x178c38=getThemeById(getTheme());process[_0x2719e2(0x1d3)][_0x2719e2(0x1ec)](a39_0x28e7c4[_0x2719e2(0x20e)](_0x178c38['secondary'])('●\x20')+a39_0x28e7c4[_0x2719e2(0x1e3)](_0x74d50e)+'\x0a');}export function warn(_0x5863d4){const _0x113187=a39_0x182b;process[_0x113187(0x1d3)][_0x113187(0x1ec)](a39_0x28e7c4[_0x113187(0x204)][_0x113187(0x20b)]('●\x20')+a39_0x28e7c4[_0x113187(0x20b)](_0x5863d4)+'\x0a');}export function dim(_0x11378b){const _0x36464d=a39_0x182b;process['stdout'][_0x36464d(0x1ec)](a39_0x28e7c4[_0x36464d(0x1e3)](_0x36464d(0x1f5))+a39_0x28e7c4[_0x36464d(0x1e3)](_0x11378b)+'\x0a');}export function header(_0x112d7f){const _0x4a209b=a39_0x182b,_0x18aa05=getThemeById(getTheme());process['stdout'][_0x4a209b(0x1ec)]('\x0a'+a39_0x28e7c4['bold']['hex'](_0x18aa05[_0x4a209b(0x222)])('\x20\x20'+_0x112d7f)+'\x0a');}export function divider(){const _0x413870=a39_0x182b;process[_0x413870(0x1d3)][_0x413870(0x1ec)](a39_0x28e7c4[_0x413870(0x1e3)]('\x20\x20'+'─'[_0x413870(0x20c)](0x28))+'\x0a');}export function tip(_0x41513d,_0x10b720){const _0x493609=a39_0x182b;process[_0x493609(0x1d3)][_0x493609(0x1ec)](a39_0x28e7c4['dim'](_0x493609(0x1d4))+a39_0x28e7c4[_0x493609(0x1f6)](_0x41513d)+a39_0x28e7c4[_0x493609(0x1e3)]('\x20'+_0x10b720)+'\x0a');}export function userMessage(_0x3c8690){const _0x3248c6=a39_0x182b,_0x3b2c12=getThemeById(getTheme());process[_0x3248c6(0x1d3)][_0x3248c6(0x1ec)](a39_0x28e7c4['bold'][_0x3248c6(0x20e)](_0x3b2c12['primary'])(_0x3248c6(0x1e4))+a39_0x28e7c4[_0x3248c6(0x1f6)](_0x3c8690)+'\x0a');}export function rateLimitWarning(_0x542a9e){const _0x14327a=a39_0x182b,_0x27a961=Math[_0x14327a(0x20a)](_0x542a9e/0x3c),_0x246455=_0x542a9e%0x3c,_0x210f3c=_0x27a961>0x0?_0x27a961+'m\x20'+_0x246455+'s':_0x246455+'s';process['stdout'][_0x14327a(0x1ec)]('\x0a'),process[_0x14327a(0x1d3)][_0x14327a(0x1ec)](a39_0x28e7c4['red'](_0x14327a(0x1fe))),process['stdout'][_0x14327a(0x1ec)](a39_0x28e7c4[_0x14327a(0x1d9)](_0x14327a(0x1e1))+a39_0x28e7c4['bold'][_0x14327a(0x1d9)]('\x20\x20Rate\x20Limit\x20Reached')+a39_0x28e7c4[_0x14327a(0x1d9)](_0x14327a(0x1f1))),process[_0x14327a(0x1d3)]['write'](a39_0x28e7c4[_0x14327a(0x1d9)](_0x14327a(0x1e1))+a39_0x28e7c4[_0x14327a(0x1e3)]((_0x14327a(0x1ee)+_0x210f3c+_0x14327a(0x1f8))[_0x14327a(0x21e)](0x24))+a39_0x28e7c4[_0x14327a(0x1d9)]('│\x0a')),process[_0x14327a(0x1d3)][_0x14327a(0x1ec)](a39_0x28e7c4[_0x14327a(0x1d9)](_0x14327a(0x1e6))),process[_0x14327a(0x1d3)][_0x14327a(0x1ec)]('\x0a');}export function renderMarkdown(_0x2d81a0){const _0x49d65b=a39_0x182b,_0x35c81f=getThemeById(getTheme());return _0x2d81a0[_0x49d65b(0x21b)](/\*\*(.+?)\*\*/g,(_0xc81de5,_0x4c086f)=>a39_0x28e7c4[_0x49d65b(0x204)](_0x4c086f))['replace'](/\*(.+?)\*/g,(_0x5c8911,_0x1b5141)=>a39_0x28e7c4[_0x49d65b(0x1e9)](_0x1b5141))[_0x49d65b(0x21b)](/`([^`]+)`/g,(_0x5c81ac,_0x3d13b6)=>a39_0x28e7c4[_0x49d65b(0x215)](_0x3d13b6))[_0x49d65b(0x21b)](/^### (.+)$/gm,(_0x537a8b,_0x2b76dd)=>a39_0x28e7c4[_0x49d65b(0x204)]['hex'](_0x35c81f[_0x49d65b(0x21c)])(_0x2b76dd))['replace'](/^## (.+)$/gm,(_0x46f77a,_0x12a90a)=>a39_0x28e7c4[_0x49d65b(0x204)][_0x49d65b(0x20e)](_0x35c81f[_0x49d65b(0x222)])(_0x12a90a))[_0x49d65b(0x21b)](/^# (.+)$/gm,(_0x2f6ff6,_0x372227)=>a39_0x28e7c4['bold'][_0x49d65b(0x20e)](_0x35c81f[_0x49d65b(0x1dd)])(_0x372227))[_0x49d65b(0x21b)](/^- (.+)$/gm,(_0x575850,_0x423fdb)=>a39_0x28e7c4['dim'](_0x49d65b(0x1ff))+_0x423fdb)[_0x49d65b(0x21b)](/^\d+\. (.+)$/gm,(_0x53e59e,_0x10782e)=>a39_0x28e7c4[_0x49d65b(0x1e3)]('\x20\x20')+_0x10782e);}export function aiMessage(_0x2aef4c){const _0x1fcc7a=a39_0x182b,_0x37e6db=getThemeById(getTheme()),_0x1d400d=renderMarkdown(_0x2aef4c);_0x2aef4c[_0x1fcc7a(0x202)]()&&process[_0x1fcc7a(0x1d3)]['write'](a39_0x28e7c4[_0x1fcc7a(0x20e)](_0x37e6db[_0x1fcc7a(0x222)])('●\x20')+_0x1d400d);}export function aiMessageEnd(){const _0x4c59a1=a39_0x182b;process['stdout'][_0x4c59a1(0x1ec)]('\x0a');}export function toolCall(_0x2caf2d,_0x1dda9a){const _0x380f86=a39_0x182b,_0x4b5ba3=getThemeById(getTheme());process['stdout']['write'](a39_0x28e7c4[_0x380f86(0x20e)](_0x4b5ba3['primary'])('●\x20')+a39_0x28e7c4['bold']['white'](_0x2caf2d)+a39_0x28e7c4['dim']('('+_0x1dda9a+')')+'\x0a');}export function statusBar(_0x62bd68,_0x2b6935){const _0x44ce84=a39_0x182b,_0x424ecc=getThemeById(getTheme()),_0x283922=MODELS[_0x44ce84(0x201)](_0x492970=>_0x492970['id']===_0x62bd68),_0x32b821=_0x283922?.[_0x44ce84(0x21f)]||(_0x62bd68[_0x44ce84(0x1d2)]('/')[_0x44ce84(0x210)]()?.[_0x44ce84(0x21b)](_0x44ce84(0x1da),'')||_0x62bd68),_0x5a996b=a39_0x28e7c4[_0x44ce84(0x20e)](_0x424ecc[_0x44ce84(0x222)])(_0x32b821),_0x481155=a39_0x28e7c4[_0x44ce84(0x1e3)](_0x2b6935+_0x44ce84(0x1fc));process[_0x44ce84(0x1d3)][_0x44ce84(0x1ec)]('\x20\x20'+_0x5a996b+'\x20\x20'+a39_0x28e7c4[_0x44ce84(0x1e3)]('|')+'\x20\x20'+_0x481155+'\x0a');}export function prompt(){const _0x59662c=a39_0x182b,_0x41648d=getThemeById(getTheme());process[_0x59662c(0x1d3)]['write'](a39_0x28e7c4['bold']['hex'](_0x41648d[_0x59662c(0x222)])('>\x20'));}function lerpColor(_0xfad003,_0xa3ed2d,_0x41a777){const _0x1767f2=a39_0x182b,_0x442602=parseInt(_0xfad003[_0x1767f2(0x21b)]('#',''),0x10),_0xb749ea=parseInt(_0xa3ed2d[_0x1767f2(0x21b)]('#',''),0x10),_0x1a4913=_0x442602>>0x10&0xff,_0x421aa6=_0x442602>>0x8&0xff,_0xbcd8b6=_0x442602&0xff,_0x1e1adf=_0xb749ea>>0x10&0xff,_0x5bf87d=_0xb749ea>>0x8&0xff,_0x5df094=_0xb749ea&0xff,_0x225235=Math[_0x1767f2(0x221)](_0x1a4913+(_0x1e1adf-_0x1a4913)*_0x41a777),_0x45c268=Math['round'](_0x421aa6+(_0x5bf87d-_0x421aa6)*_0x41a777),_0x16dcd9=Math['round'](_0xbcd8b6+(_0x5df094-_0xbcd8b6)*_0x41a777);return'#'+((0x1<<0x18)+(_0x225235<<0x10)+(_0x45c268<<0x8)+_0x16dcd9)['toString'](0x10)[_0x1767f2(0x206)](0x1);}export function gradientText(_0x5b423f,_0x2a7124,_0x2dca77){const _0x559593=a39_0x182b,_0x5c8fb2=_0x5b423f[_0x559593(0x1d2)]('');return _0x5c8fb2[_0x559593(0x203)]((_0x45ef36,_0x343bf7)=>{const _0x1025c4=_0x559593,_0x3c17f1=_0x343bf7/Math[_0x1025c4(0x200)](_0x5c8fb2['length']-0x1,0x1);return a39_0x28e7c4[_0x1025c4(0x20e)](lerpColor(_0x2a7124,_0x2dca77,_0x3c17f1))(_0x45ef36);})[_0x559593(0x1ed)]('');}export function loggedInBox(_0x29aa62){const _0x39cfba=a39_0x182b,_0x185e80=getThemeById(getTheme()),_0x5c6024=_0x39cfba(0x1e0),_0x469759=_0x29aa62[_0x39cfba(0x202)](),_0x6d5aaa=_0x5c6024['length']+_0x469759[_0x39cfba(0x217)]+0x4,_0x150dd8=a39_0x28e7c4[_0x39cfba(0x20e)](_0x185e80[_0x39cfba(0x222)])('─'['repeat'](_0x6d5aaa)),_0x5eaa41=a39_0x28e7c4[_0x39cfba(0x20e)](_0x185e80['primary'])('╭'+_0x150dd8+'╮'),_0x5774fe=a39_0x28e7c4[_0x39cfba(0x20e)](_0x185e80[_0x39cfba(0x222)])('╰'+_0x150dd8+'╯'),_0x33f73d=gradientText(_0x469759,_0x185e80['secondary'],_0x185e80[_0x39cfba(0x1dd)]);process[_0x39cfba(0x1d3)]['write'](_0x39cfba(0x219)+_0x5eaa41+'\x0a'),process[_0x39cfba(0x1d3)][_0x39cfba(0x1ec)]('\x20\x20'+a39_0x28e7c4['hex'](_0x185e80['primary'])(_0x39cfba(0x218))+a39_0x28e7c4[_0x39cfba(0x1e3)](_0x5c6024)+_0x33f73d+a39_0x28e7c4['hex'](_0x185e80['primary'])('\x20\x20│')+'\x0a'),process[_0x39cfba(0x1d3)]['write']('\x20\x20'+_0x5774fe+'\x0a');}export function actionSpinner(_0x36ad9e){const _0x56d800=a39_0x182b,_0x40e0de=getThemeById(getTheme());return a39_0x31a373({'text':a39_0x28e7c4[_0x56d800(0x1e3)](_0x36ad9e),'color':_0x56d800(0x212),'spinner':{'interval':0x50,'frames':['✶','✸','✹','✺','✹','✸'][_0x56d800(0x203)](_0x26f1f4=>a39_0x28e7c4['hex'](_0x40e0de[_0x56d800(0x21c)])(_0x26f1f4))}});}export function toolSuccess(_0x6eb9b,_0x13cbeb,_0x45e38c,_0x39d399=![]){const _0x2d735a=a39_0x182b,_0x8f18a=getThemeById(getTheme()),_0xdcf8a9=_0x39d399?a39_0x28e7c4['red']:a39_0x28e7c4[_0x2d735a(0x20e)](_0x8f18a[_0x2d735a(0x222)]),_0x146a4c=_0x39d399?a39_0x28e7c4[_0x2d735a(0x1d9)]:a39_0x28e7c4[_0x2d735a(0x20e)](_0x8f18a[_0x2d735a(0x1ef)]);process[_0x2d735a(0x1d3)][_0x2d735a(0x1ec)](_0xdcf8a9('●\x20')+a39_0x28e7c4['bold'][_0x2d735a(0x1f6)](_0x6eb9b)+a39_0x28e7c4['dim']('(')+_0x146a4c(_0x13cbeb)+a39_0x28e7c4[_0x2d735a(0x1e3)](')\x0a')),_0x45e38c&&process[_0x2d735a(0x1d3)]['write'](a39_0x28e7c4[_0x2d735a(0x1e3)]('\x20\x20└\x20')+(_0x39d399?a39_0x28e7c4[_0x2d735a(0x1d9)](_0x45e38c):a39_0x28e7c4[_0x2d735a(0x1e3)](_0x45e38c))+'\x0a');}export function usageBox(_0x3fc95b,_0x3ea91a,_0x264bba){const _0x236883=a39_0x182b,_0xc1ee7c=_0x3ea91a>0x0?Math[_0x236883(0x209)](Math[_0x236883(0x221)](_0x3fc95b/_0x3ea91a*0x64),0x64):0x0,_0x4ccc65=0x1e,_0x55958b=Math['round'](_0xc1ee7c/0x64*_0x4ccc65),_0x819c8d=_0x4ccc65-_0x55958b,_0x38ed08=_0x264bba?a39_0x28e7c4[_0x236883(0x1d9)]:_0xc1ee7c>0x50?a39_0x28e7c4[_0x236883(0x20b)]:a39_0x28e7c4[_0x236883(0x1fa)],_0x18d4f4=_0x38ed08('█'[_0x236883(0x20c)](_0x55958b))+a39_0x28e7c4[_0x236883(0x1e3)]('░'[_0x236883(0x20c)](_0x819c8d)),_0x17bd94=_0x3ea91a>=0x3b9ac9ff?_0x236883(0x214):_0x3ea91a[_0x236883(0x1e5)](),_0x59cb98=_0x3fc95b[_0x236883(0x1e5)]()+_0x236883(0x1d1)+_0x17bd94+_0x236883(0x1f0),_0x1af04b=getThemeById(getTheme());process[_0x236883(0x1d3)][_0x236883(0x1ec)]('\x0a'),process[_0x236883(0x1d3)][_0x236883(0x1ec)](a39_0x28e7c4['bold'][_0x236883(0x20e)](_0x1af04b['secondary'])('\x20\x20Token\x20Usage\x0a')),process[_0x236883(0x1d3)][_0x236883(0x1ec)]('\x20\x20'+_0x18d4f4+'\x20'+a39_0x28e7c4[_0x236883(0x1e3)](_0xc1ee7c+'%')+'\x0a'),process['stdout'][_0x236883(0x1ec)](a39_0x28e7c4[_0x236883(0x1e3)]('\x20\x20'+_0x59cb98+'\x0a')),_0x264bba&&process[_0x236883(0x1d3)][_0x236883(0x1ec)](a39_0x28e7c4[_0x236883(0x1d9)](_0x236883(0x205))),process[_0x236883(0x1d3)][_0x236883(0x1ec)]('\x0a');}export function mcpConnected(_0x3bcf7d,_0x58462f){const _0x4b67f9=a39_0x182b,_0x5528dd=getThemeById(getTheme()),_0x17589c=_0x3bcf7d===0x1?_0x4b67f9(0x1ce):'servers';process['stdout']['write'](a39_0x28e7c4[_0x4b67f9(0x1e3)]('\x20\x20'+a39_0x28e7c4['hex'](_0x5528dd[_0x4b67f9(0x222)])(_0x3bcf7d[_0x4b67f9(0x1de)]())+_0x4b67f9(0x1d6)+_0x17589c+_0x4b67f9(0x1d7)+_0x58462f+_0x4b67f9(0x1d0)));}export function elapsedTime(_0x5441d5){const _0x27ccba=a39_0x182b,_0x2f9f71=_0x5441d5<0x3c?_0x5441d5[_0x27ccba(0x211)](0x1)+'s':Math['floor'](_0x5441d5/0x3c)+'m\x20'+(_0x5441d5%0x3c)[_0x27ccba(0x211)](0x0)+'s';process[_0x27ccba(0x1d3)][_0x27ccba(0x1ec)](a39_0x28e7c4[_0x27ccba(0x1e3)](_0x27ccba(0x1f7)+_0x2f9f71+'\x0a'));}export function currentDir(_0x2229e5){const _0x521581=a39_0x182b,_0x3e92ee=getThemeById(getTheme());process[_0x521581(0x1d3)][_0x521581(0x1ec)](a39_0x28e7c4['dim'](_0x521581(0x1d5))+a39_0x28e7c4[_0x521581(0x20e)](_0x3e92ee[_0x521581(0x21c)])(_0x2229e5)+'\x0a');}
package/dist/ui/select.js CHANGED
@@ -1 +1 @@
1
- (function(_0x505a39,_0x1a03b6){const _0x11af2e=a40_0x5a1b,_0x583e15=_0x505a39();while(!![]){try{const _0x56d702=-parseInt(_0x11af2e(0x7e))/0x1*(parseInt(_0x11af2e(0x80))/0x2)+-parseInt(_0x11af2e(0x75))/0x3+parseInt(_0x11af2e(0x81))/0x4+parseInt(_0x11af2e(0x82))/0x5*(-parseInt(_0x11af2e(0x7b))/0x6)+parseInt(_0x11af2e(0x78))/0x7*(parseInt(_0x11af2e(0x7a))/0x8)+parseInt(_0x11af2e(0x74))/0x9*(-parseInt(_0x11af2e(0x77))/0xa)+parseInt(_0x11af2e(0x79))/0xb*(parseInt(_0x11af2e(0x7f))/0xc);if(_0x56d702===_0x1a03b6)break;else _0x583e15['push'](_0x583e15['shift']());}catch(_0x10a92a){_0x583e15['push'](_0x583e15['shift']());}}}(a40_0x299a,0x7b6b9));import{select}from'@inquirer/prompts';import{MODELS}from'../config/settings.js';import{getSelectedModel,setSelectedModel}from'../utils/storage.js';function a40_0x299a(){const _0x7c01a5=['map','Select\x20AI\x20Model','663055ZwdtsF','310524zGsSLM','2huABoD','984172iTqxQP','5epfyzN','description','xp)','63WQZvqJ','88557MzemyF','name','64510TERXiZ','7jPlyRV','759gpLnuH','193416rxVdca','4874838EYdIjA'];a40_0x299a=function(){return _0x7c01a5;};return a40_0x299a();}export async function selectModel(){const _0x1451e4=a40_0x5a1b,_0x23a9fc=getSelectedModel(),_0x5d9042=MODELS[_0x1451e4(0x7c)](_0x40592d=>({'name':''+_0x40592d[_0x1451e4(0x76)]+(_0x40592d['xp']?'\x20('+_0x40592d['xp']+_0x1451e4(0x84):'')+(_0x40592d['id']===_0x23a9fc?'\x20*':''),'value':_0x40592d['id'],'description':_0x40592d[_0x1451e4(0x83)]})),_0x25f1b9=await select({'message':_0x1451e4(0x7d),'choices':_0x5d9042,'default':_0x23a9fc});return setSelectedModel(_0x25f1b9),_0x25f1b9;}function a40_0x5a1b(_0x540c6e,_0x51402a){_0x540c6e=_0x540c6e-0x74;const _0x299a5e=a40_0x299a();let _0x5a1b7e=_0x299a5e[_0x540c6e];return _0x5a1b7e;}export{getSelectedModel,setSelectedModel};
1
+ function a40_0x35ff(_0x4e435e,_0x2e95c5){_0x4e435e=_0x4e435e-0xb8;const _0x224d7a=a40_0x224d();let _0x35ffb6=_0x224d7a[_0x4e435e];return _0x35ffb6;}(function(_0x3e3c0c,_0x2ad9c5){const _0x2e046c=a40_0x35ff,_0x4fbdf5=_0x3e3c0c();while(!![]){try{const _0x175067=parseInt(_0x2e046c(0xc4))/0x1*(-parseInt(_0x2e046c(0xc2))/0x2)+-parseInt(_0x2e046c(0xc3))/0x3*(-parseInt(_0x2e046c(0xb9))/0x4)+parseInt(_0x2e046c(0xbf))/0x5+-parseInt(_0x2e046c(0xbb))/0x6*(parseInt(_0x2e046c(0xb8))/0x7)+parseInt(_0x2e046c(0xbe))/0x8+parseInt(_0x2e046c(0xbc))/0x9*(-parseInt(_0x2e046c(0xc7))/0xa)+parseInt(_0x2e046c(0xc5))/0xb*(parseInt(_0x2e046c(0xc0))/0xc);if(_0x175067===_0x2ad9c5)break;else _0x4fbdf5['push'](_0x4fbdf5['shift']());}catch(_0x43b695){_0x4fbdf5['push'](_0x4fbdf5['shift']());}}}(a40_0x224d,0xd9b08));function a40_0x224d(){const _0x3096e8=['7010VRCUvL','316729RfjADM','208aRHyTC','map','42xixpkb','20277fKqhtW','description','6447176wCOepS','6162150rXpaDJ','288jeYVXT','name','6jYAJRT','60153uBqIuV','388195LNRrAj','399366sUGCXN','xp)'];a40_0x224d=function(){return _0x3096e8;};return a40_0x224d();}import{select}from'@inquirer/prompts';import{MODELS}from'../config/settings.js';import{getSelectedModel,setSelectedModel}from'../utils/storage.js';export async function selectModel(){const _0x44750=a40_0x35ff,_0x30a158=getSelectedModel(),_0x549398=MODELS[_0x44750(0xba)](_0x47679a=>({'name':''+_0x47679a[_0x44750(0xc1)]+(_0x47679a['xp']?'\x20('+_0x47679a['xp']+_0x44750(0xc6):'')+(_0x47679a['id']===_0x30a158?'\x20*':''),'value':_0x47679a['id'],'description':_0x47679a[_0x44750(0xbd)]})),_0x347b07=await select({'message':'Select\x20AI\x20Model','choices':_0x549398,'default':_0x30a158});return setSelectedModel(_0x347b07),_0x347b07;}export{getSelectedModel,setSelectedModel};
package/dist/ui/themes.js CHANGED
@@ -1 +1 @@
1
- function a41_0x3f09(_0x401573,_0x2de1f6){_0x401573=_0x401573-0x17b;const _0x23ca64=a41_0x23ca();let _0x3f092e=_0x23ca64[_0x401573];return _0x3f092e;}const a41_0xbe169c=a41_0x3f09;(function(_0x170abf,_0x2d40be){const _0x35d5f0=a41_0x3f09,_0x3a78dd=_0x170abf();while(!![]){try{const _0x5663fd=parseInt(_0x35d5f0(0x1a4))/0x1+-parseInt(_0x35d5f0(0x17f))/0x2*(parseInt(_0x35d5f0(0x1a0))/0x3)+parseInt(_0x35d5f0(0x19d))/0x4+-parseInt(_0x35d5f0(0x18b))/0x5+parseInt(_0x35d5f0(0x17e))/0x6*(-parseInt(_0x35d5f0(0x17b))/0x7)+-parseInt(_0x35d5f0(0x18a))/0x8*(-parseInt(_0x35d5f0(0x185))/0x9)+-parseInt(_0x35d5f0(0x188))/0xa;if(_0x5663fd===_0x2d40be)break;else _0x3a78dd['push'](_0x3a78dd['shift']());}catch(_0x372930){_0x3a78dd['push'](_0x3a78dd['shift']());}}}(a41_0x23ca,0x8fe67));function a41_0x23ca(){const _0x325600=['#f472b6','Classic\x20Purple','#a1a1aa','woozlit_blue','monochrome','#fb923c','sunset_orange','#047857','#3b82f6','Dracula\x20Pink','#fdba74','Hacker\x20Green','#ec4899','927720ZXYFbS','#34d399','#2563eb','3QOMkvF','#e9d5ff','#c084fc','#3f3f46','982947IitTCm','569807uUcdbK','dracula_pink','#93c5fd','24ZeVviR','971564QXDSPO','#fbcfe8','hacker_green','../utils/storage.js','classic_purple','find','7551PLKGMR','Woozlit\x20Blue\x20(Default)','#6ee7b7','6093030LFxhjZ','name','10688TRSKxC','1628385HCIsEL','Select\x20UI\x20Theme','#7e22ce','#10b981','#d4d4d8'];a41_0x23ca=function(){return _0x325600;};return a41_0x23ca();}export const THEMES=[{'id':a41_0xbe169c(0x193),'name':a41_0xbe169c(0x186),'primary':a41_0xbe169c(0x198),'secondary':'#60a5fa','tertiary':a41_0xbe169c(0x17d),'quaternary':a41_0xbe169c(0x19f)},{'id':a41_0xbe169c(0x183),'name':a41_0xbe169c(0x191),'primary':'#a855f7','secondary':a41_0xbe169c(0x1a2),'tertiary':a41_0xbe169c(0x1a1),'quaternary':a41_0xbe169c(0x18d)},{'id':a41_0xbe169c(0x181),'name':a41_0xbe169c(0x19b),'primary':a41_0xbe169c(0x18e),'secondary':a41_0xbe169c(0x19e),'tertiary':a41_0xbe169c(0x187),'quaternary':a41_0xbe169c(0x197)},{'id':a41_0xbe169c(0x196),'name':'Sunset\x20Orange','primary':'#f97316','secondary':a41_0xbe169c(0x195),'tertiary':a41_0xbe169c(0x19a),'quaternary':'#c2410c'},{'id':a41_0xbe169c(0x17c),'name':a41_0xbe169c(0x199),'primary':a41_0xbe169c(0x19c),'secondary':a41_0xbe169c(0x190),'tertiary':a41_0xbe169c(0x180),'quaternary':'#be185d'},{'id':a41_0xbe169c(0x194),'name':'Monochrome\x20Silver','primary':'#71717a','secondary':a41_0xbe169c(0x192),'tertiary':a41_0xbe169c(0x18f),'quaternary':a41_0xbe169c(0x1a3)}];export const DEFAULT_THEME_ID=a41_0xbe169c(0x193);export function getThemeById(_0x48bd75){const _0x296164=a41_0xbe169c;return THEMES[_0x296164(0x184)](_0x3c869e=>_0x3c869e['id']===_0x48bd75)||THEMES[0x0];}export async function selectTheme(){const _0x2f2ecb=a41_0xbe169c,{select:_0x4a3d62}=await import('@inquirer/prompts'),{getTheme:_0x75d4e,setTheme:_0x2eaee7}=await import(_0x2f2ecb(0x182)),_0x120d54=_0x75d4e(),_0x106c23=THEMES['map'](_0x4b6806=>({'name':_0x4b6806['id']===_0x120d54?_0x4b6806[_0x2f2ecb(0x189)]+'\x20*':_0x4b6806[_0x2f2ecb(0x189)],'value':_0x4b6806['id']})),_0x2ad611=await _0x4a3d62({'message':_0x2f2ecb(0x18c),'choices':_0x106c23,'default':_0x120d54});return _0x2eaee7(_0x2ad611),_0x2ad611;}
1
+ function a41_0x59ab(){const _0x4aef7a=['#ec4899','#71717a','monochrome','11046936QPCTjF','1vWumeI','Classic\x20Purple','#93c5fd','find','Sunset\x20Orange','#f472b6','#2563eb','Woozlit\x20Blue\x20(Default)','12592822yGiwfa','woozlit_blue','94190yaFNPh','#60a5fa','#e9d5ff','7487110lLxplL','9LzOFWD','Hacker\x20Green','map','#f97316','315791CstFNA','Select\x20UI\x20Theme','240oZRlQP','#a855f7','name','../utils/storage.js','#c2410c','626064BoiLCK','18DaPPud','hacker_green','#fbcfe8','#6ee7b7','#d4d4d8','classic_purple','1474710KOwzZi','#be185d','Dracula\x20Pink','#34d399'];a41_0x59ab=function(){return _0x4aef7a;};return a41_0x59ab();}function a41_0x5f26(_0x2a6a19,_0x4ac92b){_0x2a6a19=_0x2a6a19-0x15f;const _0x59ab96=a41_0x59ab();let _0x5f262b=_0x59ab96[_0x2a6a19];return _0x5f262b;}const a41_0xc67d8f=a41_0x5f26;(function(_0x42fbfa,_0x11e4eb){const _0x17e8ee=a41_0x5f26,_0x37f5e3=_0x42fbfa();while(!![]){try{const _0x214fff=parseInt(_0x17e8ee(0x171))/0x1*(-parseInt(_0x17e8ee(0x17b))/0x2)+-parseInt(_0x17e8ee(0x17f))/0x3*(-parseInt(_0x17e8ee(0x162))/0x4)+-parseInt(_0x17e8ee(0x169))/0x5+parseInt(_0x17e8ee(0x170))/0x6+-parseInt(_0x17e8ee(0x183))/0x7*(parseInt(_0x17e8ee(0x185))/0x8)+-parseInt(_0x17e8ee(0x163))/0x9*(-parseInt(_0x17e8ee(0x17e))/0xa)+-parseInt(_0x17e8ee(0x179))/0xb;if(_0x214fff===_0x11e4eb)break;else _0x37f5e3['push'](_0x37f5e3['shift']());}catch(_0x5c52f3){_0x37f5e3['push'](_0x37f5e3['shift']());}}}(a41_0x59ab,0xec4d9));export const THEMES=[{'id':a41_0xc67d8f(0x17a),'name':a41_0xc67d8f(0x178),'primary':'#3b82f6','secondary':a41_0xc67d8f(0x17c),'tertiary':a41_0xc67d8f(0x173),'quaternary':a41_0xc67d8f(0x177)},{'id':a41_0xc67d8f(0x168),'name':a41_0xc67d8f(0x172),'primary':a41_0xc67d8f(0x186),'secondary':'#c084fc','tertiary':a41_0xc67d8f(0x17d),'quaternary':'#7e22ce'},{'id':a41_0xc67d8f(0x164),'name':a41_0xc67d8f(0x180),'primary':'#10b981','secondary':a41_0xc67d8f(0x16c),'tertiary':a41_0xc67d8f(0x166),'quaternary':'#047857'},{'id':'sunset_orange','name':a41_0xc67d8f(0x175),'primary':a41_0xc67d8f(0x182),'secondary':'#fb923c','tertiary':'#fdba74','quaternary':a41_0xc67d8f(0x161)},{'id':'dracula_pink','name':a41_0xc67d8f(0x16b),'primary':a41_0xc67d8f(0x16d),'secondary':a41_0xc67d8f(0x176),'tertiary':a41_0xc67d8f(0x165),'quaternary':a41_0xc67d8f(0x16a)},{'id':a41_0xc67d8f(0x16f),'name':'Monochrome\x20Silver','primary':a41_0xc67d8f(0x16e),'secondary':'#a1a1aa','tertiary':a41_0xc67d8f(0x167),'quaternary':'#3f3f46'}];export const DEFAULT_THEME_ID='woozlit_blue';export function getThemeById(_0x2dbb1d){const _0x4d15a8=a41_0xc67d8f;return THEMES[_0x4d15a8(0x174)](_0x48809e=>_0x48809e['id']===_0x2dbb1d)||THEMES[0x0];}export async function selectTheme(){const _0x3beebe=a41_0xc67d8f,{select:_0x405cc3}=await import('@inquirer/prompts'),{getTheme:_0x2245ec,setTheme:_0x56b3f8}=await import(_0x3beebe(0x160)),_0xb38681=_0x2245ec(),_0x5c562e=THEMES[_0x3beebe(0x181)](_0x25902c=>({'name':_0x25902c['id']===_0xb38681?_0x25902c[_0x3beebe(0x15f)]+'\x20*':_0x25902c[_0x3beebe(0x15f)],'value':_0x25902c['id']})),_0x102c7f=await _0x405cc3({'message':_0x3beebe(0x184),'choices':_0x5c562e,'default':_0xb38681});return _0x56b3f8(_0x102c7f),_0x102c7f;}
package/dist/utils/api.js CHANGED
@@ -1 +1 @@
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
+ (function(_0x3f40e2,_0x5264a9){const _0x1ca1de=a42_0x3a68,_0x9eecc5=_0x3f40e2();while(!![]){try{const _0x3a748f=parseInt(_0x1ca1de(0x121))/0x1*(-parseInt(_0x1ca1de(0x11b))/0x2)+parseInt(_0x1ca1de(0x108))/0x3*(-parseInt(_0x1ca1de(0xfb))/0x4)+-parseInt(_0x1ca1de(0x118))/0x5*(-parseInt(_0x1ca1de(0x109))/0x6)+-parseInt(_0x1ca1de(0x10f))/0x7+parseInt(_0x1ca1de(0xeb))/0x8+parseInt(_0x1ca1de(0xf0))/0x9+parseInt(_0x1ca1de(0xe7))/0xa*(parseInt(_0x1ca1de(0x103))/0xb);if(_0x3a748f===_0x5264a9)break;else _0x9eecc5['push'](_0x9eecc5['shift']());}catch(_0x23a06e){_0x9eecc5['push'](_0x9eecc5['shift']());}}}(a42_0x187c,0x2577b));function a42_0x187c(){const _0x4667ab=['988098lBZExr','createHash','slice','1.1.0','charCodeAt','toString','500878noJKfG','createDecipheriv','e5c','platform','length','existsSync','join','Rate\x20limit\x20exceeded.\x20Try\x20again\x20in\x20','API\x20error:\x20','5ObTJGW','hex','cli-','890USmXuJ','env.woozlit','../../../env.woozlit','3a2_','parse','decode','413qtchkA',':chat','R9fC2XWkQeY1B6Z0aM3S7UoI5dVJH8NpbKTL4GmEAr','final','substring','split','\x20seconds.','Not\x20authenticated.\x20Please\x20run\x20\x27woozlit\x20login\x27\x20first.','includes','/api/chat','trim','getReader','woozlit:','\x20-\x20','230mbWvTx','catch','../env.woozlit','padStart','913888jsDNUn','woozlit_internal_secure_key_2026_v2_!!!','fromCharCode','body','endsWith','2331234alaRFc','utf8','json','map','No\x20response\x20body','sha256','readFileSync','read','status','https://woozlit.com','cwd','4YjUHUZ','true','8f7d6','X-RateLimit-Reset','arch','../../env.woozlit','get','now','63030BrlpxT','Bearer\x20','version','from','update','782787hXuMlE'];a42_0x187c=function(){return _0x4667ab;};return a42_0x187c();}function a42_0x3a68(_0x2de992,_0x46256c){_0x2de992=_0x2de992-0xdd;const _0x187cd1=a42_0x187c();let _0x3a683d=_0x187cd1[_0x2de992];return _0x3a683d;}import{getApiUrl}from'../config/settings.js';import{getToken,getUser}from'./storage.js';import a42_0x393479 from'crypto';import a42_0x3ade8b from'fs';import a42_0x195562 from'path';import{dirname}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getDecryptedSecret(){const _0x2c8841=a42_0x3a68;try{const _0x5e37fd=[a42_0x195562[_0x2c8841(0x115)](__dirname,_0x2c8841(0x100)),a42_0x195562[_0x2c8841(0x115)](__dirname,_0x2c8841(0x11d)),a42_0x195562[_0x2c8841(0x115)](__dirname,_0x2c8841(0xe9)),a42_0x195562[_0x2c8841(0x115)](process[_0x2c8841(0xfa)](),_0x2c8841(0x11c))];let _0x1fbf32='';for(const _0x2f02c6 of _0x5e37fd){if(a42_0x3ade8b[_0x2c8841(0x114)](_0x2f02c6)){_0x1fbf32=a42_0x3ade8b[_0x2c8841(0xf6)](_0x2f02c6,'utf8')[_0x2c8841(0xe3)]();break;}}if(!_0x1fbf32)return reconstructSecret();const [_0x2e8ab5,_0x4df31d]=_0x1fbf32[_0x2c8841(0xde)](':');if(!_0x2e8ab5||!_0x4df31d)return reconstructSecret();const _0x5ccf31=Buffer[_0x2c8841(0x106)](_0x2e8ab5,_0x2c8841(0x119)),_0x50c46f=a42_0x393479[_0x2c8841(0x10a)](_0x2c8841(0xf5))[_0x2c8841(0x107)](_0x2c8841(0xec))['digest'](),_0x106753=a42_0x393479[_0x2c8841(0x110)]('aes-256-cbc',_0x50c46f,_0x5ccf31);let _0x3c8ed0=_0x106753[_0x2c8841(0x107)](_0x4df31d,_0x2c8841(0x119),_0x2c8841(0xf1));return _0x3c8ed0+=_0x106753[_0x2c8841(0x124)](_0x2c8841(0xf1)),_0x3c8ed0;}catch(_0x2c723b){return reconstructSecret();}}function reconstructSecret(){const _0x380dd1=a42_0x3a68,_0x5babdb=[0x77,0x7a,0x5f,0x63,0x6c,0x69,0x5f,0x70,0x72,0x6f,0x64,0x5f][_0x380dd1(0xf3)](_0x2e3f57=>String[_0x380dd1(0xed)](_0x2e3f57))[_0x380dd1(0x115)](''),_0x330fa1=String['fromCharCode'](0x73,0x33,0x63,0x72,0x33,0x74,0x5f,0x78,0x39,0x32,0x5f),_0x3cc97f=(0x8*0x186a0+0x26610+0x190+0x32+0x6)['toString'](0x10)+_0x380dd1(0x111)+(0x4*0xa+0x3)[_0x380dd1(0x10e)](0x10)+_0x380dd1(0x11e),_0xbe2b0c=['s','e','c','u','r','e','_','h','a','s','h']['join']('');return _0x5babdb+_0x330fa1+_0x380dd1(0xfd)+_0x3cc97f[_0x380dd1(0xdd)](0x5)+_0xbe2b0c;}function simpleHash(_0xf24364){const _0x782a7d=a42_0x3a68;let _0x396d17=0x811c9dc5;for(let _0x691071=0x0;_0x691071<_0xf24364[_0x782a7d(0x113)];_0x691071++){_0x396d17^=_0xf24364['charCodeAt'](_0x691071),_0x396d17=Math['imul'](_0x396d17,0x1000193);}const _0x34168d=(_0x396d17>>>0x0)[_0x782a7d(0x10e)](0x10)[_0x782a7d(0xea)](0x8,'0');let _0x58071e=0x0;for(let _0x3c48f8=0x0;_0x3c48f8<_0xf24364[_0x782a7d(0x113)];_0x3c48f8++){_0x58071e=(_0x58071e<<0x5)-_0x58071e+_0xf24364[_0x782a7d(0x10d)](_0x3c48f8)|0x0;}const _0x59a160=(_0x58071e>>>0x0)[_0x782a7d(0x10e)](0x10)[_0x782a7d(0xea)](0x8,'0');return''+_0x34168d+_0x59a160;}function createRequestSignature(){const _0x4d7b1b=a42_0x3a68,_0x38e6f1=Date['now']()[_0x4d7b1b(0x10e)](),_0x2e1492=_0x4d7b1b(0xe5)+_0x38e6f1+_0x4d7b1b(0x122),_0x5dbc27=_0x4d7b1b(0x123),_0xde9793=simpleHash(_0x2e1492+_0x5dbc27);return{'signature':_0xde9793,'timestamp':_0x38e6f1};}export async function sendChatMessage(_0x1fc5fc,_0x2de94a,_0x3b454d,_0x64182e){const _0x464b1b=a42_0x3a68,_0x3565f5=getToken(),_0x3f57b3=getApiUrl(),{userId:_0x9623f9}=getUser();if(!_0x3565f5||!_0x9623f9)throw new Error(_0x464b1b(0xe0));const _0x308606=_0x464b1b(0x11a)+Date[_0x464b1b(0x102)]()+'-'+Math['random']()[_0x464b1b(0x10e)](0x24)['substring'](0x2,0x9),_0x565768=process[_0x464b1b(0x112)]+'-'+process[_0x464b1b(0xff)]+'-'+process[_0x464b1b(0x105)],_0x3174f2=getDecryptedSecret(),{signature:_0x20881b,timestamp:_0x2bb4a1}=createRequestSignature(),_0x106dc4=await fetch(_0x3f57b3+_0x464b1b(0xe2),{'method':'POST','headers':{'Content-Type':'application/json','X-Woozlit-CLI':_0x464b1b(0xfc),'X-Woozlit-CLI-Version':_0x464b1b(0x10c),'X-Request-ID':_0x308606,'X-Device-Fingerprint':_0x565768,'Authorization':_0x464b1b(0x104)+_0x3565f5,'X-Woozlit-Token':_0x464b1b(0x104)+_0x3565f5,'Origin':_0x464b1b(0xf9),'X-Woozlit-App-Secret':_0x3174f2,'X-Request-Signature':_0x20881b,'X-Request-Timestamp':_0x2bb4a1},'body':JSON['stringify']({'model':_0x1fc5fc,'messages':_0x2de94a,'stream':!![],'userId':_0x9623f9}),'signal':_0x64182e});if(!_0x106dc4['ok']){if(_0x106dc4[_0x464b1b(0xf8)]===0x1ad){const _0x3431dc=_0x106dc4['headers'][_0x464b1b(0x101)](_0x464b1b(0xfe)),_0x383fa5=_0x3431dc?parseInt(_0x3431dc):0x3c,_0x5071aa=await _0x106dc4['json']()[_0x464b1b(0xe8)](()=>({})),_0x13733c=new Error(_0x5071aa['error']||_0x464b1b(0x116)+_0x383fa5+_0x464b1b(0xdf));_0x13733c['status']=0x1ad,_0x13733c['resetIn']=_0x383fa5,_0x13733c['isRateLimit']=!![];throw _0x13733c;}const _0x304f15=await _0x106dc4['text']();throw new Error(_0x464b1b(0x117)+_0x106dc4['status']+_0x464b1b(0xe6)+_0x304f15);}if(!_0x106dc4[_0x464b1b(0xee)])throw new Error(_0x464b1b(0xf4));const _0x397abf=_0x106dc4['body'][_0x464b1b(0xe4)](),_0x2d915c=new TextDecoder();let _0x20e8d1='';const _0x1b63c5=[];while(!![]){const {done:_0x137c4d,value:_0x188e59}=await _0x397abf[_0x464b1b(0xf7)]();if(_0x137c4d)break;const _0x568042=_0x2d915c[_0x464b1b(0x120)](_0x188e59,{'stream':!![]});if(_0x568042[_0x464b1b(0xe1)]('0:')){const _0x23e4c1=_0x568042[_0x464b1b(0xde)]('\x0a');for(const _0x417b18 of _0x23e4c1){if(_0x417b18['startsWith']('0:')){const _0x34ea88=_0x417b18[_0x464b1b(0x10b)](0x2)[_0x464b1b(0xe3)]();if(_0x34ea88['startsWith']('\x22')&&_0x34ea88[_0x464b1b(0xef)]('\x22'))try{const _0x2ba4e5=JSON[_0x464b1b(0x11f)](_0x34ea88);_0x20e8d1+=_0x2ba4e5;if(_0x3b454d)_0x3b454d(_0x2ba4e5);}catch{}}}}else{_0x20e8d1+=_0x568042;if(_0x3b454d)_0x3b454d(_0x568042);}}return{'content':_0x20e8d1,'toolCalls':_0x1b63c5};}export async function checkAuth(){const _0xfaaf85=a42_0x3a68,_0x296147=getToken();if(!_0x296147)return![];try{const _0x10a1a4=getApiUrl(),_0x1057cf=await fetch(_0x10a1a4+'/api/auth/verify',{'headers':{'Authorization':_0xfaaf85(0x104)+_0x296147}});return _0x1057cf['ok'];}catch{return![];}}export async function getUserUsage(){const _0x499ff3=a42_0x3a68,_0x49c113=getToken();if(!_0x49c113)return null;try{const _0x4ce380=getApiUrl(),_0x44258d=await fetch(_0x4ce380+'/api/user/usage',{'headers':{'Authorization':_0x499ff3(0x104)+_0x49c113}});if(!_0x44258d['ok'])return null;return await _0x44258d[_0x499ff3(0xf2)]();}catch(_0x180dd8){return null;}}
@@ -1 +1 @@
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
+ const a43_0x48c1af=a43_0x59de;(function(_0x16314b,_0x29ea53){const _0x266a02=a43_0x59de,_0x143df0=_0x16314b();while(!![]){try{const _0x2a6994=parseInt(_0x266a02(0x158))/0x1+parseInt(_0x266a02(0x15b))/0x2*(-parseInt(_0x266a02(0x159))/0x3)+parseInt(_0x266a02(0x15a))/0x4+parseInt(_0x266a02(0x156))/0x5*(-parseInt(_0x266a02(0x14d))/0x6)+-parseInt(_0x266a02(0x15d))/0x7+parseInt(_0x266a02(0x14e))/0x8*(parseInt(_0x266a02(0x15c))/0x9)+parseInt(_0x266a02(0x14c))/0xa;if(_0x2a6994===_0x29ea53)break;else _0x143df0['push'](_0x143df0['shift']());}catch(_0x2585f7){_0x143df0['push'](_0x143df0['shift']());}}}(a43_0x5dcb,0x6c88b));function a43_0x5dcb(){const _0x17832d=['message','now','filter','5etbTMR','set','108294lPnhpp','2068035MkGOBh','916268VSGLCN','2EilzKU','7143336mUvaRB','300951Eohdip','entries','lastCleanup','length','woozlit-cli-history','7201850ZqwwPe','4046142DghFUv','8LQWOuz','get','shift','timestamp','map'];a43_0x5dcb=function(){return _0x17832d;};return a43_0x5dcb();}import a43_0x5e2220 from'conf';const WEEK_MS=0x7*0x18*0x3c*0x3c*0x3e8,config=new a43_0x5e2220({'projectName':a43_0x48c1af(0x161),'defaults':{'entries':[],'lastCleanup':Date[a43_0x48c1af(0x154)]()}});function cleanup(){const _0x6c2770=a43_0x48c1af,_0x3e2afd=Date[_0x6c2770(0x154)](),_0xd2964=config['get'](_0x6c2770(0x15f));if(_0x3e2afd-_0xd2964<0x18*0x3c*0x3c*0x3e8)return;const _0x5bfba3=config['get'](_0x6c2770(0x15e)),_0x1147dd=_0x5bfba3[_0x6c2770(0x155)](_0x569cb2=>_0x3e2afd-_0x569cb2[_0x6c2770(0x151)]<WEEK_MS);config['set'](_0x6c2770(0x15e),_0x1147dd),config[_0x6c2770(0x157)](_0x6c2770(0x15f),_0x3e2afd);}export function addToHistory(_0x4e9842){const _0x438144=a43_0x48c1af;cleanup();const _0x39071c=config[_0x438144(0x14f)](_0x438144(0x15e));_0x39071c['push']({'message':_0x4e9842,'timestamp':Date[_0x438144(0x154)]()});if(_0x39071c[_0x438144(0x160)]>0x64)_0x39071c[_0x438144(0x150)]();config[_0x438144(0x157)](_0x438144(0x15e),_0x39071c);}export function getHistory(){const _0x1ed522=a43_0x48c1af;return cleanup(),config[_0x1ed522(0x14f)](_0x1ed522(0x15e))[_0x1ed522(0x152)](_0x9dff90=>_0x9dff90[_0x1ed522(0x153)]);}function a43_0x59de(_0x521172,_0x66f8b1){_0x521172=_0x521172-0x14c;const _0x5dcbb5=a43_0x5dcb();let _0x59de5d=_0x5dcbb5[_0x521172];return _0x59de5d;}export function clearHistory(){const _0x28d618=a43_0x48c1af;config[_0x28d618(0x157)](_0x28d618(0x15e),[]);}
@@ -1 +1 @@
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
+ const a44_0x23804e=a44_0x3350;(function(_0x655620,_0x21c7a8){const _0x1f7908=a44_0x3350,_0xf63f3f=_0x655620();while(!![]){try{const _0x15b5a9=-parseInt(_0x1f7908(0x143))/0x1+-parseInt(_0x1f7908(0x150))/0x2*(parseInt(_0x1f7908(0x123))/0x3)+-parseInt(_0x1f7908(0x138))/0x4+-parseInt(_0x1f7908(0x120))/0x5+-parseInt(_0x1f7908(0x158))/0x6+parseInt(_0x1f7908(0x136))/0x7*(-parseInt(_0x1f7908(0x12a))/0x8)+parseInt(_0x1f7908(0x124))/0x9*(parseInt(_0x1f7908(0x134))/0xa);if(_0x15b5a9===_0x21c7a8)break;else _0xf63f3f['push'](_0xf63f3f['shift']());}catch(_0x437199){_0xf63f3f['push'](_0xf63f3f['shift']());}}}(a44_0x190c,0x8be9d));import{execSync}from'child_process';import a44_0x5b2f3b from'path';import a44_0x4ba751 from'fs';import a44_0x23cb0d from'os';import*as a44_0x3a912d from'../ui/output.js';import{addMcpServer,addMcpHttpServer}from'../config/mcp.js';function a44_0x190c(){const _0xf8639a=['git\x20pull','node','3.\x20Click\x20extension\x20icon\x20and\x20\x27Connect\x27','Failed\x20to\x20install/build:\x20','npm','\x20already\x20exists.\x20Updating...','build','http://127.0.0.1:12306/mcp','homedir','endsWith','utf-8','keys','src/index.ts','Failed\x20to\x20update\x20repo.\x20Try\x20checking\x20it\x20out\x20manually\x20or\x20deleting\x20the\x20folder.','https://github.com/','split','5582930uLVLGC','Installing\x20dependencies...','existsSync','3RRsIRF','9ykyOha','pnpm-lock.yaml','tsx','Unknown\x20installation\x20source.\x20Please\x20provide\x20a\x20GitHub\x20URL\x20or\x20\x27mcp-chrome-bridge\x27.','scripts','.woozlit','16OUbgNz','yarn\x20install','Installed\x20mcp-chrome-bridge\x20and\x20added\x20configuration!','git\x20clone\x20','bin','.ts','dist/index.js','mcp-chrome','warn','2.\x20Load\x20unpacked\x20extension\x20in\x20Chrome\x20Developer\x20Mode','54884590OjVTKy','mcp-chrome-bridge','2948281wFCThv','readFileSync','3956340EONdew','parse','...','slice','main','\x27\x20from\x20GitHub!','success','pnpm\x20add\x20-g\x20mcp-chrome-bridge','Detected\x20entry\x20point:\x20','join','package.json','615286qMDBop','object','Installing\x20mcp-chrome-bridge\x20globally...','Next\x20Steps:','npm\x20install\x20-g\x20mcp-chrome-bridge','Failed\x20to\x20install\x20mcp-chrome-bridge\x20using\x20pnpm:\x20','Directory\x20','Try\x20running\x20with\x20sudo\x20or\x20administrative\x20privileges.','includes','inherit','.git','pnpm','Trying\x20npm\x20as\x20fallback...','2201596vcjwOb','servers','pnpm\x20install','github.com','yarn.lock','error','build/index.js','Failed\x20to\x20install\x20mcp-chrome-bridge:\x20','1507518MFpdzx','info'];a44_0x190c=function(){return _0xf8639a;};return a44_0x190c();}const SERVERS_DIR=a44_0x5b2f3b[a44_0x23804e(0x141)](a44_0x23cb0d[a44_0x23804e(0x162)](),a44_0x23804e(0x129),a44_0x23804e(0x151));function ensureServersDir(){const _0x1a8c9d=a44_0x23804e;!a44_0x4ba751[_0x1a8c9d(0x122)](SERVERS_DIR)&&a44_0x4ba751['mkdirSync'](SERVERS_DIR,{'recursive':!![]});}function getRepoName(_0x49d8bc){const _0x2e0c55=a44_0x23804e,_0x30f70d=_0x49d8bc[_0x2e0c55(0x169)]('/');let _0x695c5d=_0x30f70d[_0x30f70d['length']-0x1];return _0x695c5d[_0x2e0c55(0x163)](_0x2e0c55(0x14d))&&(_0x695c5d=_0x695c5d[_0x2e0c55(0x13b)](0x0,-0x4)),_0x695c5d;}async function installFromGithub(_0x53c803,_0x420344){const _0x1df6b3=a44_0x23804e;ensureServersDir();const _0x16ca0b=_0x420344||getRepoName(_0x53c803),_0x331d7b=a44_0x5b2f3b['join'](SERVERS_DIR,_0x16ca0b);a44_0x3a912d[_0x1df6b3(0x159)]('Cloning\x20'+_0x53c803+'\x20to\x20'+_0x331d7b+_0x1df6b3(0x13a));if(a44_0x4ba751[_0x1df6b3(0x122)](_0x331d7b)){a44_0x3a912d[_0x1df6b3(0x132)](_0x1df6b3(0x149)+_0x331d7b+_0x1df6b3(0x15f));try{execSync(_0x1df6b3(0x15a),{'cwd':_0x331d7b,'stdio':'inherit'});}catch(_0x1a0a76){a44_0x3a912d[_0x1df6b3(0x155)](_0x1df6b3(0x167));return;}}else try{execSync(_0x1df6b3(0x12d)+_0x53c803+'\x20'+_0x331d7b,{'stdio':_0x1df6b3(0x14c)});}catch(_0x2c239){a44_0x3a912d[_0x1df6b3(0x155)]('Failed\x20to\x20clone\x20repository:\x20'+_0x2c239);return;}a44_0x3a912d[_0x1df6b3(0x159)](_0x1df6b3(0x121));try{const _0x937bc5=a44_0x4ba751['existsSync'](a44_0x5b2f3b['join'](_0x331d7b,_0x1df6b3(0x125))),_0x151bfa=a44_0x4ba751[_0x1df6b3(0x122)](a44_0x5b2f3b[_0x1df6b3(0x141)](_0x331d7b,_0x1df6b3(0x154))),_0x23221b=_0x937bc5?_0x1df6b3(0x152):_0x151bfa?_0x1df6b3(0x12b):'npm\x20install';execSync(_0x23221b,{'cwd':_0x331d7b,'stdio':_0x1df6b3(0x14c)});const _0x590772=a44_0x5b2f3b[_0x1df6b3(0x141)](_0x331d7b,_0x1df6b3(0x142));if(a44_0x4ba751['existsSync'](_0x590772)){const _0x416d77=JSON[_0x1df6b3(0x139)](a44_0x4ba751[_0x1df6b3(0x137)](_0x590772,_0x1df6b3(0x164)));_0x416d77[_0x1df6b3(0x128)]&&_0x416d77['scripts'][_0x1df6b3(0x160)]&&(a44_0x3a912d['info']('Building\x20project...'),execSync((_0x937bc5?_0x1df6b3(0x14e):_0x151bfa?'yarn':_0x1df6b3(0x15e))+'\x20run\x20build',{'cwd':_0x331d7b,'stdio':_0x1df6b3(0x14c)}));}}catch(_0x5caa41){a44_0x3a912d[_0x1df6b3(0x155)](_0x1df6b3(0x15d)+_0x5caa41);return;}const _0x4b9dc4=a44_0x5b2f3b[_0x1df6b3(0x141)](_0x331d7b,_0x1df6b3(0x142));let _0x20d117='';if(a44_0x4ba751[_0x1df6b3(0x122)](_0x4b9dc4)){const _0xd1d090=JSON[_0x1df6b3(0x139)](a44_0x4ba751[_0x1df6b3(0x137)](_0x4b9dc4,'utf-8'));if(_0xd1d090['bin']){if(typeof _0xd1d090[_0x1df6b3(0x12e)]==='string')_0x20d117=a44_0x5b2f3b[_0x1df6b3(0x141)](_0x331d7b,_0xd1d090[_0x1df6b3(0x12e)]);else{if(typeof _0xd1d090[_0x1df6b3(0x12e)]===_0x1df6b3(0x144)){const _0x59ffd0=Object[_0x1df6b3(0x165)](_0xd1d090[_0x1df6b3(0x12e)])[0x0];_0x20d117=a44_0x5b2f3b[_0x1df6b3(0x141)](_0x331d7b,_0xd1d090[_0x1df6b3(0x12e)][_0x59ffd0]);}}}else _0xd1d090[_0x1df6b3(0x13c)]&&(_0x20d117=a44_0x5b2f3b['join'](_0x331d7b,_0xd1d090['main']));}if(!_0x20d117){const _0x3046fd=[_0x1df6b3(0x130),_0x1df6b3(0x156),_0x1df6b3(0x166),'index.js'];for(const _0x1fc589 of _0x3046fd){if(a44_0x4ba751[_0x1df6b3(0x122)](a44_0x5b2f3b[_0x1df6b3(0x141)](_0x331d7b,_0x1fc589))){_0x20d117=a44_0x5b2f3b[_0x1df6b3(0x141)](_0x331d7b,_0x1fc589);break;}}}if(!_0x20d117){a44_0x3a912d['error']('Could\x20not\x20auto-detect\x20entry\x20point.\x20Please\x20add\x20the\x20server\x20manually\x20using\x20\x27woozlit\x20mcp\x20add\x27.');return;}const _0x38fea1=_0x20d117['endsWith'](_0x1df6b3(0x12f))?_0x1df6b3(0x126):_0x1df6b3(0x15b);a44_0x3a912d[_0x1df6b3(0x159)](_0x1df6b3(0x140)+_0x20d117),addMcpServer(_0x16ca0b,_0x38fea1,[_0x20d117]),a44_0x3a912d[_0x1df6b3(0x13e)]('Successfully\x20installed\x20and\x20added\x20\x27'+_0x16ca0b+_0x1df6b3(0x13d));}function a44_0x3350(_0x55e05f,_0x5d4814){_0x55e05f=_0x55e05f-0x120;const _0x190c9d=a44_0x190c();let _0x3350ad=_0x190c9d[_0x55e05f];return _0x3350ad;}async function installMcpChromeBridge(){const _0x1c8105=a44_0x23804e;a44_0x3a912d[_0x1c8105(0x159)](_0x1c8105(0x145));try{execSync(_0x1c8105(0x13f),{'stdio':_0x1c8105(0x14c)});}catch(_0x214207){a44_0x3a912d[_0x1c8105(0x155)](_0x1c8105(0x148)+_0x214207),a44_0x3a912d[_0x1c8105(0x159)](_0x1c8105(0x14f));try{execSync(_0x1c8105(0x147),{'stdio':_0x1c8105(0x14c)});}catch(_0x4ee1d8){a44_0x3a912d[_0x1c8105(0x155)](_0x1c8105(0x157)+_0x4ee1d8),a44_0x3a912d['info'](_0x1c8105(0x14a));return;}}const _0x1fad85=_0x1c8105(0x161);addMcpHttpServer(_0x1c8105(0x131),_0x1fad85),a44_0x3a912d[_0x1c8105(0x13e)](_0x1c8105(0x12c)),a44_0x3a912d['header'](_0x1c8105(0x146)),a44_0x3a912d[_0x1c8105(0x159)]('1.\x20Download\x20the\x20Chrome\x20Extension:\x20https://github.com/hangwin/mcp-chrome/releases'),a44_0x3a912d['info'](_0x1c8105(0x133)),a44_0x3a912d[_0x1c8105(0x159)](_0x1c8105(0x15c)),a44_0x3a912d[_0x1c8105(0x159)]('4.\x20Make\x20sure\x20\x27mcp-chrome-bridge\x27\x20is\x20running\x20(if\x20not\x20started\x20automatically)');}export async function installMcpServer(_0x41c170,_0x5e3437){const _0x593ded=a44_0x23804e;if(_0x41c170===_0x593ded(0x135)||_0x41c170==='chrome')return installMcpChromeBridge();if(_0x41c170[_0x593ded(0x14b)](_0x593ded(0x153))||_0x41c170[_0x593ded(0x163)](_0x593ded(0x14d)))return installFromGithub(_0x41c170,_0x5e3437);if(/^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/['test'](_0x41c170))return installFromGithub(_0x593ded(0x168)+_0x41c170+_0x593ded(0x14d),_0x5e3437);a44_0x3a912d['error'](_0x593ded(0x127));}
@@ -1 +1 @@
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+')';}
1
+ const a45_0x338943=a45_0x2168;function a45_0x2664(){const _0x552070=['Windows','368099lIJZLx','sudo\x20','50AJvsTZ','1077032cPVNfr','3947952jQglYO','linux','platform','win32','33IjbVOB','macos','2727009upeEBB','28056duSrec','123898ghcPed','1894255JAqKue','windows','1888zoXNIM','Linux','darwin'];a45_0x2664=function(){return _0x552070;};return a45_0x2664();}(function(_0x5e26e1,_0x30a32b){const _0x1f5dab=a45_0x2168,_0x7ae739=_0x5e26e1();while(!![]){try{const _0x3040f8=-parseInt(_0x1f5dab(0x173))/0x1+parseInt(_0x1f5dab(0x16c))/0x2*(-parseInt(_0x1f5dab(0x168))/0x3)+parseInt(_0x1f5dab(0x176))/0x4+-parseInt(_0x1f5dab(0x16d))/0x5+-parseInt(_0x1f5dab(0x164))/0x6+-parseInt(_0x1f5dab(0x16b))/0x7*(-parseInt(_0x1f5dab(0x16f))/0x8)+parseInt(_0x1f5dab(0x16a))/0x9*(parseInt(_0x1f5dab(0x175))/0xa);if(_0x3040f8===_0x30a32b)break;else _0x7ae739['push'](_0x7ae739['shift']());}catch(_0x47d6d8){_0x7ae739['push'](_0x7ae739['shift']());}}}(a45_0x2664,0x9d2ba));const platform=process[a45_0x338943(0x166)],arch=process['arch'];export function getPlatform(){const _0x766b37=a45_0x338943;if(platform===_0x766b37(0x167))return'windows';if(platform==='darwin')return _0x766b37(0x169);return _0x766b37(0x165);}export function getArch(){return arch;}export function isWindows(){const _0x5314ab=a45_0x338943;return platform===_0x5314ab(0x167);}export function isMac(){const _0x37d4bf=a45_0x338943;return platform===_0x37d4bf(0x171);}function a45_0x2168(_0xcbbee4,_0xafecca){_0xcbbee4=_0xcbbee4-0x164;const _0x2664ae=a45_0x2664();let _0x216823=_0x2664ae[_0xcbbee4];return _0x216823;}export function isLinux(){const _0x627ba3=a45_0x338943;return platform===_0x627ba3(0x165);}export function getShellPrefix(){const _0x499cf3=a45_0x338943;return isWindows()?'':_0x499cf3(0x174);}export function getPlatformInfo(){const _0x3e4c0b=a45_0x338943,_0x56d6dd=getPlatform(),_0x1d67c4=_0x56d6dd===_0x3e4c0b(0x16e)?_0x3e4c0b(0x172):_0x56d6dd===_0x3e4c0b(0x169)?'macOS':_0x3e4c0b(0x170);return _0x1d67c4+'\x20('+arch+')';}
@@ -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
+ const a46_0xbfaeed=a46_0x57c0;(function(_0x382472,_0x3ec62f){const _0x1ae686=a46_0x57c0,_0xbc0892=_0x382472();while(!![]){try{const _0x5e4624=-parseInt(_0x1ae686(0xf6))/0x1+parseInt(_0x1ae686(0x105))/0x2+-parseInt(_0x1ae686(0xfd))/0x3*(-parseInt(_0x1ae686(0x100))/0x4)+-parseInt(_0x1ae686(0x10a))/0x5*(-parseInt(_0x1ae686(0xf3))/0x6)+-parseInt(_0x1ae686(0xfe))/0x7+parseInt(_0x1ae686(0x103))/0x8*(-parseInt(_0x1ae686(0xff))/0x9)+parseInt(_0x1ae686(0x108))/0xa;if(_0x5e4624===_0x3ec62f)break;else _0xbc0892['push'](_0xbc0892['shift']());}catch(_0x52aab7){_0xbc0892['push'](_0xbc0892['shift']());}}}(a46_0x1001,0x3d0c7));import a46_0x2a1211 from'conf';const config=new a46_0x2a1211({'projectName':a46_0xbfaeed(0xfc)});export function getToken(){const _0x22ae73=a46_0xbfaeed;return config['get'](_0x22ae73(0xf5));}export function setToken(_0x1c3f98){const _0x25187b=a46_0xbfaeed;config[_0x25187b(0xfa)](_0x25187b(0xf5),_0x1c3f98);}function a46_0x1001(){const _0x4b2951=['push','userId','3423880HIPxMG','get','5NqfGAg','2785026mnkRGh','woozlit_blue','token','480456ferpnd','delete','rules','gemini-2.5-flash','set','displayName','woozlit-cli','701313GEesWF','469616tFXCtB','3036339jynNpa','4IfnPYE','email','theme','8lUaxFl','selectedModel','189280AJrOFN'];a46_0x1001=function(){return _0x4b2951;};return a46_0x1001();}export function clearToken(){const _0x386f3c=a46_0xbfaeed;config['delete'](_0x386f3c(0xf5));}export function getUser(){const _0x181cba=a46_0xbfaeed;return{'userId':config[_0x181cba(0x109)]('userId'),'email':config[_0x181cba(0x109)]('email'),'displayName':config[_0x181cba(0x109)](_0x181cba(0xfb))};}export function setUser(_0x33ec9c,_0x334c2c,_0x277cbf){const _0x206b2e=a46_0xbfaeed;config[_0x206b2e(0xfa)](_0x206b2e(0x107),_0x33ec9c),config[_0x206b2e(0xfa)](_0x206b2e(0x101),_0x334c2c),config[_0x206b2e(0xfa)]('displayName',_0x277cbf);}export function clearUser(){const _0x2459df=a46_0xbfaeed;config[_0x2459df(0xf7)](_0x2459df(0x107)),config[_0x2459df(0xf7)](_0x2459df(0x101)),config[_0x2459df(0xf7)]('displayName');}export function getSelectedModel(){const _0x1488fa=a46_0xbfaeed;return config[_0x1488fa(0x109)](_0x1488fa(0x104))||_0x1488fa(0xf9);}export function setSelectedModel(_0x1671d8){const _0x3e0bb2=a46_0xbfaeed;config['set'](_0x3e0bb2(0x104),_0x1671d8);}function a46_0x57c0(_0x5641ce,_0x344d5c){_0x5641ce=_0x5641ce-0xf3;const _0x1001ff=a46_0x1001();let _0x57c013=_0x1001ff[_0x5641ce];return _0x57c013;}export function getTheme(){const _0x29f4c5=a46_0xbfaeed;return config['get'](_0x29f4c5(0x102))||_0x29f4c5(0xf4);}export function setTheme(_0x1d69dc){config['set']('theme',_0x1d69dc);}export function getRules(){const _0x2befdf=a46_0xbfaeed;return config[_0x2befdf(0x109)]('rules')||[];}export function addRule(_0x3ac61f){const _0x2cbd3b=a46_0xbfaeed,_0x51414d=getRules();_0x51414d[_0x2cbd3b(0x106)](_0x3ac61f),config[_0x2cbd3b(0xfa)](_0x2cbd3b(0xf8),_0x51414d);}export function clearRules(){const _0x4a7407=a46_0xbfaeed;config[_0x4a7407(0xfa)](_0x4a7407(0xf8),[]);}export function isLoggedIn(){const _0x56c0c0=a46_0xbfaeed;return!!config['get'](_0x56c0c0(0xf5))&&!!config[_0x56c0c0(0x109)](_0x56c0c0(0x107));}export function logout(){clearToken(),clearUser();}export function wipeAll(){config['clear']();}
@@ -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)));}}
1
+ const a47_0x3648da=a47_0x1a7a;(function(_0x3e2a6d,_0x15e9d5){const _0x236f19=a47_0x1a7a,_0x405971=_0x3e2a6d();while(!![]){try{const _0x294c02=-parseInt(_0x236f19(0xee))/0x1+-parseInt(_0x236f19(0xf0))/0x2*(parseInt(_0x236f19(0xff))/0x3)+parseInt(_0x236f19(0xf7))/0x4+-parseInt(_0x236f19(0xe5))/0x5+-parseInt(_0x236f19(0xe0))/0x6+-parseInt(_0x236f19(0xf6))/0x7+parseInt(_0x236f19(0xf8))/0x8;if(_0x294c02===_0x15e9d5)break;else _0x405971['push'](_0x405971['shift']());}catch(_0x51d489){_0x405971['push'](_0x405971['shift']());}}}(a47_0x12a2,0xbcec9));import a47_0x809104 from'chalk';const CURRENT_VERSION=a47_0x3648da(0xe6);export async function checkForUpdate(){const _0x465b29=a47_0x3648da;try{const _0x4fe377=await fetch(_0x465b29(0xf5),{'headers':{'Accept':_0x465b29(0xf2)},'signal':AbortSignal[_0x465b29(0xf1)](0x5dc)});if(!_0x4fe377['ok'])return;const _0x3e4de6=await _0x4fe377[_0x465b29(0xf4)](),_0x5bfbfd=_0x3e4de6[_0x465b29(0xfa)]?.[_0x465b29(0xe3)];_0x5bfbfd&&_0x5bfbfd!==CURRENT_VERSION&&(isNewer(_0x5bfbfd,CURRENT_VERSION)&&printUpdateBox(_0x5bfbfd,CURRENT_VERSION));}catch{}}function a47_0x1a7a(_0x2495e9,_0x2227b1){_0x2495e9=_0x2495e9-0xe0;const _0x12a24b=a47_0x12a2();let _0x1a7a35=_0x12a24b[_0x2495e9];return _0x1a7a35;}function a47_0x12a2(){const _0x11a006=['\x20\x20Auto-updating\x20to\x20version\x20','exit','log','inherit','\x20\x20Please\x20restart\x20the\x20CLI\x20to\x20use\x20the\x20new\x20version.','200866QumEoL','\x20\x20✔\x20Woozlit\x20updated\x20successfully!','31962QclbKB','timeout','application/json','split','json','https://registry.npmjs.org/woozlit','1199051zYmRih','1434556bvCuqf','21701296haBcfl','yellow','dist-tags','error','...','\x20\x20Update\x20Available!\x20','red','243rZzJco','npm\x20install\x20-g\x20woozlit','2935344bExGZi','\x20\x20Failed\x20to\x20auto-update.\x20Please\x20run:\x20npm\x20install\x20-g\x20woozlit','green','latest','map','708120MOYQMr','2.0.0','\x20→\x20','dim'];a47_0x12a2=function(){return _0x11a006;};return a47_0x12a2();}function isNewer(_0x54a162,_0x5a74ea){const _0x22fec2=a47_0x3648da,_0x48e5e1=_0x54a162[_0x22fec2(0xf3)]('.')[_0x22fec2(0xe4)](Number),_0x393eae=_0x5a74ea['split']('.')[_0x22fec2(0xe4)](Number);for(let _0x19c4fc=0x0;_0x19c4fc<0x3;_0x19c4fc++){if(_0x48e5e1[_0x19c4fc]>_0x393eae[_0x19c4fc])return!![];if(_0x48e5e1[_0x19c4fc]<_0x393eae[_0x19c4fc])return![];}return![];}function printUpdateBox(_0x3335b8,_0x26d317){const _0x3c6f2a=a47_0x3648da,_0x19cb19=a47_0x809104['yellow']('─'['repeat'](0x32));console[_0x3c6f2a(0xeb)](),console[_0x3c6f2a(0xeb)](_0x19cb19),console['log'](a47_0x809104[_0x3c6f2a(0xf9)](_0x3c6f2a(0xfd)+a47_0x809104[_0x3c6f2a(0xe8)](_0x26d317)+_0x3c6f2a(0xe7)+a47_0x809104['green'](_0x3335b8))),console[_0x3c6f2a(0xeb)](a47_0x809104['gray'](_0x3c6f2a(0xe9)+_0x3335b8+_0x3c6f2a(0xfc))),console[_0x3c6f2a(0xeb)](_0x19cb19),console[_0x3c6f2a(0xeb)]();try{const {execSync:_0x25e90e}=require('child_process');_0x25e90e(_0x3c6f2a(0x100),{'stdio':_0x3c6f2a(0xec)}),console[_0x3c6f2a(0xeb)](),console[_0x3c6f2a(0xeb)](a47_0x809104[_0x3c6f2a(0xe2)](_0x3c6f2a(0xef))),console[_0x3c6f2a(0xeb)](a47_0x809104[_0x3c6f2a(0xe8)](_0x3c6f2a(0xed))),console[_0x3c6f2a(0xeb)](),process[_0x3c6f2a(0xea)](0x0);}catch(_0x54d073){console[_0x3c6f2a(0xfb)](a47_0x809104[_0x3c6f2a(0xfe)](_0x3c6f2a(0xe1)));}}