apt-mcp-agent-setup 1.2.48 → 1.3.0
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 +17 -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/pipeline.js +1 -0
- 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/AGENTS.md +14 -0
- package/src/templates/CLAUDE.md +33 -12
- package/src/templates/GEMINI.md +33 -12
- package/src/templates/copilot-instructions.md +33 -12
- package/src/templates/windsurfrules.md +33 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x3baa11=_0x3702;(function(_0x40e9da,_0x5d5e41){var _0x540317=_0x3702,_0x22d8e8=_0x40e9da();while(!![]){try{var _0x56ae43=parseInt(_0x540317(0xa1))/0x1*(parseInt(_0x540317(0xa2))/0x2)+-parseInt(_0x540317(0xcd))/0x3+parseInt(_0x540317(0x93))/0x4+-parseInt(_0x540317(0xa8))/0x5+-parseInt(_0x540317(0xc4))/0x6*(parseInt(_0x540317(0xa9))/0x7)+parseInt(_0x540317(0xcb))/0x8+-parseInt(_0x540317(0x99))/0x9*(-parseInt(_0x540317(0xc8))/0xa);if(_0x56ae43===_0x5d5e41)break;else _0x22d8e8['push'](_0x22d8e8['shift']());}catch(_0xdf131b){_0x22d8e8['push'](_0x22d8e8['shift']());}}}(_0xc2c3,0xefdb5));var _0x14b5e6={};_0x14b5e6[_0x3baa11(0x84)]=_0x3baa11(0xc2),_0x14b5e6[_0x3baa11(0xa5)]=_0x3baa11(0x85);var _0x4fb67e={};_0x4fb67e['originalName']=_0x3baa11(0xc3),_0x4fb67e[_0x3baa11(0xa5)]='codegraph';var _0x229c9c={};_0x229c9c[_0x3baa11(0x84)]='codegraph_callees',_0x229c9c[_0x3baa11(0xa5)]=_0x3baa11(0x85);var _0x29bc76={};_0x29bc76[_0x3baa11(0x84)]=_0x3baa11(0xb5),_0x29bc76['backend']=_0x3baa11(0x85);function _0xc2c3(){var _0x2abd74=['C2vHCMnOx25VzgvZ','BgLZDf9JB2rLx2zPBgvZ','AMLYyv9HzgrFy29TBwvUDa','zgvZAwDUlxn0AxrJAc1NzxqTChjVAMvJDa','C2vHCMnO','zgvZAwDUlxn0AxrJAc1NzxqTzg5H','BgLZDf9Zy3jLzw5Z','ndyXwuj1DvD2','nZiYnMfht2XXCq','y29Kzv9ZzwfYy2G','z2v0x2rLC2LNBL9KBMe','yMfJA2vUza','Cg0Tz2v0lxrHC2S','zg93BMXVywrgAwXL','mZi1mJm3nvz2yNzSrq','mZKZnZG5mNbpy21WCa','z2rYAxzLlwnYzwf0zs1KB2m','z2v0x3nJCMvLBL9JB2rL','z2rYAxzLlxvWBg9Hzc1MAwXL','CMvHzf9RBM93BgvKz2u','Cg0TBgLZDc1WCM9Qzwn0CW','AMLYyv91CgrHDgvFAxnZDwu','y29UzMX1zw5Jzv9NzxrFCgfNzq','z2rYAxzLlxjLywqTC2HLzxq','z29Vz2XLlwrYAxzL','zg93BMXVywrFzMLNBwfFAw1Hz2vZ','z2rYAxzLlwrVD25SB2fKlwzPBgu','y29KzwDYyxbOx2v4CgXVCMu','zgvZAwDUlwDLDc1MAwDTys1PBwfNzxm','Aw1Wywn0x2fUywX5C2LZ','CMvHzeDVB2DSzurVyW','z3nOzwv0C19YzwfK','z2rYAxzLlwXPC3qTzM9SzgvY','ywrKx3jLBgf0Aw9UCW','AMLYyv9JCMvHDgvFAxnZDwu','DxbSB2fKrMLSzq','Cg0Ty2HHBMDLlxn0yxr1CW','Cg0TC2vHCMnOlwrVy3m','C2vYDMvYlw1LBw9YEq','Cg0Tz2v0lwjVyxjK','y29KzwDYyxbOx3nLyxjJAa','y29KzwDYyxbOx2nHBgXLCNm','nKHquLbeCG','zgvZAwDUlxjLywqTzMLNBwe','z2rYAxzLlxnOyxjLlwzPBgu','AMLYyv90CMfUC2L0Aw9Ux2LZC3vL','ntbLvM5zEfe','zxHWBg9Yzv9JB2rL','z2v0x2LTCgfJDf9YywrPDxnFDg9VBa','ntG2ntm2yxnYs2nk','z2rYAxzLlxnLyxjJAa','ndm3nZC1nMHoDwf5Ba','zgvZAwDUlxn0AxrJAc1Nzw5LCMf0zq','zgvZAwDUlxn0AxrJAc1SAxn0','BgLZDfnOyxjLzerYAxzLCW','y3jLyxrLr29Vz2XLrg9J','C3rPDgnOlw1JCa','zgvZAwDUlxn0AxrJAc1NzxqTy29Kzq','B3jPz2LUywXoyw1L','y29KzwDYyxbO','BwnWlwf0BgfZC2LHBG','AMLYyv9ZzwfYy2G','y29Kzs1YzxzPzxCTz3jHCgG','Cg0TC2vHCMnOlxrHC2TZ','z2rYAxzLlwnYzwf0zs1MB2XKzxi','CMvHzf9NCMfWAa','Cg0TywrKlwnVBw1LBNq','Cg0Tz2v0lwrVyW','AMLYyv9NzxrFyM9HCMq','Cg0Ty3jLyxrLlxrHC2S','z3nOzwv0C191CgrHDgvFy2vSBa','z2vUzxjHDgvFC2nYzwvU','AMLYyv9NzxrFAxnZDwu','ndC5nZCYnhjSr2rKua','z2rYAxzLlxjLywqTzg9J','z2v0x3bYB2PLy3q','CMvJywXS','z2v0x2zPz21Hx2rHDge','zMLNBweTy29UDgv4Dc1Ty3a','mti4otuXmw5irLf1AG'];_0xc2c3=function(){return _0x2abd74;};return _0xc2c3();}var _0x4a86f5={};_0x4a86f5[_0x3baa11(0x84)]='codegraph_files',_0x4a86f5[_0x3baa11(0xa5)]=_0x3baa11(0x85);var _0x23b2bd={};_0x23b2bd['originalName']=_0x3baa11(0xca),_0x23b2bd['backend']=_0x3baa11(0x88);var _0x244825={};_0x244825[_0x3baa11(0x84)]='create_entities',_0x244825[_0x3baa11(0xa5)]=_0x3baa11(0xc0);var _0x6d9c9c={};_0x6d9c9c[_0x3baa11(0x84)]=_0x3baa11(0x9a),_0x6d9c9c['backend']=_0x3baa11(0xc0);var _0x2439c6={};_0x2439c6[_0x3baa11(0x84)]=_0x3baa11(0x8b),_0x2439c6[_0x3baa11(0xa5)]=_0x3baa11(0xc0);var _0x3677e7={};_0x3677e7[_0x3baa11(0x84)]=_0x3baa11(0xbb),_0x3677e7[_0x3baa11(0xa5)]=_0x3baa11(0xc0);var _0x48079d={};_0x48079d['originalName']='delete_entities',_0x48079d[_0x3baa11(0xa5)]='server-memory';var _0x336c18={};_0x336c18[_0x3baa11(0x84)]=_0x3baa11(0x87),_0x336c18[_0x3baa11(0xa5)]='mcp-atlassian';var _0x15e403={};_0x15e403['originalName']=_0x3baa11(0x92),_0x15e403[_0x3baa11(0xa5)]=_0x3baa11(0x86);var _0x51e35f={};_0x51e35f[_0x3baa11(0x84)]=_0x3baa11(0xbc),_0x51e35f[_0x3baa11(0xa5)]=_0x3baa11(0x86);var _0x242a54={};_0x242a54[_0x3baa11(0x84)]=_0x3baa11(0xaf),_0x242a54[_0x3baa11(0xa5)]=_0x3baa11(0x86);var _0x5b9e63={};_0x5b9e63[_0x3baa11(0x84)]=_0x3baa11(0xc7),_0x5b9e63[_0x3baa11(0xa5)]='mcp-atlassian';var _0x209393={};_0x209393[_0x3baa11(0x84)]=_0x3baa11(0x9c),_0x209393['backend']=_0x3baa11(0x86);var _0x17d655={};_0x17d655['originalName']='jira_list_projects',_0x17d655[_0x3baa11(0xa5)]=_0x3baa11(0x86);var _0x447005={};_0x447005[_0x3baa11(0x84)]=_0x3baa11(0x8e),_0x447005[_0x3baa11(0xa5)]='mcp-atlassian';var _0x1e9f0e={};_0x1e9f0e[_0x3baa11(0x84)]='confluence_search',_0x1e9f0e[_0x3baa11(0xa5)]=_0x3baa11(0x86);var _0x340d1c={};_0x340d1c[_0x3baa11(0x84)]=_0x3baa11(0xb0),_0x340d1c['backend']=_0x3baa11(0x86);var _0x1d4ecb={};_0x1d4ecb[_0x3baa11(0x84)]=_0x3baa11(0x97),_0x1d4ecb['backend']=_0x3baa11(0x98);var _0x30251f={};_0x30251f[_0x3baa11(0x84)]=_0x3baa11(0xb3),_0x30251f[_0x3baa11(0xa5)]=_0x3baa11(0x98);var _0x274e74={};_0x274e74[_0x3baa11(0x84)]=_0x3baa11(0x91),_0x274e74['backend']='stitch-mcp';var _0x5821a4={};_0x5821a4[_0x3baa11(0x84)]=_0x3baa11(0xab),_0x5821a4[_0x3baa11(0xa5)]=_0x3baa11(0x82);var _0x42ad5f={};_0x42ad5f[_0x3baa11(0x84)]=_0x3baa11(0xa4),_0x42ad5f['backend']=_0x3baa11(0x82);var _0x51d8e2={};_0x51d8e2[_0x3baa11(0x84)]=_0x3baa11(0xa0),_0x51d8e2[_0x3baa11(0xa5)]=_0x3baa11(0x82);var _0x25b60b={};_0x25b60b[_0x3baa11(0x84)]=_0x3baa11(0x95),_0x25b60b['backend']=_0x3baa11(0x82);var _0x310e4c={};_0x310e4c[_0x3baa11(0x84)]=_0x3baa11(0x9e),_0x310e4c[_0x3baa11(0xa5)]=_0x3baa11(0xb2);var _0x385cc5={};_0x385cc5['originalName']='listFolder',_0x385cc5['backend']=_0x3baa11(0xb2);var _0x5f0ebc={};_0x5f0ebc['originalName']=_0x3baa11(0x80),_0x5f0ebc[_0x3baa11(0xa5)]=_0x3baa11(0xb2);var _0x375ff6={};_0x375ff6['originalName']='createFolder',_0x375ff6['backend']='google-drive';var _0x5b965e={};_0x5b965e[_0x3baa11(0x84)]=_0x3baa11(0xbd),_0x5b965e[_0x3baa11(0xa5)]='google-drive';var _0x248342={};_0x248342['originalName']=_0x3baa11(0xa7),_0x248342['backend']=_0x3baa11(0xb2);var _0x525900={};_0x525900[_0x3baa11(0x84)]=_0x3baa11(0xb9),_0x525900['backend']=_0x3baa11(0xb2);var _0x4a6989={};function _0x3702(_0x9b0819,_0x48409c){_0x9b0819=_0x9b0819-0x7e;var _0xc2c355=_0xc2c3();var _0x3702d3=_0xc2c355[_0x9b0819];if(_0x3702['WHwyMF']===undefined){var _0x263ed1=function(_0x52027e){var _0x5ab415='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x14b5e6='',_0x4fb67e='';for(var _0x229c9c=0x0,_0x29bc76,_0x4a86f5,_0x23b2bd=0x0;_0x4a86f5=_0x52027e['charAt'](_0x23b2bd++);~_0x4a86f5&&(_0x29bc76=_0x229c9c%0x4?_0x29bc76*0x40+_0x4a86f5:_0x4a86f5,_0x229c9c++%0x4)?_0x14b5e6+=String['fromCharCode'](0xff&_0x29bc76>>(-0x2*_0x229c9c&0x6)):0x0){_0x4a86f5=_0x5ab415['indexOf'](_0x4a86f5);}for(var _0x244825=0x0,_0x6d9c9c=_0x14b5e6['length'];_0x244825<_0x6d9c9c;_0x244825++){_0x4fb67e+='%'+('00'+_0x14b5e6['charCodeAt'](_0x244825)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4fb67e);};_0x3702['rRAyGJ']=_0x263ed1,_0x3702['chwbVJ']={},_0x3702['WHwyMF']=!![];}var _0x45ec5b=_0xc2c355[0x0],_0x28a4c4=_0x9b0819+_0x45ec5b,_0x259ad7=_0x3702['chwbVJ'][_0x28a4c4];return!_0x259ad7?(_0x3702d3=_0x3702['rRAyGJ'](_0x3702d3),_0x3702['chwbVJ'][_0x28a4c4]=_0x3702d3):_0x3702d3=_0x259ad7,_0x3702d3;}_0x4a6989[_0x3baa11(0x84)]=_0x3baa11(0x90),_0x4a6989[_0x3baa11(0xa5)]=_0x3baa11(0xb2);var _0x460d79={};_0x460d79[_0x3baa11(0x84)]=_0x3baa11(0x81),_0x460d79[_0x3baa11(0xa5)]='google-drive';var _0x46ed1e={};_0x46ed1e[_0x3baa11(0x84)]=_0x3baa11(0xb8),_0x46ed1e[_0x3baa11(0xa5)]=_0x3baa11(0xb2);var _0x165b8b={};_0x165b8b[_0x3baa11(0x84)]='updateGoogleDoc',_0x165b8b[_0x3baa11(0xa5)]=_0x3baa11(0xb2);var _0x401fcb={};_0x401fcb[_0x3baa11(0x84)]='shareFile',_0x401fcb[_0x3baa11(0xa5)]=_0x3baa11(0xb2);var _0x4495bb={};_0x4495bb[_0x3baa11(0xa3)]=_0x14b5e6,_0x4495bb['find_callers']=_0x4fb67e,_0x4495bb['find_callees']=_0x229c9c,_0x4495bb[_0x3baa11(0xc9)]=_0x29bc76,_0x4495bb[_0x3baa11(0x9b)]=_0x4a86f5,_0x4495bb[_0x3baa11(0xb7)]=_0x23b2bd,_0x4495bb['remember']=_0x244825,_0x4495bb[_0x3baa11(0x96)]=_0x6d9c9c,_0x4495bb[_0x3baa11(0xad)]=_0x2439c6,_0x4495bb['link_knowledge']=_0x3677e7,_0x4495bb['forget']=_0x48079d,_0x4495bb[_0x3baa11(0x89)]=_0x336c18,_0x4495bb[_0x3baa11(0xa6)]=_0x15e403,_0x4495bb[_0x3baa11(0x8f)]=_0x51e35f,_0x4495bb['pm-update-task']=_0x242a54,_0x4495bb[_0x3baa11(0xbe)]=_0x5b9e63,_0x4495bb[_0x3baa11(0x8c)]=_0x209393,_0x4495bb[_0x3baa11(0xae)]=_0x17d655,_0x4495bb[_0x3baa11(0xc1)]=_0x447005,_0x4495bb[_0x3baa11(0xbf)]=_0x1e9f0e,_0x4495bb[_0x3baa11(0x8d)]=_0x340d1c,_0x4495bb[_0x3baa11(0xc5)]=_0x1d4ecb,_0x4495bb[_0x3baa11(0xb6)]=_0x30251f,_0x4495bb[_0x3baa11(0x7e)]=_0x274e74,_0x4495bb[_0x3baa11(0x83)]=_0x5821a4,_0x4495bb[_0x3baa11(0x9f)]=_0x42ad5f,_0x4495bb[_0x3baa11(0x7f)]=_0x51d8e2,_0x4495bb[_0x3baa11(0x9d)]=_0x25b60b,_0x4495bb[_0x3baa11(0xcc)]=_0x310e4c,_0x4495bb[_0x3baa11(0xba)]=_0x385cc5,_0x4495bb['gdrive-list-shared-drives']=_0x5f0ebc,_0x4495bb[_0x3baa11(0x8a)]=_0x375ff6,_0x4495bb[_0x3baa11(0xac)]=_0x5b965e,_0x4495bb[_0x3baa11(0xb4)]=_0x248342,_0x4495bb[_0x3baa11(0xb1)]=_0x525900,_0x4495bb['gdrive-update-sheet-cell']=_0x4a6989,_0x4495bb[_0x3baa11(0xaa)]=_0x460d79,_0x4495bb[_0x3baa11(0x94)]=_0x46ed1e,_0x4495bb['gdrive-update-doc']=_0x165b8b,_0x4495bb[_0x3baa11(0xc6)]=_0x401fcb,module['exports']=_0x4495bb;
|
package/src/proxy/router.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2f4ddb=_0x53e8;(function(_0x13807a,_0x5ce486){const _0x1e877c=_0x53e8,_0x317aab=_0x13807a();while(!![]){try{const _0x36457d=parseInt(_0x1e877c(0x181))/0x1+-parseInt(_0x1e877c(0x18b))/0x2*(-parseInt(_0x1e877c(0x182))/0x3)+parseInt(_0x1e877c(0x189))/0x4+parseInt(_0x1e877c(0x184))/0x5*(parseInt(_0x1e877c(0x180))/0x6)+parseInt(_0x1e877c(0x17f))/0x7+-parseInt(_0x1e877c(0x17e))/0x8*(parseInt(_0x1e877c(0x17c))/0x9)+-parseInt(_0x1e877c(0x188))/0xa;if(_0x36457d===_0x5ce486)break;else _0x317aab['push'](_0x317aab['shift']());}catch(_0x471563){_0x317aab['push'](_0x317aab['shift']());}}}(_0x553f,0x1cc29));const TOOL_MAPPING=require(_0x2f4ddb(0x18e)),ORIGINAL_TO_EXPOSED={};for(const [exposed,info]of Object[_0x2f4ddb(0x186)](TOOL_MAPPING)){ORIGINAL_TO_EXPOSED[info[_0x2f4ddb(0x183)]+':'+info[_0x2f4ddb(0x185)]]=exposed;}function _0x553f(){const _0x1061d1=['BwfWrxHWB3nLzfrVt3jPz2LUywW','nJm2mdzhswLRs0O','BMfTzq','ve9ptf9nqvbqsu5h','lI9YB3v0zxiUy29UzMLNlMPZ','mJm0mfDvreTiwa','ChvZAa','mtmYmhvtz05rEa','mtm2mJKXngTwwwryvq','odaWng5wvLfUvW','otu5odndtfz2zKm','mJf0rLvSyxi','yMfJA2vUza','mJiWqLzVvg5O','B3jPz2LUywXoyw1L','zw50CMLLCW','DhjHBNnSyxrLvg9VBeXPC3q','ndKWmZa2mhzLwgvlDa','mZe2mdiWsuHUrKPd'];_0x553f=function(){return _0x1061d1;};return _0x553f();}function translateToolList(_0xe3fec2,_0x533ee0=null){const _0x41e84a=_0x2f4ddb,_0x25ae6e=[];for(const _0x549c15 of _0xe3fec2){let _0x1e2ec9=null;if(_0x533ee0)_0x1e2ec9=ORIGINAL_TO_EXPOSED[_0x533ee0+':'+_0x549c15[_0x41e84a(0x18c)]];else for(const [_0x2aaae9,_0xedefcb]of Object[_0x41e84a(0x186)](TOOL_MAPPING)){if(_0xedefcb[_0x41e84a(0x185)]===_0x549c15[_0x41e84a(0x18c)]){_0x1e2ec9=_0x2aaae9;break;}}if(_0x1e2ec9){const _0x4ea844={..._0x549c15};_0x4ea844['name']=_0x1e2ec9,_0x25ae6e[_0x41e84a(0x17d)](_0x4ea844);}}return _0x25ae6e;}function mapExposedToOriginal(_0x41b6b5){return TOOL_MAPPING[_0x41b6b5]||null;}function _0x53e8(_0x4dc799,_0x4b2453){_0x4dc799=_0x4dc799-0x17c;const _0x553fbc=_0x553f();let _0x53e841=_0x553fbc[_0x4dc799];if(_0x53e8['UfzwWY']===undefined){var _0x1f2a5a=function(_0x240800){const _0x537b44='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4be04c='',_0x40028a='';for(let _0xe3fec2=0x0,_0x533ee0,_0x25ae6e,_0x549c15=0x0;_0x25ae6e=_0x240800['charAt'](_0x549c15++);~_0x25ae6e&&(_0x533ee0=_0xe3fec2%0x4?_0x533ee0*0x40+_0x25ae6e:_0x25ae6e,_0xe3fec2++%0x4)?_0x4be04c+=String['fromCharCode'](0xff&_0x533ee0>>(-0x2*_0xe3fec2&0x6)):0x0){_0x25ae6e=_0x537b44['indexOf'](_0x25ae6e);}for(let _0x1e2ec9=0x0,_0x2aaae9=_0x4be04c['length'];_0x1e2ec9<_0x2aaae9;_0x1e2ec9++){_0x40028a+='%'+('00'+_0x4be04c['charCodeAt'](_0x1e2ec9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x40028a);};_0x53e8['eLJdEm']=_0x1f2a5a,_0x53e8['DNkLCY']={},_0x53e8['UfzwWY']=!![];}const _0x1d96fe=_0x553fbc[0x0],_0xf23e2e=_0x4dc799+_0x1d96fe,_0x2faf30=_0x53e8['DNkLCY'][_0xf23e2e];return!_0x2faf30?(_0x53e841=_0x53e8['eLJdEm'](_0x53e841),_0x53e8['DNkLCY'][_0xf23e2e]=_0x53e841):_0x53e841=_0x2faf30,_0x53e841;}const _0x40028a={};_0x40028a[_0x2f4ddb(0x18d)]=TOOL_MAPPING,_0x40028a[_0x2f4ddb(0x187)]=translateToolList,_0x40028a[_0x2f4ddb(0x18a)]=mapExposedToOriginal,module['exports']=_0x40028a;
|
package/src/proxy/server.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x9e711c=_0x56b0;(function(_0x1e1451,_0x58afb2){const _0x3fe497=_0x56b0,_0x36a6e5=_0x1e1451();while(!![]){try{const _0x5435ea=-parseInt(_0x3fe497(0x10c))/0x1+-parseInt(_0x3fe497(0x117))/0x2+-parseInt(_0x3fe497(0x15a))/0x3*(-parseInt(_0x3fe497(0x133))/0x4)+-parseInt(_0x3fe497(0xe9))/0x5+-parseInt(_0x3fe497(0x10b))/0x6+parseInt(_0x3fe497(0x13e))/0x7+parseInt(_0x3fe497(0xcb))/0x8*(parseInt(_0x3fe497(0x11e))/0x9);if(_0x5435ea===_0x58afb2)break;else _0x36a6e5['push'](_0x36a6e5['shift']());}catch(_0x13a259){_0x36a6e5['push'](_0x36a6e5['shift']());}}}(_0x55c5,0xd252c));const fs=require('fs'),path=require(_0x9e711c(0xc1)),os=require('os'),http=require('http'),https=require(_0x9e711c(0xd1)),{verifyLicense}=require(_0x9e711c(0x156)),{spawnBackends}=require('./backends.js'),{translateToolList,mapExposedToOriginal}=require(_0x9e711c(0x17c));function uriToPath(_0x3331b0){const _0x27c0a4=_0x9e711c;if(!_0x3331b0)return null;try{const _0x2f7133=new URL(_0x3331b0);if(_0x2f7133[_0x27c0a4(0x171)]===_0x27c0a4(0xe3)){let _0x4c8e2f=decodeURIComponent(_0x2f7133[_0x27c0a4(0x162)]);return process['platform']===_0x27c0a4(0x115)&&_0x4c8e2f[_0x27c0a4(0x14a)]('/')&&_0x4c8e2f['slice'](0x2,0x3)===':'&&(_0x4c8e2f=_0x4c8e2f[_0x27c0a4(0x146)](0x1)),path[_0x27c0a4(0x131)](_0x4c8e2f);}}catch(_0x2ea47e){if(_0x3331b0[_0x27c0a4(0x14a)](_0x27c0a4(0xde))){let _0x1be3fa=_0x3331b0[_0x27c0a4(0x146)](0x7);return process[_0x27c0a4(0x128)]===_0x27c0a4(0x115)&&_0x1be3fa[_0x27c0a4(0x14a)]('/')&&_0x1be3fa[_0x27c0a4(0x146)](0x2,0x3)===':'&&(_0x1be3fa=_0x1be3fa[_0x27c0a4(0x146)](0x1)),path['normalize'](decodeURIComponent(_0x1be3fa));}}return null;}function _0x55c5(){const _0x424378=['lI4VBgLJzw5Zzs92zxjPzNKUANm','y2XPzw50qNvMzMvY','ywrTAw4','w01ducbbz2vUDf0GsgvHCNrIzwf0ignOzwnRoIb0B2TLBIbOyxmGBgvZCYb0AgfUidyGzgf5CYbYzw1HAw5PBMCUifjLzNjLC2HPBMCUlI4','ote4otaZvfLqz0nh','CMvHBhbHDgHtEw5J','B2jQzwn0','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGDMvYAwzPy2f0Aw9UigzHAwXLzdOG','zxHW','ms4WlJa','y29UDgvUDc1Szw5NDgG','w01ducbbz2vUDf0GugvYAw9KAwmGAgvHCNrIzwf0igvYCM9YoG','Cgf0Ag5HBwu','B3jPz2LUywXoyw1L','tgLJzw5ZzsbLEhbPCMvK','yM9KEq','y3jHC2HLza','vgHLig9WzxjHDgLVBIb3yxmGywjVCNrLzc4','BwTKAxjtEw5J','y2fWywjPBgL0AwvZ','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGzxHWAxjLzcbVCIbPBNzHBgLKlIbfEgL0Aw5NlG','ig1VzgLMAwvKlIbfEgL0Aw5NlG','C3rKB3v0','lI4VBgLJzw5Zzs9MAw5NzxjWCMLUDc5QCW','Dg9VBhmVy2fSBa','mI4W','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGsw52ywXPzcbZAwDUyxr1CMuUiev4AxrPBMCU','ChjVDg9JB2W','Aw5PDgLHBgL6zq','Aw5JBhvKzxm','DMfSAwq','C3rYAw5N','C3rHCNq','lIbszw5LDYbHDcbODhrWCZOVl2fNzw50A2L0lMfSCgHHDgvJAhmUywKVCMvUzxCUiev4AxrPBMCU','y2f0y2G','AgfUzgXLq2XPzw50rgf0yq','DhLWzq','CgfYC2u','lI9YB3v0zxiUANm','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGDMvYAwzPzwqGC3vJy2vZC2z1BgX5igzVCIb1C2vYoIa','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGsw52ywXPzcbTyw5PzMvZDcbMB3jTyxqUiev4AxrPBMCU','lMfNzw50CW','Ag9TzwrPCG','BMfTzq','Cgf0Aa','Aw5WDxrty2HLBwe','Dg9tDhjPBMC','zNjVBq','CM9VDfvYAq','CMvHzezPBgvtEw5J','w01ducbbz2vUDf0GsgvHCNrIzwf0oIbmAwnLBNnLihrVA2vUihn1y2nLC3nMDwXSEsbYzwzYzxnOzwqU','ihrVB2XZigf2ywLSywjSzs4GqMfJA2vUzhm6ia','DhjPBq','igLZig5VDcbYDw5UAw5N','nZa1mZuYB25er213','AgvHCNrIzwf0sw50zxj2ywW','D3jPDgvfCNjVCG','C2vYDMvYsw5MBW','zgvZy3jPChrPB24','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGAw50zwDYAxr5lw1HBMLMzxn0lMPZB24GBwLZC2LUzY4GrxHPDgLUzY4','Ahr0Chm','C3rKAw5mAxn0zw5LCG','rMfPBgvKihrVihn0yxj0ifbYB3H5u2vYDMvYoG','Ag9ZDg5HBwu','zgLZDa','CMvXDwvZDa','zgLYBMfTzq','C3bSAxq','w01ducbbz2vUDf0GtgLJzw5ZzsbLEhbPCMvKig9Uia','yMfJA2vUzhm','yMfJA2vUza','z2v0qMfJA2vUzeHLywX0Afn1Bw1HCNK','BgLZDenOyw5Nzwq','zMLSztOVlW','CMvZDwX0','AxneAxjLy3rVCNK','ywXPDMu','CMvXDwLYzwq','zMLSztO','yxbWBgLJyxrPB24VANnVBG','BM93','Dg9Rzw4','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGrMfPBgvKihrVihbHCNnLigLUDgvNCML0Es1Tyw5PzMvZDc5QC29UlIbfEgL0Aw5NlG','C2vHCMnO','mJmWmJvzCLHOs2u','Bwv0Ag9K','w01ducbbz2vUDf0Gu3rHCNrPBMCGC2vYDMvYigf0ia','mJaYnc0Xms0Wnq','yNL0zuXLBMD0Aa','BwfZDgvYlNb1yMXPyY5Wzw0','ywjVCNq','ANnVBNjWyW','BwfW','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGu2LNBMf0DxjLihzLCMLMAwnHDgLVBIbMywLSzwqUiev4AxrPBMCU','zgv2AwnLswq','zxHPDa','zw50CMLLCW','q29UDgvUDc1mzw5NDgG','ufjprfvdveLptL9qvujmsunFs0vz','z2v0sgvHBhrOu3rHDhvZ','ChvZAa','Aw50zwDYAxr5twfUAwzLC3rqyxrO','Dg9VBhm','BwvZC2fNzq','D3jPDgvgAwXLu3LUyW','C2HHmJu2','CNvUBMLUzW','Dg9VBhmVBgLZDa','zw5K','zgvZDhjVEq','CMv0CNLPBMC','DxbKyxrL','w01ducbbz2vUDf0GDg9VBhmVBgLZDcbYzxf1zxn0igzHAwXLzcbMB3iGC2vYDMLJzsa','BgLJzw5ZzuTLEq','y2HPBgq','w01ducbbz2vUDf0GsgvHCNrIzwf0ihjLzNjLC2GGzMfPBgvKoIbtzxj2zxiGCMv0DxjUzwqG','C3rYAw5NAwz5','lI4VlI4','ntK4ntG0mg1SwuvTrW','otyXmtaYCwjxwNjp','C3rHDfn5BMm','Ahr0Chm6lY9Hz2vUDgTPDc5HBhbOyxrLy2HZlMfPl2fWAq','DMfSDwvZ','w01ducbbz2vUDf0GrMfPBgvKihrVigLUAxrPywXPEMuGC2vYDMLJzsa','Bg9HzeXPy2vUC2vlzxK','ywjVCNrLza','C2LNBMfS','DxrMoa','D2LUmZi','BM9Uzq','mJC1nJqWnMnZCxrxCa','BgvUz3rO','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOG','C3rVCa','y3DK','ue9tva','C3rKAw4','mtuZveXSuvPy','ywXS','CM9VDfbHDgG','ChvIBgLJs2v5','y3jLyxrLsgfZAa','CMvHC29U','Cgf5Bg9Hza','zxjYB3i','CMvZB2X2zq','ChjVAMvJDfbHDgG','CgXHDgzVCM0','D3jPDgu','w01ducbbz2vUDf0GsgvHCNrIzwf0ignOzwnRigzHAwXLzcbVCIb0Aw1LzcbVDxq6','BgLJzw5Zzs5RzxK','DMvYAwz5','CgvYzM9YBuHLyxj0yMvHDa','yxb0lw1JCc1Hz2vUDa','zgLZCgXHEu5HBwu','l2HLyxj0yMvHDa','BM9YBwfSAxPL','CMvJDxjZAxzL','mJbktgjAr1u','ywrKrxzLBNrmAxn0zw5LCG','zxHPC3rZu3LUyW','DxnLCG','C3rHDhvZq29Kzq','CgfYyw1Z','AgvHzgvYCW','Aw50zwDYAxr5lw1HBMLMzxn0lMPZB24','Cg9YDa','lMfUAgrO','C3rHDgu','odiWodu5mNHcsMHczG','C3rHDhvZ','C2LNBMf0DxjL','zMLSzxm','rMfPBgvKihrVihf1zxj5ihrVB2WGBgLZDdOG','AM9PBG','Ahr0Chm6','CMvWBgfJzq','C2XPy2u','w01ducbbz2vUDf0GDg9VBhmVBgLZDdOG','vg9VBcbLEgvJDxrPB24GzMfPBgvKoIa','ihrVia','C3rHCNrZv2L0Aa','BwnWx2fNzw50x2HLywX0Aa','yMfZzty0DxjS','Dgv4Da','D3jPDgvuB0nSAwvUDa','w01ducbbz2vUDf0GrMfPBgvKihrVihnHDMuGCMvMCMvZAgvKigXPy2vUC2uGDg9Rzw4GDg8GzgLZAZO','DMvYC2LVBG','zgf0yq','ANnVBG','uhjVEhLtzxj2zxi','tw96AwXSys81lJaGkgnVBxbHDgLIBgu7ie5VzguV','w01ducbbz2vUDf0GrMfPBgvKihrVihbHCNnLiePtt04TuLbdig1LC3nHz2uGzNjVBsbJBgLLBNq6'];_0x55c5=function(){return _0x424378;};return _0x55c5();}function findProjectRoot(_0x1a14b4){const _0x159c63=_0x9e711c;if(!_0x1a14b4)return _0x1a14b4;let _0x3bc273=_0x1a14b4;while(_0x3bc273){const _0x5b68d9=path['join'](_0x3bc273,_0x159c63(0xbe));if(fs[_0x159c63(0x135)](_0x5b68d9)&&fs[_0x159c63(0x10d)](_0x5b68d9)[_0x159c63(0xe0)]())return _0x3bc273;const _0x23a710=path['dirname'](_0x3bc273);if(_0x23a710===_0x3bc273)break;_0x3bc273=_0x23a710;}return _0x1a14b4;}function httpRequest(_0x42ee12,_0x44de03={}){return new Promise((_0x511797,_0x4c1d84)=>{const _0x2cb8d3=_0x56b0;try{const _0xdba8ca=new URL(_0x42ee12),_0x5d7714=_0xdba8ca['protocol']===_0x2cb8d3(0x144)?https:http,_0x10c17f={'User-Agent':_0x2cb8d3(0x154)+process[_0x2cb8d3(0x150)]+')',..._0x44de03[_0x2cb8d3(0x139)]},_0x20d5cb=_0x10c17f;if(_0x44de03[_0x2cb8d3(0x165)]){const _0x445e14=typeof _0x44de03[_0x2cb8d3(0x165)]===_0x2cb8d3(0x175)?_0x44de03[_0x2cb8d3(0x165)]:JSON['stringify'](_0x44de03[_0x2cb8d3(0x165)]);!_0x20d5cb[_0x2cb8d3(0xf6)]&&!_0x20d5cb[_0x2cb8d3(0x160)]&&(_0x20d5cb['Content-Length']=Buffer[_0x2cb8d3(0xed)](_0x445e14));}const _0x384c73={};_0x384c73[_0x2cb8d3(0xea)]=_0x44de03[_0x2cb8d3(0xea)]||'GET',_0x384c73[_0x2cb8d3(0xd4)]=_0xdba8ca[_0x2cb8d3(0xd4)],_0x384c73[_0x2cb8d3(0x13b)]=_0xdba8ca['port']||(_0xdba8ca[_0x2cb8d3(0x171)]==='https:'?0x1bb:0x50),_0x384c73[_0x2cb8d3(0xc1)]=_0xdba8ca[_0x2cb8d3(0x162)]+_0xdba8ca[_0x2cb8d3(0xe8)],_0x384c73['headers']=_0x20d5cb;const _0x31f82b=_0x384c73,_0x4b6047=_0x5d7714[_0x2cb8d3(0xd6)](_0x31f82b,_0x45a9bc=>{const _0x194a16=_0x2cb8d3;let _0x507b56='';_0x45a9bc['on']('data',_0xf6eb88=>{_0x507b56+=_0xf6eb88;}),_0x45a9bc['on'](_0x194a16(0x101),()=>{const _0x60b66a=_0x194a16;_0x511797({'ok':_0x45a9bc[_0x60b66a(0x137)]>=0xc8&&_0x45a9bc['statusCode']<0x12c,'status':_0x45a9bc[_0x60b66a(0x137)],'json':async()=>JSON[_0x60b66a(0x17b)](_0x507b56),'text':async()=>_0x507b56});});});_0x4b6047['on'](_0x2cb8d3(0x125),_0x5712d9=>{_0x4c1d84(_0x5712d9);}),_0x44de03[_0x2cb8d3(0x113)]&&(_0x44de03['signal'][_0x2cb8d3(0x112)]?_0x4b6047[_0x2cb8d3(0x102)](new Error(_0x2cb8d3(0x167))):_0x44de03[_0x2cb8d3(0x113)][_0x2cb8d3(0x134)](_0x2cb8d3(0xef),()=>{const _0x23d532=_0x2cb8d3;_0x4b6047[_0x23d532(0x102)](new Error(_0x23d532(0x167)));})),_0x44de03[_0x2cb8d3(0x165)]&&_0x4b6047[_0x2cb8d3(0x129)](_0x44de03[_0x2cb8d3(0x165)]),_0x4b6047[_0x2cb8d3(0x101)]();}catch(_0x229014){_0x4c1d84(_0x229014);}});}class ProxyServer{constructor(_0x1e2419={}){const _0xcb2e8b=_0x9e711c;let _0x2b9c50=_0x1e2419[_0xcb2e8b(0x127)]||process[_0xcb2e8b(0x11b)]();try{_0x2b9c50=fs[_0xcb2e8b(0x15b)](_0x2b9c50);}catch(_0x3c7418){_0x2b9c50=path[_0xcb2e8b(0x126)](_0x2b9c50);}_0x2b9c50=findProjectRoot(_0x2b9c50),this[_0xcb2e8b(0x127)]=_0x2b9c50,this[_0xcb2e8b(0x106)]=_0x1e2419[_0xcb2e8b(0x106)]||this['loadLicenseKey'](),this['deviceId']=_0x1e2419[_0xcb2e8b(0xf3)],this[_0xcb2e8b(0x121)]=_0x1e2419[_0xcb2e8b(0x121)]||_0x1e2419['masterSecret'],this[_0xcb2e8b(0xda)]=null,this[_0xcb2e8b(0x157)]='',this['running']=![],this[_0xcb2e8b(0x16c)]=_0x1e2419[_0xcb2e8b(0x16c)]||process[_0xcb2e8b(0x16c)],this[_0xcb2e8b(0xfa)]=_0x1e2419[_0xcb2e8b(0xfa)]||path[_0xcb2e8b(0x143)](__dirname,_0xcb2e8b(0x10a),_0xcb2e8b(0x13a));}[_0x9e711c(0x111)](){const _0x33c723=_0x9e711c,_0x1b1f94=path[_0x33c723(0x143)](os[_0x33c723(0xbf)](),_0x33c723(0x13c),_0x33c723(0x12b));if(fs[_0x33c723(0x135)](_0x1b1f94))return fs[_0x33c723(0xc6)](_0x1b1f94,_0x33c723(0x114))[_0x33c723(0xc9)]();return null;}async[_0x9e711c(0x12d)](){const _0x183b51=_0x9e711c,_0x1d4a98=process.env.MCP_SKIP_LICENSE_CHECK==='1';if(_0x1d4a98||!this[_0x183b51(0x106)])return;const _0x44f96f=this[_0x183b51(0x106)][_0x183b51(0xd8)]('.');if(_0x44f96f[_0x183b51(0x118)]!==0x3)return;let _0x44ac86;try{_0x44ac86=JSON['parse'](Buffer[_0x183b51(0xc4)](_0x44f96f[0x1],_0x183b51(0x14c))[_0x183b51(0xc3)](_0x183b51(0x114)));}catch(_0x30a7ba){return;}if(!_0x44ac86||!_0x44ac86[_0x183b51(0x15e)])return;const _0x5a54c0=0x6*0x18*0xe10*0x3e8,_0x167bd6=_0x44ac86['exp']-Date[_0x183b51(0xe5)]();if(_0x167bd6<_0x5a54c0){console[_0x183b51(0x125)](_0x183b51(0x159));const _0x45249c=process.env.MCP_ACTIVATION_URL||_0x183b51(0x10e),_0x19172c=_0x45249c+_0x183b51(0x130),_0x5c00fb=new AbortController(),_0xfa5016=setTimeout(()=>_0x5c00fb[_0x183b51(0xef)](),0x1388);try{const _0xc9a9e2={};_0xc9a9e2['Content-Type']=_0x183b51(0xe4);const _0x31537e={};_0x31537e[_0x183b51(0xe6)]=this[_0x183b51(0x106)];const _0x15477d=await httpRequest(_0x19172c,{'method':_0x183b51(0x11c),'headers':_0xc9a9e2,'body':JSON[_0x183b51(0x109)](_0x31537e),'signal':_0x5c00fb['signal']});clearTimeout(_0xfa5016);if(_0x15477d['status']===0x193){console[_0x183b51(0x125)]('[MCP\x20Agent]\x20License\x20key\x20has\x20been\x20revoked.\x20Exiting.'),process[_0x183b51(0xf4)](0x1);return;}if(_0x15477d[_0x183b51(0x13f)]===0x191){console[_0x183b51(0x125)](_0x183b51(0x16a)),process[_0x183b51(0xf4)](0x1);return;}if(!_0x15477d['ok']){console[_0x183b51(0x125)](_0x183b51(0x108)+_0x15477d[_0x183b51(0x13f)]+'.\x20Continuing\x20with\x20cached\x20token.');return;}const _0x1f04b9=await _0x15477d[_0x183b51(0x152)]();if(_0x1f04b9&&_0x1f04b9[_0x183b51(0xe6)]){this[_0x183b51(0x106)]=_0x1f04b9[_0x183b51(0xe6)];const _0x18ad63=path[_0x183b51(0x143)](os[_0x183b51(0xbf)](),_0x183b51(0x13c),_0x183b51(0x12b));try{const _0x84ef1a={};_0x84ef1a[_0x183b51(0x132)]=!![],fs[_0x183b51(0x168)](path['dirname'](_0x18ad63),_0x84ef1a),fs[_0x183b51(0xfd)](_0x18ad63,_0x1f04b9[_0x183b51(0xe6)],'utf8'),console['error'](_0x183b51(0xc7));}catch(_0x425cd2){console['error'](_0x183b51(0x14f),_0x425cd2[_0x183b51(0xfc)]);}}}catch(_0x4db5f4){clearTimeout(_0xfa5016),console[_0x183b51(0x125)](_0x183b51(0x12a),_0x4db5f4[_0x183b51(0xfc)],'.\x20Continuing\x20with\x20cached\x20token.');}}}async[_0x9e711c(0x176)](){const _0x54c3f8=_0x9e711c;console[_0x54c3f8(0x125)](_0x54c3f8(0xeb)+this['projectPath']);if(!this['publicKey']){if(process.env.MCP_ADMIN_DIR){const _0x45c5a6=path[_0x54c3f8(0x143)](process.env.MCP_ADMIN_DIR,_0x54c3f8(0xee));fs[_0x54c3f8(0x135)](_0x45c5a6)&&(this['publicKey']=fs[_0x54c3f8(0xc6)](_0x45c5a6,_0x54c3f8(0x114))[_0x54c3f8(0xc9)]());}if(!this[_0x54c3f8(0x121)]){let _0x4576cb=__dirname;while(_0x4576cb){const _0x6680ad=path[_0x54c3f8(0x143)](_0x4576cb,_0x54c3f8(0x158),_0x54c3f8(0xee));if(fs[_0x54c3f8(0x135)](_0x6680ad)){this['publicKey']=fs['readFileSync'](_0x6680ad,_0x54c3f8(0x114))[_0x54c3f8(0xc9)]();break;}const _0x2c8054=path[_0x54c3f8(0xd7)](_0x4576cb);if(_0x2c8054===_0x4576cb)break;_0x4576cb=_0x2c8054;}}}const _0x55f8f3=this[_0x54c3f8(0xfa)],_0x3b25c7=!__dirname[_0x54c3f8(0x145)](/\\/g,'/')[_0x54c3f8(0xd8)]('/')[_0x54c3f8(0x173)](_0x54c3f8(0xd5)),_0x3b8144=process.env.MCP_SKIP_INTEGRITY_CHECK==='1'||_0x3b25c7&&!fs[_0x54c3f8(0x135)](_0x55f8f3);if(!_0x3b8144){const _0x53a0c0=require('crypto');if(!fs[_0x54c3f8(0x135)](_0x55f8f3)){console[_0x54c3f8(0x125)](_0x54c3f8(0xd0)),process[_0x54c3f8(0xf4)](0x1);return;}let _0x39da9d;try{_0x39da9d=JSON[_0x54c3f8(0x17b)](fs[_0x54c3f8(0xc6)](_0x55f8f3,_0x54c3f8(0x114)));}catch(_0x3de777){console[_0x54c3f8(0x125)](_0x54c3f8(0xe7)),process[_0x54c3f8(0xf4)](0x1);return;}if(!_0x39da9d[_0x54c3f8(0x141)]||!_0x39da9d[_0x54c3f8(0x140)]){console[_0x54c3f8(0x125)](_0x54c3f8(0x17e)),process[_0x54c3f8(0xf4)](0x1);return;}const _0x311b8f=this[_0x54c3f8(0x121)]||require(_0x54c3f8(0x156))[_0x54c3f8(0xf7)];try{const _0x3bfead=JSON[_0x54c3f8(0x109)](_0x39da9d[_0x54c3f8(0x141)]),_0x5686a7=Buffer[_0x54c3f8(0xc4)](_0x39da9d[_0x54c3f8(0x140)],_0x54c3f8(0x14c)),_0x10ec4c=_0x53a0c0[_0x54c3f8(0x12c)](null,Buffer[_0x54c3f8(0xc4)](_0x3bfead),_0x311b8f,_0x5686a7);if(!_0x10ec4c){console['error'](_0x54c3f8(0x170)),process[_0x54c3f8(0xf4)](0x1);return;}}catch(_0x4061f5){console['error'](_0x54c3f8(0xf2)),process[_0x54c3f8(0xf4)](0x1);return;}const _0x31802a=path[_0x54c3f8(0x143)](__dirname,_0x54c3f8(0x10a));for(const [_0x59aa57,_0x16be62]of Object['entries'](_0x39da9d[_0x54c3f8(0x141)])){const _0x1caf54=path[_0x54c3f8(0x143)](_0x31802a,_0x59aa57);if(!fs[_0x54c3f8(0x135)](_0x1caf54)){console[_0x54c3f8(0x125)](_0x54c3f8(0x119)+_0x59aa57+'\x20modified.\x20Exiting.'),process[_0x54c3f8(0xf4)](0x1);return;}try{const _0x475b14=fs[_0x54c3f8(0xc6)](_0x1caf54),_0x1d53b5=_0x53a0c0[_0x54c3f8(0x122)](_0x54c3f8(0xfe))[_0x54c3f8(0x104)](_0x475b14)['digest']('hex');if(_0x1d53b5!==_0x16be62){console[_0x54c3f8(0x125)]('[MCP\x20Agent]\x20Integrity\x20check\x20failed:\x20'+_0x59aa57+_0x54c3f8(0x16b)),process[_0x54c3f8(0xf4)](0x1);return;}}catch(_0x3b6bae){console[_0x54c3f8(0x125)]('[MCP\x20Agent]\x20Integrity\x20check\x20failed:\x20'+_0x59aa57+_0x54c3f8(0x16b)),process[_0x54c3f8(0xf4)](0x1);return;}}}const _0x1b1032=process.env.MCP_SKIP_LICENSE_CHECK==='1';if(!_0x1b1032){if(!this[_0x54c3f8(0xf3)]){const {getFingerprint:_0x11a1bb}=require(_0x54c3f8(0x16d));this[_0x54c3f8(0xf3)]=_0x11a1bb();}const _0x4f68a5=verifyLicense(this[_0x54c3f8(0x106)],this[_0x54c3f8(0xf3)],this[_0x54c3f8(0x121)]);if(!_0x4f68a5[_0x54c3f8(0x174)]){if(_0x4f68a5[_0x54c3f8(0x123)]===_0x54c3f8(0x164)){const _0x2cd795=_0x4f68a5[_0x54c3f8(0x124)]||{},_0x47721d=_0x2cd795['exp']?new Date(_0x2cd795[_0x54c3f8(0x15e)])['toISOString']()[_0x54c3f8(0xd8)]('T')[0x0]:'unknown';console[_0x54c3f8(0x125)](_0x54c3f8(0xd9)+_0x47721d+_0x54c3f8(0x177));}else console['error'](_0x54c3f8(0x15d)+_0x4f68a5[_0x54c3f8(0x123)]+'.\x20Contact\x20support\x20at\x20info.alphatechs.ai@gmail.com.\x20Exiting.');process[_0x54c3f8(0xf4)](0x1);return;}console['error'](_0x54c3f8(0x17d)+_0x4f68a5[_0x54c3f8(0x124)][_0x54c3f8(0x136)]),await this[_0x54c3f8(0x12d)](),this[_0x54c3f8(0xcc)]=setInterval(()=>{const _0x170938=_0x54c3f8;this[_0x170938(0x12d)]()[_0x170938(0x178)](_0x101b02=>{const _0x4545ac=_0x170938;console[_0x4545ac(0x125)](_0x4545ac(0x161),_0x101b02[_0x4545ac(0xfc)]);});},0x18*0x3c*0x3c*0x3e8);}this[_0x54c3f8(0xda)]=spawnBackends(this[_0x54c3f8(0x127)]),this[_0x54c3f8(0xff)]=!![];for(const _0x51e424 of Object[_0x54c3f8(0x10f)](this[_0x54c3f8(0xda)])){_0x51e424[_0x54c3f8(0x176)]();}this[_0x54c3f8(0xd2)]=_0x2429cb=>{const _0x374e56=_0x54c3f8;this[_0x374e56(0x179)](_0x2429cb['toString']());},process[_0x54c3f8(0x11d)]['on'](_0x54c3f8(0x151),this[_0x54c3f8(0xd2)]);}['handleClientData'](_0x34b8ee){const _0x445b2a=_0x9e711c;this[_0x445b2a(0x157)]+=_0x34b8ee;const _0x51b1b7=this[_0x445b2a(0x157)][_0x445b2a(0xd8)]('\x0a');this[_0x445b2a(0x157)]=_0x51b1b7['pop']();for(const _0x5768f0 of _0x51b1b7){const _0x2411e0=_0x5768f0['trim']();if(!_0x2411e0)continue;try{const _0x390964=JSON[_0x445b2a(0x17b)](_0x2411e0);this['handleClientMessage'](_0x390964);}catch(_0x4c6425){console[_0x445b2a(0x125)](_0x445b2a(0x155),_0x5768f0,_0x4c6425[_0x445b2a(0xfc)]);}}}async['handleClientMessage'](_0x3fb898){const _0x4cbaec=_0x9e711c,{id:_0x41819b,method:_0x3ed631,params:_0x2ebf2f}=_0x3fb898;if(!_0x3ed631)return;if(_0x3ed631===_0x4cbaec(0x172)){let _0x2552bf=null;if(_0x2ebf2f){if(_0x2ebf2f[_0x4cbaec(0xc5)])_0x2552bf=uriToPath(_0x2ebf2f['rootUri']);else _0x2ebf2f[_0x4cbaec(0x120)]&&(_0x2552bf=path['normalize'](_0x2ebf2f[_0x4cbaec(0x120)]));}if(_0x2552bf){try{_0x2552bf=fs[_0x4cbaec(0x15b)](_0x2552bf);}catch(_0x53c1dd){_0x2552bf=path['resolve'](_0x2552bf);}_0x2552bf=findProjectRoot(_0x2552bf);if(fs['existsSync'](_0x2552bf)&&_0x2552bf!==this[_0x4cbaec(0x127)]){console['error']('[MCP\x20Agent]\x20Switching\x20project\x20path\x20from\x20'+this[_0x4cbaec(0x127)]+_0x4cbaec(0x149)+_0x2552bf);if(this[_0x4cbaec(0xda)])for(const _0x283c72 of Object[_0x4cbaec(0x10f)](this['backends'])){_0x283c72['stop']();}this[_0x4cbaec(0x127)]=_0x2552bf,this['backends']=spawnBackends(this[_0x4cbaec(0x127)]);for(const _0x1d4961 of Object[_0x4cbaec(0x10f)](this[_0x4cbaec(0xda)])){_0x1d4961['start']();}}}Promise[_0x4cbaec(0x11f)](Object[_0x4cbaec(0x10f)](this['backends'])['map'](_0x1b3f31=>_0x1b3f31['sendRequest'](_0x4cbaec(0x172),_0x2ebf2f)[_0x4cbaec(0x178)](_0x46dcfb=>{const _0x43e083=_0x4cbaec;console[_0x43e083(0x125)](_0x43e083(0x110)+(_0x1b3f31[_0x43e083(0x12f)]||_0x1b3f31[_0x43e083(0xc0)])+':',_0x46dcfb[_0x43e083(0xfc)]);})));const _0x334b14={};_0x334b14[_0x4cbaec(0xdd)]=![];const _0x2dfebc={};_0x2dfebc[_0x4cbaec(0xfb)]=_0x334b14;const _0x8639b5={};_0x8639b5[_0x4cbaec(0xc0)]=_0x4cbaec(0x12e),_0x8639b5[_0x4cbaec(0x150)]=_0x4cbaec(0x15f);const _0x5ef6b9={};_0x5ef6b9['protocolVersion']=_0x2ebf2f['protocolVersion']||_0x4cbaec(0xec),_0x5ef6b9[_0x4cbaec(0x169)]=_0x2dfebc,_0x5ef6b9[_0x4cbaec(0xce)]=_0x8639b5;const _0x2c9577={};_0x2c9577[_0x4cbaec(0xf0)]=_0x4cbaec(0x16f),_0x2c9577['id']=_0x41819b,_0x2c9577['result']=_0x5ef6b9;const _0x3d709f=_0x2c9577;this[_0x4cbaec(0x14e)](_0x3d709f);return;}if(_0x3ed631===_0x4cbaec(0x100)){try{const _0x2491cd=Object[_0x4cbaec(0xf5)](this[_0x4cbaec(0xda)])[_0x4cbaec(0xf1)](async([_0xfbdc98,_0x537258])=>{const _0x5e7d99=_0x4cbaec;try{const _0x4d87e5=await _0x537258['sendRequest'](_0x5e7d99(0x100)),_0x22bc85=_0x4d87e5&&_0x4d87e5[_0x5e7d99(0xdf)]&&_0x4d87e5[_0x5e7d99(0xdf)][_0x5e7d99(0xfb)]||[];return translateToolList(_0x22bc85,_0xfbdc98);}catch(_0x4dad4e){return console[_0x5e7d99(0x125)](_0x5e7d99(0x105)+_0xfbdc98+':',_0x4dad4e[_0x5e7d99(0xfc)]),[];}}),_0x2188a6=await Promise[_0x4cbaec(0x11f)](_0x2491cd),_0x32cef4=_0x2188a6['flat'](),_0x3965dc={};_0x3965dc[_0x4cbaec(0x17a)]=_0x4cbaec(0x15c),_0x3965dc['properties']={},_0x3965dc[_0x4cbaec(0xe2)]=[];const _0x117cdd={};_0x117cdd['name']=_0x4cbaec(0x14b),_0x117cdd[_0x4cbaec(0xcf)]='Returns\x20the\x20health\x20status\x20of\x20all\x20MCP\x20Agent\x20backend\x20services.\x20Use\x20this\x20to\x20diagnose\x20connectivity\x20issues.',_0x117cdd[_0x4cbaec(0xc2)]=_0x3965dc,_0x32cef4[_0x4cbaec(0xf9)](_0x117cdd);const _0x487e63=this[_0x4cbaec(0xdc)]();console['error'](_0x4cbaec(0x147)+_0x32cef4[_0x4cbaec(0x118)]+_0x4cbaec(0xc8)+_0x487e63);const _0x24c8a2={};_0x24c8a2[_0x4cbaec(0xfb)]=_0x32cef4;const _0x30a7e1={};_0x30a7e1[_0x4cbaec(0xf0)]=_0x4cbaec(0x16f),_0x30a7e1['id']=_0x41819b,_0x30a7e1['result']=_0x24c8a2;const _0x2c5080=_0x30a7e1;this[_0x4cbaec(0x14e)](_0x2c5080);}catch(_0xc404fd){this[_0x4cbaec(0xcd)](_0x41819b,-0x7f5b,_0x4cbaec(0x142)+_0xc404fd['message']);}return;}if(_0x3ed631===_0x4cbaec(0x16e)){const _0x4c0dbb=_0x2ebf2f[_0x4cbaec(0xc0)];if(_0x4c0dbb===_0x4cbaec(0x14b)){const _0x33566b={};for(const [_0x33c1b6,_0x7a0595]of Object['entries'](this[_0x4cbaec(0xda)])){_0x33566b[_0x33c1b6]=_0x7a0595[_0x4cbaec(0xf8)]();}const _0x24594c={'jsonrpc':_0x4cbaec(0x16f),'id':_0x41819b,'result':{'content':[{'type':_0x4cbaec(0x14d),'text':JSON['stringify'](_0x33566b,null,0x2)}]}};this['writeToClient'](_0x24594c);return;}const _0x10ccf6=mapExposedToOriginal(_0x4c0dbb);if(!_0x10ccf6)return this[_0x4cbaec(0xcd)](_0x41819b,-0x7f59,'Tool\x20not\x20found:\x20'+_0x4c0dbb);try{const _0xfad50d=this[_0x4cbaec(0xda)][_0x10ccf6[_0x4cbaec(0xdb)]];if(!_0xfad50d)return this[_0x4cbaec(0xcd)](_0x41819b,-0x7f5b,'Target\x20backend\x20'+_0x10ccf6[_0x4cbaec(0xdb)]+_0x4cbaec(0xca));const _0x4b0bf2={..._0x2ebf2f};_0x4b0bf2[_0x4cbaec(0xc0)]=_0x10ccf6[_0x4cbaec(0x163)];const _0xdc590d={..._0x3fb898};_0xdc590d[_0x4cbaec(0x138)]=_0x4b0bf2;const _0x11e963=_0xdc590d,_0x28bff5=await _0xfad50d['forwardRequest'](_0x11e963);this[_0x4cbaec(0x14e)](_0x28bff5);}catch(_0x31b415){this['writeError'](_0x41819b,-0x7f5b,_0x4cbaec(0x148)+_0x31b415[_0x4cbaec(0xfc)]);}return;}for(const _0x36bc5b of Object['values'](this[_0x4cbaec(0xda)])){_0x36bc5b['child']&&_0x36bc5b[_0x4cbaec(0x107)]['stdin'][_0x4cbaec(0x129)](JSON[_0x4cbaec(0x109)](_0x3fb898)+'\x0a');}}['writeToClient'](_0x1be561){const _0x123167=_0x9e711c;this[_0x123167(0x16c)][_0x123167(0x129)](JSON['stringify'](_0x1be561)+'\x0a');}['writeError'](_0x26c9b8,_0x3ef10c,_0x5d6a0f){const _0x1981b8=_0x9e711c,_0x5da7cb={};_0x5da7cb['code']=_0x3ef10c,_0x5da7cb[_0x1981b8(0xfc)]=_0x5d6a0f;const _0x15f0e4={};_0x15f0e4[_0x1981b8(0xf0)]='2.0',_0x15f0e4['id']=_0x26c9b8,_0x15f0e4[_0x1981b8(0x125)]=_0x5da7cb;const _0x2d0fff=_0x15f0e4;this['writeToClient'](_0x2d0fff);}['stop'](){const _0x514590=_0x9e711c;this[_0x514590(0xff)]=![];this['heartbeatInterval']&&(clearInterval(this[_0x514590(0xcc)]),this[_0x514590(0xcc)]=null);this[_0x514590(0xd2)]&&(process[_0x514590(0x11d)]['removeListener'](_0x514590(0x151),this['stdinListener']),this[_0x514590(0xd2)]=null,process['stdin']['pause']());if(this[_0x514590(0xda)])for(const _0x2d6c5c of Object['values'](this['backends'])){_0x2d6c5c[_0x514590(0x11a)]();}}[_0x9e711c(0xdc)](){const _0x28d11b=_0x9e711c;if(!this[_0x28d11b(0xda)])return _0x28d11b(0x116);return Object[_0x28d11b(0xf5)](this[_0x28d11b(0xda)])['map'](([_0x50dae8,_0x271718])=>{const _0xb5b65e=_0x28d11b,_0x146714=_0x271718[_0xb5b65e(0xf8)](),_0x2484a9=_0x146714[_0xb5b65e(0x13d)]===_0xb5b65e(0xe1)?'✅':_0x146714['state']===_0xb5b65e(0x166)?'❌':_0x146714[_0xb5b65e(0x13d)]===_0xb5b65e(0x103)?'🔄':'⏳';return''+_0x2484a9+_0x146714[_0xb5b65e(0x12f)]+'('+_0x146714[_0xb5b65e(0x13d)]+')';})[_0x28d11b(0x143)](',\x20');}}const _0x3a0cf4={};function _0x56b0(_0xfc1983,_0x3b151a){_0xfc1983=_0xfc1983-0xbe;const _0x55c5a0=_0x55c5();let _0x56b076=_0x55c5a0[_0xfc1983];if(_0x56b0['iTWPjs']===undefined){var _0x246d5a=function(_0x43c6c9){const _0x4e39b6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x181773='',_0x3e44d2='';for(let _0x56e3fc=0x0,_0x541553,_0x19d524,_0x57a604=0x0;_0x19d524=_0x43c6c9['charAt'](_0x57a604++);~_0x19d524&&(_0x541553=_0x56e3fc%0x4?_0x541553*0x40+_0x19d524:_0x19d524,_0x56e3fc++%0x4)?_0x181773+=String['fromCharCode'](0xff&_0x541553>>(-0x2*_0x56e3fc&0x6)):0x0){_0x19d524=_0x4e39b6['indexOf'](_0x19d524);}for(let _0x11da59=0x0,_0x1954a1=_0x181773['length'];_0x11da59<_0x1954a1;_0x11da59++){_0x3e44d2+='%'+('00'+_0x181773['charCodeAt'](_0x11da59)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e44d2);};_0x56b0['KoDvnk']=_0x246d5a,_0x56b0['edlodl']={},_0x56b0['iTWPjs']=!![];}const _0x44b3c7=_0x55c5a0[0x0],_0x19c653=_0xfc1983+_0x44b3c7,_0x16ba3d=_0x56b0['edlodl'][_0x19c653];return!_0x16ba3d?(_0x56b076=_0x56b0['KoDvnk'](_0x56b076),_0x56b0['edlodl'][_0x19c653]=_0x56b076):_0x56b076=_0x16ba3d,_0x56b076;}_0x3a0cf4[_0x9e711c(0x153)]=ProxyServer,module['exports']=_0x3a0cf4;if(require['main']===module){const server=new ProxyServer();server['start']()[_0x9e711c(0x178)](_0xb93860=>{const _0x242d03=_0x9e711c;console[_0x242d03(0x125)](_0x242d03(0xd3),_0xb93860[_0x242d03(0xfc)]),process[_0x242d03(0xf4)](0x1);});}
|
|
1
|
+
function _0x3639(_0x462711,_0x26c3ef){_0x462711=_0x462711-0xa0;const _0xc32416=_0xc324();let _0x3639ac=_0xc32416[_0x462711];if(_0x3639['JItvEr']===undefined){var _0x4da72c=function(_0x8372f){const _0x3b1fe8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3d21ef='',_0x20ef30='';for(let _0x22e6a5=0x0,_0x296591,_0x218a3f,_0x33221d=0x0;_0x218a3f=_0x8372f['charAt'](_0x33221d++);~_0x218a3f&&(_0x296591=_0x22e6a5%0x4?_0x296591*0x40+_0x218a3f:_0x218a3f,_0x22e6a5++%0x4)?_0x3d21ef+=String['fromCharCode'](0xff&_0x296591>>(-0x2*_0x22e6a5&0x6)):0x0){_0x218a3f=_0x3b1fe8['indexOf'](_0x218a3f);}for(let _0xb478a3=0x0,_0x5aad45=_0x3d21ef['length'];_0xb478a3<_0x5aad45;_0xb478a3++){_0x20ef30+='%'+('00'+_0x3d21ef['charCodeAt'](_0xb478a3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20ef30);};_0x3639['iCeZtc']=_0x4da72c,_0x3639['qjkNep']={},_0x3639['JItvEr']=!![];}const _0xaedac6=_0xc32416[0x0],_0x6b6e88=_0x462711+_0xaedac6,_0x3ead54=_0x3639['qjkNep'][_0x6b6e88];return!_0x3ead54?(_0x3639ac=_0x3639['iCeZtc'](_0x3639ac),_0x3639['qjkNep'][_0x6b6e88]=_0x3639ac):_0x3639ac=_0x3ead54,_0x3639ac;}const _0x5d1c52=_0x3639;(function(_0x53bbfc,_0x3f15ce){const _0x550278=_0x3639,_0xf04440=_0x53bbfc();while(!![]){try{const _0x48894d=parseInt(_0x550278(0x179))/0x1+parseInt(_0x550278(0xd5))/0x2*(-parseInt(_0x550278(0x11b))/0x3)+parseInt(_0x550278(0xb7))/0x4*(-parseInt(_0x550278(0x168))/0x5)+-parseInt(_0x550278(0x118))/0x6+-parseInt(_0x550278(0xf4))/0x7+-parseInt(_0x550278(0x108))/0x8+parseInt(_0x550278(0xf3))/0x9;if(_0x48894d===_0x3f15ce)break;else _0xf04440['push'](_0xf04440['shift']());}catch(_0x4c8cb5){_0xf04440['push'](_0xf04440['shift']());}}}(_0xc324,0x1f094));const fs=require('fs'),path=require(_0x5d1c52(0x10c)),os=require('os'),http=require(_0x5d1c52(0x13e)),https=require(_0x5d1c52(0x172)),{verifyLicense}=require(_0x5d1c52(0x159)),{spawnBackends}=require(_0x5d1c52(0xc6)),{translateToolList,mapExposedToOriginal}=require('./router.js'),{PipelineManager}=require('./pipeline.js');function uriToPath(_0xe5c432){const _0x46710f=_0x5d1c52;if(!_0xe5c432)return null;try{const _0x15f2dc=new URL(_0xe5c432);if(_0x15f2dc[_0x46710f(0x177)]==='file:'){let _0x5300c9=decodeURIComponent(_0x15f2dc['pathname']);return process['platform']==='win32'&&_0x5300c9[_0x46710f(0xe3)]('/')&&_0x5300c9['slice'](0x2,0x3)===':'&&(_0x5300c9=_0x5300c9[_0x46710f(0x13b)](0x1)),path[_0x46710f(0xbc)](_0x5300c9);}}catch(_0xddb529){if(_0xe5c432[_0x46710f(0xe3)](_0x46710f(0x14b))){let _0x3e1256=_0xe5c432[_0x46710f(0x13b)](0x7);return process[_0x46710f(0x17c)]===_0x46710f(0x115)&&_0x3e1256['startsWith']('/')&&_0x3e1256[_0x46710f(0x13b)](0x2,0x3)===':'&&(_0x3e1256=_0x3e1256['slice'](0x1)),path[_0x46710f(0xbc)](decodeURIComponent(_0x3e1256));}}return null;}function findProjectRoot(_0x29b3ac){const _0x4e0d5a=_0x5d1c52;if(!_0x29b3ac)return _0x29b3ac;let _0x122ff4=_0x29b3ac;while(_0x122ff4){const _0x265c14=path[_0x4e0d5a(0x167)](_0x122ff4,_0x4e0d5a(0x15a));if(fs[_0x4e0d5a(0xc9)](_0x265c14)&&fs['statSync'](_0x265c14)[_0x4e0d5a(0xa5)]())return _0x122ff4;const _0x5c36b5=path['dirname'](_0x122ff4);if(_0x5c36b5===_0x122ff4)break;_0x122ff4=_0x5c36b5;}return _0x29b3ac;}function httpRequest(_0x493c74,_0x90e982={}){return new Promise((_0x182ff0,_0x42bc6e)=>{const _0x1c7b26=_0x3639;try{const _0xfd7a7=new URL(_0x493c74),_0x1bc200=_0xfd7a7[_0x1c7b26(0x177)]==='https:'?https:http,_0x532359={'User-Agent':_0x1c7b26(0xd7)+process['version']+')',..._0x90e982[_0x1c7b26(0xed)]},_0x53505a=_0x532359;if(_0x90e982[_0x1c7b26(0x145)]){const _0x2ddc71=typeof _0x90e982[_0x1c7b26(0x145)]===_0x1c7b26(0xae)?_0x90e982[_0x1c7b26(0x145)]:JSON[_0x1c7b26(0xac)](_0x90e982[_0x1c7b26(0x145)]);!_0x53505a[_0x1c7b26(0xc4)]&&!_0x53505a['content-length']&&(_0x53505a[_0x1c7b26(0xc4)]=Buffer[_0x1c7b26(0x102)](_0x2ddc71));}const _0x5bd26b={};_0x5bd26b['method']=_0x90e982[_0x1c7b26(0x16e)]||'GET',_0x5bd26b[_0x1c7b26(0xcb)]=_0xfd7a7[_0x1c7b26(0xcb)],_0x5bd26b[_0x1c7b26(0xca)]=_0xfd7a7['port']||(_0xfd7a7[_0x1c7b26(0x177)]===_0x1c7b26(0x178)?0x1bb:0x50),_0x5bd26b[_0x1c7b26(0x10c)]=_0xfd7a7[_0x1c7b26(0x16c)]+_0xfd7a7[_0x1c7b26(0xf7)],_0x5bd26b[_0x1c7b26(0xed)]=_0x53505a;const _0xe9b6fa=_0x5bd26b,_0x465405=_0x1bc200[_0x1c7b26(0xd1)](_0xe9b6fa,_0x20fdb2=>{const _0x2ac327=_0x1c7b26;let _0x619f4='';_0x20fdb2['on'](_0x2ac327(0xa2),_0x34de19=>{_0x619f4+=_0x34de19;}),_0x20fdb2['on'](_0x2ac327(0x120),()=>{const _0x27352=_0x2ac327;_0x182ff0({'ok':_0x20fdb2['statusCode']>=0xc8&&_0x20fdb2['statusCode']<0x12c,'status':_0x20fdb2[_0x27352(0x149)],'json':async()=>JSON[_0x27352(0xba)](_0x619f4),'text':async()=>_0x619f4});});});_0x465405['on']('error',_0x12fbff=>{_0x42bc6e(_0x12fbff);}),_0x90e982[_0x1c7b26(0xa9)]&&(_0x90e982[_0x1c7b26(0xa9)]['aborted']?_0x465405['destroy'](new Error(_0x1c7b26(0xc2))):_0x90e982[_0x1c7b26(0xa9)]['addEventListener']('abort',()=>{const _0x49c62f=_0x1c7b26;_0x465405['destroy'](new Error(_0x49c62f(0xc2)));})),_0x90e982[_0x1c7b26(0x145)]&&_0x465405['write'](_0x90e982[_0x1c7b26(0x145)]),_0x465405[_0x1c7b26(0x120)]();}catch(_0x24082e){_0x42bc6e(_0x24082e);}});}class ProxyServer{constructor(_0x3a08f4={}){const _0x36f52c=_0x5d1c52;let _0x1a317e=_0x3a08f4[_0x36f52c(0x134)]||process['cwd']();try{_0x1a317e=fs['realpathSync'](_0x1a317e);}catch(_0x474fe5){_0x1a317e=path[_0x36f52c(0x122)](_0x1a317e);}_0x1a317e=findProjectRoot(_0x1a317e),this['projectPath']=_0x1a317e,this[_0x36f52c(0x170)]=_0x3a08f4[_0x36f52c(0x170)]||this['loadLicenseKey'](),this[_0x36f52c(0x140)]=_0x3a08f4[_0x36f52c(0x140)],this[_0x36f52c(0x147)]=_0x3a08f4[_0x36f52c(0x147)]||_0x3a08f4[_0x36f52c(0xfa)],this[_0x36f52c(0x104)]=null,this[_0x36f52c(0x133)]=new PipelineManager(_0x1a317e),this[_0x36f52c(0xf0)]='',this[_0x36f52c(0x111)]=![],this['stdout']=_0x3a08f4[_0x36f52c(0x12c)]||process[_0x36f52c(0x12c)],this[_0x36f52c(0x12a)]=_0x3a08f4[_0x36f52c(0x12a)]||path['join'](__dirname,_0x36f52c(0x163),'integrity-manifest.json');}[_0x5d1c52(0x10b)](){const _0x182b97=_0x5d1c52;try{const _0xec7b5e=path[_0x182b97(0x167)](__dirname,_0x182b97(0xd4));if(fs['existsSync'](_0xec7b5e))return JSON[_0x182b97(0xba)](fs[_0x182b97(0x12f)](_0xec7b5e,_0x182b97(0x15b)))[_0x182b97(0x126)]||null;}catch(_0x3c596c){}return null;}[_0x5d1c52(0x174)](){const _0x12ec52=_0x5d1c52;try{const _0x576f92=path[_0x12ec52(0x167)](this[_0x12ec52(0x134)],_0x12ec52(0x15a),_0x12ec52(0x14c));if(!fs['existsSync'](_0x576f92))return;const _0x5d1b36=JSON['parse'](fs[_0x12ec52(0x12f)](_0x576f92,_0x12ec52(0x15b))),_0x4ea26d=_0x5d1b36[_0x12ec52(0x126)],_0x69d196=this[_0x12ec52(0x10b)]();if(!_0x69d196||!_0x4ea26d)return;if(_0x69d196===_0x4ea26d)return;console[_0x12ec52(0xaa)]('[MCP\x20Agent]\x20Version\x20mismatch\x20detected:\x20deployed='+_0x4ea26d+_0x12ec52(0xcd)+_0x69d196),console['error'](_0x12ec52(0xa8));const _0x36137f=path['join'](__dirname,_0x12ec52(0xdc));if(!fs[_0x12ec52(0xc9)](_0x36137f)){console['error'](_0x12ec52(0x153));return;}if(!this[_0x12ec52(0x140)])try{const {getFingerprint:_0x32b4cc}=require('../license/fingerprint.js');this[_0x12ec52(0x140)]=_0x32b4cc();}catch(_0x2bf7eb){console['error']('[MCP\x20Agent]\x20Auto-sync\x20skipped:\x20cannot\x20determine\x20device\x20ID.');return;}const {deployProject:_0x37fd15}=require(_0x36137f),_0x57d39c={};_0x57d39c[_0x12ec52(0x170)]=this[_0x12ec52(0x170)],_0x57d39c[_0x12ec52(0x134)]=this['projectPath'],_0x57d39c[_0x12ec52(0x13d)]=_0x5d1b36[_0x12ec52(0x10f)],_0x57d39c['deviceId']=this[_0x12ec52(0x140)],_0x57d39c[_0x12ec52(0xfa)]=this[_0x12ec52(0x147)],_0x57d39c['isUpdate']=!![],_0x57d39c[_0x12ec52(0xf5)]=![],_0x37fd15(_0x57d39c),this[_0x12ec52(0x133)]=new PipelineManager(this[_0x12ec52(0x134)]),console[_0x12ec52(0xaa)](_0x12ec52(0x148)+_0x4ea26d+'\x20→\x20'+_0x69d196);}catch(_0x542b78){console['error'](_0x12ec52(0x138)+_0x542b78[_0x12ec52(0xa3)]),console['error'](_0x12ec52(0x17e)+this[_0x12ec52(0x134)]+'\x22');}}[_0x5d1c52(0x129)](){const _0x5e7766=_0x5d1c52,_0x5a98fa=path['join'](os[_0x5e7766(0xb6)](),_0x5e7766(0x16f),_0x5e7766(0x114));if(fs[_0x5e7766(0xc9)](_0x5a98fa))return fs[_0x5e7766(0x12f)](_0x5a98fa,'utf8')[_0x5e7766(0x103)]();return null;}async[_0x5d1c52(0x16b)](){const _0x5b31d7=_0x5d1c52,_0x53c226=process.env.MCP_SKIP_LICENSE_CHECK==='1';if(_0x53c226||!this[_0x5b31d7(0x170)])return;const _0x27b0e2=this[_0x5b31d7(0x170)][_0x5b31d7(0x156)]('.');if(_0x27b0e2[_0x5b31d7(0x166)]!==0x3)return;let _0x3c265d;try{_0x3c265d=JSON[_0x5b31d7(0xba)](Buffer[_0x5b31d7(0x152)](_0x27b0e2[0x1],_0x5b31d7(0x12d))[_0x5b31d7(0xa7)](_0x5b31d7(0x15b)));}catch(_0x2b28d0){return;}if(!_0x3c265d||!_0x3c265d['exp'])return;const _0x35add8=0x6*0x18*0xe10*0x3e8,_0x11f754=_0x3c265d[_0x5b31d7(0xef)]-Date[_0x5b31d7(0x139)]();if(_0x11f754<_0x35add8){console[_0x5b31d7(0xaa)](_0x5b31d7(0x125));const _0x51c08e=process.env.MCP_ACTIVATION_URL||_0x5b31d7(0x109),_0x1fde25=_0x51c08e+'/heartbeat',_0x30bf27=new AbortController(),_0x2c60ec=setTimeout(()=>_0x30bf27[_0x5b31d7(0x137)](),0x1388);try{const _0x1369be={};_0x1369be[_0x5b31d7(0x127)]=_0x5b31d7(0x160);const _0x39ff9f={};_0x39ff9f[_0x5b31d7(0xd2)]=this[_0x5b31d7(0x170)];const _0x6df2af=await httpRequest(_0x1fde25,{'method':'POST','headers':_0x1369be,'body':JSON[_0x5b31d7(0xac)](_0x39ff9f),'signal':_0x30bf27[_0x5b31d7(0xa9)]});clearTimeout(_0x2c60ec);if(_0x6df2af['status']===0x193){console[_0x5b31d7(0xaa)](_0x5b31d7(0xb0)),process[_0x5b31d7(0x116)](0x1);return;}if(_0x6df2af[_0x5b31d7(0x10e)]===0x191){console[_0x5b31d7(0xaa)](_0x5b31d7(0xc8)),process[_0x5b31d7(0x116)](0x1);return;}if(!_0x6df2af['ok']){console['error']('[MCP\x20Agent]\x20Heartbeat\x20refresh\x20failed:\x20Server\x20returned\x20'+_0x6df2af[_0x5b31d7(0x10e)]+'.\x20Continuing\x20with\x20cached\x20token.');return;}const _0xfa388a=await _0x6df2af[_0x5b31d7(0x105)]();if(_0xfa388a&&_0xfa388a[_0x5b31d7(0xd2)]){this[_0x5b31d7(0x170)]=_0xfa388a[_0x5b31d7(0xd2)];const _0x3dfe51=path[_0x5b31d7(0x167)](os[_0x5b31d7(0xb6)](),'.anhdh','license.key');try{const _0x29991c={};_0x29991c['recursive']=!![],fs[_0x5b31d7(0x143)](path['dirname'](_0x3dfe51),_0x29991c),fs[_0x5b31d7(0x117)](_0x3dfe51,_0xfa388a[_0x5b31d7(0xd2)],'utf8'),console['error'](_0x5b31d7(0xda));}catch(_0x371ebb){console['error'](_0x5b31d7(0xb4),_0x371ebb[_0x5b31d7(0xa3)]);}}}catch(_0xe6df8a){clearTimeout(_0x2c60ec),console[_0x5b31d7(0xaa)](_0x5b31d7(0xb3),_0xe6df8a['message'],'.\x20Continuing\x20with\x20cached\x20token.');}}}async[_0x5d1c52(0xf8)](){const _0x1f553d=_0x5d1c52;console[_0x1f553d(0xaa)](_0x1f553d(0x101)+this[_0x1f553d(0x134)]);if(!this[_0x1f553d(0x147)]){if(process.env.MCP_ADMIN_DIR){const _0x9e2a10=path[_0x1f553d(0x167)](process.env.MCP_ADMIN_DIR,_0x1f553d(0x110));fs['existsSync'](_0x9e2a10)&&(this[_0x1f553d(0x147)]=fs['readFileSync'](_0x9e2a10,_0x1f553d(0x15b))[_0x1f553d(0x103)]());}if(!this[_0x1f553d(0x147)]){let _0x32f285=__dirname;while(_0x32f285){const _0xb7462b=path['join'](_0x32f285,_0x1f553d(0xb9),_0x1f553d(0x110));if(fs['existsSync'](_0xb7462b)){this[_0x1f553d(0x147)]=fs[_0x1f553d(0x12f)](_0xb7462b,'utf8')['trim']();break;}const _0x248ed4=path[_0x1f553d(0x144)](_0x32f285);if(_0x248ed4===_0x32f285)break;_0x32f285=_0x248ed4;}}}const _0x5d2cc0=this[_0x1f553d(0x12a)],_0x2f9c6d=!__dirname[_0x1f553d(0x124)](/\\/g,'/')['split']('/')[_0x1f553d(0x131)](_0x1f553d(0xab)),_0x4a881f=process.env.MCP_SKIP_INTEGRITY_CHECK==='1'||_0x2f9c6d&&!fs[_0x1f553d(0xc9)](_0x5d2cc0);if(!_0x4a881f){const _0x1ec940=require(_0x1f553d(0xfb));if(!fs[_0x1f553d(0xc9)](_0x5d2cc0)){console['error']('[MCP\x20Agent]\x20Integrity\x20check\x20failed:\x20integrity-manifest.json\x20missing.\x20Exiting.'),process['exit'](0x1);return;}let _0x48ce32;try{_0x48ce32=JSON[_0x1f553d(0xba)](fs[_0x1f553d(0x12f)](_0x5d2cc0,_0x1f553d(0x15b)));}catch(_0x43368a){console[_0x1f553d(0xaa)](_0x1f553d(0xb5)),process[_0x1f553d(0x116)](0x1);return;}if(!_0x48ce32[_0x1f553d(0xe0)]||!_0x48ce32[_0x1f553d(0x151)]){console[_0x1f553d(0xaa)](_0x1f553d(0x121)),process['exit'](0x1);return;}const _0x3dc80b=this[_0x1f553d(0x147)]||require(_0x1f553d(0x159))[_0x1f553d(0x162)];try{const _0x24913f=JSON['stringify'](_0x48ce32[_0x1f553d(0xe0)]),_0x35498c=Buffer[_0x1f553d(0x152)](_0x48ce32[_0x1f553d(0x151)],'base64url'),_0xb55776=_0x1ec940['verify'](null,Buffer['from'](_0x24913f),_0x3dc80b,_0x35498c);if(!_0xb55776){console[_0x1f553d(0xaa)](_0x1f553d(0x17a)),process[_0x1f553d(0x116)](0x1);return;}}catch(_0x1d4200){console[_0x1f553d(0xaa)](_0x1f553d(0x11f)),process[_0x1f553d(0x116)](0x1);return;}const _0x4dfa20=path[_0x1f553d(0x167)](__dirname,'../..');for(const [_0x15766b,_0x45d71b]of Object[_0x1f553d(0x12b)](_0x48ce32['files'])){const _0x4a06d7=path[_0x1f553d(0x167)](_0x4dfa20,_0x15766b);if(!fs[_0x1f553d(0xc9)](_0x4a06d7)){console[_0x1f553d(0xaa)](_0x1f553d(0xaf)+_0x15766b+_0x1f553d(0x112)),process['exit'](0x1);return;}try{const _0x32bf94=fs['readFileSync'](_0x4a06d7),_0x14c9d1=_0x1ec940['createHash'](_0x1f553d(0xdd))[_0x1f553d(0x107)](_0x32bf94)['digest'](_0x1f553d(0xe9));if(_0x14c9d1!==_0x45d71b){console[_0x1f553d(0xaa)](_0x1f553d(0xaf)+_0x15766b+_0x1f553d(0x112)),process['exit'](0x1);return;}}catch(_0x160353){console[_0x1f553d(0xaa)]('[MCP\x20Agent]\x20Integrity\x20check\x20failed:\x20'+_0x15766b+_0x1f553d(0x112)),process[_0x1f553d(0x116)](0x1);return;}}}const _0xc5355b=process.env.MCP_SKIP_LICENSE_CHECK==='1';if(!_0xc5355b){if(!this[_0x1f553d(0x140)]){const {getFingerprint:_0x2c8b4b}=require('../license/fingerprint.js');this[_0x1f553d(0x140)]=_0x2c8b4b();}const _0x21025c=verifyLicense(this[_0x1f553d(0x170)],this[_0x1f553d(0x140)],this[_0x1f553d(0x147)]);if(!_0x21025c[_0x1f553d(0x14e)]){if(_0x21025c[_0x1f553d(0x157)]===_0x1f553d(0xd3)){const _0x5a5e32=_0x21025c[_0x1f553d(0x113)]||{},_0x1092fa=_0x5a5e32['exp']?new Date(_0x5a5e32[_0x1f553d(0xef)])[_0x1f553d(0xec)]()[_0x1f553d(0x156)]('T')[0x0]:_0x1f553d(0x123);console[_0x1f553d(0xaa)](_0x1f553d(0x11c)+_0x1092fa+_0x1f553d(0x164));}else console[_0x1f553d(0xaa)]('[MCP\x20Agent]\x20License\x20key\x20verification\x20failed:\x20'+_0x21025c[_0x1f553d(0x157)]+_0x1f553d(0x132));process['exit'](0x1);return;}console[_0x1f553d(0xaa)](_0x1f553d(0xd6)+_0x21025c[_0x1f553d(0x113)][_0x1f553d(0x175)]),await this[_0x1f553d(0x16b)](),this['heartbeatInterval']=setInterval(()=>{const _0x54984c=_0x1f553d;this[_0x54984c(0x16b)]()[_0x54984c(0xe7)](_0xa4da37=>{const _0x1f5ede=_0x54984c;console['error'](_0x1f5ede(0xf9),_0xa4da37['message']);});},0x18*0x3c*0x3c*0x3e8);}this['autoSyncProjectFiles'](),this['backends']=spawnBackends(this[_0x1f553d(0x134)]),this[_0x1f553d(0x111)]=!![];for(const _0x4e93cc of Object[_0x1f553d(0x171)](this['backends'])){_0x4e93cc['start']();}this['stdinListener']=_0xbd0fdd=>{this['handleClientData'](_0xbd0fdd['toString']());},process[_0x1f553d(0xbf)]['on']('data',this[_0x1f553d(0x135)]);}['handleClientData'](_0xeb2e){const _0xbf5635=_0x5d1c52;this[_0xbf5635(0xf0)]+=_0xeb2e;const _0x2c13fb=this[_0xbf5635(0xf0)][_0xbf5635(0x156)]('\x0a');this[_0xbf5635(0xf0)]=_0x2c13fb[_0xbf5635(0x106)]();for(const _0x54ce16 of _0x2c13fb){const _0x462e15=_0x54ce16[_0xbf5635(0x103)]();if(!_0x462e15)continue;try{const _0x3f4f9d=JSON[_0xbf5635(0xba)](_0x462e15);this[_0xbf5635(0x141)](_0x3f4f9d);}catch(_0xdc7b){console[_0xbf5635(0xaa)](_0xbf5635(0x14a),_0x54ce16,_0xdc7b[_0xbf5635(0xa3)]);}}}async[_0x5d1c52(0x141)](_0x248f17){const _0x5e1817=_0x5d1c52,{id:_0x314c83,method:_0x20aee1,params:_0x42a9c4}=_0x248f17;if(!_0x20aee1)return;if(_0x20aee1===_0x5e1817(0x11a)){let _0x541c4d=null;if(_0x42a9c4){if(_0x42a9c4[_0x5e1817(0xa1)])_0x541c4d=uriToPath(_0x42a9c4[_0x5e1817(0xa1)]);else _0x42a9c4['rootPath']&&(_0x541c4d=path['normalize'](_0x42a9c4[_0x5e1817(0xc7)]));}if(_0x541c4d){try{_0x541c4d=fs['realpathSync'](_0x541c4d);}catch(_0x3cb40a){_0x541c4d=path['resolve'](_0x541c4d);}_0x541c4d=findProjectRoot(_0x541c4d);if(fs['existsSync'](_0x541c4d)&&_0x541c4d!==this[_0x5e1817(0x134)]){console[_0x5e1817(0xaa)](_0x5e1817(0xe1)+this[_0x5e1817(0x134)]+_0x5e1817(0xad)+_0x541c4d);if(this[_0x5e1817(0x104)])for(const _0x25dc60 of Object[_0x5e1817(0x171)](this['backends'])){_0x25dc60[_0x5e1817(0x161)]();}this[_0x5e1817(0x134)]=_0x541c4d,this['pipelineManager']=new PipelineManager(_0x541c4d),this[_0x5e1817(0x104)]=spawnBackends(this[_0x5e1817(0x134)]);for(const _0x4e051e of Object[_0x5e1817(0x171)](this['backends'])){_0x4e051e[_0x5e1817(0xf8)]();}}}Promise[_0x5e1817(0x14d)](Object[_0x5e1817(0x171)](this['backends'])[_0x5e1817(0x154)](_0x5aa6d8=>_0x5aa6d8[_0x5e1817(0xde)](_0x5e1817(0x11a),_0x42a9c4)[_0x5e1817(0xe7)](_0x4bb861=>{const _0x5c42f8=_0x5e1817;console[_0x5c42f8(0xaa)](_0x5c42f8(0xb2)+(_0x5aa6d8[_0x5c42f8(0xfc)]||_0x5aa6d8[_0x5c42f8(0xf1)])+':',_0x4bb861[_0x5c42f8(0xa3)]);})));const _0x495a3d={};_0x495a3d[_0x5e1817(0x169)]=![];const _0x1fc18b={};_0x1fc18b[_0x5e1817(0xbd)]=_0x495a3d;const _0x506595={};_0x506595['name']='apt-mcp-agent',_0x506595[_0x5e1817(0x126)]='1.0.0';const _0x4c4119={};_0x4c4119[_0x5e1817(0xe4)]=_0x42a9c4[_0x5e1817(0xe4)]||_0x5e1817(0x100),_0x4c4119[_0x5e1817(0xb8)]=_0x1fc18b,_0x4c4119[_0x5e1817(0xcf)]=_0x506595;const _0x434383={};_0x434383[_0x5e1817(0x158)]=_0x5e1817(0xfe),_0x434383['id']=_0x314c83,_0x434383['result']=_0x4c4119;const _0x1f7d96=_0x434383;this[_0x5e1817(0xf2)](_0x1f7d96);return;}if(_0x20aee1===_0x5e1817(0xbb)){try{const _0x3cd6cf=Object['entries'](this[_0x5e1817(0x104)])[_0x5e1817(0x154)](async([_0x4accce,_0x5e2419])=>{const _0x1eecd8=_0x5e1817;try{const _0x5bf90=await _0x5e2419[_0x1eecd8(0xde)](_0x1eecd8(0xbb)),_0x535ae2=_0x5bf90&&_0x5bf90['result']&&_0x5bf90['result'][_0x1eecd8(0xbd)]||[];return translateToolList(_0x535ae2,_0x4accce);}catch(_0xd52c0a){return console['error']('[MCP\x20Agent]\x20tools/list\x20request\x20failed\x20for\x20service\x20'+_0x4accce+':',_0xd52c0a[_0x1eecd8(0xa3)]),[];}}),_0x8c36e5=await Promise[_0x5e1817(0x14d)](_0x3cd6cf),_0x297448=_0x8c36e5[_0x5e1817(0xce)](),_0x44dce2={};_0x44dce2[_0x5e1817(0x15f)]=_0x5e1817(0x15e),_0x44dce2[_0x5e1817(0xd9)]={},_0x44dce2[_0x5e1817(0xee)]=[];const _0x14d6ac={};_0x14d6ac[_0x5e1817(0xf1)]=_0x5e1817(0xff),_0x14d6ac['description']=_0x5e1817(0x11e),_0x14d6ac[_0x5e1817(0x146)]=_0x44dce2,_0x297448[_0x5e1817(0xc0)](_0x14d6ac);const _0xf9749e={};_0xf9749e['type']=_0x5e1817(0xae),_0xf9749e[_0x5e1817(0x128)]=['feature','bugfix'],_0xf9749e['description']=_0x5e1817(0xa0);const _0x4fa721={};_0x4fa721[_0x5e1817(0x15f)]=_0x5e1817(0xae),_0x4fa721[_0x5e1817(0x128)]=['grill-me','to-prd',_0x5e1817(0x150),'tdd',_0x5e1817(0x12e),_0x5e1817(0x142)],_0x4fa721[_0x5e1817(0xe8)]='The\x20step\x20ID\x20that\x20was\x20just\x20completed';const _0x54cfac={};_0x54cfac[_0x5e1817(0x15f)]=_0x5e1817(0xae),_0x54cfac[_0x5e1817(0x128)]=[_0x5e1817(0x16d)],_0x54cfac[_0x5e1817(0xe8)]=_0x5e1817(0xc1);const _0x1196dc={};_0x1196dc[_0x5e1817(0x15f)]=_0x5e1817(0xae),_0x1196dc[_0x5e1817(0xe8)]=_0x5e1817(0x10d);const _0x3e5d74={};_0x3e5d74[_0x5e1817(0xdf)]=_0xf9749e,_0x3e5d74[_0x5e1817(0xeb)]=_0x4fa721,_0x3e5d74['status']=_0x54cfac,_0x3e5d74[_0x5e1817(0xb1)]=_0x1196dc;const _0xc2cf98={};_0xc2cf98[_0x5e1817(0x15f)]='object',_0xc2cf98[_0x5e1817(0xd9)]=_0x3e5d74,_0xc2cf98[_0x5e1817(0xee)]=[_0x5e1817(0xdf),'step',_0x5e1817(0x10e),_0x5e1817(0xb1)];const _0x58d7f3={};_0x58d7f3[_0x5e1817(0xf1)]=_0x5e1817(0x13f),_0x58d7f3[_0x5e1817(0xe8)]='Record\x20a\x20pipeline\x20step\x20completion.\x20MANDATORY:\x20Call\x20this\x20after\x20completing\x20each\x20step\x20in\x20the\x20Feature\x20Development\x20or\x20Bug\x20Fix\x20pipeline.\x20The\x20tool\x20enforces\x20step\x20ordering\x20—\x20out-of-order\x20steps\x20are\x20rejected.\x20Pipelines:\x20\x22feature\x22\x20(grill-me\x20→\x20to-prd\x20→\x20to-issues\x20→\x20tdd\x20→\x20improve-architecture),\x20\x22bugfix\x22\x20(diagnose\x20→\x20grill-me\x20→\x20to-prd\x20→\x20to-issues\x20→\x20tdd).',_0x58d7f3[_0x5e1817(0x146)]=_0xc2cf98,_0x297448[_0x5e1817(0xc0)](_0x58d7f3);const _0x3eb25d={};_0x3eb25d[_0x5e1817(0x15f)]=_0x5e1817(0x15e),_0x3eb25d[_0x5e1817(0xd9)]={},_0x3eb25d['required']=[];const _0xadd750={};_0xadd750[_0x5e1817(0xf1)]=_0x5e1817(0x14f),_0xadd750['description']=_0x5e1817(0x11d),_0xadd750[_0x5e1817(0x146)]=_0x3eb25d,_0x297448[_0x5e1817(0xc0)](_0xadd750);const _0x58211c={};_0x58211c[_0x5e1817(0x15f)]=_0x5e1817(0x15e),_0x58211c[_0x5e1817(0xd9)]={},_0x58211c[_0x5e1817(0xee)]=[];const _0x51d880={};_0x51d880[_0x5e1817(0xf1)]=_0x5e1817(0x130),_0x51d880[_0x5e1817(0xe8)]=_0x5e1817(0xfd),_0x51d880[_0x5e1817(0x146)]=_0x58211c,_0x297448[_0x5e1817(0xc0)](_0x51d880);const _0x47dee1=this[_0x5e1817(0x119)]();console[_0x5e1817(0xaa)](_0x5e1817(0x13a)+_0x297448['length']+_0x5e1817(0xe2)+_0x47dee1);const _0x3519b4={};_0x3519b4[_0x5e1817(0xbd)]=_0x297448;const _0x4d7c1a={};_0x4d7c1a[_0x5e1817(0x158)]=_0x5e1817(0xfe),_0x4d7c1a['id']=_0x314c83,_0x4d7c1a[_0x5e1817(0xea)]=_0x3519b4;const _0x1c11cf=_0x4d7c1a;this[_0x5e1817(0xf2)](_0x1c11cf);}catch(_0x12f096){this[_0x5e1817(0x15c)](_0x314c83,-0x7f5b,_0x5e1817(0x165)+_0x12f096['message']);}return;}if(_0x20aee1==='tools/call'){const _0x10a343=_0x42a9c4[_0x5e1817(0xf1)];if(_0x10a343===_0x5e1817(0xff)){const _0x2dfb22={};for(const [_0x4170f7,_0x1af2c1]of Object[_0x5e1817(0x12b)](this[_0x5e1817(0x104)])){_0x2dfb22[_0x4170f7]=_0x1af2c1[_0x5e1817(0x136)]();}const _0x374097={'jsonrpc':_0x5e1817(0xfe),'id':_0x314c83,'result':{'content':[{'type':_0x5e1817(0x155),'text':JSON['stringify'](_0x2dfb22,null,0x2)}]}};this[_0x5e1817(0xf2)](_0x374097);return;}if(_0x10a343===_0x5e1817(0x13f)){const _0x4a9c41=_0x42a9c4[_0x5e1817(0x13c)]||{},_0x5ac6dc=this[_0x5e1817(0x133)][_0x5e1817(0x16a)](_0x4a9c41[_0x5e1817(0xdf)],_0x4a9c41[_0x5e1817(0xeb)],_0x4a9c41[_0x5e1817(0x10e)],_0x4a9c41[_0x5e1817(0xb1)]);this['writeToClient']({'jsonrpc':_0x5e1817(0xfe),'id':_0x314c83,'result':{'content':[{'type':'text','text':JSON[_0x5e1817(0xac)](_0x5ac6dc,null,0x2)}]}});return;}if(_0x10a343===_0x5e1817(0x14f)){const _0x42fedd=this[_0x5e1817(0x133)][_0x5e1817(0xe5)]();this[_0x5e1817(0xf2)]({'jsonrpc':'2.0','id':_0x314c83,'result':{'content':[{'type':_0x5e1817(0x155),'text':JSON[_0x5e1817(0xac)](_0x42fedd,null,0x2)}]}});return;}if(_0x10a343==='pipeline_reset'){const _0xa6b09a=this[_0x5e1817(0x133)]['reset']();this[_0x5e1817(0xf2)]({'jsonrpc':_0x5e1817(0xfe),'id':_0x314c83,'result':{'content':[{'type':_0x5e1817(0x155),'text':JSON[_0x5e1817(0xac)](_0xa6b09a,null,0x2)}]}});return;}const _0x21de0d=mapExposedToOriginal(_0x10a343);if(!_0x21de0d)return this['writeError'](_0x314c83,-0x7f59,_0x5e1817(0xcc)+_0x10a343);try{const _0x124b7a=this['backends'][_0x21de0d[_0x5e1817(0x17d)]];if(!_0x124b7a)return this[_0x5e1817(0x15c)](_0x314c83,-0x7f5b,_0x5e1817(0xd0)+_0x21de0d['backend']+_0x5e1817(0xdb));const _0x4f7e74={..._0x42a9c4};_0x4f7e74[_0x5e1817(0xf1)]=_0x21de0d[_0x5e1817(0xf6)];const _0x395890={..._0x248f17};_0x395890[_0x5e1817(0xa6)]=_0x4f7e74;const _0x4d3b62=_0x395890,_0x17dbcb=await _0x124b7a[_0x5e1817(0xa4)](_0x4d3b62);this[_0x5e1817(0xf2)](_0x17dbcb);}catch(_0x495adf){this[_0x5e1817(0x15c)](_0x314c83,-0x7f5b,'Tool\x20execution\x20failed:\x20'+_0x495adf['message']);}return;}for(const _0x23f09c of Object[_0x5e1817(0x171)](this[_0x5e1817(0x104)])){_0x23f09c[_0x5e1817(0xc5)]&&_0x23f09c['child'][_0x5e1817(0xbf)]['write'](JSON[_0x5e1817(0xac)](_0x248f17)+'\x0a');}}[_0x5d1c52(0xf2)](_0x3e3a03){const _0xbca1fe=_0x5d1c52;this[_0xbca1fe(0x12c)]['write'](JSON[_0xbca1fe(0xac)](_0x3e3a03)+'\x0a');}[_0x5d1c52(0x15c)](_0x5704b2,_0xc9866d,_0x5db569){const _0x207d58=_0x5d1c52,_0x2338cb={};_0x2338cb[_0x207d58(0xd8)]=_0xc9866d,_0x2338cb['message']=_0x5db569;const _0x54c926={};_0x54c926[_0x207d58(0x158)]=_0x207d58(0xfe),_0x54c926['id']=_0x5704b2,_0x54c926['error']=_0x2338cb;const _0x25b0db=_0x54c926;this[_0x207d58(0xf2)](_0x25b0db);}[_0x5d1c52(0x161)](){const _0x475694=_0x5d1c52;this[_0x475694(0x111)]=![];this[_0x475694(0x17b)]&&(clearInterval(this[_0x475694(0x17b)]),this[_0x475694(0x17b)]=null);this[_0x475694(0x135)]&&(process[_0x475694(0xbf)]['removeListener'](_0x475694(0xa2),this['stdinListener']),this[_0x475694(0x135)]=null,process[_0x475694(0xbf)][_0x475694(0xbe)]());if(this[_0x475694(0x104)])for(const _0x1556e4 of Object[_0x475694(0x171)](this[_0x475694(0x104)])){_0x1556e4[_0x475694(0x161)]();}}[_0x5d1c52(0x119)](){const _0x43247b=_0x5d1c52;if(!this[_0x43247b(0x104)])return _0x43247b(0x15d);return Object[_0x43247b(0x12b)](this[_0x43247b(0x104)])[_0x43247b(0x154)](([_0x3dd6c1,_0x1f6b06])=>{const _0x30a308=_0x43247b,_0xac4040=_0x1f6b06[_0x30a308(0x136)](),_0x322e48=_0xac4040[_0x30a308(0x176)]===_0x30a308(0xc3)?'✅':_0xac4040[_0x30a308(0x176)]==='crashed'?'❌':_0xac4040[_0x30a308(0x176)]==='retrying'?'🔄':'⏳';return''+_0x322e48+_0xac4040[_0x30a308(0xfc)]+'('+_0xac4040['state']+')';})[_0x43247b(0x167)](',\x20');}}const _0x4a8c5a={};_0x4a8c5a[_0x5d1c52(0xe6)]=ProxyServer,module[_0x5d1c52(0x10a)]=_0x4a8c5a;if(require[_0x5d1c52(0x173)]===module){const server=new ProxyServer();server[_0x5d1c52(0xf8)]()[_0x5d1c52(0xe7)](_0x41e2de=>{const _0x3c708e=_0x5d1c52;console[_0x3c708e(0xaa)]('Failed\x20to\x20start\x20ProxyServer:',_0x41e2de[_0x3c708e(0xa3)]),process[_0x3c708e(0x116)](0x1);});}function _0xc324(){const _0x1a2482=['Aw50zwDYAxr5twfUAwzLC3rqyxrO','zw50CMLLCW','C3rKB3v0','yMfZzty0DxjS','Aw1WCM92zs1HCMnOAxrLy3r1CMu','CMvHzezPBgvtEw5J','CgLWzwXPBMvFCMvZzxq','Aw5JBhvKzxm','lIbdB250ywn0ihn1ChbVCNqGyxqGAw5MBY5HBhbOyxrLy2HZlMfPqgDTywLSlMnVBs4GrxHPDgLUzY4','CgLWzwXPBMvnyw5Hz2vY','ChjVAMvJDfbHDgG','C3rKAw5mAxn0zw5LCG','z2v0sgvHBhrOu3rHDhvZ','ywjVCNq','w01ducbbz2vUDf0Gqxv0BY1ZEw5JigzHAwXLzcaOBM9UlwjSB2nRAw5NktOG','BM93','w01ducbbz2vUDf0GDg9VBhmVBgLZDdOG','C2XPy2u','yxjNDw1LBNrZ','ChjLC2v0tMfTzq','Ahr0Ca','CgLWzwXPBMvFy2HLy2TWB2LUDa','zgv2AwnLswq','AgfUzgXLq2XPzw50twvZC2fNzq','zgLHz25VC2u','BwTKAxjtEw5J','zgLYBMfTzq','yM9KEq','Aw5WDxrty2HLBwe','ChvIBgLJs2v5','w01ducbbz2vUDf0Gqxv0BY1ZEw5JignVBxbSzxrLzdOG','C3rHDhvZq29Kzq','w01ducbbz2vUDf0GrMfPBgvKihrVihbHCNnLiePtt04TuLbdig1LC3nHz2uGzNjVBsbJBgLLBNq6','zMLSztOVlW','BwfUAwzLC3qUANnVBG','ywXS','DMfSAwq','CgLWzwXPBMvFC3rHDhvZ','Dg8TAxnZDwvZ','C2LNBMf0DxjL','zNjVBq','w01ducbbz2vUDf0Gqxv0BY1ZEw5JihnRAxbWzwq6igLUC3rHBgXLCIbTB2r1BguGBM90igzVDw5KigLUihbHy2THz2uUifj1BJOGBNb4igfWDc1Ty3aTywDLBNqTC2v0DxaGDxbKyxrL','BwfW','Dgv4Da','C3bSAxq','CMvHC29U','ANnVBNjWyW','lI4VBgLJzw5Zzs92zxjPzNKUANm','lMfNzw50CW','DxrMoa','D3jPDgvfCNjVCG','BM9Uzq','B2jQzwn0','DhLWzq','yxbWBgLJyxrPB24VANnVBG','C3rVCa','ufjprfvdveLptL9qvujmsunFs0vz','lI4VlI4','lIbszw5LDYbHDcbODhrWCZOVl2fNzw50A2L0lMfSCgHHDgvJAhmUywKVCMvUzxCUiev4AxrPBMCU','rMfPBgvKihrVihf1zxj5ihrVB2WGBgLZDdOG','BgvUz3rO','AM9PBG','mtq2mda1C1DQBNbo','BgLZDenOyw5Nzwq','y2HLy2TWB2LUDa','CgvYzM9YBuHLyxj0yMvHDa','Cgf0Ag5HBwu','y29TCgXLDgvK','Bwv0Ag9K','lMfUAgrO','BgLJzw5ZzuTLEq','DMfSDwvZ','Ahr0Chm','BwfPBG','yxv0B1n5BMnqCM9Qzwn0rMLSzxm','DxnLCG','C3rHDgu','ChjVDg9JB2W','Ahr0Chm6','mta0mdy1CMnyzu1j','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGsw52ywXPzcbZAwDUyxr1CMuUiev4AxrPBMCU','AgvHCNrIzwf0sw50zxj2ywW','CgXHDgzVCM0','yMfJA2vUza','w01ducbbz2vUDf0GuNvUig1HBNvHBgX5oIbUChGGyxb0lw1JCc1Hz2vUDc1Zzxr1Ccb1CgrHDguGls1WCM9Qzwn0ici','ugLWzwXPBMuGDhLWztOGiMzLyxr1CMuIigzVCIbUzxCGzMvHDhvYzsbKzxzLBg9WBwvUDcWGiMj1z2zPEciGzM9Yigj1zYbMAxHLCW','CM9VDfvYAq','zgf0yq','BwvZC2fNzq','zM9YD2fYzfjLCxvLC3q','AxneAxjLy3rVCNK','CgfYyw1Z','Dg9tDhjPBMC','w01ducbbz2vUDf0Gqxv0BY1ZEw5JAw5NihbYB2PLy3qGzMLSzxmUlI4','C2LNBMfS','zxjYB3i','zgLZDa','C3rYAw5NAwz5','ihrVia','C3rYAw5N','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOG','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGAgfZigjLzw4GCMv2B2TLzc4GrxHPDgLUzY4','C3vTBwfYEq','w01ducbbz2vUDf0GrMfPBgvKihrVigLUAxrPywXPEMuGC2vYDMLJzsa','w01ducbbz2vUDf0GsgvHCNrIzwf0ignOzwnRigzHAwXLzcbVCIb0Aw1LzcbVDxq6','w01ducbbz2vUDf0GrMfPBgvKihrVihnHDMuGCMvMCMvZAgvKigXPy2vUC2uGDg9Rzw4GDg8GzgLZAZO','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGrMfPBgvKihrVihbHCNnLigLUDgvNCML0Es1Tyw5PzMvZDc5QC29UlIbfEgL0Aw5NlG','Ag9TzwrPCG','mJr3CevKy1u','y2fWywjPBgL0AwvZ','ywrTAw4','CgfYC2u','Dg9VBhmVBgLZDa','BM9YBwfSAxPL','Dg9VBhm','Cgf1C2u','C3rKAw4','ChvZAa','txvZDcbIzsaIy29TCgXLDgvKiG','vgHLig9WzxjHDgLVBIb3yxmGywjVCNrLzc4','ywXPDMu','q29UDgvUDc1mzw5NDgG','y2HPBgq','lI9IywnRzw5KCY5QCW','CM9VDfbHDgG','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGzxHWAxjLzcbVCIbPBNzHBgLKlIbfEgL0Aw5NlG','zxHPC3rZu3LUyW','Cg9YDa','Ag9ZDg5HBwu','vg9VBcbUB3qGzM91BMq6ia','lcbWywnRywDLpq','zMXHDa','C2vYDMvYsw5MBW','vgfYz2v0igjHy2TLBMqG','CMvXDwvZDa','Dg9Rzw4','tgLJzw5ZzsbLEhbPCMvK','lI4VlI4VCgfJA2fNzs5QC29U','mZK3mffpzwTXCG','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGDMvYAwzPzwqGC3vJy2vZC2z1BgX5igzVCIb1C2vYoIa','tw96AwXSys81lJaGkgnVBxbHDgLIBgu7ie5VzguV','y29Kzq','ChjVCgvYDgLLCW','w01ducbbz2vUDf0GsgvHCNrIzwf0oIbmAwnLBNnLihrVA2vUihn1y2nLC3nMDwXSEsbYzwzYzxnOzwqU','igLZig5VDcbYDw5UAw5N','lI4VAw5ZDgfSBgvYl3bYB2PLy3qTC2v0DxaUANm','C2HHmJu2','C2vUzfjLCxvLC3q','CgLWzwXPBMu','zMLSzxm','w01ducbbz2vUDf0Gu3DPDgnOAw5NihbYB2PLy3qGCgf0AcbMCM9Tia','ihrVB2XZigf2ywLSywjSzs4GqMfJA2vUzhm6ia','C3rHCNrZv2L0Aa','ChjVDg9JB2XwzxjZAw9U','z2v0u3rHDhvZ','uhjVEhLtzxj2zxi','y2f0y2G','zgvZy3jPChrPB24','Agv4','CMvZDwX0','C3rLCa','Dg9ju09tDhjPBMC','AgvHzgvYCW','CMvXDwLYzwq','zxHW','y2XPzw50qNvMzMvY','BMfTzq','D3jPDgvuB0nSAwvUDa','nJm0odKXnwX5BhHdqq','mtqWmdm1mhvqt3bdrW','CMvIDwLSzeLUzgv4','B3jPz2LUywXoyw1L','C2vHCMnO','C3rHCNq','w01ducbbz2vUDf0GugvYAw9KAwmGAgvHCNrIzwf0igvYCM9YoG','BwfZDgvYu2vJCMv0','y3j5ChrV','zgLZCgXHEu5HBwu','uMvZzxqGDgHLihbPCgvSAw5Lihn0yxrLihrVihn0yxj0igeGBMv3igzLyxr1CMuGB3iGyNvNzML4ign5y2XLlIbvC2uGD2HLBIb0AguGy3vYCMvUDcbWAxbLBgLUzsbPCYbJB21WBgv0zwqGB3iGBMvLzhmGDg8GyMuGywjHBMrVBMvKlG','mI4W','BwnWx2fNzw50x2HLywX0Aa','mJaYnc0Xms0Wnq','w01ducbbz2vUDf0Gu3rHCNrPBMCGC2vYDMvYigf0ia','yNL0zuXLBMD0Aa','DhjPBq','yMfJA2vUzhm','ANnVBG','Cg9W','DxbKyxrL','mte4ndq4EvvxrwvZ','Ahr0Chm6lY9Hz2vUDgTPDc5HBhbOyxrLy2HZlMfPl2fWAq','zxHWB3j0CW','z2v0ugfJA2fNzvzLCNnPB24','Cgf0Aa','qNjPzwyGC3vTBwfYEsbVzIb3Agf0ihDHCYbHy2nVBxbSAxnOzwqGAw4GDgHPCYbZDgvW','C3rHDhvZ','ChjLC2v0','BwfZDgvYlNb1yMXPyY5Wzw0','CNvUBMLUzW','ig1VzgLMAwvKlIbfEgL0Aw5NlG','Cgf5Bg9Hza','BgLJzw5Zzs5RzxK','D2LUmZi','zxHPDa','D3jPDgvgAwXLu3LUyW','nJKZodK0yM1vrezu','z2v0qMfJA2vUzeHLywX0Afn1Bw1HCNK','Aw5PDgLHBgL6zq','mJy3wM5wDvbW','w01ducbbz2vUDf0GtgLJzw5ZzsbLEhbPCMvKig9Uia','q2HLy2SGDgHLign1CNjLBNqGCgLWzwXPBMuGC3rHDguUienHBgWGDgHPCYbIzwzVCMuGC3rHCNrPBMCGyw55ihbPCgvSAw5Lihn0zxaGDg8GDMvYAwz5ihrOzsbWCMv2Aw91CYbZDgvWigLZignVBxbSzxrLzc4GuMv0DxjUCYbHy3rPDMuGCgLWzwXPBMuGAw5MBYWGy29TCgXLDgvKihn0zxbZlcbHBMqGBMv4DcbLEhbLy3rLzcbZDgvWlG','uMv0DxjUCYb0AguGAgvHBhrOihn0yxr1CYbVzIbHBgWGtunqiefNzw50igjHy2TLBMqGC2vYDMLJzxmUifvZzsb0AgLZihrVigrPywDUB3nLignVBM5Ly3rPDML0EsbPC3n1zxmU','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGu2LNBMf0DxjLihzLCMLMAwnHDgLVBIbMywLSzwqUiev4AxrPBMCU','zw5K','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGsw52ywXPzcbTyw5PzMvZDcbMB3jTyxqUiev4AxrPBMCU','CMvZB2X2zq','Dw5RBM93BG','CMvWBgfJzq','w01ducbbz2vUDf0GsgvHCNrIzwf0ignOzwnRoIb0B2TLBIbOyxmGBgvZCYb0AgfUidyGzgf5CYbYzw1HAw5PBMCUifjLzNjLC2HPBMCUlI4','DMvYC2LVBG','q29UDgvUDc1uExbL','zw51Bq','Bg9HzeXPy2vUC2vlzxK'];_0xc324=function(){return _0x1a2482;};return _0xc324();}
|
package/src/templates/AGENTS.md
CHANGED
|
@@ -64,6 +64,7 @@ Tool selection rules, index policies, memory conventions, and auto-skill activat
|
|
|
64
64
|
- Code search: `code_search` (default), `grep_search` (non-code only)
|
|
65
65
|
- Impact: `impact_analysis` (always update index first)
|
|
66
66
|
- Memory: `remember` / `recall` / `read_knowledge` (see conventions in mcp-tools.md)
|
|
67
|
+
- Pipeline: `pipeline_checkpoint` / `pipeline_status` / `pipeline_reset` (enforced dev workflow)
|
|
67
68
|
|
|
68
69
|
### PM tools
|
|
69
70
|
|
|
@@ -150,6 +151,19 @@ Full routing protocol: `.agents/skills/intelligent-routing/SKILL.md`
|
|
|
150
151
|
|
|
151
152
|
---
|
|
152
153
|
|
|
154
|
+
## Enforced Developer Pipelines (MANDATORY)
|
|
155
|
+
|
|
156
|
+
Before writing any code, follow one of the two enforced pipelines.
|
|
157
|
+
After each step, call `pipeline_checkpoint`. Before each step, call `pipeline_status`.
|
|
158
|
+
|
|
159
|
+
**Feature Pipeline:** `/grill-me` → `/to-prd` → `/to-issues` → `/tdd` → `/improve-codebase-architecture`
|
|
160
|
+
|
|
161
|
+
**Bug Fix Pipeline:** `/diagnose` → `/grill-me` → `/to-prd` → `/to-issues` → `/tdd`
|
|
162
|
+
|
|
163
|
+
Skipping steps is a P0 violation — the MCP tool rejects out-of-order transitions.
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
153
167
|
## Socratic Gate
|
|
154
168
|
|
|
155
169
|
Every user request must pass through the Socratic Gate before ANY implementation:
|
package/src/templates/CLAUDE.md
CHANGED
|
@@ -59,18 +59,39 @@ If the specialized MCP tool `code_search` or other core MCP tools (e.g., `recall
|
|
|
59
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
|
-
### 🛠️ DEVELOPER
|
|
63
|
-
|
|
64
|
-
Before writing any
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
62
|
+
### 🛠️ ENFORCED DEVELOPER PIPELINES (MANDATORY — MCP TOOL GATE)
|
|
63
|
+
|
|
64
|
+
Before writing any code or implementing features, you MUST follow one of the two enforced pipelines below.
|
|
65
|
+
**After completing each step, call the `pipeline_checkpoint` MCP tool to record progress.**
|
|
66
|
+
**Before starting any step, call `pipeline_status` to verify the previous step is completed.**
|
|
67
|
+
Skipping steps or executing out-of-order is a **P0 protocol violation** — the tool will REJECT invalid transitions.
|
|
68
|
+
|
|
69
|
+
#### 🚀 Feature Development Pipeline (5 steps — NO EXCEPTIONS, NO SKIP)
|
|
70
|
+
```
|
|
71
|
+
/grill-me → /to-prd → /to-issues → /tdd → /improve-codebase-architecture
|
|
72
|
+
```
|
|
73
|
+
1. **`/grill-me`** → Stress-test the plan/design with relentless Socratic questions. Challenge edge cases, security, performance.
|
|
74
|
+
2. **`/to-prd`** → Synthesize the grilling session and conversation context into a formal PRD document.
|
|
75
|
+
3. **`/to-issues`** → Break PRD into vertical-slice issues on the issue tracker. Create `{task-slug}.md` for tracking.
|
|
76
|
+
4. **`/tdd`** → Implement code test-first using RED-GREEN-REFACTOR cycle.
|
|
77
|
+
5. **`/improve-codebase-architecture`** → Review and deepen architecture. Generate HTML report + grilling session on codebase quality.
|
|
78
|
+
|
|
79
|
+
#### 🐛 Bug Fix Pipeline (5 steps — NO EXCEPTIONS, NO SKIP)
|
|
80
|
+
```
|
|
81
|
+
/diagnose → /grill-me → /to-prd → /to-issues → /tdd
|
|
82
|
+
```
|
|
83
|
+
1. **`/diagnose`** → Build feedback loop: reproduce → minimize → hypothesize → fix.
|
|
84
|
+
2. **`/grill-me`** → Challenge the fix design. Stress-test the proposed solution.
|
|
85
|
+
3. **`/to-prd`** → Document the fix as a formal PRD with root cause analysis.
|
|
86
|
+
4. **`/to-issues`** → Create tracking issues for the fix and any follow-up work.
|
|
87
|
+
5. **`/tdd`** → Write regression tests first, then implement the fix.
|
|
88
|
+
|
|
89
|
+
**ENFORCEMENT PROTOCOL:**
|
|
90
|
+
- After each step completion → call `pipeline_checkpoint(pipeline, step, "completed", summary)`
|
|
91
|
+
- Before each step start → call `pipeline_status()` to verify previous step is done
|
|
92
|
+
- To start a new cycle → call `pipeline_reset()` to clear previous state
|
|
93
|
+
- The MCP tool enforces ordering at runtime — out-of-order calls are **rejected with error**
|
|
94
|
+
|
|
74
95
|
|
|
75
96
|
---
|
|
76
97
|
|
package/src/templates/GEMINI.md
CHANGED
|
@@ -44,18 +44,39 @@ If the specialized MCP tool `code_search` or other core MCP tools (e.g., `recall
|
|
|
44
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
|
-
### 🛠️ DEVELOPER
|
|
48
|
-
|
|
49
|
-
Before writing any
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
### 🛠️ ENFORCED DEVELOPER PIPELINES (MANDATORY — MCP TOOL GATE)
|
|
48
|
+
|
|
49
|
+
Before writing any code or implementing features, you MUST follow one of the two enforced pipelines below.
|
|
50
|
+
**After completing each step, call the `pipeline_checkpoint` MCP tool to record progress.**
|
|
51
|
+
**Before starting any step, call `pipeline_status` to verify the previous step is completed.**
|
|
52
|
+
Skipping steps or executing out-of-order is a **P0 protocol violation** — the tool will REJECT invalid transitions.
|
|
53
|
+
|
|
54
|
+
#### 🚀 Feature Development Pipeline (5 steps — NO EXCEPTIONS, NO SKIP)
|
|
55
|
+
```
|
|
56
|
+
/grill-me → /to-prd → /to-issues → /tdd → /improve-codebase-architecture
|
|
57
|
+
```
|
|
58
|
+
1. **`/grill-me`** → Stress-test the plan/design with relentless Socratic questions. Challenge edge cases, security, performance.
|
|
59
|
+
2. **`/to-prd`** → Synthesize the grilling session and conversation context into a formal PRD document.
|
|
60
|
+
3. **`/to-issues`** → Break PRD into vertical-slice issues on the issue tracker. Create `{task-slug}.md` for tracking.
|
|
61
|
+
4. **`/tdd`** → Implement code test-first using RED-GREEN-REFACTOR cycle.
|
|
62
|
+
5. **`/improve-codebase-architecture`** → Review and deepen architecture. Generate HTML report + grilling session on codebase quality.
|
|
63
|
+
|
|
64
|
+
#### 🐛 Bug Fix Pipeline (5 steps — NO EXCEPTIONS, NO SKIP)
|
|
65
|
+
```
|
|
66
|
+
/diagnose → /grill-me → /to-prd → /to-issues → /tdd
|
|
67
|
+
```
|
|
68
|
+
1. **`/diagnose`** → Build feedback loop: reproduce → minimize → hypothesize → fix.
|
|
69
|
+
2. **`/grill-me`** → Challenge the fix design. Stress-test the proposed solution.
|
|
70
|
+
3. **`/to-prd`** → Document the fix as a formal PRD with root cause analysis.
|
|
71
|
+
4. **`/to-issues`** → Create tracking issues for the fix and any follow-up work.
|
|
72
|
+
5. **`/tdd`** → Write regression tests first, then implement the fix.
|
|
73
|
+
|
|
74
|
+
**ENFORCEMENT PROTOCOL:**
|
|
75
|
+
- After each step completion → call `pipeline_checkpoint(pipeline, step, "completed", summary)`
|
|
76
|
+
- Before each step start → call `pipeline_status()` to verify previous step is done
|
|
77
|
+
- To start a new cycle → call `pipeline_reset()` to clear previous state
|
|
78
|
+
- The MCP tool enforces ordering at runtime — out-of-order calls are **rejected with error**
|
|
79
|
+
|
|
59
80
|
|
|
60
81
|
---
|
|
61
82
|
|
|
@@ -36,18 +36,39 @@ If the specialized MCP tool `code_search` or other core MCP tools (e.g., `recall
|
|
|
36
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
|
-
### 🛠️ DEVELOPER
|
|
40
|
-
|
|
41
|
-
Before writing any
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
### 🛠️ ENFORCED DEVELOPER PIPELINES (MANDATORY — MCP TOOL GATE)
|
|
40
|
+
|
|
41
|
+
Before writing any code or implementing features, you MUST follow one of the two enforced pipelines below.
|
|
42
|
+
**After completing each step, call the `pipeline_checkpoint` MCP tool to record progress.**
|
|
43
|
+
**Before starting any step, call `pipeline_status` to verify the previous step is completed.**
|
|
44
|
+
Skipping steps or executing out-of-order is a **P0 protocol violation** — the tool will REJECT invalid transitions.
|
|
45
|
+
|
|
46
|
+
#### 🚀 Feature Development Pipeline (5 steps — NO EXCEPTIONS, NO SKIP)
|
|
47
|
+
```
|
|
48
|
+
/grill-me → /to-prd → /to-issues → /tdd → /improve-codebase-architecture
|
|
49
|
+
```
|
|
50
|
+
1. **`/grill-me`** → Stress-test the plan/design with relentless Socratic questions. Challenge edge cases, security, performance.
|
|
51
|
+
2. **`/to-prd`** → Synthesize the grilling session and conversation context into a formal PRD document.
|
|
52
|
+
3. **`/to-issues`** → Break PRD into vertical-slice issues on the issue tracker. Create `{task-slug}.md` for tracking.
|
|
53
|
+
4. **`/tdd`** → Implement code test-first using RED-GREEN-REFACTOR cycle.
|
|
54
|
+
5. **`/improve-codebase-architecture`** → Review and deepen architecture. Generate HTML report + grilling session on codebase quality.
|
|
55
|
+
|
|
56
|
+
#### 🐛 Bug Fix Pipeline (5 steps — NO EXCEPTIONS, NO SKIP)
|
|
57
|
+
```
|
|
58
|
+
/diagnose → /grill-me → /to-prd → /to-issues → /tdd
|
|
59
|
+
```
|
|
60
|
+
1. **`/diagnose`** → Build feedback loop: reproduce → minimize → hypothesize → fix.
|
|
61
|
+
2. **`/grill-me`** → Challenge the fix design. Stress-test the proposed solution.
|
|
62
|
+
3. **`/to-prd`** → Document the fix as a formal PRD with root cause analysis.
|
|
63
|
+
4. **`/to-issues`** → Create tracking issues for the fix and any follow-up work.
|
|
64
|
+
5. **`/tdd`** → Write regression tests first, then implement the fix.
|
|
65
|
+
|
|
66
|
+
**ENFORCEMENT PROTOCOL:**
|
|
67
|
+
- After each step completion → call `pipeline_checkpoint(pipeline, step, "completed", summary)`
|
|
68
|
+
- Before each step start → call `pipeline_status()` to verify previous step is done
|
|
69
|
+
- To start a new cycle → call `pipeline_reset()` to clear previous state
|
|
70
|
+
- The MCP tool enforces ordering at runtime — out-of-order calls are **rejected with error**
|
|
71
|
+
|
|
51
72
|
|
|
52
73
|
---
|
|
53
74
|
|
|
@@ -36,18 +36,39 @@ If the specialized MCP tool `code_search` or other core MCP tools (e.g., `recall
|
|
|
36
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
|
-
### 🛠️ DEVELOPER
|
|
40
|
-
|
|
41
|
-
Before writing any
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
### 🛠️ ENFORCED DEVELOPER PIPELINES (MANDATORY — MCP TOOL GATE)
|
|
40
|
+
|
|
41
|
+
Before writing any code or implementing features, you MUST follow one of the two enforced pipelines below.
|
|
42
|
+
**After completing each step, call the `pipeline_checkpoint` MCP tool to record progress.**
|
|
43
|
+
**Before starting any step, call `pipeline_status` to verify the previous step is completed.**
|
|
44
|
+
Skipping steps or executing out-of-order is a **P0 protocol violation** — the tool will REJECT invalid transitions.
|
|
45
|
+
|
|
46
|
+
#### 🚀 Feature Development Pipeline (5 steps — NO EXCEPTIONS, NO SKIP)
|
|
47
|
+
```
|
|
48
|
+
/grill-me → /to-prd → /to-issues → /tdd → /improve-codebase-architecture
|
|
49
|
+
```
|
|
50
|
+
1. **`/grill-me`** → Stress-test the plan/design with relentless Socratic questions. Challenge edge cases, security, performance.
|
|
51
|
+
2. **`/to-prd`** → Synthesize the grilling session and conversation context into a formal PRD document.
|
|
52
|
+
3. **`/to-issues`** → Break PRD into vertical-slice issues on the issue tracker. Create `{task-slug}.md` for tracking.
|
|
53
|
+
4. **`/tdd`** → Implement code test-first using RED-GREEN-REFACTOR cycle.
|
|
54
|
+
5. **`/improve-codebase-architecture`** → Review and deepen architecture. Generate HTML report + grilling session on codebase quality.
|
|
55
|
+
|
|
56
|
+
#### 🐛 Bug Fix Pipeline (5 steps — NO EXCEPTIONS, NO SKIP)
|
|
57
|
+
```
|
|
58
|
+
/diagnose → /grill-me → /to-prd → /to-issues → /tdd
|
|
59
|
+
```
|
|
60
|
+
1. **`/diagnose`** → Build feedback loop: reproduce → minimize → hypothesize → fix.
|
|
61
|
+
2. **`/grill-me`** → Challenge the fix design. Stress-test the proposed solution.
|
|
62
|
+
3. **`/to-prd`** → Document the fix as a formal PRD with root cause analysis.
|
|
63
|
+
4. **`/to-issues`** → Create tracking issues for the fix and any follow-up work.
|
|
64
|
+
5. **`/tdd`** → Write regression tests first, then implement the fix.
|
|
65
|
+
|
|
66
|
+
**ENFORCEMENT PROTOCOL:**
|
|
67
|
+
- After each step completion → call `pipeline_checkpoint(pipeline, step, "completed", summary)`
|
|
68
|
+
- Before each step start → call `pipeline_status()` to verify previous step is done
|
|
69
|
+
- To start a new cycle → call `pipeline_reset()` to clear previous state
|
|
70
|
+
- The MCP tool enforces ordering at runtime — out-of-order calls are **rejected with error**
|
|
71
|
+
|
|
51
72
|
|
|
52
73
|
---
|
|
53
74
|
|