apt-mcp-agent-setup 1.2.33 → 1.2.35
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/bin/cli.js +1 -1
- package/bundle/NOTICES.md +0 -0
- package/bundle/core.enc +0 -0
- package/bundle/mcp-rules.enc +0 -0
- package/bundle/skills-aso.enc +0 -0
- package/bundle/skills-ba.enc +0 -0
- package/bundle/skills-base.enc +0 -0
- package/bundle/skills-be.enc +0 -0
- package/bundle/skills-design.enc +0 -0
- package/bundle/skills-fe.enc +0 -0
- package/bundle/skills-mobile.enc +0 -0
- package/bundle/skills-pm.enc +0 -0
- package/integrity-manifest.json +16 -16
- package/package.json +1 -1
- package/src/installer/global-setup.js +1 -1
- package/src/installer/platform-config.js +1 -1
- package/src/installer/prerequisites.js +1 -1
- package/src/installer/project-setup.js +1 -1
- package/src/installer/setup-wizard.js +1 -1
- package/src/license/crypto.js +1 -1
- package/src/license/fingerprint.js +1 -1
- package/src/license/terms.js +1 -1
- package/src/license/verify.js +1 -1
- package/src/presets/index.js +1 -1
- package/src/proxy/backends.js +1 -1
- package/src/proxy/router.config.js +1 -1
- package/src/proxy/router.js +1 -1
- package/src/proxy/server.js +1 -1
- package/src/templates/CLAUDE.md +1 -1
- package/src/templates/GEMINI.md +1 -1
- package/src/templates/copilot-instructions.md +1 -1
- package/src/templates/cursorrules.mdc +1 -1
- package/src/templates/windsurfrules.md +1 -1
package/src/proxy/router.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x20a97d=_0x4397;(function(_0x4080ab,_0x41b880){const _0x14cb6c=_0x4397,_0x6243d3=_0x4080ab();while(!![]){try{const _0x3033b7=-parseInt(_0x14cb6c(0x11e))/0x1+-parseInt(_0x14cb6c(0x11b))/0x2+-parseInt(_0x14cb6c(0x10e))/0x3+-parseInt(_0x14cb6c(0x117))/0x4+parseInt(_0x14cb6c(0x11d))/0x5*(-parseInt(_0x14cb6c(0x113))/0x6)+-parseInt(_0x14cb6c(0x119))/0x7+-parseInt(_0x14cb6c(0x11f))/0x8*(-parseInt(_0x14cb6c(0x112))/0x9);if(_0x3033b7===_0x41b880)break;else _0x6243d3['push'](_0x6243d3['shift']());}catch(_0x309f86){_0x6243d3['push'](_0x6243d3['shift']());}}}(_0x46c7,0xaf458));const TOOL_MAPPING=require(_0x20a97d(0x116)),ORIGINAL_TO_EXPOSED={};for(const [exposed,info]of Object['entries'](TOOL_MAPPING)){ORIGINAL_TO_EXPOSED[info[_0x20a97d(0x114)]+':'+info[_0x20a97d(0x11c)]]=exposed;}function translateToolList(_0xe0c934,_0x1a3aa5=null){const _0x186eb0=_0x20a97d,_0x1e9bd1=[];for(const _0x1a7f5a of _0xe0c934){let _0x25079c=null;if(_0x1a3aa5)_0x25079c=ORIGINAL_TO_EXPOSED[_0x1a3aa5+':'+_0x1a7f5a[_0x186eb0(0x110)]];else for(const [_0x544824,_0x2efd36]of Object[_0x186eb0(0x111)](TOOL_MAPPING)){if(_0x2efd36[_0x186eb0(0x11c)]===_0x1a7f5a['name']){_0x25079c=_0x544824;break;}}if(_0x25079c){const _0x348173={..._0x1a7f5a};_0x348173['name']=_0x25079c,_0x1e9bd1[_0x186eb0(0x118)](_0x348173);}}return _0x1e9bd1;}function _0x4397(_0x319207,_0x5bacf4){_0x319207=_0x319207-0x10e;const _0x46c7aa=_0x46c7();let _0x439704=_0x46c7aa[_0x319207];if(_0x4397['KZBdfr']===undefined){var _0x10bb17=function(_0x2132d7){const _0x2527c9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2d3f1c='',_0x478292='';for(let _0xe0c934=0x0,_0x1a3aa5,_0x1e9bd1,_0x1a7f5a=0x0;_0x1e9bd1=_0x2132d7['charAt'](_0x1a7f5a++);~_0x1e9bd1&&(_0x1a3aa5=_0xe0c934%0x4?_0x1a3aa5*0x40+_0x1e9bd1:_0x1e9bd1,_0xe0c934++%0x4)?_0x2d3f1c+=String['fromCharCode'](0xff&_0x1a3aa5>>(-0x2*_0xe0c934&0x6)):0x0){_0x1e9bd1=_0x2527c9['indexOf'](_0x1e9bd1);}for(let _0x25079c=0x0,_0x544824=_0x2d3f1c['length'];_0x25079c<_0x544824;_0x25079c++){_0x478292+='%'+('00'+_0x2d3f1c['charCodeAt'](_0x25079c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x478292);};_0x4397['iQseUH']=_0x10bb17,_0x4397['GOtIem']={},_0x4397['KZBdfr']=!![];}const _0x3296ca=_0x46c7aa[0x0],_0x4e438a=_0x319207+_0x3296ca,_0x55da2f=_0x4397['GOtIem'][_0x4e438a];return!_0x55da2f?(_0x439704=_0x4397['iQseUH'](_0x439704),_0x4397['GOtIem'][_0x4e438a]=_0x439704):_0x439704=_0x55da2f,_0x439704;}function mapExposedToOriginal(_0x22eeee){return TOOL_MAPPING[_0x22eeee]||null;}function _0x46c7(){const _0x1fb652=['zw50CMLLCW','mZzRBuveq2S','mtjYt1fkt1K','yMfJA2vUza','ve9ptf9nqvbqsu5h','lI9YB3v0zxiUy29UzMLNlMPZ','mJm5mdyYmgTiuuHbEG','ChvZAa','otC4nteXohnszhHcAa','BwfWrxHWB3nLzfrVt3jPz2LUywW','mJyXndq5nK5SEM9VyG','B3jPz2LUywXoyw1L','mZaYndK4nxH5qxLpAq','mti5nte0nw9mAxP1yG','mtm1nJCYodbqqwTot3G','nZCZndm2u3zUBeTm','DhjHBNnSyxrLvg9VBeXPC3q','BMfTzq'];_0x46c7=function(){return _0x1fb652;};return _0x46c7();}const _0x478292={};_0x478292[_0x20a97d(0x115)]=TOOL_MAPPING,_0x478292[_0x20a97d(0x10f)]=translateToolList,_0x478292[_0x20a97d(0x11a)]=mapExposedToOriginal,module['exports']=_0x478292;
|
package/src/proxy/server.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x57a1bb=_0x82e2;(function(_0x3e9643,_0x3e92a7){const _0x5be2b4=_0x82e2,_0x564628=_0x3e9643();while(!![]){try{const _0x586648=-parseInt(_0x5be2b4(0x217))/0x1*(-parseInt(_0x5be2b4(0x29f))/0x2)+parseInt(_0x5be2b4(0x276))/0x3+-parseInt(_0x5be2b4(0x20d))/0x4+-parseInt(_0x5be2b4(0x20e))/0x5+parseInt(_0x5be2b4(0x275))/0x6+parseInt(_0x5be2b4(0x220))/0x7+-parseInt(_0x5be2b4(0x1fc))/0x8*(parseInt(_0x5be2b4(0x27f))/0x9);if(_0x586648===_0x3e92a7)break;else _0x564628['push'](_0x564628['shift']());}catch(_0x134c2e){_0x564628['push'](_0x564628['shift']());}}}(_0x2643,0x3971e));const fs=require('fs'),path=require(_0x57a1bb(0x250)),os=require('os'),http=require(_0x57a1bb(0x1f0)),https=require(_0x57a1bb(0x268)),{verifyLicense}=require(_0x57a1bb(0x282)),{spawnBackends}=require('./backends.js'),{translateToolList,mapExposedToOriginal}=require(_0x57a1bb(0x221));function _0x82e2(_0x19fd26,_0x311230){_0x19fd26=_0x19fd26-0x1e4;const _0x2643b7=_0x2643();let _0x82e262=_0x2643b7[_0x19fd26];if(_0x82e2['FGLpIH']===undefined){var _0x1993d7=function(_0x5da8c1){const _0x459cbe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x56d6bb='',_0x3c2428='';for(let _0x3d82d8=0x0,_0xfed885,_0x5d8ef9,_0x2cbad8=0x0;_0x5d8ef9=_0x5da8c1['charAt'](_0x2cbad8++);~_0x5d8ef9&&(_0xfed885=_0x3d82d8%0x4?_0xfed885*0x40+_0x5d8ef9:_0x5d8ef9,_0x3d82d8++%0x4)?_0x56d6bb+=String['fromCharCode'](0xff&_0xfed885>>(-0x2*_0x3d82d8&0x6)):0x0){_0x5d8ef9=_0x459cbe['indexOf'](_0x5d8ef9);}for(let _0x3b70d3=0x0,_0x5d0f98=_0x56d6bb['length'];_0x3b70d3<_0x5d0f98;_0x3b70d3++){_0x3c2428+='%'+('00'+_0x56d6bb['charCodeAt'](_0x3b70d3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3c2428);};_0x82e2['sXcsAO']=_0x1993d7,_0x82e2['JVkXYw']={},_0x82e2['FGLpIH']=!![];}const _0x533733=_0x2643b7[0x0],_0x351e4f=_0x19fd26+_0x533733,_0x1be975=_0x82e2['JVkXYw'][_0x351e4f];return!_0x1be975?(_0x82e262=_0x82e2['sXcsAO'](_0x82e262),_0x82e2['JVkXYw'][_0x351e4f]=_0x82e262):_0x82e262=_0x1be975,_0x82e262;}function uriToPath(_0x1e44f4){const _0x30181e=_0x57a1bb;if(!_0x1e44f4)return null;try{const _0x47f34a=new URL(_0x1e44f4);if(_0x47f34a[_0x30181e(0x24f)]===_0x30181e(0x288)){let _0x7e83a8=decodeURIComponent(_0x47f34a[_0x30181e(0x215)]);return process[_0x30181e(0x1e8)]===_0x30181e(0x209)&&_0x7e83a8[_0x30181e(0x219)]('/')&&_0x7e83a8[_0x30181e(0x22c)](0x2,0x3)===':'&&(_0x7e83a8=_0x7e83a8[_0x30181e(0x22c)](0x1)),path[_0x30181e(0x28f)](_0x7e83a8);}}catch(_0x599c17){if(_0x1e44f4[_0x30181e(0x219)](_0x30181e(0x291))){let _0x3d48e9=_0x1e44f4[_0x30181e(0x22c)](0x7);return process[_0x30181e(0x1e8)]==='win32'&&_0x3d48e9[_0x30181e(0x219)]('/')&&_0x3d48e9[_0x30181e(0x22c)](0x2,0x3)===':'&&(_0x3d48e9=_0x3d48e9['slice'](0x1)),path['normalize'](decodeURIComponent(_0x3d48e9));}}return null;}function findProjectRoot(_0x2c26db){const _0xe727cd=_0x57a1bb;if(!_0x2c26db)return _0x2c26db;let _0x46c8d2=_0x2c26db;while(_0x46c8d2){const _0x234b37=path[_0xe727cd(0x1e4)](_0x46c8d2,_0xe727cd(0x269));if(fs[_0xe727cd(0x225)](_0x234b37)&&fs[_0xe727cd(0x204)](_0x234b37)[_0xe727cd(0x20f)]())return _0x46c8d2;const _0x195a3f=path[_0xe727cd(0x226)](_0x46c8d2);if(_0x195a3f===_0x46c8d2)break;_0x46c8d2=_0x195a3f;}return _0x2c26db;}function httpRequest(_0x45128b,_0x44e618={}){return new Promise((_0x582578,_0x4bebf8)=>{const _0x122e2f=_0x82e2;try{const _0x25f2a7=new URL(_0x45128b),_0x15b834=_0x25f2a7[_0x122e2f(0x24f)]===_0x122e2f(0x25e)?https:http,_0x3e2615={'User-Agent':_0x122e2f(0x21e)+process['version']+')',..._0x44e618[_0x122e2f(0x228)]},_0x335b82=_0x3e2615;if(_0x44e618[_0x122e2f(0x1fa)]){const _0x2089a2=typeof _0x44e618['body']===_0x122e2f(0x245)?_0x44e618['body']:JSON[_0x122e2f(0x29c)](_0x44e618[_0x122e2f(0x1fa)]);!_0x335b82['Content-Length']&&!_0x335b82[_0x122e2f(0x210)]&&(_0x335b82[_0x122e2f(0x20b)]=Buffer[_0x122e2f(0x260)](_0x2089a2));}const _0x80026b={};_0x80026b[_0x122e2f(0x263)]=_0x44e618['method']||'GET',_0x80026b['hostname']=_0x25f2a7[_0x122e2f(0x251)],_0x80026b[_0x122e2f(0x249)]=_0x25f2a7[_0x122e2f(0x249)]||(_0x25f2a7[_0x122e2f(0x24f)]===_0x122e2f(0x25e)?0x1bb:0x50),_0x80026b[_0x122e2f(0x250)]=_0x25f2a7[_0x122e2f(0x215)]+_0x25f2a7['search'],_0x80026b['headers']=_0x335b82;const _0x41a888=_0x80026b,_0xc32d65=_0x15b834[_0x122e2f(0x265)](_0x41a888,_0x2e314f=>{const _0x3fa183=_0x122e2f;let _0x5dd16f='';_0x2e314f['on']('data',_0x4bdd84=>{_0x5dd16f+=_0x4bdd84;}),_0x2e314f['on'](_0x3fa183(0x237),()=>{const _0x1a5aaa=_0x3fa183;_0x582578({'ok':_0x2e314f[_0x1a5aaa(0x279)]>=0xc8&&_0x2e314f['statusCode']<0x12c,'status':_0x2e314f[_0x1a5aaa(0x279)],'json':async()=>JSON[_0x1a5aaa(0x234)](_0x5dd16f),'text':async()=>_0x5dd16f});});});_0xc32d65['on']('error',_0x11db20=>{_0x4bebf8(_0x11db20);}),_0x44e618['signal']&&(_0x44e618[_0x122e2f(0x1f2)]['aborted']?_0xc32d65[_0x122e2f(0x24a)](new Error(_0x122e2f(0x266))):_0x44e618[_0x122e2f(0x1f2)][_0x122e2f(0x21a)](_0x122e2f(0x21c),()=>{const _0x1bcf9f=_0x122e2f;_0xc32d65[_0x1bcf9f(0x24a)](new Error(_0x1bcf9f(0x266)));})),_0x44e618[_0x122e2f(0x1fa)]&&_0xc32d65['write'](_0x44e618[_0x122e2f(0x1fa)]),_0xc32d65[_0x122e2f(0x237)]();}catch(_0x538210){_0x4bebf8(_0x538210);}});}function _0x2643(){const _0x4e17c6=['w01ducbbz2vUDf0GugvYAw9KAwmGAgvHCNrIzwf0igvYCM9YoG','otu4nJj4rxzSv2y','odeZnJq1Aevnvhnj','C3rVCa','zgvZy3jPChrPB24','C3rHDhvZq29Kzq','zxHW','Cgf5Bg9Hza','l2HLyxj0yMvHDa','C2LNBMf0DxjL','CNvUBMLUzW','ntq5y0P6zKX1','Dg9VBhmVBgLZDa','CMv0CNLPBMC','lI4VBgLJzw5Zzs92zxjPzNKUANm','ywXS','Dg9VBhm','zw50CMLLCW','ChvIBgLJs2v5','w01ducbbz2vUDf0GtgLJzw5ZzsbLEhbPCMvKig9Uia','zMLSztO','Aw5PDgLHBgL6zq','BgLJzw5ZzuTLEq','ChvZAa','q29UDgvUDc1uExbL','yMfJA2vUza','CM9VDfvYAq','BM9YBwfSAxPL','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGsw52ywXPzcbTyw5PzMvZDcbMB3jTyxqUiev4AxrPBMCU','zMLSztOVlW','BgvUz3rO','BwfW','Agv4','Cgf1C2u','BgLJzw5Zzs5RzxK','rMfPBgvKihrVihf1zxj5ihrVB2WGBgLZDdOG','C2HHmJu2','y2XPzw50qNvMzMvY','z2v0qMfJA2vUzeHLywX0Afn1Bw1HCNK','lMfUAgrO','C3rYAw5NAwz5','Bg9HzeXPy2vUC2vlzxK','lIbdB250ywn0ihn1ChbVCNqGyxqGC3vWCg9YDebHBMHKAc5PBY4GrxHPDgLUzY4','nLfNC2fnqq','Ag9TzwrPCG','zxHPDa','lIbszw5LDYbHDcbODhrWCZOVl2fUAgrOlMLVl3jLBMv3lIbfEgL0Aw5NlG','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOG','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGu2LNBMf0DxjLihzLCMLMAwnHDgLVBIbMywLSzwqUiev4AxrPBMCU','CgvYzM9YBuHLyxj0yMvHDa','AM9PBG','rMfPBgvKihrVihn0yxj0ifbYB3H5u2vYDMvYoG','Dg9VBhmVy2fSBa','C2vUzfjLCxvLC3q','CgXHDgzVCM0','D3jPDgvuB0nSAwvUDa','w01ducbbz2vUDf0GDg9VBhmVBgLZDcbYzxf1zxn0igzHAwXLzcbMB3iGC2vYDMLJzsa','DxbKyxrL','DxnLCG','w01ducbbz2vUDf0Gu3rHCNrPBMCGC2vYDMvYigf0ia','Aw5JBhvKzxm','D3jPDgvfCNjVCG','Ahr0Ca','ChjVCgvYDgLLCW','C2LNBMfS','BMfTzq','lI4VBgLJzw5Zzs9MAw5NzxjWCMLUDc5QCW','C3rKAw4','BwTKAxjtEw5J','w01ducbbz2vUDf0GsgvHCNrIzwf0ihjLzNjLC2GGzMfPBgvKoIbtzxj2zxiGCMv0DxjUzwqG','y2f0y2G','C3rKAw5mAxn0zw5LCG','yM9KEq','D3jPDgvgAwXLu3LUyW','mZa1nJHisMzvq3O','CgfYyw1Z','y3jHC2HLza','DMvYC2LVBG','DhjPBq','zgLZDa','w01ducbbz2vUDf0GsgvHCNrIzwf0ignOzwnRoIb0B2TLBIbOyxmGBgvZCYb0AgfUidyGzgf5CYbYzw1HAw5PBMCUifjLzNjLC2HPBMCUlI4','C3rKB3v0','C3rHDfn5BMm','zMLSzxm','igLZig5VDcbYDw5UAw5N','CMvWBgfJzq','AgfUzgXLq2XPzw50twvZC2fNzq','D2LUmZi','lI4VlI4','q29UDgvUDc1mzw5NDgG','zxjYB3i','mZq1mJu2B0vfteDX','ntuZmdiWvfjVDuzd','AxneAxjLy3rVCNK','y29UDgvUDc1Szw5NDgG','C3rHDhvZ','ywXPDMu','ChjVAMvJDfbHDgG','CMvXDwLYzwq','Cgf0Ag5HBwu','BwnWx2fNzw50x2HLywX0Aa','mZy4nZf0wvrWtK0','BM9Uzq','C3rHCNrZv2L0Aa','ywrKrxzLBNrmAxn0zw5LCG','zgLZCgXHEu5HBwu','ywjVCNq','ihrVB2XZigf2ywLSywjSzs4GqMfJA2vUzhm6ia','tw96AwXSys81lJaGkgnVBxbHDgLIBgu7ie5VzguV','DxrMoa','mtG3mJqXnNniEgfHBW','lI9YB3v0zxiUANm','Dg9ju09tDhjPBMC','CMvZB2X2zq','DMvYAwz5','zxHPC3rZu3LUyW','zgLYBMfTzq','tgLJzw5ZzsbLEhbPCMvK','AgvHzgvYCW','Dg9Rzw4','CMvHBhbHDgHtEw5J','w01ducbbz2vUDf0GsgvHCNrIzwf0ignOzwnRigzHAwXLzcbVCIb0Aw1LzcbVDxq6','C2XPy2u','BwfZDgvYlNb1yMXPyY5Wzw0','Dgv4Da','zM9YD2fYzfjLCxvLC3q','CMvJDxjZAxzL','w01ducbbz2vUDf0GDg9VBhmVBgLZDdOG','AgfUzgXLq2XPzw50rgf0yq','vg9VBcbLEgvJDxrPB24GzMfPBgvKoIa','CgfYC2u','ANnVBG','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGAgfZigjLzw4GCMv2B2TLzc4GrxHPDgLUzY4','zw5K','BwnWlwfNzw50lxbYB3H5','Ahr0Chm6lY9Hz2vUDgTPDc5HBhbOyxrLy2HZlMfPl2fWAq','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGAw50zwDYAxr5lw1HBMLMzxn0lMPZB24GBwLZC2LUzY4GrxHPDgLUzY4','DMfSDwvZ','y29Kzq','ChjVDg9JB2XwzxjZAw9U','lIbdB250Aw51Aw5NihDPDgGGy2fJAgvKihrVA2vUlG','AgvHCNrIzwf0sw50zxj2ywW','yMfJA2vUzhm','ig1VzgLMAwvKlIbfEgL0Aw5NlG','ue9tva','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGzxHWAxjLzcbVCIbPBNzHBgLKlIbfEgL0Aw5NlG','ms4WlJa','C3rYAw5N','C2vYDMvYsw5MBW','vgfYz2v0igjHy2TLBMqG','w01ducbbz2vUDf0Gu3DPDgnOAw5NihbYB2PLy3qGCgf0AcbMCM9Tia','Cg9YDa','zgvZDhjVEq','C3rHCNq','CMvZDwX0','mI4W','BgLZDenOyw5Nzwq','ChjVDg9JB2W','Cgf0Aa','Ag9ZDg5HBwu','B3jPz2LUywXoyw1L','CMvHC29U','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGDMvYAwzPy2f0Aw9UigzHAwXLzdOG','yxbWBgLJyxrPB24VANnVBG','BM93','C3bSAxq','zNjVBq','w01ducbbz2vUDf0GrMfPBgvKihrVihnHDMuGCMvMCMvZAgvKigXPy2vUC2uGDg9Rzw4GDg8GzgLZAZO','D3jPDgu','Aw50zwDYAxr5twfUAwzLC3rqyxrO','Dg9tDhjPBMC','uhjVEhLtzxj2zxi','Ahr0Chm6','CMvTB3zLtgLZDgvUzxi','yNL0zuXLBMD0Aa','y2HPBgq','w01ducbbz2vUDf0GrMfPBgvKihrVigLUAxrPywXPEMuGC2vYDMLJzsa','Bwv0Ag9K','BwvZC2fNzq','CMvXDwvZDa','vgHLig9WzxjHDgLVBIb3yxmGywjVCNrLzc4','y3j5ChrV','Ahr0Chm','lMfNzw50CW','ywrTAw4','CM9VDfbHDgG','zgLNzxn0','CMvHzezPBgvtEw5J','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGrMfPBgvKihrVihbHCNnLigLUDgvNCML0Es1Tyw5PzMvZDc5QC29UlIbfEgL0Aw5NlG','yMfZzty0DxjS','C3rHDgu','mJaYnc0Xms0Wnq','zgv2AwnLswq','z2v0sgvHBhrOu3rHDhvZ'];_0x2643=function(){return _0x4e17c6;};return _0x2643();}class ProxyServer{constructor(_0x2ff6a7={}){const _0x37bcde=_0x57a1bb;let _0x421c3f=_0x2ff6a7[_0x37bcde(0x213)]||process['cwd']();try{_0x421c3f=fs[_0x37bcde(0x22a)](_0x421c3f);}catch(_0x414301){_0x421c3f=path[_0x37bcde(0x223)](_0x421c3f);}_0x421c3f=findProjectRoot(_0x421c3f),this['projectPath']=_0x421c3f,this[_0x37bcde(0x28a)]=_0x2ff6a7[_0x37bcde(0x28a)]||this[_0x37bcde(0x29d)](),this['deviceId']=_0x2ff6a7[_0x37bcde(0x272)],this[_0x37bcde(0x286)]=_0x2ff6a7[_0x37bcde(0x286)]||_0x2ff6a7['masterSecret'],this[_0x37bcde(0x240)]=null,this[_0x37bcde(0x299)]='',this[_0x37bcde(0x27e)]=![],this[_0x37bcde(0x203)]=_0x2ff6a7[_0x37bcde(0x203)]||process[_0x37bcde(0x203)],this[_0x37bcde(0x25b)]=_0x2ff6a7[_0x37bcde(0x25b)]||path[_0x37bcde(0x1e4)](__dirname,_0x37bcde(0x20a),'integrity-manifest.json');}['loadLicenseKey'](){const _0x3662f6=_0x57a1bb,_0x3c3ef5=path[_0x3662f6(0x1e4)](os[_0x3662f6(0x2a0)](),'.anhdh',_0x3662f6(0x296));if(fs[_0x3662f6(0x225)](_0x3c3ef5))return fs[_0x3662f6(0x26d)](_0x3c3ef5,_0x3662f6(0x21f))[_0x3662f6(0x200)]();return null;}async[_0x57a1bb(0x2a5)](){const _0x5d614c=_0x57a1bb,_0x2fc116=process.env.MCP_SKIP_LICENSE_CHECK==='1';if(_0x2fc116||!this[_0x5d614c(0x28a)])return;const _0x243371=this[_0x5d614c(0x28a)][_0x5d614c(0x257)]('.');if(_0x243371[_0x5d614c(0x292)]!==0x3)return;let _0x3685ac;try{_0x3685ac=JSON['parse'](Buffer[_0x5d614c(0x258)](_0x243371[0x1],_0x5d614c(0x26f))['toString'](_0x5d614c(0x21f)));}catch(_0x1728b8){return;}if(!_0x3685ac||!_0x3685ac[_0x5d614c(0x27a)])return;const _0x18f37d=0x6*0x18*0xe10*0x3e8,_0x519ae5=_0x3685ac[_0x5d614c(0x27a)]-Date[_0x5d614c(0x256)]();if(_0x519ae5<_0x18f37d){console['error'](_0x5d614c(0x202));const _0x22375f=process.env.MCP_ACTIVATION_URL||_0x5d614c(0x239),_0x28878b=_0x22375f+_0x5d614c(0x27c),_0x4a23d3=new AbortController(),_0x2591f0=setTimeout(()=>_0x4a23d3[_0x5d614c(0x21c)](),0x1388);try{const _0x3a2105={};_0x3a2105[_0x5d614c(0x28c)]=_0x5d614c(0x255);const _0x129a38={};_0x129a38[_0x5d614c(0x229)]=this[_0x5d614c(0x28a)];const _0x23add3=await httpRequest(_0x28878b,{'method':_0x5d614c(0x242),'headers':_0x3a2105,'body':JSON[_0x5d614c(0x29c)](_0x129a38),'signal':_0x4a23d3['signal']});clearTimeout(_0x2591f0);if(_0x23add3[_0x5d614c(0x211)]===0x193){console[_0x5d614c(0x20c)](_0x5d614c(0x236)),process[_0x5d614c(0x2a1)](0x1);return;}if(_0x23add3[_0x5d614c(0x211)]===0x191){console[_0x5d614c(0x20c)](_0x5d614c(0x243)),process[_0x5d614c(0x2a1)](0x1);return;}if(!_0x23add3['ok']){console['error'](_0x5d614c(0x1f7)+_0x23add3[_0x5d614c(0x211)]+_0x5d614c(0x23e));return;}const _0x59b9a0=await _0x23add3[_0x5d614c(0x235)]();if(_0x59b9a0&&_0x59b9a0[_0x5d614c(0x229)]){this[_0x5d614c(0x28a)]=_0x59b9a0[_0x5d614c(0x229)];const _0x8230f6=path[_0x5d614c(0x1e4)](os[_0x5d614c(0x2a0)](),_0x5d614c(0x29b),_0x5d614c(0x296));try{const _0x164bff={};_0x164bff[_0x5d614c(0x230)]=!![],fs[_0x5d614c(0x1f6)](path[_0x5d614c(0x226)](_0x8230f6),_0x164bff),fs[_0x5d614c(0x1fb)](_0x8230f6,_0x59b9a0[_0x5d614c(0x229)],_0x5d614c(0x21f)),console[_0x5d614c(0x20c)]('[MCP\x20Agent]\x20Heartbeat:\x20License\x20token\x20successfully\x20refreshed.');}catch(_0x1b907b){console[_0x5d614c(0x20c)](_0x5d614c(0x259),_0x1b907b[_0x5d614c(0x264)]);}}}catch(_0x5b77d3){clearTimeout(_0x2591f0),console[_0x5d614c(0x20c)](_0x5d614c(0x22b),_0x5b77d3[_0x5d614c(0x264)],_0x5d614c(0x23e));}}}async[_0x57a1bb(0x24b)](){const _0x3d66ac=_0x57a1bb;console[_0x3d66ac(0x20c)](_0x3d66ac(0x1ed)+this[_0x3d66ac(0x213)]);if(!this[_0x3d66ac(0x286)]){if(process.env.MCP_ADMIN_DIR){const _0x3484a1=path[_0x3d66ac(0x1e4)](process.env.MCP_ADMIN_DIR,_0x3d66ac(0x22d));fs[_0x3d66ac(0x225)](_0x3484a1)&&(this[_0x3d66ac(0x286)]=fs['readFileSync'](_0x3484a1,_0x3d66ac(0x21f))[_0x3d66ac(0x200)]());}if(!this[_0x3d66ac(0x286)]){let _0x1b28a0=__dirname;while(_0x1b28a0){const _0xfbcc1a=path[_0x3d66ac(0x1e4)](_0x1b28a0,_0x3d66ac(0x26a),_0x3d66ac(0x22d));if(fs['existsSync'](_0xfbcc1a)){this[_0x3d66ac(0x286)]=fs[_0x3d66ac(0x26d)](_0xfbcc1a,_0x3d66ac(0x21f))[_0x3d66ac(0x200)]();break;}const _0x2e19bc=path[_0x3d66ac(0x226)](_0x1b28a0);if(_0x2e19bc===_0x1b28a0)break;_0x1b28a0=_0x2e19bc;}}}const _0x445cff=this[_0x3d66ac(0x25b)],_0x119995=!__dirname[_0x3d66ac(0x207)](/\\/g,'/')[_0x3d66ac(0x257)]('/')[_0x3d66ac(0x1ee)](_0x3d66ac(0x201)),_0x1e21bb=process.env.MCP_SKIP_INTEGRITY_CHECK==='1'||_0x119995&&!fs[_0x3d66ac(0x225)](_0x445cff);if(!_0x1e21bb){const _0x3f2197=require(_0x3d66ac(0x267));if(!fs['existsSync'](_0x445cff)){console[_0x3d66ac(0x20c)](_0x3d66ac(0x23a)),process[_0x3d66ac(0x2a1)](0x1);return;}let _0x54e03c;try{_0x54e03c=JSON[_0x3d66ac(0x234)](fs['readFileSync'](_0x445cff,_0x3d66ac(0x21f)));}catch(_0x288a23){console[_0x3d66ac(0x20c)](_0x3d66ac(0x26e)),process[_0x3d66ac(0x2a1)](0x1);return;}if(!_0x54e03c[_0x3d66ac(0x205)]||!_0x54e03c[_0x3d66ac(0x27d)]){console[_0x3d66ac(0x20c)](_0x3d66ac(0x290)),process[_0x3d66ac(0x2a1)](0x1);return;}const _0x37fbc3=this[_0x3d66ac(0x286)]||require('../license/verify.js')['PRODUCTION_PUBLIC_KEY'];try{const _0x4d7799=JSON[_0x3d66ac(0x29c)](_0x54e03c[_0x3d66ac(0x205)]),_0x5a346f=Buffer[_0x3d66ac(0x258)](_0x54e03c[_0x3d66ac(0x27d)],_0x3d66ac(0x26f)),_0x1aa31d=_0x3f2197[_0x3d66ac(0x224)](null,Buffer[_0x3d66ac(0x258)](_0x4d7799),_0x37fbc3,_0x5a346f);if(!_0x1aa31d){console[_0x3d66ac(0x20c)]('[MCP\x20Agent]\x20Integrity\x20check\x20failed:\x20Invalid\x20signature.\x20Exiting.'),process['exit'](0x1);return;}}catch(_0x212477){console[_0x3d66ac(0x20c)](_0x3d66ac(0x2a4)),process[_0x3d66ac(0x2a1)](0x1);return;}const _0x2e964e=path[_0x3d66ac(0x1e4)](__dirname,_0x3d66ac(0x20a));for(const [_0x5713f7,_0x4a0cd4]of Object[_0x3d66ac(0x285)](_0x54e03c[_0x3d66ac(0x205)])){const _0x10f513=path[_0x3d66ac(0x1e4)](_0x2e964e,_0x5713f7);if(!fs[_0x3d66ac(0x225)](_0x10f513)){console['error'](_0x3d66ac(0x2a3)+_0x5713f7+_0x3d66ac(0x241)),process[_0x3d66ac(0x2a1)](0x1);return;}try{const _0x415902=fs[_0x3d66ac(0x26d)](_0x10f513),_0x2c79b2=_0x3f2197['createHash'](_0x3d66ac(0x298))[_0x3d66ac(0x1eb)](_0x415902)[_0x3d66ac(0x26c)](_0x3d66ac(0x294));if(_0x2c79b2!==_0x4a0cd4){console[_0x3d66ac(0x20c)](_0x3d66ac(0x2a3)+_0x5713f7+_0x3d66ac(0x241)),process[_0x3d66ac(0x2a1)](0x1);return;}}catch(_0x189c33){console['error'](_0x3d66ac(0x2a3)+_0x5713f7+'\x20modified.\x20Exiting.'),process[_0x3d66ac(0x2a1)](0x1);return;}}}const _0x226556=process.env.MCP_SKIP_LICENSE_CHECK==='1';if(!_0x226556){if(!this[_0x3d66ac(0x272)]){const {getFingerprint:_0x1dff49}=require(_0x3d66ac(0x1f4));this[_0x3d66ac(0x272)]=_0x1dff49();}const _0x1b4620=verifyLicense(this[_0x3d66ac(0x28a)],this[_0x3d66ac(0x272)],this[_0x3d66ac(0x286)]);if(!_0x1b4620['valid']){if(_0x1b4620['reason']===_0x3d66ac(0x227)){const _0x1a1d9c=_0x1b4620['payload']||{},_0x437159=_0x1a1d9c['exp']?new Date(_0x1a1d9c['exp'])[_0x3d66ac(0x222)]()['split']('T')[0x0]:'unknown';console[_0x3d66ac(0x20c)](_0x3d66ac(0x287)+_0x437159+_0x3d66ac(0x2a2));}else console[_0x3d66ac(0x20c)](_0x3d66ac(0x254)+_0x1b4620[_0x3d66ac(0x253)]+_0x3d66ac(0x29e));process['exit'](0x1);return;}console[_0x3d66ac(0x20c)]('[MCP\x20Agent]\x20License\x20key\x20verified\x20successfully\x20for\x20user:\x20'+_0x1b4620[_0x3d66ac(0x27b)][_0x3d66ac(0x1ec)]),await this['performHeartbeat'](),this[_0x3d66ac(0x23f)]=setInterval(()=>{const _0x8adc6c=_0x3d66ac;this[_0x8adc6c(0x2a5)]()[_0x8adc6c(0x1f8)](_0x4f37e3=>{const _0x421432=_0x8adc6c;console[_0x421432(0x20c)](_0x421432(0x274),_0x4f37e3[_0x421432(0x264)]);});},0x18*0x3c*0x3c*0x3e8);}this[_0x3d66ac(0x240)]=spawnBackends(this[_0x3d66ac(0x213)]),this[_0x3d66ac(0x27e)]=!![];for(const _0xaa4f34 of Object[_0x3d66ac(0x23b)](this[_0x3d66ac(0x240)])){_0xaa4f34[_0x3d66ac(0x24b)]();}this[_0x3d66ac(0x1f9)]=_0x30078d=>{const _0x40c009=_0x3d66ac;this[_0x40c009(0x232)](_0x30078d[_0x40c009(0x25c)]());},process['stdin']['on']('data',this['stdinListener']);}[_0x57a1bb(0x232)](_0x1f8502){const _0x2e9d23=_0x57a1bb;this[_0x2e9d23(0x299)]+=_0x1f8502;const _0x2f6dc3=this[_0x2e9d23(0x299)]['split']('\x0a');this['clientBuffer']=_0x2f6dc3['pop']();for(const _0x90c72b of _0x2f6dc3){const _0x13658c=_0x90c72b[_0x2e9d23(0x200)]();if(!_0x13658c)continue;try{const _0x23c7ff=JSON['parse'](_0x13658c);this[_0x2e9d23(0x208)](_0x23c7ff);}catch(_0x5138a7){console['error']('[MCP\x20Agent]\x20Failed\x20to\x20parse\x20JSON-RPC\x20message\x20from\x20client:',_0x90c72b,_0x5138a7[_0x2e9d23(0x264)]);}}}async['handleClientMessage'](_0x16259c){const _0x6009dc=_0x57a1bb,{id:_0x4856b3,method:_0x58b6cc,params:_0x1afc63}=_0x16259c;if(!_0x58b6cc)return;if(_0x58b6cc==='initialize'){let _0x275282=null;if(_0x1afc63){if(_0x1afc63[_0x6009dc(0x28e)])_0x275282=uriToPath(_0x1afc63[_0x6009dc(0x28e)]);else _0x1afc63['rootPath']&&(_0x275282=path['normalize'](_0x1afc63[_0x6009dc(0x26b)]));}if(_0x275282){try{_0x275282=fs[_0x6009dc(0x22a)](_0x275282);}catch(_0x52e174){_0x275282=path['resolve'](_0x275282);}_0x275282=findProjectRoot(_0x275282);if(fs[_0x6009dc(0x225)](_0x275282)&&_0x275282!==this['projectPath']){console[_0x6009dc(0x20c)](_0x6009dc(0x248)+this[_0x6009dc(0x213)]+'\x20to\x20'+_0x275282);if(this[_0x6009dc(0x240)])for(const _0x1cffe0 of Object[_0x6009dc(0x23b)](this['backends'])){_0x1cffe0[_0x6009dc(0x277)]();}this['projectPath']=_0x275282,this['backends']=spawnBackends(this['projectPath']);for(const _0x30f991 of Object['values'](this['backends'])){_0x30f991[_0x6009dc(0x24b)]();}}}Promise[_0x6009dc(0x283)](Object['values'](this['backends'])[_0x6009dc(0x293)](_0x2bbcf2=>_0x2bbcf2[_0x6009dc(0x1e7)](_0x6009dc(0x289),_0x1afc63)[_0x6009dc(0x1f8)](_0x21c5aa=>{const _0x5ad512=_0x6009dc;console['error'](_0x5ad512(0x262)+(_0x2bbcf2['displayName']||_0x2bbcf2[_0x5ad512(0x1f3)])+':',_0x21c5aa[_0x5ad512(0x264)]);})));const _0x11e63f={};_0x11e63f[_0x6009dc(0x24e)]=![];const _0x5dd2b8={};_0x5dd2b8[_0x6009dc(0x284)]=_0x11e63f;const _0x40c757={};_0x40c757[_0x6009dc(0x1f3)]=_0x6009dc(0x238),_0x40c757[_0x6009dc(0x1ff)]=_0x6009dc(0x244);const _0x35398d={};_0x35398d[_0x6009dc(0x23d)]=_0x1afc63[_0x6009dc(0x23d)]||_0x6009dc(0x271),_0x35398d['capabilities']=_0x5dd2b8,_0x35398d[_0x6009dc(0x246)]=_0x40c757;const _0x3740d3={};_0x3740d3['jsonrpc']=_0x6009dc(0x24d),_0x3740d3['id']=_0x4856b3,_0x3740d3[_0x6009dc(0x24c)]=_0x35398d;const _0x409296=_0x3740d3;this[_0x6009dc(0x1e9)](_0x409296);return;}if(_0x58b6cc===_0x6009dc(0x280)){try{const _0x561a8d=Object[_0x6009dc(0x285)](this[_0x6009dc(0x240)])['map'](async([_0x1aec70,_0x394069])=>{const _0x3ebcb2=_0x6009dc;try{const _0x89c93=await _0x394069[_0x3ebcb2(0x1e7)](_0x3ebcb2(0x280)),_0x4db552=_0x89c93&&_0x89c93[_0x3ebcb2(0x24c)]&&_0x89c93[_0x3ebcb2(0x24c)]['tools']||[];return translateToolList(_0x4db552,_0x1aec70);}catch(_0x4faad9){return console[_0x3ebcb2(0x20c)](_0x3ebcb2(0x1ea)+_0x1aec70+':',_0x4faad9[_0x3ebcb2(0x264)]),[];}}),_0x34de13=await Promise[_0x6009dc(0x283)](_0x561a8d),_0xfc017d=_0x34de13['flat'](),_0x71e312={};_0x71e312['type']='object',_0x71e312[_0x6009dc(0x1f1)]={},_0x71e312[_0x6009dc(0x214)]=[];const _0x3f7a25={};_0x3f7a25[_0x6009dc(0x1f3)]=_0x6009dc(0x216),_0x3f7a25[_0x6009dc(0x278)]='Returns\x20the\x20health\x20status\x20of\x20all\x20MCP\x20Agent\x20backend\x20services.\x20Use\x20this\x20to\x20diagnose\x20connectivity\x20issues.',_0x3f7a25['inputSchema']=_0x71e312,_0xfc017d[_0x6009dc(0x28b)](_0x3f7a25);const _0x2c3e7a=this[_0x6009dc(0x29a)]();console[_0x6009dc(0x20c)](_0x6009dc(0x231)+_0xfc017d[_0x6009dc(0x292)]+_0x6009dc(0x21d)+_0x2c3e7a);const _0x2c4178={};_0x2c4178[_0x6009dc(0x284)]=_0xfc017d;const _0x43a3b3={};_0x43a3b3['jsonrpc']=_0x6009dc(0x24d),_0x43a3b3['id']=_0x4856b3,_0x43a3b3[_0x6009dc(0x24c)]=_0x2c4178;const _0x4b6396=_0x43a3b3;this[_0x6009dc(0x1e9)](_0x4b6396);}catch(_0x387880){this[_0x6009dc(0x1ef)](_0x4856b3,-0x7f5b,_0x6009dc(0x297)+_0x387880[_0x6009dc(0x264)]);}return;}if(_0x58b6cc===_0x6009dc(0x1e6)){const _0x2bd5c3=_0x1afc63['name'];if(_0x2bd5c3===_0x6009dc(0x216)){const _0x49f44b={};for(const [_0x59f5fc,_0x533c7c]of Object[_0x6009dc(0x285)](this[_0x6009dc(0x240)])){_0x49f44b[_0x59f5fc]=_0x533c7c[_0x6009dc(0x273)]();}const _0x4b1c01={'jsonrpc':'2.0','id':_0x4856b3,'result':{'content':[{'type':_0x6009dc(0x22e),'text':JSON['stringify'](_0x49f44b,null,0x2)}]}};this[_0x6009dc(0x1e9)](_0x4b1c01);return;}const _0x461bd1=mapExposedToOriginal(_0x2bd5c3);if(!_0x461bd1)return this[_0x6009dc(0x1ef)](_0x4856b3,-0x7f59,'Tool\x20not\x20found:\x20'+_0x2bd5c3);try{const _0x1747d4=this[_0x6009dc(0x240)][_0x461bd1[_0x6009dc(0x28d)]];if(!_0x1747d4)return this[_0x6009dc(0x1ef)](_0x4856b3,-0x7f5b,_0x6009dc(0x247)+_0x461bd1['backend']+_0x6009dc(0x206));const _0x22af8c={..._0x1afc63};_0x22af8c[_0x6009dc(0x1f3)]=_0x461bd1[_0x6009dc(0x252)];const _0x423a0c={..._0x16259c};_0x423a0c[_0x6009dc(0x1fd)]=_0x22af8c;const _0x40eb82=_0x423a0c,_0x56bb2f=await _0x1747d4[_0x6009dc(0x22f)](_0x40eb82);this[_0x6009dc(0x1e9)](_0x56bb2f);}catch(_0x49793d){this[_0x6009dc(0x1ef)](_0x4856b3,-0x7f5b,_0x6009dc(0x233)+_0x49793d[_0x6009dc(0x264)]);}return;}for(const _0x5869bc of Object['values'](this[_0x6009dc(0x240)])){_0x5869bc[_0x6009dc(0x261)]&&_0x5869bc[_0x6009dc(0x261)][_0x6009dc(0x1f5)][_0x6009dc(0x25a)](JSON[_0x6009dc(0x29c)](_0x16259c)+'\x0a');}}[_0x57a1bb(0x1e9)](_0x10c028){this['stdout']['write'](JSON['stringify'](_0x10c028)+'\x0a');}[_0x57a1bb(0x1ef)](_0xc43a4e,_0x1bc790,_0x11f6d2){const _0xe2e9d7=_0x57a1bb,_0x114264={};_0x114264[_0xe2e9d7(0x23c)]=_0x1bc790,_0x114264[_0xe2e9d7(0x264)]=_0x11f6d2;const _0x5044da={};_0x5044da['jsonrpc']=_0xe2e9d7(0x24d),_0x5044da['id']=_0xc43a4e,_0x5044da[_0xe2e9d7(0x20c)]=_0x114264;const _0x5065fc=_0x5044da;this[_0xe2e9d7(0x1e9)](_0x5065fc);}[_0x57a1bb(0x277)](){const _0x38a1aa=_0x57a1bb;this[_0x38a1aa(0x27e)]=![];this[_0x38a1aa(0x23f)]&&(clearInterval(this[_0x38a1aa(0x23f)]),this[_0x38a1aa(0x23f)]=null);this[_0x38a1aa(0x1f9)]&&(process[_0x38a1aa(0x1f5)][_0x38a1aa(0x25f)]('data',this[_0x38a1aa(0x1f9)]),this[_0x38a1aa(0x1f9)]=null,process['stdin'][_0x38a1aa(0x295)]());if(this[_0x38a1aa(0x240)])for(const _0x40ae7a of Object[_0x38a1aa(0x23b)](this[_0x38a1aa(0x240)])){_0x40ae7a[_0x38a1aa(0x277)]();}}[_0x57a1bb(0x29a)](){const _0x4c7d90=_0x57a1bb;if(!this[_0x4c7d90(0x240)])return _0x4c7d90(0x218);return Object[_0x4c7d90(0x285)](this[_0x4c7d90(0x240)])[_0x4c7d90(0x293)](([_0x437eb1,_0x2f4496])=>{const _0x5727d2=_0x4c7d90,_0x5da3e1=_0x2f4496[_0x5727d2(0x273)](),_0x2e3210=_0x5da3e1[_0x5727d2(0x270)]===_0x5727d2(0x212)?'✅':_0x5da3e1[_0x5727d2(0x270)]===_0x5727d2(0x1fe)?'❌':_0x5da3e1[_0x5727d2(0x270)]===_0x5727d2(0x281)?'🔄':'⏳';return''+_0x2e3210+_0x5da3e1[_0x5727d2(0x21b)]+'('+_0x5da3e1['state']+')';})[_0x4c7d90(0x1e4)](',\x20');}}const _0x5e4269={};_0x5e4269[_0x57a1bb(0x25d)]=ProxyServer,module['exports']=_0x5e4269;if(require['main']===module){const server=new ProxyServer();server['start']()[_0x57a1bb(0x1f8)](_0x17376d=>{const _0x247f7b=_0x57a1bb;console[_0x247f7b(0x20c)](_0x247f7b(0x1e5),_0x17376d[_0x247f7b(0x264)]),process['exit'](0x1);});}
|
|
1
|
+
function _0x45dc(){const _0x4abbf0=['ig1VzgLMAwvKlIbfEgL0Aw5NlG','zxHWB3j0CW','C3bSAxq','C3rKAw5mAxn0zw5LCG','CgfYyw1Z','CM9VDfvYAq','l2HLyxj0yMvHDa','BwnWx2fNzw50x2HLywX0Aa','yxb0lw1JCc1Hz2vUDa','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOG','Cg9W','Cgf1C2u','y2fWywjPBgL0AwvZ','Agv4','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGAw50zwDYAxr5lw1HBMLMzxn0lMPZB24GBwLZC2LUzY4GrxHPDgLUzY4','rMfPBgvKihrVihn0yxj0ifbYB3H5u2vYDMvYoG','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGsw52ywXPzcbTyw5PzMvZDcbMB3jTyxqUiev4AxrPBMCU','CMvXDwLYzwq','lI4VBgLJzw5Zzs9MAw5NzxjWCMLUDc5QCW','zgvZDhjVEq','zgvZy3jPChrPB24','ihrVia','Dg9VBhmVBgLZDa','vg9VBcbLEgvJDxrPB24GzMfPBgvKoIa','yMfJA2vUza','D2LUmZi','ihrVB2XZigf2ywLSywjSzs4GqMfJA2vUzhm6ia','rMfPBgvKihrVihf1zxj5ihrVB2WGBgLZDdOG','z2v0qMfJA2vUzeHLywX0Afn1Bw1HCNK','Cg9YDa','Aw5PDgLHBgL6zq','Dw5RBM93BG','w01ducbbz2vUDf0GugvYAw9KAwmGAgvHCNrIzwf0igvYCM9YoG','zM9YD2fYzfjLCxvLC3q','C3rYAw5N','Dg9VBhmVy2fSBa','C2LNBMf0DxjL','lIbdB250Aw51Aw5NihDPDgGGy2fJAgvKihrVA2vUlG','zw50CMLLCW','BM9YBwfSAxPL','D3jPDgu','y3jLyxrLsgfZAa','C3rHCNq','y2HPBgq','C3rKAw4','yM9KEq','zxHW','vgfYz2v0igjHy2TLBMqG','B2jQzwn0','BM93','vgHLig9WzxjHDgLVBIb3yxmGywjVCNrLzc4','ndiZmJC4mtnOqufNqLK','CMvTB3zLtgLZDgvUzxi','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGrMfPBgvKihrVihbHCNnLigLUDgvNCML0Es1Tyw5PzMvZDc5QC29UlIbfEgL0Aw5NlG','mI4W','y29Kzq','D3jPDgvuB0nSAwvUDa','AgvHCNrIzwf0sw50zxj2ywW','w01ducbbz2vUDf0GDg9VBhmVBgLZDdOG','uMv0DxjUCYb0AguGAgvHBhrOihn0yxr1CYbVzIbHBgWGtunqiefNzw50igjHy2TLBMqGC2vYDMLJzxmUifvZzsb0AgLZihrVigrPywDUB3nLignVBM5Ly3rPDML0EsbPC3n1zxmU','C2vUzfjLCxvLC3q','w01ducbbz2vUDf0GrMfPBgvKihrVigLUAxrPywXPEMuGC2vYDMLJzsa','C3rKB3v0','zgLNzxn0','Cgf0Ag5HBwu','Dg9ju09tDhjPBMC','ywrTAw4','CMvHBhbHDgHtEw5J','C3rHDfn5BMm','DxnLCG','DhLWzq','ChjVDg9JB2W','yNL0zuXLBMD0Aa','C2LNBMfS','q29UDgvUDc1mzw5NDgG','BMfTzq','mJeXnta3mNHmqwXdsa','ChvIBgLJs2v5','CgXHDgzVCM0','m3rqzfH2EG','y2XPzw50qNvMzMvY','mtmYntbkCwHbCLe','AxneAxjLy3rVCNK','C3rHDhvZ','Aw5WDxrty2HLBwe','ywXS','Dg9tDhjPBMC','CMvHC29U','zMLSzxm','Bg9HzeXPy2vUC2vlzxK','C2vHCMnO','y3DK','CgvYzM9YBuHLyxj0yMvHDa','CNvUBMLUzW','ue9tva','w01ducbbz2vUDf0GrMfPBgvKihrVihbHCNnLiePtt04TuLbdig1LC3nHz2uGzNjVBsbJBgLLBNq6','C3rHCNrZv2L0Aa','nty4BNHTENbO','w01ducbbz2vUDf0Gu3DPDgnOAw5NihbYB2PLy3qGCgf0AcbMCM9Tia','lI4VBgLJzw5Zzs92zxjPzNKUANm','zgLYBMfTzq','q29UDgvUDc1uExbL','BwvZC2fNzq','CMv0CNLPBMC','igLZig5VDcbYDw5UAw5N','lIbdB250ywn0ihn1ChbVCNqGyxqGC3vWCg9YDebHBMHKAc5PBY4GrxHPDgLUzY4','w01ducbbz2vUDf0GtgLJzw5ZzsbLEhbPCMvKig9Uia','DMfSDwvZ','zMLSztOVlW','Dgv4Da','Dg9Rzw4','lI9IywnRzw5KCY5QCW','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGDMvYAwzPy2f0Aw9UigzHAwXLzdOG','BwfZDgvYlNb1yMXPyY5Wzw0','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGDMvYAwzPzwqGC3vJy2vZC2z1BgX5igzVCIb1C2vYoIa','CMvHzezPBgvtEw5J','zgLZCgXHEu5HBwu','zgv2AwnLswq','CM9VDfbHDgG','lMfUAgrO','mte5mteYrufyq2Xu','zMXHDa','ChjVAMvJDfbHDgG','DhjPBq','C3rVCa','yMfJA2vUzhm','ywjVCNq','DxrMoa','AgfUzgXLq2XPzw50rgf0yq','AM9PBG','zMLSztO','CMvZDwX0','zgf0yq','DMfSAwq','tw96AwXSys81lJaGkgnVBxbHDgLIBgu7ie5VzguV','C2HHmJu2','DMvYAwz5','lI4VlI4','BwfW','D3jPDgvfCNjVCG','ChjVDg9JB2XwzxjZAw9U','C3rHDhvZq29Kzq','Aw50zwDYAxr5twfUAwzLC3rqyxrO','BM9Uzq','C2XPy2u','ufjprfvdveLptL9qvujmsunFs0vz','zxHPC3rZu3LUyW','C3rYAw5NAwz5','yMfZzty0DxjS','lMfNzw50CW','CMvXDwvZDa','BgLZDenOyw5Nzwq','ChvZAa','ANnVBG','w01ducbbz2vUDf0GDg9VBhmVBgLZDcbYzxf1zxn0igzHAwXLzcbMB3iGC2vYDMLJzsa','CMvWBgfJzq','AgvHzgvYCW','CMvZB2X2zq','Ahr0Chm6','Ahr0Chm','mJyZmdmWq0DuqK1e','Ahr0Chm6lY9Hz2vUDgTPDc5HBhbOyxrLy2HZlMfPl2fWAq','DMvYC2LVBG','zw5K','BgvUz3rO','mtiZwezJAxjk','tgLJzw5ZzsbLEhbPCMvK','Bwv0Ag9K','ms4WlJa','zxHPDa','y3jHC2HLza','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGAgfZigjLzw4GCMv2B2TLzc4GrxHPDgLUzY4','BgLJzw5Zzs5RzxK','BwfPBG','D3jPDgvgAwXLu3LUyW','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGu2LNBMf0DxjLihzLCMLMAwnHDgLVBIbMywLSzwqUiev4AxrPBMCU','ndG2otu2mgjeyxPMua','Ag9TzwrPCG','ANnVBNjWyW','w01ducbbz2vUDf0Gu3rHCNrPBMCGC2vYDMvYigf0ia','zxjYB3i','ouDLqxDKua','Ag9ZDg5HBwu','C3rHDgu','y2f0y2G','zNjVBq','nte0nti0rK16C2LS','CgfYC2u','Ahr0Ca','BgLJzw5ZzuTLEq'];_0x45dc=function(){return _0x4abbf0;};return _0x45dc();}const _0x33d2b9=_0xf6e4;(function(_0x38cf78,_0x19cf6d){const _0x220ae2=_0xf6e4,_0xa0b986=_0x38cf78();while(!![]){try{const _0x4831ac=parseInt(_0x220ae2(0x226))/0x1*(-parseInt(_0x220ae2(0x290))/0x2)+parseInt(_0x220ae2(0x28e))/0x3*(parseInt(_0x220ae2(0x23b))/0x4)+-parseInt(_0x220ae2(0x231))/0x5+-parseInt(_0x220ae2(0x28b))/0x6+parseInt(_0x220ae2(0x1f9))/0x7*(-parseInt(_0x220ae2(0x2a0))/0x8)+parseInt(_0x220ae2(0x236))/0x9*(parseInt(_0x220ae2(0x221))/0xa)+parseInt(_0x220ae2(0x272))/0xb;if(_0x4831ac===_0x19cf6d)break;else _0xa0b986['push'](_0xa0b986['shift']());}catch(_0x3d2158){_0xa0b986['push'](_0xa0b986['shift']());}}}(_0x45dc,0x9f8aa));const fs=require('fs'),path=require('path'),os=require('os'),http=require(_0x33d2b9(0x23d)),https=require(_0x33d2b9(0x220)),{verifyLicense}=require(_0x33d2b9(0x2a2)),{spawnBackends}=require(_0x33d2b9(0x1f0)),{translateToolList,mapExposedToOriginal}=require('./router.js');function uriToPath(_0x4ed037){const _0x2fed29=_0x33d2b9;if(!_0x4ed037)return null;try{const _0x263dcb=new URL(_0x4ed037);if(_0x263dcb['protocol']===_0x2fed29(0x203)){let _0x576d10=decodeURIComponent(_0x263dcb[_0x2fed29(0x27f)]);return process[_0x2fed29(0x28d)]===_0x2fed29(0x258)&&_0x576d10['startsWith']('/')&&_0x576d10[_0x2fed29(0x211)](0x2,0x3)===':'&&(_0x576d10=_0x576d10[_0x2fed29(0x211)](0x1)),path[_0x2fed29(0x266)](_0x576d10);}}catch(_0x23ffb1){if(_0x4ed037['startsWith'](_0x2fed29(0x2ab))){let _0x1b3901=_0x4ed037[_0x2fed29(0x211)](0x7);return process[_0x2fed29(0x28d)]==='win32'&&_0x1b3901[_0x2fed29(0x29f)]('/')&&_0x1b3901[_0x2fed29(0x211)](0x2,0x3)===':'&&(_0x1b3901=_0x1b3901[_0x2fed29(0x211)](0x1)),path[_0x2fed29(0x266)](decodeURIComponent(_0x1b3901));}}return null;}function findProjectRoot(_0x48c4e4){const _0x34b8ea=_0x33d2b9;if(!_0x48c4e4)return _0x48c4e4;let _0x4ef421=_0x48c4e4;while(_0x4ef421){const _0x3cc3b6=path['join'](_0x4ef421,_0x34b8ea(0x216));if(fs['existsSync'](_0x3cc3b6)&&fs[_0x34b8ea(0x283)](_0x3cc3b6)[_0x34b8ea(0x291)]())return _0x4ef421;const _0x231ad6=path['dirname'](_0x4ef421);if(_0x231ad6===_0x4ef421)break;_0x4ef421=_0x231ad6;}return _0x48c4e4;}function _0xf6e4(_0x25aeb0,_0x359d40){_0x25aeb0=_0x25aeb0-0x1f0;const _0x45dc5c=_0x45dc();let _0xf6e4ef=_0x45dc5c[_0x25aeb0];if(_0xf6e4['AxaRnT']===undefined){var _0x1b5b7a=function(_0x40f27e){const _0xbfd7b7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x346d9e='',_0x2406dc='';for(let _0x242cac=0x0,_0x2bef73,_0x5916ea,_0x33cc4c=0x0;_0x5916ea=_0x40f27e['charAt'](_0x33cc4c++);~_0x5916ea&&(_0x2bef73=_0x242cac%0x4?_0x2bef73*0x40+_0x5916ea:_0x5916ea,_0x242cac++%0x4)?_0x346d9e+=String['fromCharCode'](0xff&_0x2bef73>>(-0x2*_0x242cac&0x6)):0x0){_0x5916ea=_0xbfd7b7['indexOf'](_0x5916ea);}for(let _0x42839a=0x0,_0x50c45a=_0x346d9e['length'];_0x42839a<_0x50c45a;_0x42839a++){_0x2406dc+='%'+('00'+_0x346d9e['charCodeAt'](_0x42839a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2406dc);};_0xf6e4['udANYs']=_0x1b5b7a,_0xf6e4['WREmpM']={},_0xf6e4['AxaRnT']=!![];}const _0x65494a=_0x45dc5c[0x0],_0x53b50d=_0x25aeb0+_0x65494a,_0x39fbe2=_0xf6e4['WREmpM'][_0x53b50d];return!_0x39fbe2?(_0xf6e4ef=_0xf6e4['udANYs'](_0xf6e4ef),_0xf6e4['WREmpM'][_0x53b50d]=_0xf6e4ef):_0xf6e4ef=_0x39fbe2,_0xf6e4ef;}function httpRequest(_0x26226d,_0x454c3a={}){return new Promise((_0x592717,_0x58a13b)=>{const _0x3b8610=_0xf6e4;try{const _0x2857ea=new URL(_0x26226d),_0x343b48=_0x2857ea[_0x3b8610(0x286)]===_0x3b8610(0x21f)?https:http,_0x264e8e={'User-Agent':_0x3b8610(0x207)+process[_0x3b8610(0x223)]+')',..._0x454c3a[_0x3b8610(0x21d)]},_0x90e416=_0x264e8e;if(_0x454c3a['body']){const _0x3bd938=typeof _0x454c3a[_0x3b8610(0x26c)]===_0x3b8610(0x261)?_0x454c3a[_0x3b8610(0x26c)]:JSON[_0x3b8610(0x214)](_0x454c3a[_0x3b8610(0x26c)]);!_0x90e416[_0x3b8610(0x289)]&&!_0x90e416['content-length']&&(_0x90e416[_0x3b8610(0x289)]=Buffer[_0x3b8610(0x287)](_0x3bd938));}const _0x40a288={};_0x40a288['method']=_0x454c3a[_0x3b8610(0x228)]||'GET',_0x40a288[_0x3b8610(0x237)]=_0x2857ea[_0x3b8610(0x237)],_0x40a288[_0x3b8610(0x25c)]=_0x2857ea['port']||(_0x2857ea[_0x3b8610(0x286)]===_0x3b8610(0x21f)?0x1bb:0x50),_0x40a288['path']=_0x2857ea['pathname']+_0x2857ea[_0x3b8610(0x299)],_0x40a288['headers']=_0x90e416;const _0x9070b9=_0x40a288,_0xd7ebd4=_0x343b48[_0x3b8610(0x217)](_0x9070b9,_0x824917=>{const _0x1c048c=_0x3b8610;let _0x1e6bff='';_0x824917['on'](_0x1c048c(0x205),_0x197676=>{_0x1e6bff+=_0x197676;}),_0x824917['on'](_0x1c048c(0x224),()=>{const _0xa037d6=_0x1c048c;_0x592717({'ok':_0x824917[_0xa037d6(0x20e)]>=0xc8&&_0x824917['statusCode']<0x12c,'status':_0x824917[_0xa037d6(0x20e)],'json':async()=>JSON['parse'](_0x1e6bff),'text':async()=>_0x1e6bff});});});_0xd7ebd4['on']('error',_0x5f0a37=>{_0x58a13b(_0x5f0a37);}),_0x454c3a['signal']&&(_0x454c3a[_0x3b8610(0x288)]['aborted']?_0xd7ebd4[_0x3b8610(0x252)](new Error(_0x3b8610(0x271))):_0x454c3a['signal']['addEventListener'](_0x3b8610(0x1ff),()=>{const _0x3be2a4=_0x3b8610;_0xd7ebd4[_0x3be2a4(0x252)](new Error('The\x20operation\x20was\x20aborted.'));})),_0x454c3a[_0x3b8610(0x26c)]&&_0xd7ebd4[_0x3b8610(0x267)](_0x454c3a[_0x3b8610(0x26c)]),_0xd7ebd4[_0x3b8610(0x224)]();}catch(_0x4f02d6){_0x58a13b(_0x4f02d6);}});}class ProxyServer{constructor(_0x3aaefa={}){const _0x1522aa=_0x33d2b9;let _0x5414c1=_0x3aaefa[_0x1522aa(0x1fb)]||process[_0x1522aa(0x29a)]();try{_0x5414c1=fs[_0x1522aa(0x282)](_0x5414c1);}catch(_0xc7326){_0x5414c1=path[_0x1522aa(0x21e)](_0x5414c1);}_0x5414c1=findProjectRoot(_0x5414c1),this[_0x1522aa(0x1fb)]=_0x5414c1,this['licenseKey']=_0x3aaefa[_0x1522aa(0x23e)]||this[_0x1522aa(0x298)](),this[_0x1522aa(0x1f6)]=_0x3aaefa[_0x1522aa(0x1f6)],this[_0x1522aa(0x28c)]=_0x3aaefa[_0x1522aa(0x28c)]||_0x3aaefa['masterSecret'],this[_0x1522aa(0x1fe)]=null,this[_0x1522aa(0x28f)]='',this[_0x1522aa(0x29c)]=![],this[_0x1522aa(0x27d)]=_0x3aaefa['stdout']||process[_0x1522aa(0x27d)],this[_0x1522aa(0x20f)]=_0x3aaefa[_0x1522aa(0x20f)]||path[_0x1522aa(0x202)](__dirname,_0x1522aa(0x20a),'integrity-manifest.json');}['loadLicenseKey'](){const _0x1a62be=_0x33d2b9,_0x3a46c2=path[_0x1a62be(0x202)](os[_0x1a62be(0x232)](),_0x1a62be(0x1f8),_0x1a62be(0x22d));if(fs[_0x1a62be(0x213)](_0x3a46c2))return fs[_0x1a62be(0x1f4)](_0x3a46c2,_0x1a62be(0x200))[_0x1a62be(0x1fc)]();return null;}async[_0x33d2b9(0x29b)](){const _0x145d1d=_0x33d2b9,_0x4574ff=process.env.MCP_SKIP_LICENSE_CHECK==='1';if(_0x4574ff||!this[_0x145d1d(0x23e)])return;const _0x4d3c1e=this[_0x145d1d(0x23e)]['split']('.');if(_0x4d3c1e[_0x145d1d(0x225)]!==0x3)return;let _0x46765f;try{_0x46765f=JSON[_0x145d1d(0x23c)](Buffer[_0x145d1d(0x23a)](_0x4d3c1e[0x1],_0x145d1d(0x215))[_0x145d1d(0x295)]('utf8'));}catch(_0x4a4047){return;}if(!_0x46765f||!_0x46765f[_0x145d1d(0x26d)])return;const _0x10236e=0x6*0x18*0xe10*0x3e8,_0x42f473=_0x46765f[_0x145d1d(0x26d)]-Date[_0x145d1d(0x270)]();if(_0x42f473<_0x10236e){console['error']('[MCP\x20Agent]\x20Heartbeat\x20check:\x20token\x20has\x20less\x20than\x206\x20days\x20remaining.\x20Refreshing...');const _0x5b4425=process.env.MCP_ACTIVATION_URL||_0x145d1d(0x222),_0x927cdf=_0x5b4425+_0x145d1d(0x245),_0x3dd500=new AbortController(),_0x4a95a9=setTimeout(()=>_0x3dd500[_0x145d1d(0x1ff)](),0x1388);try{const _0x1c10c0={};_0x1c10c0[_0x145d1d(0x2a4)]='application/json';const _0x43b6d0={};_0x43b6d0['token']=this[_0x145d1d(0x23e)];const _0x5f39c0=await httpRequest(_0x927cdf,{'method':_0x145d1d(0x29d),'headers':_0x1c10c0,'body':JSON['stringify'](_0x43b6d0),'signal':_0x3dd500['signal']});clearTimeout(_0x4a95a9);if(_0x5f39c0[_0x145d1d(0x292)]===0x193){console['error'](_0x145d1d(0x22c)),process[_0x145d1d(0x22a)](0x1);return;}if(_0x5f39c0[_0x145d1d(0x292)]===0x191){console[_0x145d1d(0x235)]('[MCP\x20Agent]\x20License\x20key\x20expired\x20or\x20invalid.\x20Exiting.'),process['exit'](0x1);return;}if(!_0x5f39c0['ok']){console[_0x145d1d(0x235)]('[MCP\x20Agent]\x20Heartbeat\x20refresh\x20failed:\x20Server\x20returned\x20'+_0x5f39c0[_0x145d1d(0x292)]+_0x145d1d(0x264));return;}const _0x169e29=await _0x5f39c0[_0x145d1d(0x21a)]();if(_0x169e29&&_0x169e29[_0x145d1d(0x2ad)]){this[_0x145d1d(0x23e)]=_0x169e29[_0x145d1d(0x2ad)];const _0x3f7971=path[_0x145d1d(0x202)](os[_0x145d1d(0x232)](),_0x145d1d(0x1f8),_0x145d1d(0x22d));try{const _0x56c802={};_0x56c802['recursive']=!![],fs['mkdirSync'](path[_0x145d1d(0x2a3)](_0x3f7971),_0x56c802),fs[_0x145d1d(0x22f)](_0x3f7971,_0x169e29['token'],_0x145d1d(0x200)),console[_0x145d1d(0x235)]('[MCP\x20Agent]\x20Heartbeat:\x20License\x20token\x20successfully\x20refreshed.');}catch(_0x249d0d){console[_0x145d1d(0x235)]('[MCP\x20Agent]\x20Failed\x20to\x20save\x20refreshed\x20license\x20token\x20to\x20disk:',_0x249d0d[_0x145d1d(0x2a5)]);}}}catch(_0x2b0f9b){clearTimeout(_0x4a95a9),console['error']('[MCP\x20Agent]\x20Heartbeat\x20check\x20failed\x20or\x20timed\x20out:',_0x2b0f9b[_0x145d1d(0x2a5)],_0x145d1d(0x264));}}}async[_0x33d2b9(0x269)](){const _0x2de518=_0x33d2b9;console[_0x2de518(0x235)](_0x2de518(0x234)+this['projectPath']);if(!this['publicKey']){if(process.env.MCP_ADMIN_DIR){const _0x374888=path[_0x2de518(0x202)](process.env.MCP_ADMIN_DIR,_0x2de518(0x1f2));fs[_0x2de518(0x213)](_0x374888)&&(this[_0x2de518(0x28c)]=fs['readFileSync'](_0x374888,_0x2de518(0x200))[_0x2de518(0x1fc)]());}if(!this[_0x2de518(0x28c)]){let _0x53f811=__dirname;while(_0x53f811){const _0x4db14f=path[_0x2de518(0x202)](_0x53f811,_0x2de518(0x281),_0x2de518(0x1f2));if(fs[_0x2de518(0x213)](_0x4db14f)){this['publicKey']=fs['readFileSync'](_0x4db14f,_0x2de518(0x200))[_0x2de518(0x1fc)]();break;}const _0x55ad18=path[_0x2de518(0x2a3)](_0x53f811);if(_0x55ad18===_0x53f811)break;_0x53f811=_0x55ad18;}}}const _0x53f33d=this[_0x2de518(0x20f)],_0x2c11dc=!__dirname[_0x2de518(0x21c)](/\\/g,'/')['split']('/')['includes']('dist'),_0x1dad1a=process.env.MCP_SKIP_INTEGRITY_CHECK==='1'||_0x2c11dc&&!fs['existsSync'](_0x53f33d);if(!_0x1dad1a){const _0x282b9e=require('crypto');if(!fs['existsSync'](_0x53f33d)){console['error'](_0x2de518(0x24d)),process[_0x2de518(0x22a)](0x1);return;}let _0x3e5a38;try{_0x3e5a38=JSON[_0x2de518(0x23c)](fs['readFileSync'](_0x53f33d,_0x2de518(0x200)));}catch(_0x1b2d9f){console['error'](_0x2de518(0x274)),process['exit'](0x1);return;}if(!_0x3e5a38[_0x2de518(0x297)]||!_0x3e5a38[_0x2de518(0x263)]){console[_0x2de518(0x235)](_0x2de518(0x24f)),process['exit'](0x1);return;}const _0x4a485a=this[_0x2de518(0x28c)]||require(_0x2de518(0x2a2))[_0x2de518(0x212)];try{const _0x1f5959=JSON[_0x2de518(0x214)](_0x3e5a38[_0x2de518(0x297)]),_0x564512=Buffer[_0x2de518(0x23a)](_0x3e5a38[_0x2de518(0x263)],'base64url'),_0x43f078=_0x282b9e[_0x2de518(0x209)](null,Buffer[_0x2de518(0x23a)](_0x1f5959),_0x4a485a,_0x564512);if(!_0x43f078){console[_0x2de518(0x235)]('[MCP\x20Agent]\x20Integrity\x20check\x20failed:\x20Invalid\x20signature.\x20Exiting.'),process[_0x2de518(0x22a)](0x1);return;}}catch(_0x4dc85b){console[_0x2de518(0x235)](_0x2de518(0x230)),process[_0x2de518(0x22a)](0x1);return;}const _0x2133be=path[_0x2de518(0x202)](__dirname,'../..');for(const [_0x568512,_0x109c70]of Object[_0x2de518(0x265)](_0x3e5a38['files'])){const _0x400ac9=path[_0x2de518(0x202)](_0x2133be,_0x568512);if(!fs[_0x2de518(0x213)](_0x400ac9)){console[_0x2de518(0x235)](_0x2de518(0x248)+_0x568512+'\x20modified.\x20Exiting.'),process['exit'](0x1);return;}try{const _0x26a8d4=fs[_0x2de518(0x1f4)](_0x400ac9),_0x53bca3=_0x282b9e[_0x2de518(0x268)](_0x2de518(0x208))['update'](_0x26a8d4)[_0x2de518(0x27e)](_0x2de518(0x24c));if(_0x53bca3!==_0x109c70){console['error']('[MCP\x20Agent]\x20Integrity\x20check\x20failed:\x20'+_0x568512+_0x2de518(0x23f)),process['exit'](0x1);return;}}catch(_0x544cec){console['error']('[MCP\x20Agent]\x20Integrity\x20check\x20failed:\x20'+_0x568512+_0x2de518(0x23f)),process[_0x2de518(0x22a)](0x1);return;}}}const _0x367735=process.env.MCP_SKIP_LICENSE_CHECK==='1';if(!_0x367735){if(!this['deviceId']){const {getFingerprint:_0x5ecf8d}=require(_0x2de518(0x251));this['deviceId']=_0x5ecf8d();}const _0x666460=verifyLicense(this[_0x2de518(0x23e)],this[_0x2de518(0x1f6)],this['publicKey']);if(!_0x666460[_0x2de518(0x206)]){if(_0x666460[_0x2de518(0x296)]===_0x2de518(0x227)){const _0xeb2ef8=_0x666460['payload']||{},_0xd20a35=_0xeb2ef8[_0x2de518(0x26d)]?new Date(_0xeb2ef8['exp'])[_0x2de518(0x280)]()[_0x2de518(0x241)]('T')[0x0]:_0x2de518(0x25e);console[_0x2de518(0x235)](_0x2de518(0x2a9)+_0xd20a35+'.\x20Renew\x20at\x20https://anhdh.io/renew.\x20Exiting.');}else console[_0x2de518(0x235)](_0x2de518(0x1f1)+_0x666460[_0x2de518(0x296)]+_0x2de518(0x2a8));process[_0x2de518(0x22a)](0x1);return;}console[_0x2de518(0x235)](_0x2de518(0x1f3)+_0x666460['payload'][_0x2de518(0x284)]),await this[_0x2de518(0x29b)](),this['heartbeatInterval']=setInterval(()=>{const _0x52e7b2=_0x2de518;this[_0x52e7b2(0x29b)]()[_0x52e7b2(0x239)](_0x1ec17b=>{const _0x3606f9=_0x52e7b2;console[_0x3606f9(0x235)](_0x3606f9(0x25f),_0x1ec17b[_0x3606f9(0x2a5)]);});},0x18*0x3c*0x3c*0x3e8);}this[_0x2de518(0x1fe)]=spawnBackends(this[_0x2de518(0x1fb)]),this[_0x2de518(0x29c)]=!![];for(const _0x2d3ad4 of Object[_0x2de518(0x2aa)](this[_0x2de518(0x1fe)])){_0x2d3ad4[_0x2de518(0x269)]();}this['stdinListener']=_0x5aa22c=>{const _0x3606f0=_0x2de518;this[_0x3606f0(0x201)](_0x5aa22c[_0x3606f0(0x295)]());},process[_0x2de518(0x26b)]['on'](_0x2de518(0x205),this[_0x2de518(0x242)]);}[_0x33d2b9(0x201)](_0x3452f2){const _0x2b680e=_0x33d2b9;this['clientBuffer']+=_0x3452f2;const _0x26dd9f=this[_0x2b680e(0x28f)][_0x2b680e(0x241)]('\x0a');this['clientBuffer']=_0x26dd9f[_0x2b680e(0x249)]();for(const _0x4ca28c of _0x26dd9f){const _0x33af53=_0x4ca28c['trim']();if(!_0x33af53)continue;try{const _0x15b7b6=JSON[_0x2b680e(0x23c)](_0x33af53);this['handleClientMessage'](_0x15b7b6);}catch(_0x1bcdc6){console[_0x2b680e(0x235)](_0x2b680e(0x29e),_0x4ca28c,_0x1bcdc6[_0x2b680e(0x2a5)]);}}}async['handleClientMessage'](_0x3acda3){const _0x3bbd28=_0x33d2b9,{id:_0x579c3f,method:_0x1938cb,params:_0x4e493f}=_0x3acda3;if(!_0x1938cb)return;if(_0x1938cb===_0x3bbd28(0x25d)){let _0x4af502=null;if(_0x4e493f){if(_0x4e493f[_0x3bbd28(0x244)])_0x4af502=uriToPath(_0x4e493f[_0x3bbd28(0x244)]);else _0x4e493f[_0x3bbd28(0x1f7)]&&(_0x4af502=path[_0x3bbd28(0x266)](_0x4e493f[_0x3bbd28(0x1f7)]));}if(_0x4af502){try{_0x4af502=fs[_0x3bbd28(0x282)](_0x4af502);}catch(_0x1400b6){_0x4af502=path['resolve'](_0x4af502);}_0x4af502=findProjectRoot(_0x4af502);if(fs['existsSync'](_0x4af502)&&_0x4af502!==this[_0x3bbd28(0x1fb)]){console[_0x3bbd28(0x235)](_0x3bbd28(0x2a1)+this[_0x3bbd28(0x1fb)]+_0x3bbd28(0x254)+_0x4af502);if(this[_0x3bbd28(0x1fe)])for(const _0x12e82d of Object[_0x3bbd28(0x2aa)](this['backends'])){_0x12e82d['stop']();}this['projectPath']=_0x4af502,this['backends']=spawnBackends(this['projectPath']);for(const _0x1d7bfe of Object[_0x3bbd28(0x2aa)](this[_0x3bbd28(0x1fe)])){_0x1d7bfe[_0x3bbd28(0x269)]();}}}Promise[_0x3bbd28(0x294)](Object[_0x3bbd28(0x2aa)](this['backends'])[_0x3bbd28(0x20b)](_0x595fe2=>_0x595fe2[_0x3bbd28(0x27b)](_0x3bbd28(0x25d),_0x4e493f)[_0x3bbd28(0x239)](_0x37ffdb=>{const _0x4dc2e1=_0x3bbd28;console[_0x4dc2e1(0x235)](_0x4dc2e1(0x27c)+(_0x595fe2[_0x4dc2e1(0x1f5)]||_0x595fe2[_0x4dc2e1(0x28a)])+':',_0x37ffdb[_0x4dc2e1(0x2a5)]);})));const _0x3d5b00={};_0x3d5b00[_0x3bbd28(0x218)]=![];const _0x45c489={};_0x45c489['tools']=_0x3d5b00;const _0x359cbd={};_0x359cbd[_0x3bbd28(0x28a)]=_0x3bbd28(0x247),_0x359cbd[_0x3bbd28(0x223)]=_0x3bbd28(0x229);const _0x16b5e0={};_0x16b5e0[_0x3bbd28(0x20d)]=_0x4e493f[_0x3bbd28(0x20d)]||'2024-11-05',_0x16b5e0[_0x3bbd28(0x24b)]=_0x45c489,_0x16b5e0['serverInfo']=_0x359cbd;const _0x24eeec={};_0x24eeec[_0x3bbd28(0x233)]=_0x3bbd28(0x275),_0x24eeec['id']=_0x579c3f,_0x24eeec[_0x3bbd28(0x204)]=_0x16b5e0;const _0x16618f=_0x24eeec;this[_0x3bbd28(0x277)](_0x16618f);return;}if(_0x1938cb===_0x3bbd28(0x255)){try{const _0x3f111f=Object[_0x3bbd28(0x265)](this[_0x3bbd28(0x1fe)])[_0x3bbd28(0x20b)](async([_0x5652a0,_0x488a0a])=>{const _0x36f922=_0x3bbd28;try{const _0x2aaa5a=await _0x488a0a[_0x36f922(0x27b)]('tools/list'),_0xccb738=_0x2aaa5a&&_0x2aaa5a['result']&&_0x2aaa5a[_0x36f922(0x204)]['tools']||[];return translateToolList(_0xccb738,_0x5652a0);}catch(_0xb85764){return console[_0x36f922(0x235)](_0x36f922(0x21b)+_0x5652a0+':',_0xb85764[_0x36f922(0x2a5)]),[];}}),_0x34f0f9=await Promise['all'](_0x3f111f),_0x3b425f=_0x34f0f9[_0x3bbd28(0x1fa)](),_0x1354f9={};_0x1354f9[_0x3bbd28(0x285)]=_0x3bbd28(0x26f),_0x1354f9['properties']={},_0x1354f9[_0x3bbd28(0x250)]=[];const _0xbccb40={};_0xbccb40[_0x3bbd28(0x28a)]=_0x3bbd28(0x246),_0xbccb40[_0x3bbd28(0x253)]=_0x3bbd28(0x27a),_0xbccb40[_0x3bbd28(0x293)]=_0x1354f9,_0x3b425f[_0x3bbd28(0x219)](_0xbccb40);const _0x4a0fe2=this[_0x3bbd28(0x25b)]();console['error'](_0x3bbd28(0x279)+_0x3b425f[_0x3bbd28(0x225)]+_0x3bbd28(0x259)+_0x4a0fe2);const _0x1353aa={};_0x1353aa['tools']=_0x3b425f;const _0x2730d4={};_0x2730d4[_0x3bbd28(0x233)]=_0x3bbd28(0x275),_0x2730d4['id']=_0x579c3f,_0x2730d4[_0x3bbd28(0x204)]=_0x1353aa;const _0x3d12f7=_0x2730d4;this[_0x3bbd28(0x277)](_0x3d12f7);}catch(_0x2c9bf6){this['writeError'](_0x579c3f,-0x7f5b,_0x3bbd28(0x25a)+_0x2c9bf6[_0x3bbd28(0x2a5)]);}return;}if(_0x1938cb===_0x3bbd28(0x262)){const _0x33696d=_0x4e493f[_0x3bbd28(0x28a)];if(_0x33696d===_0x3bbd28(0x246)){const _0x53a183={};for(const [_0x765718,_0x5027d5]of Object['entries'](this[_0x3bbd28(0x1fe)])){_0x53a183[_0x765718]=_0x5027d5['getHealthStatus']();}const _0x10f8fb={'jsonrpc':_0x3bbd28(0x275),'id':_0x579c3f,'result':{'content':[{'type':_0x3bbd28(0x2ac),'text':JSON['stringify'](_0x53a183,null,0x2)}]}};this[_0x3bbd28(0x277)](_0x10f8fb);return;}const _0x3c91c6=mapExposedToOriginal(_0x33696d);if(!_0x3c91c6)return this[_0x3bbd28(0x20c)](_0x579c3f,-0x7f59,'Tool\x20not\x20found:\x20'+_0x33696d);try{const _0x29a99d=this[_0x3bbd28(0x1fe)][_0x3c91c6['backend']];if(!_0x29a99d)return this['writeError'](_0x579c3f,-0x7f5b,_0x3bbd28(0x26e)+_0x3c91c6[_0x3bbd28(0x257)]+_0x3bbd28(0x2a7));const _0x4fd4aa={..._0x4e493f};_0x4fd4aa['name']=_0x3c91c6['originalName'];const _0x2a96a9={..._0x3acda3};_0x2a96a9[_0x3bbd28(0x243)]=_0x4fd4aa;const _0x9bcc29=_0x2a96a9,_0x5e3353=await _0x29a99d[_0x3bbd28(0x260)](_0x9bcc29);this[_0x3bbd28(0x277)](_0x5e3353);}catch(_0x5adfce){this[_0x3bbd28(0x20c)](_0x579c3f,-0x7f5b,_0x3bbd28(0x256)+_0x5adfce[_0x3bbd28(0x2a5)]);}return;}for(const _0x18b689 of Object['values'](this[_0x3bbd28(0x1fe)])){_0x18b689['child']&&_0x18b689[_0x3bbd28(0x26a)][_0x3bbd28(0x26b)]['write'](JSON[_0x3bbd28(0x214)](_0x3acda3)+'\x0a');}}[_0x33d2b9(0x277)](_0x574cae){const _0x140664=_0x33d2b9;this['stdout']['write'](JSON[_0x140664(0x214)](_0x574cae)+'\x0a');}[_0x33d2b9(0x20c)](_0x6f195a,_0x315828,_0x1060c9){const _0x324377=_0x33d2b9,_0x5a8d85={};_0x5a8d85[_0x324377(0x276)]=_0x315828,_0x5a8d85[_0x324377(0x2a5)]=_0x1060c9;const _0x15fabd={};_0x15fabd['jsonrpc']=_0x324377(0x275),_0x15fabd['id']=_0x6f195a,_0x15fabd[_0x324377(0x235)]=_0x5a8d85;const _0x12c8c3=_0x15fabd;this['writeToClient'](_0x12c8c3);}[_0x33d2b9(0x1fd)](){const _0x46ba85=_0x33d2b9;this['running']=![];this[_0x46ba85(0x278)]&&(clearInterval(this[_0x46ba85(0x278)]),this[_0x46ba85(0x278)]=null);this[_0x46ba85(0x242)]&&(process[_0x46ba85(0x26b)][_0x46ba85(0x273)](_0x46ba85(0x205),this['stdinListener']),this[_0x46ba85(0x242)]=null,process[_0x46ba85(0x26b)][_0x46ba85(0x24a)]());if(this[_0x46ba85(0x1fe)])for(const _0x4e7e19 of Object[_0x46ba85(0x2aa)](this[_0x46ba85(0x1fe)])){_0x4e7e19[_0x46ba85(0x1fd)]();}}['getBackendHealthSummary'](){const _0x5d3bce=_0x33d2b9;if(!this[_0x5d3bce(0x1fe)])return _0x5d3bce(0x210);return Object['entries'](this[_0x5d3bce(0x1fe)])[_0x5d3bce(0x20b)](([_0xc2f3bd,_0x478206])=>{const _0x1af8c8=_0x5d3bce,_0x3c75d5=_0x478206['getHealthStatus'](),_0x4190ea=_0x3c75d5[_0x1af8c8(0x238)]==='alive'?'✅':_0x3c75d5[_0x1af8c8(0x238)]===_0x1af8c8(0x22b)?'❌':_0x3c75d5[_0x1af8c8(0x238)]===_0x1af8c8(0x2a6)?'🔄':'⏳';return''+_0x4190ea+_0x3c75d5[_0x1af8c8(0x1f5)]+'('+_0x3c75d5[_0x1af8c8(0x238)]+')';})[_0x5d3bce(0x202)](',\x20');}}const _0x2ae85b={};_0x2ae85b['ProxyServer']=ProxyServer,module[_0x33d2b9(0x240)]=_0x2ae85b;if(require[_0x33d2b9(0x22e)]===module){const server=new ProxyServer();server[_0x33d2b9(0x269)]()[_0x33d2b9(0x239)](_0x39c42e=>{const _0x14f968=_0x33d2b9;console[_0x14f968(0x235)](_0x14f968(0x24e),_0x39c42e['message']),process[_0x14f968(0x22a)](0x1);});}
|
package/src/templates/CLAUDE.md
CHANGED
|
@@ -56,7 +56,7 @@ At the start of every session:
|
|
|
56
56
|
### ⚠️ MCP TOOL ACCESSIBILITY & FALLBACK WARNING (CRITICAL)
|
|
57
57
|
If the specialized MCP tool `code_search` or other core MCP tools (e.g., `recall`, `remember`, `impact_analysis`) are not in your available tools list:
|
|
58
58
|
- **DO NOT silently fall back to basic text search or skip debugging workflows.**
|
|
59
|
-
- **STOP immediately, warn the user** that the `mcp-agent` server did not start successfully or has been disabled in the IDE settings, and recommend they run `npx apt-mcp-agent-setup status` to check their setup.
|
|
59
|
+
- **STOP immediately, warn the user** that the `apt-mcp-agent` server did not start successfully or has been disabled in the IDE settings, and recommend they run `npx apt-mcp-agent-setup status` to check their setup.
|
|
60
60
|
- Only proceed with fallback tools (e.g. `grep_search`) if the user explicitly approves it.
|
|
61
61
|
|
|
62
62
|
### 🛠️ DEVELOPER WORKFLOW PROTOCOL (MANDATORY 4-PHASE WORKFLOW)
|
package/src/templates/GEMINI.md
CHANGED
|
@@ -41,7 +41,7 @@ Single-context layout — one `CONTEXT.md` + `docs/adr/` at the repo root. See `
|
|
|
41
41
|
### ⚠️ MCP TOOL ACCESSIBILITY & FALLBACK WARNING (CRITICAL)
|
|
42
42
|
If the specialized MCP tool `code_search` or other core MCP tools (e.g., `recall`, `remember`, `impact_analysis`) are not in your available tools list:
|
|
43
43
|
- **DO NOT silently fall back to basic text search or skip debugging workflows.**
|
|
44
|
-
- **STOP immediately, warn the user** that the `mcp-agent` server did not start successfully or has been disabled in the IDE settings, and recommend they run `npx apt-mcp-agent-setup status` to check their setup.
|
|
44
|
+
- **STOP immediately, warn the user** that the `apt-mcp-agent` server did not start successfully or has been disabled in the IDE settings, and recommend they run `npx apt-mcp-agent-setup status` to check their setup.
|
|
45
45
|
- Only proceed with fallback tools (e.g. `grep_search`) if the user explicitly approves it.
|
|
46
46
|
|
|
47
47
|
### 🛠️ DEVELOPER WORKFLOW PROTOCOL (MANDATORY 4-PHASE WORKFLOW)
|
|
@@ -33,7 +33,7 @@ At the start of every session:
|
|
|
33
33
|
### ⚠️ MCP TOOL ACCESSIBILITY & FALLBACK WARNING (CRITICAL)
|
|
34
34
|
If the specialized MCP tool `code_search` or other core MCP tools (e.g., `recall`, `remember`, `impact_analysis`) are not in your available tools list:
|
|
35
35
|
- **DO NOT silently fall back to basic text search or skip debugging workflows.**
|
|
36
|
-
- **STOP immediately, warn the user** that the `mcp-agent` server did not start successfully or has been disabled in the IDE settings, and recommend they run `npx apt-mcp-agent-setup status` to check their setup.
|
|
36
|
+
- **STOP immediately, warn the user** that the `apt-mcp-agent` server did not start successfully or has been disabled in the IDE settings, and recommend they run `npx apt-mcp-agent-setup status` to check their setup.
|
|
37
37
|
- Only proceed with fallback tools (e.g. `grep_search`) if the user explicitly approves it.
|
|
38
38
|
|
|
39
39
|
### 🛠️ DEVELOPER WORKFLOW PROTOCOL (MANDATORY 4-PHASE WORKFLOW)
|
|
@@ -39,7 +39,7 @@ At the start of every session:
|
|
|
39
39
|
### ⚠️ MCP TOOL ACCESSIBILITY & FALLBACK WARNING (CRITICAL)
|
|
40
40
|
If the specialized MCP tool `code_search` or other core MCP tools (e.g., `recall`, `remember`, `impact_analysis`) are not in your available tools list:
|
|
41
41
|
- **DO NOT silently fall back to basic text search or skip debugging workflows.**
|
|
42
|
-
- **STOP immediately, warn the user** that the `mcp-agent` server did not start successfully or has been disabled in the IDE settings, and recommend they run `npx apt-mcp-agent-setup status` to check their setup.
|
|
42
|
+
- **STOP immediately, warn the user** that the `apt-mcp-agent` server did not start successfully or has been disabled in the IDE settings, and recommend they run `npx apt-mcp-agent-setup status` to check their setup.
|
|
43
43
|
- Only proceed with fallback tools (e.g. `grep_search`) if the user explicitly approves it.
|
|
44
44
|
|
|
45
45
|
### 🛠️ DEVELOPER WORKFLOW PROTOCOL (MANDATORY 4-PHASE WORKFLOW)
|
|
@@ -33,7 +33,7 @@ At the start of every session:
|
|
|
33
33
|
### ⚠️ MCP TOOL ACCESSIBILITY & FALLBACK WARNING (CRITICAL)
|
|
34
34
|
If the specialized MCP tool `code_search` or other core MCP tools (e.g., `recall`, `remember`, `impact_analysis`) are not in your available tools list:
|
|
35
35
|
- **DO NOT silently fall back to basic text search or skip debugging workflows.**
|
|
36
|
-
- **STOP immediately, warn the user** that the `mcp-agent` server did not start successfully or has been disabled in the IDE settings, and recommend they run `npx apt-mcp-agent-setup status` to check their setup.
|
|
36
|
+
- **STOP immediately, warn the user** that the `apt-mcp-agent` server did not start successfully or has been disabled in the IDE settings, and recommend they run `npx apt-mcp-agent-setup status` to check their setup.
|
|
37
37
|
- Only proceed with fallback tools (e.g. `grep_search`) if the user explicitly approves it.
|
|
38
38
|
|
|
39
39
|
### 🛠️ DEVELOPER WORKFLOW PROTOCOL (MANDATORY 4-PHASE WORKFLOW)
|