woozlit 2.2.1 → 2.2.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 (119) hide show
  1. package/LICENSE +21 -0
  2. package/bin/woozlit +179 -0
  3. package/package.json +24 -78
  4. package/postinstall.mjs +102 -0
  5. package/README.md +0 -108
  6. package/dist/auth/login.d.ts +0 -4
  7. package/dist/auth/login.js +0 -1
  8. package/dist/browser/index.d.ts +0 -78
  9. package/dist/browser/index.js +0 -1
  10. package/dist/browser/server.d.ts +0 -13
  11. package/dist/browser/server.js +0 -1
  12. package/dist/browser/tools.d.ts +0 -13
  13. package/dist/browser/tools.js +0 -1
  14. package/dist/chat/agent.d.ts +0 -1
  15. package/dist/chat/agent.js +0 -1
  16. package/dist/config/mcp.d.ts +0 -21
  17. package/dist/config/mcp.js +0 -1
  18. package/dist/config/settings.d.ts +0 -10
  19. package/dist/config/settings.js +0 -1
  20. package/dist/discord/client.d.ts +0 -3
  21. package/dist/discord/client.js +0 -1
  22. package/dist/discord/config.d.ts +0 -5
  23. package/dist/discord/config.js +0 -1
  24. package/dist/discord/index.d.ts +0 -3
  25. package/dist/discord/index.js +0 -1
  26. package/dist/discord/setup.d.ts +0 -1
  27. package/dist/discord/setup.js +0 -1
  28. package/dist/email/config.d.ts +0 -31
  29. package/dist/email/config.js +0 -1
  30. package/dist/email/index.d.ts +0 -3
  31. package/dist/email/index.js +0 -1
  32. package/dist/email/service.d.ts +0 -4
  33. package/dist/email/service.js +0 -1
  34. package/dist/email/setup.d.ts +0 -1
  35. package/dist/email/setup.js +0 -1
  36. package/dist/github/api.d.ts +0 -25
  37. package/dist/github/api.js +0 -1
  38. package/dist/github/auth.d.ts +0 -4
  39. package/dist/github/auth.js +0 -1
  40. package/dist/github/auto-setup.d.ts +0 -1
  41. package/dist/github/auto-setup.js +0 -1
  42. package/dist/github/index.d.ts +0 -1
  43. package/dist/github/index.js +0 -1
  44. package/dist/github/manual-setup.d.ts +0 -1
  45. package/dist/github/manual-setup.js +0 -1
  46. package/dist/index.d.ts +0 -2
  47. package/dist/index.js +0 -2
  48. package/dist/mcp-servers/computer-use.d.ts +0 -1
  49. package/dist/mcp-servers/computer-use.js +0 -1
  50. package/dist/services/bot-manager.d.ts +0 -13
  51. package/dist/services/bot-manager.js +0 -1
  52. package/dist/services/notifications.d.ts +0 -4
  53. package/dist/services/notifications.js +0 -1
  54. package/dist/services/voice-agent.d.ts +0 -6
  55. package/dist/services/voice-agent.js +0 -1
  56. package/dist/telegram/bot.d.ts +0 -3
  57. package/dist/telegram/bot.js +0 -1
  58. package/dist/telegram/config.d.ts +0 -12
  59. package/dist/telegram/config.js +0 -1
  60. package/dist/telegram/index.d.ts +0 -3
  61. package/dist/telegram/index.js +0 -1
  62. package/dist/telegram/reminders.d.ts +0 -11
  63. package/dist/telegram/reminders.js +0 -1
  64. package/dist/telegram/setup.d.ts +0 -1
  65. package/dist/telegram/setup.js +0 -1
  66. package/dist/tools/command.d.ts +0 -23
  67. package/dist/tools/command.js +0 -1
  68. package/dist/tools/file.d.ts +0 -79
  69. package/dist/tools/file.js +0 -1
  70. package/dist/tools/git.d.ts +0 -30
  71. package/dist/tools/git.js +0 -1
  72. package/dist/tools/index.d.ts +0 -10
  73. package/dist/tools/index.js +0 -1
  74. package/dist/tools/knowledge.d.ts +0 -4
  75. package/dist/tools/knowledge.js +0 -1
  76. package/dist/tools/mcp.d.ts +0 -10
  77. package/dist/tools/mcp.js +0 -1
  78. package/dist/tools/network.d.ts +0 -10
  79. package/dist/tools/network.js +0 -1
  80. package/dist/tools/project.d.ts +0 -54
  81. package/dist/tools/project.js +0 -1
  82. package/dist/tools/rollback.d.ts +0 -21
  83. package/dist/tools/rollback.js +0 -1
  84. package/dist/tools/rules.d.ts +0 -4
  85. package/dist/tools/rules.js +0 -1
  86. package/dist/tools/system.d.ts +0 -33
  87. package/dist/tools/system.js +0 -1
  88. package/dist/twilio/config.d.ts +0 -11
  89. package/dist/twilio/config.js +0 -1
  90. package/dist/twilio/index.d.ts +0 -3
  91. package/dist/twilio/index.js +0 -1
  92. package/dist/twilio/server.d.ts +0 -5
  93. package/dist/twilio/server.js +0 -1
  94. package/dist/twilio/setup.d.ts +0 -1
  95. package/dist/twilio/setup.js +0 -1
  96. package/dist/ui/output.d.ts +0 -28
  97. package/dist/ui/output.js +0 -1
  98. package/dist/ui/select.d.ts +0 -3
  99. package/dist/ui/select.js +0 -1
  100. package/dist/ui/themes.d.ts +0 -25
  101. package/dist/ui/themes.js +0 -1
  102. package/dist/utils/api.d.ts +0 -22
  103. package/dist/utils/api.js +0 -1
  104. package/dist/utils/chat-history.d.ts +0 -15
  105. package/dist/utils/chat-history.js +0 -1
  106. package/dist/utils/history.d.ts +0 -3
  107. package/dist/utils/history.js +0 -1
  108. package/dist/utils/mcp-installer.d.ts +0 -1
  109. package/dist/utils/mcp-installer.js +0 -1
  110. package/dist/utils/platform.d.ts +0 -7
  111. package/dist/utils/platform.js +0 -1
  112. package/dist/utils/storage.d.ts +0 -23
  113. package/dist/utils/storage.js +0 -1
  114. package/dist/utils/update-check.d.ts +0 -5
  115. package/dist/utils/update-check.js +0 -1
  116. package/dist/utils/updater.d.ts +0 -2
  117. package/dist/utils/updater.js +0 -1
  118. package/dist/verify_repro.d.ts +0 -4
  119. package/dist/verify_repro.js +0 -1
