woozlit 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +30 -111
  2. package/dist/auth/login.js +1 -1
  3. package/dist/browser/index.d.ts +78 -0
  4. package/dist/browser/index.js +1 -0
  5. package/dist/browser/server.d.ts +13 -0
  6. package/dist/browser/server.js +1 -0
  7. package/dist/browser/tools.d.ts +13 -0
  8. package/dist/browser/tools.js +1 -0
  9. package/dist/chat/agent.js +1 -1
  10. package/dist/config/mcp.js +1 -1
  11. package/dist/config/settings.js +1 -1
  12. package/dist/discord/client.d.ts +3 -0
  13. package/dist/discord/client.js +1 -0
  14. package/dist/discord/config.d.ts +5 -0
  15. package/dist/discord/config.js +1 -0
  16. package/dist/discord/index.d.ts +3 -0
  17. package/dist/discord/index.js +1 -0
  18. package/dist/discord/setup.d.ts +1 -0
  19. package/dist/discord/setup.js +1 -0
  20. package/dist/email/config.d.ts +31 -0
  21. package/dist/email/config.js +1 -0
  22. package/dist/email/index.d.ts +3 -0
  23. package/dist/email/index.js +1 -0
  24. package/dist/email/service.d.ts +4 -0
  25. package/dist/email/service.js +1 -0
  26. package/dist/email/setup.d.ts +1 -0
  27. package/dist/email/setup.js +1 -0
  28. package/dist/github/api.d.ts +25 -0
  29. package/dist/github/api.js +1 -0
  30. package/dist/github/auth.d.ts +4 -0
  31. package/dist/github/auth.js +1 -0
  32. package/dist/github/auto-setup.d.ts +1 -0
  33. package/dist/github/auto-setup.js +1 -0
  34. package/dist/github/index.d.ts +1 -0
  35. package/dist/github/index.js +1 -0
  36. package/dist/github/manual-setup.d.ts +1 -0
  37. package/dist/github/manual-setup.js +1 -0
  38. package/dist/index.js +1 -1
  39. package/dist/mcp-servers/computer-use.js +1 -1
  40. package/dist/services/bot-manager.d.ts +13 -0
  41. package/dist/services/bot-manager.js +1 -0
  42. package/dist/services/voice-agent.d.ts +6 -0
  43. package/dist/services/voice-agent.js +1 -0
  44. package/dist/telegram/bot.js +1 -1
  45. package/dist/telegram/config.js +1 -1
  46. package/dist/telegram/index.d.ts +1 -0
  47. package/dist/telegram/index.js +1 -1
  48. package/dist/telegram/reminders.d.ts +11 -0
  49. package/dist/telegram/reminders.js +1 -0
  50. package/dist/telegram/setup.d.ts +1 -0
  51. package/dist/telegram/setup.js +1 -0
  52. package/dist/tools/command.js +1 -1
  53. package/dist/tools/file.js +1 -1
  54. package/dist/tools/index.d.ts +1 -0
  55. package/dist/tools/index.js +1 -1
  56. package/dist/tools/mcp.js +1 -1
  57. package/dist/tools/rollback.js +1 -1
  58. package/dist/tools/rules.js +1 -1
  59. package/dist/twilio/config.d.ts +11 -0
  60. package/dist/twilio/config.js +1 -0
  61. package/dist/twilio/index.d.ts +3 -0
  62. package/dist/twilio/index.js +1 -0
  63. package/dist/twilio/server.d.ts +5 -0
  64. package/dist/twilio/server.js +1 -0
  65. package/dist/twilio/setup.d.ts +1 -0
  66. package/dist/twilio/setup.js +1 -0
  67. package/dist/ui/output.d.ts +2 -2
  68. package/dist/ui/output.js +1 -1
  69. package/dist/ui/select.js +1 -1
  70. package/dist/ui/themes.d.ts +12 -0
  71. package/dist/ui/themes.js +1 -0
  72. package/dist/utils/api.js +1 -1
  73. package/dist/utils/history.js +1 -1
  74. package/dist/utils/mcp-installer.js +1 -1
  75. package/dist/utils/platform.js +1 -1
  76. package/dist/utils/storage.d.ts +3 -0
  77. package/dist/utils/storage.js +1 -1
  78. package/dist/utils/update-check.js +1 -1
  79. package/dist/verify_repro.d.ts +4 -0
  80. package/dist/verify_repro.js +1 -0
  81. package/package.json +21 -10
