woozlit 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) 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/notifications.js +1 -1
  25. package/dist/services/voice-agent.js +1 -1
  26. package/dist/telegram/bot.js +1 -1
  27. package/dist/telegram/config.js +1 -1
  28. package/dist/telegram/index.js +1 -1
  29. package/dist/telegram/reminders.js +1 -1
  30. package/dist/telegram/setup.js +1 -1
  31. package/dist/tools/command.js +1 -1
  32. package/dist/tools/file.js +1 -1
  33. package/dist/tools/git.js +1 -1
  34. package/dist/tools/index.js +1 -1
  35. package/dist/tools/knowledge.js +1 -1
  36. package/dist/tools/mcp.js +1 -1
  37. package/dist/tools/network.js +1 -1
  38. package/dist/tools/project.js +1 -1
  39. package/dist/tools/rollback.js +1 -1
  40. package/dist/tools/rules.js +1 -1
  41. package/dist/tools/system.js +1 -1
  42. package/dist/twilio/config.js +1 -1
  43. package/dist/twilio/index.js +1 -1
  44. package/dist/twilio/server.js +1 -1
  45. package/dist/twilio/setup.js +1 -1
  46. package/dist/ui/output.js +1 -1
  47. package/dist/ui/select.js +1 -1
  48. package/dist/ui/themes.js +1 -1
  49. package/dist/utils/api.js +1 -1
  50. package/dist/utils/chat-history.js +1 -1
  51. package/dist/utils/history.js +1 -1
  52. package/dist/utils/mcp-installer.js +1 -1
  53. package/dist/utils/platform.js +1 -1
  54. package/dist/utils/storage.js +1 -1
  55. package/dist/utils/update-check.js +1 -1
  56. package/dist/utils/updater.js +1 -1
  57. package/dist/verify_repro.js +1 -1
  58. package/package.json +1 -1