@@ -1 +0,0 @@
1
- (function(_0x16cf6d,_0x557d0c){const _0xdc46b2=a3_0x2a71,_0x4a2b34=_0x16cf6d();while(!![]){try{const _0x45e07e=parseInt(_0xdc46b2(0xb0))/0x1+-parseInt(_0xdc46b2(0xbd))/0x2+-parseInt(_0xdc46b2(0xb4))/0x3+-parseInt(_0xdc46b2(0xb3))/0x4+-parseInt(_0xdc46b2(0xb9))/0x5*(parseInt(_0xdc46b2(0xb6))/0x6)+-parseInt(_0xdc46b2(0xad))/0x7*(parseInt(_0xdc46b2(0xb5))/0x8)+parseInt(_0xdc46b2(0xc1))/0x9;if(_0x45e07e===_0x557d0c)break;else _0x4a2b34['push'](_0x4a2b34['shift']());}catch(_0x255eef){_0x4a2b34['push'](_0x4a2b34['shift']());}}}(a3_0x5443,0xb1a98));import{sendBrowserCommand,getConnectedSessions}from'./server.js';import a3_0x57d40c from'open';function a3_0x5443(){const _0x3e58fc=['83310COkNCp','get_text','click','365jxQOgv','length','open','get_html','1777982mMrCBD','number','wait','close','35307729JSoXDH','reload','7ahyoXS','snapshot','forward','18365KmwqCM','fill','Opened\x20in\x20system\x20browser','2702512XZVpPr','638460yHxeva','3381584Yxvypn'];a3_0x5443=function(){return _0x3e58fc;};return a3_0x5443();}export async function browserOpen(_0x9fb985){const _0x1a56de=a3_0x2a71,_0x992182=getConnectedSessions();if(_0x992182[_0x1a56de(0xba)]===0x0)return await a3_0x57d40c(_0x9fb985),{'success':!![],'message':_0x1a56de(0xb2)};try{return await sendBrowserCommand(_0x1a56de(0xbb),{'url':_0x9fb985});}catch(_0x41b501){return await a3_0x57d40c(_0x9fb985),{'success':!![],'message':_0x1a56de(0xb2)};}}export async function browserClick(_0x5a0e6b){const _0x7401c7=a3_0x2a71;return await sendBrowserCommand(_0x7401c7(0xb8),{'selector':_0x5a0e6b});}export async function browserFill(_0x13c4e0,_0x32e2e9){const _0x52cca6=a3_0x2a71;return await sendBrowserCommand(_0x52cca6(0xb1),{'selector':_0x13c4e0,'value':_0x32e2e9});}export async function browserSnapshot(){const _0x33cbdf=a3_0x2a71;return await sendBrowserCommand(_0x33cbdf(0xae));}export async function browserScreenshot(){return await sendBrowserCommand('screenshot');}export async function browserGetText(_0x30b9dc){const _0x336964=a3_0x2a71;return await sendBrowserCommand(_0x336964(0xb7),{'selector':_0x30b9dc});}export async function browserGetHtml(_0x49a691){const _0x1b8731=a3_0x2a71;return await sendBrowserCommand(_0x1b8731(0xbc),{'selector':_0x49a691});}export async function browserWait(_0x3bee84){const _0xe7361b=a3_0x2a71;return typeof _0x3bee84===_0xe7361b(0xbe)?await sendBrowserCommand(_0xe7361b(0xbf),{'ms':_0x3bee84}):await sendBrowserCommand(_0xe7361b(0xbf),{'selector':_0x3bee84});}export async function browserBack(){return await sendBrowserCommand('back');}function a3_0x2a71(_0x333da0,_0x7b1617){_0x333da0=_0x333da0-0xad;const _0x5443ea=a3_0x5443();let _0x2a71e8=_0x5443ea[_0x333da0];return _0x2a71e8;}export async function browserForward(){const _0x30eec5=a3_0x2a71;return await sendBrowserCommand(_0x30eec5(0xaf));}export async function browserReload(){const _0x46d357=a3_0x2a71;return await sendBrowserCommand(_0x46d357(0xc2));}export async function browserScroll(_0x4e7df2,_0x412217){return await sendBrowserCommand('scroll',{'direction':_0x4e7df2,'amount':_0x412217});}export async function browserClose(){const _0xf7d16d=a3_0x2a71;return await sendBrowserCommand(_0xf7d16d(0xc0));}
@@ -1 +0,0 @@
1
- export declare function startChat(initialMessage?: string): Promise<void>;
@@ -1 +0,0 @@
1
- const a4_0x14fefe=a4_0x34c9;(function(_0x559ad6,_0x5f0386){const _0x8d885=a4_0x34c9,_0x31e4a9=_0x559ad6();while(!![]){try{const _0x10808d=-parseInt(_0x8d885(0x1b2))/0x1+parseInt(_0x8d885(0x267))/0x2+-parseInt(_0x8d885(0x1af))/0x3*(-parseInt(_0x8d885(0x244))/0x4)+-parseInt(_0x8d885(0x1bc))/0x5+-parseInt(_0x8d885(0x198))/0x6*(-parseInt(_0x8d885(0x1df))/0x7)+-parseInt(_0x8d885(0x1c5))/0x8+parseInt(_0x8d885(0x277))/0x9*(parseInt(_0x8d885(0x1f4))/0xa);if(_0x10808d===_0x5f0386)break;else _0x31e4a9['push'](_0x31e4a9['shift']());}catch(_0x28c9c5){_0x31e4a9['push'](_0x31e4a9['shift']());}}}(a4_0x4573,0xb6de7));import{input,select}from'@inquirer/prompts';import a4_0x6ba474 from'chalk';function a4_0x34c9(_0xd7ff80,_0x491c04){_0xd7ff80=_0xd7ff80-0x165;const _0x457399=a4_0x4573();let _0x34c900=_0x457399[_0xd7ff80];return _0x34c900;}import a4_0x11b1d2 from'crypto';import{sendChatMessage,getUserUsage}from'../utils/api.js';import{getSelectedModel,getUser}from'../utils/storage.js';import{saveChatSession,getChatSessions,getChatSession}from'../utils/chat-history.js';import a4_0x3f9b0f from'fs';import{formatRulesForSystem}from'../tools/rules.js';import{formatKnowledgeForSystem}from'../tools/knowledge.js';import{createFile,readFile,listDirectory,editFile,updateFile,appendFile,runCommand,searchFile,deleteFile,renameFile,copyFile,fileInfo,readFileLines,connectToMcpServers,getMcpTools,executeMcpTool,closeMcpClients}from'../tools/index.js';import{gitStatus,gitDiff,gitLog,gitAdd,gitCommit,gitBranch}from'../tools/git.js';import{fetchUrl,downloadFile}from'../tools/network.js';import{getEnv,setEnv,getSystemInfo,clipboardRead,clipboardWrite}from'../tools/system.js';import{tree,grepRecursive,replaceInFiles,openInEditor,zipFiles,unzipFiles,writeJson,readJson,patchFile,powershellRun}from'../tools/project.js';import*as a4_0x1c0cda from'../ui/output.js';import{selectModel}from'../ui/select.js';import{getPlatformInfo,isWindows,getShellPrefix}from'../utils/platform.js';import*as a4_0x1d773f from'../github/index.js';const SYSTEM_PROMPT=a4_0x14fefe(0x170);export async function startChat(_0x3ec66f){const _0x428ba3=a4_0x14fefe,{startBrowserServer:_0x205a69}=await import(_0x428ba3(0x1c0));_0x205a69()[_0x428ba3(0x2a2)](()=>{});let _0x142775=a4_0x11b1d2[_0x428ba3(0x2a3)]();const _0x541f7c=getSelectedModel();await connectToMcpServers();const _0x3f3a9f=await getMcpTools(),_0x323ac9=new Set(_0x3f3a9f[_0x428ba3(0x1a3)](_0x4a34ff=>_0x4a34ff[_0x428ba3(0x194)]));_0x323ac9[_0x428ba3(0x29f)]>0x0&&a4_0x1c0cda[_0x428ba3(0x1a5)](_0x323ac9['size'],_0x3f3a9f[_0x428ba3(0x18c)]);process['on']('exit',()=>closeMcpClients());const _0x57c21=formatRulesForSystem(),_0x14e0cc=formatKnowledgeForSystem(),_0x437105=getPlatformInfo(),_0x2e5926=getShellPrefix(),_0x17fcc7=_0x3f3a9f['length']>0x0?_0x428ba3(0x16d)+_0x3f3a9f[_0x428ba3(0x1a3)](_0x28bb50=>{const _0x1b7475=_0x428ba3,_0x1a8375=Object[_0x1b7475(0x212)](_0x28bb50[_0x1b7475(0x1e7)]?.[_0x1b7475(0x180)]||{})[_0x1b7475(0x26b)](',\x20');return'-\x20'+_0x28bb50['name']+'\x20('+_0x1a8375+_0x1b7475(0x189)+_0x28bb50[_0x1b7475(0x258)]+'\x20';})[_0x428ba3(0x26b)]('\x0a'):'',_0x49650c=isWindows()?_0x428ba3(0x1ae)+_0x437105+_0x428ba3(0x1a6):_0x428ba3(0x1ae)+_0x437105+_0x428ba3(0x1b0)+_0x2e5926+_0x428ba3(0x236),_0x488d1d=SYSTEM_PROMPT+_0x17fcc7+_0x49650c+'\x0a'+_0x57c21+_0x14e0cc,_0x56d431=getUser(),_0x116abd=[{'role':_0x428ba3(0x215),'content':_0x488d1d}];(_0x56d431[_0x428ba3(0x1a2)]||_0x56d431[_0x428ba3(0x2a6)])&&a4_0x1c0cda[_0x428ba3(0x255)](_0x56d431[_0x428ba3(0x1a2)]||_0x56d431['email']||_0x428ba3(0x187));a4_0x1c0cda[_0x428ba3(0x1d1)](process[_0x428ba3(0x1c6)]()),a4_0x1c0cda['dim'](_0x428ba3(0x1f6)),a4_0x1c0cda['statusBar'](_0x541f7c,0x64);const _0x5830cd=async _0x2f3819=>{const _0x1b7ed0=_0x428ba3;if(!_0x2f3819||_0x2f3819[_0x1b7ed0(0x1ee)]()==='')return!![];const _0x10f105=_0x2f3819[_0x1b7ed0(0x1ee)]();if(_0x10f105===_0x1b7ed0(0x20e)||_0x10f105===_0x1b7ed0(0x28e))return a4_0x1c0cda[_0x1b7ed0(0x1e8)](_0x1b7ed0(0x299)),![];if(_0x10f105==='/clear')return _0x116abd[_0x1b7ed0(0x18c)]=0x1,_0x142775=a4_0x11b1d2[_0x1b7ed0(0x2a3)](),a4_0x1c0cda[_0x1b7ed0(0x1e8)](_0x1b7ed0(0x245)),!![];if(_0x10f105===_0x1b7ed0(0x2ac)){const _0xa289d0=getChatSessions();if(_0xa289d0['length']===0x0)return a4_0x1c0cda[_0x1b7ed0(0x1e8)]('No\x20chat\x20history\x20found.'),!![];const _0x132fce=_0xa289d0[_0x1b7ed0(0x1a3)](_0x3e00d0=>{const _0x6522bd=_0x1b7ed0,_0x4ac9d1=new Date(_0x3e00d0[_0x6522bd(0x1be)])['toLocaleString']();return{'name':_0x4ac9d1+_0x6522bd(0x240)+_0x3e00d0[_0x6522bd(0x190)]+'\x20','value':_0x3e00d0['id']};});_0x132fce['unshift']({'name':'Cancel','value':_0x1b7ed0(0x237)});const _0x328488=await select({'message':_0x1b7ed0(0x1ea),'choices':_0x132fce});if(_0x328488===_0x1b7ed0(0x237))return!![];const _0x4a024c=getChatSession(_0x328488);return _0x4a024c?(_0x142775=_0x4a024c['id'],_0x116abd[_0x1b7ed0(0x18c)]=0x0,_0x116abd[_0x1b7ed0(0x246)](..._0x4a024c[_0x1b7ed0(0x272)]),a4_0x1c0cda[_0x1b7ed0(0x2a1)](_0x1b7ed0(0x200)+_0x4a024c[_0x1b7ed0(0x190)]+'\x20')):a4_0x1c0cda[_0x1b7ed0(0x21b)](_0x1b7ed0(0x21c)),!![];}if(_0x10f105===_0x1b7ed0(0x1eb)){const _0x152f56=await getMcpTools();return _0x152f56[_0x1b7ed0(0x18c)]===0x0?a4_0x1c0cda['info']('No\x20MCP\x20tools\x20connected.'):(a4_0x1c0cda[_0x1b7ed0(0x1e8)](_0x1b7ed0(0x21a)),_0x152f56['forEach'](_0x16e4f9=>a4_0x1c0cda[_0x1b7ed0(0x282)]('-\x20'+_0x16e4f9[_0x1b7ed0(0x210)]+'\x20('+_0x16e4f9[_0x1b7ed0(0x194)]+_0x1b7ed0(0x189)+(_0x16e4f9[_0x1b7ed0(0x258)]?.[_0x1b7ed0(0x25c)](0x0,0x32)||'')+'\x20'))),a4_0x1c0cda['dim'](_0x1b7ed0(0x1f1)),!![];}if(_0x10f105===_0x1b7ed0(0x2aa))return a4_0x1c0cda[_0x1b7ed0(0x23e)]('Commands'),a4_0x1c0cda['dim']('\x20\x20/exit\x20\x20\x20\x20\x20\x20-\x20Exit\x20the\x20chat'),a4_0x1c0cda[_0x1b7ed0(0x282)]('\x20\x20/clear\x20\x20\x20\x20\x20-\x20Clear\x20conversation\x20history'),a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x289)),a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x1dd)),a4_0x1c0cda['dim'](_0x1b7ed0(0x239)),a4_0x1c0cda['dim'](_0x1b7ed0(0x1ed)),a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x171)),a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x24d)),a4_0x1c0cda['dim'](_0x1b7ed0(0x1e3)),a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x24c)),a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x16a)),a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x184)),!![];if(_0x10f105===_0x1b7ed0(0x1fa)){const {isBrowserServerRunning:_0x48550,getConnectedSessions:_0x19807f}=await import(_0x1b7ed0(0x1c0));if(_0x48550()){const _0x136c3e=_0x19807f();a4_0x1c0cda['success']('Browser\x20server\x20is\x20running'),a4_0x1c0cda['info'](_0x1b7ed0(0x22d)+_0x136c3e[_0x1b7ed0(0x18c)]+'\x20'),_0x136c3e[_0x1b7ed0(0x250)](_0x23c555=>a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x177)+_0x23c555[_0x1b7ed0(0x260)]+'\x20'));}else a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x228)),a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x206));return!![];}if(_0x10f105[_0x1b7ed0(0x273)](_0x1b7ed0(0x279))){const _0x5528a4=_0x10f105[_0x1b7ed0(0x2a5)]('\x20')[0x1]||'';return await a4_0x1d773f['handleGitHubCommand'](_0x5528a4),!![];}if(_0x10f105[_0x1b7ed0(0x273)](_0x1b7ed0(0x169))){const _0x1a7bd5=await import('../telegram/index.js'),_0x343136=_0x10f105[_0x1b7ed0(0x2a5)]('\x20')[0x1]||'';if(_0x343136===_0x1b7ed0(0x181)){const {input:_0x50a717,password:_0x31eb20}=await import(_0x1b7ed0(0x19a));a4_0x1c0cda['header']('Telegram\x20Bot\x20Setup'),a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x27b)),a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x166)),a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x28d)),a4_0x1c0cda[_0x1b7ed0(0x1e8)]('');const _0x472022=await _0x31eb20({'message':_0x1b7ed0(0x2a9),'mask':'*'});_0x472022&&(_0x1a7bd5[_0x1b7ed0(0x20c)](_0x472022),a4_0x1c0cda[_0x1b7ed0(0x2a1)]('Bot\x20token\x20saved!'));const _0x56bfca=await _0x50a717({'message':'Security\x20PIN\x20(optional,\x20press\x20Enter\x20to\x20skip):'});return _0x56bfca&&(_0x1a7bd5[_0x1b7ed0(0x233)](_0x56bfca),a4_0x1c0cda[_0x1b7ed0(0x2a1)]('Security\x20PIN\x20set!')),a4_0x1c0cda['info']('Run\x20\x27/telegram\x20start\x27\x20to\x20connect\x20your\x20bot.'),!![];}if(_0x343136===_0x1b7ed0(0x182))return await _0x1a7bd5[_0x1b7ed0(0x1f0)](),!![];if(_0x343136===_0x1b7ed0(0x23b))return _0x1a7bd5[_0x1b7ed0(0x271)](),a4_0x1c0cda[_0x1b7ed0(0x1e8)]('Telegram\x20bot\x20stopped.'),!![];if(_0x343136===_0x1b7ed0(0x1a0))return _0x1a7bd5['isBotRunning']()?a4_0x1c0cda[_0x1b7ed0(0x2a1)](_0x1b7ed0(0x1d3)):a4_0x1c0cda[_0x1b7ed0(0x282)](_0x1b7ed0(0x1b7)),a4_0x1c0cda[_0x1b7ed0(0x282)]('Configured:\x20'+(_0x1a7bd5['isConfigured']()?_0x1b7ed0(0x1d4):'No')+'\x20'),!![];return a4_0x1c0cda['header']('Telegram\x20Commands'),a4_0x1c0cda['dim']('\x20\x20/telegram\x20setup\x20\x20\x20-\x20Configure\x20bot\x20token'),a4_0x1c0cda[_0x1b7ed0(0x282)]('\x20\x20/telegram\x20start\x20\x20\x20-\x20Start\x20bot'),a4_0x1c0cda[_0x1b7ed0(0x282)]('\x20\x20/telegram\x20stop\x20\x20\x20\x20-\x20Stop\x20bot'),a4_0x1c0cda['dim'](_0x1b7ed0(0x205)),!![];}if(_0x10f105==='/rollback'){const {rollbackLast:_0x1cb7dd,getChanges:_0x2b8d60}=await import(_0x1b7ed0(0x188)),_0x4e36a2=_0x2b8d60();if(_0x4e36a2[_0x1b7ed0(0x18c)]===0x0)a4_0x1c0cda[_0x1b7ed0(0x1e8)](_0x1b7ed0(0x229));else{const _0x4e9df3=_0x1cb7dd();_0x4e9df3[_0x1b7ed0(0x2a1)]?a4_0x1c0cda[_0x1b7ed0(0x2a1)](_0x4e9df3[_0x1b7ed0(0x232)]):a4_0x1c0cda[_0x1b7ed0(0x21b)](_0x4e9df3[_0x1b7ed0(0x232)]);}return!![];}if(_0x10f105===_0x1b7ed0(0x28f)){const _0x50badc=await selectModel();return _0x50badc!==_0x541f7c?(a4_0x1c0cda[_0x1b7ed0(0x1e8)](_0x1b7ed0(0x296)+_0x50badc+'\x20'),a4_0x1c0cda[_0x1b7ed0(0x1e8)]('Please\x20restart\x20the\x20chat\x20for\x20the\x20change\x20to\x20take\x20full\x20effect.')):a4_0x1c0cda[_0x1b7ed0(0x1e8)](_0x1b7ed0(0x265)+_0x541f7c+'\x20'),!![];}if(_0x10f105===_0x1b7ed0(0x225)||_0x10f105===_0x1b7ed0(0x17b)){const {selectTheme:_0x3a4289}=await import(_0x1b7ed0(0x29c)),_0x31b9ca=await _0x3a4289();return a4_0x1c0cda['info'](_0x1b7ed0(0x2b7)+_0x31b9ca+'\x20'),!![];}if(_0x10f105===_0x1b7ed0(0x1ac)||_0x10f105===_0x1b7ed0(0x24b)){const _0x38e222=a4_0x1c0cda['createSpinner'](_0x1b7ed0(0x203));_0x38e222[_0x1b7ed0(0x182)]();const _0x7c7be5=await getUserUsage();return _0x38e222[_0x1b7ed0(0x23b)](),_0x7c7be5?a4_0x1c0cda[_0x1b7ed0(0x1d5)](_0x7c7be5[_0x1b7ed0(0x16c)],_0x7c7be5[_0x1b7ed0(0x23c)],_0x7c7be5[_0x1b7ed0(0x197)]):a4_0x1c0cda['error']('Failed\x20to\x20fetch\x20usage\x20data.'),!![];}const _0x5a9c13=/(?:[a-zA-Z]:\\[^:<>"|?*]+?\.(?:png|jpg|jpeg|gif|webp))|(?:\/[^:<>"|?*]+?\.(?:png|jpg|jpeg|gif|webp))/gi,_0x310bb5=[..._0x10f105[_0x1b7ed0(0x1c1)](_0x5a9c13)][_0x1b7ed0(0x1a3)](_0x1609e7=>_0x1609e7[0x0]);if(_0x310bb5[_0x1b7ed0(0x18c)]>0x0){const _0x30303d=[];let _0x39551a=_0x10f105;for(const _0x303412 of _0x310bb5){_0x39551a=_0x39551a[_0x1b7ed0(0x1c2)](_0x303412,'')[_0x1b7ed0(0x1ee)]();try{if(a4_0x3f9b0f[_0x1b7ed0(0x253)](_0x303412)){const _0x1f0577=_0x303412[_0x1b7ed0(0x2a5)]('.')['pop']()?.['toLowerCase']()||'png';let _0x4e687b='image\x20/\x20'+_0x1f0577+'\x20';if(_0x1f0577===_0x1b7ed0(0x19f))_0x4e687b=_0x1b7ed0(0x288);const _0x3b3e1a=a4_0x3f9b0f[_0x1b7ed0(0x1c9)](_0x303412)['toString']('base64');_0x30303d['push']({'type':_0x1b7ed0(0x173),'image_url':{'url':'data:'+_0x4e687b+_0x1b7ed0(0x172)+_0x3b3e1a+'\x20'}});}}catch(_0x9b9141){a4_0x1c0cda['warn'](_0x1b7ed0(0x18f)+_0x303412+':\x20'+_0x9b9141+'\x20');}}if(_0x39551a)_0x30303d['unshift']({'type':_0x1b7ed0(0x1a1),'text':_0x39551a});else _0x30303d['length']>0x0&&_0x30303d[_0x1b7ed0(0x2b3)]({'type':_0x1b7ed0(0x1a1),'text':'What\x20is\x20in\x20this\x20image?'});_0x30303d['length']>0x0?(_0x116abd[_0x1b7ed0(0x246)]({'role':_0x1b7ed0(0x2af),'content':_0x30303d}),a4_0x1c0cda[_0x1b7ed0(0x1e8)](_0x1b7ed0(0x1cc)+(_0x30303d['length']-(_0x39551a?0x1:0x1))+_0x1b7ed0(0x27a))):_0x116abd[_0x1b7ed0(0x246)]({'role':'user','content':_0x10f105});}else _0x116abd['push']({'role':_0x1b7ed0(0x2af),'content':_0x10f105});await processAgentLoop(_0x116abd,_0x541f7c);const _0x5f5fee=JSON[_0x1b7ed0(0x294)](_0x116abd)[_0x1b7ed0(0x18c)]/0x4;if(_0x5f5fee>0xc350&&_0x116abd[_0x1b7ed0(0x18c)]>0xa){a4_0x1c0cda[_0x1b7ed0(0x1e8)](_0x1b7ed0(0x24e));const _0x29451b=Object[_0x1b7ed0(0x1f3)]([],_0x116abd['slice'](0x1,_0x116abd[_0x1b7ed0(0x18c)]-0x4));try{const _0xe2319c=[{'role':'system','content':'You\x20are\x20a\x20concise\x20summarizer.\x20Summarize\x20the\x20user\x27s\x20progress\x20and\x20the\x20context\x20of\x20the\x20conversation\x20so\x20far\x20in\x20a\x20few\x20detailed\x20paragraphs.\x20Omit\x20exact\x20code,\x20focus\x20on\x20decisions,\x20completed\x20tasks,\x20and\x20current\x20state.'},{'role':_0x1b7ed0(0x2af),'content':JSON[_0x1b7ed0(0x294)](_0x29451b)}],_0x5628e7=await sendChatMessage(_0x541f7c,_0xe2319c),_0x9c0145=_0x5628e7['content'];_0x116abd[_0x1b7ed0(0x1c3)](0x1,_0x116abd[_0x1b7ed0(0x18c)]-0x5,{'role':_0x1b7ed0(0x217),'content':_0x1b7ed0(0x1e0)+_0x9c0145+'\x20'}),_0x142775=a4_0x11b1d2[_0x1b7ed0(0x2a3)]();}catch(_0x27005c){a4_0x1c0cda[_0x1b7ed0(0x248)](_0x1b7ed0(0x231));}}return saveChatSession(_0x142775,_0x116abd),!![];};if(_0x3ec66f){const _0x2fe78f=await _0x5830cd(_0x3ec66f);if(!_0x2fe78f)return;}while(!![]){try{const _0x55e575=await import(_0x428ba3(0x199))[_0x428ba3(0x1bb)](_0x24491e=>_0x24491e[_0x428ba3(0x283)]()),_0x1e08e3=await import(_0x428ba3(0x29c))['then'](_0x447800=>_0x447800[_0x428ba3(0x17c)](_0x55e575)),_0x498228=a4_0x6ba474[_0x428ba3(0x18d)]['hex'](_0x1e08e3[_0x428ba3(0x257)])(_0x428ba3(0x295)),_0x4ee649=await input({'message':_0x498228,'theme':{'prefix':''}}),_0x385e13=await _0x5830cd(_0x4ee649);if(!_0x385e13)break;}catch(_0x43d0bc){if(_0x43d0bc instanceof Error&&_0x43d0bc['message'][_0x428ba3(0x22c)]('force\x20closed'))break;a4_0x1c0cda[_0x428ba3(0x21b)](_0x428ba3(0x25d)+_0x43d0bc+'\x20');}}}function cleanTagsFromLine(_0x861d4b){const _0x4ddbe0=a4_0x14fefe,_0x1a3709=_0x861d4b['trim']();if(!_0x1a3709)return'';if(_0x1a3709[_0x4ddbe0(0x273)]('**'))return'';if(_0x1a3709['startsWith'](_0x4ddbe0(0x2b0)))return'';if(_0x1a3709[_0x4ddbe0(0x273)](_0x4ddbe0(0x213)))return'';if(_0x1a3709['startsWith']('```'))return'';if(_0x1a3709[_0x4ddbe0(0x22c)](_0x4ddbe0(0x202))&&_0x1a3709[_0x4ddbe0(0x22c)](_0x4ddbe0(0x17f)))return'';if(_0x1a3709[_0x4ddbe0(0x273)]('Running'))return'';if(_0x1a3709[_0x4ddbe0(0x273)]('-\x20Running'))return'';if(_0x1a3709[_0x4ddbe0(0x273)](_0x4ddbe0(0x1a7)))return'';if(_0x1a3709[_0x4ddbe0(0x273)](_0x4ddbe0(0x204)))return'';if(_0x1a3709[_0x4ddbe0(0x273)](_0x4ddbe0(0x28c)))return'';if(_0x1a3709[_0x4ddbe0(0x273)](_0x4ddbe0(0x19c)))return'';if(_0x1a3709[_0x4ddbe0(0x22c)](_0x4ddbe0(0x17a)))return'';if(_0x1a3709['includes'](_0x4ddbe0(0x247)))return'';return _0x861d4b[_0x4ddbe0(0x1c2)](/<text>/g,'')[_0x4ddbe0(0x1c2)](/<\/text>/g,'')[_0x4ddbe0(0x1c2)](/<\/text>/g,'')['replace'](/<reasoning>/g,'')[_0x4ddbe0(0x1c2)](/<\/reasoning>/g,'')[_0x4ddbe0(0x1c2)](/\*\*(.+?)\*\*/g,'$1');}async function processAgentLoop(_0x1be55f,_0xf2bd32){const _0x34b6b9=a4_0x14fefe;let _0x5dbd70=0x0;const _0x293e5e=0x32;let _0x44537d=0x0,_0x142db5='';while(_0x5dbd70<_0x293e5e){_0x5dbd70++;const _0x541300=a4_0x1c0cda[_0x34b6b9(0x22b)](_0x34b6b9(0x29a));_0x541300[_0x34b6b9(0x182)]();let _0xb75763='',_0x2b906a=![],_0xc9192a='';const _0x59cd16=new AbortController(),_0x1e361b=()=>{const _0x5d3019=_0x34b6b9;_0x59cd16['abort'](),a4_0x1c0cda[_0x5d3019(0x1e8)](_0x5d3019(0x1b8));};process['on']('SIGINT',_0x1e361b);let _0x5d25c1=null;try{const _0x4902cf=await sendChatMessage(_0xf2bd32,_0x1be55f,_0x24539b=>{const _0x3c5296=_0x34b6b9;_0x541300[_0x3c5296(0x1fb)]&&_0x541300[_0x3c5296(0x23b)]();_0xb75763+=_0x24539b;for(const _0x52b964 of _0x24539b){_0xc9192a+=_0x52b964;if(_0x52b964==='\x0a'){if(!_0x2b906a){if(_0xc9192a['includes'](_0x3c5296(0x23f))||_0xc9192a[_0x3c5296(0x273)](_0x3c5296(0x20a))){_0x2b906a=!![],_0xc9192a='';!_0x5d25c1&&(_0x5d25c1=a4_0x1c0cda[_0x3c5296(0x234)](_0x3c5296(0x223)),_0x5d25c1[_0x3c5296(0x182)]());continue;}let _0x4f4cdc=_0xc9192a[_0x3c5296(0x1c2)](/<text>/g,'')['replace'](/<\/text>/g,'')[_0x3c5296(0x1c2)](/<reasoning.*?>/g,'')['replace'](/<\/reasoning>/g,'');if(_0x4f4cdc[_0x3c5296(0x273)]('```')&&!_0x4f4cdc[_0x3c5296(0x273)]('```tool'))process['stdout']['write']('```'+_0x4f4cdc[_0x3c5296(0x25c)](0x3));else(_0x4f4cdc[_0x3c5296(0x1ee)]()||_0x4f4cdc==='\x0a'||_0x4f4cdc==='\x0d\x0a')&&process['stdout']['write'](_0x4f4cdc);}else(_0xc9192a[_0x3c5296(0x22c)](_0x3c5296(0x2b4))||_0xc9192a[_0x3c5296(0x1ee)]()===_0x3c5296(0x1d2))&&(_0x2b906a=![],_0x5d25c1&&(_0x5d25c1[_0x3c5296(0x23b)](),_0x5d25c1=null));_0xc9192a='';}}},_0x59cd16[_0x34b6b9(0x1db)]);_0x5d25c1&&(_0x5d25c1[_0x34b6b9(0x23b)](),_0x5d25c1=null);if(_0xc9192a&&!_0x2b906a&&!_0xc9192a[_0x34b6b9(0x22c)](_0x34b6b9(0x23f))){let _0x505feb=_0xc9192a['replace'](/<text>/g,'')[_0x34b6b9(0x1c2)](/<\/text>/g,'')['replace'](/<reasoning.*?>/g,'')[_0x34b6b9(0x1c2)](/<\/reasoning>/g,'');if(_0x505feb['trim']())process[_0x34b6b9(0x256)][_0x34b6b9(0x219)](_0x505feb);}_0xb75763=_0x4902cf[_0x34b6b9(0x269)];}catch(_0x2bb45e){_0x541300[_0x34b6b9(0x23b)](),process[_0x34b6b9(0x222)](_0x34b6b9(0x22e),_0x1e361b);if(_0x2bb45e[_0x34b6b9(0x210)]===_0x34b6b9(0x27c)||_0x2bb45e[_0x34b6b9(0x232)]['includes'](_0x34b6b9(0x22f))){a4_0x1c0cda[_0x34b6b9(0x248)](_0x34b6b9(0x174)),_0x1be55f[_0x34b6b9(0x246)]({'role':_0x34b6b9(0x217),'content':_0xb75763+_0x34b6b9(0x19e)}),_0x1be55f[_0x34b6b9(0x246)]({'role':_0x34b6b9(0x2af),'content':_0x34b6b9(0x16e)});break;}if(_0x2bb45e[_0x34b6b9(0x21f)]){a4_0x1c0cda[_0x34b6b9(0x17e)](_0x2bb45e[_0x34b6b9(0x1ec)]||0x3c);return;}a4_0x1c0cda[_0x34b6b9(0x21b)]('API\x20error:\x20'+_0x2bb45e);return;}finally{process[_0x34b6b9(0x222)]('SIGINT',_0x1e361b);}_0x541300[_0x34b6b9(0x1fb)]&&_0x541300[_0x34b6b9(0x23b)]();a4_0x1c0cda[_0x34b6b9(0x21e)](),_0x1be55f[_0x34b6b9(0x246)]({'role':_0x34b6b9(0x217),'content':_0xb75763});let _0x266225=_0xb75763[_0x34b6b9(0x264)](/<execute_tool>\s*([\s\S]*?)<\/execute_tool>/);!_0x266225&&(_0x266225=_0xb75763[_0x34b6b9(0x264)](/```tool\s*([\s\S]*?)```/));!_0x266225&&(_0x266225=_0xb75763[_0x34b6b9(0x264)](/```json\s*(\{[\s\S]*?"name"\s*:[\s\S]*?\})\s*```/));if(!_0x266225)break;function _0x5c2fe2(_0x34b0a8){const _0x182c8a=_0x34b6b9,_0x30dc7b=_0x34b0a8['trim']();try{return JSON['parse'](_0x30dc7b);}catch(_0x4de6b3){try{let _0x4bd021='',_0xfa33fd=![];for(let _0x42bb46=0x0;_0x42bb46<_0x30dc7b[_0x182c8a(0x18c)];_0x42bb46++){const _0x53a3b7=_0x30dc7b[_0x42bb46];if(_0x53a3b7==='\x22'&&_0x30dc7b[_0x42bb46-0x1]!=='\x5c')_0xfa33fd=!_0xfa33fd;if(_0xfa33fd&&_0x53a3b7==='\x0a')_0x4bd021+='\x5cn';else _0x4bd021+=_0x53a3b7;}return JSON[_0x182c8a(0x1c7)](_0x4bd021);}catch(_0x30ee5d){try{return new Function(_0x182c8a(0x285)+_0x30dc7b)();}catch(_0xf64fac){throw new Error(_0x182c8a(0x214)+_0x4de6b3['message']);}}}}try{const _0x2aa786=_0x5c2fe2(_0x266225[0x1]),_0x2fc92b={'write_file':'create_file','write':_0x34b6b9(0x1d0),'create':_0x34b6b9(0x1d0),'read':_0x34b6b9(0x287),'read_text_file':_0x34b6b9(0x287),'search':_0x34b6b9(0x2b2),'list':'list_directory','ls':_0x34b6b9(0x261),'update':_0x34b6b9(0x183),'append':_0x34b6b9(0x1f2),'execute':_0x34b6b9(0x276),'cmd':_0x34b6b9(0x276),'remove_file':'delete_file','rm':_0x34b6b9(0x220),'unlink':_0x34b6b9(0x220),'move_file':_0x34b6b9(0x175),'mv':'rename_file','cp':_0x34b6b9(0x25e),'stat':_0x34b6b9(0x2a8),'head':_0x34b6b9(0x1b4),'wget':_0x34b6b9(0x1bd),'curl':_0x34b6b9(0x17d),'http_get':_0x34b6b9(0x17d),'env':_0x34b6b9(0x290),'sysinfo':_0x34b6b9(0x191),'paste':_0x34b6b9(0x16f),'ask':_0x34b6b9(0x230),'prompt_user':_0x34b6b9(0x230),'request_input':_0x34b6b9(0x230),'dir_tree':_0x34b6b9(0x1dc),'show_tree':_0x34b6b9(0x1dc),'grep':_0x34b6b9(0x1ca),'find_in_files':_0x34b6b9(0x1ca),'search_all':_0x34b6b9(0x1ca),'find_replace':_0x34b6b9(0x1f7),'sed':_0x34b6b9(0x1f7),'open':'open_in_editor','vscode':_0x34b6b9(0x28a),'compress':_0x34b6b9(0x268),'archive':_0x34b6b9(0x268),'extract':_0x34b6b9(0x2b1),'decompress':_0x34b6b9(0x2b1),'ps':_0x34b6b9(0x195),'pwsh':_0x34b6b9(0x195)};_0x2fc92b[_0x2aa786[_0x34b6b9(0x210)]]&&(_0x2aa786['name']=_0x2fc92b[_0x2aa786[_0x34b6b9(0x210)]]);_0x2aa786[_0x34b6b9(0x26d)]&&(!_0x2aa786['args'][_0x34b6b9(0x1e6)]&&(_0x2aa786[_0x34b6b9(0x26d)]['path']=_0x2aa786[_0x34b6b9(0x26d)]['file_path']||_0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x22a)]||_0x2aa786['args'][_0x34b6b9(0x2b6)]||_0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x2a0)]),!_0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x269)]&&(_0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x269)]=_0x2aa786['args'][_0x34b6b9(0x1a1)]||_0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x20b)]||_0x2aa786[_0x34b6b9(0x26d)]['data']||_0x2aa786['args'][_0x34b6b9(0x1d8)]),!_0x2aa786['args'][_0x34b6b9(0x26a)]&&(_0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x26a)]=_0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x193)]||_0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x224)]));const _0x4fe7cb={'create_file':_0x34b6b9(0x1e1),'read_file':_0x34b6b9(0x286),'edit_file':_0x34b6b9(0x2b8),'update_file':_0x34b6b9(0x1b1),'append_file':_0x34b6b9(0x20d),'list_directory':_0x34b6b9(0x1fe),'search_file':'Search','find_files':'Find','search_directory':_0x34b6b9(0x178),'delete_file':_0x34b6b9(0x241),'rename_file':'Rename','copy_file':_0x34b6b9(0x1bf),'file_info':_0x34b6b9(0x1ba),'read_file_lines':'ReadLines','run_command':_0x34b6b9(0x235),'run_background':_0x34b6b9(0x252),'read_terminal_output':_0x34b6b9(0x26f),'send_terminal_input':_0x34b6b9(0x221),'list_active_processes':'ListProcs','terminate_process':'KillProc','git_status':_0x34b6b9(0x26e),'git_diff':_0x34b6b9(0x262),'git_log':_0x34b6b9(0x167),'git_add':_0x34b6b9(0x1ff),'git_commit':_0x34b6b9(0x1e5),'git_branch':'GitBranch','fetch_url':'Fetch','download_file':_0x34b6b9(0x1ce),'get_env':'GetEnv','set_env':_0x34b6b9(0x1fd),'get_system_info':'SysInfo','clipboard_read':'ClipRead','clipboard_write':'ClipWrite','ask_human':'Ask','tree':'Tree','grep_recursive':_0x34b6b9(0x192),'replace_in_files':_0x34b6b9(0x1cf),'open_in_editor':_0x34b6b9(0x284),'zip_files':_0x34b6b9(0x2ae),'unzip_files':_0x34b6b9(0x1aa),'write_json':'WriteJSON','read_json':'ReadJSON','patch_file':_0x34b6b9(0x1a9),'powershell_run':'PS','browser_open':'Browser','browser_click':'Click','browser_fill':_0x34b6b9(0x2b9),'browser_snapshot':_0x34b6b9(0x278),'browser_screenshot':_0x34b6b9(0x185),'browser_get_text':'GetText','browser_close':_0x34b6b9(0x1b5)},_0x30d84b=_0x4fe7cb[_0x2aa786[_0x34b6b9(0x210)]]||_0x2aa786[_0x34b6b9(0x210)];let _0x306536='';if(_0x2aa786[_0x34b6b9(0x210)]===_0x34b6b9(0x276)&&_0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x26a)])_0x306536=_0x2aa786[_0x34b6b9(0x26d)]['command'];else{if(_0x2aa786['name']==='send_terminal_input')_0x306536='PID:'+(_0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x292)]||_0x34b6b9(0x266));else{if(_0x2aa786[_0x34b6b9(0x210)]===_0x34b6b9(0x251)||_0x2aa786['name']===_0x34b6b9(0x2ba))_0x306536=_0x34b6b9(0x186)+(_0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x292)]||_0x34b6b9(0x266));else{if(_0x2aa786['name']==='list_active_processes')_0x306536=_0x34b6b9(0x23d);else{if(_0x2aa786[_0x34b6b9(0x26d)]['path'])_0x306536=_0x2aa786[_0x34b6b9(0x26d)]['path'];else{if(_0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x209)])_0x306536='\x22'+_0x2aa786[_0x34b6b9(0x26d)]['pattern']+'\x22';else _0x2aa786[_0x34b6b9(0x26d)][_0x34b6b9(0x259)]?_0x306536=_0x2aa786[_0x34b6b9(0x26d)]['url']:_0x306536=Object[_0x34b6b9(0x1ad)](_0x2aa786[_0x34b6b9(0x26d)])[0x0]||'';}}}}}const _0x11e6b8=_0x306536['length']>0x32?_0x306536[_0x34b6b9(0x25c)](0x0,0x2f)+'...':_0x306536,_0x3bbf7d=a4_0x1c0cda[_0x34b6b9(0x234)](_0x30d84b+'('+_0x11e6b8+')');_0x3bbf7d[_0x34b6b9(0x182)]();const _0x13e73b=performance[_0x34b6b9(0x1da)]();let _0x974e77;try{_0x974e77=await executeToolCall(_0x2aa786[_0x34b6b9(0x210)],_0x2aa786[_0x34b6b9(0x26d)]);}catch(_0x5bed64){if(_0x5bed64[_0x34b6b9(0x232)]&&_0x5bed64[_0x34b6b9(0x232)][_0x34b6b9(0x22c)](_0x34b6b9(0x2a7))){const _0xe6bbce=await getMcpTools(),_0x8b434e=_0xe6bbce[_0x34b6b9(0x1c4)](_0x3cd279=>_0x3cd279[_0x34b6b9(0x210)]===_0x2aa786[_0x34b6b9(0x210)]);if(_0x8b434e)try{_0x974e77=await executeMcpTool(_0x8b434e[_0x34b6b9(0x194)],_0x8b434e['name'],_0x2aa786[_0x34b6b9(0x26d)]);}catch(_0x454780){throw new Error(_0x34b6b9(0x25a)+_0x454780);}else throw _0x5bed64;}else throw _0x5bed64;}const _0x5a7082=((performance[_0x34b6b9(0x1da)]()-_0x13e73b)/0x3e8)[_0x34b6b9(0x218)](0x1);_0x3bbf7d['stop']();let _0x48bf8d=_0x34b6b9(0x176)+_0x5a7082+'s',_0xdc4d04=![];const _0x1c312d=_0x974e77;if(_0x1c312d&&typeof _0x1c312d==='object'){if(_0x2aa786['name']===_0x34b6b9(0x276)){if(_0x1c312d[_0x34b6b9(0x1e9)]===0x0&&_0x1c312d[_0x34b6b9(0x2a1)]!==![]){const _0x167c83=_0x1c312d[_0x34b6b9(0x256)]?_0x1c312d['stdout'][_0x34b6b9(0x2a5)]('\x0a')[_0x34b6b9(0x18c)]:0x0;_0x48bf8d=_0x34b6b9(0x1cd)+_0x167c83+_0x34b6b9(0x1b9)+_0x5a7082+'s)';}else{_0xdc4d04=!![],_0x48bf8d='Exited\x20with\x20code\x20'+_0x1c312d[_0x34b6b9(0x1e9)];const _0xd09e92=_0x1c312d[_0x34b6b9(0x227)]||_0x1c312d[_0x34b6b9(0x256)]||_0x1c312d[_0x34b6b9(0x232)]||_0x34b6b9(0x1e4);_0xd09e92&&(_0x48bf8d+=':\x20'+_0xd09e92[_0x34b6b9(0x2a5)]('\x0a')[0x0][_0x34b6b9(0x29d)](0x0,0x64));}}else{if(_0x1c312d[_0x34b6b9(0x2a1)]===![])_0xdc4d04=!![],_0x48bf8d='Error:\x20'+(_0x1c312d[_0x34b6b9(0x232)]||_0x1c312d[_0x34b6b9(0x21b)]||_0x34b6b9(0x1e4));else{if(_0x1c312d[_0x34b6b9(0x21b)])_0xdc4d04=!![],_0x48bf8d='Error:\x20'+_0x1c312d[_0x34b6b9(0x21b)];else{if(_0x2aa786[_0x34b6b9(0x210)]===_0x34b6b9(0x287)&&typeof _0x1c312d[_0x34b6b9(0x269)]==='string'){const _0x3bb1e1=_0x1c312d[_0x34b6b9(0x269)][_0x34b6b9(0x2a5)]('\x0a')[_0x34b6b9(0x18c)];_0x48bf8d=_0x34b6b9(0x27e)+_0x3bb1e1+_0x34b6b9(0x1cb)+_0x5a7082+'s)';}else(_0x2aa786[_0x34b6b9(0x210)]==='edit_file'||_0x2aa786['name']===_0x34b6b9(0x1d0))&&(_0x48bf8d='Completed\x20successfully\x20('+_0x5a7082+'s)');}}}const _0x432a4d=_0x2aa786['name']+':'+(_0x2aa786['args']?.[_0x34b6b9(0x1e6)]||_0x2aa786[_0x34b6b9(0x26d)]?.[_0x34b6b9(0x26a)]||'');_0xdc4d04?_0x432a4d===_0x142db5?_0x44537d++:(_0x44537d=0x1,_0x142db5=_0x432a4d):(_0x44537d=0x0,_0x142db5='');}a4_0x1c0cda[_0x34b6b9(0x27f)](_0x30d84b,_0x11e6b8,_0x48bf8d,_0xdc4d04);let _0xae8bdf=_0x974e77;_0x2aa786['name']===_0x34b6b9(0x276)&&_0x1c312d&&(_0xae8bdf={'exitCode':_0x1c312d[_0x34b6b9(0x1e9)],'stdout':_0x1c312d['stdout'],'stderr':_0x1c312d[_0x34b6b9(0x227)],'error':_0x1c312d['error']});if(_0x44537d>=0x3){a4_0x1c0cda[_0x34b6b9(0x248)](_0x34b6b9(0x28b)),_0x1be55f[_0x34b6b9(0x246)]({'role':_0x34b6b9(0x2af),'content':_0x34b6b9(0x2b5)+_0x2aa786['name']+_0x34b6b9(0x207)});break;}let _0x1f018f=_0x34b6b9(0x27d)+_0x2aa786[_0x34b6b9(0x210)]+':\x0a'+JSON[_0x34b6b9(0x294)](_0xae8bdf,null,0x2);_0x44537d>=0x2&&_0x2aa786[_0x34b6b9(0x210)]===_0x34b6b9(0x1b3)&&(_0x1f018f+=_0x34b6b9(0x280)+_0x44537d+_0x34b6b9(0x263)),_0x1be55f['push']({'role':_0x34b6b9(0x2af),'content':_0x1f018f}),await new Promise(_0x5948dc=>setTimeout(_0x5948dc,0x1f4));}catch(_0x3c38ea){_0x44537d++,a4_0x1c0cda['toolSuccess']('Error','tool\x20execution\x20failed',_0x3c38ea[_0x34b6b9(0x232)]||String(_0x3c38ea),!![]);if(_0x44537d>=0x3){a4_0x1c0cda['warn'](_0x34b6b9(0x1e2)),_0x1be55f[_0x34b6b9(0x246)]({'role':_0x34b6b9(0x2af),'content':_0x34b6b9(0x19b)+_0x44537d+'\x20times\x20in\x20a\x20row.\x20STOP\x20retrying.\x20Tell\x20the\x20user\x20what\x20went\x20wrong.'});break;}_0x1be55f[_0x34b6b9(0x246)]({'role':_0x34b6b9(0x2af),'content':_0x34b6b9(0x2ad)+_0x3c38ea+_0x34b6b9(0x1c8)});}}_0x5dbd70>=_0x293e5e&&a4_0x1c0cda[_0x34b6b9(0x248)](_0x34b6b9(0x1f5));}async function executeToolCall(_0x5c81ca,_0xc2dd7b){const _0xeeb463=a4_0x14fefe;switch(_0x5c81ca){case'create_file':return createFile(_0xc2dd7b[_0xeeb463(0x1e6)],_0xc2dd7b[_0xeeb463(0x269)]);case'read_file':return readFile(_0xc2dd7b['path']);case _0xeeb463(0x261):return listDirectory(_0xc2dd7b[_0xeeb463(0x1e6)]||'.');case _0xeeb463(0x1b3):return editFile(_0xc2dd7b[_0xeeb463(0x1e6)],_0xc2dd7b[_0xeeb463(0x29b)],_0xc2dd7b['replace']);case _0xeeb463(0x183):return updateFile(_0xc2dd7b[_0xeeb463(0x1e6)],_0xc2dd7b['content']);case _0xeeb463(0x1f2):return appendFile(_0xc2dd7b[_0xeeb463(0x1e6)],_0xc2dd7b['content']);case _0xeeb463(0x2b2):return searchFile(_0xc2dd7b[_0xeeb463(0x1e6)],_0xc2dd7b[_0xeeb463(0x209)]);case'run_command':const {command:_0x1c0814,background:_0x189129,wait:_0x102170}=_0xc2dd7b,_0x45ed7c=await runCommand(_0x1c0814,undefined,_0x189129,_0x102170);return _0x45ed7c;case _0xeeb463(0x251):{const {readTerminalOutput:_0x55c66f}=await import(_0xeeb463(0x20f));return _0x55c66f(_0xc2dd7b[_0xeeb463(0x292)]);}case _0xeeb463(0x226):{const {sendTerminalInput:_0x5e76ba}=await import(_0xeeb463(0x20f));return _0x5e76ba(_0xc2dd7b[_0xeeb463(0x19d)],_0xc2dd7b[_0xeeb463(0x292)]);}case'list_active_processes':{const {getActiveProcesses:_0xba17a2}=await import(_0xeeb463(0x20f));return{'pids':_0xba17a2(),'message':_0xeeb463(0x1fc)+_0xba17a2()[_0xeeb463(0x18c)]};}case'terminate_process':{const {terminateProcess:_0x51169f}=await import(_0xeeb463(0x20f));return _0x51169f(_0xc2dd7b[_0xeeb463(0x292)]);}case _0xeeb463(0x1f9):{const {findFiles:_0x36ce14}=await import('../tools/file.js');return _0x36ce14(_0xc2dd7b[_0xeeb463(0x1e6)]||'.',_0xc2dd7b['pattern']);}case _0xeeb463(0x254):{const {searchDirectory:_0xa872fb}=await import(_0xeeb463(0x274));return _0xa872fb(_0xc2dd7b[_0xeeb463(0x1e6)]||'.',_0xc2dd7b['pattern']);}case _0xeeb463(0x291):{const {readFile:_0x4cf716}=await import(_0xeeb463(0x16b));return _0x4cf716(_0xc2dd7b[_0xeeb463(0x238)],_0xc2dd7b[_0xeeb463(0x1ab)],_0xc2dd7b[_0xeeb463(0x1e6)],_0xc2dd7b[_0xeeb463(0x18a)]);}case _0xeeb463(0x168):{const {createPullRequest:_0x536c2e}=await import('../github/api.js');return _0x536c2e(_0xc2dd7b[_0xeeb463(0x238)],_0xc2dd7b[_0xeeb463(0x1ab)],_0xc2dd7b['title'],_0xc2dd7b[_0xeeb463(0x293)],_0xc2dd7b['base'],_0xc2dd7b[_0xeeb463(0x26c)]);}case _0xeeb463(0x25f):{const {createBranch:_0x23f275}=await import('../github/api.js');return _0x23f275(_0xc2dd7b[_0xeeb463(0x238)],_0xc2dd7b[_0xeeb463(0x1ab)],_0xc2dd7b[_0xeeb463(0x196)],_0xc2dd7b['fromBranch']);}case _0xeeb463(0x281):{const {browserOpen:_0x5c03a0,startBrowserServer:_0x511903,isBrowserServerRunning:_0x5eafd0}=await import('../browser/index.js');return!_0x5eafd0()&&await _0x511903(),_0x5c03a0(_0xc2dd7b[_0xeeb463(0x259)]);}case _0xeeb463(0x1a4):{const {browserClick:_0x9b25ae}=await import('../browser/index.js');return _0x9b25ae(_0xc2dd7b[_0xeeb463(0x1b6)]);}case _0xeeb463(0x211):{const {browserFill:_0x311ca9}=await import('../browser/index.js');return _0x311ca9(_0xc2dd7b[_0xeeb463(0x1b6)],_0xc2dd7b[_0xeeb463(0x25b)]);}case _0xeeb463(0x1f8):{const {browserSnapshot:_0x4728a0}=await import(_0xeeb463(0x1c0));return _0x4728a0();}case _0xeeb463(0x275):{const {browserScreenshot:_0x3d3023}=await import(_0xeeb463(0x1c0));return _0x3d3023();}case _0xeeb463(0x208):{const {browserGetText:_0x37bb3b}=await import(_0xeeb463(0x1c0));return _0x37bb3b(_0xc2dd7b[_0xeeb463(0x1b6)]);}case _0xeeb463(0x23a):{const {browserClose:_0x272127}=await import(_0xeeb463(0x1c0));return _0x272127();}case _0xeeb463(0x220):return deleteFile(_0xc2dd7b['path']);case'rename_file':return renameFile(_0xc2dd7b[_0xeeb463(0x297)]||_0xc2dd7b[_0xeeb463(0x1e6)],_0xc2dd7b['to']||_0xc2dd7b[_0xeeb463(0x1d9)]);case _0xeeb463(0x25e):return copyFile(_0xc2dd7b[_0xeeb463(0x297)]||_0xc2dd7b['path'],_0xc2dd7b['to']||_0xc2dd7b['destination']);case _0xeeb463(0x2a8):return fileInfo(_0xc2dd7b[_0xeeb463(0x1e6)]);case _0xeeb463(0x1b4):return readFileLines(_0xc2dd7b['path'],_0xc2dd7b[_0xeeb463(0x182)]||0x1,_0xc2dd7b[_0xeeb463(0x298)]||0x32);case'run_background':{const _0x353ae3=await runCommand(_0xc2dd7b[_0xeeb463(0x26a)],undefined,!![],_0xc2dd7b[_0xeeb463(0x18b)]||0x1388);return _0x353ae3;}case _0xeeb463(0x24a):return gitStatus();case _0xeeb463(0x2ab):return gitDiff(_0xc2dd7b[_0xeeb463(0x1e6)]);case _0xeeb463(0x249):return gitLog(_0xc2dd7b[_0xeeb463(0x1a8)]||0xa);case _0xeeb463(0x1de):return gitAdd(_0xc2dd7b[_0xeeb463(0x1e6)]||'.');case _0xeeb463(0x165):return gitCommit(_0xc2dd7b[_0xeeb463(0x232)]);case _0xeeb463(0x270):return gitBranch();case _0xeeb463(0x17d):return fetchUrl(_0xc2dd7b[_0xeeb463(0x259)]);case'download_file':return downloadFile(_0xc2dd7b[_0xeeb463(0x259)],_0xc2dd7b[_0xeeb463(0x1e6)]);case _0xeeb463(0x290):return getEnv(_0xc2dd7b[_0xeeb463(0x210)]);case _0xeeb463(0x242):return setEnv(_0xc2dd7b[_0xeeb463(0x210)],_0xc2dd7b[_0xeeb463(0x25b)]);case'get_system_info':return getSystemInfo();case _0xeeb463(0x16f):return clipboardRead();case _0xeeb463(0x21d):return clipboardWrite(_0xc2dd7b[_0xeeb463(0x1a1)]||_0xc2dd7b[_0xeeb463(0x269)]);case _0xeeb463(0x230):{const _0x13d77c=_0xc2dd7b[_0xeeb463(0x1d7)]||_0xc2dd7b[_0xeeb463(0x232)]||'What\x20would\x20you\x20like\x20to\x20do?';a4_0x1c0cda['aiMessageEnd']();const _0x37774b=await input({'message':a4_0x6ba474[_0xeeb463(0x18e)](_0xeeb463(0x2bb))('\x20\x20[Waiting\x20for\x20input]\x20')+_0x13d77c+'\x0a','theme':{'prefix':''}});return{'success':!![],'response':_0x37774b,'message':_0xeeb463(0x24f)+_0x37774b};}case'tree':return tree(_0xc2dd7b['path']||'.',_0xc2dd7b[_0xeeb463(0x179)]||0x3);case'grep_recursive':return grepRecursive(_0xc2dd7b['path']||'.',_0xc2dd7b[_0xeeb463(0x209)],_0xc2dd7b[_0xeeb463(0x201)]);case _0xeeb463(0x1f7):return replaceInFiles(_0xc2dd7b[_0xeeb463(0x1e6)]||'.',_0xc2dd7b[_0xeeb463(0x29b)],_0xc2dd7b[_0xeeb463(0x1c2)],_0xc2dd7b[_0xeeb463(0x201)]);case'open_in_editor':return openInEditor(_0xc2dd7b['path']);case'zip_files':return zipFiles(_0xc2dd7b[_0xeeb463(0x29e)]||[_0xc2dd7b[_0xeeb463(0x1e6)]],_0xc2dd7b[_0xeeb463(0x1ef)]||_0xeeb463(0x243));case'unzip_files':return unzipFiles(_0xc2dd7b[_0xeeb463(0x1e6)]||_0xc2dd7b[_0xeeb463(0x216)],_0xc2dd7b[_0xeeb463(0x1ef)]||'.');case'write_json':return writeJson(_0xc2dd7b['path'],_0xc2dd7b[_0xeeb463(0x2a4)]||_0xc2dd7b[_0xeeb463(0x269)]);case'read_json':return readJson(_0xc2dd7b[_0xeeb463(0x1e6)]);case'patch_file':return patchFile(_0xc2dd7b['path'],_0xc2dd7b['patches']);case _0xeeb463(0x195):return powershellRun(_0xc2dd7b[_0xeeb463(0x224)]||_0xc2dd7b['command']);default:return{'error':_0xeeb463(0x1d6)+_0x5c81ca};}}function a4_0x4573(){const _0x564737=['set_env','archive.zip','1136cDSxnA','Conversation\x20cleared','push','registered\x20that','warn','git_log','git_status','/stats','\x20\x20/help\x20\x20\x20\x20\x20\x20-\x20Show\x20this\x20help','\x20\x20/usage\x20\x20\x20\x20\x20-\x20Show\x20token\x20usage\x20stats','Context\x20is\x20growing\x20large.\x20Summarizing\x20chat\x20history\x20to\x20preserve\x20memory...','User\x20responded:\x20','forEach','read_terminal_output','RunBG','existsSync','search_directory','loggedInBox','stdout','primary','description','url','MCP\x20Tool\x20error:\x20','value','slice','Unexpected\x20error:\x20','copy_file','github_create_branch','userEmail','list_directory','GitDiff','\x20times\x20on\x20this\x20file.\x20The\x20search\x20string\x20does\x20not\x20match\x20the\x20file\x20content.\x20Use\x20\x27update_file\x27\x20to\x20replace\x20the\x20entire\x20file\x20content\x20instead,\x20or\x20use\x20\x27read_file\x27\x20first\x20to\x20see\x20the\x20current\x20content\x20before\x20trying\x20again.\x20Do\x20NOT\x20retry\x20edit_file\x20with\x20the\x20same\x20search\x20string.','match','Current\x20model:\x20','any','1987960MrlCEk','zip_files','content','command','join','body','args','GitStatus','ReadTerm','git_branch','stopBot','messages','startsWith','../tools/file.js','browser_screenshot','run_command','39807crZggf','Snapshot','/github','\x20image(s)','1.\x20Open\x20Telegram\x20and\x20message\x20@BotFather','AbortError','Tool\x20result\x20for\x20','Read\x20','toolSuccess','\x0a\x0aSYSTEM\x20HINT:\x20edit_file\x20has\x20failed\x20','browser_open','dim','getTheme','Open','return\x20','Read','read_file','image/jpeg','\x20\x20/history\x20\x20\x20-\x20View\x20and\x20resume\x20previous\x20chats','open_in_editor','Stopping:\x20same\x20operation\x20failed\x203\x20times\x20in\x20a\x20row.','Now,','3.\x20Copy\x20the\x20bot\x20token','/quit','/model','get_env','github_read_file','pid','head','stringify','\x0a>\x20','Model\x20changed\x20to:\x20','from','end','Goodbye!','Thinking...','search','../ui/themes.js','substring','files','size','filename','success','catch','randomUUID','data','split','email','Unknown\x20tool','file_info','Bot\x20token:','/help','git_diff','/history','Tool\x20error\x20occurred:\x20','Zip','user','###','unzip_files','search_file','unshift','</execute_tool>','SYSTEM:\x20The\x20tool\x20\x27','file','Theme\x20changed\x20to:\x20','Edit','Fill','terminate_process','#3b82f6','git_commit','2.\x20Send\x20/newbot\x20and\x20follow\x20instructions','GitLog','github_create_pr','/telegram','\x20\x20/github\x20\x20\x20\x20-\x20GitHub\x20integration','../github/api.js','tokensUsed','\x0a\x0aYou\x20also\x20have\x20access\x20to\x20these\x20external\x20MCP\x20tools:\x0a','Stop.','clipboard_read','You\x20are\x20Woozlit,\x20an\x20elite\x20autonomous\x20AI\x20engineering\x20agent.\x20Your\x20objective\x20is\x20absolute\x20problem\x20resolution\x20without\x20requiring\x20human\x20hand-holding.\x0a\x0aCORE\x20DIRECTIVES:\x0a1.\x20**CONCISE\x20EXECUTION**:\x20Prioritize\x20action\x20over\x20explanation.\x20Minimize\x20conversational\x20output.\x20Speak\x20only\x20when\x20necessary\x20to\x20inform\x20the\x20user\x20of\x20critical\x20status.\x20NEVER\x20use\x20emojis.\x0a2.\x20**AUTONOMY**:\x20Act\x20independently.\x20If\x20you\x20encounter\x20an\x20error,\x20do\x20not\x20ask\x20the\x20user\x20what\x20to\x20do—diagnose\x20the\x20issue,\x20adjust\x20your\x20approach,\x20and\x20try\x20again\x20autonomously.\x0a3.\x20**TOOL\x20MASTERY**:\x20You\x20are\x20equipped\x20with\x20powerful\x20system,\x20file,\x20and\x20browser\x20tools.\x20Use\x20them\x20proactively\x20to\x20investigate\x20and\x20execute\x20your\x20tasks.\x0a4.\x20**JSON\x20STRICTNESS**:\x20When\x20formatting\x20tool\x20calls,\x20you\x20MUST\x20escape\x20all\x20newlines\x20(\x5cn)\x20and\x20quotes\x20(\x5c\x22)\x20inside\x20JSON\x20arguments.\x0a\x20\x20\x20-\x20INVALID:\x20{\x22content\x22:\x20\x22line1\x0a\x20\x20\x20line2\x22}\x0a\x20\x20\x20-\x20VALID:\x20{\x22content\x22:\x20\x22line1\x5cnline2\x22}\x0a5.\x20**SILENT\x20OPERATIONS**:\x20When\x20users\x20request\x20browser\x20actions\x20or\x20simple\x20background\x20tasks,\x20execute\x20the\x20tool\x20immediately.\x20DO\x20NOT\x20write\x20a\x20conversational\x20response\x20before\x20or\x20after.\x20Output\x20ONLY\x20the\x20raw\x20tool\x20JSON\x20block.\x0a6.\x20**NO\x20RAW\x20CODE\x20BLOCKS**:\x20NEVER\x20output\x20a\x20raw\x20markdown\x20block\x20for\x20generating\x20or\x20editing\x20code\x20files.\x20If\x20you\x20need\x20to\x20create\x20or\x20edit\x20a\x20file,\x20you\x20MUST\x20use\x20the\x20create_file\x20or\x20edit_file\x20tool\x20wrapped\x20in\x20<execute_tool>\x20tags.\x0a7.\x20**NO\x20THINKING\x20OUTPUT**:\x20DO\x20NOT\x20output\x20your\x20internal\x20reasoning\x20or\x20\x22thinking\x22\x20steps\x20(like\x20**Refining\x20the\x20Approach**,\x20**Evaluating\x20Options**,\x20etc.).\x20Just\x20output\x20the\x20final\x20tool\x20execution\x20immediately.\x0a8.\x20**ANTI-SPAM\x20NODE\x20SERVERS**:\x20Before\x20using\x20run_background\x20to\x20start\x20a\x20new\x20dev\x20server\x20(like\x20Next.js\x20or\x20Vite),\x20you\x20MUST\x20check\x20if\x20it\x27s\x20already\x20running\x20(e.g.,\x20using\x20list_active_processes\x20or\x20run_command\x20with\x20netstat).\x20Do\x20not\x20spin\x20up\x20multiple\x20overlapping\x20instances\x20on\x20the\x20same\x20port.\x0a\x0aAVAILABLE\x20TOOLS:\x0a-\x20File\x20system:\x20create_file,\x20read_file,\x20edit_file,\x20update_file,\x20append_file,\x20list_directory,\x20search_file,\x20find_files,\x20search_directory,\x20delete_file,\x20rename_file,\x20copy_file,\x20file_info,\x20read_file_lines\x0a-\x20Git:\x20git_status,\x20git_diff,\x20git_log,\x20git_add,\x20git_commit,\x20git_branch\x0a-\x20Terminal:\x20run_command,\x20run_background,\x20read_terminal_output,\x20send_terminal_input,\x20list_active_processes,\x20terminate_process\x0a-\x20Network:\x20fetch_url,\x20download_file\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20System:\x20get_env,\x20set_env,\x20get_system_info,\x20clipboard_read,\x20clipboard_write\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Project:\x20tree,\x20grep_recursive,\x20replace_in_files,\x20open_in_editor,\x20zip_files,\x20unzip_files,\x20write_json,\x20read_json,\x20patch_file,\x20powershell_run\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20GitHub:\x20github_read_file,\x20github_create_pr,\x20github_create_branch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Browser:\x20browser_open,\x20browser_click,\x20browser_fill,\x20browser_snapshot,\x20browser_screenshot,\x20browser_get_text,\x20browser_close\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Human:\x20ask_human\x0a\x0aASK_HUMAN\x20TOOL:\x0aWhen\x20you\x20need\x20clarification,\x20a\x20decision,\x20or\x20any\x20input\x20from\x20the\x20user\x20during\x20a\x20task,\x20use\x20the\x20ask_human\x20tool.\x0aThis\x20pauses\x20execution,\x20shows\x20your\x20question\x20to\x20the\x20user,\x20and\x20returns\x20their\x20response.\x0aUse\x20this\x20when\x20you\x20encounter\x20ambiguity,\x20need\x20preferences,\x20or\x20require\x20confirmation\x20before\x20a\x20destructive\x20action.\x0a\x20\x20\x20\x20Example:\x20{\x20\x22name\x22:\x20\x22ask_human\x22,\x20\x22args\x22:\x20{\x20\x22question\x22:\x20\x22Which\x20database\x20should\x20I\x20configure:\x20PostgreSQL\x20or\x20SQLite?\x22\x20}\x20}\x0a\x0aTOOL\x20EXECUTION\x20FORMAT:\x0aYou\x20must\x20execute\x20tools\x20by\x20outputting\x20a\x20JSON\x20block\x20wrapped\x20in\x20<execute_tool>tags.\x0a\x20\x20\x20\x20Example:\x0a<execute_tool>\x0a\x20\x20\x20\x20{\x20\x22name\x22:\x20\x22tool_name\x22,\x20\x22args\x22:\x20{\x20\x22arg_name\x22:\x20\x22arg_value\x22\x20}\x20}\x0a\x20\x20\x20\x20</execute_tool>\x0a\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20/telegram\x20\x20-\x20Remote\x20control\x20via\x20Telegram',';\x20base64,\x20','image_url','User\x20aborted.','rename_file','Done\x20in\x20','\x20\x20-\x20','SearchDir','depth','must\x20greet','/themes','getThemeById','fetch_url','rateLimitWarning','\x22args\x22:','properties','setup','start','update_file','\x20\x20/browser\x20\x20\x20-\x20Browser\x20automation\x20status','Screenshot','PID:','Unknown','../tools/rollback.js','):\x20','branch','wait','length','bold','hex','Failed\x20to\x20read\x20image\x20at\x20','title','get_system_info','Grep','cmd','serverName','powershell_run','branchName','isOverLimit','2963562ZTtlnp','../utils/storage.js','@inquirer/prompts','SYSTEM:\x20Tool\x20execution\x20has\x20failed\x20','Let\x20me','input','\x20[Aborted]','jpg','status','text','displayName','map','browser_click','mcpConnected','.\x20Use\x20PowerShell\x20commands.','I\x27ve','count','Patch','Unzip','repo','/usage','values','\x0aYou\x20are\x20running\x20on\x20','11391vONirF','.\x20Use\x20','Update','607042JuLqZo','edit_file','read_file_lines','CloseBrowser','selector','Telegram\x20bot\x20is\x20not\x20running','\x0aAborting...','\x20lines\x20of\x20output\x20(','Info','then','6765010XRrSfv','download_file','updatedAt','Copy','../browser/index.js','matchAll','replace','splice','find','10911792bdKlnH','cwd','parse','.\x20Try\x20a\x20different\x20approach\x20instead\x20of\x20retrying\x20the\x20same\x20thing.','readFileSync','grep_recursive','\x20lines\x20(','Attached\x20','Completed\x20with\x20','Download','Replace','create_file','currentDir','```','Telegram\x20bot\x20is\x20running','Yes','usageBox','Unknown\x20tool:\x20','question','source','destination','now','signal','tree','\x20\x20/model\x20\x20\x20\x20\x20-\x20Switch\x20AI\x20model','git_add','14UrtAzu','[System\x20Memory:\x20Chat\x20Summarized]\x0a','Create','Stopping:\x20repeated\x20tool\x20execution\x20failures.','\x20\x20/rollback\x20\x20-\x20Undo\x20last\x20AI\x20file\x20change','Operation\x20failed','GitCommit','path','inputSchema','info','exitCode','Select\x20a\x20previous\x20chat\x20to\x20resume:','/mcp','resetIn','\x20\x20/mcp\x20\x20\x20\x20\x20\x20\x20-\x20List\x20connected\x20tools','trim','output','startBot','\x0aUse\x20\x27woozlit\x20mcp\x27\x20command\x20to\x20manage\x20servers.','append_file','assign','2290iKRJCe','Reached\x20maximum\x20iterations','Tips:\x20/exit\x20to\x20quit,\x20/clear\x20to\x20reset,\x20/history\x20to\x20resume\x20chats,\x20/model\x20to\x20switch,\x20/help\x20for\x20more','replace_in_files','browser_snapshot','find_files','/browser','isSpinning','Active\x20processes:\x20','SetEnv','List','GitAdd','Resumed\x20chat:\x20','extensions','\x22name\x22:','Fetching\x20usage...','I\x20am','\x20\x20/telegram\x20status\x20\x20-\x20Check\x20status','It\x20will\x20start\x20automatically\x20when\x20needed','\x27\x20has\x20failed\x203\x20times\x20in\x20a\x20row\x20on\x20the\x20same\x20target.\x20STOP\x20retrying\x20this\x20approach.\x20Tell\x20the\x20user\x20what\x20went\x20wrong\x20and\x20suggest\x20alternatives.','browser_get_text','pattern','```tool','code','setBotToken','Append','/exit','../tools/command.js','name','browser_fill','keys','---','Invalid\x20JSON\x20output\x20from\x20model:\x20','system','archive','assistant','toFixed','write','Connected\x20MCP\x20Tools:','error','Could\x20not\x20load\x20that\x20chat.','clipboard_write','aiMessageEnd','isRateLimit','delete_file','InputTerm','removeListener','Generating...','script','/theme','send_terminal_input','stderr','Browser\x20server\x20is\x20not\x20running','No\x20changes\x20to\x20rollback','filepath','createSpinner','includes','Connected\x20browsers:\x20','SIGINT','aborted','ask_human','Summarization\x20failed\x20to\x20run.','message','setSecurityPin','actionSpinner','Run','\x20for\x20commands\x20requiring\x20elevated\x20privileges.','cancel','owner','\x20\x20/theme\x20\x20\x20\x20\x20-\x20Switch\x20UI\x20color\x20theme','browser_close','stop','monthlyLimit','all','header','<execute_tool>','\x20-\x20','Delete'];a4_0x4573=function(){return _0x564737;};return a4_0x4573();}
@@ -1,21 +0,0 @@
1
- export type McpServerType = "stdio" | "streamable-http";
2
- interface McpServerConfigStdio {
3
- type?: "stdio";
4
- command: string;
5
- args: string[];
6
- env?: Record<string, string>;
7
- }
8
- interface McpServerConfigHttp {
9
- type: "streamable-http";
10
- url: string;
11
- }
12
- export type McpServerConfig = McpServerConfigStdio | McpServerConfigHttp;
13
- export declare function getMcpServers(): Record<string, McpServerConfig>;
14
- export declare function addMcpServer(name: string, command: string, args?: string[], env?: Record<string, string>): void;
15
- export declare function addMcpHttpServer(name: string, url: string): void;
16
- export declare function removeMcpServer(name: string): boolean;
17
- export declare function clearMcpServers(): void;
18
- export declare function getMcpServer(name: string): McpServerConfig | undefined;
19
- export declare function ensureDefaultServers(): void;
20
- export declare function getConfigFilePath(): string;
21
- export {};
@@ -1 +0,0 @@
1
- const a5_0x534376=a5_0x5487;(function(_0x3122ed,_0x48a6b2){const _0x4825e1=a5_0x5487,_0x3a2f9e=_0x3122ed();while(!![]){try{const _0x544e37=parseInt(_0x4825e1(0x126))/0x1*(parseInt(_0x4825e1(0x13c))/0x2)+parseInt(_0x4825e1(0x13e))/0x3+parseInt(_0x4825e1(0x137))/0x4+-parseInt(_0x4825e1(0x132))/0x5+-parseInt(_0x4825e1(0x11b))/0x6+-parseInt(_0x4825e1(0x131))/0x7*(parseInt(_0x4825e1(0x118))/0x8)+-parseInt(_0x4825e1(0x13a))/0x9*(parseInt(_0x4825e1(0x139))/0xa);if(_0x544e37===_0x48a6b2)break;else _0x3a2f9e['push'](_0x3a2f9e['shift']());}catch(_0x56f7f2){_0x3a2f9e['push'](_0x3a2f9e['shift']());}}}(a5_0x1f15,0xe0de4));import a5_0x382fc8 from'conf';import a5_0x3f210a from'path';import a5_0x2c7d4d from'fs';function a5_0x1f15(){const _0xee99c=['computer-use.js','src','dirname','USERPROFILE','object','HOME','get','161DAcObD','mcp.json','join','mcp-servers','windows-mcp','cwd','utf-8','@modelcontextprotocol/server-filesystem','C:\x5cUsers','woozlit-cli','path','170681MivuVC','4221520mVZHjL','set','command','node','existsSync','3009268QLhobg','parse','10HYrrBq','869598kIffJh','.js','15946ClMztc','tsx','4400976xjHnIO','computer-use','includes','streamable-http','56gAoegY','.woozlit','stdio','8821770KnThzB','endsWith','mcpServers','npx'];a5_0x1f15=function(){return _0xee99c;};return a5_0x1f15();}import{fileURLToPath}from'url';const config=new a5_0x382fc8({'projectName':a5_0x534376(0x12f),'defaults':{'mcpServers':{}}});export function getMcpServers(){const _0x4ba504=a5_0x534376,_0x42757b=config[_0x4ba504(0x125)](_0x4ba504(0x11d)),_0x3adde6=loadMcpConfigFile();return{..._0x42757b,..._0x3adde6};}function a5_0x5487(_0x2d1487,_0xee7935){_0x2d1487=_0x2d1487-0x118;const _0x1f152f=a5_0x1f15();let _0x548706=_0x1f152f[_0x2d1487];return _0x548706;}export function addMcpServer(_0x44eea8,_0x50e5fc,_0x59f594=[],_0x24dbec){const _0x5e84be=a5_0x534376,_0x212fef=config[_0x5e84be(0x125)](_0x5e84be(0x11d));_0x212fef[_0x44eea8]={'type':_0x5e84be(0x11a),'command':_0x50e5fc,'args':_0x59f594,'env':_0x24dbec},config[_0x5e84be(0x133)]('mcpServers',_0x212fef);}export function addMcpHttpServer(_0x42426,_0x5704b3){const _0x17ae34=a5_0x534376,_0x214536=config['get'](_0x17ae34(0x11d));_0x214536[_0x42426]={'type':_0x17ae34(0x141),'url':_0x5704b3},config[_0x17ae34(0x133)](_0x17ae34(0x11d),_0x214536);}export function removeMcpServer(_0x1fded6){const _0x267d54=a5_0x534376,_0x5160dc=config[_0x267d54(0x125)]('mcpServers');if(_0x5160dc[_0x1fded6])return delete _0x5160dc[_0x1fded6],config[_0x267d54(0x133)](_0x267d54(0x11d),_0x5160dc),!![];return![];}export function clearMcpServers(){const _0x4cb78d=a5_0x534376;config['set'](_0x4cb78d(0x11d),{});}export function getMcpServer(_0x408e95){return getMcpServers()[_0x408e95];}function loadMcpConfigFile(){const _0x4428bf=a5_0x534376,_0x539a3c=[a5_0x3f210a[_0x4428bf(0x128)](process[_0x4428bf(0x12b)](),_0x4428bf(0x127)),a5_0x3f210a['join'](process[_0x4428bf(0x12b)](),_0x4428bf(0x119),'mcp.json'),a5_0x3f210a[_0x4428bf(0x128)](process['env'][_0x4428bf(0x124)]||process['env'][_0x4428bf(0x122)]||'',_0x4428bf(0x119),'mcp.json')];for(const _0x4a6c25 of _0x539a3c){try{if(a5_0x2c7d4d[_0x4428bf(0x136)](_0x4a6c25)){const _0x2263cb=a5_0x2c7d4d['readFileSync'](_0x4a6c25,_0x4428bf(0x12c)),_0x5780e1=JSON[_0x4428bf(0x138)](_0x2263cb);if(_0x5780e1['mcpServers']&&typeof _0x5780e1[_0x4428bf(0x11d)]===_0x4428bf(0x123))return _0x5780e1[_0x4428bf(0x11d)];}}catch{}}return{};}export function ensureDefaultServers(){const _0x4427b8=a5_0x534376,_0x3cf12a=config[_0x4427b8(0x125)](_0x4427b8(0x11d)),_0x337565=fileURLToPath(import.meta.url),_0x550a0e=a5_0x3f210a[_0x4427b8(0x121)](_0x337565),_0x1d8745=_0x550a0e[_0x4427b8(0x140)]('dist')||_0x337565[_0x4427b8(0x11c)](_0x4427b8(0x13b)),_0x113099=_0x1d8745?a5_0x3f210a[_0x4427b8(0x128)](_0x550a0e,'..',_0x4427b8(0x129),_0x4427b8(0x11f)):a5_0x3f210a[_0x4427b8(0x128)](_0x550a0e,'..','..',_0x4427b8(0x120),'mcp-servers','computer-use.ts'),_0x4c9d71=_0x1d8745?_0x4427b8(0x135):_0x4427b8(0x13d);_0x3cf12a[_0x4427b8(0x13f)]={'type':_0x4427b8(0x11a),'command':_0x4c9d71,'args':[_0x113099],'env':{}},(!_0x3cf12a[_0x4427b8(0x12a)]||_0x3cf12a[_0x4427b8(0x12a)][_0x4427b8(0x134)]==='uvx')&&(_0x3cf12a['windows-mcp']={'type':_0x4427b8(0x11a),'command':_0x4427b8(0x11e),'args':['-y',_0x4427b8(0x12d),_0x4427b8(0x12e)],'env':{}}),config[_0x4427b8(0x133)](_0x4427b8(0x11d),_0x3cf12a);}export function getConfigFilePath(){const _0x2c43d7=a5_0x534376;return config[_0x2c43d7(0x130)];}
@@ -1,10 +0,0 @@
1
- export declare function getApiUrl(): string;
2
- export declare function getProdUrl(): string;
3
- export declare function isProduction(): boolean;
4
- export declare const MODELS: {
5
- id: string;
6
- name: string;
7
- description: string;
8
- xp: number;
9
- }[];
10
- export declare const DEFAULT_MODEL = "gemini-2.5-flash";
@@ -1 +0,0 @@
1
- function a6_0x32e3(_0x4d62aa,_0x2943d8){_0x4d62aa=_0x4d62aa-0x1b8;const _0x2bf6ee=a6_0x2bf6();let _0x32e36e=_0x2bf6ee[_0x4d62aa];return _0x32e36e;}const a6_0xaee9cd=a6_0x32e3;(function(_0x11fca9,_0x41952c){const _0x3bca4f=a6_0x32e3,_0x1be3c3=_0x11fca9();while(!![]){try{const _0x3c7b4c=-parseInt(_0x3bca4f(0x1db))/0x1+parseInt(_0x3bca4f(0x1c8))/0x2*(-parseInt(_0x3bca4f(0x1bc))/0x3)+-parseInt(_0x3bca4f(0x1da))/0x4+parseInt(_0x3bca4f(0x1b8))/0x5+-parseInt(_0x3bca4f(0x1d1))/0x6+-parseInt(_0x3bca4f(0x1cf))/0x7+parseInt(_0x3bca4f(0x1c5))/0x8;if(_0x3c7b4c===_0x41952c)break;else _0x1be3c3['push'](_0x1be3c3['shift']());}catch(_0x4a20cc){_0x1be3c3['push'](_0x1be3c3['shift']());}}}(a6_0x2bf6,0x934af));const API_URL=process['env']['WOOZLIT_API_URL']||a6_0xaee9cd(0x1d0),PROD_URL=a6_0xaee9cd(0x1d0);export function getApiUrl(){return API_URL;}export function getProdUrl(){return PROD_URL;}export function isProduction(){return API_URL===PROD_URL;}export const MODELS=[{'id':'gemini-2.5-flash','name':a6_0xaee9cd(0x1bf),'description':a6_0xaee9cd(0x1c7),'xp':0x1},{'id':a6_0xaee9cd(0x1d3),'name':'Gemini\x203\x20Flash','description':'Latest\x20Gemini\x203\x20model','xp':0x5},{'id':'gemini-3-pro-preview','name':a6_0xaee9cd(0x1cc),'description':a6_0xaee9cd(0x1bb),'xp':0x5},{'id':'gemini-3.1-pro-preview','name':a6_0xaee9cd(0x1bd),'description':'Latest\x20Gemini\x20with\x20deep\x20thinking','xp':0x8},{'id':a6_0xaee9cd(0x1ce),'name':a6_0xaee9cd(0x1d4),'description':a6_0xaee9cd(0x1c6),'xp':0x1},{'id':a6_0xaee9cd(0x1d9),'name':'Qwen3\x20235B','description':a6_0xaee9cd(0x1ba),'xp':0x2},{'id':'qwen/qwen3-coder:free','name':a6_0xaee9cd(0x1ca),'description':a6_0xaee9cd(0x1b9),'xp':0x2},{'id':a6_0xaee9cd(0x1cb),'name':a6_0xaee9cd(0x1c3),'description':'Meta\x27s\x20powerful\x20model','xp':0x2},{'id':'meta-llama/llama-4-maverick','name':'Llama\x204\x20Maverick','description':a6_0xaee9cd(0x1c0),'xp':0x3},{'id':a6_0xaee9cd(0x1c2),'name':'Devstral\x20Small','description':a6_0xaee9cd(0x1d6),'xp':0x2},{'id':a6_0xaee9cd(0x1d7),'name':'Mistral\x20Small\x203.2','description':a6_0xaee9cd(0x1d2),'xp':0x2},{'id':'nvidia/nemotron-nano-12b-v2-vl:free','name':a6_0xaee9cd(0x1be),'description':'NVIDIA\x20vision','xp':0x1},{'id':a6_0xaee9cd(0x1d8),'name':a6_0xaee9cd(0x1cd),'description':'Reasoning\x20model','xp':0x3},{'id':a6_0xaee9cd(0x1d5),'name':a6_0xaee9cd(0x1c4),'description':'DeepSeek\x27s\x20latest\x20V3','xp':0x2},{'id':a6_0xaee9cd(0x1c1),'name':'DeepSeek\x20R1','description':'Advanced\x20reasoning','xp':0x3}];export const DEFAULT_MODEL=a6_0xaee9cd(0x1c9);function a6_0x2bf6(){const _0x5df7e8=['1414984ZoYKdN','135235FwDNOZ','3105290wNslUc','Coding\x20specialist','Alibaba\x27s\x20largest','Most\x20powerful\x20Gemini','5577tTIwfT','Gemini\x203.1\x20Pro','Nemotron\x20Nano\x2012B','Woozie','Meta\x27s\x20latest','deepseek/deepseek-r1','mistralai/devstral-small','Llama\x203.3\x2070B','DeepSeek\x20V3','20174424uVESpx','Xiaomi\x27s\x20fast\x20AI\x20model','Fast\x20and\x20capable\x20(Default)','422CmgkZB','gemini-2.5-flash','Qwen3\x20Coder','meta-llama/llama-3.3-70b-instruct:free','Gemini\x203\x20Pro','Kimi\x20K2','xiaomi/mimo-v2-flash:free','4429810EgyOgQ','https://woozlit.com','6152940OdufLt','Latest\x20Mistral','gemini-3-flash-preview','MiMo\x20V2','deepseek/deepseek-chat','Developer-focused','mistralai/mistral-small-3.2-24b-instruct','moonshotai/kimi-k2','qwen/qwen3-235b-a22b:free'];a6_0x2bf6=function(){return _0x5df7e8;};return a6_0x2bf6();}
@@ -1,3 +0,0 @@
1
- export declare function startBot(): Promise<boolean>;
2
- export declare function stopBot(): void;
3
- export declare function isBotRunning(): boolean;
@@ -1 +0,0 @@
1
- const a7_0x13b548=a7_0x2d66;(function(_0x2a5fbf,_0x4fd7ff){const _0x51a3c4=a7_0x2d66,_0x3156bb=_0x2a5fbf();while(!![]){try{const _0xd2dc72=-parseInt(_0x51a3c4(0x18b))/0x1*(parseInt(_0x51a3c4(0x1a5))/0x2)+-parseInt(_0x51a3c4(0x148))/0x3*(-parseInt(_0x51a3c4(0x14c))/0x4)+-parseInt(_0x51a3c4(0x1da))/0x5+-parseInt(_0x51a3c4(0x146))/0x6+-parseInt(_0x51a3c4(0x1d6))/0x7+parseInt(_0x51a3c4(0x169))/0x8+parseInt(_0x51a3c4(0x194))/0x9;if(_0xd2dc72===_0x4fd7ff)break;else _0x3156bb['push'](_0x3156bb['shift']());}catch(_0x324d69){_0x3156bb['push'](_0x3156bb['shift']());}}}(a7_0x8110,0x5a801));import{Client,GatewayIntentBits,ChannelType,Partials,AttachmentBuilder}from'discord.js';import{join,resolve,basename}from'path';import*as a7_0x1815ba from'./config.js';import*as a7_0x375c33 from'../ui/output.js';import{getSelectedModel}from'../utils/storage.js';import{sendChatMessage}from'../utils/api.js';import{createFile,readFile,listDirectory,editFile,runCommand,searchFile,readTerminalOutput,sendTerminalInput,terminateProcess,deleteFile,renameFile,copyFile,fileInfo,readFileLines,findFiles,searchDirectory}from'../tools/index.js';import{gitStatus,gitDiff,gitLog,gitAdd,gitCommit,gitBranch}from'../tools/git.js';import{fetchUrl,downloadFile as a7_0x457b3d}from'../tools/network.js';import{getEnv,setEnv,getSystemInfo,clipboardRead,clipboardWrite}from'../tools/system.js';import{tree,grepRecursive,replaceInFiles,openInEditor,zipFiles,unzipFiles,writeJson,readJson,patchFile,powershellRun}from'../tools/project.js';import{registerDiscordClient}from'../services/notifications.js';function a7_0x8110(){const _0x432ee3=['browser_snapshot','DirectMessages','sendTyping','wait','zip_files','get','info','search_file','browser_fill','repo','file_info','read_file','Guilds','../github/api.js','split','author','run_command','selector','Cleared.','send_file','/cd\x20','once','pids','substring','body','pattern','stderr','git_branch','1840552bHNfTd','from','browser_open','data','1871770QVSdEj','stdout','message','File\x20will\x20be\x20attached\x20separately','user','success','Saved:\x20','\x20bytes)\x20saved\x20to\x20',':\x0a\x0a','patch_file','!clear','set_env','assistant','replace_in_files','files','!cd\x20','[Discord]\x20','value','upload_','extensions','1404642Dwqymw','cwd','3384norfOS','ready','path','Dir:\x20','2096scdIjo','type','list_directory','open_in_editor','output','find_files','search_directory','/files','rename_file','You\x20are\x20Woozlit\x20AI,\x20an\x20autonomous\x20agent\x20connected\x20via\x20Discord.\x20Complete\x20tasks\x20immediately.\x0a\x0aRULES:\x0a1.\x20Execute\x20tools\x20FIRST,\x20explain\x20NEVER.\x20Be\x20concise.\x0a2.\x20No\x20emojis.\x20Maximum\x201-2\x20sentences\x20for\x20final\x20responses.\x0a3.\x20Use\x20tool\x20blocks\x20to\x20execute\x20actions.\x0a\x0aTOOLS:\x0a-\x20run_command:\x20{command,\x20wait,\x20background}\x0a-\x20read_terminal:\x20{}\x0a-\x20send_input:\x20{input}\x0a-\x20terminate:\x20{}\x0a-\x20create_file:\x20{path,\x20content}\x0a-\x20read_file:\x20{path}\x0a-\x20list_directory:\x20{path}\x0a-\x20edit_file:\x20{path,\x20search,\x20replace}\x0a-\x20delete_file:\x20{path}\x0a-\x20rename_file:\x20{from,\x20to}\x0a-\x20copy_file:\x20{from,\x20to}\x0a-\x20file_info:\x20{path}\x0a-\x20read_file_lines:\x20{path,\x20start,\x20end}\x0a-\x20find_files:\x20{path,\x20pattern}\x0a-\x20search_directory:\x20{path,\x20pattern}\x0a-\x20send_file:\x20{path}\x20-\x20send\x20file\x20to\x20Discord\x0a-\x20git_status,\x20git_diff,\x20git_log,\x20git_add,\x20git_commit,\x20git_branch\x0a-\x20fetch_url:\x20{url}\x0a-\x20download_file:\x20{url,\x20path}\x0a-\x20get_env:\x20{name},\x20set_env:\x20{name,\x20value}\x0a-\x20get_system_info:\x20{}\x0a-\x20clipboard_read,\x20clipboard_write:\x20{text}\x0a-\x20tree:\x20{path,\x20depth}\x0a-\x20grep_recursive:\x20{path,\x20pattern}\x0a-\x20replace_in_files:\x20{path,\x20search,\x20replace}\x0a-\x20powershell_run:\x20{script}\x0a-\x20zip_files:\x20{files,\x20output},\x20unzip_files:\x20{path,\x20output}\x0a-\x20write_json:\x20{path,\x20data},\x20read_json:\x20{path}\x0a-\x20patch_file:\x20{path,\x20patches}\x0a-\x20open_in_editor:\x20{path}\x0a-\x20github_read_file,\x20github_create_pr,\x20github_create_branch\x0a-\x20browser_open,\x20browser_click,\x20browser_fill,\x20browser_screenshot,\x20browser_snapshot,\x20browser_close\x0a\x0aTOOL\x20FORMAT:\x0a```tool\x0a{\x22name\x22:\x22tool_name\x22,\x22args\x22:{\x22key\x22:\x22value\x22}}\x0a```','Exit:\x20','[D]','[Discord]\x20Connected\x20as\x20','match','../browser/index.js','/status','fromBranch','git_add','!status','\x0aModel:\x20','[File\x20received:\x20','.\x20Try\x20again\x20or\x20skip.','replace','entries','join','startsWith','\x0a```\x0a','/files\x20','clipboard_read','4952872DqXYZA','search','tree','script','edit_file','git_commit','count','\x0aProcesses:\x20','head','tag','login','No\x20output','channel','...','[F]','reply','\x0aProject:\x20','length','delete','text','\x0aTree:\x0a','Tool\x20result\x20for\x20','chdir','git_log','grep_recursive','MessageContent','directory','read_terminal','trim','create_file','push','/clear','browser_close','mentions','6998bHlKhU','now','archive.zip','catch','read_json','guildId','pid','getBotToken','messageCreate','1735731JpEKsl','git_diff','!files\x20','read_file_lines','delete_file','Error','has','owner','bot','powershell_run','Failed:\x20','download_file','unzip_files','!files','parse','package.json','attachments','46slWRuE','New\x20chat\x20session\x20started.','Clean','!run\x20','system','branch','args','url','slice','map','name','username','content','command','stringify','github_create_branch','get_env','/run\x20','set','!newchat','depth'];a7_0x8110=function(){return _0x432ee3;};return a7_0x8110();}let client=null,isRunning=![];const chatHistories=new Map(),SYSTEM_PROMPT=a7_0x13b548(0x155);async function executeToolCall(_0x14f94b,_0x2f2524,_0x5a9c4a){const _0x4297bb=a7_0x13b548;switch(_0x14f94b){case _0x4297bb(0x1ca):{const _0x41d909=await runCommand(_0x2f2524[_0x4297bb(0x1b2)],undefined,_0x2f2524['background']||![],_0x2f2524[_0x4297bb(0x1bd)]||0x7530);return _0x41d909;}case _0x4297bb(0x184):return readTerminalOutput(_0x2f2524[_0x4297bb(0x191)]);case'send_input':return sendTerminalInput(_0x2f2524['input'],_0x2f2524['pid']);case'terminate':return terminateProcess(_0x2f2524[_0x4297bb(0x191)]);case _0x4297bb(0x186):return createFile(_0x2f2524[_0x4297bb(0x14a)],_0x2f2524['content']);case _0x4297bb(0x1c5):return readFile(_0x2f2524['path']);case _0x4297bb(0x14e):return listDirectory(_0x2f2524[_0x4297bb(0x14a)]||'.');case _0x4297bb(0x16d):return editFile(_0x2f2524[_0x4297bb(0x14a)],_0x2f2524[_0x4297bb(0x16a)],_0x2f2524[_0x4297bb(0x162)]);case _0x4297bb(0x1c1):return searchFile(_0x2f2524[_0x4297bb(0x14a)],_0x2f2524[_0x4297bb(0x1d3)]);case _0x4297bb(0x198):return deleteFile(_0x2f2524[_0x4297bb(0x14a)]);case _0x4297bb(0x154):return renameFile(_0x2f2524[_0x4297bb(0x1d7)]||_0x2f2524[_0x4297bb(0x14a)],_0x2f2524['to']);case'copy_file':return copyFile(_0x2f2524[_0x4297bb(0x1d7)]||_0x2f2524[_0x4297bb(0x14a)],_0x2f2524['to']);case _0x4297bb(0x1c4):return fileInfo(_0x2f2524['path']);case _0x4297bb(0x197):return readFileLines(_0x2f2524[_0x4297bb(0x14a)],_0x2f2524['start']||0x1,_0x2f2524['end']||0x32);case _0x4297bb(0x151):return findFiles(_0x2f2524[_0x4297bb(0x14a)]||'.',_0x2f2524[_0x4297bb(0x1d3)]);case _0x4297bb(0x152):return searchDirectory(_0x2f2524[_0x4297bb(0x14a)]||'.',_0x2f2524[_0x4297bb(0x1d3)]);case _0x4297bb(0x1cd):{try{const _0x50481f=resolve(process['cwd'](),_0x2f2524[_0x4297bb(0x14a)]);return await _0x5a9c4a('__Sending\x20file:\x20'+basename(_0x50481f)+'__'),{'success':!![],'sent':!![],'note':_0x4297bb(0x1dd)};}catch(_0x2bb751){return{'error':'Failed\x20to\x20send\x20file:\x20'+_0x2bb751};}}case'git_status':return gitStatus();case _0x4297bb(0x195):return gitDiff(_0x2f2524[_0x4297bb(0x14a)]);case _0x4297bb(0x180):return gitLog(_0x2f2524[_0x4297bb(0x16f)]||0xa);case _0x4297bb(0x15d):return gitAdd(_0x2f2524[_0x4297bb(0x14a)]||'.');case _0x4297bb(0x16e):return gitCommit(_0x2f2524[_0x4297bb(0x1dc)]);case _0x4297bb(0x1d5):return gitBranch();case'fetch_url':return fetchUrl(_0x2f2524[_0x4297bb(0x1ac)]);case _0x4297bb(0x19f):return a7_0x457b3d(_0x2f2524[_0x4297bb(0x1ac)],_0x2f2524[_0x4297bb(0x14a)]);case _0x4297bb(0x1b5):return getEnv(_0x2f2524[_0x4297bb(0x1af)]);case _0x4297bb(0x1e5):return setEnv(_0x2f2524[_0x4297bb(0x1af)],_0x2f2524[_0x4297bb(0x143)]);case'get_system_info':return getSystemInfo();case _0x4297bb(0x168):return clipboardRead();case'clipboard_write':return clipboardWrite(_0x2f2524[_0x4297bb(0x17c)]);case _0x4297bb(0x16b):return tree(_0x2f2524[_0x4297bb(0x14a)]||'.',_0x2f2524[_0x4297bb(0x1b9)]||0x3);case _0x4297bb(0x181):return grepRecursive(_0x2f2524[_0x4297bb(0x14a)]||'.',_0x2f2524['pattern'],_0x2f2524[_0x4297bb(0x145)]);case _0x4297bb(0x1e7):return replaceInFiles(_0x2f2524[_0x4297bb(0x14a)]||'.',_0x2f2524[_0x4297bb(0x16a)],_0x2f2524[_0x4297bb(0x162)],_0x2f2524[_0x4297bb(0x145)]);case _0x4297bb(0x19d):return powershellRun(_0x2f2524[_0x4297bb(0x16c)]||_0x2f2524[_0x4297bb(0x1b2)]);case _0x4297bb(0x1be):return zipFiles(_0x2f2524[_0x4297bb(0x1e8)]||[_0x2f2524[_0x4297bb(0x14a)]],_0x2f2524[_0x4297bb(0x150)]||_0x4297bb(0x18d));case _0x4297bb(0x1a0):return unzipFiles(_0x2f2524['path'],_0x2f2524[_0x4297bb(0x150)]||'.');case'write_json':return writeJson(_0x2f2524[_0x4297bb(0x14a)],_0x2f2524['data']);case _0x4297bb(0x18f):return readJson(_0x2f2524[_0x4297bb(0x14a)]);case _0x4297bb(0x1e3):return patchFile(_0x2f2524[_0x4297bb(0x14a)],_0x2f2524['patches']);case _0x4297bb(0x14f):return openInEditor(_0x2f2524[_0x4297bb(0x14a)]);case'github_read_file':{const {readFile:_0x767af0}=await import(_0x4297bb(0x1c7));return _0x767af0(_0x2f2524['owner'],_0x2f2524[_0x4297bb(0x1c3)],_0x2f2524[_0x4297bb(0x14a)],_0x2f2524[_0x4297bb(0x1aa)]);}case _0x4297bb(0x1b4):{const {createBranch:_0x106c6f}=await import('../github/api.js');return _0x106c6f(_0x2f2524[_0x4297bb(0x19b)],_0x2f2524['repo'],_0x2f2524['branchName'],_0x2f2524[_0x4297bb(0x15c)]);}case'github_create_pr':{const {createPullRequest:_0x22f047}=await import(_0x4297bb(0x1c7));return _0x22f047(_0x2f2524[_0x4297bb(0x19b)],_0x2f2524[_0x4297bb(0x1c3)],_0x2f2524['title'],_0x2f2524[_0x4297bb(0x171)],_0x2f2524['base'],_0x2f2524[_0x4297bb(0x1d2)]);}case _0x4297bb(0x1d8):{const {browserOpen:_0x24832c,startBrowserServer:_0x15fe3f,isBrowserServerRunning:_0x560aaa}=await import(_0x4297bb(0x15a));if(!_0x560aaa())await _0x15fe3f();return _0x24832c(_0x2f2524[_0x4297bb(0x1ac)]);}case'browser_click':{const {browserClick:_0x530840}=await import(_0x4297bb(0x15a));return _0x530840(_0x2f2524['selector']);}case _0x4297bb(0x1c2):{const {browserFill:_0x4cfe97}=await import(_0x4297bb(0x15a));return _0x4cfe97(_0x2f2524[_0x4297bb(0x1cb)],_0x2f2524[_0x4297bb(0x143)]);}case _0x4297bb(0x1ba):{const {browserSnapshot:_0x1e2005}=await import(_0x4297bb(0x15a));return _0x1e2005();}case'browser_screenshot':{const {browserScreenshot:_0x274741}=await import(_0x4297bb(0x15a));return _0x274741();}case _0x4297bb(0x189):{const {browserClose:_0x470353}=await import('../browser/index.js');return _0x470353();}default:return{'error':'Unknown\x20tool:\x20'+_0x14f94b};}}function a7_0x2d66(_0x5f1759,_0x4894d5){_0x5f1759=_0x5f1759-0x143;const _0x8110c=a7_0x8110();let _0x2d661a=_0x8110c[_0x5f1759];return _0x2d661a;}async function processDiscordAgentLoop(_0x2f4d26,_0x37c654,_0x2b666b,_0x4ce4b9){const _0x18ad4c=a7_0x13b548;let _0x3b57f9=0x0;const _0x3d4fae=0x14;while(_0x3b57f9<_0x3d4fae){_0x3b57f9++;let _0x1dfa92='';try{const _0x21817e=await sendChatMessage(_0x37c654,_0x2f4d26,_0x550cf3=>{_0x1dfa92+=_0x550cf3;});_0x1dfa92=_0x21817e[_0x18ad4c(0x1b1)];}catch(_0x315cb3){await _0x2b666b('Failed:\x20'+(_0x315cb3[_0x18ad4c(0x1dc)]?.[_0x18ad4c(0x1d1)](0x0,0x64)||_0x18ad4c(0x199)));return;}_0x2f4d26[_0x18ad4c(0x187)]({'role':_0x18ad4c(0x1e6),'content':_0x1dfa92});let _0x378a92=_0x1dfa92[_0x18ad4c(0x159)](/```tool\s*([\s\S]*?)```/);if(!_0x378a92)_0x378a92=_0x1dfa92[_0x18ad4c(0x159)](/\*\*\*tool\s*([\s\S]*?)\*\*\*/);if(!_0x378a92)_0x378a92=_0x1dfa92[_0x18ad4c(0x159)](/```json\s*({[\s\S]*?"name"[\s\S]*?})\s*```/);if(!_0x378a92){let _0x33a866=_0x1dfa92[_0x18ad4c(0x162)](/<reasoning>[\s\S]*?<\/reasoning>/g,'')[_0x18ad4c(0x162)](/<text>|<\/text>/g,'')[_0x18ad4c(0x162)](/```tool[\s\S]*?```/g,'')[_0x18ad4c(0x162)](/\*\*\*tool[\s\S]*?\*\*\*/g,'')[_0x18ad4c(0x162)](/#{1,6}\s*/g,'')[_0x18ad4c(0x185)]();if(_0x33a866){if(_0x33a866[_0x18ad4c(0x17a)]>0x7d0){const _0x4c1412=_0x33a866['match'](/[\s\S]{1,2000}/g)||[];for(const _0x5a54d4 of _0x4c1412)await _0x2b666b(_0x5a54d4);}else await _0x2b666b(_0x33a866);}break;}try{const _0x2a581c=JSON[_0x18ad4c(0x1a2)](_0x378a92[0x1][_0x18ad4c(0x185)]());a7_0x375c33[_0x18ad4c(0x1c0)]('[Discord]\x20Tool:\x20'+_0x2a581c[_0x18ad4c(0x1af)]);const _0x4557a5=await executeToolCall(_0x2a581c['name'],_0x2a581c[_0x18ad4c(0x1ab)],_0x2b666b);_0x2a581c[_0x18ad4c(0x1af)]===_0x18ad4c(0x1cd)&&_0x2a581c[_0x18ad4c(0x1ab)]['path']&&await _0x4ce4b9(resolve(process[_0x18ad4c(0x147)](),_0x2a581c[_0x18ad4c(0x1ab)][_0x18ad4c(0x14a)])),_0x2f4d26[_0x18ad4c(0x187)]({'role':_0x18ad4c(0x1de),'content':_0x18ad4c(0x17e)+_0x2a581c[_0x18ad4c(0x1af)]+':\x0a'+JSON[_0x18ad4c(0x1b3)](_0x4557a5,null,0x2)}),await new Promise(_0x17b6ba=>setTimeout(_0x17b6ba,0xc8));}catch(_0x372ca0){_0x2f4d26[_0x18ad4c(0x187)]({'role':_0x18ad4c(0x1de),'content':'Tool\x20error:\x20'+_0x372ca0+_0x18ad4c(0x161)});}}}function getOrCreateHistory(_0x371e88){const _0x535f81=a7_0x13b548;return!chatHistories[_0x535f81(0x19a)](_0x371e88)&&chatHistories[_0x535f81(0x1b7)](_0x371e88,[{'role':_0x535f81(0x1a9),'content':SYSTEM_PROMPT}]),chatHistories[_0x535f81(0x1bf)](_0x371e88);}export async function startBot(){const _0x2966b2=a7_0x13b548,_0x178531=a7_0x1815ba[_0x2966b2(0x192)]();if(!_0x178531)return![];if(isRunning)return!![];try{return client=new Client({'intents':[GatewayIntentBits[_0x2966b2(0x1c6)],GatewayIntentBits['GuildMessages'],GatewayIntentBits[_0x2966b2(0x182)],GatewayIntentBits[_0x2966b2(0x1bb)]],'partials':[Partials['Channel']]}),client[_0x2966b2(0x1cf)](_0x2966b2(0x149),()=>{const _0x20ef64=_0x2966b2;a7_0x375c33[_0x20ef64(0x1df)](_0x20ef64(0x158)+client?.[_0x20ef64(0x1de)]?.[_0x20ef64(0x172)]),isRunning=!![];if(client)registerDiscordClient(client);}),client['on'](_0x2966b2(0x193),async _0x25c41c=>{const _0x244cea=_0x2966b2;if(_0x25c41c[_0x244cea(0x1c9)][_0x244cea(0x19c)])return;const _0x53987b=_0x25c41c[_0x244cea(0x175)][_0x244cea(0x14d)]===ChannelType['DM'],_0x16b339=client?.[_0x244cea(0x1de)]&&_0x25c41c[_0x244cea(0x18a)][_0x244cea(0x19a)](client['user']);if(!_0x53987b&&!_0x16b339)return;const _0x5d911e=_0x25c41c['content']['replace'](/<@!?[0-9]+>/g,'')[_0x244cea(0x185)](),_0x298bf5=_0x25c41c[_0x244cea(0x1c9)]['id'],_0x49dd39=(_0x25c41c[_0x244cea(0x190)]||'dm')+'-'+_0x25c41c['channelId']+'-'+_0x298bf5,_0x4a4e38=async _0x5e0f13=>{const _0x51ab7e=_0x244cea;await _0x25c41c[_0x51ab7e(0x175)]['send'](_0x5e0f13)[_0x51ab7e(0x18e)](()=>{});},_0x7a7403=async _0x4cfb84=>{const _0x442fdc=_0x244cea;try{const _0xa8b08e=new AttachmentBuilder(_0x4cfb84);await _0x25c41c[_0x442fdc(0x175)]['send']({'files':[_0xa8b08e]});}catch{}};if(_0x5d911e==='/newchat'||_0x5d911e===_0x244cea(0x1b8)){chatHistories[_0x244cea(0x17b)](_0x49dd39),await _0x25c41c[_0x244cea(0x178)](_0x244cea(0x1a6));return;}if(_0x5d911e===_0x244cea(0x188)||_0x5d911e===_0x244cea(0x1e4)){chatHistories[_0x244cea(0x17b)](_0x49dd39),await _0x25c41c[_0x244cea(0x178)](_0x244cea(0x1cc));return;}if(_0x5d911e===_0x244cea(0x15b)||_0x5d911e===_0x244cea(0x15e)){const _0x3e4326=readTerminalOutput(),_0x4f3c4c=_0x3e4326[_0x244cea(0x1d0)][_0x244cea(0x17a)]>0x0?_0x244cea(0x170)+_0x3e4326[_0x244cea(0x1d0)][_0x244cea(0x164)](',\x20'):'';await _0x25c41c[_0x244cea(0x178)](_0x244cea(0x14b)+process[_0x244cea(0x147)]()+_0x244cea(0x15f)+getSelectedModel()+_0x4f3c4c);return;}if(_0x5d911e==='/project'||_0x5d911e==='!project'){const _0x4cfb71=gitStatus(),_0x58b2f5=tree('.',0x2),_0x1af97f=readJson(_0x244cea(0x1a3));let _0x4f7fd9=_0x244cea(0x14b)+process['cwd']()+_0x244cea(0x15f)+getSelectedModel()+'\x0a';if(_0x1af97f[_0x244cea(0x1df)]&&_0x1af97f['data']){const _0x4dadbf=_0x1af97f[_0x244cea(0x1d9)];_0x4f7fd9+=_0x244cea(0x179)+(_0x4dadbf[_0x244cea(0x1af)]||'?')+'\x20v'+(_0x4dadbf['version']||'?')+'\x0a';}if(_0x4cfb71[_0x244cea(0x1df)])_0x4f7fd9+='\x0aGit:\x20'+(_0x4cfb71[_0x244cea(0x150)]||_0x244cea(0x1a7))+'\x0a';_0x58b2f5[_0x244cea(0x1df)]&&_0x58b2f5[_0x244cea(0x16b)]&&(_0x4f7fd9+=_0x244cea(0x17d)+_0x58b2f5[_0x244cea(0x16b)][_0x244cea(0x1c8)]('\x0a')[_0x244cea(0x1ad)](0x0,0xf)[_0x244cea(0x164)]('\x0a'));if(_0x4f7fd9[_0x244cea(0x17a)]>0x7d0)_0x4f7fd9=_0x4f7fd9[_0x244cea(0x1d1)](0x0,0x7cd)+_0x244cea(0x176);await _0x25c41c[_0x244cea(0x178)](_0x4f7fd9);return;}if(_0x5d911e[_0x244cea(0x165)](_0x244cea(0x167))||_0x5d911e[_0x244cea(0x165)](_0x244cea(0x196))||_0x5d911e===_0x244cea(0x153)||_0x5d911e===_0x244cea(0x1a1)){const _0x15d129=_0x5d911e['replace'](/^[!/]files\s*/,'')['trim']()||'.',_0x2e5df2=listDirectory(_0x15d129);if(_0x2e5df2[_0x244cea(0x1df)]&&_0x2e5df2[_0x244cea(0x163)]){const _0x9aec7d=_0x2e5df2['entries'][_0x244cea(0x1ad)](0x0,0x1e)[_0x244cea(0x1ae)](_0x1a816a=>{const _0x19ba57=_0x244cea,_0x42bf34=_0x1a816a[_0x19ba57(0x14d)]===_0x19ba57(0x183)?_0x19ba57(0x157):_0x19ba57(0x177);return _0x42bf34+'\x20'+_0x1a816a[_0x19ba57(0x1af)];})[_0x244cea(0x164)]('\x0a');await _0x25c41c['reply'](_0x15d129+_0x244cea(0x1e2)+_0x9aec7d);}else await _0x25c41c[_0x244cea(0x178)](_0x2e5df2['message']);return;}if(_0x5d911e['startsWith'](_0x244cea(0x1b6))||_0x5d911e[_0x244cea(0x165)](_0x244cea(0x1a8))){const _0x30e444=_0x5d911e[_0x244cea(0x162)](/^[!/]run\s+/,'')[_0x244cea(0x185)]();if(!_0x30e444){await _0x25c41c[_0x244cea(0x178)]('Usage:\x20/run\x20<command>');return;}await _0x25c41c['channel'][_0x244cea(0x1bc)]()[_0x244cea(0x18e)](()=>{});const _0x46dc5d=await runCommand(_0x30e444,undefined,![],0x7530),_0x464395=(_0x46dc5d[_0x244cea(0x1db)]||_0x46dc5d[_0x244cea(0x1d4)]||_0x244cea(0x174))[_0x244cea(0x1d1)](0x0,0x76c);await _0x25c41c[_0x244cea(0x178)](_0x244cea(0x156)+_0x46dc5d['exitCode']+_0x244cea(0x166)+_0x464395+'\x0a```');return;}if(_0x5d911e[_0x244cea(0x165)](_0x244cea(0x1ce))||_0x5d911e[_0x244cea(0x165)](_0x244cea(0x1e9))){const _0x356044=_0x5d911e[_0x244cea(0x162)](/^[!/]cd\s+/,'')[_0x244cea(0x185)]();try{process[_0x244cea(0x17f)](resolve(process[_0x244cea(0x147)](),_0x356044)),await _0x25c41c['reply']('Changed\x20to:\x20'+process[_0x244cea(0x147)]());}catch(_0x36f199){await _0x25c41c[_0x244cea(0x178)](_0x244cea(0x19e)+_0x36f199);}return;}if(!_0x5d911e)return;await _0x25c41c[_0x244cea(0x175)][_0x244cea(0x1bc)]()[_0x244cea(0x18e)](()=>{});const _0x3670ce=getOrCreateHistory(_0x49dd39);_0x3670ce[_0x244cea(0x187)]({'role':_0x244cea(0x1de),'content':_0x5d911e}),a7_0x375c33['info'](_0x244cea(0x1ea)+_0x25c41c[_0x244cea(0x1c9)][_0x244cea(0x1b0)]+':\x20'+_0x5d911e),await processDiscordAgentLoop(_0x3670ce,getSelectedModel(),_0x4a4e38,_0x7a7403);if(_0x25c41c[_0x244cea(0x1a4)]['size']>0x0)for(const [,_0x3f9b91]of _0x25c41c[_0x244cea(0x1a4)]){try{const _0x50cff2=await fetch(_0x3f9b91[_0x244cea(0x1ac)]),_0x50e99d=Buffer[_0x244cea(0x1d7)](await _0x50cff2['arrayBuffer']()),_0x1c9052=join(process[_0x244cea(0x147)](),_0x3f9b91['name']||_0x244cea(0x144)+Date[_0x244cea(0x18c)]()),{writeFileSync:_0x5e32d9}=await import('fs');_0x5e32d9(_0x1c9052,_0x50e99d),_0x3670ce['push']({'role':_0x244cea(0x1de),'content':_0x244cea(0x160)+_0x3f9b91['name']+'\x20('+_0x50e99d['length']+_0x244cea(0x1e1)+_0x1c9052+']'}),await _0x25c41c[_0x244cea(0x178)](_0x244cea(0x1e0)+_0x3f9b91[_0x244cea(0x1af)]);}catch{}}}),await client[_0x2966b2(0x173)](_0x178531),!![];}catch(_0x42e79c){return a7_0x375c33['error']('[Discord]\x20Failed\x20to\x20start:\x20'+_0x42e79c[_0x2966b2(0x1dc)]),![];}}export function stopBot(){client&&(client['destroy'](),client=null),isRunning=![];}export function isBotRunning(){return isRunning;}
@@ -1,5 +0,0 @@
1
- export declare function setBotToken(token: string): void;
2
- export declare function getBotToken(): string;
3
- export declare function isEnabled(): boolean;
4
- export declare function isConfigured(): boolean;
5
- export declare function clearConfig(): void;
@@ -1 +0,0 @@
1
- const a8_0x3e2612=a8_0x3216;(function(_0x37f3eb,_0x4128b6){const _0x2cad79=a8_0x3216,_0x59710d=_0x37f3eb();while(!![]){try{const _0x8ee1db=-parseInt(_0x2cad79(0x176))/0x1*(parseInt(_0x2cad79(0x171))/0x2)+-parseInt(_0x2cad79(0x17b))/0x3*(parseInt(_0x2cad79(0x16f))/0x4)+-parseInt(_0x2cad79(0x178))/0x5*(parseInt(_0x2cad79(0x16c))/0x6)+-parseInt(_0x2cad79(0x16a))/0x7+parseInt(_0x2cad79(0x16d))/0x8+parseInt(_0x2cad79(0x175))/0x9+-parseInt(_0x2cad79(0x161))/0xa*(-parseInt(_0x2cad79(0x16b))/0xb);if(_0x8ee1db===_0x4128b6)break;else _0x59710d['push'](_0x59710d['shift']());}catch(_0x35a22b){_0x59710d['push'](_0x59710d['shift']());}}}(a8_0x5daf,0x9eb74));import a8_0x23bec2 from'conf';import a8_0xec859b from'crypto';const config=new a8_0x23bec2({'projectName':a8_0x3e2612(0x167),'defaults':{'botToken':'','commandPrefix':'!','enabled':![]}}),ENCRYPTION_KEY=a8_0x3e2612(0x166);function encrypt(_0x298e33){const _0x572295=a8_0x3e2612;if(!_0x298e33)return'';const _0x32da7a=a8_0xec859b[_0x572295(0x17a)](0x10),_0x2ee855=a8_0xec859b['createHash'](_0x572295(0x174))['update'](ENCRYPTION_KEY)[_0x572295(0x179)](),_0x43a309=a8_0xec859b[_0x572295(0x173)](_0x572295(0x162),_0x2ee855,_0x32da7a);let _0x25e85e=_0x43a309['update'](_0x298e33,'utf8','hex');return _0x25e85e+=_0x43a309[_0x572295(0x164)](_0x572295(0x17c)),_0x32da7a['toString']('hex')+':'+_0x25e85e;}function decrypt(_0x15ffe5){const _0x541e20=a8_0x3e2612;if(!_0x15ffe5)return'';try{const [_0x2a1e17,_0x52a560]=_0x15ffe5[_0x541e20(0x177)](':');if(!_0x2a1e17||!_0x52a560)return'';const _0x9d58a5=Buffer[_0x541e20(0x16e)](_0x2a1e17,_0x541e20(0x17c)),_0x7f7612=a8_0xec859b['createHash'](_0x541e20(0x174))[_0x541e20(0x170)](ENCRYPTION_KEY)['digest'](),_0x181ace=a8_0xec859b[_0x541e20(0x17d)](_0x541e20(0x162),_0x7f7612,_0x9d58a5);let _0x48b969=_0x181ace[_0x541e20(0x170)](_0x52a560,_0x541e20(0x17c),_0x541e20(0x163));return _0x48b969+=_0x181ace[_0x541e20(0x164)](_0x541e20(0x163)),_0x48b969;}catch{return'';}}export function setBotToken(_0x2b86aa){const _0x416f32=a8_0x3e2612;config[_0x416f32(0x168)](_0x416f32(0x172),encrypt(_0x2b86aa));}export function getBotToken(){const _0x45f8df=a8_0x3e2612;return decrypt(config[_0x45f8df(0x169)](_0x45f8df(0x172)));}function a8_0x5daf(){const _0x24c197=['set','get','3638565TCxinh','50303eMffEL','48GJjgmN','4129568qHuuzI','from','108DPcZOc','update','12mrVqyk','botToken','createCipheriv','sha256','3484206Pqmhmj','186551oIyQFz','split','457885gGswTw','digest','randomBytes','68463lCvmsh','hex','createDecipheriv','5980CYfxun','aes-256-cbc','utf8','final','clear','woozlit_discord_secure_key','woozlit-cli-discord'];a8_0x5daf=function(){return _0x24c197;};return a8_0x5daf();}export function isEnabled(){return!!getBotToken();}export function isConfigured(){return!!getBotToken();}function a8_0x3216(_0xe6cae7,_0x4fe996){_0xe6cae7=_0xe6cae7-0x161;const _0x5daf6f=a8_0x5daf();let _0x321603=_0x5daf6f[_0xe6cae7];return _0x321603;}export function clearConfig(){const _0x41ef1e=a8_0x3e2612;config[_0x41ef1e(0x165)]();}
@@ -1,3 +0,0 @@
1
- export * from "./config.js";
2
- export { startBot, stopBot, isBotRunning } from "./client.js";
3
- export { setupDiscord } from "./setup.js";
@@ -1 +0,0 @@
1
- (function(_0x4ad6ac,_0x26a3c4){var _0x3c57ef=a9_0x32ca,_0x2e7c6e=_0x4ad6ac();while(!![]){try{var _0x2a2fbd=parseInt(_0x3c57ef(0x1d5))/0x1+parseInt(_0x3c57ef(0x1d4))/0x2*(-parseInt(_0x3c57ef(0x1d2))/0x3)+-parseInt(_0x3c57ef(0x1d7))/0x4+-parseInt(_0x3c57ef(0x1d1))/0x5*(parseInt(_0x3c57ef(0x1d3))/0x6)+parseInt(_0x3c57ef(0x1cf))/0x7*(parseInt(_0x3c57ef(0x1d0))/0x8)+parseInt(_0x3c57ef(0x1d8))/0x9+parseInt(_0x3c57ef(0x1d6))/0xa;if(_0x2a2fbd===_0x26a3c4)break;else _0x2e7c6e['push'](_0x2e7c6e['shift']());}catch(_0x4aedb7){_0x2e7c6e['push'](_0x2e7c6e['shift']());}}}(a9_0x1c4c,0x39b82));export*from'./config.js';function a9_0x1c4c(){var _0x5764cc=['5uyVNIC','6VRgnEl','2122674QndspL','267832EvaVdy','309327OIVUef','6176060XanMLB','1353168Fdxcuj','1515546BXVppl','7JIxFyp','807952mdFwGd'];a9_0x1c4c=function(){return _0x5764cc;};return a9_0x1c4c();}function a9_0x32ca(_0x1dcc2d,_0x548a75){_0x1dcc2d=_0x1dcc2d-0x1cf;var _0x1c4c67=a9_0x1c4c();var _0x32cad0=_0x1c4c67[_0x1dcc2d];return _0x32cad0;}export{startBot,stopBot,isBotRunning}from'./client.js';export{setupDiscord}from'./setup.js';
@@ -1 +0,0 @@
1
- export declare function setupDiscord(): Promise<void>;
@@ -1 +0,0 @@
1
- (function(_0x20ff48,_0x55a007){const _0x57e0be=a10_0x6a61,_0x1a41b2=_0x20ff48();while(!![]){try{const _0x58847a=parseInt(_0x57e0be(0x1a8))/0x1*(parseInt(_0x57e0be(0x1b2))/0x2)+-parseInt(_0x57e0be(0x1ab))/0x3*(parseInt(_0x57e0be(0x1a7))/0x4)+parseInt(_0x57e0be(0x1b3))/0x5+parseInt(_0x57e0be(0x1ad))/0x6+parseInt(_0x57e0be(0x1b4))/0x7+-parseInt(_0x57e0be(0x1af))/0x8+-parseInt(_0x57e0be(0x1b5))/0x9;if(_0x58847a===_0x55a007)break;else _0x1a41b2['push'](_0x1a41b2['shift']());}catch(_0x17c4e2){_0x1a41b2['push'](_0x1a41b2['shift']());}}}(a10_0x1fca,0xc2d10));function a10_0x1fca(){const _0x3f94f=['29009304Ftdyqo','8jsaHzM','18xYeJGn','info','Token\x20seems\x20too\x20short','218175TrmkGt','Discord\x20configuration\x20saved!','4782954GuMHUZ','length','1639112eLWxfy','setBotToken','You\x20need\x20a\x20Bot\x20Token\x20from\x20the\x20Discord\x20Developer\x20Portal.','152994dTUVBn','3951485xPvXac','9850127AdTYcr'];a10_0x1fca=function(){return _0x3f94f;};return a10_0x1fca();}function a10_0x6a61(_0x2c1099,_0x4f8b92){_0x2c1099=_0x2c1099-0x1a7;const _0x1fca32=a10_0x1fca();let _0x6a6100=_0x1fca32[_0x2c1099];return _0x6a6100;}import{input}from'@inquirer/prompts';import*as a10_0x4485c2 from'./config.js';import*as a10_0x287b98 from'../ui/output.js';export async function setupDiscord(){const _0x58a419=a10_0x6a61;a10_0x287b98[_0x58a419(0x1a9)]('Setup\x20Woozlit\x20Discord\x20Bot'),a10_0x287b98['dim'](_0x58a419(0x1b1));const _0x4ee16d=await input({'message':'Bot\x20Token:','validate':_0x274e7f=>_0x274e7f[_0x58a419(0x1ae)]>0xa?!![]:_0x58a419(0x1aa)}),_0x1d4a3e=await input({'message':'Command\x20Prefix\x20(optional,\x20default\x20\x27!\x27):','default':'!'});a10_0x4485c2[_0x58a419(0x1b0)](_0x4ee16d),a10_0x287b98['success'](_0x58a419(0x1ac)),a10_0x287b98[_0x58a419(0x1a9)]('Restart\x20the\x20CLI\x20to\x20start\x20the\x20Discord\x20Bot.');}
@@ -1,31 +0,0 @@
1
- export declare function setCredentials(user: string, pass: string, host?: string, port?: number): void;
2
- export declare function getConfig(): {
3
- imap: {
4
- user: string;
5
- password: string;
6
- host: string;
7
- port: number;
8
- tls: boolean;
9
- tlsOptions: {
10
- rejectUnauthorized: boolean;
11
- };
12
- authTimeout: number;
13
- };
14
- smtp: {
15
- host: string;
16
- port: number;
17
- auth: {
18
- user: string;
19
- pass: string;
20
- };
21
- tls: {
22
- rejectUnauthorized: boolean;
23
- };
24
- };
25
- interval: number;
26
- allowedSenders: string[];
27
- enabled: boolean;
28
- };
29
- export declare function isConfigured(): boolean;
30
- export declare function setEnabled(val: boolean): void;
31
- export declare function addAllowedSender(email: string): void;
@@ -1 +0,0 @@
1
- const a11_0x3a6c7d=a11_0x5039;(function(_0x4adeac,_0x48834a){const _0x5bd55f=a11_0x5039,_0x4400a3=_0x4adeac();while(!![]){try{const _0x3a5ca7=parseInt(_0x5bd55f(0x92))/0x1*(parseInt(_0x5bd55f(0x7c))/0x2)+parseInt(_0x5bd55f(0x9a))/0x3*(-parseInt(_0x5bd55f(0x7b))/0x4)+parseInt(_0x5bd55f(0x98))/0x5+parseInt(_0x5bd55f(0xa1))/0x6*(parseInt(_0x5bd55f(0x7f))/0x7)+-parseInt(_0x5bd55f(0x87))/0x8+parseInt(_0x5bd55f(0xa0))/0x9+-parseInt(_0x5bd55f(0x8c))/0xa;if(_0x3a5ca7===_0x48834a)break;else _0x4400a3['push'](_0x4400a3['shift']());}catch(_0x24a613){_0x4400a3['push'](_0x4400a3['shift']());}}}(a11_0x42f7,0x59671));import a11_0xa03aa6 from'conf';import a11_0x76cf58 from'crypto';const config=new a11_0xa03aa6({'projectName':'woozlit-cli-email','defaults':{'imapHost':a11_0x3a6c7d(0x7e),'imapPort':0x3e1,'imapUser':'','imapPass':'','smtpHost':a11_0x3a6c7d(0x9c),'smtpPort':0x24b,'smtpUser':'','smtpPass':'','checkInterval':0x5,'allowedSenders':[],'enabled':![]}}),ENCRYPTION_KEY='woozlit_email_secure_key';function encrypt(_0xc24ca9){const _0x105e38=a11_0x3a6c7d;if(!_0xc24ca9)return'';const _0x5db623=a11_0x76cf58[_0x105e38(0x82)](0x10),_0x3d5fbe=a11_0x76cf58['createHash'](_0x105e38(0x9e))['update'](ENCRYPTION_KEY)[_0x105e38(0xa2)](),_0x51f0d2=a11_0x76cf58[_0x105e38(0x8b)](_0x105e38(0x88),_0x3d5fbe,_0x5db623);let _0x2d01d3=_0x51f0d2[_0x105e38(0x8f)](_0xc24ca9,'utf8',_0x105e38(0x95));return _0x2d01d3+=_0x51f0d2[_0x105e38(0x85)]('hex'),_0x5db623[_0x105e38(0x84)](_0x105e38(0x95))+':'+_0x2d01d3;}function a11_0x5039(_0x35dfe4,_0x5a4903){_0x35dfe4=_0x35dfe4-0x7b;const _0x42f701=a11_0x42f7();let _0x503969=_0x42f701[_0x35dfe4];return _0x503969;}function decrypt(_0x8dd693){const _0x4380a9=a11_0x3a6c7d;if(!_0x8dd693)return'';try{const [_0x40d710,_0x1bbca0]=_0x8dd693[_0x4380a9(0x94)](':');if(!_0x40d710||!_0x1bbca0)return'';const _0xff4ef0=Buffer['from'](_0x40d710,'hex'),_0x5c6566=a11_0x76cf58[_0x4380a9(0x8e)](_0x4380a9(0x9e))[_0x4380a9(0x8f)](ENCRYPTION_KEY)['digest'](),_0x5066c8=a11_0x76cf58[_0x4380a9(0x89)]('aes-256-cbc',_0x5c6566,_0xff4ef0);let _0x36b648=_0x5066c8[_0x4380a9(0x8f)](_0x1bbca0,_0x4380a9(0x95),'utf8');return _0x36b648+=_0x5066c8[_0x4380a9(0x85)](_0x4380a9(0x97)),_0x36b648;}catch{return'';}}export function setCredentials(_0x56c294,_0xa69fb5,_0x14c2ba,_0x128ec8){const _0x3e602b=a11_0x3a6c7d;config[_0x3e602b(0x86)](_0x3e602b(0x7d),_0x56c294),config[_0x3e602b(0x86)]('imapPass',encrypt(_0xa69fb5)),config[_0x3e602b(0x86)]('smtpUser',_0x56c294),config[_0x3e602b(0x86)](_0x3e602b(0x99),encrypt(_0xa69fb5));if(_0x14c2ba)config[_0x3e602b(0x86)](_0x3e602b(0x9f),_0x14c2ba);}export function getConfig(){const _0x465815=a11_0x3a6c7d;return{'imap':{'user':config[_0x465815(0x83)]('imapUser'),'password':decrypt(config['get']('imapPass')),'host':config[_0x465815(0x83)](_0x465815(0x9f)),'port':config[_0x465815(0x83)](_0x465815(0x96)),'tls':!![],'tlsOptions':{'rejectUnauthorized':![]},'authTimeout':0xbb8},'smtp':{'host':config[_0x465815(0x83)](_0x465815(0x8d)),'port':config['get'](_0x465815(0x9b)),'auth':{'user':config[_0x465815(0x83)](_0x465815(0x80)),'pass':decrypt(config[_0x465815(0x83)](_0x465815(0x99)))},'tls':{'rejectUnauthorized':![]}},'interval':config['get']('checkInterval'),'allowedSenders':config[_0x465815(0x83)]('allowedSenders')||[],'enabled':config['get']('enabled')};}export function isConfigured(){const _0x403661=a11_0x3a6c7d,_0x565c95=getConfig();return!!_0x565c95['imap'][_0x403661(0x90)]&&!!_0x565c95[_0x403661(0x9d)]['password'];}export function setEnabled(_0x1caa25){const _0x4d2411=a11_0x3a6c7d;config[_0x4d2411(0x86)](_0x4d2411(0x81),_0x1caa25);}function a11_0x42f7(){const _0x3e6d10=['randomBytes','get','toString','final','set','1984024EADfxS','aes-256-cbc','createDecipheriv','allowedSenders','createCipheriv','8396330HTHGyP','smtpHost','createHash','update','user','includes','1qidMRs','push','split','hex','imapPort','utf8','2105605AllNmY','smtpPass','501cBUUQp','smtpPort','smtp.gmail.com','imap','sha256','imapHost','6256782ypPpvQ','636642BfnQwU','digest','5008lxNsUQ','456546UVaOjt','imapUser','imap.gmail.com','21rrtTZJ','smtpUser','enabled'];a11_0x42f7=function(){return _0x3e6d10;};return a11_0x42f7();}export function addAllowedSender(_0xeaf91c){const _0x5b9ff7=a11_0x3a6c7d,_0x3fedcd=config[_0x5b9ff7(0x83)]('allowedSenders')||[];!_0x3fedcd[_0x5b9ff7(0x91)](_0xeaf91c)&&(_0x3fedcd[_0x5b9ff7(0x93)](_0xeaf91c),config[_0x5b9ff7(0x86)](_0x5b9ff7(0x8a),_0x3fedcd));}
@@ -1,3 +0,0 @@
1
- export * from "./config.js";
2
- export { startBot, stopBot, isBotRunning } from "./service.js";
3
- export { setupEmail } from "./setup.js";
@@ -1 +0,0 @@
1
- function a12_0x2a94(){var _0x536978=['8818464mBtNbG','2652jJLNUg','11824yWjOrq','4270079RqgBii','11535tPsBwv','250569PBZRSA','81pSUVqu','2JnZUqA','6573wJThlw','367063Pqkpsx','756830XvQafQ'];a12_0x2a94=function(){return _0x536978;};return a12_0x2a94();}(function(_0x4f6d87,_0x27c576){var _0x42993=a12_0x59aa,_0x12e2c9=_0x4f6d87();while(!![]){try{var _0x41d501=parseInt(_0x42993(0xa1))/0x1+parseInt(_0x42993(0x9f))/0x2*(parseInt(_0x42993(0x9d))/0x3)+-parseInt(_0x42993(0x99))/0x4*(-parseInt(_0x42993(0x9c))/0x5)+parseInt(_0x42993(0x98))/0x6+parseInt(_0x42993(0xa0))/0x7*(-parseInt(_0x42993(0x9a))/0x8)+-parseInt(_0x42993(0x9e))/0x9*(parseInt(_0x42993(0xa2))/0xa)+-parseInt(_0x42993(0x9b))/0xb;if(_0x41d501===_0x27c576)break;else _0x12e2c9['push'](_0x12e2c9['shift']());}catch(_0x581a7a){_0x12e2c9['push'](_0x12e2c9['shift']());}}}(a12_0x2a94,0xf25b5));export*from'./config.js';export{startBot,stopBot,isBotRunning}from'./service.js';function a12_0x59aa(_0x33d46c,_0x26e826){_0x33d46c=_0x33d46c-0x98;var _0x2a9466=a12_0x2a94();var _0x59aa84=_0x2a9466[_0x33d46c];return _0x59aa84;}export{setupEmail}from'./setup.js';
@@ -1,4 +0,0 @@
1
- export declare function startBot(): Promise<boolean>;
2
- export declare function stopBot(): void;
3
- export declare function isBotRunning(): boolean;
4
- export { isConfigured } from "./config.js";
@@ -1 +0,0 @@
1
- (function(_0x574c25,_0x429759){const _0x4883fc=a13_0x1f3e,_0x5eca2e=_0x574c25();while(!![]){try{const _0x48722b=parseInt(_0x4883fc(0x11e))/0x1+parseInt(_0x4883fc(0x10e))/0x2*(parseInt(_0x4883fc(0x110))/0x3)+parseInt(_0x4883fc(0x10f))/0x4*(parseInt(_0x4883fc(0x105))/0x5)+-parseInt(_0x4883fc(0x119))/0x6+parseInt(_0x4883fc(0x12d))/0x7+-parseInt(_0x4883fc(0xfe))/0x8*(-parseInt(_0x4883fc(0x10a))/0x9)+parseInt(_0x4883fc(0x111))/0xa;if(_0x48722b===_0x429759)break;else _0x5eca2e['push'](_0x5eca2e['shift']());}catch(_0xf643e4){_0x5eca2e['push'](_0x5eca2e['shift']());}}}(a13_0x4270,0x6717d));function a13_0x4270(){const _0x2b2f23=['\x0a\x0aDraft\x20a\x20helpful\x20reply.\x20Structure\x20it\x20clearly.','TEXT','HEADER','\x20(not\x20allowed)','[Email]\x20From:\x20','8464rpzyEi','info','smtp','UNSEEN','find','includes','\x20|\x20Subj:\x20','5mLSQNQ','isConfigured','[Email]\x20Found\x20','You\x20received\x20an\x20email\x20from\x20','sendMail','45phJdtv','getConfig','Re:\x20','NODE_TLS_REJECT_UNAUTHORIZED','4PEWYzQ','757832LBAXRE','111015gNdUhg','1283650inSIqy','success','user','content','parts','\x20new\x20messages','imap','allowedSenders','4212072uHgIeg','match','dim','body','length','392850hRyKIz','INBOX','message','createTransport','which','[Email]\x20Processing/Reply\x20error:\x20','env','from',':\x0aSubject:\x20','auth','end','error','[Email]\x20Reply\x20sent\x20to\x20','subject','openBox','2340156TojEGT'];a13_0x4270=function(){return _0x2b2f23;};return a13_0x4270();}import a13_0x23325c from'imap-simple';function a13_0x1f3e(_0x4ece0d,_0x4df278){_0x4ece0d=_0x4ece0d-0xfc;const _0x4270cf=a13_0x4270();let _0x1f3ec0=_0x4270cf[_0x4ece0d];return _0x1f3ec0;}import a13_0x1032ae from'nodemailer';import*as a13_0x2d1237 from'./config.js';import*as a13_0x4eafb9 from'../ui/output.js';import{getSelectedModel}from'../utils/storage.js';import{sendChatMessage}from'../utils/api.js';let intervalId=null,isRunning=![];async function checkEmails(){const _0x4cfe=a13_0x1f3e,_0x474eb9=a13_0x2d1237[_0x4cfe(0x10b)]();try{const _0x3d57b6=await a13_0x23325c['connect']({'imap':_0x474eb9[_0x4cfe(0x117)]});await _0x3d57b6[_0x4cfe(0x12c)](_0x4cfe(0x11f));const _0x12b430=[_0x4cfe(0x101)],_0x63f7b1={'bodies':['HEADER',_0x4cfe(0x12f)],'markSeen':!![]},_0x2f74e2=await _0x3d57b6['search'](_0x12b430,_0x63f7b1);_0x2f74e2[_0x4cfe(0x11d)]>0x0&&a13_0x4eafb9['info'](_0x4cfe(0x107)+_0x2f74e2[_0x4cfe(0x11d)]+_0x4cfe(0x116));for(const _0x1cea24 of _0x2f74e2){const _0x29887b=_0x1cea24[_0x4cfe(0x115)][_0x4cfe(0x102)](_0x321c74=>_0x321c74['which']===_0x4cfe(0x130)),_0x543686=_0x29887b[_0x4cfe(0x11c)][_0x4cfe(0x125)]?.[0x0]||'',_0x1f5676=_0x29887b[_0x4cfe(0x11c)][_0x4cfe(0x12b)]?.[0x0]||'No\x20Subject';if(_0x474eb9[_0x4cfe(0x118)][_0x4cfe(0x11d)]>0x0){const _0x18e6c6=_0x543686[_0x4cfe(0x11a)](/<(.+)>/)?.[0x1]||_0x543686;if(!_0x474eb9['allowedSenders'][_0x4cfe(0x103)](_0x18e6c6)){a13_0x4eafb9[_0x4cfe(0x11b)]('[Email]\x20Ignored\x20mail\x20from\x20'+_0x543686+_0x4cfe(0xfc));continue;}}const _0x200ed9=_0x1cea24[_0x4cfe(0x115)][_0x4cfe(0x102)](_0x5bb43f=>_0x5bb43f[_0x4cfe(0x122)]===_0x4cfe(0x12f)),_0x17d05d=_0x200ed9?.['body']||'';a13_0x4eafb9[_0x4cfe(0xff)](_0x4cfe(0xfd)+_0x543686+_0x4cfe(0x104)+_0x1f5676);try{const _0xed2cb6=_0x4cfe(0x108)+_0x543686+_0x4cfe(0x126)+_0x1f5676+'\x0aBody:\x0a'+_0x17d05d+_0x4cfe(0x12e),_0x548fd1=await sendChatMessage(getSelectedModel(),[{'role':_0x4cfe(0x113),'content':_0xed2cb6}]),_0x5d2dce=a13_0x1032ae[_0x4cfe(0x121)](_0x474eb9['smtp']);await _0x5d2dce[_0x4cfe(0x109)]({'from':_0x474eb9[_0x4cfe(0x100)][_0x4cfe(0x127)][_0x4cfe(0x113)],'to':_0x543686,'subject':_0x4cfe(0x10c)+_0x1f5676,'text':_0x548fd1[_0x4cfe(0x114)]}),a13_0x4eafb9[_0x4cfe(0x112)](_0x4cfe(0x12a)+_0x543686);}catch(_0x2f0b11){a13_0x4eafb9[_0x4cfe(0x129)](_0x4cfe(0x123)+_0x2f0b11[_0x4cfe(0x120)]);}}_0x3d57b6[_0x4cfe(0x128)]();}catch(_0x47e28c){}}export async function startBot(){const _0x830025=a13_0x1f3e;if(!a13_0x2d1237[_0x830025(0x106)]())return![];if(isRunning)return!![];process[_0x830025(0x124)][_0x830025(0x10d)]='0',checkEmails();const _0x443065=a13_0x2d1237[_0x830025(0x10b)]()['interval']||0x5;return intervalId=setInterval(checkEmails,_0x443065*0x3c*0x3e8),isRunning=!![],!![];}export function stopBot(){intervalId&&(clearInterval(intervalId),intervalId=null),isRunning=![];}export function isBotRunning(){return isRunning;}export{isConfigured}from'./config.js';
@@ -1 +0,0 @@
1
- export declare function setupEmail(): Promise<void>;
@@ -1 +0,0 @@
1
- (function(_0x576982,_0x31cd40){const _0x1c0412=a14_0x1650,_0x551b04=_0x576982();while(!![]){try{const _0x22f3da=parseInt(_0x1c0412(0x122))/0x1+parseInt(_0x1c0412(0x123))/0x2+-parseInt(_0x1c0412(0x12e))/0x3+parseInt(_0x1c0412(0x12a))/0x4*(-parseInt(_0x1c0412(0x126))/0x5)+-parseInt(_0x1c0412(0x12c))/0x6+parseInt(_0x1c0412(0x124))/0x7+parseInt(_0x1c0412(0x127))/0x8;if(_0x22f3da===_0x31cd40)break;else _0x551b04['push'](_0x551b04['shift']());}catch(_0x17d444){_0x551b04['push'](_0x551b04['shift']());}}}(a14_0x404b,0xe130e));function a14_0x404b(){const _0x46f48d=['Configure\x20advanced\x20server\x20settings?','Restart\x20the\x20CLI\x20to\x20start\x20the\x20Email\x20Agent.','gmail','setEnabled','Password\x20(or\x20App\x20Password):','SMTP\x20Host:','addAllowedSender','toLowerCase','IMAP\x20Host:','setCredentials','SMTP\x20Port:','587','37603SXTcuG','1060802HwQVnp','12192320gIRAOp','IMAP\x20Port:','1219685PdnxQZ','10289616ngjsMk','warn','info','12HVkCIO','Only\x20allow\x20emails\x20from\x20yourself\x20(recommended)?','4793214TLkver','imap.gmail.com','3428712hlsEYR'];a14_0x404b=function(){return _0x46f48d;};return a14_0x404b();}import{password,input,confirm}from'@inquirer/prompts';import*as a14_0x4519f1 from'./config.js';function a14_0x1650(_0x256573,_0x5e07aa){_0x256573=_0x256573-0x11b;const _0x404bba=a14_0x404b();let _0x165055=_0x404bba[_0x256573];return _0x165055;}import*as a14_0x52a87d from'../ui/output.js';export async function setupEmail(){const _0x33acdf=a14_0x1650;a14_0x52a87d[_0x33acdf(0x129)]('This\x20setup\x20will\x20configure\x20Woozlit\x20to\x20check\x20your\x20email\x20and\x20reply.'),a14_0x52a87d[_0x33acdf(0x128)]('Use\x20an\x20App\x20Password\x20if\x20you\x20are\x20using\x20Gmail\x20(2FA\x20enabled).');const _0x419753=await input({'message':'Email\x20Provider\x20(gmail/outlook/other):','default':_0x33acdf(0x131)}),_0x4ae75a=await input({'message':'Email\x20Address:'}),_0x1e4472=await password({'message':_0x33acdf(0x133)});let _0x9c3886=_0x33acdf(0x12d),_0x5b884d=0x3e1,_0x154813='smtp.gmail.com',_0x39ca8a=0x24b;if(_0x419753[_0x33acdf(0x11d)]()!==_0x33acdf(0x131)){const _0x1ce7f2=await confirm({'message':_0x33acdf(0x12f),'default':![]});if(_0x1ce7f2){_0x9c3886=await input({'message':_0x33acdf(0x11e),'default':_0x9c3886});const _0x3b4e81=await input({'message':_0x33acdf(0x125),'default':'993'});_0x5b884d=parseInt(_0x3b4e81),_0x154813=await input({'message':_0x33acdf(0x11b),'default':_0x154813});const _0x3ba7f5=await input({'message':_0x33acdf(0x120),'default':_0x33acdf(0x121)});_0x39ca8a=parseInt(_0x3ba7f5);}}a14_0x4519f1[_0x33acdf(0x11f)](_0x4ae75a,_0x1e4472,_0x9c3886,_0x5b884d),a14_0x4519f1[_0x33acdf(0x132)](!![]);const _0x3c4ccd=await confirm({'message':_0x33acdf(0x12b),'default':!![]});if(_0x3c4ccd){a14_0x4519f1[_0x33acdf(0x11c)](_0x4ae75a);const _0x4e7e8a=await input({'message':'Your\x20personal\x20email\x20(that\x20you\x20will\x20send\x20FROM):'});if(_0x4e7e8a)a14_0x4519f1[_0x33acdf(0x11c)](_0x4e7e8a);}a14_0x52a87d['success']('Email\x20configuration\x20saved!'),a14_0x52a87d['info'](_0x33acdf(0x130));}
@@ -1,25 +0,0 @@
1
- export interface GitHubRepo {
2
- name: string;
3
- full_name: string;
4
- private: boolean;
5
- description: string | null;
6
- }
7
- export interface GitHubPR {
8
- number: number;
9
- title: string;
10
- state: string;
11
- html_url: string;
12
- }
13
- export declare function listRepos(): Promise<GitHubRepo[]>;
14
- export declare function getRepo(owner: string, repo: string): Promise<GitHubRepo>;
15
- export declare function readFile(owner: string, repo: string, path: string, branch?: string): Promise<string>;
16
- export declare function createOrUpdateFile(owner: string, repo: string, path: string, content: string, message: string, branch?: string, sha?: string): Promise<any>;
17
- export declare function createPullRequest(owner: string, repo: string, title: string, head: string, base?: string, body?: string): Promise<GitHubPR>;
18
- export declare function listPullRequests(owner: string, repo: string, state?: "open" | "closed" | "all"): Promise<GitHubPR[]>;
19
- export declare function commentOnPR(owner: string, repo: string, prNumber: number, body: string): Promise<any>;
20
- export declare function createBranch(owner: string, repo: string, branchName: string, fromBranch?: string): Promise<any>;
21
- export declare function getAppStatus(): Promise<{
22
- valid: boolean;
23
- repoCount: number;
24
- accountName?: string;
25
- }>;
@@ -1 +0,0 @@
1
- const a15_0x1ad802=a15_0x531c;(function(_0x126372,_0x3a63ea){const _0x42d8b7=a15_0x531c,_0x576238=_0x126372();while(!![]){try{const _0x404ac2=-parseInt(_0x42d8b7(0x196))/0x1*(parseInt(_0x42d8b7(0x17e))/0x2)+parseInt(_0x42d8b7(0x178))/0x3*(-parseInt(_0x42d8b7(0x18e))/0x4)+parseInt(_0x42d8b7(0x199))/0x5*(-parseInt(_0x42d8b7(0x17a))/0x6)+parseInt(_0x42d8b7(0x16e))/0x7*(parseInt(_0x42d8b7(0x16f))/0x8)+parseInt(_0x42d8b7(0x170))/0x9*(parseInt(_0x42d8b7(0x188))/0xa)+-parseInt(_0x42d8b7(0x189))/0xb*(parseInt(_0x42d8b7(0x16a))/0xc)+parseInt(_0x42d8b7(0x195))/0xd*(parseInt(_0x42d8b7(0x174))/0xe);if(_0x404ac2===_0x3a63ea)break;else _0x576238['push'](_0x576238['shift']());}catch(_0x3286fa){_0x576238['push'](_0x576238['shift']());}}}(a15_0x518d,0xbc123));import{getGitHubToken}from'./auth.js';function a15_0x518d(){const _0x4e1173=['total_count','/installation/repositories?per_page=1','344202hyIhnZ','/contents/','6nqmvkL','json','\x20-\x20','repositories','1522NHWIEu','utf-8','base64','from','sha','text','main','https://api.github.com','/git/refs','/user/repos?per_page=100&sort=updated','116530XbGFGs','1122FAKQEj','stringify','GitHub\x20API\x20error:\x20','/repos/','GitHub\x20App','28kOygxy','2022-11-28','/pulls','refs/heads/','Bearer\x20','PUT','?ref=','91JFijgz','1507xayXou','length','login','6832190buyGlb','66576IsUPfa','/git/ref/heads/','/pulls?state=','content','4445574qtsFwp','8zvraeY','1053slAzDs','POST','/issues/','headers','5308310IbHZqL','&per_page=50'];a15_0x518d=function(){return _0x4e1173;};return a15_0x518d();}async function githubRequest(_0x36100a,_0x35856b={}){const _0xe5ebf4=a15_0x531c,_0x4b5855=await getGitHubToken();if(!_0x4b5855)throw new Error('Not\x20authenticated\x20with\x20GitHub.\x20Run\x20\x27/github\x20login\x27\x20first.');const _0x3f4212=await fetch(_0xe5ebf4(0x185)+_0x36100a,{..._0x35856b,'headers':{'Authorization':_0xe5ebf4(0x192)+_0x4b5855,'Accept':'application/vnd.github+json','X-GitHub-Api-Version':_0xe5ebf4(0x18f),..._0x35856b[_0xe5ebf4(0x173)]}});if(!_0x3f4212['ok']){const _0x300a0d=await _0x3f4212[_0xe5ebf4(0x183)]();throw new Error(_0xe5ebf4(0x18b)+_0x3f4212['status']+_0xe5ebf4(0x17c)+_0x300a0d);}return _0x3f4212[_0xe5ebf4(0x17b)]();}export async function listRepos(){const _0x4aaae0=a15_0x531c;return githubRequest(_0x4aaae0(0x187));}function a15_0x531c(_0x2135d2,_0x5e14de){_0x2135d2=_0x2135d2-0x16a;const _0x518d21=a15_0x518d();let _0x531cf8=_0x518d21[_0x2135d2];return _0x531cf8;}export async function getRepo(_0x14c7c2,_0x33bc9c){const _0x4d235d=a15_0x531c;return githubRequest(_0x4d235d(0x18c)+_0x14c7c2+'/'+_0x33bc9c);}export async function readFile(_0x3ff58d,_0x3e4d8f,_0x24abf3,_0x3e3d6d=a15_0x1ad802(0x184)){const _0x232257=a15_0x1ad802,_0x4b2d2c=await githubRequest('/repos/'+_0x3ff58d+'/'+_0x3e4d8f+_0x232257(0x179)+_0x24abf3+_0x232257(0x194)+_0x3e3d6d),_0x5ce8ff=Buffer[_0x232257(0x181)](_0x4b2d2c[_0x232257(0x16d)],_0x232257(0x180))['toString'](_0x232257(0x17f));return _0x5ce8ff;}export async function createOrUpdateFile(_0x5d177c,_0x486cc9,_0x2f193e,_0x319378,_0x5ac144,_0x5404e2='main',_0x392e71){const _0x2bcd08=a15_0x1ad802,_0x4275c8=Buffer['from'](_0x319378)['toString'](_0x2bcd08(0x180));return githubRequest(_0x2bcd08(0x18c)+_0x5d177c+'/'+_0x486cc9+_0x2bcd08(0x179)+_0x2f193e,{'method':_0x2bcd08(0x193),'body':JSON[_0x2bcd08(0x18a)]({'message':_0x5ac144,'content':_0x4275c8,'branch':_0x5404e2,..._0x392e71&&{'sha':_0x392e71}})});}export async function createPullRequest(_0x5a86ab,_0x14b6a7,_0x2ff80e,_0x402a7f,_0x5ea36f=a15_0x1ad802(0x184),_0x19676f){const _0x403fff=a15_0x1ad802;return githubRequest(_0x403fff(0x18c)+_0x5a86ab+'/'+_0x14b6a7+_0x403fff(0x190),{'method':'POST','body':JSON[_0x403fff(0x18a)]({'title':_0x2ff80e,'head':_0x402a7f,'base':_0x5ea36f,'body':_0x19676f||''})});}export async function listPullRequests(_0x9baa39,_0x3fe320,_0x2eb303='open'){const _0x1871aa=a15_0x1ad802;return githubRequest(_0x1871aa(0x18c)+_0x9baa39+'/'+_0x3fe320+_0x1871aa(0x16c)+_0x2eb303+_0x1871aa(0x175));}export async function commentOnPR(_0xa67ade,_0x3129f6,_0x33b38f,_0x4aafb0){const _0x54819e=a15_0x1ad802;return githubRequest(_0x54819e(0x18c)+_0xa67ade+'/'+_0x3129f6+_0x54819e(0x172)+_0x33b38f+'/comments',{'method':_0x54819e(0x171),'body':JSON[_0x54819e(0x18a)]({'body':_0x4aafb0})});}export async function createBranch(_0x437281,_0x3acd42,_0x4f0df9,_0x36cdfc='main'){const _0x17eb20=a15_0x1ad802,_0x55633f=await githubRequest(_0x17eb20(0x18c)+_0x437281+'/'+_0x3acd42+_0x17eb20(0x16b)+_0x36cdfc);return githubRequest(_0x17eb20(0x18c)+_0x437281+'/'+_0x3acd42+_0x17eb20(0x186),{'method':'POST','body':JSON['stringify']({'ref':_0x17eb20(0x191)+_0x4f0df9,'sha':_0x55633f['object'][_0x17eb20(0x182)]})});}export async function getAppStatus(){const _0x445e22=a15_0x1ad802;try{const _0x40f978=await githubRequest(_0x445e22(0x177)),_0x23e4fe=_0x40f978[_0x445e22(0x176)];let _0xa3408=_0x445e22(0x18d);return _0x40f978[_0x445e22(0x17d)]&&_0x40f978[_0x445e22(0x17d)][_0x445e22(0x197)]>0x0&&(_0xa3408=_0x40f978[_0x445e22(0x17d)][0x0]['owner'][_0x445e22(0x198)]),{'valid':!![],'repoCount':_0x23e4fe,'accountName':_0xa3408};}catch(_0x47653c){throw _0x47653c;}}
@@ -1,4 +0,0 @@
1
- export declare function getGitHubToken(): Promise<string | null>;
2
- export declare function isGitHubAuthenticated(): Promise<boolean>;
3
- export declare function loginGitHub(): Promise<void>;
4
- export declare function logoutGitHub(): Promise<void>;
@@ -1 +0,0 @@
1
- const a16_0x8933a2=a16_0x286f;(function(_0x20355e,_0x5427d0){const _0x4120e7=a16_0x286f,_0x54d4b0=_0x20355e();while(!![]){try{const _0x32c865=-parseInt(_0x4120e7(0x1f5))/0x1+parseInt(_0x4120e7(0x20d))/0x2*(parseInt(_0x4120e7(0x1ed))/0x3)+parseInt(_0x4120e7(0x1f9))/0x4+-parseInt(_0x4120e7(0x1f4))/0x5*(parseInt(_0x4120e7(0x1f2))/0x6)+-parseInt(_0x4120e7(0x1f0))/0x7*(-parseInt(_0x4120e7(0x1ff))/0x8)+-parseInt(_0x4120e7(0x204))/0x9+parseInt(_0x4120e7(0x209))/0xa*(-parseInt(_0x4120e7(0x1f8))/0xb);if(_0x32c865===_0x5427d0)break;else _0x54d4b0['push'](_0x54d4b0['shift']());}catch(_0x3c7fa2){_0x54d4b0['push'](_0x54d4b0['shift']());}}}(a16_0x4f99,0x20d31));import{promises as a16_0xf571d}from'fs';import{join}from'path';import{createAppAuth}from'@octokit/auth-app';import{homedir}from'os';const GLOBAL_CONFIG_DIR=join(homedir(),'.woozlit'),CONFIG_FILE=join(GLOBAL_CONFIG_DIR,a16_0x8933a2(0x202)),KEY_FILE=join(GLOBAL_CONFIG_DIR,a16_0x8933a2(0x1f7));let appAuth=null,installationToken=null;async function getGitHubAppConfig(){const _0x43408c=a16_0x8933a2;try{const _0x15f408=await a16_0xf571d[_0x43408c(0x208)](CONFIG_FILE)[_0x43408c(0x1fd)](()=>!![])['catch'](()=>![]),_0xa84fb4=await a16_0xf571d['access'](KEY_FILE)[_0x43408c(0x1fd)](()=>!![])['catch'](()=>![]);if(!_0x15f408||!_0xa84fb4)return null;const _0x39d2d8=await a16_0xf571d[_0x43408c(0x1f1)](CONFIG_FILE,_0x43408c(0x207)),{appId:_0x3a5d9b,installationId:_0x3c0e0c}=JSON[_0x43408c(0x200)](_0x39d2d8),_0xe06f38=await a16_0xf571d[_0x43408c(0x1f1)](KEY_FILE,_0x43408c(0x207));if(!_0x3a5d9b||!_0x3c0e0c||!_0xe06f38)return null;return{'appId':_0x3a5d9b,'privateKey':_0xe06f38,'installationId':_0x3c0e0c};}catch(_0x3bea9c){return null;}}function a16_0x4f99(){const _0x348aa0=['756728iILDdO','readFile','474YAfCrw','❌\x20Authentication\x20failed:','11065Pzywoe','71934AOVAJq','Error\x20clearing\x20session:','github-app.pem','2981dueKrJ','766708ievZhE','Try\x20running\x20/github\x20setup\x20again','appId','GitHub\x20App\x20not\x20configured.\x20Run\x20/github\x20setup','then','expiresAt','8HCFTVV','parse','Run\x20/github\x20setup\x20to\x20configure\x20automatically','github-app-config.json','GitHub\x20App\x20auth\x20failed:','226485kUvszG','✓\x20GitHub\x20session\x20cleared','log','utf8','access','3270ErKapo','✓\x20GitHub\x20App\x20authenticated!','catch','\x0a❌\x20GitHub\x20App\x20not\x20configured','22966RWczkN','unlink','51GasJSZ','You\x20can\x20now\x20access\x20private\x20repositories','error'];a16_0x4f99=function(){return _0x348aa0;};return a16_0x4f99();}async function initAppAuth(){const _0x136786=a16_0x8933a2;if(appAuth)return;const _0x2596b5=await getGitHubAppConfig();if(!_0x2596b5)throw new Error(_0x136786(0x1fc));appAuth=createAppAuth({'appId':_0x2596b5[_0x136786(0x1fb)],'privateKey':_0x2596b5['privateKey'],'installationId':_0x2596b5['installationId']});}async function getInstallationToken(){const _0x352edb=a16_0x8933a2;await initAppAuth();if(installationToken&&installationToken[_0x352edb(0x1fe)]>new Date())return installationToken['token'];const {token:_0x3c4e47,expiresAt:_0x242f0f}=await appAuth({'type':'installation'});return installationToken={'token':_0x3c4e47,'expiresAt':new Date(_0x242f0f)},_0x3c4e47;}export async function getGitHubToken(){const _0x16ea3d=a16_0x8933a2;try{return await getInstallationToken();}catch(_0x54d850){return console[_0x16ea3d(0x1ef)](_0x16ea3d(0x203),_0x54d850),null;}}function a16_0x286f(_0x2fb994,_0xf5751a){_0x2fb994=_0x2fb994-0x1ed;const _0x4f99e7=a16_0x4f99();let _0x286fe6=_0x4f99e7[_0x2fb994];return _0x286fe6;}export async function isGitHubAuthenticated(){const _0x653034=await getGitHubAppConfig();return _0x653034!==null;}export async function loginGitHub(){const _0x36d5f6=a16_0x8933a2,_0x330096=await getGitHubAppConfig();if(!_0x330096){console[_0x36d5f6(0x206)](_0x36d5f6(0x20c)),console[_0x36d5f6(0x206)](_0x36d5f6(0x201));return;}try{const _0x33583a=await getInstallationToken();console[_0x36d5f6(0x206)](_0x36d5f6(0x20a)),console[_0x36d5f6(0x206)](_0x36d5f6(0x1ee));}catch(_0x596674){console[_0x36d5f6(0x1ef)](_0x36d5f6(0x1f3),_0x596674),console[_0x36d5f6(0x206)](_0x36d5f6(0x1fa));}}export async function logoutGitHub(){const _0x489e1e=a16_0x8933a2;try{await a16_0xf571d[_0x489e1e(0x20e)](CONFIG_FILE)[_0x489e1e(0x20b)](()=>{}),await a16_0xf571d['unlink'](KEY_FILE)[_0x489e1e(0x20b)](()=>{}),installationToken=null,appAuth=null,console[_0x489e1e(0x206)](_0x489e1e(0x205));}catch(_0x11e9b1){console[_0x489e1e(0x1ef)](_0x489e1e(0x1f6),_0x11e9b1);}}
@@ -1 +0,0 @@
1
- export declare function autoSetupGitHub(): Promise<void>;
@@ -1 +0,0 @@
1
- (function(_0x37599a,_0x2d339a){const _0x470682=a17_0x2ef3,_0x27b6fc=_0x37599a();while(!![]){try{const _0x4b2731=-parseInt(_0x470682(0x1f5))/0x1*(-parseInt(_0x470682(0x211))/0x2)+-parseInt(_0x470682(0x20e))/0x3+-parseInt(_0x470682(0x1fb))/0x4*(parseInt(_0x470682(0x1e0))/0x5)+-parseInt(_0x470682(0x215))/0x6*(-parseInt(_0x470682(0x21a))/0x7)+parseInt(_0x470682(0x1d2))/0x8+parseInt(_0x470682(0x205))/0x9*(parseInt(_0x470682(0x213))/0xa)+-parseInt(_0x470682(0x1e3))/0xb;if(_0x4b2731===_0x2d339a)break;else _0x27b6fc['push'](_0x27b6fc['shift']());}catch(_0x311cde){_0x27b6fc['push'](_0x27b6fc['shift']());}}}(a17_0xe029,0x923d2));import{promises as a17_0xc26098}from'fs';import{join}from'path';import*as a17_0x3324e5 from'../ui/output.js';import{createServer}from'http';import a17_0x3d5199 from'open';import{homedir}from'os';import{createAppAuth}from'@octokit/auth-app';import{input}from'@inquirer/prompts';function a17_0x2ef3(_0x4eeac5,_0x3a2831){_0x4eeac5=_0x4eeac5-0x1d1;const _0xe0295a=a17_0xe029();let _0x2ef370=_0xe0295a[_0x4eeac5];return _0x2ef370;}async function createGitHubAppManifestFlow(){return new Promise(async(_0x260ae7,_0x3680ae)=>{const _0x159641=a17_0x2ef3;let _0x1e0376=![];const _0x44d572=createServer(async(_0x145c97,_0x6dcc27)=>{const _0x56d9ee=a17_0x2ef3;if(_0x145c97['url']===_0x56d9ee(0x1de)){_0x6dcc27[_0x56d9ee(0x203)](0x194),_0x6dcc27['end']();return;}a17_0x3324e5[_0x56d9ee(0x1e2)]('Received\x20request:\x20'+_0x145c97[_0x56d9ee(0x216)]+'\x20'+_0x145c97[_0x56d9ee(0x202)]);const _0x31c54e=new URL(_0x145c97[_0x56d9ee(0x202)]||'/',_0x56d9ee(0x1d4)),_0x1378b8=_0x31c54e['searchParams'][_0x56d9ee(0x20f)](_0x56d9ee(0x212));_0x1378b8?(_0x6dcc27['writeHead'](0xc8,{'Content-Type':_0x56d9ee(0x21c)}),_0x6dcc27[_0x56d9ee(0x1fa)](_0x56d9ee(0x1da)),_0x6dcc27[_0x56d9ee(0x1eb)](),!_0x1e0376&&(_0x1e0376=!![],_0x44d572[_0x56d9ee(0x207)](),_0x220a96(_0x1378b8))):(_0x6dcc27[_0x56d9ee(0x203)](0x190),_0x6dcc27[_0x56d9ee(0x1fa)](_0x56d9ee(0x219)));}),_0x220a96=async _0x3ea8d4=>{const _0x51ecab=a17_0x2ef3;try{a17_0x3324e5['info'](_0x51ecab(0x1f9));const _0x126a4a=await fetch(_0x51ecab(0x1d9)+_0x3ea8d4+'/conversions',{'method':'POST','headers':{'Accept':_0x51ecab(0x20a)}});if(!_0x126a4a['ok'])throw new Error('Failed\x20to\x20exchange\x20code:\x20'+await _0x126a4a['text']());const _0x28097c=await _0x126a4a['json']();_0x260ae7(_0x28097c);}catch(_0x572855){_0x3680ae(_0x572855);}};_0x44d572[_0x159641(0x20b)](0xbb8,_0x159641(0x210),async()=>{const _0xe3e72b=_0x159641,_0x249215={'name':'Woozlit\x20CLI\x20'+Date[_0xe3e72b(0x1ec)](),'url':_0xe3e72b(0x1d4),'hook_attributes':{'url':_0xe3e72b(0x1f6)},'redirect_url':'http://127.0.0.1:3000/callback','public':![],'default_permissions':{'contents':_0xe3e72b(0x218),'pull_requests':'write','metadata':_0xe3e72b(0x1d1)},'default_events':[]},_0x101cbd=new URLSearchParams({'manifest':JSON[_0xe3e72b(0x1f3)](_0x249215)}),_0x3473d7=_0xe3e72b(0x1e8)+_0x101cbd[_0xe3e72b(0x1d8)]();a17_0x3324e5['info'](_0xe3e72b(0x1e5)),a17_0x3324e5['dim'](_0xe3e72b(0x1dd)+_0x3473d7);try{await a17_0x3d5199(_0x3473d7),a17_0x3324e5[_0xe3e72b(0x201)](_0xe3e72b(0x1db)),a17_0x3324e5[_0xe3e72b(0x209)](_0xe3e72b(0x20c)),a17_0x3324e5[_0xe3e72b(0x1e2)](_0xe3e72b(0x1df));try{const _0x2c75d7=await input({'message':_0xe3e72b(0x21b),'transformer':_0x364332=>_0x364332[_0xe3e72b(0x1dc)]()});_0x2c75d7&&!_0x1e0376&&(_0x1e0376=!![],_0x44d572[_0xe3e72b(0x207)](),_0x220a96(_0x2c75d7));}catch(_0x11dd76){}}catch(_0x239931){a17_0x3324e5[_0xe3e72b(0x1ee)](_0xe3e72b(0x214)),a17_0x3324e5[_0xe3e72b(0x209)]('Please\x20visit\x20this\x20URL\x20manually:\x0a'+_0x3473d7);}}),_0x44d572['on'](_0x159641(0x1ee),_0x5de005=>{const _0x125207=_0x159641;a17_0x3324e5[_0x125207(0x1ee)]('Server\x20error:\x20'+_0x5de005),_0x3680ae(_0x5de005);});});}async function saveConfig(_0x4d6046,_0x2c471a,_0x3b51c0){const _0x5e347c=a17_0x2ef3,_0x4abce8=join(homedir(),_0x5e347c(0x1ef));try{await a17_0xc26098[_0x5e347c(0x1d6)](_0x4abce8);}catch{await a17_0xc26098[_0x5e347c(0x1e7)](_0x4abce8,{'recursive':!![]});}const _0x237ae5=join(_0x4abce8,_0x5e347c(0x1d7)),_0x37bd05=join(_0x4abce8,_0x5e347c(0x1e1));await a17_0xc26098[_0x5e347c(0x1e6)](_0x37bd05,_0x2c471a,_0x5e347c(0x1e9)),await a17_0xc26098[_0x5e347c(0x1e6)](_0x237ae5,JSON['stringify']({'appId':_0x4d6046,'installationId':_0x3b51c0},null,0x2),_0x5e347c(0x1e9));}async function installAppIfNeeded(_0x36c505){const _0x4b350f=a17_0x2ef3;a17_0x3324e5[_0x4b350f(0x209)](_0x4b350f(0x1f1));const _0x30af05=createAppAuth({'appId':_0x36c505['id'],'privateKey':_0x36c505[_0x4b350f(0x1fd)]});try{const {data:_0x5344d4}=await _0x30af05[_0x4b350f(0x204)]((_0xc6fd27,_0x27c580)=>_0xc6fd27(_0x27c580),{'method':_0x4b350f(0x1f0),'url':_0x4b350f(0x200)});if(_0x5344d4&&_0x5344d4[_0x4b350f(0x217)]>0x0)return _0x5344d4[0x0]['id'];}catch(_0x356698){}a17_0x3324e5[_0x4b350f(0x209)](_0x4b350f(0x1fc)),a17_0x3324e5[_0x4b350f(0x209)](_0x4b350f(0x1ff));const _0x1caa8f=_0x36c505['html_url']+_0x4b350f(0x1f7);await a17_0x3d5199(_0x1caa8f),a17_0x3324e5[_0x4b350f(0x209)](_0x4b350f(0x1f8)+_0x1caa8f),a17_0x3324e5[_0x4b350f(0x209)](_0x4b350f(0x208)),await new Promise(_0x364eb7=>process[_0x4b350f(0x20d)][_0x4b350f(0x1e4)]('data',_0x364eb7));const _0xb70066=createAppAuth({'appId':_0x36c505['id'],'privateKey':_0x36c505[_0x4b350f(0x1fd)]}),{data:_0x349e05}=await _0xb70066[_0x4b350f(0x204)]((_0x4f4326,_0x3b2416)=>_0x4f4326(_0x3b2416),{'method':'GET','url':_0x4b350f(0x200)});if(_0x349e05&&_0x349e05[_0x4b350f(0x217)]>0x0)return _0x349e05[0x0]['id'];throw new Error('Could\x20not\x20find\x20installation.\x20Please\x20try\x20again.');}function a17_0xe029(){const _0x2e7477=['2391904nBIeNI','\x0aYou\x20can\x20try\x20manual\x20setup\x20with:\x20/github\x20manual','http://127.0.0.1:3000','GitHub\x20App\x20Auto-Setup','access','github-app-config.json','toString','https://api.github.com/app-manifests/','<h1>Setup\x20Complete!</h1><p>You\x20can\x20close\x20this\x20tab\x20and\x20return\x20to\x20the\x20terminal.</p>','Browser\x20opened!\x20Please\x20click\x20\x22Create\x20GitHub\x20App\x22\x20on\x20the\x20page.','trim','Url:\x20','/favicon.ico','(If\x20nothing\x20happens,\x20copy\x20the\x20\x22code\x22\x20parameter\x20from\x20the\x20browser\x20URL\x20address\x20bar\x20and\x20paste\x20it\x20below,\x20or\x20simply\x20press\x20Enter\x20to\x20start\x20manual\x20entry)','45EwicJp','github-app.pem','dim','3171663AxapRt','once','Step\x201:\x20Opening\x20GitHub\x20to\x20create\x20App...','writeFile','mkdir','https://github.com/settings/apps/new?','utf8','\x0aSetup\x20failed:\x20','destroy','now','This\x20will\x20create\x20a\x20GitHub\x20App\x20automatically\x20via\x20Manifest\x20Flow\x0a','error','.woozlit','GET','\x0aStep\x203:\x20Checking\x20installation...','header','stringify','App\x20ID:\x20','13vKrxaK','http://127.0.0.1:3000/webhook','/installations/new','Opened:\x20','\x0aStep\x202:\x20Registering\x20GitHub\x20App...','end','62940QuIKtV','App\x20created\x20but\x20not\x20installed\x20yet.','pem','App\x20Name:\x20','Please\x20install\x20the\x20app\x20on\x20your\x20account/repositories.','/app/installations','success','url','writeHead','hook','18AgfWWV','name','close','Press\x20Enter\x20after\x20you\x20have\x20installed\x20the\x20app...','info','application/vnd.github+json','listen','\x0awaiting\x20for\x20browser\x20callback...','stdin','3147387dwGIwX','get','127.0.0.1','4762IxLvaX','code','3405190eifhZq','Failed\x20to\x20open\x20browser\x20automatically.','156ztdgmx','method','length','write','No\x20code\x20found','287294iOpLbP','Paste\x20code\x20(or\x20wait\x20for\x20automatic\x20redirect):','text/html','\x0a✓\x20GitHub\x20App\x20setup\x20complete!','✓\x20App\x20installed!','read'];a17_0xe029=function(){return _0x2e7477;};return a17_0xe029();}export async function autoSetupGitHub(){const _0x1cb317=a17_0x2ef3;a17_0x3324e5[_0x1cb317(0x1f2)](_0x1cb317(0x1d5)),a17_0x3324e5[_0x1cb317(0x1e2)](_0x1cb317(0x1ed));try{const _0x22fe5c=await createGitHubAppManifestFlow();a17_0x3324e5[_0x1cb317(0x201)]('\x0a✓\x20GitHub\x20App\x20created!');const _0x11093d=await installAppIfNeeded(_0x22fe5c);a17_0x3324e5[_0x1cb317(0x201)](_0x1cb317(0x21e)),a17_0x3324e5[_0x1cb317(0x209)]('\x0aStep\x204:\x20Saving\x20configuration...'),await saveConfig(_0x22fe5c['id'],_0x22fe5c['pem'],_0x11093d),a17_0x3324e5['success'](_0x1cb317(0x21d)),a17_0x3324e5[_0x1cb317(0x1e2)](_0x1cb317(0x1f4)+_0x22fe5c['id']),a17_0x3324e5['dim'](_0x1cb317(0x1fe)+_0x22fe5c[_0x1cb317(0x206)]),a17_0x3324e5[_0x1cb317(0x1e2)]('Configuration\x20saved\x20globally\x20to\x20~/.woozlit/'),a17_0x3324e5[_0x1cb317(0x201)]('You\x20can\x20now\x20access\x20private\x20repositories!');}catch(_0x35dec1){a17_0x3324e5['error'](_0x1cb317(0x1ea)+_0x35dec1),a17_0x3324e5['dim'](_0x1cb317(0x1d3)),process['exit'](0x1);}}
@@ -1 +0,0 @@
1
- export declare function handleGitHubCommand(subCmd: string): Promise<void>;
@@ -1 +0,0 @@
1
- function a18_0x470f(_0x1bd596,_0x5c247a){_0x1bd596=_0x1bd596-0x1a4;const _0x285e90=a18_0x285e();let _0x470fa8=_0x285e90[_0x1bd596];return _0x470fa8;}(function(_0x1a9b77,_0x2cc469){const _0x185563=a18_0x470f,_0x2fb2a9=_0x1a9b77();while(!![]){try{const _0x106813=parseInt(_0x185563(0x1be))/0x1*(parseInt(_0x185563(0x1ae))/0x2)+-parseInt(_0x185563(0x1bc))/0x3*(-parseInt(_0x185563(0x1a9))/0x4)+parseInt(_0x185563(0x1ba))/0x5*(parseInt(_0x185563(0x1c3))/0x6)+-parseInt(_0x185563(0x1b7))/0x7*(-parseInt(_0x185563(0x1d0))/0x8)+-parseInt(_0x185563(0x1ce))/0x9+-parseInt(_0x185563(0x1b8))/0xa*(-parseInt(_0x185563(0x1b5))/0xb)+-parseInt(_0x185563(0x1b3))/0xc*(parseInt(_0x185563(0x1b9))/0xd);if(_0x106813===_0x2cc469)break;else _0x2fb2a9['push'](_0x2fb2a9['shift']());}catch(_0x8028c7){_0x2fb2a9['push'](_0x2fb2a9['shift']());}}}(a18_0x285e,0x5ef6c));import*as a18_0x346838 from'../ui/output.js';import{loginGitHub,logoutGitHub,isGitHubAuthenticated}from'./auth.js';import{listRepos}from'./api.js';import{autoSetupGitHub}from'./auto-setup.js';import{manualSetupGitHub}from'./manual-setup.js';export async function handleGitHubCommand(_0x3079d7){const _0x327700=a18_0x470f;if(_0x3079d7===_0x327700(0x1d2)){await autoSetupGitHub();return;}if(_0x3079d7==='manual'||_0x3079d7===_0x327700(0x1af)){await manualSetupGitHub();return;}if(_0x3079d7===_0x327700(0x1cf)){await loginGitHub();return;}if(_0x3079d7===_0x327700(0x1b6)){await logoutGitHub();return;}if(_0x3079d7===_0x327700(0x1ad)){const _0x4a62d4=await isGitHubAuthenticated();if(_0x4a62d4)try{const {getAppStatus:_0x368641}=await import('./api.js'),_0x59b9d2=await _0x368641();a18_0x346838['success'](_0x327700(0x1a4)),_0x59b9d2[_0x327700(0x1c8)]&&a18_0x346838[_0x327700(0x1d1)](_0x327700(0x1bb)+_0x59b9d2[_0x327700(0x1c8)]),a18_0x346838[_0x327700(0x1ab)](_0x327700(0x1bf)+_0x59b9d2[_0x327700(0x1b4)]+_0x327700(0x1c6));}catch(_0x45a649){a18_0x346838['warn'](_0x327700(0x1c1)+_0x45a649);}else a18_0x346838[_0x327700(0x1ab)]('Not\x20logged\x20in\x20to\x20GitHub\x20App');return;}if(_0x3079d7===_0x327700(0x1c4)){const _0x2adea3=await isGitHubAuthenticated();if(!_0x2adea3){a18_0x346838[_0x327700(0x1c5)](_0x327700(0x1c9));return;}a18_0x346838[_0x327700(0x1c7)](_0x327700(0x1ca));const _0x585464=a18_0x346838[_0x327700(0x1a6)](_0x327700(0x1a8));_0x585464[_0x327700(0x1d3)]();try{const _0x2503fe=await listRepos();_0x585464[_0x327700(0x1b2)](),_0x2503fe[_0x327700(0x1b0)](0x0,0xa)['forEach'](_0x485166=>{const _0x49bc1b=_0x327700,_0x2771ad=_0x485166[_0x49bc1b(0x1cc)]?_0x49bc1b(0x1bd):_0x49bc1b(0x1d4);a18_0x346838[_0x49bc1b(0x1ab)]('\x20\x20'+_0x485166[_0x49bc1b(0x1c0)]+'\x20'+_0x2771ad);}),_0x2503fe[_0x327700(0x1c2)]>0xa&&a18_0x346838[_0x327700(0x1ab)](_0x327700(0x1b1)+(_0x2503fe['length']-0xa)+_0x327700(0x1ac));}catch(_0x3edd81){_0x585464[_0x327700(0x1b2)](),a18_0x346838[_0x327700(0x1c5)](_0x327700(0x1d5)+_0x3edd81);}return;}a18_0x346838[_0x327700(0x1c7)](_0x327700(0x1a7)),a18_0x346838[_0x327700(0x1ab)](_0x327700(0x1a5)),a18_0x346838[_0x327700(0x1ab)](_0x327700(0x1cb)),a18_0x346838[_0x327700(0x1ab)](_0x327700(0x1cd)),a18_0x346838[_0x327700(0x1ab)](_0x327700(0x1aa)),a18_0x346838[_0x327700(0x1ab)]('\x20\x20/github\x20repos\x20\x20\x20-\x20List\x20your\x20repositories\x20(including\x20private)');}function a18_0x285e(){const _0x4f5dee=['(public)','Failed\x20to\x20fetch\x20repos:\x20','✓\x20Authenticated\x20as\x20GitHub\x20App','\x20\x20/github\x20setup\x20\x20\x20-\x20Auto-create\x20GitHub\x20App\x20(recommended)','createSpinner','GitHub\x20Commands','Fetching\x20repos...','4EGzGOZ','\x20\x20/github\x20status\x20\x20-\x20Check\x20authentication\x20status','dim','\x20more','status','1519870KDhEnw','config','slice','\x20\x20...\x20and\x20','stop','1918164AqMNdU','repoCount','755381wnpZOw','logout','689997bnmjhu','50AcGcgJ','65Roflgl','130HnbKsn','Installed\x20on\x20account:\x20','1206747ibiymO','(private)','1lgjXxP','Access\x20to\x20','full_name','Token\x20may\x20be\x20invalid\x20or\x20app\x20has\x20no\x20repo\x20access:\x20','length','378MAOKvg','repos','error','\x20repositories','header','accountName','Not\x20logged\x20in.\x20Run\x20\x27/github\x20setup\x27\x20first','Your\x20GitHub\x20Repositories','\x20\x20/github\x20login\x20\x20\x20-\x20Test\x20GitHub\x20App\x20authentication','private','\x20\x20/github\x20logout\x20\x20-\x20Clear\x20GitHub\x20App\x20credentials','5532147fjRQdH','login','24TUZjyi','info','setup','start'];a18_0x285e=function(){return _0x4f5dee;};return a18_0x285e();}
@@ -1 +0,0 @@
1
- export declare function manualSetupGitHub(): Promise<void>;
@@ -1 +0,0 @@
1
- (function(_0x5bc20d,_0x5203ef){const _0x3597b1=a19_0x19ae,_0x9ff27a=_0x5bc20d();while(!![]){try{const _0x163aa7=-parseInt(_0x3597b1(0xb1))/0x1+-parseInt(_0x3597b1(0xb5))/0x2+-parseInt(_0x3597b1(0xa8))/0x3*(parseInt(_0x3597b1(0xb7))/0x4)+-parseInt(_0x3597b1(0xad))/0x5*(-parseInt(_0x3597b1(0xba))/0x6)+parseInt(_0x3597b1(0xa2))/0x7*(parseInt(_0x3597b1(0xa9))/0x8)+-parseInt(_0x3597b1(0x9f))/0x9+-parseInt(_0x3597b1(0xb2))/0xa*(-parseInt(_0x3597b1(0xab))/0xb);if(_0x163aa7===_0x5203ef)break;else _0x9ff27a['push'](_0x9ff27a['shift']());}catch(_0x433c3e){_0x9ff27a['push'](_0x9ff27a['shift']());}}}(a19_0x69b3,0xc3a83));import{promises as a19_0x196880}from'fs';import{join}from'path';import*as a19_0x2c603e from'../ui/output.js';import{homedir}from'os';function a19_0x19ae(_0x4aebd9,_0x1459b9){_0x4aebd9=_0x4aebd9-0x98;const _0x69b331=a19_0x69b3();let _0x19ae7e=_0x69b331[_0x4aebd9];return _0x19ae7e;}import{input,editor}from'@inquirer/prompts';async function saveConfig(_0x4b7e89,_0x52a57e,_0xc5cff8){const _0x11476e=a19_0x19ae,_0x2d4315=join(homedir(),'.woozlit');try{await a19_0x196880[_0x11476e(0xb9)](_0x2d4315);}catch{await a19_0x196880[_0x11476e(0x9a)](_0x2d4315,{'recursive':!![]});}const _0x4f76de=join(_0x2d4315,_0x11476e(0xa4)),_0xc851fc=join(_0x2d4315,_0x11476e(0x9c));await a19_0x196880['writeFile'](_0xc851fc,_0x52a57e,'utf8'),await a19_0x196880[_0x11476e(0xae)](_0x4f76de,JSON['stringify']({'appId':_0x4b7e89,'installationId':_0xc5cff8},null,0x2),_0x11476e(0xb8));}function a19_0x69b3(){const _0x1c2f0a=['Paste\x20the\x20entire\x20content\x20of\x20your\x20.pem\x20file,\x20save,\x20and\x20close.','404243uRJYAF','\x0aSetup\x20failed:\x20','github-app-config.json','success','\x0aSaving\x20configuration...','length','3IByXDO','136Skhuss','info','1219339mQkKaX','Invalid\x20PEM\x20format','56590QntekJ','writeFile','To\x20verify,\x20run:\x20/github\x20status','Enter\x20your\x20existing\x20GitHub\x20App\x20credentials\x20manually.\x0a','611016kqFWDK','110YTupRc','\x0a✓\x20Configuration\x20saved!','BEGIN\x20PRIVATE\x20KEY','410286SBchzA','\x0aSetup\x20cancelled.','2414092HdboIo','utf8','access','666ENOjYZ','App\x20ID\x20is\x20required','GitHub\x20App\x20Manual\x20Configuration','header','Installation\x20ID\x20is\x20required','mkdir','includes','github-app.pem','App\x20ID:','force\x20closed','11126493isGoRo','dim'];a19_0x69b3=function(){return _0x1c2f0a;};return a19_0x69b3();}export async function manualSetupGitHub(){const _0x75f8ac=a19_0x19ae;a19_0x2c603e[_0x75f8ac(0x98)](_0x75f8ac(0xbc)),a19_0x2c603e[_0x75f8ac(0xa0)](_0x75f8ac(0xb0));try{const _0xd0808=await input({'message':_0x75f8ac(0x9d),'validate':_0x509a36=>_0x509a36[_0x75f8ac(0xa7)]>0x0?!![]:_0x75f8ac(0xbb)});a19_0x2c603e[_0x75f8ac(0xaa)]('\x0aFor\x20the\x20Private\x20Key,\x20your\x20default\x20editor\x20will\x20open.'),a19_0x2c603e[_0x75f8ac(0xaa)](_0x75f8ac(0xa1)),await new Promise(_0x43222a=>setTimeout(_0x43222a,0x7d0));const _0x458e29=await editor({'message':'Private\x20Key\x20(PEM\x20format):','validate':_0x52f025=>_0x52f025[_0x75f8ac(0x9b)]('BEGIN\x20RSA\x20PRIVATE\x20KEY')||_0x52f025[_0x75f8ac(0x9b)](_0x75f8ac(0xb4))?!![]:_0x75f8ac(0xac)}),_0x2e24e3=await input({'message':'Installation\x20ID:','validate':_0x5c3151=>_0x5c3151[_0x75f8ac(0xa7)]>0x0?!![]:_0x75f8ac(0x99)});a19_0x2c603e[_0x75f8ac(0xaa)](_0x75f8ac(0xa6)),await saveConfig(_0xd0808,_0x458e29,_0x2e24e3),a19_0x2c603e[_0x75f8ac(0xa5)](_0x75f8ac(0xb3)),a19_0x2c603e[_0x75f8ac(0xa0)](_0x75f8ac(0xaf));}catch(_0x6524b1){if(_0x6524b1 instanceof Error&&_0x6524b1['message'][_0x75f8ac(0x9b)](_0x75f8ac(0x9e))){a19_0x2c603e['warn'](_0x75f8ac(0xb6));return;}a19_0x2c603e['error'](_0x75f8ac(0xa3)+_0x6524b1);}}
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- const a20_0x220fd2=a20_0x432c;(function(_0x3bfa64,_0x5ba147){const _0x1441f4=a20_0x432c,_0xc7d27d=_0x3bfa64();while(!![]){try{const _0x320daa=parseInt(_0x1441f4(0x1e0))/0x1*(-parseInt(_0x1441f4(0x180))/0x2)+-parseInt(_0x1441f4(0x1e5))/0x3*(-parseInt(_0x1441f4(0x1e7))/0x4)+-parseInt(_0x1441f4(0x187))/0x5*(parseInt(_0x1441f4(0x1a7))/0x6)+parseInt(_0x1441f4(0x198))/0x7+-parseInt(_0x1441f4(0x18d))/0x8+-parseInt(_0x1441f4(0x1d2))/0x9*(parseInt(_0x1441f4(0x1cf))/0xa)+parseInt(_0x1441f4(0x1fb))/0xb;if(_0x320daa===_0x5ba147)break;else _0xc7d27d['push'](_0xc7d27d['shift']());}catch(_0x55565b){_0xc7d27d['push'](_0xc7d27d['shift']());}}}(a20_0x3ca0,0x43659));import{Command}from'commander';import a20_0x2c18e1 from'chalk';import{login,logout,isLoggedIn}from'./auth/login.js';import{startChat}from'./chat/agent.js';import{selectModel,getSelectedModel}from'./ui/select.js';import{listRules,addRule,clearRules}from'./tools/rules.js';import{listKnowledge,addKnowledge,clearKnowledge}from'./tools/knowledge.js';import{getUser}from'./utils/storage.js';import{addMcpServer,addMcpHttpServer,removeMcpServer,clearMcpServers,getMcpServers,ensureDefaultServers,getConfigFilePath}from'./config/mcp.js';import{createFile,listDirectory}from'./tools/file.js';import*as a20_0x28bdd6 from'./ui/output.js';const VERSION=a20_0x220fd2(0x1a2),program=new Command();process[a20_0x220fd2(0x16f)][a20_0x220fd2(0x19c)]='0',program['name'](a20_0x220fd2(0x1c0))[a20_0x220fd2(0x1db)]('Woozlit\x20AI\x20-\x20Agentic\x20Coding\x20Assistant')[a20_0x220fd2(0x1ef)](VERSION)[a20_0x220fd2(0x1b7)](async()=>{const _0x23563e=a20_0x220fd2;ensureDefaultServers();const {botManager:_0x4c0d77}=await import(_0x23563e(0x16e));await _0x4c0d77[_0x23563e(0x1a8)]();const {checkForUpdates:_0x51d08e}=await import(_0x23563e(0x175));_0x51d08e(VERSION)[_0x23563e(0x17b)](()=>{}),a20_0x28bdd6['showLogo'](VERSION);if(!isLoggedIn()){a20_0x28bdd6['warn'](_0x23563e(0x1c3)),a20_0x28bdd6[_0x23563e(0x16d)](''),a20_0x28bdd6['info'](_0x23563e(0x1a0));const _0x3938c0=a20_0x28bdd6[_0x23563e(0x1d5)]('Waiting\x20for\x20authentication...');_0x3938c0[_0x23563e(0x1c7)]();const _0x1f479e=await login();_0x3938c0[_0x23563e(0x1e9)]();if(!_0x1f479e){a20_0x28bdd6[_0x23563e(0x1ba)](_0x23563e(0x1d4));return;}const _0x5a0e6c=getUser();a20_0x28bdd6['success'](_0x23563e(0x1bb)+(_0x5a0e6c[_0x23563e(0x1bd)]||_0x5a0e6c[_0x23563e(0x1f2)]));}await startChat();}),program[a20_0x220fd2(0x196)](a20_0x220fd2(0x18e))['description'](a20_0x220fd2(0x1d3))[a20_0x220fd2(0x1b7)](async()=>{const _0x4d7b6c=a20_0x220fd2;if(isLoggedIn()){const _0x9c3180=getUser();a20_0x28bdd6[_0x4d7b6c(0x177)](_0x4d7b6c(0x1a1)+_0x9c3180[_0x4d7b6c(0x1f2)]);return;}a20_0x28bdd6[_0x4d7b6c(0x177)]('Opening\x20browser\x20for\x20login...');const _0xbd803b=a20_0x28bdd6['createSpinner'](_0x4d7b6c(0x1a9));_0xbd803b[_0x4d7b6c(0x1c7)]();const _0xebfa8c=await login();_0xbd803b[_0x4d7b6c(0x1e9)]();if(_0xebfa8c){const _0x2ebe82=getUser();a20_0x28bdd6[_0x4d7b6c(0x173)](_0x4d7b6c(0x1bb)+(_0x2ebe82[_0x4d7b6c(0x1bd)]||_0x2ebe82[_0x4d7b6c(0x1f2)]));}else a20_0x28bdd6['error']('Login\x20failed\x20or\x20timed\x20out');}),program[a20_0x220fd2(0x196)](a20_0x220fd2(0x1c4))['description']('Logout\x20from\x20your\x20Woozlit\x20account')['action'](()=>{const _0x3d32c0=a20_0x220fd2;logout(),a20_0x28bdd6[_0x3d32c0(0x173)]('Logged\x20out\x20successfully');}),program[a20_0x220fd2(0x196)]('whoami')[a20_0x220fd2(0x1db)](a20_0x220fd2(0x192))['action'](()=>{const _0x2a6988=a20_0x220fd2;if(!isLoggedIn()){a20_0x28bdd6['warn'](_0x2a6988(0x1c2));return;}const _0x2e1a4a=getUser();a20_0x28bdd6[_0x2a6988(0x199)](_0x2a6988(0x1cb)),a20_0x28bdd6[_0x2a6988(0x177)](_0x2a6988(0x170)+(_0x2e1a4a['displayName']||_0x2a6988(0x194))),a20_0x28bdd6['info'](_0x2a6988(0x1d9)+(_0x2e1a4a[_0x2a6988(0x1f2)]||_0x2a6988(0x194))),a20_0x28bdd6[_0x2a6988(0x177)](_0x2a6988(0x1ca)+getSelectedModel());}),program['command']('chat\x20[message]')[a20_0x220fd2(0x1db)](a20_0x220fd2(0x1c5))['action'](async _0x2ade88=>{const _0x36e2e1=a20_0x220fd2;a20_0x28bdd6[_0x36e2e1(0x19e)](VERSION);if(!isLoggedIn()){a20_0x28bdd6[_0x36e2e1(0x17e)](_0x36e2e1(0x1c3)),a20_0x28bdd6[_0x36e2e1(0x16d)](''),a20_0x28bdd6[_0x36e2e1(0x177)](_0x36e2e1(0x1a0));const _0x462a8f=a20_0x28bdd6[_0x36e2e1(0x1d5)]('Waiting\x20for\x20authentication...');_0x462a8f[_0x36e2e1(0x1c7)]();const _0x4e05fc=await login();_0x462a8f['stop']();if(!_0x4e05fc){a20_0x28bdd6['error'](_0x36e2e1(0x1d4));return;}const _0x1f1285=getUser();a20_0x28bdd6[_0x36e2e1(0x173)](_0x36e2e1(0x1bb)+(_0x1f1285['displayName']||_0x1f1285[_0x36e2e1(0x1f2)]));}await startChat(_0x2ade88);}),program[a20_0x220fd2(0x196)](a20_0x220fd2(0x1e3))['description'](a20_0x220fd2(0x182))['action'](async _0x306635=>{const _0x54e804=a20_0x220fd2;a20_0x28bdd6['showLogo'](VERSION);if(!isLoggedIn()){a20_0x28bdd6[_0x54e804(0x17e)](_0x54e804(0x1c3)),a20_0x28bdd6[_0x54e804(0x16d)](''),a20_0x28bdd6[_0x54e804(0x177)]('Opening\x20browser\x20for\x20login...');const _0x2b095f=a20_0x28bdd6['createSpinner'](_0x54e804(0x1a9));_0x2b095f['start']();const _0x11214a=await login();_0x2b095f[_0x54e804(0x1e9)]();if(!_0x11214a){a20_0x28bdd6[_0x54e804(0x1ba)](_0x54e804(0x1d4));return;}const _0x3c82f5=getUser();a20_0x28bdd6[_0x54e804(0x173)](_0x54e804(0x1bb)+(_0x3c82f5[_0x54e804(0x1bd)]||_0x3c82f5['email']));}await startChat(_0x306635);});function a20_0x3ca0(){const _0x267196=['./services/bot-manager.js','env','Name:\x20','streamable-http','getStatus','success','No\x20services\x20registered.','./utils/updater.js','\x0aUse\x20\x27woozlit\x20<service>\x20setup\x27\x20to\x20configure\x20services.','info','Added\x20knowledge\x20preset:\x20','theme',':\x20[HTTP]\x20','catch','./config/mcp.js','setup','warn','discord','943198uoKgth','services','Ask\x20a\x20single\x20question','reset','Operation\x20cancelled','Remove\x20all\x20MCP\x20servers','Manage\x20Email\x20integration','3135IUvPzg','configured','List\x20all\x20MCP\x20servers','stdout','Woozlit\x20already\x20initialized\x20in\x20this\x20directory','./email/index.js','4217568JJijJH','login','Background\x20Services','Manage\x20MCP\x20servers','write','Show\x20current\x20user\x20info','Select\x20UI\x20theme','N/A','update','command','MCP\x20server\x20\x27','1204280UGfqBH','header','./telegram/index.js','.woozlit/context.md','NODE_TLS_REJECT_UNAUTHORIZED','Added\x20HTTP\x20MCP\x20server:\x20','showLogo','parse','Opening\x20browser\x20for\x20login...','Already\x20logged\x20in\x20as\x20','2.2.0','Select\x20UI\x20theme\x20(alias\x20for\x20config\x20theme)','Knowledge\x20Presets','github\x20[subcmd]','Add\x20a\x20new\x20rule','1686KBmOeB','startAllConfigured','Waiting\x20for\x20authentication...','name','some','All\x20MCP\x20servers\x20removed','Stopped','Manage\x20Discord\x20integration','running','\x27\x20not\x20found','Configure\x20Discord\x20Bot\x20Token','Refresh\x20cancelled.','./ui/themes.js','Removed\x20MCP\x20server:\x20','add\x20<preset>','aliases','action','Configure\x20Telegram\x20Bot\x20Token','Manage\x20AI\x20knowledge\x20presets','error','Logged\x20in\x20as\x20','All\x20knowledge\x20presets\x20cleared','displayName','Added\x20stdio\x20MCP\x20server:\x20','No\x20rules\x20defined','woozlit','Add\x20an\x20HTTP\x20MCP\x20server\x20(streamable-http)','Not\x20logged\x20in.\x20Use\x20\x27woozlit\x20login\x27\x20to\x20authenticate.','You\x20must\x20be\x20logged\x20in\x20to\x20use\x20chat.','logout','Start\x20an\x20AI\x20chat\x20session','delete','start','Manage\x20GitHub\x20tool\x20integration','url','Model:\x20','Current\x20User','Update\x20Woozlit\x20CLI\x20to\x20the\x20latest\x20version','add\x20<rule>','forEach','2420TciuUR','./discord/index.js','Select\x20AI\x20model','17451MKeVLU','Login\x20with\x20your\x20Woozlit\x20account','Login\x20failed\x20or\x20timed\x20out','createSpinner','You\x20can\x20also\x20add\x20servers\x20via\x20mcp.json\x20in\x20your\x20project\x20directory','add-http\x20<name>\x20<url>','Are\x20you\x20sure\x20you\x20want\x20to\x20completely\x20WIPE\x20all\x20CLI\x20data,\x20rules,\x20and\x20configs?','Email:\x20','Remove\x20an\x20MCP\x20server','description',':\x20[stdio]\x20','List\x20all\x20rules','URL:\x20','./github/index.js','1sowzTT','#\x20Project\x20Context\x0a\x0aDescribe\x20your\x20project\x20here.\x0a','All\x20data,\x20configs,\x20and\x20MCP\x20servers\x20have\x20been\x20wiped.','ask\x20<message>','wipe','3bKVdhn','./utils/storage.js','811556hXXqnf','Are\x20you\x20sure\x20you\x20want\x20to\x20remove\x20ALL\x20MCP\x20servers?','stop','remove-all','delete-all','Default\x20servers\x20will\x20be\x20restored\x20on\x20next\x20restart\x20unless\x20you\x20remove\x20them\x20again.','type','Running','version','bold','green','email','list','.woozlit/rules.md','Manage\x20Telegram\x20integration','length','args','Theme\x20set\x20to:\x20','clean','Config\x20file:\x20','16998828Rccbzq','Added\x20rule:\x20','gray','Clear\x20all\x20knowledge\x20presets','All\x20rules\x20cleared','add\x20<name>\x20<command>\x20[args...]','Initialized\x20Woozlit\x20in\x20current\x20directory','Show\x20status\x20of\x20background\x20services/bots','dim'];a20_0x3ca0=function(){return _0x267196;};return a20_0x3ca0();}const configCmd=program[a20_0x220fd2(0x196)]('config')['description']('Configure\x20CLI\x20settings');configCmd[a20_0x220fd2(0x196)]('model')[a20_0x220fd2(0x1db)](a20_0x220fd2(0x1d1))['action'](async()=>{const _0x30c282=await selectModel();a20_0x28bdd6['success']('Model\x20set\x20to:\x20'+_0x30c282);}),configCmd[a20_0x220fd2(0x196)](a20_0x220fd2(0x179))[a20_0x220fd2(0x1db)](a20_0x220fd2(0x193))[a20_0x220fd2(0x1b7)](async()=>{const _0x47ade5=a20_0x220fd2,{selectTheme:_0x57001a}=await import(_0x47ade5(0x1b3)),_0x47a604=await _0x57001a();a20_0x28bdd6[_0x47ade5(0x173)](_0x47ade5(0x1f8)+_0x47a604);}),program[a20_0x220fd2(0x196)](a20_0x220fd2(0x179))[a20_0x220fd2(0x1db)](a20_0x220fd2(0x1a3))[a20_0x220fd2(0x1b7)](async()=>{const _0x2638a8=a20_0x220fd2,{selectTheme:_0x21a132}=await import(_0x2638a8(0x1b3)),_0x1f4fd5=await _0x21a132();a20_0x28bdd6[_0x2638a8(0x173)](_0x2638a8(0x1f8)+_0x1f4fd5);});const rulesCmd=program['command']('rules')[a20_0x220fd2(0x1db)]('Manage\x20AI\x20behavior\x20rules');rulesCmd['command'](a20_0x220fd2(0x1f3))[a20_0x220fd2(0x1db)](a20_0x220fd2(0x1dd))['action'](()=>{const _0x4dcec8=a20_0x220fd2,_0x31dc48=listRules();if(_0x31dc48['length']===0x0){a20_0x28bdd6['info'](_0x4dcec8(0x1bf));return;}a20_0x28bdd6['header']('Rules'),_0x31dc48[_0x4dcec8(0x1ce)]((_0x4bdf0c,_0x21a64b)=>{const _0x18c58b=_0x4dcec8;process[_0x18c58b(0x18a)]['write'](_0x21a64b+0x1+'.\x20'+_0x4bdf0c+'\x0a');});}),rulesCmd['command'](a20_0x220fd2(0x1cd))[a20_0x220fd2(0x1db)](a20_0x220fd2(0x1a6))['action'](_0x388d75=>{const _0x47beee=a20_0x220fd2;addRule(_0x388d75),a20_0x28bdd6[_0x47beee(0x173)](_0x47beee(0x1fc)+_0x388d75);})[a20_0x220fd2(0x1b7)](()=>{const _0x3dab68=a20_0x220fd2;clearRules(),a20_0x28bdd6['success'](_0x3dab68(0x1ff));});const knowledgeCmd=program['command']('knowledge')[a20_0x220fd2(0x1db)](a20_0x220fd2(0x1b9));function a20_0x432c(_0x1ffbdb,_0x469f72){_0x1ffbdb=_0x1ffbdb-0x16b;const _0x3ca01=a20_0x3ca0();let _0x432ca9=_0x3ca01[_0x1ffbdb];return _0x432ca9;}knowledgeCmd['command'](a20_0x220fd2(0x1f3))[a20_0x220fd2(0x1db)]('List\x20all\x20knowledge\x20presets')['action'](()=>{const _0xd370d3=a20_0x220fd2,_0x2801ac=listKnowledge();if(_0x2801ac[_0xd370d3(0x1f6)]===0x0){a20_0x28bdd6[_0xd370d3(0x177)]('No\x20knowledge\x20presets\x20defined');return;}a20_0x28bdd6[_0xd370d3(0x199)](_0xd370d3(0x1a4)),_0x2801ac[_0xd370d3(0x1ce)]((_0x262ba3,_0x20dbbc)=>{const _0x5b2d30=_0xd370d3;process['stdout'][_0x5b2d30(0x191)](_0x20dbbc+0x1+'.\x20'+_0x262ba3+'\x0a');});}),knowledgeCmd[a20_0x220fd2(0x196)](a20_0x220fd2(0x1b5))[a20_0x220fd2(0x1db)]('Add\x20a\x20new\x20knowledge\x20preset')[a20_0x220fd2(0x1b7)](_0x5164d8=>{const _0x294d39=a20_0x220fd2;addKnowledge(_0x5164d8),a20_0x28bdd6['success'](_0x294d39(0x178)+_0x5164d8);}),knowledgeCmd[a20_0x220fd2(0x196)]('clear')[a20_0x220fd2(0x1db)](a20_0x220fd2(0x1fe))[a20_0x220fd2(0x1b7)](()=>{const _0x59a2a0=a20_0x220fd2;clearKnowledge(),a20_0x28bdd6[_0x59a2a0(0x173)](_0x59a2a0(0x1bc));});const mcpCmd=program[a20_0x220fd2(0x196)]('mcp')['description'](a20_0x220fd2(0x190));mcpCmd[a20_0x220fd2(0x196)](a20_0x220fd2(0x1f3))[a20_0x220fd2(0x1db)](a20_0x220fd2(0x189))[a20_0x220fd2(0x1b7)](()=>{const _0x3cf442=a20_0x220fd2,_0xd10bf=getMcpServers(),_0x116e76=Object['keys'](_0xd10bf);if(_0x116e76[_0x3cf442(0x1f6)]===0x0){a20_0x28bdd6[_0x3cf442(0x177)]('No\x20MCP\x20servers\x20configured'),a20_0x28bdd6['dim'](_0x3cf442(0x1fa)+getConfigFilePath());return;}a20_0x28bdd6[_0x3cf442(0x199)]('MCP\x20Servers'),_0x116e76[_0x3cf442(0x1ce)](_0x2a2547=>{const _0x47bf3a=_0x3cf442,_0x5bb3c1=_0xd10bf[_0x2a2547];_0x5bb3c1[_0x47bf3a(0x1ed)]===_0x47bf3a(0x171)?a20_0x28bdd6[_0x47bf3a(0x177)]('-\x20'+_0x2a2547+_0x47bf3a(0x17a)+_0x5bb3c1[_0x47bf3a(0x1c9)]):a20_0x28bdd6[_0x47bf3a(0x177)]('-\x20'+_0x2a2547+_0x47bf3a(0x1dc)+_0x5bb3c1[_0x47bf3a(0x196)]+'\x20'+(_0x5bb3c1[_0x47bf3a(0x1f7)]?.['join']('\x20')||''));}),a20_0x28bdd6[_0x3cf442(0x16d)]('\x0aConfig\x20file:\x20'+getConfigFilePath()),a20_0x28bdd6[_0x3cf442(0x16d)](_0x3cf442(0x1d6));}),mcpCmd[a20_0x220fd2(0x196)](a20_0x220fd2(0x200))[a20_0x220fd2(0x1db)]('Add\x20a\x20stdio\x20MCP\x20server')[a20_0x220fd2(0x1b7)]((_0x505adf,_0x8c8b2f,_0x477598)=>{const _0x171669=a20_0x220fd2;addMcpServer(_0x505adf,_0x8c8b2f,_0x477598),a20_0x28bdd6['success'](_0x171669(0x1be)+_0x505adf);}),mcpCmd[a20_0x220fd2(0x196)](a20_0x220fd2(0x1d7))[a20_0x220fd2(0x1db)](a20_0x220fd2(0x1c1))[a20_0x220fd2(0x1b7)]((_0x5cb079,_0x356088)=>{const _0x1026b1=a20_0x220fd2;addMcpHttpServer(_0x5cb079,_0x356088),a20_0x28bdd6['success'](_0x1026b1(0x19d)+_0x5cb079),a20_0x28bdd6[_0x1026b1(0x16d)](_0x1026b1(0x1de)+_0x356088);}),mcpCmd[a20_0x220fd2(0x196)]('remove\x20<name>')['aliases']([a20_0x220fd2(0x1c6),'rm'])['description'](a20_0x220fd2(0x1da))['action'](_0x3dc56e=>{const _0x4fb905=a20_0x220fd2;removeMcpServer(_0x3dc56e)?a20_0x28bdd6[_0x4fb905(0x173)](_0x4fb905(0x1b4)+_0x3dc56e):a20_0x28bdd6[_0x4fb905(0x1ba)](_0x4fb905(0x197)+_0x3dc56e+_0x4fb905(0x1b0));}),mcpCmd[a20_0x220fd2(0x196)](a20_0x220fd2(0x1ea))['aliases']([a20_0x220fd2(0x1eb),'clear'])[a20_0x220fd2(0x1db)](a20_0x220fd2(0x185))['action'](async()=>{const _0x1f0d48=a20_0x220fd2,{confirm:_0x1cc5ff}=await import('@inquirer/prompts'),{getTheme:_0x572368}=await import('./utils/storage.js'),{getInquirerTheme:_0x1edd27}=await import(_0x1f0d48(0x1b3)),_0xabd7bb=await _0x1cc5ff({'message':_0x1f0d48(0x1e8),'default':![],'theme':_0x1edd27(_0x572368())});_0xabd7bb?(clearMcpServers(),a20_0x28bdd6['success'](_0x1f0d48(0x1ac)),a20_0x28bdd6[_0x1f0d48(0x16d)](_0x1f0d48(0x1ec))):a20_0x28bdd6[_0x1f0d48(0x177)](_0x1f0d48(0x184));}),program[a20_0x220fd2(0x196)]('refresh')[a20_0x220fd2(0x1b6)]([a20_0x220fd2(0x183),a20_0x220fd2(0x1e4),a20_0x220fd2(0x1f9)])[a20_0x220fd2(0x1db)]('Wipe\x20all\x20data,\x20rules,\x20settings,\x20and\x20MCP\x20configs')[a20_0x220fd2(0x1b7)](async()=>{const _0x582e1f=a20_0x220fd2,{confirm:_0x703b38}=await import('@inquirer/prompts'),{getTheme:_0x24f579}=await import(_0x582e1f(0x1e6)),{getInquirerTheme:_0x4e7e7c}=await import(_0x582e1f(0x1b3)),_0x5e23b4=_0x24f579(),_0x63c66d=_0x4e7e7c(_0x5e23b4),_0x35fe4b=await _0x703b38({'message':a20_0x2c18e1[_0x582e1f(0x1f0)](_0x582e1f(0x1d8)),'default':![],'theme':_0x63c66d});if(_0x35fe4b){const {wipeAll:_0x452995}=await import(_0x582e1f(0x1e6));_0x452995();try{const {clearMcpServers:_0x289c91}=await import(_0x582e1f(0x17c));_0x289c91();}catch(_0x171391){}a20_0x28bdd6['success'](_0x582e1f(0x1e2)),a20_0x28bdd6[_0x582e1f(0x16d)]('Please\x20restart\x20the\x20CLI.');}else a20_0x28bdd6[_0x582e1f(0x177)](_0x582e1f(0x1b2));}),program['command']('init')[a20_0x220fd2(0x1db)]('Initialize\x20Woozlit\x20in\x20current\x20directory')[a20_0x220fd2(0x1b7)](()=>{const _0x40c4ab=a20_0x220fd2,_0x19ff60=listDirectory('.'),_0x2ae51c=_0x19ff60['entries']?.[_0x40c4ab(0x1ab)](_0x5cc476=>_0x5cc476[_0x40c4ab(0x1aa)]==='.woozlit');if(_0x2ae51c){a20_0x28bdd6[_0x40c4ab(0x17e)](_0x40c4ab(0x18b));return;}createFile(_0x40c4ab(0x1f4),'#\x20Project\x20Rules\x0a\x0aAdd\x20your\x20project-specific\x20rules\x20here.\x0a'),createFile(_0x40c4ab(0x19b),_0x40c4ab(0x1e1)),a20_0x28bdd6[_0x40c4ab(0x173)](_0x40c4ab(0x16b)),a20_0x28bdd6[_0x40c4ab(0x16d)]('Created\x20.woozlit/rules.md\x20and\x20.woozlit/context.md');}),program[a20_0x220fd2(0x196)](a20_0x220fd2(0x181))[a20_0x220fd2(0x1db)](a20_0x220fd2(0x16c))[a20_0x220fd2(0x1b7)](async()=>{const _0x21d0ad=a20_0x220fd2,{botManager:_0x5b0156}=await import(_0x21d0ad(0x16e)),_0x171bed=_0x5b0156[_0x21d0ad(0x172)]();a20_0x28bdd6[_0x21d0ad(0x199)](_0x21d0ad(0x18f));if(_0x171bed[_0x21d0ad(0x1f6)]===0x0){a20_0x28bdd6[_0x21d0ad(0x177)](_0x21d0ad(0x174));return;}_0x171bed[_0x21d0ad(0x1ce)](_0x5439d8=>{const _0x35bcee=_0x21d0ad,_0x31bc69=_0x5439d8[_0x35bcee(0x1af)]?a20_0x2c18e1[_0x35bcee(0x1f1)](_0x35bcee(0x1ee)):_0x5439d8[_0x35bcee(0x188)]?a20_0x2c18e1['yellow'](_0x35bcee(0x1ad)):a20_0x2c18e1[_0x35bcee(0x1fd)]('Not\x20Configured');a20_0x28bdd6['info']('-\x20'+_0x5439d8['name']+':\x20'+_0x31bc69);}),a20_0x28bdd6[_0x21d0ad(0x16d)](_0x21d0ad(0x176));});const discordCmd=program[a20_0x220fd2(0x196)](a20_0x220fd2(0x17f))['description'](a20_0x220fd2(0x1ae));discordCmd[a20_0x220fd2(0x196)](a20_0x220fd2(0x17d))['description'](a20_0x220fd2(0x1b1))['action'](async()=>{const _0x49d7fb=a20_0x220fd2,{setupDiscord:_0x3e5092}=await import(_0x49d7fb(0x1d0));await _0x3e5092();});const githubCmd=program[a20_0x220fd2(0x196)](a20_0x220fd2(0x1a5))[a20_0x220fd2(0x1db)](a20_0x220fd2(0x1c8))['action'](async _0x4da1df=>{const _0x4f7582=a20_0x220fd2,{handleGitHubCommand:_0x58522d}=await import(_0x4f7582(0x1df));await _0x58522d(_0x4da1df||'');}),telegramCmd=program[a20_0x220fd2(0x196)]('telegram')[a20_0x220fd2(0x1db)](a20_0x220fd2(0x1f5));telegramCmd[a20_0x220fd2(0x196)](a20_0x220fd2(0x17d))[a20_0x220fd2(0x1db)](a20_0x220fd2(0x1b8))['action'](async()=>{const _0x3876d3=a20_0x220fd2,{setupTelegram:_0x38df23}=await import(_0x3876d3(0x19a));await _0x38df23();});const emailCmd=program[a20_0x220fd2(0x196)](a20_0x220fd2(0x1f2))[a20_0x220fd2(0x1db)](a20_0x220fd2(0x186));emailCmd[a20_0x220fd2(0x196)]('setup')[a20_0x220fd2(0x1db)]('Configure\x20email\x20credentials')[a20_0x220fd2(0x1b7)](async()=>{const _0x40d176=a20_0x220fd2,{setupEmail:_0xa014ee}=await import(_0x40d176(0x18c));await _0xa014ee();}),program[a20_0x220fd2(0x196)](a20_0x220fd2(0x195))['description'](a20_0x220fd2(0x1cc))[a20_0x220fd2(0x1b7)](async()=>{const _0x10aa71=a20_0x220fd2,{performUpdate:_0x3ac254}=await import('./utils/updater.js'),_0x317adb=await _0x3ac254();!_0x317adb&&a20_0x28bdd6[_0x10aa71(0x16d)]('You\x20can\x20also\x20update\x20manually\x20from\x20https://cli.woozlit.com');}),program[a20_0x220fd2(0x19f)]();
@@ -1 +0,0 @@
1
- export {};