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.
- package/dist/auth/login.js +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/server.js +1 -1
- package/dist/browser/tools.js +1 -1
- package/dist/chat/agent.js +1 -1
- package/dist/config/mcp.js +1 -1
- package/dist/config/settings.js +1 -1
- package/dist/discord/client.js +1 -1
- package/dist/discord/config.js +1 -1
- package/dist/discord/index.js +1 -1
- package/dist/discord/setup.js +1 -1
- package/dist/email/config.js +1 -1
- package/dist/email/index.js +1 -1
- package/dist/email/service.js +1 -1
- package/dist/email/setup.js +1 -1
- package/dist/github/api.js +1 -1
- package/dist/github/auth.js +1 -1
- package/dist/github/auto-setup.js +1 -1
- package/dist/github/index.js +1 -1
- package/dist/github/manual-setup.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp-servers/computer-use.js +1 -1
- package/dist/services/bot-manager.js +1 -1
- package/dist/services/notifications.js +1 -1
- package/dist/services/voice-agent.js +1 -1
- package/dist/telegram/bot.js +1 -1
- package/dist/telegram/config.js +1 -1
- package/dist/telegram/index.js +1 -1
- package/dist/telegram/reminders.js +1 -1
- package/dist/telegram/setup.js +1 -1
- package/dist/tools/command.js +1 -1
- package/dist/tools/file.js +1 -1
- package/dist/tools/git.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/knowledge.js +1 -1
- package/dist/tools/mcp.js +1 -1
- package/dist/tools/network.js +1 -1
- package/dist/tools/project.js +1 -1
- package/dist/tools/rollback.js +1 -1
- package/dist/tools/rules.js +1 -1
- package/dist/tools/system.js +1 -1
- package/dist/twilio/config.js +1 -1
- package/dist/twilio/index.js +1 -1
- package/dist/twilio/server.js +1 -1
- package/dist/twilio/setup.js +1 -1
- package/dist/ui/output.js +1 -1
- package/dist/ui/select.js +1 -1
- package/dist/ui/themes.js +1 -1
- package/dist/utils/api.js +1 -1
- package/dist/utils/chat-history.js +1 -1
- package/dist/utils/history.js +1 -1
- package/dist/utils/mcp-installer.js +1 -1
- package/dist/utils/platform.js +1 -1
- package/dist/utils/storage.js +1 -1
- package/dist/utils/update-check.js +1 -1
- package/dist/utils/updater.js +1 -1
- package/dist/verify_repro.js +1 -1
- 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(
|
|
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
|
|
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(
|
|
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
|
|
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),{});}
|
package/dist/utils/history.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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
|
|
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));}
|
package/dist/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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+')';}
|
package/dist/utils/storage.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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
|
|
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)));}}
|
package/dist/utils/updater.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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();}
|