apt-mcp-agent-setup 1.2.49 → 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x32839b=_0x4be1;(function(_0x45cdfd,_0x567c5b){const _0x19dee9=_0x4be1,_0x4cad41=_0x45cdfd();while(!![]){try{const _0xc8441f=parseInt(_0x19dee9(0x21f))/0x1+-parseInt(_0x19dee9(0x20d))/0x2+parseInt(_0x19dee9(0x210))/0x3+parseInt(_0x19dee9(0x223))/0x4*(parseInt(_0x19dee9(0x234))/0x5)+parseInt(_0x19dee9(0x22d))/0x6*(parseInt(_0x19dee9(0x216))/0x7)+-parseInt(_0x19dee9(0x213))/0x8+-parseInt(_0x19dee9(0x24b))/0x9*(parseInt(_0x19dee9(0x23f))/0xa);if(_0xc8441f===_0x567c5b)break;else _0x4cad41['push'](_0x4cad41['shift']());}catch(_0x587040){_0x4cad41['push'](_0x4cad41['shift']());}}}(_0x39d3,0x80d30));const fs=require('fs'),path=require(_0x32839b(0x21d)),_0x473c09={};_0x473c09['id']=_0x32839b(0x212),_0x473c09[_0x32839b(0x1fc)]='Grill\x20Me\x20—\x20Stress-test\x20plan/design',_0x473c09[_0x32839b(0x228)]='grilling';const _0xb385a4={};_0xb385a4['id']='to-prd',_0xb385a4[_0x32839b(0x1fc)]=_0x32839b(0x1f7),_0xb385a4['skill']=_0x32839b(0x1e6);const _0x1868c2={};_0x1868c2['id']=_0x32839b(0x219),_0x1868c2[_0x32839b(0x1fc)]=_0x32839b(0x200),_0x1868c2[_0x32839b(0x228)]='task-breakdown';const _0xdb81e0={};_0xdb81e0['id']=_0x32839b(0x1fa),_0xdb81e0[_0x32839b(0x1fc)]=_0x32839b(0x1fb),_0xdb81e0[_0x32839b(0x228)]=_0x32839b(0x1fa);const _0x960b31={};_0x960b31['id']=_0x32839b(0x21c),_0x960b31[_0x32839b(0x1fc)]='Improve\x20Architecture\x20—\x20Review\x20and\x20deepen',_0x960b31['skill']=_0x32839b(0x225);const _0x334fdd={};_0x334fdd[_0x32839b(0x1fc)]='Feature\x20Development',_0x334fdd[_0x32839b(0x1e0)]=[_0x473c09,_0xb385a4,_0x1868c2,_0xdb81e0,_0x960b31];const _0x1b4e97={};_0x1b4e97['id']=_0x32839b(0x1e7),_0x1b4e97[_0x32839b(0x1fc)]=_0x32839b(0x1e8),_0x1b4e97[_0x32839b(0x228)]='diagnose';const _0x381ee3={};function _0x39d3(){const _0xefb3d4=['r3jPBgWGtwuG4OcuienOywXSzw5Nzsb0AguGzML4igrLC2LNBG','ntrZrNzgDMe','oIaI','zMLUza','ignVBxbSzxrLzdOG','C3rHCNrLzef0','CMvZzxq','BMv4Df9ZDgvW','ntiYmdy1EK5HrKjO','qNvNiezPEa','AM9PBG','C3vJy2vZCW','Dg9ju09tDhjPBMC','zMvHDhvYzq','DgfZAY1ICMvHA2rVD24','BgvUz3rO','ueLqruXjtKvFrevgsu5jveLptLm','z2v0u3rHDhvZ','ihn0zxbZigzPBMLZAgvKlG','mty1mgTWyxfiwG','lIbtDgf0zsbMAwXLig1HEsbIzsbJB3jYDxb0zwqU','ywn0AxzLx3bPCgvSAw5L','AxnFy29TCgXLDgu','C3rLCf9UDw1Izxi','C2XPy2u','zxHWB3j0CW','ihbPCgvSAw5LlG','C3rHDgvgAwXLugf0Aa','Dw5SAw5Ru3LUyW','tM8Gywn0AxzLihbPCgvSAw5LlIbtDgfYDcbHig5LDYbMzwf0DxjLig9Yigj1z2zPEcbWAxbLBgLUzsbIEsbJywXSAw5NihbPCgvSAw5Lx2nOzwnRCg9PBNqGD2L0AcbWAxbLBgLUzt0IzMvHDhvYzsiGB3iGCgLWzwXPBMu9iMj1z2zPEciGyw5Kihn0zxaGC2v0ihrVihrOzsbMAxjZDcbZDgvWlG','zxHWzwn0zwrFC3rLCa','mtyYovP1uvzMyq','C3rLChm','A2v5CW','iI4Gq29TCgXLDguGC3rLChmGAw4GB3jKzxiU','ywn0AxzL','vw5RBM93BIbWAxbLBgLUzsb0ExbLoIa','CgLWzwXPBMvFChjVz3jLC3m','ChjKlwDLBG','zgLHz25VC2u','rgLHz25VC2uG4Ocuiej1AwXKigzLzwrIywnRigXVB3aSihjLChjVzhvJzsWGzML4','ugLWzwXPBMuGiG','CMvJzwL2zwrFC3rLCa','y29TCgXLDgvKqxq','iIbUB3qGzM91BMqGAw4G','q2fUBM90ihn0yxj0ia','ChjVAMvJDfbHDgG','CMvJDxjZAxzL','BwfW','CgLWzwXPBMuTC3rHDguUANnVBG','iIbIDxqGz290ici','iI4GtxvZDcbZDgfYDcbHDcbZDgvWide6ici','z3jPBgXPBMC','D3jPDgvgAwXLu3LUyW','iIbPCYbHBhjLywr5ignVBxbSzxrLzcbPBIb0AgLZihbPCgvSAw5LicHHDca','vg8GufjeiokaLcbtEw50AgvZAxPLigLUDg8GufjeigrVy3vTzw50','zxHPC3rZu3LUyW','BwTKAxjtEw5J','DgrK','vereiokaLcbjBxbSzw1LBNqGDgvZDc1MAxjZDa','BMfTzq','vereiokaLcbxCML0zsbYzwDYzxnZAw9UihrLC3qSigLTCgXLBwvUDcbMAxG','C3vTBwfYEq','vg8GufjeiokaLcbeB2n1BwvUDcb0AguGzML4','vg8GsxnZDwvZiokaLcbcCMvHAYbPBNrVihzLCNrPy2fSlxnSAwnLigLZC3vLCW','CgfYC2u','t3v0lw9Mlw9YzgvYihn0zxaUiev4CgvJDgvKihn0zxaG','u3rLCcaI','u3rHDhvZig11C3qGyMuGiMnVBxbSzxrLzciUieDVDdOGiG','iIbWAxbLBgLUzsbPCYbHBhjLywr5igfJDgL2zs4Gq2fUBM90ihn3AxrJAcb0BYaI','D3jPDgvtDgf0zq','Dg8TChjK','y29TCgXLDgvKu3rLChm','ChvZAa','qsaI','rMfPBgvKihrVihjLC2v0ihbPCgvSAw5Lihn0yxrLoIa','CgLWzwXPBMu','mty3nJeYnLz1wMPcvG','C3rYAw5NAwz5','y29TCgXLDgvK','mJu2nZGWmM9TBLzyqG','w1bPCgvSAw5LxsbgywLSzwqGDg8GD3jPDguGC3rHDguGzMLSztO','z3jPBgWTBwu','ntuYntG3mLLbB1f1sa','y2HLy2TWB2LUDa','vw5RBM93BIbWAxbLBgLUzsb0ExbLoIaI','mZGYnti5DfDdzfLX','CMvHzfn0yxrL','BwvZC2fNzq','Dg8TAxnZDwvZ','iI4GtxvZDcbIzsaIzMvHDhvYzsiGB3iGiMj1z2zPEciU','zMLYC3rFC3rLCa','Aw1WCM92zs1HCMnOAxrLy3r1CMu','Cgf0Aa','CMvHzezPBgvtEw5J','mJe2nta0u2fnvg1y','lMfNzw50CW','u3rLCca','ihbPCgvSAw5Ligf0ihn0zxaGiG','mJbPDLHrtwS','ugLWzwXPBMvnyw5Hz2vY','Aw1WCM92zs1JB2rLyMfZzs1HCMnOAxrLy3r1CMu','yNvNzML4','zgLYBMfTzq','C2TPBgW','zxjYB3i','iIbdt01qtevurseGqwXSia','DxrMoa'];_0x39d3=function(){return _0xefb3d4;};return _0x39d3();}_0x381ee3['id']=_0x32839b(0x212),_0x381ee3[_0x32839b(0x1fc)]=_0x32839b(0x22c),_0x381ee3[_0x32839b(0x228)]=_0x32839b(0x1f4);const _0x2dcdf8={};_0x2dcdf8['id']=_0x32839b(0x207),_0x2dcdf8[_0x32839b(0x1fc)]=_0x32839b(0x1ff),_0x2dcdf8['skill']=_0x32839b(0x1e6);const _0x5a5a80={};_0x5a5a80['id']=_0x32839b(0x219),_0x5a5a80[_0x32839b(0x1fc)]='To\x20Issues\x20—\x20Create\x20tracking\x20issues',_0x5a5a80[_0x32839b(0x228)]=_0x32839b(0x23a);const _0x39a9a5={};_0x39a9a5['id']=_0x32839b(0x1fa),_0x39a9a5[_0x32839b(0x1fc)]=_0x32839b(0x1fd),_0x39a9a5[_0x32839b(0x228)]=_0x32839b(0x1fa);const _0x31ec77={};_0x31ec77[_0x32839b(0x1fc)]=_0x32839b(0x235),_0x31ec77[_0x32839b(0x1e0)]=[_0x1b4e97,_0x381ee3,_0x2dcdf8,_0x5a5a80,_0x39a9a5];const _0x3ae26c={};_0x3ae26c[_0x32839b(0x239)]=_0x334fdd,_0x3ae26c[_0x32839b(0x226)]=_0x31ec77;function _0x4be1(_0x40d2ab,_0x546969){_0x40d2ab=_0x40d2ab-0x1e0;const _0x39d3c5=_0x39d3();let _0x4be1ce=_0x39d3c5[_0x40d2ab];if(_0x4be1['HFCZEO']===undefined){var _0x2d20ce=function(_0x4cfc88){const _0x7f2f88='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x473c09='',_0xb385a4='';for(let _0x1868c2=0x0,_0xdb81e0,_0x960b31,_0x334fdd=0x0;_0x960b31=_0x4cfc88['charAt'](_0x334fdd++);~_0x960b31&&(_0xdb81e0=_0x1868c2%0x4?_0xdb81e0*0x40+_0x960b31:_0x960b31,_0x1868c2++%0x4)?_0x473c09+=String['fromCharCode'](0xff&_0xdb81e0>>(-0x2*_0x1868c2&0x6)):0x0){_0x960b31=_0x7f2f88['indexOf'](_0x960b31);}for(let _0x1b4e97=0x0,_0x381ee3=_0x473c09['length'];_0x1b4e97<_0x381ee3;_0x1b4e97++){_0xb385a4+='%'+('00'+_0x473c09['charCodeAt'](_0x1b4e97)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xb385a4);};_0x4be1['XwOwBR']=_0x2d20ce,_0x4be1['gVJqqk']={},_0x4be1['HFCZEO']=!![];}const _0x2ac3d4=_0x39d3c5[0x0],_0x10e05f=_0x40d2ab+_0x2ac3d4,_0x2f81f9=_0x4be1['gVJqqk'][_0x10e05f];return!_0x2f81f9?(_0x4be1ce=_0x4be1['XwOwBR'](_0x4be1ce),_0x4be1['gVJqqk'][_0x10e05f]=_0x4be1ce):_0x4be1ce=_0x2f81f9,_0x4be1ce;}const PIPELINE_DEFINITIONS=_0x3ae26c;class PipelineManager{constructor(_0x2b9fd6){const _0x123d8a=_0x32839b;this[_0x123d8a(0x1ee)]=_0x2b9fd6,this[_0x123d8a(0x247)]=path[_0x123d8a(0x236)](_0x2b9fd6,_0x123d8a(0x220),_0x123d8a(0x1f1));}[_0x32839b(0x217)](){const _0x13e6d9=_0x32839b;try{if(fs['existsSync'](this[_0x13e6d9(0x247)])){const _0x4dbff5=fs[_0x13e6d9(0x21e)](this[_0x13e6d9(0x247)],_0x13e6d9(0x22b));return JSON[_0x13e6d9(0x201)](_0x4dbff5);}}catch(_0x4d05d7){console['error']('[Pipeline]\x20Failed\x20to\x20read\x20state\x20file:',_0x4d05d7[_0x13e6d9(0x218)]);}return null;}['writeState'](_0x158ee8){const _0x1828fd=_0x32839b;try{const _0x306831=path[_0x1828fd(0x227)](this[_0x1828fd(0x247)]);if(!fs[_0x1828fd(0x1f8)](_0x306831)){const _0x320d7c={};_0x320d7c[_0x1828fd(0x1ef)]=!![],fs[_0x1828fd(0x1f9)](_0x306831,_0x320d7c);}fs[_0x1828fd(0x1f5)](this['stateFilePath'],JSON[_0x1828fd(0x20e)](_0x158ee8,null,0x2),_0x1828fd(0x22b));}catch(_0x254c35){console[_0x1828fd(0x229)](_0x1828fd(0x211),_0x254c35[_0x1828fd(0x218)]);throw new Error('Failed\x20to\x20persist\x20pipeline\x20state:\x20'+_0x254c35[_0x1828fd(0x218)]);}}[_0x32839b(0x23d)](){const _0x3960e4=_0x32839b,_0x5c46f2=this['readState']();if(!_0x5c46f2||!_0x5c46f2[_0x3960e4(0x20c)]){const _0x12f557={};return _0x12f557[_0x3960e4(0x1e3)]=![],_0x12f557[_0x3960e4(0x218)]=_0x3960e4(0x249),_0x12f557;}const _0x39a004=PIPELINE_DEFINITIONS[_0x5c46f2[_0x3960e4(0x20c)]];if(!_0x39a004){const _0x46b1ad={};return _0x46b1ad[_0x3960e4(0x1e3)]=![],_0x46b1ad[_0x3960e4(0x218)]=_0x3960e4(0x1e4)+_0x5c46f2[_0x3960e4(0x20c)]+_0x3960e4(0x240),_0x46b1ad;}const _0x29354e=_0x5c46f2[_0x3960e4(0x208)]||[],_0x227d93=_0x39a004[_0x3960e4(0x1e0)][_0x3960e4(0x23b)],_0x4ac71c=_0x29354e[_0x3960e4(0x23b)],_0x12e359=_0x4ac71c>=_0x227d93;return{'active':!_0x12e359,'pipeline':_0x5c46f2['pipeline'],'pipeline_name':_0x39a004[_0x3960e4(0x1fc)],'total_steps':_0x227d93,'completed_count':_0x29354e[_0x3960e4(0x23b)],'progress':_0x29354e[_0x3960e4(0x23b)]+'/'+_0x227d93,'is_complete':_0x12e359,'completed_steps':_0x29354e[_0x3960e4(0x1f0)]((_0x5052bb,_0x5f192a)=>({'step_number':_0x5f192a+0x1,'id':_0x5052bb['id'],'name':_0x39a004[_0x3960e4(0x1e0)][_0x5f192a]?.['name']||_0x5052bb['id'],'completed_at':_0x5052bb[_0x3960e4(0x1eb)],'summary':_0x5052bb[_0x3960e4(0x1fe)]})),'next_step':_0x12e359?null:{'step_number':_0x4ac71c+0x1,'id':_0x39a004['steps'][_0x4ac71c]['id'],'name':_0x39a004[_0x3960e4(0x1e0)][_0x4ac71c][_0x3960e4(0x1fc)],'skill':_0x39a004['steps'][_0x4ac71c]['skill']},'remaining_steps':_0x39a004['steps'][_0x3960e4(0x244)](_0x4ac71c)[_0x3960e4(0x1f0)]((_0x3da45c,_0x36b496)=>({'step_number':_0x4ac71c+_0x36b496+0x1,'id':_0x3da45c['id'],'name':_0x3da45c[_0x3960e4(0x1fc)]})),'started_at':_0x5c46f2[_0x3960e4(0x231)]};}[_0x32839b(0x214)](_0x3ca75b,_0x20ee19,_0x580cec,_0x32921e){const _0x73d3f2=_0x32839b,_0x4da365=PIPELINE_DEFINITIONS[_0x3ca75b];if(!_0x4da365)return{'success':![],'error':_0x73d3f2(0x215)+_0x3ca75b+_0x73d3f2(0x21a),'valid_pipelines':Object[_0x73d3f2(0x1e1)](PIPELINE_DEFINITIONS)};if(_0x580cec!==_0x73d3f2(0x20f)){const _0x6e97c7={};return _0x6e97c7['success']=![],_0x6e97c7[_0x73d3f2(0x229)]=_0x73d3f2(0x204)+_0x580cec+'\x22.',_0x6e97c7;}const _0xd0494c=_0x4da365[_0x73d3f2(0x1e0)]['findIndex'](_0x507ac6=>_0x507ac6['id']===_0x20ee19);if(_0xd0494c===-0x1)return{'success':![],'error':_0x73d3f2(0x203)+_0x20ee19+_0x73d3f2(0x1ec)+_0x3ca75b+_0x73d3f2(0x246),'valid_steps':_0x4da365[_0x73d3f2(0x1e0)][_0x73d3f2(0x1f0)](_0x1c1ae4=>_0x1c1ae4['id'])};let _0x34064c=this['readState']();if(!_0x34064c||!_0x34064c[_0x73d3f2(0x20c)]){if(_0xd0494c!==0x0){const _0x158fb0={};return _0x158fb0['success']=![],_0x158fb0[_0x73d3f2(0x229)]=_0x73d3f2(0x1ed)+_0x3ca75b+_0x73d3f2(0x222)+_0x20ee19+_0x73d3f2(0x1f3)+_0x4da365['steps'][0x0]['id']+'\x22.',_0x158fb0[_0x73d3f2(0x21b)]=_0x4da365[_0x73d3f2(0x1e0)][0x0]['id'],_0x158fb0;}_0x34064c={'pipeline':_0x3ca75b,'startedAt':new Date()[_0x73d3f2(0x238)](),'completedSteps':[{'id':_0x20ee19,'completedAt':new Date()[_0x73d3f2(0x238)](),'summary':_0x32921e||''}]},this[_0x73d3f2(0x206)](_0x34064c);const _0x3d4ada=_0x4da365[_0x73d3f2(0x1e0)][0x1]||null,_0x39126f={};return _0x39126f['success']=!![],_0x39126f[_0x73d3f2(0x218)]=_0x73d3f2(0x1e9)+_0x4da365[_0x73d3f2(0x1fc)]+'\x22\x20started.\x20Step\x201/'+_0x4da365[_0x73d3f2(0x1e0)]['length']+'\x20completed:\x20'+_0x20ee19,_0x39126f[_0x73d3f2(0x1e5)]='1/'+_0x4da365[_0x73d3f2(0x1e0)][_0x73d3f2(0x23b)],_0x39126f[_0x73d3f2(0x233)]=_0x3d4ada?{'id':_0x3d4ada['id'],'name':_0x3d4ada[_0x73d3f2(0x1fc)],'step_number':0x2}:null,_0x39126f;}if(_0x34064c[_0x73d3f2(0x20c)]!==_0x3ca75b){const _0x54ba7f={};return _0x54ba7f[_0x73d3f2(0x237)]=![],_0x54ba7f['error']=_0x73d3f2(0x20a)+_0x34064c[_0x73d3f2(0x20c)]+_0x73d3f2(0x205)+_0x3ca75b+'\x22.\x20Complete\x20or\x20reset\x20the\x20current\x20pipeline\x20first.',_0x54ba7f[_0x73d3f2(0x241)]=_0x34064c[_0x73d3f2(0x20c)],_0x54ba7f['completed_steps']=(_0x34064c[_0x73d3f2(0x208)]||[])[_0x73d3f2(0x23b)],_0x54ba7f;}const _0x25e5f0=_0x34064c[_0x73d3f2(0x208)]||[],_0x1d9e1e=_0x25e5f0[_0x73d3f2(0x22f)](_0x153e80=>_0x153e80['id']===_0x20ee19);if(_0x1d9e1e)return{'success':![],'error':_0x73d3f2(0x203)+_0x20ee19+_0x73d3f2(0x1f6)+_0x1d9e1e[_0x73d3f2(0x1eb)]+').','completed_steps':_0x25e5f0['map'](_0x564092=>_0x564092['id'])};const _0xa8bf3a=_0x25e5f0[_0x73d3f2(0x23b)];if(_0xd0494c!==_0xa8bf3a){const _0x1e4804=_0x4da365['steps'][_0xa8bf3a],_0x1baee8={};return _0x1baee8[_0x73d3f2(0x237)]=![],_0x1baee8['error']=_0x73d3f2(0x202)+(_0xa8bf3a+0x1)+_0x73d3f2(0x22e)+_0x1e4804['id']+_0x73d3f2(0x1f2)+_0x20ee19+_0x73d3f2(0x1e2),_0x1baee8[_0x73d3f2(0x24a)]={},_0x1baee8[_0x73d3f2(0x1ea)]={},_0x1baee8[_0x73d3f2(0x24a)]['id']=_0x1e4804['id'],_0x1baee8[_0x73d3f2(0x24a)][_0x73d3f2(0x1fc)]=_0x1e4804[_0x73d3f2(0x1fc)],_0x1baee8[_0x73d3f2(0x24a)][_0x73d3f2(0x243)]=_0xa8bf3a+0x1,_0x1baee8[_0x73d3f2(0x1ea)]['id']=_0x20ee19,_0x1baee8[_0x73d3f2(0x1ea)]['step_number']=_0xd0494c+0x1,_0x1baee8;}_0x25e5f0[_0x73d3f2(0x209)]({'id':_0x20ee19,'completedAt':new Date()[_0x73d3f2(0x238)](),'summary':_0x32921e||''}),_0x34064c[_0x73d3f2(0x208)]=_0x25e5f0;const _0x3fb08f=_0x25e5f0[_0x73d3f2(0x23b)]>=_0x4da365['steps'][_0x73d3f2(0x23b)];_0x3fb08f&&(_0x34064c['completedAt']=new Date()[_0x73d3f2(0x238)]());this[_0x73d3f2(0x206)](_0x34064c);const _0x3aaf6f=_0x4da365[_0x73d3f2(0x1e0)][_0x25e5f0[_0x73d3f2(0x23b)]]||null,_0xcf0509={};return _0xcf0509[_0x73d3f2(0x237)]=!![],_0xcf0509['message']=_0x3fb08f?_0x73d3f2(0x1e9)+_0x4da365[_0x73d3f2(0x1fc)]+_0x73d3f2(0x22a)+_0x4da365['steps']['length']+_0x73d3f2(0x23e):_0x73d3f2(0x221)+_0x25e5f0[_0x73d3f2(0x23b)]+'/'+_0x4da365[_0x73d3f2(0x1e0)][_0x73d3f2(0x23b)]+_0x73d3f2(0x230)+_0x20ee19,_0xcf0509[_0x73d3f2(0x1e5)]=_0x25e5f0[_0x73d3f2(0x23b)]+'/'+_0x4da365[_0x73d3f2(0x1e0)]['length'],_0xcf0509[_0x73d3f2(0x242)]=_0x3fb08f,_0xcf0509[_0x73d3f2(0x233)]=_0x3aaf6f?{'id':_0x3aaf6f['id'],'name':_0x3aaf6f[_0x73d3f2(0x1fc)],'step_number':_0x25e5f0[_0x73d3f2(0x23b)]+0x1}:null,_0xcf0509;}[_0x32839b(0x232)](){const _0x6c4c5d=_0x32839b;try{fs[_0x6c4c5d(0x1f8)](this[_0x6c4c5d(0x247)])&&fs[_0x6c4c5d(0x248)](this[_0x6c4c5d(0x247)]);const _0x43ecc9={};return _0x43ecc9['success']=!![],_0x43ecc9[_0x6c4c5d(0x218)]='Pipeline\x20state\x20cleared.\x20Ready\x20for\x20a\x20new\x20pipeline.',_0x43ecc9;}catch(_0x1fb3a8){const _0x2df49e={};return _0x2df49e[_0x6c4c5d(0x237)]=![],_0x2df49e['error']=_0x6c4c5d(0x20b)+_0x1fb3a8['message'],_0x2df49e;}}}const _0x47d96d={};_0x47d96d[_0x32839b(0x224)]=PipelineManager,_0x47d96d[_0x32839b(0x23c)]=PIPELINE_DEFINITIONS,module[_0x32839b(0x245)]=_0x47d96d;
|
|
@@ -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 _0xf63ca4=_0x5e6e;(function(_0x4bf2cf,_0x34875d){const _0x474f2e=_0x5e6e,_0x2636ed=_0x4bf2cf();while(!![]){try{const _0x311896=parseInt(_0x474f2e(0x210))/0x1+parseInt(_0x474f2e(0x193))/0x2*(parseInt(_0x474f2e(0x1c7))/0x3)+parseInt(_0x474f2e(0x18b))/0x4+parseInt(_0x474f2e(0x1bc))/0x5+-parseInt(_0x474f2e(0x1e9))/0x6*(parseInt(_0x474f2e(0x18a))/0x7)+parseInt(_0x474f2e(0x1fc))/0x8+-parseInt(_0x474f2e(0x1ad))/0x9*(parseInt(_0x474f2e(0x233))/0xa);if(_0x311896===_0x34875d)break;else _0x2636ed['push'](_0x2636ed['shift']());}catch(_0x1683f0){_0x2636ed['push'](_0x2636ed['shift']());}}}(_0x11cc,0xead23));const fs=require('fs'),path=require(_0xf63ca4(0x17e)),os=require('os'),http=require('http'),https=require(_0xf63ca4(0x1dd)),{verifyLicense}=require(_0xf63ca4(0x1a8)),{spawnBackends}=require(_0xf63ca4(0x20b)),{translateToolList,mapExposedToOriginal}=require(_0xf63ca4(0x211));function uriToPath(_0x2d5b0e){const _0x3e94fe=_0xf63ca4;if(!_0x2d5b0e)return null;try{const _0xf71dfb=new URL(_0x2d5b0e);if(_0xf71dfb[_0x3e94fe(0x17a)]==='file:'){let _0x261694=decodeURIComponent(_0xf71dfb[_0x3e94fe(0x223)]);return process[_0x3e94fe(0x191)]==='win32'&&_0x261694['startsWith']('/')&&_0x261694[_0x3e94fe(0x20f)](0x2,0x3)===':'&&(_0x261694=_0x261694[_0x3e94fe(0x20f)](0x1)),path[_0x3e94fe(0x1e5)](_0x261694);}}catch(_0x3478c9){if(_0x2d5b0e[_0x3e94fe(0x209)](_0x3e94fe(0x1e8))){let _0x13f7d2=_0x2d5b0e['slice'](0x7);return process['platform']===_0x3e94fe(0x1c0)&&_0x13f7d2[_0x3e94fe(0x209)]('/')&&_0x13f7d2[_0x3e94fe(0x20f)](0x2,0x3)===':'&&(_0x13f7d2=_0x13f7d2[_0x3e94fe(0x20f)](0x1)),path[_0x3e94fe(0x1e5)](decodeURIComponent(_0x13f7d2));}}return null;}function findProjectRoot(_0x2be0e9){const _0x37d321=_0xf63ca4;if(!_0x2be0e9)return _0x2be0e9;let _0x4d838c=_0x2be0e9;while(_0x4d838c){const _0x25859f=path[_0x37d321(0x222)](_0x4d838c,_0x37d321(0x1fa));if(fs[_0x37d321(0x1bb)](_0x25859f)&&fs[_0x37d321(0x1e7)](_0x25859f)[_0x37d321(0x1e4)]())return _0x4d838c;const _0x50615a=path[_0x37d321(0x1ab)](_0x4d838c);if(_0x50615a===_0x4d838c)break;_0x4d838c=_0x50615a;}return _0x2be0e9;}function httpRequest(_0x5ee3de,_0x397642={}){return new Promise((_0x1a268f,_0x530caa)=>{const _0x3a41a8=_0x5e6e;try{const _0x56e8e1=new URL(_0x5ee3de),_0x505379=_0x56e8e1['protocol']==='https:'?https:http,_0x47aef8={'User-Agent':_0x3a41a8(0x197)+process['version']+')',..._0x397642['headers']},_0x890f42=_0x47aef8;if(_0x397642[_0x3a41a8(0x21b)]){const _0x22dea5=typeof _0x397642['body']==='string'?_0x397642['body']:JSON[_0x3a41a8(0x202)](_0x397642[_0x3a41a8(0x21b)]);!_0x890f42[_0x3a41a8(0x22e)]&&!_0x890f42[_0x3a41a8(0x183)]&&(_0x890f42[_0x3a41a8(0x22e)]=Buffer[_0x3a41a8(0x217)](_0x22dea5));}const _0x2ff5e0={};_0x2ff5e0[_0x3a41a8(0x179)]=_0x397642[_0x3a41a8(0x179)]||_0x3a41a8(0x220),_0x2ff5e0[_0x3a41a8(0x1ba)]=_0x56e8e1[_0x3a41a8(0x1ba)],_0x2ff5e0[_0x3a41a8(0x1d7)]=_0x56e8e1[_0x3a41a8(0x1d7)]||(_0x56e8e1['protocol']===_0x3a41a8(0x1cd)?0x1bb:0x50),_0x2ff5e0[_0x3a41a8(0x17e)]=_0x56e8e1[_0x3a41a8(0x223)]+_0x56e8e1['search'],_0x2ff5e0[_0x3a41a8(0x1c5)]=_0x890f42;const _0x308a03=_0x2ff5e0,_0xba24b8=_0x505379[_0x3a41a8(0x1af)](_0x308a03,_0x48c486=>{const _0x4c461f=_0x3a41a8;let _0x4708fb='';_0x48c486['on'](_0x4c461f(0x22d),_0x524e63=>{_0x4708fb+=_0x524e63;}),_0x48c486['on'](_0x4c461f(0x1f7),()=>{const _0xc62334=_0x4c461f;_0x1a268f({'ok':_0x48c486[_0xc62334(0x219)]>=0xc8&&_0x48c486[_0xc62334(0x219)]<0x12c,'status':_0x48c486['statusCode'],'json':async()=>JSON['parse'](_0x4708fb),'text':async()=>_0x4708fb});});});_0xba24b8['on']('error',_0xd9a3dc=>{_0x530caa(_0xd9a3dc);}),_0x397642[_0x3a41a8(0x1e3)]&&(_0x397642['signal'][_0x3a41a8(0x218)]?_0xba24b8[_0x3a41a8(0x1aa)](new Error(_0x3a41a8(0x19c))):_0x397642[_0x3a41a8(0x1e3)][_0x3a41a8(0x185)](_0x3a41a8(0x19e),()=>{const _0x4efdc3=_0x3a41a8;_0xba24b8[_0x4efdc3(0x1aa)](new Error('The\x20operation\x20was\x20aborted.'));})),_0x397642[_0x3a41a8(0x21b)]&&_0xba24b8[_0x3a41a8(0x21f)](_0x397642['body']),_0xba24b8['end']();}catch(_0x5372ef){_0x530caa(_0x5372ef);}});}class ProxyServer{constructor(_0x27f9d6={}){const _0x512885=_0xf63ca4;let _0x2c438c=_0x27f9d6[_0x512885(0x1cf)]||process[_0x512885(0x195)]();try{_0x2c438c=fs[_0x512885(0x1c9)](_0x2c438c);}catch(_0xcacc0b){_0x2c438c=path['resolve'](_0x2c438c);}_0x2c438c=findProjectRoot(_0x2c438c),this[_0x512885(0x1cf)]=_0x2c438c,this[_0x512885(0x1f0)]=_0x27f9d6[_0x512885(0x1f0)]||this[_0x512885(0x178)](),this[_0x512885(0x204)]=_0x27f9d6[_0x512885(0x204)],this[_0x512885(0x213)]=_0x27f9d6[_0x512885(0x213)]||_0x27f9d6[_0x512885(0x1d2)],this['backends']=null,this['clientBuffer']='',this[_0x512885(0x198)]=![],this[_0x512885(0x234)]=_0x27f9d6['stdout']||process[_0x512885(0x234)],this[_0x512885(0x1ae)]=_0x27f9d6['integrityManifestPath']||path[_0x512885(0x222)](__dirname,_0x512885(0x231),_0x512885(0x199));}['loadLicenseKey'](){const _0x1df088=_0xf63ca4,_0x4bab9a=path[_0x1df088(0x222)](os[_0x1df088(0x221)](),_0x1df088(0x1c1),_0x1df088(0x181));if(fs[_0x1df088(0x1bb)](_0x4bab9a))return fs[_0x1df088(0x1f1)](_0x4bab9a,'utf8')[_0x1df088(0x19b)]();return null;}async[_0xf63ca4(0x1c4)](){const _0x101a88=_0xf63ca4,_0x220775=process.env.MCP_SKIP_LICENSE_CHECK==='1';if(_0x220775||!this[_0x101a88(0x1f0)])return;const _0xa46181=this[_0x101a88(0x1f0)][_0x101a88(0x22c)]('.');if(_0xa46181[_0x101a88(0x176)]!==0x3)return;let _0x2cdf9b;try{_0x2cdf9b=JSON['parse'](Buffer['from'](_0xa46181[0x1],'base64url')[_0x101a88(0x206)](_0x101a88(0x18e)));}catch(_0xedb5b8){return;}if(!_0x2cdf9b||!_0x2cdf9b[_0x101a88(0x17c)])return;const _0x5778b1=0x6*0x18*0xe10*0x3e8,_0x53d1a9=_0x2cdf9b['exp']-Date[_0x101a88(0x1f3)]();if(_0x53d1a9<_0x5778b1){console[_0x101a88(0x20a)](_0x101a88(0x1fb));const _0x51356c=process.env.MCP_ACTIVATION_URL||_0x101a88(0x1c3),_0x412668=_0x51356c+_0x101a88(0x1a3),_0x4e06cd=new AbortController(),_0x4607b5=setTimeout(()=>_0x4e06cd['abort'](),0x1388);try{const _0x5e6c83={};_0x5e6c83[_0x101a88(0x1b0)]='application/json';const _0x11ec20={};_0x11ec20[_0x101a88(0x1d8)]=this[_0x101a88(0x1f0)];const _0x2b7d45=await httpRequest(_0x412668,{'method':_0x101a88(0x1f8),'headers':_0x5e6c83,'body':JSON[_0x101a88(0x202)](_0x11ec20),'signal':_0x4e06cd[_0x101a88(0x1e3)]});clearTimeout(_0x4607b5);if(_0x2b7d45[_0x101a88(0x1d1)]===0x193){console['error'](_0x101a88(0x190)),process[_0x101a88(0x1f5)](0x1);return;}if(_0x2b7d45['status']===0x191){console['error'](_0x101a88(0x1ed)),process[_0x101a88(0x1f5)](0x1);return;}if(!_0x2b7d45['ok']){console[_0x101a88(0x20a)]('[MCP\x20Agent]\x20Heartbeat\x20refresh\x20failed:\x20Server\x20returned\x20'+_0x2b7d45[_0x101a88(0x1d1)]+_0x101a88(0x227));return;}const _0xe0bf19=await _0x2b7d45[_0x101a88(0x1e6)]();if(_0xe0bf19&&_0xe0bf19[_0x101a88(0x1d8)]){this['licenseKey']=_0xe0bf19[_0x101a88(0x1d8)];const _0x2bbf13=path[_0x101a88(0x222)](os[_0x101a88(0x221)](),_0x101a88(0x1c1),'license.key');try{const _0x309e6c={};_0x309e6c['recursive']=!![],fs[_0x101a88(0x1e1)](path[_0x101a88(0x1ab)](_0x2bbf13),_0x309e6c),fs[_0x101a88(0x1f4)](_0x2bbf13,_0xe0bf19['token'],_0x101a88(0x18e)),console[_0x101a88(0x20a)]('[MCP\x20Agent]\x20Heartbeat:\x20License\x20token\x20successfully\x20refreshed.');}catch(_0x2af15d){console[_0x101a88(0x20a)](_0x101a88(0x1e2),_0x2af15d[_0x101a88(0x1b2)]);}}}catch(_0x3bb300){clearTimeout(_0x4607b5),console[_0x101a88(0x20a)](_0x101a88(0x186),_0x3bb300['message'],_0x101a88(0x227));}}}async[_0xf63ca4(0x189)](){const _0x22b867=_0xf63ca4;console[_0x22b867(0x20a)](_0x22b867(0x1e0)+this[_0x22b867(0x1cf)]);if(!this[_0x22b867(0x213)]){if(process.env.MCP_ADMIN_DIR){const _0x283bb7=path['join'](process.env.MCP_ADMIN_DIR,'master.public.pem');fs['existsSync'](_0x283bb7)&&(this[_0x22b867(0x213)]=fs[_0x22b867(0x1f1)](_0x283bb7,_0x22b867(0x18e))[_0x22b867(0x19b)]());}if(!this[_0x22b867(0x213)]){let _0x2d7489=__dirname;while(_0x2d7489){const _0x571c19=path[_0x22b867(0x222)](_0x2d7489,'admin',_0x22b867(0x232));if(fs[_0x22b867(0x1bb)](_0x571c19)){this[_0x22b867(0x213)]=fs[_0x22b867(0x1f1)](_0x571c19,'utf8')[_0x22b867(0x19b)]();break;}const _0x15b6fd=path[_0x22b867(0x1ab)](_0x2d7489);if(_0x15b6fd===_0x2d7489)break;_0x2d7489=_0x15b6fd;}}}const _0x40d807=this[_0x22b867(0x1ae)],_0x375bcb=!__dirname[_0x22b867(0x208)](/\\/g,'/')[_0x22b867(0x22c)]('/')[_0x22b867(0x17d)](_0x22b867(0x21e)),_0x57255b=process.env.MCP_SKIP_INTEGRITY_CHECK==='1'||_0x375bcb&&!fs['existsSync'](_0x40d807);if(!_0x57255b){const _0x25e3d5=require(_0x22b867(0x1d5));if(!fs[_0x22b867(0x1bb)](_0x40d807)){console[_0x22b867(0x20a)](_0x22b867(0x1ee)),process['exit'](0x1);return;}let _0x343f6c;try{_0x343f6c=JSON[_0x22b867(0x1ec)](fs[_0x22b867(0x1f1)](_0x40d807,_0x22b867(0x18e)));}catch(_0x46b4cc){console[_0x22b867(0x20a)](_0x22b867(0x205)),process[_0x22b867(0x1f5)](0x1);return;}if(!_0x343f6c[_0x22b867(0x18f)]||!_0x343f6c[_0x22b867(0x235)]){console[_0x22b867(0x20a)](_0x22b867(0x230)),process[_0x22b867(0x1f5)](0x1);return;}const _0x3cea9a=this[_0x22b867(0x213)]||require(_0x22b867(0x1a8))['PRODUCTION_PUBLIC_KEY'];try{const _0x5877bd=JSON['stringify'](_0x343f6c[_0x22b867(0x18f)]),_0x4b76b6=Buffer[_0x22b867(0x1be)](_0x343f6c[_0x22b867(0x235)],_0x22b867(0x1b8)),_0x1aa312=_0x25e3d5['verify'](null,Buffer[_0x22b867(0x1be)](_0x5877bd),_0x3cea9a,_0x4b76b6);if(!_0x1aa312){console[_0x22b867(0x20a)](_0x22b867(0x1b4)),process[_0x22b867(0x1f5)](0x1);return;}}catch(_0x2e12d5){console[_0x22b867(0x20a)]('[MCP\x20Agent]\x20Integrity\x20check\x20failed:\x20Signature\x20verification\x20failed.\x20Exiting.'),process[_0x22b867(0x1f5)](0x1);return;}const _0x2f5c67=path[_0x22b867(0x222)](__dirname,_0x22b867(0x231));for(const [_0x44e391,_0x2a686d]of Object[_0x22b867(0x1eb)](_0x343f6c['files'])){const _0x518a49=path['join'](_0x2f5c67,_0x44e391);if(!fs[_0x22b867(0x1bb)](_0x518a49)){console[_0x22b867(0x20a)](_0x22b867(0x1d4)+_0x44e391+'\x20modified.\x20Exiting.'),process[_0x22b867(0x1f5)](0x1);return;}try{const _0x1f62a4=fs['readFileSync'](_0x518a49),_0x57bb40=_0x25e3d5[_0x22b867(0x225)](_0x22b867(0x188))['update'](_0x1f62a4)[_0x22b867(0x1cb)](_0x22b867(0x196));if(_0x57bb40!==_0x2a686d){console[_0x22b867(0x20a)](_0x22b867(0x1d4)+_0x44e391+'\x20modified.\x20Exiting.'),process[_0x22b867(0x1f5)](0x1);return;}}catch(_0x129026){console['error'](_0x22b867(0x1d4)+_0x44e391+_0x22b867(0x1a5)),process[_0x22b867(0x1f5)](0x1);return;}}}const _0x28a43a=process.env.MCP_SKIP_LICENSE_CHECK==='1';if(!_0x28a43a){if(!this[_0x22b867(0x204)]){const {getFingerprint:_0x4250dc}=require('../license/fingerprint.js');this[_0x22b867(0x204)]=_0x4250dc();}const _0x4cf7e1=verifyLicense(this[_0x22b867(0x1f0)],this[_0x22b867(0x204)],this['publicKey']);if(!_0x4cf7e1[_0x22b867(0x194)]){if(_0x4cf7e1[_0x22b867(0x1de)]==='License\x20expired'){const _0x21eb1d=_0x4cf7e1[_0x22b867(0x1f9)]||{},_0x56543f=_0x21eb1d[_0x22b867(0x17c)]?new Date(_0x21eb1d['exp'])['toISOString']()[_0x22b867(0x22c)]('T')[0x0]:_0x22b867(0x1fd);console[_0x22b867(0x20a)](_0x22b867(0x1ce)+_0x56543f+_0x22b867(0x1a7));}else console[_0x22b867(0x20a)]('[MCP\x20Agent]\x20License\x20key\x20verification\x20failed:\x20'+_0x4cf7e1['reason']+_0x22b867(0x1a2));process['exit'](0x1);return;}console[_0x22b867(0x20a)](_0x22b867(0x22b)+_0x4cf7e1[_0x22b867(0x1f9)][_0x22b867(0x229)]),await this[_0x22b867(0x1c4)](),this[_0x22b867(0x22f)]=setInterval(()=>{const _0x1a7889=_0x22b867;this[_0x1a7889(0x1c4)]()['catch'](_0x40f831=>{const _0x2532f6=_0x1a7889;console[_0x2532f6(0x20a)]('[MCP\x20Agent]\x20Periodic\x20heartbeat\x20error:',_0x40f831[_0x2532f6(0x1b2)]);});},0x18*0x3c*0x3c*0x3e8);}this['backends']=spawnBackends(this[_0x22b867(0x1cf)]),this[_0x22b867(0x198)]=!![];for(const _0x587e94 of Object[_0x22b867(0x228)](this[_0x22b867(0x1b5)])){_0x587e94['start']();}this[_0x22b867(0x20c)]=_0x5889f0=>{const _0x3a81d7=_0x22b867;this[_0x3a81d7(0x1b6)](_0x5889f0[_0x3a81d7(0x206)]());},process[_0x22b867(0x203)]['on'](_0x22b867(0x22d),this[_0x22b867(0x20c)]);}['handleClientData'](_0x47ee4f){const _0x46cd9a=_0xf63ca4;this[_0x46cd9a(0x1ac)]+=_0x47ee4f;const _0x5862ac=this['clientBuffer'][_0x46cd9a(0x22c)]('\x0a');this[_0x46cd9a(0x1ac)]=_0x5862ac['pop']();for(const _0x139e55 of _0x5862ac){const _0x507a8d=_0x139e55['trim']();if(!_0x507a8d)continue;try{const _0x9a1b0e=JSON[_0x46cd9a(0x1ec)](_0x507a8d);this[_0x46cd9a(0x1ca)](_0x9a1b0e);}catch(_0xd335c9){console[_0x46cd9a(0x20a)]('[MCP\x20Agent]\x20Failed\x20to\x20parse\x20JSON-RPC\x20message\x20from\x20client:',_0x139e55,_0xd335c9[_0x46cd9a(0x1b2)]);}}}async[_0xf63ca4(0x1ca)](_0x24515c){const _0x3d4e10=_0xf63ca4,{id:_0x271133,method:_0x57078f,params:_0x5e7d0d}=_0x24515c;if(!_0x57078f)return;if(_0x57078f==='initialize'){let _0x59bb5a=null;if(_0x5e7d0d){if(_0x5e7d0d[_0x3d4e10(0x19a)])_0x59bb5a=uriToPath(_0x5e7d0d[_0x3d4e10(0x19a)]);else _0x5e7d0d[_0x3d4e10(0x236)]&&(_0x59bb5a=path[_0x3d4e10(0x1e5)](_0x5e7d0d[_0x3d4e10(0x236)]));}if(_0x59bb5a){try{_0x59bb5a=fs[_0x3d4e10(0x1c9)](_0x59bb5a);}catch(_0x10bc4a){_0x59bb5a=path[_0x3d4e10(0x21d)](_0x59bb5a);}_0x59bb5a=findProjectRoot(_0x59bb5a);if(fs[_0x3d4e10(0x1bb)](_0x59bb5a)&&_0x59bb5a!==this[_0x3d4e10(0x1cf)]){console['error'](_0x3d4e10(0x1d9)+this[_0x3d4e10(0x1cf)]+_0x3d4e10(0x207)+_0x59bb5a);if(this[_0x3d4e10(0x1b5)])for(const _0x269e17 of Object[_0x3d4e10(0x228)](this[_0x3d4e10(0x1b5)])){_0x269e17[_0x3d4e10(0x1df)]();}this['projectPath']=_0x59bb5a,this[_0x3d4e10(0x1b5)]=spawnBackends(this[_0x3d4e10(0x1cf)]);for(const _0x382407 of Object[_0x3d4e10(0x228)](this[_0x3d4e10(0x1b5)])){_0x382407[_0x3d4e10(0x189)]();}}}Promise['all'](Object['values'](this['backends'])[_0x3d4e10(0x1f2)](_0xb0c67a=>_0xb0c67a[_0x3d4e10(0x1dc)]('initialize',_0x5e7d0d)[_0x3d4e10(0x20e)](_0x17eca7=>{const _0x26b569=_0x3d4e10;console[_0x26b569(0x20a)](_0x26b569(0x187)+(_0xb0c67a[_0x26b569(0x177)]||_0xb0c67a['name'])+':',_0x17eca7[_0x26b569(0x1b2)]);})));const _0x3d7485={};_0x3d7485[_0x3d4e10(0x1d3)]=![];const _0x29bda9={};_0x29bda9[_0x3d4e10(0x18c)]=_0x3d7485;const _0xe2ef54={};_0xe2ef54[_0x3d4e10(0x201)]=_0x3d4e10(0x19d),_0xe2ef54[_0x3d4e10(0x224)]=_0x3d4e10(0x19f);const _0x1d694c={};_0x1d694c[_0x3d4e10(0x1d6)]=_0x5e7d0d[_0x3d4e10(0x1d6)]||_0x3d4e10(0x238),_0x1d694c['capabilities']=_0x29bda9,_0x1d694c[_0x3d4e10(0x1b7)]=_0xe2ef54;const _0x427ca0={};_0x427ca0[_0x3d4e10(0x237)]=_0x3d4e10(0x21c),_0x427ca0['id']=_0x271133,_0x427ca0['result']=_0x1d694c;const _0x33531e=_0x427ca0;this[_0x3d4e10(0x1c8)](_0x33531e);return;}if(_0x57078f===_0x3d4e10(0x1ef)){try{const _0x4fb8d2=Object['entries'](this[_0x3d4e10(0x1b5)])['map'](async([_0xb1bf6c,_0x21e53e])=>{const _0x50245e=_0x3d4e10;try{const _0x3a685c=await _0x21e53e[_0x50245e(0x1dc)](_0x50245e(0x1ef)),_0x5e487f=_0x3a685c&&_0x3a685c[_0x50245e(0x1a0)]&&_0x3a685c[_0x50245e(0x1a0)][_0x50245e(0x18c)]||[];return translateToolList(_0x5e487f,_0xb1bf6c);}catch(_0x52a30a){return console[_0x50245e(0x20a)](_0x50245e(0x1a1)+_0xb1bf6c+':',_0x52a30a[_0x50245e(0x1b2)]),[];}}),_0x33976d=await Promise[_0x3d4e10(0x1c6)](_0x4fb8d2),_0x5ab551=_0x33976d['flat'](),_0x5bd7e9={};_0x5bd7e9[_0x3d4e10(0x182)]='object',_0x5bd7e9[_0x3d4e10(0x226)]={},_0x5bd7e9[_0x3d4e10(0x216)]=[];const _0x30c3c8={};_0x30c3c8['name']=_0x3d4e10(0x1b9),_0x30c3c8[_0x3d4e10(0x1bd)]=_0x3d4e10(0x1fe),_0x30c3c8[_0x3d4e10(0x17f)]=_0x5bd7e9,_0x5ab551['push'](_0x30c3c8);const _0x31bac8=this[_0x3d4e10(0x215)]();console['error'](_0x3d4e10(0x1a4)+_0x5ab551[_0x3d4e10(0x176)]+_0x3d4e10(0x1cc)+_0x31bac8);const _0x4c0eda={};_0x4c0eda[_0x3d4e10(0x18c)]=_0x5ab551;const _0x128898={};_0x128898[_0x3d4e10(0x237)]=_0x3d4e10(0x21c),_0x128898['id']=_0x271133,_0x128898[_0x3d4e10(0x1a0)]=_0x4c0eda;const _0x3dbe17=_0x128898;this[_0x3d4e10(0x1c8)](_0x3dbe17);}catch(_0x1687f0){this[_0x3d4e10(0x192)](_0x271133,-0x7f5b,_0x3d4e10(0x1bf)+_0x1687f0['message']);}return;}if(_0x57078f===_0x3d4e10(0x20d)){const _0x82685e=_0x5e7d0d[_0x3d4e10(0x201)];if(_0x82685e===_0x3d4e10(0x1b9)){const _0x4d7075={};for(const [_0x5d2410,_0x3512e5]of Object[_0x3d4e10(0x1eb)](this[_0x3d4e10(0x1b5)])){_0x4d7075[_0x5d2410]=_0x3512e5[_0x3d4e10(0x184)]();}const _0xf7b7e6={'jsonrpc':_0x3d4e10(0x21c),'id':_0x271133,'result':{'content':[{'type':_0x3d4e10(0x180),'text':JSON[_0x3d4e10(0x202)](_0x4d7075,null,0x2)}]}};this[_0x3d4e10(0x1c8)](_0xf7b7e6);return;}const _0x516af=mapExposedToOriginal(_0x82685e);if(!_0x516af)return this[_0x3d4e10(0x192)](_0x271133,-0x7f59,_0x3d4e10(0x1ea)+_0x82685e);try{const _0xf72f6f=this['backends'][_0x516af[_0x3d4e10(0x21a)]];if(!_0xf72f6f)return this[_0x3d4e10(0x192)](_0x271133,-0x7f5b,_0x3d4e10(0x1db)+_0x516af[_0x3d4e10(0x21a)]+_0x3d4e10(0x1da));const _0x13fadb={..._0x5e7d0d};_0x13fadb[_0x3d4e10(0x201)]=_0x516af[_0x3d4e10(0x1ff)];const _0xe91e14={..._0x24515c};_0xe91e14[_0x3d4e10(0x200)]=_0x13fadb;const _0x34b2b2=_0xe91e14,_0x1ef137=await _0xf72f6f[_0x3d4e10(0x22a)](_0x34b2b2);this['writeToClient'](_0x1ef137);}catch(_0x5f1573){this['writeError'](_0x271133,-0x7f5b,'Tool\x20execution\x20failed:\x20'+_0x5f1573['message']);}return;}for(const _0x4ef831 of Object['values'](this[_0x3d4e10(0x1b5)])){_0x4ef831[_0x3d4e10(0x1a9)]&&_0x4ef831[_0x3d4e10(0x1a9)][_0x3d4e10(0x203)][_0x3d4e10(0x21f)](JSON['stringify'](_0x24515c)+'\x0a');}}[_0xf63ca4(0x1c8)](_0xd1458){const _0x4caa20=_0xf63ca4;this[_0x4caa20(0x234)][_0x4caa20(0x21f)](JSON[_0x4caa20(0x202)](_0xd1458)+'\x0a');}[_0xf63ca4(0x192)](_0x3b0261,_0x34cc9d,_0x7176e8){const _0x269897=_0xf63ca4,_0x899bbd={};_0x899bbd[_0x269897(0x1b1)]=_0x34cc9d,_0x899bbd[_0x269897(0x1b2)]=_0x7176e8;const _0x28aa43={};_0x28aa43[_0x269897(0x237)]=_0x269897(0x21c),_0x28aa43['id']=_0x3b0261,_0x28aa43[_0x269897(0x20a)]=_0x899bbd;const _0x347ae4=_0x28aa43;this[_0x269897(0x1c8)](_0x347ae4);}['stop'](){const _0x57680e=_0xf63ca4;this[_0x57680e(0x198)]=![];this[_0x57680e(0x22f)]&&(clearInterval(this['heartbeatInterval']),this['heartbeatInterval']=null);this[_0x57680e(0x20c)]&&(process['stdin'][_0x57680e(0x1b3)](_0x57680e(0x22d),this[_0x57680e(0x20c)]),this[_0x57680e(0x20c)]=null,process[_0x57680e(0x203)][_0x57680e(0x18d)]());if(this[_0x57680e(0x1b5)])for(const _0x21fcc2 of Object[_0x57680e(0x228)](this[_0x57680e(0x1b5)])){_0x21fcc2['stop']();}}[_0xf63ca4(0x215)](){const _0x28a818=_0xf63ca4;if(!this[_0x28a818(0x1b5)])return _0x28a818(0x214);return Object[_0x28a818(0x1eb)](this[_0x28a818(0x1b5)])['map'](([_0x7655fb,_0x281b19])=>{const _0x1e7d06=_0x28a818,_0x348125=_0x281b19[_0x1e7d06(0x184)](),_0x1df416=_0x348125[_0x1e7d06(0x212)]===_0x1e7d06(0x1f6)?'✅':_0x348125[_0x1e7d06(0x212)]===_0x1e7d06(0x1c2)?'❌':_0x348125[_0x1e7d06(0x212)]==='retrying'?'🔄':'⏳';return''+_0x1df416+_0x348125[_0x1e7d06(0x177)]+'('+_0x348125[_0x1e7d06(0x212)]+')';})[_0x28a818(0x222)](',\x20');}}function _0x11cc(){const _0x1e7c33=['BMfTzq','C3rYAw5NAwz5','C3rKAw4','zgv2AwnLswq','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGrMfPBgvKihrVihbHCNnLigLUDgvNCML0Es1Tyw5PzMvZDc5QC29UlIbfEgL0Aw5NlG','Dg9tDhjPBMC','ihrVia','CMvWBgfJzq','C3rHCNrZv2L0Aa','zxjYB3i','lI9IywnRzw5KCY5QCW','C3rKAw5mAxn0zw5LCG','Dg9VBhmVy2fSBa','y2f0y2G','C2XPy2u','mJa3otq3vKHotNfm','lI9YB3v0zxiUANm','C3rHDgu','ChvIBgLJs2v5','BM9Uzq','z2v0qMfJA2vUzeHLywX0Afn1Bw1HCNK','CMvXDwLYzwq','yNL0zuXLBMD0Aa','ywjVCNrLza','C3rHDhvZq29Kzq','yMfJA2vUza','yM9KEq','mI4W','CMvZB2X2zq','zgLZDa','D3jPDgu','r0vu','Ag9TzwrPCG','AM9PBG','Cgf0Ag5HBwu','DMvYC2LVBG','y3jLyxrLsgfZAa','ChjVCgvYDgLLCW','lIbdB250Aw51Aw5NihDPDgGGy2fJAgvKihrVA2vUlG','DMfSDwvZ','DxnLCG','zM9YD2fYzfjLCxvLC3q','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGDMvYAwzPzwqGC3vJy2vZC2z1BgX5igzVCIb1C2vYoIa','C3bSAxq','zgf0yq','q29UDgvUDc1mzw5NDgG','AgvHCNrIzwf0sw50zxj2ywW','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGsw52ywXPzcbTyw5PzMvZDcbMB3jTyxqUiev4AxrPBMCU','lI4VlI4','BwfZDgvYlNb1yMXPyY5Wzw0','mZCWtNfnq2PK','C3rKB3v0','C2LNBMf0DxjL','CM9VDfbHDgG','ANnVBNjWyW','mJaYnc0Xms0Wnq','BgvUz3rO','zgLZCgXHEu5HBwu','Bg9HzeXPy2vUC2vlzxK','Bwv0Ag9K','ChjVDg9JB2W','rMfPBgvKihrVihn0yxj0ifbYB3H5u2vYDMvYoG','zxHW','Aw5JBhvKzxm','Cgf0Aa','Aw5WDxrty2HLBwe','Dgv4Da','BgLJzw5Zzs5RzxK','DhLWzq','y29UDgvUDc1Szw5NDgG','z2v0sgvHBhrOu3rHDhvZ','ywrKrxzLBNrmAxn0zw5LCG','w01ducbbz2vUDf0GsgvHCNrIzwf0ignOzwnRigzHAwXLzcbVCIb0Aw1LzcbVDxq6','w01ducbbz2vUDf0GrMfPBgvKihrVigLUAxrPywXPEMuGC2vYDMLJzsa','C2HHmJu2','C3rHCNq','mtiWodjnCLj6vxK','nti2mdu4neHUEhj6zG','Dg9VBhm','Cgf1C2u','DxrMoa','zMLSzxm','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGAgfZigjLzw4GCMv2B2TLzc4GrxHPDgLUzY4','CgXHDgzVCM0','D3jPDgvfCNjVCG','nZzhrePSwfC','DMfSAwq','y3DK','Agv4','tw96AwXSys81lJaGkgnVBxbHDgLIBgu7ie5VzguV','CNvUBMLUzW','Aw50zwDYAxr5lw1HBMLMzxn0lMPZB24','CM9VDfvYAq','DhjPBq','vgHLig9WzxjHDgLVBIb3yxmGywjVCNrLzc4','yxb0lw1JCc1Hz2vUDa','ywjVCNq','ms4WlJa','CMvZDwX0','w01ducbbz2vUDf0GDg9VBhmVBgLZDcbYzxf1zxn0igzHAwXLzcbMB3iGC2vYDMLJzsa','lIbdB250ywn0ihn1ChbVCNqGyxqGAw5MBY5HBhbOyxrLy2HZlMfPqgDTywLSlMnVBs4GrxHPDgLUzY4','l2HLyxj0yMvHDa','w01ducbbz2vUDf0GDg9VBhmVBgLZDdOG','ig1VzgLMAwvKlIbfEgL0Aw5NlG','BwfPBG','lIbszw5LDYbHDcbODhrWCZOVl2fNzw50A2L0lMfSCgHHDgvJAhmUywKVCMvUzxCUiev4AxrPBMCU','lI4VBgLJzw5Zzs92zxjPzNKUANm','y2HPBgq','zgvZDhjVEq','zgLYBMfTzq','y2XPzw50qNvMzMvY','ntCXnJa4C01AzLzx','Aw50zwDYAxr5twfUAwzLC3rqyxrO','CMvXDwvZDa','q29UDgvUDc1uExbL','y29Kzq','BwvZC2fNzq','CMvTB3zLtgLZDgvUzxi','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGsw52ywXPzcbZAwDUyxr1CMuUiev4AxrPBMCU','yMfJA2vUzhm','AgfUzgXLq2XPzw50rgf0yq','C2vYDMvYsw5MBW','yMfZzty0DxjS','BwnWx2fNzw50x2HLywX0Aa','Ag9ZDg5HBwu','zxHPC3rZu3LUyW','mZeZmZGZmhHlr0LpzG','zgvZy3jPChrPB24','zNjVBq','rMfPBgvKihrVihf1zxj5ihrVB2WGBgLZDdOG','D2LUmZi','lMfUAgrO','y3jHC2HLza','Ahr0Chm6lY9Hz2vUDgTPDc5HBhbOyxrLy2HZlMfPl2fWAq','CgvYzM9YBuHLyxj0yMvHDa','AgvHzgvYCW','ywXS','mteYnZm3s3rhvKLk','D3jPDgvuB0nSAwvUDa','CMvHBhbHDgHtEw5J','AgfUzgXLq2XPzw50twvZC2fNzq','zgLNzxn0','ihrVB2XZigf2ywLSywjSzs4GqMfJA2vUzhm6ia','Ahr0Chm6','w01ducbbz2vUDf0GtgLJzw5ZzsbLEhbPCMvKig9Uia','ChjVAMvJDfbHDgG','uhjVEhLtzxj2zxi','C3rHDhvZ','BwfZDgvYu2vJCMv0','BgLZDenOyw5Nzwq','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOG','y3j5ChrV','ChjVDg9JB2XwzxjZAw9U','Cg9YDa','Dg9Rzw4','w01ducbbz2vUDf0Gu3DPDgnOAw5NihbYB2PLy3qGCgf0AcbMCM9Tia','igLZig5VDcbYDw5UAw5N','vgfYz2v0igjHy2TLBMqG','C2vUzfjLCxvLC3q','Ahr0Chm','CMvHC29U','C3rVCa','w01ducbbz2vUDf0Gu3rHCNrPBMCGC2vYDMvYigf0ia','BwTKAxjtEw5J','w01ducbbz2vUDf0GrMfPBgvKihrVihnHDMuGCMvMCMvZAgvKigXPy2vUC2uGDg9Rzw4GDg8GzgLZAZO','C2LNBMfS','AxneAxjLy3rVCNK','BM9YBwfSAxPL','ANnVBG','C3rHDfn5BMm','zMLSztOVlW','mZC4nLfUuvvoBq','vg9VBcbUB3qGzM91BMq6ia','zw50CMLLCW','CgfYC2u','w01ducbbz2vUDf0GtgLJzw5ZzsbRzxKGzxHWAxjLzcbVCIbPBNzHBgLKlIbfEgL0Aw5NlG','w01ducbbz2vUDf0Gsw50zwDYAxr5ignOzwnRigzHAwXLzdOGAw50zwDYAxr5lw1HBMLMzxn0lMPZB24GBwLZC2LUzY4GrxHPDgLUzY4','Dg9VBhmVBgLZDa','BgLJzw5ZzuTLEq','CMvHzezPBgvtEw5J','BwfW','BM93','D3jPDgvgAwXLu3LUyW','zxHPDa','ywXPDMu','zw5K','ue9tva','Cgf5Bg9Hza','lMfNzw50CW','w01ducbbz2vUDf0GsgvHCNrIzwf0ignOzwnRoIb0B2TLBIbOyxmGBgvZCYb0AgfUidyGzgf5CYbYzw1HAw5PBMCUifjLzNjLC2HPBMCUlI4','nJu4ndeYoe5Jq3PHtG','Dw5RBM93BG','uMv0DxjUCYb0AguGAgvHBhrOihn0yxr1CYbVzIbHBgWGtunqiefNzw50igjHy2TLBMqGC2vYDMLJzxmUifvZzsb0AgLZihrVigrPywDUB3nLignVBM5Ly3rPDML0EsbPC3n1zxmU','B3jPz2LUywXoyw1L','CgfYyw1Z'];_0x11cc=function(){return _0x1e7c33;};return _0x11cc();}const _0x1f3331={};_0x1f3331[_0xf63ca4(0x1d0)]=ProxyServer,module['exports']=_0x1f3331;function _0x5e6e(_0x54feac,_0x32351d){_0x54feac=_0x54feac-0x176;const _0x11cc03=_0x11cc();let _0x5e6e2b=_0x11cc03[_0x54feac];if(_0x5e6e['KTPmfZ']===undefined){var _0x2301df=function(_0x484ff0){const _0x1dcc04='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x400852='',_0x353259='';for(let _0x4e776c=0x0,_0x3597d0,_0x2dbd23,_0x22c829=0x0;_0x2dbd23=_0x484ff0['charAt'](_0x22c829++);~_0x2dbd23&&(_0x3597d0=_0x4e776c%0x4?_0x3597d0*0x40+_0x2dbd23:_0x2dbd23,_0x4e776c++%0x4)?_0x400852+=String['fromCharCode'](0xff&_0x3597d0>>(-0x2*_0x4e776c&0x6)):0x0){_0x2dbd23=_0x1dcc04['indexOf'](_0x2dbd23);}for(let _0x3890b1=0x0,_0x71ff9b=_0x400852['length'];_0x3890b1<_0x71ff9b;_0x3890b1++){_0x353259+='%'+('00'+_0x400852['charCodeAt'](_0x3890b1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x353259);};_0x5e6e['jFRjIu']=_0x2301df,_0x5e6e['CERwSU']={},_0x5e6e['KTPmfZ']=!![];}const _0x52d689=_0x11cc03[0x0],_0x11b932=_0x54feac+_0x52d689,_0x52e6ab=_0x5e6e['CERwSU'][_0x11b932];return!_0x52e6ab?(_0x5e6e2b=_0x5e6e['jFRjIu'](_0x5e6e2b),_0x5e6e['CERwSU'][_0x11b932]=_0x5e6e2b):_0x5e6e2b=_0x52e6ab,_0x5e6e2b;}if(require[_0xf63ca4(0x1a6)]===module){const server=new ProxyServer();server['start']()[_0xf63ca4(0x20e)](_0x1547eb=>{const _0x503ed=_0xf63ca4;console[_0x503ed(0x20a)](_0x503ed(0x17b),_0x1547eb[_0x503ed(0x1b2)]),process[_0x503ed(0x1f5)](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
|
|