woozlit 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/login.js +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/server.js +1 -1
- package/dist/browser/tools.js +1 -1
- package/dist/chat/agent.js +1 -1
- package/dist/config/mcp.js +1 -1
- package/dist/config/settings.js +1 -1
- package/dist/discord/client.js +1 -1
- package/dist/discord/config.js +1 -1
- package/dist/discord/index.js +1 -1
- package/dist/discord/setup.js +1 -1
- package/dist/email/config.js +1 -1
- package/dist/email/index.js +1 -1
- package/dist/email/service.js +1 -1
- package/dist/email/setup.js +1 -1
- package/dist/github/api.js +1 -1
- package/dist/github/auth.js +1 -1
- package/dist/github/auto-setup.js +1 -1
- package/dist/github/index.js +1 -1
- package/dist/github/manual-setup.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp-servers/computer-use.js +1 -1
- package/dist/services/bot-manager.js +1 -1
- package/dist/services/notifications.js +1 -1
- package/dist/services/voice-agent.js +1 -1
- package/dist/telegram/bot.js +1 -1
- package/dist/telegram/config.js +1 -1
- package/dist/telegram/index.js +1 -1
- package/dist/telegram/reminders.js +1 -1
- package/dist/telegram/setup.js +1 -1
- package/dist/tools/command.js +1 -1
- package/dist/tools/file.js +1 -1
- package/dist/tools/git.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/knowledge.js +1 -1
- package/dist/tools/mcp.js +1 -1
- package/dist/tools/network.js +1 -1
- package/dist/tools/project.js +1 -1
- package/dist/tools/rollback.js +1 -1
- package/dist/tools/rules.js +1 -1
- package/dist/tools/system.js +1 -1
- package/dist/twilio/config.js +1 -1
- package/dist/twilio/index.js +1 -1
- package/dist/twilio/server.js +1 -1
- package/dist/twilio/setup.js +1 -1
- package/dist/ui/output.js +1 -1
- package/dist/ui/select.js +1 -1
- package/dist/ui/themes.js +1 -1
- package/dist/utils/api.js +1 -1
- package/dist/utils/chat-history.js +1 -1
- package/dist/utils/history.js +1 -1
- package/dist/utils/mcp-installer.js +1 -1
- package/dist/utils/platform.js +1 -1
- package/dist/utils/storage.js +1 -1
- package/dist/utils/update-check.js +1 -1
- package/dist/utils/updater.js +1 -1
- package/dist/verify_repro.js +1 -1
- package/package.json +1 -1
package/dist/discord/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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)]();}
|
package/dist/discord/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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';
|
package/dist/discord/setup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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.');}
|
package/dist/email/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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));}
|
package/dist/email/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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';
|
package/dist/email/service.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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';
|
package/dist/email/setup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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));}
|
package/dist/github/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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;}}
|
package/dist/github/auth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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 +1 @@
|
|
|
1
|
-
(function(
|
|
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);}}
|
package/dist/github/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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 +1 @@
|
|
|
1
|
-
(function(
|
|
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.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const a20_0x206a81=a20_0x4654;(function(_0x712bb0,_0x455d56){const _0x3a15a2=a20_0x4654,_0x1c75a2=_0x712bb0();while(!![]){try{const _0x5ad497=parseInt(_0x3a15a2(0x95))/0x1+-parseInt(_0x3a15a2(0xc0))/0x2*(parseInt(_0x3a15a2(0xe9))/0x3)+parseInt(_0x3a15a2(0xae))/0x4+-parseInt(_0x3a15a2(0x8e))/0x5*(-parseInt(_0x3a15a2(0x9b))/0x6)+-parseInt(_0x3a15a2(0xf5))/0x7*(parseInt(_0x3a15a2(0xb2))/0x8)+parseInt(_0x3a15a2(0xfa))/0x9*(parseInt(_0x3a15a2(0x8a))/0xa)+parseInt(_0x3a15a2(0xc7))/0xb*(parseInt(_0x3a15a2(0x98))/0xc);if(_0x5ad497===_0x455d56)break;else _0x1c75a2['push'](_0x1c75a2['shift']());}catch(_0x270d7d){_0x1c75a2['push'](_0x1c75a2['shift']());}}}(a20_0x24a7,0xa4976));import{Command}from'commander';import a20_0x285d48 from'chalk';function a20_0x4654(_0x36c6a3,_0x59f890){_0x36c6a3=_0x36c6a3-0x7a;const _0x24a7a2=a20_0x24a7();let _0x465442=_0x24a7a2[_0x36c6a3];return _0x465442;}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';function a20_0x24a7(){const _0x42f516=['\x27\x20not\x20found','running','remove\x20<name>','Current\x20User','delete-all','aliases','Added\x20stdio\x20MCP\x20server:\x20','Woozlit\x20already\x20initialized\x20in\x20this\x20directory','startAllConfigured','Show\x20current\x20user\x20info','createSpinner','bold','Are\x20you\x20sure\x20you\x20want\x20to\x20completely\x20WIPE\x20all\x20CLI\x20data,\x20rules,\x20and\x20configs?','stdout','version','action','discord','Model:\x20','Select\x20UI\x20theme\x20(alias\x20for\x20config\x20theme)','Show\x20status\x20of\x20background\x20services/bots','No\x20services\x20registered.','refresh','All\x20MCP\x20servers\x20removed','theme','name','Login\x20with\x20your\x20Woozlit\x20account','./utils/updater.js','Added\x20HTTP\x20MCP\x20server:\x20','email','22330OxeiFp','command','List\x20all\x20rules','info','75fjfjXw','description','Initialize\x20Woozlit\x20in\x20current\x20directory','Login\x20failed\x20or\x20timed\x20out','Not\x20logged\x20in.\x20Use\x20\x27woozlit\x20login\x27\x20to\x20authenticate.','logout','N/A','224191lRaSBE','All\x20data,\x20configs,\x20and\x20MCP\x20servers\x20have\x20been\x20wiped.','join','12qjMoba','Manage\x20Telegram\x20integration','type','171438dzcjBG','keys','./services/bot-manager.js','./discord/index.js','forEach','Running','Manage\x20MCP\x20servers','Manage\x20AI\x20knowledge\x20presets','Already\x20logged\x20in\x20as\x20','List\x20all\x20MCP\x20servers','update','Remove\x20an\x20MCP\x20server','remove-all','length',':\x20[stdio]\x20','green','clean','configured','You\x20can\x20also\x20add\x20servers\x20via\x20mcp.json\x20in\x20your\x20project\x20directory','2831916xXXdvF','./github/index.js','All\x20rules\x20cleared','Rules','8jiLwRl','init','\x0aConfig\x20file:\x20','Knowledge\x20Presets','env','.woozlit/rules.md','Select\x20AI\x20model','showLogo','wipe','URL:\x20','list','some','displayName','Created\x20.woozlit/rules.md\x20and\x20.woozlit/context.md','2bVWPkr','Default\x20servers\x20will\x20be\x20restored\x20on\x20next\x20restart\x20unless\x20you\x20remove\x20them\x20again.','Initialized\x20Woozlit\x20in\x20current\x20directory','header','Update\x20Woozlit\x20CLI\x20to\x20the\x20latest\x20version','dim','Stopped','132121VvAzKZ','getStatus','No\x20knowledge\x20presets\x20defined','Please\x20restart\x20the\x20CLI.','parse','Add\x20a\x20stdio\x20MCP\x20server','Added\x20knowledge\x20preset:\x20','Name:\x20','Waiting\x20for\x20authentication...','knowledge','Add\x20a\x20new\x20knowledge\x20preset','Opening\x20browser\x20for\x20login...','Add\x20a\x20new\x20rule','Logout\x20from\x20your\x20Woozlit\x20account','clear','You\x20can\x20also\x20update\x20manually\x20from\x20https://cli.woozlit.com','List\x20all\x20knowledge\x20presets','catch','No\x20MCP\x20servers\x20configured','Woozlit\x20AI\x20-\x20Agentic\x20Coding\x20Assistant','MCP\x20server\x20\x27','Configure\x20email\x20credentials','./utils/storage.js','start','telegram','delete','stop','args','write','chat\x20[message]','Not\x20Configured','Remove\x20all\x20MCP\x20servers','services','ask\x20<message>','2225766RJaJfS','add\x20<rule>','.woozlit','Added\x20rule:\x20','success','github\x20[subcmd]','No\x20rules\x20defined','add\x20<name>\x20<command>\x20[args...]','Theme\x20set\x20to:\x20','rules','error','Email:\x20','8965999oasNag','./ui/themes.js','woozlit','Refresh\x20cancelled.','Manage\x20Email\x20integration','5337hNNlUM','Manage\x20AI\x20behavior\x20rules','Operation\x20cancelled','Config\x20file:\x20','setup','./email/index.js','add-http\x20<name>\x20<url>','Logged\x20in\x20as\x20','You\x20must\x20be\x20logged\x20in\x20to\x20use\x20chat.','Logged\x20out\x20successfully','warn'];a20_0x24a7=function(){return _0x42f516;};return a20_0x24a7();}import{addMcpServer,addMcpHttpServer,removeMcpServer,clearMcpServers,getMcpServers,ensureDefaultServers,getConfigFilePath}from'./config/mcp.js';import{createFile,listDirectory}from'./tools/file.js';import*as a20_0x5e5bb0 from'./ui/output.js';const VERSION='2.2.0',program=new Command();process[a20_0x206a81(0xb6)]['NODE_TLS_REJECT_UNAUTHORIZED']='0',program[a20_0x206a81(0x85)](a20_0x206a81(0xf7))[a20_0x206a81(0x8f)](a20_0x206a81(0xda))[a20_0x206a81(0x7b)](VERSION)[a20_0x206a81(0x7c)](async()=>{const _0x37176e=a20_0x206a81;ensureDefaultServers();const {botManager:_0x3c84a7}=await import('./services/bot-manager.js');await _0x3c84a7[_0x37176e(0x10d)]();const {checkForUpdates:_0xedebd5}=await import(_0x37176e(0x87));_0xedebd5(VERSION)[_0x37176e(0xd8)](()=>{}),a20_0x5e5bb0[_0x37176e(0xb9)](VERSION);if(!isLoggedIn()){a20_0x5e5bb0[_0x37176e(0x104)](_0x37176e(0x102)),a20_0x5e5bb0[_0x37176e(0xc5)](''),a20_0x5e5bb0['info'](_0x37176e(0xd2));const _0x5d6564=a20_0x5e5bb0[_0x37176e(0x10f)](_0x37176e(0xcf));_0x5d6564['start']();const _0x5609d3=await login();_0x5d6564[_0x37176e(0xe1)]();if(!_0x5609d3){a20_0x5e5bb0['error'](_0x37176e(0x91));return;}const _0x5f5db4=getUser();a20_0x5e5bb0[_0x37176e(0xed)]('Logged\x20in\x20as\x20'+(_0x5f5db4[_0x37176e(0xbe)]||_0x5f5db4[_0x37176e(0x89)]));}await startChat();}),program[a20_0x206a81(0x8b)]('login')[a20_0x206a81(0x8f)](a20_0x206a81(0x86))[a20_0x206a81(0x7c)](async()=>{const _0x1aff73=a20_0x206a81;if(isLoggedIn()){const _0xd2902c=getUser();a20_0x5e5bb0[_0x1aff73(0x8d)](_0x1aff73(0xa3)+_0xd2902c[_0x1aff73(0x89)]);return;}a20_0x5e5bb0[_0x1aff73(0x8d)](_0x1aff73(0xd2));const _0x1e75e5=a20_0x5e5bb0[_0x1aff73(0x10f)](_0x1aff73(0xcf));_0x1e75e5[_0x1aff73(0xde)]();const _0x131202=await login();_0x1e75e5[_0x1aff73(0xe1)]();if(_0x131202){const _0x12042e=getUser();a20_0x5e5bb0['success']('Logged\x20in\x20as\x20'+(_0x12042e[_0x1aff73(0xbe)]||_0x12042e[_0x1aff73(0x89)]));}else a20_0x5e5bb0['error'](_0x1aff73(0x91));}),program[a20_0x206a81(0x8b)](a20_0x206a81(0x93))[a20_0x206a81(0x8f)](a20_0x206a81(0xd4))['action'](()=>{const _0x25570c=a20_0x206a81;logout(),a20_0x5e5bb0[_0x25570c(0xed)](_0x25570c(0x103));}),program[a20_0x206a81(0x8b)]('whoami')['description'](a20_0x206a81(0x10e))['action'](()=>{const _0x1997b2=a20_0x206a81;if(!isLoggedIn()){a20_0x5e5bb0[_0x1997b2(0x104)](_0x1997b2(0x92));return;}const _0x42d635=getUser();a20_0x5e5bb0[_0x1997b2(0xc3)](_0x1997b2(0x108)),a20_0x5e5bb0[_0x1997b2(0x8d)](_0x1997b2(0xce)+(_0x42d635[_0x1997b2(0xbe)]||'N/A')),a20_0x5e5bb0[_0x1997b2(0x8d)](_0x1997b2(0xf4)+(_0x42d635[_0x1997b2(0x89)]||_0x1997b2(0x94))),a20_0x5e5bb0[_0x1997b2(0x8d)](_0x1997b2(0x7e)+getSelectedModel());}),program[a20_0x206a81(0x8b)](a20_0x206a81(0xe4))[a20_0x206a81(0x8f)]('Start\x20an\x20AI\x20chat\x20session')[a20_0x206a81(0x7c)](async _0x55bdcc=>{const _0x401ee4=a20_0x206a81;a20_0x5e5bb0[_0x401ee4(0xb9)](VERSION);if(!isLoggedIn()){a20_0x5e5bb0[_0x401ee4(0x104)](_0x401ee4(0x102)),a20_0x5e5bb0[_0x401ee4(0xc5)](''),a20_0x5e5bb0[_0x401ee4(0x8d)](_0x401ee4(0xd2));const _0x282f96=a20_0x5e5bb0[_0x401ee4(0x10f)]('Waiting\x20for\x20authentication...');_0x282f96[_0x401ee4(0xde)]();const _0x4f0eed=await login();_0x282f96[_0x401ee4(0xe1)]();if(!_0x4f0eed){a20_0x5e5bb0[_0x401ee4(0xf3)](_0x401ee4(0x91));return;}const _0x5d90dc=getUser();a20_0x5e5bb0[_0x401ee4(0xed)]('Logged\x20in\x20as\x20'+(_0x5d90dc[_0x401ee4(0xbe)]||_0x5d90dc[_0x401ee4(0x89)]));}await startChat(_0x55bdcc);}),program[a20_0x206a81(0x8b)](a20_0x206a81(0xe8))[a20_0x206a81(0x8f)]('Ask\x20a\x20single\x20question')[a20_0x206a81(0x7c)](async _0x2a3496=>{const _0x5204ee=a20_0x206a81;a20_0x5e5bb0['showLogo'](VERSION);if(!isLoggedIn()){a20_0x5e5bb0['warn'](_0x5204ee(0x102)),a20_0x5e5bb0[_0x5204ee(0xc5)](''),a20_0x5e5bb0['info'](_0x5204ee(0xd2));const _0x33abf7=a20_0x5e5bb0[_0x5204ee(0x10f)](_0x5204ee(0xcf));_0x33abf7[_0x5204ee(0xde)]();const _0xb0b640=await login();_0x33abf7[_0x5204ee(0xe1)]();if(!_0xb0b640){a20_0x5e5bb0['error'](_0x5204ee(0x91));return;}const _0x30ebe4=getUser();a20_0x5e5bb0[_0x5204ee(0xed)](_0x5204ee(0x101)+(_0x30ebe4[_0x5204ee(0xbe)]||_0x30ebe4[_0x5204ee(0x89)]));}await startChat(_0x2a3496);});const configCmd=program[a20_0x206a81(0x8b)]('config')[a20_0x206a81(0x8f)]('Configure\x20CLI\x20settings');configCmd[a20_0x206a81(0x8b)]('model')[a20_0x206a81(0x8f)](a20_0x206a81(0xb8))['action'](async()=>{const _0x32eaab=a20_0x206a81,_0x2559d0=await selectModel();a20_0x5e5bb0[_0x32eaab(0xed)]('Model\x20set\x20to:\x20'+_0x2559d0);}),configCmd['command'](a20_0x206a81(0x84))[a20_0x206a81(0x8f)]('Select\x20UI\x20theme')[a20_0x206a81(0x7c)](async()=>{const _0x5cb413=a20_0x206a81,{selectTheme:_0x3c85fe}=await import(_0x5cb413(0xf6)),_0x539d28=await _0x3c85fe();a20_0x5e5bb0['success'](_0x5cb413(0xf1)+_0x539d28);}),program[a20_0x206a81(0x8b)](a20_0x206a81(0x84))[a20_0x206a81(0x8f)](a20_0x206a81(0x7f))[a20_0x206a81(0x7c)](async()=>{const _0x56ab68=a20_0x206a81,{selectTheme:_0x5ea87e}=await import(_0x56ab68(0xf6)),_0x553596=await _0x5ea87e();a20_0x5e5bb0[_0x56ab68(0xed)](_0x56ab68(0xf1)+_0x553596);});const rulesCmd=program[a20_0x206a81(0x8b)](a20_0x206a81(0xf2))['description'](a20_0x206a81(0xfb));rulesCmd['command'](a20_0x206a81(0xbc))['description'](a20_0x206a81(0x8c))[a20_0x206a81(0x7c)](()=>{const _0x2b9049=a20_0x206a81,_0x324a3e=listRules();if(_0x324a3e[_0x2b9049(0xa8)]===0x0){a20_0x5e5bb0['info'](_0x2b9049(0xef));return;}a20_0x5e5bb0[_0x2b9049(0xc3)](_0x2b9049(0xb1)),_0x324a3e[_0x2b9049(0x9f)]((_0x3eb18c,_0x5900dd)=>{const _0x1257cf=_0x2b9049;process[_0x1257cf(0x7a)][_0x1257cf(0xe3)](_0x5900dd+0x1+'.\x20'+_0x3eb18c+'\x0a');});}),rulesCmd[a20_0x206a81(0x8b)](a20_0x206a81(0xea))[a20_0x206a81(0x8f)](a20_0x206a81(0xd3))['action'](_0x29a159=>{const _0x3cfea0=a20_0x206a81;addRule(_0x29a159),a20_0x5e5bb0[_0x3cfea0(0xed)](_0x3cfea0(0xec)+_0x29a159);})[a20_0x206a81(0x7c)](()=>{const _0x25a880=a20_0x206a81;clearRules(),a20_0x5e5bb0[_0x25a880(0xed)](_0x25a880(0xb0));});const knowledgeCmd=program[a20_0x206a81(0x8b)](a20_0x206a81(0xd0))[a20_0x206a81(0x8f)](a20_0x206a81(0xa2));knowledgeCmd['command'](a20_0x206a81(0xbc))['description'](a20_0x206a81(0xd7))[a20_0x206a81(0x7c)](()=>{const _0xe8b8f=a20_0x206a81,_0xebf3fd=listKnowledge();if(_0xebf3fd[_0xe8b8f(0xa8)]===0x0){a20_0x5e5bb0[_0xe8b8f(0x8d)](_0xe8b8f(0xc9));return;}a20_0x5e5bb0[_0xe8b8f(0xc3)](_0xe8b8f(0xb5)),_0xebf3fd['forEach']((_0x3377ae,_0x5069b7)=>{const _0x967e5e=_0xe8b8f;process[_0x967e5e(0x7a)]['write'](_0x5069b7+0x1+'.\x20'+_0x3377ae+'\x0a');});}),knowledgeCmd[a20_0x206a81(0x8b)]('add\x20<preset>')[a20_0x206a81(0x8f)](a20_0x206a81(0xd1))[a20_0x206a81(0x7c)](_0x1a91e4=>{const _0x2baf81=a20_0x206a81;addKnowledge(_0x1a91e4),a20_0x5e5bb0[_0x2baf81(0xed)](_0x2baf81(0xcd)+_0x1a91e4);}),knowledgeCmd['command'](a20_0x206a81(0xd5))[a20_0x206a81(0x8f)]('Clear\x20all\x20knowledge\x20presets')['action'](()=>{const _0x5e7d89=a20_0x206a81;clearKnowledge(),a20_0x5e5bb0[_0x5e7d89(0xed)]('All\x20knowledge\x20presets\x20cleared');});const mcpCmd=program['command']('mcp')[a20_0x206a81(0x8f)](a20_0x206a81(0xa1));mcpCmd[a20_0x206a81(0x8b)](a20_0x206a81(0xbc))[a20_0x206a81(0x8f)](a20_0x206a81(0xa4))[a20_0x206a81(0x7c)](()=>{const _0x48d45b=a20_0x206a81,_0x22abcf=getMcpServers(),_0x26a3ba=Object[_0x48d45b(0x9c)](_0x22abcf);if(_0x26a3ba['length']===0x0){a20_0x5e5bb0['info'](_0x48d45b(0xd9)),a20_0x5e5bb0[_0x48d45b(0xc5)](_0x48d45b(0xfd)+getConfigFilePath());return;}a20_0x5e5bb0[_0x48d45b(0xc3)]('MCP\x20Servers'),_0x26a3ba[_0x48d45b(0x9f)](_0x3592b3=>{const _0x224087=_0x48d45b,_0x36bd8a=_0x22abcf[_0x3592b3];_0x36bd8a[_0x224087(0x9a)]==='streamable-http'?a20_0x5e5bb0[_0x224087(0x8d)]('-\x20'+_0x3592b3+':\x20[HTTP]\x20'+_0x36bd8a['url']):a20_0x5e5bb0[_0x224087(0x8d)]('-\x20'+_0x3592b3+_0x224087(0xa9)+_0x36bd8a[_0x224087(0x8b)]+'\x20'+(_0x36bd8a[_0x224087(0xe2)]?.[_0x224087(0x97)]('\x20')||''));}),a20_0x5e5bb0[_0x48d45b(0xc5)](_0x48d45b(0xb4)+getConfigFilePath()),a20_0x5e5bb0[_0x48d45b(0xc5)](_0x48d45b(0xad));}),mcpCmd[a20_0x206a81(0x8b)](a20_0x206a81(0xf0))['description'](a20_0x206a81(0xcc))[a20_0x206a81(0x7c)]((_0x3e9ba7,_0x44cd0f,_0x7ae946)=>{const _0x5202ad=a20_0x206a81;addMcpServer(_0x3e9ba7,_0x44cd0f,_0x7ae946),a20_0x5e5bb0[_0x5202ad(0xed)](_0x5202ad(0x10b)+_0x3e9ba7);}),mcpCmd[a20_0x206a81(0x8b)](a20_0x206a81(0x100))[a20_0x206a81(0x8f)]('Add\x20an\x20HTTP\x20MCP\x20server\x20(streamable-http)')[a20_0x206a81(0x7c)]((_0x10739f,_0x42bb68)=>{const _0x58abd0=a20_0x206a81;addMcpHttpServer(_0x10739f,_0x42bb68),a20_0x5e5bb0['success'](_0x58abd0(0x88)+_0x10739f),a20_0x5e5bb0[_0x58abd0(0xc5)](_0x58abd0(0xbb)+_0x42bb68);}),mcpCmd['command'](a20_0x206a81(0x107))[a20_0x206a81(0x10a)]([a20_0x206a81(0xe0),'rm'])['description'](a20_0x206a81(0xa6))[a20_0x206a81(0x7c)](_0x28a142=>{const _0x50e41c=a20_0x206a81;removeMcpServer(_0x28a142)?a20_0x5e5bb0[_0x50e41c(0xed)]('Removed\x20MCP\x20server:\x20'+_0x28a142):a20_0x5e5bb0['error'](_0x50e41c(0xdb)+_0x28a142+_0x50e41c(0x105));}),mcpCmd['command'](a20_0x206a81(0xa7))['aliases']([a20_0x206a81(0x109),a20_0x206a81(0xd5)])[a20_0x206a81(0x8f)](a20_0x206a81(0xe6))['action'](async()=>{const _0x3be57d=a20_0x206a81,{confirm:_0x5e3829}=await import('@inquirer/prompts'),{getTheme:_0x1ceee3}=await import(_0x3be57d(0xdd)),{getInquirerTheme:_0x410b6a}=await import(_0x3be57d(0xf6)),_0x240a8d=await _0x5e3829({'message':'Are\x20you\x20sure\x20you\x20want\x20to\x20remove\x20ALL\x20MCP\x20servers?','default':![],'theme':_0x410b6a(_0x1ceee3())});_0x240a8d?(clearMcpServers(),a20_0x5e5bb0[_0x3be57d(0xed)](_0x3be57d(0x83)),a20_0x5e5bb0[_0x3be57d(0xc5)](_0x3be57d(0xc1))):a20_0x5e5bb0[_0x3be57d(0x8d)](_0x3be57d(0xfc));}),program[a20_0x206a81(0x8b)](a20_0x206a81(0x82))[a20_0x206a81(0x10a)](['reset',a20_0x206a81(0xba),a20_0x206a81(0xab)])[a20_0x206a81(0x8f)]('Wipe\x20all\x20data,\x20rules,\x20settings,\x20and\x20MCP\x20configs')[a20_0x206a81(0x7c)](async()=>{const _0x1c7766=a20_0x206a81,{confirm:_0x2fa8fb}=await import('@inquirer/prompts'),{getTheme:_0x53e42b}=await import('./utils/storage.js'),{getInquirerTheme:_0x47355c}=await import(_0x1c7766(0xf6)),_0x82ef4a=_0x53e42b(),_0x173765=_0x47355c(_0x82ef4a),_0x1d1906=await _0x2fa8fb({'message':a20_0x285d48[_0x1c7766(0x110)](_0x1c7766(0x111)),'default':![],'theme':_0x173765});if(_0x1d1906){const {wipeAll:_0x52de7e}=await import(_0x1c7766(0xdd));_0x52de7e();try{const {clearMcpServers:_0x312422}=await import('./config/mcp.js');_0x312422();}catch(_0x19a618){}a20_0x5e5bb0[_0x1c7766(0xed)](_0x1c7766(0x96)),a20_0x5e5bb0[_0x1c7766(0xc5)](_0x1c7766(0xca));}else a20_0x5e5bb0[_0x1c7766(0x8d)](_0x1c7766(0xf8));}),program[a20_0x206a81(0x8b)](a20_0x206a81(0xb3))['description'](a20_0x206a81(0x90))['action'](()=>{const _0x2a9de8=a20_0x206a81,_0x394fd5=listDirectory('.'),_0x2d4880=_0x394fd5['entries']?.[_0x2a9de8(0xbd)](_0xe9194e=>_0xe9194e[_0x2a9de8(0x85)]===_0x2a9de8(0xeb));if(_0x2d4880){a20_0x5e5bb0[_0x2a9de8(0x104)](_0x2a9de8(0x10c));return;}createFile(_0x2a9de8(0xb7),'#\x20Project\x20Rules\x0a\x0aAdd\x20your\x20project-specific\x20rules\x20here.\x0a'),createFile('.woozlit/context.md','#\x20Project\x20Context\x0a\x0aDescribe\x20your\x20project\x20here.\x0a'),a20_0x5e5bb0[_0x2a9de8(0xed)](_0x2a9de8(0xc2)),a20_0x5e5bb0[_0x2a9de8(0xc5)](_0x2a9de8(0xbf));}),program[a20_0x206a81(0x8b)](a20_0x206a81(0xe7))['description'](a20_0x206a81(0x80))[a20_0x206a81(0x7c)](async()=>{const _0x4df6f6=a20_0x206a81,{botManager:_0x482654}=await import(_0x4df6f6(0x9d)),_0x313493=_0x482654[_0x4df6f6(0xc8)]();a20_0x5e5bb0[_0x4df6f6(0xc3)]('Background\x20Services');if(_0x313493[_0x4df6f6(0xa8)]===0x0){a20_0x5e5bb0[_0x4df6f6(0x8d)](_0x4df6f6(0x81));return;}_0x313493[_0x4df6f6(0x9f)](_0x2985e5=>{const _0x440ea1=_0x4df6f6,_0x10b7a5=_0x2985e5[_0x440ea1(0x106)]?a20_0x285d48[_0x440ea1(0xaa)](_0x440ea1(0xa0)):_0x2985e5[_0x440ea1(0xac)]?a20_0x285d48['yellow'](_0x440ea1(0xc6)):a20_0x285d48['gray'](_0x440ea1(0xe5));a20_0x5e5bb0['info']('-\x20'+_0x2985e5[_0x440ea1(0x85)]+':\x20'+_0x10b7a5);}),a20_0x5e5bb0['dim']('\x0aUse\x20\x27woozlit\x20<service>\x20setup\x27\x20to\x20configure\x20services.');});const discordCmd=program['command'](a20_0x206a81(0x7d))['description']('Manage\x20Discord\x20integration');discordCmd[a20_0x206a81(0x8b)](a20_0x206a81(0xfe))[a20_0x206a81(0x8f)]('Configure\x20Discord\x20Bot\x20Token')[a20_0x206a81(0x7c)](async()=>{const _0x1f87e7=a20_0x206a81,{setupDiscord:_0x23cdd7}=await import(_0x1f87e7(0x9e));await _0x23cdd7();});const githubCmd=program[a20_0x206a81(0x8b)](a20_0x206a81(0xee))['description']('Manage\x20GitHub\x20tool\x20integration')[a20_0x206a81(0x7c)](async _0x24f187=>{const _0x2d3e38=a20_0x206a81,{handleGitHubCommand:_0x657ff9}=await import(_0x2d3e38(0xaf));await _0x657ff9(_0x24f187||'');}),telegramCmd=program['command'](a20_0x206a81(0xdf))['description'](a20_0x206a81(0x99));telegramCmd['command'](a20_0x206a81(0xfe))['description']('Configure\x20Telegram\x20Bot\x20Token')[a20_0x206a81(0x7c)](async()=>{const {setupTelegram:_0x243352}=await import('./telegram/index.js');await _0x243352();});const emailCmd=program['command'](a20_0x206a81(0x89))[a20_0x206a81(0x8f)](a20_0x206a81(0xf9));emailCmd[a20_0x206a81(0x8b)](a20_0x206a81(0xfe))[a20_0x206a81(0x8f)](a20_0x206a81(0xdc))[a20_0x206a81(0x7c)](async()=>{const _0x320500=a20_0x206a81,{setupEmail:_0x4093c8}=await import(_0x320500(0xff));await _0x4093c8();}),program[a20_0x206a81(0x8b)](a20_0x206a81(0xa5))['description'](a20_0x206a81(0xc4))[a20_0x206a81(0x7c)](async()=>{const _0x43b333=a20_0x206a81,{performUpdate:_0x4eb21d}=await import(_0x43b333(0x87)),_0xa8e51e=await _0x4eb21d();!_0xa8e51e&&a20_0x5e5bb0[_0x43b333(0xc5)](_0x43b333(0xd6));}),program[a20_0x206a81(0xcb)]();
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x1e54a1=a21_0x5baf;(function(_0x5e4068,_0x49ebdc){const _0x36aab8=a21_0x5baf,_0x5d290a=_0x5e4068();while(!![]){try{const _0x15c0e8=parseInt(_0x36aab8(0x1d4))/0x1*(-parseInt(_0x36aab8(0x1e0))/0x2)+-parseInt(_0x36aab8(0x1b7))/0x3*(-parseInt(_0x36aab8(0x1c1))/0x4)+parseInt(_0x36aab8(0x1dd))/0x5*(-parseInt(_0x36aab8(0x1cd))/0x6)+-parseInt(_0x36aab8(0x1d0))/0x7+-parseInt(_0x36aab8(0x1cf))/0x8+-parseInt(_0x36aab8(0x1b4))/0x9+parseInt(_0x36aab8(0x1db))/0xa;if(_0x15c0e8===_0x49ebdc)break;else _0x5d290a['push'](_0x5d290a['shift']());}catch(_0x4e844e){_0x5d290a['push'](_0x5d290a['shift']());}}}(a21_0x24b6,0xe4ea3));import{Server}from'@modelcontextprotocol/sdk/server/index.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';function a21_0x5baf(_0x1fe098,_0x3f6ea6){_0x1fe098=_0x1fe098-0x1a5;const _0x24b695=a21_0x24b6();let _0x5baf48=_0x24b695[_0x1fe098];return _0x5baf48;}import{CallToolRequestSchema,ListToolsRequestSchema}from'@modelcontextprotocol/sdk/types.js';import{Jimp}from'jimp';function a21_0x24b6(){const _0x29fa36=['11855952ZSAKyj','@hurdlegroup/robotjs','setRequestHandler','63396HQbrFG','getScreenSize','length','Unknown\x20tool:\x20','control','getBuffer','object','height','toString','X\x20coordinate','52yVxapg','join','connect','keyTap','Get\x20the\x20screen\x20resolution.','command','image/jpeg','computer_screen_size','Error:\x20','Tap\x20a\x20single\x20key\x20with\x20optional\x20modifiers.','Type\x20a\x20string\x20of\x20text.','Moved\x20mouse\x20to\x20','12yMomdB','Y\x20coordinate','7452008qqDaRq','1781017fmKpoG','string','data','bitmap','1343261BZWIUt','left','Screen\x20size:\x20','screen','1.0.0','computer-use','width','49153220wEOiGy','Clicked\x20','1014705aWGwgp','Tapped\x20key:\x20','image','2dKMaHB','Modifier\x20keys','computer_mouse_click','Text\x20to\x20type','Screenshot\x20taken.','\x20button','typeString','Take\x20a\x20screenshot\x20of\x20the\x20primary\x20display.\x20Returns\x20base64\x20encoded\x20image.','text','Key\x20to\x20tap\x20(e.g.\x20\x27enter\x27,\x20\x27a\x27,\x20\x27backspace\x27)','Typed:\x20\x22','middle','mouseClick','number','array','boolean','computer_mouse_move','shift','with\x20','key','computer_screenshot','computer_type'];a21_0x24b6=function(){return _0x29fa36;};return a21_0x24b6();}import{createRequire}from'module';const require=createRequire(import.meta.url);let robot;try{robot=require(a21_0x1e54a1(0x1b5));}catch(a21_0x4767b9){}const AUTO=-0x1,MIME_JPEG='image/jpeg',server=new Server({'name':a21_0x1e54a1(0x1d9),'version':a21_0x1e54a1(0x1d8)},{'capabilities':{'tools':{}}});server[a21_0x1e54a1(0x1b6)](ListToolsRequestSchema,async()=>{const _0xaab04f=a21_0x1e54a1;return{'tools':[{'name':_0xaab04f(0x1b2),'description':_0xaab04f(0x1a5),'inputSchema':{'type':_0xaab04f(0x1bd),'properties':{}}},{'name':_0xaab04f(0x1ae),'description':'Move\x20the\x20mouse\x20cursor\x20to\x20specific\x20coordinates.','inputSchema':{'type':_0xaab04f(0x1bd),'properties':{'x':{'type':_0xaab04f(0x1ab),'description':_0xaab04f(0x1c0)},'y':{'type':_0xaab04f(0x1ab),'description':_0xaab04f(0x1ce)}},'required':['x','y']}},{'name':_0xaab04f(0x1e2),'description':'Click\x20the\x20mouse\x20button.','inputSchema':{'type':_0xaab04f(0x1bd),'properties':{'button':{'type':_0xaab04f(0x1d1),'enum':[_0xaab04f(0x1d5),'right',_0xaab04f(0x1a9)],'default':_0xaab04f(0x1d5)},'double':{'type':_0xaab04f(0x1ad),'default':![]}}}},{'name':_0xaab04f(0x1b3),'description':_0xaab04f(0x1cb),'inputSchema':{'type':_0xaab04f(0x1bd),'properties':{'text':{'type':'string','description':_0xaab04f(0x1e3)}},'required':['text']}},{'name':'computer_key_tap','description':_0xaab04f(0x1ca),'inputSchema':{'type':_0xaab04f(0x1bd),'properties':{'key':{'type':'string','description':_0xaab04f(0x1a7)},'modifiers':{'type':_0xaab04f(0x1ac),'items':{'type':_0xaab04f(0x1d1),'enum':['alt',_0xaab04f(0x1c6),_0xaab04f(0x1bb),_0xaab04f(0x1af)]},'description':_0xaab04f(0x1e1)}},'required':[_0xaab04f(0x1b1)]}},{'name':_0xaab04f(0x1c8),'description':_0xaab04f(0x1c5),'inputSchema':{'type':_0xaab04f(0x1bd),'properties':{}}}]};}),server['setRequestHandler'](CallToolRequestSchema,async _0x6a3c92=>{const _0x5e8143=a21_0x1e54a1,{name:_0x438e25,arguments:_0x123ca6}=_0x6a3c92['params'];try{if(_0x438e25===_0x5e8143(0x1b2)){const _0xf0219f=robot[_0x5e8143(0x1b8)](),_0x33e850=robot[_0x5e8143(0x1d7)]['capture'](0x0,0x0,_0xf0219f[_0x5e8143(0x1da)],_0xf0219f[_0x5e8143(0x1be)]),_0x4ce74c=new Jimp({'width':_0x33e850[_0x5e8143(0x1da)],'height':_0x33e850[_0x5e8143(0x1be)]});for(let _0x15ec99=0x0;_0x15ec99<_0x33e850[_0x5e8143(0x1df)][_0x5e8143(0x1b9)];_0x15ec99+=0x4){_0x4ce74c[_0x5e8143(0x1d3)][_0x5e8143(0x1d2)][_0x15ec99]=_0x33e850[_0x5e8143(0x1df)][_0x15ec99+0x2],_0x4ce74c[_0x5e8143(0x1d3)][_0x5e8143(0x1d2)][_0x15ec99+0x1]=_0x33e850['image'][_0x15ec99+0x1],_0x4ce74c[_0x5e8143(0x1d3)][_0x5e8143(0x1d2)][_0x15ec99+0x2]=_0x33e850[_0x5e8143(0x1df)][_0x15ec99],_0x4ce74c[_0x5e8143(0x1d3)][_0x5e8143(0x1d2)][_0x15ec99+0x3]=_0x33e850[_0x5e8143(0x1df)][_0x15ec99+0x3];}_0x4ce74c[_0x5e8143(0x1d3)][_0x5e8143(0x1da)]>0x400&&_0x4ce74c['resize']({'w':0x400});const _0x50355d=await _0x4ce74c[_0x5e8143(0x1bc)](MIME_JPEG),_0x34960e=_0x50355d[_0x5e8143(0x1bf)]('base64');return{'content':[{'type':_0x5e8143(0x1a6),'text':_0x5e8143(0x1e4)},{'type':_0x5e8143(0x1df),'data':_0x34960e,'mimeType':_0x5e8143(0x1c7)}]};}if(_0x438e25===_0x5e8143(0x1ae)){const {x:_0x2544f2,y:_0x51c89e}=_0x123ca6;return robot['moveMouse'](_0x2544f2,_0x51c89e),{'content':[{'type':_0x5e8143(0x1a6),'text':_0x5e8143(0x1cc)+_0x2544f2+',\x20'+_0x51c89e}]};}if(_0x438e25===_0x5e8143(0x1e2)){const {button:button='left',double:double=![]}=_0x123ca6;return robot[_0x5e8143(0x1aa)](button,double),{'content':[{'type':_0x5e8143(0x1a6),'text':_0x5e8143(0x1dc)+button+_0x5e8143(0x1e5)+(double?'\x20(double)':'')}]};}if(_0x438e25===_0x5e8143(0x1b3)){const {text:_0x4d2443}=_0x123ca6;return robot[_0x5e8143(0x1e6)](_0x4d2443),{'content':[{'type':'text','text':_0x5e8143(0x1a8)+_0x4d2443+'\x22'}]};}if(_0x438e25==='computer_key_tap'){const {key:_0xe1221,modifiers:_0x1b63b2}=_0x123ca6;return robot[_0x5e8143(0x1c4)](_0xe1221,_0x1b63b2),{'content':[{'type':_0x5e8143(0x1a6),'text':_0x5e8143(0x1de)+_0xe1221+'\x20'+(_0x1b63b2?_0x5e8143(0x1b0)+_0x1b63b2[_0x5e8143(0x1c2)]('+'):'')}]};}if(_0x438e25==='computer_screen_size'){const _0x4ae433=robot[_0x5e8143(0x1b8)]();return{'content':[{'type':'text','text':_0x5e8143(0x1d6)+_0x4ae433['width']+'x'+_0x4ae433['height']}]};}throw new Error(_0x5e8143(0x1ba)+_0x438e25);}catch(_0x55455c){return{'content':[{'type':'text','text':_0x5e8143(0x1c9)+_0x55455c}],'isError':!![]};}});const transport=new StdioServerTransport();await server[a21_0x1e54a1(0x1c3)](transport);
|