woozlit 2.0.2 → 2.0.4
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/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/index.js +1 -1
- package/dist/tools/mcp.js +1 -1
- package/dist/tools/rollback.js +1 -1
- package/dist/tools/rules.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/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/verify_repro.js +1 -1
- package/package.json +1 -1
package/dist/email/setup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2bc03f,_0x2c7b94){const _0x4f5d85=a14_0x5693,_0x309da6=_0x2bc03f();while(!![]){try{const _0x1a56c2=-parseInt(_0x4f5d85(0xba))/0x1*(-parseInt(_0x4f5d85(0xb7))/0x2)+-parseInt(_0x4f5d85(0xc6))/0x3*(-parseInt(_0x4f5d85(0xcb))/0x4)+parseInt(_0x4f5d85(0xc4))/0x5+-parseInt(_0x4f5d85(0xd0))/0x6*(parseInt(_0x4f5d85(0xd2))/0x7)+parseInt(_0x4f5d85(0xc8))/0x8*(parseInt(_0x4f5d85(0xc0))/0x9)+parseInt(_0x4f5d85(0xc1))/0xa*(parseInt(_0x4f5d85(0xc5))/0xb)+-parseInt(_0x4f5d85(0xbd))/0xc;if(_0x1a56c2===_0x2c7b94)break;else _0x309da6['push'](_0x309da6['shift']());}catch(_0x355901){_0x309da6['push'](_0x309da6['shift']());}}}(a14_0x43ee,0x24ffa));function a14_0x43ee(){const _0x8a7d85=['warn','993','toLowerCase','12uAhIXY','Configure\x20advanced\x20server\x20settings?','587','48385OthpsZ','SMTP\x20Port:','success','11330376naTkrt','Email\x20Provider\x20(gmail/outlook/other):','smtp.gmail.com','1345581LWkVhA','60ufxHOc','IMAP\x20Port:','addAllowedSender','1379910NPCDSe','550759DbLGvN','871152RyIVUk','This\x20setup\x20will\x20configure\x20Woozlit\x20to\x20check\x20your\x20email\x20and\x20reply.','8ACKooT','Restart\x20the\x20CLI\x20to\x20start\x20the\x20Email\x20Agent.','gmail','4DfGNyT','info','setEnabled','Password\x20(or\x20App\x20Password):','Use\x20an\x20App\x20Password\x20if\x20you\x20are\x20using\x20Gmail\x20(2FA\x20enabled).','84342GYHxPK','imap.gmail.com','105VvUQvh','SMTP\x20Host:'];a14_0x43ee=function(){return _0x8a7d85;};return a14_0x43ee();}function a14_0x5693(_0x32e2cb,_0x5bb375){_0x32e2cb=_0x32e2cb-0xb6;const _0x43ee57=a14_0x43ee();let _0x5693da=_0x43ee57[_0x32e2cb];return _0x5693da;}import{password,input,confirm}from'@inquirer/prompts';import*as a14_0x2a4562 from'./config.js';import*as a14_0x41f3e9 from'../ui/output.js';export async function setupEmail(){const _0x5f263e=a14_0x5693;a14_0x41f3e9['info'](_0x5f263e(0xc7)),a14_0x41f3e9[_0x5f263e(0xd4)](_0x5f263e(0xcf));const _0x59e6d0=await input({'message':_0x5f263e(0xbe),'default':_0x5f263e(0xca)}),_0x588ac8=await input({'message':'Email\x20Address:'}),_0x476aa4=await password({'message':_0x5f263e(0xce)});let _0x5a8b86=_0x5f263e(0xd1),_0x3867e5=0x3e1,_0x5113e4=_0x5f263e(0xbf),_0xc2d325=0x24b;if(_0x59e6d0[_0x5f263e(0xb6)]()!==_0x5f263e(0xca)){const _0x332d14=await confirm({'message':_0x5f263e(0xb8),'default':![]});if(_0x332d14){_0x5a8b86=await input({'message':'IMAP\x20Host:','default':_0x5a8b86});const _0x9dae0e=await input({'message':_0x5f263e(0xc2),'default':_0x5f263e(0xd5)});_0x3867e5=parseInt(_0x9dae0e),_0x5113e4=await input({'message':_0x5f263e(0xd3),'default':_0x5113e4});const _0x471163=await input({'message':_0x5f263e(0xbb),'default':_0x5f263e(0xb9)});_0xc2d325=parseInt(_0x471163);}}a14_0x2a4562['setCredentials'](_0x588ac8,_0x476aa4,_0x5a8b86,_0x3867e5),a14_0x2a4562[_0x5f263e(0xcd)](!![]);const _0x245b7a=await confirm({'message':'Only\x20allow\x20emails\x20from\x20yourself\x20(recommended)?','default':!![]});if(_0x245b7a){a14_0x2a4562[_0x5f263e(0xc3)](_0x588ac8);const _0x4db129=await input({'message':'Your\x20personal\x20email\x20(that\x20you\x20will\x20send\x20FROM):'});if(_0x4db129)a14_0x2a4562[_0x5f263e(0xc3)](_0x4db129);}a14_0x41f3e9[_0x5f263e(0xbc)]('Email\x20configuration\x20saved!'),a14_0x41f3e9[_0x5f263e(0xcc)](_0x5f263e(0xc9));}
|
package/dist/github/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x47cd14=a15_0x14d8;function a15_0x14d8(_0x1ef5dd,_0x3b3505){_0x1ef5dd=_0x1ef5dd-0x152;const _0x3a133a=a15_0x3a13();let _0x14d88c=_0x3a133a[_0x1ef5dd];return _0x14d88c;}function a15_0x3a13(){const _0xf81a48=['GitHub\x20API\x20error:\x20','content','headers','631428pQUiDO','372552HDzMCd','Not\x20authenticated\x20with\x20GitHub.\x20Run\x20\x27/github\x20login\x27\x20first.','application/vnd.github+json','24uNXBrr','PUT','from','total_count','15sWHbfp','/pulls?state=','/installation/repositories?per_page=1','11DgUDEk','length','stringify','refs/heads/','base64','repositories','3051130zxKduB','72999HyyGjS','open','154156qpRyUL','/pulls','toString','/contents/','sha','/comments','2022-11-28','451386hAhHYJ','utf-8','/repos/','9454ZBjwSk','POST','1eYBmLD','text','?ref=','/issues/','/git/refs','main'];a15_0x3a13=function(){return _0xf81a48;};return a15_0x3a13();}(function(_0x1bb814,_0x12c3c7){const _0x233c72=a15_0x14d8,_0x11ea3d=_0x1bb814();while(!![]){try{const _0x57a3f7=-parseInt(_0x233c72(0x171))/0x1*(-parseInt(_0x233c72(0x16f))/0x2)+-parseInt(_0x233c72(0x152))/0x3+-parseInt(_0x233c72(0x165))/0x4*(parseInt(_0x233c72(0x159))/0x5)+-parseInt(_0x233c72(0x16c))/0x6+parseInt(_0x233c72(0x17a))/0x7+-parseInt(_0x233c72(0x155))/0x8*(-parseInt(_0x233c72(0x163))/0x9)+-parseInt(_0x233c72(0x162))/0xa*(-parseInt(_0x233c72(0x15c))/0xb);if(_0x57a3f7===_0x12c3c7)break;else _0x11ea3d['push'](_0x11ea3d['shift']());}catch(_0x115188){_0x11ea3d['push'](_0x11ea3d['shift']());}}}(a15_0x3a13,0x1ab21));import{getGitHubToken}from'./auth.js';async function githubRequest(_0x4d1216,_0x1070d2={}){const _0x367279=a15_0x14d8,_0xd7b82b=await getGitHubToken();if(!_0xd7b82b)throw new Error(_0x367279(0x153));const _0x35943c=await fetch('https://api.github.com'+_0x4d1216,{..._0x1070d2,'headers':{'Authorization':'Bearer\x20'+_0xd7b82b,'Accept':_0x367279(0x154),'X-GitHub-Api-Version':_0x367279(0x16b),..._0x1070d2[_0x367279(0x179)]}});if(!_0x35943c['ok']){const _0x36ce17=await _0x35943c[_0x367279(0x172)]();throw new Error(_0x367279(0x177)+_0x35943c['status']+'\x20-\x20'+_0x36ce17);}return _0x35943c['json']();}export async function listRepos(){return githubRequest('/user/repos?per_page=100&sort=updated');}export async function getRepo(_0x4f6c6e,_0x48bae2){const _0x119c48=a15_0x14d8;return githubRequest(_0x119c48(0x16e)+_0x4f6c6e+'/'+_0x48bae2);}export async function readFile(_0x3fd66b,_0x1e7180,_0x19728,_0x3816aa=a15_0x47cd14(0x176)){const _0x53f461=a15_0x47cd14,_0x4da7de=await githubRequest('/repos/'+_0x3fd66b+'/'+_0x1e7180+_0x53f461(0x168)+_0x19728+_0x53f461(0x173)+_0x3816aa),_0x2a1b44=Buffer[_0x53f461(0x157)](_0x4da7de[_0x53f461(0x178)],_0x53f461(0x160))['toString'](_0x53f461(0x16d));return _0x2a1b44;}export async function createOrUpdateFile(_0x2161f9,_0x24caf2,_0xd4f909,_0x44cd74,_0x496c09,_0x2af166=a15_0x47cd14(0x176),_0x23be50){const _0x5cc07e=a15_0x47cd14,_0x2a2623=Buffer['from'](_0x44cd74)[_0x5cc07e(0x167)](_0x5cc07e(0x160));return githubRequest(_0x5cc07e(0x16e)+_0x2161f9+'/'+_0x24caf2+_0x5cc07e(0x168)+_0xd4f909,{'method':_0x5cc07e(0x156),'body':JSON[_0x5cc07e(0x15e)]({'message':_0x496c09,'content':_0x2a2623,'branch':_0x2af166,..._0x23be50&&{'sha':_0x23be50}})});}export async function createPullRequest(_0x456d73,_0x1bf181,_0x168fc3,_0x670646,_0x19b7f7='main',_0xdeded4){const _0x46bf72=a15_0x47cd14;return githubRequest(_0x46bf72(0x16e)+_0x456d73+'/'+_0x1bf181+_0x46bf72(0x166),{'method':_0x46bf72(0x170),'body':JSON[_0x46bf72(0x15e)]({'title':_0x168fc3,'head':_0x670646,'base':_0x19b7f7,'body':_0xdeded4||''})});}export async function listPullRequests(_0x5db597,_0x117a90,_0x1fe2f2=a15_0x47cd14(0x164)){const _0x4146dd=a15_0x47cd14;return githubRequest(_0x4146dd(0x16e)+_0x5db597+'/'+_0x117a90+_0x4146dd(0x15a)+_0x1fe2f2+'&per_page=50');}export async function commentOnPR(_0x205a0b,_0x3f267b,_0x2e2cd6,_0x447ca4){const _0x3de879=a15_0x47cd14;return githubRequest('/repos/'+_0x205a0b+'/'+_0x3f267b+_0x3de879(0x174)+_0x2e2cd6+_0x3de879(0x16a),{'method':_0x3de879(0x170),'body':JSON[_0x3de879(0x15e)]({'body':_0x447ca4})});}export async function createBranch(_0x42d025,_0x2c29d4,_0x1f62ad,_0x296612=a15_0x47cd14(0x176)){const _0x4ea138=a15_0x47cd14,_0x1816df=await githubRequest(_0x4ea138(0x16e)+_0x42d025+'/'+_0x2c29d4+'/git/ref/heads/'+_0x296612);return githubRequest(_0x4ea138(0x16e)+_0x42d025+'/'+_0x2c29d4+_0x4ea138(0x175),{'method':_0x4ea138(0x170),'body':JSON['stringify']({'ref':_0x4ea138(0x15f)+_0x1f62ad,'sha':_0x1816df['object'][_0x4ea138(0x169)]})});}export async function getAppStatus(){const _0x21e752=a15_0x47cd14;try{const _0x26bcc9=await githubRequest(_0x21e752(0x15b)),_0x378300=_0x26bcc9[_0x21e752(0x158)];let _0xfbdc9e='GitHub\x20App';return _0x26bcc9[_0x21e752(0x161)]&&_0x26bcc9[_0x21e752(0x161)][_0x21e752(0x15d)]>0x0&&(_0xfbdc9e=_0x26bcc9[_0x21e752(0x161)][0x0]['owner']['login']),{'valid':!![],'repoCount':_0x378300,'accountName':_0xfbdc9e};}catch(_0x19b98c){throw _0x19b98c;}}
|
package/dist/github/auth.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a16_0x10fe38=a16_0x59b0;(function(_0x319081,_0x27b176){const _0x467d84=a16_0x59b0,_0x5a7047=_0x319081();while(!![]){try{const _0x59956f=parseInt(_0x467d84(0x10b))/0x1*(-parseInt(_0x467d84(0x108))/0x2)+-parseInt(_0x467d84(0x10c))/0x3+parseInt(_0x467d84(0x117))/0x4*(parseInt(_0x467d84(0x10a))/0x5)+-parseInt(_0x467d84(0x113))/0x6+parseInt(_0x467d84(0x101))/0x7*(-parseInt(_0x467d84(0x121))/0x8)+parseInt(_0x467d84(0x115))/0x9*(-parseInt(_0x467d84(0x116))/0xa)+-parseInt(_0x467d84(0x11a))/0xb*(-parseInt(_0x467d84(0x11c))/0xc);if(_0x59956f===_0x27b176)break;else _0x5a7047['push'](_0x5a7047['shift']());}catch(_0x104e22){_0x5a7047['push'](_0x5a7047['shift']());}}}(a16_0x51f7,0xdaba5));import{promises as a16_0x232980}from'fs';import{join}from'path';import{createAppAuth}from'@octokit/auth-app';function a16_0x59b0(_0x387d31,_0x3c64b5){_0x387d31=_0x387d31-0x101;const _0x51f70d=a16_0x51f7();let _0x59b072=_0x51f70d[_0x387d31];return _0x59b072;}import{homedir}from'os';const GLOBAL_CONFIG_DIR=join(homedir(),'.woozlit'),CONFIG_FILE=join(GLOBAL_CONFIG_DIR,a16_0x10fe38(0x112)),KEY_FILE=join(GLOBAL_CONFIG_DIR,'github-app.pem');let appAuth=null,installationToken=null;async function getGitHubAppConfig(){const _0x19d472=a16_0x10fe38;try{const _0x56a8b5=await a16_0x232980['access'](CONFIG_FILE)[_0x19d472(0x109)](()=>!![])['catch'](()=>![]),_0x30aacd=await a16_0x232980[_0x19d472(0x11f)](KEY_FILE)[_0x19d472(0x109)](()=>!![])[_0x19d472(0x111)](()=>![]);if(!_0x56a8b5||!_0x30aacd)return null;const _0x4a334a=await a16_0x232980[_0x19d472(0x110)](CONFIG_FILE,_0x19d472(0x114)),{appId:_0x37e667,installationId:_0x26cbf8}=JSON[_0x19d472(0x102)](_0x4a334a),_0x380b73=await a16_0x232980[_0x19d472(0x110)](KEY_FILE,_0x19d472(0x114));if(!_0x37e667||!_0x26cbf8||!_0x380b73)return null;return{'appId':_0x37e667,'privateKey':_0x380b73,'installationId':_0x26cbf8};}catch(_0xf26572){return null;}}async function initAppAuth(){const _0x6c9997=a16_0x10fe38;if(appAuth)return;const _0x1a9c3c=await getGitHubAppConfig();if(!_0x1a9c3c)throw new Error('GitHub\x20App\x20not\x20configured.\x20Run\x20/github\x20setup');appAuth=createAppAuth({'appId':_0x1a9c3c['appId'],'privateKey':_0x1a9c3c[_0x6c9997(0x118)],'installationId':_0x1a9c3c[_0x6c9997(0x104)]});}function a16_0x51f7(){const _0x4bf270=['then','25455snQePY','14646vRCUJf','3672201ilsugi','unlink','GitHub\x20App\x20auth\x20failed:','installation','readFile','catch','github-app-config.json','5952816ObLVOF','utf8','676602cMbJGY','140cfuGxp','436ZoJQIK','privateKey','✓\x20GitHub\x20App\x20authenticated!','66NPeVJV','token','12738756xLXVFc','Error\x20clearing\x20session:','✓\x20GitHub\x20session\x20cleared','access','log','10126408Cubija','7mEljMT','parse','You\x20can\x20now\x20access\x20private\x20repositories','installationId','❌\x20Authentication\x20failed:','expiresAt','error','204WyXjXA'];a16_0x51f7=function(){return _0x4bf270;};return a16_0x51f7();}async function getInstallationToken(){const _0x10a37f=a16_0x10fe38;await initAppAuth();if(installationToken&&installationToken[_0x10a37f(0x106)]>new Date())return installationToken[_0x10a37f(0x11b)];const {token:_0x234c2a,expiresAt:_0x57fffa}=await appAuth({'type':_0x10a37f(0x10f)});return installationToken={'token':_0x234c2a,'expiresAt':new Date(_0x57fffa)},_0x234c2a;}export async function getGitHubToken(){const _0x434629=a16_0x10fe38;try{return await getInstallationToken();}catch(_0x1f0a01){return console['error'](_0x434629(0x10e),_0x1f0a01),null;}}export async function isGitHubAuthenticated(){const _0x8b9f13=await getGitHubAppConfig();return _0x8b9f13!==null;}export async function loginGitHub(){const _0x20e566=a16_0x10fe38,_0x9a5183=await getGitHubAppConfig();if(!_0x9a5183){console[_0x20e566(0x120)]('\x0a❌\x20GitHub\x20App\x20not\x20configured'),console[_0x20e566(0x120)]('Run\x20/github\x20setup\x20to\x20configure\x20automatically');return;}try{const _0x11d3f0=await getInstallationToken();console['log'](_0x20e566(0x119)),console[_0x20e566(0x120)](_0x20e566(0x103));}catch(_0x8eaf76){console[_0x20e566(0x107)](_0x20e566(0x105),_0x8eaf76),console[_0x20e566(0x120)]('Try\x20running\x20/github\x20setup\x20again');}}export async function logoutGitHub(){const _0x14e667=a16_0x10fe38;try{await a16_0x232980[_0x14e667(0x10d)](CONFIG_FILE)['catch'](()=>{}),await a16_0x232980[_0x14e667(0x10d)](KEY_FILE)['catch'](()=>{}),installationToken=null,appAuth=null,console[_0x14e667(0x120)](_0x14e667(0x11e));}catch(_0x3f2419){console[_0x14e667(0x107)](_0x14e667(0x11d),_0x3f2419);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4b96d5,_0x21b94d){const _0x2a031e=a17_0x102b,_0xe5b8c1=_0x4b96d5();while(!![]){try{const _0x8324d2=-parseInt(_0x2a031e(0x1b1))/0x1*(parseInt(_0x2a031e(0x1ba))/0x2)+-parseInt(_0x2a031e(0x1da))/0x3+parseInt(_0x2a031e(0x1cc))/0x4+-parseInt(_0x2a031e(0x1c6))/0x5*(-parseInt(_0x2a031e(0x1a7))/0x6)+-parseInt(_0x2a031e(0x1b7))/0x7*(-parseInt(_0x2a031e(0x1b6))/0x8)+-parseInt(_0x2a031e(0x1a5))/0x9+parseInt(_0x2a031e(0x1d1))/0xa*(parseInt(_0x2a031e(0x197))/0xb);if(_0x8324d2===_0x21b94d)break;else _0xe5b8c1['push'](_0xe5b8c1['shift']());}catch(_0x291f94){_0xe5b8c1['push'](_0xe5b8c1['shift']());}}}(a17_0x31c2,0x764b9));import{promises as a17_0x173143}from'fs';import{join}from'path';import*as a17_0x171242 from'../ui/output.js';import{createServer}from'http';function a17_0x102b(_0x245f6a,_0x272e0c){_0x245f6a=_0x245f6a-0x18e;const _0x31c218=a17_0x31c2();let _0x102b0a=_0x31c218[_0x245f6a];return _0x102b0a;}function a17_0x31c2(){const _0x34a36d=['You\x20can\x20now\x20access\x20private\x20repositories!','write','1226bNCStk','No\x20code\x20found','(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)','http://127.0.0.1:3000/webhook','mkdir','writeHead','access','https://github.com/settings/apps/new?','127.0.0.1','http://127.0.0.1:3000/callback','/favicon.ico','<h1>Setup\x20Complete!</h1><p>You\x20can\x20close\x20this\x20tab\x20and\x20return\x20to\x20the\x20terminal.</p>','587255YPcBPy','now','utf8','Woozlit\x20CLI\x20','Server\x20error:\x20','text','2426740MSAlIv','trim','✓\x20App\x20installed!','.woozlit','\x0a✓\x20GitHub\x20App\x20created!','10kYTMXt','\x0a✓\x20GitHub\x20App\x20setup\x20complete!','writeFile','html_url','https://api.github.com/app-manifests/','Paste\x20code\x20(or\x20wait\x20for\x20automatic\x20redirect):','header','name','toString','2335128rOQzEG','listen','success','App\x20created\x20but\x20not\x20installed\x20yet.','length','read','stringify','/installations/new','destroy','\x0aStep\x203:\x20Checking\x20installation...','http://127.0.0.1:3000','Failed\x20to\x20open\x20browser\x20automatically.','14268760SItYYj','data','POST','end','method','pem','Url:\x20','Failed\x20to\x20exchange\x20code:\x20','Opened:\x20','once','App\x20Name:\x20','Configuration\x20saved\x20globally\x20to\x20~/.woozlit/','application/vnd.github+json','searchParams','5176926xkgTKm','error','12jRTPdn','stdin','github-app-config.json','close','dim','GET','json','url','/app/installations','/conversions','1373KpMwjs','\x0aStep\x202:\x20Registering\x20GitHub\x20App...','Step\x201:\x20Opening\x20GitHub\x20to\x20create\x20App...','This\x20will\x20create\x20a\x20GitHub\x20App\x20automatically\x20via\x20Manifest\x20Flow\x0a','info','184TfBMUq','164661YUctKt'];a17_0x31c2=function(){return _0x34a36d;};return a17_0x31c2();}import a17_0x32f1d0 from'open';import{homedir}from'os';import{createAppAuth}from'@octokit/auth-app';import{input}from'@inquirer/prompts';async function createGitHubAppManifestFlow(){return new Promise(async(_0xfe6042,_0x1ba0be)=>{const _0x19b625=a17_0x102b;let _0x7fa026=![];const _0x1ce346=createServer(async(_0x373e61,_0x33b5fc)=>{const _0x20890c=a17_0x102b;if(_0x373e61[_0x20890c(0x1ae)]===_0x20890c(0x1c4)){_0x33b5fc[_0x20890c(0x1bf)](0x194),_0x33b5fc[_0x20890c(0x19a)]();return;}a17_0x171242[_0x20890c(0x1ab)]('Received\x20request:\x20'+_0x373e61[_0x20890c(0x19b)]+'\x20'+_0x373e61['url']);const _0xf9d3d9=new URL(_0x373e61[_0x20890c(0x1ae)]||'/','http://127.0.0.1:3000'),_0x2d9dc3=_0xf9d3d9[_0x20890c(0x1a4)]['get']('code');_0x2d9dc3?(_0x33b5fc['writeHead'](0xc8,{'Content-Type':'text/html'}),_0x33b5fc[_0x20890c(0x19a)](_0x20890c(0x1c5)),_0x33b5fc[_0x20890c(0x193)](),!_0x7fa026&&(_0x7fa026=!![],_0x1ce346['close'](),_0x2a1adf(_0x2d9dc3))):(_0x33b5fc[_0x20890c(0x1bf)](0x190),_0x33b5fc[_0x20890c(0x19a)](_0x20890c(0x1bb)));}),_0x2a1adf=async _0x1ae2ed=>{const _0x25cd53=a17_0x102b;try{a17_0x171242[_0x25cd53(0x1b5)](_0x25cd53(0x1b2));const _0x15c275=await fetch(_0x25cd53(0x1d5)+_0x1ae2ed+_0x25cd53(0x1b0),{'method':_0x25cd53(0x199),'headers':{'Accept':_0x25cd53(0x1a3)}});if(!_0x15c275['ok'])throw new Error(_0x25cd53(0x19e)+await _0x15c275[_0x25cd53(0x1cb)]());const _0x1704f6=await _0x15c275[_0x25cd53(0x1ad)]();_0xfe6042(_0x1704f6);}catch(_0x5b408e){_0x1ba0be(_0x5b408e);}};_0x1ce346[_0x19b625(0x1db)](0xbb8,_0x19b625(0x1c2),async()=>{const _0x234f62=_0x19b625,_0x3b1888={'name':_0x234f62(0x1c9)+Date[_0x234f62(0x1c7)](),'url':_0x234f62(0x195),'hook_attributes':{'url':_0x234f62(0x1bd)},'redirect_url':_0x234f62(0x1c3),'public':![],'default_permissions':{'contents':_0x234f62(0x1b9),'pull_requests':'write','metadata':_0x234f62(0x190)},'default_events':[]},_0x465ef0=new URLSearchParams({'manifest':JSON[_0x234f62(0x191)](_0x3b1888)}),_0x3c2b67=_0x234f62(0x1c1)+_0x465ef0[_0x234f62(0x1d9)]();a17_0x171242[_0x234f62(0x1b5)](_0x234f62(0x1b3)),a17_0x171242[_0x234f62(0x1ab)](_0x234f62(0x19d)+_0x3c2b67);try{await a17_0x32f1d0(_0x3c2b67),a17_0x171242[_0x234f62(0x1dc)]('Browser\x20opened!\x20Please\x20click\x20\x22Create\x20GitHub\x20App\x22\x20on\x20the\x20page.'),a17_0x171242[_0x234f62(0x1b5)]('\x0awaiting\x20for\x20browser\x20callback...'),a17_0x171242[_0x234f62(0x1ab)](_0x234f62(0x1bc));try{const _0x2d14e0=await input({'message':_0x234f62(0x1d6),'transformer':_0x4071df=>_0x4071df[_0x234f62(0x1cd)]()});_0x2d14e0&&!_0x7fa026&&(_0x7fa026=!![],_0x1ce346[_0x234f62(0x1aa)](),_0x2a1adf(_0x2d14e0));}catch(_0x589232){}}catch(_0x20fb40){a17_0x171242['error'](_0x234f62(0x196)),a17_0x171242[_0x234f62(0x1b5)]('Please\x20visit\x20this\x20URL\x20manually:\x0a'+_0x3c2b67);}}),_0x1ce346['on'](_0x19b625(0x1a6),_0x565824=>{const _0x3f6bb3=_0x19b625;a17_0x171242[_0x3f6bb3(0x1a6)](_0x3f6bb3(0x1ca)+_0x565824),_0x1ba0be(_0x565824);});});}async function saveConfig(_0x4a1776,_0x45bd1b,_0x339049){const _0x3092c3=a17_0x102b,_0x29b6e3=join(homedir(),_0x3092c3(0x1cf));try{await a17_0x173143[_0x3092c3(0x1c0)](_0x29b6e3);}catch{await a17_0x173143[_0x3092c3(0x1be)](_0x29b6e3,{'recursive':!![]});}const _0xb44cbc=join(_0x29b6e3,_0x3092c3(0x1a9)),_0x34765f=join(_0x29b6e3,'github-app.pem');await a17_0x173143[_0x3092c3(0x1d3)](_0x34765f,_0x45bd1b,_0x3092c3(0x1c8)),await a17_0x173143[_0x3092c3(0x1d3)](_0xb44cbc,JSON[_0x3092c3(0x191)]({'appId':_0x4a1776,'installationId':_0x339049},null,0x2),_0x3092c3(0x1c8));}async function installAppIfNeeded(_0x3c430c){const _0x12130d=a17_0x102b;a17_0x171242[_0x12130d(0x1b5)](_0x12130d(0x194));const _0x4f32e7=createAppAuth({'appId':_0x3c430c['id'],'privateKey':_0x3c430c[_0x12130d(0x19c)]});try{const {data:_0x4c593e}=await _0x4f32e7['hook']((_0x220160,_0x10bcd1)=>_0x220160(_0x10bcd1),{'method':_0x12130d(0x1ac),'url':_0x12130d(0x1af)});if(_0x4c593e&&_0x4c593e[_0x12130d(0x18f)]>0x0)return _0x4c593e[0x0]['id'];}catch(_0x4e2968){}a17_0x171242[_0x12130d(0x1b5)](_0x12130d(0x18e)),a17_0x171242[_0x12130d(0x1b5)]('Please\x20install\x20the\x20app\x20on\x20your\x20account/repositories.');const _0x4efff8=_0x3c430c[_0x12130d(0x1d4)]+_0x12130d(0x192);await a17_0x32f1d0(_0x4efff8),a17_0x171242[_0x12130d(0x1b5)](_0x12130d(0x19f)+_0x4efff8),a17_0x171242[_0x12130d(0x1b5)]('Press\x20Enter\x20after\x20you\x20have\x20installed\x20the\x20app...'),await new Promise(_0x7b6001=>process[_0x12130d(0x1a8)][_0x12130d(0x1a0)](_0x12130d(0x198),_0x7b6001));const _0x289350=createAppAuth({'appId':_0x3c430c['id'],'privateKey':_0x3c430c[_0x12130d(0x19c)]}),{data:_0x15e4f0}=await _0x289350['hook']((_0x18753b,_0x51b7a5)=>_0x18753b(_0x51b7a5),{'method':_0x12130d(0x1ac),'url':_0x12130d(0x1af)});if(_0x15e4f0&&_0x15e4f0[_0x12130d(0x18f)]>0x0)return _0x15e4f0[0x0]['id'];throw new Error('Could\x20not\x20find\x20installation.\x20Please\x20try\x20again.');}export async function autoSetupGitHub(){const _0x305696=a17_0x102b;a17_0x171242[_0x305696(0x1d7)]('GitHub\x20App\x20Auto-Setup'),a17_0x171242[_0x305696(0x1ab)](_0x305696(0x1b4));try{const _0x5574f7=await createGitHubAppManifestFlow();a17_0x171242['success'](_0x305696(0x1d0));const _0x3eb2db=await installAppIfNeeded(_0x5574f7);a17_0x171242['success'](_0x305696(0x1ce)),a17_0x171242[_0x305696(0x1b5)]('\x0aStep\x204:\x20Saving\x20configuration...'),await saveConfig(_0x5574f7['id'],_0x5574f7[_0x305696(0x19c)],_0x3eb2db),a17_0x171242['success'](_0x305696(0x1d2)),a17_0x171242['dim']('App\x20ID:\x20'+_0x5574f7['id']),a17_0x171242[_0x305696(0x1ab)](_0x305696(0x1a1)+_0x5574f7[_0x305696(0x1d8)]),a17_0x171242[_0x305696(0x1ab)](_0x305696(0x1a2)),a17_0x171242['success'](_0x305696(0x1b8));}catch(_0x3c2cab){a17_0x171242[_0x305696(0x1a6)]('\x0aSetup\x20failed:\x20'+_0x3c2cab),a17_0x171242[_0x305696(0x1ab)]('\x0aYou\x20can\x20try\x20manual\x20setup\x20with:\x20/github\x20manual'),process['exit'](0x1);}}
|
package/dist/github/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ecbc5,_0x5521a2){const _0x34e51a=a18_0x4fe0,_0x40909b=_0x3ecbc5();while(!![]){try{const _0x6aa917=parseInt(_0x34e51a(0xde))/0x1+parseInt(_0x34e51a(0xd7))/0x2*(parseInt(_0x34e51a(0xed))/0x3)+-parseInt(_0x34e51a(0xcd))/0x4+parseInt(_0x34e51a(0xf0))/0x5*(-parseInt(_0x34e51a(0xe3))/0x6)+-parseInt(_0x34e51a(0xe9))/0x7+parseInt(_0x34e51a(0xe8))/0x8+parseInt(_0x34e51a(0xd1))/0x9;if(_0x6aa917===_0x5521a2)break;else _0x40909b['push'](_0x40909b['shift']());}catch(_0xda178c){_0x40909b['push'](_0x40909b['shift']());}}}(a18_0xd00d,0xd537a));import*as a18_0x1b2ecb from'../ui/output.js';import{loginGitHub,logoutGitHub,isGitHubAuthenticated}from'./auth.js';import{listRepos}from'./api.js';function a18_0xd00d(){const _0x8039b0=['Failed\x20to\x20fetch\x20repos:\x20','login','private','29853SGuYct','Installed\x20on\x20account:\x20','(private)','repoCount','GitHub\x20Commands','863358aNITuX','\x20\x20/github\x20setup\x20\x20\x20-\x20Auto-create\x20GitHub\x20App\x20(recommended)','config','header','repos','2042016ccoNJV','7933835UmihOR','\x20\x20/github\x20status\x20\x20-\x20Check\x20authentication\x20status','\x20more','length','57jcDiMP','Your\x20GitHub\x20Repositories','error','10xUOhZK','dim','\x20\x20/github\x20login\x20\x20\x20-\x20Test\x20GitHub\x20App\x20authentication','Not\x20logged\x20in.\x20Run\x20\x27/github\x20setup\x27\x20first','\x20repositories','6693864ETsDch','Not\x20logged\x20in\x20to\x20GitHub\x20App','forEach','./api.js','26142192qQSYiE','accountName','setup','\x20\x20/github\x20logout\x20\x20-\x20Clear\x20GitHub\x20App\x20credentials','success','\x20\x20...\x20and\x20','81916mRKCyX','stop','warn','(public)'];a18_0xd00d=function(){return _0x8039b0;};return a18_0xd00d();}import{autoSetupGitHub}from'./auto-setup.js';import{manualSetupGitHub}from'./manual-setup.js';function a18_0x4fe0(_0x229bae,_0xe14267){_0x229bae=_0x229bae-0xca;const _0xd00d1b=a18_0xd00d();let _0x4fe084=_0xd00d1b[_0x229bae];return _0x4fe084;}export async function handleGitHubCommand(_0x684155){const _0x127ab4=a18_0x4fe0;if(_0x684155===_0x127ab4(0xd3)){await autoSetupGitHub();return;}if(_0x684155==='manual'||_0x684155===_0x127ab4(0xe5)){await manualSetupGitHub();return;}if(_0x684155===_0x127ab4(0xdc)){await loginGitHub();return;}if(_0x684155==='logout'){await logoutGitHub();return;}if(_0x684155==='status'){const _0x2ac549=await isGitHubAuthenticated();if(_0x2ac549)try{const {getAppStatus:_0x36f094}=await import(_0x127ab4(0xd0)),_0x12e49e=await _0x36f094();a18_0x1b2ecb[_0x127ab4(0xd5)]('✓\x20Authenticated\x20as\x20GitHub\x20App'),_0x12e49e[_0x127ab4(0xd2)]&&a18_0x1b2ecb['info'](_0x127ab4(0xdf)+_0x12e49e[_0x127ab4(0xd2)]),a18_0x1b2ecb[_0x127ab4(0xf1)]('Access\x20to\x20'+_0x12e49e[_0x127ab4(0xe1)]+_0x127ab4(0xcc));}catch(_0x3a9dd7){a18_0x1b2ecb[_0x127ab4(0xd9)]('Token\x20may\x20be\x20invalid\x20or\x20app\x20has\x20no\x20repo\x20access:\x20'+_0x3a9dd7);}else a18_0x1b2ecb[_0x127ab4(0xf1)](_0x127ab4(0xce));return;}if(_0x684155===_0x127ab4(0xe7)){const _0x5e2e78=await isGitHubAuthenticated();if(!_0x5e2e78){a18_0x1b2ecb['error'](_0x127ab4(0xcb));return;}a18_0x1b2ecb['header'](_0x127ab4(0xee));const _0x584399=a18_0x1b2ecb['createSpinner']('Fetching\x20repos...');_0x584399['start']();try{const _0x173c30=await listRepos();_0x584399[_0x127ab4(0xd8)](),_0x173c30['slice'](0x0,0xa)[_0x127ab4(0xcf)](_0x4db954=>{const _0x47dd82=_0x127ab4,_0x4feceb=_0x4db954[_0x47dd82(0xdd)]?_0x47dd82(0xe0):_0x47dd82(0xda);a18_0x1b2ecb[_0x47dd82(0xf1)]('\x20\x20'+_0x4db954['full_name']+'\x20'+_0x4feceb);}),_0x173c30[_0x127ab4(0xec)]>0xa&&a18_0x1b2ecb[_0x127ab4(0xf1)](_0x127ab4(0xd6)+(_0x173c30[_0x127ab4(0xec)]-0xa)+_0x127ab4(0xeb));}catch(_0x12a576){_0x584399['stop'](),a18_0x1b2ecb[_0x127ab4(0xef)](_0x127ab4(0xdb)+_0x12a576);}return;}a18_0x1b2ecb[_0x127ab4(0xe6)](_0x127ab4(0xe2)),a18_0x1b2ecb[_0x127ab4(0xf1)](_0x127ab4(0xe4)),a18_0x1b2ecb[_0x127ab4(0xf1)](_0x127ab4(0xca)),a18_0x1b2ecb[_0x127ab4(0xf1)](_0x127ab4(0xd4)),a18_0x1b2ecb[_0x127ab4(0xf1)](_0x127ab4(0xea)),a18_0x1b2ecb[_0x127ab4(0xf1)]('\x20\x20/github\x20repos\x20\x20\x20-\x20List\x20your\x20repositories\x20(including\x20private)');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18017e,_0x2f153c){const _0x59de95=a19_0x32e9,_0x553504=_0x18017e();while(!![]){try{const _0x5bbebf=parseInt(_0x59de95(0x13a))/0x1*(-parseInt(_0x59de95(0x149))/0x2)+-parseInt(_0x59de95(0x145))/0x3*(parseInt(_0x59de95(0x133))/0x4)+-parseInt(_0x59de95(0x12d))/0x5*(-parseInt(_0x59de95(0x14e))/0x6)+-parseInt(_0x59de95(0x137))/0x7*(parseInt(_0x59de95(0x14b))/0x8)+parseInt(_0x59de95(0x135))/0x9*(-parseInt(_0x59de95(0x134))/0xa)+parseInt(_0x59de95(0x14f))/0xb*(parseInt(_0x59de95(0x13c))/0xc)+parseInt(_0x59de95(0x146))/0xd;if(_0x5bbebf===_0x2f153c)break;else _0x553504['push'](_0x553504['shift']());}catch(_0x33ae3e){_0x553504['push'](_0x553504['shift']());}}}(a19_0x417c,0x3f463));import{promises as a19_0x38e313}from'fs';import{join}from'path';import*as a19_0x480694 from'../ui/output.js';function a19_0x32e9(_0x538c8b,_0x40b11d){_0x538c8b=_0x538c8b-0x12a;const _0x417cb2=a19_0x417c();let _0x32e9c9=_0x417cb2[_0x538c8b];return _0x32e9c9;}import{homedir}from'os';import{input,editor}from'@inquirer/prompts';async function saveConfig(_0x235d01,_0x18149e,_0x42ef17){const _0x313271=a19_0x32e9,_0xfa3546=join(homedir(),_0x313271(0x147));try{await a19_0x38e313[_0x313271(0x12a)](_0xfa3546);}catch{await a19_0x38e313[_0x313271(0x14a)](_0xfa3546,{'recursive':!![]});}const _0x475b8b=join(_0xfa3546,_0x313271(0x12c)),_0x4030d7=join(_0xfa3546,_0x313271(0x144));await a19_0x38e313['writeFile'](_0x4030d7,_0x18149e,'utf8'),await a19_0x38e313[_0x313271(0x13b)](_0x475b8b,JSON[_0x313271(0x150)]({'appId':_0x235d01,'installationId':_0x42ef17},null,0x2),_0x313271(0x12e));}function a19_0x417c(){const _0x2ca27b=['force\x20closed','66XLpKej','295339XyDVJS','stringify','message','includes','\x0aSaving\x20configuration...','\x0aSetup\x20failed:\x20','dim','access','\x0aSetup\x20cancelled.','github-app-config.json','31250dzpHok','utf8','App\x20ID\x20is\x20required','Installation\x20ID:','Invalid\x20PEM\x20format','success','4cJNndp','2673530IFBXsE','9tHQQOd','\x0a✓\x20Configuration\x20saved!','7DIDUjk','Private\x20Key\x20(PEM\x20format):','info','382759fPyxmC','writeFile','60aNvfTb','BEGIN\x20PRIVATE\x20KEY','error','BEGIN\x20RSA\x20PRIVATE\x20KEY','App\x20ID:','length','To\x20verify,\x20run:\x20/github\x20status','header','github-app.pem','1408119JznllK','16637192CmKtuk','.woozlit','GitHub\x20App\x20Manual\x20Configuration','2VLSzWM','mkdir','832984ZQotEz','Paste\x20the\x20entire\x20content\x20of\x20your\x20.pem\x20file,\x20save,\x20and\x20close.'];a19_0x417c=function(){return _0x2ca27b;};return a19_0x417c();}export async function manualSetupGitHub(){const _0x59556a=a19_0x32e9;a19_0x480694[_0x59556a(0x143)](_0x59556a(0x148)),a19_0x480694[_0x59556a(0x155)]('Enter\x20your\x20existing\x20GitHub\x20App\x20credentials\x20manually.\x0a');try{const _0x46897f=await input({'message':_0x59556a(0x140),'validate':_0x3b0a47=>_0x3b0a47[_0x59556a(0x141)]>0x0?!![]:_0x59556a(0x12f)});a19_0x480694['info']('\x0aFor\x20the\x20Private\x20Key,\x20your\x20default\x20editor\x20will\x20open.'),a19_0x480694[_0x59556a(0x139)](_0x59556a(0x14c)),await new Promise(_0x1ff49a=>setTimeout(_0x1ff49a,0x7d0));const _0x4482aa=await editor({'message':_0x59556a(0x138),'validate':_0x714079=>_0x714079[_0x59556a(0x152)](_0x59556a(0x13f))||_0x714079['includes'](_0x59556a(0x13d))?!![]:_0x59556a(0x131)}),_0x4f0662=await input({'message':_0x59556a(0x130),'validate':_0x24cd7d=>_0x24cd7d[_0x59556a(0x141)]>0x0?!![]:'Installation\x20ID\x20is\x20required'});a19_0x480694[_0x59556a(0x139)](_0x59556a(0x153)),await saveConfig(_0x46897f,_0x4482aa,_0x4f0662),a19_0x480694[_0x59556a(0x132)](_0x59556a(0x136)),a19_0x480694['dim'](_0x59556a(0x142));}catch(_0x50396f){if(_0x50396f instanceof Error&&_0x50396f[_0x59556a(0x151)][_0x59556a(0x152)](_0x59556a(0x14d))){a19_0x480694['warn'](_0x59556a(0x12b));return;}a19_0x480694[_0x59556a(0x13e)](_0x59556a(0x154)+_0x50396f);}}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
function a20_0x5785(_0x88f422,_0x2c0f76){_0x88f422=_0x88f422-0xbb;const _0x56684f=a20_0x5668();let _0x578566=_0x56684f[_0x88f422];return _0x578566;}const a20_0x298f7e=a20_0x5785;(function(_0x5db289,_0x588659){const _0xb4b752=a20_0x5785,_0x3aa754=_0x5db289();while(!![]){try{const _0x16a44d=parseInt(_0xb4b752(0x126))/0x1+-parseInt(_0xb4b752(0xed))/0x2+-parseInt(_0xb4b752(0x111))/0x3*(parseInt(_0xb4b752(0xcc))/0x4)+-parseInt(_0xb4b752(0xe0))/0x5*(parseInt(_0xb4b752(0xfd))/0x6)+-parseInt(_0xb4b752(0xe1))/0x7+parseInt(_0xb4b752(0x12e))/0x8*(parseInt(_0xb4b752(0xce))/0x9)+parseInt(_0xb4b752(0xec))/0xa;if(_0x16a44d===_0x588659)break;else _0x3aa754['push'](_0x3aa754['shift']());}catch(_0x2cebac){_0x3aa754['push'](_0x3aa754['shift']());}}}(a20_0x5668,0x562a9));import{Command}from'commander';import a20_0x56d84c 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{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_0x430f9e from'./ui/output.js';function a20_0x5668(){const _0xc2b6d5=['configured','Configure\x20Discord\x20Bot\x20Token','start','Theme\x20set\x20to:\x20','48XTnUOf','bold','Default\x20servers\x20will\x20be\x20restored\x20on\x20next\x20restart\x20unless\x20you\x20remove\x20them\x20again.','type','./ui/themes.js','stop','setup','Name:\x20','header','dim','Manage\x20Discord\x20integration','Login\x20with\x20your\x20Woozlit\x20account','Configure\x20CLI\x20settings','Manage\x20AI\x20behavior\x20rules','Manage\x20Telegram\x20integration','Not\x20logged\x20in.\x20Use\x20\x27woozlit\x20login\x27\x20to\x20authenticate.','Select\x20AI\x20model','No\x20rules\x20defined','entries','Add\x20an\x20HTTP\x20MCP\x20server\x20(streamable-http)','Login\x20failed\x20or\x20timed\x20out','\x27\x20not\x20found','List\x20all\x20MCP\x20servers','info','#\x20Project\x20Context\x0a\x0aDescribe\x20your\x20project\x20here.\x0a','success','Configure\x20email\x20credentials','Ask\x20a\x20single\x20question','length','./utils/storage.js','Are\x20you\x20sure\x20you\x20want\x20to\x20remove\x20ALL\x20MCP\x20servers?','delete','Model\x20set\x20to:\x20','MCP\x20Servers','hex','clean','chat\x20[message]','./email/index.js','streamable-http','join','Removed\x20MCP\x20server:\x20','remove-all','#3b82f6','You\x20must\x20be\x20logged\x20in\x20to\x20use\x20chat.','No\x20MCP\x20servers\x20configured','MCP\x20server\x20\x27','List\x20all\x20rules','2.0.2','\x0aUse\x20\x27woozlit\x20<service>\x20setup\x27\x20to\x20configure\x20services.','refresh','245492JlEoBy','some','327834xJHIsA','command',':\x20[HTTP]\x20','forEach','theme','getStatus','Background\x20Services','Initialize\x20Woozlit\x20in\x20current\x20directory','\x0aConfig\x20file:\x20','./telegram/index.js','yellow','Show\x20current\x20user\x20info','Are\x20you\x20sure\x20you\x20want\x20to\x20completely\x20WIPE\x20all\x20CLI\x20data,\x20rules,\x20and\x20configs?','#\x20Project\x20Rules\x0a\x0aAdd\x20your\x20project-specific\x20rules\x20here.\x0a','Woozlit\x20AI\x20-\x20Agentic\x20Coding\x20Assistant','createSpinner','Rules','Added\x20HTTP\x20MCP\x20server:\x20','3380roAulx','460957vhRvJc','add-http\x20<name>\x20<url>','url','clear','Select\x20UI\x20theme\x20(alias\x20for\x20config\x20theme)','Stopped','telegram','Added\x20stdio\x20MCP\x20server:\x20','reset','Woozlit\x20already\x20initialized\x20in\x20this\x20directory','init','13141280JGvyID','1005884nvjxIL','Remove\x20an\x20MCP\x20server',':\x20[stdio]\x20','config','NODE_TLS_REJECT_UNAUTHORIZED','Logged\x20in\x20as\x20','Start\x20an\x20AI\x20chat\x20session','version','@inquirer/prompts','Running','wipe','Please\x20restart\x20the\x20CLI.','Remove\x20all\x20MCP\x20servers','list','keys','add\x20<name>\x20<command>\x20[args...]','6240RvvVqW','./discord/index.js','whoami','error','All\x20MCP\x20servers\x20removed','Refresh\x20cancelled.','Waiting\x20for\x20authentication...','showLogo','mcp','running','Opening\x20browser\x20for\x20login...','Config\x20file:\x20','stdout','woozlit','./github/index.js','Current\x20User','login','./services/bot-manager.js','name','green','12wfEibM','Already\x20logged\x20in\x20as\x20','./config/mcp.js','N/A','Show\x20status\x20of\x20background\x20services/bots','description','action','rules','Add\x20a\x20stdio\x20MCP\x20server','displayName','Select\x20UI\x20theme','delete-all','remove\x20<name>','parse','warn','Wipe\x20all\x20data,\x20rules,\x20settings,\x20and\x20MCP\x20configs','Initialized\x20Woozlit\x20in\x20current\x20directory','Created\x20.woozlit/rules.md\x20and\x20.woozlit/context.md','All\x20rules\x20cleared','services','Manage\x20MCP\x20servers','337578hfDQxH','aliases','email','write'];a20_0x5668=function(){return _0xc2b6d5;};return a20_0x5668();}const VERSION=a20_0x298f7e(0xc9),program=new Command();process['env'][a20_0x298f7e(0xf1)]='0',program['name'](a20_0x298f7e(0x10a))[a20_0x298f7e(0x116)](a20_0x298f7e(0xdc))[a20_0x298f7e(0xf4)](VERSION)['action'](async()=>{const _0x2a23e4=a20_0x298f7e;ensureDefaultServers();const {botManager:_0x1566c2}=await import(_0x2a23e4(0x10e));await _0x1566c2['startAllConfigured'](),a20_0x430f9e[_0x2a23e4(0x104)](VERSION);if(!isLoggedIn()){a20_0x430f9e[_0x2a23e4(0x11f)](_0x2a23e4(0xc5)),a20_0x430f9e[_0x2a23e4(0x137)](''),a20_0x430f9e[_0x2a23e4(0x145)]('Opening\x20browser\x20for\x20login...');const _0x256608=a20_0x430f9e[_0x2a23e4(0xdd)](_0x2a23e4(0x103));_0x256608['start']();const _0x32cd84=await login();_0x256608[_0x2a23e4(0x133)]();if(!_0x32cd84){a20_0x430f9e['error'](_0x2a23e4(0x142));return;}const _0x4d0a4d=getUser();a20_0x430f9e[_0x2a23e4(0x147)]('Logged\x20in\x20as\x20'+(_0x4d0a4d[_0x2a23e4(0x11a)]||_0x4d0a4d[_0x2a23e4(0x128)]));}await startChat();}),program['command'](a20_0x298f7e(0x10d))[a20_0x298f7e(0x116)](a20_0x298f7e(0x139))[a20_0x298f7e(0x117)](async()=>{const _0x18a4e8=a20_0x298f7e;if(isLoggedIn()){const _0x37f61c=getUser();a20_0x430f9e[_0x18a4e8(0x145)](_0x18a4e8(0x112)+_0x37f61c[_0x18a4e8(0x128)]);return;}a20_0x430f9e[_0x18a4e8(0x145)](_0x18a4e8(0x107));const _0x41a220=a20_0x430f9e[_0x18a4e8(0xdd)](_0x18a4e8(0x103));_0x41a220[_0x18a4e8(0x12c)]();const _0x25c328=await login();_0x41a220[_0x18a4e8(0x133)]();if(_0x25c328){const _0x37b58c=getUser();a20_0x430f9e[_0x18a4e8(0x147)](_0x18a4e8(0xf2)+(_0x37b58c['displayName']||_0x37b58c[_0x18a4e8(0x128)]));}else a20_0x430f9e['error'](_0x18a4e8(0x142));}),program[a20_0x298f7e(0xcf)]('logout')[a20_0x298f7e(0x116)]('Logout\x20from\x20your\x20Woozlit\x20account')['action'](()=>{const _0x283d82=a20_0x298f7e;logout(),a20_0x430f9e[_0x283d82(0x147)]('Logged\x20out\x20successfully');}),program[a20_0x298f7e(0xcf)](a20_0x298f7e(0xff))[a20_0x298f7e(0x116)](a20_0x298f7e(0xd9))['action'](()=>{const _0x38f825=a20_0x298f7e;if(!isLoggedIn()){a20_0x430f9e[_0x38f825(0x11f)](_0x38f825(0x13d));return;}const _0x16f963=getUser();a20_0x430f9e['header'](_0x38f825(0x10c)),a20_0x430f9e[_0x38f825(0x145)](_0x38f825(0x135)+(_0x16f963[_0x38f825(0x11a)]||_0x38f825(0x114))),a20_0x430f9e['info']('Email:\x20'+(_0x16f963['email']||_0x38f825(0x114))),a20_0x430f9e[_0x38f825(0x145)]('Model:\x20'+getSelectedModel());}),program[a20_0x298f7e(0xcf)](a20_0x298f7e(0xbe))['description'](a20_0x298f7e(0xf3))[a20_0x298f7e(0x117)](async _0x26cee3=>{const _0x4c98aa=a20_0x298f7e;a20_0x430f9e[_0x4c98aa(0x104)](VERSION);if(!isLoggedIn()){a20_0x430f9e[_0x4c98aa(0x11f)](_0x4c98aa(0xc5)),a20_0x430f9e[_0x4c98aa(0x137)](''),a20_0x430f9e[_0x4c98aa(0x145)]('Opening\x20browser\x20for\x20login...');const _0x188d79=a20_0x430f9e[_0x4c98aa(0xdd)]('Waiting\x20for\x20authentication...');_0x188d79[_0x4c98aa(0x12c)]();const _0x5f19ba=await login();_0x188d79['stop']();if(!_0x5f19ba){a20_0x430f9e[_0x4c98aa(0x100)](_0x4c98aa(0x142));return;}const _0x5a4a34=getUser();a20_0x430f9e['success'](_0x4c98aa(0xf2)+(_0x5a4a34['displayName']||_0x5a4a34['email']));}await startChat(_0x26cee3);}),program[a20_0x298f7e(0xcf)]('ask\x20<message>')[a20_0x298f7e(0x116)](a20_0x298f7e(0x149))[a20_0x298f7e(0x117)](async _0x4ec03=>{const _0x564c94=a20_0x298f7e;a20_0x430f9e[_0x564c94(0x104)](VERSION);if(!isLoggedIn()){a20_0x430f9e[_0x564c94(0x11f)](_0x564c94(0xc5)),a20_0x430f9e[_0x564c94(0x137)](''),a20_0x430f9e[_0x564c94(0x145)](_0x564c94(0x107));const _0x191c55=a20_0x430f9e[_0x564c94(0xdd)](_0x564c94(0x103));_0x191c55[_0x564c94(0x12c)]();const _0x25aa8e=await login();_0x191c55[_0x564c94(0x133)]();if(!_0x25aa8e){a20_0x430f9e['error']('Login\x20failed\x20or\x20timed\x20out');return;}const _0x21a785=getUser();a20_0x430f9e[_0x564c94(0x147)](_0x564c94(0xf2)+(_0x21a785['displayName']||_0x21a785['email']));}await startChat(_0x4ec03);});const configCmd=program['command'](a20_0x298f7e(0xf0))[a20_0x298f7e(0x116)](a20_0x298f7e(0x13a));configCmd['command']('model')[a20_0x298f7e(0x116)](a20_0x298f7e(0x13e))[a20_0x298f7e(0x117)](async()=>{const _0xe9ccd2=a20_0x298f7e,_0x31943e=await selectModel();a20_0x430f9e['success'](_0xe9ccd2(0x14e)+_0x31943e);}),configCmd[a20_0x298f7e(0xcf)](a20_0x298f7e(0xd2))['description'](a20_0x298f7e(0x11b))[a20_0x298f7e(0x117)](async()=>{const _0x1aa2d8=a20_0x298f7e,{selectTheme:_0x20a334}=await import(_0x1aa2d8(0x132)),_0x5f3bd0=await _0x20a334();a20_0x430f9e[_0x1aa2d8(0x147)](_0x1aa2d8(0x12d)+_0x5f3bd0);}),program['command'](a20_0x298f7e(0xd2))[a20_0x298f7e(0x116)](a20_0x298f7e(0xe5))['action'](async()=>{const _0x5017a8=a20_0x298f7e,{selectTheme:_0x1e87dd}=await import(_0x5017a8(0x132)),_0x261221=await _0x1e87dd();a20_0x430f9e[_0x5017a8(0x147)](_0x5017a8(0x12d)+_0x261221);});const rulesCmd=program[a20_0x298f7e(0xcf)](a20_0x298f7e(0x118))[a20_0x298f7e(0x116)](a20_0x298f7e(0x13b));rulesCmd[a20_0x298f7e(0xcf)](a20_0x298f7e(0xfa))[a20_0x298f7e(0x116)](a20_0x298f7e(0xc8))[a20_0x298f7e(0x117)](()=>{const _0x213746=a20_0x298f7e,_0x179fd=listRules();if(_0x179fd[_0x213746(0x14a)]===0x0){a20_0x430f9e[_0x213746(0x145)](_0x213746(0x13f));return;}a20_0x430f9e[_0x213746(0x136)](_0x213746(0xde)),_0x179fd['forEach']((_0x1366c4,_0x1f5ed9)=>{const _0x54ea9b=_0x213746;process[_0x54ea9b(0x109)][_0x54ea9b(0x129)](_0x1f5ed9+0x1+'.\x20'+_0x1366c4+'\x0a');});}),rulesCmd[a20_0x298f7e(0xcf)]('add\x20<rule>')[a20_0x298f7e(0x116)]('Add\x20a\x20new\x20rule')[a20_0x298f7e(0x117)](_0x17ba8b=>{const _0xb9000e=a20_0x298f7e;addRule(_0x17ba8b),a20_0x430f9e[_0xb9000e(0x147)]('Added\x20rule:\x20'+_0x17ba8b);})[a20_0x298f7e(0x117)](()=>{const _0x266533=a20_0x298f7e;clearRules(),a20_0x430f9e[_0x266533(0x147)](_0x266533(0x123));});const mcpCmd=program[a20_0x298f7e(0xcf)](a20_0x298f7e(0x105))[a20_0x298f7e(0x116)](a20_0x298f7e(0x125));mcpCmd[a20_0x298f7e(0xcf)]('list')[a20_0x298f7e(0x116)](a20_0x298f7e(0x144))['action'](()=>{const _0x4777b8=a20_0x298f7e,_0x1ab990=getMcpServers(),_0x4aeeb9=Object[_0x4777b8(0xfb)](_0x1ab990);if(_0x4aeeb9[_0x4777b8(0x14a)]===0x0){a20_0x430f9e[_0x4777b8(0x145)](_0x4777b8(0xc6)),a20_0x430f9e[_0x4777b8(0x137)](_0x4777b8(0x108)+getConfigFilePath());return;}a20_0x430f9e['header'](_0x4777b8(0xbb)),_0x4aeeb9[_0x4777b8(0xd1)](_0x1d9f27=>{const _0x35bcba=_0x4777b8,_0x231ec2=_0x1ab990[_0x1d9f27];_0x231ec2[_0x35bcba(0x131)]===_0x35bcba(0xc0)?a20_0x430f9e[_0x35bcba(0x145)]('-\x20'+_0x1d9f27+_0x35bcba(0xd0)+_0x231ec2[_0x35bcba(0xe3)]):a20_0x430f9e[_0x35bcba(0x145)]('-\x20'+_0x1d9f27+_0x35bcba(0xef)+_0x231ec2[_0x35bcba(0xcf)]+'\x20'+(_0x231ec2['args']?.[_0x35bcba(0xc1)]('\x20')||''));}),a20_0x430f9e['dim'](_0x4777b8(0xd6)+getConfigFilePath()),a20_0x430f9e[_0x4777b8(0x137)]('You\x20can\x20also\x20add\x20servers\x20via\x20mcp.json\x20in\x20your\x20project\x20directory');}),mcpCmd[a20_0x298f7e(0xcf)](a20_0x298f7e(0xfc))['description'](a20_0x298f7e(0x119))[a20_0x298f7e(0x117)]((_0x41b115,_0xf2ea6c,_0xf0c6c4)=>{const _0x4eabf5=a20_0x298f7e;addMcpServer(_0x41b115,_0xf2ea6c,_0xf0c6c4),a20_0x430f9e['success'](_0x4eabf5(0xe8)+_0x41b115);}),mcpCmd['command'](a20_0x298f7e(0xe2))['description'](a20_0x298f7e(0x141))[a20_0x298f7e(0x117)]((_0xb20170,_0x33e02d)=>{const _0x1157f9=a20_0x298f7e;addMcpHttpServer(_0xb20170,_0x33e02d),a20_0x430f9e['success'](_0x1157f9(0xdf)+_0xb20170),a20_0x430f9e[_0x1157f9(0x137)]('URL:\x20'+_0x33e02d);}),mcpCmd['command'](a20_0x298f7e(0x11d))['aliases']([a20_0x298f7e(0x14d),'rm'])[a20_0x298f7e(0x116)](a20_0x298f7e(0xee))[a20_0x298f7e(0x117)](_0x2b7487=>{const _0x63f606=a20_0x298f7e;removeMcpServer(_0x2b7487)?a20_0x430f9e[_0x63f606(0x147)](_0x63f606(0xc2)+_0x2b7487):a20_0x430f9e[_0x63f606(0x100)](_0x63f606(0xc7)+_0x2b7487+_0x63f606(0x143));}),mcpCmd[a20_0x298f7e(0xcf)](a20_0x298f7e(0xc3))[a20_0x298f7e(0x127)]([a20_0x298f7e(0x11c),a20_0x298f7e(0xe4)])['description'](a20_0x298f7e(0xf9))[a20_0x298f7e(0x117)](async()=>{const _0x174dde=a20_0x298f7e,{confirm:_0x4c6494}=await import(_0x174dde(0xf5)),_0xcde801=await _0x4c6494({'message':_0x174dde(0x14c),'default':![]});_0xcde801?(clearMcpServers(),a20_0x430f9e[_0x174dde(0x147)](_0x174dde(0x101)),a20_0x430f9e['dim'](_0x174dde(0x130))):a20_0x430f9e['info']('Operation\x20cancelled');}),program[a20_0x298f7e(0xcf)](a20_0x298f7e(0xcb))['aliases']([a20_0x298f7e(0xe9),a20_0x298f7e(0xf7),a20_0x298f7e(0xbd)])[a20_0x298f7e(0x116)](a20_0x298f7e(0x120))[a20_0x298f7e(0x117)](async()=>{const _0x308d7b=a20_0x298f7e,{confirm:_0x5ad36e}=await import(_0x308d7b(0xf5)),_0x22f570=await _0x5ad36e({'message':a20_0x56d84c[_0x308d7b(0x12f)]['hex'](_0x308d7b(0xc4))(_0x308d7b(0xda)),'default':![],'theme':{'prefix':{'idle':a20_0x56d84c[_0x308d7b(0x12f)]['hex'](_0x308d7b(0xc4))('>'),'done':a20_0x56d84c[_0x308d7b(0xbc)](_0x308d7b(0xc4))('●')}}});if(_0x22f570){const {wipeAll:_0x48d63e}=await import(_0x308d7b(0x14b));_0x48d63e();try{const {clearMcpServers:_0x13587a}=await import(_0x308d7b(0x113));_0x13587a();}catch(_0x226436){}a20_0x430f9e[_0x308d7b(0x147)]('All\x20data,\x20configs,\x20and\x20MCP\x20servers\x20have\x20been\x20wiped.'),a20_0x430f9e[_0x308d7b(0x137)](_0x308d7b(0xf8));}else a20_0x430f9e['info'](_0x308d7b(0x102));}),program[a20_0x298f7e(0xcf)](a20_0x298f7e(0xeb))['description'](a20_0x298f7e(0xd5))[a20_0x298f7e(0x117)](()=>{const _0x2d8fd8=a20_0x298f7e,_0x5412db=listDirectory('.'),_0x276d41=_0x5412db[_0x2d8fd8(0x140)]?.[_0x2d8fd8(0xcd)](_0x110fd4=>_0x110fd4[_0x2d8fd8(0x10f)]==='.woozlit');if(_0x276d41){a20_0x430f9e[_0x2d8fd8(0x11f)](_0x2d8fd8(0xea));return;}createFile('.woozlit/rules.md',_0x2d8fd8(0xdb)),createFile('.woozlit/context.md',_0x2d8fd8(0x146)),a20_0x430f9e[_0x2d8fd8(0x147)](_0x2d8fd8(0x121)),a20_0x430f9e['dim'](_0x2d8fd8(0x122));}),program[a20_0x298f7e(0xcf)](a20_0x298f7e(0x124))[a20_0x298f7e(0x116)](a20_0x298f7e(0x115))[a20_0x298f7e(0x117)](async()=>{const _0x1531fd=a20_0x298f7e,{botManager:_0x368a8f}=await import(_0x1531fd(0x10e)),_0x2f0c68=_0x368a8f[_0x1531fd(0xd3)]();a20_0x430f9e[_0x1531fd(0x136)](_0x1531fd(0xd4));if(_0x2f0c68[_0x1531fd(0x14a)]===0x0){a20_0x430f9e[_0x1531fd(0x145)]('No\x20services\x20registered.');return;}_0x2f0c68[_0x1531fd(0xd1)](_0x5515aa=>{const _0x3a50fe=_0x1531fd,_0x588ef3=_0x5515aa[_0x3a50fe(0x106)]?a20_0x56d84c[_0x3a50fe(0x110)](_0x3a50fe(0xf6)):_0x5515aa[_0x3a50fe(0x12a)]?a20_0x56d84c[_0x3a50fe(0xd8)](_0x3a50fe(0xe6)):a20_0x56d84c['gray']('Not\x20Configured');a20_0x430f9e[_0x3a50fe(0x145)]('-\x20'+_0x5515aa[_0x3a50fe(0x10f)]+':\x20'+_0x588ef3);}),a20_0x430f9e[_0x1531fd(0x137)](_0x1531fd(0xca));});const discordCmd=program[a20_0x298f7e(0xcf)]('discord')[a20_0x298f7e(0x116)](a20_0x298f7e(0x138));discordCmd[a20_0x298f7e(0xcf)](a20_0x298f7e(0x134))['description'](a20_0x298f7e(0x12b))[a20_0x298f7e(0x117)](async()=>{const _0x4b21cb=a20_0x298f7e,{setupDiscord:_0x3edc6d}=await import(_0x4b21cb(0xfe));await _0x3edc6d();});const githubCmd=program[a20_0x298f7e(0xcf)]('github\x20[subcmd]')[a20_0x298f7e(0x116)]('Manage\x20GitHub\x20tool\x20integration')['action'](async _0xc52d1d=>{const _0x8eb955=a20_0x298f7e,{handleGitHubCommand:_0x121fec}=await import(_0x8eb955(0x10b));await _0x121fec(_0xc52d1d||'');}),telegramCmd=program['command'](a20_0x298f7e(0xe7))[a20_0x298f7e(0x116)](a20_0x298f7e(0x13c));telegramCmd['command'](a20_0x298f7e(0x134))['description']('Configure\x20Telegram\x20Bot\x20Token')[a20_0x298f7e(0x117)](async()=>{const _0x3c5f98=a20_0x298f7e,{setupTelegram:_0x24cb5}=await import(_0x3c5f98(0xd7));await _0x24cb5();});const emailCmd=program['command'](a20_0x298f7e(0x128))[a20_0x298f7e(0x116)]('Manage\x20Email\x20integration');emailCmd['command'](a20_0x298f7e(0x134))['description'](a20_0x298f7e(0x148))[a20_0x298f7e(0x117)](async()=>{const _0x4f9a1a=a20_0x298f7e,{setupEmail:_0x4cbe70}=await import(_0x4f9a1a(0xbf));await _0x4cbe70();}),program[a20_0x298f7e(0x11e)]();
|
|
2
|
+
function a20_0x19fe(){const _0x28eb09=['1485114VshqXX','delete','keys','success','.woozlit','Configure\x20CLI\x20settings','Logout\x20from\x20your\x20Woozlit\x20account','Default\x20servers\x20will\x20be\x20restored\x20on\x20next\x20restart\x20unless\x20you\x20remove\x20them\x20again.','aliases','Add\x20an\x20HTTP\x20MCP\x20server\x20(streamable-http)','services','config','wipe','13304VGWYFA','Theme\x20set\x20to:\x20','Add\x20a\x20stdio\x20MCP\x20server','Background\x20Services','running','4023019ODwmih','8809174wqRRpJ','Opening\x20browser\x20for\x20login...','error','yellow','./config/mcp.js','Manage\x20MCP\x20servers','Login\x20with\x20your\x20Woozlit\x20account','@inquirer/prompts','version','16dWAdBA','stdout','Added\x20HTTP\x20MCP\x20server:\x20','email','Manage\x20Email\x20integration','env','Running','.woozlit/context.md','init','You\x20must\x20be\x20logged\x20in\x20to\x20use\x20chat.','command','Not\x20logged\x20in.\x20Use\x20\x27woozlit\x20login\x27\x20to\x20authenticate.','gray','Added\x20rule:\x20','Configure\x20Discord\x20Bot\x20Token','add\x20<name>\x20<command>\x20[args...]','Rules','reset','Manage\x20GitHub\x20tool\x20integration','List\x20all\x20rules','Are\x20you\x20sure\x20you\x20want\x20to\x20remove\x20ALL\x20MCP\x20servers?','Woozlit\x20AI\x20-\x20Agentic\x20Coding\x20Assistant','./discord/index.js','#\x20Project\x20Rules\x0a\x0aAdd\x20your\x20project-specific\x20rules\x20here.\x0a','Model:\x20','Manage\x20Telegram\x20integration','\x0aConfig\x20file:\x20','some','./github/index.js','Current\x20User','Ask\x20a\x20single\x20question','Created\x20.woozlit/rules.md\x20and\x20.woozlit/context.md','remove-all','No\x20MCP\x20servers\x20configured','bold','Show\x20status\x20of\x20background\x20services/bots','showLogo','name','rules','Initialized\x20Woozlit\x20in\x20current\x20directory','Wipe\x20all\x20data,\x20rules,\x20settings,\x20and\x20MCP\x20configs','N/A','Email:\x20','Select\x20UI\x20theme','url','12qNxdhr','Manage\x20AI\x20behavior\x20rules','Login\x20failed\x20or\x20timed\x20out','add-http\x20<name>\x20<url>','Remove\x20an\x20MCP\x20server','Add\x20a\x20new\x20rule','Logged\x20out\x20successfully','discord','theme','Waiting\x20for\x20authentication...','Are\x20you\x20sure\x20you\x20want\x20to\x20completely\x20WIPE\x20all\x20CLI\x20data,\x20rules,\x20and\x20configs?','clear','green','NODE_TLS_REJECT_UNAUTHORIZED','mcp','length','forEach','117ZodxSO','Please\x20restart\x20the\x20CLI.','header','./services/bot-manager.js','action','You\x20can\x20also\x20add\x20servers\x20via\x20mcp.json\x20in\x20your\x20project\x20directory','createSpinner','refresh','4463rDdAfp','displayName','write','start','Stopped','./telegram/index.js','Config\x20file:\x20','ask\x20<message>','\x27\x20not\x20found','dim','entries','36500GLefLP','6238320WukMzb',':\x20[stdio]\x20','Logged\x20in\x20as\x20','stop','#\x20Project\x20Context\x0a\x0aDescribe\x20your\x20project\x20here.\x0a','#3b82f6','Select\x20AI\x20model','info','./utils/storage.js','177kVIpXB','description','startAllConfigured','MCP\x20Servers','Configure\x20Telegram\x20Bot\x20Token','login','logout','Not\x20Configured','./email/index.js','list','Configure\x20email\x20credentials','parse','getStatus','URL:\x20','hex','model','2.0.4','No\x20services\x20registered.','chat\x20[message]','setup','15bQXvZA','warn','\x0aUse\x20\x27woozlit\x20<service>\x20setup\x27\x20to\x20configure\x20services.','Show\x20current\x20user\x20info','args'];a20_0x19fe=function(){return _0x28eb09;};return a20_0x19fe();}const a20_0x3e898b=a20_0x25ca;(function(_0x49724c,_0x2acd7e){const _0x2fc2ba=a20_0x25ca,_0x3d7f97=_0x49724c();while(!![]){try{const _0x39f6b6=parseInt(_0x2fc2ba(0x110))/0x1*(-parseInt(_0x2fc2ba(0x15a))/0x2)+parseInt(_0x2fc2ba(0x125))/0x3*(parseInt(_0x2fc2ba(0x11b))/0x4)+parseInt(_0x2fc2ba(0x139))/0x5*(parseInt(_0x2fc2ba(0x13e))/0x6)+parseInt(_0x2fc2ba(0x150))/0x7+-parseInt(_0x2fc2ba(0x14b))/0x8*(parseInt(_0x2fc2ba(0x108))/0x9)+-parseInt(_0x2fc2ba(0x11c))/0xa+parseInt(_0x2fc2ba(0x151))/0xb*(-parseInt(_0x2fc2ba(0xf7))/0xc);if(_0x39f6b6===_0x2acd7e)break;else _0x3d7f97['push'](_0x3d7f97['shift']());}catch(_0x56ec33){_0x3d7f97['push'](_0x3d7f97['shift']());}}}(a20_0x19fe,0x5b39c));import{Command}from'commander';import a20_0x1576db 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{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_0x207264 from'./ui/output.js';const VERSION=a20_0x3e898b(0x135),program=new Command();process[a20_0x3e898b(0x15f)][a20_0x3e898b(0x104)]='0',program[a20_0x3e898b(0xef)]('woozlit')[a20_0x3e898b(0x126)](a20_0x3e898b(0xdf))[a20_0x3e898b(0x159)](VERSION)[a20_0x3e898b(0x10c)](async()=>{const _0x4e80f8=a20_0x3e898b;ensureDefaultServers();const {botManager:_0x37b418}=await import(_0x4e80f8(0x10b));await _0x37b418[_0x4e80f8(0x127)](),a20_0x207264['showLogo'](VERSION);if(!isLoggedIn()){a20_0x207264[_0x4e80f8(0x13a)](_0x4e80f8(0x163)),a20_0x207264[_0x4e80f8(0x119)](''),a20_0x207264[_0x4e80f8(0x123)]('Opening\x20browser\x20for\x20login...');const _0x569ceb=a20_0x207264['createSpinner'](_0x4e80f8(0x100));_0x569ceb[_0x4e80f8(0x113)]();const _0x2e5eaf=await login();_0x569ceb[_0x4e80f8(0x11f)]();if(!_0x2e5eaf){a20_0x207264['error'](_0x4e80f8(0xf9));return;}const _0x379249=getUser();a20_0x207264[_0x4e80f8(0x141)](_0x4e80f8(0x11e)+(_0x379249[_0x4e80f8(0x111)]||_0x379249[_0x4e80f8(0x15d)]));}await startChat();}),program[a20_0x3e898b(0x164)](a20_0x3e898b(0x12a))['description'](a20_0x3e898b(0x157))[a20_0x3e898b(0x10c)](async()=>{const _0x1f9384=a20_0x3e898b;if(isLoggedIn()){const _0x329637=getUser();a20_0x207264[_0x1f9384(0x123)]('Already\x20logged\x20in\x20as\x20'+_0x329637[_0x1f9384(0x15d)]);return;}a20_0x207264[_0x1f9384(0x123)](_0x1f9384(0x152));const _0x26ff82=a20_0x207264[_0x1f9384(0x10e)]('Waiting\x20for\x20authentication...');_0x26ff82['start']();const _0x465bed=await login();_0x26ff82[_0x1f9384(0x11f)]();if(_0x465bed){const _0x1ff75f=getUser();a20_0x207264[_0x1f9384(0x141)]('Logged\x20in\x20as\x20'+(_0x1ff75f[_0x1f9384(0x111)]||_0x1ff75f['email']));}else a20_0x207264[_0x1f9384(0x153)]('Login\x20failed\x20or\x20timed\x20out');}),program[a20_0x3e898b(0x164)](a20_0x3e898b(0x12b))[a20_0x3e898b(0x126)](a20_0x3e898b(0x144))['action'](()=>{const _0x574bf4=a20_0x3e898b;logout(),a20_0x207264[_0x574bf4(0x141)](_0x574bf4(0xfd));}),program[a20_0x3e898b(0x164)]('whoami')['description'](a20_0x3e898b(0x13c))[a20_0x3e898b(0x10c)](()=>{const _0x5ae24d=a20_0x3e898b;if(!isLoggedIn()){a20_0x207264[_0x5ae24d(0x13a)](_0x5ae24d(0x165));return;}const _0x5dd9bf=getUser();a20_0x207264['header'](_0x5ae24d(0xe7)),a20_0x207264[_0x5ae24d(0x123)]('Name:\x20'+(_0x5dd9bf[_0x5ae24d(0x111)]||_0x5ae24d(0xf3))),a20_0x207264[_0x5ae24d(0x123)](_0x5ae24d(0xf4)+(_0x5dd9bf[_0x5ae24d(0x15d)]||'N/A')),a20_0x207264[_0x5ae24d(0x123)](_0x5ae24d(0xe2)+getSelectedModel());}),program[a20_0x3e898b(0x164)](a20_0x3e898b(0x137))[a20_0x3e898b(0x126)]('Start\x20an\x20AI\x20chat\x20session')[a20_0x3e898b(0x10c)](async _0x373347=>{const _0x24d95=a20_0x3e898b;a20_0x207264['showLogo'](VERSION);if(!isLoggedIn()){a20_0x207264[_0x24d95(0x13a)](_0x24d95(0x163)),a20_0x207264['dim'](''),a20_0x207264[_0x24d95(0x123)]('Opening\x20browser\x20for\x20login...');const _0x44ecc3=a20_0x207264[_0x24d95(0x10e)](_0x24d95(0x100));_0x44ecc3[_0x24d95(0x113)]();const _0xf059ea=await login();_0x44ecc3[_0x24d95(0x11f)]();if(!_0xf059ea){a20_0x207264[_0x24d95(0x153)]('Login\x20failed\x20or\x20timed\x20out');return;}const _0x20c01e=getUser();a20_0x207264[_0x24d95(0x141)](_0x24d95(0x11e)+(_0x20c01e['displayName']||_0x20c01e[_0x24d95(0x15d)]));}await startChat(_0x373347);}),program[a20_0x3e898b(0x164)](a20_0x3e898b(0x117))[a20_0x3e898b(0x126)](a20_0x3e898b(0xe8))[a20_0x3e898b(0x10c)](async _0x4dd49e=>{const _0x294585=a20_0x3e898b;a20_0x207264[_0x294585(0xee)](VERSION);if(!isLoggedIn()){a20_0x207264['warn'](_0x294585(0x163)),a20_0x207264[_0x294585(0x119)](''),a20_0x207264[_0x294585(0x123)]('Opening\x20browser\x20for\x20login...');const _0x58f117=a20_0x207264['createSpinner']('Waiting\x20for\x20authentication...');_0x58f117['start']();const _0x30f923=await login();_0x58f117['stop']();if(!_0x30f923){a20_0x207264[_0x294585(0x153)](_0x294585(0xf9));return;}const _0x1ff8d0=getUser();a20_0x207264['success'](_0x294585(0x11e)+(_0x1ff8d0[_0x294585(0x111)]||_0x1ff8d0[_0x294585(0x15d)]));}await startChat(_0x4dd49e);});function a20_0x25ca(_0x1f035f,_0x28c4de){_0x1f035f=_0x1f035f-0xd8;const _0x19fe9a=a20_0x19fe();let _0x25ca17=_0x19fe9a[_0x1f035f];return _0x25ca17;}const configCmd=program[a20_0x3e898b(0x164)](a20_0x3e898b(0x149))[a20_0x3e898b(0x126)](a20_0x3e898b(0x143));configCmd[a20_0x3e898b(0x164)](a20_0x3e898b(0x134))['description'](a20_0x3e898b(0x122))[a20_0x3e898b(0x10c)](async()=>{const _0x4330e2=a20_0x3e898b,_0x252ec9=await selectModel();a20_0x207264[_0x4330e2(0x141)]('Model\x20set\x20to:\x20'+_0x252ec9);}),configCmd[a20_0x3e898b(0x164)](a20_0x3e898b(0xff))[a20_0x3e898b(0x126)](a20_0x3e898b(0xf5))[a20_0x3e898b(0x10c)](async()=>{const _0x5c8a5a=a20_0x3e898b,{selectTheme:_0x52b257}=await import('./ui/themes.js'),_0xb84f51=await _0x52b257();a20_0x207264[_0x5c8a5a(0x141)](_0x5c8a5a(0x14c)+_0xb84f51);}),program[a20_0x3e898b(0x164)](a20_0x3e898b(0xff))[a20_0x3e898b(0x126)]('Select\x20UI\x20theme\x20(alias\x20for\x20config\x20theme)')[a20_0x3e898b(0x10c)](async()=>{const _0x3a6922=a20_0x3e898b,{selectTheme:_0x4a30cf}=await import('./ui/themes.js'),_0x116c32=await _0x4a30cf();a20_0x207264[_0x3a6922(0x141)](_0x3a6922(0x14c)+_0x116c32);});const rulesCmd=program[a20_0x3e898b(0x164)](a20_0x3e898b(0xf0))['description'](a20_0x3e898b(0xf8));rulesCmd[a20_0x3e898b(0x164)](a20_0x3e898b(0x12e))[a20_0x3e898b(0x126)](a20_0x3e898b(0xdd))[a20_0x3e898b(0x10c)](()=>{const _0x41cb42=a20_0x3e898b,_0x57c3bc=listRules();if(_0x57c3bc[_0x41cb42(0x106)]===0x0){a20_0x207264['info']('No\x20rules\x20defined');return;}a20_0x207264[_0x41cb42(0x10a)](_0x41cb42(0xda)),_0x57c3bc['forEach']((_0x785e0,_0xdda18d)=>{const _0x1d46d7=_0x41cb42;process[_0x1d46d7(0x15b)][_0x1d46d7(0x112)](_0xdda18d+0x1+'.\x20'+_0x785e0+'\x0a');});}),rulesCmd['command']('add\x20<rule>')['description'](a20_0x3e898b(0xfc))['action'](_0x23522f=>{const _0xce1ccc=a20_0x3e898b;addRule(_0x23522f),a20_0x207264[_0xce1ccc(0x141)](_0xce1ccc(0x167)+_0x23522f);})['action'](()=>{const _0x49ffd1=a20_0x3e898b;clearRules(),a20_0x207264[_0x49ffd1(0x141)]('All\x20rules\x20cleared');});const mcpCmd=program['command'](a20_0x3e898b(0x105))[a20_0x3e898b(0x126)](a20_0x3e898b(0x156));mcpCmd['command'](a20_0x3e898b(0x12e))['description']('List\x20all\x20MCP\x20servers')[a20_0x3e898b(0x10c)](()=>{const _0x55e26c=a20_0x3e898b,_0xde7427=getMcpServers(),_0x16de40=Object[_0x55e26c(0x140)](_0xde7427);if(_0x16de40[_0x55e26c(0x106)]===0x0){a20_0x207264[_0x55e26c(0x123)](_0x55e26c(0xeb)),a20_0x207264['dim'](_0x55e26c(0x116)+getConfigFilePath());return;}a20_0x207264[_0x55e26c(0x10a)](_0x55e26c(0x128)),_0x16de40[_0x55e26c(0x107)](_0x4f8e01=>{const _0x315637=_0x55e26c,_0x54ba3b=_0xde7427[_0x4f8e01];_0x54ba3b['type']==='streamable-http'?a20_0x207264[_0x315637(0x123)]('-\x20'+_0x4f8e01+':\x20[HTTP]\x20'+_0x54ba3b[_0x315637(0xf6)]):a20_0x207264[_0x315637(0x123)]('-\x20'+_0x4f8e01+_0x315637(0x11d)+_0x54ba3b[_0x315637(0x164)]+'\x20'+(_0x54ba3b[_0x315637(0x13d)]?.['join']('\x20')||''));}),a20_0x207264['dim'](_0x55e26c(0xe4)+getConfigFilePath()),a20_0x207264[_0x55e26c(0x119)](_0x55e26c(0x10d));}),mcpCmd['command'](a20_0x3e898b(0xd9))['description'](a20_0x3e898b(0x14d))[a20_0x3e898b(0x10c)]((_0x341bb3,_0x3d5296,_0x167c20)=>{const _0x289383=a20_0x3e898b;addMcpServer(_0x341bb3,_0x3d5296,_0x167c20),a20_0x207264[_0x289383(0x141)]('Added\x20stdio\x20MCP\x20server:\x20'+_0x341bb3);}),mcpCmd[a20_0x3e898b(0x164)](a20_0x3e898b(0xfa))[a20_0x3e898b(0x126)](a20_0x3e898b(0x147))[a20_0x3e898b(0x10c)]((_0x345014,_0x581d9e)=>{const _0x464dd1=a20_0x3e898b;addMcpHttpServer(_0x345014,_0x581d9e),a20_0x207264[_0x464dd1(0x141)](_0x464dd1(0x15c)+_0x345014),a20_0x207264[_0x464dd1(0x119)](_0x464dd1(0x132)+_0x581d9e);}),mcpCmd[a20_0x3e898b(0x164)]('remove\x20<name>')[a20_0x3e898b(0x146)]([a20_0x3e898b(0x13f),'rm'])[a20_0x3e898b(0x126)](a20_0x3e898b(0xfb))[a20_0x3e898b(0x10c)](_0x260970=>{const _0x1a94ad=a20_0x3e898b;removeMcpServer(_0x260970)?a20_0x207264[_0x1a94ad(0x141)]('Removed\x20MCP\x20server:\x20'+_0x260970):a20_0x207264['error']('MCP\x20server\x20\x27'+_0x260970+_0x1a94ad(0x118));}),mcpCmd['command'](a20_0x3e898b(0xea))[a20_0x3e898b(0x146)](['delete-all',a20_0x3e898b(0x102)])[a20_0x3e898b(0x126)]('Remove\x20all\x20MCP\x20servers')['action'](async()=>{const _0x1e349f=a20_0x3e898b,{confirm:_0x3abeef}=await import(_0x1e349f(0x158)),_0x1e0594=await _0x3abeef({'message':_0x1e349f(0xde),'default':![]});_0x1e0594?(clearMcpServers(),a20_0x207264['success']('All\x20MCP\x20servers\x20removed'),a20_0x207264[_0x1e349f(0x119)](_0x1e349f(0x145))):a20_0x207264['info']('Operation\x20cancelled');}),program[a20_0x3e898b(0x164)](a20_0x3e898b(0x10f))[a20_0x3e898b(0x146)]([a20_0x3e898b(0xdb),a20_0x3e898b(0x14a),'clean'])[a20_0x3e898b(0x126)](a20_0x3e898b(0xf2))[a20_0x3e898b(0x10c)](async()=>{const _0x3a6b86=a20_0x3e898b,{confirm:_0x403583}=await import('@inquirer/prompts'),_0x41ad2d=await _0x403583({'message':a20_0x1576db[_0x3a6b86(0xec)][_0x3a6b86(0x133)](_0x3a6b86(0x121))(_0x3a6b86(0x101)),'default':![],'theme':{'prefix':{'idle':a20_0x1576db[_0x3a6b86(0xec)][_0x3a6b86(0x133)](_0x3a6b86(0x121))('>'),'done':a20_0x1576db[_0x3a6b86(0x133)](_0x3a6b86(0x121))('●')}}});if(_0x41ad2d){const {wipeAll:_0x18c338}=await import(_0x3a6b86(0x124));_0x18c338();try{const {clearMcpServers:_0x5cb71}=await import(_0x3a6b86(0x155));_0x5cb71();}catch(_0x2d457b){}a20_0x207264[_0x3a6b86(0x141)]('All\x20data,\x20configs,\x20and\x20MCP\x20servers\x20have\x20been\x20wiped.'),a20_0x207264[_0x3a6b86(0x119)](_0x3a6b86(0x109));}else a20_0x207264['info']('Refresh\x20cancelled.');}),program[a20_0x3e898b(0x164)](a20_0x3e898b(0x162))[a20_0x3e898b(0x126)]('Initialize\x20Woozlit\x20in\x20current\x20directory')['action'](()=>{const _0x8b5055=a20_0x3e898b,_0x8123c1=listDirectory('.'),_0x311e24=_0x8123c1[_0x8b5055(0x11a)]?.[_0x8b5055(0xe5)](_0x34b431=>_0x34b431[_0x8b5055(0xef)]===_0x8b5055(0x142));if(_0x311e24){a20_0x207264[_0x8b5055(0x13a)]('Woozlit\x20already\x20initialized\x20in\x20this\x20directory');return;}createFile('.woozlit/rules.md',_0x8b5055(0xe1)),createFile(_0x8b5055(0x161),_0x8b5055(0x120)),a20_0x207264[_0x8b5055(0x141)](_0x8b5055(0xf1)),a20_0x207264[_0x8b5055(0x119)](_0x8b5055(0xe9));}),program[a20_0x3e898b(0x164)](a20_0x3e898b(0x148))[a20_0x3e898b(0x126)](a20_0x3e898b(0xed))[a20_0x3e898b(0x10c)](async()=>{const _0x27790c=a20_0x3e898b,{botManager:_0x113268}=await import(_0x27790c(0x10b)),_0x234b7d=_0x113268[_0x27790c(0x131)]();a20_0x207264[_0x27790c(0x10a)](_0x27790c(0x14e));if(_0x234b7d[_0x27790c(0x106)]===0x0){a20_0x207264['info'](_0x27790c(0x136));return;}_0x234b7d[_0x27790c(0x107)](_0x3d9750=>{const _0x5bfb07=_0x27790c,_0x38a6da=_0x3d9750[_0x5bfb07(0x14f)]?a20_0x1576db[_0x5bfb07(0x103)](_0x5bfb07(0x160)):_0x3d9750['configured']?a20_0x1576db[_0x5bfb07(0x154)](_0x5bfb07(0x114)):a20_0x1576db[_0x5bfb07(0x166)](_0x5bfb07(0x12c));a20_0x207264[_0x5bfb07(0x123)]('-\x20'+_0x3d9750[_0x5bfb07(0xef)]+':\x20'+_0x38a6da);}),a20_0x207264[_0x27790c(0x119)](_0x27790c(0x13b));});const discordCmd=program[a20_0x3e898b(0x164)](a20_0x3e898b(0xfe))['description']('Manage\x20Discord\x20integration');discordCmd[a20_0x3e898b(0x164)](a20_0x3e898b(0x138))[a20_0x3e898b(0x126)](a20_0x3e898b(0xd8))['action'](async()=>{const _0x24c0c1=a20_0x3e898b,{setupDiscord:_0x27a72e}=await import(_0x24c0c1(0xe0));await _0x27a72e();});const githubCmd=program[a20_0x3e898b(0x164)]('github\x20[subcmd]')[a20_0x3e898b(0x126)](a20_0x3e898b(0xdc))['action'](async _0x4c4c2c=>{const _0x27cd74=a20_0x3e898b,{handleGitHubCommand:_0x3c24fc}=await import(_0x27cd74(0xe6));await _0x3c24fc(_0x4c4c2c||'');}),telegramCmd=program[a20_0x3e898b(0x164)]('telegram')['description'](a20_0x3e898b(0xe3));telegramCmd[a20_0x3e898b(0x164)](a20_0x3e898b(0x138))['description'](a20_0x3e898b(0x129))[a20_0x3e898b(0x10c)](async()=>{const _0x352725=a20_0x3e898b,{setupTelegram:_0x32729d}=await import(_0x352725(0x115));await _0x32729d();});const emailCmd=program[a20_0x3e898b(0x164)](a20_0x3e898b(0x15d))[a20_0x3e898b(0x126)](a20_0x3e898b(0x15e));emailCmd['command'](a20_0x3e898b(0x138))['description'](a20_0x3e898b(0x12f))[a20_0x3e898b(0x10c)](async()=>{const _0x16f485=a20_0x3e898b,{setupEmail:_0x4687c4}=await import(_0x16f485(0x12d));await _0x4687c4();}),program[a20_0x3e898b(0x130)]();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x5c2b74=a21_0x19cd;(function(_0x252f5c,_0x47a176){const _0x11fc81=a21_0x19cd,_0x3ac998=_0x252f5c();while(!![]){try{const _0x578ead=-parseInt(_0x11fc81(0x1df))/0x1*(-parseInt(_0x11fc81(0x1ab))/0x2)+-parseInt(_0x11fc81(0x1ae))/0x3*(parseInt(_0x11fc81(0x1d4))/0x4)+-parseInt(_0x11fc81(0x1b3))/0x5+parseInt(_0x11fc81(0x1db))/0x6*(-parseInt(_0x11fc81(0x1d6))/0x7)+-parseInt(_0x11fc81(0x1e7))/0x8+-parseInt(_0x11fc81(0x1d8))/0x9*(parseInt(_0x11fc81(0x1c9))/0xa)+parseInt(_0x11fc81(0x1c3))/0xb*(parseInt(_0x11fc81(0x1a7))/0xc);if(_0x578ead===_0x47a176)break;else _0x3ac998['push'](_0x3ac998['shift']());}catch(_0x48ad8e){_0x3ac998['push'](_0x3ac998['shift']());}}}(a21_0x38e7,0x956ad));import{Server}from'@modelcontextprotocol/sdk/server/index.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{CallToolRequestSchema,ListToolsRequestSchema}from'@modelcontextprotocol/sdk/types.js';import{Jimp}from'jimp';import{createRequire}from'module';const require=createRequire(import.meta.url);let robot;function a21_0x19cd(_0x5a926b,_0x261a9a){_0x5a926b=_0x5a926b-0x1a3;const _0x38e7ac=a21_0x38e7();let _0x19cd09=_0x38e7ac[_0x5a926b];return _0x19cd09;}try{robot=require(a21_0x5c2b74(0x1c6));}catch(a21_0x257aa4){}function a21_0x38e7(){const _0x8a6891=['computer_key_tap','capture','join','image','width','Error:\x20','computer_type','alt','height','Tapped\x20key:\x20','11BIWkuq','computer_mouse_click','Key\x20to\x20tap\x20(e.g.\x20\x27enter\x27,\x20\x27a\x27,\x20\x27backspace\x27)','@hurdlegroup/robotjs','object','number','20gwzgXU','text','toString','params','array','Tap\x20a\x20single\x20key\x20with\x20optional\x20modifiers.','shift','bitmap','Type\x20a\x20string\x20of\x20text.','Screenshot\x20taken.','computer_screen_size','2777596oqOCLV','left','49jhkdMM','command','1148967nFWvGj','connect','Modifier\x20keys','834060obBEkB','getScreenSize','getBuffer','typeString','523987pdNiXA','Typed:\x20\x22','boolean','X\x20coordinate','middle','data','screen','Y\x20coordinate','4667472UZkRcr','Clicked\x20','1.0.0','computer_mouse_move','Move\x20the\x20mouse\x20cursor\x20to\x20specific\x20coordinates.','with\x20','43978092uffkEJ','image/jpeg','mouseClick','key','2bBbHYA','\x20button','Get\x20the\x20screen\x20resolution.','3GqpCyZ','resize','setRequestHandler','keyTap','computer_screenshot','5352930wdHwji','computer-use','string','length','moveMouse','control'];a21_0x38e7=function(){return _0x8a6891;};return a21_0x38e7();}const AUTO=-0x1,MIME_JPEG=a21_0x5c2b74(0x1a8),server=new Server({'name':a21_0x5c2b74(0x1b4),'version':a21_0x5c2b74(0x1a3)},{'capabilities':{'tools':{}}});server[a21_0x5c2b74(0x1b0)](ListToolsRequestSchema,async()=>{const _0x5abcae=a21_0x5c2b74;return{'tools':[{'name':'computer_screenshot','description':'Take\x20a\x20screenshot\x20of\x20the\x20primary\x20display.\x20Returns\x20base64\x20encoded\x20image.','inputSchema':{'type':_0x5abcae(0x1c7),'properties':{}}},{'name':_0x5abcae(0x1a4),'description':_0x5abcae(0x1a5),'inputSchema':{'type':_0x5abcae(0x1c7),'properties':{'x':{'type':'number','description':_0x5abcae(0x1e2)},'y':{'type':_0x5abcae(0x1c8),'description':_0x5abcae(0x1e6)}},'required':['x','y']}},{'name':_0x5abcae(0x1c4),'description':'Click\x20the\x20mouse\x20button.','inputSchema':{'type':_0x5abcae(0x1c7),'properties':{'button':{'type':_0x5abcae(0x1b5),'enum':['left','right',_0x5abcae(0x1e3)],'default':_0x5abcae(0x1d5)},'double':{'type':_0x5abcae(0x1e1),'default':![]}}}},{'name':_0x5abcae(0x1bf),'description':_0x5abcae(0x1d1),'inputSchema':{'type':_0x5abcae(0x1c7),'properties':{'text':{'type':'string','description':'Text\x20to\x20type'}},'required':[_0x5abcae(0x1ca)]}},{'name':_0x5abcae(0x1b9),'description':_0x5abcae(0x1ce),'inputSchema':{'type':_0x5abcae(0x1c7),'properties':{'key':{'type':_0x5abcae(0x1b5),'description':_0x5abcae(0x1c5)},'modifiers':{'type':_0x5abcae(0x1cd),'items':{'type':_0x5abcae(0x1b5),'enum':[_0x5abcae(0x1c0),_0x5abcae(0x1d7),_0x5abcae(0x1b8),_0x5abcae(0x1cf)]},'description':_0x5abcae(0x1da)}},'required':[_0x5abcae(0x1aa)]}},{'name':_0x5abcae(0x1d3),'description':_0x5abcae(0x1ad),'inputSchema':{'type':_0x5abcae(0x1c7),'properties':{}}}]};}),server[a21_0x5c2b74(0x1b0)](CallToolRequestSchema,async _0x26c071=>{const _0x27fc01=a21_0x5c2b74,{name:_0x578677,arguments:_0x41611b}=_0x26c071[_0x27fc01(0x1cc)];try{if(_0x578677===_0x27fc01(0x1b2)){const _0x422080=robot['getScreenSize'](),_0x164644=robot[_0x27fc01(0x1e5)][_0x27fc01(0x1ba)](0x0,0x0,_0x422080[_0x27fc01(0x1bd)],_0x422080[_0x27fc01(0x1c1)]),_0x48fa87=new Jimp({'width':_0x164644[_0x27fc01(0x1bd)],'height':_0x164644['height']});for(let _0x163a32=0x0;_0x163a32<_0x164644[_0x27fc01(0x1bc)][_0x27fc01(0x1b6)];_0x163a32+=0x4){_0x48fa87[_0x27fc01(0x1d0)]['data'][_0x163a32]=_0x164644[_0x27fc01(0x1bc)][_0x163a32+0x2],_0x48fa87[_0x27fc01(0x1d0)][_0x27fc01(0x1e4)][_0x163a32+0x1]=_0x164644[_0x27fc01(0x1bc)][_0x163a32+0x1],_0x48fa87[_0x27fc01(0x1d0)][_0x27fc01(0x1e4)][_0x163a32+0x2]=_0x164644['image'][_0x163a32],_0x48fa87[_0x27fc01(0x1d0)][_0x27fc01(0x1e4)][_0x163a32+0x3]=_0x164644[_0x27fc01(0x1bc)][_0x163a32+0x3];}_0x48fa87[_0x27fc01(0x1d0)][_0x27fc01(0x1bd)]>0x400&&_0x48fa87[_0x27fc01(0x1af)]({'w':0x400});const _0x250b9a=await _0x48fa87[_0x27fc01(0x1dd)](MIME_JPEG),_0x5a24da=_0x250b9a[_0x27fc01(0x1cb)]('base64');return{'content':[{'type':_0x27fc01(0x1ca),'text':_0x27fc01(0x1d2)},{'type':'image','data':_0x5a24da,'mimeType':_0x27fc01(0x1a8)}]};}if(_0x578677===_0x27fc01(0x1a4)){const {x:_0x75e814,y:_0x31137f}=_0x41611b;return robot[_0x27fc01(0x1b7)](_0x75e814,_0x31137f),{'content':[{'type':_0x27fc01(0x1ca),'text':'Moved\x20mouse\x20to\x20'+_0x75e814+',\x20'+_0x31137f}]};}if(_0x578677===_0x27fc01(0x1c4)){const {button:button='left',double:double=![]}=_0x41611b;return robot[_0x27fc01(0x1a9)](button,double),{'content':[{'type':_0x27fc01(0x1ca),'text':_0x27fc01(0x1e8)+button+_0x27fc01(0x1ac)+(double?'\x20(double)':'')}]};}if(_0x578677===_0x27fc01(0x1bf)){const {text:_0x12908b}=_0x41611b;return robot[_0x27fc01(0x1de)](_0x12908b),{'content':[{'type':_0x27fc01(0x1ca),'text':_0x27fc01(0x1e0)+_0x12908b+'\x22'}]};}if(_0x578677===_0x27fc01(0x1b9)){const {key:_0x49b745,modifiers:_0x28b8d2}=_0x41611b;return robot[_0x27fc01(0x1b1)](_0x49b745,_0x28b8d2),{'content':[{'type':_0x27fc01(0x1ca),'text':_0x27fc01(0x1c2)+_0x49b745+'\x20'+(_0x28b8d2?_0x27fc01(0x1a6)+_0x28b8d2[_0x27fc01(0x1bb)]('+'):'')}]};}if(_0x578677===_0x27fc01(0x1d3)){const _0x1caf8c=robot[_0x27fc01(0x1dc)]();return{'content':[{'type':_0x27fc01(0x1ca),'text':'Screen\x20size:\x20'+_0x1caf8c[_0x27fc01(0x1bd)]+'x'+_0x1caf8c[_0x27fc01(0x1c1)]}]};}throw new Error('Unknown\x20tool:\x20'+_0x578677);}catch(_0x14442c){return{'content':[{'type':_0x27fc01(0x1ca),'text':_0x27fc01(0x1be)+_0x14442c}],'isError':!![]};}});const transport=new StdioServerTransport();await server[a21_0x5c2b74(0x1d9)](transport);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a22_0x4fd87d=a22_0x1038;(function(_0xd5e0d8,_0x1feb94){const _0x460596=a22_0x1038,_0x47cfb0=_0xd5e0d8();while(!![]){try{const _0x2050f8=-parseInt(_0x460596(0x1c5))/0x1+-parseInt(_0x460596(0x1cb))/0x2+-parseInt(_0x460596(0x1b7))/0x3*(parseInt(_0x460596(0x1ab))/0x4)+-parseInt(_0x460596(0x1bd))/0x5+-parseInt(_0x460596(0x1c0))/0x6+-parseInt(_0x460596(0x1aa))/0x7*(-parseInt(_0x460596(0x1ae))/0x8)+-parseInt(_0x460596(0x1c4))/0x9*(-parseInt(_0x460596(0x1b3))/0xa);if(_0x2050f8===_0x1feb94)break;else _0x47cfb0['push'](_0x47cfb0['shift']());}catch(_0x23162e){_0x47cfb0['push'](_0x47cfb0['shift']());}}}(a22_0x9044,0xcf200));import*as a22_0x345eb3 from'../telegram/index.js';import*as a22_0x79b880 from'../discord/index.js';import*as a22_0x285bfa from'../email/index.js';import*as a22_0x32ebe5 from'../ui/output.js';class BotManager{[a22_0x4fd87d(0x1b1)]=[];constructor(){const _0x522fa6=a22_0x4fd87d;this[_0x522fa6(0x1b1)][_0x522fa6(0x1c8)]({'name':'Telegram','start':a22_0x345eb3['startBot'],'stop':a22_0x345eb3[_0x522fa6(0x1b0)],'isRunning':a22_0x345eb3[_0x522fa6(0x1c2)],'isConfigured':a22_0x345eb3[_0x522fa6(0x1c1)]}),this[_0x522fa6(0x1b1)][_0x522fa6(0x1c8)]({'name':_0x522fa6(0x1bc),'start':a22_0x79b880[_0x522fa6(0x1b2)],'stop':a22_0x79b880[_0x522fa6(0x1b0)],'isRunning':a22_0x79b880['isBotRunning'],'isConfigured':a22_0x79b880['isConfigured']}),this['services'][_0x522fa6(0x1c8)]({'name':_0x522fa6(0x1b9),'start':a22_0x285bfa[_0x522fa6(0x1b2)],'stop':a22_0x285bfa['stopBot'],'isRunning':a22_0x285bfa[_0x522fa6(0x1c2)],'isConfigured':a22_0x285bfa[_0x522fa6(0x1c1)]});}async[a22_0x4fd87d(0x1c6)](){const _0x1b0c74=a22_0x4fd87d,_0x306778=this[_0x1b0c74(0x1b1)][_0x1b0c74(0x1b5)](_0x42cc1f=>_0x42cc1f['isConfigured']());if(_0x306778[_0x1b0c74(0x1ca)]===0x0)return;a22_0x32ebe5['dim'](_0x1b0c74(0x1b4));const _0x586f7a=await Promise['all'](_0x306778[_0x1b0c74(0x1bf)](async _0x3ef6ef=>{const _0x591a9c=_0x1b0c74;try{if(_0x3ef6ef['isRunning']())return!![];const _0x1bfb01=await _0x3ef6ef['start']();return _0x1bfb01;}catch(_0x30f5b0){return a22_0x32ebe5[_0x591a9c(0x1ad)](_0x591a9c(0x1ba)+_0x3ef6ef[_0x591a9c(0x1c3)]+':\x20'+_0x30f5b0),![];}})),_0x283c2a=_0x586f7a[_0x1b0c74(0x1b5)](_0x469ca0=>_0x469ca0)[_0x1b0c74(0x1ca)];_0x283c2a>0x0&&a22_0x32ebe5[_0x1b0c74(0x1c9)](_0x1b0c74(0x1c7)+_0x283c2a+'/'+_0x306778[_0x1b0c74(0x1ca)]+_0x1b0c74(0x1b6));}[a22_0x4fd87d(0x1af)](){const _0x11d310=a22_0x4fd87d;this['services'][_0x11d310(0x1ac)](_0x2f7c11=>{const _0x18aa33=_0x11d310;_0x2f7c11[_0x18aa33(0x1be)]()&&_0x2f7c11[_0x18aa33(0x1bb)]();});}[a22_0x4fd87d(0x1b8)](){const _0x3d3e4a=a22_0x4fd87d;return this[_0x3d3e4a(0x1b1)]['map'](_0x51b470=>({'name':_0x51b470['name'],'running':_0x51b470[_0x3d3e4a(0x1be)](),'configured':_0x51b470[_0x3d3e4a(0x1c1)]()}));}}export const botManager=new BotManager();function a22_0x1038(_0x2cc534,_0x34e596){_0x2cc534=_0x2cc534-0x1aa;const _0x9044bd=a22_0x9044();let _0x10382e=_0x9044bd[_0x2cc534];return _0x10382e;}function a22_0x9044(){const _0x19c063=['isRunning','map','9255186BoQzee','isConfigured','isBotRunning','name','234kHUSUM','1386751lVnWMx','startAllConfigured','[Bot\x20Manager]\x20','push','success','length','3257284iEKEHj','5866XWKEgz','3448NVQvyv','forEach','error','3336MZHhAC','stopAll','stopBot','services','startBot','2506830EAQIWz','\x0a[Bot\x20Manager]\x20Starting\x20background\x20services...','filter','\x20services\x20active\x20in\x20background','3594YopaDj','getStatus','Email','Failed\x20to\x20start\x20','stop','Discord','2141100LGHOHz'];a22_0x9044=function(){return _0x19c063;};return a22_0x9044();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x289cd7,_0x3f6251){const _0x4057b5=a23_0x6a4b,_0x214192=_0x289cd7();while(!![]){try{const _0x4cd75c=parseInt(_0x4057b5(0xae))/0x1+parseInt(_0x4057b5(0x9b))/0x2*(parseInt(_0x4057b5(0xa8))/0x3)+parseInt(_0x4057b5(0xad))/0x4*(parseInt(_0x4057b5(0xa2))/0x5)+-parseInt(_0x4057b5(0xa6))/0x6+-parseInt(_0x4057b5(0x9e))/0x7+parseInt(_0x4057b5(0xb0))/0x8*(parseInt(_0x4057b5(0x9f))/0x9)+parseInt(_0x4057b5(0x9c))/0xa*(-parseInt(_0x4057b5(0xac))/0xb);if(_0x4cd75c===_0x3f6251)break;else _0x214192['push'](_0x214192['shift']());}catch(_0x4864eb){_0x214192['push'](_0x214192['shift']());}}}(a23_0x15cb,0xc3496));import{GoogleGenerativeAI}from'@google/generative-ai';import{promises as a23_0xae75a6}from'fs';import*as a23_0x49f4d1 from'../ui/output.js';import a23_0x48092c from'conf';const config=new a23_0x48092c({'projectName':'woozlit-cli-voice'});function a23_0x15cb(){const _0x508d0d=['11129944yhRtlv','4014qYtLMs','response','toString','329985gpSSTd','readFile','get','text','7314750zXxGRy','message','3xoLkLM','generateContent','set','error','2300089BFxTKt','72NXDAtC','1162877LoBbwO','geminiKey','7696EbigCK','getGenerativeModel','base64','2912866IjhhBi','30OoEzCq','audio/ogg'];a23_0x15cb=function(){return _0x508d0d;};return a23_0x15cb();}function a23_0x6a4b(_0x3c446f,_0x333798){_0x3c446f=_0x3c446f-0x99;const _0x15cbab=a23_0x15cb();let _0x6a4bc4=_0x15cbab[_0x3c446f];return _0x6a4bc4;}export function setGeminiKey(_0xabf3db){const _0x3dad79=a23_0x6a4b;config[_0x3dad79(0xaa)]('geminiKey',_0xabf3db);}export function getGeminiKey(){const _0x10821e=a23_0x6a4b;return config[_0x10821e(0xa4)](_0x10821e(0xaf))||'';}export async function processVoiceMessage(_0x249c43){const _0x5d9d6a=a23_0x6a4b,_0x275a83=getGeminiKey();if(!_0x275a83)throw new Error('Gemini\x20API\x20Key\x20not\x20configured.\x20Run\x20\x27/voice\x20setup\x27\x20first.');const _0x2c1784=new GoogleGenerativeAI(_0x275a83),_0x306647=_0x2c1784[_0x5d9d6a(0x99)]({'model':'gemini-2.0-flash-exp'});try{const _0x3dcaad=await a23_0xae75a6[_0x5d9d6a(0xa3)](_0x249c43),_0x1645e4=_0x3dcaad[_0x5d9d6a(0xa1)](_0x5d9d6a(0x9a)),_0xc8c974=_0x5d9d6a(0x9d),_0xa07e67=await _0x306647[_0x5d9d6a(0xa9)](['Listen\x20to\x20this\x20audio\x20and\x20respond\x20helpfully.\x20If\x20it\x27s\x20a\x20command,\x20execute\x20it\x20or\x20say\x20you\x20can\x27t.',{'inlineData':{'mimeType':_0xc8c974,'data':_0x1645e4}}]),_0x3b8dc9=_0xa07e67[_0x5d9d6a(0xa0)][_0x5d9d6a(0xa5)]();return{'text':_0x3b8dc9};}catch(_0x1224e8){a23_0x49f4d1[_0x5d9d6a(0xab)]('Voice\x20processing\x20failed:\x20'+_0x1224e8[_0x5d9d6a(0xa7)]);throw _0x1224e8;}}
|