@@ -1 +1 @@
1
- (function(_0x316b15,_0xff78fe){var _0x4b8461=a8_0xc585,_0x2fb71e=_0x316b15();while(!![]){try{var _0x273994=-parseInt(_0x4b8461(0xc3))/0x1+parseInt(_0x4b8461(0xc4))/0x2+parseInt(_0x4b8461(0xbe))/0x3+-parseInt(_0x4b8461(0xc2))/0x4*(parseInt(_0x4b8461(0xc1))/0x5)+-parseInt(_0x4b8461(0xc5))/0x6+-parseInt(_0x4b8461(0xbf))/0x7*(parseInt(_0x4b8461(0xc0))/0x8)+parseInt(_0x4b8461(0xbd))/0x9;if(_0x273994===_0xff78fe)break;else _0x2fb71e['push'](_0x2fb71e['shift']());}catch(_0x2193b1){_0x2fb71e['push'](_0x2fb71e['shift']());}}}(a8_0x20b9,0xc2924));export*from'./config.js';function a8_0xc585(_0x1e1ce8,_0x41e564){_0x1e1ce8=_0x1e1ce8-0xbd;var _0x20b9a3=a8_0x20b9();var _0xc5854f=_0x20b9a3[_0x1e1ce8];return _0xc5854f;}function a8_0x20b9(){var _0x5a58e9=['2429658PZJRJL','30556431PAcdxW','88224BgXKhc','98YKjKLz','684760ZzLyiI','110Hmxjft','211084uRErLE','1035379vrtOwj','2344022KtYPBC'];a8_0x20b9=function(){return _0x5a58e9;};return a8_0x20b9();}export{startBot,stopBot,isBotRunning}from'./bot.js';
1
+ function a26_0x2433(){var _0x1a3308=['859870qyxSlj','11772747FfUhYB','36YmwMlH','274688MvRWeF','654yVEpjm','15260djIJUO','1421610NgIWtE','207123VYZUNg','1946002TzuFpJ'];a26_0x2433=function(){return _0x1a3308;};return a26_0x2433();}(function(_0x543472,_0x5c849a){var _0x1f5531=a26_0xfc2f,_0x21c591=_0x543472();while(!![]){try{var _0x548a01=-parseInt(_0x1f5531(0x117))/0x1+-parseInt(_0x1f5531(0x119))/0x2+parseInt(_0x1f5531(0x11e))/0x3*(parseInt(_0x1f5531(0x116))/0x4)+-parseInt(_0x1f5531(0x11a))/0x5*(-parseInt(_0x1f5531(0x11c))/0x6)+parseInt(_0x1f5531(0x118))/0x7+parseInt(_0x1f5531(0x11d))/0x8+parseInt(_0x1f5531(0x11b))/0x9;if(_0x548a01===_0x5c849a)break;else _0x21c591['push'](_0x21c591['shift']());}catch(_0x58a198){_0x21c591['push'](_0x21c591['shift']());}}}(a26_0x2433,0xcd4cf));export*from'./config.js';export{startBot,stopBot,isBotRunning}from'./bot.js';function a26_0xfc2f(_0x46e87c,_0x212e1c){_0x46e87c=_0x46e87c-0x116;var _0x243394=a26_0x2433();var _0xfc2f5d=_0x243394[_0x46e87c];return _0xfc2f5d;}export{setupTelegram}from'./setup.js';
@@ -0,0 +1,11 @@
1
+ import { Bot } from "grammy";
2
+ export interface Reminder {
3
+ id: string;
4
+ chatId: number;
5
+ timestamp: number;
6
+ message: string;
7
+ }
8
+ export declare function loadReminders(): Promise<void>;
9
+ export declare function saveReminders(): Promise<void>;
10
+ export declare function scheduleReminder(chatId: number, delayMinutes: number, message: string): Promise<string>;
11
+ export declare function checkReminders(bot: Bot): Promise<void>;
@@ -0,0 +1 @@
1
+ const a27_0x16167b=a27_0x44f5;(function(_0x1a195c,_0x287fde){const _0x390c28=a27_0x44f5,_0x205da4=_0x1a195c();while(!![]){try{const _0x13bf06=parseInt(_0x390c28(0x1f3))/0x1+parseInt(_0x390c28(0x1f5))/0x2+-parseInt(_0x390c28(0x1f0))/0x3+parseInt(_0x390c28(0x1eb))/0x4+parseInt(_0x390c28(0x1e4))/0x5*(-parseInt(_0x390c28(0x1d9))/0x6)+parseInt(_0x390c28(0x1de))/0x7*(parseInt(_0x390c28(0x1f1))/0x8)+-parseInt(_0x390c28(0x1f7))/0x9;if(_0x13bf06===_0x287fde)break;else _0x205da4['push'](_0x205da4['shift']());}catch(_0xe57588){_0x205da4['push'](_0x205da4['shift']());}}}(a27_0x2de9,0xbf9de));import{promises as a27_0x2a8a92}from'fs';function a27_0x2de9(){const _0x501818=['.woozlit','mkdir','USERPROFILE','sendMessage','858300zekMln','substring','utf-8','error','HOME','3974958IaPTDm','384Omlqmb','Reminder\x20set\x20for\x20','1519232edBkWg','random','2210302tHXySX','push','8334630UsFkvP','now','reminders.json','96ubeXQh','toString','length','parse','timestamp','42182TnlWQz','env','filter','Failed\x20to\x20send\x20reminder\x20to\x20','stringify',':\x20\x22','28840ejtjgn','readFile','writeFile'];a27_0x2de9=function(){return _0x501818;};return a27_0x2de9();}import{join}from'path';const WOOZLIT_DIR=join(process[a27_0x16167b(0x1df)][a27_0x16167b(0x1e9)]||process[a27_0x16167b(0x1df)][a27_0x16167b(0x1ef)]||'.',a27_0x16167b(0x1e7)),REMINDERS_FILE=join(WOOZLIT_DIR,a27_0x16167b(0x1d8));let reminders=[];function a27_0x44f5(_0x558b3e,_0x277b68){_0x558b3e=_0x558b3e-0x1d7;const _0x2de9c6=a27_0x2de9();let _0x44f50c=_0x2de9c6[_0x558b3e];return _0x44f50c;}export async function loadReminders(){const _0x75275d=a27_0x16167b;try{const _0xc6dbe6=await a27_0x2a8a92[_0x75275d(0x1e5)](REMINDERS_FILE,_0x75275d(0x1ed));reminders=JSON[_0x75275d(0x1dc)](_0xc6dbe6);}catch{reminders=[];}}export async function saveReminders(){const _0x316e6e=a27_0x16167b;try{await a27_0x2a8a92[_0x316e6e(0x1e8)](WOOZLIT_DIR,{'recursive':!![]}),await a27_0x2a8a92[_0x316e6e(0x1e6)](REMINDERS_FILE,JSON[_0x316e6e(0x1e2)](reminders,null,0x2));}catch{}}export async function scheduleReminder(_0x28653a,_0x329d11,_0x4ed88c){const _0x12dc26=a27_0x16167b,_0x2ce1a5=Date[_0x12dc26(0x1d7)]()+_0x329d11*0x3c*0x3e8,_0x58bf0e={'id':Math[_0x12dc26(0x1f4)]()[_0x12dc26(0x1da)](0x24)[_0x12dc26(0x1ec)](0x7),'chatId':_0x28653a,'timestamp':_0x2ce1a5,'message':_0x4ed88c};if(reminders[_0x12dc26(0x1db)]===0x0)await loadReminders();reminders[_0x12dc26(0x1f6)](_0x58bf0e),await saveReminders();const _0x2847c9=new Date(_0x2ce1a5)['toLocaleTimeString']();return _0x12dc26(0x1f2)+_0x2847c9+_0x12dc26(0x1e3)+_0x4ed88c+'\x22';}export async function checkReminders(_0x37d067){const _0x104320=a27_0x16167b;if(reminders['length']===0x0)await loadReminders();const _0x2e054d=Date['now'](),_0x4de2c6=reminders[_0x104320(0x1e0)](_0x429420=>_0x429420[_0x104320(0x1dd)]>_0x2e054d),_0x9638a6=reminders[_0x104320(0x1e0)](_0x22622e=>_0x22622e[_0x104320(0x1dd)]<=_0x2e054d);if(_0x9638a6[_0x104320(0x1db)]>0x0){for(const _0x3406e0 of _0x9638a6){try{await _0x37d067['api'][_0x104320(0x1ea)](_0x3406e0['chatId'],'⏰\x20REMINDER:\x20'+_0x3406e0['message']);}catch(_0x269d01){console[_0x104320(0x1ee)](_0x104320(0x1e1)+_0x3406e0['chatId'],_0x269d01);}}reminders=_0x4de2c6,await saveReminders();}}
@@ -0,0 +1 @@
1
+ export declare function setupTelegram(): Promise<void>;
@@ -0,0 +1 @@
1
+ function a28_0x22cd(_0x4c781e,_0x465187){_0x4c781e=_0x4c781e-0x12f;const _0x55d24d=a28_0x55d2();let _0x22cdb0=_0x55d24d[_0x4c781e];return _0x22cdb0;}function a28_0x55d2(){const _0x385291=['setBotToken','success','7784280mRbRGH','5wyLwzv','22251474ByeQck','Restart\x20the\x20CLI\x20to\x20start\x20the\x20bot.','4662399OpFKQq','Get\x20your\x20token\x20from\x20@BotFather\x20on\x20Telegram.','Telegram\x20configuration\x20saved!','Setup\x20Telegram\x20Bot','7592984zokFsN','334kcAAOF','111234zsOvPe','10561302YZIRsH','You\x20can\x20add\x20your\x20Chat\x20ID\x20later\x20using\x20/telegram\x20allow\x20<id>\x20inside\x20the\x20CLI.','9102nNjzQp','Bot\x20Token:','addAllowedChatId','info'];a28_0x55d2=function(){return _0x385291;};return a28_0x55d2();}(function(_0xc27b08,_0xcdb03f){const _0x3484b4=a28_0x22cd,_0x1244a3=_0xc27b08();while(!![]){try{const _0x3f0dd8=parseInt(_0x3484b4(0x134))/0x1+parseInt(_0x3484b4(0x133))/0x2*(parseInt(_0x3484b4(0x137))/0x3)+-parseInt(_0x3484b4(0x13d))/0x4+-parseInt(_0x3484b4(0x13e))/0x5*(parseInt(_0x3484b4(0x135))/0x6)+parseInt(_0x3484b4(0x141))/0x7+parseInt(_0x3484b4(0x132))/0x8+parseInt(_0x3484b4(0x13f))/0x9;if(_0x3f0dd8===_0xcdb03f)break;else _0x1244a3['push'](_0x1244a3['shift']());}catch(_0x4a4f8b){_0x1244a3['push'](_0x1244a3['shift']());}}}(a28_0x55d2,0xf3f17));import{input}from'@inquirer/prompts';import*as a28_0x1dff79 from'./config.js';import*as a28_0x4f7a7b from'../ui/output.js';export async function setupTelegram(){const _0xf34271=a28_0x22cd;a28_0x4f7a7b[_0xf34271(0x13a)](_0xf34271(0x131)),a28_0x4f7a7b['dim'](_0xf34271(0x12f));const _0x1e4dbf=await input({'message':_0xf34271(0x138),'validate':_0x3a47d0=>_0x3a47d0['includes'](':')?!![]:'Invalid\x20token\x20format'});a28_0x1dff79[_0xf34271(0x13b)](_0x1e4dbf),a28_0x4f7a7b['warn']('You\x20also\x20need\x20to\x20allow\x20your\x20Telegram\x20User\x20ID.');const _0x51655c=await input({'message':'Your\x20Telegram\x20Chat\x20ID\x20(numeric).\x20Leave\x20empty\x20if\x20unknown:'});_0x51655c?a28_0x1dff79[_0xf34271(0x139)](parseInt(_0x51655c)):a28_0x4f7a7b[_0xf34271(0x13a)](_0xf34271(0x136)),a28_0x4f7a7b[_0xf34271(0x13c)](_0xf34271(0x130)),a28_0x4f7a7b['info'](_0xf34271(0x140));}
@@ -1 +1 @@
1
- (function(_0x5d0175,_0x7e8bf6){const _0x3ae7db=a9_0x531d,_0x474c67=_0x5d0175();while(!![]){try{const _0x468833=-parseInt(_0x3ae7db(0xfa))/0x1*(parseInt(_0x3ae7db(0x104))/0x2)+-parseInt(_0x3ae7db(0xfb))/0x3+-parseInt(_0x3ae7db(0xff))/0x4*(parseInt(_0x3ae7db(0xfe))/0x5)+parseInt(_0x3ae7db(0x123))/0x6*(-parseInt(_0x3ae7db(0x10a))/0x7)+-parseInt(_0x3ae7db(0x107))/0x8*(-parseInt(_0x3ae7db(0x10e))/0x9)+parseInt(_0x3ae7db(0x118))/0xa+parseInt(_0x3ae7db(0x111))/0xb;if(_0x468833===_0x7e8bf6)break;else _0x474c67['push'](_0x474c67['shift']());}catch(_0x9aa415){_0x474c67['push'](_0x474c67['shift']());}}}(a9_0x16cf,0xeb22e));import{spawn}from'child_process';const activeProcesses=new Map();function a9_0x16cf(){const _0x40b682=['stdout','24845oFypUE','1168gdtxtH','set','from','close','kill','12bTOwOq','message','/bin/sh','6600QofUKL','pipe','length','3610117hJigHJ','win32','child','data','13374zygJGx','cmd.exe','size','21020989OyzxpC','platform','pid','[PID\x20','cwd','slice','No\x20active\x20processes','6063590FnUVFe','\x0a[Process\x20running\x20in\x20background,\x20PID:\x20','output','Terminated\x20PID\x20','toString','env','write','has','unref','get','Sent\x20to\x20PID\x20','6UCVVyl','stdin','delete','29002LClbQt','1918497aeBvVE','keys'];a9_0x16cf=function(){return _0x40b682;};return a9_0x16cf();}export async function runCommand(_0x1c313e,_0x2b9265,_0x1587ff=![],_0x184326=0x7530){return new Promise(_0x20075b=>{const _0x495e2a=a9_0x531d,_0x51c034=process[_0x495e2a(0x112)]===_0x495e2a(0x10b),_0x3837ef=_0x51c034?_0x495e2a(0x10f):_0x495e2a(0x106),_0x3a84af=_0x51c034?'/c':'-c',_0x32ad36=spawn(_0x3837ef,[_0x3a84af,_0x1c313e],{'cwd':process[_0x495e2a(0x115)](),'env':process[_0x495e2a(0x11d)],'detached':_0x1587ff,'stdio':_0x495e2a(0x108)}),_0x2daf70=_0x32ad36[_0x495e2a(0x113)]||0x0;let _0x49a7f0='',_0x256c44='',_0x2b1ad8=![];_0x2daf70&&activeProcesses[_0x495e2a(0x100)](_0x2daf70,{'child':_0x32ad36,'output':''});const _0x5b7523=setTimeout(()=>{const _0x20ee3a=_0x495e2a;if(!_0x2b1ad8){_0x2b1ad8=!![];if(_0x1587ff&&_0x32ad36[_0x20ee3a(0x120)])_0x32ad36['unref']();_0x20075b({'success':!![],'stdout':_0x49a7f0+(_0x20ee3a(0x119)+_0x2daf70+']'),'stderr':_0x256c44,'exitCode':0x0,'pid':_0x2daf70});}},_0x184326);_0x32ad36[_0x495e2a(0xfd)]?.['on'](_0x495e2a(0x10d),_0x149636=>{const _0x3de254=_0x495e2a,_0x5cd179=_0x149636[_0x3de254(0x11c)]();_0x49a7f0+=_0x5cd179;if(_0x2daf70&&activeProcesses['has'](_0x2daf70)){const _0x53baa7=activeProcesses[_0x3de254(0x121)](_0x2daf70);_0x53baa7[_0x3de254(0x11a)]+=_0x5cd179;}if(!_0x2b1ad8&&_0x2b9265)_0x2b9265(_0x5cd179);}),_0x32ad36['stderr']?.['on'](_0x495e2a(0x10d),_0x4b53a7=>{const _0x47c7c1=_0x495e2a,_0x30507d=_0x4b53a7[_0x47c7c1(0x11c)]();_0x256c44+=_0x30507d;if(_0x2daf70&&activeProcesses[_0x47c7c1(0x11f)](_0x2daf70)){const _0x3c62bb=activeProcesses[_0x47c7c1(0x121)](_0x2daf70);_0x3c62bb[_0x47c7c1(0x11a)]+=_0x30507d;}if(!_0x2b1ad8&&_0x2b9265)_0x2b9265(_0x30507d);}),_0x32ad36['on'](_0x495e2a(0x102),_0x457d81=>{const _0x547427=_0x495e2a;clearTimeout(_0x5b7523);if(_0x2daf70)activeProcesses[_0x547427(0x125)](_0x2daf70);!_0x2b1ad8&&(_0x2b1ad8=!![],_0x20075b({'success':_0x457d81===0x0,'stdout':_0x49a7f0,'stderr':_0x256c44,'exitCode':_0x457d81||0x0,'pid':_0x2daf70}));}),_0x32ad36['on']('error',_0x4f6057=>{const _0x3e4c67=_0x495e2a;clearTimeout(_0x5b7523);if(_0x2daf70)activeProcesses[_0x3e4c67(0x125)](_0x2daf70);!_0x2b1ad8&&(_0x2b1ad8=!![],_0x20075b({'success':![],'stdout':_0x49a7f0,'stderr':_0x4f6057[_0x3e4c67(0x105)],'exitCode':0x1,'pid':_0x2daf70}));});});}export function readTerminalOutput(_0x1dc478){const _0x2e1eec=a9_0x531d,_0x5b7df5=Array[_0x2e1eec(0x101)](activeProcesses[_0x2e1eec(0xfc)]());if(_0x1dc478&&activeProcesses['has'](_0x1dc478)){const _0x246599=activeProcesses['get'](_0x1dc478);return{'output':_0x246599[_0x2e1eec(0x11a)][_0x2e1eec(0x116)](-0x7d0),'running':!![],'pids':_0x5b7df5};}let _0x30aca2='';for(const [_0x30bacd,_0x5d552f]of activeProcesses){_0x30aca2+=_0x2e1eec(0x114)+_0x30bacd+']\x0a'+_0x5d552f[_0x2e1eec(0x11a)][_0x2e1eec(0x116)](-0x3e8)+'\x0a';}return{'output':_0x30aca2||'No\x20active\x20processes','running':_0x5b7df5[_0x2e1eec(0x109)]>0x0,'pids':_0x5b7df5};}function a9_0x531d(_0x36a101,_0x941256){_0x36a101=_0x36a101-0xfa;const _0x16cf49=a9_0x16cf();let _0x531d64=_0x16cf49[_0x36a101];return _0x531d64;}export function sendTerminalInput(_0x4bdd75,_0x43c30f){const _0xa90123=a9_0x531d;if(_0x43c30f&&activeProcesses[_0xa90123(0x11f)](_0x43c30f)){const _0x23191b=activeProcesses[_0xa90123(0x121)](_0x43c30f);return _0x23191b[_0xa90123(0x10c)][_0xa90123(0x124)]?.[_0xa90123(0x11e)](_0x4bdd75+'\x0a'),{'success':!![],'message':_0xa90123(0x122)+_0x43c30f};}for(const [_0x1dc859,_0x55999e]of activeProcesses){return _0x55999e[_0xa90123(0x10c)]['stdin']?.[_0xa90123(0x11e)](_0x4bdd75+'\x0a'),{'success':!![],'message':_0xa90123(0x122)+_0x1dc859};}return{'success':![],'message':_0xa90123(0x117)};}export function terminateProcess(_0x47752a){const _0x49da84=a9_0x531d;if(_0x47752a&&activeProcesses[_0x49da84(0x11f)](_0x47752a)){const _0x11bded=activeProcesses[_0x49da84(0x121)](_0x47752a);return _0x11bded[_0x49da84(0x10c)][_0x49da84(0x103)](),activeProcesses[_0x49da84(0x125)](_0x47752a),{'success':!![],'message':_0x49da84(0x11b)+_0x47752a};}if(activeProcesses[_0x49da84(0x110)]>0x0)for(const [_0x1f4d6f,_0x3f5b3a]of activeProcesses){return _0x3f5b3a[_0x49da84(0x10c)][_0x49da84(0x103)](),activeProcesses[_0x49da84(0x125)](_0x1f4d6f),{'success':!![],'message':'Terminated\x20PID\x20'+_0x1f4d6f};}return{'success':![],'message':_0x49da84(0x117)};}export function getActiveProcesses(){const _0x945f21=a9_0x531d;return Array[_0x945f21(0x101)](activeProcesses['keys']());}
1
+ (function(_0x46d995,_0x43c0fe){const _0x415200=a29_0x4401,_0x2e745a=_0x46d995();while(!![]){try{const _0x20a09c=parseInt(_0x415200(0xd1))/0x1*(parseInt(_0x415200(0xe0))/0x2)+-parseInt(_0x415200(0xe1))/0x3+-parseInt(_0x415200(0xea))/0x4*(-parseInt(_0x415200(0xe4))/0x5)+parseInt(_0x415200(0xcd))/0x6+-parseInt(_0x415200(0xcf))/0x7+parseInt(_0x415200(0xe2))/0x8+-parseInt(_0x415200(0xeb))/0x9*(parseInt(_0x415200(0xd0))/0xa);if(_0x20a09c===_0x43c0fe)break;else _0x2e745a['push'](_0x2e745a['shift']());}catch(_0x262f52){_0x2e745a['push'](_0x2e745a['shift']());}}}(a29_0x5c96,0xe38d5));function a29_0x5c96(){const _0x346cd5=['set','cmd.exe','output','kill','pipe','Sent\x20to\x20PID\x20','get','error','88548mIZsIo','\x0a[Process\x20running\x20in\x20background,\x20PID:\x20','5062260mezNdq','1610zxMxjt','3RFTpeY','stdin','size','keys','close','pid','slice','data','length','win32','Terminated\x20PID\x20','child','delete','has','stdout','769446fQxKYE','4865139swrmwQ','9570920jUhFtN','unref','8735UlTPEL','toString','/bin/sh','write','message','stderr','3852aDyTcb','43083GmxjNT','No\x20active\x20processes'];a29_0x5c96=function(){return _0x346cd5;};return a29_0x5c96();}function a29_0x4401(_0x66f80c,_0x45c086){_0x66f80c=_0x66f80c-0xcc;const _0x5c96ed=a29_0x5c96();let _0x44012c=_0x5c96ed[_0x66f80c];return _0x44012c;}import{spawn}from'child_process';const activeProcesses=new Map();export async function runCommand(_0x4fe877,_0x25b54d,_0x465d3f=![],_0xbab4fb=0x7530){return new Promise(_0x4aa403=>{const _0x3c6432=a29_0x4401,_0x3e5d3e=process['platform']===_0x3c6432(0xda),_0x5e2c2c=_0x3e5d3e?_0x3c6432(0xee):_0x3c6432(0xe6),_0x34d4bb=_0x3e5d3e?'/c':'-c',_0x2e3661=spawn(_0x5e2c2c,[_0x34d4bb,_0x4fe877],{'cwd':process['cwd'](),'env':process['env'],'detached':_0x465d3f,'stdio':_0x3c6432(0xf1)}),_0x1ecaaf=_0x2e3661[_0x3c6432(0xd6)]||0x0;let _0x5970ab='',_0x53e5a5='',_0x3545ad=![];_0x1ecaaf&&activeProcesses[_0x3c6432(0xed)](_0x1ecaaf,{'child':_0x2e3661,'output':''});const _0x3517b9=setTimeout(()=>{const _0x4a9590=_0x3c6432;if(!_0x3545ad){_0x3545ad=!![];if(_0x465d3f&&_0x2e3661[_0x4a9590(0xe3)])_0x2e3661[_0x4a9590(0xe3)]();_0x4aa403({'success':!![],'stdout':_0x5970ab+(_0x4a9590(0xce)+_0x1ecaaf+']'),'stderr':_0x53e5a5,'exitCode':0x0,'pid':_0x1ecaaf});}},_0xbab4fb);_0x2e3661[_0x3c6432(0xdf)]?.['on'](_0x3c6432(0xd8),_0x2c338d=>{const _0xafe3f5=_0x3c6432,_0x4d2169=_0x2c338d[_0xafe3f5(0xe5)]();_0x5970ab+=_0x4d2169;if(_0x1ecaaf&&activeProcesses[_0xafe3f5(0xde)](_0x1ecaaf)){const _0x1f8969=activeProcesses[_0xafe3f5(0xf3)](_0x1ecaaf);_0x1f8969[_0xafe3f5(0xef)]+=_0x4d2169;}if(!_0x3545ad&&_0x25b54d)_0x25b54d(_0x4d2169);}),_0x2e3661[_0x3c6432(0xe9)]?.['on']('data',_0x2c1bc6=>{const _0x959fe4=_0x3c6432,_0x3c43b2=_0x2c1bc6[_0x959fe4(0xe5)]();_0x53e5a5+=_0x3c43b2;if(_0x1ecaaf&&activeProcesses[_0x959fe4(0xde)](_0x1ecaaf)){const _0x4dacdd=activeProcesses[_0x959fe4(0xf3)](_0x1ecaaf);_0x4dacdd[_0x959fe4(0xef)]+=_0x3c43b2;}if(!_0x3545ad&&_0x25b54d)_0x25b54d(_0x3c43b2);}),_0x2e3661['on'](_0x3c6432(0xd5),_0x238282=>{const _0x5b4cb4=_0x3c6432;clearTimeout(_0x3517b9);if(_0x1ecaaf)activeProcesses[_0x5b4cb4(0xdd)](_0x1ecaaf);!_0x3545ad&&(_0x3545ad=!![],_0x4aa403({'success':_0x238282===0x0,'stdout':_0x5970ab,'stderr':_0x53e5a5,'exitCode':_0x238282||0x0,'pid':_0x1ecaaf}));}),_0x2e3661['on'](_0x3c6432(0xcc),_0x26627c=>{const _0x374779=_0x3c6432;clearTimeout(_0x3517b9);if(_0x1ecaaf)activeProcesses[_0x374779(0xdd)](_0x1ecaaf);!_0x3545ad&&(_0x3545ad=!![],_0x4aa403({'success':![],'stdout':_0x5970ab,'stderr':_0x26627c[_0x374779(0xe8)],'exitCode':0x1,'pid':_0x1ecaaf}));});});}export function readTerminalOutput(_0x310a61){const _0x3dc184=a29_0x4401,_0x5bba4e=Array['from'](activeProcesses[_0x3dc184(0xd4)]());if(_0x310a61&&activeProcesses[_0x3dc184(0xde)](_0x310a61)){const _0x2622b7=activeProcesses[_0x3dc184(0xf3)](_0x310a61);return{'output':_0x2622b7['output'][_0x3dc184(0xd7)](-0x7d0),'running':!![],'pids':_0x5bba4e};}let _0x1878ce='';for(const [_0x4bfd23,_0x4cf34f]of activeProcesses){_0x1878ce+='[PID\x20'+_0x4bfd23+']\x0a'+_0x4cf34f[_0x3dc184(0xef)][_0x3dc184(0xd7)](-0x3e8)+'\x0a';}return{'output':_0x1878ce||_0x3dc184(0xec),'running':_0x5bba4e[_0x3dc184(0xd9)]>0x0,'pids':_0x5bba4e};}export function sendTerminalInput(_0x58f353,_0x1a27b6){const _0x3eddaf=a29_0x4401;if(_0x1a27b6&&activeProcesses[_0x3eddaf(0xde)](_0x1a27b6)){const _0x15680f=activeProcesses[_0x3eddaf(0xf3)](_0x1a27b6);return _0x15680f[_0x3eddaf(0xdc)][_0x3eddaf(0xd2)]?.[_0x3eddaf(0xe7)](_0x58f353+'\x0a'),{'success':!![],'message':'Sent\x20to\x20PID\x20'+_0x1a27b6};}for(const [_0x147b07,_0x43f03e]of activeProcesses){return _0x43f03e['child'][_0x3eddaf(0xd2)]?.[_0x3eddaf(0xe7)](_0x58f353+'\x0a'),{'success':!![],'message':_0x3eddaf(0xf2)+_0x147b07};}return{'success':![],'message':_0x3eddaf(0xec)};}export function terminateProcess(_0x5477e8){const _0x163c46=a29_0x4401;if(_0x5477e8&&activeProcesses['has'](_0x5477e8)){const _0x173497=activeProcesses[_0x163c46(0xf3)](_0x5477e8);return _0x173497['child'][_0x163c46(0xf0)](),activeProcesses['delete'](_0x5477e8),{'success':!![],'message':_0x163c46(0xdb)+_0x5477e8};}if(activeProcesses[_0x163c46(0xd3)]>0x0)for(const [_0x5c52a8,_0x15db53]of activeProcesses){return _0x15db53[_0x163c46(0xdc)][_0x163c46(0xf0)](),activeProcesses[_0x163c46(0xdd)](_0x5c52a8),{'success':!![],'message':_0x163c46(0xdb)+_0x5c52a8};}return{'success':![],'message':_0x163c46(0xec)};}export function getActiveProcesses(){return Array['from'](activeProcesses['keys']());}
@@ -1 +1 @@
1
- function a10_0x2871(_0x2995aa,_0x1a6aab){_0x2995aa=_0x2995aa-0x10b;const _0x12e499=a10_0x12e4();let _0x287117=_0x12e499[_0x2995aa];return _0x287117;}(function(_0x391a99,_0x19dbcc){const _0x5d1be7=a10_0x2871,_0x423042=_0x391a99();while(!![]){try{const _0x28e7e1=-parseInt(_0x5d1be7(0x145))/0x1*(-parseInt(_0x5d1be7(0x13d))/0x2)+-parseInt(_0x5d1be7(0x144))/0x3*(-parseInt(_0x5d1be7(0x135))/0x4)+parseInt(_0x5d1be7(0x148))/0x5*(-parseInt(_0x5d1be7(0x120))/0x6)+-parseInt(_0x5d1be7(0x12e))/0x7+-parseInt(_0x5d1be7(0x133))/0x8*(-parseInt(_0x5d1be7(0x142))/0x9)+parseInt(_0x5d1be7(0x112))/0xa*(-parseInt(_0x5d1be7(0x132))/0xb)+-parseInt(_0x5d1be7(0x115))/0xc*(parseInt(_0x5d1be7(0x136))/0xd);if(_0x28e7e1===_0x19dbcc)break;else _0x423042['push'](_0x423042['shift']());}catch(_0x1b5113){_0x423042['push'](_0x423042['shift']());}}}(a10_0x12e4,0x94cf4));import{readFileSync,writeFileSync,existsSync,readdirSync,statSync,mkdirSync}from'fs';import{dirname,resolve,relative}from'path';import{trackFileCreate,trackFileModify}from'./rollback.js';export function createFile(_0x3eca7b,_0x4255ed){const _0x5fc8c6=a10_0x2871;try{const _0x24dadd=resolve(process[_0x5fc8c6(0x13f)](),_0x3eca7b),_0xb56aa8=dirname(_0x24dadd);return!existsSync(_0xb56aa8)&&mkdirSync(_0xb56aa8,{'recursive':!![]}),writeFileSync(_0x24dadd,_0x4255ed,_0x5fc8c6(0x140)),trackFileCreate(_0x24dadd),{'success':!![],'message':'Created\x20'+_0x3eca7b};}catch(_0x387822){return{'success':![],'message':_0x5fc8c6(0x111)+_0x3eca7b+':\x20'+_0x387822};}}export function readFile(_0x32296f){const _0x2d8594=a10_0x2871;try{const _0x2b9722=resolve(process['cwd'](),_0x32296f);if(!existsSync(_0x2b9722))return{'success':![],'message':'File\x20not\x20found:\x20'+_0x32296f};const _0x123428=['.png',_0x2d8594(0x13a),'.jpeg',_0x2d8594(0x124),'.exe',_0x2d8594(0x12d),_0x2d8594(0x127)],_0x32f0f7=_0x2b9722[_0x2d8594(0x128)]('.')[_0x2d8594(0x147)]()?.[_0x2d8594(0x11f)]();if(_0x32f0f7&&_0x123428[_0x2d8594(0x130)]('.'+_0x32f0f7))return{'success':![],'message':_0x2d8594(0x122)+_0x32f0f7+').\x20Use\x20\x27computer_screenshot\x27\x20or\x20specific\x20tools\x20to\x20handle\x20this\x20file\x20type.\x20Direct\x20reading\x20is\x20not\x20supported.]'};const _0x52021c=readFileSync(_0x2b9722,_0x2d8594(0x140));return{'success':!![],'content':_0x52021c,'message':_0x2d8594(0x129)+_0x32296f};}catch(_0x3711a5){return{'success':![],'message':_0x2d8594(0x134)+_0x32296f+':\x20'+_0x3711a5};}}export function listDirectory(_0x510975='.'){const _0x268bbf=a10_0x2871;try{const _0x313bb6=resolve(process['cwd'](),_0x510975);if(!existsSync(_0x313bb6))return{'success':![],'message':'Directory\x20not\x20found:\x20'+_0x510975};const _0xc1b578=readdirSync(_0x313bb6),_0x2e0193=_0xc1b578['map'](_0x408358=>{const _0x119b75=a10_0x2871,_0x4b9b77=resolve(_0x313bb6,_0x408358),_0x224b4e=statSync(_0x4b9b77);return{'name':_0x408358,'type':_0x224b4e['isDirectory']()?_0x119b75(0x137):_0x119b75(0x117),'size':_0x224b4e['isFile']()?_0x224b4e[_0x119b75(0x10b)]:undefined};});return{'success':!![],'entries':_0x2e0193,'message':_0x268bbf(0x110)+_0x2e0193[_0x268bbf(0x126)]+_0x268bbf(0x11b)+_0x510975};}catch(_0x2da91d){return{'success':![],'message':'Failed\x20to\x20list\x20'+_0x510975+':\x20'+_0x2da91d};}}export function editFile(_0x415cfe,_0x21a24f,_0xc21bb6){const _0x5e4ddf=a10_0x2871;try{const _0x22f5d2=resolve(process[_0x5e4ddf(0x13f)](),_0x415cfe);if(!existsSync(_0x22f5d2))return{'success':![],'message':_0x5e4ddf(0x116)+_0x415cfe};const _0x5450bb=readFileSync(_0x22f5d2,_0x5e4ddf(0x140));if(!_0x5450bb[_0x5e4ddf(0x130)](_0x21a24f))return{'success':![],'message':_0x5e4ddf(0x12c)+_0x415cfe};trackFileModify(_0x22f5d2,_0x5450bb);const _0x385f1b=_0x5450bb[_0x5e4ddf(0x143)](_0x21a24f,_0xc21bb6);return writeFileSync(_0x22f5d2,_0x385f1b,'utf-8'),{'success':!![],'message':'Edited\x20'+_0x415cfe};}catch(_0x48750d){return{'success':![],'message':_0x5e4ddf(0x10e)+_0x415cfe+':\x20'+_0x48750d};}}export function searchFile(_0x30cd4e,_0x1a6e24){const _0x1e8219=a10_0x2871;try{const _0x3a99e8=resolve(process['cwd'](),_0x30cd4e);if(!existsSync(_0x3a99e8))return{'success':![],'message':_0x1e8219(0x116)+_0x30cd4e};const _0x40e186=readFileSync(_0x3a99e8,_0x1e8219(0x140)),_0x38b203=new RegExp(_0x1a6e24,'g'),_0x37ebee=_0x40e186['match'](_0x38b203)||[],_0x2295c8=_0x40e186['split']('\x0a'),_0x6d9d83=_0x2295c8['filter']((_0x4c6b8c,_0x2db1ff)=>new RegExp(_0x1a6e24)[_0x1e8219(0x119)](_0x4c6b8c));return{'success':!![],'matches':_0x6d9d83,'message':_0x1e8219(0x11e)+_0x6d9d83[_0x1e8219(0x126)]+_0x1e8219(0x123)+_0x30cd4e};}catch(_0x3c285a){return{'success':![],'message':'Failed\x20to\x20search\x20'+_0x30cd4e+':\x20'+_0x3c285a};}}export function findFiles(_0x1ede40,_0x334f6d){const _0x5d68a5=a10_0x2871;try{const _0x1365dc=resolve(process[_0x5d68a5(0x13f)](),_0x1ede40);if(!existsSync(_0x1365dc))return{'success':![],'message':_0x5d68a5(0x125)+_0x1ede40};const _0x4de394=[],_0x1f0807=new RegExp(_0x334f6d,'i');function _0xcf0d80(_0xa0655c){const _0xb39b7e=_0x5d68a5,_0x4e9837=readdirSync(_0xa0655c);for(const _0x42a3a1 of _0x4e9837){if(_0x42a3a1[_0xb39b7e(0x10d)]('.')||_0x42a3a1===_0xb39b7e(0x12f))continue;const _0x3fbbba=resolve(_0xa0655c,_0x42a3a1),_0x4e1505=statSync(_0x3fbbba);if(_0x4e1505[_0xb39b7e(0x13b)]())_0xcf0d80(_0x3fbbba);else _0x1f0807[_0xb39b7e(0x119)](_0x42a3a1)&&_0x4de394[_0xb39b7e(0x131)](relative(_0x1365dc,_0x3fbbba));}}return _0xcf0d80(_0x1365dc),{'success':!![],'files':_0x4de394[_0x5d68a5(0x146)](0x0,0x32),'message':_0x5d68a5(0x11e)+_0x4de394[_0x5d68a5(0x126)]+'\x20files\x20matching\x20\x22'+_0x334f6d+'\x22'};}catch(_0x2fd2d1){return{'success':![],'message':'Failed\x20to\x20find\x20files:\x20'+_0x2fd2d1};}}export function searchDirectory(_0x140cc5,_0x3a030c){const _0x8f0ef3=a10_0x2871;try{const _0x148697=resolve(process['cwd'](),_0x140cc5);if(!existsSync(_0x148697))return{'success':![],'message':_0x8f0ef3(0x125)+_0x140cc5};const _0x1570cb=[],_0x189533=new RegExp(_0x3a030c,'i'),_0x595278=[_0x8f0ef3(0x12b),_0x8f0ef3(0x12a),_0x8f0ef3(0x10f),'.jsx',_0x8f0ef3(0x13c),_0x8f0ef3(0x114),_0x8f0ef3(0x118),_0x8f0ef3(0x13e),_0x8f0ef3(0x141),_0x8f0ef3(0x10c),_0x8f0ef3(0x121),_0x8f0ef3(0x113)];function _0x9b1018(_0x41df2a){const _0x3903e6=_0x8f0ef3,_0x4e7dfd=readdirSync(_0x41df2a);for(const _0x38735b of _0x4e7dfd){if(_0x38735b[_0x3903e6(0x10d)]('.')||_0x38735b===_0x3903e6(0x12f))continue;const _0x5ae17a=resolve(_0x41df2a,_0x38735b),_0x36dc9f=statSync(_0x5ae17a);if(_0x36dc9f['isDirectory']())_0x9b1018(_0x5ae17a);else{const _0x1ba2ee='.'+_0x38735b['split']('.')[_0x3903e6(0x147)]()?.[_0x3903e6(0x11f)]();if(_0x595278['includes'](_0x1ba2ee))try{const _0x24dd7e=readFileSync(_0x5ae17a,_0x3903e6(0x140)),_0xd3939=_0x24dd7e['split']('\x0a');_0xd3939[_0x3903e6(0x11c)]((_0x4fa71d,_0x4defeb)=>{const _0x4fd3db=_0x3903e6;_0x189533['test'](_0x4fa71d)&&_0x1570cb[_0x4fd3db(0x131)]({'file':relative(_0x148697,_0x5ae17a),'line':_0x4defeb+0x1,'content':_0x4fa71d[_0x4fd3db(0x11d)]()[_0x4fd3db(0x139)](0x0,0x64)});});}catch{}}}}return _0x9b1018(_0x148697),{'success':!![],'results':_0x1570cb['slice'](0x0,0x1e),'message':_0x8f0ef3(0x11e)+_0x1570cb['length']+_0x8f0ef3(0x138)+_0x3a030c+'\x22'};}catch(_0x4d9906){return{'success':![],'message':_0x8f0ef3(0x11a)+_0x4d9906};}}function a10_0x12e4(){const _0x4d13b=['.html','3115602pxbDwm','replace','15DHvkxY','357253TiNHIx','slice','pop','25FgPBRo','size','.py','startsWith','Failed\x20to\x20edit\x20','.tsx','Listed\x20','Failed\x20to\x20create\x20','1189270WmVSYx','.rs','.md','665928NudVgb','File\x20not\x20found:\x20','file','.txt','test','Failed\x20to\x20search\x20directory:\x20','\x20items\x20in\x20','forEach','trim','Found\x20','toLowerCase','30102gwFYgk','.go','[Binary\x20file\x20detected\x20(.','\x20output\x20matches\x20in\x20','.gif','Directory\x20not\x20found:\x20','length','.bin','split','Read\x20','.js','.ts','Search\x20string\x20not\x20found\x20in\x20','.dll','5060286bvSrvj','node_modules','includes','push','11rZcIOV','8NKEzEm','Failed\x20to\x20read\x20','776552LCAbwC','130EveNSB','directory','\x20matches\x20for\x20\x22','substring','.jpg','isDirectory','.json','4AMUzof','.css','cwd','utf-8'];a10_0x12e4=function(){return _0x4d13b;};return a10_0x12e4();}
1
+ (function(_0x42c1e2,_0x41dcdd){const _0x5c5a1b=a30_0x49b8,_0x4fdef8=_0x42c1e2();while(!![]){try{const _0x5361c9=-parseInt(_0x5c5a1b(0xbf))/0x1*(-parseInt(_0x5c5a1b(0xa5))/0x2)+-parseInt(_0x5c5a1b(0x9c))/0x3+-parseInt(_0x5c5a1b(0xc5))/0x4*(parseInt(_0x5c5a1b(0xc7))/0x5)+-parseInt(_0x5c5a1b(0x9d))/0x6+parseInt(_0x5c5a1b(0xac))/0x7*(-parseInt(_0x5c5a1b(0xc6))/0x8)+parseInt(_0x5c5a1b(0xbc))/0x9+parseInt(_0x5c5a1b(0x8c))/0xa*(parseInt(_0x5c5a1b(0xb1))/0xb);if(_0x5361c9===_0x41dcdd)break;else _0x4fdef8['push'](_0x4fdef8['shift']());}catch(_0x1e88c1){_0x4fdef8['push'](_0x4fdef8['shift']());}}}(a30_0x3d37,0x4fc52));import{readFileSync,writeFileSync,existsSync,readdirSync,statSync,mkdirSync}from'fs';function a30_0x49b8(_0x1b9642,_0x25d79d){_0x1b9642=_0x1b9642-0x89;const _0x3d3798=a30_0x3d37();let _0x49b898=_0x3d3798[_0x1b9642];return _0x49b898;}import{dirname,resolve,relative}from'path';function a30_0x3d37(){const _0x3b0fa5=['startsWith','Failed\x20to\x20search\x20directory:\x20','match','44HYndnh','length','.txt','.rs','node_modules','.json','.jpg','[Binary\x20file\x20detected\x20(.','Failed\x20to\x20edit\x20','Found\x20','.jsx','3549015NWIgYr','.png','.py','5lUPMZq','Failed\x20to\x20find\x20files:\x20','\x20matches\x20for\x20\x22','utf-8','map','\x20output\x20matches\x20in\x20','236OWIcQH','16GHTszY','31055jqPYPO','cwd','pop','size','Failed\x20to\x20create\x20','.ts','1722770KgeqVh','isFile','replace','slice','\x20files\x20matching\x20\x22','.bin','file','Listed\x20','.tsx','Created\x20','.js','\x20items\x20in\x20','Failed\x20to\x20read\x20','split','Failed\x20to\x20search\x20','test','1327620BMloms','1728210jvnxzX','Edited\x20','push','File\x20not\x20found:\x20','trim','.css','Failed\x20to\x20list\x20','includes','234218Pyxtqy','.go','.jpeg','toLowerCase',').\x20Use\x20\x27computer_screenshot\x27\x20or\x20specific\x20tools\x20to\x20handle\x20this\x20file\x20type.\x20Direct\x20reading\x20is\x20not\x20supported.]','Directory\x20not\x20found:\x20','filter','858291LbxwUj','isDirectory'];a30_0x3d37=function(){return _0x3b0fa5;};return a30_0x3d37();}import{trackFileCreate,trackFileModify}from'./rollback.js';export function createFile(_0x1174b3,_0x25c308){const _0x1dbc77=a30_0x49b8;try{const _0x5d5316=resolve(process['cwd'](),_0x1174b3),_0x58d11e=dirname(_0x5d5316);return!existsSync(_0x58d11e)&&mkdirSync(_0x58d11e,{'recursive':!![]}),writeFileSync(_0x5d5316,_0x25c308,_0x1dbc77(0xc2)),trackFileCreate(_0x5d5316),{'success':!![],'message':_0x1dbc77(0x95)+_0x1174b3};}catch(_0x3a495d){return{'success':![],'message':_0x1dbc77(0x8a)+_0x1174b3+':\x20'+_0x3a495d};}}export function readFile(_0x39b7c1){const _0x1d4e4f=a30_0x49b8;try{const _0x214fae=resolve(process[_0x1d4e4f(0xc8)](),_0x39b7c1);if(!existsSync(_0x214fae))return{'success':![],'message':'File\x20not\x20found:\x20'+_0x39b7c1};const _0x2244b9=[_0x1d4e4f(0xbd),_0x1d4e4f(0xb7),_0x1d4e4f(0xa7),'.gif','.exe','.dll',_0x1d4e4f(0x91)],_0x15b560=_0x214fae[_0x1d4e4f(0x99)]('.')[_0x1d4e4f(0xc9)]()?.['toLowerCase']();if(_0x15b560&&_0x2244b9['includes']('.'+_0x15b560))return{'success':![],'message':_0x1d4e4f(0xb8)+_0x15b560+_0x1d4e4f(0xa9)};const _0x5afa58=readFileSync(_0x214fae,'utf-8');return{'success':!![],'content':_0x5afa58,'message':'Read\x20'+_0x39b7c1};}catch(_0x3ff8fa){return{'success':![],'message':_0x1d4e4f(0x98)+_0x39b7c1+':\x20'+_0x3ff8fa};}}export function listDirectory(_0x147f6c='.'){const _0x2ed750=a30_0x49b8;try{const _0x246c9b=resolve(process[_0x2ed750(0xc8)](),_0x147f6c);if(!existsSync(_0x246c9b))return{'success':![],'message':_0x2ed750(0xaa)+_0x147f6c};const _0xdbad64=readdirSync(_0x246c9b),_0x4256ba=_0xdbad64[_0x2ed750(0xc3)](_0x4b10bc=>{const _0x1cfa47=_0x2ed750,_0x3ce97b=resolve(_0x246c9b,_0x4b10bc),_0x5b05aa=statSync(_0x3ce97b);return{'name':_0x4b10bc,'type':_0x5b05aa['isDirectory']()?'directory':_0x1cfa47(0x92),'size':_0x5b05aa[_0x1cfa47(0x8d)]()?_0x5b05aa[_0x1cfa47(0x89)]:undefined};});return{'success':!![],'entries':_0x4256ba,'message':_0x2ed750(0x93)+_0x4256ba[_0x2ed750(0xb2)]+_0x2ed750(0x97)+_0x147f6c};}catch(_0x5966fa){return{'success':![],'message':_0x2ed750(0xa3)+_0x147f6c+':\x20'+_0x5966fa};}}export function editFile(_0x5dcbc7,_0xf96131,_0x574739){const _0x35ae4b=a30_0x49b8;try{const _0x203cf2=resolve(process[_0x35ae4b(0xc8)](),_0x5dcbc7);if(!existsSync(_0x203cf2))return{'success':![],'message':_0x35ae4b(0xa0)+_0x5dcbc7};const _0x244c79=readFileSync(_0x203cf2,_0x35ae4b(0xc2));if(!_0x244c79[_0x35ae4b(0xa4)](_0xf96131))return{'success':![],'message':'Search\x20string\x20not\x20found\x20in\x20'+_0x5dcbc7};trackFileModify(_0x203cf2,_0x244c79);const _0x47c16f=_0x244c79[_0x35ae4b(0x8e)](_0xf96131,_0x574739);return writeFileSync(_0x203cf2,_0x47c16f,_0x35ae4b(0xc2)),{'success':!![],'message':_0x35ae4b(0x9e)+_0x5dcbc7};}catch(_0x45795c){return{'success':![],'message':_0x35ae4b(0xb9)+_0x5dcbc7+':\x20'+_0x45795c};}}export function searchFile(_0x57f56f,_0x4c53a3){const _0x52ce0c=a30_0x49b8;try{const _0x396e51=resolve(process['cwd'](),_0x57f56f);if(!existsSync(_0x396e51))return{'success':![],'message':'File\x20not\x20found:\x20'+_0x57f56f};const _0x487901=readFileSync(_0x396e51,_0x52ce0c(0xc2)),_0x568d22=new RegExp(_0x4c53a3,'g'),_0x58f7c2=_0x487901[_0x52ce0c(0xb0)](_0x568d22)||[],_0x4f3b41=_0x487901[_0x52ce0c(0x99)]('\x0a'),_0x5dc014=_0x4f3b41[_0x52ce0c(0xab)]((_0x2a07ce,_0x18e874)=>new RegExp(_0x4c53a3)['test'](_0x2a07ce));return{'success':!![],'matches':_0x5dc014,'message':_0x52ce0c(0xba)+_0x5dc014[_0x52ce0c(0xb2)]+_0x52ce0c(0xc4)+_0x57f56f};}catch(_0x483622){return{'success':![],'message':_0x52ce0c(0x9a)+_0x57f56f+':\x20'+_0x483622};}}export function findFiles(_0x2c7bcd,_0x4a33d7){const _0x130cd1=a30_0x49b8;try{const _0x524a51=resolve(process[_0x130cd1(0xc8)](),_0x2c7bcd);if(!existsSync(_0x524a51))return{'success':![],'message':_0x130cd1(0xaa)+_0x2c7bcd};const _0x17c2af=[],_0x4b5730=new RegExp(_0x4a33d7,'i');function _0x2fb463(_0x255656){const _0x58fade=_0x130cd1,_0x1e5eb7=readdirSync(_0x255656);for(const _0x3b87b6 of _0x1e5eb7){if(_0x3b87b6[_0x58fade(0xae)]('.')||_0x3b87b6===_0x58fade(0xb5))continue;const _0x456c36=resolve(_0x255656,_0x3b87b6),_0x391eca=statSync(_0x456c36);if(_0x391eca[_0x58fade(0xad)]())_0x2fb463(_0x456c36);else _0x4b5730[_0x58fade(0x9b)](_0x3b87b6)&&_0x17c2af[_0x58fade(0x9f)](relative(_0x524a51,_0x456c36));}}return _0x2fb463(_0x524a51),{'success':!![],'files':_0x17c2af['slice'](0x0,0x32),'message':_0x130cd1(0xba)+_0x17c2af['length']+_0x130cd1(0x90)+_0x4a33d7+'\x22'};}catch(_0x4d1c1a){return{'success':![],'message':_0x130cd1(0xc0)+_0x4d1c1a};}}export function searchDirectory(_0x207722,_0x12b9ac){const _0x2bedf1=a30_0x49b8;try{const _0x7487eb=resolve(process[_0x2bedf1(0xc8)](),_0x207722);if(!existsSync(_0x7487eb))return{'success':![],'message':_0x2bedf1(0xaa)+_0x207722};const _0x5bff15=[],_0x3671dc=new RegExp(_0x12b9ac,'i'),_0x1791e8=[_0x2bedf1(0x8b),_0x2bedf1(0x96),_0x2bedf1(0x94),_0x2bedf1(0xbb),_0x2bedf1(0xb6),'.md',_0x2bedf1(0xb3),_0x2bedf1(0xa2),'.html',_0x2bedf1(0xbe),_0x2bedf1(0xa6),_0x2bedf1(0xb4)];function _0x2285df(_0x20f24e){const _0x51de10=_0x2bedf1,_0x42a323=readdirSync(_0x20f24e);for(const _0x4babcf of _0x42a323){if(_0x4babcf[_0x51de10(0xae)]('.')||_0x4babcf==='node_modules')continue;const _0x58dd0b=resolve(_0x20f24e,_0x4babcf),_0x17e7d4=statSync(_0x58dd0b);if(_0x17e7d4[_0x51de10(0xad)]())_0x2285df(_0x58dd0b);else{const _0x5f58a0='.'+_0x4babcf[_0x51de10(0x99)]('.')[_0x51de10(0xc9)]()?.[_0x51de10(0xa8)]();if(_0x1791e8[_0x51de10(0xa4)](_0x5f58a0))try{const _0x36d6ef=readFileSync(_0x58dd0b,_0x51de10(0xc2)),_0x55b83f=_0x36d6ef['split']('\x0a');_0x55b83f['forEach']((_0x237a9b,_0x2e3344)=>{const _0x5404b0=_0x51de10;_0x3671dc[_0x5404b0(0x9b)](_0x237a9b)&&_0x5bff15['push']({'file':relative(_0x7487eb,_0x58dd0b),'line':_0x2e3344+0x1,'content':_0x237a9b[_0x5404b0(0xa1)]()['substring'](0x0,0x64)});});}catch{}}}}return _0x2285df(_0x7487eb),{'success':!![],'results':_0x5bff15[_0x2bedf1(0x8f)](0x0,0x1e),'message':'Found\x20'+_0x5bff15[_0x2bedf1(0xb2)]+_0x2bedf1(0xc1)+_0x12b9ac+'\x22'};}catch(_0x1c0404){return{'success':![],'message':_0x2bedf1(0xaf)+_0x1c0404};}}
@@ -3,3 +3,4 @@ export { runCommand, readTerminalOutput, sendTerminalInput, terminateProcess, ge
3
3
  export { listRules, addRule, clearRules, formatRulesForSystem } from "./rules.js";
4
4
  export { connectToMcpServers, getMcpTools, executeMcpTool, closeMcpClients, type McpTool } from "./mcp.js";
5
5
  export { trackFileCreate, trackFileModify, rollbackLast, rollbackAll, getChanges, clearChanges } from "./rollback.js";
6
+ export * from "../browser/index.js";
@@ -1 +1 @@
1
- function a11_0x5ce1(_0x46cf4e,_0x1a9447){_0x46cf4e=_0x46cf4e-0x194;var _0x25b27f=a11_0x25b2();var _0x5ce1f2=_0x25b27f[_0x46cf4e];return _0x5ce1f2;}(function(_0x26a24a,_0x441696){var _0x4c75bb=a11_0x5ce1,_0x294827=_0x26a24a();while(!![]){try{var _0x370ed8=parseInt(_0x4c75bb(0x199))/0x1+-parseInt(_0x4c75bb(0x198))/0x2+-parseInt(_0x4c75bb(0x19a))/0x3*(-parseInt(_0x4c75bb(0x197))/0x4)+-parseInt(_0x4c75bb(0x19b))/0x5*(-parseInt(_0x4c75bb(0x195))/0x6)+parseInt(_0x4c75bb(0x19c))/0x7+parseInt(_0x4c75bb(0x19d))/0x8*(-parseInt(_0x4c75bb(0x194))/0x9)+-parseInt(_0x4c75bb(0x196))/0xa;if(_0x370ed8===_0x441696)break;else _0x294827['push'](_0x294827['shift']());}catch(_0x1314a0){_0x294827['push'](_0x294827['shift']());}}}(a11_0x25b2,0xe8408));export{createFile,readFile,listDirectory,editFile,searchFile,findFiles,searchDirectory}from'./file.js';export{runCommand,readTerminalOutput,sendTerminalInput,terminateProcess,getActiveProcesses}from'./command.js';export{listRules,addRule,clearRules,formatRulesForSystem}from'./rules.js';function a11_0x25b2(){var _0x2a9289=['2384415VJBeKh','6hvnfiN','29381860BLITqY','804vJKwFk','3751722idZdAj','1298550nTsixu','26817DWaORz','7526555osQHWB','10007802nHMbNK','8TCmXop'];a11_0x25b2=function(){return _0x2a9289;};return a11_0x25b2();}export{connectToMcpServers,getMcpTools,executeMcpTool,closeMcpClients}from'./mcp.js';export{trackFileCreate,trackFileModify,rollbackLast,rollbackAll,getChanges,clearChanges}from'./rollback.js';
1
+ (function(_0x1ee8c7,_0xa86e53){var _0x2ceda6=a31_0x32cb,_0x2f44c7=_0x1ee8c7();while(!![]){try{var _0x5025c6=-parseInt(_0x2ceda6(0x11d))/0x1+-parseInt(_0x2ceda6(0x11e))/0x2*(-parseInt(_0x2ceda6(0x127))/0x3)+parseInt(_0x2ceda6(0x11f))/0x4*(-parseInt(_0x2ceda6(0x125))/0x5)+parseInt(_0x2ceda6(0x121))/0x6*(-parseInt(_0x2ceda6(0x124))/0x7)+parseInt(_0x2ceda6(0x123))/0x8*(-parseInt(_0x2ceda6(0x122))/0x9)+parseInt(_0x2ceda6(0x126))/0xa*(-parseInt(_0x2ceda6(0x120))/0xb)+parseInt(_0x2ceda6(0x11c))/0xc;if(_0x5025c6===_0xa86e53)break;else _0x2f44c7['push'](_0x2f44c7['shift']());}catch(_0x39dffe){_0x2f44c7['push'](_0x2f44c7['shift']());}}}(a31_0x3b76,0x45797));export{createFile,readFile,listDirectory,editFile,searchFile,findFiles,searchDirectory}from'./file.js';export{runCommand,readTerminalOutput,sendTerminalInput,terminateProcess,getActiveProcesses}from'./command.js';export{listRules,addRule,clearRules,formatRulesForSystem}from'./rules.js';function a31_0x3b76(){var _0x77520a=['66nVbJfy','9ILMdbT','4298856wgnXvQ','194614GjWToh','1664890SiKCgf','10840KUWzHT','1531725ngzaDD','20496624SDcztr','422947ydDqov','2VIdimY','4ULrzFb','3399SAoluK'];a31_0x3b76=function(){return _0x77520a;};return a31_0x3b76();}function a31_0x32cb(_0x12962d,_0x248e8a){_0x12962d=_0x12962d-0x11c;var _0x3b76e3=a31_0x3b76();var _0x32cb6a=_0x3b76e3[_0x12962d];return _0x32cb6a;}export{connectToMcpServers,getMcpTools,executeMcpTool,closeMcpClients}from'./mcp.js';export{trackFileCreate,trackFileModify,rollbackLast,rollbackAll,getChanges,clearChanges}from'./rollback.js';export*from'../browser/index.js';
package/dist/tools/mcp.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4df382,_0x98253e){const _0xccfa42=a12_0x3ae3,_0xc54074=_0x4df382();while(!![]){try{const _0x11d76b=-parseInt(_0xccfa42(0x1ad))/0x1+-parseInt(_0xccfa42(0x1ac))/0x2+-parseInt(_0xccfa42(0x1b1))/0x3+parseInt(_0xccfa42(0x1ae))/0x4+-parseInt(_0xccfa42(0x198))/0x5*(-parseInt(_0xccfa42(0x191))/0x6)+-parseInt(_0xccfa42(0x1b0))/0x7*(-parseInt(_0xccfa42(0x1a3))/0x8)+-parseInt(_0xccfa42(0x1b3))/0x9*(-parseInt(_0xccfa42(0x1a9))/0xa);if(_0x11d76b===_0x98253e)break;else _0xc54074['push'](_0xc54074['shift']());}catch(_0x62391f){_0xc54074['push'](_0xc54074['shift']());}}}(a12_0x1bf1,0x96c74));import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{getMcpServers}from'../config/mcp.js';import*as a12_0x5de07a from'../ui/output.js';const clients=new Map();async function connectStdioServer(_0x114c00,_0x487747){const _0x5445f8=a12_0x3ae3;try{const _0x364abc={...process[_0x5445f8(0x19b)],..._0x487747['env']};Object[_0x5445f8(0x195)](_0x364abc)['forEach'](_0x5c3430=>_0x364abc[_0x5c3430]===undefined&&delete _0x364abc[_0x5c3430]);const _0x45d1c7=new StdioClientTransport({'command':_0x487747['command'],'args':_0x487747[_0x5445f8(0x196)],'env':_0x364abc,'stderr':_0x5445f8(0x194)}),_0x3f1ef4=new Client({'name':_0x5445f8(0x19f),'version':_0x5445f8(0x1ab)},{'capabilities':{}});return await _0x3f1ef4[_0x5445f8(0x1a0)](_0x45d1c7),_0x3f1ef4;}catch{return null;}}async function connectHttpServer(_0x41cfbf,_0x50db3d){const _0x3a5663=a12_0x3ae3;try{const _0x4e4a8b=new StreamableHTTPClientTransport(new URL(_0x50db3d)),_0x42e19c=new Client({'name':'woozlit-cli','version':'1.0.0'},{'capabilities':{}});return await _0x42e19c[_0x3a5663(0x1a0)](_0x4e4a8b),_0x42e19c;}catch{return null;}}export async function connectToMcpServers(){const _0x4f84dd=a12_0x3ae3,_0x503274=getMcpServers(),_0x6ea64a=Object[_0x4f84dd(0x195)](_0x503274);if(_0x6ea64a[_0x4f84dd(0x19c)]===0x0)return;const _0x2e3d16=_0x70a9e2=>new Promise((_0x3a1c6c,_0x4585ca)=>setTimeout(()=>_0x4585ca(new Error('timeout')),_0x70a9e2)),_0x4f4e93=async(_0x25a88d,_0x3ae509)=>{const _0x279074=_0x4f84dd;try{let _0x330643=null;const _0x4affd9=_0x3ae509[_0x279074(0x1a6)]===_0x279074(0x1af)?connectHttpServer(_0x25a88d,_0x3ae509['url']):connectStdioServer(_0x25a88d,_0x3ae509);_0x330643=await Promise['race']([_0x4affd9,_0x2e3d16(0xbb8)]);if(_0x330643)clients['set'](_0x25a88d,_0x330643);}catch{}};await Promise[_0x4f84dd(0x1a4)](_0x6ea64a[_0x4f84dd(0x1a7)](_0x2b2449=>!clients['has'](_0x2b2449))[_0x4f84dd(0x1a1)](_0x5dae14=>_0x4f4e93(_0x5dae14,_0x503274[_0x5dae14])));}export async function getMcpTools(){const _0x1a6da1=a12_0x3ae3,_0x7cb115=[];for(const [_0x103d17,_0x408297]of clients['entries']()){try{const _0x2592be=await _0x408297[_0x1a6da1(0x1a8)](),_0x3ed923=_0x2592be[_0x1a6da1(0x192)][_0x1a6da1(0x1a1)](_0x174c2a=>({'name':_0x174c2a['name'],'description':_0x174c2a[_0x1a6da1(0x193)],'inputSchema':_0x174c2a['inputSchema'],'serverName':_0x103d17}));_0x7cb115['push'](..._0x3ed923);}catch(_0x531636){a12_0x5de07a[_0x1a6da1(0x19d)](_0x1a6da1(0x1b2)+_0x103d17+_0x1a6da1(0x1aa)+_0x531636);}}return _0x7cb115;}export async function executeMcpTool(_0x4b26d8,_0x2c9377,_0x399d04){const _0x1a360c=a12_0x3ae3,_0x3117c5=clients[_0x1a360c(0x1a2)](_0x4b26d8);if(!_0x3117c5)throw new Error(_0x1a360c(0x1a5)+_0x4b26d8+_0x1a360c(0x199));try{const _0xa62e37=await _0x3117c5['callTool']({'name':_0x2c9377,'arguments':_0x399d04});return _0xa62e37;}catch(_0x5b2506){throw new Error('MCP\x20tool\x20execution\x20failed:\x20'+_0x5b2506);}}function a12_0x1bf1(){const _0x3876d1=['error','clear','woozlit-cli','connect','map','get','9435224laFpTu','all','MCP\x20server\x20\x27','type','filter','listTools','1589740uKcxHI','\x27:\x20','1.0.0','1794002DcAEOH','777172MXsQQu','3077748rmKQTo','streamable-http','7FVzkLC','2473476zIvrkD','Failed\x20to\x20list\x20tools\x20for\x20\x27','36PTfSey','455586TYrFAv','tools','description','pipe','keys','args','close','35lPNytc','\x27\x20not\x20connected','values','env','length'];a12_0x1bf1=function(){return _0x3876d1;};return a12_0x1bf1();}function a12_0x3ae3(_0x1d7f7a,_0x139c8d){_0x1d7f7a=_0x1d7f7a-0x191;const _0x1bf1fb=a12_0x1bf1();let _0x3ae3fa=_0x1bf1fb[_0x1d7f7a];return _0x3ae3fa;}export function closeMcpClients(){const _0x48cf09=a12_0x3ae3;for(const _0x282908 of clients[_0x48cf09(0x19a)]()){try{_0x282908[_0x48cf09(0x197)]();}catch(_0x2508a6){}}clients[_0x48cf09(0x19e)]();}
1
+ (function(_0x2db511,_0x1c3a66){const _0x2a7b0e=a32_0x1c84,_0x280827=_0x2db511();while(!![]){try{const _0x4c84bd=parseInt(_0x2a7b0e(0x195))/0x1+-parseInt(_0x2a7b0e(0x191))/0x2*(parseInt(_0x2a7b0e(0x1ad))/0x3)+parseInt(_0x2a7b0e(0x19b))/0x4*(-parseInt(_0x2a7b0e(0x1b1))/0x5)+-parseInt(_0x2a7b0e(0x199))/0x6+-parseInt(_0x2a7b0e(0x1ac))/0x7*(-parseInt(_0x2a7b0e(0x1a5))/0x8)+parseInt(_0x2a7b0e(0x1ae))/0x9*(-parseInt(_0x2a7b0e(0x1a1))/0xa)+parseInt(_0x2a7b0e(0x1a2))/0xb;if(_0x4c84bd===_0x1c3a66)break;else _0x280827['push'](_0x280827['shift']());}catch(_0x9e290b){_0x280827['push'](_0x280827['shift']());}}}(a32_0x56df,0xc1014));import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';function a32_0x56df(){const _0x4eb877=['args','timeout','197486iEjRIh','map','streamable-http','pipe','2698896SqDSjD','has','4YAkzsN','entries','inputSchema','forEach','listTools','length','9676780yXBkzm','28699880UwhzWT','get','MCP\x20server\x20\x27','8QSSVDf','close','\x27\x20not\x20connected','race','connect','set','error','5400619wxqguK','2175zyXqRB','9ZOjfNY','description','push','2445830JrgJBb','callTool','woozlit-cli','Failed\x20to\x20list\x20tools\x20for\x20\x27','env','\x27:\x20','url','type','name','1.0.0','MCP\x20tool\x20execution\x20failed:\x20','clear','2430HZwOpp','keys'];a32_0x56df=function(){return _0x4eb877;};return a32_0x56df();}import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{getMcpServers}from'../config/mcp.js';import*as a32_0x50543e from'../ui/output.js';const clients=new Map();async function connectStdioServer(_0xb23fdd,_0x45b5f6){const _0x167754=a32_0x1c84;try{const _0x5c5297={...process[_0x167754(0x1b5)],..._0x45b5f6[_0x167754(0x1b5)]};Object[_0x167754(0x192)](_0x5c5297)[_0x167754(0x19e)](_0x12cfde=>_0x5c5297[_0x12cfde]===undefined&&delete _0x5c5297[_0x12cfde]);const _0x2c8c87=new StdioClientTransport({'command':_0x45b5f6['command'],'args':_0x45b5f6[_0x167754(0x193)],'env':_0x5c5297,'stderr':_0x167754(0x198)}),_0x4ea8d3=new Client({'name':_0x167754(0x1b3),'version':_0x167754(0x18e)},{'capabilities':{}});return await _0x4ea8d3[_0x167754(0x1a9)](_0x2c8c87),_0x4ea8d3;}catch{return null;}}async function connectHttpServer(_0x3938c6,_0x42bd89){const _0x2c03d9=a32_0x1c84;try{const _0x3c99d0=new StreamableHTTPClientTransport(new URL(_0x42bd89)),_0x43deda=new Client({'name':_0x2c03d9(0x1b3),'version':_0x2c03d9(0x18e)},{'capabilities':{}});return await _0x43deda[_0x2c03d9(0x1a9)](_0x3c99d0),_0x43deda;}catch{return null;}}export async function connectToMcpServers(){const _0x2326d2=a32_0x1c84,_0x4edd9b=getMcpServers(),_0x190b29=Object[_0x2326d2(0x192)](_0x4edd9b);if(_0x190b29[_0x2326d2(0x1a0)]===0x0)return;const _0x456c1d=_0x5cc9ab=>new Promise((_0x26070e,_0x4372d0)=>setTimeout(()=>_0x4372d0(new Error(_0x2326d2(0x194))),_0x5cc9ab)),_0x235677=async(_0x229b3e,_0x56d151)=>{const _0x7c6b69=_0x2326d2;try{let _0x57ed43=null;const _0x1362a9=_0x56d151[_0x7c6b69(0x1b8)]===_0x7c6b69(0x197)?connectHttpServer(_0x229b3e,_0x56d151[_0x7c6b69(0x1b7)]):connectStdioServer(_0x229b3e,_0x56d151);_0x57ed43=await Promise[_0x7c6b69(0x1a8)]([_0x1362a9,_0x456c1d(0xbb8)]);if(_0x57ed43)clients[_0x7c6b69(0x1aa)](_0x229b3e,_0x57ed43);}catch{}};await Promise['all'](_0x190b29['filter'](_0xd7d544=>!clients[_0x2326d2(0x19a)](_0xd7d544))['map'](_0x961014=>_0x235677(_0x961014,_0x4edd9b[_0x961014])));}function a32_0x1c84(_0x700354,_0x4a8a08){_0x700354=_0x700354-0x18e;const _0x56df23=a32_0x56df();let _0x1c84f0=_0x56df23[_0x700354];return _0x1c84f0;}export async function getMcpTools(){const _0x56b995=a32_0x1c84,_0x3bc132=[];for(const [_0x460bed,_0x428ff4]of clients[_0x56b995(0x19c)]()){try{const _0x2a43fa=await _0x428ff4[_0x56b995(0x19f)](),_0x43799d=_0x2a43fa['tools'][_0x56b995(0x196)](_0xc236b7=>({'name':_0xc236b7[_0x56b995(0x1b9)],'description':_0xc236b7[_0x56b995(0x1af)],'inputSchema':_0xc236b7[_0x56b995(0x19d)],'serverName':_0x460bed}));_0x3bc132[_0x56b995(0x1b0)](..._0x43799d);}catch(_0x56827f){a32_0x50543e[_0x56b995(0x1ab)](_0x56b995(0x1b4)+_0x460bed+_0x56b995(0x1b6)+_0x56827f);}}return _0x3bc132;}export async function executeMcpTool(_0x1a8596,_0x327298,_0x214648){const _0x4050ae=a32_0x1c84,_0x1801a4=clients[_0x4050ae(0x1a3)](_0x1a8596);if(!_0x1801a4)throw new Error(_0x4050ae(0x1a4)+_0x1a8596+_0x4050ae(0x1a7));try{const _0x2a9143=await _0x1801a4[_0x4050ae(0x1b2)]({'name':_0x327298,'arguments':_0x214648});return _0x2a9143;}catch(_0xa5d8fb){throw new Error(_0x4050ae(0x18f)+_0xa5d8fb);}}export function closeMcpClients(){const _0x3bd12d=a32_0x1c84;for(const _0x471e3d of clients['values']()){try{_0x471e3d[_0x3bd12d(0x1a6)]();}catch(_0x5dd99f){}}clients[_0x3bd12d(0x190)]();}
@@ -1 +1 @@
1
- (function(_0xc64fd7,_0x181a72){const _0x420737=a13_0x13da,_0x4b91b8=_0xc64fd7();while(!![]){try{const _0x3d6ae8=parseInt(_0x420737(0x127))/0x1*(parseInt(_0x420737(0x12f))/0x2)+-parseInt(_0x420737(0x141))/0x3+parseInt(_0x420737(0x132))/0x4+parseInt(_0x420737(0x13e))/0x5*(-parseInt(_0x420737(0x134))/0x6)+parseInt(_0x420737(0x12e))/0x7*(parseInt(_0x420737(0x129))/0x8)+parseInt(_0x420737(0x133))/0x9*(-parseInt(_0x420737(0x13c))/0xa)+-parseInt(_0x420737(0x138))/0xb;if(_0x3d6ae8===_0x181a72)break;else _0x4b91b8['push'](_0x4b91b8['shift']());}catch(_0x145b15){_0x4b91b8['push'](_0x4b91b8['shift']());}}}(a13_0x564e,0xd4df6));function a13_0x13da(_0x5b9df9,_0x5a0561){_0x5b9df9=_0x5b9df9-0x127;const _0x564ebe=a13_0x564e();let _0x13dafa=_0x564ebe[_0x5b9df9];return _0x13dafa;}import*as a13_0x2d2db5 from'fs';import*as a13_0x23e5e0 from'path';const changes=[];export function trackFileCreate(_0x122fad){const _0x11fa28=a13_0x13da;changes[_0x11fa28(0x12c)]({'path':a13_0x23e5e0['resolve'](_0x122fad),'type':_0x11fa28(0x13b),'previousContent':null,'timestamp':Date['now']()});}function a13_0x564e(){const _0x566df4=['1acVraP','delete','248cwlapQ','Rollback\x20failed:\x20','Unknown\x20change\x20type','push','unlinkSync','206619fRveGK','2234258ZjLbew','path','modify','4781348NfsewI','355230HBamoN','1878198jqzeAK','previousContent','now','success','4124505EwXFiZ','Deleted:\x20','resolve','create','290WDAQRi','type','5nWyCbI','length','message','1568847IIRPuH','No\x20changes\x20to\x20rollback','Restored:\x20'];a13_0x564e=function(){return _0x566df4;};return a13_0x564e();}export function trackFileModify(_0xcba399,_0x2a54fc){const _0x510325=a13_0x13da;changes[_0x510325(0x12c)]({'path':a13_0x23e5e0[_0x510325(0x13a)](_0xcba399),'type':'modify','previousContent':_0x2a54fc,'timestamp':Date[_0x510325(0x136)]()});}export function trackFileDelete(_0x1821da,_0x2ca15c){const _0x595c83=a13_0x13da;changes['push']({'path':a13_0x23e5e0[_0x595c83(0x13a)](_0x1821da),'type':'delete','previousContent':_0x2ca15c,'timestamp':Date['now']()});}export function getChanges(){return[...changes];}export function rollbackLast(){const _0x963229=a13_0x13da;if(changes['length']===0x0)return{'success':![],'message':_0x963229(0x142)};const _0x1ccff2=changes['pop']();try{switch(_0x1ccff2[_0x963229(0x13d)]){case _0x963229(0x13b):a13_0x2d2db5['existsSync'](_0x1ccff2[_0x963229(0x130)])&&a13_0x2d2db5[_0x963229(0x12d)](_0x1ccff2['path']);return{'success':!![],'message':_0x963229(0x139)+_0x1ccff2[_0x963229(0x130)]};case _0x963229(0x131):_0x1ccff2[_0x963229(0x135)]!==null&&a13_0x2d2db5['writeFileSync'](_0x1ccff2[_0x963229(0x130)],_0x1ccff2[_0x963229(0x135)]);return{'success':!![],'message':_0x963229(0x143)+_0x1ccff2[_0x963229(0x130)]};case _0x963229(0x128):_0x1ccff2['previousContent']!==null&&a13_0x2d2db5['writeFileSync'](_0x1ccff2['path'],_0x1ccff2[_0x963229(0x135)]);return{'success':!![],'message':_0x963229(0x143)+_0x1ccff2[_0x963229(0x130)]};default:return{'success':![],'message':_0x963229(0x12b)};}}catch(_0x38e1b2){return{'success':![],'message':_0x963229(0x12a)+_0x38e1b2};}}export function rollbackAll(){const _0x258f0b=a13_0x13da,_0x5bf80d=[];let _0x5ec18e=0x0;while(changes[_0x258f0b(0x13f)]>0x0){const _0x7c213=rollbackLast();_0x7c213[_0x258f0b(0x137)]&&(_0x5ec18e++,_0x5bf80d['push'](_0x7c213[_0x258f0b(0x140)]));}return{'success':_0x5ec18e>0x0,'count':_0x5ec18e,'messages':_0x5bf80d};}export function clearChanges(){const _0x166a71=a13_0x13da;changes[_0x166a71(0x13f)]=0x0;}
1
+ function a33_0x4513(_0x14ccee,_0x41e966){_0x14ccee=_0x14ccee-0xae;const _0x2b9655=a33_0x2b96();let _0x451365=_0x2b9655[_0x14ccee];return _0x451365;}function a33_0x2b96(){const _0x5ebb2f=['1045QUDAyI','message','516935MAaBrE','previousContent','2062588EiVOAz','writeFileSync','3285320XZhJZK','path','No\x20changes\x20to\x20rollback','99530nJKjhd','existsSync','1435412CHwfix','modify','100718gAmNNS','push','392922nvXVhP','119beflwc','pop','Restored:\x20','9izBcKc','now','resolve','3QSreBW','success','Deleted:\x20','type','length','Rollback\x20failed:\x20','delete','create'];a33_0x2b96=function(){return _0x5ebb2f;};return a33_0x2b96();}(function(_0x427418,_0x3d89d1){const _0x1c136d=a33_0x4513,_0x3c4df8=_0x427418();while(!![]){try{const _0x2a2722=parseInt(_0x1c136d(0xc1))/0x1+-parseInt(_0x1c136d(0xc3))/0x2*(parseInt(_0x1c136d(0xae))/0x3)+-parseInt(_0x1c136d(0xba))/0x4+parseInt(_0x1c136d(0xb8))/0x5+parseInt(_0x1c136d(0xc5))/0x6*(parseInt(_0x1c136d(0xc6))/0x7)+-parseInt(_0x1c136d(0xbc))/0x8*(parseInt(_0x1c136d(0xc9))/0x9)+-parseInt(_0x1c136d(0xbf))/0xa*(parseInt(_0x1c136d(0xb6))/0xb);if(_0x2a2722===_0x3d89d1)break;else _0x3c4df8['push'](_0x3c4df8['shift']());}catch(_0x10e671){_0x3c4df8['push'](_0x3c4df8['shift']());}}}(a33_0x2b96,0xb2310));import*as a33_0x3f4868 from'fs';import*as a33_0xd5e532 from'path';const changes=[];export function trackFileCreate(_0x47785f){const _0x1af3cd=a33_0x4513;changes[_0x1af3cd(0xc4)]({'path':a33_0xd5e532['resolve'](_0x47785f),'type':'create','previousContent':null,'timestamp':Date[_0x1af3cd(0xca)]()});}export function trackFileModify(_0x2deade,_0x5a175c){const _0x1e045e=a33_0x4513;changes[_0x1e045e(0xc4)]({'path':a33_0xd5e532[_0x1e045e(0xcb)](_0x2deade),'type':_0x1e045e(0xc2),'previousContent':_0x5a175c,'timestamp':Date[_0x1e045e(0xca)]()});}export function trackFileDelete(_0x45ebaf,_0x259cb7){const _0x8b8b11=a33_0x4513;changes[_0x8b8b11(0xc4)]({'path':a33_0xd5e532[_0x8b8b11(0xcb)](_0x45ebaf),'type':_0x8b8b11(0xb4),'previousContent':_0x259cb7,'timestamp':Date[_0x8b8b11(0xca)]()});}export function getChanges(){return[...changes];}export function rollbackLast(){const _0x5b0e46=a33_0x4513;if(changes[_0x5b0e46(0xb2)]===0x0)return{'success':![],'message':_0x5b0e46(0xbe)};const _0x3fbee4=changes[_0x5b0e46(0xc7)]();try{switch(_0x3fbee4[_0x5b0e46(0xb1)]){case _0x5b0e46(0xb5):a33_0x3f4868[_0x5b0e46(0xc0)](_0x3fbee4['path'])&&a33_0x3f4868['unlinkSync'](_0x3fbee4[_0x5b0e46(0xbd)]);return{'success':!![],'message':_0x5b0e46(0xb0)+_0x3fbee4[_0x5b0e46(0xbd)]};case _0x5b0e46(0xc2):_0x3fbee4['previousContent']!==null&&a33_0x3f4868[_0x5b0e46(0xbb)](_0x3fbee4[_0x5b0e46(0xbd)],_0x3fbee4[_0x5b0e46(0xb9)]);return{'success':!![],'message':_0x5b0e46(0xc8)+_0x3fbee4['path']};case _0x5b0e46(0xb4):_0x3fbee4['previousContent']!==null&&a33_0x3f4868[_0x5b0e46(0xbb)](_0x3fbee4['path'],_0x3fbee4[_0x5b0e46(0xb9)]);return{'success':!![],'message':'Restored:\x20'+_0x3fbee4[_0x5b0e46(0xbd)]};default:return{'success':![],'message':'Unknown\x20change\x20type'};}}catch(_0x40148c){return{'success':![],'message':_0x5b0e46(0xb3)+_0x40148c};}}export function rollbackAll(){const _0x404233=a33_0x4513,_0x7482b9=[];let _0x2cd773=0x0;while(changes[_0x404233(0xb2)]>0x0){const _0x4076e8=rollbackLast();_0x4076e8[_0x404233(0xaf)]&&(_0x2cd773++,_0x7482b9[_0x404233(0xc4)](_0x4076e8[_0x404233(0xb7)]));}return{'success':_0x2cd773>0x0,'count':_0x2cd773,'messages':_0x7482b9};}export function clearChanges(){const _0xb0d3b9=a33_0x4513;changes[_0xb0d3b9(0xb2)]=0x0;}
@@ -1 +1 @@
1
- (function(_0x3403dc,_0x41f3be){const _0x41d8a4=a14_0x5b1d,_0x4b53c0=_0x3403dc();while(!![]){try{const _0x59c7e7=-parseInt(_0x41d8a4(0x1d3))/0x1+parseInt(_0x41d8a4(0x1d2))/0x2*(parseInt(_0x41d8a4(0x1d6))/0x3)+parseInt(_0x41d8a4(0x1d1))/0x4+parseInt(_0x41d8a4(0x1d0))/0x5*(parseInt(_0x41d8a4(0x1db))/0x6)+-parseInt(_0x41d8a4(0x1d7))/0x7*(parseInt(_0x41d8a4(0x1dd))/0x8)+parseInt(_0x41d8a4(0x1d8))/0x9*(-parseInt(_0x41d8a4(0x1da))/0xa)+-parseInt(_0x41d8a4(0x1d5))/0xb*(parseInt(_0x41d8a4(0x1d4))/0xc);if(_0x59c7e7===_0x41f3be)break;else _0x4b53c0['push'](_0x4b53c0['shift']());}catch(_0x1dec8b){_0x4b53c0['push'](_0x4b53c0['shift']());}}}(a14_0x2490,0xc7909));import{getRules,addRule as a14_0x2a1524,clearRules as a14_0x1b13af}from'../utils/storage.js';export function listRules(){return getRules();}function a14_0x5b1d(_0x25ade6,_0x1f6d64){_0x25ade6=_0x25ade6-0x1cf;const _0x24908b=a14_0x2490();let _0x5b1d1e=_0x24908b[_0x25ade6];return _0x5b1d1e;}function a14_0x2490(){const _0x153996=['121TNAOvA','3WCKGGR','8674715QTkdxq','18GNCprr','map','4484840QQTMiG','2228646ivIVbl','length','8eNDPmk','join','20jdYLNg','4894608aDjBZZ','3107846ziYOWx','115428FeaMLf','1302852zhiwRN'];a14_0x2490=function(){return _0x153996;};return a14_0x2490();}export function addRule(_0x30ef76){a14_0x2a1524(_0x30ef76);}export function clearRules(){a14_0x1b13af();}export function formatRulesForSystem(){const _0x5f89a7=a14_0x5b1d,_0x915d7b=getRules();if(_0x915d7b[_0x5f89a7(0x1dc)]===0x0)return'';return'\x0a\x0aUser-defined\x20rules:\x0a'+_0x915d7b[_0x5f89a7(0x1d9)]((_0x3ac984,_0x1e9ac1)=>_0x1e9ac1+0x1+'.\x20'+_0x3ac984)[_0x5f89a7(0x1cf)]('\x0a');}
1
+ function a34_0x1e99(_0x4022de,_0x298afc){_0x4022de=_0x4022de-0x134;const _0x18958e=a34_0x1895();let _0x1e9900=_0x18958e[_0x4022de];return _0x1e9900;}(function(_0x26341a,_0x5275e4){const _0x4fe09e=a34_0x1e99,_0x1cdcfd=_0x26341a();while(!![]){try{const _0x47df02=-parseInt(_0x4fe09e(0x13c))/0x1*(-parseInt(_0x4fe09e(0x13f))/0x2)+-parseInt(_0x4fe09e(0x139))/0x3+parseInt(_0x4fe09e(0x134))/0x4*(parseInt(_0x4fe09e(0x137))/0x5)+-parseInt(_0x4fe09e(0x135))/0x6*(-parseInt(_0x4fe09e(0x13a))/0x7)+-parseInt(_0x4fe09e(0x140))/0x8*(-parseInt(_0x4fe09e(0x141))/0x9)+parseInt(_0x4fe09e(0x13e))/0xa+-parseInt(_0x4fe09e(0x138))/0xb;if(_0x47df02===_0x5275e4)break;else _0x1cdcfd['push'](_0x1cdcfd['shift']());}catch(_0x4e25e1){_0x1cdcfd['push'](_0x1cdcfd['shift']());}}}(a34_0x1895,0x32867));import{getRules,addRule as a34_0x424386,clearRules as a34_0x467d66}from'../utils/storage.js';function a34_0x1895(){const _0x6b5d79=['7YhUjEz','map','173623xBVKpa','join','3359670XEaYJT','2ZWRiLd','977624xFOdJh','9bZCEtE','375828EWREPX','336564jcGslx','\x0a\x0aUser-defined\x20rules:\x0a','15QqjtqV','7264917figSGy','307080yOiRLj'];a34_0x1895=function(){return _0x6b5d79;};return a34_0x1895();}export function listRules(){return getRules();}export function addRule(_0x2911f3){a34_0x424386(_0x2911f3);}export function clearRules(){a34_0x467d66();}export function formatRulesForSystem(){const _0x24fae4=a34_0x1e99,_0x352d03=getRules();if(_0x352d03['length']===0x0)return'';return _0x24fae4(0x136)+_0x352d03[_0x24fae4(0x13b)]((_0x3cd85d,_0x1c21d0)=>_0x1c21d0+0x1+'.\x20'+_0x3cd85d)[_0x24fae4(0x13d)]('\x0a');}
@@ -0,0 +1,11 @@
1
+ export declare function setConfig(sid: string, token: string, number: string, ngrokToken?: string): void;
2
+ export declare function getConfig(): {
3
+ accountSid: string;
4
+ authToken: string;
5
+ phoneNumber: string;
6
+ webhookPort: number;
7
+ publicUrl: string;
8
+ ngrokToken: string;
9
+ };
10
+ export declare function setPublicUrl(url: string): void;
11
+ export declare function isConfigured(): boolean;
@@ -0,0 +1 @@
1
+ (function(_0x3ce07f,_0x24dbc7){const _0x535a47=a35_0x44a9,_0x555d6f=_0x3ce07f();while(!![]){try{const _0x3eec65=parseInt(_0x535a47(0x1de))/0x1+parseInt(_0x535a47(0x1d4))/0x2+-parseInt(_0x535a47(0x1d5))/0x3+parseInt(_0x535a47(0x1eb))/0x4*(-parseInt(_0x535a47(0x1c2))/0x5)+parseInt(_0x535a47(0x1d2))/0x6+parseInt(_0x535a47(0x1ce))/0x7*(-parseInt(_0x535a47(0x1e4))/0x8)+parseInt(_0x535a47(0x1c8))/0x9;if(_0x3eec65===_0x24dbc7)break;else _0x555d6f['push'](_0x555d6f['shift']());}catch(_0x1084a8){_0x555d6f['push'](_0x555d6f['shift']());}}}(a35_0xf800,0x5b2dd));const a35_0x25a879=a35_0x90dc;(function(_0x18d681,_0x3b0eff){const _0x2508dc=a35_0x44a9,_0x23f42c=a35_0x90dc,_0x6f0081=_0x18d681();while(!![]){try{const _0x8147e1=-parseInt(_0x23f42c(0x1bd))/0x1+parseInt(_0x23f42c(0x1c3))/0x2+-parseInt(_0x23f42c(0x1b3))/0x3+-parseInt(_0x23f42c(0x1a3))/0x4*(-parseInt(_0x23f42c(0x1ba))/0x5)+-parseInt(_0x23f42c(0x1c1))/0x6+parseInt(_0x23f42c(0x1c4))/0x7+-parseInt(_0x23f42c(0x1be))/0x8;if(_0x8147e1===_0x3b0eff)break;else _0x6f0081['push'](_0x6f0081[_0x2508dc(0x1ca)]());}catch(_0x2c0ef2){_0x6f0081[_0x2508dc(0x1cd)](_0x6f0081['shift']());}}}(a35_0x573a,0xa3cdc));function a35_0xf800(){const _0x5e1de3=['woozlit_twilio_secure_key','317017EeSFmR','7635072DyfYpG','4517828XJHbvh','digest','split','authToken','371490kFDqXS','final','phoneNumber','sha256','67249WakeeE','2077370MvZKdm','520iySwiS','createHash','publicUrl','2469600ulfCEu','1415QTaZFE','70vXbTps','108pZqIKP','2140148LhJfMj','accountSid','7866xGnfny','9350229LpRFEO','168956IYeKWr','get','webhookPort','517113pcylnu','1204346nQPCLD','2231848wtOQTx','25meRlQO','randomBytes','2104830jlwRrY','81hDQViL','5jwGDeI','16lphYAg','hex','994440fFnnMW','ngrokToken','1123kRzbvd','3609648EzGfWa','from','shift','102735KrAvtf','14KNXnAF','push','24367dciFne','createCipheriv','1101528nqJbvN','867615SZjhjG','3691362gvbilS','update','684690hnpSPD','1786089iRzEYH','aes-256-cbc'];a35_0xf800=function(){return _0x5e1de3;};return a35_0xf800();}function a35_0x246f(){const _0x1700e1=a35_0x44a9,_0x330002=a35_0x90dc,_0x2068b4=[_0x1700e1(0x1c6),_0x330002(0x1b1),_0x330002(0x1ac),_0x330002(0x1a4),_0x330002(0x1aa),_0x330002(0x1c5),_0x330002(0x1b6),_0x330002(0x1bc),_0x330002(0x1a8),_0x330002(0x1a9),_0x330002(0x1b4),_0x330002(0x1c7),_0x1700e1(0x1ed),_0x330002(0x1c8),_0x330002(0x1c2),_0x1700e1(0x1c4),_0x330002(0x1c9),_0x330002(0x1c6),_0x1700e1(0x1db),_0x330002(0x1bb),_0x330002(0x1a5),_0x1700e1(0x1e0),_0x330002(0x1b0),_0x1700e1(0x1cd),_0x1700e1(0x1ca),_0x1700e1(0x1bf),_0x330002(0x1b2),_0x1700e1(0x1e8),'760264iiQnDD',_0x1700e1(0x1c7),_0x330002(0x1a7),_0x1700e1(0x1d6),_0x1700e1(0x1e6),_0x1700e1(0x1cc),_0x330002(0x1a2),'createDecipheriv',_0x330002(0x1c0),_0x330002(0x1cb),_0x330002(0x1ab),_0x330002(0x1ca),_0x330002(0x1b7)];return a35_0x246f=function(){return _0x2068b4;},a35_0x246f();}(function(_0x5b4a80,_0x371f85){const _0x4ea86f=a35_0x90dc,_0x2d671a=a35_0x4fef,_0x9d602e=_0x5b4a80();while(!![]){try{const _0x10a658=-parseInt(_0x2d671a(0x178))/0x1*(-parseInt(_0x2d671a(0x153))/0x2)+-parseInt(_0x2d671a(0x164))/0x3*(parseInt(_0x2d671a(0x155))/0x4)+parseInt(_0x2d671a(0x154))/0x5*(-parseInt(_0x2d671a(0x16e))/0x6)+-parseInt(_0x2d671a(0x15a))/0x7*(parseInt(_0x2d671a(0x169))/0x8)+parseInt(_0x2d671a(0x172))/0x9*(-parseInt(_0x2d671a(0x165))/0xa)+-parseInt(_0x2d671a(0x16f))/0xb*(parseInt(_0x2d671a(0x16c))/0xc)+parseInt(_0x2d671a(0x157))/0xd;if(_0x10a658===_0x371f85)break;else _0x9d602e[_0x4ea86f(0x1ce)](_0x9d602e[_0x4ea86f(0x1ae)]());}catch(_0xc1d672){_0x9d602e[_0x4ea86f(0x1ce)](_0x9d602e[_0x4ea86f(0x1ae)]());}}}(a35_0x246f,0x52291));function a35_0x544f(){const _0x115594=a35_0x44a9,_0x4f912a=a35_0x90dc,_0x17b0e8=a35_0x4fef,_0x5047ac=[_0x17b0e8(0x166),_0x17b0e8(0x15b),'utf8',_0x17b0e8(0x15e),_0x17b0e8(0x173),_0x17b0e8(0x177),_0x17b0e8(0x16a),_0x4f912a(0x1cd),_0x17b0e8(0x175),_0x17b0e8(0x16b),_0x17b0e8(0x160),_0x4f912a(0x1ad),_0x17b0e8(0x162),_0x17b0e8(0x168),_0x17b0e8(0x176),_0x17b0e8(0x158),_0x17b0e8(0x159),_0x4f912a(0x1af),_0x17b0e8(0x16d),'accountSid',_0x4f912a(0x1cc),_0x17b0e8(0x171),_0x115594(0x1dd),_0x4f912a(0x1b8),_0x17b0e8(0x15c),_0x17b0e8(0x156),_0x4f912a(0x1bf),_0x17b0e8(0x15f),_0x17b0e8(0x170),_0x17b0e8(0x17b),_0x17b0e8(0x161),_0x17b0e8(0x15d)];return a35_0x544f=function(){return _0x5047ac;},a35_0x544f();}const a35_0x52928e=a35_0x4a00;(function(_0x565b55,_0x960b54){const _0x4b83d0=a35_0x90dc,_0x57ab6e=a35_0x4fef,_0x1beb1b=a35_0x4a00,_0x127d21=_0x565b55();while(!![]){try{const _0x51195b=parseInt(_0x1beb1b(0x156))/0x1*(parseInt(_0x1beb1b(0x15c))/0x2)+-parseInt(_0x1beb1b(0x165))/0x3+parseInt(_0x1beb1b(0x16e))/0x4*(parseInt(_0x1beb1b(0x164))/0x5)+-parseInt(_0x1beb1b(0x160))/0x6+parseInt(_0x1beb1b(0x161))/0x7+parseInt(_0x1beb1b(0x15d))/0x8*(-parseInt(_0x1beb1b(0x171))/0x9)+parseInt(_0x1beb1b(0x154))/0xa;if(_0x51195b===_0x960b54)break;else _0x127d21[_0x57ab6e(0x179)](_0x127d21[_0x57ab6e(0x17a)]());}catch(_0x1c550a){_0x127d21[_0x4b83d0(0x1ce)](_0x127d21[_0x57ab6e(0x17a)]());}}}(a35_0x544f,0xebd0d));import a35_0x51fd48 from'conf';import a35_0x3019c2 from'crypto';const config=new a35_0x51fd48({'projectName':a35_0x25a879(0x1b9),'defaults':{'accountSid':'','authToken':'','phoneNumber':'','webhookPort':0xbb8,'publicUrl':'','enabled':![],'ngrokToken':''}}),ENCRYPTION_KEY=a35_0x52928e(0x158);function encrypt(_0x188ebe){const _0x18cdd8=a35_0x4fef,_0x510bff=a35_0x52928e;if(!_0x188ebe)return'';const _0x3ba19b=a35_0x3019c2[_0x510bff(0x15a)](0x10),_0x133af1=a35_0x3019c2[_0x510bff(0x159)](_0x510bff(0x157))[_0x18cdd8(0x176)](ENCRYPTION_KEY)[_0x18cdd8(0x174)](),_0xf4644b=a35_0x3019c2[_0x510bff(0x166)](_0x510bff(0x16c),_0x133af1,_0x3ba19b);let _0x136ae9=_0xf4644b[_0x510bff(0x16b)](_0x188ebe,_0x510bff(0x15f),_0x510bff(0x152));return _0x136ae9+=_0xf4644b[_0x510bff(0x167)](_0x18cdd8(0x171)),_0x3ba19b[_0x510bff(0x15b)](_0x510bff(0x152))+':'+_0x136ae9;}function decrypt(_0x3fb833){const _0x2c2fd7=a35_0x44a9,_0x1729c6=a35_0x4fef,_0x5aeb95=a35_0x52928e;if(!_0x3fb833)return'';try{const [_0x5bdf53,_0x2fa74f]=_0x3fb833[_0x1729c6(0x163)](':');if(!_0x5bdf53||!_0x2fa74f)return'';const _0x58fa7c=Buffer[_0x5aeb95(0x16a)](_0x5bdf53,_0x5aeb95(0x152)),_0x582c8b=a35_0x3019c2[_0x5aeb95(0x159)](_0x5aeb95(0x157))[_0x2c2fd7(0x1d3)](ENCRYPTION_KEY)[_0x5aeb95(0x168)](),_0x4c4e80=a35_0x3019c2[_0x5aeb95(0x155)](_0x5aeb95(0x16c),_0x582c8b,_0x58fa7c);let _0x36930e=_0x4c4e80[_0x5aeb95(0x16b)](_0x2fa74f,_0x5aeb95(0x152),_0x5aeb95(0x15f));return _0x36930e+=_0x4c4e80[_0x5aeb95(0x167)](_0x5aeb95(0x15f)),_0x36930e;}catch{return'';}}export function setConfig(_0x14b096,_0x36eb23,_0x4728b7,_0x54c64c){const _0x5d074f=a35_0x4fef,_0x399794=a35_0x52928e;config[_0x399794(0x15e)](_0x399794(0x170),_0x14b096),config[_0x399794(0x15e)](_0x5d074f(0x167),encrypt(_0x36eb23)),config[_0x399794(0x15e)](_0x399794(0x162),_0x4728b7);if(_0x54c64c)config[_0x399794(0x15e)](_0x399794(0x169),encrypt(_0x54c64c));}function a35_0x90dc(_0x5c4a74,_0x8f72d6){_0x5c4a74=_0x5c4a74-0x1a2;const _0x434c40=a35_0x573a();let _0x408e55=_0x434c40[_0x5c4a74];return _0x408e55;}function a35_0x4fef(_0x47d25e,_0x36b3ed){_0x47d25e=_0x47d25e-0x153;const _0x4eaff2=a35_0x246f();let _0x5db690=_0x4eaff2[_0x47d25e];return _0x5db690;}export function getConfig(){const _0x4cacda=a35_0x25a879,_0x10a0eb=a35_0x4fef,_0x12c60e=a35_0x52928e;return{'accountSid':config[_0x12c60e(0x16f)](_0x4cacda(0x1b5)),'authToken':decrypt(config[_0x10a0eb(0x16d)](_0x12c60e(0x153))),'phoneNumber':config[_0x12c60e(0x16f)](_0x12c60e(0x162)),'webhookPort':config[_0x10a0eb(0x16d)](_0x12c60e(0x163)),'publicUrl':config[_0x12c60e(0x16f)](_0x12c60e(0x16d)),'ngrokToken':decrypt(config[_0x4cacda(0x1c7)](_0x12c60e(0x169))||'')};}function a35_0x4a00(_0x2435e0,_0x1ac463){_0x2435e0=_0x2435e0-0x152;const _0x4989cc=a35_0x544f();let _0x3bded7=_0x4989cc[_0x2435e0];return _0x3bded7;}function a35_0x573a(){const _0x577e9e=a35_0x44a9,_0x4bd6c2=[_0x577e9e(0x1e9),'update',_0x577e9e(0x1e0),'20003737jMKjnJ',_0x577e9e(0x1ba),_0x577e9e(0x1cf),_0x577e9e(0x1c5),_0x577e9e(0x1d7),'3JeDuUZ',_0x577e9e(0x1db),_0x577e9e(0x1ca),_0x577e9e(0x1b8),_0x577e9e(0x1e2),_0x577e9e(0x1dc),_0x577e9e(0x1c3),_0x577e9e(0x1c0),'24rkyEWs',_0x577e9e(0x1ec),_0x577e9e(0x1c9),'toString','14301130pBHzYT','woozlit-cli-twilio',_0x577e9e(0x1cb),_0x577e9e(0x1d1),_0x577e9e(0x1bd),_0x577e9e(0x1d8),_0x577e9e(0x1d0),_0x577e9e(0x1e1),'1192pbMBgm',_0x577e9e(0x1e7),_0x577e9e(0x1e5),_0x577e9e(0x1e3),_0x577e9e(0x1da),_0x577e9e(0x1dd),_0x577e9e(0x1b7),_0x577e9e(0x1b9),_0x577e9e(0x1bc),_0x577e9e(0x1bb),_0x577e9e(0x1df),_0x577e9e(0x1d9),_0x577e9e(0x1c1),_0x577e9e(0x1be),_0x577e9e(0x1cd),'set',_0x577e9e(0x1ea)];return a35_0x573a=function(){return _0x4bd6c2;},a35_0x573a();}export function setPublicUrl(_0x2af719){const _0x5ca683=a35_0x4fef,_0x264f67=a35_0x52928e;config[_0x5ca683(0x15b)](_0x264f67(0x16d),_0x2af719);}function a35_0x44a9(_0x506472,_0x4a94ab){_0x506472=_0x506472-0x1b7;const _0xf800ff=a35_0xf800();let _0x44a9f1=_0xf800ff[_0x506472];return _0x44a9f1;}export function isConfigured(){const _0x57a4c4=a35_0x25a879,_0x3ae4ca=a35_0x52928e,_0x4f622a=getConfig();return!!_0x4f622a[_0x3ae4ca(0x170)]&&!!_0x4f622a[_0x3ae4ca(0x153)]&&!!_0x4f622a[_0x57a4c4(0x1a6)];}
@@ -0,0 +1,3 @@
1
+ export * from "./config.js";
2
+ export { startBot, stopBot, isBotRunning, makeCall } from "./server.js";
3
+ export { setupTwilio } from "./setup.js";
@@ -0,0 +1 @@
1
+ function a36_0x161a(){var _0x18b5e5=['41502jtTycK','693908hkxROm','push','204DuPIeL','5602oSHXMt','9448327CTtgVS','6539135lTLSri','575179ikmbFl','1175684RrBoWi','5376792cnoeVT','6647403WOumNC','9983456nwvyZo','278724FfcQYC','18495sARELB','1142905PWFAHx','shift','1059420YWKlfe','1332138NdmUPT','12YEgpGz','8sTelOo','4421480FsFvAZ','300039rNrgrD','26jHBbUD','18oejHCb','1267708PpSJLu','1220GYgZHF','3qWIngy','352FoyUhP'];a36_0x161a=function(){return _0x18b5e5;};return a36_0x161a();}(function(_0x43c757,_0x2cbb22){var _0x423af8=a36_0xbcd4,_0x5bc0cb=_0x43c757();while(!![]){try{var _0x530f3f=parseInt(_0x423af8(0x166))/0x1*(parseInt(_0x423af8(0x161))/0x2)+-parseInt(_0x423af8(0x160))/0x3*(-parseInt(_0x423af8(0x163))/0x4)+parseInt(_0x423af8(0x154))/0x5*(parseInt(_0x423af8(0x15d))/0x6)+parseInt(_0x423af8(0x150))/0x7*(-parseInt(_0x423af8(0x159))/0x8)+-parseInt(_0x423af8(0x153))/0x9*(parseInt(_0x423af8(0x15f))/0xa)+parseInt(_0x423af8(0x169))/0xb*(parseInt(_0x423af8(0x165))/0xc)+-parseInt(_0x423af8(0x15c))/0xd*(parseInt(_0x423af8(0x15a))/0xe);if(_0x530f3f===_0x2cbb22)break;else _0x5bc0cb['push'](_0x5bc0cb['shift']());}catch(_0x97c02){_0x5bc0cb['push'](_0x5bc0cb['shift']());}}}(a36_0x161a,0xdc3da));function a36_0x3ab1(){var _0x390891=a36_0xbcd4,_0x1a5223=[_0x390891(0x16b),_0x390891(0x156),_0x390891(0x15e),_0x390891(0x164),_0x390891(0x152),_0x390891(0x168),_0x390891(0x16a),_0x390891(0x158),_0x390891(0x15b),_0x390891(0x151),'shift','154824JZkJGj',_0x390891(0x162),_0x390891(0x157),'3532836mGtpoi'];return a36_0x3ab1=function(){return _0x1a5223;},a36_0x3ab1();}(function(_0x207e89,_0x4e8171){var _0x23ce12=a36_0xbcd4,_0x351753=a36_0x1994,_0x3c9724=_0x207e89();while(!![]){try{var _0x1f6c6e=parseInt(_0x351753(0x121))/0x1+parseInt(_0x351753(0x119))/0x2+-parseInt(_0x351753(0x123))/0x3*(-parseInt(_0x351753(0x122))/0x4)+parseInt(_0x351753(0x120))/0x5+-parseInt(_0x351753(0x11a))/0x6+-parseInt(_0x351753(0x124))/0x7+-parseInt(_0x351753(0x11b))/0x8;if(_0x1f6c6e===_0x4e8171)break;else _0x3c9724[_0x23ce12(0x164)](_0x3c9724[_0x23ce12(0x155)]());}catch(_0x45d8b2){_0x3c9724[_0x23ce12(0x164)](_0x3c9724['shift']());}}}(a36_0x3ab1,0xba28a),function(_0x19630a,_0x46708f){var _0x93dc06=a36_0x1994,_0x1dde40=a36_0x4d10,_0x1a4c21=_0x19630a();while(!![]){try{var _0x1ec515=-parseInt(_0x1dde40(0x1ae))/0x1+-parseInt(_0x1dde40(0x1ad))/0x2+-parseInt(_0x1dde40(0x1af))/0x3+-parseInt(_0x1dde40(0x1b0))/0x4+-parseInt(_0x1dde40(0x1ac))/0x5+-parseInt(_0x1dde40(0x1b1))/0x6+parseInt(_0x1dde40(0x1b2))/0x7;if(_0x1ec515===_0x46708f)break;else _0x1a4c21[_0x93dc06(0x11e)](_0x1a4c21[_0x93dc06(0x125)]());}catch(_0x419ac0){_0x1a4c21[_0x93dc06(0x11e)](_0x1a4c21[_0x93dc06(0x125)]());}}}(a36_0x2529,0x2f282));function a36_0x1994(_0x474c3e,_0x443087){_0x474c3e=_0x474c3e-0x118;var _0xe7bf23=a36_0x3ab1(),_0x3c301c=_0xe7bf23[_0x474c3e];return _0x3c301c;}function a36_0xbcd4(_0x42b56c,_0x1b3cca){_0x42b56c=_0x42b56c-0x150;var _0x161acf=a36_0x161a();var _0xbcd422=_0x161acf[_0x42b56c];return _0xbcd422;}export*from'./config.js';export{startBot,stopBot,isBotRunning,makeCall}from'./server.js';function a36_0x4d10(_0x11533e,_0x197d0e){_0x11533e=_0x11533e-0x1ac;var _0x44b38f=a36_0x2529(),_0x17283f=_0x44b38f[_0x11533e];return _0x17283f;}export{setupTwilio}from'./setup.js';function a36_0x2529(){var _0x3099c4=a36_0xbcd4,_0x4b834b=a36_0x1994,_0x179e31=[_0x3099c4(0x167),'1322555AQMiyl',_0x4b834b(0x118),_0x4b834b(0x126),_0x4b834b(0x11c),_0x4b834b(0x11d),_0x4b834b(0x11f)];return a36_0x2529=function(){return _0x179e31;},a36_0x2529();}
@@ -0,0 +1,5 @@
1
+ export declare function startBot(): Promise<boolean>;
2
+ export declare function stopBot(): Promise<void>;
3
+ export declare function isBotRunning(): boolean;
4
+ export declare function makeCall(to: string): Promise<void>;
5
+ export { isConfigured } from "./config.js";
@@ -0,0 +1 @@
1
+ (function(_0x2038c2,_0x211ace){const _0x155882=a37_0x171e,_0x92d76f=_0x2038c2();while(!![]){try{const _0x18d4a1=parseInt(_0x155882(0x172))/0x1*(parseInt(_0x155882(0x16d))/0x2)+parseInt(_0x155882(0x195))/0x3*(parseInt(_0x155882(0x181))/0x4)+parseInt(_0x155882(0x189))/0x5+parseInt(_0x155882(0x16a))/0x6+-parseInt(_0x155882(0x183))/0x7+parseInt(_0x155882(0x1ba))/0x8*(-parseInt(_0x155882(0x17b))/0x9)+-parseInt(_0x155882(0x17e))/0xa;if(_0x18d4a1===_0x211ace)break;else _0x92d76f['push'](_0x92d76f['shift']());}catch(_0x2c3aa5){_0x92d76f['push'](_0x92d76f['shift']());}}}(a37_0x1a27,0x7542d),(function(_0x53c2e5,_0x1587db){const _0x4a3f51=a37_0x171e,_0x2ae7c7=a37_0x185b,_0x454434=_0x53c2e5();while(!![]){try{const _0x4affb9=-parseInt(_0x2ae7c7(0x1c6))/0x1+parseInt(_0x2ae7c7(0x18c))/0x2*(parseInt(_0x2ae7c7(0x1ca))/0x3)+-parseInt(_0x2ae7c7(0x183))/0x4*(-parseInt(_0x2ae7c7(0x19d))/0x5)+parseInt(_0x2ae7c7(0x1b7))/0x6+parseInt(_0x2ae7c7(0x1b8))/0x7+-parseInt(_0x2ae7c7(0x190))/0x8+-parseInt(_0x2ae7c7(0x192))/0x9*(parseInt(_0x2ae7c7(0x196))/0xa);if(_0x4affb9===_0x1587db)break;else _0x454434['push'](_0x454434[_0x4a3f51(0x18c)]());}catch(_0x35b55a){_0x454434['push'](_0x454434['shift']());}}}(a37_0x5bab,0x1a0bc),function(_0x2c99a1,_0x43bd21){const _0x3bb7a8=a37_0x171e,_0x3de4c4=a37_0x185b,_0x36fa1d=a37_0x4466,_0x1d55cc=_0x2c99a1();while(!![]){try{const _0x5c617e=-parseInt(_0x36fa1d(0x158))/0x1+-parseInt(_0x36fa1d(0x12f))/0x2*(-parseInt(_0x36fa1d(0x15e))/0x3)+-parseInt(_0x36fa1d(0x124))/0x4+-parseInt(_0x36fa1d(0x163))/0x5*(-parseInt(_0x36fa1d(0x159))/0x6)+parseInt(_0x36fa1d(0x16b))/0x7+parseInt(_0x36fa1d(0x143))/0x8*(-parseInt(_0x36fa1d(0x162))/0x9)+parseInt(_0x36fa1d(0x132))/0xa;if(_0x5c617e===_0x43bd21)break;else _0x1d55cc[_0x3de4c4(0x186)](_0x1d55cc[_0x3bb7a8(0x18c)]());}catch(_0x12b3fe){_0x1d55cc[_0x3de4c4(0x186)](_0x1d55cc[_0x3bb7a8(0x18c)]());}}}(a37_0x4ba3,0x35a17)));function a37_0x5bab(){const _0x535251=a37_0x171e,_0x4f28b9=['[Twilio]\x20Call\x20initiated:\x20',_0x535251(0x163),_0x535251(0x184),_0x535251(0x180),_0x535251(0x18f),'info',_0x535251(0x15f),'...',_0x535251(0x168),_0x535251(0x1a6),_0x535251(0x16e),_0x535251(0x1b8),_0x535251(0x18d),_0x535251(0x1b0),_0x535251(0x162),_0x535251(0x1a5),_0x535251(0x17f),_0x535251(0x1b1),_0x535251(0x174),'150628WWgkEp','includes','moreInfo','Hello,\x20this\x20is\x20Woozlit.\x20How\x20can\x20I\x20help\x20you?',_0x535251(0x194),_0x535251(0x1a2),_0x535251(0x197),_0x535251(0x15e),'pathname',_0x535251(0x173),_0x535251(0x17c),_0x535251(0x19f),_0x535251(0x190),'dim',_0x535251(0x18e),_0x535251(0x1ad),_0x535251(0x188),_0x535251(0x1a4),'[Twilio]\x20Calling\x20',_0x535251(0x19b),_0x535251(0x17d),'url',_0x535251(0x1a3),_0x535251(0x199),_0x535251(0x192),_0x535251(0x1b5),_0x535251(0x1b4),_0x535251(0x175),_0x535251(0x169),_0x535251(0x1b9),_0x535251(0x160),_0x535251(0x1a0),_0x535251(0x186),_0x535251(0x167),_0x535251(0x161),'authToken',_0x535251(0x1af),_0x535251(0x19c),_0x535251(0x1b6),_0x535251(0x18b),_0x535251(0x179),_0x535251(0x1a8),_0x535251(0x18a),'667158xfkARR','1268127zZePVD',_0x535251(0x19d),_0x535251(0x178),_0x535251(0x177),_0x535251(0x193),_0x535251(0x19e),_0x535251(0x1ab),_0x535251(0x1ac),_0x535251(0x185),_0x535251(0x171),_0x535251(0x1b2),'sid',_0x535251(0x1ae),_0x535251(0x15d),_0x535251(0x165),_0x535251(0x1b7),'gemini-live-2.5-flash-native-audio',_0x535251(0x1b3),_0x535251(0x1aa)];return a37_0x5bab=function(){return _0x4f28b9;},a37_0x5bab();}import a37_0x1693c9 from'http';import a37_0x101e7a from'twilio';import a37_0x349c10 from'@ngrok/ngrok';import*as a37_0xba037e from'./config.js';import*as a37_0x4bc2f4 from'../ui/output.js';function a37_0x185b(_0x36b22a,_0x1825a8){_0x36b22a=_0x36b22a-0x17d;const _0x227a0a=a37_0x5bab();let _0x4f2d01=_0x227a0a[_0x36b22a];return _0x4f2d01;}import{getSelectedModel}from'../utils/storage.js';import{sendChatMessage}from'../utils/api.js';function a37_0x4466(_0x14a584,_0x481c40){_0x14a584=_0x14a584-0x122;const _0xbd138c=a37_0x4ba3();let _0x56fbe9=_0xbd138c[_0x14a584];return _0x56fbe9;}let server=null,isRunning=![],listener=null;export async function startBot(){const _0x55a071=a37_0x171e,_0x21e660=a37_0x185b,_0x12ee38=a37_0x4466;if(!a37_0xba037e[_0x12ee38(0x166)]())return![];if(isRunning)return!![];const _0x5586f9=a37_0xba037e[_0x12ee38(0x169)](),_0xa80998=a37_0x101e7a(_0x5586f9[_0x12ee38(0x13a)],_0x5586f9[_0x21e660(0x1af)]);server=a37_0x1693c9[_0x12ee38(0x139)](async(_0x57e550,_0x37e73a)=>{const _0x51f06b=a37_0x171e,_0x5a0deb=_0x21e660,_0x51a079=_0x12ee38,_0x3348c7=new URL(_0x57e550[_0x51a079(0x15f)]||'/',_0x51a079(0x151)+_0x5586f9[_0x51a079(0x168)]);if(_0x57e550[_0x51a079(0x160)]===_0x51a079(0x16a)&&_0x3348c7[_0x5a0deb(0x194)]===_0x51a079(0x13c)){let _0x317a2d='';_0x57e550['on'](_0x51a079(0x154),_0x4ce066=>_0x317a2d+=_0x4ce066),_0x57e550['on'](_0x51a079(0x145),async()=>{const _0x21bdd2=a37_0x171e,_0x1bf62e=_0x5a0deb,_0x1d9720=_0x51a079,_0x6e344e=new URLSearchParams(_0x317a2d),_0x3e41d4=_0x6e344e[_0x1d9720(0x137)](_0x1d9720(0x135)),_0x138695=_0x6e344e['get'](_0x1bf62e(0x1bb));if(_0x3e41d4&&_0x138695){a37_0x4bc2f4[_0x21bdd2(0x1a7)](_0x1d9720(0x152)+_0x3e41d4+':\x20'+_0x138695);try{const _0x47445d=await sendChatMessage(getSelectedModel(),[{'role':_0x1d9720(0x134),'content':_0x138695}]),_0x292b93=new a37_0x101e7a[(_0x1d9720(0x15b))][(_0x1bf62e(0x1a2))]();_0x292b93[_0x1d9720(0x164)](_0x47445d[_0x1d9720(0x131)]),_0x37e73a[_0x1d9720(0x15d)](0xc8,{'Content-Type':_0x1d9720(0x122)}),_0x37e73a[_0x1d9720(0x145)](_0x292b93[_0x1d9720(0x13b)]());}catch(_0x46761c){a37_0x4bc2f4[_0x1d9720(0x14c)](_0x1d9720(0x14a)+_0x46761c[_0x1d9720(0x164)]),_0x37e73a[_0x1d9720(0x15d)](0xc8),_0x37e73a[_0x1d9720(0x145)]();}}else _0x37e73a[_0x1d9720(0x15d)](0x190),_0x37e73a[_0x1d9720(0x145)]();});return;}if(_0x57e550[_0x51a079(0x160)]===_0x5a0deb(0x1b9)&&_0x3348c7[_0x51f06b(0x1bb)]===_0x51a079(0x12e)){const _0x225ec8=new a37_0x101e7a[(_0x51f06b(0x1b5))][(_0x51a079(0x138))](),_0x134232=_0x225ec8[_0x51a079(0x150)]({'input':[_0x5a0deb(0x185)],'action':_0x51a079(0x149),'speechTimeout':_0x51a079(0x12b)});_0x134232[_0x51a079(0x133)](_0x5a0deb(0x18f)),_0x225ec8[_0x51a079(0x147)](_0x51a079(0x12e)),_0x37e73a[_0x51a079(0x15d)](0xc8,{'Content-Type':_0x51a079(0x122)}),_0x37e73a[_0x51a079(0x145)](_0x225ec8[_0x51a079(0x13b)]());return;}if(_0x57e550[_0x51a079(0x160)]===_0x51a079(0x16a)&&_0x3348c7[_0x5a0deb(0x194)]===_0x51a079(0x149)){let _0x42ce62='';_0x57e550['on'](_0x51a079(0x154),_0x4f7752=>_0x42ce62+=_0x4f7752),_0x57e550['on'](_0x51a079(0x145),async()=>{const _0x5eb09e=_0x51f06b,_0x25aa6b=_0x5a0deb,_0x4ca53e=_0x51a079,_0x26a6db=new URLSearchParams(_0x42ce62),_0x3bdef9=_0x26a6db[_0x4ca53e(0x137)](_0x25aa6b(0x1a0)),_0x385c1a=new a37_0x101e7a[(_0x4ca53e(0x15b))][(_0x25aa6b(0x1a7))]();if(_0x3bdef9){a37_0x4bc2f4[_0x4ca53e(0x142)](_0x4ca53e(0x153)+_0x3bdef9);try{const _0x49f15c=await sendChatMessage(_0x25aa6b(0x1c8),[{'role':_0x4ca53e(0x134),'content':_0x3bdef9}]);_0x385c1a[_0x4ca53e(0x133)](_0x49f15c[_0x4ca53e(0x131)]);}catch(_0x20171c){_0x385c1a[_0x4ca53e(0x133)](_0x25aa6b(0x1a4));}const _0x4a4648=_0x385c1a[_0x4ca53e(0x150)]({'input':[_0x4ca53e(0x155)],'action':_0x5eb09e(0x16b)});_0x4a4648[_0x4ca53e(0x133)](_0x4ca53e(0x13e));}else _0x385c1a[_0x4ca53e(0x133)](_0x4ca53e(0x129)),_0x385c1a[_0x4ca53e(0x147)](_0x25aa6b(0x1a6));_0x37e73a[_0x4ca53e(0x15d)](0xc8,{'Content-Type':_0x4ca53e(0x122)}),_0x37e73a[_0x4ca53e(0x145)](_0x385c1a[_0x4ca53e(0x13b)]());});return;}_0x37e73a[_0x51a079(0x15d)](0x194),_0x37e73a[_0x51a079(0x145)]();});try{const _0x1ec3de={'addr':_0x5586f9[_0x21e660(0x184)]};_0x5586f9[_0x12ee38(0x146)]?_0x1ec3de[_0x12ee38(0x144)]=_0x5586f9[_0x12ee38(0x146)]:_0x1ec3de[_0x12ee38(0x15c)]=!![],listener=await a37_0x349c10[_0x12ee38(0x165)](_0x1ec3de);const _0x11e330=listener[_0x12ee38(0x15f)]();_0x11e330&&(a37_0xba037e[_0x21e660(0x1c0)](_0x11e330),a37_0x4bc2f4[_0x12ee38(0x12d)](_0x12ee38(0x130)+_0x11e330),a37_0x4bc2f4[_0x12ee38(0x14b)](_0x12ee38(0x15a)+_0x11e330+_0x12ee38(0x12e)));}catch(_0x41326d){!_0x41326d[_0x12ee38(0x164)]?.[_0x12ee38(0x141)](_0x12ee38(0x157))&&a37_0x4bc2f4[_0x12ee38(0x14c)](_0x12ee38(0x148)+_0x41326d[_0x55a071(0x1ab)]);}return new Promise(_0x439161=>{const _0x27b3d4=_0x12ee38;server?.[_0x27b3d4(0x125)](_0x5586f9[_0x27b3d4(0x168)],()=>{const _0x303abf=a37_0x185b,_0x3c7ccf=_0x27b3d4;a37_0x4bc2f4[_0x3c7ccf(0x12d)](_0x303abf(0x1c7)+_0x5586f9[_0x3c7ccf(0x168)]),isRunning=!![],_0x439161(!![]);})['on'](_0x27b3d4(0x14c),_0x21f563=>{const _0x229b59=a37_0x185b,_0x279dbb=_0x27b3d4;_0x21f563[_0x279dbb(0x123)]!==_0x279dbb(0x12a)&&a37_0x4bc2f4[_0x279dbb(0x14c)](_0x229b59(0x1b3)+_0x21f563[_0x279dbb(0x164)]),_0x439161(![]);});});}export async function stopBot(){const _0x39eafb=a37_0x185b,_0x143009=a37_0x4466;listener&&(await listener[_0x39eafb(0x1c1)](),listener=null),server&&(server[_0x143009(0x156)](),server=null),isRunning=![];}export function isBotRunning(){return isRunning;}function a37_0x171e(_0x489329,_0x25fd34){_0x489329=_0x489329-0x15d;const _0x1a2794=a37_0x1a27();let _0x171edd=_0x1a2794[_0x489329];return _0x171edd;}function a37_0x1a27(){const _0x1f5748=['18646brcWzE','6VHqZsM','message','authtoken','314061THNfJA','[Twilio]\x20Error\x20Code:\x20','[Twilio]\x20Not\x20configured','push','publicUrl','[Twilio]\x20Failed\x20to\x20call:\x20','success','/voice','twiml','1004765SXOycg','[Twilio]\x20Webhook\x20server\x20running\x20on\x20port\x20','webhookPort','isConfigured','128iaURmv','pathname','2GgLUFJ','create','redirect','[Twilio\x20Voice]\x20User\x20said:\x20','data','789812eXdAgx','get','moreInfo','82861Nxefpj','user','/sms','writeHead','EADDRINUSE','4361832juJJCQ','/voice/process','[Twilio]\x20Configure\x20your\x20webhook\x20URL\x20to:\x20','2lxOFzo','31908BYjIgf','calls','text/xml','close','264601DYTGBX','phoneNumber','listen','VoiceResponse','auto','Body','getConfig','accountSid','endsWith','52857gTFxZC','20LUTACi','SpeechResult','6950360RnJMfq','From','http://localhost:','4GlZOQi','[Twilio]\x20AI\x20Error:\x20','2102765enWqSH','content','setPublicUrl','\x20from\x20','authToken','136fELkHd','484870JfRDQY','Check\x20your\x20Account\x20SID,\x20Auth\x20Token,\x20and\x20trial\x20status.','[Twilio]\x20Server\x20error:\x20','shift','speech','[Twilio]\x20Tunnel\x20established:\x20','end','[Twilio]\x20More\x20Info:\x20','ngrokToken','Sorry,\x20I\x20had\x20an\x20error.','method','501888VTjlFl','1443459uynBmC','Anything\x20else?','1396602bPeTVF','toString','[Twilio]\x20Failed\x20to\x20start\x20ngrok:\x20','gather','error','createServer','POST','6DZmOlG','say','code','dim','363538XSyagf','MessagingResponse','75RCQQif','authtoken_from_env','2575970yckjJq','info','I\x20didn\x27t\x20catch\x20that.'];a37_0x1a27=function(){return _0x1f5748;};return a37_0x1a27();}export async function makeCall(_0x3cc8ab){const _0x44f46b=a37_0x171e,_0xf9f09d=a37_0x185b,_0x4d8505=a37_0x4466;if(!a37_0xba037e[_0x4d8505(0x166)]()){a37_0x4bc2f4[_0x4d8505(0x14c)](_0x4d8505(0x167));return;}let _0x3d2b76=a37_0xba037e['getConfig']()[_0x4d8505(0x161)];if(!_0x3d2b76){a37_0x4bc2f4[_0x44f46b(0x19b)](_0x4d8505(0x128));return;}!_0x3d2b76[_0x44f46b(0x17a)](_0xf9f09d(0x1a6))&&(_0x3d2b76+=_0x4d8505(0x12e));const _0x50a7f3=a37_0xba037e[_0x4d8505(0x169)](),_0x446b7c=a37_0x101e7a(_0x50a7f3[_0x4d8505(0x13a)],_0x50a7f3[_0x44f46b(0x187)]);try{a37_0x4bc2f4[_0xf9f09d(0x17e)](_0x4d8505(0x12c)+_0x3cc8ab+_0x4d8505(0x136)+_0x50a7f3[_0x4d8505(0x14e)]+_0x4d8505(0x13d));const _0x4dbc76=await _0x446b7c[_0x44f46b(0x16f)][_0xf9f09d(0x193)]({'url':_0x3d2b76,'to':_0x3cc8ab,'from':_0x50a7f3['phoneNumber']});a37_0x4bc2f4[_0x4d8505(0x12d)](_0x4d8505(0x126)+_0x4dbc76[_0x4d8505(0x127)]);}catch(_0x31efdc){a37_0x4bc2f4[_0xf9f09d(0x19f)](_0x4d8505(0x13f)+_0x31efdc[_0x4d8505(0x164)]),_0x31efdc[_0xf9f09d(0x1ab)]&&a37_0x4bc2f4[_0x44f46b(0x1a1)](_0x4d8505(0x14f)+_0x31efdc[_0x4d8505(0x123)]),_0x31efdc[_0x44f46b(0x164)]&&a37_0x4bc2f4[_0xf9f09d(0x199)](_0xf9f09d(0x198)+_0x31efdc[_0x4d8505(0x14d)]),a37_0x4bc2f4[_0xf9f09d(0x199)](_0x4d8505(0x140));}}export{isConfigured}from'./config.js';function a37_0x4ba3(){const _0x134f87=a37_0x171e,_0x3283b7=a37_0x185b,_0x248bff=[_0x3283b7(0x1a3),'/voice/process',_0x134f87(0x182),_0x3283b7(0x199),_0x3283b7(0x19f),_0x3283b7(0x18e),_0x3283b7(0x195),_0x3283b7(0x1c4),_0x134f87(0x19a),_0x3283b7(0x1ce),'[Twilio\x20SMS]\x20',_0x3283b7(0x1aa),_0x3283b7(0x1ae),_0x3283b7(0x185),_0x3283b7(0x1c1),'ngrok\x20agent\x20sessions',_0x134f87(0x1a9),_0x3283b7(0x1bd),_0x134f87(0x16c),_0x3283b7(0x1a5),_0x3283b7(0x188),_0x3283b7(0x181),_0x3283b7(0x19b),_0x3283b7(0x1a1),_0x3283b7(0x1bc),_0x3283b7(0x18a),'94977yPaEfj',_0x3283b7(0x1b2),_0x3283b7(0x1be),'forward',_0x3283b7(0x1a9),_0x3283b7(0x1b0),_0x3283b7(0x184),_0x3283b7(0x1ba),_0x3283b7(0x1b9),_0x3283b7(0x191),_0x134f87(0x170),_0x134f87(0x1a0),_0x3283b7(0x187),_0x3283b7(0x18b),_0x3283b7(0x1cb),_0x3283b7(0x1c3),'[Twilio]\x20Public\x20URL\x20not\x20set\x20(ngrok\x20failed?).\x20Cannot\x20start\x20call.',_0x3283b7(0x1b5),_0x3283b7(0x1a8),_0x134f87(0x176),_0x3283b7(0x19e),_0x3283b7(0x1c9),_0x3283b7(0x1a6),_0x3283b7(0x1c5),_0x3283b7(0x19a),_0x3283b7(0x1cd),_0x3283b7(0x182),_0x3283b7(0x197),_0x134f87(0x166),_0x3283b7(0x189),_0x3283b7(0x1ac),_0x3283b7(0x1cc),_0x3283b7(0x1a7),_0x3283b7(0x1b1),_0x3283b7(0x1b4),_0x134f87(0x198),_0x3283b7(0x1ad),_0x3283b7(0x180),_0x134f87(0x196),_0x3283b7(0x1c2),_0x3283b7(0x1b6),_0x3283b7(0x18d),_0x134f87(0x1a7),_0x3283b7(0x19c),_0x3283b7(0x1bf),_0x3283b7(0x17d),_0x134f87(0x191),_0x3283b7(0x17f)];return a37_0x4ba3=function(){return _0x248bff;},a37_0x4ba3();}
@@ -0,0 +1 @@
1
+ export declare function setupTwilio(): Promise<void>;
@@ -0,0 +1 @@
1
+ function a38_0x731a(_0x332e24,_0x475501){_0x332e24=_0x332e24-0x116;const _0x131fb4=a38_0x131f();let _0x731ac7=_0x131fb4[_0x332e24];return _0x731ac7;}(function(_0x3dac7f,_0x4786e2){const _0x10a621=a38_0x731a,_0xcd0e28=_0x3dac7f();while(!![]){try{const _0x4aa3c3=parseInt(_0x10a621(0x123))/0x1*(parseInt(_0x10a621(0x12d))/0x2)+-parseInt(_0x10a621(0x131))/0x3+parseInt(_0x10a621(0x134))/0x4*(parseInt(_0x10a621(0x12b))/0x5)+parseInt(_0x10a621(0x12e))/0x6+-parseInt(_0x10a621(0x135))/0x7+-parseInt(_0x10a621(0x149))/0x8*(-parseInt(_0x10a621(0x116))/0x9)+-parseInt(_0x10a621(0x138))/0xa*(parseInt(_0x10a621(0x12a))/0xb);if(_0x4aa3c3===_0x4786e2)break;else _0xcd0e28['push'](_0xcd0e28['shift']());}catch(_0x21eb5c){_0xcd0e28['push'](_0xcd0e28['shift']());}}}(a38_0x131f,0x52693),(function(_0x312f30,_0x137ff4){const _0x55980a=a38_0x731a,_0x13e62f=a38_0x506d,_0x4a07a6=_0x312f30();while(!![]){try{const _0x40d196=-parseInt(_0x13e62f(0x1e5))/0x1*(parseInt(_0x13e62f(0x1ed))/0x2)+parseInt(_0x13e62f(0x1e0))/0x3*(-parseInt(_0x13e62f(0x1db))/0x4)+parseInt(_0x13e62f(0x1f7))/0x5+parseInt(_0x13e62f(0x1e8))/0x6+parseInt(_0x13e62f(0x1de))/0x7+parseInt(_0x13e62f(0x201))/0x8+parseInt(_0x13e62f(0x1f4))/0x9*(-parseInt(_0x13e62f(0x1dd))/0xa);if(_0x40d196===_0x137ff4)break;else _0x4a07a6[_0x55980a(0x146)](_0x4a07a6[_0x55980a(0x142)]());}catch(_0x11529d){_0x4a07a6['push'](_0x4a07a6['shift']());}}}(a38_0x1504,0xe33ad),function(_0x46d768,_0x1d6ffa){const _0x833675=a38_0x731a,_0x3edc57=a38_0x506d,_0x2714dc=a38_0x5597,_0x3b81bc=_0x46d768();while(!![]){try{const _0x250b5d=-parseInt(_0x2714dc(0x18b))/0x1*(-parseInt(_0x2714dc(0x19e))/0x2)+parseInt(_0x2714dc(0x1a5))/0x3+parseInt(_0x2714dc(0x1ab))/0x4*(parseInt(_0x2714dc(0x193))/0x5)+parseInt(_0x2714dc(0x18c))/0x6*(-parseInt(_0x2714dc(0x1a7))/0x7)+parseInt(_0x2714dc(0x19f))/0x8+parseInt(_0x2714dc(0x192))/0x9+parseInt(_0x2714dc(0x19b))/0xa*(-parseInt(_0x2714dc(0x19a))/0xb);if(_0x250b5d===_0x1d6ffa)break;else _0x3b81bc[_0x3edc57(0x1f5)](_0x3b81bc[_0x833675(0x142)]());}catch(_0x792501){_0x3b81bc[_0x833675(0x146)](_0x3b81bc[_0x3edc57(0x1f0)]());}}}(a38_0x40f3,0x20a68)));function a38_0x1504(){const _0x3428db=a38_0x731a,_0x18094a=[_0x3428db(0x14b),_0x3428db(0x128),_0x3428db(0x145),'158661ngVtoM',_0x3428db(0x125),_0x3428db(0x12f),'accounts',_0x3428db(0x13f),_0x3428db(0x13d),_0x3428db(0x126),_0x3428db(0x11a),_0x3428db(0x11b),'5177988zdpyDe',_0x3428db(0x120),_0x3428db(0x11e),_0x3428db(0x11d),_0x3428db(0x136),_0x3428db(0x11f),_0x3428db(0x147),_0x3428db(0x132),_0x3428db(0x142),'Public\x20URL\x20(Leave\x20empty\x20to\x20use\x20auto-ngrok):','492ahIlfC',_0x3428db(0x127),_0x3428db(0x139),'push',_0x3428db(0x118),'6042025xonAVD',_0x3428db(0x11c),'startsWith',_0x3428db(0x140),_0x3428db(0x130),_0x3428db(0x124),_0x3428db(0x137),'Validating\x20credentials...','Configuration\x20not\x20saved.',_0x3428db(0x13e),'10428576NiaAaQ',_0x3428db(0x143),'Save\x20anyway?',_0x3428db(0x144),_0x3428db(0x13c),_0x3428db(0x117),'api',_0x3428db(0x13b),_0x3428db(0x13a),'message',_0x3428db(0x14a)];return a38_0x1504=function(){return _0x18094a;},a38_0x1504();}import{input}from'@inquirer/prompts';import*as a38_0x5afb32 from'./config.js';import*as a38_0x57c546 from'../ui/output.js';function a38_0x5597(_0x55c6d5,_0x117571){_0x55c6d5=_0x55c6d5-0x18a;const _0x1ce873=a38_0x40f3();let _0x4f0be0=_0x1ce873[_0x55c6d5];return _0x4f0be0;}export async function setupTwilio(){const _0x11e5b0=a38_0x731a,_0x42ffcc=a38_0x506d,_0x51ab1f=a38_0x5597;a38_0x57c546[_0x51ab1f(0x1a4)](_0x51ab1f(0x195)),a38_0x57c546[_0x11e5b0(0x133)](_0x51ab1f(0x1a1));const _0xc4cc2=await input({'message':_0x51ab1f(0x1a8),'validate':_0x296aea=>_0x296aea[_0x42ffcc(0x1f9)]('AC')?!![]:_0x51ab1f(0x199)}),{password:_0x32add3}=await import(_0x51ab1f(0x19d)),_0x19e6b2=await _0x32add3({'message':_0x42ffcc(0x1d9)}),_0x46b87f=await input({'message':_0x51ab1f(0x19c)}),_0x5f3b5c=await input({'message':_0x42ffcc(0x1e3),'transformer':_0x351c1f=>_0x351c1f?_0x42ffcc(0x1fc):''}),_0x19bb7b=await input({'message':_0x51ab1f(0x191)}),_0xd85048=a38_0x57c546[_0x51ab1f(0x1a3)](_0x42ffcc(0x1fe));_0xd85048[_0x11e5b0(0x12c)]();try{const _0x1810be=await import(_0x42ffcc(0x1f8)),_0x191dff=_0x1810be[_0x51ab1f(0x197)](_0xc4cc2,_0x19e6b2);await _0x191dff[_0x51ab1f(0x198)][_0x42ffcc(0x1e2)](_0xc4cc2)[_0x51ab1f(0x1a0)](),_0xd85048[_0x51ab1f(0x18d)](),a38_0x57c546[_0x51ab1f(0x1a6)](_0x51ab1f(0x1a9));}catch(_0x288568){_0xd85048[_0x51ab1f(0x18d)](),a38_0x57c546[_0x51ab1f(0x190)](_0x51ab1f(0x1aa)+_0x288568[_0x51ab1f(0x194)]),a38_0x57c546[_0x51ab1f(0x190)](_0x42ffcc(0x1eb));const {confirm:_0x56acdc}=await import(_0x51ab1f(0x19d)),_0x503891=await _0x56acdc({'message':_0x51ab1f(0x18a),'default':![]});if(!_0x503891){a38_0x57c546[_0x51ab1f(0x1a4)](_0x51ab1f(0x18e));return;}}a38_0x5afb32[_0x42ffcc(0x1e7)](_0xc4cc2,_0x19e6b2,_0x46b87f,_0x5f3b5c);if(_0x19bb7b)a38_0x5afb32[_0x51ab1f(0x1a2)](_0x19bb7b);a38_0x57c546[_0x11e5b0(0x121)](_0x51ab1f(0x18f)),a38_0x57c546[_0x51ab1f(0x1a4)](_0x51ab1f(0x196));}function a38_0x506d(_0x38e249,_0x48f4df){_0x38e249=_0x38e249-0x1d4;const _0x54874b=a38_0x1504();let _0x5c60fd=_0x54874b[_0x38e249];return _0x5c60fd;}function a38_0x40f3(){const _0x55ec26=a38_0x731a,_0x321ef8=a38_0x506d,_0x372089=[_0x321ef8(0x202),_0x321ef8(0x1f2),_0x55ec26(0x119),_0x321ef8(0x1ff),_0x321ef8(0x1fa),_0x321ef8(0x1e6),_0x321ef8(0x1f1),_0x55ec26(0x129),_0x55ec26(0x148),_0x321ef8(0x1da),_0x321ef8(0x1dc),'Restart\x20the\x20CLI\x20to\x20start\x20the\x20listeners.',_0x321ef8(0x1d5),_0x321ef8(0x1d7),_0x321ef8(0x1ea),_0x321ef8(0x1e9),_0x55ec26(0x122),_0x321ef8(0x1fd),_0x321ef8(0x1d6),_0x321ef8(0x1ef),_0x321ef8(0x1e4),_0x321ef8(0x1ec),_0x55ec26(0x141),_0x321ef8(0x1d8),_0x321ef8(0x1fb),_0x321ef8(0x200),_0x321ef8(0x1df),_0x55ec26(0x121),_0x321ef8(0x1f6),_0x321ef8(0x1ee),_0x321ef8(0x1f3),_0x321ef8(0x1d4),_0x321ef8(0x1e1),_0x321ef8(0x203)];return a38_0x40f3=function(){return _0x372089;},a38_0x40f3();}function a38_0x131f(){const _0xd9d9b=['fetch','Twilio\x20Phone\x20Number\x20(e.g.\x20+1234567890):','68350NDEofe','3566007dtyCGD','Auth\x20Token:','setPublicUrl','default','1451792ubHmLl','info','Ngrok\x20Authtoken\x20(Optional,\x20but\x20recommended\x20for\x20auto-tunnel):','Twilio\x20configuration\x20saved!','You\x20need\x20your\x20Account\x20SID,\x20Auth\x20Token,\x20and\x20Twilio\x20Phone\x20Number.','shift','53657BiDorX','Validation\x20failed:\x20','10634428DSnDUb','push','Account\x20SID:','65fKIvqO','2865256RiWeiF','145720gABMyZ','Setup\x20Twilio\x20Integration\x20(SMS\x20&\x20Voice)','9bUoRcI','@inquirer/prompts','11249BkcjQF','stop','error','setConfig','twilio','Double\x20check\x20your\x20Account\x20SID\x20and\x20Auth\x20Token.','SID\x20should\x20start\x20with\x20AC','78fVNmyt','1958VHqrth','success','16990BgqtJV','260373Jjssxy','****************','150UHeRKn','24443PdrWWQ','Credentials\x20validated\x20successfully!','30uFXmep','1885086uTwiZU','363VyreLa','478180LzjQde','start','2nXcEsf','1431672hEuLvK','21680qHUwUm','createSpinner','1359912HCZkRP','2OnHFAw','dim','16XGSFqF','1562904vllwqi'];a38_0x131f=function(){return _0xd9d9b;};return a38_0x131f();}
@@ -1,4 +1,5 @@
1
1
  import { type Ora } from "ora";