package/dist/ui/output.js CHANGED
@@ -1 +1 @@
1
- (function(_0x41a2ff,_0x3cc9b2){const _0x37bfae=a45_0x6afd,_0x37ecbc=_0x41a2ff();while(!![]){try{const _0x20a7cc=parseInt(_0x37bfae(0x19d))/0x1*(parseInt(_0x37bfae(0x1ab))/0x2)+-parseInt(_0x37bfae(0x189))/0x3+parseInt(_0x37bfae(0x181))/0x4+parseInt(_0x37bfae(0x18b))/0x5*(-parseInt(_0x37bfae(0x1af))/0x6)+-parseInt(_0x37bfae(0x17e))/0x7+-parseInt(_0x37bfae(0x191))/0x8*(parseInt(_0x37bfae(0x197))/0x9)+parseInt(_0x37bfae(0x18f))/0xa;if(_0x20a7cc===_0x3cc9b2)break;else _0x37ecbc['push'](_0x37ecbc['shift']());}catch(_0x484bc8){_0x37ecbc['push'](_0x37ecbc['shift']());}}}(a45_0x3d81,0xb9386));import a45_0x502b6e from'chalk';import a45_0xa90f9 from'ora';import{MODELS}from'../config/settings.js';import{getTheme}from'../utils/storage.js';import{getThemeById}from'./themes.js';export function getLogo(){const _0x5c9fff=a45_0x6afd,_0x3679ec=getThemeById(getTheme());return'\x0a'+a45_0x502b6e['hex'](_0x3679ec[_0x5c9fff(0x195)])(_0x5c9fff(0x1bd))+a45_0x502b6e['hex'](_0x3679ec[_0x5c9fff(0x1b7)])(_0x5c9fff(0x1a7))+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec[_0x5c9fff(0x178)])(_0x5c9fff(0x17d))+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec[_0x5c9fff(0x199)])(_0x5c9fff(0x1b3))+'\x0a'+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec[_0x5c9fff(0x195)])('██║\x20\x20\x20\x20██║')+a45_0x502b6e['hex'](_0x3679ec[_0x5c9fff(0x1b7)])('██╔═══██╗██╔═══██╗')+a45_0x502b6e['hex'](_0x3679ec[_0x5c9fff(0x178)])(_0x5c9fff(0x179))+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec[_0x5c9fff(0x199)])('██║╚══██╔══╝')+'\x0a'+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec[_0x5c9fff(0x195)])(_0x5c9fff(0x18e))+a45_0x502b6e['hex'](_0x3679ec[_0x5c9fff(0x1b7)])(_0x5c9fff(0x177))+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec[_0x5c9fff(0x178)])(_0x5c9fff(0x194))+a45_0x502b6e['hex'](_0x3679ec['quaternary'])(_0x5c9fff(0x1bb))+'\x0a'+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec['tertiary'])('██║███╗██║')+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec[_0x5c9fff(0x1b7)])(_0x5c9fff(0x177))+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec['primary'])(_0x5c9fff(0x1b8))+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec[_0x5c9fff(0x199)])('██║\x20\x20\x20██║\x20\x20\x20')+'\x0a'+a45_0x502b6e['hex'](_0x3679ec[_0x5c9fff(0x195)])(_0x5c9fff(0x188))+a45_0x502b6e['hex'](_0x3679ec[_0x5c9fff(0x1b7)])('╚██████╔╝╚██████╔╝')+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec[_0x5c9fff(0x178)])(_0x5c9fff(0x17f))+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec[_0x5c9fff(0x199)])(_0x5c9fff(0x1bb))+'\x0a'+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec[_0x5c9fff(0x195)])(_0x5c9fff(0x1be))+a45_0x502b6e['hex'](_0x3679ec['secondary'])(_0x5c9fff(0x1ac))+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec[_0x5c9fff(0x178)])(_0x5c9fff(0x185))+a45_0x502b6e[_0x5c9fff(0x1a9)](_0x3679ec['quaternary'])(_0x5c9fff(0x1ae))+'\x0a';}export function showLogo(_0xb84dee){const _0x5c8f85=a45_0x6afd;process[_0x5c8f85(0x193)][_0x5c8f85(0x19b)]('\x0a'+getLogo()),_0xb84dee&&process['stdout']['write'](a45_0x502b6e['dim'](_0x5c8f85(0x176)+_0xb84dee+_0x5c8f85(0x18d))),process[_0x5c8f85(0x193)]['write']('\x0a');}export function createSpinner(_0x45c755){const _0x13bddb=a45_0x6afd;return a45_0xa90f9({'text':a45_0x502b6e[_0x13bddb(0x1b9)](_0x45c755),'color':_0x13bddb(0x1b0),'spinner':_0x13bddb(0x184)});}export function success(_0x2dd6af){const _0x2c3a73=a45_0x6afd,_0x74c811=getThemeById(getTheme());process[_0x2c3a73(0x193)][_0x2c3a73(0x19b)](a45_0x502b6e[_0x2c3a73(0x1a9)](_0x74c811[_0x2c3a73(0x178)])('●\x20')+_0x2dd6af+'\x0a');}export function error(_0x5e915b){const _0x170f62=a45_0x6afd;process[_0x170f62(0x193)][_0x170f62(0x19b)](a45_0x502b6e[_0x170f62(0x1b2)]['red']('●\x20')+a45_0x502b6e[_0x170f62(0x18a)](_0x5e915b)+'\x0a');}export function info(_0x52b7f9){const _0xebd632=a45_0x6afd,_0x4826a3=getThemeById(getTheme());process['stdout'][_0xebd632(0x19b)](a45_0x502b6e[_0xebd632(0x1a9)](_0x4826a3[_0xebd632(0x1b7)])('●\x20')+a45_0x502b6e[_0xebd632(0x1b9)](_0x52b7f9)+'\x0a');}export function warn(_0x1b25f0){const _0x35f8db=a45_0x6afd;process['stdout'][_0x35f8db(0x19b)](a45_0x502b6e[_0x35f8db(0x1b2)][_0x35f8db(0x17a)]('●\x20')+a45_0x502b6e[_0x35f8db(0x17a)](_0x1b25f0)+'\x0a');}export function dim(_0x5ce8e0){const _0x1d1025=a45_0x6afd;process[_0x1d1025(0x193)][_0x1d1025(0x19b)](a45_0x502b6e[_0x1d1025(0x1b9)](_0x1d1025(0x1a5))+a45_0x502b6e[_0x1d1025(0x1b9)](_0x5ce8e0)+'\x0a');}export function header(_0x83d2ba){const _0x18062d=a45_0x6afd,_0x13ec49=getThemeById(getTheme());process[_0x18062d(0x193)][_0x18062d(0x19b)]('\x0a'+a45_0x502b6e['bold'][_0x18062d(0x1a9)](_0x13ec49[_0x18062d(0x178)])('\x20\x20'+_0x83d2ba)+'\x0a');}export function divider(){const _0x115de5=a45_0x6afd;process[_0x115de5(0x193)][_0x115de5(0x19b)](a45_0x502b6e[_0x115de5(0x1b9)]('\x20\x20'+'─'[_0x115de5(0x1ad)](0x28))+'\x0a');}export function tip(_0x4fe190,_0x274005){const _0x3fcdd0=a45_0x6afd;process[_0x3fcdd0(0x193)][_0x3fcdd0(0x19b)](a45_0x502b6e[_0x3fcdd0(0x1b9)](_0x3fcdd0(0x1bf))+a45_0x502b6e[_0x3fcdd0(0x1ba)](_0x4fe190)+a45_0x502b6e[_0x3fcdd0(0x1b9)]('\x20'+_0x274005)+'\x0a');}export function userMessage(_0x2fdfc2){const _0x336d4d=a45_0x6afd,_0x5d6544=getThemeById(getTheme());process[_0x336d4d(0x193)]['write'](a45_0x502b6e[_0x336d4d(0x1b2)][_0x336d4d(0x1a9)](_0x5d6544[_0x336d4d(0x178)])(_0x336d4d(0x19c))+a45_0x502b6e['white'](_0x2fdfc2)+'\x0a');}export function rateLimitWarning(_0x3a9159){const _0x128475=a45_0x6afd,_0x33f757=Math[_0x128475(0x198)](_0x3a9159/0x3c),_0xdd4365=_0x3a9159%0x3c,_0x1ae064=_0x33f757>0x0?_0x33f757+'m\x20'+_0xdd4365+'s':_0xdd4365+'s';process[_0x128475(0x193)][_0x128475(0x19b)]('\x0a'),process[_0x128475(0x193)][_0x128475(0x19b)]('\x20\x20'+a45_0x502b6e[_0x128475(0x1b2)]['red'](_0x128475(0x1a3))+'\x0a'),process[_0x128475(0x193)][_0x128475(0x19b)]('\x20\x20'+a45_0x502b6e[_0x128475(0x18a)](_0x128475(0x1aa)+_0x1ae064+'\x20before\x20next\x20message')+'\x0a'),process[_0x128475(0x193)]['write']('\x0a');}export function renderMarkdown(_0x45940c){const _0x50dcd2=a45_0x6afd,_0x187918=getThemeById(getTheme());return _0x45940c[_0x50dcd2(0x17c)](/\*\*(.+?)\*\*/g,(_0x50fd90,_0x29f7df)=>a45_0x502b6e['bold'](_0x29f7df))[_0x50dcd2(0x17c)](/\*(.+?)\*/g,(_0x32c539,_0x535d1d)=>a45_0x502b6e['italic'](_0x535d1d))[_0x50dcd2(0x17c)](/`([^`]+)`/g,(_0x298ba6,_0x1e5310)=>a45_0x502b6e[_0x50dcd2(0x1a8)](_0x1e5310))['replace'](/^### (.+)$/gm,(_0xef70c,_0x2eb296)=>a45_0x502b6e[_0x50dcd2(0x1b2)][_0x50dcd2(0x1a9)](_0x187918[_0x50dcd2(0x1b7)])(_0x2eb296))['replace'](/^## (.+)$/gm,(_0x5911e9,_0x3e0c45)=>a45_0x502b6e[_0x50dcd2(0x1b2)][_0x50dcd2(0x1a9)](_0x187918[_0x50dcd2(0x178)])(_0x3e0c45))[_0x50dcd2(0x17c)](/^# (.+)$/gm,(_0x2a79be,_0x5b318f)=>a45_0x502b6e['bold'][_0x50dcd2(0x1a9)](_0x187918[_0x50dcd2(0x199)])(_0x5b318f))['replace'](/^- (.+)$/gm,(_0x4c2311,_0x482eb7)=>a45_0x502b6e[_0x50dcd2(0x1b9)](_0x50dcd2(0x174))+_0x482eb7)[_0x50dcd2(0x17c)](/^\d+\. (.+)$/gm,(_0x12a35d,_0xbf11b3)=>a45_0x502b6e[_0x50dcd2(0x1b9)]('\x20\x20')+_0xbf11b3);}export function aiMessage(_0x55b744){const _0x199c75=a45_0x6afd,_0x2beacb=getThemeById(getTheme()),_0x393fa3=renderMarkdown(_0x55b744);_0x55b744['trim']()&&process[_0x199c75(0x193)][_0x199c75(0x19b)](a45_0x502b6e[_0x199c75(0x1a9)](_0x2beacb[_0x199c75(0x178)])('●\x20')+_0x393fa3);}export function aiMessageEnd(){const _0x42da7a=a45_0x6afd;process[_0x42da7a(0x193)][_0x42da7a(0x19b)]('\x0a');}export function toolCall(_0xb7644b,_0x2ece82){const _0x295526=a45_0x6afd,_0x104f09=getThemeById(getTheme());process[_0x295526(0x193)][_0x295526(0x19b)](a45_0x502b6e[_0x295526(0x1a9)](_0x104f09['primary'])('●\x20')+a45_0x502b6e[_0x295526(0x1b2)][_0x295526(0x1ba)](_0xb7644b)+a45_0x502b6e[_0x295526(0x1b9)]('('+_0x2ece82+')')+'\x0a');}export function statusBar(_0x106377,_0x27410c){const _0x394c11=a45_0x6afd,_0x491ec9=getThemeById(getTheme()),_0x384218=MODELS['find'](_0x5944de=>_0x5944de['id']===_0x106377),_0x1cb04a=_0x384218?.[_0x394c11(0x1c0)]||(_0x106377['split']('/')[_0x394c11(0x1a1)]()?.['replace'](_0x394c11(0x175),'')||_0x106377),_0xa615c8=a45_0x502b6e[_0x394c11(0x1a9)](_0x491ec9['primary'])(_0x1cb04a),_0x37f164=a45_0x502b6e[_0x394c11(0x1b9)](_0x27410c+_0x394c11(0x1bc));process['stdout'][_0x394c11(0x19b)]('\x20\x20'+_0xa615c8+'\x20\x20'+a45_0x502b6e[_0x394c11(0x1b9)]('|')+'\x20\x20'+_0x37f164+'\x0a');}export function prompt(){const _0x1ec34f=a45_0x6afd,_0x771d52=getThemeById(getTheme());process['stdout'][_0x1ec34f(0x19b)](a45_0x502b6e[_0x1ec34f(0x1b2)][_0x1ec34f(0x1a9)](_0x771d52[_0x1ec34f(0x178)])('>\x20'));}function lerpColor(_0x54e73b,_0x3edb2c,_0x1cdcb1){const _0x460a86=a45_0x6afd,_0x407399=parseInt(_0x54e73b['replace']('#',''),0x10),_0x373d58=parseInt(_0x3edb2c[_0x460a86(0x17c)]('#',''),0x10),_0x43a8fd=_0x407399>>0x10&0xff,_0x2c0557=_0x407399>>0x8&0xff,_0x2a728b=_0x407399&0xff,_0x596e24=_0x373d58>>0x10&0xff,_0x3e659e=_0x373d58>>0x8&0xff,_0xafdb28=_0x373d58&0xff,_0x25451a=Math[_0x460a86(0x182)](_0x43a8fd+(_0x596e24-_0x43a8fd)*_0x1cdcb1),_0x3568e4=Math[_0x460a86(0x182)](_0x2c0557+(_0x3e659e-_0x2c0557)*_0x1cdcb1),_0x3e279d=Math[_0x460a86(0x182)](_0x2a728b+(_0xafdb28-_0x2a728b)*_0x1cdcb1);return'#'+((0x1<<0x18)+(_0x25451a<<0x10)+(_0x3568e4<<0x8)+_0x3e279d)['toString'](0x10)[_0x460a86(0x18c)](0x1);}export function gradientText(_0x1f187c,_0x271041,_0x2376a9){const _0x4a7c79=_0x1f187c['split']('');return _0x4a7c79['map']((_0x36ff7b,_0x2e31d3)=>{const _0x6ad451=a45_0x6afd,_0x473bd0=_0x2e31d3/Math[_0x6ad451(0x190)](_0x4a7c79[_0x6ad451(0x186)]-0x1,0x1);return a45_0x502b6e[_0x6ad451(0x1a9)](lerpColor(_0x271041,_0x2376a9,_0x473bd0))(_0x36ff7b);})['join']('');}function a45_0x6afd(_0x3b9705,_0xeffc29){_0x3b9705=_0x3b9705-0x174;const _0x3d81a7=a45_0x3d81();let _0x6afd55=_0x3d81a7[_0x3b9705];return _0x6afd55;}export function loggedInBox(_0x309d8a){const _0x5ad81d=a45_0x6afd,_0x5b005c=getThemeById(getTheme()),_0x1d81b0=_0x5ad81d(0x19a),_0x366742=_0x309d8a[_0x5ad81d(0x1a0)](),_0x353300=gradientText(_0x366742,_0x5b005c['secondary'],_0x5b005c[_0x5ad81d(0x199)]);process[_0x5ad81d(0x193)]['write']('\x0a\x20\x20'+a45_0x502b6e[_0x5ad81d(0x1b9)](_0x1d81b0)+_0x353300+'\x0a');}export function actionSpinner(_0x41f039){const _0x42c1c5=a45_0x6afd,_0x473d80=getThemeById(getTheme());return a45_0xa90f9({'text':a45_0x502b6e[_0x42c1c5(0x1b9)](_0x41f039),'color':'blue','spinner':{'interval':0x50,'frames':['✶','✸','✹','✺','✹','✸']['map'](_0x56c68a=>a45_0x502b6e[_0x42c1c5(0x1a9)](_0x473d80['secondary'])(_0x56c68a))}});}export function toolSuccess(_0x375379,_0x1227d5,_0x266de7,_0x3fbcbc=![]){const _0x2af937=a45_0x6afd,_0x1c92bb=getThemeById(getTheme()),_0x46218c=_0x3fbcbc?a45_0x502b6e[_0x2af937(0x18a)]:a45_0x502b6e[_0x2af937(0x1a9)](_0x1c92bb[_0x2af937(0x178)]),_0x5eaea5=_0x3fbcbc?a45_0x502b6e[_0x2af937(0x18a)]:a45_0x502b6e[_0x2af937(0x1a9)](_0x1c92bb['tertiary']);process[_0x2af937(0x193)]['write'](_0x46218c('●\x20')+a45_0x502b6e[_0x2af937(0x1b2)][_0x2af937(0x1ba)](_0x375379)+a45_0x502b6e[_0x2af937(0x1b9)]('(')+_0x5eaea5(_0x1227d5)+a45_0x502b6e[_0x2af937(0x1b9)](')\x0a')),_0x266de7&&process['stdout'][_0x2af937(0x19b)](a45_0x502b6e[_0x2af937(0x1b9)](_0x2af937(0x1a5))+(_0x3fbcbc?a45_0x502b6e[_0x2af937(0x18a)](_0x266de7):a45_0x502b6e['dim'](_0x266de7))+'\x0a');}export function usageBox(_0x46751d,_0xfb8491,_0x11deb7){const _0x49d56a=a45_0x6afd,_0x53d116=_0xfb8491>0x0?Math[_0x49d56a(0x1a4)](Math[_0x49d56a(0x182)](_0x46751d/_0xfb8491*0x64),0x64):0x0,_0x370314=0x1e,_0x2f289d=Math[_0x49d56a(0x182)](_0x53d116/0x64*_0x370314),_0xd04e13=_0x370314-_0x2f289d,_0x3789ea=_0x11deb7?a45_0x502b6e[_0x49d56a(0x18a)]:_0x53d116>0x50?a45_0x502b6e[_0x49d56a(0x17a)]:a45_0x502b6e[_0x49d56a(0x183)],_0x38a471=_0x3789ea('█'[_0x49d56a(0x1ad)](_0x2f289d))+a45_0x502b6e[_0x49d56a(0x1b9)]('░'[_0x49d56a(0x1ad)](_0xd04e13)),_0x42fad5=_0xfb8491>=0x3b9ac9ff?_0x49d56a(0x180):_0xfb8491['toLocaleString'](),_0x31dfa2=_0x46751d[_0x49d56a(0x1b5)]()+_0x49d56a(0x17b)+_0x42fad5+'\x20tokens',_0x493bf8=getThemeById(getTheme());process[_0x49d56a(0x193)][_0x49d56a(0x19b)]('\x0a'),process[_0x49d56a(0x193)][_0x49d56a(0x19b)](a45_0x502b6e['bold'][_0x49d56a(0x1a9)](_0x493bf8[_0x49d56a(0x1b7)])('\x20\x20Token\x20Usage\x0a')),process[_0x49d56a(0x193)][_0x49d56a(0x19b)]('\x20\x20'+_0x38a471+'\x20'+a45_0x502b6e[_0x49d56a(0x1b9)](_0x53d116+'%')+'\x0a'),process[_0x49d56a(0x193)]['write'](a45_0x502b6e[_0x49d56a(0x1b9)]('\x20\x20'+_0x31dfa2+'\x0a')),_0x11deb7&&process[_0x49d56a(0x193)]['write'](a45_0x502b6e[_0x49d56a(0x18a)](_0x49d56a(0x1b6))),process[_0x49d56a(0x193)][_0x49d56a(0x19b)]('\x0a');}export function mcpConnected(_0x21df92,_0x10bd39){const _0x3ae1a3=a45_0x6afd,_0x2863c7=getThemeById(getTheme()),_0x51ef2c=_0x21df92===0x1?_0x3ae1a3(0x1b1):_0x3ae1a3(0x192);process[_0x3ae1a3(0x193)][_0x3ae1a3(0x19b)](a45_0x502b6e[_0x3ae1a3(0x1b9)]('\x20\x20'+a45_0x502b6e[_0x3ae1a3(0x1a9)](_0x2863c7['primary'])(_0x21df92[_0x3ae1a3(0x187)]())+_0x3ae1a3(0x19e)+_0x51ef2c+_0x3ae1a3(0x19f)+_0x10bd39+_0x3ae1a3(0x1a6)));}function a45_0x3d81(){const _0x105885=['╚══════╝╚══════╝','length','toString','╚███╔███╔╝','2728920cCwlzy','red','1958395RJTwMW','slice','\x20-\x20AI\x20Coding\x20Assistant\x0a','██║\x20█╗\x20██║','36726870DveNXK','max','774584pRtcky','servers','stdout','\x20\x20███╔╝\x20██║\x20\x20\x20\x20\x20','tertiary','\x20\x20Done\x20in\x20','117nRjOsS','floor','quaternary','Logged\x20in\x20as:\x20','write','\x0a>\x20','655555TkHVCX','\x20MCP\x20','\x20connected\x20(','trim','pop','toFixed','Rate\x20Limit\x20Reached','min','\x20\x20└\x20','\x20tools)\x0a','\x20██████╗\x20\x20██████╗\x20','cyan','hex','Wait\x20','2qkNNVH','\x20╚═════╝\x20\x20╚═════╝\x20','repeat','╚═╝\x20\x20\x20╚═╝\x20\x20\x20','6nmoKMI','blue','server','bold','██╗████████╗','\x20\x20Working\x20in:\x20','toLocaleString','\x20\x20Limit\x20Reached\x0a','secondary','\x20███╔╝\x20\x20██║\x20\x20\x20\x20\x20','dim','white','██║\x20\x20\x20██║\x20\x20\x20','%\x20context\x20left','██╗\x20\x20\x20\x20██╗','\x20╚══╝╚══╝\x20','\x20\x20\x20\x20','name','\x20\x20-\x20',':free','\x20\x20v','██║\x20\x20\x20██║██║\x20\x20\x20██║','primary','╚══███╔╝██║\x20\x20\x20\x20\x20','yellow','\x20/\x20','replace','███████╗██╗\x20\x20\x20\x20\x20','8937558BMBMTF','███████╗███████╗','Unlimited','1068928JqBGzF','round','green','dots'];a45_0x3d81=function(){return _0x105885;};return a45_0x3d81();}export function elapsedTime(_0x54d826){const _0x44fee5=a45_0x6afd,_0x34f314=_0x54d826<0x3c?_0x54d826[_0x44fee5(0x1a2)](0x1)+'s':Math[_0x44fee5(0x198)](_0x54d826/0x3c)+'m\x20'+(_0x54d826%0x3c)[_0x44fee5(0x1a2)](0x0)+'s';process[_0x44fee5(0x193)]['write'](a45_0x502b6e[_0x44fee5(0x1b9)](_0x44fee5(0x196)+_0x34f314+'\x0a'));}export function currentDir(_0x3dc3b2){const _0x41d5a0=a45_0x6afd,_0x525881=getThemeById(getTheme());process[_0x41d5a0(0x193)][_0x41d5a0(0x19b)](a45_0x502b6e['dim'](_0x41d5a0(0x1b4))+a45_0x502b6e[_0x41d5a0(0x1a9)](_0x525881[_0x41d5a0(0x1b7)])(_0x3dc3b2)+'\x0a');}
1
+ (function(_0x1206b0,_0x4ade00){const _0x20caaf=a45_0x2e9a,_0x8708e8=_0x1206b0();while(!![]){try{const _0xb61595=-parseInt(_0x20caaf(0x18f))/0x1*(parseInt(_0x20caaf(0x1a8))/0x2)+parseInt(_0x20caaf(0x1ae))/0x3*(parseInt(_0x20caaf(0x1ba))/0x4)+parseInt(_0x20caaf(0x189))/0x5*(parseInt(_0x20caaf(0x185))/0x6)+parseInt(_0x20caaf(0x1bb))/0x7+parseInt(_0x20caaf(0x1a2))/0x8*(-parseInt(_0x20caaf(0x196))/0x9)+parseInt(_0x20caaf(0x195))/0xa+parseInt(_0x20caaf(0x178))/0xb*(-parseInt(_0x20caaf(0x192))/0xc);if(_0xb61595===_0x4ade00)break;else _0x8708e8['push'](_0x8708e8['shift']());}catch(_0x344b28){_0x8708e8['push'](_0x8708e8['shift']());}}}(a45_0x259f,0xef512));import a45_0x6e8192 from'chalk';import a45_0x54a100 from'ora';import{MODELS}from'../config/settings.js';import{getTheme}from'../utils/storage.js';import{getThemeById}from'./themes.js';export function getLogo(){const _0x242d73=a45_0x2e9a,_0x5cc4c4=getThemeById(getTheme());return'\x0a'+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x173)])(_0x242d73(0x1b6))+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x1bd)])(_0x242d73(0x1ac))+a45_0x6e8192['hex'](_0x5cc4c4[_0x242d73(0x190)])(_0x242d73(0x19c))+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x181)])(_0x242d73(0x1a9))+'\x0a'+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x173)])(_0x242d73(0x19b))+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x1bd)])('██╔═══██╗██╔═══██╗')+a45_0x6e8192['hex'](_0x5cc4c4[_0x242d73(0x190)])(_0x242d73(0x17b))+a45_0x6e8192['hex'](_0x5cc4c4['quaternary'])(_0x242d73(0x1b0))+'\x0a'+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x173)])(_0x242d73(0x193))+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x1bd)])(_0x242d73(0x197))+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x190)])('\x20\x20███╔╝\x20██║\x20\x20\x20\x20\x20')+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4['quaternary'])(_0x242d73(0x1b4))+'\x0a'+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x173)])('██║███╗██║')+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4['secondary'])(_0x242d73(0x197))+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x190)])(_0x242d73(0x188))+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x181)])(_0x242d73(0x1b4))+'\x0a'+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x173)])('╚███╔███╔╝')+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x1bd)])(_0x242d73(0x17c))+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x190)])(_0x242d73(0x184))+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x181)])(_0x242d73(0x1b4))+'\x0a'+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x173)])('\x20╚══╝╚══╝\x20')+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x1bd)])('\x20╚═════╝\x20\x20╚═════╝\x20')+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4['primary'])(_0x242d73(0x1be))+a45_0x6e8192[_0x242d73(0x1b1)](_0x5cc4c4[_0x242d73(0x181)])(_0x242d73(0x176))+'\x0a';}export function showLogo(_0x1ef439){const _0x4feac5=a45_0x2e9a;process[_0x4feac5(0x1a5)][_0x4feac5(0x1a1)]('\x0a'+getLogo()),_0x1ef439&&process[_0x4feac5(0x1a5)][_0x4feac5(0x1a1)](a45_0x6e8192[_0x4feac5(0x191)]('\x20\x20v'+_0x1ef439+_0x4feac5(0x179))),process[_0x4feac5(0x1a5)][_0x4feac5(0x1a1)]('\x0a');}export function createSpinner(_0x4c6dbe){const _0x52c243=a45_0x2e9a;return a45_0x54a100({'text':a45_0x6e8192[_0x52c243(0x191)](_0x4c6dbe),'color':_0x52c243(0x19a),'spinner':_0x52c243(0x19e)});}export function success(_0x5d6618){const _0x2c1c98=a45_0x2e9a,_0x5dd5f9=getThemeById(getTheme());process[_0x2c1c98(0x1a5)][_0x2c1c98(0x1a1)](a45_0x6e8192[_0x2c1c98(0x1b1)](_0x5dd5f9['primary'])('●\x20')+_0x5d6618+'\x0a');}export function error(_0xc628a6){const _0xadbece=a45_0x2e9a;process[_0xadbece(0x1a5)]['write'](a45_0x6e8192[_0xadbece(0x1a7)]['red']('●\x20')+a45_0x6e8192['red'](_0xc628a6)+'\x0a');}export function info(_0x58f198){const _0x3d5cc6=a45_0x2e9a,_0x52a182=getThemeById(getTheme());process[_0x3d5cc6(0x1a5)][_0x3d5cc6(0x1a1)](a45_0x6e8192[_0x3d5cc6(0x1b1)](_0x52a182[_0x3d5cc6(0x1bd)])('●\x20')+a45_0x6e8192[_0x3d5cc6(0x191)](_0x58f198)+'\x0a');}export function warn(_0x5a9b47){const _0x3e6159=a45_0x2e9a;process[_0x3e6159(0x1a5)][_0x3e6159(0x1a1)](a45_0x6e8192[_0x3e6159(0x1a7)][_0x3e6159(0x1b9)]('●\x20')+a45_0x6e8192['yellow'](_0x5a9b47)+'\x0a');}export function dim(_0x119402){const _0x55a9e3=a45_0x2e9a;process[_0x55a9e3(0x1a5)][_0x55a9e3(0x1a1)](a45_0x6e8192[_0x55a9e3(0x191)](_0x55a9e3(0x199))+a45_0x6e8192[_0x55a9e3(0x191)](_0x119402)+'\x0a');}export function header(_0x1d8f87){const _0x32bbde=a45_0x2e9a,_0x310dce=getThemeById(getTheme());process[_0x32bbde(0x1a5)]['write']('\x0a'+a45_0x6e8192[_0x32bbde(0x1a7)][_0x32bbde(0x1b1)](_0x310dce[_0x32bbde(0x190)])('\x20\x20'+_0x1d8f87)+'\x0a');}function a45_0x259f(){const _0x20d7a8=['8505220RrDTsK','176931AaLmQZ','██║\x20\x20\x20██║██║\x20\x20\x20██║','server','\x20\x20└\x20','blue','██║\x20\x20\x20\x20██║','███████╗██╗\x20\x20\x20\x20\x20','italic','dots',':free','replace','write','328sggbyX','\x20before\x20next\x20message','\x0a\x20\x20','stdout','map','bold','106030csyoSJ','██╗████████╗','toString','\x20connected\x20(','\x20██████╗\x20\x20██████╗\x20','%\x20context\x20left','3373758rGMIbx','\x0a>\x20','██║╚══██╔══╝','hex','toFixed','\x20tokens','██║\x20\x20\x20██║\x20\x20\x20','Logged\x20in\x20as:\x20','██╗\x20\x20\x20\x20██╗','Rate\x20Limit\x20Reached','toLocaleString','yellow','4Msybnn','4636338eeQwDQ','length','secondary','╚══════╝╚══════╝','\x20\x20Limit\x20Reached\x0a','round','tertiary','\x20/\x20','red','╚═╝\x20\x20\x20╚═╝\x20\x20\x20','split','99DEhGPz','\x20-\x20AI\x20Coding\x20Assistant\x0a','trim','╚══███╔╝██║\x20\x20\x20\x20\x20','╚██████╔╝╚██████╔╝','\x20tools)\x0a','servers','name','\x20MCP\x20','quaternary','\x20\x20Done\x20in\x20','pop','███████╗███████╗','3914286LvFEUL','max','\x20\x20-\x20','\x20███╔╝\x20\x20██║\x20\x20\x20\x20\x20','10qWOqcL','white','repeat','find','floor','\x20\x20\x20\x20','31PJCZeM','primary','dim','683304mjuvIY','██║\x20█╗\x20██║','slice'];a45_0x259f=function(){return _0x20d7a8;};return a45_0x259f();}function a45_0x2e9a(_0x63c5e,_0x53b739){_0x63c5e=_0x63c5e-0x171;const _0x259fea=a45_0x259f();let _0x2e9aa5=_0x259fea[_0x63c5e];return _0x2e9aa5;}export function divider(){const _0x437ded=a45_0x2e9a;process[_0x437ded(0x1a5)]['write'](a45_0x6e8192[_0x437ded(0x191)]('\x20\x20'+'─'[_0x437ded(0x18b)](0x28))+'\x0a');}export function tip(_0x2b7f84,_0x539089){const _0xa68b6d=a45_0x2e9a;process[_0xa68b6d(0x1a5)]['write'](a45_0x6e8192[_0xa68b6d(0x191)](_0xa68b6d(0x18e))+a45_0x6e8192[_0xa68b6d(0x18a)](_0x2b7f84)+a45_0x6e8192['dim']('\x20'+_0x539089)+'\x0a');}export function userMessage(_0x552d62){const _0x2e725d=a45_0x2e9a,_0x27e1d6=getThemeById(getTheme());process[_0x2e725d(0x1a5)][_0x2e725d(0x1a1)](a45_0x6e8192[_0x2e725d(0x1a7)][_0x2e725d(0x1b1)](_0x27e1d6[_0x2e725d(0x190)])(_0x2e725d(0x1af))+a45_0x6e8192[_0x2e725d(0x18a)](_0x552d62)+'\x0a');}export function rateLimitWarning(_0x19ea9e){const _0x2c745f=a45_0x2e9a,_0x43edf8=Math[_0x2c745f(0x18d)](_0x19ea9e/0x3c),_0xe0c944=_0x19ea9e%0x3c,_0x158abe=_0x43edf8>0x0?_0x43edf8+'m\x20'+_0xe0c944+'s':_0xe0c944+'s';process['stdout']['write']('\x0a'),process['stdout']['write']('\x20\x20'+a45_0x6e8192[_0x2c745f(0x1a7)][_0x2c745f(0x175)](_0x2c745f(0x1b7))+'\x0a'),process[_0x2c745f(0x1a5)][_0x2c745f(0x1a1)]('\x20\x20'+a45_0x6e8192['red']('Wait\x20'+_0x158abe+_0x2c745f(0x1a3))+'\x0a'),process[_0x2c745f(0x1a5)]['write']('\x0a');}export function renderMarkdown(_0x3319ea){const _0x551c5d=a45_0x2e9a,_0x156f31=getThemeById(getTheme());return _0x3319ea[_0x551c5d(0x1a0)](/\*\*(.+?)\*\*/g,(_0x36142b,_0xe580d5)=>a45_0x6e8192['bold'](_0xe580d5))[_0x551c5d(0x1a0)](/\*(.+?)\*/g,(_0x319a37,_0x37616f)=>a45_0x6e8192[_0x551c5d(0x19d)](_0x37616f))[_0x551c5d(0x1a0)](/`([^`]+)`/g,(_0x1d3450,_0x56c887)=>a45_0x6e8192['cyan'](_0x56c887))[_0x551c5d(0x1a0)](/^### (.+)$/gm,(_0x5d9dfa,_0x220b45)=>a45_0x6e8192[_0x551c5d(0x1a7)][_0x551c5d(0x1b1)](_0x156f31[_0x551c5d(0x1bd)])(_0x220b45))[_0x551c5d(0x1a0)](/^## (.+)$/gm,(_0x25be1e,_0x23c754)=>a45_0x6e8192[_0x551c5d(0x1a7)][_0x551c5d(0x1b1)](_0x156f31['primary'])(_0x23c754))['replace'](/^# (.+)$/gm,(_0x493071,_0x982f46)=>a45_0x6e8192[_0x551c5d(0x1a7)][_0x551c5d(0x1b1)](_0x156f31['quaternary'])(_0x982f46))['replace'](/^- (.+)$/gm,(_0xb7885c,_0x4ea6e5)=>a45_0x6e8192[_0x551c5d(0x191)](_0x551c5d(0x187))+_0x4ea6e5)[_0x551c5d(0x1a0)](/^\d+\. (.+)$/gm,(_0x285df8,_0x1c2a4e)=>a45_0x6e8192[_0x551c5d(0x191)]('\x20\x20')+_0x1c2a4e);}export function aiMessage(_0x4f7ae6){const _0x28a4f6=a45_0x2e9a,_0x8d0b9b=getThemeById(getTheme()),_0x56d759=renderMarkdown(_0x4f7ae6);_0x4f7ae6[_0x28a4f6(0x17a)]()&&process[_0x28a4f6(0x1a5)][_0x28a4f6(0x1a1)](a45_0x6e8192[_0x28a4f6(0x1b1)](_0x8d0b9b[_0x28a4f6(0x190)])('●\x20')+_0x56d759);}export function aiMessageEnd(){const _0x2ce562=a45_0x2e9a;process['stdout'][_0x2ce562(0x1a1)]('\x0a');}export function toolCall(_0xe1eeb2,_0x23cb93){const _0xf542b1=a45_0x2e9a,_0x47a616=getThemeById(getTheme());process['stdout'][_0xf542b1(0x1a1)](a45_0x6e8192[_0xf542b1(0x1b1)](_0x47a616['primary'])('●\x20')+a45_0x6e8192[_0xf542b1(0x1a7)]['white'](_0xe1eeb2)+a45_0x6e8192[_0xf542b1(0x191)]('('+_0x23cb93+')')+'\x0a');}export function statusBar(_0x30509b,_0x48e96a){const _0x18fc9a=a45_0x2e9a,_0x4e726d=getThemeById(getTheme()),_0xe05c98=MODELS[_0x18fc9a(0x18c)](_0xdd853=>_0xdd853['id']===_0x30509b),_0xc0037a=_0xe05c98?.[_0x18fc9a(0x17f)]||(_0x30509b[_0x18fc9a(0x177)]('/')[_0x18fc9a(0x183)]()?.[_0x18fc9a(0x1a0)](_0x18fc9a(0x19f),'')||_0x30509b),_0x2439c3=a45_0x6e8192[_0x18fc9a(0x1b1)](_0x4e726d['primary'])(_0xc0037a),_0x449b39=a45_0x6e8192[_0x18fc9a(0x191)](_0x48e96a+_0x18fc9a(0x1ad));process['stdout'][_0x18fc9a(0x1a1)]('\x20\x20'+_0x2439c3+'\x20\x20'+a45_0x6e8192[_0x18fc9a(0x191)]('|')+'\x20\x20'+_0x449b39+'\x0a');}export function prompt(){const _0x3372cb=a45_0x2e9a,_0x571aa2=getThemeById(getTheme());process[_0x3372cb(0x1a5)]['write'](a45_0x6e8192[_0x3372cb(0x1a7)]['hex'](_0x571aa2[_0x3372cb(0x190)])('>\x20'));}function lerpColor(_0x5b528b,_0x2d6ff0,_0x27ccf6){const _0x394ac7=a45_0x2e9a,_0x556e1a=parseInt(_0x5b528b['replace']('#',''),0x10),_0x17335b=parseInt(_0x2d6ff0[_0x394ac7(0x1a0)]('#',''),0x10),_0x2b9f36=_0x556e1a>>0x10&0xff,_0x5eaa13=_0x556e1a>>0x8&0xff,_0x59d976=_0x556e1a&0xff,_0x58f3ba=_0x17335b>>0x10&0xff,_0x3ba649=_0x17335b>>0x8&0xff,_0x705bfc=_0x17335b&0xff,_0x4b8205=Math[_0x394ac7(0x172)](_0x2b9f36+(_0x58f3ba-_0x2b9f36)*_0x27ccf6),_0x386562=Math[_0x394ac7(0x172)](_0x5eaa13+(_0x3ba649-_0x5eaa13)*_0x27ccf6),_0x3f888f=Math[_0x394ac7(0x172)](_0x59d976+(_0x705bfc-_0x59d976)*_0x27ccf6);return'#'+((0x1<<0x18)+(_0x4b8205<<0x10)+(_0x386562<<0x8)+_0x3f888f)[_0x394ac7(0x1aa)](0x10)[_0x394ac7(0x194)](0x1);}export function gradientText(_0x227b75,_0x461561,_0x4c2b57){const _0x3ac054=a45_0x2e9a,_0x561f91=_0x227b75[_0x3ac054(0x177)]('');return _0x561f91[_0x3ac054(0x1a6)]((_0x5db17a,_0x30fa92)=>{const _0x26c0d9=_0x3ac054,_0x1532a7=_0x30fa92/Math[_0x26c0d9(0x186)](_0x561f91[_0x26c0d9(0x1bc)]-0x1,0x1);return a45_0x6e8192[_0x26c0d9(0x1b1)](lerpColor(_0x461561,_0x4c2b57,_0x1532a7))(_0x5db17a);})['join']('');}export function loggedInBox(_0x45b278){const _0x27c4aa=a45_0x2e9a,_0x37c501=getThemeById(getTheme()),_0x1166b7=_0x27c4aa(0x1b5),_0x460ed9=_0x45b278[_0x27c4aa(0x17a)](),_0x1513ad=gradientText(_0x460ed9,_0x37c501[_0x27c4aa(0x1bd)],_0x37c501[_0x27c4aa(0x181)]);process[_0x27c4aa(0x1a5)][_0x27c4aa(0x1a1)](_0x27c4aa(0x1a4)+a45_0x6e8192[_0x27c4aa(0x191)](_0x1166b7)+_0x1513ad+'\x0a');}export function actionSpinner(_0x4f97b2){const _0x4e954b=a45_0x2e9a,_0xc92d34=getThemeById(getTheme());return a45_0x54a100({'text':a45_0x6e8192[_0x4e954b(0x191)](_0x4f97b2),'color':'blue','spinner':{'interval':0x50,'frames':['✶','✸','✹','✺','✹','✸'][_0x4e954b(0x1a6)](_0x3c80e2=>a45_0x6e8192[_0x4e954b(0x1b1)](_0xc92d34[_0x4e954b(0x1bd)])(_0x3c80e2))}});}export function toolSuccess(_0x513330,_0x44a794,_0x48ed8e,_0x2704b4=![]){const _0x4c56aa=a45_0x2e9a,_0x46a1a6=getThemeById(getTheme()),_0x4f7d19=_0x2704b4?a45_0x6e8192['red']:a45_0x6e8192[_0x4c56aa(0x1b1)](_0x46a1a6[_0x4c56aa(0x190)]),_0x52decd=_0x2704b4?a45_0x6e8192['red']:a45_0x6e8192[_0x4c56aa(0x1b1)](_0x46a1a6[_0x4c56aa(0x173)]);process[_0x4c56aa(0x1a5)][_0x4c56aa(0x1a1)](_0x4f7d19('●\x20')+a45_0x6e8192[_0x4c56aa(0x1a7)][_0x4c56aa(0x18a)](_0x513330)+a45_0x6e8192[_0x4c56aa(0x191)]('(')+_0x52decd(_0x44a794)+a45_0x6e8192[_0x4c56aa(0x191)](')\x0a')),_0x48ed8e&&process['stdout'][_0x4c56aa(0x1a1)](a45_0x6e8192[_0x4c56aa(0x191)]('\x20\x20└\x20')+(_0x2704b4?a45_0x6e8192['red'](_0x48ed8e):a45_0x6e8192[_0x4c56aa(0x191)](_0x48ed8e))+'\x0a');}export function usageBox(_0x3c3938,_0x270c3e,_0x5f0f52){const _0x348e6f=a45_0x2e9a,_0x49166c=_0x270c3e>0x0?Math['min'](Math['round'](_0x3c3938/_0x270c3e*0x64),0x64):0x0,_0x227b51=0x1e,_0x228108=Math[_0x348e6f(0x172)](_0x49166c/0x64*_0x227b51),_0x3c416f=_0x227b51-_0x228108,_0x55ab03=_0x5f0f52?a45_0x6e8192[_0x348e6f(0x175)]:_0x49166c>0x50?a45_0x6e8192[_0x348e6f(0x1b9)]:a45_0x6e8192['green'],_0x176487=_0x55ab03('█'[_0x348e6f(0x18b)](_0x228108))+a45_0x6e8192[_0x348e6f(0x191)]('░'['repeat'](_0x3c416f)),_0x243b46=_0x270c3e>=0x3b9ac9ff?'Unlimited':_0x270c3e['toLocaleString'](),_0x403695=_0x3c3938[_0x348e6f(0x1b8)]()+_0x348e6f(0x174)+_0x243b46+_0x348e6f(0x1b3),_0x58cd99=getThemeById(getTheme());process['stdout'][_0x348e6f(0x1a1)]('\x0a'),process['stdout'][_0x348e6f(0x1a1)](a45_0x6e8192[_0x348e6f(0x1a7)]['hex'](_0x58cd99[_0x348e6f(0x1bd)])('\x20\x20Token\x20Usage\x0a')),process[_0x348e6f(0x1a5)][_0x348e6f(0x1a1)]('\x20\x20'+_0x176487+'\x20'+a45_0x6e8192[_0x348e6f(0x191)](_0x49166c+'%')+'\x0a'),process[_0x348e6f(0x1a5)][_0x348e6f(0x1a1)](a45_0x6e8192[_0x348e6f(0x191)]('\x20\x20'+_0x403695+'\x0a')),_0x5f0f52&&process[_0x348e6f(0x1a5)][_0x348e6f(0x1a1)](a45_0x6e8192[_0x348e6f(0x175)](_0x348e6f(0x171))),process['stdout'][_0x348e6f(0x1a1)]('\x0a');}export function mcpConnected(_0x1da1aa,_0x2d8432){const _0x3b7215=a45_0x2e9a,_0x3056a3=getThemeById(getTheme()),_0x3e2bfe=_0x1da1aa===0x1?_0x3b7215(0x198):_0x3b7215(0x17e);process[_0x3b7215(0x1a5)]['write'](a45_0x6e8192[_0x3b7215(0x191)]('\x20\x20'+a45_0x6e8192['hex'](_0x3056a3[_0x3b7215(0x190)])(_0x1da1aa[_0x3b7215(0x1aa)]())+_0x3b7215(0x180)+_0x3e2bfe+_0x3b7215(0x1ab)+_0x2d8432+_0x3b7215(0x17d)));}export function elapsedTime(_0x2396f4){const _0x1b3dcf=a45_0x2e9a,_0x2ecc26=_0x2396f4<0x3c?_0x2396f4[_0x1b3dcf(0x1b2)](0x1)+'s':Math['floor'](_0x2396f4/0x3c)+'m\x20'+(_0x2396f4%0x3c)[_0x1b3dcf(0x1b2)](0x0)+'s';process[_0x1b3dcf(0x1a5)][_0x1b3dcf(0x1a1)](a45_0x6e8192[_0x1b3dcf(0x191)](_0x1b3dcf(0x182)+_0x2ecc26+'\x0a'));}export function currentDir(_0x3a477f){const _0x3b3257=a45_0x2e9a,_0x36808e=getThemeById(getTheme());process[_0x3b3257(0x1a5)][_0x3b3257(0x1a1)](a45_0x6e8192[_0x3b3257(0x191)]('\x20\x20Working\x20in:\x20')+a45_0x6e8192['hex'](_0x36808e[_0x3b3257(0x1bd)])(_0x3a477f)+'\x0a');}
package/dist/ui/select.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3c22ac,_0x40afce){const _0x21061f=a46_0x4e3c,_0x358809=_0x3c22ac();while(!![]){try{const _0x50a9d5=parseInt(_0x21061f(0xa6))/0x1*(parseInt(_0x21061f(0xa8))/0x2)+parseInt(_0x21061f(0xae))/0x3+-parseInt(_0x21061f(0xac))/0x4+parseInt(_0x21061f(0xab))/0x5*(-parseInt(_0x21061f(0xa7))/0x6)+-parseInt(_0x21061f(0xa3))/0x7*(-parseInt(_0x21061f(0xad))/0x8)+-parseInt(_0x21061f(0xa4))/0x9+parseInt(_0x21061f(0xa9))/0xa;if(_0x50a9d5===_0x40afce)break;else _0x358809['push'](_0x358809['shift']());}catch(_0x111fbc){_0x358809['push'](_0x358809['shift']());}}}(a46_0x2641,0xba16f));function a46_0x4e3c(_0x578898,_0x18b2e9){_0x578898=_0x578898-0xa1;const _0x26413b=a46_0x2641();let _0x4e3c86=_0x26413b[_0x578898];return _0x4e3c86;}import{select}from'@inquirer/prompts';import{MODELS}from'../config/settings.js';import{getSelectedModel,setSelectedModel}from'../utils/storage.js';function a46_0x2641(){const _0x435780=['101KqLQEZ','103434OIcJhf','19818KrUuoo','6475480FoWasa','map','265RqXhCV','5042540WXjnan','1887560ZDZjmq','2047761bKpabe','name','description','35dQsoUQ','5167296DxxMBV','xp)'];a46_0x2641=function(){return _0x435780;};return a46_0x2641();}export async function selectModel(){const _0x318174=a46_0x4e3c,_0x1d3db4=getSelectedModel(),_0x2a240b=MODELS[_0x318174(0xaa)](_0x55b52d=>({'name':''+_0x55b52d[_0x318174(0xa1)]+(_0x55b52d['xp']?'\x20('+_0x55b52d['xp']+_0x318174(0xa5):'')+(_0x55b52d['id']===_0x1d3db4?'\x20*':''),'value':_0x55b52d['id'],'description':_0x55b52d[_0x318174(0xa2)]})),_0x41da00=await select({'message':'Select\x20AI\x20Model','choices':_0x2a240b,'default':_0x1d3db4});return setSelectedModel(_0x41da00),_0x41da00;}export{getSelectedModel,setSelectedModel};
1
+ (function(_0x27460a,_0x2da4f0){const _0xb10a3=a46_0x481c,_0x21f69b=_0x27460a();while(!![]){try{const _0x2f2d87=parseInt(_0xb10a3(0x92))/0x1+-parseInt(_0xb10a3(0x8b))/0x2+-parseInt(_0xb10a3(0x90))/0x3+parseInt(_0xb10a3(0x87))/0x4+parseInt(_0xb10a3(0x8c))/0x5*(-parseInt(_0xb10a3(0x91))/0x6)+parseInt(_0xb10a3(0x88))/0x7*(parseInt(_0xb10a3(0x8e))/0x8)+parseInt(_0xb10a3(0x89))/0x9;if(_0x2f2d87===_0x2da4f0)break;else _0x21f69b['push'](_0x21f69b['shift']());}catch(_0x568366){_0x21f69b['push'](_0x21f69b['shift']());}}}(a46_0x15e1,0x7b9ad));import{select}from'@inquirer/prompts';import{MODELS}from'../config/settings.js';import{getSelectedModel,setSelectedModel}from'../utils/storage.js';function a46_0x15e1(){const _0x89d1be=['30WJbhss','description','4000280IdAJoD','Select\x20AI\x20Model','335529zPlFCZ','965652NpZopf','611381iWjtpF','2471488fAUVEN','7acYjLD','3174129OMWWnA','xp)','996378Vpscaq'];a46_0x15e1=function(){return _0x89d1be;};return a46_0x15e1();}export async function selectModel(){const _0x2a1f62=a46_0x481c,_0x6096e9=getSelectedModel(),_0x26bfd1=MODELS['map'](_0x1f432e=>({'name':''+_0x1f432e['name']+(_0x1f432e['xp']?'\x20('+_0x1f432e['xp']+_0x2a1f62(0x8a):'')+(_0x1f432e['id']===_0x6096e9?'\x20*':''),'value':_0x1f432e['id'],'description':_0x1f432e[_0x2a1f62(0x8d)]})),_0x4a05e6=await select({'message':_0x2a1f62(0x8f),'choices':_0x26bfd1,'default':_0x6096e9});return setSelectedModel(_0x4a05e6),_0x4a05e6;}function a46_0x481c(_0x18cec4,_0x106d1d){_0x18cec4=_0x18cec4-0x87;const _0x15e140=a46_0x15e1();let _0x481c07=_0x15e140[_0x18cec4];return _0x481c07;}export{getSelectedModel,setSelectedModel};
package/dist/ui/themes.js CHANGED
@@ -1 +1 @@
1
- const a47_0x408a0f=a47_0x59b7;function a47_0x59b7(_0x15b70b,_0x1ce6bd){_0x15b70b=_0x15b70b-0x7e;const _0x3838e8=a47_0x3838();let _0x59b702=_0x3838e8[_0x15b70b];return _0x59b702;}(function(_0x1ec573,_0x54a35c){const _0x38602c=a47_0x59b7,_0x29209b=_0x1ec573();while(!![]){try{const _0x25c671=parseInt(_0x38602c(0x8f))/0x1*(-parseInt(_0x38602c(0x7e))/0x2)+parseInt(_0x38602c(0x80))/0x3*(parseInt(_0x38602c(0x8e))/0x4)+parseInt(_0x38602c(0xa6))/0x5+parseInt(_0x38602c(0x94))/0x6*(-parseInt(_0x38602c(0x8b))/0x7)+parseInt(_0x38602c(0x93))/0x8+parseInt(_0x38602c(0x9f))/0x9+parseInt(_0x38602c(0xa7))/0xa;if(_0x25c671===_0x54a35c)break;else _0x29209b['push'](_0x29209b['shift']());}catch(_0x2dff99){_0x29209b['push'](_0x29209b['shift']());}}}(a47_0x3838,0xd05f8));import a47_0x46a4cb from'chalk';export const THEMES=[{'id':a47_0x408a0f(0xa3),'name':a47_0x408a0f(0xa8),'primary':'#3b82f6','secondary':a47_0x408a0f(0x9c),'tertiary':a47_0x408a0f(0x9e),'quaternary':a47_0x408a0f(0x91)},{'id':a47_0x408a0f(0x9d),'name':'Classic\x20Purple','primary':a47_0x408a0f(0x92),'secondary':a47_0x408a0f(0x8d),'tertiary':a47_0x408a0f(0x83),'quaternary':a47_0x408a0f(0x82)},{'id':'hacker_green','name':a47_0x408a0f(0x87),'primary':'#10b981','secondary':a47_0x408a0f(0x99),'tertiary':a47_0x408a0f(0x95),'quaternary':a47_0x408a0f(0x81)},{'id':a47_0x408a0f(0x9b),'name':a47_0x408a0f(0xab),'primary':a47_0x408a0f(0x98),'secondary':a47_0x408a0f(0x89),'tertiary':a47_0x408a0f(0xaa),'quaternary':a47_0x408a0f(0x96)},{'id':a47_0x408a0f(0x97),'name':a47_0x408a0f(0xa1),'primary':'#ec4899','secondary':'#f472b6','tertiary':a47_0x408a0f(0x86),'quaternary':a47_0x408a0f(0x85)},{'id':a47_0x408a0f(0x9a),'name':'Monochrome\x20Silver','primary':a47_0x408a0f(0x7f),'secondary':a47_0x408a0f(0xa9),'tertiary':a47_0x408a0f(0x90),'quaternary':a47_0x408a0f(0x8c)}];export const DEFAULT_THEME_ID=a47_0x408a0f(0xa3);export function getThemeById(_0x165327){const _0x3175da=a47_0x408a0f;return THEMES[_0x3175da(0x88)](_0x31a4cf=>_0x31a4cf['id']===_0x165327)||THEMES[0x0];}function a47_0x3838(){const _0x58bc80=['#34d399','monochrome','sunset_orange','#60a5fa','classic_purple','#93c5fd','14841yfmvVA','../utils/storage.js','Dracula\x20Pink','bold','woozlit_blue','hex','Select\x20UI\x20Theme','3491945lfpccX','3425500HhAOnw','Woozlit\x20Blue\x20(Default)','#a1a1aa','#fdba74','Sunset\x20Orange','@inquirer/prompts','20bDQAWK','#71717a','21yMOOQX','#047857','#7e22ce','#e9d5ff','primary','#be185d','#fbcfe8','Hacker\x20Green','find','#fb923c','map','3234791WICZZR','#3f3f46','#c084fc','124172mnwCvt','72137SytWIY','#d4d4d8','#2563eb','#a855f7','13610528qwSquu','18EUzzdx','#6ee7b7','#c2410c','dracula_pink','#f97316'];a47_0x3838=function(){return _0x58bc80;};return a47_0x3838();}export function getInquirerTheme(_0x309d0d){const _0x124399=a47_0x408a0f,_0x29a477=getThemeById(_0x309d0d);return{'prefix':{'idle':a47_0x46a4cb['hex'](_0x29a477[_0x124399(0x84)])('?'),'done':a47_0x46a4cb[_0x124399(0xa4)](_0x29a477[_0x124399(0x84)])('✔')},'icon':{'cursor':a47_0x46a4cb[_0x124399(0xa4)](_0x29a477[_0x124399(0x84)])('❯')},'style':{'answer':a47_0x46a4cb[_0x124399(0xa4)](_0x29a477['primary']),'message':_0x97fb8c=>a47_0x46a4cb[_0x124399(0xa2)](_0x97fb8c)}};}export async function selectTheme(){const _0x5230da=a47_0x408a0f,{select:_0x486f8a}=await import(_0x5230da(0xac)),{getTheme:_0x21c0ba,setTheme:_0x244827}=await import(_0x5230da(0xa0)),_0x5dbe67=_0x21c0ba(),_0x3baee0=THEMES[_0x5230da(0x8a)](_0x283dee=>({'name':_0x283dee['id']===_0x5dbe67?_0x283dee['name']+'\x20*':_0x283dee['name'],'value':_0x283dee['id']})),_0x1d176f=await _0x486f8a({'message':_0x5230da(0xa5),'choices':_0x3baee0,'default':_0x5dbe67,'theme':getInquirerTheme(_0x5dbe67)});return _0x244827(_0x1d176f),_0x1d176f;}
1
+ const a47_0x51aff2=a47_0x3763;function a47_0x39fb(){const _0x371f8c=['69588djIEVu','#fb923c','5170120GGWtZG','#7e22ce','8aDRieV','4257nZButU','hacker_green','classic_purple','#047857','#6ee7b7','#fdba74','#3f3f46','Monochrome\x20Silver','Hacker\x20Green','4gKToTk','699771jncKYm','find','primary','765750OOaQRQ','bold','woozlit_blue','#fbcfe8','#f472b6','#60a5fa','#f97316','monochrome','sunset_orange','#2563eb','#a855f7','map','65404XCLxwE','#3b82f6','#93c5fd','#d4d4d8','4qVYQiJ','861363pJplhz','Sunset\x20Orange','dracula_pink','735eEcCMu','#c084fc','#c2410c','#71717a','name','Dracula\x20Pink','54222DTnXVA','hex','../utils/storage.js'];a47_0x39fb=function(){return _0x371f8c;};return a47_0x39fb();}(function(_0x2fe5e4,_0x2fd47a){const _0x1fddc8=a47_0x3763,_0x33cb9d=_0x2fe5e4();while(!![]){try{const _0x255b80=parseInt(_0x1fddc8(0x17b))/0x1+-parseInt(_0x1fddc8(0x17f))/0x2*(-parseInt(_0x1fddc8(0x19b))/0x3)+parseInt(_0x1fddc8(0x19a))/0x4*(-parseInt(_0x1fddc8(0x18e))/0x5)+-parseInt(_0x1fddc8(0x189))/0x6*(parseInt(_0x1fddc8(0x183))/0x7)+parseInt(_0x1fddc8(0x190))/0x8*(-parseInt(_0x1fddc8(0x180))/0x9)+parseInt(_0x1fddc8(0x19e))/0xa+parseInt(_0x1fddc8(0x191))/0xb*(parseInt(_0x1fddc8(0x18c))/0xc);if(_0x255b80===_0x2fd47a)break;else _0x33cb9d['push'](_0x33cb9d['shift']());}catch(_0x2bc94a){_0x33cb9d['push'](_0x33cb9d['shift']());}}}(a47_0x39fb,0xbcfca));import a47_0x2d4b41 from'chalk';export const THEMES=[{'id':'woozlit_blue','name':'Woozlit\x20Blue\x20(Default)','primary':a47_0x51aff2(0x17c),'secondary':a47_0x51aff2(0x1a3),'tertiary':a47_0x51aff2(0x17d),'quaternary':a47_0x51aff2(0x178)},{'id':a47_0x51aff2(0x193),'name':'Classic\x20Purple','primary':a47_0x51aff2(0x179),'secondary':a47_0x51aff2(0x184),'tertiary':'#e9d5ff','quaternary':a47_0x51aff2(0x18f)},{'id':a47_0x51aff2(0x192),'name':a47_0x51aff2(0x199),'primary':'#10b981','secondary':'#34d399','tertiary':a47_0x51aff2(0x195),'quaternary':a47_0x51aff2(0x194)},{'id':a47_0x51aff2(0x177),'name':a47_0x51aff2(0x181),'primary':a47_0x51aff2(0x1a4),'secondary':a47_0x51aff2(0x18d),'tertiary':a47_0x51aff2(0x196),'quaternary':a47_0x51aff2(0x185)},{'id':a47_0x51aff2(0x182),'name':a47_0x51aff2(0x188),'primary':'#ec4899','secondary':a47_0x51aff2(0x1a2),'tertiary':a47_0x51aff2(0x1a1),'quaternary':'#be185d'},{'id':a47_0x51aff2(0x1a5),'name':a47_0x51aff2(0x198),'primary':a47_0x51aff2(0x186),'secondary':'#a1a1aa','tertiary':a47_0x51aff2(0x17e),'quaternary':a47_0x51aff2(0x197)}];export const DEFAULT_THEME_ID=a47_0x51aff2(0x1a0);export function getThemeById(_0x491c7d){const _0x121cd1=a47_0x51aff2;return THEMES[_0x121cd1(0x19c)](_0x2e1b56=>_0x2e1b56['id']===_0x491c7d)||THEMES[0x0];}export function getInquirerTheme(_0xd1d377){const _0x2f2b3f=a47_0x51aff2,_0x5082a8=getThemeById(_0xd1d377);return{'prefix':{'idle':a47_0x2d4b41[_0x2f2b3f(0x18a)](_0x5082a8['primary'])('?'),'done':a47_0x2d4b41['hex'](_0x5082a8['primary'])('✔')},'icon':{'cursor':a47_0x2d4b41['hex'](_0x5082a8[_0x2f2b3f(0x19d)])('❯')},'style':{'answer':a47_0x2d4b41[_0x2f2b3f(0x18a)](_0x5082a8['primary']),'message':_0x38bfcc=>a47_0x2d4b41[_0x2f2b3f(0x19f)](_0x38bfcc)}};}function a47_0x3763(_0xd1f192,_0x31674f){_0xd1f192=_0xd1f192-0x177;const _0x39fb90=a47_0x39fb();let _0x3763ca=_0x39fb90[_0xd1f192];return _0x3763ca;}export async function selectTheme(){const _0x1d3307=a47_0x51aff2,{select:_0xe044dc}=await import('@inquirer/prompts'),{getTheme:_0x209dc7,setTheme:_0x1a3c6d}=await import(_0x1d3307(0x18b)),_0x2329a2=_0x209dc7(),_0x10deb7=THEMES[_0x1d3307(0x17a)](_0xa55ce6=>({'name':_0xa55ce6['id']===_0x2329a2?_0xa55ce6[_0x1d3307(0x187)]+'\x20*':_0xa55ce6[_0x1d3307(0x187)],'value':_0xa55ce6['id']})),_0x55341b=await _0xe044dc({'message':'Select\x20UI\x20Theme','choices':_0x10deb7,'default':_0x2329a2,'theme':getInquirerTheme(_0x2329a2)});return _0x1a3c6d(_0x55341b),_0x55341b;}
package/dist/utils/api.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5e8456,_0x2a51eb){const _0x4091cb=a48_0x1a25,_0x2c33c0=_0x5e8456();while(!![]){try{const _0x39e3eb=parseInt(_0x4091cb(0xc1))/0x1+parseInt(_0x4091cb(0xbe))/0x2+parseInt(_0x4091cb(0xcb))/0x3+parseInt(_0x4091cb(0xb5))/0x4+-parseInt(_0x4091cb(0xf6))/0x5*(parseInt(_0x4091cb(0xbb))/0x6)+-parseInt(_0x4091cb(0xd0))/0x7+-parseInt(_0x4091cb(0xfa))/0x8;if(_0x39e3eb===_0x2a51eb)break;else _0x2c33c0['push'](_0x2c33c0['shift']());}catch(_0x19102d){_0x2c33c0['push'](_0x2c33c0['shift']());}}}(a48_0x212c,0xe8835));import{getApiUrl}from'../config/settings.js';import{getToken,getUser}from'./storage.js';import a48_0x361cbc from'crypto';import a48_0x29fb16 from'fs';import a48_0x136623 from'path';import{dirname}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getDecryptedSecret(){const _0x430e8d=a48_0x1a25;try{const _0xa89374=[a48_0x136623['join'](__dirname,_0x430e8d(0xc9)),a48_0x136623[_0x430e8d(0xba)](__dirname,_0x430e8d(0xd5)),a48_0x136623[_0x430e8d(0xba)](__dirname,_0x430e8d(0xe9)),a48_0x136623[_0x430e8d(0xba)](process[_0x430e8d(0xc7)](),'env.woozlit')];let _0xa788c3='';for(const _0x52b196 of _0xa89374){if(a48_0x29fb16[_0x430e8d(0xcc)](_0x52b196)){_0xa788c3=a48_0x29fb16[_0x430e8d(0xf9)](_0x52b196,'utf8')[_0x430e8d(0xce)]();break;}}if(!_0xa788c3)return reconstructSecret();const [_0x20ccb3,_0x58e6b9]=_0xa788c3['split'](':');if(!_0x20ccb3||!_0x58e6b9)return reconstructSecret();const _0xb37a38=Buffer[_0x430e8d(0xf4)](_0x20ccb3,_0x430e8d(0xc4)),_0x5f1bd7=a48_0x361cbc[_0x430e8d(0xc8)](_0x430e8d(0xe1))[_0x430e8d(0xb9)](_0x430e8d(0xb8))[_0x430e8d(0xe7)](),_0x1752b9=a48_0x361cbc[_0x430e8d(0xfb)]('aes-256-cbc',_0x5f1bd7,_0xb37a38);let _0xcfc782=_0x1752b9['update'](_0x58e6b9,_0x430e8d(0xc4),'utf8');return _0xcfc782+=_0x1752b9[_0x430e8d(0xdf)](_0x430e8d(0xeb)),_0xcfc782;}catch(_0x52b281){return reconstructSecret();}}function reconstructSecret(){const _0x5759d4=a48_0x1a25,_0x51a023=[0x77,0x7a,0x5f,0x63,0x6c,0x69,0x5f,0x70,0x72,0x6f,0x64,0x5f][_0x5759d4(0xb4)](_0x1cff59=>String['fromCharCode'](_0x1cff59))[_0x5759d4(0xba)](''),_0x965491=String['fromCharCode'](0x73,0x33,0x63,0x72,0x33,0x74,0x5f,0x78,0x39,0x32,0x5f),_0x55b5e0=(0x8*0x186a0+0x26610+0x190+0x32+0x6)['toString'](0x10)+'e5c'+(0x4*0xa+0x3)[_0x5759d4(0xd6)](0x10)+_0x5759d4(0xea),_0x5aad92=['s','e','c','u','r','e','_','h','a','s','h'][_0x5759d4(0xba)]('');return _0x51a023+_0x965491+_0x5759d4(0xbc)+_0x55b5e0[_0x5759d4(0xb7)](0x5)+_0x5aad92;}function simpleHash(_0x3e860c){const _0x1dbe0e=a48_0x1a25;let _0x3ba7b8=0x811c9dc5;for(let _0x477408=0x0;_0x477408<_0x3e860c['length'];_0x477408++){_0x3ba7b8^=_0x3e860c[_0x1dbe0e(0xf1)](_0x477408),_0x3ba7b8=Math[_0x1dbe0e(0xf0)](_0x3ba7b8,0x1000193);}const _0x3e4f9f=(_0x3ba7b8>>>0x0)[_0x1dbe0e(0xd6)](0x10)['padStart'](0x8,'0');let _0x31078a=0x0;for(let _0x48f3ed=0x0;_0x48f3ed<_0x3e860c[_0x1dbe0e(0xc2)];_0x48f3ed++){_0x31078a=(_0x31078a<<0x5)-_0x31078a+_0x3e860c['charCodeAt'](_0x48f3ed)|0x0;}const _0xbce22c=(_0x31078a>>>0x0)['toString'](0x10)[_0x1dbe0e(0xd3)](0x8,'0');return''+_0x3e4f9f+_0xbce22c;}function a48_0x212c(){const _0x1dff87=['text','API\x20error:\x20','platform','woozlit:','split','digest','cli-','../env.woozlit','3a2_','utf8','get','R9fC2XWkQeY1B6Z0aM3S7UoI5dVJH8NpbKTL4GmEAr','arch','No\x20response\x20body','imul','charCodeAt','\x20seconds.','Bearer\x20','from','resetIn','5lTVNSw','POST','error','readFileSync','3737296aXoKZX','createDecipheriv','map','1945884xAyQqi','/api/auth/verify','substring','woozlit_internal_secure_key_2026_v2_!!!','update','join','7896090dNQicg','8f7d6','\x20-\x20','2116826dqTtwC','status','version','1715048LTJxXZ','length','X-RateLimit-Reset','hex','json','now','cwd','createHash','../../env.woozlit','read','3596469FIBpQz','existsSync','Rate\x20limit\x20exceeded.\x20Try\x20again\x20in\x20','trim','headers','12062435okPRtW','/api/user/usage','slice','padStart','https://woozlit.com','../../../env.woozlit','toString','1.1.0','isRateLimit','/api/chat','endsWith','body','catch','stringify','startsWith','final','random','sha256'];a48_0x212c=function(){return _0x1dff87;};return a48_0x212c();}function a48_0x1a25(_0x276c40,_0x8272ab){_0x276c40=_0x276c40-0xb4;const _0x212c70=a48_0x212c();let _0x1a25a5=_0x212c70[_0x276c40];return _0x1a25a5;}function createRequestSignature(){const _0x4be1bf=a48_0x1a25,_0x2fbf21=Date[_0x4be1bf(0xc6)]()[_0x4be1bf(0xd6)](),_0x3089a5=_0x4be1bf(0xe5)+_0x2fbf21+':chat',_0x5d84b2=_0x4be1bf(0xed),_0x1520f1=simpleHash(_0x3089a5+_0x5d84b2);return{'signature':_0x1520f1,'timestamp':_0x2fbf21};}export async function sendChatMessage(_0x475f81,_0x1e0bc8,_0x40e27e,_0x3f7c07){const _0x35840d=a48_0x1a25,_0x168b5c=getToken(),_0x25954f=getApiUrl(),{userId:_0x548d4a}=getUser();if(!_0x168b5c||!_0x548d4a)throw new Error('Not\x20authenticated.\x20Please\x20run\x20\x27woozlit\x20login\x27\x20first.');const _0x19907c=_0x35840d(0xe8)+Date[_0x35840d(0xc6)]()+'-'+Math[_0x35840d(0xe0)]()[_0x35840d(0xd6)](0x24)[_0x35840d(0xb7)](0x2,0x9),_0x3e4009=process[_0x35840d(0xe4)]+'-'+process[_0x35840d(0xee)]+'-'+process[_0x35840d(0xc0)],_0x6d0407=getDecryptedSecret(),{signature:_0x56b836,timestamp:_0x5809b9}=createRequestSignature(),_0xb2f996=await fetch(_0x25954f+_0x35840d(0xd9),{'method':_0x35840d(0xf7),'headers':{'Content-Type':'application/json','X-Woozlit-CLI':'true','X-Woozlit-CLI-Version':_0x35840d(0xd7),'X-Request-ID':_0x19907c,'X-Device-Fingerprint':_0x3e4009,'Authorization':_0x35840d(0xf3)+_0x168b5c,'X-Woozlit-Token':_0x35840d(0xf3)+_0x168b5c,'Origin':_0x35840d(0xd4),'X-Woozlit-App-Secret':_0x6d0407,'X-Request-Signature':_0x56b836,'X-Request-Timestamp':_0x5809b9},'body':JSON[_0x35840d(0xdd)]({'model':_0x475f81,'messages':_0x1e0bc8,'stream':!![],'userId':_0x548d4a}),'signal':_0x3f7c07});if(!_0xb2f996['ok']){if(_0xb2f996[_0x35840d(0xbf)]===0x1ad){const _0x3eeb67=_0xb2f996[_0x35840d(0xcf)][_0x35840d(0xec)](_0x35840d(0xc3)),_0x1c6083=_0x3eeb67?parseInt(_0x3eeb67):0x3c,_0x5c25ae=await _0xb2f996[_0x35840d(0xc5)]()[_0x35840d(0xdc)](()=>({})),_0x568e5d=new Error(_0x5c25ae[_0x35840d(0xf8)]||_0x35840d(0xcd)+_0x1c6083+_0x35840d(0xf2));_0x568e5d[_0x35840d(0xbf)]=0x1ad,_0x568e5d[_0x35840d(0xf5)]=_0x1c6083,_0x568e5d[_0x35840d(0xd8)]=!![];throw _0x568e5d;}const _0x2219f2=await _0xb2f996[_0x35840d(0xe2)]();throw new Error(_0x35840d(0xe3)+_0xb2f996['status']+_0x35840d(0xbd)+_0x2219f2);}if(!_0xb2f996[_0x35840d(0xdb)])throw new Error(_0x35840d(0xef));const _0x26ed2e=_0xb2f996[_0x35840d(0xdb)]['getReader'](),_0x1dca00=new TextDecoder();let _0x263c08='';const _0x22a12f=[];while(!![]){const {done:_0x785950,value:_0x5c994c}=await _0x26ed2e[_0x35840d(0xca)]();if(_0x785950)break;const _0xc79a26=_0x1dca00['decode'](_0x5c994c,{'stream':!![]});if(_0xc79a26['includes']('0:')){const _0x1d547a=_0xc79a26[_0x35840d(0xe6)]('\x0a');for(const _0x896f68 of _0x1d547a){if(_0x896f68[_0x35840d(0xde)]('0:')){const _0x3d1281=_0x896f68[_0x35840d(0xd2)](0x2)[_0x35840d(0xce)]();if(_0x3d1281[_0x35840d(0xde)]('\x22')&&_0x3d1281[_0x35840d(0xda)]('\x22'))try{const _0xb6e765=JSON['parse'](_0x3d1281);_0x263c08+=_0xb6e765;if(_0x40e27e)_0x40e27e(_0xb6e765);}catch{}}}}else{_0x263c08+=_0xc79a26;if(_0x40e27e)_0x40e27e(_0xc79a26);}}return{'content':_0x263c08,'toolCalls':_0x22a12f};}export async function checkAuth(){const _0x14f7a5=a48_0x1a25,_0x2ac5c3=getToken();if(!_0x2ac5c3)return![];try{const _0x1b19bf=getApiUrl(),_0x5bd707=await fetch(_0x1b19bf+_0x14f7a5(0xb6),{'headers':{'Authorization':_0x14f7a5(0xf3)+_0x2ac5c3}});return _0x5bd707['ok'];}catch{return![];}}export async function getUserUsage(){const _0x268448=a48_0x1a25,_0x2f8eab=getToken();if(!_0x2f8eab)return null;try{const _0x368033=getApiUrl(),_0xfd8d47=await fetch(_0x368033+_0x268448(0xd1),{'headers':{'Authorization':'Bearer\x20'+_0x2f8eab}});if(!_0xfd8d47['ok'])return null;return await _0xfd8d47['json']();}catch(_0x1b941c){return null;}}
1
+ function a48_0x11c7(){const _0x117c8d=['1oNghVI','createDecipheriv','imul','startsWith','24728610YIuajM','https://woozlit.com','cli-','charCodeAt','Not\x20authenticated.\x20Please\x20run\x20\x27woozlit\x20login\x27\x20first.','toString','R9fC2XWkQeY1B6Z0aM3S7UoI5dVJH8NpbKTL4GmEAr','split','6713562fJbAEi','map','update','resetIn','from','\x20seconds.','cwd','isRateLimit','status','../../env.woozlit','length','slice','fromCharCode','../env.woozlit','catch','3121377PGvgjR','parse','8f7d6','text','getReader','padStart','readFileSync','946520IkGzvv','947166QDcTMC','headers','X-RateLimit-Reset','digest','now','../../../env.woozlit','sha256','Bearer\x20','e5c','API\x20error:\x20','1218778TwPztP','hex','utf8','/api/auth/verify','16tQwvwB','random',':chat','1.1.0','/api/chat','substring','stringify','get','9HKvyho','1098296tEymnR','trim','POST','woozlit_internal_secure_key_2026_v2_!!!','application/json','final','arch','version','/api/user/usage','createHash','body','existsSync','json','join','No\x20response\x20body','\x20-\x20','includes','env.woozlit','decode','error','platform'];a48_0x11c7=function(){return _0x117c8d;};return a48_0x11c7();}function a48_0x379b(_0x331823,_0x566dcc){_0x331823=_0x331823-0x107;const _0x11c76b=a48_0x11c7();let _0x379b09=_0x11c76b[_0x331823];return _0x379b09;}(function(_0x4b5752,_0x25dd85){const _0x5d6fe3=a48_0x379b,_0x422e62=_0x4b5752();while(!![]){try{const _0x1d9d1e=-parseInt(_0x5d6fe3(0x10b))/0x1*(-parseInt(_0x5d6fe3(0x138))/0x2)+parseInt(_0x5d6fe3(0x12e))/0x3+parseInt(_0x5d6fe3(0x13c))/0x4*(parseInt(_0x5d6fe3(0x12d))/0x5)+parseInt(_0x5d6fe3(0x117))/0x6+parseInt(_0x5d6fe3(0x126))/0x7+-parseInt(_0x5d6fe3(0x145))/0x8+parseInt(_0x5d6fe3(0x144))/0x9*(-parseInt(_0x5d6fe3(0x10f))/0xa);if(_0x1d9d1e===_0x25dd85)break;else _0x422e62['push'](_0x422e62['shift']());}catch(_0x175af1){_0x422e62['push'](_0x422e62['shift']());}}}(a48_0x11c7,0x9b859));import{getApiUrl}from'../config/settings.js';import{getToken,getUser}from'./storage.js';import a48_0x288740 from'crypto';import a48_0x1829b0 from'fs';import a48_0x201f2f from'path';import{dirname}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getDecryptedSecret(){const _0x5b4ef9=a48_0x379b;try{const _0x2a5701=[a48_0x201f2f[_0x5b4ef9(0x152)](__dirname,_0x5b4ef9(0x120)),a48_0x201f2f['join'](__dirname,_0x5b4ef9(0x133)),a48_0x201f2f['join'](__dirname,_0x5b4ef9(0x124)),a48_0x201f2f['join'](process[_0x5b4ef9(0x11d)](),_0x5b4ef9(0x107))];let _0x45798e='';for(const _0x1ecf46 of _0x2a5701){if(a48_0x1829b0[_0x5b4ef9(0x150)](_0x1ecf46)){_0x45798e=a48_0x1829b0[_0x5b4ef9(0x12c)](_0x1ecf46,'utf8')[_0x5b4ef9(0x146)]();break;}}if(!_0x45798e)return reconstructSecret();const [_0x3517da,_0x5f370e]=_0x45798e[_0x5b4ef9(0x116)](':');if(!_0x3517da||!_0x5f370e)return reconstructSecret();const _0x4056c6=Buffer[_0x5b4ef9(0x11b)](_0x3517da,_0x5b4ef9(0x139)),_0x12ae6e=a48_0x288740[_0x5b4ef9(0x14e)](_0x5b4ef9(0x134))['update'](_0x5b4ef9(0x148))[_0x5b4ef9(0x131)](),_0x178e48=a48_0x288740[_0x5b4ef9(0x10c)]('aes-256-cbc',_0x12ae6e,_0x4056c6);let _0x19938c=_0x178e48[_0x5b4ef9(0x119)](_0x5f370e,_0x5b4ef9(0x139),'utf8');return _0x19938c+=_0x178e48[_0x5b4ef9(0x14a)](_0x5b4ef9(0x13a)),_0x19938c;}catch(_0x3ea0f6){return reconstructSecret();}}function reconstructSecret(){const _0x3148b7=a48_0x379b,_0xe574e4=[0x77,0x7a,0x5f,0x63,0x6c,0x69,0x5f,0x70,0x72,0x6f,0x64,0x5f][_0x3148b7(0x118)](_0x236248=>String[_0x3148b7(0x123)](_0x236248))[_0x3148b7(0x152)](''),_0x32dc3e=String[_0x3148b7(0x123)](0x73,0x33,0x63,0x72,0x33,0x74,0x5f,0x78,0x39,0x32,0x5f),_0x5b6a6f=(0x8*0x186a0+0x26610+0x190+0x32+0x6)['toString'](0x10)+_0x3148b7(0x136)+(0x4*0xa+0x3)[_0x3148b7(0x114)](0x10)+'3a2_',_0x4a3120=['s','e','c','u','r','e','_','h','a','s','h']['join']('');return _0xe574e4+_0x32dc3e+_0x3148b7(0x128)+_0x5b6a6f[_0x3148b7(0x141)](0x5)+_0x4a3120;}function simpleHash(_0x418979){const _0x9184b4=a48_0x379b;let _0x3d7c22=0x811c9dc5;for(let _0x30c7ee=0x0;_0x30c7ee<_0x418979['length'];_0x30c7ee++){_0x3d7c22^=_0x418979[_0x9184b4(0x112)](_0x30c7ee),_0x3d7c22=Math[_0x9184b4(0x10d)](_0x3d7c22,0x1000193);}const _0x170524=(_0x3d7c22>>>0x0)[_0x9184b4(0x114)](0x10)['padStart'](0x8,'0');let _0x526f3d=0x0;for(let _0x36b0ad=0x0;_0x36b0ad<_0x418979[_0x9184b4(0x121)];_0x36b0ad++){_0x526f3d=(_0x526f3d<<0x5)-_0x526f3d+_0x418979[_0x9184b4(0x112)](_0x36b0ad)|0x0;}const _0xd04e75=(_0x526f3d>>>0x0)['toString'](0x10)[_0x9184b4(0x12b)](0x8,'0');return''+_0x170524+_0xd04e75;}function createRequestSignature(){const _0x2a6145=a48_0x379b,_0x4dd40c=Date['now']()['toString'](),_0x1f6aa1='woozlit:'+_0x4dd40c+_0x2a6145(0x13e),_0x361633=_0x2a6145(0x115),_0xd78033=simpleHash(_0x1f6aa1+_0x361633);return{'signature':_0xd78033,'timestamp':_0x4dd40c};}export async function sendChatMessage(_0x199cb7,_0x44d15f,_0xe0e919,_0x50e3ba){const _0xe872bf=a48_0x379b,_0x2d050f=getToken(),_0x5eda98=getApiUrl(),{userId:_0x1c2e9a}=getUser();if(!_0x2d050f||!_0x1c2e9a)throw new Error(_0xe872bf(0x113));const _0x200787=_0xe872bf(0x111)+Date[_0xe872bf(0x132)]()+'-'+Math[_0xe872bf(0x13d)]()[_0xe872bf(0x114)](0x24)['substring'](0x2,0x9),_0x47a4c5=process[_0xe872bf(0x10a)]+'-'+process[_0xe872bf(0x14b)]+'-'+process[_0xe872bf(0x14c)],_0x104ea1=getDecryptedSecret(),{signature:_0xdc46c6,timestamp:_0x15dc65}=createRequestSignature(),_0x210438=await fetch(_0x5eda98+_0xe872bf(0x140),{'method':_0xe872bf(0x147),'headers':{'Content-Type':_0xe872bf(0x149),'X-Woozlit-CLI':'true','X-Woozlit-CLI-Version':_0xe872bf(0x13f),'X-Request-ID':_0x200787,'X-Device-Fingerprint':_0x47a4c5,'Authorization':_0xe872bf(0x135)+_0x2d050f,'X-Woozlit-Token':_0xe872bf(0x135)+_0x2d050f,'Origin':_0xe872bf(0x110),'X-Woozlit-App-Secret':_0x104ea1,'X-Request-Signature':_0xdc46c6,'X-Request-Timestamp':_0x15dc65},'body':JSON[_0xe872bf(0x142)]({'model':_0x199cb7,'messages':_0x44d15f,'stream':!![],'userId':_0x1c2e9a}),'signal':_0x50e3ba});if(!_0x210438['ok']){if(_0x210438[_0xe872bf(0x11f)]===0x1ad){const _0x20ef8a=_0x210438[_0xe872bf(0x12f)][_0xe872bf(0x143)](_0xe872bf(0x130)),_0x5ecb9b=_0x20ef8a?parseInt(_0x20ef8a):0x3c,_0x3e2444=await _0x210438[_0xe872bf(0x151)]()[_0xe872bf(0x125)](()=>({})),_0x15452a=new Error(_0x3e2444[_0xe872bf(0x109)]||'Rate\x20limit\x20exceeded.\x20Try\x20again\x20in\x20'+_0x5ecb9b+_0xe872bf(0x11c));_0x15452a['status']=0x1ad,_0x15452a[_0xe872bf(0x11a)]=_0x5ecb9b,_0x15452a[_0xe872bf(0x11e)]=!![];throw _0x15452a;}const _0x58e875=await _0x210438[_0xe872bf(0x129)]();throw new Error(_0xe872bf(0x137)+_0x210438[_0xe872bf(0x11f)]+_0xe872bf(0x154)+_0x58e875);}if(!_0x210438[_0xe872bf(0x14f)])throw new Error(_0xe872bf(0x153));const _0x5ea84f=_0x210438[_0xe872bf(0x14f)][_0xe872bf(0x12a)](),_0x4239d0=new TextDecoder();let _0x5e8a53='';const _0x12dbc7=[];while(!![]){const {done:_0x1b9db0,value:_0x1aca65}=await _0x5ea84f['read']();if(_0x1b9db0)break;const _0x5c8563=_0x4239d0[_0xe872bf(0x108)](_0x1aca65,{'stream':!![]});if(_0x5c8563[_0xe872bf(0x155)]('0:')){const _0x390b87=_0x5c8563[_0xe872bf(0x116)]('\x0a');for(const _0x5d5f37 of _0x390b87){if(_0x5d5f37[_0xe872bf(0x10e)]('0:')){const _0x2b6816=_0x5d5f37[_0xe872bf(0x122)](0x2)['trim']();if(_0x2b6816['startsWith']('\x22')&&_0x2b6816['endsWith']('\x22'))try{const _0x1616ed=JSON[_0xe872bf(0x127)](_0x2b6816);_0x5e8a53+=_0x1616ed;if(_0xe0e919)_0xe0e919(_0x1616ed);}catch{}}}}else{_0x5e8a53+=_0x5c8563;if(_0xe0e919)_0xe0e919(_0x5c8563);}}return{'content':_0x5e8a53,'toolCalls':_0x12dbc7};}export async function checkAuth(){const _0x19afaa=a48_0x379b,_0x125ddf=getToken();if(!_0x125ddf)return![];try{const _0x57e876=getApiUrl(),_0x504892=await fetch(_0x57e876+_0x19afaa(0x13b),{'headers':{'Authorization':_0x19afaa(0x135)+_0x125ddf}});return _0x504892['ok'];}catch{return![];}}export async function getUserUsage(){const _0x42af10=a48_0x379b,_0x5da8c4=getToken();if(!_0x5da8c4)return null;try{const _0x86211e=getApiUrl(),_0x463a2d=await fetch(_0x86211e+_0x42af10(0x14d),{'headers':{'Authorization':_0x42af10(0x135)+_0x5da8c4}});if(!_0x463a2d['ok'])return null;return await _0x463a2d[_0x42af10(0x151)]();}catch(_0x5df8cc){return null;}}
@@ -1 +1 @@
1
- const a49_0x4240fb=a49_0x4ec9;(function(_0x3132d3,_0x4dd323){const _0x5f16b5=a49_0x4ec9,_0x35f015=_0x3132d3();while(!![]){try{const _0x27237b=-parseInt(_0x5f16b5(0xd0))/0x1*(parseInt(_0x5f16b5(0xe1))/0x2)+-parseInt(_0x5f16b5(0xe4))/0x3+-parseInt(_0x5f16b5(0xd1))/0x4+-parseInt(_0x5f16b5(0xe3))/0x5+-parseInt(_0x5f16b5(0xd6))/0x6+-parseInt(_0x5f16b5(0xdf))/0x7+parseInt(_0x5f16b5(0xd5))/0x8;if(_0x27237b===_0x4dd323)break;else _0x35f015['push'](_0x35f015['shift']());}catch(_0x2053f3){_0x35f015['push'](_0x35f015['shift']());}}}(a49_0xa641,0x5baf9));import a49_0xa267c7 from'conf';const config=new a49_0xa267c7({'projectName':a49_0x4240fb(0xd9),'defaults':{'sessions':{}}});export function saveChatSession(_0x23fee6,_0x3c62ae){const _0x2955bc=a49_0x4240fb,_0x1a12c0=config[_0x2955bc(0xd7)](_0x2955bc(0xdc))||{};let _0x1d177c=_0x2955bc(0xd8);const _0x17858c=_0x3c62ae[_0x2955bc(0xe0)](_0xa588fa=>_0xa588fa['role']===_0x2955bc(0xcd));_0x17858c&&(_0x1d177c=_0x17858c[_0x2955bc(0xdd)][_0x2955bc(0xd3)](0x0,0x32)[_0x2955bc(0xdb)](/\\n/g,'\x20')+(_0x17858c['content'][_0x2955bc(0xd2)]>0x32?_0x2955bc(0xda):''));const _0x3adadb={'id':_0x23fee6,'updatedAt':Date[_0x2955bc(0xd4)](),'title':_0x1d177c,'messages':_0x3c62ae};return _0x1a12c0[_0x23fee6]=_0x3adadb,config[_0x2955bc(0xe2)](_0x2955bc(0xdc),_0x1a12c0),_0x3adadb;}function a49_0xa641(){const _0x48203e=['woozlit-cli-chats','...','replace','sessions','content','updatedAt','2118494BrudMp','find','1040042dRNJPM','set','2717190geqHWi','239499fXobsj','user','sort','values','1powsYd','648884KcMYAs','length','slice','now','18406056kIPUCY','1902342OHCIGU','get','New\x20Chat'];a49_0xa641=function(){return _0x48203e;};return a49_0xa641();}export function getChatSessions(){const _0x5b1669=a49_0x4240fb,_0x254f8a=config['get'](_0x5b1669(0xdc))||{};return Object[_0x5b1669(0xcf)](_0x254f8a)[_0x5b1669(0xce)]((_0x3a9c55,_0x2ba05b)=>_0x2ba05b['updatedAt']-_0x3a9c55[_0x5b1669(0xde)]);}export function getChatSession(_0x3c25f1){const _0x4414c1=a49_0x4240fb,_0x2063c0=config[_0x4414c1(0xd7)](_0x4414c1(0xdc))||{};return _0x2063c0[_0x3c25f1];}function a49_0x4ec9(_0x45e5de,_0x3fd516){_0x45e5de=_0x45e5de-0xcd;const _0xa64122=a49_0xa641();let _0x4ec912=_0xa64122[_0x45e5de];return _0x4ec912;}export function deleteChatSession(_0x599820){const _0x270e4c=a49_0x4240fb,_0x501c20=config['get']('sessions')||{};_0x501c20[_0x599820]&&(delete _0x501c20[_0x599820],config[_0x270e4c(0xe2)](_0x270e4c(0xdc),_0x501c20));}export function clearAllChatSessions(){config['set']('sessions',{});}
1
+ const a49_0x3ae4aa=a49_0x13f4;(function(_0x3b834c,_0x4846f7){const _0x339422=a49_0x13f4,_0x388bcb=_0x3b834c();while(!![]){try{const _0x2b8750=parseInt(_0x339422(0x8e))/0x1*(-parseInt(_0x339422(0x89))/0x2)+-parseInt(_0x339422(0x7b))/0x3+parseInt(_0x339422(0x7a))/0x4+-parseInt(_0x339422(0x7d))/0x5+parseInt(_0x339422(0x80))/0x6+parseInt(_0x339422(0x86))/0x7*(parseInt(_0x339422(0x79))/0x8)+parseInt(_0x339422(0x81))/0x9;if(_0x2b8750===_0x4846f7)break;else _0x388bcb['push'](_0x388bcb['shift']());}catch(_0x42634a){_0x388bcb['push'](_0x388bcb['shift']());}}}(a49_0x1e0c,0x72cc2));import a49_0x12504d from'conf';const config=new a49_0x12504d({'projectName':a49_0x3ae4aa(0x83),'defaults':{'sessions':{}}});export function saveChatSession(_0x4641eb,_0x299343){const _0x5f4756=a49_0x3ae4aa,_0x4c7372=config[_0x5f4756(0x88)](_0x5f4756(0x78))||{};let _0x2ea449=_0x5f4756(0x8d);const _0x55f5b4=_0x299343[_0x5f4756(0x7e)](_0x119bfb=>_0x119bfb['role']===_0x5f4756(0x7c));_0x55f5b4&&(_0x2ea449=_0x55f5b4[_0x5f4756(0x85)][_0x5f4756(0x77)](0x0,0x32)[_0x5f4756(0x8c)](/\\n/g,'\x20')+(_0x55f5b4[_0x5f4756(0x85)][_0x5f4756(0x87)]>0x32?_0x5f4756(0x84):''));const _0x2dacb3={'id':_0x4641eb,'updatedAt':Date['now'](),'title':_0x2ea449,'messages':_0x299343};return _0x4c7372[_0x4641eb]=_0x2dacb3,config[_0x5f4756(0x8b)](_0x5f4756(0x78),_0x4c7372),_0x2dacb3;}export function getChatSessions(){const _0x4bda13=a49_0x3ae4aa,_0x3a8287=config[_0x4bda13(0x88)](_0x4bda13(0x78))||{};return Object[_0x4bda13(0x8a)](_0x3a8287)[_0x4bda13(0x82)]((_0x49828d,_0xa504c6)=>_0xa504c6['updatedAt']-_0x49828d[_0x4bda13(0x7f)]);}export function getChatSession(_0x3dca09){const _0x3333b7=a49_0x3ae4aa,_0x272015=config[_0x3333b7(0x88)](_0x3333b7(0x78))||{};return _0x272015[_0x3dca09];}function a49_0x1e0c(){const _0x3484b9=['find','updatedAt','3731526WYnpIY','656190pkOAxv','sort','woozlit-cli-chats','...','content','100184UiOzuQ','length','get','4eQRMeW','values','set','replace','New\x20Chat','118808BjenZo','slice','sessions','128TFuvwQ','399276dDaiuI','133746rsyIwX','user','1356170PpbIkq'];a49_0x1e0c=function(){return _0x3484b9;};return a49_0x1e0c();}export function deleteChatSession(_0x30ae34){const _0x365a3a=a49_0x3ae4aa,_0x3fb321=config[_0x365a3a(0x88)](_0x365a3a(0x78))||{};_0x3fb321[_0x30ae34]&&(delete _0x3fb321[_0x30ae34],config[_0x365a3a(0x8b)](_0x365a3a(0x78),_0x3fb321));}function a49_0x13f4(_0x1ba99e,_0x20d483){_0x1ba99e=_0x1ba99e-0x77;const _0x1e0c86=a49_0x1e0c();let _0x13f458=_0x1e0c86[_0x1ba99e];return _0x13f458;}export function clearAllChatSessions(){const _0x5675e1=a49_0x3ae4aa;config[_0x5675e1(0x8b)](_0x5675e1(0x78),{});}
@@ -1 +1 @@
1
- const a50_0xe0ede5=a50_0x517e;(function(_0x37aa3e,_0x4a1384){const _0x881cf4=a50_0x517e,_0x8122c7=_0x37aa3e();while(!![]){try{const _0x1155de=parseInt(_0x881cf4(0x199))/0x1*(-parseInt(_0x881cf4(0x19f))/0x2)+-parseInt(_0x881cf4(0x18d))/0x3+parseInt(_0x881cf4(0x191))/0x4+parseInt(_0x881cf4(0x19b))/0x5+parseInt(_0x881cf4(0x192))/0x6+parseInt(_0x881cf4(0x19c))/0x7+-parseInt(_0x881cf4(0x19d))/0x8*(-parseInt(_0x881cf4(0x18e))/0x9);if(_0x1155de===_0x4a1384)break;else _0x8122c7['push'](_0x8122c7['shift']());}catch(_0x46b423){_0x8122c7['push'](_0x8122c7['shift']());}}}(a50_0x599a,0x6f49a));import a50_0x41671b from'conf';const WEEK_MS=0x7*0x18*0x3c*0x3c*0x3e8,config=new a50_0x41671b({'projectName':a50_0xe0ede5(0x194),'defaults':{'entries':[],'lastCleanup':Date['now']()}});function cleanup(){const _0x5ac2b6=a50_0xe0ede5,_0x1f3737=Date[_0x5ac2b6(0x193)](),_0x4482af=config[_0x5ac2b6(0x190)](_0x5ac2b6(0x18f));if(_0x1f3737-_0x4482af<0x18*0x3c*0x3c*0x3e8)return;const _0x84913f=config['get'](_0x5ac2b6(0x19a)),_0x573fee=_0x84913f['filter'](_0xc8d1ee=>_0x1f3737-_0xc8d1ee[_0x5ac2b6(0x198)]<WEEK_MS);config[_0x5ac2b6(0x197)](_0x5ac2b6(0x19a),_0x573fee),config[_0x5ac2b6(0x197)](_0x5ac2b6(0x18f),_0x1f3737);}function a50_0x517e(_0x1825d1,_0x230967){_0x1825d1=_0x1825d1-0x18d;const _0x599ae6=a50_0x599a();let _0x517ef7=_0x599ae6[_0x1825d1];return _0x517ef7;}function a50_0x599a(){const _0x560cb9=['push','shift','set','timestamp','1aQfwgA','entries','2669310YNfQkI','1936158vmEUCM','4169336diCkVX','length','1140882kSckFj','2355288kiDUFE','9hVzfhg','lastCleanup','get','876464DshIDs','1563792woGNkm','now','woozlit-cli-history'];a50_0x599a=function(){return _0x560cb9;};return a50_0x599a();}export function addToHistory(_0x3519f8){const _0x305055=a50_0xe0ede5;cleanup();const _0x35526b=config[_0x305055(0x190)](_0x305055(0x19a));_0x35526b[_0x305055(0x195)]({'message':_0x3519f8,'timestamp':Date[_0x305055(0x193)]()});if(_0x35526b[_0x305055(0x19e)]>0x64)_0x35526b[_0x305055(0x196)]();config[_0x305055(0x197)](_0x305055(0x19a),_0x35526b);}export function getHistory(){const _0x29c18c=a50_0xe0ede5;return cleanup(),config[_0x29c18c(0x190)](_0x29c18c(0x19a))['map'](_0x5ed5e1=>_0x5ed5e1['message']);}export function clearHistory(){const _0x5ed20e=a50_0xe0ede5;config[_0x5ed20e(0x197)]('entries',[]);}
1
+ const a50_0x68f61e=a50_0x1dd7;(function(_0x389c0f,_0x2d8617){const _0x491a1c=a50_0x1dd7,_0x28bd09=_0x389c0f();while(!![]){try{const _0x4834e3=parseInt(_0x491a1c(0x17e))/0x1*(parseInt(_0x491a1c(0x185))/0x2)+-parseInt(_0x491a1c(0x184))/0x3*(parseInt(_0x491a1c(0x17a))/0x4)+-parseInt(_0x491a1c(0x180))/0x5*(-parseInt(_0x491a1c(0x179))/0x6)+parseInt(_0x491a1c(0x181))/0x7*(-parseInt(_0x491a1c(0x172))/0x8)+-parseInt(_0x491a1c(0x173))/0x9*(parseInt(_0x491a1c(0x17c))/0xa)+-parseInt(_0x491a1c(0x175))/0xb+parseInt(_0x491a1c(0x17d))/0xc*(parseInt(_0x491a1c(0x176))/0xd);if(_0x4834e3===_0x2d8617)break;else _0x28bd09['push'](_0x28bd09['shift']());}catch(_0x415b53){_0x28bd09['push'](_0x28bd09['shift']());}}}(a50_0x4c6b,0x538c3));import a50_0x42f9a5 from'conf';const WEEK_MS=0x7*0x18*0x3c*0x3c*0x3e8,config=new a50_0x42f9a5({'projectName':a50_0x68f61e(0x17b),'defaults':{'entries':[],'lastCleanup':Date[a50_0x68f61e(0x187)]()}});function cleanup(){const _0x362545=a50_0x68f61e,_0x1fc035=Date[_0x362545(0x187)](),_0x141e6b=config[_0x362545(0x174)](_0x362545(0x183));if(_0x1fc035-_0x141e6b<0x18*0x3c*0x3c*0x3e8)return;const _0x4f9cc3=config[_0x362545(0x174)](_0x362545(0x177)),_0x571dfa=_0x4f9cc3[_0x362545(0x186)](_0x53bc67=>_0x1fc035-_0x53bc67[_0x362545(0x178)]<WEEK_MS);config[_0x362545(0x17f)](_0x362545(0x177),_0x571dfa),config[_0x362545(0x17f)](_0x362545(0x183),_0x1fc035);}function a50_0x4c6b(){const _0x11beaf=['1793363nZaGdZ','10322DWxcMU','entries','timestamp','18gtDwGO','100nkkITL','woozlit-cli-history','188340nQSwgv','12912yneTxq','130219jzAhmT','set','1023930nwaokH','167188sgzJco','length','lastCleanup','81573vDkNle','6DoWnuN','filter','now','push','shift','24mQydKV','288INBCLT','get'];a50_0x4c6b=function(){return _0x11beaf;};return a50_0x4c6b();}export function addToHistory(_0xb6bfc7){const _0x352078=a50_0x68f61e;cleanup();const _0x4ab95e=config[_0x352078(0x174)]('entries');_0x4ab95e[_0x352078(0x170)]({'message':_0xb6bfc7,'timestamp':Date[_0x352078(0x187)]()});if(_0x4ab95e[_0x352078(0x182)]>0x64)_0x4ab95e[_0x352078(0x171)]();config[_0x352078(0x17f)](_0x352078(0x177),_0x4ab95e);}export function getHistory(){const _0x10902c=a50_0x68f61e;return cleanup(),config['get'](_0x10902c(0x177))['map'](_0x1124c2=>_0x1124c2['message']);}function a50_0x1dd7(_0x3baedc,_0x8fa3a5){_0x3baedc=_0x3baedc-0x170;const _0x4c6b31=a50_0x4c6b();let _0x1dd788=_0x4c6b31[_0x3baedc];return _0x1dd788;}export function clearHistory(){config['set']('entries',[]);}
@@ -1 +1 @@
1
- const a51_0x425d6f=a51_0x5979;function a51_0x5979(_0x543654,_0x30d553){_0x543654=_0x543654-0x134;const _0x323fbe=a51_0x323f();let _0x597957=_0x323fbe[_0x543654];return _0x597957;}(function(_0x12df1d,_0x3b970f){const _0x1dd5b0=a51_0x5979,_0x1b2997=_0x12df1d();while(!![]){try{const _0x5660fb=parseInt(_0x1dd5b0(0x15a))/0x1*(parseInt(_0x1dd5b0(0x182))/0x2)+-parseInt(_0x1dd5b0(0x147))/0x3+parseInt(_0x1dd5b0(0x175))/0x4*(-parseInt(_0x1dd5b0(0x171))/0x5)+parseInt(_0x1dd5b0(0x157))/0x6+parseInt(_0x1dd5b0(0x142))/0x7+-parseInt(_0x1dd5b0(0x150))/0x8+-parseInt(_0x1dd5b0(0x14e))/0x9;if(_0x5660fb===_0x3b970f)break;else _0x1b2997['push'](_0x1b2997['shift']());}catch(_0x514256){_0x1b2997['push'](_0x1b2997['shift']());}}}(a51_0x323f,0x8b9b7));function a51_0x323f(){const _0x455690=['scripts','9125872nrZTAX','success','split','servers','object','npm\x20install','info','5996790lflGtK','yarn\x20install','Failed\x20to\x20clone\x20repository:\x20','19431uEGdcr','node','Building\x20project...','endsWith','Successfully\x20installed\x20and\x20added\x20\x27','error','Failed\x20to\x20install\x20mcp-chrome-bridge\x20using\x20pnpm:\x20','Failed\x20to\x20install/build:\x20','main','src/index.ts','Failed\x20to\x20install\x20mcp-chrome-bridge:\x20','Trying\x20npm\x20as\x20fallback...','4.\x20Make\x20sure\x20\x27mcp-chrome-bridge\x27\x20is\x20running\x20(if\x20not\x20started\x20automatically)','Installed\x20mcp-chrome-bridge\x20and\x20added\x20configuration!','slice','Could\x20not\x20auto-detect\x20entry\x20point.\x20Please\x20add\x20the\x20server\x20manually\x20using\x20\x27woozlit\x20mcp\x20add\x27.','\x27\x20from\x20GitHub!','build','utf-8','keys','bin','.woozlit','git\x20clone\x20','265nnnaPp','mcp-chrome-bridge','http://127.0.0.1:12306/mcp','npm','3172iyVZmr','Try\x20running\x20with\x20sudo\x20or\x20administrative\x20privileges.','2.\x20Load\x20unpacked\x20extension\x20in\x20Chrome\x20Developer\x20Mode','tsx','test','yarn.lock','Unknown\x20installation\x20source.\x20Please\x20provide\x20a\x20GitHub\x20URL\x20or\x20\x27mcp-chrome-bridge\x27.','existsSync','Failed\x20to\x20update\x20repo.\x20Try\x20checking\x20it\x20out\x20manually\x20or\x20deleting\x20the\x20folder.','git\x20pull','pnpm-lock.yaml','...','Directory\x20','58PGTajU','parse','yarn','length','pnpm\x20install','Detected\x20entry\x20point:\x20','inherit','Installing\x20dependencies...','.git','pnpm\x20add\x20-g\x20mcp-chrome-bridge','1.\x20Download\x20the\x20Chrome\x20Extension:\x20https://github.com/hangwin/mcp-chrome/releases','Installing\x20mcp-chrome-bridge\x20globally...','\x20already\x20exists.\x20Updating...','chrome','3.\x20Click\x20extension\x20icon\x20and\x20\x27Connect\x27','warn','package.json','5242419spbied','homedir','dist/index.js','readFileSync','https://github.com/','1544457cgsOty','\x20run\x20build','includes','github.com','join','npm\x20install\x20-g\x20mcp-chrome-bridge','mcp-chrome','382212GUMEhM'];a51_0x323f=function(){return _0x455690;};return a51_0x323f();}import{execSync}from'child_process';import a51_0x25d186 from'path';import a51_0x144379 from'fs';import a51_0x344b93 from'os';import*as a51_0x14210b from'../ui/output.js';import{addMcpServer,addMcpHttpServer}from'../config/mcp.js';const SERVERS_DIR=a51_0x25d186[a51_0x425d6f(0x14b)](a51_0x344b93[a51_0x425d6f(0x143)](),a51_0x425d6f(0x16f),a51_0x425d6f(0x153));function ensureServersDir(){!a51_0x144379['existsSync'](SERVERS_DIR)&&a51_0x144379['mkdirSync'](SERVERS_DIR,{'recursive':!![]});}function getRepoName(_0x1c974b){const _0x52a221=a51_0x425d6f,_0x54e6ab=_0x1c974b[_0x52a221(0x152)]('/');let _0x11ebcc=_0x54e6ab[_0x54e6ab[_0x52a221(0x134)]-0x1];return _0x11ebcc[_0x52a221(0x15d)](_0x52a221(0x139))&&(_0x11ebcc=_0x11ebcc[_0x52a221(0x168)](0x0,-0x4)),_0x11ebcc;}async function installFromGithub(_0x30179c,_0xe2ab40){const _0x5079f8=a51_0x425d6f;ensureServersDir();const _0x4e6b21=_0xe2ab40||getRepoName(_0x30179c),_0x2b41f3=a51_0x25d186[_0x5079f8(0x14b)](SERVERS_DIR,_0x4e6b21);a51_0x14210b[_0x5079f8(0x156)]('Cloning\x20'+_0x30179c+'\x20to\x20'+_0x2b41f3+_0x5079f8(0x180));if(a51_0x144379[_0x5079f8(0x17c)](_0x2b41f3)){a51_0x14210b[_0x5079f8(0x140)](_0x5079f8(0x181)+_0x2b41f3+_0x5079f8(0x13d));try{execSync(_0x5079f8(0x17e),{'cwd':_0x2b41f3,'stdio':'inherit'});}catch(_0x4a75b8){a51_0x14210b[_0x5079f8(0x15f)](_0x5079f8(0x17d));return;}}else try{execSync(_0x5079f8(0x170)+_0x30179c+'\x20'+_0x2b41f3,{'stdio':_0x5079f8(0x137)});}catch(_0xd475ce){a51_0x14210b[_0x5079f8(0x15f)](_0x5079f8(0x159)+_0xd475ce);return;}a51_0x14210b[_0x5079f8(0x156)](_0x5079f8(0x138));try{const _0x12e832=a51_0x144379[_0x5079f8(0x17c)](a51_0x25d186[_0x5079f8(0x14b)](_0x2b41f3,_0x5079f8(0x17f))),_0x39d694=a51_0x144379[_0x5079f8(0x17c)](a51_0x25d186[_0x5079f8(0x14b)](_0x2b41f3,_0x5079f8(0x17a))),_0x4cdf36=_0x12e832?_0x5079f8(0x135):_0x39d694?_0x5079f8(0x158):_0x5079f8(0x155);execSync(_0x4cdf36,{'cwd':_0x2b41f3,'stdio':_0x5079f8(0x137)});const _0x18cbb0=a51_0x25d186[_0x5079f8(0x14b)](_0x2b41f3,_0x5079f8(0x141));if(a51_0x144379[_0x5079f8(0x17c)](_0x18cbb0)){const _0x5d0441=JSON[_0x5079f8(0x183)](a51_0x144379[_0x5079f8(0x145)](_0x18cbb0,_0x5079f8(0x16c)));_0x5d0441[_0x5079f8(0x14f)]&&_0x5d0441[_0x5079f8(0x14f)][_0x5079f8(0x16b)]&&(a51_0x14210b[_0x5079f8(0x156)](_0x5079f8(0x15c)),execSync((_0x12e832?'pnpm':_0x39d694?_0x5079f8(0x184):_0x5079f8(0x174))+_0x5079f8(0x148),{'cwd':_0x2b41f3,'stdio':_0x5079f8(0x137)}));}}catch(_0x22be33){a51_0x14210b[_0x5079f8(0x15f)](_0x5079f8(0x161)+_0x22be33);return;}const _0x59d7cd=a51_0x25d186['join'](_0x2b41f3,_0x5079f8(0x141));let _0x1f03de='';if(a51_0x144379[_0x5079f8(0x17c)](_0x59d7cd)){const _0x55d6f8=JSON[_0x5079f8(0x183)](a51_0x144379['readFileSync'](_0x59d7cd,_0x5079f8(0x16c)));if(_0x55d6f8[_0x5079f8(0x16e)]){if(typeof _0x55d6f8[_0x5079f8(0x16e)]==='string')_0x1f03de=a51_0x25d186['join'](_0x2b41f3,_0x55d6f8['bin']);else{if(typeof _0x55d6f8[_0x5079f8(0x16e)]===_0x5079f8(0x154)){const _0x27529b=Object[_0x5079f8(0x16d)](_0x55d6f8[_0x5079f8(0x16e)])[0x0];_0x1f03de=a51_0x25d186[_0x5079f8(0x14b)](_0x2b41f3,_0x55d6f8[_0x5079f8(0x16e)][_0x27529b]);}}}else _0x55d6f8[_0x5079f8(0x162)]&&(_0x1f03de=a51_0x25d186[_0x5079f8(0x14b)](_0x2b41f3,_0x55d6f8['main']));}if(!_0x1f03de){const _0x470a84=[_0x5079f8(0x144),'build/index.js',_0x5079f8(0x163),'index.js'];for(const _0x5ab0ba of _0x470a84){if(a51_0x144379[_0x5079f8(0x17c)](a51_0x25d186[_0x5079f8(0x14b)](_0x2b41f3,_0x5ab0ba))){_0x1f03de=a51_0x25d186[_0x5079f8(0x14b)](_0x2b41f3,_0x5ab0ba);break;}}}if(!_0x1f03de){a51_0x14210b[_0x5079f8(0x15f)](_0x5079f8(0x169));return;}const _0x219909=_0x1f03de[_0x5079f8(0x15d)]('.ts')?_0x5079f8(0x178):_0x5079f8(0x15b);a51_0x14210b[_0x5079f8(0x156)](_0x5079f8(0x136)+_0x1f03de),addMcpServer(_0x4e6b21,_0x219909,[_0x1f03de]),a51_0x14210b[_0x5079f8(0x151)](_0x5079f8(0x15e)+_0x4e6b21+_0x5079f8(0x16a));}async function installMcpChromeBridge(){const _0x3ec16c=a51_0x425d6f;a51_0x14210b[_0x3ec16c(0x156)](_0x3ec16c(0x13c));try{execSync(_0x3ec16c(0x13a),{'stdio':_0x3ec16c(0x137)});}catch(_0x377fc2){a51_0x14210b['error'](_0x3ec16c(0x160)+_0x377fc2),a51_0x14210b[_0x3ec16c(0x156)](_0x3ec16c(0x165));try{execSync(_0x3ec16c(0x14c),{'stdio':_0x3ec16c(0x137)});}catch(_0x59b281){a51_0x14210b[_0x3ec16c(0x15f)](_0x3ec16c(0x164)+_0x59b281),a51_0x14210b[_0x3ec16c(0x156)](_0x3ec16c(0x176));return;}}const _0x433071=_0x3ec16c(0x173);addMcpHttpServer(_0x3ec16c(0x14d),_0x433071),a51_0x14210b['success'](_0x3ec16c(0x167)),a51_0x14210b['header']('Next\x20Steps:'),a51_0x14210b[_0x3ec16c(0x156)](_0x3ec16c(0x13b)),a51_0x14210b[_0x3ec16c(0x156)](_0x3ec16c(0x177)),a51_0x14210b['info'](_0x3ec16c(0x13f)),a51_0x14210b[_0x3ec16c(0x156)](_0x3ec16c(0x166));}export async function installMcpServer(_0x15e19f,_0x2d9822){const _0x44ab23=a51_0x425d6f;if(_0x15e19f===_0x44ab23(0x172)||_0x15e19f===_0x44ab23(0x13e))return installMcpChromeBridge();if(_0x15e19f[_0x44ab23(0x149)](_0x44ab23(0x14a))||_0x15e19f[_0x44ab23(0x15d)](_0x44ab23(0x139)))return installFromGithub(_0x15e19f,_0x2d9822);if(/^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/[_0x44ab23(0x179)](_0x15e19f))return installFromGithub(_0x44ab23(0x146)+_0x15e19f+_0x44ab23(0x139),_0x2d9822);a51_0x14210b[_0x44ab23(0x15f)](_0x44ab23(0x17b));}
1
+ const a51_0x58d69d=a51_0x1671;(function(_0x107ddc,_0x8376e7){const _0x4b3a02=a51_0x1671,_0x4f4a9e=_0x107ddc();while(!![]){try{const _0x5ae325=parseInt(_0x4b3a02(0x1c9))/0x1+parseInt(_0x4b3a02(0x1d9))/0x2*(parseInt(_0x4b3a02(0x211))/0x3)+-parseInt(_0x4b3a02(0x1f5))/0x4*(-parseInt(_0x4b3a02(0x207))/0x5)+-parseInt(_0x4b3a02(0x1d7))/0x6*(parseInt(_0x4b3a02(0x20b))/0x7)+parseInt(_0x4b3a02(0x200))/0x8*(parseInt(_0x4b3a02(0x1f7))/0x9)+-parseInt(_0x4b3a02(0x1cc))/0xa*(-parseInt(_0x4b3a02(0x1dc))/0xb)+-parseInt(_0x4b3a02(0x1f3))/0xc*(parseInt(_0x4b3a02(0x1ed))/0xd);if(_0x5ae325===_0x8376e7)break;else _0x4f4a9e['push'](_0x4f4a9e['shift']());}catch(_0x5c54ab){_0x4f4a9e['push'](_0x4f4a9e['shift']());}}}(a51_0xaf94,0xd37c5));import{execSync}from'child_process';import a51_0x514d6a from'path';import a51_0x1b8260 from'fs';function a51_0xaf94(){const _0x5a8d4f=['2.\x20Load\x20unpacked\x20extension\x20in\x20Chrome\x20Developer\x20Mode','parse','\x20already\x20exists.\x20Updating...','156pFEyOa','\x27\x20from\x20GitHub!','4gNYwkV','includes','18KfYWMH','main','Trying\x20npm\x20as\x20fallback...','Detected\x20entry\x20point:\x20','endsWith','git\x20clone\x20','existsSync','mcp-chrome','Building\x20project...','3978824qWhMlr','Successfully\x20installed\x20and\x20added\x20\x27','Failed\x20to\x20install/build:\x20','tsx','info','mcp-chrome-bridge','pnpm-lock.yaml','4619765pUPJeV','\x20run\x20build','Directory\x20','inherit','35yhMCVv','test','homedir','\x20to\x20','string','github.com','126459cgxLGR','error','header','578673BRgGiX','pnpm','join','10yWbnji','1.\x20Download\x20the\x20Chrome\x20Extension:\x20https://github.com/hangwin/mcp-chrome/releases','warn','Cloning\x20','build','yarn','pnpm\x20install','Installing\x20mcp-chrome-bridge\x20globally...','readFileSync','src/index.ts','npm\x20install\x20-g\x20mcp-chrome-bridge','148296xiFWoT','keys','42kcNexD','length','Installed\x20mcp-chrome-bridge\x20and\x20added\x20configuration!','3036407LfPmfO','Failed\x20to\x20clone\x20repository:\x20','package.json','chrome','https://github.com/','Could\x20not\x20auto-detect\x20entry\x20point.\x20Please\x20add\x20the\x20server\x20manually\x20using\x20\x27woozlit\x20mcp\x20add\x27.','bin','build/index.js','.git','utf-8','Unknown\x20installation\x20source.\x20Please\x20provide\x20a\x20GitHub\x20URL\x20or\x20\x27mcp-chrome-bridge\x27.','servers','success','Installing\x20dependencies...','...','object','Failed\x20to\x20update\x20repo.\x20Try\x20checking\x20it\x20out\x20manually\x20or\x20deleting\x20the\x20folder.','2668757bzGyUg','.ts','npm'];a51_0xaf94=function(){return _0x5a8d4f;};return a51_0xaf94();}import a51_0x2e29eb from'os';import*as a51_0x3f1784 from'../ui/output.js';import{addMcpServer,addMcpHttpServer}from'../config/mcp.js';function a51_0x1671(_0x127847,_0x24ed95){_0x127847=_0x127847-0x1c8;const _0xaf9413=a51_0xaf94();let _0x16714b=_0xaf9413[_0x127847];return _0x16714b;}const SERVERS_DIR=a51_0x514d6a[a51_0x58d69d(0x1cb)](a51_0x2e29eb[a51_0x58d69d(0x20d)](),'.woozlit',a51_0x58d69d(0x1e7));function ensureServersDir(){!a51_0x1b8260['existsSync'](SERVERS_DIR)&&a51_0x1b8260['mkdirSync'](SERVERS_DIR,{'recursive':!![]});}function getRepoName(_0x46cf1e){const _0x1818a9=a51_0x58d69d,_0x129b09=_0x46cf1e['split']('/');let _0x12acd3=_0x129b09[_0x129b09[_0x1818a9(0x1da)]-0x1];return _0x12acd3[_0x1818a9(0x1fb)](_0x1818a9(0x1e4))&&(_0x12acd3=_0x12acd3['slice'](0x0,-0x4)),_0x12acd3;}async function installFromGithub(_0x300d52,_0x4c81e1){const _0xa2c386=a51_0x58d69d;ensureServersDir();const _0x353420=_0x4c81e1||getRepoName(_0x300d52),_0x257fa8=a51_0x514d6a[_0xa2c386(0x1cb)](SERVERS_DIR,_0x353420);a51_0x3f1784[_0xa2c386(0x204)](_0xa2c386(0x1cf)+_0x300d52+_0xa2c386(0x20e)+_0x257fa8+_0xa2c386(0x1ea));if(a51_0x1b8260[_0xa2c386(0x1fd)](_0x257fa8)){a51_0x3f1784[_0xa2c386(0x1ce)](_0xa2c386(0x209)+_0x257fa8+_0xa2c386(0x1f2));try{execSync('git\x20pull',{'cwd':_0x257fa8,'stdio':_0xa2c386(0x20a)});}catch(_0x3950bc){a51_0x3f1784[_0xa2c386(0x212)](_0xa2c386(0x1ec));return;}}else try{execSync(_0xa2c386(0x1fc)+_0x300d52+'\x20'+_0x257fa8,{'stdio':_0xa2c386(0x20a)});}catch(_0x4e8918){a51_0x3f1784[_0xa2c386(0x212)](_0xa2c386(0x1dd)+_0x4e8918);return;}a51_0x3f1784[_0xa2c386(0x204)](_0xa2c386(0x1e9));try{const _0x291c57=a51_0x1b8260['existsSync'](a51_0x514d6a[_0xa2c386(0x1cb)](_0x257fa8,_0xa2c386(0x206))),_0x376b0f=a51_0x1b8260[_0xa2c386(0x1fd)](a51_0x514d6a[_0xa2c386(0x1cb)](_0x257fa8,'yarn.lock')),_0x14cff1=_0x291c57?_0xa2c386(0x1d2):_0x376b0f?'yarn\x20install':'npm\x20install';execSync(_0x14cff1,{'cwd':_0x257fa8,'stdio':_0xa2c386(0x20a)});const _0x13e70e=a51_0x514d6a[_0xa2c386(0x1cb)](_0x257fa8,_0xa2c386(0x1de));if(a51_0x1b8260[_0xa2c386(0x1fd)](_0x13e70e)){const _0x2331e3=JSON[_0xa2c386(0x1f1)](a51_0x1b8260[_0xa2c386(0x1d4)](_0x13e70e,'utf-8'));_0x2331e3['scripts']&&_0x2331e3['scripts'][_0xa2c386(0x1d0)]&&(a51_0x3f1784[_0xa2c386(0x204)](_0xa2c386(0x1ff)),execSync((_0x291c57?_0xa2c386(0x1ca):_0x376b0f?_0xa2c386(0x1d1):_0xa2c386(0x1ef))+_0xa2c386(0x208),{'cwd':_0x257fa8,'stdio':_0xa2c386(0x20a)}));}}catch(_0x4b38b1){a51_0x3f1784[_0xa2c386(0x212)](_0xa2c386(0x202)+_0x4b38b1);return;}const _0x3aa90d=a51_0x514d6a['join'](_0x257fa8,_0xa2c386(0x1de));let _0x34b622='';if(a51_0x1b8260[_0xa2c386(0x1fd)](_0x3aa90d)){const _0x30a7a8=JSON[_0xa2c386(0x1f1)](a51_0x1b8260[_0xa2c386(0x1d4)](_0x3aa90d,_0xa2c386(0x1e5)));if(_0x30a7a8['bin']){if(typeof _0x30a7a8['bin']===_0xa2c386(0x20f))_0x34b622=a51_0x514d6a[_0xa2c386(0x1cb)](_0x257fa8,_0x30a7a8[_0xa2c386(0x1e2)]);else{if(typeof _0x30a7a8['bin']===_0xa2c386(0x1eb)){const _0x456027=Object[_0xa2c386(0x1d8)](_0x30a7a8[_0xa2c386(0x1e2)])[0x0];_0x34b622=a51_0x514d6a[_0xa2c386(0x1cb)](_0x257fa8,_0x30a7a8[_0xa2c386(0x1e2)][_0x456027]);}}}else _0x30a7a8[_0xa2c386(0x1f8)]&&(_0x34b622=a51_0x514d6a['join'](_0x257fa8,_0x30a7a8[_0xa2c386(0x1f8)]));}if(!_0x34b622){const _0x294dd3=['dist/index.js',_0xa2c386(0x1e3),_0xa2c386(0x1d5),'index.js'];for(const _0x368e86 of _0x294dd3){if(a51_0x1b8260[_0xa2c386(0x1fd)](a51_0x514d6a[_0xa2c386(0x1cb)](_0x257fa8,_0x368e86))){_0x34b622=a51_0x514d6a[_0xa2c386(0x1cb)](_0x257fa8,_0x368e86);break;}}}if(!_0x34b622){a51_0x3f1784[_0xa2c386(0x212)](_0xa2c386(0x1e1));return;}const _0x398c08=_0x34b622[_0xa2c386(0x1fb)](_0xa2c386(0x1ee))?_0xa2c386(0x203):'node';a51_0x3f1784[_0xa2c386(0x204)](_0xa2c386(0x1fa)+_0x34b622),addMcpServer(_0x353420,_0x398c08,[_0x34b622]),a51_0x3f1784[_0xa2c386(0x1e8)](_0xa2c386(0x201)+_0x353420+_0xa2c386(0x1f4));}async function installMcpChromeBridge(){const _0x337b25=a51_0x58d69d;a51_0x3f1784['info'](_0x337b25(0x1d3));try{execSync('pnpm\x20add\x20-g\x20mcp-chrome-bridge',{'stdio':_0x337b25(0x20a)});}catch(_0x183026){a51_0x3f1784['error']('Failed\x20to\x20install\x20mcp-chrome-bridge\x20using\x20pnpm:\x20'+_0x183026),a51_0x3f1784[_0x337b25(0x204)](_0x337b25(0x1f9));try{execSync(_0x337b25(0x1d6),{'stdio':_0x337b25(0x20a)});}catch(_0x532af1){a51_0x3f1784[_0x337b25(0x212)]('Failed\x20to\x20install\x20mcp-chrome-bridge:\x20'+_0x532af1),a51_0x3f1784['info']('Try\x20running\x20with\x20sudo\x20or\x20administrative\x20privileges.');return;}}const _0x319469='http://127.0.0.1:12306/mcp';addMcpHttpServer(_0x337b25(0x1fe),_0x319469),a51_0x3f1784[_0x337b25(0x1e8)](_0x337b25(0x1db)),a51_0x3f1784[_0x337b25(0x1c8)]('Next\x20Steps:'),a51_0x3f1784['info'](_0x337b25(0x1cd)),a51_0x3f1784['info'](_0x337b25(0x1f0)),a51_0x3f1784[_0x337b25(0x204)]('3.\x20Click\x20extension\x20icon\x20and\x20\x27Connect\x27'),a51_0x3f1784[_0x337b25(0x204)]('4.\x20Make\x20sure\x20\x27mcp-chrome-bridge\x27\x20is\x20running\x20(if\x20not\x20started\x20automatically)');}export async function installMcpServer(_0x54c4ae,_0x1db61a){const _0x4489ca=a51_0x58d69d;if(_0x54c4ae===_0x4489ca(0x205)||_0x54c4ae===_0x4489ca(0x1df))return installMcpChromeBridge();if(_0x54c4ae[_0x4489ca(0x1f6)](_0x4489ca(0x210))||_0x54c4ae[_0x4489ca(0x1fb)](_0x4489ca(0x1e4)))return installFromGithub(_0x54c4ae,_0x1db61a);if(/^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/[_0x4489ca(0x20c)](_0x54c4ae))return installFromGithub(_0x4489ca(0x1e0)+_0x54c4ae+_0x4489ca(0x1e4),_0x1db61a);a51_0x3f1784[_0x4489ca(0x212)](_0x4489ca(0x1e6));}
@@ -1 +1 @@
1
- const a52_0x287de2=a52_0x392d;function a52_0x41b9(){const _0x5cdd09=['1482290olhHgV','darwin','arch','2YkXYwM','3585138MsoGbc','sudo\x20','6BSUkSR','windows','42074956vkiPsn','Windows','macos','72XVwUBR','112510vHMkuk','5495546tDwBfE','platform','1388493PTqYnT','256mdSTpl','11014856jYtGDZ','macOS','linux','win32'];a52_0x41b9=function(){return _0x5cdd09;};return a52_0x41b9();}(function(_0x4b9a12,_0x29e5c5){const _0x4bb539=a52_0x392d,_0x5d1cb9=_0x4b9a12();while(!![]){try{const _0x2605c9=parseInt(_0x4bb539(0x197))/0x1*(-parseInt(_0x4bb539(0x18b))/0x2)+-parseInt(_0x4bb539(0x18c))/0x3+-parseInt(_0x4bb539(0x198))/0x4*(parseInt(_0x4bb539(0x194))/0x5)+parseInt(_0x4bb539(0x18e))/0x6*(parseInt(_0x4bb539(0x195))/0x7)+parseInt(_0x4bb539(0x199))/0x8+parseInt(_0x4bb539(0x193))/0x9*(-parseInt(_0x4bb539(0x188))/0xa)+parseInt(_0x4bb539(0x190))/0xb;if(_0x2605c9===_0x29e5c5)break;else _0x5d1cb9['push'](_0x5d1cb9['shift']());}catch(_0x392870){_0x5d1cb9['push'](_0x5d1cb9['shift']());}}}(a52_0x41b9,0xbdcd8));function a52_0x392d(_0x2a1f12,_0x135f38){_0x2a1f12=_0x2a1f12-0x188;const _0x41b933=a52_0x41b9();let _0x392d5b=_0x41b933[_0x2a1f12];return _0x392d5b;}const platform=process[a52_0x287de2(0x196)],arch=process[a52_0x287de2(0x18a)];export function getPlatform(){const _0x4f5742=a52_0x287de2;if(platform===_0x4f5742(0x19c))return _0x4f5742(0x18f);if(platform===_0x4f5742(0x189))return _0x4f5742(0x192);return _0x4f5742(0x19b);}export function getArch(){return arch;}export function isWindows(){const _0x16fa1b=a52_0x287de2;return platform===_0x16fa1b(0x19c);}export function isMac(){return platform==='darwin';}export function isLinux(){return platform==='linux';}export function getShellPrefix(){const _0x1cd71b=a52_0x287de2;return isWindows()?'':_0x1cd71b(0x18d);}export function getPlatformInfo(){const _0x3a553a=a52_0x287de2,_0x41f4f3=getPlatform(),_0x39ae5a=_0x41f4f3===_0x3a553a(0x18f)?_0x3a553a(0x191):_0x41f4f3===_0x3a553a(0x192)?_0x3a553a(0x19a):'Linux';return _0x39ae5a+'\x20('+arch+')';}
1
+ const a52_0x458d2c=a52_0x2fb0;(function(_0x58737b,_0x2066e0){const _0x2e7bf2=a52_0x2fb0,_0x337c24=_0x58737b();while(!![]){try{const _0x1a9ed7=-parseInt(_0x2e7bf2(0x1d2))/0x1+-parseInt(_0x2e7bf2(0x1d5))/0x2*(-parseInt(_0x2e7bf2(0x1c4))/0x3)+-parseInt(_0x2e7bf2(0x1c8))/0x4*(parseInt(_0x2e7bf2(0x1d7))/0x5)+parseInt(_0x2e7bf2(0x1c6))/0x6+-parseInt(_0x2e7bf2(0x1cd))/0x7*(-parseInt(_0x2e7bf2(0x1cb))/0x8)+-parseInt(_0x2e7bf2(0x1d0))/0x9+parseInt(_0x2e7bf2(0x1cc))/0xa*(parseInt(_0x2e7bf2(0x1d6))/0xb);if(_0x1a9ed7===_0x2066e0)break;else _0x337c24['push'](_0x337c24['shift']());}catch(_0x476d31){_0x337c24['push'](_0x337c24['shift']());}}}(a52_0x3ae3,0xef6b7));function a52_0x3ae3(){const _0x12c860=['481364DlJpYh','arch','macos','3187386XINXMA','635063NxxwQF','5yULQDp','win32','Windows','3EWjzYd','platform','4734546lbqJql','darwin','658292mqOfmS','Linux','sudo\x20','16EwKIyO','50HeTLJt','162834kVMuTJ','linux','windows','9822357BwQlVw','macOS'];a52_0x3ae3=function(){return _0x12c860;};return a52_0x3ae3();}const platform=process[a52_0x458d2c(0x1c5)],arch=process[a52_0x458d2c(0x1d3)];export function getPlatform(){const _0x57f234=a52_0x458d2c;if(platform===_0x57f234(0x1d8))return _0x57f234(0x1cf);if(platform==='darwin')return _0x57f234(0x1d4);return'linux';}export function getArch(){return arch;}export function isWindows(){const _0x588691=a52_0x458d2c;return platform===_0x588691(0x1d8);}function a52_0x2fb0(_0x45cba1,_0x2e9f90){_0x45cba1=_0x45cba1-0x1c4;const _0x3ae311=a52_0x3ae3();let _0x2fb0d2=_0x3ae311[_0x45cba1];return _0x2fb0d2;}export function isMac(){const _0x147e41=a52_0x458d2c;return platform===_0x147e41(0x1c7);}export function isLinux(){const _0xbd5f8e=a52_0x458d2c;return platform===_0xbd5f8e(0x1ce);}export function getShellPrefix(){const _0x20a7de=a52_0x458d2c;return isWindows()?'':_0x20a7de(0x1ca);}export function getPlatformInfo(){const _0x509e66=a52_0x458d2c,_0x51c82f=getPlatform(),_0x5a3bdc=_0x51c82f===_0x509e66(0x1cf)?_0x509e66(0x1d9):_0x51c82f==='macos'?_0x509e66(0x1d1):_0x509e66(0x1c9);return _0x5a3bdc+'\x20('+arch+')';}
@@ -1 +1 @@
1
- const a53_0xc2206e=a53_0x8ae7;(function(_0x40a61a,_0xd569a1){const _0x4aa480=a53_0x8ae7,_0x5ecf67=_0x40a61a();while(!![]){try{const _0x4b74ff=parseInt(_0x4aa480(0x9c))/0x1+parseInt(_0x4aa480(0x90))/0x2*(parseInt(_0x4aa480(0x94))/0x3)+-parseInt(_0x4aa480(0x97))/0x4+-parseInt(_0x4aa480(0x9d))/0x5*(-parseInt(_0x4aa480(0xa9))/0x6)+-parseInt(_0x4aa480(0xa4))/0x7*(-parseInt(_0x4aa480(0xa8))/0x8)+parseInt(_0x4aa480(0x93))/0x9+-parseInt(_0x4aa480(0x9f))/0xa;if(_0x4b74ff===_0xd569a1)break;else _0x5ecf67['push'](_0x5ecf67['shift']());}catch(_0x3cca7f){_0x5ecf67['push'](_0x5ecf67['shift']());}}}(a53_0x58a1,0x4410e));import a53_0x1a333e from'conf';const config=new a53_0x1a333e({'projectName':a53_0xc2206e(0xa5)});export function getToken(){const _0x2c9e7b=a53_0xc2206e;return config[_0x2c9e7b(0xa0)](_0x2c9e7b(0x96));}export function setToken(_0x3b0cd9){const _0x3b2eb3=a53_0xc2206e;config[_0x3b2eb3(0xaa)]('token',_0x3b0cd9);}export function clearToken(){const _0x1cce17=a53_0xc2206e;config['delete'](_0x1cce17(0x96));}export function getUser(){const _0x33b54b=a53_0xc2206e;return{'userId':config[_0x33b54b(0xa0)](_0x33b54b(0xa6)),'email':config[_0x33b54b(0xa0)](_0x33b54b(0x99)),'displayName':config['get']('displayName')};}export function setUser(_0x4f1d19,_0x15dd6e,_0x593af){const _0x42111a=a53_0xc2206e;config['set']('userId',_0x4f1d19),config['set'](_0x42111a(0x99),_0x15dd6e),config['set'](_0x42111a(0xa7),_0x593af);}export function clearUser(){const _0x2a888c=a53_0xc2206e;config['delete']('userId'),config[_0x2a888c(0xa2)](_0x2a888c(0x99)),config[_0x2a888c(0xa2)](_0x2a888c(0xa7));}export function getSelectedModel(){const _0x238619=a53_0xc2206e;return config['get'](_0x238619(0x95))||'gemini-2.5-flash';}export function setSelectedModel(_0x1b33ac){const _0x29006f=a53_0xc2206e;config[_0x29006f(0xaa)](_0x29006f(0x95),_0x1b33ac);}export function getTheme(){const _0x3bec54=a53_0xc2206e;return config['get']('theme')||_0x3bec54(0x98);}export function setTheme(_0x1ac643){const _0x140141=a53_0xc2206e;config['set'](_0x140141(0xa1),_0x1ac643);}export function getRules(){const _0xa717e0=a53_0xc2206e;return config['get'](_0xa717e0(0x92))||[];}export function addRule(_0x3c6895){const _0x32ae76=a53_0xc2206e,_0xf38ef4=getRules();_0xf38ef4[_0x32ae76(0x9e)](_0x3c6895),config['set'](_0x32ae76(0x92),_0xf38ef4);}export function clearRules(){const _0x5327e6=a53_0xc2206e;config[_0x5327e6(0xaa)](_0x5327e6(0x92),[]);}function a53_0x8ae7(_0x265b29,_0x3355e4){_0x265b29=_0x265b29-0x8e;const _0x58a1c7=a53_0x58a1();let _0x8ae7fe=_0x58a1c7[_0x265b29];return _0x8ae7fe;}export function getKnowledge(){const _0x542bf3=a53_0xc2206e,_0x15550e=config[_0x542bf3(0xa0)](_0x542bf3(0x9a));if(!_0x15550e||_0x15550e[_0x542bf3(0xa3)]===0x0){const _0x1aced7=[_0x542bf3(0x91),_0x542bf3(0x9b),_0x542bf3(0x8f),'Use\x20Server\x20Actions\x20for\x20data\x20mutations\x20and\x20fetching.\x20Avoid\x20traditional\x20API\x20routes\x20unless\x20building\x20external\x20standard\x20REST\x20endpoints.','Follow\x20mobile-first\x20responsive\x20design\x20patterns.\x20Build\x20clean,\x20minimal\x20UI\x20components\x20using\x20Tailwind\x20CSS.'];return config[_0x542bf3(0xaa)](_0x542bf3(0x9a),_0x1aced7),_0x1aced7;}return _0x15550e||[];}function a53_0x58a1(){const _0x5cee17=['rules','3693141KLByfv','3Nvyare','selectedModel','token','390012jnVYjo','woozlit_blue','email','knowledge','Use\x20the\x20App\x20Router\x20(app/\x20directory)\x20exclusively.\x20Avoid\x20the\x20pages/\x20directory.','345019giEWZn','548245HlUvke','push','9495230gQffJD','get','theme','delete','length','9219QLTPTa','woozlit-cli','userId','displayName','1232nHrIAt','6endfCd','set','clear','Default\x20to\x20Server\x20Components.\x20Only\x20add\x20\x27use\x20client\x27\x20when\x20hooks\x20(useState,\x20useEffect)\x20or\x20DOM\x20event\x20listeners\x20are\x20strictly\x20necessary.','515978QroVOB','You\x20are\x20an\x20expert\x20Next.js\x2015,\x20React\x2019,\x20and\x20Tailwind\x20CSS\x20developer.'];a53_0x58a1=function(){return _0x5cee17;};return a53_0x58a1();}export function addKnowledge(_0x46087b){const _0x1ac225=a53_0xc2206e,_0x152ec7=getKnowledge();_0x152ec7[_0x1ac225(0x9e)](_0x46087b),config[_0x1ac225(0xaa)](_0x1ac225(0x9a),_0x152ec7);}export function clearKnowledge(){const _0x38a25a=a53_0xc2206e;config[_0x38a25a(0xaa)](_0x38a25a(0x9a),[]);}export function isLoggedIn(){const _0x5b618e=a53_0xc2206e;return!!config[_0x5b618e(0xa0)]('token')&&!!config['get']('userId');}export function logout(){clearToken(),clearUser();}export function wipeAll(){const _0x32823=a53_0xc2206e;config[_0x32823(0x8e)]();}
1
+ const a53_0x19186e=a53_0x2295;(function(_0x1fdf92,_0xd0b885){const _0x468d0e=a53_0x2295,_0x241a57=_0x1fdf92();while(!![]){try{const _0x205b07=-parseInt(_0x468d0e(0x16e))/0x1*(parseInt(_0x468d0e(0x15f))/0x2)+parseInt(_0x468d0e(0x16f))/0x3*(parseInt(_0x468d0e(0x16d))/0x4)+-parseInt(_0x468d0e(0x161))/0x5+parseInt(_0x468d0e(0x167))/0x6+parseInt(_0x468d0e(0x166))/0x7+parseInt(_0x468d0e(0x175))/0x8*(parseInt(_0x468d0e(0x15c))/0x9)+-parseInt(_0x468d0e(0x171))/0xa*(parseInt(_0x468d0e(0x15a))/0xb);if(_0x205b07===_0xd0b885)break;else _0x241a57['push'](_0x241a57['shift']());}catch(_0x418c51){_0x241a57['push'](_0x241a57['shift']());}}}(a53_0x4bf5,0x3c4a5));import a53_0x12baa2 from'conf';const config=new a53_0x12baa2({'projectName':a53_0x19186e(0x16c)});export function getToken(){const _0x47e99f=a53_0x19186e;return config[_0x47e99f(0x168)](_0x47e99f(0x15d));}export function setToken(_0x2637ca){const _0x41dbd1=a53_0x19186e;config[_0x41dbd1(0x169)](_0x41dbd1(0x15d),_0x2637ca);}export function clearToken(){const _0x22335b=a53_0x19186e;config[_0x22335b(0x162)](_0x22335b(0x15d));}export function getUser(){const _0x13336a=a53_0x19186e;return{'userId':config[_0x13336a(0x168)]('userId'),'email':config['get'](_0x13336a(0x16a)),'displayName':config['get'](_0x13336a(0x15b))};}export function setUser(_0x198db4,_0x4ce27f,_0x942377){const _0x18465f=a53_0x19186e;config[_0x18465f(0x169)](_0x18465f(0x170),_0x198db4),config[_0x18465f(0x169)](_0x18465f(0x16a),_0x4ce27f),config[_0x18465f(0x169)]('displayName',_0x942377);}export function clearUser(){const _0x5bafbc=a53_0x19186e;config[_0x5bafbc(0x162)](_0x5bafbc(0x170)),config[_0x5bafbc(0x162)](_0x5bafbc(0x16a)),config['delete'](_0x5bafbc(0x15b));}export function getSelectedModel(){const _0x5b6a8c=a53_0x19186e;return config[_0x5b6a8c(0x168)](_0x5b6a8c(0x173))||'gemini-2.5-flash';}export function setSelectedModel(_0x48e269){const _0xbe58a4=a53_0x19186e;config['set'](_0xbe58a4(0x173),_0x48e269);}export function getTheme(){const _0x3f52ac=a53_0x19186e;return config['get'](_0x3f52ac(0x160))||_0x3f52ac(0x172);}export function setTheme(_0x292b25){const _0x32a20a=a53_0x19186e;config[_0x32a20a(0x169)](_0x32a20a(0x160),_0x292b25);}export function getRules(){const _0x5187c5=a53_0x19186e;return config[_0x5187c5(0x168)](_0x5187c5(0x174))||[];}export function addRule(_0x58bc42){const _0x42aee3=a53_0x19186e,_0x5871a6=getRules();_0x5871a6['push'](_0x58bc42),config[_0x42aee3(0x169)](_0x42aee3(0x174),_0x5871a6);}function a53_0x2295(_0x1eaa1e,_0x4fd14e){_0x1eaa1e=_0x1eaa1e-0x159;const _0x4bf5d7=a53_0x4bf5();let _0x2295c6=_0x4bf5d7[_0x1eaa1e];return _0x2295c6;}export function clearRules(){const _0x2ec74b=a53_0x19186e;config[_0x2ec74b(0x169)](_0x2ec74b(0x174),[]);}export function getKnowledge(){const _0x30a9bf=a53_0x19186e,_0x127e9d=config['get'](_0x30a9bf(0x159));if(!_0x127e9d||_0x127e9d['length']===0x0){const _0x1fd3a7=[_0x30a9bf(0x164),_0x30a9bf(0x16b),'Default\x20to\x20Server\x20Components.\x20Only\x20add\x20\x27use\x20client\x27\x20when\x20hooks\x20(useState,\x20useEffect)\x20or\x20DOM\x20event\x20listeners\x20are\x20strictly\x20necessary.',_0x30a9bf(0x165),_0x30a9bf(0x163)];return config[_0x30a9bf(0x169)](_0x30a9bf(0x159),_0x1fd3a7),_0x1fd3a7;}return _0x127e9d||[];}export function addKnowledge(_0x1020d5){const _0x4180ba=a53_0x19186e,_0x56a224=getKnowledge();_0x56a224['push'](_0x1020d5),config[_0x4180ba(0x169)]('knowledge',_0x56a224);}export function clearKnowledge(){const _0x178319=a53_0x19186e;config[_0x178319(0x169)](_0x178319(0x159),[]);}export function isLoggedIn(){const _0x1edf5b=a53_0x19186e;return!!config[_0x1edf5b(0x168)]('token')&&!!config[_0x1edf5b(0x168)]('userId');}export function logout(){clearToken(),clearUser();}export function wipeAll(){const _0x6b9f13=a53_0x19186e;config[_0x6b9f13(0x15e)]();}function a53_0x4bf5(){const _0x231a22=['343531pWVYHI','57myptfj','userId','210wzVGbL','woozlit_blue','selectedModel','rules','40kouuPZ','knowledge','81433mlKQgr','displayName','449037nEdMPF','token','clear','2cvjfTc','theme','2052470IirIRG','delete','Follow\x20mobile-first\x20responsive\x20design\x20patterns.\x20Build\x20clean,\x20minimal\x20UI\x20components\x20using\x20Tailwind\x20CSS.','You\x20are\x20an\x20expert\x20Next.js\x2015,\x20React\x2019,\x20and\x20Tailwind\x20CSS\x20developer.','Use\x20Server\x20Actions\x20for\x20data\x20mutations\x20and\x20fetching.\x20Avoid\x20traditional\x20API\x20routes\x20unless\x20building\x20external\x20standard\x20REST\x20endpoints.','2160746dyBYiE','2308176xNJTTZ','get','set','email','Use\x20the\x20App\x20Router\x20(app/\x20directory)\x20exclusively.\x20Avoid\x20the\x20pages/\x20directory.','woozlit-cli','44968WGjEiG'];a53_0x4bf5=function(){return _0x231a22;};return a53_0x4bf5();}
@@ -1 +1 @@
1
- const a54_0x38c020=a54_0x5bb7;(function(_0x59e9b7,_0xb1a178){const _0x5b160a=a54_0x5bb7,_0x184a05=_0x59e9b7();while(!![]){try{const _0x1c15a4=-parseInt(_0x5b160a(0x1c6))/0x1*(-parseInt(_0x5b160a(0x1d8))/0x2)+-parseInt(_0x5b160a(0x1be))/0x3+parseInt(_0x5b160a(0x1c9))/0x4*(-parseInt(_0x5b160a(0x1c4))/0x5)+-parseInt(_0x5b160a(0x1c3))/0x6+-parseInt(_0x5b160a(0x1d6))/0x7+-parseInt(_0x5b160a(0x1d1))/0x8+parseInt(_0x5b160a(0x1c8))/0x9;if(_0x1c15a4===_0xb1a178)break;else _0x184a05['push'](_0x184a05['shift']());}catch(_0x2aea8a){_0x184a05['push'](_0x184a05['shift']());}}}(a54_0x5948,0xce5eb));import a54_0x32af28 from'chalk';function a54_0x5948(){const _0x51162d=['log','3573960GaeaIe','...','\x20\x20Failed\x20to\x20auto-update.\x20Please\x20run:\x20npm\x20install\x20-g\x20woozlit','split','dist-tags','305494OluFLI','gray','614idQIqX','\x20\x20✔\x20Woozlit\x20updated\x20successfully!','\x20→\x20','child_process','223716MLDbQB','application/json','json','map','\x20\x20Update\x20Available!\x20','112644UmcEDM','37915pstrNW','dim','503cgCtbb','repeat','21435489NCUQfq','584HwMzPE','\x20\x20Auto-updating\x20to\x20version\x20','https://registry.npmjs.org/woozlit','timeout','2.2.0','latest','red'];a54_0x5948=function(){return _0x51162d;};return a54_0x5948();}const CURRENT_VERSION=a54_0x38c020(0x1cd);function a54_0x5bb7(_0x4a2c86,_0x5a6556){_0x4a2c86=_0x4a2c86-0x1bb;const _0x594815=a54_0x5948();let _0x5bb7ed=_0x594815[_0x4a2c86];return _0x5bb7ed;}export async function checkForUpdate(){const _0x336891=a54_0x38c020;try{const _0xd59f4c=await fetch(_0x336891(0x1cb),{'headers':{'Accept':_0x336891(0x1bf)},'signal':AbortSignal[_0x336891(0x1cc)](0x5dc)});if(!_0xd59f4c['ok'])return;const _0x2006dd=await _0xd59f4c[_0x336891(0x1c0)](),_0x537f3a=_0x2006dd[_0x336891(0x1d5)]?.[_0x336891(0x1ce)];_0x537f3a&&_0x537f3a!==CURRENT_VERSION&&(isNewer(_0x537f3a,CURRENT_VERSION)&&printUpdateBox(_0x537f3a,CURRENT_VERSION));}catch{}}function isNewer(_0x24f8c5,_0x1e0b23){const _0x35dc95=a54_0x38c020,_0x19737b=_0x24f8c5['split']('.')[_0x35dc95(0x1c1)](Number),_0x1ff235=_0x1e0b23[_0x35dc95(0x1d4)]('.')[_0x35dc95(0x1c1)](Number);for(let _0x4308ac=0x0;_0x4308ac<0x3;_0x4308ac++){if(_0x19737b[_0x4308ac]>_0x1ff235[_0x4308ac])return!![];if(_0x19737b[_0x4308ac]<_0x1ff235[_0x4308ac])return![];}return![];}function printUpdateBox(_0x43647b,_0x31441b){const _0x41dc79=a54_0x38c020,_0x37e7de=a54_0x32af28['yellow']('─'[_0x41dc79(0x1c7)](0x32));console['log'](),console[_0x41dc79(0x1d0)](_0x37e7de),console[_0x41dc79(0x1d0)](a54_0x32af28['yellow'](_0x41dc79(0x1c2)+a54_0x32af28[_0x41dc79(0x1c5)](_0x31441b)+_0x41dc79(0x1bc)+a54_0x32af28['green'](_0x43647b))),console[_0x41dc79(0x1d0)](a54_0x32af28[_0x41dc79(0x1d7)](_0x41dc79(0x1ca)+_0x43647b+_0x41dc79(0x1d2))),console[_0x41dc79(0x1d0)](_0x37e7de),console['log']();try{const {execSync:_0x434eaa}=require(_0x41dc79(0x1bd));_0x434eaa('npm\x20install\x20-g\x20woozlit',{'stdio':'inherit'}),console[_0x41dc79(0x1d0)](),console[_0x41dc79(0x1d0)](a54_0x32af28['green'](_0x41dc79(0x1bb))),console['log'](a54_0x32af28[_0x41dc79(0x1c5)]('\x20\x20Please\x20restart\x20the\x20CLI\x20to\x20use\x20the\x20new\x20version.')),console[_0x41dc79(0x1d0)](),process['exit'](0x0);}catch(_0x3de066){console['error'](a54_0x32af28[_0x41dc79(0x1cf)](_0x41dc79(0x1d3)));}}
1
+ function a54_0x11b7(){const _0x3764f1=['child_process','154044QJLmLT','\x20\x20Update\x20Available!\x20','map','521552MsCrzP','log','exit','2488504WIlSiM','split','2.2.0','json','https://registry.npmjs.org/woozlit','application/json','\x20\x20Please\x20restart\x20the\x20CLI\x20to\x20use\x20the\x20new\x20version.','8466687kVeBge','green','5sADNTT','red','error','repeat','npm\x20install\x20-g\x20woozlit','...','yellow','1437543ycKKJW','3043938ZPSwXA','1142336HWKWIo','28EmNOcj','dist-tags','dim','inherit','\x20\x20Failed\x20to\x20auto-update.\x20Please\x20run:\x20npm\x20install\x20-g\x20woozlit','timeout'];a54_0x11b7=function(){return _0x3764f1;};return a54_0x11b7();}const a54_0x2ff96d=a54_0x3257;function a54_0x3257(_0x3add2c,_0xe40a92){_0x3add2c=_0x3add2c-0xe5;const _0x11b770=a54_0x11b7();let _0x3257dd=_0x11b770[_0x3add2c];return _0x3257dd;}(function(_0x2217bd,_0x5a961b){const _0x574bca=a54_0x3257,_0x3e88c8=_0x2217bd();while(!![]){try{const _0x3705a9=parseInt(_0x574bca(0xf4))/0x1+-parseInt(_0x574bca(0xf1))/0x2+-parseInt(_0x574bca(0xe7))/0x3+-parseInt(_0x574bca(0xf7))/0x4*(parseInt(_0x574bca(0x100))/0x5)+-parseInt(_0x574bca(0xe8))/0x6+parseInt(_0x574bca(0xea))/0x7*(parseInt(_0x574bca(0xe9))/0x8)+parseInt(_0x574bca(0xfe))/0x9;if(_0x3705a9===_0x5a961b)break;else _0x3e88c8['push'](_0x3e88c8['shift']());}catch(_0x28db30){_0x3e88c8['push'](_0x3e88c8['shift']());}}}(a54_0x11b7,0x54ea3));import a54_0x15a294 from'chalk';const CURRENT_VERSION=a54_0x2ff96d(0xf9);export async function checkForUpdate(){const _0x2faa3b=a54_0x2ff96d;try{const _0x3e4f3e=await fetch(_0x2faa3b(0xfb),{'headers':{'Accept':_0x2faa3b(0xfc)},'signal':AbortSignal[_0x2faa3b(0xef)](0x5dc)});if(!_0x3e4f3e['ok'])return;const _0x29124d=await _0x3e4f3e[_0x2faa3b(0xfa)](),_0x3d7053=_0x29124d[_0x2faa3b(0xeb)]?.['latest'];_0x3d7053&&_0x3d7053!==CURRENT_VERSION&&(isNewer(_0x3d7053,CURRENT_VERSION)&&printUpdateBox(_0x3d7053,CURRENT_VERSION));}catch{}}function isNewer(_0x363331,_0x3599e1){const _0x58fdb0=a54_0x2ff96d,_0x3b6d31=_0x363331[_0x58fdb0(0xf8)]('.')[_0x58fdb0(0xf3)](Number),_0x4a63c9=_0x3599e1['split']('.')['map'](Number);for(let _0x59881c=0x0;_0x59881c<0x3;_0x59881c++){if(_0x3b6d31[_0x59881c]>_0x4a63c9[_0x59881c])return!![];if(_0x3b6d31[_0x59881c]<_0x4a63c9[_0x59881c])return![];}return![];}function printUpdateBox(_0x28b738,_0x32c9d2){const _0x11c24b=a54_0x2ff96d,_0x31039f=a54_0x15a294[_0x11c24b(0xe6)]('─'[_0x11c24b(0x103)](0x32));console['log'](),console[_0x11c24b(0xf5)](_0x31039f),console[_0x11c24b(0xf5)](a54_0x15a294[_0x11c24b(0xe6)](_0x11c24b(0xf2)+a54_0x15a294[_0x11c24b(0xec)](_0x32c9d2)+'\x20→\x20'+a54_0x15a294[_0x11c24b(0xff)](_0x28b738))),console[_0x11c24b(0xf5)](a54_0x15a294['gray']('\x20\x20Auto-updating\x20to\x20version\x20'+_0x28b738+_0x11c24b(0xe5))),console[_0x11c24b(0xf5)](_0x31039f),console[_0x11c24b(0xf5)]();try{const {execSync:_0x182732}=require(_0x11c24b(0xf0));_0x182732(_0x11c24b(0x104),{'stdio':_0x11c24b(0xed)}),console[_0x11c24b(0xf5)](),console[_0x11c24b(0xf5)](a54_0x15a294[_0x11c24b(0xff)]('\x20\x20✔\x20Woozlit\x20updated\x20successfully!')),console[_0x11c24b(0xf5)](a54_0x15a294[_0x11c24b(0xec)](_0x11c24b(0xfd))),console[_0x11c24b(0xf5)](),process[_0x11c24b(0xf6)](0x0);}catch(_0x45674a){console[_0x11c24b(0x102)](a54_0x15a294[_0x11c24b(0x101)](_0x11c24b(0xee)));}}
@@ -1 +1 @@
1
- function a55_0x186a(){const _0x11ff31=['woozlit_new','/version.json','2VBAziv','length','info','warn','map','3923514AeHsld','319HnUeVA','...','10998UvkqBt','platform','woozlit','Checking\x20for\x20updates...','split','423137koTOMv','760Tzzjrx','408497afOmNo','8adLQxz','argv','197930HeHdvw','\x20\x20Run:\x20woozlit\x20update','version','3774915BitNvd','darwin','win','linux','12dmKXaa','arrayBuffer','downloads','success','timeout','error','Updated\x20to\x20v','win32','from','200166AsfUng','20lRMRXU','mac','Download\x20failed','No\x20download\x20available\x20for\x20your\x20platform','Failed\x20to\x20check\x20for\x20updates'];a55_0x186a=function(){return _0x11ff31;};return a55_0x186a();}(function(_0x3c976e,_0xf4e98b){const _0x3d3736=a55_0x397a,_0x4b03f9=_0x3c976e();while(!![]){try{const _0x1b2559=parseInt(_0x3d3736(0x184))/0x1*(parseInt(_0x3d3736(0x175))/0x2)+-parseInt(_0x3d3736(0x197))/0x3*(-parseInt(_0x3d3736(0x198))/0x4)+-parseInt(_0x3d3736(0x183))/0x5*(-parseInt(_0x3d3736(0x17d))/0x6)+-parseInt(_0x3d3736(0x17a))/0x7+-parseInt(_0x3d3736(0x185))/0x8*(-parseInt(_0x3d3736(0x18a))/0x9)+parseInt(_0x3d3736(0x187))/0xa*(-parseInt(_0x3d3736(0x17b))/0xb)+-parseInt(_0x3d3736(0x18e))/0xc*(-parseInt(_0x3d3736(0x182))/0xd);if(_0x1b2559===_0xf4e98b)break;else _0x4b03f9['push'](_0x4b03f9['shift']());}catch(_0xd4493d){_0x4b03f9['push'](_0x4b03f9['shift']());}}}(a55_0x186a,0x52920));import*as a55_0x2e7aa1 from'../ui/output.js';const UPDATE_URL='https://cli.woozlit.com';export async function checkForUpdates(_0x579985){const _0x5a8975=a55_0x397a;try{const _0x25a6ff=await fetch(UPDATE_URL+'/version.json',{'signal':AbortSignal[_0x5a8975(0x192)](0x1388)});if(!_0x25a6ff['ok'])return;const _0x29374c=await _0x25a6ff['json']();_0x29374c['version']!==_0x579985&&isNewer(_0x29374c[_0x5a8975(0x189)],_0x579985)&&(a55_0x2e7aa1[_0x5a8975(0x178)]('Update\x20available:\x20v'+_0x579985+'\x20->\x20v'+_0x29374c[_0x5a8975(0x189)]),a55_0x2e7aa1['dim'](_0x5a8975(0x188)));}catch{}}function a55_0x397a(_0x3d1c3b,_0x5cc084){_0x3d1c3b=_0x3d1c3b-0x16f;const _0x186a6d=a55_0x186a();let _0x397af9=_0x186a6d[_0x3d1c3b];return _0x397af9;}export async function performUpdate(){const _0x2dc903=a55_0x397a;try{a55_0x2e7aa1[_0x2dc903(0x177)](_0x2dc903(0x180));const _0x49b08a=await fetch(UPDATE_URL+_0x2dc903(0x174),{'signal':AbortSignal[_0x2dc903(0x192)](0x2710)});if(!_0x49b08a['ok'])return a55_0x2e7aa1[_0x2dc903(0x193)](_0x2dc903(0x172)),![];const _0x342868=await _0x49b08a['json'](),_0x15ac03=process[_0x2dc903(0x17e)];let _0x1ad093='';if(_0x15ac03===_0x2dc903(0x195))_0x1ad093=_0x342868[_0x2dc903(0x190)][_0x2dc903(0x18c)];else{if(_0x15ac03===_0x2dc903(0x18b))_0x1ad093=_0x342868[_0x2dc903(0x190)][_0x2dc903(0x16f)];else _0x1ad093=_0x342868[_0x2dc903(0x190)][_0x2dc903(0x18d)];}if(!_0x1ad093)return a55_0x2e7aa1[_0x2dc903(0x193)](_0x2dc903(0x171)),![];a55_0x2e7aa1[_0x2dc903(0x177)]('Downloading\x20v'+_0x342868['version']+_0x2dc903(0x17c));const _0x4801a6=_0x15ac03===_0x2dc903(0x195),_0x271dd2=_0x4801a6?'.exe':'',_0x3fb3a2=_0x2dc903(0x17f)+_0x271dd2,_0x55296a=_0x2dc903(0x173)+_0x271dd2,_0x656ea9=await fetch(_0x1ad093,{'signal':AbortSignal[_0x2dc903(0x192)](0xea60)});if(!_0x656ea9['ok'])return a55_0x2e7aa1['error'](_0x2dc903(0x170)),![];const {writeFileSync:_0x3bb824,renameSync:_0x5050d0,chmodSync:_0x4e2834}=await import('fs'),_0x264459=Buffer[_0x2dc903(0x196)](await _0x656ea9[_0x2dc903(0x18f)]()),_0x3c924f=process[_0x2dc903(0x186)][0x0],{dirname:_0xeaa0c7,join:_0x575793}=await import('path'),_0x5a75b6=_0xeaa0c7(_0x3c924f),_0x51bf2b=_0x575793(_0x5a75b6,_0x55296a);_0x3bb824(_0x51bf2b,_0x264459);if(!_0x4801a6)_0x4e2834(_0x51bf2b,0x1ed);try{_0x5050d0(_0x3c924f,_0x575793(_0x5a75b6,'woozlit_old'+_0x271dd2)),_0x5050d0(_0x51bf2b,_0x575793(_0x5a75b6,_0x3fb3a2));}catch{_0x5050d0(_0x51bf2b,_0x575793(_0x5a75b6,_0x3fb3a2));}return a55_0x2e7aa1[_0x2dc903(0x191)](_0x2dc903(0x194)+_0x342868['version']),!![];}catch(_0x145873){return a55_0x2e7aa1['error']('Update\x20failed:\x20'+_0x145873),![];}}function isNewer(_0x2dbcaf,_0x108000){const _0x2c9e50=a55_0x397a,_0x22c612=_0x2dbcaf[_0x2c9e50(0x181)]('.')[_0x2c9e50(0x179)](Number),_0xb8c3b6=_0x108000[_0x2c9e50(0x181)]('.')[_0x2c9e50(0x179)](Number);for(let _0x4b635d=0x0;_0x4b635d<Math['max'](_0x22c612['length'],_0xb8c3b6[_0x2c9e50(0x176)]);_0x4b635d++){const _0x32d50f=_0x22c612[_0x4b635d]||0x0,_0x119741=_0xb8c3b6[_0x4b635d]||0x0;if(_0x32d50f>_0x119741)return!![];if(_0x32d50f<_0x119741)return![];}return![];}
1
+ (function(_0xd49231,_0x1b4ecd){const _0x2699ec=a55_0x2aec,_0x4acff0=_0xd49231();while(!![]){try{const _0x234439=-parseInt(_0x2699ec(0x18b))/0x1*(parseInt(_0x2699ec(0x19b))/0x2)+parseInt(_0x2699ec(0x18e))/0x3+-parseInt(_0x2699ec(0x18f))/0x4*(parseInt(_0x2699ec(0x195))/0x5)+parseInt(_0x2699ec(0x183))/0x6+parseInt(_0x2699ec(0x198))/0x7+-parseInt(_0x2699ec(0x181))/0x8+parseInt(_0x2699ec(0x19c))/0x9;if(_0x234439===_0x1b4ecd)break;else _0x4acff0['push'](_0x4acff0['shift']());}catch(_0x190fde){_0x4acff0['push'](_0x4acff0['shift']());}}}(a55_0x2f69,0xb6aff));import*as a55_0x55260d from'../ui/output.js';function a55_0x2aec(_0x1a5af8,_0x215104){_0x1a5af8=_0x1a5af8-0x17c;const _0x2f694a=a55_0x2f69();let _0x2aec36=_0x2f694a[_0x1a5af8];return _0x2aec36;}const UPDATE_URL='https://cli.woozlit.com';export async function checkForUpdates(_0x1f98f6){const _0x43eaaa=a55_0x2aec;try{const _0x1ad2c1=await fetch(UPDATE_URL+_0x43eaaa(0x18a),{'signal':AbortSignal[_0x43eaaa(0x190)](0x1388)});if(!_0x1ad2c1['ok'])return;const _0x5a1670=await _0x1ad2c1[_0x43eaaa(0x186)]();_0x5a1670['version']!==_0x1f98f6&&isNewer(_0x5a1670[_0x43eaaa(0x194)],_0x1f98f6)&&(a55_0x55260d['warn'](_0x43eaaa(0x191)+_0x1f98f6+'\x20->\x20v'+_0x5a1670['version']),a55_0x55260d[_0x43eaaa(0x19a)](_0x43eaaa(0x17d)));}catch{}}export async function performUpdate(){const _0x1210c0=a55_0x2aec;try{a55_0x55260d[_0x1210c0(0x197)](_0x1210c0(0x180));const _0x5a6b2c=await fetch(UPDATE_URL+_0x1210c0(0x18a),{'signal':AbortSignal[_0x1210c0(0x190)](0x2710)});if(!_0x5a6b2c['ok'])return a55_0x55260d['error']('Failed\x20to\x20check\x20for\x20updates'),![];const _0x3cad8f=await _0x5a6b2c['json'](),_0x1994d4=process[_0x1210c0(0x187)];let _0x329c8a='';if(_0x1994d4===_0x1210c0(0x196))_0x329c8a=_0x3cad8f[_0x1210c0(0x199)]['win'];else{if(_0x1994d4==='darwin')_0x329c8a=_0x3cad8f['downloads'][_0x1210c0(0x189)];else _0x329c8a=_0x3cad8f[_0x1210c0(0x199)][_0x1210c0(0x19d)];}if(!_0x329c8a)return a55_0x55260d[_0x1210c0(0x185)]('No\x20download\x20available\x20for\x20your\x20platform'),![];a55_0x55260d['info']('Downloading\x20v'+_0x3cad8f[_0x1210c0(0x194)]+'...');const _0x559c5b=_0x1994d4===_0x1210c0(0x196),_0x5d618a=_0x559c5b?'.exe':'',_0x4cf7cd=_0x1210c0(0x18c)+_0x5d618a,_0x3f7c59=_0x1210c0(0x192)+_0x5d618a,_0x10ad16=await fetch(_0x329c8a,{'signal':AbortSignal['timeout'](0xea60)});if(!_0x10ad16['ok'])return a55_0x55260d[_0x1210c0(0x185)](_0x1210c0(0x17e)),![];const {writeFileSync:_0x45bf36,renameSync:_0x347d23,chmodSync:_0x46d1eb}=await import('fs'),_0x67f946=Buffer['from'](await _0x10ad16[_0x1210c0(0x182)]()),_0x1e234b=process[_0x1210c0(0x184)][0x0],{dirname:_0x26bc3f,join:_0x4059b8}=await import(_0x1210c0(0x188)),_0x41b90d=_0x26bc3f(_0x1e234b),_0x3c180e=_0x4059b8(_0x41b90d,_0x3f7c59);_0x45bf36(_0x3c180e,_0x67f946);if(!_0x559c5b)_0x46d1eb(_0x3c180e,0x1ed);try{_0x347d23(_0x1e234b,_0x4059b8(_0x41b90d,'woozlit_old'+_0x5d618a)),_0x347d23(_0x3c180e,_0x4059b8(_0x41b90d,_0x4cf7cd));}catch{_0x347d23(_0x3c180e,_0x4059b8(_0x41b90d,_0x4cf7cd));}return a55_0x55260d['success']('Updated\x20to\x20v'+_0x3cad8f[_0x1210c0(0x194)]),!![];}catch(_0x12fec5){return a55_0x55260d[_0x1210c0(0x185)]('Update\x20failed:\x20'+_0x12fec5),![];}}function isNewer(_0x157b32,_0xe535e0){const _0x5de20b=a55_0x2aec,_0x257fe9=_0x157b32['split']('.')[_0x5de20b(0x17c)](Number),_0x31ce39=_0xe535e0[_0x5de20b(0x18d)]('.')['map'](Number);for(let _0x34e68e=0x0;_0x34e68e<Math[_0x5de20b(0x17f)](_0x257fe9[_0x5de20b(0x193)],_0x31ce39[_0x5de20b(0x193)]);_0x34e68e++){const _0x455654=_0x257fe9[_0x34e68e]||0x0,_0x448fd9=_0x31ce39[_0x34e68e]||0x0;if(_0x455654>_0x448fd9)return!![];if(_0x455654<_0x448fd9)return![];}return![];}function a55_0x2f69(){const _0x48ee40=['Checking\x20for\x20updates...','8113616OUaIml','arrayBuffer','4608768unRnwx','argv','error','json','platform','path','mac','/version.json','88134qbNfKS','woozlit','split','4025379EgIxun','24XdILIx','timeout','Update\x20available:\x20v','woozlit_new','length','version','187890qFgSSm','win32','info','4919565SRSnpd','downloads','dim','20pKmfxO','509229SridZn','linux','map','\x20\x20Run:\x20woozlit\x20update','Download\x20failed','max'];a55_0x2f69=function(){return _0x48ee40;};return a55_0x2f69();}