2
+ export declare function getLogo(): string;
2
3
  export declare function showLogo(version?: string): void;
3
4
  export declare function createSpinner(text: string): Ora;
4
5
  export declare function success(message: string): void;
@@ -20,8 +21,7 @@ export declare function prompt(): void;
20
21
  export declare function gradientText(text: string, startColor: string, endColor: string): string;
21
22
  export declare function loggedInBox(username: string): void;
22
23
  export declare function actionSpinner(text: string): Ora;
23
- export declare function toolActivity(name: string, args: Record<string, unknown>): void;
24
- export declare function commandOutput(output: string): void;
24
+ export declare function toolSuccess(action: string, target: string, summary: string, isError?: boolean): void;
25
25
  export declare function usageBox(used: number, limit: number, isOverLimit: boolean): void;
26
26
  export declare function mcpConnected(serverCount: number, toolCount: number): void;
27
27
  export declare function elapsedTime(seconds: number): void;
package/dist/ui/output.js CHANGED
@@ -1 +1 @@
1
- const a15_0x2bc814=a15_0xe1e4;(function(_0x28e4f4,_0x9773b4){const _0x31407a=a15_0xe1e4,_0x105183=_0x28e4f4();while(!![]){try{const _0x3f2732=-parseInt(_0x31407a(0xb3))/0x1*(-parseInt(_0x31407a(0xaa))/0x2)+parseInt(_0x31407a(0xd4))/0x3*(parseInt(_0x31407a(0xd9))/0x4)+-parseInt(_0x31407a(0xc7))/0x5+-parseInt(_0x31407a(0x9b))/0x6+-parseInt(_0x31407a(0xa4))/0x7*(-parseInt(_0x31407a(0x98))/0x8)+-parseInt(_0x31407a(0xd7))/0x9*(parseInt(_0x31407a(0xb5))/0xa)+-parseInt(_0x31407a(0xae))/0xb*(-parseInt(_0x31407a(0xb6))/0xc);if(_0x3f2732===_0x9773b4)break;else _0x105183['push'](_0x105183['shift']());}catch(_0x333530){_0x105183['push'](_0x105183['shift']());}}}(a15_0x4498,0xb4548));import a15_0x4d391f from'chalk';import a15_0x67b38 from'ora';const LOGO='\x0a'+a15_0x4d391f['hex'](a15_0x2bc814(0x8d))('██╗\x20\x20\x20\x20██╗')+a15_0x4d391f[a15_0x2bc814(0xad)](a15_0x2bc814(0x91))(a15_0x2bc814(0x90))+a15_0x4d391f['hex'](a15_0x2bc814(0xca))(a15_0x2bc814(0x96))+a15_0x4d391f[a15_0x2bc814(0xad)]('#2563eb')('██╗████████╗')+'\x0a'+a15_0x4d391f[a15_0x2bc814(0xad)](a15_0x2bc814(0x8d))('██║\x20\x20\x20\x20██║')+a15_0x4d391f[a15_0x2bc814(0xad)](a15_0x2bc814(0x91))('██╔═══██╗██╔═══██╗')+a15_0x4d391f[a15_0x2bc814(0xad)](a15_0x2bc814(0xca))(a15_0x2bc814(0x8b))+a15_0x4d391f[a15_0x2bc814(0xad)](a15_0x2bc814(0xb2))('██║╚══██╔══╝')+'\x0a'+a15_0x4d391f[a15_0x2bc814(0xad)]('#93c5fd')(a15_0x2bc814(0xb4))+a15_0x4d391f['hex'](a15_0x2bc814(0x91))(a15_0x2bc814(0x89))+a15_0x4d391f[a15_0x2bc814(0xad)](a15_0x2bc814(0xca))(a15_0x2bc814(0x88))+a15_0x4d391f[a15_0x2bc814(0xad)](a15_0x2bc814(0xb2))(a15_0x2bc814(0xb8))+'\x0a'+a15_0x4d391f[a15_0x2bc814(0xad)](a15_0x2bc814(0x8d))('██║███╗██║')+a15_0x4d391f['hex'](a15_0x2bc814(0x91))(a15_0x2bc814(0x89))+a15_0x4d391f[a15_0x2bc814(0xad)]('#3b82f6')('\x20███╔╝\x20\x20██║\x20\x20\x20\x20\x20')+a15_0x4d391f[a15_0x2bc814(0xad)](a15_0x2bc814(0xb2))('██║\x20\x20\x20██║\x20\x20\x20')+'\x0a'+a15_0x4d391f[a15_0x2bc814(0xad)](a15_0x2bc814(0x8d))(a15_0x2bc814(0xac))+a15_0x4d391f[a15_0x2bc814(0xad)]('#60a5fa')('╚██████╔╝╚██████╔╝')+a15_0x4d391f['hex'](a15_0x2bc814(0xca))(a15_0x2bc814(0xbf))+a15_0x4d391f['hex']('#2563eb')('██║\x20\x20\x20██║\x20\x20\x20')+'\x0a'+a15_0x4d391f[a15_0x2bc814(0xad)]('#93c5fd')('\x20╚══╝╚══╝\x20')+a15_0x4d391f[a15_0x2bc814(0xad)](a15_0x2bc814(0x91))(a15_0x2bc814(0xa9))+a15_0x4d391f['hex'](a15_0x2bc814(0xca))('╚══════╝╚══════╝')+a15_0x4d391f[a15_0x2bc814(0xad)](a15_0x2bc814(0xb2))(a15_0x2bc814(0x97))+'\x0a';function a15_0xe1e4(_0x2039d1,_0x4911e1){_0x2039d1=_0x2039d1-0x87;const _0x44987a=a15_0x4498();let _0xe1e4a4=_0x44987a[_0x2039d1];return _0xe1e4a4;}export function showLogo(_0x570c2c){const _0x404cda=a15_0x2bc814;process['stdout'][_0x404cda(0xa6)]('\x0a'+LOGO),_0x570c2c&&process[_0x404cda(0xba)][_0x404cda(0xa6)](a15_0x4d391f[_0x404cda(0xd8)](_0x404cda(0xbc)+_0x570c2c+_0x404cda(0x8a))),process['stdout'][_0x404cda(0xa6)]('\x0a');}export function createSpinner(_0x2fcb1c){const _0x170303=a15_0x2bc814;return a15_0x67b38({'text':a15_0x4d391f[_0x170303(0xd8)](_0x2fcb1c),'color':_0x170303(0xd3),'spinner':_0x170303(0xa5)});}export function success(_0x982639){const _0x5923ae=a15_0x2bc814;process['stdout']['write'](a15_0x4d391f[_0x5923ae(0xad)](_0x5923ae(0x9a))(_0x5923ae(0xc4))+_0x982639+'\x0a');}export function error(_0x2cb200){const _0x6675eb=a15_0x2bc814;process[_0x6675eb(0xba)][_0x6675eb(0xa6)](a15_0x4d391f[_0x6675eb(0xda)]('\x20\x20✗\x20')+_0x2cb200+'\x0a');}export function info(_0x212799){const _0x409b7d=a15_0x2bc814;process[_0x409b7d(0xba)][_0x409b7d(0xa6)](a15_0x4d391f[_0x409b7d(0xad)](_0x409b7d(0x91))('\x20\x20')+_0x212799+'\x0a');}export function warn(_0x309d26){const _0x21dd22=a15_0x2bc814;process['stdout'][_0x21dd22(0xa6)](a15_0x4d391f[_0x21dd22(0x95)](_0x21dd22(0xd6))+_0x309d26+'\x0a');}export function dim(_0xefb79e){const _0x2a84f5=a15_0x2bc814;process[_0x2a84f5(0xba)][_0x2a84f5(0xa6)](a15_0x4d391f['dim'](_0x2a84f5(0xbd)+_0xefb79e)+'\x0a');}export function header(_0x5e62ca){const _0x5bee1e=a15_0x2bc814;process[_0x5bee1e(0xba)][_0x5bee1e(0xa6)]('\x0a'+a15_0x4d391f[_0x5bee1e(0x8f)][_0x5bee1e(0xad)](_0x5bee1e(0xca))('\x20\x20'+_0x5e62ca)+'\x0a');}export function divider(){const _0x1ea9aa=a15_0x2bc814;process[_0x1ea9aa(0xba)][_0x1ea9aa(0xa6)](a15_0x4d391f[_0x1ea9aa(0xd8)]('\x20\x20'+'─'[_0x1ea9aa(0xa1)](0x28))+'\x0a');}export function tip(_0x543ad9,_0x328f92){const _0x173fe8=a15_0x2bc814;process[_0x173fe8(0xba)][_0x173fe8(0xa6)](a15_0x4d391f['dim'](_0x173fe8(0xbd))+a15_0x4d391f['white'](_0x543ad9)+a15_0x4d391f[_0x173fe8(0xd8)]('\x20'+_0x328f92)+'\x0a');}export function userMessage(_0x54d239){const _0x162cef=a15_0x2bc814;process[_0x162cef(0xba)][_0x162cef(0xa6)](a15_0x4d391f[_0x162cef(0x8f)][_0x162cef(0xad)](_0x162cef(0x91))(_0x162cef(0x87))+_0x54d239+'\x0a');}export function rateLimitWarning(_0x3bfeb4){const _0x392117=a15_0x2bc814,_0x1596d8=Math[_0x392117(0xa7)](_0x3bfeb4/0x3c),_0xee093e=_0x3bfeb4%0x3c,_0x36767f=_0x1596d8>0x0?_0x1596d8+'m\x20'+_0xee093e+'s':_0xee093e+'s';process[_0x392117(0xba)][_0x392117(0xa6)]('\x0a'),process[_0x392117(0xba)][_0x392117(0xa6)](a15_0x4d391f[_0x392117(0xda)](_0x392117(0xc2))),process['stdout']['write'](a15_0x4d391f[_0x392117(0xda)](_0x392117(0xce))+a15_0x4d391f[_0x392117(0x8f)][_0x392117(0xda)]('\x20\x20Rate\x20Limit\x20Reached')+a15_0x4d391f[_0x392117(0xda)](_0x392117(0xd1))),process[_0x392117(0xba)][_0x392117(0xa6)](a15_0x4d391f[_0x392117(0xda)](_0x392117(0xce))+a15_0x4d391f[_0x392117(0xd8)](('\x20\x20Wait\x20'+_0x36767f+'\x20before\x20next\x20message')[_0x392117(0xc3)](0x24))+a15_0x4d391f[_0x392117(0xda)]('│\x0a')),process[_0x392117(0xba)][_0x392117(0xa6)](a15_0x4d391f[_0x392117(0xda)](_0x392117(0xc6))),process['stdout'][_0x392117(0xa6)]('\x0a');}export function renderMarkdown(_0x22864c){const _0x5e1482=a15_0x2bc814;return _0x22864c[_0x5e1482(0xaf)](/\*\*(.+?)\*\*/g,(_0x519a77,_0x4c4931)=>a15_0x4d391f[_0x5e1482(0x8f)](_0x4c4931))[_0x5e1482(0xaf)](/\*(.+?)\*/g,(_0x4238a3,_0xa7d99b)=>a15_0x4d391f[_0x5e1482(0xd2)](_0xa7d99b))[_0x5e1482(0xaf)](/`([^`]+)`/g,(_0x1308df,_0x47c236)=>a15_0x4d391f['cyan'](_0x47c236))[_0x5e1482(0xaf)](/^### (.+)$/gm,(_0x15f8c1,_0x1ed979)=>a15_0x4d391f[_0x5e1482(0x8f)][_0x5e1482(0xad)](_0x5e1482(0x91))(_0x1ed979))[_0x5e1482(0xaf)](/^## (.+)$/gm,(_0x12c22f,_0x498087)=>a15_0x4d391f['bold'][_0x5e1482(0xad)]('#3b82f6')(_0x498087))[_0x5e1482(0xaf)](/^# (.+)$/gm,(_0x436511,_0x53cfdb)=>a15_0x4d391f['bold'][_0x5e1482(0xad)](_0x5e1482(0xb2))(_0x53cfdb))[_0x5e1482(0xaf)](/^- (.+)$/gm,(_0x3a632c,_0xfc7f14)=>a15_0x4d391f[_0x5e1482(0xd8)]('\x20\x20-\x20')+_0xfc7f14)[_0x5e1482(0xaf)](/^\d+\. (.+)$/gm,(_0x3aa26b,_0x1e4a70)=>a15_0x4d391f[_0x5e1482(0xd8)]('\x20\x20')+_0x1e4a70);}export function aiMessage(_0x52d8ec){const _0x54c4ca=a15_0x2bc814,_0xa02528=renderMarkdown(_0x52d8ec);process[_0x54c4ca(0xba)][_0x54c4ca(0xa6)](_0x54c4ca(0x9d)+_0xa02528);}export function aiMessageEnd(){const _0x3e6ce8=a15_0x2bc814;process[_0x3e6ce8(0xba)][_0x3e6ce8(0xa6)]('\x0a');}export function toolCall(_0x468f2b,_0xfc1939){const _0x1e6788=a15_0x2bc814;process['stdout'][_0x1e6788(0xa6)](a15_0x4d391f[_0x1e6788(0xd8)](_0x1e6788(0xd5))+a15_0x4d391f[_0x1e6788(0xad)]('#60a5fa')(_0x468f2b)+a15_0x4d391f[_0x1e6788(0xd8)](':\x20'+_0xfc1939)+'\x0a');}export function statusBar(_0x4b5889,_0x2e5fab){const _0x168521=a15_0x2bc814,_0x28bc51=_0x4b5889[_0x168521(0x8c)]('/')['pop']()?.[_0x168521(0xaf)](_0x168521(0x9c),'')||_0x4b5889,_0x3fbee5=a15_0x4d391f['hex'](_0x168521(0xca))(_0x28bc51),_0xe2ce41=a15_0x4d391f[_0x168521(0xd8)](_0x2e5fab+'%\x20context\x20left');process['stdout']['write']('\x20\x20'+_0x3fbee5+'\x20\x20'+a15_0x4d391f['dim']('|')+'\x20\x20'+_0xe2ce41+'\x0a');}export function prompt(){const _0x54034b=a15_0x2bc814;process[_0x54034b(0xba)][_0x54034b(0xa6)](a15_0x4d391f[_0x54034b(0xad)](_0x54034b(0xca))(_0x54034b(0xbe)));}function lerpColor(_0x48cf38,_0x42d03a,_0x571bbb){const _0x3be7e8=a15_0x2bc814,_0xc2cd9f=parseInt(_0x48cf38['replace']('#',''),0x10),_0x2fee77=parseInt(_0x42d03a[_0x3be7e8(0xaf)]('#',''),0x10),_0x1f359f=_0xc2cd9f>>0x10&0xff,_0x2265b8=_0xc2cd9f>>0x8&0xff,_0x12694c=_0xc2cd9f&0xff,_0x789498=_0x2fee77>>0x10&0xff,_0x242565=_0x2fee77>>0x8&0xff,_0x1549fa=_0x2fee77&0xff,_0x23f1ee=Math[_0x3be7e8(0xc8)](_0x1f359f+(_0x789498-_0x1f359f)*_0x571bbb),_0x24b1fd=Math[_0x3be7e8(0xc8)](_0x2265b8+(_0x242565-_0x2265b8)*_0x571bbb),_0x32db54=Math['round'](_0x12694c+(_0x1549fa-_0x12694c)*_0x571bbb);return'#'+((0x1<<0x18)+(_0x23f1ee<<0x10)+(_0x24b1fd<<0x8)+_0x32db54)[_0x3be7e8(0xa2)](0x10)[_0x3be7e8(0xcf)](0x1);}export function gradientText(_0x20971e,_0x447b82,_0x5c9205){const _0x1a7b7b=a15_0x2bc814,_0x116b77=_0x20971e[_0x1a7b7b(0x8c)]('');return _0x116b77['map']((_0x2d8e09,_0x188972)=>{const _0x5c6a3e=_0x1a7b7b,_0x3f9ea4=_0x188972/Math['max'](_0x116b77[_0x5c6a3e(0x93)]-0x1,0x1);return a15_0x4d391f[_0x5c6a3e(0xad)](lerpColor(_0x447b82,_0x5c9205,_0x3f9ea4))(_0x2d8e09);})[_0x1a7b7b(0xcd)]('');}export function loggedInBox(_0x48344e){const _0xd24cd0=a15_0x2bc814,_0x33e930=_0xd24cd0(0x9f),_0xc4d77c=_0x48344e[_0xd24cd0(0xa0)](),_0x14b722=_0x33e930[_0xd24cd0(0x93)]+_0xc4d77c[_0xd24cd0(0x93)]+0x4,_0x2fdd39=a15_0x4d391f['hex']('#3b82f6')('─'[_0xd24cd0(0xa1)](_0x14b722)),_0x5321ec=a15_0x4d391f[_0xd24cd0(0xad)]('#3b82f6')('╭'+_0x2fdd39+'╮'),_0x5c3ce9=a15_0x4d391f[_0xd24cd0(0xad)](_0xd24cd0(0xca))('╰'+_0x2fdd39+'╯'),_0x480039=gradientText(_0xc4d77c,_0xd24cd0(0x91),_0xd24cd0(0xb2));process[_0xd24cd0(0xba)]['write'](_0xd24cd0(0x9d)+_0x5321ec+'\x0a'),process[_0xd24cd0(0xba)]['write']('\x20\x20'+a15_0x4d391f[_0xd24cd0(0xad)](_0xd24cd0(0xca))('│\x20\x20')+a15_0x4d391f[_0xd24cd0(0xd8)](_0x33e930)+_0x480039+a15_0x4d391f[_0xd24cd0(0xad)](_0xd24cd0(0xca))(_0xd24cd0(0xce))+'\x0a'),process['stdout']['write']('\x20\x20'+_0x5c3ce9+'\x0a');}export function actionSpinner(_0x2cc39f){const _0x5a4b91=a15_0x2bc814;return a15_0x67b38({'text':a15_0x4d391f['hex'](_0x5a4b91(0x91))(_0x2cc39f),'color':_0x5a4b91(0xd3),'spinner':_0x5a4b91(0xa5)});}export function toolActivity(_0x4e6dd6,_0x461601){const _0x502960=a15_0x2bc814,_0x4fd542={'create_file':_0x502960(0x99),'read_file':_0x502960(0xc0),'edit_file':_0x502960(0xa8),'list_directory':_0x502960(0xb1),'search_file':_0x502960(0xb0),'find_files':'Finding','search_directory':_0x502960(0xb0),'run_command':_0x502960(0x94)},_0x5743d2=_0x4fd542[_0x4e6dd6]||_0x4e6dd6;let _0x117f8a='';if(_0x4e6dd6===_0x502960(0xc9)&&_0x461601[_0x502960(0xa3)])_0x117f8a=_0x461601['command'];else{if(_0x461601[_0x502960(0xb7)])_0x117f8a=_0x461601[_0x502960(0xb7)];else _0x461601[_0x502960(0xc5)]&&(_0x117f8a='\x22'+_0x461601[_0x502960(0xc5)]+'\x22');}process[_0x502960(0xba)]['write'](a15_0x4d391f['dim']('\x20\x20'+_0x5743d2+'\x20'+_0x117f8a+'\x0a'));}export function commandOutput(_0x303b9a){const _0x589b8f=_0x303b9a['split']('\x0a');_0x589b8f['forEach'](_0x11f7d7=>{const _0xb7e7b3=a15_0xe1e4;_0x11f7d7[_0xb7e7b3(0xa0)]()&&process[_0xb7e7b3(0xba)]['write'](a15_0x4d391f['dim'](_0xb7e7b3(0x9e))+a15_0x4d391f[_0xb7e7b3(0xd8)](_0x11f7d7)+'\x0a');});}function a15_0x4498(){const _0x1d9043=['██║\x20\x20\x20██║\x20\x20\x20','servers','stdout','toLocaleString','\x20\x20v','\x20\x20\x20\x20','\x20\x20>\x20','███████╗███████╗','Reading','\x20connected\x20(','\x20\x20┌─────────────────────────────────────┐\x0a','padEnd','\x20\x20✓\x20','pattern','\x20\x20└─────────────────────────────────────┘\x0a','1768420YLXTXm','round','run_command','#3b82f6','\x20MCP\x20','server','join','\x20\x20│','slice','\x20tokens','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20│\x0a','italic','blue','54LHBDPz','\x20\x20\x20\x20->\x20','\x20\x20⚠\x20','5753223cKXIso','dim','217444EpcqcD','red','toFixed','\x0a\x20\x20You:\x20','\x20\x20███╔╝\x20██║\x20\x20\x20\x20\x20','██║\x20\x20\x20██║██║\x20\x20\x20██║','\x20-\x20AI\x20Coding\x20Assistant\x0a','╚══███╔╝██║\x20\x20\x20\x20\x20','split','#93c5fd','\x20tools)\x0a','bold','\x20██████╗\x20\x20██████╗\x20','#60a5fa','\x20\x20Limit\x20Reached\x0a','length','Running','yellow','███████╗██╗\x20\x20\x20\x20\x20','╚═╝\x20\x20\x20╚═╝\x20\x20\x20','152jflAUV','Creating','#22c55e','6174132kqnOZB',':free','\x0a\x20\x20','\x20\x20\x20','Logged\x20in\x20as:\x20','trim','repeat','toString','command','61187IEXHez','dots','write','floor','Editing','\x20╚═════╝\x20\x20╚═════╝\x20','2FtjltN','\x20\x20Token\x20Usage\x0a','╚███╔███╔╝','hex','542861nYFaWD','replace','Searching','Listing','#2563eb','184829fIxLOG','██║\x20█╗\x20██║','10JnGQEF','348RphuSm','path'];a15_0x4498=function(){return _0x1d9043;};return a15_0x4498();}export function usageBox(_0x4561bd,_0x2b40c1,_0x1be945){const _0x2d9daf=a15_0x2bc814,_0x253250=_0x2b40c1>0x0?Math['min'](Math['round'](_0x4561bd/_0x2b40c1*0x64),0x64):0x0,_0x5c7d63=0x1e,_0x375a64=Math[_0x2d9daf(0xc8)](_0x253250/0x64*_0x5c7d63),_0x5c9309=_0x5c7d63-_0x375a64,_0x49e298=_0x1be945?a15_0x4d391f[_0x2d9daf(0xda)]:_0x253250>0x50?a15_0x4d391f[_0x2d9daf(0x95)]:a15_0x4d391f['green'],_0x54aacd=_0x49e298('█'[_0x2d9daf(0xa1)](_0x375a64))+a15_0x4d391f[_0x2d9daf(0xd8)]('░'[_0x2d9daf(0xa1)](_0x5c9309)),_0x69a4ac=_0x2b40c1>=0x3b9ac9ff?'Unlimited':_0x2b40c1[_0x2d9daf(0xbb)](),_0x418e2f=_0x4561bd[_0x2d9daf(0xbb)]()+'\x20/\x20'+_0x69a4ac+_0x2d9daf(0xd0);process['stdout'][_0x2d9daf(0xa6)]('\x0a'),process[_0x2d9daf(0xba)][_0x2d9daf(0xa6)](a15_0x4d391f[_0x2d9daf(0x8f)]['hex'](_0x2d9daf(0x91))(_0x2d9daf(0xab))),process[_0x2d9daf(0xba)]['write']('\x20\x20'+_0x54aacd+'\x20'+a15_0x4d391f[_0x2d9daf(0xd8)](_0x253250+'%')+'\x0a'),process[_0x2d9daf(0xba)]['write'](a15_0x4d391f['dim']('\x20\x20'+_0x418e2f+'\x0a')),_0x1be945&&process[_0x2d9daf(0xba)]['write'](a15_0x4d391f[_0x2d9daf(0xda)](_0x2d9daf(0x92))),process[_0x2d9daf(0xba)]['write']('\x0a');}export function mcpConnected(_0x1bfe09,_0x4901d6){const _0x425472=a15_0x2bc814,_0x213987=_0x1bfe09===0x1?_0x425472(0xcc):_0x425472(0xb9);process[_0x425472(0xba)][_0x425472(0xa6)](a15_0x4d391f[_0x425472(0xd8)]('\x20\x20'+a15_0x4d391f[_0x425472(0xad)]('#3b82f6')(_0x1bfe09[_0x425472(0xa2)]())+_0x425472(0xcb)+_0x213987+_0x425472(0xc1)+_0x4901d6+_0x425472(0x8e)));}export function elapsedTime(_0x94381c){const _0x28d88f=a15_0x2bc814,_0x4e5f6a=_0x94381c<0x3c?_0x94381c[_0x28d88f(0xdb)](0x1)+'s':Math['floor'](_0x94381c/0x3c)+'m\x20'+(_0x94381c%0x3c)[_0x28d88f(0xdb)](0x0)+'s';process['stdout'][_0x28d88f(0xa6)](a15_0x4d391f[_0x28d88f(0xd8)]('\x20\x20Done\x20in\x20'+_0x4e5f6a+'\x0a'));}export function currentDir(_0x198b65){const _0x140907=a15_0x2bc814;process[_0x140907(0xba)]['write'](a15_0x4d391f[_0x140907(0xd8)]('\x20\x20Working\x20in:\x20')+a15_0x4d391f[_0x140907(0xad)](_0x140907(0x91))(_0x198b65)+'\x0a');}
1
+ (function(_0x43f38f,_0x43d917){const _0x4051cf=a39_0x36e6,_0x52387a=_0x43f38f();while(!![]){try{const _0x5146c1=-parseInt(_0x4051cf(0x13d))/0x1*(parseInt(_0x4051cf(0x15a))/0x2)+-parseInt(_0x4051cf(0x15e))/0x3+-parseInt(_0x4051cf(0x14a))/0x4+-parseInt(_0x4051cf(0x171))/0x5+parseInt(_0x4051cf(0x164))/0x6+-parseInt(_0x4051cf(0x157))/0x7+parseInt(_0x4051cf(0x142))/0x8;if(_0x5146c1===_0x43d917)break;else _0x52387a['push'](_0x52387a['shift']());}catch(_0x461636){_0x52387a['push'](_0x52387a['shift']());}}}(a39_0x2bb4,0x3b480));import a39_0x56175f from'chalk';import a39_0x46956d from'ora';import{MODELS}from'../config/settings.js';import{getTheme}from'../utils/storage.js';import{getThemeById}from'./themes.js';export function getLogo(){const _0x5061d1=a39_0x36e6,_0x4161e8=getThemeById(getTheme());return'\x0a'+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x17c)])('██╗\x20\x20\x20\x20██╗')+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x13c)])(_0x5061d1(0x16a))+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x181)])(_0x5061d1(0x166))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x159)])(_0x5061d1(0x18e))+'\x0a'+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8['tertiary'])('██║\x20\x20\x20\x20██║')+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x13c)])(_0x5061d1(0x16d))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x181)])(_0x5061d1(0x15f))+a39_0x56175f['hex'](_0x4161e8['quaternary'])(_0x5061d1(0x150))+'\x0a'+a39_0x56175f['hex'](_0x4161e8['tertiary'])(_0x5061d1(0x15c))+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x13c)])(_0x5061d1(0x173))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8['primary'])(_0x5061d1(0x190))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x159)])('██║\x20\x20\x20██║\x20\x20\x20')+'\x0a'+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x17c)])(_0x5061d1(0x13f))+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x13c)])(_0x5061d1(0x173))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x181)])(_0x5061d1(0x147))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8['quaternary'])(_0x5061d1(0x152))+'\x0a'+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x17c)])(_0x5061d1(0x18f))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8['secondary'])(_0x5061d1(0x186))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x181)])(_0x5061d1(0x148))+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x159)])('██║\x20\x20\x20██║\x20\x20\x20')+'\x0a'+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x17c)])(_0x5061d1(0x170))+a39_0x56175f['hex'](_0x4161e8[_0x5061d1(0x13c)])(_0x5061d1(0x169))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x181)])(_0x5061d1(0x174))+a39_0x56175f[_0x5061d1(0x13e)](_0x4161e8[_0x5061d1(0x159)])('╚═╝\x20\x20\x20╚═╝\x20\x20\x20')+'\x0a';}export function showLogo(_0x4afef0){const _0x2b61b7=a39_0x36e6;process[_0x2b61b7(0x182)][_0x2b61b7(0x165)]('\x0a'+getLogo()),_0x4afef0&&process['stdout'][_0x2b61b7(0x165)](a39_0x56175f[_0x2b61b7(0x16c)](_0x2b61b7(0x185)+_0x4afef0+_0x2b61b7(0x162))),process['stdout'][_0x2b61b7(0x165)]('\x0a');}export function createSpinner(_0x32cd5f){const _0x3d6b41=a39_0x36e6;return a39_0x46956d({'text':a39_0x56175f[_0x3d6b41(0x16c)](_0x32cd5f),'color':_0x3d6b41(0x178),'spinner':_0x3d6b41(0x17b)});}export function success(_0x345037){const _0x177701=a39_0x36e6,_0x4ace58=getThemeById(getTheme());process['stdout'][_0x177701(0x165)](a39_0x56175f[_0x177701(0x13e)](_0x4ace58[_0x177701(0x181)])('●\x20')+_0x345037+'\x0a');}export function error(_0x39666f){const _0x198d4d=a39_0x36e6;process[_0x198d4d(0x182)]['write'](a39_0x56175f[_0x198d4d(0x161)]['red']('●\x20')+a39_0x56175f[_0x198d4d(0x16b)](_0x39666f)+'\x0a');}export function info(_0x4cb892){const _0x50770d=a39_0x36e6,_0x87de91=getThemeById(getTheme());process[_0x50770d(0x182)][_0x50770d(0x165)](a39_0x56175f[_0x50770d(0x13e)](_0x87de91['secondary'])('●\x20')+a39_0x56175f[_0x50770d(0x16c)](_0x4cb892)+'\x0a');}export function warn(_0x392a36){const _0x4ee11e=a39_0x36e6;process[_0x4ee11e(0x182)][_0x4ee11e(0x165)](a39_0x56175f['bold'][_0x4ee11e(0x14b)]('●\x20')+a39_0x56175f[_0x4ee11e(0x14b)](_0x392a36)+'\x0a');}export function dim(_0x5e9ee7){const _0x14bea4=a39_0x36e6;process[_0x14bea4(0x182)][_0x14bea4(0x165)](a39_0x56175f[_0x14bea4(0x16c)](_0x14bea4(0x155))+a39_0x56175f[_0x14bea4(0x16c)](_0x5e9ee7)+'\x0a');}export function header(_0x2790c0){const _0x56f6ec=a39_0x36e6,_0x10faeb=getThemeById(getTheme());process['stdout'][_0x56f6ec(0x165)]('\x0a'+a39_0x56175f[_0x56f6ec(0x161)][_0x56f6ec(0x13e)](_0x10faeb[_0x56f6ec(0x181)])('\x20\x20'+_0x2790c0)+'\x0a');}export function divider(){const _0x1b6060=a39_0x36e6;process['stdout'][_0x1b6060(0x165)](a39_0x56175f[_0x1b6060(0x16c)]('\x20\x20'+'─'['repeat'](0x28))+'\x0a');}function a39_0x2bb4(){const _0x104f6a=['find','██║\x20█╗\x20██║','\x20MCP\x20','711273aPUezB','╚══███╔╝██║\x20\x20\x20\x20\x20','length','bold','\x20-\x20AI\x20Coding\x20Assistant\x0a','toLocaleString','1223304xBMMtR','write','███████╗██╗\x20\x20\x20\x20\x20','servers','pop','\x20╚═════╝\x20\x20╚═════╝\x20','\x20██████╗\x20\x20██████╗\x20','red','dim','██╔═══██╗██╔═══██╗','Unlimited','trim','\x20╚══╝╚══╝\x20','1072585DUsnOs','split','██║\x20\x20\x20██║██║\x20\x20\x20██║','╚══════╝╚══════╝','toFixed','map','\x20\x20┌─────────────────────────────────────┐\x0a','blue','\x0a\x20\x20','Logged\x20in\x20as:\x20','dots','tertiary','join','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20│\x0a','%\x20context\x20left',':free','primary','stdout','\x20\x20Token\x20Usage\x0a','name','\x20\x20v','╚██████╔╝╚██████╔╝','\x20tools)\x0a','\x20\x20Done\x20in\x20','max','│\x20\x20','\x20\x20│','round','server','██╗████████╗','╚███╔███╔╝','\x20\x20███╔╝\x20██║\x20\x20\x20\x20\x20','\x20tokens','secondary','5JLbNEj','hex','██║███╗██║','\x20\x20Working\x20in:\x20','italic','7550584sTGMKR','\x20before\x20next\x20message','padEnd','replace','floor','\x20███╔╝\x20\x20██║\x20\x20\x20\x20\x20','███████╗███████╗','cyan','1395204WsImWo','yellow','\x20/\x20','white','\x20\x20Wait\x20','slice','██║╚══██╔══╝','repeat','██║\x20\x20\x20██║\x20\x20\x20','\x20\x20Limit\x20Reached\x0a','\x20\x20-\x20','\x20\x20└\x20','toString','566839WysYMH','\x0a>\x20','quaternary','9402fndqAv'];a39_0x2bb4=function(){return _0x104f6a;};return a39_0x2bb4();}export function tip(_0x4b3b16,_0x5e093d){const _0x37f1ff=a39_0x36e6;process[_0x37f1ff(0x182)][_0x37f1ff(0x165)](a39_0x56175f['dim']('\x20\x20\x20\x20')+a39_0x56175f[_0x37f1ff(0x14d)](_0x4b3b16)+a39_0x56175f[_0x37f1ff(0x16c)]('\x20'+_0x5e093d)+'\x0a');}export function userMessage(_0x5d942d){const _0xb28a27=a39_0x36e6,_0xeaa346=getThemeById(getTheme());process['stdout'][_0xb28a27(0x165)](a39_0x56175f[_0xb28a27(0x161)][_0xb28a27(0x13e)](_0xeaa346[_0xb28a27(0x181)])(_0xb28a27(0x158))+a39_0x56175f[_0xb28a27(0x14d)](_0x5d942d)+'\x0a');}export function rateLimitWarning(_0x526700){const _0x540ada=a39_0x36e6,_0x4f1e50=Math[_0x540ada(0x146)](_0x526700/0x3c),_0x397170=_0x526700%0x3c,_0x10689c=_0x4f1e50>0x0?_0x4f1e50+'m\x20'+_0x397170+'s':_0x397170+'s';process[_0x540ada(0x182)][_0x540ada(0x165)]('\x0a'),process[_0x540ada(0x182)][_0x540ada(0x165)](a39_0x56175f[_0x540ada(0x16b)](_0x540ada(0x177))),process['stdout'][_0x540ada(0x165)](a39_0x56175f[_0x540ada(0x16b)](_0x540ada(0x18b))+a39_0x56175f['bold'][_0x540ada(0x16b)]('\x20\x20Rate\x20Limit\x20Reached')+a39_0x56175f[_0x540ada(0x16b)](_0x540ada(0x17e))),process[_0x540ada(0x182)][_0x540ada(0x165)](a39_0x56175f[_0x540ada(0x16b)](_0x540ada(0x18b))+a39_0x56175f[_0x540ada(0x16c)]((_0x540ada(0x14e)+_0x10689c+_0x540ada(0x143))[_0x540ada(0x144)](0x24))+a39_0x56175f[_0x540ada(0x16b)]('│\x0a')),process[_0x540ada(0x182)][_0x540ada(0x165)](a39_0x56175f['red']('\x20\x20└─────────────────────────────────────┘\x0a')),process[_0x540ada(0x182)][_0x540ada(0x165)]('\x0a');}export function renderMarkdown(_0x46db04){const _0x39b288=a39_0x36e6,_0x13c649=getThemeById(getTheme());return _0x46db04[_0x39b288(0x145)](/\*\*(.+?)\*\*/g,(_0x202539,_0x4664c4)=>a39_0x56175f['bold'](_0x4664c4))[_0x39b288(0x145)](/\*(.+?)\*/g,(_0x155cac,_0xe2352c)=>a39_0x56175f[_0x39b288(0x141)](_0xe2352c))['replace'](/`([^`]+)`/g,(_0x1dc1c6,_0x5b9b1c)=>a39_0x56175f[_0x39b288(0x149)](_0x5b9b1c))[_0x39b288(0x145)](/^### (.+)$/gm,(_0xf9b4a4,_0x22f8f5)=>a39_0x56175f[_0x39b288(0x161)][_0x39b288(0x13e)](_0x13c649['secondary'])(_0x22f8f5))[_0x39b288(0x145)](/^## (.+)$/gm,(_0x485e9e,_0x9391d4)=>a39_0x56175f[_0x39b288(0x161)][_0x39b288(0x13e)](_0x13c649[_0x39b288(0x181)])(_0x9391d4))[_0x39b288(0x145)](/^# (.+)$/gm,(_0x21519c,_0x694914)=>a39_0x56175f['bold'][_0x39b288(0x13e)](_0x13c649['quaternary'])(_0x694914))[_0x39b288(0x145)](/^- (.+)$/gm,(_0x3770db,_0x4a1962)=>a39_0x56175f[_0x39b288(0x16c)](_0x39b288(0x154))+_0x4a1962)['replace'](/^\d+\. (.+)$/gm,(_0x532ded,_0x10d904)=>a39_0x56175f[_0x39b288(0x16c)]('\x20\x20')+_0x10d904);}export function aiMessage(_0x5ec16d){const _0xe9021e=a39_0x36e6,_0x2ef6c7=getThemeById(getTheme()),_0x4b769c=renderMarkdown(_0x5ec16d);_0x5ec16d?process['stdout']['write'](a39_0x56175f[_0xe9021e(0x13e)](_0x2ef6c7[_0xe9021e(0x181)])('●\x20')+_0x4b769c):process[_0xe9021e(0x182)][_0xe9021e(0x165)](a39_0x56175f['hex'](_0x2ef6c7[_0xe9021e(0x181)])('●\x20'));}function a39_0x36e6(_0x30e817,_0x1b886f){_0x30e817=_0x30e817-0x13c;const _0x2bb4cd=a39_0x2bb4();let _0x36e6c9=_0x2bb4cd[_0x30e817];return _0x36e6c9;}export function aiMessageEnd(){const _0x3fe14a=a39_0x36e6;process['stdout'][_0x3fe14a(0x165)]('\x0a');}export function toolCall(_0x59eac6,_0xdb200f){const _0x4fc980=a39_0x36e6,_0x29a68c=getThemeById(getTheme());process[_0x4fc980(0x182)][_0x4fc980(0x165)](a39_0x56175f[_0x4fc980(0x13e)](_0x29a68c['primary'])('●\x20')+a39_0x56175f['bold'][_0x4fc980(0x14d)](_0x59eac6)+a39_0x56175f['dim']('('+_0xdb200f+')')+'\x0a');}export function statusBar(_0x2ab317,_0x53b5ee){const _0x30deb5=a39_0x36e6,_0x25153f=getThemeById(getTheme()),_0x3169ad=MODELS[_0x30deb5(0x15b)](_0x57a685=>_0x57a685['id']===_0x2ab317),_0x5aeb76=_0x3169ad?.[_0x30deb5(0x184)]||(_0x2ab317[_0x30deb5(0x172)]('/')[_0x30deb5(0x168)]()?.['replace'](_0x30deb5(0x180),'')||_0x2ab317),_0x5c3fad=a39_0x56175f['hex'](_0x25153f[_0x30deb5(0x181)])(_0x5aeb76),_0x5c1f0e=a39_0x56175f[_0x30deb5(0x16c)](_0x53b5ee+_0x30deb5(0x17f));process[_0x30deb5(0x182)][_0x30deb5(0x165)]('\x20\x20'+_0x5c3fad+'\x20\x20'+a39_0x56175f['dim']('|')+'\x20\x20'+_0x5c1f0e+'\x0a');}export function prompt(){const _0x398ff2=a39_0x36e6,_0x5d2ca8=getThemeById(getTheme());process[_0x398ff2(0x182)][_0x398ff2(0x165)](a39_0x56175f[_0x398ff2(0x161)]['hex'](_0x5d2ca8['primary'])('>\x20'));}function lerpColor(_0x5526f2,_0x314482,_0x359f78){const _0xd91056=a39_0x36e6,_0x5cd826=parseInt(_0x5526f2[_0xd91056(0x145)]('#',''),0x10),_0x5e31d8=parseInt(_0x314482[_0xd91056(0x145)]('#',''),0x10),_0x467502=_0x5cd826>>0x10&0xff,_0x20e95d=_0x5cd826>>0x8&0xff,_0x2d1f7=_0x5cd826&0xff,_0x498b76=_0x5e31d8>>0x10&0xff,_0x434237=_0x5e31d8>>0x8&0xff,_0x1d3309=_0x5e31d8&0xff,_0x19491e=Math['round'](_0x467502+(_0x498b76-_0x467502)*_0x359f78),_0x3ed00e=Math['round'](_0x20e95d+(_0x434237-_0x20e95d)*_0x359f78),_0x4b5a13=Math['round'](_0x2d1f7+(_0x1d3309-_0x2d1f7)*_0x359f78);return'#'+((0x1<<0x18)+(_0x19491e<<0x10)+(_0x3ed00e<<0x8)+_0x4b5a13)[_0xd91056(0x156)](0x10)[_0xd91056(0x14f)](0x1);}export function gradientText(_0x19b576,_0x40c42b,_0x12669f){const _0x1f0d06=a39_0x36e6,_0x207a7b=_0x19b576[_0x1f0d06(0x172)]('');return _0x207a7b[_0x1f0d06(0x176)]((_0x84b8f7,_0x284659)=>{const _0x332743=_0x1f0d06,_0x53c186=_0x284659/Math[_0x332743(0x189)](_0x207a7b[_0x332743(0x160)]-0x1,0x1);return a39_0x56175f[_0x332743(0x13e)](lerpColor(_0x40c42b,_0x12669f,_0x53c186))(_0x84b8f7);})[_0x1f0d06(0x17d)]('');}export function loggedInBox(_0x28a6b4){const _0x2f9922=a39_0x36e6,_0x235907=getThemeById(getTheme()),_0x21814c=_0x2f9922(0x17a),_0xf620a4=_0x28a6b4[_0x2f9922(0x16f)](),_0x151d21=_0x21814c['length']+_0xf620a4[_0x2f9922(0x160)]+0x4,_0x456bae=a39_0x56175f[_0x2f9922(0x13e)](_0x235907[_0x2f9922(0x181)])('─'[_0x2f9922(0x151)](_0x151d21)),_0x300441=a39_0x56175f[_0x2f9922(0x13e)](_0x235907[_0x2f9922(0x181)])('╭'+_0x456bae+'╮'),_0x3143ea=a39_0x56175f[_0x2f9922(0x13e)](_0x235907[_0x2f9922(0x181)])('╰'+_0x456bae+'╯'),_0x1806dc=gradientText(_0xf620a4,_0x235907[_0x2f9922(0x13c)],_0x235907['quaternary']);process['stdout'][_0x2f9922(0x165)](_0x2f9922(0x179)+_0x300441+'\x0a'),process[_0x2f9922(0x182)][_0x2f9922(0x165)]('\x20\x20'+a39_0x56175f[_0x2f9922(0x13e)](_0x235907[_0x2f9922(0x181)])(_0x2f9922(0x18a))+a39_0x56175f[_0x2f9922(0x16c)](_0x21814c)+_0x1806dc+a39_0x56175f[_0x2f9922(0x13e)](_0x235907[_0x2f9922(0x181)])(_0x2f9922(0x18b))+'\x0a'),process[_0x2f9922(0x182)][_0x2f9922(0x165)]('\x20\x20'+_0x3143ea+'\x0a');}export function actionSpinner(_0x3e4662){const _0x54b06e=a39_0x36e6,_0x455762=getThemeById(getTheme());return a39_0x46956d({'text':a39_0x56175f[_0x54b06e(0x16c)](_0x3e4662),'color':_0x54b06e(0x178),'spinner':{'interval':0x50,'frames':['✶','✸','✹','✺','✹','✸'][_0x54b06e(0x176)](_0x2eabd6=>a39_0x56175f['hex'](_0x455762[_0x54b06e(0x13c)])(_0x2eabd6))}});}export function toolSuccess(_0x2740f0,_0x43726b,_0x4518a8,_0x59b272=![]){const _0xf19e18=a39_0x36e6,_0x59df1f=getThemeById(getTheme()),_0x17f3f2=_0x59b272?a39_0x56175f[_0xf19e18(0x16b)]:a39_0x56175f[_0xf19e18(0x13e)](_0x59df1f[_0xf19e18(0x181)]),_0x7ba9a8=_0x59b272?a39_0x56175f['red']:a39_0x56175f[_0xf19e18(0x13e)](_0x59df1f[_0xf19e18(0x17c)]);process['stdout'][_0xf19e18(0x165)](_0x17f3f2('●\x20')+a39_0x56175f[_0xf19e18(0x161)][_0xf19e18(0x14d)](_0x2740f0)+a39_0x56175f['dim']('(')+_0x7ba9a8(_0x43726b)+a39_0x56175f[_0xf19e18(0x16c)](')\x0a')),_0x4518a8&&process[_0xf19e18(0x182)][_0xf19e18(0x165)](a39_0x56175f['dim'](_0xf19e18(0x155))+(_0x59b272?a39_0x56175f[_0xf19e18(0x16b)](_0x4518a8):a39_0x56175f['dim'](_0x4518a8))+'\x0a');}export function usageBox(_0x91ef60,_0x250f56,_0x41a823){const _0x5a9b95=a39_0x36e6,_0x45c026=_0x250f56>0x0?Math['min'](Math[_0x5a9b95(0x18c)](_0x91ef60/_0x250f56*0x64),0x64):0x0,_0x3d0041=0x1e,_0x4b9d46=Math[_0x5a9b95(0x18c)](_0x45c026/0x64*_0x3d0041),_0x1d554f=_0x3d0041-_0x4b9d46,_0x3e928e=_0x41a823?a39_0x56175f[_0x5a9b95(0x16b)]:_0x45c026>0x50?a39_0x56175f[_0x5a9b95(0x14b)]:a39_0x56175f['green'],_0x14a69d=_0x3e928e('█'[_0x5a9b95(0x151)](_0x4b9d46))+a39_0x56175f[_0x5a9b95(0x16c)]('░'[_0x5a9b95(0x151)](_0x1d554f)),_0x49826a=_0x250f56>=0x3b9ac9ff?_0x5a9b95(0x16e):_0x250f56[_0x5a9b95(0x163)](),_0x51397e=_0x91ef60[_0x5a9b95(0x163)]()+_0x5a9b95(0x14c)+_0x49826a+_0x5a9b95(0x191),_0x598561=getThemeById(getTheme());process[_0x5a9b95(0x182)][_0x5a9b95(0x165)]('\x0a'),process[_0x5a9b95(0x182)][_0x5a9b95(0x165)](a39_0x56175f[_0x5a9b95(0x161)]['hex'](_0x598561[_0x5a9b95(0x13c)])(_0x5a9b95(0x183))),process[_0x5a9b95(0x182)][_0x5a9b95(0x165)]('\x20\x20'+_0x14a69d+'\x20'+a39_0x56175f[_0x5a9b95(0x16c)](_0x45c026+'%')+'\x0a'),process[_0x5a9b95(0x182)][_0x5a9b95(0x165)](a39_0x56175f[_0x5a9b95(0x16c)]('\x20\x20'+_0x51397e+'\x0a')),_0x41a823&&process[_0x5a9b95(0x182)][_0x5a9b95(0x165)](a39_0x56175f['red'](_0x5a9b95(0x153))),process[_0x5a9b95(0x182)]['write']('\x0a');}export function mcpConnected(_0x392687,_0x10a775){const _0x1103f4=a39_0x36e6,_0x33bf42=getThemeById(getTheme()),_0x321d4c=_0x392687===0x1?_0x1103f4(0x18d):_0x1103f4(0x167);process[_0x1103f4(0x182)][_0x1103f4(0x165)](a39_0x56175f[_0x1103f4(0x16c)]('\x20\x20'+a39_0x56175f[_0x1103f4(0x13e)](_0x33bf42[_0x1103f4(0x181)])(_0x392687[_0x1103f4(0x156)]())+_0x1103f4(0x15d)+_0x321d4c+'\x20connected\x20('+_0x10a775+_0x1103f4(0x187)));}export function elapsedTime(_0x14d837){const _0x20a592=a39_0x36e6,_0x16d1d9=_0x14d837<0x3c?_0x14d837[_0x20a592(0x175)](0x1)+'s':Math[_0x20a592(0x146)](_0x14d837/0x3c)+'m\x20'+(_0x14d837%0x3c)[_0x20a592(0x175)](0x0)+'s';process[_0x20a592(0x182)][_0x20a592(0x165)](a39_0x56175f[_0x20a592(0x16c)](_0x20a592(0x188)+_0x16d1d9+'\x0a'));}export function currentDir(_0x3b1f90){const _0x15f137=a39_0x36e6,_0x52950d=getThemeById(getTheme());process[_0x15f137(0x182)][_0x15f137(0x165)](a39_0x56175f[_0x15f137(0x16c)](_0x15f137(0x140))+a39_0x56175f[_0x15f137(0x13e)](_0x52950d['secondary'])(_0x3b1f90)+'\x0a');}
package/dist/ui/select.js CHANGED
@@ -1 +1 @@
1
- function a16_0x1525(_0x4d2c83,_0x1ea24a){_0x4d2c83=_0x4d2c83-0x180;const _0x305ec6=a16_0x305e();let _0x1525a4=_0x305ec6[_0x4d2c83];return _0x1525a4;}function a16_0x305e(){const _0x3741e2=['523610vNaIXw','name','27623133OzCDJT','8wZXjBZ','2924173HgNmXA','map','Select\x20AI\x20Model','5952WHmZgA','4273404mJdLwe','1311318iXZENp','111vgJsSV','3363316XsCQmb'];a16_0x305e=function(){return _0x3741e2;};return a16_0x305e();}(function(_0x4c8a4d,_0x317d2f){const _0x11ebf3=a16_0x1525,_0x1a8477=_0x4c8a4d();while(!![]){try{const _0x40ccb2=parseInt(_0x11ebf3(0x182))/0x1*(-parseInt(_0x11ebf3(0x18b))/0x2)+-parseInt(_0x11ebf3(0x181))/0x3+-parseInt(_0x11ebf3(0x183))/0x4+parseInt(_0x11ebf3(0x184))/0x5+-parseInt(_0x11ebf3(0x180))/0x6+-parseInt(_0x11ebf3(0x188))/0x7+parseInt(_0x11ebf3(0x187))/0x8*(parseInt(_0x11ebf3(0x186))/0x9);if(_0x40ccb2===_0x317d2f)break;else _0x1a8477['push'](_0x1a8477['shift']());}catch(_0x236c44){_0x1a8477['push'](_0x1a8477['shift']());}}}(a16_0x305e,0x6a603));import{select}from'@inquirer/prompts';import{MODELS}from'../config/settings.js';import{getSelectedModel,setSelectedModel}from'../utils/storage.js';export async function selectModel(){const _0x3a2ff0=a16_0x1525,_0x260563=getSelectedModel(),_0x10d528=MODELS[_0x3a2ff0(0x189)](_0x9b5ca1=>({'name':''+_0x9b5ca1[_0x3a2ff0(0x185)]+(_0x9b5ca1['xp']?'\x20('+_0x9b5ca1['xp']+'xp)':'')+(_0x9b5ca1['id']===_0x260563?'\x20*':''),'value':_0x9b5ca1['id'],'description':_0x9b5ca1['description']})),_0xc62d0d=await select({'message':_0x3a2ff0(0x18a),'choices':_0x10d528,'default':_0x260563});return setSelectedModel(_0xc62d0d),_0xc62d0d;}export{getSelectedModel,setSelectedModel};
1
+ (function(_0x505a39,_0x1a03b6){const _0x11af2e=a40_0x5a1b,_0x583e15=_0x505a39();while(!![]){try{const _0x56d702=-parseInt(_0x11af2e(0x7e))/0x1*(parseInt(_0x11af2e(0x80))/0x2)+-parseInt(_0x11af2e(0x75))/0x3+parseInt(_0x11af2e(0x81))/0x4+parseInt(_0x11af2e(0x82))/0x5*(-parseInt(_0x11af2e(0x7b))/0x6)+parseInt(_0x11af2e(0x78))/0x7*(parseInt(_0x11af2e(0x7a))/0x8)+parseInt(_0x11af2e(0x74))/0x9*(-parseInt(_0x11af2e(0x77))/0xa)+parseInt(_0x11af2e(0x79))/0xb*(parseInt(_0x11af2e(0x7f))/0xc);if(_0x56d702===_0x1a03b6)break;else _0x583e15['push'](_0x583e15['shift']());}catch(_0x10a92a){_0x583e15['push'](_0x583e15['shift']());}}}(a40_0x299a,0x7b6b9));import{select}from'@inquirer/prompts';import{MODELS}from'../config/settings.js';import{getSelectedModel,setSelectedModel}from'../utils/storage.js';function a40_0x299a(){const _0x7c01a5=['map','Select\x20AI\x20Model','663055ZwdtsF','310524zGsSLM','2huABoD','984172iTqxQP','5epfyzN','description','xp)','63WQZvqJ','88557MzemyF','name','64510TERXiZ','7jPlyRV','759gpLnuH','193416rxVdca','4874838EYdIjA'];a40_0x299a=function(){return _0x7c01a5;};return a40_0x299a();}export async function selectModel(){const _0x1451e4=a40_0x5a1b,_0x23a9fc=getSelectedModel(),_0x5d9042=MODELS[_0x1451e4(0x7c)](_0x40592d=>({'name':''+_0x40592d[_0x1451e4(0x76)]+(_0x40592d['xp']?'\x20('+_0x40592d['xp']+_0x1451e4(0x84):'')+(_0x40592d['id']===_0x23a9fc?'\x20*':''),'value':_0x40592d['id'],'description':_0x40592d[_0x1451e4(0x83)]})),_0x25f1b9=await select({'message':_0x1451e4(0x7d),'choices':_0x5d9042,'default':_0x23a9fc});return setSelectedModel(_0x25f1b9),_0x25f1b9;}function a40_0x5a1b(_0x540c6e,_0x51402a){_0x540c6e=_0x540c6e-0x74;const _0x299a5e=a40_0x299a();let _0x5a1b7e=_0x299a5e[_0x540c6e];return _0x5a1b7e;}export{getSelectedModel,setSelectedModel};
@@ -0,0 +1,12 @@
1
+ export interface Theme {
2
+ id: string;
3
+ name: string;
4
+ primary: string;
5
+ secondary: string;
6
+ tertiary: string;
7
+ quaternary: string;
8
+ }
9
+ export declare const THEMES: Theme[];
10
+ export declare const DEFAULT_THEME_ID = "woozlit_blue";
11
+ export declare function getThemeById(id: string): Theme;
12
+ export declare function selectTheme(): Promise<string>;
@@ -0,0 +1 @@
1
+ function a41_0x3f09(_0x401573,_0x2de1f6){_0x401573=_0x401573-0x17b;const _0x23ca64=a41_0x23ca();let _0x3f092e=_0x23ca64[_0x401573];return _0x3f092e;}const a41_0xbe169c=a41_0x3f09;(function(_0x170abf,_0x2d40be){const _0x35d5f0=a41_0x3f09,_0x3a78dd=_0x170abf();while(!![]){try{const _0x5663fd=parseInt(_0x35d5f0(0x1a4))/0x1+-parseInt(_0x35d5f0(0x17f))/0x2*(parseInt(_0x35d5f0(0x1a0))/0x3)+parseInt(_0x35d5f0(0x19d))/0x4+-parseInt(_0x35d5f0(0x18b))/0x5+parseInt(_0x35d5f0(0x17e))/0x6*(-parseInt(_0x35d5f0(0x17b))/0x7)+-parseInt(_0x35d5f0(0x18a))/0x8*(-parseInt(_0x35d5f0(0x185))/0x9)+-parseInt(_0x35d5f0(0x188))/0xa;if(_0x5663fd===_0x2d40be)break;else _0x3a78dd['push'](_0x3a78dd['shift']());}catch(_0x372930){_0x3a78dd['push'](_0x3a78dd['shift']());}}}(a41_0x23ca,0x8fe67));function a41_0x23ca(){const _0x325600=['#f472b6','Classic\x20Purple','#a1a1aa','woozlit_blue','monochrome','#fb923c','sunset_orange','#047857','#3b82f6','Dracula\x20Pink','#fdba74','Hacker\x20Green','#ec4899','927720ZXYFbS','#34d399','#2563eb','3QOMkvF','#e9d5ff','#c084fc','#3f3f46','982947IitTCm','569807uUcdbK','dracula_pink','#93c5fd','24ZeVviR','971564QXDSPO','#fbcfe8','hacker_green','../utils/storage.js','classic_purple','find','7551PLKGMR','Woozlit\x20Blue\x20(Default)','#6ee7b7','6093030LFxhjZ','name','10688TRSKxC','1628385HCIsEL','Select\x20UI\x20Theme','#7e22ce','#10b981','#d4d4d8'];a41_0x23ca=function(){return _0x325600;};return a41_0x23ca();}export const THEMES=[{'id':a41_0xbe169c(0x193),'name':a41_0xbe169c(0x186),'primary':a41_0xbe169c(0x198),'secondary':'#60a5fa','tertiary':a41_0xbe169c(0x17d),'quaternary':a41_0xbe169c(0x19f)},{'id':a41_0xbe169c(0x183),'name':a41_0xbe169c(0x191),'primary':'#a855f7','secondary':a41_0xbe169c(0x1a2),'tertiary':a41_0xbe169c(0x1a1),'quaternary':a41_0xbe169c(0x18d)},{'id':a41_0xbe169c(0x181),'name':a41_0xbe169c(0x19b),'primary':a41_0xbe169c(0x18e),'secondary':a41_0xbe169c(0x19e),'tertiary':a41_0xbe169c(0x187),'quaternary':a41_0xbe169c(0x197)},{'id':a41_0xbe169c(0x196),'name':'Sunset\x20Orange','primary':'#f97316','secondary':a41_0xbe169c(0x195),'tertiary':a41_0xbe169c(0x19a),'quaternary':'#c2410c'},{'id':a41_0xbe169c(0x17c),'name':a41_0xbe169c(0x199),'primary':a41_0xbe169c(0x19c),'secondary':a41_0xbe169c(0x190),'tertiary':a41_0xbe169c(0x180),'quaternary':'#be185d'},{'id':a41_0xbe169c(0x194),'name':'Monochrome\x20Silver','primary':'#71717a','secondary':a41_0xbe169c(0x192),'tertiary':a41_0xbe169c(0x18f),'quaternary':a41_0xbe169c(0x1a3)}];export const DEFAULT_THEME_ID=a41_0xbe169c(0x193);export function getThemeById(_0x48bd75){const _0x296164=a41_0xbe169c;return THEMES[_0x296164(0x184)](_0x3c869e=>_0x3c869e['id']===_0x48bd75)||THEMES[0x0];}export async function selectTheme(){const _0x2f2ecb=a41_0xbe169c,{select:_0x4a3d62}=await import('@inquirer/prompts'),{getTheme:_0x75d4e,setTheme:_0x2eaee7}=await import(_0x2f2ecb(0x182)),_0x120d54=_0x75d4e(),_0x106c23=THEMES['map'](_0x4b6806=>({'name':_0x4b6806['id']===_0x120d54?_0x4b6806[_0x2f2ecb(0x189)]+'\x20*':_0x4b6806[_0x2f2ecb(0x189)],'value':_0x4b6806['id']})),_0x2ad611=await _0x4a3d62({'message':_0x2f2ecb(0x18c),'choices':_0x106c23,'default':_0x120d54});return _0x2eaee7(_0x2ad611),_0x2ad611;}