apt-mcp-agent-setup 2.0.1 → 3.0.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 +28 -17
- package/package.json +1 -1
- package/src/core/catalog.js +1 -0
- package/src/core/doctor.js +1 -0
- package/src/core/execution.js +1 -0
- package/src/core/hook-bridge.js +1 -0
- package/src/core/host-adapters.js +1 -0
- package/src/core/memory-store.js +1 -0
- package/src/core/session.js +1 -0
- package/src/core/skill-names.js +1 -0
- package/src/installer/global-setup.js +1 -1
- package/src/installer/host-hooks.js +1 -0
- package/src/installer/managed-config.js +1 -0
- 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/core-tools.js +1 -0
- package/src/proxy/pipeline.js +1 -1
- package/src/proxy/router.config.js +1 -1
- package/src/proxy/router.js +1 -1
- package/src/proxy/server.js +1 -1
- package/src/templates/AGENTS.md +15 -64
- package/src/templates/CLAUDE.md +180 -254
- package/src/templates/GEMINI.md +17 -115
- package/src/templates/apt-runtime.md +16 -0
- package/src/templates/copilot-instructions.md +141 -214
- package/src/templates/cursorrules.mdc +166 -232
- package/src/templates/mcp-tools.md +176 -175
- package/src/templates/windsurfrules.md +141 -214
package/src/proxy/backends.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4707(){const _0x41fe98=['zMfSC2u','A25VD2XLzgDLihbLCNnPC3rLBMnLigXHEwvY','qgnVBgj5BwnOzw5YEs9JB2rLz3jHCgG','DxrMoa','y2XVC2u','zw50CMLLCW','CMvXDwvZDfrPBwvVDxrnCW','Dw5RBM93BG','lM1JCc5QC29U','vxnLCG','yxrSyxnZAwfU','z29Vz2XLlwrYAxzL','BwnWlwf0BgfZC2LHBG','C2vYDMvYlw1LBw9YEq','qxbWrgf0yq','z2v0','zxHLy1bHDgG','C2v0','BxmGkgf0DgvTChqG','C3rVCa','uefusa','C2vUzfjLCxvLC3q','tuvnt1jzx0zjtevFuefusa','q29Kzq','lMn1CNnVCG','z3jHCgG','s25VD2XLzgDLifn0B3jL','CMv0CNLdB3vUDa','jYbPBIa','zw52','CMv0CNLuAw1LCG','CMv0CNLPBMC','ls1UBY1PBNn0ywXS','AxnszwfKEq','ANnVBNjWyW','mJG3otq5Ce5OrKrW','AgfZ','y29Kzq','ndKXntG0y3bJBMHI','AxngAw5PDgu','CgLK','Cgf0Aa','Bwv0Ag9K','EwvZ','D2LUmZi','sKLsqv9vuKW','C3bSAxq','igLZig5VDcbYDw5UAw5N','yNvMzMvY','qf9KyxzPzgvHC3qVC3rPDgnOlw1JCeaWlJKUma','A2LSBa','l3vZCI9SB2nHBc9IAw4','lMnVzgvPDw0','zMLSDgvY','AwDUB3jL','l29WDc9OB21LyNjLDY9IAw4','ks4UlG','u1rjvenix0voqujmruq','zw5HyMXLza','odC4nta4wKT0vhPs','CgfYC2vjBNq','y2HPBgrFChjVy2vZCW','AgfUzgXLrgf0yq','lMfUAgrO','mZu5nde1Avj0uNDO','CgfYC2u','r09pr0Xfx0rssvzfx01duf9tq09qrvm','mtyXnZy4CwvmsNL6','CMvQzwn0','r29Vz2XLierYAxzL','z2vUzxjHDgvFC2nYzwvUx2zYB21FDgv4Da','y29KzsbPBNrLBgXPz2vUy2uGzw5NAw5L','C2vYDMu','C291CMnL','mtG4mJi2Ee1OsfDy','lNzZy29Kzq','BNb4ic0TEwvZiebFzgf2AwrLyxn0l3n0AxrJAc1Ty3bamc45lJaGAw5PDa','BwnWlMPZB24','Bwf4uMv0CMLLCW','y2HPBgq','zwrPDf9Zy3jLzw5Z','zxjYB3i','Cg9W','y3DK','sMLYysaOsw50zxjUywWP','tgLICMfYEq','DgvZDa','ihnLCNzPy2u6ia','w01ducbbz2vUDf0GswDUB3jPBMCGAw52ywXPzcbtveLuq0HFru5bqKXfrcb2ywX1zsaI','y29Kzv9YzxzPzxDFz3jHCgG','C3rKAw8','y2XLyxi','DMvYC2LVBG','C2vYDMvYCW','rMLNBweGrgvZAwDU','mtuXnZmYn1f3Chrlqq','ignYyxnOzwqGkgv4AxqG','sKLsqv9vu0vstKfnrq','r09pr0Xfx0rssvzfx01duf9ut0TftL9qqvri','zgvSzxrL','lMnVBMzPzW','ChL0Ag9U','BwvZC2fNzq','zM9YD2fYzfjLCxvLC3q','Dg9VBhmVy2fSBa','q29KzsbjBMrLEa','zhjPDMuSzg9JDw1LBNrZlhnWCMvHzhnOzwv0CW','ChvZAa','ChL0Ag9UmW','zgf0yq','AM9PBG','CMvXDwvZDeLKq291BNrLCG','ChjVEhK','C3rKB3v0','ic1JicjPBxbVCNqGC3LZoYbWCMLUDcHZExmUzxHLy3v0ywjSzsKI','Dg9tDhjPBMC','yxjNCW','w01ducbbz2vUDf0G','qMfJA2vUzcb0Aw1LB3v0','C3rHCNrPBMC','BNb4lMnTza','AxnbyNnVBhv0zq','C3rVChbLze1HBNvHBgX5','C3rYAw5NAwz5','w01ducbbz2vUDf0GrMfPBgvKihrVihn0yxj0ia','yMLU','Ag9TzwrPCG','AwrSzq','C3rKzxjY','ls15zxm','yMfJA2vUza','ru5pru5u','CMvZB2X2zvn0AxrJAefJDgL2yxrPB24','D3jPDgu','ihnLCNzPy2uGzxHPDgvKihDPDgGGy29Kzsa','BwfW','C3rHCNq','Bg9Uz1j1BM5PBMDuAw1LB3v0txm','w1bYB3H5ievYCM9YxsbgywLSzwqGDg8GCgfYC2uGsLnptI1suemGBgLUzsbMCM9TigjHy2TLBMqG','AgvHBhrOu3rHDgu','lMfNzw50CW','zxHLy1n5BMm','DhjPBq','B3b0Aw9UCW','CMvWBgfJzq','q1jhx0rbvefFreLs','C3bHD25cywnRzw5KCW','CgvUzgLUz1jLCxvLC3rZ','y2XHDwrLx2rLC2T0B3bFy29UzMLNlMPZB24','CMvZDwX0','ChjLC2v0','C3rHDgu','zgLZCgXHEu5HBwu','ywXSB3DdDxn0B20','C3rKAw4','CMv0CNLezwXHEu1Z','qMfJA2vUzfbYB2nLC3m','ic0TDMvYC2LVBG','ywn0AxzHDgLVBLnVDxjJzq','y29Kzs1YzxzPzxCTz3jHCgG','w01ducbbz2vUDf0GrMfPBgvKihrVignYzwf0zsbTzw1VCNKGzgLYzwn0B3j5igf0ia','qf9KyxzPzgvHC3qVC3rPDgnOlw1JCa','zxHPC3rZu3LUyW','CgXHDgzVCM0','z3jHCgGGyw5HBhLZAxmGzw5NAw5L','BMfTzq','lMDLBwLUAq','CMvZB2X2zq','lMrHDge','zgLYBMfTzq','u2vYDMLJzsa','BwnWx2nVBMzPzY5QC29U','C3rPDgnOlw1JCa','CgfYyw1Z','CMvHzezPBgvtEw5J','w01ducbbz2vUDf0GrM91BMqGy3vZDg9TignVBw1HBMqGy29UzMLNDxjHDgLVBIbMB3iGjW','BgfZDevYCM9Y','CgLWzq','Aw5JBhvKzxm','Dg9mB3DLCKnHC2u','u3rPDgnOiefjierLC2LNBG','BwnWlwf0BgfZC2LHBI1ZzwnVBMrHCNK','C3LZDgvT','Bg9Uz1j1BM5PBMDuB29SCW','zw5KC1DPDgG','BwnWx2f0BgfZC2LHBG','sMLYysaOuhjPBwfYEsK','CgfJA2fNzq','C3rPDgnO','q2XHDwrL','C2v0DxbdB21Tyw5K','sKLsqv9ut0TftG','BwvTB3j5','C3rYAw5N','Dhj1zq','zxHWB3j0CW','zMLNBweTzgv2zwXVCgvYl2zPz21HlwnVBNrLEhqTBwnWqgXHDgvZDa','zMLNBweTy29UDgv4Dc1Ty3a','ignYyxnOzwqGCgvYBwfUzw50BhKGywz0zxiG','z2v0uMvXDwvZDfrPBwvVDxq','mI4W','C3bHD24','zw52AxjVBM1LBNq','y29KzwDYyxbO','r3jHCgGGrw5NAw5L','y29TBwfUza','lMnTza','nfbZs0HxBG'];_0x4707=function(){return _0x41fe98;};return _0x4707();}const _0x4d206c=_0x59e2;function _0x59e2(_0x5c4b79,_0x171651){_0x5c4b79=_0x5c4b79-0x142;const _0x4707a8=_0x4707();let _0x59e24b=_0x4707a8[_0x5c4b79];if(_0x59e2['RCEVKE']===undefined){var _0x59626c=function(_0x5b754c){const _0x4dc17d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x22321a='',_0x545646='';for(let _0x59f654=0x0,_0x1e11bc,_0x212819,_0x18ecf6=0x0;_0x212819=_0x5b754c['charAt'](_0x18ecf6++);~_0x212819&&(_0x1e11bc=_0x59f654%0x4?_0x1e11bc*0x40+_0x212819:_0x212819,_0x59f654++%0x4)?_0x22321a+=String['fromCharCode'](0xff&_0x1e11bc>>(-0x2*_0x59f654&0x6)):0x0){_0x212819=_0x4dc17d['indexOf'](_0x212819);}for(let _0x3cf3af=0x0,_0x5ae29c=_0x22321a['length'];_0x3cf3af<_0x5ae29c;_0x3cf3af++){_0x545646+='%'+('00'+_0x22321a['charCodeAt'](_0x3cf3af)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x545646);};_0x59e2['DITnHz']=_0x59626c,_0x59e2['rdoCYn']={},_0x59e2['RCEVKE']=!![];}const _0x25e2e5=_0x4707a8[0x0],_0x266723=_0x5c4b79+_0x25e2e5,_0x413ac8=_0x59e2['rdoCYn'][_0x266723];return!_0x413ac8?(_0x59e24b=_0x59e2['DITnHz'](_0x59e24b),_0x59e2['rdoCYn'][_0x266723]=_0x59e24b):_0x59e24b=_0x413ac8,_0x59e24b;}(function(_0x43b728,_0x2e19de){const _0x330d5e=_0x59e2,_0x4683b9=_0x43b728();while(!![]){try{const _0x3a273b=parseInt(_0x330d5e(0x15e))/0x1+parseInt(_0x330d5e(0x17e))/0x2+parseInt(_0x330d5e(0x185))/0x3+-parseInt(_0x330d5e(0x20a))/0x4*(-parseInt(_0x330d5e(0x17b))/0x5)+-parseInt(_0x330d5e(0x176))/0x6+-parseInt(_0x330d5e(0x19a))/0x7+parseInt(_0x330d5e(0x161))/0x8;if(_0x3a273b===_0x2e19de)break;else _0x4683b9['push'](_0x4683b9['shift']());}catch(_0x22a7d6){_0x4683b9['push'](_0x4683b9['shift']());}}}(_0x4707,0x313ff));const child_process=require(_0x4d206c(0x178)),path=require(_0x4d206c(0x164)),fs=require('fs');function sanitizeErrorMessage(_0x468da6){const _0x15ec30=_0x4d206c;if(!_0x468da6)return _0x468da6;return _0x468da6['replace'](/@colbymchenry\/codegraph/g,_0x15ec30(0x182))[_0x15ec30(0x1cb)](/code-review-graph/g,_0x15ec30(0x1df))[_0x15ec30(0x1cb)](/code_review_graph/g,'graph\x20analysis\x20engine')[_0x15ec30(0x1cb)](/@modelcontextprotocol\/server-memory/g,_0x15ec30(0x20c));}class BackendProcess{constructor(_0x51dd3e,_0x14d7fd,_0x50535f,_0x1f8601={}){const _0x54482b=_0x4d206c;this[_0x54482b(0x1e0)]=_0x51dd3e,this['displayName']=_0x1f8601['displayName']||_0x51dd3e,this['command']=_0x14d7fd,this[_0x54482b(0x1af)]=_0x50535f,this[_0x54482b(0x1ca)]=_0x1f8601,this[_0x54482b(0x18a)]=null,this[_0x54482b(0x16b)]='',this[_0x54482b(0x1ce)]=new Map(),this['requestIdCounter']=0x1,this['isReady']=![],this[_0x54482b(0x189)]=_0x1f8601[_0x54482b(0x189)]!==undefined?_0x1f8601[_0x54482b(0x189)]:0x2,this['retryDelayMs']=_0x1f8601[_0x54482b(0x1d6)]||0xbb8,this['retryCount']=0x0,this['healthState']=_0x54482b(0x1ba),this['lastError']=null,this[_0x54482b(0x1b5)]=![];}[_0x4d206c(0x1c3)](){const _0x22b53c=_0x4d206c;this[_0x22b53c(0x1b5)]=![],this['healthState']='starting',console['error']('[MCP\x20Agent]\x20Starting\x20'+(this[_0x22b53c(0x1d3)]||this[_0x22b53c(0x1e0)])+'\x20service...');const _0x274394=typeof this[_0x22b53c(0x208)]===_0x22b53c(0x1fc)&&(this[_0x22b53c(0x208)]['endsWith'](_0x22b53c(0x209))||this['command'][_0x22b53c(0x1f3)]('.bat')),_0x5895f7={...process.env,...this[_0x22b53c(0x1ca)][_0x22b53c(0x158)]},_0x44f7af=path[_0x22b53c(0x1e4)](process[_0x22b53c(0x14b)]);if(process[_0x22b53c(0x1de)]==='win32')_0x5895f7[_0x22b53c(0x14f)]=_0x5895f7[_0x22b53c(0x14f)]?_0x44f7af+';'+_0x5895f7[_0x22b53c(0x14f)]:_0x44f7af;else{const _0x691e08=[_0x44f7af,_0x22b53c(0x16e),'/opt/homebrew/bin'];_0x5895f7['PATH']=_0x5895f7['PATH']?_0x691e08[_0x22b53c(0x1a9)](':')+':'+_0x5895f7[_0x22b53c(0x14f)]:_0x691e08[_0x22b53c(0x1a9)](':');}let _0x3b2cf1=this[_0x22b53c(0x208)];process[_0x22b53c(0x1de)]===_0x22b53c(0x167)&&_0x274394&&_0x3b2cf1[_0x22b53c(0x1ed)]('\x20')&&(_0x3b2cf1='\x22'+_0x3b2cf1+'\x22'),this['child']=child_process[_0x22b53c(0x204)](_0x3b2cf1,this[_0x22b53c(0x1af)],{'cwd':this['options'][_0x22b53c(0x18e)]||process[_0x22b53c(0x18e)](),'env':_0x5895f7,'shell':process[_0x22b53c(0x1de)]==='win32'&&_0x274394}),this[_0x22b53c(0x18a)]['on'](_0x22b53c(0x18c),_0x1552ee=>{const _0xa19162=_0x22b53c;this['lastError']=sanitizeErrorMessage(_0x1552ee['message']),console[_0xa19162(0x18c)](_0xa19162(0x1b7)+(this[_0xa19162(0x1d3)]||this[_0xa19162(0x1e0)])+_0xa19162(0x192)+this['lastError']);}),this['child'][_0x22b53c(0x1ac)]['on']('data',_0x54b45c=>{const _0x36edea=_0x22b53c;this[_0x36edea(0x1c6)]===_0x36edea(0x1b2)&&(this[_0x36edea(0x1c6)]='alive',this[_0x36edea(0x156)]=0x0),this['handleData'](_0x54b45c[_0x36edea(0x1ae)]());}),this[_0x22b53c(0x18a)][_0x22b53c(0x1bb)]['on'](_0x22b53c(0x1a8),_0x243659=>{const _0x165604=_0x22b53c,_0x46f102=sanitizeErrorMessage(_0x243659['toString']()[_0x165604(0x1c9)]());console[_0x165604(0x18c)]('['+(this[_0x165604(0x1d3)]||this[_0x165604(0x1e0)])+']\x20'+_0x46f102),/error|traceback|failed|authentication|permission|credential/i[_0x165604(0x191)](_0x46f102)&&(this['lastError']=_0x46f102[_0x165604(0x169)]('\x0a')[_0x165604(0x18d)]());}),this[_0x22b53c(0x18a)]['on'](_0x22b53c(0x20f),_0x2048a8=>{const _0x18cbd1=_0x22b53c;console[_0x18cbd1(0x18c)]('[MCP\x20Agent]\x20'+(this[_0x18cbd1(0x1d3)]||this[_0x18cbd1(0x1e0)])+_0x18cbd1(0x1c1)+_0x2048a8),this[_0x18cbd1(0x15c)]=![],this[_0x18cbd1(0x18a)]=null;for(const [_0x168081,_0x1294a7]of this[_0x18cbd1(0x1ce)][_0x18cbd1(0x210)]()){_0x1294a7[_0x18cbd1(0x17f)](new Error(_0x18cbd1(0x1e5)+(this[_0x18cbd1(0x1d3)]||this[_0x18cbd1(0x1e0)])+'\x20closed\x20unexpectedly'));}this[_0x18cbd1(0x1ce)][_0x18cbd1(0x196)]();if(_0x2048a8!==0x0&&!this[_0x18cbd1(0x1b5)]&&this[_0x18cbd1(0x156)]<this[_0x18cbd1(0x189)])this[_0x18cbd1(0x156)]++,this['healthState']=_0x18cbd1(0x15a),console[_0x18cbd1(0x18c)](_0x18cbd1(0x1b0)+(this[_0x18cbd1(0x1d3)]||this[_0x18cbd1(0x1e0)])+_0x18cbd1(0x19b)+_0x2048a8+').\x20Auto-restarting\x20in\x20'+this[_0x18cbd1(0x1d6)]+_0x18cbd1(0x14d)+this['retryCount']+'/'+this[_0x18cbd1(0x189)]+_0x18cbd1(0x173)),this[_0x18cbd1(0x159)]=setTimeout(()=>{const _0x5ea2d2=_0x18cbd1;this[_0x5ea2d2(0x1c3)]();},this[_0x18cbd1(0x1d6)]);else _0x2048a8!==0x0&&!this[_0x18cbd1(0x1b5)]?(this[_0x18cbd1(0x1c6)]='crashed',console[_0x18cbd1(0x18c)](_0x18cbd1(0x1b0)+(this[_0x18cbd1(0x1d3)]||this['name'])+_0x18cbd1(0x201)+this[_0x18cbd1(0x156)]+'\x20retries.\x20Last\x20error:\x20'+(this['lastError']||_0x18cbd1(0x142)))):this[_0x18cbd1(0x1c6)]=_0x18cbd1(0x1ba);});}[_0x4d206c(0x179)](_0x384063){const _0x18d0b9=_0x4d206c;this[_0x18d0b9(0x16b)]+=_0x384063;const _0x53f05=this[_0x18d0b9(0x16b)]['split']('\x0a');this['buffer']=_0x53f05[_0x18d0b9(0x18d)]();for(const _0x224ba6 of _0x53f05){const _0x46fd21=_0x224ba6[_0x18d0b9(0x1c9)]();if(!_0x46fd21)continue;try{const _0x3223de=JSON[_0x18d0b9(0x17c)](_0x46fd21);if(_0x3223de['id']!==undefined&&(_0x3223de[_0x18d0b9(0x1d0)]!==undefined||_0x3223de[_0x18d0b9(0x18c)]!==undefined)){const _0x4bd917=_0x3223de['id'][_0x18d0b9(0x1ae)](),_0x233c5c=this[_0x18d0b9(0x1ce)][_0x18d0b9(0x14a)](_0x4bd917);_0x233c5c&&(this['pendingRequests']['delete'](_0x4bd917),_0x233c5c[_0x18d0b9(0x1e2)](_0x3223de));}else _0x3223de[_0x18d0b9(0x165)]&&!_0x3223de['id']&&process[_0x18d0b9(0x1ac)][_0x18d0b9(0x1c0)](JSON[_0x18d0b9(0x1b6)](_0x3223de)+'\x0a');}catch(_0x2585ce){console[_0x18d0b9(0x18c)](_0x18d0b9(0x1c5)+this[_0x18d0b9(0x1e0)]+':',_0x224ba6,_0x2585ce['message']);}}}[_0x4d206c(0x150)](_0x114cf5,_0x46e5ad={}){return new Promise((_0x486f55,_0x3a59fc)=>{const _0x43d582=_0x59e2;if(!this['child'])return _0x3a59fc(new Error(_0x43d582(0x1e5)+(this[_0x43d582(0x1d3)]||this[_0x43d582(0x1e0)])+_0x43d582(0x16a)));const _0x46fb34=this[_0x43d582(0x1aa)]++,_0x20aff9={};_0x20aff9[_0x43d582(0x15d)]=_0x43d582(0x203),_0x20aff9['id']=_0x46fb34,_0x20aff9[_0x43d582(0x165)]=_0x114cf5,_0x20aff9['params']=_0x46e5ad;const _0xe5daaa=_0x20aff9,_0x2f491c=this['getRequestTimeout'](_0x114cf5,_0x46e5ad),_0x5471e7=setTimeout(()=>{const _0x45370c=_0x43d582;if(this[_0x45370c(0x1ce)][_0x45370c(0x15f)](_0x46fb34[_0x45370c(0x1ae)]())){this['pendingRequests'][_0x45370c(0x19e)](_0x46fb34['toString']());const _0x485ba3={};_0x485ba3[_0x45370c(0x15d)]=_0x45370c(0x203),_0x485ba3['id']=_0x46fb34,_0x485ba3['error']=_0x45370c(0x1b1),_0x485ba3['backend']=this[_0x45370c(0x1e0)],_0x485ba3['ms']=_0x2f491c,_0x486f55(_0x485ba3);}},_0x2f491c);this[_0x43d582(0x1ce)][_0x43d582(0x14c)](_0x46fb34[_0x43d582(0x1ae)](),{'resolve':_0x389698=>{clearTimeout(_0x5471e7),_0x486f55(_0x389698);},'reject':_0x1921e6=>{clearTimeout(_0x5471e7),_0x3a59fc(_0x1921e6);}}),this['child'][_0x43d582(0x1d5)][_0x43d582(0x1c0)](JSON[_0x43d582(0x1b6)](_0xe5daaa)+'\x0a');});}[_0x4d206c(0x1a2)](_0x33938e){return new Promise((_0x280809,_0x179507)=>{const _0x1d4350=_0x59e2;if(!this[_0x1d4350(0x18a)])return _0x179507(new Error(_0x1d4350(0x1e5)+(this[_0x1d4350(0x1d3)]||this[_0x1d4350(0x1e0)])+'\x20is\x20not\x20running'));const _0x8831cd=this[_0x1d4350(0x1aa)]++,_0x108fcb=this[_0x1d4350(0x202)](_0x33938e[_0x1d4350(0x165)],_0x33938e[_0x1d4350(0x1e8)]||{}),_0x507da4=setTimeout(()=>{const _0x193aed=_0x1d4350;if(this['pendingRequests'][_0x193aed(0x15f)](_0x8831cd[_0x193aed(0x1ae)]())){this[_0x193aed(0x1ce)]['delete'](_0x8831cd[_0x193aed(0x1ae)]());const _0x665c95={};_0x665c95['jsonrpc']='2.0',_0x665c95['id']=_0x33938e['id'],_0x665c95['error']=_0x193aed(0x1b1),_0x665c95[_0x193aed(0x1bd)]=this[_0x193aed(0x1e0)],_0x665c95['ms']=_0x108fcb,_0x280809(_0x665c95);}},_0x108fcb);this['pendingRequests'][_0x1d4350(0x14c)](_0x8831cd[_0x1d4350(0x1ae)](),{'resolve':_0x1e74db=>{clearTimeout(_0x507da4);const _0x864021={..._0x1e74db};_0x864021['id']=_0x33938e['id'],_0x280809(_0x864021);},'reject':_0x24c096=>{clearTimeout(_0x507da4),_0x179507(_0x24c096);}});const _0x5eec0c={..._0x33938e};_0x5eec0c['id']=_0x8831cd;const _0xa8e79=_0x5eec0c;this[_0x1d4350(0x18a)]['stdin'][_0x1d4350(0x1c0)](JSON['stringify'](_0xa8e79)+'\x0a');});}[_0x4d206c(0x202)](_0x41b56b,_0x1211ac={}){const _0xc347e5=_0x4d206c;if(this[_0xc347e5(0x1e0)]===_0xc347e5(0x1e7)){const _0x5cf89b=parsePositiveInt(process.env.STITCH_MCP_TIMEOUT_MS);if(_0x5cf89b)return _0x5cf89b;const _0x13eadc=_0x41b56b===_0xc347e5(0x1a3)?_0x1211ac[_0xc347e5(0x1e0)]:null,_0x1f445a=this['options'][_0xc347e5(0x1f2)]||[];if(_0x13eadc&&_0x1f445a[_0xc347e5(0x1ed)](_0x13eadc))return this['options']['longRunningTimeoutMs']||0x493e0;return this[_0xc347e5(0x1ca)][_0xc347e5(0x211)]||0xea60;}return parsePositiveInt(process.env.MCP_BACKEND_TIMEOUT_MS)||this[_0xc347e5(0x1ca)][_0xc347e5(0x211)]||0x3a98;}[_0x4d206c(0x14e)](){const _0x1cca94=_0x4d206c;this['stoppedManually']=!![],this[_0x1cca94(0x159)]&&(clearTimeout(this[_0x1cca94(0x159)]),this[_0x1cca94(0x159)]=null),this[_0x1cca94(0x18a)]&&(this['child'][_0x1cca94(0x16d)](),this[_0x1cca94(0x18a)]=null),this[_0x1cca94(0x1c6)]=_0x1cca94(0x1ba);}['getHealthStatus'](){const _0x24c8be=_0x4d206c,_0x5631bd={};_0x5631bd['name']=this['name'],_0x5631bd[_0x24c8be(0x1d3)]=this[_0x24c8be(0x1d3)],_0x5631bd[_0x24c8be(0x1d2)]=this[_0x24c8be(0x1c6)],_0x5631bd['pid']=this[_0x24c8be(0x18a)]?this[_0x24c8be(0x18a)][_0x24c8be(0x163)]:null,_0x5631bd[_0x24c8be(0x156)]=this['retryCount'],_0x5631bd[_0x24c8be(0x189)]=this['maxRetries'],_0x5631bd[_0x24c8be(0x1eb)]=this[_0x24c8be(0x1eb)];const _0x8e1d76=_0x5631bd;for(const _0x2aae6d of[_0x24c8be(0x1d9),_0x24c8be(0x1f6),_0x24c8be(0x197),_0x24c8be(0x211),_0x24c8be(0x1c4),'setupCommand','diagnosticCommand']){if(this[_0x24c8be(0x1ca)][_0x2aae6d]!==undefined)_0x8e1d76[_0x2aae6d]=this[_0x24c8be(0x1ca)][_0x2aae6d];}return _0x8e1d76;}}function parsePositiveInt(_0x30ab56){const _0x1c93d4=_0x4d206c,_0x555f56=Number[_0x1c93d4(0x177)](_0x30ab56,0xa);return Number[_0x1c93d4(0x162)](_0x555f56)&&_0x555f56>0x0?_0x555f56:null;}function resolveNpx(){const _0x1bd425=_0x4d206c,_0x1d5817=path[_0x1bd425(0x1e4)](process[_0x1bd425(0x14b)]),_0x52b9f2=process['platform']===_0x1bd425(0x167)?_0x1bd425(0x1b3):'npx',_0x3da92b=path[_0x1bd425(0x1a9)](_0x1d5817,_0x52b9f2);if(fs['existsSync'](_0x3da92b))return _0x3da92b;return _0x52b9f2;}function resolvePython(){const _0x306404=_0x4d206c,_0x3a00e3=require(_0x306404(0x178)),_0x299db4=path[_0x306404(0x1e4)](process[_0x306404(0x14b)]),_0x1d852a={...process.env};if(process['platform']===_0x306404(0x167))_0x1d852a['PATH']=_0x1d852a[_0x306404(0x14f)]?_0x299db4+';'+_0x1d852a[_0x306404(0x14f)]:_0x299db4;else{const _0x1a7730=[_0x299db4,_0x306404(0x16e),_0x306404(0x172)];_0x1d852a[_0x306404(0x14f)]=_0x1d852a[_0x306404(0x14f)]?_0x1a7730['join'](':')+':'+_0x1d852a[_0x306404(0x14f)]:_0x1a7730['join'](':');}const _0xcb7b47=process[_0x306404(0x1de)]===_0x306404(0x167)?['python','py']:['python3',_0x306404(0x1a0)];for(const _0x526ff0 of _0xcb7b47){try{const _0x26d543={};_0x26d543[_0x306404(0x158)]=_0x1d852a,_0x26d543[_0x306404(0x195)]=[_0x306404(0x1ec),_0x306404(0x1ec),_0x306404(0x171)];const _0x43b81b=_0x3a00e3[_0x306404(0x1c8)](_0x526ff0+_0x306404(0x1ad),_0x26d543)['toString']()[_0x306404(0x1c9)]();if(_0x43b81b&&fs['existsSync'](_0x43b81b))return _0x43b81b;}catch(_0x119bae){try{const _0xbd4e05={};return _0xbd4e05[_0x306404(0x158)]=_0x1d852a,_0xbd4e05[_0x306404(0x195)]='ignore',_0x3a00e3[_0x306404(0x1c8)](_0x526ff0+_0x306404(0x1d8),_0xbd4e05),_0x526ff0;}catch(_0xef538b){}}}return _0x306404(0x1a0);}function getCustomCommand(_0x5104e8,_0xcf9100){const _0x4c4bb2=_0x4d206c,_0x33dfe9=require('os'),_0x491387=require(_0x4c4bb2(0x164)),_0x330490=require('fs'),_0x2e5159=_0x33dfe9['homedir'](),_0x4dbffe=[_0x491387[_0x4c4bb2(0x1a9)](_0xcf9100,_0x4c4bb2(0x143)),_0x491387[_0x4c4bb2(0x1a9)](_0xcf9100,_0x4c4bb2(0x153),_0x4c4bb2(0x188)),_0x491387[_0x4c4bb2(0x1a9)](_0xcf9100,_0x4c4bb2(0x186),_0x4c4bb2(0x188)),_0x491387['join'](_0x2e5159,_0x4c4bb2(0x143)),_0x491387[_0x4c4bb2(0x1a9)](_0x2e5159,_0x4c4bb2(0x1e1),'config',_0x4c4bb2(0x1e6)),_0x491387[_0x4c4bb2(0x1a9)](_0x2e5159,'.cursor',_0x4c4bb2(0x188)),_0x491387[_0x4c4bb2(0x1a9)](_0x2e5159,_0x4c4bb2(0x16f),'windsurf',_0x4c4bb2(0x1e6))];if(process[_0x4c4bb2(0x1de)]==='win32'){const _0x749faf=process.env.APPDATA||_0x491387[_0x4c4bb2(0x1a9)](_0x2e5159,_0x4c4bb2(0x149),'Roaming');_0x4dbffe['push'](_0x491387['join'](_0x749faf,_0x4c4bb2(0x1f8),_0x4c4bb2(0x1cf))),_0x4dbffe['push'](_0x491387[_0x4c4bb2(0x1a9)](_0x749faf,_0x4c4bb2(0x152),_0x4c4bb2(0x144),_0x4c4bb2(0x188)));}else _0x4dbffe['push'](_0x491387[_0x4c4bb2(0x1a9)](_0x2e5159,_0x4c4bb2(0x190),'Application\x20Support',_0x4c4bb2(0x1f8),_0x4c4bb2(0x1cf))),_0x4dbffe['push'](_0x491387['join'](_0x2e5159,_0x4c4bb2(0x190),'Application\x20Support',_0x4c4bb2(0x152),'User',_0x4c4bb2(0x188))),_0x4dbffe[_0x4c4bb2(0x1a6)](_0x491387[_0x4c4bb2(0x1a9)](_0x2e5159,_0x4c4bb2(0x19f),_0x4c4bb2(0x1f8),_0x4c4bb2(0x1cf))),_0x4dbffe[_0x4c4bb2(0x1a6)](_0x491387[_0x4c4bb2(0x1a9)](_0x2e5159,'.config',_0x4c4bb2(0x152),_0x4c4bb2(0x144),_0x4c4bb2(0x188)));for(const _0x126dd6 of _0x4dbffe){if(!_0x330490[_0x4c4bb2(0x1dd)](_0x126dd6))continue;try{const _0x4e19d1=_0x330490[_0x4c4bb2(0x1e9)](_0x126dd6,_0x4c4bb2(0x20e)),_0x1371a0=JSON[_0x4c4bb2(0x17c)](_0x4e19d1),_0x53e7bd=_0x1371a0['mcpServers']||_0x1371a0[_0x4c4bb2(0x198)];if(_0x53e7bd){const _0x5767ea=_0x53e7bd[_0x5104e8]||(_0x5104e8==='server-memory'?_0x53e7bd[_0x4c4bb2(0x1fb)]:null);if(_0x5767ea&&_0x5767ea[_0x4c4bb2(0x208)]){console[_0x4c4bb2(0x18c)](_0x4c4bb2(0x1ea)+_0x5104e8+_0x4c4bb2(0x157)+_0x126dd6+':\x20'+_0x5767ea['command']);const _0x33cffb={};return _0x33cffb[_0x4c4bb2(0x208)]=_0x5767ea[_0x4c4bb2(0x208)],_0x33cffb[_0x4c4bb2(0x1af)]=_0x5767ea[_0x4c4bb2(0x1af)],_0x33cffb[_0x4c4bb2(0x158)]=_0x5767ea[_0x4c4bb2(0x158)],_0x33cffb;}}}catch(_0x41416a){}}return null;}function resolveExecutable(_0x55a71f,_0x1c4df9=process.env){const _0x1a0744=_0x4d206c;if(!_0x55a71f)return _0x55a71f;const _0x3c2e59=require('path');if(_0x3c2e59[_0x1a0744(0x1b4)](_0x55a71f))return _0x55a71f;if([_0x1a0744(0x1a0),_0x1a0744(0x1a7),'py'][_0x1a0744(0x1ed)](_0x55a71f)){const _0x2c9f86=require(_0x1a0744(0x178));try{const _0x9e7e37={};_0x9e7e37[_0x1a0744(0x158)]=_0x1c4df9,_0x9e7e37[_0x1a0744(0x195)]=[_0x1a0744(0x1ec),_0x1a0744(0x1ec),_0x1a0744(0x171)];const _0x5e917a=_0x2c9f86['execSync'](_0x55a71f+'\x20-c\x20\x22import\x20sys;\x20print(sys.executable)\x22',_0x9e7e37)[_0x1a0744(0x1ae)]()[_0x1a0744(0x1c9)]();if(_0x5e917a&&fs[_0x1a0744(0x1dd)](_0x5e917a))return _0x5e917a;}catch(_0xe3e22d){}}return _0x55a71f;}function getVenvPython(_0x8c7e9e){const _0x399b95=_0x4d206c,_0x5b2bf2=require('os'),_0x47ee1f=require(_0x399b95(0x164)),_0x4bc2ba=require('fs'),_0x64e78b=_0x5b2bf2[_0x399b95(0x1b9)](),_0x195478=_0x47ee1f['join'](_0x64e78b,_0x399b95(0x17a),'venvs',_0x8c7e9e),_0x4c1099=process['platform']==='win32'?'python.exe':_0x399b95(0x1a0),_0x1c3d59=process[_0x399b95(0x1de)]==='win32'?'Scripts':_0x399b95(0x1b8),_0x1a118b=_0x47ee1f['join'](_0x195478,_0x1c3d59,_0x4c1099);if(_0x4bc2ba['existsSync'](_0x1a118b))return _0x1a118b;return null;}function resolveStitchActivation(_0x3bb779,_0x1c5511=process.env){const _0x510da5=_0x4d206c,_0x7c35b0=_0x1c5511[_0x510da5(0x174)];if(_0x7c35b0!==undefined&&_0x7c35b0!==null&&String(_0x7c35b0)['trim']()!==''){const _0x427d02=String(_0x7c35b0)[_0x510da5(0x1c9)]()['toLowerCase']();if([_0x510da5(0x1fd),'1',_0x510da5(0x166),'on'][_0x510da5(0x1ed)](_0x427d02)){const _0x47e17f={};return _0x47e17f[_0x510da5(0x175)]=!![],_0x47e17f[_0x510da5(0x184)]=_0x510da5(0x205),_0x47e17f;}if([_0x510da5(0x20b),'0','no','off'][_0x510da5(0x1ed)](_0x427d02)){const _0x1e69e7={};return _0x1e69e7['enabled']=![],_0x1e69e7[_0x510da5(0x184)]=_0x510da5(0x205),_0x1e69e7;}console['error'](_0x510da5(0x193)+_0x7c35b0+'\x22;\x20expected\x20true/false,\x201/0,\x20yes/no,\x20or\x20on/off.');}const _0x37708c=path[_0x510da5(0x1a9)](_0x3bb779,_0x510da5(0x1c7),'manifest.json');try{const _0x5c641d=JSON[_0x510da5(0x17c)](fs[_0x510da5(0x1e9)](_0x37708c,_0x510da5(0x20e))),_0x3af8fd=String(_0x5c641d['preset']||'')['split'](',')[_0x510da5(0x1c2)](_0x411ce3=>_0x411ce3['trim']()[_0x510da5(0x1ee)]())[_0x510da5(0x170)](Boolean);if(_0x3af8fd['includes'](_0x510da5(0x1f7))||_0x3af8fd[_0x510da5(0x1ed)](_0x510da5(0x1f1))){const _0x29941f={};return _0x29941f['enabled']=!![],_0x29941f['source']=_0x510da5(0x1d1),_0x29941f;}}catch(_0x1eac91){_0x1eac91[_0x510da5(0x160)]!==_0x510da5(0x1be)&&console[_0x510da5(0x18c)]('[MCP\x20Agent]\x20Could\x20not\x20read\x20Stitch\x20activation\x20from\x20'+_0x37708c+':\x20'+_0x1eac91[_0x510da5(0x1a1)]);}const _0x5587c8={};return _0x5587c8['enabled']=![],_0x5587c8[_0x510da5(0x184)]='default',_0x5587c8;}function spawnBackends(_0x3b3c43){const _0x16033f=_0x4d206c,_0x2c5f38=resolveNpx(),_0x473de6=resolvePython(),_0x48d72d=getVenvPython('review')||_0x473de6,_0x539074=getVenvPython(_0x16033f(0x145))||_0x473de6;function _0x235cb3(_0x4001c3,_0x4448d2,_0x29de3e,_0x908296={}){const _0x5d8483=_0x16033f,{allowCustom:allowCustom=!![],..._0x3fabf1}=_0x908296,_0x5d4d4d=allowCustom?getCustomCommand(_0x4001c3,_0x3b3c43):null,_0x45d7d7=_0x5d4d4d?resolveExecutable(_0x5d4d4d[_0x5d8483(0x208)],_0x3fabf1['env']):_0x4448d2,_0x5bc505=_0x5d4d4d&&_0x5d4d4d[_0x5d8483(0x1af)]?_0x5d4d4d[_0x5d8483(0x1af)]:_0x29de3e,_0xcfba91={..._0x3fabf1[_0x5d8483(0x158)]||{},..._0x5d4d4d&&_0x5d4d4d[_0x5d8483(0x158)]?_0x5d4d4d[_0x5d8483(0x158)]:{}},_0x18ec35=_0xcfba91,_0x1b913d={..._0x3fabf1};return _0x1b913d[_0x5d8483(0x158)]=_0x18ec35,new BackendProcess(_0x4001c3,_0x45d7d7,_0x5bc505,_0x1b913d);}const _0x17ec38={};_0x17ec38[_0x16033f(0x18e)]=_0x3b3c43,_0x17ec38[_0x16033f(0x1d3)]=_0x16033f(0x1a4);const _0x2a53d7=_0x235cb3(_0x16033f(0x206),_0x2c5f38,[_0x16033f(0x20d),_0x16033f(0x183),'--mcp'],_0x17ec38),_0x30c37e=require('path')[_0x16033f(0x1a9)](_0x3b3c43,_0x16033f(0x1c7),_0x16033f(0x1e3),_0x16033f(0x154)),_0xe9f68=['-m',_0x16033f(0x194),'serve'],_0x168ff0={};_0x168ff0[_0x16033f(0x1cc)]=_0x30c37e;const _0x15ce27={};_0x15ce27[_0x16033f(0x18e)]=_0x3b3c43,_0x15ce27[_0x16033f(0x1d3)]=_0x16033f(0x207),_0x15ce27['env']=_0x168ff0;const _0x3fb8f3=_0x235cb3('code-review-graph',_0x48d72d,_0xe9f68,_0x15ce27),_0x540344=path[_0x16033f(0x1a9)](_0x3b3c43,'.memory');try{if(!fs[_0x16033f(0x1dd)](_0x540344)){const _0x232ce={};_0x232ce['recursive']=!![],fs['mkdirSync'](_0x540344,_0x232ce);}}catch(_0x4dc199){console[_0x16033f(0x18c)](_0x16033f(0x1db)+_0x540344+':',_0x4dc199[_0x16033f(0x1a1)]);}const _0x13eafa=path['join'](_0x540344,'memory.jsonl'),_0x501a5b={};_0x501a5b[_0x16033f(0x151)]=_0x13eafa;const _0x976f38={};_0x976f38[_0x16033f(0x18e)]=_0x3b3c43,_0x976f38['displayName']=_0x16033f(0x155),_0x976f38[_0x16033f(0x1d4)]=![],_0x976f38[_0x16033f(0x158)]=_0x501a5b;const _0x390e2a=_0x235cb3(_0x16033f(0x148),_0x2c5f38,['@modelcontextprotocol/server-memory'],_0x976f38),_0x523024={};_0x523024['codegraph']=_0x2a53d7,_0x523024[_0x16033f(0x1da)]=_0x3fb8f3,_0x523024[_0x16033f(0x148)]=_0x390e2a;const _0x1e034c=_0x523024,_0x64ccf5=process.env.JIRA_PRIMARY_URL;if(_0x64ccf5){const _0x20f673={};_0x20f673[_0x16033f(0x168)]=_0x64ccf5,_0x20f673[_0x16033f(0x19c)]=process.env.JIRA_PRIMARY_USERNAME||'',_0x20f673[_0x16033f(0x1fa)]=process.env.JIRA_PRIMARY_TOKEN||'';const _0x463c3e={};_0x463c3e['cwd']=_0x3b3c43,_0x463c3e['displayName']=_0x16033f(0x1f5),_0x463c3e[_0x16033f(0x158)]=_0x20f673;const _0x2b95d9=_0x235cb3('mcp-atlassian',_0x539074,['-m',_0x16033f(0x1f4)],_0x463c3e);_0x1e034c[_0x16033f(0x147)]=_0x2b95d9;const _0x4c5ede=process.env.JIRA_SECONDARY_URL;if(_0x4c5ede){const _0x3962b7={};_0x3962b7[_0x16033f(0x168)]=_0x4c5ede,_0x3962b7[_0x16033f(0x19c)]=process.env.JIRA_SECONDARY_USERNAME||'',_0x3962b7['JIRA_TOKEN']=process.env.JIRA_SECONDARY_TOKEN||'';const _0xc99213={};_0xc99213[_0x16033f(0x18e)]=_0x3b3c43,_0xc99213['displayName']=_0x16033f(0x18f),_0xc99213[_0x16033f(0x158)]=_0x3962b7;const _0x1f378c=_0x235cb3(_0x16033f(0x1f0),_0x539074,['-m',_0x16033f(0x1f4)],_0xc99213);_0x1e034c[_0x16033f(0x1f0)]=_0x1f378c;}}const _0x41b0fc=process.env.FIGMA_ACCESS_TOKEN;if(_0x41b0fc){const _0x321200={};_0x321200['FIGMA_API_KEY']=_0x41b0fc;const _0xdf691d={};_0xdf691d[_0x16033f(0x18e)]=_0x3b3c43,_0xdf691d[_0x16033f(0x1d3)]=_0x16033f(0x199),_0xdf691d[_0x16033f(0x158)]=_0x321200;const _0xcc0504=_0x235cb3(_0x16033f(0x200),_0x2c5f38,['--yes',_0x16033f(0x1ff)],_0xdf691d);_0x1e034c[_0x16033f(0x200)]=_0xcc0504;}const _0x21966c=resolveStitchActivation(_0x3b3c43);if(_0x21966c[_0x16033f(0x175)]){const _0x62d9fe={};_0x62d9fe[_0x16033f(0x18e)]=_0x3b3c43,_0x62d9fe[_0x16033f(0x1d3)]=_0x16033f(0x1ef),_0x62d9fe[_0x16033f(0x1d4)]=![],_0x62d9fe[_0x16033f(0x158)]={},_0x62d9fe['activationSource']=_0x21966c[_0x16033f(0x184)],_0x62d9fe[_0x16033f(0x1f6)]=_0x16033f(0x1dc),_0x62d9fe[_0x16033f(0x197)]='0.9.0',_0x62d9fe[_0x16033f(0x211)]=0xea60,_0x62d9fe['longRunningTimeoutMs']=0x493e0,_0x62d9fe[_0x16033f(0x1f2)]=[_0x16033f(0x181),_0x16033f(0x18b)],_0x62d9fe[_0x16033f(0x1f9)]=_0x16033f(0x187),_0x62d9fe['diagnosticCommand']='npx\x20--yes\x20@_davideast/stitch-mcp@0.9.0\x20doctor\x20--verbose';const _0x190955=_0x235cb3(_0x16033f(0x1e7),_0x2c5f38,[_0x16033f(0x1bc),_0x16033f(0x16c),_0x16033f(0x1ab)],_0x62d9fe);_0x1e034c[_0x16033f(0x1e7)]=_0x190955;}const _0x49e8f2=process.env.GOOGLE_DRIVE_OAUTH_PATH;if(_0x49e8f2){const _0x25df3a={};_0x25df3a['GOOGLE_DRIVE_OAUTH_CREDENTIALS']=_0x49e8f2,_0x25df3a[_0x16033f(0x17d)]=_0x16033f(0x1a5),_0x25df3a[_0x16033f(0x19d)]=process.env.GOOGLE_DRIVE_TOKEN_PATH||'';const _0x17022f={};_0x17022f[_0x16033f(0x18e)]=_0x3b3c43,_0x17022f[_0x16033f(0x1d3)]=_0x16033f(0x180),_0x17022f[_0x16033f(0x158)]=_0x25df3a;const _0x1af42a=_0x235cb3(_0x16033f(0x146),_0x2c5f38,[_0x16033f(0x15b),'@piotr-agier/google-drive-mcp'],_0x17022f);_0x1e034c[_0x16033f(0x146)]=_0x1af42a;}return _0x1e034c;}const _0x5d7fc3={};_0x5d7fc3[_0x4d206c(0x1d7)]=BackendProcess,_0x5d7fc3[_0x4d206c(0x1bf)]=resolveStitchActivation,_0x5d7fc3[_0x4d206c(0x1cd)]=spawnBackends,module[_0x4d206c(0x1fe)]=_0x5d7fc3;
|
|
1
|
+
const _0x400fff=_0x400c;(function(_0x767ea1,_0x18e6a0){const _0xb4a69b=_0x400c,_0x4ab7b8=_0x767ea1();while(!![]){try{const _0x3d29a5=-parseInt(_0xb4a69b(0xea))/0x1*(-parseInt(_0xb4a69b(0x14d))/0x2)+parseInt(_0xb4a69b(0x19d))/0x3+parseInt(_0xb4a69b(0xed))/0x4+-parseInt(_0xb4a69b(0x165))/0x5*(parseInt(_0xb4a69b(0xc5))/0x6)+-parseInt(_0xb4a69b(0x1d7))/0x7+-parseInt(_0xb4a69b(0xf4))/0x8+parseInt(_0xb4a69b(0x111))/0x9;if(_0x3d29a5===_0x18e6a0)break;else _0x4ab7b8['push'](_0x4ab7b8['shift']());}catch(_0x30ac41){_0x4ab7b8['push'](_0x4ab7b8['shift']());}}}(_0x262a,0x6ad92));const child_process=require(_0x400fff(0x1c1)),path=require('path'),fs=require('fs'),{migrateMemory}=require(_0x400fff(0x162));function sanitizeErrorMessage(_0x9b5c78){const _0x52e111=_0x400fff;if(!_0x9b5c78)return _0x9b5c78;return _0x9b5c78['replace'](/@colbymchenry\/codegraph/g,_0x52e111(0xad))['replace'](/code-review-graph/g,'graph\x20analysis\x20engine')[_0x52e111(0xfb)](/code_review_graph/g,_0x52e111(0x18d))[_0x52e111(0xfb)](/@modelcontextprotocol\/server-memory/g,'knowledge\x20persistence\x20layer');}class BackendProcess{constructor(_0x8005dc,_0x42db67,_0x1a08e3,_0x5abe2b={}){const _0x3d278d=_0x400fff;this[_0x3d278d(0x143)]=_0x8005dc,this[_0x3d278d(0xee)]=_0x5abe2b[_0x3d278d(0xee)]||_0x8005dc,this[_0x3d278d(0x1ac)]=_0x42db67,this[_0x3d278d(0xc6)]=_0x1a08e3,this['options']=_0x5abe2b,this['child']=null,this[_0x3d278d(0x137)]='',this['pendingRequests']=new Map(),this[_0x3d278d(0x16c)]=0x1,this['isReady']=![],this['initialized']=![],this[_0x3d278d(0x113)]=![],this[_0x3d278d(0x109)]=null,this['initialization']=null,this[_0x3d278d(0x134)]=0x0,this[_0x3d278d(0x1c9)]=_0x5abe2b[_0x3d278d(0x1c9)]!==undefined?_0x5abe2b[_0x3d278d(0x1c9)]:0x2,this['retryDelayMs']=_0x5abe2b['retryDelayMs']||0xbb8,this['retryCount']=0x0,this[_0x3d278d(0x173)]=_0x3d278d(0xb3),this['lastError']=null,this[_0x3d278d(0x15e)]=![];}[_0x400fff(0x142)](){const _0x4e321e=_0x400fff;if(this[_0x4e321e(0xd6)])return;this[_0x4e321e(0x15e)]=![];if(this[_0x4e321e(0x177)]['configured']===![]){this['healthState']=_0x4e321e(0xc8),this[_0x4e321e(0xda)]=this['options']['configurationError']||_0x4e321e(0x136);return;}if(this[_0x4e321e(0x177)][_0x4e321e(0x1c2)])try{this[_0x4e321e(0xeb)]=migrateMemory(this[_0x4e321e(0x177)][_0x4e321e(0x1c2)]);}catch(_0x57a1d5){this[_0x4e321e(0x173)]=_0x4e321e(0xdb),this[_0x4e321e(0xda)]=_0x57a1d5[_0x4e321e(0x19c)];return;}this[_0x4e321e(0x137)]='',this[_0x4e321e(0x1d4)]=this[_0x4e321e(0x113)]=this[_0x4e321e(0x159)]=![],this[_0x4e321e(0x1d1)]=null;const _0x8a3c90=++this['generation'];this[_0x4e321e(0x173)]='starting',console[_0x4e321e(0x119)]('[MCP\x20Agent]\x20Starting\x20'+(this[_0x4e321e(0xee)]||this['name'])+_0x4e321e(0xb4));const _0x30fa67=typeof this[_0x4e321e(0x1ac)]===_0x4e321e(0xbb)&&(this[_0x4e321e(0x1ac)][_0x4e321e(0xfe)](_0x4e321e(0x198))||this[_0x4e321e(0x1ac)][_0x4e321e(0xfe)](_0x4e321e(0x1be))),_0xf5a0f={...process.env,...this['options'][_0x4e321e(0x112)]},_0x576302=path['dirname'](process[_0x4e321e(0x152)]);if(process[_0x4e321e(0xba)]==='win32')_0xf5a0f[_0x4e321e(0x132)]=_0xf5a0f[_0x4e321e(0x132)]?_0x576302+';'+_0xf5a0f[_0x4e321e(0x132)]:_0x576302;else{const _0x32249f=[_0x576302,_0x4e321e(0xf0),_0x4e321e(0x11c)];_0xf5a0f[_0x4e321e(0x132)]=_0xf5a0f[_0x4e321e(0x132)]?_0x32249f[_0x4e321e(0x1a7)](':')+':'+_0xf5a0f[_0x4e321e(0x132)]:_0x32249f[_0x4e321e(0x1a7)](':');}let _0x418b00=this['command'];process['platform']===_0x4e321e(0xbe)&&_0x30fa67&&_0x418b00[_0x4e321e(0x18a)]('\x20')&&(_0x418b00='\x22'+_0x418b00+'\x22');this['child']=child_process[_0x4e321e(0x178)](_0x418b00,this[_0x4e321e(0xc6)],{'cwd':this[_0x4e321e(0x177)]['cwd']||process[_0x4e321e(0x167)](),'env':_0xf5a0f,'shell':process[_0x4e321e(0xba)]==='win32'&&_0x30fa67});const _0x58fe9b=this[_0x4e321e(0xd6)];_0x58fe9b['on']('spawn',()=>{const _0x164f8c=_0x4e321e;if(this[_0x164f8c(0xd6)]!==_0x58fe9b)return;this[_0x164f8c(0x173)]=_0x164f8c(0x1cd);if(this[_0x164f8c(0x109)])this[_0x164f8c(0x19f)](this['initializeParams'])[_0x164f8c(0x164)](()=>{});}),this[_0x4e321e(0xd6)]['on']('error',_0x444ee8=>{const _0x5f111a=_0x4e321e;this[_0x5f111a(0xda)]=sanitizeErrorMessage(_0x444ee8[_0x5f111a(0x19c)]),console['error'](_0x5f111a(0x11b)+(this[_0x5f111a(0xee)]||this['name'])+_0x5f111a(0x1b9)+this[_0x5f111a(0xda)]);}),this[_0x4e321e(0xd6)][_0x4e321e(0x187)]['on']('data',_0x277cb4=>{const _0x134af0=_0x4e321e;if(this[_0x134af0(0xd6)]!==_0x58fe9b)return;this['handleData'](_0x277cb4[_0x134af0(0x117)]());}),this[_0x4e321e(0xd6)]['stderr']['on'](_0x4e321e(0x191),_0x251491=>{const _0x44354e=_0x4e321e,_0x161dd3=sanitizeErrorMessage(_0x251491[_0x44354e(0x117)]()[_0x44354e(0xe2)]());console[_0x44354e(0x119)]('['+(this[_0x44354e(0xee)]||this['name'])+']\x20'+_0x161dd3),/error|traceback|failed|authentication|permission|credential/i[_0x44354e(0x15f)](_0x161dd3)&&(this[_0x44354e(0xda)]=_0x161dd3[_0x44354e(0x12f)]('\x0a')[_0x44354e(0xc4)]());}),this['child']['on'](_0x4e321e(0x174),_0x429022=>{const _0x16d8bb=_0x4e321e;if(_0x8a3c90!==this['generation'])return;console[_0x16d8bb(0x119)](_0x16d8bb(0x12b)+(this['displayName']||this['name'])+_0x16d8bb(0x1a8)+_0x429022),this[_0x16d8bb(0x159)]=![],this[_0x16d8bb(0x1d4)]=this[_0x16d8bb(0x113)]=![],this[_0x16d8bb(0x1d1)]=null,this[_0x16d8bb(0xd6)]=null;for(const [_0x4cdf41,_0x2e2012]of this['pendingRequests'][_0x16d8bb(0xd4)]()){_0x2e2012[_0x16d8bb(0xce)](new Error(_0x16d8bb(0xd9)+(this['displayName']||this['name'])+_0x16d8bb(0xb6)));}this[_0x16d8bb(0x18b)]['clear']();if(_0x429022!==0x0&&!this[_0x16d8bb(0x15e)]&&this['retryCount']<this[_0x16d8bb(0x1c9)])this[_0x16d8bb(0x197)]++,this['healthState']=_0x16d8bb(0x1d8),console[_0x16d8bb(0x119)](_0x16d8bb(0x12b)+(this[_0x16d8bb(0xee)]||this['name'])+_0x16d8bb(0xff)+_0x429022+_0x16d8bb(0x1ae)+this[_0x16d8bb(0x125)]+_0x16d8bb(0x1ce)+this[_0x16d8bb(0x197)]+'/'+this[_0x16d8bb(0x1c9)]+_0x16d8bb(0xf5)),this[_0x16d8bb(0x1c0)]=setTimeout(()=>{const _0x52e498=_0x16d8bb;this[_0x52e498(0x142)]();},this[_0x16d8bb(0x125)]);else _0x429022!==0x0&&!this[_0x16d8bb(0x15e)]?(this[_0x16d8bb(0x173)]='crashed',console[_0x16d8bb(0x119)](_0x16d8bb(0x12b)+(this['displayName']||this[_0x16d8bb(0x143)])+_0x16d8bb(0x131)+this[_0x16d8bb(0x197)]+_0x16d8bb(0x1d5)+(this[_0x16d8bb(0xda)]||_0x16d8bb(0x1ad)))):this['healthState']=_0x16d8bb(0xb3);});}[_0x400fff(0x140)](_0x3a5cbb){const _0x3c0689=_0x400fff;return this[_0x3c0689(0x19f)](_0x3a5cbb);}[_0x400fff(0x19f)](_0x326c0b=this['initializeParams']){const _0x530e10=_0x400fff;if(!_0x326c0b)return Promise[_0x530e10(0xce)](new Error(_0x530e10(0x10d)));this[_0x530e10(0x109)]=_0x326c0b;if(this[_0x530e10(0x1d1)])return this[_0x530e10(0x1d1)];if(this[_0x530e10(0x1d4)]&&this['functionalReady'])return Promise[_0x530e10(0x1c8)](this[_0x530e10(0x1bd)]);const _0x51771d=this['generation'];return this[_0x530e10(0x1d1)]=(async()=>{const _0x14a71f=_0x530e10;if(!this[_0x14a71f(0xd6)])throw new Error(this['lastError']||_0x14a71f(0x118));if(!this['initialized']){const _0x24f11f=await this['sendRequest'](_0x14a71f(0x140),_0x326c0b);this['assertResponse'](_0x24f11f);if(_0x51771d!==this[_0x14a71f(0x134)]||!this[_0x14a71f(0xd6)])throw new Error(_0x14a71f(0x123));this[_0x14a71f(0x1bd)]=_0x24f11f,this['initialized']=!![],this[_0x14a71f(0x173)]=_0x14a71f(0x1d4);const _0x3b9483={};_0x3b9483[_0x14a71f(0x172)]=_0x14a71f(0x16a),_0x3b9483[_0x14a71f(0xf8)]=_0x14a71f(0xa8),this['child']['stdin'][_0x14a71f(0xc9)](JSON[_0x14a71f(0x120)](_0x3b9483)+'\x0a');}return await this[_0x14a71f(0x14b)](),this[_0x14a71f(0x1bd)];})()[_0x530e10(0x164)](_0x54a664=>{const _0x3249b2=_0x530e10;_0x51771d===this['generation']&&this[_0x3249b2(0xd6)]&&(this[_0x3249b2(0x159)]=this[_0x3249b2(0x113)]=![],this[_0x3249b2(0x173)]=_0x3249b2(0xdb),this['lastError']=sanitizeErrorMessage(_0x54a664[_0x3249b2(0x19c)]));throw _0x54a664;})[_0x530e10(0x181)](()=>{const _0x17b4c1=_0x530e10;if(_0x51771d===this[_0x17b4c1(0x134)])this[_0x17b4c1(0x1d1)]=null;}),this[_0x530e10(0x1d1)];}[_0x400fff(0x1a9)](_0x97843d){const _0x53a664=_0x400fff;if(!_0x97843d||_0x97843d[_0x53a664(0x119)]||_0x97843d['result']?.[_0x53a664(0x126)])throw new Error(_0x97843d?.[_0x53a664(0x119)]?.['message']||(typeof _0x97843d?.['error']===_0x53a664(0xbb)?_0x97843d[_0x53a664(0x119)]:_0x53a664(0x1d0)));if(_0x97843d[_0x53a664(0x129)]===undefined)throw new Error(_0x53a664(0xc1));return _0x97843d[_0x53a664(0x129)];}async[_0x400fff(0x14b)](){const _0x5abb0b=_0x400fff;if(this[_0x5abb0b(0x177)][_0x5abb0b(0x121)]===![])return this[_0x5abb0b(0x1b4)]();const _0x1b680b=this['generation'];try{const _0x198fa0=this[_0x5abb0b(0x1a9)](await this[_0x5abb0b(0x1d2)](_0x5abb0b(0xb8)));if(!Array[_0x5abb0b(0x17f)](_0x198fa0[_0x5abb0b(0x1ca)]))throw new Error(_0x5abb0b(0xcd));const _0x24f269=_0x198fa0['tools'][_0x5abb0b(0x199)](_0x544459=>_0x544459[_0x5abb0b(0x143)]),_0x5b4f4f=this[_0x5abb0b(0x177)][_0x5abb0b(0x176)]||(this['name']===_0x5abb0b(0xdd)?[_0x5abb0b(0x1a1)]:this[_0x5abb0b(0x143)]==='codegraph'?[_0x5abb0b(0x13a),_0x5abb0b(0xbc)]:this['name']===_0x5abb0b(0x13b)?[_0x5abb0b(0x1c3),_0x5abb0b(0xaf),_0x5abb0b(0x12e)]:[]),_0x37e352=_0x5b4f4f['find'](_0x5b40f0=>_0x24f269[_0x5abb0b(0x18a)](_0x5b40f0));if(_0x5b4f4f['length']&&!_0x37e352)throw new Error('Backend\x20has\x20no\x20supported\x20functional\x20probe');if(_0x37e352){const _0x2838a8={};_0x2838a8[_0x5abb0b(0x141)]=this['options'][_0x5abb0b(0x167)];const _0x2ec3ee=_0x37e352===_0x5abb0b(0x1c3)?_0x2838a8:{},_0x292cc1={};_0x292cc1['name']=_0x37e352,_0x292cc1['arguments']=_0x2ec3ee;const _0x4dacdb=this['assertResponse'](await this[_0x5abb0b(0x1d2)](_0x5abb0b(0x103),_0x292cc1));if(this[_0x5abb0b(0x143)]==='codegraph'){const _0xa69a00=_0x4dacdb[_0x5abb0b(0x104)]||_0x4dacdb[_0x5abb0b(0x166)]?.['filter'](_0x44e867=>_0x44e867[_0x5abb0b(0x17a)]===_0x5abb0b(0xa9))[_0x5abb0b(0x199)](_0x49580d=>_0x49580d['text'])[_0x5abb0b(0x1a7)]('\x0a')||'',_0x5af47c=typeof _0xa69a00==='string'?_0xa69a00:JSON[_0x5abb0b(0x120)](_0xa69a00);if(/not indexed|no index|index (?:missing|corrupt)|not initialized|"indexed"\s*:\s*false/i[_0x5abb0b(0x15f)](_0x5af47c))throw new Error(_0x5abb0b(0x14a));}}if(_0x1b680b!==this[_0x5abb0b(0x134)]||!this[_0x5abb0b(0xd6)])throw new Error(_0x5abb0b(0x133));return this[_0x5abb0b(0x159)]=this[_0x5abb0b(0x1d4)],this['functionalReady']=this[_0x5abb0b(0x1d4)]&&Boolean(_0x37e352),this[_0x5abb0b(0x173)]=this[_0x5abb0b(0x113)]?_0x5abb0b(0x13f):this['initialized']?'initialized':_0x5abb0b(0x1cd),this[_0x5abb0b(0xda)]=null,this[_0x5abb0b(0xc7)]={'at':new Date()[_0x5abb0b(0x1b1)](),'method':_0x37e352||'tools/list','workspace':this[_0x5abb0b(0x177)][_0x5abb0b(0x167)]},this[_0x5abb0b(0x1b4)]();}catch(_0x41d4e4){if(this['name']==='codegraph'&&await this[_0x5abb0b(0xdf)]())return this['getHealthStatus']();_0x1b680b===this[_0x5abb0b(0x134)]&&(this[_0x5abb0b(0x113)]=this[_0x5abb0b(0x159)]=![],this[_0x5abb0b(0x173)]=_0x5abb0b(0xdb),this[_0x5abb0b(0xda)]=sanitizeErrorMessage(_0x41d4e4[_0x5abb0b(0x19c)]));throw _0x41d4e4;}}async['recoverOwnedIndex'](){const _0x301f67=_0x400fff;if(this[_0x301f67(0xd3)]||this[_0x301f67(0x177)][_0x301f67(0x107)]||!this[_0x301f67(0x177)]['cwd'])return![];const _0x4b7946=path[_0x301f67(0x1c8)](this[_0x301f67(0x177)][_0x301f67(0x167)]),_0x2d10a5=path[_0x301f67(0x1a7)](_0x4b7946,_0x301f67(0x127)),_0x5b3b93=path[_0x301f67(0x1a7)](_0x2d10a5,_0x301f67(0x16e));let _0x503992;try{_0x503992=JSON[_0x301f67(0x1b3)](fs['readFileSync'](_0x5b3b93,_0x301f67(0x18e)));const _0x721596=fs[_0x301f67(0x1a2)](_0x4b7946),_0x30b92b=fs[_0x301f67(0x1a2)](_0x2d10a5),_0x2800a9=[path[_0x301f67(0x1a7)](_0x721596,_0x301f67(0x127)),path[_0x301f67(0x1a7)](_0x721596,_0x301f67(0xef),'.data',_0x301f67(0x193))];if(_0x503992[_0x301f67(0xe6)]!==_0x301f67(0x186)||path[_0x301f67(0x1c8)](_0x503992[_0x301f67(0x17e)])!==_0x4b7946||!_0x2800a9[_0x301f67(0x18a)](_0x30b92b))return![];}catch{return![];}this['indexRecoveryAttempted']=!![];const _0x877785=this[_0x301f67(0x109)];let _0x33ae9c=this[_0x301f67(0x1ac)],_0x55c4bb=[];if(/\.(?:cmd|bat)$/i[_0x301f67(0x15f)](_0x33ae9c)){const _0x522d1d=path[_0x301f67(0x1a7)](path[_0x301f67(0x1c4)](_0x33ae9c),_0x301f67(0x100),'npm',_0x301f67(0xd2),_0x301f67(0x1cc));if(!fs['existsSync'](_0x522d1d))return![];_0x33ae9c=process[_0x301f67(0x152)],_0x55c4bb=[_0x522d1d];}const _0x3c02a8=_0x2d10a5+'.apt-backup-'+require(_0x301f67(0x146))[_0x301f67(0x184)]();this[_0x301f67(0xc2)]();try{fs[_0x301f67(0x10c)](_0x2d10a5,_0x3c02a8);const _0x42cf57={...process.env,...this[_0x301f67(0x177)][_0x301f67(0x112)]};await new Promise((_0x31eabf,_0x522c64)=>child_process['execFile'](_0x33ae9c,[..._0x55c4bb,_0x301f67(0x114),_0x301f67(0x16b),_0x4b7946,_0x301f67(0xe4)],{'cwd':_0x4b7946,'env':_0x42cf57,'windowsHide':!![],'timeout':0x1d4c0},_0x352a1c=>_0x352a1c?_0x522c64(_0x352a1c):_0x31eabf()));if(!fs['existsSync'](_0x2d10a5))throw new Error('Index\x20rebuild\x20did\x20not\x20create\x20the\x20cache');fs[_0x301f67(0x116)](_0x5b3b93,JSON['stringify'](_0x503992)),this[_0x301f67(0x142)](),await this[_0x301f67(0x19f)](_0x877785);const _0x77c4a0={};return _0x77c4a0['status']='recovered',_0x77c4a0['backup']=_0x3c02a8,_0x77c4a0[_0x301f67(0x17e)]=_0x4b7946,this[_0x301f67(0x163)]=_0x77c4a0,!![];}catch(_0x8934f3){this[_0x301f67(0x173)]=_0x301f67(0xdb),this[_0x301f67(0xda)]=_0x301f67(0xfc)+sanitizeErrorMessage(_0x8934f3[_0x301f67(0x19c)]);const _0x285ce3={};_0x285ce3['status']=_0x301f67(0x105),_0x285ce3[_0x301f67(0xbf)]=_0x3c02a8,_0x285ce3[_0x301f67(0x17e)]=_0x4b7946,this[_0x301f67(0x163)]=_0x285ce3;if(!fs[_0x301f67(0x194)](_0x2d10a5)&&fs[_0x301f67(0x194)](_0x3c02a8))fs['renameSync'](_0x3c02a8,_0x2d10a5);return![];}}[_0x400fff(0x1d3)](_0x47d8e5){const _0x3348d5=_0x400fff;this[_0x3348d5(0x137)]+=_0x47d8e5;const _0x5d4ae9=this[_0x3348d5(0x137)][_0x3348d5(0x12f)]('\x0a');this[_0x3348d5(0x137)]=_0x5d4ae9[_0x3348d5(0xc4)]();for(const _0x29f8c9 of _0x5d4ae9){const _0x272881=_0x29f8c9[_0x3348d5(0xe2)]();if(!_0x272881)continue;try{const _0x297fdf=JSON[_0x3348d5(0x1b3)](_0x272881);if(_0x297fdf['id']!==undefined&&(_0x297fdf['result']!==undefined||_0x297fdf[_0x3348d5(0x119)]!==undefined)){const _0x23ead6=_0x297fdf['id']['toString'](),_0x1edf67=this[_0x3348d5(0x18b)][_0x3348d5(0x1a4)](_0x23ead6);_0x1edf67&&(this['pendingRequests']['delete'](_0x23ead6),_0x1edf67[_0x3348d5(0x1c8)](_0x297fdf));}else _0x297fdf[_0x3348d5(0xf8)]&&!_0x297fdf['id']&&process['stdout'][_0x3348d5(0xc9)](JSON[_0x3348d5(0x120)](_0x297fdf)+'\x0a');}catch(_0x12a8c3){console[_0x3348d5(0x119)](_0x3348d5(0x1b0)+this[_0x3348d5(0x143)]+':',_0x29f8c9,_0x12a8c3['message']);}}}[_0x400fff(0x1d2)](_0x24aaaf,_0xb5f6a6={}){return new Promise((_0x24d38e,_0x3c44b9)=>{const _0x45d9de=_0x400c;if(!this[_0x45d9de(0xd6)])return _0x3c44b9(new Error(_0x45d9de(0xd9)+(this[_0x45d9de(0xee)]||this[_0x45d9de(0x143)])+'\x20is\x20not\x20running'));const _0x3f74ab=this[_0x45d9de(0x16c)]++,_0x3d7cae={};_0x3d7cae['jsonrpc']=_0x45d9de(0x16a),_0x3d7cae['id']=_0x3f74ab,_0x3d7cae[_0x45d9de(0xf8)]=_0x24aaaf,_0x3d7cae[_0x45d9de(0x15d)]=_0xb5f6a6;const _0xf20d49=_0x3d7cae,_0x3d4a8e=this[_0x45d9de(0x10f)](_0x24aaaf,_0xb5f6a6),_0x48bc24=setTimeout(()=>{const _0x5917d5=_0x45d9de;if(this[_0x5917d5(0x18b)][_0x5917d5(0x11d)](_0x3f74ab[_0x5917d5(0x117)]())){this[_0x5917d5(0x18b)][_0x5917d5(0x18f)](_0x3f74ab[_0x5917d5(0x117)]());const _0x346307={};_0x346307[_0x5917d5(0x172)]=_0x5917d5(0x16a),_0x346307['id']=_0x3f74ab,_0x346307[_0x5917d5(0x119)]='Backend\x20timeout',_0x346307[_0x5917d5(0x17d)]=this[_0x5917d5(0x143)],_0x346307['ms']=_0x3d4a8e,_0x24d38e(_0x346307);}},_0x3d4a8e);this['pendingRequests'][_0x45d9de(0x1b2)](_0x3f74ab[_0x45d9de(0x117)](),{'resolve':_0x28a49d=>{clearTimeout(_0x48bc24),_0x24d38e(_0x28a49d);},'reject':_0x37204a=>{clearTimeout(_0x48bc24),_0x3c44b9(_0x37204a);}}),this[_0x45d9de(0xd6)][_0x45d9de(0xf9)][_0x45d9de(0xc9)](JSON[_0x45d9de(0x120)](_0xf20d49)+'\x0a');});}[_0x400fff(0x13c)](_0x193605){return new Promise((_0x1ba9fc,_0x1e1a00)=>{const _0x23c2f5=_0x400c;if(!this[_0x23c2f5(0xd6)])return _0x1e1a00(new Error(_0x23c2f5(0xd9)+(this[_0x23c2f5(0xee)]||this['name'])+_0x23c2f5(0xcf)));const _0x28ed15=this['requestIdCounter']++,_0x3a2988=this[_0x23c2f5(0x10f)](_0x193605['method'],_0x193605[_0x23c2f5(0x15d)]||{}),_0x2c1141=setTimeout(()=>{const _0x3cc684=_0x23c2f5;if(this[_0x3cc684(0x18b)][_0x3cc684(0x11d)](_0x28ed15['toString']())){this[_0x3cc684(0x18b)][_0x3cc684(0x18f)](_0x28ed15[_0x3cc684(0x117)]());const _0x4892f7={};_0x4892f7[_0x3cc684(0x172)]=_0x3cc684(0x16a),_0x4892f7['id']=_0x193605['id'],_0x4892f7[_0x3cc684(0x119)]=_0x3cc684(0x195),_0x4892f7[_0x3cc684(0x17d)]=this['name'],_0x4892f7['ms']=_0x3a2988,_0x1ba9fc(_0x4892f7);}},_0x3a2988);this[_0x23c2f5(0x18b)][_0x23c2f5(0x1b2)](_0x28ed15[_0x23c2f5(0x117)](),{'resolve':_0x3581b0=>{clearTimeout(_0x2c1141);const _0x2b5426={..._0x3581b0};_0x2b5426['id']=_0x193605['id'],_0x1ba9fc(_0x2b5426);},'reject':_0x42028c=>{clearTimeout(_0x2c1141),_0x1e1a00(_0x42028c);}});const _0x1fa2ba={..._0x193605};_0x1fa2ba['id']=_0x28ed15;const _0x5393b0=_0x1fa2ba;this['child'][_0x23c2f5(0xf9)][_0x23c2f5(0xc9)](JSON[_0x23c2f5(0x120)](_0x5393b0)+'\x0a');});}[_0x400fff(0x10f)](_0xfd19e7,_0x41b326={}){const _0x107cdb=_0x400fff;if(this['name']===_0x107cdb(0x124)){const _0x1869d4=parsePositiveInt(process.env.STITCH_MCP_TIMEOUT_MS);if(_0x1869d4)return _0x1869d4;const _0x43da10=_0xfd19e7===_0x107cdb(0x103)?_0x41b326[_0x107cdb(0x143)]:null,_0x38eb8f=this[_0x107cdb(0x177)][_0x107cdb(0xb0)]||[];if(_0x43da10&&_0x38eb8f[_0x107cdb(0x18a)](_0x43da10))return this[_0x107cdb(0x177)][_0x107cdb(0x16d)]||0x493e0;return this[_0x107cdb(0x177)][_0x107cdb(0x169)]||0xea60;}return parsePositiveInt(process.env.MCP_BACKEND_TIMEOUT_MS)||this[_0x107cdb(0x177)]['requestTimeoutMs']||0x3a98;}[_0x400fff(0xc2)](){const _0x2b35e1=_0x400fff;this[_0x2b35e1(0x15e)]=!![];this[_0x2b35e1(0x1c0)]&&(clearTimeout(this['retryTimer']),this['retryTimer']=null);this[_0x2b35e1(0xd6)]&&(this[_0x2b35e1(0xd6)][_0x2b35e1(0xae)](),this[_0x2b35e1(0xd6)]=null);this['healthState']=_0x2b35e1(0xb3),this[_0x2b35e1(0x1d4)]=this[_0x2b35e1(0x113)]=this[_0x2b35e1(0x159)]=![],this[_0x2b35e1(0x1d1)]=null,this[_0x2b35e1(0x134)]++;for(const _0x5ab54e of this[_0x2b35e1(0x18b)][_0x2b35e1(0x17c)]())_0x5ab54e[_0x2b35e1(0xce)](new Error('Backend\x20stopped'));this['pendingRequests']['clear']();}[_0x400fff(0x1b4)](){const _0x228998=_0x400fff,_0x1e5653={};_0x1e5653['name']=this[_0x228998(0x143)],_0x1e5653[_0x228998(0xee)]=this['displayName'],_0x1e5653[_0x228998(0x1bf)]=this[_0x228998(0x173)],_0x1e5653['pid']=this[_0x228998(0xd6)]?this['child'][_0x228998(0x18c)]:null,_0x1e5653[_0x228998(0x197)]=this[_0x228998(0x197)],_0x1e5653[_0x228998(0x1c9)]=this[_0x228998(0x1c9)],_0x1e5653[_0x228998(0xda)]=this[_0x228998(0xda)];const _0x453ac2=_0x1e5653;Object[_0x228998(0x189)](_0x453ac2,{'processAlive':Boolean(this['child']&&!this[_0x228998(0xd6)][_0x228998(0xb9)]),'initialized':this[_0x228998(0x1d4)],'functionalReady':this['functionalReady'],'lastProbe':this[_0x228998(0xc7)]||null,'indexRecovery':this[_0x228998(0x163)]||null});for(const _0x3242c7 of[_0x228998(0xe0),_0x228998(0x147),_0x228998(0x155),_0x228998(0x169),_0x228998(0x16d),'setupCommand',_0x228998(0x15c)]){if(this[_0x228998(0x177)][_0x3242c7]!==undefined)_0x453ac2[_0x3242c7]=this[_0x228998(0x177)][_0x3242c7];}return _0x453ac2;}}function parsePositiveInt(_0x50c384){const _0x188886=_0x400fff,_0x266a74=Number[_0x188886(0x150)](_0x50c384,0xa);return Number[_0x188886(0x19a)](_0x266a74)&&_0x266a74>0x0?_0x266a74:null;}function resolveNpx(){const _0x3d9cf0=_0x400fff,_0x4f17c4=path[_0x3d9cf0(0x1c4)](process[_0x3d9cf0(0x152)]),_0x45d4fe=process[_0x3d9cf0(0xba)]==='win32'?_0x3d9cf0(0x12a):_0x3d9cf0(0x101),_0x3fc6d7=path[_0x3d9cf0(0x1a7)](_0x4f17c4,_0x45d4fe);if(fs[_0x3d9cf0(0x194)](_0x3fc6d7))return _0x3fc6d7;return _0x45d4fe;}function _0x400c(_0xa8fb7f,_0x824ae8){_0xa8fb7f=_0xa8fb7f-0xa8;const _0x262aaf=_0x262a();let _0x400c66=_0x262aaf[_0xa8fb7f];if(_0x400c['yOdplT']===undefined){var _0x31ffe4=function(_0x4cf7a0){const _0x41fc58='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x212223='',_0x20d504='';for(let _0x21ba9d=0x0,_0x3ecdad,_0xb25029,_0x25b45a=0x0;_0xb25029=_0x4cf7a0['charAt'](_0x25b45a++);~_0xb25029&&(_0x3ecdad=_0x21ba9d%0x4?_0x3ecdad*0x40+_0xb25029:_0xb25029,_0x21ba9d++%0x4)?_0x212223+=String['fromCharCode'](0xff&_0x3ecdad>>(-0x2*_0x21ba9d&0x6)):0x0){_0xb25029=_0x41fc58['indexOf'](_0xb25029);}for(let _0x1f8bd2=0x0,_0x10e03d=_0x212223['length'];_0x1f8bd2<_0x10e03d;_0x1f8bd2++){_0x20d504+='%'+('00'+_0x212223['charCodeAt'](_0x1f8bd2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20d504);};_0x400c['XlCoxH']=_0x31ffe4,_0x400c['ODIBJx']={},_0x400c['yOdplT']=!![];}const _0x45eb80=_0x262aaf[0x0],_0x396c44=_0xa8fb7f+_0x45eb80,_0x5964f9=_0x400c['ODIBJx'][_0x396c44];return!_0x5964f9?(_0x400c66=_0x400c['XlCoxH'](_0x400c66),_0x400c['ODIBJx'][_0x396c44]=_0x400c66):_0x400c66=_0x5964f9,_0x400c66;}function resolvePython(){const _0x450e5f=_0x400fff,_0x418942=require('child_process'),_0x18582c=path[_0x450e5f(0x1c4)](process[_0x450e5f(0x152)]),_0x4d056e={...process.env};if(process[_0x450e5f(0xba)]===_0x450e5f(0xbe))_0x4d056e[_0x450e5f(0x132)]=_0x4d056e[_0x450e5f(0x132)]?_0x18582c+';'+_0x4d056e[_0x450e5f(0x132)]:_0x18582c;else{const _0x273a33=[_0x18582c,_0x450e5f(0xf0),_0x450e5f(0x11c)];_0x4d056e['PATH']=_0x4d056e[_0x450e5f(0x132)]?_0x273a33[_0x450e5f(0x1a7)](':')+':'+_0x4d056e[_0x450e5f(0x132)]:_0x273a33[_0x450e5f(0x1a7)](':');}const _0x37334c=process['platform']===_0x450e5f(0xbe)?[_0x450e5f(0xb5),'py']:[_0x450e5f(0xc0),'python'];for(const _0x52516f of _0x37334c){try{const _0x11935a={};_0x11935a[_0x450e5f(0x112)]=_0x4d056e,_0x11935a[_0x450e5f(0xdc)]=[_0x450e5f(0xab),'pipe',_0x450e5f(0xfd)];const _0x1bd69c=_0x418942[_0x450e5f(0x1b5)](_0x52516f+_0x450e5f(0x122),_0x11935a)[_0x450e5f(0x117)]()['trim']();if(_0x1bd69c&&fs[_0x450e5f(0x194)](_0x1bd69c))return _0x1bd69c;}catch(_0x3477af){try{const _0x4e7468={};return _0x4e7468[_0x450e5f(0x112)]=_0x4d056e,_0x4e7468[_0x450e5f(0xdc)]=_0x450e5f(0xfd),_0x418942[_0x450e5f(0x1b5)](_0x52516f+_0x450e5f(0xbd),_0x4e7468),_0x52516f;}catch(_0x3c2c8c){}}}return'python';}function getCustomCommand(_0x4c8f96,_0x1e5962){const _0x3ff5e1=_0x400fff,_0x3e668e=require('os'),_0x101bda=require('path'),_0x1eb46a=require('fs'),_0x4a543a=_0x3e668e[_0x3ff5e1(0x1b7)](),_0x3aa753=[_0x101bda[_0x3ff5e1(0x1a7)](_0x1e5962,_0x3ff5e1(0x135)),_0x101bda[_0x3ff5e1(0x1a7)](_0x1e5962,'.cursor',_0x3ff5e1(0x102)),_0x101bda['join'](_0x1e5962,_0x3ff5e1(0xd5),_0x3ff5e1(0x102)),_0x101bda[_0x3ff5e1(0x1a7)](_0x4a543a,_0x3ff5e1(0x135)),_0x101bda[_0x3ff5e1(0x1a7)](_0x4a543a,_0x3ff5e1(0x14c),_0x3ff5e1(0x158),_0x3ff5e1(0xe1)),_0x101bda['join'](_0x4a543a,_0x3ff5e1(0xca),'mcp.json'),_0x101bda[_0x3ff5e1(0x1a7)](_0x4a543a,_0x3ff5e1(0x1b6),'windsurf',_0x3ff5e1(0xe1))];if(process[_0x3ff5e1(0xba)]===_0x3ff5e1(0xbe)){const _0x4028f4=process.env.APPDATA||_0x101bda[_0x3ff5e1(0x1a7)](_0x4a543a,_0x3ff5e1(0x1a6),'Roaming');_0x3aa753[_0x3ff5e1(0x14f)](_0x101bda[_0x3ff5e1(0x1a7)](_0x4028f4,_0x3ff5e1(0x153),_0x3ff5e1(0x110))),_0x3aa753[_0x3ff5e1(0x14f)](_0x101bda[_0x3ff5e1(0x1a7)](_0x4028f4,_0x3ff5e1(0x128),_0x3ff5e1(0x192),_0x3ff5e1(0x102)));}else _0x3aa753[_0x3ff5e1(0x14f)](_0x101bda['join'](_0x4a543a,_0x3ff5e1(0x11a),_0x3ff5e1(0xb2),_0x3ff5e1(0x153),_0x3ff5e1(0x110))),_0x3aa753[_0x3ff5e1(0x14f)](_0x101bda[_0x3ff5e1(0x1a7)](_0x4a543a,_0x3ff5e1(0x11a),_0x3ff5e1(0xb2),_0x3ff5e1(0x128),_0x3ff5e1(0x192),_0x3ff5e1(0x102))),_0x3aa753['push'](_0x101bda[_0x3ff5e1(0x1a7)](_0x4a543a,_0x3ff5e1(0xb7),_0x3ff5e1(0x153),'claude_desktop_config.json')),_0x3aa753['push'](_0x101bda[_0x3ff5e1(0x1a7)](_0x4a543a,_0x3ff5e1(0xb7),_0x3ff5e1(0x128),_0x3ff5e1(0x192),_0x3ff5e1(0x102)));for(const _0x13cf9e of _0x3aa753){if(!_0x1eb46a[_0x3ff5e1(0x194)](_0x13cf9e))continue;try{const _0x5328fe=_0x1eb46a['readFileSync'](_0x13cf9e,_0x3ff5e1(0x18e)),_0x241c59=JSON[_0x3ff5e1(0x1b3)](_0x5328fe),_0x32fc90=_0x241c59[_0x3ff5e1(0xe5)]||_0x241c59[_0x3ff5e1(0xf6)];if(_0x32fc90){const _0x497d4e=_0x32fc90[_0x4c8f96]||(_0x4c8f96===_0x3ff5e1(0xdd)?_0x32fc90[_0x3ff5e1(0x108)]:null);if(_0x497d4e&&_0x497d4e[_0x3ff5e1(0x1ac)]){console[_0x3ff5e1(0x119)](_0x3ff5e1(0x1c7)+_0x4c8f96+_0x3ff5e1(0x1a0)+_0x13cf9e+':\x20'+_0x497d4e[_0x3ff5e1(0x1ac)]);const _0x121921={};return _0x121921[_0x3ff5e1(0x1ac)]=_0x497d4e[_0x3ff5e1(0x1ac)],_0x121921['args']=_0x497d4e[_0x3ff5e1(0xc6)],_0x121921[_0x3ff5e1(0x112)]=_0x497d4e[_0x3ff5e1(0x112)],_0x121921[_0x3ff5e1(0x167)]=_0x497d4e[_0x3ff5e1(0x167)],_0x121921['configPath']=_0x13cf9e,_0x121921;}}}catch(_0x3f144b){}}return null;}function resolveExecutable(_0x44cc8e,_0x45f6ff=process.env){const _0x290993=_0x400fff;if(!_0x44cc8e)return _0x44cc8e;const _0x2db336=require(_0x290993(0x188));if(_0x2db336[_0x290993(0xd8)](_0x44cc8e))return _0x44cc8e;if([_0x290993(0xb5),_0x290993(0xc0),'py']['includes'](_0x44cc8e)){const _0xa9f0ff=require('child_process');try{const _0x340fd7={};_0x340fd7['env']=_0x45f6ff,_0x340fd7[_0x290993(0xdc)]=[_0x290993(0xab),_0x290993(0xab),_0x290993(0xfd)];const _0x3c0035=_0xa9f0ff[_0x290993(0x1b5)](_0x44cc8e+_0x290993(0x122),_0x340fd7)[_0x290993(0x117)]()[_0x290993(0xe2)]();if(_0x3c0035&&fs[_0x290993(0x194)](_0x3c0035))return _0x3c0035;}catch(_0x3e6c39){}}return _0x44cc8e;}function getVenvPython(_0x294514){const _0x17bf9e=_0x400fff,_0x5457fc=require('os'),_0x3c3d3e=require(_0x17bf9e(0x188)),_0x2f3ad9=require('fs'),_0x1b2917=_0x5457fc['homedir'](),_0x5ed55d=_0x3c3d3e[_0x17bf9e(0x1a7)](_0x1b2917,'.anhdh',_0x17bf9e(0x149),_0x294514),_0xf673eb=process[_0x17bf9e(0xba)]===_0x17bf9e(0xbe)?'python.exe':_0x17bf9e(0xb5),_0x1ac31a=process[_0x17bf9e(0xba)]===_0x17bf9e(0xbe)?_0x17bf9e(0x19e):'bin',_0x5d0be0=_0x3c3d3e[_0x17bf9e(0x1a7)](_0x5ed55d,_0x1ac31a,_0xf673eb);if(_0x2f3ad9[_0x17bf9e(0x194)](_0x5d0be0))return _0x5d0be0;return null;}function _0x262a(){const _0x4f99a9=['CMv2Awv3','mc45lJa','zgLHz25VC3rPy0nVBw1HBMq','CgfYyw1Z','C3rVChbLze1HBNvHBgX5','DgvZDa','r29Vz2XLierYAxzLie9bDxrOignYzwrLBNrPywXZigfYzsbUB3qGy29UzMLNDxjLzc4','qvbqrefuqq','lI4Vy29Yzs9Tzw1VCNKTC3rVCMu','Aw5KzxHszwnVDMvYEq','y2f0y2G','mtu1mZmWCxzMtKPu','y29UDgvUDa','y3DK','qf9KyxzPzgvHC3qVC3rPDgnOlw1JCa','CMvXDwvZDfrPBwvVDxrnCW','mI4W','Aw5KzxG','CMvXDwvZDeLKq291BNrLCG','Bg9Uz1j1BM5PBMDuAw1LB3v0txm','lMfWDc1Tyw5Hz2vKlMPZB24','zgvMyxvSDa','Dg9mB3DLCKnHC2u','q1jhx0rbvefFreLs','ANnVBNjWyW','AgvHBhrOu3rHDgu','y2XVC2u','BNb4ic0TEwvZiebFzgf2AwrLyxn0l3n0AxrJAc1Ty3bamc45lJaGzg9JDg9Yic0TDMvYyM9Zzq','ChjVyMvuB29SCW','B3b0Aw9UCW','C3bHD24','r09pr0Xfx0rssvzfx01duf9tq09qrvm','DhLWzq','C2v0DxbdB21Tyw5K','DMfSDwvZ','yMfJA2vUza','D29YA3nWywnL','AxnbCNjHEq','ls15zxm','zMLUywXSEq','C2vYDMu','BwnWlwf0BgfZC2LHBI1ZzwnVBMrHCNK','CMfUzg9Tvvvjra','z2vUzxjHDgvFC2nYzwvUx2zYB21FDgv4Da','yxb0lw1JCc1Hz2vUDa','C3rKB3v0','Cgf0Aa','yxnZAwDU','Aw5JBhvKzxm','CgvUzgLUz1jLCxvLC3rZ','CgLK','z3jHCgGGyw5HBhLZAxmGzw5NAw5L','DxrMoa','zgvSzxrL','u1rjvenix0fqsv9lrvK','zgf0yq','vxnLCG','y29Kzq','zxHPC3rZu3LUyW','qMfJA2vUzcb0Aw1LB3v0','y29KzwDYyxbO','CMv0CNLdB3vUDa','lMnTza','BwfW','AxngAw5PDgu','yxbWBgLJyxrPB25FzgvMyxvSDf9JCMvKzw50AwfSCY5QC29U','BwvZC2fNzq','mJq5nJu1mNzVzMHlyW','u2nYAxb0CW','zw5ZDxjLsw5PDgLHBgL6zwq','jYbPBIa','CMvHzf9NCMfWAa','CMvHBhbHDgHtEw5J','lMrHDge','z2v0','ls1UBY1PBNn0ywXS','qxbWrgf0yq','AM9PBG','ihnLCNzPy2uGzxHPDgvKihDPDgGGy29Kzsa','yxnZzxj0uMvZCg9UC2u','zhjPDMuSzg9JDw1LBNrZlhnWCMvHzhnOzwv0CW','sKLsqv9vu0vstKfnrq','y29TBwfUza','Dw5RBM93BG','ks4Gqxv0BY1Yzxn0yxj0Aw5NigLUia','qhbPB3rYlwfNAwvYl2DVB2DSzs1KCML2zs1Ty3a','w1bYB3H5ievYCM9YxsbgywLSzwqGDg8GCgfYC2uGsLnptI1suemGBgLUzsbMCM9TigjHy2TLBMqG','Dg9ju09tDhjPBMC','C2v0','CgfYC2u','z2v0sgvHBhrOu3rHDhvZ','zxHLy1n5BMm','lMnVzgvPDw0','Ag9TzwrPCG','u3rPDgnOignYzwrLBNrPywXZig1PC3nPBMCUifj1BIb0AguGy29UzMLNDxjLzcbZzxr1CcbJB21Tyw5KlG','ihnLCNzPy2u6ia','r3jHCgGGrw5NAw5L','yxrSyxnZAwfU','BwnWx2f0BgfZC2LHBG','Aw5PDgLHBgL6zvjLC3bVBNnL','lMjHDa','C3rHDgu','CMv0CNLuAw1LCG','y2HPBgrFChjVy2vZCW','BwvTB3j5uhjVAMvJDfbHDgG','BgLZDf9NCMfWAf9ZDgf0C190B29S','zgLYBMfTzq','zMfSC2u','CMvJDxjZAxzL','w01ducbbz2vUDf0GrM91BMqGy3vZDg9TignVBw1HBMqGy29UzMLNDxjHDgLVBIbMB3iGjW','CMvZB2X2zq','Bwf4uMv0CMLLCW','Dg9VBhm','BwvTB3j5lMPZB25S','BNb4lwnSAs5QCW','ywXPDMu','BxmGkgf0DgvTChqG','C3LZDgvT','qMfJA2vUzcbXDwvYEsbMywLSzwq','Aw5PDgLHBgL6yxrPB24','C2vUzfjLCxvLC3q','AgfUzgXLrgf0yq','Aw5PDgLHBgL6zwq','ihjLDhjPzxmUieXHC3qGzxjYB3i6ia','zMLNBwe','mJuXmdq1mLH3q1fqAW','CMv0CNLPBMC','BM90AwzPy2f0Aw9UCY9PBML0AwfSAxPLza','Dgv4Da','lNn0AxrJAc1Ty3a','CgLWzq','z29Vz2XLlwrYAxzL','y29KzsbPBNrLBgXPz2vUy2uGzw5NAw5L','A2LSBa','BgLZDf9NCMfWAf9ZDgf0CW','Bg9Uz1j1BM5PBMDuB29SCW','u1rjvenix0voqujmruq','qxbWBgLJyxrPB24Gu3vWCg9YDa','AwrSzq','ihnLCNzPy2uUlI4','ChL0Ag9U','ignSB3nLzcb1BMv4CgvJDgvKBhK','lMnVBMzPzW','Dg9VBhmVBgLZDa','A2LSBgvK','CgXHDgzVCM0','C3rYAw5N','z2v0x2LUzgv4x3n0yxrZ','ic0TDMvYC2LVBG','D2LUmZi','yMfJA3vW','ChL0Ag9UmW','qMfJA2vUzcbYzxnWB25ZzsbOyxmGBM8GCMvZDwX0','C3rVCa','BwnWlwf0BgfZC2LHBG','Cg9W','mJrUsunLDwC','yxjNCW','BgfZDfbYB2jL','Dw5JB25MAwD1CMvK','D3jPDgu','lMn1CNnVCG','y29UzMLNDxjHDgLVBKvYCM9Y','q29KzsbjBMrLEa','qMfJA2vUzcb0B29SCY9SAxn0ihjLDhvYBMvKig5VihrVB2XZigfYCMf5','CMvQzwn0','igLZig5VDcbYDw5UAw5N','sMLYysaOsw50zxjUywWP','C291CMnL','yMLU','Aw5KzxHszwnVDMvYEuf0DgvTChrLza','zw50CMLLCW','lNzZy29Kzq','y2HPBgq','zwrPDf9Zy3jLzw5Z','AxnbyNnVBhv0zq','u2vYDMLJzsa','BgfZDevYCM9Y','zgvNCMfKzwq','C3rKAw8','C2vYDMvYlw1LBw9YEq','zw52AxjVBM1LBNq','CMvJB3zLCK93BMvKsw5KzxG','ywn0AxzHDgLVBLnVDxjJzq','BwnWx2nVBMzPzY5QC29U','DhjPBq','EwvZ','ls1MB3jJzq','BwnWu2vYDMvYCW','B3DUzxi','ChjLC2v0','s25VD2XLzgDLifn0B3jL','lMvUDG','mtKZnJzqs3zAqNm','BwvTB3j5u3rHDhvZ','ls1Ty3a','mte1nZG2mejhC1DHzq','zgLZCgXHEu5HBwu','lMfNzw50CW','l3vZCI9SB2nHBc9IAw4','zMLNBweTzgv2zwXVCgvYl2zPz21HlwnVBNrLEhqTBwnWqgXHDgvZDa','tuvnt1jzx0zjtevFuefusa','AgfZu3rPDgnOq3jLzgvUDgLHBhm','ndCZmtKYmfjwuunOBq','ks4UlG','C2vYDMvYCW','r09pr0Xfx0rssvzfx09bvvrix0nsrurftLrjquXt','Bwv0Ag9K','C3rKAw4','ChjVEhK','CMvWBgfJzq','sw5KzxGGCMvJB3zLCNKGzMfPBgvKoIa','AwDUB3jL','zw5KC1DPDgG','ignYyxnOzwqGkgv4AxqG','BM9Kzv9TB2r1BgvZ','BNb4','BwnWlMPZB24','Dg9VBhmVy2fSBa','C3rYDwn0DxjLzenVBNrLBNq','zMfPBgvK','ru5pru5u','y3vZDg9Tq29TBwfUza','BwvTB3j5','Aw5PDgLHBgL6zvbHCMfTCW','BwfUAwzLC3qUANnVBG','rKLhtufFqvbjx0Tfwq','CMvUyw1Lu3LUyW','sw5PDgLHBgL6yxrPB24GCgfYyw1LDgvYCYbHCMuGCMvXDwLYzwq','w01ducbbz2vUDf0GrMfPBgvKihrVignYzwf0zsbTzw1VCNKGzgLYzwn0B3j5igf0ia','z2v0uMvXDwvZDfrPBwvVDxq','y2XHDwrLx2rLC2T0B3bFy29UzMLNlMPZB24','odK5mta5B3jjwePO','zw52','zNvUy3rPB25HBfjLywr5','qgnVBgj5BwnOzw5YEs9JB2rLz3jHCgG','lM1LBw9YEq','D3jPDgvgAwXLu3LUyW','Dg9tDhjPBMC','qMfJA2vUzcbPCYbUB3qGCNvUBMLUzW','zxjYB3i','tgLICMfYEq','w01ducbbz2vUDf0GrMfPBgvKihrVihn0yxj0ia','l29WDc9OB21LyNjLDY9IAw4','AgfZ','r09pr0Xfx0fqueXjq0fusu9ox0nsrurftLrjquXt','qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nLCNzLCI1Tzw1VCNK','C3rYAw5NAwz5','y29UzMLNDxjLza','ic1JicjPBxbVCNqGC3LZoYbWCMLUDcHZExmUzxHLy3v0ywjSzsKI','qMfJA2vUzcbJAgfUz2vKigr1CMLUzYbPBML0AwfSAxPHDgLVBG','C3rPDgnOlw1JCa','CMv0CNLezwXHEu1Z','AxnfCNjVCG','lMnVzgvNCMfWAa','q29Kzq','CMvZDwX0','BNb4lMnTza','w01ducbbz2vUDf0G','sKLsqv9vuKW','r09pr0Xfx0rssvzfx01duf9ut0TftL9qqvri','z2v0x2DYyxbOx3n0yxrZ','C3bSAxq','w01ducbbz2vUDf0GswDUB3jPBMCGAw52ywXPzcbtveLuq0HFru5bqKXfrcb2ywX1zsaI','ignYyxnOzwqGCgvYBwfUzw50BhKGywz0zxiG','uefusa','qMfJA2vUzcbJAgfUz2vKigr1CMLUzYbWCM9Izq','z2vUzxjHDgLVBG','lM1JCc5QC29U','qMfJA2vUzcbJCMvKzw50AwfSCYbHCMuGBM90ignVBMzPz3vYzwq','yNvMzMvY','r29Vz2XLierYAxzL','B2zM','y29KzwDYyxbOx3n0yxr1CW','y29Kzs1YzxzPzxCTz3jHCgG','zM9YD2fYzfjLCxvLC3q','u1rjvenix1vtrv9twvnuru1Fr0nmt1ve','zMLSDgvY','CMvHzhK','Aw5PDgLHBgL6zq','CMvWB19YB290','C3rHCNq','BMfTzq','sMLYysbvuKWVDg9Rzw4GyxjLig5VDcbJB25MAwD1CMvKlG','u3rPDgnOiefjierLC2LNBG','y3j5ChrV','CgfJA2fNzq','zxHWB3j0CW','DMvUDNm','q29KzsbPBMrLEcbPCYbTAxnZAw5Nig9YigLUDMfSAwq','ChjVyMu','lMDLBwLUAq','mZbyv3rQy3O','zMLNBweTy29UDgv4Dc1Ty3a','ChvZAa','CgfYC2vjBNq','zw5HyMXLza','zxHLy1bHDgG','q2XHDwrL','CMvHzezPBgvtEw5J','DMvYC2LVBG','qMfJA2vUzfbYB2nLC3m','w01ducbbz2vUDf0Gq291BgqGBM90ihjLywqGu3rPDgnOigfJDgL2yxrPB24GzNjVBsa','y29UzMLN','AxnszwfKEq'];_0x262a=function(){return _0x4f99a9;};return _0x262a();}function resolveStitchActivation(_0x2b6bcc,_0x2d124e=process.env){const _0x276a8c=_0x400fff,_0x4dc2cd=_0x2d124e[_0x276a8c(0xb1)];if(_0x4dc2cd!==undefined&&_0x4dc2cd!==null&&String(_0x4dc2cd)[_0x276a8c(0xe2)]()!==''){const _0x41e50a=String(_0x4dc2cd)[_0x276a8c(0xe2)]()[_0x276a8c(0x170)]();if(['true','1',_0x276a8c(0xe3),'on']['includes'](_0x41e50a)){const _0x4b1574={};return _0x4b1574[_0x276a8c(0x151)]=!![],_0x4b1574[_0x276a8c(0xd1)]='environment',_0x4b1574;}if([_0x276a8c(0x1c5),'0','no',_0x276a8c(0x139)][_0x276a8c(0x18a)](_0x41e50a)){const _0x20b8d4={};return _0x20b8d4[_0x276a8c(0x151)]=![],_0x20b8d4[_0x276a8c(0xd1)]=_0x276a8c(0xde),_0x20b8d4;}console['error'](_0x276a8c(0x130)+_0x4dc2cd+'\x22;\x20expected\x20true/false,\x201/0,\x20yes/no,\x20or\x20on/off.');}const _0x40a874=path[_0x276a8c(0x1a7)](_0x2b6bcc,_0x276a8c(0xef),_0x276a8c(0x10a));try{const _0xbe35db=JSON[_0x276a8c(0x1b3)](fs[_0x276a8c(0x154)](_0x40a874,_0x276a8c(0x18e))),_0x5d26ee=String(_0xbe35db[_0x276a8c(0xe7)]||'')[_0x276a8c(0x12f)](',')['map'](_0x410b26=>_0x410b26[_0x276a8c(0xe2)]()[_0x276a8c(0x170)]())['filter'](Boolean);if(_0x5d26ee[_0x276a8c(0x18a)]('stitch')||_0x5d26ee[_0x276a8c(0x18a)](_0x276a8c(0x1cf))){const _0x406498={};return _0x406498['enabled']=!![],_0x406498[_0x276a8c(0xd1)]='preset',_0x406498;}}catch(_0x22a755){_0x22a755[_0x276a8c(0x193)]!==_0x276a8c(0x106)&&console[_0x276a8c(0x119)](_0x276a8c(0x157)+_0x40a874+':\x20'+_0x22a755[_0x276a8c(0x19c)]);}const _0x49bb48={};return _0x49bb48[_0x276a8c(0x151)]=![],_0x49bb48[_0x276a8c(0xd1)]=_0x276a8c(0x16f),_0x49bb48;}function spawnBackends(_0x55205d){const _0x52212c=_0x400fff,_0x5e66ad=resolveNpx(),_0xbe2d79=resolvePython(),_0x1a1222=getVenvPython(_0x52212c(0x15a))||_0xbe2d79,_0x5a8662=getVenvPython(_0x52212c(0x1bb))||_0xbe2d79;let _0x4cf016=[];try{_0x4cf016=String(JSON[_0x52212c(0x1b3)](fs[_0x52212c(0x154)](path['join'](_0x55205d,'.agents/manifest.json')))[_0x52212c(0xe7)]||'')['split'](/[,+]/)[_0x52212c(0x199)](_0x598e3a=>_0x598e3a['trim']());}catch{}const _0x1b55da=_0xf9e2b8=>_0x4cf016[_0x52212c(0x18a)]('system')||_0x4cf016[_0x52212c(0x18a)](_0xf9e2b8),_0x2629fa=(_0xaff802,_0x258f61,_0x146ea4)=>{const _0x290a0d=_0x52212c;return!_0xaff802[_0x290a0d(0x177)][_0x290a0d(0x107)]&&!_0x258f61&&(_0xaff802[_0x290a0d(0x177)][_0x290a0d(0x121)]=![],_0xaff802[_0x290a0d(0x173)]=_0x290a0d(0xc8),_0xaff802[_0x290a0d(0x177)][_0x290a0d(0xcb)]=_0x146ea4),_0xaff802;};function _0x4dba9a(_0x2bdd32,_0x1e94ae,_0x367873,_0x40baf7={}){const _0x1858f9=_0x52212c,{allowCustom:allowCustom=!![],..._0x5cd7ac}=_0x40baf7,_0x4b2b28=allowCustom?getCustomCommand(_0x2bdd32,_0x55205d):null,_0x1e04b0=_0x4b2b28?resolveExecutable(_0x4b2b28[_0x1858f9(0x1ac)],_0x5cd7ac[_0x1858f9(0x112)]):_0x1e94ae,_0x1f437c=_0x4b2b28?_0x4b2b28[_0x1858f9(0xc6)]||[]:_0x367873,_0x4bc2b2={..._0x5cd7ac[_0x1858f9(0x112)]||{},..._0x4b2b28&&_0x4b2b28['env']?_0x4b2b28[_0x1858f9(0x112)]:{}},_0x11c4ca=_0x4bc2b2;return new BackendProcess(_0x2bdd32,_0x1e04b0,_0x1f437c,{..._0x5cd7ac,..._0x4b2b28?.[_0x1858f9(0x167)]?{'cwd':path[_0x1858f9(0x1c8)](_0x55205d,_0x4b2b28[_0x1858f9(0x167)])}:{},'customCommand':Boolean(_0x4b2b28),'configPath':_0x4b2b28?.['configPath'],'env':_0x11c4ca});}const _0x12984e={};_0x12984e[_0x52212c(0x167)]=_0x55205d,_0x12984e['displayName']=_0x52212c(0xcc);const _0x192178=_0x4dba9a(_0x52212c(0x196),_0x5e66ad,[_0x52212c(0x114),_0x52212c(0x182),_0x52212c(0xec)],_0x12984e),_0x2b4b04=require(_0x52212c(0x188))['join'](_0x55205d,_0x52212c(0xef),_0x52212c(0x1a3),'graph'),_0x577ed2=['-m','code_review_graph',_0x52212c(0x182)],_0x3b5cca={};_0x3b5cca[_0x52212c(0x171)]=_0x2b4b04;const _0x483bd5={};_0x483bd5[_0x52212c(0x167)]=_0x55205d,_0x483bd5[_0x52212c(0xee)]=_0x52212c(0x1ba),_0x483bd5[_0x52212c(0x112)]=_0x3b5cca;const _0x2554a8=_0x4dba9a('code-review-graph',_0x1a1222,_0x577ed2,_0x483bd5),_0x12ddf4=path[_0x52212c(0x1a7)](_0x55205d,_0x52212c(0x115));try{if(!fs['existsSync'](_0x12ddf4)){const _0x40ffa2={};_0x40ffa2[_0x52212c(0x1c6)]=!![],fs['mkdirSync'](_0x12ddf4,_0x40ffa2);}}catch(_0x73af4e){console[_0x52212c(0x119)](_0x52212c(0x10e)+_0x12ddf4+':',_0x73af4e[_0x52212c(0x19c)]);}const _0x581298=path[_0x52212c(0x1a7)](_0x12ddf4,_0x52212c(0x1cb)),_0x542c13={};_0x542c13[_0x52212c(0xf2)]=_0x581298;const _0xc07c77={};_0xc07c77[_0x52212c(0x167)]=_0x55205d,_0xc07c77[_0x52212c(0xee)]=_0x52212c(0xe8),_0xc07c77[_0x52212c(0x1c2)]=_0x55205d,_0xc07c77[_0x52212c(0x112)]=_0x542c13;const _0x4dd60c=_0x4dba9a(_0x52212c(0xdd),_0x5e66ad,[_0x52212c(0x11f)],_0xc07c77);_0x4dd60c['options'][_0x52212c(0x112)]['MEMORY_FILE_PATH']=_0x581298;const _0x565e1c={};_0x565e1c['codegraph']=_0x192178,_0x565e1c[_0x52212c(0x13b)]=_0x2554a8,_0x565e1c[_0x52212c(0xdd)]=_0x4dd60c;const _0x5632f5=_0x565e1c,_0x11a628=process.env.JIRA_PRIMARY_URL;if(_0x11a628||_0x1b55da('pm')){const _0x54f47f={};_0x54f47f['JIRA_URL']=_0x11a628,_0x54f47f[_0x52212c(0x1ab)]=process.env.JIRA_PRIMARY_USERNAME||'',_0x54f47f['JIRA_TOKEN']=process.env.JIRA_PRIMARY_TOKEN||'';const _0x328a97={};_0x328a97['cwd']=_0x55205d,_0x328a97[_0x52212c(0xee)]='Jira\x20(Primary)',_0x328a97[_0x52212c(0x112)]=_0x54f47f;const _0x2165c8=_0x4dba9a(_0x52212c(0xc3),_0x5a8662,['-m',_0x52212c(0x1bc)],_0x328a97);_0x5632f5[_0x52212c(0xc3)]=_0x2629fa(_0x2165c8,_0x11a628&&process.env.JIRA_PRIMARY_TOKEN,_0x52212c(0x144));const _0x3f238e=process.env.JIRA_SECONDARY_URL;if(_0x3f238e){const _0x415526={};_0x415526[_0x52212c(0x12c)]=_0x3f238e,_0x415526[_0x52212c(0x1ab)]=process.env.JIRA_SECONDARY_USERNAME||'',_0x415526['JIRA_TOKEN']=process.env.JIRA_SECONDARY_TOKEN||'';const _0x17997f={};_0x17997f[_0x52212c(0x167)]=_0x55205d,_0x17997f[_0x52212c(0xee)]=_0x52212c(0xd0),_0x17997f[_0x52212c(0x112)]=_0x415526;const _0x517e11=_0x4dba9a(_0x52212c(0x183),_0x5a8662,['-m',_0x52212c(0x1bc)],_0x17997f);_0x5632f5[_0x52212c(0x183)]=_0x517e11;}}const _0x13e37a=process.env.FIGMA_ACCESS_TOKEN;if(_0x13e37a||_0x1b55da(_0x52212c(0x1d6))){const _0x4dbbef={};_0x4dbbef[_0x52212c(0x10b)]=_0x13e37a;const _0x40e0d7={};_0x40e0d7['cwd']=_0x55205d,_0x40e0d7[_0x52212c(0xee)]='Figma\x20Design',_0x40e0d7[_0x52212c(0x112)]=_0x4dbbef;const _0x392d3e=_0x4dba9a('figma-context-mcp',_0x5e66ad,[_0x52212c(0x180),_0x52212c(0xf1)],_0x40e0d7);_0x5632f5[_0x52212c(0x14e)]=_0x2629fa(_0x392d3e,_0x13e37a,'Figma\x20credentials\x20are\x20not\x20configured.');}const _0x60daf8=resolveStitchActivation(_0x55205d);if(_0x60daf8[_0x52212c(0x151)]){const _0x32a299={};_0x32a299[_0x52212c(0x167)]=_0x55205d,_0x32a299['displayName']=_0x52212c(0x145),_0x32a299['env']={},_0x32a299[_0x52212c(0xe0)]=_0x60daf8[_0x52212c(0xd1)],_0x32a299['package']=_0x52212c(0x168),_0x32a299[_0x52212c(0x155)]=_0x52212c(0x15b),_0x32a299[_0x52212c(0x169)]=0xea60,_0x32a299[_0x52212c(0x16d)]=0x493e0,_0x32a299[_0x52212c(0xb0)]=[_0x52212c(0x185),_0x52212c(0xd7)],_0x32a299[_0x52212c(0x17b)]='npx\x20--yes\x20@_davideast/stitch-mcp@0.9.0\x20init',_0x32a299['diagnosticCommand']=_0x52212c(0x175);const _0x46f6c3=_0x4dba9a(_0x52212c(0x124),_0x5e66ad,['--yes','@_davideast/stitch-mcp@0.9.0',_0x52212c(0xfa)],_0x32a299);!_0x46f6c3['options'][_0x52212c(0x107)]&&!hasStitchCredentials(_0x55205d,{...process.env,..._0x46f6c3[_0x52212c(0x177)][_0x52212c(0x112)]})&&(_0x46f6c3[_0x52212c(0x177)][_0x52212c(0x121)]=![],_0x46f6c3[_0x52212c(0x173)]=_0x52212c(0xc8),_0x46f6c3['options'][_0x52212c(0xcb)]=_0x52212c(0x1b8)),_0x5632f5['stitch-mcp']=_0x46f6c3;}const _0x1d6108=process.env.GOOGLE_DRIVE_OAUTH_PATH;if(_0x1d6108||_0x1b55da(_0x52212c(0xac))){const _0xf02cd={};_0xf02cd[_0x52212c(0xf7)]=_0x1d6108,_0xf02cd[_0x52212c(0x179)]=_0x52212c(0x1aa),_0xf02cd[_0x52212c(0x12d)]=process.env.GOOGLE_DRIVE_TOKEN_PATH||'';const _0xeb7f14={};_0xeb7f14[_0x52212c(0x167)]=_0x55205d,_0xeb7f14[_0x52212c(0xee)]=_0x52212c(0x138),_0xeb7f14[_0x52212c(0x112)]=_0xf02cd;const _0x465ca9=_0x4dba9a(_0x52212c(0xac),_0x5e66ad,[_0x52212c(0x1a5),_0x52212c(0x1af)],_0xeb7f14);_0x5632f5[_0x52212c(0xac)]=_0x2629fa(_0x465ca9,_0x1d6108&&fs[_0x52212c(0x194)](_0x1d6108),_0x52212c(0x160));}return _0x5632f5;}function hasStitchCredentials(_0x403e11,_0x237941=process.env){const _0x4770ec=_0x400fff;if(_0x237941[_0x4770ec(0x190)]?.[_0x4770ec(0xe2)]()||_0x237941['STITCH_ACCESS_TOKEN']?.['trim']())return!![];const _0x3bbdce=require('os')[_0x4770ec(0x1b7)](),_0x3ca772=_0x237941['CLOUDSDK_CONFIG']||(_0x237941[_0x4770ec(0x13d)]==='1'?process[_0x4770ec(0xba)]===_0x4770ec(0xbe)?path[_0x4770ec(0x1a7)](_0x237941[_0x4770ec(0x161)]||_0x3bbdce,'gcloud'):path[_0x4770ec(0x1a7)](_0x3bbdce,_0x4770ec(0xb7),'gcloud'):path[_0x4770ec(0x1a7)](_0x3bbdce,_0x4770ec(0xaa),'config'));if([_0x237941[_0x4770ec(0x11e)],path[_0x4770ec(0x1a7)](_0x3ca772,_0x4770ec(0x19b))][_0x4770ec(0x13e)](Boolean)['some'](_0x2316f0=>fs[_0x4770ec(0x194)](_0x2316f0)))return!![];try{return/^\s*STITCH_(?:API_KEY|ACCESS_TOKEN)\s*=\s*["']?[^\s"'#]+/m[_0x4770ec(0x15f)](fs[_0x4770ec(0x154)](path[_0x4770ec(0x1a7)](_0x403e11,_0x4770ec(0xe9)),_0x4770ec(0x18e)));}catch{return![];}}const _0x11d8b9={};_0x11d8b9[_0x400fff(0x156)]=BackendProcess,_0x11d8b9[_0x400fff(0xf3)]=hasStitchCredentials,_0x11d8b9['resolveStitchActivation']=resolveStitchActivation,_0x11d8b9['spawnBackends']=spawnBackends,module[_0x400fff(0x148)]=_0x11d8b9;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0xd011f2=_0x512b;(function(_0x2166c4,_0x23efd4){const _0x3af5b4=_0x512b,_0x3c375c=_0x2166c4();while(!![]){try{const _0x4a2906=-parseInt(_0x3af5b4(0x18d))/0x1+-parseInt(_0x3af5b4(0x181))/0x2+parseInt(_0x3af5b4(0x194))/0x3+-parseInt(_0x3af5b4(0x13d))/0x4*(parseInt(_0x3af5b4(0x156))/0x5)+parseInt(_0x3af5b4(0x164))/0x6+-parseInt(_0x3af5b4(0x187))/0x7+parseInt(_0x3af5b4(0x157))/0x8*(parseInt(_0x3af5b4(0x15b))/0x9);if(_0x4a2906===_0x23efd4)break;else _0x3c375c['push'](_0x3c375c['shift']());}catch(_0xc62a32){_0x3c375c['push'](_0x3c375c['shift']());}}}(_0x1deb,0x79a5c));const _0x5068da={};_0x5068da['type']=_0xd011f2(0x148);const string=_0x5068da,_0x2a2b45={};_0x2a2b45['type']=_0xd011f2(0x189),_0x2a2b45[_0xd011f2(0x155)]=string;const strings=_0x2a2b45,_0x141abb={};_0x141abb['sessionId']=string,_0x141abb[_0xd011f2(0x16e)]=string;function _0x512b(_0x44e8d3,_0x1ac8e2){_0x44e8d3=_0x44e8d3-0x13d;const _0x1debdb=_0x1deb();let _0x512baf=_0x1debdb[_0x44e8d3];if(_0x512b['yXDjCH']===undefined){var _0x341e31=function(_0x5daa70){const _0x415384='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5068da='',_0x2a2b45='';for(let _0x141abb=0x0,_0x21ee6c,_0xf65c20,_0x209510=0x0;_0xf65c20=_0x5daa70['charAt'](_0x209510++);~_0xf65c20&&(_0x21ee6c=_0x141abb%0x4?_0x21ee6c*0x40+_0xf65c20:_0xf65c20,_0x141abb++%0x4)?_0x5068da+=String['fromCharCode'](0xff&_0x21ee6c>>(-0x2*_0x141abb&0x6)):0x0){_0xf65c20=_0x415384['indexOf'](_0xf65c20);}for(let _0x344d3c=0x0,_0xdca35=_0x5068da['length'];_0x344d3c<_0xdca35;_0x344d3c++){_0x2a2b45+='%'+('00'+_0x5068da['charCodeAt'](_0x344d3c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2a2b45);};_0x512b['hHEUci']=_0x341e31,_0x512b['VJSZWK']={},_0x512b['yXDjCH']=!![];}const _0x50704e=_0x1debdb[0x0],_0x1e57d2=_0x44e8d3+_0x50704e,_0x308eed=_0x512b['VJSZWK'][_0x1e57d2];return!_0x308eed?(_0x512baf=_0x512b['hHEUci'](_0x512baf),_0x512b['VJSZWK'][_0x1e57d2]=_0x512baf):_0x512baf=_0x308eed,_0x512baf;}const session=_0x141abb,_0x21ee6c={};_0x21ee6c[_0xd011f2(0x179)]=string,_0x21ee6c[_0xd011f2(0x169)]=string,_0x21ee6c[_0xd011f2(0x193)]=string,_0x21ee6c[_0xd011f2(0x177)]=string,_0x21ee6c['attemptId']=string;const run=_0x21ee6c,tool=(_0x59b47b,_0xd00b1d,_0x269581,_0xa20e08=[])=>({'name':_0x59b47b,'description':_0xd00b1d,'inputSchema':{'type':_0xd011f2(0x166),'properties':_0x269581,'required':_0xa20e08}}),_0xf65c20={};_0xf65c20[_0xd011f2(0x16f)]=_0xd011f2(0x166);const _0x209510={};_0x209510['type']=_0xd011f2(0x148),_0x209510[_0xd011f2(0x13f)]=[_0xd011f2(0x188),_0xd011f2(0x18b)];const _0x344d3c={...session};_0x344d3c['workspacePath']=string,_0x344d3c[_0xd011f2(0x145)]=string,_0x344d3c['hostVersion']=string,_0x344d3c['capabilities']=_0xf65c20,_0x344d3c[_0xd011f2(0x150)]=_0x209510,_0x344d3c[_0xd011f2(0x179)]=string,_0x344d3c[_0xd011f2(0x169)]=string;const _0xdca35={};_0xdca35['type']=_0xd011f2(0x166);const _0x51d586={};_0x51d586[_0xd011f2(0x16f)]=_0xd011f2(0x178),_0x51d586['minimum']=0x0;const _0x45fb40={};_0x45fb40[_0xd011f2(0x16f)]='boolean';const _0xc25123={...session};_0xc25123[_0xd011f2(0x16d)]=string,_0xc25123[_0xd011f2(0x173)]=string,_0xc25123[_0xd011f2(0x13e)]=string,_0xc25123[_0xd011f2(0x15d)]=string,_0xc25123['explicitSkills']=strings,_0xc25123[_0xd011f2(0x197)]=strings,_0xc25123[_0xd011f2(0x179)]=string,_0xc25123['runId']=string,_0xc25123[_0xd011f2(0x183)]=_0xdca35,_0xc25123[_0xd011f2(0x17a)]=_0x51d586,_0xc25123[_0xd011f2(0x163)]=_0x45fb40;const _0x5434b1={};_0x5434b1['type']='boolean';const _0x3bc99a={...session};_0x3bc99a['skillId']=string,_0x3bc99a['id']=string,_0x3bc99a[_0xd011f2(0x179)]=string,_0x3bc99a[_0xd011f2(0x169)]=string,_0x3bc99a[_0xd011f2(0x147)]=string,_0x3bc99a[_0xd011f2(0x14e)]=string,_0x3bc99a[_0xd011f2(0x168)]=_0x5434b1;const _0xae1ba7={};_0xae1ba7[_0xd011f2(0x16f)]=_0xd011f2(0x148),_0xae1ba7[_0xd011f2(0x13f)]=[_0xd011f2(0x170),_0xd011f2(0x190),_0xd011f2(0x142)];const _0x3cbda9={};_0x3cbda9[_0xd011f2(0x16f)]=_0xd011f2(0x148),_0x3cbda9[_0xd011f2(0x13f)]=[_0xd011f2(0x188),_0xd011f2(0x18b)];const _0x302c9e={};_0x302c9e[_0xd011f2(0x16f)]=_0xd011f2(0x178),_0x302c9e['minimum']=0x1,_0x302c9e['maximum']=0x4;const _0x42cc2c={};_0x42cc2c[_0xd011f2(0x16f)]=_0xd011f2(0x143);const _0x54362b={...run};_0x54362b[_0xd011f2(0x16d)]=string,_0x54362b['role']=_0xae1ba7,_0x54362b[_0xd011f2(0x150)]=_0x3cbda9,_0x54362b[_0xd011f2(0x162)]=_0x302c9e,_0x54362b[_0xd011f2(0x185)]=_0x42cc2c;const _0x19c376={};_0x19c376[_0xd011f2(0x16f)]='string',_0x19c376['enum']=[_0xd011f2(0x16c),_0xd011f2(0x16b)];const _0x450e04={};_0x450e04['type']='object';const _0x2148bd={};_0x2148bd[_0xd011f2(0x16f)]=_0xd011f2(0x189),_0x2148bd[_0xd011f2(0x155)]=_0x450e04;function _0x1deb(){const _0x203052=['DhLWzq','D3jPDgvY','C2vZC2LVBL9IB290C3rYyxa','zMLUza','ChjVBxb0','zMvHDhvYzq','qMLUzcbHigHVC3qGC2vZC2LVBIb0BYb0AgLZihDVCMTZCgfJztSGCMvWB3j0ignHCgfIAwXPDgLLCYWGCMvZDw1HyMXLihDVCMSGyw5Kihj1BNrPBwuGCMvHzgLUzxnZlG','yxnZAwDU','ywn0B3jjza','Aw50zwDLCG','DgfZAW','y2HHBMDLzezPBgvdB3vUDa','D29YA2vYu3rVChbLza','Aw5WDxrty2HLBwe','Ag90zML4','ywnJzxb0yw5JzunYAxrLCMLH','yNvNzML4','CMvHzg9UBhK','odCWotqWD0Lly2rp','CgLWzwXPBMu','CMLZAW','CgLWzwXPBMvFy2HLy2TWB2LUDa','C3vIywDLBNrZ','CMvHC29U','ndm3nJmWmLP3y3vrqG','zgvMyxvSDa','yxjYyxK','C2TPBgXFBg9Hza','CgXHBG','ChjLDMLVDxntzxnZAw9Uswq','mJeYmZyXAhnRq0nO','yxr0zw1WDeLK','y29TBwfUza','CMv2Awv3zxi','CgLWzwXPBMvFC3rHCNq','zxzPzgvUy2vjzhm','C2vZC2LVBKLK','mte4mZyYoxrPC2TYvG','q09srv9ut09muW','D29YA0L0zw1Z','Aw5ZDgfSBgvKuhjLC2v0CW','mJG2oefwzgTWqG','DgfYz2v0','zw51Bq','BMfTzq','yMXVy2TLCG','CMvZzwfYy2HLCG','yM9VBgvHBG','AgLNAc1YAxnR','Ag9ZDa','C3rHDhvZ','D29YA2vYswq','C3rYAw5N','ChjVCgvYDgLLCW','ywn0Aw9U','rxHLy3v0zsbHBIbHDxrOB3jPEMvKihzLCMLMAwnHDgLVBIbHCMD2ihDPDgHVDxqGysbZAgvSBcbPBIb0AguGyM91BMqGD29YA3nWywnLigfUzcbYzwnVCMqGzxzPzgvUy2uUie5LDMvYigj5CgfZCYbOB3n0ihbLCM1PC3nPB25Zig9YihbSyw4GBw9Kzs4','DgLTzw91De1Z','CM91DgvFCMvXDwvZDa','DMvYC2LVBG','tg9HzcbHihnLBgvJDgvKihnRAwXSigzVCIb0AgLZignVBNrLEhqGzxbVy2GUieeGBg9HzcbYzwnLAxb0igLZig5VDcbWCM9VzIbVzIbZDwnJzxnZzNvSigfWCgXPy2f0Aw9UlG','Bw9Kzq','zxHWB3j0CW','zMLUzgLUz3m','CMvWB3j0','Cgf1C2u','AxrLBxm','ndq1DfvjywjX','otaWmgrqu0rvzq','zMfPBgvK','Bwf4Aw11Bq','CgLWzwXPBMvFBMv4Da','odK1nxrky0rVBq','CMvXDwLYzwq','C3rHy2S','y2f0ywXVz1zLCNnPB24','C3rLCa','CgLWzwXPBMvFDxnL','y29TCgXLDgvK','Ag9ZDe1HEefNzw50CW','z3jHCgHbDMfPBgfIBgu','mtKYnZa4mgTRzLHfAW','Bwf4qwDLBNrZ','B2jQzwn0','y3jPDgvYAwe','zM9Yy2u','CNvUswq','BwLUAw11Bq','CMv2Awv3','DMvYAwzPy2f0Aw9U','CMvXDwvZDeLK','y29UDgv4DevWB2nO'];_0x1deb=function(){return _0x203052;};return _0x1deb();}const _0x3e8ebf={};_0x3e8ebf['type']=_0xd011f2(0x178),_0x3e8ebf[_0xd011f2(0x16a)]=0x1,_0x3e8ebf[_0xd011f2(0x159)]=0x493e0;const _0x1ed6d7={...run};_0x1ed6d7[_0xd011f2(0x18f)]=strings,_0x1ed6d7['kind']=_0x19c376,_0x1ed6d7[_0xd011f2(0x152)]=_0x2148bd,_0x1ed6d7[_0xd011f2(0x167)]=strings,_0x1ed6d7[_0xd011f2(0x14c)]=_0x3e8ebf,_0x1ed6d7[_0xd011f2(0x150)]=string;const CORE_TOOLS=[tool(_0xd011f2(0x171),_0xd011f2(0x175),_0x344d3c,[_0xd011f2(0x193)]),tool(_0xd011f2(0x14d),'Select\x20one\x20workflow\x20and\x20the\x20necessary\x20companion\x20skills\x20from\x20intent,\x20target\x20stack\x20and\x20task\x20context.\x20Does\x20not\x20execute\x20the\x20task.',_0xc25123,[_0xd011f2(0x193),_0xd011f2(0x16d),_0xd011f2(0x173)]),tool(_0xd011f2(0x18a),_0xd011f2(0x14f),_0x3bc99a,[_0xd011f2(0x193)]),tool(_0xd011f2(0x15a),'Reserve\x20a\x20durable\x20work\x20attempt\x20and\x20return\x20its\x20brief.\x20Use\x20native\x20host\x20agents;\x20only\x20one\x20writer\x20per\x20workspace.',_0x54362b,[_0xd011f2(0x179),_0xd011f2(0x169),_0xd011f2(0x193),_0xd011f2(0x16d)]),tool('pipeline_verify',_0xd011f2(0x14b),_0x1ed6d7,[_0xd011f2(0x179),_0xd011f2(0x169),'sessionId',_0xd011f2(0x18e),'command'])];function extendPipelineTools(_0x177a5f){const _0xc03b4f=_0xd011f2,_0x40dd6e=_0x177a5f['find'](_0x10a74f=>_0x10a74f[_0xc03b4f(0x140)]===_0xc03b4f(0x191));if(_0x40dd6e)_0x40dd6e[_0xc03b4f(0x17c)][_0xc03b4f(0x149)][_0xc03b4f(0x182)]['enum']=[_0xc03b4f(0x174),_0xc03b4f(0x17f),_0xc03b4f(0x17d),_0xc03b4f(0x144),_0xc03b4f(0x180)];const _0x35caea={};_0x35caea[_0xc03b4f(0x16f)]=_0xc03b4f(0x166);const _0x45f5b2={};_0x45f5b2[_0xc03b4f(0x16f)]=_0xc03b4f(0x178),_0x45f5b2[_0xc03b4f(0x16a)]=0x1,_0x45f5b2[_0xc03b4f(0x159)]=0x4;const _0x306731={};_0x306731[_0xc03b4f(0x193)]=string,_0x306731[_0xc03b4f(0x17e)]=strings,_0x306731['scope']=strings,_0x306731[_0xc03b4f(0x15e)]=string,_0x306731['skillVersions']=_0x35caea,_0x306731[_0xc03b4f(0x165)]=_0x45f5b2;if(_0x40dd6e)Object['assign'](_0x40dd6e[_0xc03b4f(0x17c)][_0xc03b4f(0x149)],_0x306731);const _0x27145d=_0x177a5f[_0xc03b4f(0x172)](_0x2fa5a8=>_0x2fa5a8['name']===_0xc03b4f(0x184));if(_0x27145d){_0x27145d[_0xc03b4f(0x17c)]['properties']['pipeline'][_0xc03b4f(0x13f)]=[_0xc03b4f(0x174),_0xc03b4f(0x17f),_0xc03b4f(0x17d),_0xc03b4f(0x144),_0xc03b4f(0x180)],_0x27145d[_0xc03b4f(0x17c)][_0xc03b4f(0x15c)]=[_0xc03b4f(0x179),_0xc03b4f(0x169)];const _0x5e3b27={};_0x5e3b27[_0xc03b4f(0x16f)]=_0xc03b4f(0x148),_0x5e3b27[_0xc03b4f(0x13f)]=[_0xc03b4f(0x154),'resume','release',_0xc03b4f(0x167),_0xc03b4f(0x153)];const _0xfbb2fc={};_0xfbb2fc['type']='string',_0xfbb2fc[_0xc03b4f(0x13f)]=[_0xc03b4f(0x161),_0xc03b4f(0x158)];const _0x4acd06={};_0x4acd06[_0xc03b4f(0x16f)]='boolean';const _0x289033={};_0x289033[_0xc03b4f(0x16f)]=_0xc03b4f(0x166);const _0x452bed={};_0x452bed[_0xc03b4f(0x16f)]='object';const _0x1262f4={};_0x1262f4[_0xc03b4f(0x16f)]=_0xc03b4f(0x189),_0x1262f4[_0xc03b4f(0x155)]=_0x452bed;const _0x33b471={...run};_0x33b471[_0xc03b4f(0x15f)]=string,_0x33b471[_0xc03b4f(0x14a)]=_0x5e3b27,_0x33b471[_0xc03b4f(0x186)]=string,_0x33b471[_0xc03b4f(0x192)]=strings,_0x33b471[_0xc03b4f(0x17e)]=strings,_0x33b471['failedCriteria']=strings,_0x33b471[_0xc03b4f(0x141)]=string,_0x33b471[_0xc03b4f(0x146)]=_0xfbb2fc,_0x33b471[_0xc03b4f(0x17b)]=_0x4acd06,_0x33b471[_0xc03b4f(0x18c)]=string,_0x33b471[_0xc03b4f(0x16b)]=_0x289033,_0x33b471[_0xc03b4f(0x196)]=_0x1262f4,Object[_0xc03b4f(0x176)](_0x27145d[_0xc03b4f(0x17c)][_0xc03b4f(0x149)],_0x33b471);}const _0x428bd4=_0x177a5f[_0xc03b4f(0x172)](_0x34e189=>_0x34e189[_0xc03b4f(0x140)]===_0xc03b4f(0x160)),_0x656d2a={};_0x656d2a[_0xc03b4f(0x193)]=string;if(_0x428bd4)Object[_0xc03b4f(0x176)](_0x428bd4[_0xc03b4f(0x17c)][_0xc03b4f(0x149)],_0x656d2a);return _0x177a5f;}const _0x373433={};_0x373433[_0xd011f2(0x195)]=CORE_TOOLS,_0x373433['extendPipelineTools']=extendPipelineTools,module[_0xd011f2(0x151)]=_0x373433;
|
package/src/proxy/pipeline.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x13bf8c=_0xf4de;(function(_0x2b5554,_0x4de274){const _0x18822f=_0xf4de,_0x178eb4=_0x2b5554();while(!![]){try{const _0x1fa144=parseInt(_0x18822f(0x185))/0x1*(parseInt(_0x18822f(0x2ae))/0x2)+-parseInt(_0x18822f(0x298))/0x3+parseInt(_0x18822f(0x1aa))/0x4*(parseInt(_0x18822f(0x204))/0x5)+parseInt(_0x18822f(0x19f))/0x6+parseInt(_0x18822f(0x2d4))/0x7*(parseInt(_0x18822f(0x286))/0x8)+-parseInt(_0x18822f(0x236))/0x9*(-parseInt(_0x18822f(0x26d))/0xa)+-parseInt(_0x18822f(0x216))/0xb*(parseInt(_0x18822f(0x19b))/0xc);if(_0x1fa144===_0x4de274)break;else _0x178eb4['push'](_0x178eb4['shift']());}catch(_0x583133){_0x178eb4['push'](_0x178eb4['shift']());}}}(_0xdfc6,0x36e6a));const crypto=require('crypto'),fs=require('fs'),os=require('os'),path=require('path'),{spawnSync}=require('child_process'),TOOL_ROUTING=_0x13bf8c(0x2cb),_0x2ef98b={};_0x2ef98b['grill-me']=_0x13bf8c(0x1ab),_0x2ef98b[_0x13bf8c(0x17a)]=_0x13bf8c(0x291),_0x2ef98b['diagnose']=_0x13bf8c(0x2d3),_0x2ef98b[_0x13bf8c(0x1d1)]=_0x13bf8c(0x16e),_0x2ef98b['improve-architecture']=_0x13bf8c(0x238);const MEMORY_TRIGGERS=_0x2ef98b,DOMAIN_SKILL_REMINDER=[_0x13bf8c(0x1a3),_0x13bf8c(0x17c),_0x13bf8c(0x1eb),_0x13bf8c(0x2d0)][_0x13bf8c(0x174)]('\x0a'),_0x478575={};_0x478575['id']=_0x13bf8c(0x2c2),_0x478575[_0x13bf8c(0x1fb)]='Stress-test\x20plan/design',_0x478575[_0x13bf8c(0x1b9)]='stress-test-plan';const _0x59dc6d={};_0x59dc6d['id']=_0x13bf8c(0x17a),_0x59dc6d['name']=_0x13bf8c(0x21f),_0x59dc6d[_0x13bf8c(0x1b9)]=_0x13bf8c(0x1cc);const _0x5c2e32={};_0x5c2e32['id']=_0x13bf8c(0x1df),_0x5c2e32[_0x13bf8c(0x1fb)]=_0x13bf8c(0x182),_0x5c2e32[_0x13bf8c(0x1b9)]=_0x13bf8c(0x2c6);const _0x3cb64f={};function _0xf4de(_0x1c19a4,_0x4e1e2c){_0x1c19a4=_0x1c19a4-0x164;const _0xdfc613=_0xdfc6();let _0xf4de56=_0xdfc613[_0x1c19a4];if(_0xf4de['NmNhPs']===undefined){var _0x4ff44c=function(_0xe623a3){const _0x3ebc28='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2ef98b='',_0x478575='';for(let _0x59dc6d=0x0,_0x5c2e32,_0x3cb64f,_0xfd08bb=0x0;_0x3cb64f=_0xe623a3['charAt'](_0xfd08bb++);~_0x3cb64f&&(_0x5c2e32=_0x59dc6d%0x4?_0x5c2e32*0x40+_0x3cb64f:_0x3cb64f,_0x59dc6d++%0x4)?_0x2ef98b+=String['fromCharCode'](0xff&_0x5c2e32>>(-0x2*_0x59dc6d&0x6)):0x0){_0x3cb64f=_0x3ebc28['indexOf'](_0x3cb64f);}for(let _0xd78083=0x0,_0x872177=_0x2ef98b['length'];_0xd78083<_0x872177;_0xd78083++){_0x478575+='%'+('00'+_0x2ef98b['charCodeAt'](_0xd78083)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x478575);};_0xf4de['mMSHEM']=_0x4ff44c,_0xf4de['inWtQZ']={},_0xf4de['NmNhPs']=!![];}const _0x328b7e=_0xdfc613[0x0],_0x225c31=_0x1c19a4+_0x328b7e,_0x3fc70c=_0xf4de['inWtQZ'][_0x225c31];return!_0x3fc70c?(_0xf4de56=_0xf4de['mMSHEM'](_0xf4de56),_0xf4de['inWtQZ'][_0x225c31]=_0xf4de56):_0xf4de56=_0x3fc70c,_0xf4de56;}_0x3cb64f['id']=_0x13bf8c(0x1d1),_0x3cb64f[_0x13bf8c(0x1fb)]='Implement\x20test-first',_0x3cb64f[_0x13bf8c(0x1b9)]=_0x13bf8c(0x244);const _0xfd08bb={};_0xfd08bb['id']='improve-architecture',_0xfd08bb[_0x13bf8c(0x1fb)]=_0x13bf8c(0x2ad),_0xfd08bb[_0x13bf8c(0x1b9)]=_0x13bf8c(0x231);const _0xd78083={};_0xd78083[_0x13bf8c(0x1fb)]='Feature\x20Development',_0xd78083[_0x13bf8c(0x1ba)]=[_0x478575,_0x59dc6d,_0x5c2e32,_0x3cb64f,_0xfd08bb];const _0x872177={};_0x872177['id']=_0x13bf8c(0x271),_0x872177[_0x13bf8c(0x1fb)]='Diagnose\x20and\x20reproduce',_0x872177['skill']=_0x13bf8c(0x194);const _0x10e9de={};_0x10e9de['id']=_0x13bf8c(0x2c2),_0x10e9de[_0x13bf8c(0x1fb)]=_0x13bf8c(0x190),_0x10e9de['skill']=_0x13bf8c(0x27d);const _0x55c0e2={};_0x55c0e2['id']='to-prd',_0x55c0e2[_0x13bf8c(0x1fb)]=_0x13bf8c(0x29e),_0x55c0e2[_0x13bf8c(0x1b9)]=_0x13bf8c(0x1cc);const _0x336034={};_0x336034['id']=_0x13bf8c(0x1df),_0x336034['name']=_0x13bf8c(0x26e),_0x336034[_0x13bf8c(0x1b9)]=_0x13bf8c(0x2c6);const _0xa8033c={};_0xa8033c['id']='tdd',_0xa8033c['name']=_0x13bf8c(0x2d1),_0xa8033c[_0x13bf8c(0x1b9)]=_0x13bf8c(0x244);const _0x2bf616={};_0x2bf616['name']='Bug\x20Fix',_0x2bf616[_0x13bf8c(0x1ba)]=[_0x872177,_0x10e9de,_0x55c0e2,_0x336034,_0xa8033c];const _0x381dd7={};_0x381dd7['id']='verify-scope',_0x381dd7[_0x13bf8c(0x1fb)]=_0x13bf8c(0x253),_0x381dd7[_0x13bf8c(0x1b9)]=null;const _0x595e04={};_0x595e04['id']='fix-and-test',_0x595e04['name']=_0x13bf8c(0x233),_0x595e04[_0x13bf8c(0x1b9)]=_0x13bf8c(0x244);const _0x35724c={};_0x35724c['name']=_0x13bf8c(0x1db),_0x35724c[_0x13bf8c(0x1ba)]=[_0x381dd7,_0x595e04];const _0x37e0be={};_0x37e0be[_0x13bf8c(0x2d8)]=_0xd78083,_0x37e0be['bugfix']=_0x2bf616,_0x37e0be[_0x13bf8c(0x280)]=_0x35724c;const PIPELINE_DEFINITIONS=_0x37e0be,TASK_PATTERN=/^[a-z0-9](?:[a-z0-9_-]{0,62}[a-z0-9])?$/,RUN_PATTERN=/^\d{8}T\d{6}Z-[a-f0-9]{8}$/,SENSITIVE_PATTERNS=[/(?:^|\/)\.env(?:\..+)?$/i,/(?:^|\/)(?:\.npmrc|\.netrc|\.pypirc|\.git-credentials)$/i,/(?:^|\/)\.aws\/credentials$/i,/(?:^|\/)\.config\/gcloud\/(?:application_default_credentials\.json|credentials\.db)$/i,/(?:^|\/)(?:id_rsa|id_ed25519)$/i,/\.(?:pem|key|p12|pfx)$/i,/(?:^|\/)(?:credentials|service-account)[^/]*\.json$/i],SENSITIVE_CONTENT_PATTERNS=[/(?:^|\n)\s*(?:_authToken|npm_[A-Za-z0-9_]*token)\s*=/i,/-----BEGIN [A-Z ]*PRIVATE KEY-----/,/(?:aws_secret_access_key|client_secret)\s*[=:]/i];function error(_0x3f4ac2,_0x1039b9,_0xe3822f={}){const _0x1bb140={'success':![],'code':_0x3f4ac2,'error':_0x1039b9,..._0xe3822f};return _0x1bb140;}function normalizePath(_0x139bfc){const _0x5ee55a=_0x13bf8c;try{return fs[_0x5ee55a(0x2d6)](_0x139bfc);}catch{return path[_0x5ee55a(0x196)](_0x139bfc);}}function sleep(_0x43965c){const _0x1cd60b=_0x13bf8c;Atomics[_0x1cd60b(0x2bc)](new Int32Array(new SharedArrayBuffer(0x4)),0x0,0x0,_0x43965c);}class PipelineManager{constructor(_0x9c7205,_0x61f9f6={}){const _0x867dea=_0x13bf8c;this[_0x867dea(0x1bd)]=normalizePath(_0x9c7205),this[_0x867dea(0x187)]=_0x61f9f6[_0x867dea(0x187)]||process.env,this['now']=_0x61f9f6[_0x867dea(0x1f9)]||(()=>new Date()),this[_0x867dea(0x25a)]=_0x61f9f6['randomBytes']||crypto[_0x867dea(0x25a)],this[_0x867dea(0x273)]=_0x61f9f6[_0x867dea(0x273)]||0x7d0,this[_0x867dea(0x203)]=[],this['refreshRepositoryContext'](),this[_0x867dea(0x1b2)]();}static[_0x13bf8c(0x209)](_0x2d6687){const _0x26e3dd=_0x13bf8c;if(typeof _0x2d6687!=='string')return'';return _0x2d6687[_0x26e3dd(0x292)]()[_0x26e3dd(0x245)]()[_0x26e3dd(0x1bb)](/[^a-z0-9_-]+/g,'-')['replace'](/^[^a-z0-9]+|[^a-z0-9]+$/g,'')[_0x26e3dd(0x283)](0x0,0x40);}static[_0x13bf8c(0x23c)](_0x54e255){const _0x4aee6f=_0x13bf8c;if(typeof _0x54e255!=='string'||!_0x54e255[_0x4aee6f(0x245)]())return error(_0x4aee6f(0x1c5),'A\x20canonical\x20task\x20ID\x20is\x20required.');if(_0x54e255!==_0x54e255[_0x4aee6f(0x245)]()||!TASK_PATTERN[_0x4aee6f(0x1a5)](_0x54e255))return error(_0x4aee6f(0x1ac),_0x4aee6f(0x2a8),{'suggested_task':PipelineManager[_0x4aee6f(0x209)](_0x54e255)});return null;}static[_0x13bf8c(0x213)](_0x1f61e7){const _0xff9fb6=_0x13bf8c;if(typeof _0x1f61e7!==_0xff9fb6(0x189)||!RUN_PATTERN[_0xff9fb6(0x1a5)](_0x1f61e7))return error(_0xff9fb6(0x26a),_0xff9fb6(0x202));return null;}[_0x13bf8c(0x1d4)](_0x24901e,_0x205453={}){const _0x1dff87=_0x13bf8c,_0x4399f5={};_0x4399f5[_0x1dff87(0x205)]=_0x205453[_0x1dff87(0x205)]||this[_0x1dff87(0x1bd)],_0x4399f5[_0x1dff87(0x187)]={...this[_0x1dff87(0x187)],..._0x205453[_0x1dff87(0x187)]||{}},_0x4399f5['encoding']=_0x1dff87(0x28d),_0x4399f5[_0x1dff87(0x2b7)]=!![],_0x4399f5[_0x1dff87(0x195)]=_0x205453[_0x1dff87(0x195)]||0x7530;const _0x4b15dc=spawnSync('git',_0x24901e,_0x4399f5);return{'ok':!_0x4b15dc[_0x1dff87(0x225)]&&_0x4b15dc[_0x1dff87(0x29b)]===0x0,'status':_0x4b15dc['status'],'stdout':(_0x4b15dc[_0x1dff87(0x179)]||'')[_0x1dff87(0x245)](),'stderr':(_0x4b15dc['stderr']||_0x4b15dc[_0x1dff87(0x225)]?.[_0x1dff87(0x19e)]||'')[_0x1dff87(0x245)]()};}[_0x13bf8c(0x296)](){const _0x44ad86=_0x13bf8c,_0x214f2b=this['runGit']([_0x44ad86(0x1f0),'--is-inside-work-tree']);this['isGitRepository']=_0x214f2b['ok']&&_0x214f2b['stdout']===_0x44ad86(0x167),this[_0x44ad86(0x1da)]=null;if(this[_0x44ad86(0x1dc)]){const _0x5eadd9=this[_0x44ad86(0x1d4)]([_0x44ad86(0x1f0),_0x44ad86(0x17d)]);_0x5eadd9['ok']&&(this[_0x44ad86(0x1da)]=normalizePath(path[_0x44ad86(0x196)](this[_0x44ad86(0x1bd)],_0x5eadd9['stdout'])));}this[_0x44ad86(0x1f4)]=this['gitCommonDir']?path[_0x44ad86(0x174)](this[_0x44ad86(0x1da)],_0x44ad86(0x27a),_0x44ad86(0x1a6)):path[_0x44ad86(0x174)](this[_0x44ad86(0x1bd)],_0x44ad86(0x252),_0x44ad86(0x1a6)),this['legacyStateFilePath']=path['join'](this[_0x44ad86(0x1bd)],_0x44ad86(0x252),_0x44ad86(0x28a));}[_0x13bf8c(0x1ce)](){const _0x113bd1=_0x13bf8c,_0xccdfee=this[_0x113bd1(0x1f9)]()[_0x113bd1(0x290)]()[_0x113bd1(0x1bb)](/[-:]/g,'')[_0x113bd1(0x1bb)](/\.\d{3}/,'');return _0xccdfee+'-'+this['randomBytes'](0x4)[_0x113bd1(0x2a1)](_0x113bd1(0x208));}[_0x13bf8c(0x191)](_0x1a6d8f){const _0x4e15dc=_0x13bf8c;return path[_0x4e15dc(0x174)](this[_0x4e15dc(0x1f4)],_0x1a6d8f);}[_0x13bf8c(0x220)](_0x4431e6,_0x466b4b){const _0x47b71f=_0x13bf8c;return path[_0x47b71f(0x174)](this[_0x47b71f(0x191)](_0x4431e6),'runs',_0x466b4b);}[_0x13bf8c(0x25d)](_0x447a6a){const _0x453240=_0x13bf8c;return path[_0x453240(0x174)](this[_0x453240(0x191)](_0x447a6a),_0x453240(0x294));}[_0x13bf8c(0x1fa)](_0xd91a8c,_0x2001f4){const _0x346927=_0x13bf8c;return path[_0x346927(0x174)](this[_0x346927(0x220)](_0xd91a8c,_0x2001f4),_0x346927(0x1dd));}[_0x13bf8c(0x20e)](_0x1f1d0c,_0x33efb9){const _0x4bd54d=_0x13bf8c;return path[_0x4bd54d(0x174)](this[_0x4bd54d(0x220)](_0x1f1d0c,_0x33efb9),'progress.md');}[_0x13bf8c(0x18d)](_0x4d895b,_0x241135){const _0x2071aa=_0x13bf8c,_0x4f1f9c={};_0x4f1f9c[_0x2071aa(0x2c4)]=!![],fs['mkdirSync'](path[_0x2071aa(0x1a4)](_0x4d895b),_0x4f1f9c);const _0x8b41de=_0x4d895b+'.'+process[_0x2071aa(0x201)]+'.'+this['randomBytes'](0x4)[_0x2071aa(0x2a1)](_0x2071aa(0x208))+'.tmp',_0x59e41d=fs[_0x2071aa(0x20a)](_0x8b41de,'wx');try{fs[_0x2071aa(0x27f)](_0x59e41d,_0x241135,_0x2071aa(0x28d)),fs[_0x2071aa(0x1be)](_0x59e41d);}finally{fs[_0x2071aa(0x23e)](_0x59e41d);}fs[_0x2071aa(0x1af)](_0x8b41de,_0x4d895b);}[_0x13bf8c(0x22b)](_0x2d3cc6,_0xd5411){const _0x506f08=_0x13bf8c;this[_0x506f08(0x18d)](_0x2d3cc6,JSON[_0x506f08(0x25e)](_0xd5411,null,0x2)+'\x0a');}[_0x13bf8c(0x2a6)](_0x3dd5c9){const _0x5a6f54=_0x13bf8c;return path[_0x5a6f54(0x174)](this[_0x5a6f54(0x1f4)],_0x5a6f54(0x27e),_0x3dd5c9+'.lock');}[_0x13bf8c(0x16b)](_0x1bbe7b){const _0x46c68a=_0x13bf8c,_0x1b46ec=this['lockFile'](_0x1bbe7b),_0x42c34f={};_0x42c34f[_0x46c68a(0x2c4)]=!![],fs[_0x46c68a(0x263)](path[_0x46c68a(0x1a4)](_0x1b46ec),_0x42c34f);const _0x2d1e12=Date[_0x46c68a(0x1f9)]();while(Date['now']()-_0x2d1e12<=this[_0x46c68a(0x273)]){try{const _0x4fa047=fs[_0x46c68a(0x20a)](_0x1b46ec,'wx');return fs[_0x46c68a(0x27f)](_0x4fa047,JSON[_0x46c68a(0x25e)]({'pid':process[_0x46c68a(0x201)],'createdAt':Date[_0x46c68a(0x1f9)]()})),fs['closeSync'](_0x4fa047),()=>{const _0x9f209f=_0x46c68a;try{fs[_0x9f209f(0x1a0)](_0x1b46ec);}catch{}};}catch(_0x4e34c7){if(_0x4e34c7['code']!==_0x46c68a(0x1d8))throw _0x4e34c7;try{const _0x4937ff=JSON[_0x46c68a(0x297)](fs[_0x46c68a(0x267)](_0x1b46ec,_0x46c68a(0x28d)));let _0x24fce6=!![];try{process[_0x46c68a(0x264)](_0x4937ff['pid'],0x0);}catch{_0x24fce6=![];}if(!_0x24fce6&&Date[_0x46c68a(0x1f9)]()-_0x4937ff['createdAt']>this[_0x46c68a(0x273)]){fs[_0x46c68a(0x1a0)](_0x1b46ec);continue;}}catch{try{const _0x5741d6=Date[_0x46c68a(0x1f9)]()-fs[_0x46c68a(0x2ba)](_0x1b46ec)[_0x46c68a(0x1e1)];if(_0x5741d6>this['lockTimeoutMs']){fs['unlinkSync'](_0x1b46ec);continue;}}catch{}}sleep(0x14);}}const _0x2f27b6={};_0x2f27b6[_0x46c68a(0x29a)]=_0x46c68a(0x1d7);throw Object[_0x46c68a(0x293)](new Error('Pipeline\x20state\x20is\x20locked\x20for\x20task\x20\x22'+_0x1bbe7b+'\x22.'),_0x2f27b6);}[_0x13bf8c(0x168)](_0x295357,_0x555061){const _0x230f35=_0x13bf8c;let _0x11d104;try{return _0x11d104=this[_0x230f35(0x16b)](_0x295357),_0x555061();}catch(_0x4890e9){if(_0x4890e9[_0x230f35(0x29a)]===_0x230f35(0x1d7))return error(_0x4890e9[_0x230f35(0x29a)],_0x4890e9[_0x230f35(0x19e)]);throw _0x4890e9;}finally{if(_0x11d104)_0x11d104();}}['hasLegacyState'](){const _0x5a055a=_0x13bf8c;if(fs[_0x5a055a(0x1e0)](this[_0x5a055a(0x226)]))return!![];const _0xb8ebf9=new Set([path[_0x5a055a(0x174)](this[_0x5a055a(0x1bd)],_0x5a055a(0x252),_0x5a055a(0x1a6)),this['stateRoot']]);for(const _0x447065 of _0xb8ebf9){if(!fs[_0x5a055a(0x1e0)](_0x447065))continue;const _0x1787bc={};_0x1787bc[_0x5a055a(0x1a2)]=!![];if(fs[_0x5a055a(0x177)](_0x447065,_0x1787bc)[_0x5a055a(0x288)](_0x48d078=>_0x48d078[_0x5a055a(0x17e)]()&&!_0x48d078['name'][_0x5a055a(0x1a9)]('.')&&fs[_0x5a055a(0x1e0)](path['join'](_0x447065,_0x48d078[_0x5a055a(0x1fb)],_0x5a055a(0x1dd)))))return!![];}return![];}[_0x13bf8c(0x1b2)](){const _0x22950b=_0x13bf8c;if(!this[_0x22950b(0x28c)]())return;const _0x20b8c3=this['acquireLock'](_0x22950b(0x29d));try{this[_0x22950b(0x228)](),this[_0x22950b(0x1c4)]();}finally{_0x20b8c3();}}[_0x13bf8c(0x1b4)](_0x4ffa78){const _0x4ccdbf=_0x13bf8c;try{return JSON[_0x4ccdbf(0x297)](fs[_0x4ccdbf(0x267)](_0x4ffa78,_0x4ccdbf(0x28d)));}catch{return null;}}[_0x13bf8c(0x22c)](_0x631638){const _0x81f7b0=_0x13bf8c,_0x2a9fd5=this[_0x81f7b0(0x1b4)](this[_0x81f7b0(0x25d)](_0x631638));if(!_0x2a9fd5?.[_0x81f7b0(0x1fd)])return null;return this[_0x81f7b0(0x22e)](_0x631638,_0x2a9fd5['runId']);}[_0x13bf8c(0x22e)](_0x27c6d1,_0x430de0){const _0x4962a6=_0x13bf8c;return this[_0x4962a6(0x1b4)](this[_0x4962a6(0x1fa)](_0x27c6d1,_0x430de0));}[_0x13bf8c(0x26f)](_0xe5a902,{setCurrent:setCurrent=![]}={}){const _0x27b3b7=_0x13bf8c;_0xe5a902[_0x27b3b7(0x1fc)]=this['now']()[_0x27b3b7(0x290)](),this[_0x27b3b7(0x22b)](this[_0x27b3b7(0x1fa)](_0xe5a902[_0x27b3b7(0x207)],_0xe5a902[_0x27b3b7(0x1fd)]),_0xe5a902),setCurrent&&this['atomicWriteJson'](this[_0x27b3b7(0x25d)](_0xe5a902[_0x27b3b7(0x207)]),{'task':_0xe5a902[_0x27b3b7(0x207)],'runId':_0xe5a902['runId'],'updatedAt':_0xe5a902[_0x27b3b7(0x1fc)]});}[_0x13bf8c(0x28f)](_0x2a8dee,_0x1629e1,_0x5816ed){const _0x23b5c9=_0x13bf8c,_0x5d9749=this[_0x23b5c9(0x20e)](_0x2a8dee[_0x23b5c9(0x207)],_0x2a8dee[_0x23b5c9(0x1fd)]);let _0x8fbe68=fs[_0x23b5c9(0x1e0)](_0x5d9749)?fs[_0x23b5c9(0x267)](_0x5d9749,_0x23b5c9(0x28d)):'';!_0x8fbe68&&(_0x8fbe68=_0x23b5c9(0x1fe)+_0x2a8dee[_0x23b5c9(0x207)]+_0x23b5c9(0x1e3)+_0x2a8dee['runId']+_0x23b5c9(0x22a)+_0x2a8dee['pipeline']+'\x0a'),_0x8fbe68+='\x0a##\x20'+this[_0x23b5c9(0x1f9)]()[_0x23b5c9(0x290)]()+_0x23b5c9(0x1d2)+_0x1629e1+'\x0a\x0a'+_0x5816ed+'\x0a',this['atomicWrite'](_0x5d9749,_0x8fbe68);}['requiredSkillError'](_0x3704f8,_0x54896a=this[_0x13bf8c(0x1bd)]){const _0x4ab311=_0x13bf8c,_0x4949c2=[path[_0x4ab311(0x174)](_0x54896a,'.agents',_0x4ab311(0x2c0),_0x3704f8,_0x4ab311(0x18f)),path[_0x4ab311(0x174)](this['projectPath'],_0x4ab311(0x252),'skills',_0x3704f8,_0x4ab311(0x18f))],_0x29c2ae=_0x4949c2['find'](_0x288395=>fs['existsSync'](_0x288395));if(_0x29c2ae)return null;const _0x526af4={};return _0x526af4[_0x4ab311(0x1b6)]=_0x4949c2[0x0],_0x526af4['recovery_command']='npx\x20apt-mcp-agent-setup\x20update\x20--project\x20\x22'+this[_0x4ab311(0x1bd)]+'\x22',error(_0x4ab311(0x23b),_0x4ab311(0x1bc)+_0x3704f8+_0x4ab311(0x2cd),_0x526af4);}[_0x13bf8c(0x2ac)](){const _0x254399=_0x13bf8c;if(!this[_0x254399(0x1dc)])return![];const _0x4400d7=this[_0x254399(0x1d4)]([_0x254399(0x1f0),_0x254399(0x175)]);if(!_0x4400d7['ok']||!this[_0x254399(0x1da)])return![];const _0x472fb8=normalizePath(path[_0x254399(0x196)](this[_0x254399(0x1bd)],_0x4400d7[_0x254399(0x179)]));if(_0x472fb8===this[_0x254399(0x1da)])return![];const _0x42b26a=this[_0x254399(0x1d4)](['worktree',_0x254399(0x282),'--porcelain']);if(!_0x42b26a['ok'])return![];const _0x3ca140=normalizePath(this[_0x254399(0x1bd)])[_0x254399(0x292)]();return _0x42b26a['stdout']['split'](/\r?\n/)[_0x254399(0x24e)](_0xbb2aae=>_0xbb2aae[_0x254399(0x1a9)](_0x254399(0x184)))[_0x254399(0x288)](_0x45c698=>normalizePath(_0x45c698[_0x254399(0x283)](0x9))[_0x254399(0x292)]()===_0x3ca140);}['previewGitBootstrap'](){const _0x14c173=_0x13bf8c;if(this[_0x14c173(0x1dc)])return error(_0x14c173(0x240),_0x14c173(0x258));const _0x5a4e6d=fs[_0x14c173(0x1c3)](path[_0x14c173(0x174)](os[_0x14c173(0x223)](),_0x14c173(0x211)));try{const _0xa5e560=path[_0x14c173(0x174)](_0x5a4e6d,'git'),_0x186e2d=path['join'](_0x5a4e6d,_0x14c173(0x217)),_0x24d803={};_0x24d803[_0x14c173(0x205)]=_0x5a4e6d;const _0x53789f=this['runGit'](['init',_0x14c173(0x192),_0xa5e560],_0x24d803);if(!_0x53789f['ok'])return error(_0x14c173(0x27b),_0x53789f['stderr']||'Cannot\x20initialize\x20temporary\x20Git\x20index.');const _0x1c5562={};_0x1c5562[_0x14c173(0x18a)]=_0x186e2d;const _0x40427c=_0x1c5562,_0x1d696d=this[_0x14c173(0x1d4)]([_0x14c173(0x175),_0xa5e560,_0x14c173(0x215),this['projectPath'],_0x14c173(0x1d0),'-A'],{'cwd':this['projectPath'],'env':_0x40427c});if(!_0x1d696d['ok'])return error(_0x14c173(0x27b),_0x1d696d[_0x14c173(0x22f)]||_0x14c173(0x2a3));const _0x553503=this[_0x14c173(0x1d4)]([_0x14c173(0x175),_0xa5e560,_0x14c173(0x215),this['projectPath'],_0x14c173(0x289),_0x14c173(0x237),_0x14c173(0x2cf),'-z'],{'cwd':this[_0x14c173(0x1bd)],'env':_0x40427c});if(!_0x553503['ok'])return error(_0x14c173(0x27b),_0x553503[_0x14c173(0x22f)]||_0x14c173(0x16f));const _0x40718c=_0x553503[_0x14c173(0x179)]?_0x553503[_0x14c173(0x179)]['split']('\x00')[_0x14c173(0x24e)](Boolean)[_0x14c173(0x1e4)](_0xd76e99=>_0xd76e99['replace'](/\\/g,'/'))[_0x14c173(0x2c1)]():[],_0x2da3a6=_0x40718c[_0x14c173(0x1e4)](_0x2b62c9=>{const _0x5c6a22=_0x14c173,_0x5e1186=path[_0x5c6a22(0x174)](this[_0x5c6a22(0x1bd)],_0x2b62c9),_0x4db044=fs['statSync'](_0x5e1186),_0x4adaf3=crypto['createHash'](_0x5c6a22(0x25b))[_0x5c6a22(0x219)](fs[_0x5c6a22(0x267)](_0x5e1186))[_0x5c6a22(0x24b)]('hex');return{'path':_0x2b62c9,'size':_0x4db044[_0x5c6a22(0x25c)],'mtimeMs':Math[_0x5c6a22(0x272)](_0x4db044[_0x5c6a22(0x1e1)]),'sha256':_0x4adaf3};}),_0x441450=_0x40718c[_0x14c173(0x24e)](_0x55c63c=>{const _0xeed52d=_0x14c173,_0x385233=/\.env\.example$/i[_0xeed52d(0x1a5)](_0x55c63c);if(!_0x385233&&SENSITIVE_PATTERNS['some'](_0x30835a=>_0x30835a[_0xeed52d(0x1a5)](_0x55c63c)))return!![];const _0x167b8f=fs[_0xeed52d(0x267)](path[_0xeed52d(0x174)](this[_0xeed52d(0x1bd)],_0x55c63c),'utf8');return SENSITIVE_CONTENT_PATTERNS[_0xeed52d(0x288)](_0x300fb7=>_0x300fb7[_0xeed52d(0x1a5)](_0x167b8f));}),_0x17db62=_0x2da3a6[_0x14c173(0x24e)](_0x1ca735=>_0x1ca735[_0x14c173(0x25c)]>0xa*0x400*0x400)[_0x14c173(0x1e4)](_0x35eb2f=>_0x35eb2f[_0x14c173(0x285)]),_0x14cc6d=['.agents/pipelines/'],_0x3bd7e1={};_0x3bd7e1[_0x14c173(0x2b8)]=_0x2da3a6,_0x3bd7e1[_0x14c173(0x25f)]=_0x14cc6d;const _0x49f96a=crypto[_0x14c173(0x1c7)]('sha256')[_0x14c173(0x219)](JSON[_0x14c173(0x25e)](_0x3bd7e1))[_0x14c173(0x24b)](_0x14c173(0x208));return{'success':![],'code':_0x441450[_0x14c173(0x224)]?'GIT_SENSITIVE_FILES_BLOCKED':'GIT_INIT_CONFIRMATION_REQUIRED','error':_0x441450['length']?_0x14c173(0x21b):_0x14c173(0x1ee),'confirmationToken':_0x49f96a,'fileCount':_0x40718c['length'],'totalBytes':_0x2da3a6[_0x14c173(0x210)]((_0x48a110,_0x34f044)=>_0x48a110+_0x34f044[_0x14c173(0x25c)],0x0),'files':_0x40718c,'sensitiveFiles':_0x441450,'largeFiles':_0x17db62,'plannedIgnoreAdditions':_0x14cc6d};}finally{const _0x3601ba={};_0x3601ba[_0x14c173(0x2c4)]=!![],_0x3601ba[_0x14c173(0x166)]=!![],fs[_0x14c173(0x270)](_0x5a4e6d,_0x3601ba);}}[_0x13bf8c(0x16c)](){const _0x3abeff=_0x13bf8c,_0x41b455=path[_0x3abeff(0x174)](this[_0x3abeff(0x1bd)],'.gitignore'),_0x2cd9ae=_0x3abeff(0x2a9),_0x59df27=fs['existsSync'](_0x41b455)?fs[_0x3abeff(0x267)](_0x41b455,_0x3abeff(0x28d)):'',_0xa5dbb3=_0x59df27[_0x3abeff(0x2b6)](/\r?\n/)[_0x3abeff(0x1e4)](_0x4dedb4=>_0x4dedb4[_0x3abeff(0x245)]());if(_0xa5dbb3[_0x3abeff(0x254)](_0x2cd9ae))return;const _0x44dd18=_0x59df27&&!_0x59df27[_0x3abeff(0x1ef)]('\x0a')?'\x0a':'';fs[_0x3abeff(0x1c0)](_0x41b455,''+_0x44dd18+_0x2cd9ae+'\x0a',_0x3abeff(0x28d));}['initializeGitFromPreview'](_0x51d032){const _0x1d29fc=_0x13bf8c,_0x2e7def=this['previewGitBootstrap']();if(_0x2e7def[_0x1d29fc(0x29a)]===_0x1d29fc(0x2b2))return _0x2e7def;if(_0x2e7def['confirmationToken']!==_0x51d032){const _0x1bd5f2={};return _0x1bd5f2[_0x1d29fc(0x222)]=_0x2e7def,error(_0x1d29fc(0x28b),_0x1d29fc(0x29f),_0x1bd5f2);}const _0x3b3019=this[_0x1d29fc(0x18b)]()['filter'](_0x2b7a69=>_0x2b7a69['status']===_0x1d29fc(0x2d2)||_0x2b7a69[_0x1d29fc(0x29b)]===_0x1d29fc(0x268));if(_0x3b3019[_0x1d29fc(0x224)])return error(_0x1d29fc(0x295),_0x1d29fc(0x284));const _0x4c0bef=this[_0x1d29fc(0x1d4)](['config','--get','user.name']),_0xf8590a=this[_0x1d29fc(0x1d4)](['config',_0x1d29fc(0x1f3),_0x1d29fc(0x171)]);if(!_0x4c0bef['ok']||!_0x4c0bef[_0x1d29fc(0x179)]||!_0xf8590a['ok']||!_0xf8590a['stdout']){const _0x48bd30={};return _0x48bd30['recovery_commands']=[_0x1d29fc(0x1b0),'git\x20config\x20--global\x20user.email\x20\x22you@example.com\x22'],error(_0x1d29fc(0x20b),_0x1d29fc(0x186),_0x48bd30);}const _0x2ea24c=this[_0x1d29fc(0x1d4)]([_0x1d29fc(0x20d),_0x1d29fc(0x1f3),_0x1d29fc(0x170)]),_0x524494=_0x2ea24c['ok']&&_0x2ea24c[_0x1d29fc(0x179)]?_0x2ea24c[_0x1d29fc(0x179)]:_0x1d29fc(0x255);let _0x18ab92=this[_0x1d29fc(0x1d4)]([_0x1d29fc(0x2bf),'-b',_0x524494]);if(!_0x18ab92['ok']){_0x18ab92=this[_0x1d29fc(0x1d4)]([_0x1d29fc(0x2bf)]);if(!_0x18ab92['ok'])return error(_0x1d29fc(0x181),_0x18ab92[_0x1d29fc(0x22f)]);const _0xfd8d4c=this[_0x1d29fc(0x1d4)]([_0x1d29fc(0x2b5),'-M',_0x524494]);if(!_0xfd8d4c['ok'])return error(_0x1d29fc(0x181),_0xfd8d4c[_0x1d29fc(0x22f)]);}this[_0x1d29fc(0x16c)]();const _0x202945=this['runGit']([_0x1d29fc(0x1d0),'-A']);if(!_0x202945['ok'])return error(_0x1d29fc(0x230),_0x202945[_0x1d29fc(0x22f)]);const _0x3a0114=this[_0x1d29fc(0x1d4)](['commit',_0x1d29fc(0x1e7),'-m',_0x1d29fc(0x173)]);if(!_0x3a0114['ok'])return error(_0x1d29fc(0x230),_0x3a0114[_0x1d29fc(0x22f)]);const _0x4599de=this[_0x1d29fc(0x1d4)]([_0x1d29fc(0x29b),'--porcelain']);if(!_0x4599de['ok']||_0x4599de[_0x1d29fc(0x179)])return error('GIT_BASELINE_NOT_CLEAN',_0x1d29fc(0x241),{'status':_0x4599de[_0x1d29fc(0x179)]});const _0x10126e=this['stateRoot'];this['refreshRepositoryContext'](),this[_0x1d29fc(0x24f)](_0x10126e);const _0x3f02b4={};return _0x3f02b4[_0x1d29fc(0x2be)]=!![],_0x3f02b4[_0x1d29fc(0x2b5)]=_0x524494,_0x3f02b4['initialized']=!![],_0x3f02b4;}[_0x13bf8c(0x24f)](_0x2ed39e){const _0x4d2078=_0x13bf8c;if(!_0x2ed39e||normalizePath(_0x2ed39e)===normalizePath(this['stateRoot'])||!fs[_0x4d2078(0x1e0)](_0x2ed39e))return;const _0x58add7=path[_0x4d2078(0x174)](this[_0x4d2078(0x1f4)],_0x4d2078(0x1ff),crypto['createHash'](_0x4d2078(0x25b))[_0x4d2078(0x219)](_0x2ed39e)['digest']('hex')+_0x4d2078(0x1bf));if(fs[_0x4d2078(0x1e0)](_0x58add7))return;const _0x5d06b9=this[_0x4d2078(0x250)](_0x2ed39e)[_0x4d2078(0x24e)](_0x4dfe5c=>_0x4dfe5c[_0x4d2078(0x29b)]===_0x4d2078(0x2d2)||_0x4dfe5c['status']===_0x4d2078(0x268)),_0x803a75={};_0x803a75[_0x4d2078(0x29a)]=_0x4d2078(0x295);if(_0x5d06b9[_0x4d2078(0x224)])throw Object['assign'](new Error(_0x4d2078(0x242)),_0x803a75);for(const _0x5f8134 of this[_0x4d2078(0x250)](_0x2ed39e)){const _0x80d11c=path[_0x4d2078(0x174)](_0x2ed39e,_0x5f8134[_0x4d2078(0x207)],'runs',_0x5f8134[_0x4d2078(0x1fd)]),_0x5a98fe=this['runDir'](_0x5f8134[_0x4d2078(0x207)],_0x5f8134['runId']),_0x33652d={};_0x33652d[_0x4d2078(0x2c4)]=!![],_0x33652d[_0x4d2078(0x1f8)]=!![];if(!fs['existsSync'](_0x5a98fe))fs[_0x4d2078(0x19d)](_0x80d11c,_0x5a98fe,_0x33652d);this[_0x4d2078(0x1de)](_0x80d11c,_0x5a98fe);const _0x497945=path[_0x4d2078(0x174)](_0x2ed39e,_0x5f8134['task'],_0x4d2078(0x294));fs[_0x4d2078(0x1e0)](_0x497945)&&!fs[_0x4d2078(0x1e0)](this[_0x4d2078(0x25d)](_0x5f8134['task']))&&(fs[_0x4d2078(0x164)](_0x497945,this['currentFile'](_0x5f8134[_0x4d2078(0x207)])),this['verifyCopiedTree'](_0x497945,this['currentFile'](_0x5f8134[_0x4d2078(0x207)])));}this['atomicWriteJson'](_0x58add7,{'source':_0x2ed39e,'migratedAt':this['now']()['toISOString']()});}[_0x13bf8c(0x1de)](_0x4a66f0,_0x363475){const _0x2b92f5=_0x13bf8c,_0x1c457f=fs['statSync'](_0x4a66f0),_0x33d0b0=fs[_0x2b92f5(0x2ba)](_0x363475);if(_0x1c457f[_0x2b92f5(0x17e)]()!==_0x33d0b0[_0x2b92f5(0x17e)]()){const _0x42ccdf={};_0x42ccdf[_0x2b92f5(0x29a)]='STATE_MIGRATION_VERIFY_FAILED';throw Object[_0x2b92f5(0x293)](new Error(_0x2b92f5(0x276)+_0x4a66f0),_0x42ccdf);}if(_0x1c457f[_0x2b92f5(0x17e)]()){const _0x4d5725=fs[_0x2b92f5(0x177)](_0x4a66f0)[_0x2b92f5(0x2c1)](),_0xb472d9=fs[_0x2b92f5(0x177)](_0x363475)[_0x2b92f5(0x2c1)]();if(JSON[_0x2b92f5(0x25e)](_0x4d5725)!==JSON[_0x2b92f5(0x25e)](_0xb472d9)){const _0x3961fe={};_0x3961fe['code']='STATE_MIGRATION_VERIFY_FAILED';throw Object[_0x2b92f5(0x293)](new Error(_0x2b92f5(0x180)+_0x4a66f0),_0x3961fe);}for(const _0x2e67cd of _0x4d5725)this[_0x2b92f5(0x1de)](path[_0x2b92f5(0x174)](_0x4a66f0,_0x2e67cd),path['join'](_0x363475,_0x2e67cd));return;}const _0x414db4=crypto[_0x2b92f5(0x1c7)]('sha256')[_0x2b92f5(0x219)](fs['readFileSync'](_0x4a66f0))[_0x2b92f5(0x24b)]('hex'),_0xe41cad=crypto[_0x2b92f5(0x1c7)](_0x2b92f5(0x25b))[_0x2b92f5(0x219)](fs[_0x2b92f5(0x267)](_0x363475))[_0x2b92f5(0x24b)](_0x2b92f5(0x208));if(_0x414db4!==_0xe41cad){const _0x2186e8={};_0x2186e8[_0x2b92f5(0x29a)]=_0x2b92f5(0x19c);throw Object[_0x2b92f5(0x293)](new Error(_0x2b92f5(0x2a5)+_0x4a66f0),_0x2186e8);}}[_0x13bf8c(0x2c3)](_0x43c8c9,_0x314e64,_0x480352){const _0x2e1fbb=_0x13bf8c;if(!this[_0x2e1fbb(0x1dc)]){if(!_0x480352[_0x2e1fbb(0x1b8)]||!_0x480352['confirmationToken'])return this[_0x2e1fbb(0x279)]();if(!_0x480352['confirmed'])return error(_0x2e1fbb(0x2c8),'Git\x20initialization\x20and\x20worktree\x20creation\x20require\x20direct\x20user\x20confirmation.');const _0x27fc30=this['initializeGitFromPreview'](_0x480352[_0x2e1fbb(0x212)]);if(!_0x27fc30['success'])return _0x27fc30;}if(!_0x480352['confirmed'])return error(_0x2e1fbb(0x2c8),_0x2e1fbb(0x183));const _0x40415c=this[_0x2e1fbb(0x1d4)](['status',_0x2e1fbb(0x1e6)]);if(!_0x40415c['ok']||_0x40415c['stdout'])return error('WORKTREE_BASE_DIRTY',_0x2e1fbb(0x239),{'status':_0x40415c[_0x2e1fbb(0x179)]});const _0xa5485=this[_0x2e1fbb(0x1d4)]([_0x2e1fbb(0x1f0),_0x2e1fbb(0x2bb)]);if(!_0xa5485['ok'])return error(_0x2e1fbb(0x227),_0xa5485[_0x2e1fbb(0x22f)]||_0x2e1fbb(0x17b));const _0x5a3168=this['runGit'](['branch','--show-current']),_0x38402c=path[_0x2e1fbb(0x214)](this[_0x2e1fbb(0x1bd)]),_0x5e858e=path[_0x2e1fbb(0x174)](path[_0x2e1fbb(0x1a4)](this[_0x2e1fbb(0x1bd)]),'.ag-kit-worktrees',_0x38402c,_0x43c8c9,_0x314e64),_0x39cfbb=_0x2e1fbb(0x1c9)+_0x43c8c9+'/'+_0x314e64;if(fs['existsSync'](_0x5e858e))return error(_0x2e1fbb(0x269),_0x2e1fbb(0x1ea)+_0x5e858e);const _0x3298e1=this[_0x2e1fbb(0x1d4)]([_0x2e1fbb(0x28e),_0x2e1fbb(0x1d0),'-b',_0x39cfbb,_0x5e858e,_0x480352[_0x2e1fbb(0x23f)]||_0xa5485[_0x2e1fbb(0x179)]]),_0x36dc9e={};_0x36dc9e[_0x2e1fbb(0x2c7)]=_0x5e858e,_0x36dc9e[_0x2e1fbb(0x2b5)]=_0x39cfbb;if(!_0x3298e1['ok'])return error(_0x2e1fbb(0x1e9),_0x3298e1[_0x2e1fbb(0x22f)]||_0x2e1fbb(0x2a2),_0x36dc9e);return{'success':!![],'workspace':{'mode':_0x2e1fbb(0x28e),'path':normalizePath(_0x5e858e),'branch':_0x39cfbb,'baseRef':_0x480352[_0x2e1fbb(0x23f)]||_0xa5485[_0x2e1fbb(0x179)],'baseBranch':_0x5a3168['ok']?_0x5a3168[_0x2e1fbb(0x179)]:'','status':'ready','createdAt':this[_0x2e1fbb(0x1f9)]()[_0x2e1fbb(0x290)](),'managed':!![]}};}[_0x13bf8c(0x1ca)](_0x23998c,_0x3c9dc0,_0x438f45={}){const _0x17658=_0x13bf8c,_0x2d2218=_0x438f45[_0x17658(0x1ed)]||_0x17658(0x2d7);if(![_0x17658(0x2d7),'current',_0x17658(0x28e)][_0x17658(0x254)](_0x2d2218))return error('INVALID_WORKSPACE_MODE','Unknown\x20workspace\x20mode:\x20'+_0x2d2218);if(_0x2d2218==='worktree')return this['createWorktree'](_0x23998c,_0x3c9dc0,_0x438f45);return{'success':!![],'workspace':{'mode':this[_0x17658(0x2ac)]()?_0x17658(0x23d):'current','path':this['projectPath'],'branch':this[_0x17658(0x1dc)]?this[_0x17658(0x1d4)]([_0x17658(0x2b5),_0x17658(0x266)])[_0x17658(0x179)]:'','baseRef':this[_0x17658(0x1dc)]?this[_0x17658(0x1d4)]([_0x17658(0x1f0),_0x17658(0x2bb)])[_0x17658(0x179)]:'','baseBranch':this[_0x17658(0x1dc)]?this['runGit'](['branch',_0x17658(0x266)])[_0x17658(0x179)]:'','status':_0x17658(0x2a0),'managed':![]}};}[_0x13bf8c(0x26b)]({pipeline:_0x2683f9,task:_0x33e4ac,workspace:workspace={}}={}){const _0x41bb6a=_0x13bf8c,_0x130567=PipelineManager[_0x41bb6a(0x23c)](_0x33e4ac);if(_0x130567)return _0x130567;const _0x403ba0=PIPELINE_DEFINITIONS[_0x2683f9];if(!_0x403ba0)return error(_0x41bb6a(0x2c9),_0x41bb6a(0x2b0)+_0x2683f9+'.',{'valid_pipelines':Object[_0x41bb6a(0x2a4)](PIPELINE_DEFINITIONS)});const _0x46c03f=_0x403ba0['steps'][0x0]['skill'];if(_0x46c03f){const _0x130ae3=this[_0x41bb6a(0x1b3)](_0x46c03f);if(_0x130ae3)return _0x130ae3;}if((workspace['mode']||_0x41bb6a(0x2d7))===_0x41bb6a(0x28e)&&!this['isGitRepository']){if(!workspace[_0x41bb6a(0x1b8)]||!workspace[_0x41bb6a(0x212)])return this[_0x41bb6a(0x279)]();if(!workspace[_0x41bb6a(0x24c)])return error(_0x41bb6a(0x2c8),'Git\x20initialization\x20and\x20worktree\x20creation\x20require\x20direct\x20user\x20confirmation.');const _0x7d75c3=this[_0x41bb6a(0x249)](workspace['confirmationToken']);if(!_0x7d75c3[_0x41bb6a(0x2be)])return _0x7d75c3;workspace={...workspace,'initializeGit':![],'confirmationToken':undefined};}return this[_0x41bb6a(0x168)](_0x33e4ac,()=>{const _0x42b4be=_0x41bb6a,_0x21dcbb=this[_0x42b4be(0x22c)](_0x33e4ac);if(_0x21dcbb&&[_0x42b4be(0x268),_0x42b4be(0x2d2)][_0x42b4be(0x254)](_0x21dcbb[_0x42b4be(0x29b)]))return error(_0x42b4be(0x259),_0x42b4be(0x2cc)+_0x33e4ac+'\x22\x20already\x20has\x20an\x20active\x20run.',{'task':_0x33e4ac,'runId':_0x21dcbb[_0x42b4be(0x1fd)]});const _0x4315c5=this[_0x42b4be(0x1ce)](),_0xc73ad6=this['resolveWorkspace'](_0x33e4ac,_0x4315c5,workspace);if(!_0xc73ad6[_0x42b4be(0x2be)])return _0xc73ad6;const _0x465b4f={'schemaVersion':0x2,'task':_0x33e4ac,'runId':_0x4315c5,'pipeline':_0x2683f9,'status':_0x42b4be(0x2d2),'completedSteps':[],'workspace':_0xc73ad6[_0x42b4be(0x16a)],'startedAt':this['now']()[_0x42b4be(0x290)](),'updatedAt':this['now']()[_0x42b4be(0x290)]()},_0x1f6394={};_0x1f6394[_0x42b4be(0x262)]=!![],this['writeState'](_0x465b4f,_0x1f6394),this[_0x42b4be(0x28f)](_0x465b4f,_0x42b4be(0x21e),'Workspace:\x20'+_0x465b4f[_0x42b4be(0x16a)][_0x42b4be(0x285)]+_0x42b4be(0x178)+_0x403ba0[_0x42b4be(0x1ba)][0x0]['id']);const _0x240390={};return _0x240390['success']=!![],this[_0x42b4be(0x1ec)](_0x465b4f,_0x240390);});}[_0x13bf8c(0x1e5)]({task:_0x2f5b7e,runId:_0x13311c,pipeline:_0xc56a1c,step:_0x4412fb,status:_0x1f41f3,summary:_0x2a48e1}={}){const _0xc995ff=_0x13bf8c,_0x2a523b=PipelineManager[_0xc995ff(0x23c)](_0x2f5b7e);if(_0x2a523b)return _0x2a523b;if(!_0x13311c)return error(_0xc995ff(0x18e),_0xc995ff(0x20f));const _0x555a80=PipelineManager[_0xc995ff(0x213)](_0x13311c);if(_0x555a80)return _0x555a80;return this[_0xc995ff(0x168)](_0x2f5b7e,()=>{const _0x212ff4=_0xc995ff,_0x95d99=this[_0x212ff4(0x22e)](_0x2f5b7e,_0x13311c);if(!_0x95d99)return error(_0x212ff4(0x2af),_0x212ff4(0x2ce)+_0x13311c+_0x212ff4(0x20c)+_0x2f5b7e+'\x22.');const _0x2bfd3d=this[_0x212ff4(0x22c)](_0x2f5b7e);if(!_0x2bfd3d||_0x2bfd3d[_0x212ff4(0x1fd)]!==_0x13311c)return error(_0x212ff4(0x200),_0x212ff4(0x2ca));if(_0x95d99[_0x212ff4(0x29b)]!==_0x212ff4(0x2d2))return error('RUN_NOT_ACTIVE',_0x212ff4(0x21d)+_0x95d99['status']+_0x212ff4(0x24a));if(_0xc56a1c&&_0xc56a1c!==_0x95d99[_0x212ff4(0x265)])return error(_0x212ff4(0x26c),'Run\x20uses\x20pipeline\x20\x22'+_0x95d99[_0x212ff4(0x265)]+_0x212ff4(0x197)+_0xc56a1c+'\x22.');if(_0x1f41f3!==_0x212ff4(0x21c))return error(_0x212ff4(0x275),_0x212ff4(0x24d));const _0x7de5e8=PIPELINE_DEFINITIONS[_0x95d99[_0x212ff4(0x265)]],_0x35137a=_0x7de5e8[_0x212ff4(0x1ba)][_0x95d99[_0x212ff4(0x229)][_0x212ff4(0x224)]];if(!_0x35137a||_0x35137a['id']!==_0x4412fb)return error(_0x212ff4(0x29c),'Expected\x20step\x20\x22'+(_0x35137a?.['id']||_0x212ff4(0x2d5))+_0x212ff4(0x16d)+_0x4412fb+'\x22.',{'expected_step':_0x35137a?.['id']||null});if(_0x35137a['skill']){const _0x23e8d8=this[_0x212ff4(0x1b3)](_0x35137a[_0x212ff4(0x1b9)],_0x95d99[_0x212ff4(0x16a)][_0x212ff4(0x285)]);if(_0x23e8d8)return _0x23e8d8;}if(_0x95d99[_0x212ff4(0x265)]==='hotfix'&&_0x4412fb===_0x212ff4(0x221)&&(!_0x2a48e1||_0x2a48e1[_0x212ff4(0x245)]()[_0x212ff4(0x224)]<0xa))return error('HOTFIX_SCOPE_REQUIRED',_0x212ff4(0x1cd));_0x95d99[_0x212ff4(0x229)][_0x212ff4(0x2b3)]({'id':_0x4412fb,'summary':_0x2a48e1||'','completedAt':this[_0x212ff4(0x1f9)]()[_0x212ff4(0x290)]()});if(_0x95d99[_0x212ff4(0x229)][_0x212ff4(0x224)]===_0x7de5e8[_0x212ff4(0x1ba)][_0x212ff4(0x224)])_0x95d99[_0x212ff4(0x29b)]=_0x212ff4(0x21c);this[_0x212ff4(0x26f)](_0x95d99),this[_0x212ff4(0x28f)](_0x95d99,'Step\x20completed:\x20'+_0x4412fb,_0x2a48e1||_0x212ff4(0x248));const _0x48957c={};_0x48957c[_0x212ff4(0x2be)]=!![];const _0x330f58=this[_0x212ff4(0x1ec)](_0x95d99,_0x48957c);if(MEMORY_TRIGGERS[_0x4412fb])_0x330f58[_0x212ff4(0x277)]=MEMORY_TRIGGERS[_0x4412fb];return _0x330f58;});}['reset']({task:_0x86157,runId:_0x2ec523,confirm:_0x11583f}={}){const _0x4bc29f=_0x13bf8c,_0x58290c=PipelineManager[_0x4bc29f(0x23c)](_0x86157);if(_0x58290c)return _0x58290c;if(!_0x2ec523)return error(_0x4bc29f(0x18e),_0x4bc29f(0x1f6));const _0x19e307=PipelineManager['validateRunId'](_0x2ec523);if(_0x19e307)return _0x19e307;if(_0x11583f!==!![])return error(_0x4bc29f(0x2bd),_0x4bc29f(0x1c1));return this[_0x4bc29f(0x168)](_0x86157,()=>{const _0x3f2b28=_0x4bc29f,_0xd4c45c=this['readRun'](_0x86157,_0x2ec523);if(!_0xd4c45c)return error('RUN_NOT_FOUND',_0x3f2b28(0x2ce)+_0x2ec523+_0x3f2b28(0x260));const _0x26fe0c=this[_0x3f2b28(0x22c)](_0x86157);if(!_0x26fe0c||_0x26fe0c[_0x3f2b28(0x1fd)]!==_0x2ec523)return error(_0x3f2b28(0x200),_0x3f2b28(0x2ca));if(_0xd4c45c['status']!=='active')return error('RUN_NOT_ACTIVE',_0x3f2b28(0x21d)+_0xd4c45c[_0x3f2b28(0x29b)]+_0x3f2b28(0x24a));_0xd4c45c['status']=_0x3f2b28(0x1f1),_0xd4c45c[_0x3f2b28(0x1e2)]=this[_0x3f2b28(0x1f9)]()[_0x3f2b28(0x290)](),this['writeState'](_0xd4c45c),this[_0x3f2b28(0x28f)](_0xd4c45c,_0x3f2b28(0x1f5),_0x3f2b28(0x176));const _0x1dc61a={};return _0x1dc61a[_0x3f2b28(0x2be)]=!![],this[_0x3f2b28(0x1ec)](_0xd4c45c,_0x1dc61a);});}[_0x13bf8c(0x2a7)](_0x304557,_0x1bac74){const _0x321509=_0x13bf8c,_0x285dff=PipelineManager[_0x321509(0x23c)](_0x304557);if(_0x285dff)return _0x285dff;if(!_0x1bac74)return error(_0x321509(0x18e),_0x321509(0x234));const _0x139759=PipelineManager['validateRunId'](_0x1bac74);if(_0x139759)return _0x139759;const _0x2a247b=this[_0x321509(0x22e)](_0x304557,_0x1bac74);if(!_0x2a247b)return error(_0x321509(0x2af),_0x321509(0x2ce)+_0x1bac74+_0x321509(0x260));if(_0x2a247b[_0x321509(0x29b)]!==_0x321509(0x2d2))return error(_0x321509(0x1f7),'Run\x20is\x20'+_0x2a247b[_0x321509(0x29b)]+_0x321509(0x24a));const _0x197533={};return _0x197533[_0x321509(0x2be)]=!![],this[_0x321509(0x1ec)](_0x2a247b,_0x197533);}[_0x13bf8c(0x1ec)](_0x45da1a,_0xf03a52={}){const _0x31dbb8=_0x13bf8c,_0x12681a=PIPELINE_DEFINITIONS[_0x45da1a['pipeline']],_0x5591c5=_0x45da1a[_0x31dbb8(0x229)][_0x31dbb8(0x224)],_0x4abaca=_0x12681a[_0x31dbb8(0x1ba)][_0x5591c5]||null,_0x3e16a3={..._0xf03a52,'active':_0x45da1a[_0x31dbb8(0x29b)]===_0x31dbb8(0x2d2),'state':_0x45da1a[_0x31dbb8(0x29b)],'task':_0x45da1a['task'],'runId':_0x45da1a[_0x31dbb8(0x1fd)],'pipeline':_0x45da1a[_0x31dbb8(0x265)],'pipeline_name':_0x12681a[_0x31dbb8(0x1fb)],'progress':_0x5591c5+'/'+_0x12681a['steps'][_0x31dbb8(0x224)],'completed':_0x45da1a[_0x31dbb8(0x229)][_0x31dbb8(0x1e4)](_0x1e4247=>_0x1e4247['id']),'next_step':_0x4abaca?{'id':_0x4abaca['id'],'name':_0x4abaca[_0x31dbb8(0x1fb)],'skill':_0x4abaca[_0x31dbb8(0x1b9)]}:null,'workspacePath':_0x45da1a[_0x31dbb8(0x16a)][_0x31dbb8(0x285)],'stateRoot':this['stateRoot'],'ledgerPath':this[_0x31dbb8(0x20e)](_0x45da1a['task'],_0x45da1a[_0x31dbb8(0x1fd)]),'workspace':_0x45da1a[_0x31dbb8(0x16a)],'tool_routing':TOOL_ROUTING};if(_0x4abaca?.[_0x31dbb8(0x1b9)]){const _0x42776d=this['requiredSkillError'](_0x4abaca[_0x31dbb8(0x1b9)],_0x45da1a[_0x31dbb8(0x16a)][_0x31dbb8(0x285)]),_0x2c412c={};_0x2c412c['active']=![],_0x2c412c['blocked']=!![];if(_0x42776d)Object['assign'](_0x3e16a3,_0x42776d,_0x2c412c);else _0x3e16a3[_0x31dbb8(0x1d9)]='Read\x20.agents/skills/'+_0x4abaca['skill']+_0x31dbb8(0x256)+_0x4abaca['id']+'\x22.';}if(_0x4abaca&&[_0x31dbb8(0x1d1),_0x31dbb8(0x1d6),_0x31dbb8(0x1cf)][_0x31dbb8(0x254)](_0x4abaca['id']))_0x3e16a3[_0x31dbb8(0x299)]=DOMAIN_SKILL_REMINDER;return _0x3e16a3;}['listRunsFromRoot'](_0x360f08){const _0x392102=_0x13bf8c,_0x2b637c=[];if(!fs[_0x392102(0x1e0)](_0x360f08))return _0x2b637c;const _0x1daa35={};_0x1daa35[_0x392102(0x1a2)]=!![];for(const _0x3a4430 of fs[_0x392102(0x177)](_0x360f08,_0x1daa35)){if(!_0x3a4430[_0x392102(0x17e)]()||_0x3a4430[_0x392102(0x1fb)][_0x392102(0x1a9)]('.'))continue;const _0xe2b6b5=path['join'](_0x360f08,_0x3a4430[_0x392102(0x1fb)],_0x392102(0x247));if(!fs['existsSync'](_0xe2b6b5))continue;const _0x23144e={};_0x23144e[_0x392102(0x1a2)]=!![];for(const _0x50174f of fs[_0x392102(0x177)](_0xe2b6b5,_0x23144e)){if(!_0x50174f['isDirectory']())continue;const _0x47df3d=this['readJson'](path[_0x392102(0x174)](_0xe2b6b5,_0x50174f['name'],_0x392102(0x1dd)));if(_0x47df3d)_0x2b637c[_0x392102(0x2b3)](_0x47df3d);}}return _0x2b637c;}['listRuns'](){const _0x3461a7=_0x13bf8c;return this[_0x3461a7(0x250)](this[_0x3461a7(0x1f4)]);}['listActivePipelines'](){const _0x338624=_0x13bf8c;return this[_0x338624(0x18b)]()[_0x338624(0x24e)](_0x50943b=>_0x50943b['status']==='active')[_0x338624(0x1e4)](_0x37b395=>this['formatStatus'](_0x37b395));}[_0x13bf8c(0x1b1)](_0xe9c4fc,_0x7fee0){const _0x23d863=_0x13bf8c;if(!_0xe9c4fc){const _0x12caff=[];if(fs[_0x23d863(0x1e0)](this[_0x23d863(0x1f4)])){const _0x9d9d93={};_0x9d9d93['withFileTypes']=!![];for(const _0x2b1ff6 of fs[_0x23d863(0x177)](this[_0x23d863(0x1f4)],_0x9d9d93)){if(!_0x2b1ff6[_0x23d863(0x17e)]()||_0x2b1ff6[_0x23d863(0x1fb)][_0x23d863(0x1a9)]('.'))continue;const _0x184255=this['readCurrent'](_0x2b1ff6[_0x23d863(0x1fb)]);if(_0x184255)_0x12caff[_0x23d863(0x2b3)](this[_0x23d863(0x1ec)](_0x184255));}}return{'success':!![],'active':_0x12caff[_0x23d863(0x288)](_0x5a52f8=>_0x5a52f8[_0x23d863(0x2d2)]),'state':_0x12caff[_0x23d863(0x224)]?_0x23d863(0x17f):_0x23d863(0x2d5),'pipelines':_0x12caff,'stateRoot':this[_0x23d863(0x1f4)],'migrationWarnings':this[_0x23d863(0x203)],'message':_0x12caff['length']?_0x12caff['length']+_0x23d863(0x206):_0x23d863(0x199),'tool_routing':TOOL_ROUTING};}const _0x2a1312=PipelineManager[_0x23d863(0x23c)](_0xe9c4fc);if(_0x2a1312)return _0x2a1312;if(_0x7fee0){const _0x2fd184=PipelineManager[_0x23d863(0x213)](_0x7fee0);if(_0x2fd184)return _0x2fd184;}const _0x399317=_0x7fee0?this[_0x23d863(0x22e)](_0xe9c4fc,_0x7fee0):this[_0x23d863(0x22c)](_0xe9c4fc);if(!_0x399317)return error(_0x23d863(0x2af),'No\x20pipeline\x20run\x20found\x20for\x20task\x20\x22'+_0xe9c4fc+'\x22.',{'active':![],'state':_0x23d863(0x2d5),'task':_0xe9c4fc,'stateRoot':this[_0x23d863(0x1f4)]});const _0x356774={};return _0x356774[_0x23d863(0x2be)]=!![],this[_0x23d863(0x1ec)](_0x399317,_0x356774);}[_0x13bf8c(0x1a8)](_0x15bb50,_0x59efc2){const _0x558160=_0x13bf8c,_0x1431e1=PipelineManager[_0x558160(0x23c)](_0x15bb50);if(_0x1431e1)return _0x1431e1;const _0x7b99b7=PipelineManager['validateRunId'](_0x59efc2);if(_0x7b99b7)return _0x7b99b7;const _0x82af97=this['readRun'](_0x15bb50,_0x59efc2);if(!_0x82af97)return error(_0x558160(0x2af),_0x558160(0x2ce)+_0x59efc2+_0x558160(0x260));if(!_0x82af97['workspace'][_0x558160(0x1c8)]||_0x82af97['workspace'][_0x558160(0x1ed)]!=='worktree')return error(_0x558160(0x18c),'Run\x20does\x20not\x20use\x20a\x20managed\x20worktree.');const _0x5c026f={};_0x5c026f[_0x558160(0x205)]=_0x82af97[_0x558160(0x16a)][_0x558160(0x285)];const _0x3389f4=this['runGit']([_0x558160(0x29b),'--porcelain'],_0x5c026f);if(!_0x82af97[_0x558160(0x16a)][_0x558160(0x1c6)])return error(_0x558160(0x19a),_0x558160(0x1ae));const _0x5046d9=this[_0x558160(0x1d4)]([_0x558160(0x1d5),_0x558160(0x243),_0x558160(0x2aa),_0x82af97[_0x558160(0x16a)][_0x558160(0x1c6)]+'...'+_0x82af97[_0x558160(0x16a)]['branch']]),_0x3fbabe=this[_0x558160(0x1d4)](['diff','--name-only',_0x82af97[_0x558160(0x16a)][_0x558160(0x23f)]+'...'+_0x82af97[_0x558160(0x16a)][_0x558160(0x2b5)]]),[_0x2c4d67='0',_0x1275f8='0']=_0x5046d9[_0x558160(0x179)][_0x558160(0x2b6)](/\s+/);return{'success':_0x3389f4['ok']&&_0x5046d9['ok']&&_0x3fbabe['ok'],'task':_0x15bb50,'runId':_0x59efc2,'workspacePath':_0x82af97[_0x558160(0x16a)][_0x558160(0x285)],'branch':_0x82af97['workspace']['branch'],'baseRef':_0x82af97[_0x558160(0x16a)][_0x558160(0x23f)],'baseBranch':_0x82af97[_0x558160(0x16a)][_0x558160(0x1c6)],'clean':_0x3389f4['ok']&&!_0x3389f4['stdout'],'status':_0x3389f4['stdout'],'ahead':Number(_0x1275f8),'behind':Number(_0x2c4d67),'changedFiles':_0x3fbabe['stdout']?_0x3fbabe[_0x558160(0x179)][_0x558160(0x2b6)](/\r?\n/)[_0x558160(0x24e)](Boolean):[],'mergePerformed':![]};}[_0x13bf8c(0x1b7)]({task:_0xb3f307,runId:_0x5f0ed8,confirm:_0x575360}={}){const _0x5d6c96=_0x13bf8c,_0x5c1de9=PipelineManager[_0x5d6c96(0x23c)](_0xb3f307);if(_0x5c1de9)return _0x5c1de9;const _0x4659c7=PipelineManager[_0x5d6c96(0x213)](_0x5f0ed8);if(_0x4659c7)return _0x4659c7;if(_0x575360!==!![])return error(_0x5d6c96(0x278),_0x5d6c96(0x1cb));return this['withLock'](_0xb3f307,()=>{const _0x3c5f05=_0x5d6c96,_0x8bf0b3=this[_0x3c5f05(0x22e)](_0xb3f307,_0x5f0ed8);if(!_0x8bf0b3)return error(_0x3c5f05(0x2af),_0x3c5f05(0x2ce)+_0x5f0ed8+_0x3c5f05(0x260));if(!['completed','cancelled'][_0x3c5f05(0x254)](_0x8bf0b3[_0x3c5f05(0x29b)]))return error(_0x3c5f05(0x232),_0x3c5f05(0x1a1));if(!_0x8bf0b3[_0x3c5f05(0x16a)][_0x3c5f05(0x1c8)]||_0x8bf0b3['workspace'][_0x3c5f05(0x29b)]===_0x3c5f05(0x27c))return error(_0x3c5f05(0x18c),'No\x20managed\x20worktree\x20is\x20available\x20for\x20cleanup.');const _0x2ca939={};_0x2ca939[_0x3c5f05(0x205)]=_0x8bf0b3[_0x3c5f05(0x16a)][_0x3c5f05(0x285)];const _0x5c3e67=this[_0x3c5f05(0x1d4)]([_0x3c5f05(0x29b),_0x3c5f05(0x1e6)],_0x2ca939);if(!_0x5c3e67['ok']||_0x5c3e67[_0x3c5f05(0x179)])return error('WORKTREE_DIRTY',_0x3c5f05(0x2ab),{'status':_0x5c3e67[_0x3c5f05(0x179)]});if(!_0x8bf0b3[_0x3c5f05(0x16a)]['baseBranch'])return error('WORKTREE_UNMERGED',_0x3c5f05(0x193));const _0x5eac9d=this[_0x3c5f05(0x1d4)](['merge-base',_0x3c5f05(0x188),_0x8bf0b3['workspace'][_0x3c5f05(0x2b5)],_0x8bf0b3[_0x3c5f05(0x16a)][_0x3c5f05(0x1c6)]]);if(!_0x5eac9d['ok'])return error(_0x3c5f05(0x23a),_0x3c5f05(0x251));const _0x4e2cb7=this[_0x3c5f05(0x1d4)](['worktree','remove',_0x8bf0b3[_0x3c5f05(0x16a)][_0x3c5f05(0x285)]]);if(!_0x4e2cb7['ok'])return error(_0x3c5f05(0x1c2),_0x4e2cb7[_0x3c5f05(0x22f)]);_0x8bf0b3[_0x3c5f05(0x16a)][_0x3c5f05(0x29b)]=_0x3c5f05(0x27c),_0x8bf0b3['workspace'][_0x3c5f05(0x2d9)]=this[_0x3c5f05(0x1f9)]()[_0x3c5f05(0x290)](),this['writeState'](_0x8bf0b3),this['appendLedger'](_0x8bf0b3,'Worktree\x20removed',_0x3c5f05(0x281)+_0x8bf0b3[_0x3c5f05(0x16a)]['branch']);const _0x3370c0={};return _0x3370c0['success']=!![],_0x3370c0[_0x3c5f05(0x207)]=_0xb3f307,_0x3370c0[_0x3c5f05(0x1fd)]=_0x5f0ed8,_0x3370c0['branch']=_0x8bf0b3[_0x3c5f05(0x16a)][_0x3c5f05(0x2b5)],_0x3370c0['branchDeleted']=![],_0x3370c0;});}[_0x13bf8c(0x1c4)](){const _0x487a02=_0x13bf8c,_0x100589=new Set([path[_0x487a02(0x174)](this[_0x487a02(0x1bd)],'.agents',_0x487a02(0x1a6)),this[_0x487a02(0x1f4)]]);for(const _0x4e0da7 of _0x100589){if(!fs[_0x487a02(0x1e0)](_0x4e0da7))continue;const _0x4a7991={};_0x4a7991[_0x487a02(0x1a2)]=!![];for(const _0x567ebf of fs[_0x487a02(0x177)](_0x4e0da7,_0x4a7991)){if(!_0x567ebf[_0x487a02(0x17e)]()||_0x567ebf[_0x487a02(0x1fb)][_0x487a02(0x1a9)]('.'))continue;const _0x54bc7c=path[_0x487a02(0x174)](_0x4e0da7,_0x567ebf[_0x487a02(0x1fb)],_0x487a02(0x1dd));if(!fs[_0x487a02(0x1e0)](_0x54bc7c))continue;const _0x19e288=fs['readFileSync'](_0x54bc7c,_0x487a02(0x28d));let _0x517890;try{_0x517890=JSON[_0x487a02(0x297)](_0x19e288);}catch(_0xc602dc){const _0x102289={};_0x102289[_0x487a02(0x29a)]='LEGACY_STATE_INVALID',_0x102289['path']=_0x54bc7c,_0x102289[_0x487a02(0x225)]=_0xc602dc[_0x487a02(0x19e)],this[_0x487a02(0x203)]['push'](_0x102289);continue;}if(!_0x517890?.[_0x487a02(0x265)]||!PIPELINE_DEFINITIONS[_0x517890[_0x487a02(0x265)]]){const _0x4d2d44={};_0x4d2d44[_0x487a02(0x29a)]=_0x487a02(0x1e8),_0x4d2d44[_0x487a02(0x285)]=_0x54bc7c,_0x4d2d44[_0x487a02(0x225)]=_0x487a02(0x22d),this['migrationWarnings'][_0x487a02(0x2b3)](_0x4d2d44);continue;}const _0x5a41d9=crypto[_0x487a02(0x1c7)](_0x487a02(0x25b))['update'](_0x54bc7c+'\x00'+_0x19e288)['digest'](_0x487a02(0x208)),_0x3c0c7c=path['join'](this['stateRoot'],'.migrations',_0x5a41d9+'.json');if(fs[_0x487a02(0x1e0)](_0x3c0c7c))continue;const _0x40fca1=String(_0x517890[_0x487a02(0x1ad)]||this[_0x487a02(0x1f9)]()['toISOString']())[_0x487a02(0x283)](0x0,0xa)[_0x487a02(0x1bb)](/-/g,''),_0x22cfe6=PipelineManager['validateTask'](_0x567ebf[_0x487a02(0x1fb)])?'legacy-'+_0x517890['pipeline']+'-'+_0x40fca1:_0x567ebf[_0x487a02(0x1fb)];let _0x576839=_0x22cfe6,_0xf0933b=0x0;while(this[_0x487a02(0x22c)](_0x576839)){const _0x5e8b62=_0xf0933b++===0x0?_0x5a41d9[_0x487a02(0x283)](0x0,0x6):_0x5a41d9[_0x487a02(0x283)](0x0,0x4)+'-'+_0xf0933b;_0x576839=_0x22cfe6[_0x487a02(0x283)](0x0,0x3f-_0x5e8b62[_0x487a02(0x224)])+'-'+_0x5e8b62;}const _0x1ee882=this[_0x487a02(0x1ce)](),_0x209734=PIPELINE_DEFINITIONS[_0x517890[_0x487a02(0x265)]],_0x48a56f=(_0x517890[_0x487a02(0x229)]||[])['map'](_0x3d3982=>typeof _0x3d3982===_0x487a02(0x189)?{'id':_0x3d3982,'summary':_0x487a02(0x172),'completedAt':this[_0x487a02(0x1f9)]()['toISOString']()}:_0x3d3982),_0x396d2f={};_0x396d2f['mode']=_0x487a02(0x1b5),_0x396d2f[_0x487a02(0x285)]=this[_0x487a02(0x1bd)],_0x396d2f[_0x487a02(0x1c8)]=![],_0x396d2f[_0x487a02(0x29b)]=_0x487a02(0x2a0);const _0x3639cb={'schemaVersion':0x2,'task':_0x576839,'runId':_0x1ee882,'pipeline':_0x517890['pipeline'],'status':_0x48a56f[_0x487a02(0x224)]>=_0x209734[_0x487a02(0x1ba)][_0x487a02(0x224)]?_0x487a02(0x21c):_0x487a02(0x2d2),'completedSteps':_0x48a56f,'workspace':_0x396d2f,'startedAt':_0x517890[_0x487a02(0x1ad)]||this[_0x487a02(0x1f9)]()['toISOString'](),'updatedAt':this[_0x487a02(0x1f9)]()[_0x487a02(0x290)](),'migratedFrom':_0x54bc7c},_0x214415={};_0x214415[_0x487a02(0x262)]=!![],this[_0x487a02(0x26f)](_0x3639cb,_0x214415);const _0x33e8a6=path[_0x487a02(0x174)](_0x4e0da7,_0x567ebf[_0x487a02(0x1fb)],_0x487a02(0x2b4)),_0x5a1d48=fs['existsSync'](_0x33e8a6)?fs[_0x487a02(0x267)](_0x33e8a6,_0x487a02(0x28d)):_0x487a02(0x21a);this['appendLedger'](_0x3639cb,_0x487a02(0x198),_0x487a02(0x1d3)+_0x54bc7c+'\x0a\x0a'+_0x5a1d48),this[_0x487a02(0x22b)](_0x3c0c7c,{'source':_0x54bc7c,'task':_0x576839,'runId':_0x1ee882,'fingerprint':_0x5a41d9,'migratedAt':this[_0x487a02(0x1f9)]()[_0x487a02(0x290)]()});}}}[_0x13bf8c(0x228)](){const _0x4b84e1=_0x13bf8c;if(!fs[_0x4b84e1(0x1e0)](this['legacyStateFilePath']))return;const _0x7b2985=fs[_0x4b84e1(0x267)](this[_0x4b84e1(0x226)],'utf8');let _0x128e3e;try{_0x128e3e=JSON[_0x4b84e1(0x297)](_0x7b2985);}catch(_0x11a7e0){this[_0x4b84e1(0x203)][_0x4b84e1(0x2b3)]({'code':_0x4b84e1(0x1e8),'path':this[_0x4b84e1(0x226)],'error':_0x11a7e0[_0x4b84e1(0x19e)]});return;}if(!_0x128e3e?.[_0x4b84e1(0x265)]||!PIPELINE_DEFINITIONS[_0x128e3e[_0x4b84e1(0x265)]]){this[_0x4b84e1(0x203)]['push']({'code':_0x4b84e1(0x1e8),'path':this[_0x4b84e1(0x226)],'error':'Missing\x20or\x20invalid\x20pipeline.'});return;}const _0x1346c7=crypto[_0x4b84e1(0x1c7)](_0x4b84e1(0x25b))[_0x4b84e1(0x219)](_0x7b2985)['digest'](_0x4b84e1(0x208)),_0xb48859=path['join'](this[_0x4b84e1(0x1f4)],_0x4b84e1(0x1ff),_0x1346c7+'.json');if(fs[_0x4b84e1(0x1e0)](_0xb48859))return;const _0x410aeb=String(_0x128e3e['startedAt']||this[_0x4b84e1(0x1f9)]()[_0x4b84e1(0x290)]())['slice'](0x0,0xa)[_0x4b84e1(0x1bb)](/-/g,''),_0x21b185=_0x4b84e1(0x274)+_0x128e3e[_0x4b84e1(0x265)]+'-'+_0x410aeb;let _0x181545=_0x21b185,_0x522393=0x0;while(fs['existsSync'](this[_0x4b84e1(0x191)](_0x181545))){const _0x61d516=_0x522393++===0x0?_0x1346c7[_0x4b84e1(0x283)](0x0,0x6):_0x1346c7['slice'](0x0,0x4)+'-'+_0x522393;_0x181545=_0x21b185[_0x4b84e1(0x283)](0x0,0x3f-_0x61d516['length'])+'-'+_0x61d516;}const _0x12f710=this[_0x4b84e1(0x1ce)](),_0x2736de=PIPELINE_DEFINITIONS[_0x128e3e[_0x4b84e1(0x265)]],_0x24baa4=(_0x128e3e[_0x4b84e1(0x229)]||[])[_0x4b84e1(0x1e4)](_0x39b2c2=>typeof _0x39b2c2===_0x4b84e1(0x189)?{'id':_0x39b2c2,'summary':_0x4b84e1(0x218),'completedAt':this[_0x4b84e1(0x1f9)]()[_0x4b84e1(0x290)]()}:_0x39b2c2),_0xae2fff={};_0xae2fff[_0x4b84e1(0x1ed)]=_0x4b84e1(0x1b5),_0xae2fff[_0x4b84e1(0x285)]=this[_0x4b84e1(0x1bd)],_0xae2fff['managed']=![],_0xae2fff[_0x4b84e1(0x29b)]=_0x4b84e1(0x2a0);const _0x4d433f={'schemaVersion':0x2,'task':_0x181545,'runId':_0x12f710,'pipeline':_0x128e3e[_0x4b84e1(0x265)],'status':_0x24baa4[_0x4b84e1(0x224)]>=_0x2736de['steps'][_0x4b84e1(0x224)]?_0x4b84e1(0x21c):_0x4b84e1(0x2d2),'completedSteps':_0x24baa4,'workspace':_0xae2fff,'startedAt':_0x128e3e['startedAt']||this['now']()[_0x4b84e1(0x290)](),'updatedAt':this['now']()[_0x4b84e1(0x290)](),'migratedFrom':this[_0x4b84e1(0x226)]},_0x38fc7c={};_0x38fc7c['setCurrent']=!![],this[_0x4b84e1(0x26f)](_0x4d433f,_0x38fc7c),this['appendLedger'](_0x4d433f,'Legacy\x20state\x20imported','Source\x20retained\x20at\x20'+this['legacyStateFilePath']),this[_0x4b84e1(0x22b)](_0xb48859,{'source':this[_0x4b84e1(0x226)],'task':_0x181545,'runId':_0x12f710,'fingerprint':_0x1346c7,'migratedAt':this[_0x4b84e1(0x1f9)]()[_0x4b84e1(0x290)]()});}static[_0x13bf8c(0x2b1)](_0x2b4465){const _0x4afae8=_0x13bf8c,_0x2e5c6c=String(_0x2b4465||'')[_0x4afae8(0x292)]();if(/\b(bug|crash|regression|broken|debug)\b|bị lỗi|không chạy/[_0x4afae8(0x1a5)](_0x2e5c6c)){const _0x5a209d={};return _0x5a209d[_0x4afae8(0x287)]='bugfix',_0x5a209d[_0x4afae8(0x1f2)]=_0x4afae8(0x2b9),_0x5a209d['reason']=_0x4afae8(0x165),_0x5a209d;}if(/\b(typo|rename|config|one-liner|small fix)\b|sửa nhỏ|lỗi chính tả/[_0x4afae8(0x1a5)](_0x2e5c6c)){const _0x4b1613={};return _0x4b1613['suggested_pipeline']=_0x4afae8(0x280),_0x4b1613[_0x4afae8(0x1f2)]=_0x4afae8(0x2b9),_0x4b1613[_0x4afae8(0x246)]=_0x4afae8(0x235),_0x4b1613;}const _0x93edcb={};return _0x93edcb['suggested_pipeline']=_0x4afae8(0x2d8),_0x93edcb[_0x4afae8(0x1f2)]=_0x2e5c6c[_0x4afae8(0x224)]>=0x3?_0x4afae8(0x2b9):_0x4afae8(0x2c5),_0x93edcb[_0x4afae8(0x246)]=_0x4afae8(0x1a7),_0x93edcb;}}function _0xdfc6(){const _0x104ab8=['Aw5PDc5KzwzHDwX0qNjHBMnO','DxnLCI5LBwfPBa','twLNCMf0zwqGzNjVBsaXlNGGDgfZAYbZDgf0zq','y2HVCMu6igLUAxrPywXPEMuGBg9JywWGCMvWB3nPDg9YEq','AM9PBG','ls1NAxqTzgLY','q2fUy2vSBgvKigj5igv4CgXPy2L0ihjLCxvLC3qUieHPC3rVCNKGD2fZihbYzxnLCNzLzc4','CMvHzgrPCLn5BMm','cK5LEhqGC3rLCdOG','C3rKB3v0','Dg8TChjK','uMvWB3nPDg9YEsbOyxmGBM8GyMfZzsbJB21TAxqU','v2vIifvjoIaUywDLBNrZl3nRAwXSCY91As1ZDhLSzs1YDwXLCY9ts0Lmtc5Tza','ls1NAxqTy29TBw9UlwrPCG','AxneAxjLy3rVCNK','BxvSDgK','ugLWzwXPBMuGC3rHDguGy29WEsbLBNrYAwvZig1PC21HDgnOoIa','r0Lux0LosvrFrKfjteve','q3jLyxrLihzLCNrPy2fSlxnSAwnLigLZC3vLCW','q3jLyxrPBMCGysbhAxqGD29YA3rYzwuGCMvXDwLYzxmGzgLYzwn0ihvZzxiGy29UzMLYBwf0Aw9UlG','D29YA3rYzwuG','mJrMyxfXBLG','q29UzMLNDxjLieDPDcb1C2vYlM5HBwuGyw5KihvZzxiUzw1HAwWGyMvMB3jLignYzwf0Aw5NihrOzsbIyxnLBgLUzsbJB21TAxqU','zw52','ls1PCY1HBMnLC3rVCG','C3rYAw5N','r0Lux0Lorevyx0zjteu','BgLZDfj1BNm','v09ss1rsruvFtK9ux01btKfhruq','yxrVBwLJv3jPDgu','uLvox0Lex1jfuvvjuKve','u0TjteWUBwq','q2HHBgXLBMDLihrOzsbMAxGGzgvZAwDU','DgfZA0rPCG','ls1IyxjL','q2fUBM90ihzLCMLMEsb0Agf0ihrOzsbICMfUy2GGD2fZig1LCMDLzc4','yNvNlwrPywDUB3n0AwnZ','DgLTzw91Da','CMvZB2X2zq','iIWGBM90ici','ms54ihrHC2SGC3rHDguGAw1WB3j0zwq','tM8GCgLWzwXPBMuUienHBgWGCgLWzwXPBMvFC3rHCNqGyMvMB3jLigv4zwn1DgfIBguGy2HHBMDLCY4','v09ss1rsruvFqKftrv9cuKfoq0HFtuLtu0LorW','mtm0mJHlEhzQuNi','u1rbvevFtuLhuKfusu9ox1zfuKLgwv9gquLmruq','y3btEw5J','BwvZC2fNzq','nZaYmtyYCvPNs2DM','Dw5SAw5Ru3LUyW','q29TCgXLDguGB3iGy2fUy2vSihrOzsbYDw4GyMvMB3jLignSzwfUDxaU','D2L0AezPBgvuExbLCW','tg9Hzcb0AguGBwf0y2HPBMCGzg9TywLUihnRAwXSigjLzM9YzsbJB2rPBMC6','zgLYBMfTzq','DgvZDa','CgLWzwXPBMvZ','rgvMyxvSDgLUzYb0BYb0AguGC2fMzxn0igz1BgWGCgLWzwXPBMuU','ChjLCgfYzu1LCMDL','C3rHCNrZv2L0Aa','mtGXntjgs0rtt3u','u0fwrsbKzxnPz24GzgvJAxnPB25ZigfUzcbJB25ZDhjHAw50CYb3AxrOihjLBwvTyMvYlG','su5wquXjrf9uqvnlx0Le','C3rHCNrLzef0','q2fUBM90ignVBxbHCMuGDgHLihDVCMT0CMvLihDPDgHVDxqGAxrZihjLy29YzgvKigjHC2uGyNjHBMnOlG','CMvUyw1Lu3LUyW','z2L0ignVBMzPzYaTlwDSB2jHBcb1C2vYlM5HBwuGiLLVDxiGtMfTzsi','z2v0u3rHDhvZ','BwLNCMf0zuXLz2fJEvn0yxrLCW','CMvXDwLYzwrtA2LSBevYCM9Y','CMvHzePZB24','y3vYCMvUDa','zxHWzwn0zwrFCgf0Aa','y2XLyw51CfDVCMTZCgfJzq','Aw5PDgLHBgL6zuDPDa','C2TPBgW','C3rLChm','CMvWBgfJzq','uMvXDwLYzwqGCgLWzwXPBMuGC2TPBgWGiG','ChjVAMvJDfbHDgG','zNn5BMntEw5J','lMPZB24','yxbWzw5KrMLSzvn5BMm','q2fUy2vSBgLUzYbHihj1BIbYzxf1AxjLCYbJB25MAxjTpxrYDwuU','v09ss1rsruvFuKvnt1zfx0zbsuXfra','BwTKDgvTCfn5BMm','BwLNCMf0zuXLz2fJEvrHC2TeAxjLy3rVCMLLCW','vefts19srvfvsvjfra','yMfZzujYyw5JAa','y3jLyxrLsgfZAa','BwfUywDLza','yxb0lW','CMvZB2X2zvDVCMTZCgfJzq','v29YA3rYzwuGy2XLyw51CcbYzxf1AxjLCYbJB25MAxjTpxrYDwuU','ChjKlwDLBG','sg90zML4ihnJB3bLigP1C3rPzMLJyxrPB24GBxvZDcbJB250ywLUigf0igXLyxn0ideWignOyxjHy3rLCNmU','z2vUzxjHDgvsDw5jza','zML4lwfUzc10zxn0','ywrK','DgrK','ic0G','u291CMnLihjLDgfPBMvKigf0ia','CNvUr2L0','CMv2lwXPC3q','Aw1WCM92zs1HCMnOAxrLy3r1CMu','ueLqruXjtKvFu1rbvevFte9ds0ve','ruvysvnu','C2TPBgXFzgLYzwn0AxzL','z2L0q29TBw9UrgLY','sg90zML4','AxnhAxrszxbVC2L0B3j5','C3rHDguUANnVBG','DMvYAwz5q29WAwvKvhjLzq','Dg8TAxnZDwvZ','zxHPC3rZu3LUyW','BxrPBwvnCW','y2fUy2vSBgvKqxq','cLj1BJOG','BwfW','y2HLy2TWB2LUDa','ls1WB3jJzwXHAw4','ls1UBY1NCgCTC2LNBG','tevhqunzx1nuqvrfx0LovKfmsuq','v09ss1rsruvFq1jfqvrfx0zbsuXfra','v29YA3rYzwuGCgf0AcbHBhjLywr5igv4Axn0CZOG','tw9IAwXLifvjoIaUywDLBNrZl3nRAwXSCY9TB2jPBguTCNvSzxmVu0TjteWUBwq','zM9YBwf0u3rHDhvZ','Bw9Kzq','r2L0igLUAxrPywXPEMf0Aw9UigfUzcbHigjHC2vSAw5LignVBw1PDcbYzxf1AxjLigrPCMvJDcb1C2vYignVBMzPCM1HDgLVBI4','zw5KC1DPDgG','CMv2lxbHCNnL','y2fUy2vSBgvK','y29UzMLKzw5Jzq','ls1Nzxq','C3rHDgvsB290','uNvUignHBMnLBgXLza','CNvUswqGAxmGCMvXDwLYzwqGzM9YihbPCgvSAw5LihjLC2v0lG','uLvox05pvf9bq1rjvKu','zxjYB3jpBKv4Axn0','BM93','C3rHDgvgAwXL','BMfTzq','DxbKyxrLzef0','CNvUswq','iYbqAxbLBgLUzsbSzwrNzxikcLrHC2S6ia','lM1Pz3jHDgLVBNm','uLvox01ju01bveni','CgLK','CNvUswqGBxvZDcbIzsbHihnLCNzLCI1Nzw5LCMf0zwqGCgLWzwXPBMuGCNvUieLelG','BwLNCMf0Aw9Uv2fYBMLUz3m','mtu1BvHTBuTS','y3DK','ihrHC2SOCYKGDhjHy2TLzc4','DgfZAW','Agv4','C3vNz2vZDfrHC2S','B3bLBLn5BMm','r0Lux0Leru5usvrzx1jfuvvjuKve','iIb3yxmGBM90igzVDw5KigzVCIb0yxnRici','y29UzMLN','BgvKz2vYrMLSzq','CNvUswqGAxmGCMvXDwLYzwqGzM9YihbPCgvSAw5Lig11Dgf0Aw9UCY4','CMvKDwnL','yxb0lw1JCc1NAxqTChjLDMLLDY0','y29UzMLYBwf0Aw9Uvg9Rzw4','DMfSAwrHDgvsDw5jza','yMfZzw5HBwu','ls13B3jRlxrYzwu','nZqXng5kyKrbta','Aw5KzxG','twLNCMf0zwqGzNjVBsbSzwDHy3KGC3rHDgu','DxbKyxrL','kg5VigXLz2fJEsbSzwrNzxiP','u2vUC2L0AxzLigzPBgvZihDVDwXKigjLignVBw1PDhrLzc4GqwrKihrOzw0GDg8GlMDPDgLNBM9YzsbHBMqGCMvXDwvZDcbHig5LDYbWCMv2Awv3lG','y29TCgXLDgvK','uNvUigLZia','ugLWzwXPBMuGC3rHCNrLza','u3LUDgHLC2L6zsbquKq','CNvUrgLY','DMvYAwz5lxnJB3bL','ChjLDMLLDW','Dg1WzgLY','BgvUz3rO','zxjYB3i','BgvNywn5u3rHDgvgAwXLugf0Aa','v09ss1rsruvFqKftrv9nsvntsu5h','BwLNCMf0zuXLz2fJEvn0yxrL','y29TCgXLDgvKu3rLChm','cLbPCgvSAw5LoIa','yxrVBwLJv3jPDgvkC29U','CMvHzen1CNjLBNq','twLZC2LUzYbVCIbPBNzHBgLKihbPCgvSAw5LlG','CMvHzfj1BG','C3rKzxjY','r0Lux0LosvrjquXFq09ntuLux0zbsuXfra','Aw1WCM92zs1JB2rLyMfZzs1HCMnOAxrLy3r1CMu','uLvox1nusuXmx0fdveLwrq','qxbWBhKGzML4igfUzcbYzwDYzxnZAw9UihrLC3q','CNvUswqGAxmGCMvXDwLYzwqU','u21HBgWGAxnVBgf0zwqGy2HHBMDLihnPz25HBhmGzgv0zwn0zwqU','mtHkD2HhCKO','ls1JywnOzwq','u0fwrsbHCMnOAxrLy3r1CMuGzgvJAxnPB25ZigfUzcbMAw5KAw5NCYb3AxrOihjLBwvTyMvYlG','qMfZzsbJAgvJA291DcbTDxn0igjLignSzwfUigjLzM9YzsbJCMvHDgLUzYbHihDVCMT0CMvLlG','v09ss1rsruvFvu5nrvjhruq','uKvrvuLsrurFu0TjteXFtuLtu0LorW','DMfSAwrHDgvuyxnR','BMf0AxzLlxDVCMT0CMvL','y2XVC2vtEw5J','yMfZzvjLzG','r0Lux0fmuKvbrfLFsu5jveLbteLAruq','uMvWB3nPDg9YEsbPCYbUB3qGy2XLyw4Gywz0zxiGDgHLigjHC2vSAw5LignVBw1PDc4','qwn0AxzLihbPCgvSAw5LCYbJyw5UB3qGyMuGBwLNCMf0zwqGzhvYAw5NieDPDcbPBML0AwfSAxPHDgLVBI4','ls1Szwz0lxjPz2H0','DgrKlwXVB3a','DhjPBq','CMvHC29U','CNvUCW','kg5Vihn1Bw1HCNKP','Aw5PDgLHBgL6zuDPDezYB21qCMv2Awv3','lcbUB3qGywn0AxzLlG','zgLNzxn0','y29UzMLYBwvK','q2HLy2TWB2LUDcbZDgf0DxmGBxvZDcbIzsaIy29TCgXLDgvKiI4','zMLSDgvY','BwLNCMf0zvn0yxrLuM9VDa','BgLZDfj1BNngCM9TuM9VDa','qNjHBMnOigLZig5VDcbTzxjNzwqGAw50BYb0AguGCMvJB3jKzwqGyMfZzsbICMfUy2GU','lMfNzw50CW','vMvYAwz5ihnTywXSigLZB2XHDgvKihnJB3bL','Aw5JBhvKzxm','BwfPBG','l1nlsuXmlM1KigjLzM9YzsbZDgvWici','ugLWzwXPBMvnyw5Hz2vY','uhjVAMvJDcbPCYbHBhjLywr5igeGr2L0ihjLCg9ZAxrVCNKU','vefts19btfjfqurzx0fdveLwrq','CMfUzg9TqNL0zxm','C2HHmJu2','C2L6zq','y3vYCMvUDezPBgu','C3rYAw5NAwz5','CgXHBM5LzeLNBM9YzufKzgL0Aw9UCW','iIb3yxmGBM90igzVDw5KlG','ueLqruXjtKvFrevgsu5jveLptLm','C2v0q3vYCMvUDa','BwTKAxjtEw5J','A2LSBa','CgLWzwXPBMu','ls1ZAg93lwn1CNjLBNq','CMvHzezPBgvtEw5J','Aw5PDgLHBgL6Aw5N','v09ss1rsruvFuefusf9fweLtvfm','su5wquXjrf9svu5Fsuq','C3rHCNq','ueLqruXjtKvFtuLttufuq0G','mtGZndm1me9Jt0rnwq','q3jLyxrLihrYywnRAw5NigLZC3vLCW','D3jPDgvtDgf0zq','CM1tEw5J','zgLHz25VC2u','Dhj1BMm','Bg9JA1rPBwvVDxrnCW','BgvNywn5lq','su5wquXjrf9dsevds1bpsu5ux1nuqvrvuW','ugLWzwXPBMuGC3rHDguGy29WEsb0ExbLig1PC21HDgnOoIa','BwvTB3j5x2fJDgLVBG','q0Xfqu5vuf9dt05gsvjnqvrjt05FuKvrvuLsruq','ChjLDMLLD0DPDejVB3rZDhjHCa','yxb0lw1JCc1Hz2vUDa','r0Lux1bsrvzjrvDFrKfjteve','CMvTB3zLza','C3rYzxnZlxrLC3qTCgXHBG','lMXVy2TZ','D3jPDgvgAwXLu3LUyW','Ag90zML4','qNjHBMnOihbYzxnLCNzLzdOG','BgLZDa','C2XPy2u','q29TCgXLDguGB3iGy2fUy2vSigfJDgL2zsbWAxbLBgLUzxmGyMvMB3jLigLUAxrPywXPEMLUzYbhAxqU','Cgf0Aa','mJaYntm4nfLbCeXNwq','C3vNz2vZDgvKx3bPCgvSAw5L','C29Tzq','zgLMzG','CgLWzwXPBMuTC3rHDguUANnVBG','r0Lux1bsrvzjrvDFu1rbteu','AgfZtgvNywn5u3rHDgu','DxrMoa','D29YA3rYzwu','yxbWzw5KtgvKz2vY','Dg9ju09tDhjPBMC','u0fwrsbquKqGC2nVCguGyw5KigTLEsbYzxf1AxjLBwvUDhmGD2L0AcbYzw1LBwjLCI4','Dg9mB3DLCKnHC2u','yxnZAwDU','y3vYCMvUDc5QC29U','ueLqruXjtKvtx0fdveLwrv9evvjjtKDFr0Lux0Losvq','CMvMCMvZAfjLCg9ZAxrVCNLdB250zxH0','CgfYC2u','ndKZnJKYuwH1qwne','zg9TywLUx3nRAwXSCW','y29Kzq','C3rHDhvZ','u1rfuf9pvvrFt0zFt1jervi','BgvNywn5lw1Pz3jHDgLVBG','rg9JDw1LBNqGDgHLigzPEa','uhjVAMvJDcbMAwXLCYbJAgfUz2vKigfMDgvYihbYzxzPzxCUifjLCxvLC3qGysbUzxCGy29UzMLYBwf0Aw9UihrVA2vUlG','CMvHzhK','Dg9tDhjPBMC','z2L0ihDVCMT0CMvLigfKzcbMywLSzwqU','q2fUBM90ignHBgn1Bgf0zsbhAxqGyM9VDhn0CMfWihbYzxzPzxCU','A2v5CW','ugLWzwXPBMuGC3rHDguGy29WEsbOyxnOig1PC21HDgnOoIa','Bg9JA0zPBgu','DxnL','vgfZAYbTDxn0igjLigeGBg93zxjJyxnLignHBM9UAwnHBcbjrcb1C2LUzYbSzxr0zxjZlcbUDw1IzxjZlcbOExbOzw5ZlcbVCIb1BMrLCNnJB3jLCYaOBwf4idy0ks4','lMfNzw50CY9WAxbLBgLUzxmV','ls1JB3vUDa','v29YA3rYzwuGy29UDgfPBNmGDw5JB21TAxr0zwqGy2HHBMDLCY4','AxnmAw5RzwrxB3jRDhjLzq','uMv2Awv3igfYy2HPDgvJDhvYzq','mJiXntHfDNnUu3u','uLvox05pvf9gt1vora','vw5RBM93BIbWAxbLBgLUzsb0ExbLoIa','y2XHC3nPzNLszxf1zxn0','r0Lux1nftLnjveLwrv9gsuXfu19cte9ds0ve','ChvZAa','ChjVz3jLC3mUBwq','yNjHBMnO','C3bSAxq','D2LUzg93C0HPzgu','C25HChnOB3q','BwvKAxvT','C3rHDfn5BMm','sevbra','D2fPDa','uKvtrvrFq09orKLstufusu9ox1jfuvvjuKve','C3vJy2vZCW','Aw5PDa','C2TPBgXZ','C29YDa','z3jPBgWTBwu','y3jLyxrLv29YA3rYzwu','CMvJDxjZAxzL','Bg93','DgfZAY1ICMvHA2rVD24','D29YA3nWywnLugf0Aa','v09ss1rsruvFq09ou0vovf9srvfvsvjfra','su5wquXjrf9qsvbfteLorq','vgHPCYbYDw4GAxmGBM8GBg9Uz2vYihrOzsbJDxjYzw50ihj1BIbMB3iGDgHLihrHC2SU','zxHWBg9Yzv9JB2rLiezjuLnuigzVCIbJB2rLlIbNCMvWx3nLyxjJAcbptKXzig5VBI1JB2rLicHJB25MAwCVzg9JCY8Uzw52ks4GtM8Gz3jLCcbSB29WCY4','vgfZAYaI','iIbPCYbTAxnZAw5NlG','uNvUici','ls1Uyw1Llw9UBhK','rMX1DhrLCJOGC2vSzwn0ihrOzsb0yxnRlxnWzwnPzMLJiezSDxr0zxiGC2TPBgWU','v3jPDguGCMvNCMvZC2LVBIb0zxn0igfUzcbMAxG','ywn0AxzL','u0fwrsbYB290ignHDxnLigfUzcbYzxbYB2r1y3rPB24GC3rLChmGD2L0AcbYzw1LBwjLCI4','n25HALLrDG','BM9Uzq','CMvHBhbHDgHtEw5J','yxv0BW','zMvHDhvYzq','CMvTB3zLzef0','y29WEuzPBgvtEw5J','qNvNlwzPEcbZAwDUywXZigrLDgvJDgvKlG','zM9Yy2u','Dhj1zq','D2L0AeXVy2S','zxHWB3j0CW','D29YA3nWywnL','ywnXDwLYzuXVy2S','zw5ZDxjLuNvUDgLTzuLNBM9Yzq','iIWGCMvJzwL2zwqGiG','u0fwrsbPBxbSzw1LBNrHDgLVBIbKzwnPC2LVBNmGyw5KihrLC3qGCgf0DgvYBNmGD2L0AcbYzw1LBwjLCI4','q2fUBM90ihjLywqGr2L0igjVB3rZDhjHCcbWCMv2Awv3lG'];_0xdfc6=function(){return _0x104ab8;};return _0xdfc6();}const _0x593d7a={};_0x593d7a[_0x13bf8c(0x257)]=PipelineManager,_0x593d7a[_0x13bf8c(0x261)]=PIPELINE_DEFINITIONS,module[_0x13bf8c(0x169)]=_0x593d7a;
|
|
1
|
+
const _0x1a9389=_0x38b7;(function(_0x35df25,_0x5d9b88){const _0x1904e2=_0x38b7,_0x2bdd63=_0x35df25();while(!![]){try{const _0xde19e1=-parseInt(_0x1904e2(0x1fc))/0x1+-parseInt(_0x1904e2(0x2df))/0x2+-parseInt(_0x1904e2(0x20a))/0x3*(-parseInt(_0x1904e2(0x2c4))/0x4)+-parseInt(_0x1904e2(0x2fd))/0x5*(-parseInt(_0x1904e2(0x1f7))/0x6)+-parseInt(_0x1904e2(0x20f))/0x7+parseInt(_0x1904e2(0x22f))/0x8+parseInt(_0x1904e2(0x258))/0x9;if(_0xde19e1===_0x5d9b88)break;else _0x2bdd63['push'](_0x2bdd63['shift']());}catch(_0x4a70df){_0x2bdd63['push'](_0x2bdd63['shift']());}}}(_0x39cf,0x69e0b));const crypto=require(_0x1a9389(0x1b5)),fs=require('fs'),os=require('os'),path=require(_0x1a9389(0x1dd)),{spawnSync}=require(_0x1a9389(0x25b)),{Execution,DEFINITIONS:PIPELINE_DEFINITIONS_V3}=require(_0x1a9389(0x2cf)),TOOL_ROUTING=_0x1a9389(0x224),_0x3e48f6={};function _0x39cf(){const _0x37f760=['su5wquXjrf9dsevds1bpsu5ux1nuqvrvuW','Bw9Kzq','C2TPBgW','zMLSDgvY','rMX1DhrLCJOGC2vSzwn0ihrOzsb0yxnRlxnWzwnPzMLJiezSDxr0zxiGC2TPBgWU','DMfSAwrHDgvsDw5jza','v09ss1rsruvFqKftrv9cuKfoq0HFtuLtu0LorW','kg5Vihn1Bw1HCNKP','yxv0BW','zxHLy3v0Aw9U','zxHPC3rZu3LUyW','ls1Nzxq','y29UzMLYBwf0Aw9Uvg9Rzw4','cImJia','uMvXDwLYzwqGCgLWzwXPBMuGC2TPBgWGiG','u291CMnLihjLDgfPBMvKigf0ia','z3jPBgWTBwu','u1rfuf9pvvrFt0zFt1jervi','uLvox01ju01bveni','v29YA3rYzwuGy2XLyw51CcbYzxf1AxjLCYbJB25MAxjTpxrYDwuU','r0Lux0Lorevyx0zjteu','ls1Uyw1Llw9UBhK','DgfZAY1ICMvHA2rVD24','y29TCgXLDgvK','ywrK','Dg1WzgLY','ChjVz3jLC3mUBwq','AM9PBG','q2fUBM90ignHBgn1Bgf0zsbhAxqGyM9VDhn0CMfWihbYzxzPzxCU','D2L0AezPBgvuExbLCW','twLZC2LUzYbVCIbPBNzHBgLKihbPCgvSAw5LlG','zgvMAw5PDgLVBG','iIWGBM90ici','BMf0AxzLlxDVCMT0CMvL','zgLYBMfTzq','kg5VigXLz2fJEsbSzwrNzxiP','q2fUBM90ihjLywqGr2L0igjVB3rZDhjHCcbWCMv2Awv3lG','u1rbvevFtuLhuKfusu9ox1zfuKLgwv9gquLmruq','r2L0igLUAxrPywXPEMf0Aw9UigfUzcb3B3jRDhjLzsbJCMvHDgLVBIbYzxf1AxjLigrPCMvJDcb1C2vYignVBMzPCM1HDgLVBI4','mtqXmJy2nZLLwMD0rNi','CMvJDxjZAxzL','BgvKz2vYrMLSzq','y2HPBgrFChjVy2vZCW','DxnL','C29YDa','CMvMCMvZAfjLCg9ZAxrVCNLdB250zxH0','C2HHmJu2','y29UzMLN','v09ss1rsruvFvu5nrvjhruq','uNvUihvZzxmGCgLWzwXPBMuGiG','BwvTB3j5x2fJDgLVBG','ueLqruXjtKvFrevgsu5jveLptLnFvJm','DgfZAW','v2vIifvjoIaUywDLBNrZl3nRAwXSCY91As1ZDhLSzs1YDwXLCY9ts0Lmtc5Tza','Dg9mB3DLCKnHC2u','AxneAxjLy3rVCNK','C3rHCNrZv2L0Aa','ls1PCY1HBMnLC3rVCG','uNvUici','AxnmAw5RzwrxB3jRDhjLzq','zxHWB3j0CW','lI4Vy29Yzs9ZA2LSBc1Uyw1LCY5QCW','ls1PCY1PBNnPzguTD29YAY10CMvL','q0Xfqu5vuf9dt05gsvjnqvrjt05FuKvrvuLsruq','vgHPCYbYDw4GAxmGBM8GBg9Uz2vYihrOzsbJDxjYzw50ihj1BIbMB3iGDgHLihrHC2SU','C3rHDgvsB290','uLvox05pvf9bq1rjvKu','CNvUCW','DMfSAwrHDgvuyxnR','v09ss1rsruvFqKftrv9nsvntsu5h','CMvWBgfJzq','BgvNywn5u3rHDgvgAwXLugf0Aa','zgLNzxn0','y3jLyxrLzef0','uMvHzcaUywDLBNrZl3nRAwXSCY8','zM9Yy2u','Aw1WCM92zs1JB2rLyMfZzs1HCMnOAxrLy3r1CMu','CgvYC2LZDa','ChvZAa','rgvMyxvSDgLUzYb0BYb0AguGC2fMzxn0igz1BgWGCgLWzwXPBMuU','ms54ihrHC2SGC3rHDguGAw1WB3j0zwq','z2v0u3rHDhvZ','CgLK','DxbKyxrL','y2fUy2vSBgvK','u3rLCcbJB21WBgv0zwq6ia','B3bLBLn5BMm','Bg9JA1rPBwvVDxrnCW','C3rHCNq','y3btEw5J','u3LUDgHLC2L6zsbquKq','Aw5PDa','y3vYCMvUDc5QC29U','Ag90zML4','qwn0AxzLihbPCgvSAw5LCYbJyw5UB3qGyMuGBwLNCMf0zwqGzhvYAw5NieDPDcbPBML0AwfSAxPHDgLVBI4','C3rYAw5NAwz5','rMvHDhvYzsbezxzLBg9WBwvUDa','C3rHDhvZ','yxbWzw5KrMLSzvn5BMm','y2fUtxv0yxrL','zxjYB3i','lcbUB3qGywn0AxzLlG','uNvUigrVzxmGBM90ihvZzsbHig1HBMfNzwqGD29YA3rYzwuU','CMvHzgrPCLn5BMm','y3jLyxrLv29YA3rYzwu','v09ss1rsruvFqKftrv9esvjuwq','C3rHDguUANnVBG','C2TPBgXZ','C3vNz2vZDgvKx3bPCgvSAw5L','C2TPBgXFzgLYzwn0AxzL','z2vUzxjHDgvsDw5jza','CMvHzfj1BG','u0TjteWUBwq','C2XPy2u','ig11C3qGy29UDgfPBIbUB24Tzw1WDhKGC3rYAw5NCY4','ywnJzxb0yw5Jzq','z2L0ignVBMzPzYaTlwDSB2jHBcb1C2vYlMvTywLSicj5B3vazxHHBxbSzs5JB20I','CMvZzxq','u0fwrsbHCMnOAxrLy3r1CMuGzgvJAxnPB25ZigfUzcbMAw5KAw5NCYb3AxrOihjLBwvTyMvYlG','ugLWzwXPBMuGC3rHCNrLza','CMvHzen1CNjLBNq','zw52','lNrTCa','zxHWzwn0zwrFCgf0Aa','BwfW','Dhj1zq','Dw5SAw5Ru3LUyW','r0Lux0LosvrFq09orKLstufusu9ox1jfuvvjuKve','ueLqruXjtKvFu1rbvevFte9ds0ve','DxbKyxrLzef0','BgvKz2vY','CMvJB3zLCNLFy29TBwfUza','CMvZB2X2zvDVCMTZCgfJzq','BwvKAxvT','u2vUC2L0AxzLigzPBgvZihDVDwXKigjLignVBw1PDhrLzc4GqwrKihrOzw0GDg8GlMDPDgLNBM9YzsbHBMqGCMvXDwvZDcbHig5LDYbWCMv2Awv3lG','Agv4','D29YA0L0zw1Z','uMvWB3nPDg9YEsbPCYbUB3qGy2XLyw4Gywz0zxiGDgHLigjHC2vSAw5LignVBw1PDc4','CMv2lwXPC3q','CMvJB3zLCNLFy29TBwfUzhm','tevhqunzx1nuqvrfx0LovKfmsuq','vefts19srvfvsvjfra','u3rYzxnZlxrLC3qGCgXHBI9KzxnPz24','u0fwrsbYB290ignHDxnLigfUzcbYzxbYB2r1y3rPB24GC3rLChmGD2L0AcbYzw1LBwjLCI4','v09ss1rsruvFq1jfqvrfx0zbsuXfra','su5wquXjrf9qsvbfteLorq','iIbPCYbTAxnZAw5NlG','mJbiuwjRsMi','q29UzMLNDxjLieDPDcb1C2vYlM5HBwuGyw5KihvZzxiUzw1HAwWGyMvMB3jLignYzwf0Aw5NihrOzsbIyxnLBgLUzsbJB21TAxqU','vMvYAwz5ihnTywXSigLZB2XHDgvKihnJB3bL','BwTKAxjtEw5J','DMvYAwz5q29WAwvKvhjLzq','yxrVBwLJv3jPDgu','q2HLy2TWB2LUDcbZDgf0DxmGBxvZDcbIzsaIy29TCgXLDgvKiI4','yMfZzujYyw5JAa','zw5ZDxjLuNvUDgLTzuLNBM9Yzq','C3vNz2vZDfrHC2S','C3rHCNrLzef0','lI4Vy29Yzs9LEgvJDxrPB24','yNvNzML4','cLj1BJOG','tg9Hzcb0AguGBwf0y2HPBMCGzg9TywLUihnRAwXSigjLzM9YzsbJB2rPBMC6','C25HChnOB3qTzxzPzgvUy2u','q2fUBM90ignVBxbHCMuGDgHLihDVCMT0CMvLihDPDgHVDxqGAxrZihjLy29YzgvKigjHC2uGyNjHBMnOlG','DgvZDa','se9urKLyx1ndt1bfx1jfuvvjuKve','CMvTB3zLza','BwLNCMf0zuXLz2fJEvrHC2TeAxjLy3rVCMLLCW','z2L0ignVBMzPzYaTlwDSB2jHBcb1C2vYlM5HBwuGiLLVDxiGtMfTzsi','twLNCMf0zwqGzNjVBsbSzwDHy3KGC3rHDgu','z2L0q29TBw9UrgLY','sg90zML4ihnJB3bLigP1C3rPzMLJyxrPB24GBxvZDcbJB250ywLUigf0igXLyxn0ideWignOyxjHy3rLCNmU','ls1JywnOzwq','ugLWzwXPBMuGC3rHDguGy29WEsb0ExbLig1PC21HDgnOoIa','mta5ndGWmLLgwxrzwa','v3jPDguGCMvNCMvZC2LVBIb0zxn0igfUzcbMAxG','ls1NAxqTzgLY','CNvUswq','CNvUswqGBxvZDcbIzsbHihnLCNzLCI1Nzw5LCMf0zwqGCgLWzwXPBMuGCNvUieLelG','DgLTzw91Da','AxnhAxrszxbVC2L0B3j5','q3jLyxrLihzLCNrPy2fSlxnSAwnLigLZC3vLCW','C29Tzq','lI4U','D29YA3rYzwu','A2v5CW','yMfZzw5HBwu','iIb3yxmGBM90igzVDw5KigzVCIb0yxnRici','Dg9ju09tDhjPBMC','C3rYzxnZlxrLC3qTCgXHBG','lMfNzw50CY9WAxbLBgLUzxmV','yxrVBwLJv3jPDgvkC29U','v29YA3rYzwuGCgf0AcbHBhjLywr5igv4Axn0CZOG','uLvox0Lex1jfuvvjuKve','ic0G','BwfUywDLza','CMvTB3zLzef0','Aw5PDgLHBgL6zwq','BM9Uzq','y3vYCMvUDezPBgu','CMvXDwLYzwrtA2LSBevYCM9Y','zML4lwfUzc10zxn0','lMPZB24','yxbWzw5KtgvKz2vY','oti5nJvjD2jXvwm','ls13B3jRlxrYzwu','y3vYCMvUDa','Aw5JBhvKzxm','uhjVAMvJDcbPCYbHBhjLywr5igeGr2L0ihjLCg9ZAxrVCNKU','vw5RBM93BIb3B3jRC3bHy2uGBw9KztOG','q29TCgXLDguGB3iGy2fUy2vSigfJDgL2zsbWAxbLBgLUzxmGyMvMB3jLigLUAxrPywXPEMLUzYbhAxqU','CgfYC2u','ChjLDMLLD0DPDejVB3rZDhjHCa','C3rKzxjY','C25HChnOB3q','CMvZB2X2zq','r0Lux0LosvrFrKfjteve','q2fUy2vSBgvKigj5igv4CgXPy2L0ihjLCxvLC3qUieHPC3rVCNKGD2fZihbYzxnLCNzLzc4','uKvtrvrFq09orKLstufusu9ox1jfuvvjuKve','y29TCgXLDgvKu3rLChm','ChjKlwDLBG','rg9JDw1LBNqGDgHLigzPEa','CgLWzwXPBMu','BgLZDfj1BNngCM9TuM9VDa','zMvHDhvYzq','CMvKDwnL','ls1Szwz0lxjPz2H0','Aw5PDc5KzwzHDwX0qNjHBMnO','ueLqruXjtKvFtuLttufuq0G','uKvrvuLsrurFu0TjteXFtuLtu0LorW','r0Lux1bsrvzjrvDFrKfjteve','z2L0','uNvUigLZia','Aw5KzxG','BMfTzq','C3rHDgvgAwXL','CMvUyw1Lu3LUyW','BgvUz3rO','zgLHz25VC2u','y29UzMLKzw5Jzq','yMXVy2TLza','D3jPDgvtDgf0zq','v09ss1rsruvFq09ou0vovf9srvfvsvjfra','BgvNywn5lw1Pz3jHDgLVBG','uLvox05pvf9gt1vora','D2LUzg93C0HPzgu','y3DK','q2fUy2vSBgLUzYbHihj1BIbYzxf1AxjLCYbJB25MAxjTpxrYDwuU','y2XVC2vtEw5J','zgLMzG','rxHWzwn0zwqGC3rLCcaI','ls1JB3vUDa','uhjVAMvJDcbMAwXLCYbJAgfUz2vKigfMDgvYihbYzxzPzxCUifjLCxvLC3qGysbUzxCGy29UzMLYBwf0Aw9UihrVA2vUlG','l1nlsuXmlM1KigjLzM9YzsbZDgvWici','y2fUy2vSBgvKqxq','zg9TywLUx3nRAwXSCW','Bg93','tw9IAwXLifvjoIaUywDLBNrZl3nRAwXSCY9TB2jPBguTCNvSzxmVu0TjteWUBwq','y2XHC3nPzNLszxf1zxn0','cK5LEhqGC3rLCdOG','r0Lux1bsrvzjrvDFu1rbteu','u0fwrsbPBxbSzw1LBNrHDgLVBIbKzwnPC2LVBNmGyw5KihrLC3qGCgf0DgvYBNmGD2L0AcbYzw1LBwjLCI4','D29YA3nWywnL','BwLNCMf0Aw9Uv2fYBMLUz3m','DgfZA0rPCG','q2HHBgXLBMDLihrOzsbMAxGGzgvZAwDU','yxb0lw1JCc1Hz2vUDa','y3j5ChrV','y29Kzq','C3vJy2vZCW','CMvTB3zL','C3rVCfjLyxnVBG','r0Lux0LosvrjquXFq09ntuLux0zbsuXfra','C3rYAw5N','C3rKB3v0','BxvSDgK','CMvHC29U','Aw5PDgLHBgL6zuDPDa','iIWGCMvJzwL2zwqGiG','vw5RBM93BIbWAxbLBgLUzsb0ExbLoIa','lMfNzw50CW','D29YA3nWywnLugf0Aa','DMvYAwzPy2f0Aw9Ux2XLDMvS','v09ss19jtL9gteLhsfq','D2L0AeXVy2S','zxjYB3jpBKv4Axn0','C3rHDfn5BMm','iIbHBhjLywr5igHHCYbHBIbHy3rPDMuGCNvUlG','DgrKlwXVB3a','Dg9tDhjPBMC','BwTKDgvTCfn5BMm','yxb0lW','vgfZAYbTDxn0igjLigeGBg93zxjJyxnLignHBM9UAwnHBcbjrcb1C2LUzYbSzxr0zxjZlcbUDw1IzxjZlcbOExbOzw5ZlcbVCIb1BMrLCNnJB3jLCYaOBwf4idy0ks4','C2L6zq','BwLNCMf0zuXLz2fJEvn0yxrLCW','y2XLyw51CfDVCMTZCgfJzq','yMfZzvjLzG','DxnLCI5LBwfPBa','yNjHBMnOrgvSzxrLza','u0fwrsbquKqGC2nVCguGyw5KigTLEsbYzxf1AxjLBwvUDhmGD2L0AcbYzw1LBwjLCI4','qNvNiezPEa','C2v0q3vYCMvUDa','DhjPBq','CMvHBhbHDgHtEw5J','r2L0igLUAxrPywXPEMf0Aw9UigfUzcbHigjHC2vSAw5LignVBw1PDcbYzxf1AxjLigrPCMvJDcb1C2vYignVBMzPCM1HDgLVBI4','lM1Pz3jHDgLVBNm','tM8GBwfUywDLzcb3B3jRDhjLzsbPCYbHDMfPBgfIBguGzM9YignSzwfUDxaU','Cgf0Aa','r0Lux0fmuKvbrfLFsu5jveLbteLAruq','AgfZtgvNywn5u3rHDgu','v09ss1rsruvFuefusf9fweLtvfm','BwLNCMf0zuXLz2fJEvn0yxrL','v09ss1rsruvFreLsvfK','CMvHzePZB24','C3bSAxq','BM93','lMfNlwTPDc13B3jRDhjLzxm','zNn5BMntEw5J','su5wquXjrf9tq0HftufFvKvsu0LptG','ls1ZAg93lwn1CNjLBNq','DgrK','DMvYC2LVBNm','Aw5PDgLHBgL6zuDPDezYB21qCMv2Awv3','D3jPDgvgAwXLu3LUyW','Aw1WCM92zs1HCMnOAxrLy3r1CMu','ls1NAxqTy29TBw9UlwrPCG','C2nOzw1HvMvYC2LVBG','y3jLyxrLsgfZAa','DxrMoa','CMvJB3zLCG','uMvWB3nPDg9YEsbOyxmGBM8GyMfZzsbJB21TAxqU','r0Lux1nftLnjveLwrv9gsuXfu19cte9ds0ve','ueLqruXjtKvtx0fdveLwrv9evvjjtKDFr0Lux0Losvq','mtuWCuPWEevc','yNjHBMnO','Aw5PDgLHBgL6zq','v09ss1rsruvFtK9ux01btKfhruq','BMv4Da','nZC2nZy0EwrWs1nY','BgLZDfj1BNm','qMfZzsbJAgvJA291DcbTDxn0igjLignSzwfUigjLzM9YzsbJCMvHDgLUzYbHihDVCMT0CMvLlG','BwvZC2fNzq','ChjLDMLLDW','CMv2lxbHCNnL','CMvHzezPBgvtEw5J','zM9YBwf0u3rHDhvZ','ywn0AxzL','y29UzMLYBwvK','BgLZDa','CNvUrgLY','BgvNywn5lxn1Bw1HCNK','CMfUzg9TqNL0zxm','ndK3nJDjthzXzKC','iYbqAxbLBgLUzsbSzwrNzxikcLrHC2S6ia','ls1IyxjL','lMXVy2S','CMvHzhK','ntu3otG1ng1rq2zkAq','C3rLChm','DMvYAwz5lxnJB3bL','yxnZAwDU','BxrPBwvnCW','uLvox1nusuXmx0fdveLwrq','ChjVAMvJDfbHDgG','C2TPBgXqAw5Z','u21HBgWGAxnVBgf0zwqGy2HHBMDLihnPz25HBhmGzgv0zwn0zwqU','v29YA3nWywnLoIa','CNvUr2L0','Cgf1C2vK','CgLWzwXPBMvZ','qNjHBMnOihbYzxnLCNzLzdOG','u0fwrsbKzxnPz24GzgvJAxnPB25ZigfUzcbJB25ZDhjHAw50CYb3AxrOihjLBwvTyMvYlG','uMv2Awv3igfYy2HPDgvJDhvYzq','D2fPDa','y29TBwL0','cLbPCgvSAw5LoIa','vefts19btfjfqurzx0fdveLwrq','Dg8TChjK','zxHWBg9Yzv9JB2rLiezjuLnuigzVCIbJB2rLlIbNCMvWx3nLyxjJAcbptKXzig5VBI1JB2rLicHJB25MAwCVzg9JCY8Uzw52ks4GtM8Gz3jLCcbSB29WCY4','zMLUza','CMvJB3jKvMvYAwzPy2f0Aw9U','iIb3yxmGBM90igzVDw5KlG','sevbra','qxbWBhKGzML4igfUzcbYzwDYzxnZAw9UihrLC3q','lMDPDgLNBM9Yzq','ls1WB3jJzwXHAw4','zw5KC1DPDgG','r0Lux0Leru5usvrzx1jfuvvjuKve','Bg9JA0zPBgu','mZuWmdq4ohDjC0T4ta','CgLWzwXPBMuTC3rHDguUANnVBG'];_0x39cf=function(){return _0x37f760;};return _0x39cf();}_0x3e48f6['grill-me']=_0x1a9389(0x21d),_0x3e48f6[_0x1a9389(0x223)]=_0x1a9389(0x1d5),_0x3e48f6[_0x1a9389(0x31f)]=_0x1a9389(0x2c0),_0x3e48f6[_0x1a9389(0x1ea)]=_0x1a9389(0x1af),_0x3e48f6['improve-architecture']=_0x1a9389(0x2a7);const MEMORY_TRIGGERS=_0x3e48f6,DOMAIN_SKILL_REMINDER=[_0x1a9389(0x2d2),_0x1a9389(0x266),_0x1a9389(0x1ab),_0x1a9389(0x235)][_0x1a9389(0x24c)]('\x0a'),_0x3b7795={};_0x3b7795['id']=_0x1a9389(0x241),_0x3b7795[_0x1a9389(0x31b)]=_0x1a9389(0x2bf),_0x3b7795['skill']='stress-test-plan';const _0x28b2b7={};_0x28b2b7['id']=_0x1a9389(0x223),_0x28b2b7[_0x1a9389(0x31b)]=_0x1a9389(0x28b),_0x28b2b7[_0x1a9389(0x233)]=_0x1a9389(0x30d);const _0x3de312={};_0x3de312['id']='to-issues',_0x3de312[_0x1a9389(0x31b)]=_0x1a9389(0x2e6),_0x3de312[_0x1a9389(0x233)]=_0x1a9389(0x247);const _0x35c218={};_0x35c218['id']=_0x1a9389(0x1ea),_0x35c218['name']='Implement\x20test-first',_0x35c218['skill']=_0x1a9389(0x1ca);const _0x5ba06b={};_0x5ba06b['id']='improve-architecture',_0x5ba06b[_0x1a9389(0x31b)]=_0x1a9389(0x21e),_0x5ba06b[_0x1a9389(0x233)]=_0x1a9389(0x27d);const _0x4953c9={};_0x4953c9[_0x1a9389(0x31b)]=_0x1a9389(0x291),_0x4953c9['steps']=[_0x3b7795,_0x28b2b7,_0x3de312,_0x35c218,_0x5ba06b];const _0x242948={};_0x242948['id']=_0x1a9389(0x31f),_0x242948[_0x1a9389(0x31b)]='Diagnose\x20and\x20reproduce',_0x242948[_0x1a9389(0x233)]='bug-diagnostics';const _0x3f4ded={};_0x3f4ded['id']=_0x1a9389(0x241),_0x3f4ded[_0x1a9389(0x31b)]=_0x1a9389(0x1b3),_0x3f4ded['skill']=_0x1a9389(0x2ee);const _0x168180={};_0x168180['id']='to-prd',_0x168180[_0x1a9389(0x31b)]=_0x1a9389(0x30e),_0x168180[_0x1a9389(0x233)]=_0x1a9389(0x30d);const _0x5f4fe9={};_0x5f4fe9['id']='to-issues',_0x5f4fe9[_0x1a9389(0x31b)]='Create\x20tracking\x20issues',_0x5f4fe9[_0x1a9389(0x233)]='task-breakdown';const _0x33a7c7={};_0x33a7c7['id']=_0x1a9389(0x1ea),_0x33a7c7[_0x1a9389(0x31b)]=_0x1a9389(0x2e0),_0x33a7c7[_0x1a9389(0x233)]=_0x1a9389(0x1ca);const _0x3be966={};_0x3be966[_0x1a9389(0x31b)]=_0x1a9389(0x1d6),_0x3be966[_0x1a9389(0x210)]=[_0x242948,_0x3f4ded,_0x168180,_0x5f4fe9,_0x33a7c7];const _0x4edf39={};_0x4edf39['id']=_0x1a9389(0x211),_0x4edf39['name']=_0x1a9389(0x2c6),_0x4edf39[_0x1a9389(0x233)]=null;const _0x52a1b2={};_0x52a1b2['id']=_0x1a9389(0x2fa),_0x52a1b2['name']=_0x1a9389(0x229),_0x52a1b2['skill']=_0x1a9389(0x1ca);const _0x529eba={};_0x529eba['name']='Hotfix',_0x529eba[_0x1a9389(0x210)]=[_0x4edf39,_0x52a1b2];const _0x5b8eb8={};_0x5b8eb8[_0x1a9389(0x311)]=_0x4953c9,_0x5b8eb8[_0x1a9389(0x2d0)]=_0x3be966,_0x5b8eb8['hotfix']=_0x529eba;const PIPELINE_DEFINITIONS=_0x5b8eb8,TASK_PATTERN=/^[a-z0-9](?:[a-z0-9_-]{0,62}[a-z0-9])?$/,RUN_PATTERN=/^\d{8}T\d{6}Z-[a-f0-9]{8}$/,SENSITIVE_PATTERNS=[/(?:^|\/)\.env(?:\..+)?$/i,/(?:^|\/)(?:\.npmrc|\.netrc|\.pypirc|\.git-credentials)$/i,/(?:^|\/)\.aws\/credentials$/i,/(?:^|\/)\.config\/gcloud\/(?:application_default_credentials\.json|credentials\.db)$/i,/(?:^|\/)(?:id_rsa|id_ed25519)$/i,/\.(?:pem|key|p12|pfx)$/i,/(?:^|\/)(?:credentials|service-account)[^/]*\.json$/i],SENSITIVE_CONTENT_PATTERNS=[/(?:^|\n)\s*(?:_authToken|npm_[A-Za-z0-9_]*token)\s*=/i,/-----BEGIN [A-Z ]*PRIVATE KEY-----/,/(?:aws_secret_access_key|client_secret)\s*[=:]/i];function error(_0x2aebc7,_0x5c0e42,_0x1210fd={}){const _0x3ca8={'success':![],'code':_0x2aebc7,'error':_0x5c0e42,..._0x1210fd};return _0x3ca8;}function normalizePath(_0x2ae436){const _0x438177=_0x1a9389;try{return fs[_0x438177(0x1d9)](_0x2ae436);}catch{return path[_0x438177(0x308)](_0x2ae436);}}function _0x38b7(_0x110055,_0x38e1a4){_0x110055=_0x110055-0x19d;const _0x39cf0a=_0x39cf();let _0x38b7ec=_0x39cf0a[_0x110055];if(_0x38b7['yhEdIc']===undefined){var _0x5d5ea4=function(_0x305c79){const _0x548789='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3e48f6='',_0x3b7795='';for(let _0x28b2b7=0x0,_0x3de312,_0x35c218,_0x5ba06b=0x0;_0x35c218=_0x305c79['charAt'](_0x5ba06b++);~_0x35c218&&(_0x3de312=_0x28b2b7%0x4?_0x3de312*0x40+_0x35c218:_0x35c218,_0x28b2b7++%0x4)?_0x3e48f6+=String['fromCharCode'](0xff&_0x3de312>>(-0x2*_0x28b2b7&0x6)):0x0){_0x35c218=_0x548789['indexOf'](_0x35c218);}for(let _0x4953c9=0x0,_0x242948=_0x3e48f6['length'];_0x4953c9<_0x242948;_0x4953c9++){_0x3b7795+='%'+('00'+_0x3e48f6['charCodeAt'](_0x4953c9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b7795);};_0x38b7['OQzkuv']=_0x5d5ea4,_0x38b7['YIaPNa']={},_0x38b7['yhEdIc']=!![];}const _0x3d643e=_0x39cf0a[0x0],_0xc36efc=_0x110055+_0x3d643e,_0xb9fa15=_0x38b7['YIaPNa'][_0xc36efc];return!_0xb9fa15?(_0x38b7ec=_0x38b7['OQzkuv'](_0x38b7ec),_0x38b7['YIaPNa'][_0xc36efc]=_0x38b7ec):_0x38b7ec=_0xb9fa15,_0x38b7ec;}function sleep(_0x314bdb){const _0x54b883=_0x1a9389;Atomics[_0x54b883(0x21f)](new Int32Array(new SharedArrayBuffer(0x4)),0x0,0x0,_0x314bdb);}class PipelineManager{constructor(_0x320db7,_0x24e627={}){const _0x4a5f57=_0x1a9389;this[_0x4a5f57(0x215)]=normalizePath(_0x320db7),this['env']=_0x24e627['env']||process.env,this[_0x4a5f57(0x1e5)]=_0x24e627[_0x4a5f57(0x1e5)]||(()=>new Date()),this[_0x4a5f57(0x209)]=_0x24e627['randomBytes']||crypto['randomBytes'],this[_0x4a5f57(0x288)]=_0x24e627['lockTimeoutMs']||0x7d0,this[_0x4a5f57(0x1b1)]=[],this[_0x4a5f57(0x23a)]=new Execution(this),this[_0x4a5f57(0x25e)](),this[_0x4a5f57(0x1d0)]();}static['suggestTask'](_0xc44068){const _0x4c467f=_0x1a9389;if(typeof _0xc44068!==_0x4c467f(0x1bb))return'';return _0xc44068[_0x4c467f(0x267)]()[_0x4c467f(0x1d8)]()['replace'](/[^a-z0-9_-]+/g,'-')['replace'](/^[^a-z0-9]+|[^a-z0-9]+$/g,'')[_0x4c467f(0x2a2)](0x0,0x40);}static[_0x1a9389(0x275)](_0x564c1a){const _0x58bccd=_0x1a9389;if(typeof _0x564c1a!==_0x58bccd(0x1bb)||!_0x564c1a[_0x58bccd(0x1d8)]())return error(_0x58bccd(0x2be),'A\x20canonical\x20task\x20ID\x20is\x20required.');if(_0x564c1a!==_0x564c1a['trim']()||!TASK_PATTERN['test'](_0x564c1a))return error('INVALID_TASK_ID',_0x58bccd(0x1ce),{'suggested_task':PipelineManager[_0x58bccd(0x2cd)](_0x564c1a)});return null;}static[_0x1a9389(0x236)](_0x5172ba){const _0x10bb6a=_0x1a9389;if(typeof _0x5172ba!==_0x10bb6a(0x1bb)||!RUN_PATTERN['test'](_0x5172ba))return error('INVALID_RUN_ID',_0x10bb6a(0x2e3));return null;}['runGit'](_0x118284,_0x36e0a0={}){const _0x2d60ec=_0x1a9389,_0x12710f={};_0x12710f[_0x2d60ec(0x1a0)]=_0x36e0a0[_0x2d60ec(0x1a0)]||this[_0x2d60ec(0x215)],_0x12710f[_0x2d60ec(0x2aa)]={...this[_0x2d60ec(0x2aa)],..._0x36e0a0[_0x2d60ec(0x2aa)]||{}},_0x12710f['encoding']=_0x2d60ec(0x1f2),_0x12710f[_0x2d60ec(0x19f)]=!![],_0x12710f[_0x2d60ec(0x2e4)]=_0x36e0a0['timeout']||0x7530;const _0x6791f3=spawnSync(_0x2d60ec(0x318),_0x118284,_0x12710f);return{'ok':!_0x6791f3[_0x2d60ec(0x295)]&&_0x6791f3['status']===0x0,'status':_0x6791f3[_0x2d60ec(0x292)],'stdout':(_0x6791f3[_0x2d60ec(0x1bc)]||'')[_0x2d60ec(0x1d8)](),'stderr':(_0x6791f3['stderr']||_0x6791f3[_0x2d60ec(0x295)]?.['message']||'')[_0x2d60ec(0x1d8)]()};}['refreshRepositoryContext'](){const _0x3cbae5=_0x1a9389,_0x3571fd=this[_0x3cbae5(0x219)]([_0x3cbae5(0x201),_0x3cbae5(0x26f)]);this[_0x3cbae5(0x2e5)]=_0x3571fd['ok']&&_0x3571fd[_0x3cbae5(0x1bc)]===_0x3cbae5(0x2ae),this[_0x3cbae5(0x2db)]=null;if(this[_0x3cbae5(0x2e5)]){const _0x1e8278=this[_0x3cbae5(0x219)]([_0x3cbae5(0x201),_0x3cbae5(0x1ef)]);_0x1e8278['ok']&&(this[_0x3cbae5(0x2db)]=normalizePath(path[_0x3cbae5(0x308)](this[_0x3cbae5(0x215)],_0x1e8278['stdout'])));}this['stateRoot']=this[_0x3cbae5(0x2db)]?path[_0x3cbae5(0x24c)](this['gitCommonDir'],_0x3cbae5(0x1b4),_0x3cbae5(0x21b)):path[_0x3cbae5(0x24c)](this[_0x3cbae5(0x215)],_0x3cbae5(0x1c2),'pipelines'),this['legacyStateFilePath']=path[_0x3cbae5(0x24c)](this[_0x3cbae5(0x215)],'.agents',_0x3cbae5(0x230));}[_0x1a9389(0x29f)](){const _0x5ed099=_0x1a9389,_0x316dd2=this[_0x5ed099(0x1e5)]()[_0x5ed099(0x2ed)]()['replace'](/[-:]/g,'')[_0x5ed099(0x277)](/\.\d{3}/,'');return _0x316dd2+'-'+this[_0x5ed099(0x209)](0x4)[_0x5ed099(0x1cb)](_0x5ed099(0x2b8));}['taskDir'](_0x488651){const _0x17800f=_0x1a9389;return path[_0x17800f(0x24c)](this['stateRoot'],_0x488651);}[_0x1a9389(0x207)](_0x78a10b,_0x4bfbda){const _0x31a9b9=_0x1a9389;return path[_0x31a9b9(0x24c)](this[_0x31a9b9(0x1b2)](_0x78a10b),'runs',_0x4bfbda);}[_0x1a9389(0x2f8)](_0x2d4b36){const _0x16bf7c=_0x1a9389;return path[_0x16bf7c(0x24c)](this[_0x16bf7c(0x1b2)](_0x2d4b36),_0x16bf7c(0x28d));}[_0x1a9389(0x31c)](_0x397069,_0x92049b){const _0x1576ae=_0x1a9389;return path['join'](this[_0x1576ae(0x207)](_0x397069,_0x92049b),_0x1576ae(0x29b));}[_0x1a9389(0x25a)](_0x548803,_0x2afa8c){const _0x229412=_0x1a9389;return path[_0x229412(0x24c)](this[_0x229412(0x207)](_0x548803,_0x2afa8c),_0x229412(0x24b));}[_0x1a9389(0x2c9)](_0x51b1b9,_0x20f004){const _0x11e28f=_0x1a9389,_0x41112f={};_0x41112f['recursive']=!![],fs[_0x11e28f(0x2c7)](path[_0x11e28f(0x253)](_0x51b1b9),_0x41112f);const _0x1eaef9=_0x51b1b9+'.'+process[_0x11e28f(0x283)]+'.'+this[_0x11e28f(0x209)](0x4)[_0x11e28f(0x1cb)](_0x11e28f(0x2b8))+_0x11e28f(0x2ab),_0x191370=fs[_0x11e28f(0x287)](_0x1eaef9,'wx');try{fs['writeFileSync'](_0x191370,_0x20f004,_0x11e28f(0x1f2)),fs[_0x11e28f(0x1e7)](_0x191370);}finally{fs[_0x11e28f(0x1a2)](_0x191370);}fs[_0x11e28f(0x31d)](_0x1eaef9,_0x51b1b9);}[_0x1a9389(0x2f0)](_0x3dd926,_0x2b7c33){const _0x1206bd=_0x1a9389;this[_0x1206bd(0x2c9)](_0x3dd926,JSON[_0x1206bd(0x290)](_0x2b7c33,null,0x2)+'\x0a');}[_0x1a9389(0x22e)](_0x3f86e7){const _0x1a56e6=_0x1a9389;return path[_0x1a56e6(0x24c)](this[_0x1a56e6(0x272)],'.locks',_0x3f86e7+_0x1a56e6(0x20d));}['acquireLock'](_0x5c0b13){const _0x53ccd5=_0x1a9389,_0x429695=this[_0x53ccd5(0x22e)](_0x5c0b13),_0x6d629={};_0x6d629[_0x53ccd5(0x259)]=!![],fs[_0x53ccd5(0x2c7)](path[_0x53ccd5(0x253)](_0x429695),_0x6d629);const _0x45f2ff=Date[_0x53ccd5(0x1e5)]();while(Date[_0x53ccd5(0x1e5)]()-_0x45f2ff<=this[_0x53ccd5(0x288)]){try{const _0x34f480=fs[_0x53ccd5(0x287)](_0x429695,'wx');return fs[_0x53ccd5(0x1ed)](_0x34f480,JSON['stringify']({'pid':process['pid'],'createdAt':Date[_0x53ccd5(0x1e5)]()})),fs[_0x53ccd5(0x1a2)](_0x34f480),()=>{const _0x4195f8=_0x53ccd5;try{fs[_0x4195f8(0x2af)](_0x429695);}catch{}};}catch(_0x3d9abc){if(_0x3d9abc['code']!=='EEXIST')throw _0x3d9abc;try{const _0x28535e=JSON['parse'](fs[_0x53ccd5(0x202)](_0x429695,_0x53ccd5(0x1f2)));let _0x912376=!![];try{process['kill'](_0x28535e[_0x53ccd5(0x283)],0x0);}catch{_0x912376=![];}if(!_0x912376&&Date[_0x53ccd5(0x1e5)]()-_0x28535e[_0x53ccd5(0x27a)]>this[_0x53ccd5(0x288)]){fs[_0x53ccd5(0x2af)](_0x429695);continue;}}catch{try{const _0x6ecec9=Date[_0x53ccd5(0x1e5)]()-fs[_0x53ccd5(0x1c8)](_0x429695)['mtimeMs'];if(_0x6ecec9>this[_0x53ccd5(0x288)]){fs[_0x53ccd5(0x2af)](_0x429695);continue;}}catch{}}sleep(0x14);}}const _0x290e6d={};_0x290e6d[_0x53ccd5(0x1b6)]='PIPELINE_STATE_LOCKED';throw Object[_0x53ccd5(0x212)](new Error('Pipeline\x20state\x20is\x20locked\x20for\x20task\x20\x22'+_0x5c0b13+'\x22.'),_0x290e6d);}[_0x1a9389(0x1c6)](_0x6b86d6,_0x449854){const _0x11524c=_0x1a9389;let _0x37a090;try{return _0x37a090=this['acquireLock'](_0x6b86d6),_0x449854();}catch(_0x1bf75a){if(_0x1bf75a[_0x11524c(0x1b6)]===_0x11524c(0x2b1))return error(_0x1bf75a['code'],_0x1bf75a[_0x11524c(0x1ff)]);throw _0x1bf75a;}finally{if(_0x37a090)_0x37a090();}}[_0x1a9389(0x1df)](){const _0x4cbac0=_0x1a9389;if(fs[_0x4cbac0(0x23b)](this[_0x4cbac0(0x278)]))return!![];const _0xf0dc7d=new Set([path[_0x4cbac0(0x24c)](this[_0x4cbac0(0x215)],_0x4cbac0(0x1c2),_0x4cbac0(0x21b)),this[_0x4cbac0(0x272)]]);for(const _0x1a5a67 of _0xf0dc7d){if(!fs[_0x4cbac0(0x23b)](_0x1a5a67))continue;const _0x46721c={};_0x46721c[_0x4cbac0(0x24e)]=!![];if(fs['readdirSync'](_0x1a5a67,_0x46721c)[_0x4cbac0(0x2e7)](_0x4432f8=>_0x4432f8[_0x4cbac0(0x268)]()&&!_0x4432f8[_0x4cbac0(0x31b)][_0x4cbac0(0x269)]('.')&&fs[_0x4cbac0(0x23b)](path[_0x4cbac0(0x24c)](_0x1a5a67,_0x4432f8['name'],'state.json'))))return!![];}return![];}[_0x1a9389(0x1d0)](){const _0x4653a0=_0x1a9389;if(!this[_0x4653a0(0x1df)]())return;const _0x14fa8=this['acquireLock'](_0x4653a0(0x19d));try{this[_0x4653a0(0x1e1)](),this[_0x4653a0(0x2d8)]();}finally{_0x14fa8();}}['readJson'](_0x3486c){const _0x520b01=_0x1a9389;try{return JSON['parse'](fs[_0x520b01(0x202)](_0x3486c,_0x520b01(0x1f2)));}catch{return null;}}[_0x1a9389(0x2a9)](_0x2e3692){const _0x3bab51=_0x1a9389,_0x5e6d21=this[_0x3bab51(0x1e3)](this[_0x3bab51(0x2f8)](_0x2e3692));if(!_0x5e6d21?.[_0x3bab51(0x2e2)])return null;return this['readRun'](_0x2e3692,_0x5e6d21[_0x3bab51(0x2e2)]);}[_0x1a9389(0x2a0)](_0x49fe47,_0x22bd2f){const _0x29da38=_0x1a9389,_0x1560f3=this[_0x29da38(0x23a)][_0x29da38(0x1f3)](_0x49fe47,_0x22bd2f,this['readJson'](this[_0x29da38(0x31c)](_0x49fe47,_0x22bd2f)));return _0x1560f3?.[_0x29da38(0x1f0)]===0x3&&(this[_0x29da38(0x2f0)](this[_0x29da38(0x31c)](_0x49fe47,_0x22bd2f),_0x1560f3),this[_0x29da38(0x23a)][_0x29da38(0x2b3)](_0x1560f3)),_0x1560f3;}['writeState'](_0x5c3795,{setCurrent:setCurrent=![]}={}){const _0x181d19=_0x1a9389;_0x5c3795[_0x181d19(0x2b2)]=this['now']()[_0x181d19(0x2ed)]();if(_0x5c3795[_0x181d19(0x1f0)]===0x3)this[_0x181d19(0x23a)][_0x181d19(0x27e)](_0x5c3795);this[_0x181d19(0x2f0)](this[_0x181d19(0x31c)](_0x5c3795[_0x181d19(0x265)],_0x5c3795[_0x181d19(0x2e2)]),_0x5c3795);if(_0x5c3795['schemaVersion']===0x3)this[_0x181d19(0x23a)][_0x181d19(0x2b3)](_0x5c3795);setCurrent&&this[_0x181d19(0x2f0)](this[_0x181d19(0x2f8)](_0x5c3795[_0x181d19(0x265)]),{'task':_0x5c3795[_0x181d19(0x265)],'runId':_0x5c3795[_0x181d19(0x2e2)],'updatedAt':_0x5c3795[_0x181d19(0x2b2)]});}['appendLedger'](_0xf8340,_0x1317cf,_0x5205a){const _0x5ef631=_0x1a9389;if(_0xf8340['schemaVersion']===0x3)return this[_0x5ef631(0x23a)]['ledger'](_0xf8340);const _0x13664b=this[_0x5ef631(0x25a)](_0xf8340['task'],_0xf8340[_0x5ef631(0x2e2)]);let _0x51f712=fs[_0x5ef631(0x23b)](_0x13664b)?fs[_0x5ef631(0x202)](_0x13664b,'utf8'):'';!_0x51f712&&(_0x51f712=_0x5ef631(0x20b)+_0xf8340[_0x5ef631(0x265)]+_0x5ef631(0x2d1)+_0xf8340[_0x5ef631(0x2e2)]+_0x5ef631(0x221)+_0xf8340[_0x5ef631(0x30f)]+'\x0a'),_0x51f712+=_0x5ef631(0x23e)+this['now']()['toISOString']()+_0x5ef631(0x2f3)+_0x1317cf+'\x0a\x0a'+_0x5205a+'\x0a',this['atomicWrite'](_0x13664b,_0x51f712);}['requiredSkillError'](_0x1afc2e,_0x19ea2f=this[_0x1a9389(0x215)]){const _0x339c04=_0x1a9389,_0x4a9a09=[path[_0x339c04(0x24c)](_0x19ea2f,_0x339c04(0x1c2),_0x339c04(0x29c),_0x1afc2e,_0x339c04(0x2a1)),path['join'](this['projectPath'],_0x339c04(0x1c2),_0x339c04(0x29c),_0x1afc2e,'SKILL.md')],{SKILL_NAME_MAPPING:_0x434eaf,CANONICAL_SKILL_SOURCES:_0xccc093}=require(_0x339c04(0x26e)),_0x2f1626=_0xccc093[_0x1afc2e]||Object['keys'](_0x434eaf)[_0x339c04(0x225)](_0x535298=>_0x434eaf[_0x535298]===_0x1afc2e);if(_0x2f1626)_0x4a9a09[_0x339c04(0x27f)](path['join'](this[_0x339c04(0x215)],_0x339c04(0x1c2),'skills',_0x2f1626,'SKILL.md'));const _0x13a274=_0x4a9a09[_0x339c04(0x225)](_0x39ddd6=>fs[_0x339c04(0x23b)](_0x39ddd6));if(_0x13a274)return null;const _0x50da7c={};return _0x50da7c[_0x339c04(0x2ac)]=_0x4a9a09[0x0],_0x50da7c[_0x339c04(0x2b4)]='npx\x20apt-mcp-agent-setup\x20update\x20--project\x20\x22'+this[_0x339c04(0x215)]+'\x22',error(_0x339c04(0x316),_0x339c04(0x23f)+_0x1afc2e+_0x339c04(0x2c3),_0x50da7c);}[_0x1a9389(0x26c)](){const _0x1ee7e4=_0x1a9389;if(!this[_0x1ee7e4(0x2e5)])return![];const _0xfec576=this[_0x1ee7e4(0x219)]([_0x1ee7e4(0x201),_0x1ee7e4(0x2e1)]);if(!_0xfec576['ok']||!this[_0x1ee7e4(0x2db)])return![];const _0x3e4af7=normalizePath(path[_0x1ee7e4(0x308)](this[_0x1ee7e4(0x215)],_0xfec576[_0x1ee7e4(0x1bc)]));if(_0x3e4af7===this[_0x1ee7e4(0x2db)])return![];const _0x244925=this[_0x1ee7e4(0x219)]([_0x1ee7e4(0x2e9),_0x1ee7e4(0x206),_0x1ee7e4(0x22b)]);if(!_0x244925['ok'])return![];const _0x48fc7c=normalizePath(this[_0x1ee7e4(0x215)])[_0x1ee7e4(0x267)]();return _0x244925['stdout'][_0x1ee7e4(0x1e4)](/\r?\n/)[_0x1ee7e4(0x234)](_0x4b7e28=>_0x4b7e28[_0x1ee7e4(0x269)]('worktree\x20'))['some'](_0x1e1728=>normalizePath(_0x1e1728['slice'](0x9))[_0x1ee7e4(0x267)]()===_0x48fc7c);}[_0x1a9389(0x305)](){const _0x569f8f=_0x1a9389;if(this['isGitRepository'])return error(_0x569f8f(0x1de),_0x569f8f(0x301));const _0x3c729c=fs[_0x569f8f(0x1cc)](path['join'](os[_0x569f8f(0x24a)](),'apt-mcp-git-preview-'));try{const _0x59c228=path[_0x569f8f(0x24c)](_0x3c729c,_0x569f8f(0x318)),_0x44d74f=path[_0x569f8f(0x24c)](_0x3c729c,_0x569f8f(0x31a)),_0x136388={};_0x136388[_0x569f8f(0x1a0)]=_0x3c729c;const _0x1192a1=this[_0x569f8f(0x219)]([_0x569f8f(0x28c),_0x569f8f(0x20c),_0x59c228],_0x136388);if(!_0x1192a1['ok'])return error('GIT_PREVIEW_FAILED',_0x1192a1[_0x569f8f(0x306)]||'Cannot\x20initialize\x20temporary\x20Git\x20index.');const _0x198445={};_0x198445[_0x569f8f(0x245)]=_0x44d74f;const _0x33f460=_0x198445,_0x4e35b7=this[_0x569f8f(0x219)](['--git-dir',_0x59c228,'--work-tree',this[_0x569f8f(0x215)],'add','-A'],{'cwd':this['projectPath'],'env':_0x33f460});if(!_0x4e35b7['ok'])return error(_0x569f8f(0x317),_0x4e35b7[_0x569f8f(0x306)]||_0x569f8f(0x24d));const _0x4dd478=this['runGit']([_0x569f8f(0x2e1),_0x59c228,_0x569f8f(0x2fe),this['projectPath'],_0x569f8f(0x1a3),_0x569f8f(0x2dd),'--name-only','-z'],{'cwd':this[_0x569f8f(0x215)],'env':_0x33f460});if(!_0x4dd478['ok'])return error(_0x569f8f(0x317),_0x4dd478[_0x569f8f(0x306)]||_0x569f8f(0x255));const _0x4f99ff=_0x4dd478[_0x569f8f(0x1bc)]?_0x4dd478[_0x569f8f(0x1bc)][_0x569f8f(0x1e4)]('\x00')['filter'](Boolean)[_0x569f8f(0x2ad)](_0x1fb71b=>_0x1fb71b[_0x569f8f(0x277)](/\\/g,'/'))[_0x569f8f(0x25d)]():[],_0x20fab9=_0x4f99ff['map'](_0x39526c=>{const _0x44e916=_0x569f8f,_0x4dea25=path[_0x44e916(0x24c)](this[_0x44e916(0x215)],_0x39526c),_0x4523e0=fs['statSync'](_0x4dea25),_0x4ef534=crypto['createHash'](_0x44e916(0x25f))[_0x44e916(0x284)](fs[_0x44e916(0x202)](_0x4dea25))['digest'](_0x44e916(0x2b8));return{'path':_0x39526c,'size':_0x4523e0[_0x44e916(0x1cf)],'mtimeMs':Math['trunc'](_0x4523e0[_0x44e916(0x213)]),'sha256':_0x4ef534};}),_0x4e18de=_0x4f99ff['filter'](_0xb2c99e=>{const _0x1f5843=_0x569f8f,_0x3d08b5=/\.env\.example$/i[_0x1f5843(0x2d5)](_0xb2c99e);if(!_0x3d08b5&&SENSITIVE_PATTERNS[_0x1f5843(0x2e7)](_0x3b32d5=>_0x3b32d5[_0x1f5843(0x2d5)](_0xb2c99e)))return!![];const _0x5f09f9=fs[_0x1f5843(0x202)](path[_0x1f5843(0x24c)](this[_0x1f5843(0x215)],_0xb2c99e),_0x1f5843(0x1f2));return SENSITIVE_CONTENT_PATTERNS[_0x1f5843(0x2e7)](_0xb99857=>_0xb99857[_0x1f5843(0x2d5)](_0x5f09f9));}),_0x72eb92=_0x20fab9[_0x569f8f(0x234)](_0x52062c=>_0x52062c[_0x569f8f(0x1cf)]>0xa*0x400*0x400)[_0x569f8f(0x2ad)](_0x1374fa=>_0x1374fa['path']),_0x37dbf8=[_0x569f8f(0x2ef)],_0x45fc42={};_0x45fc42[_0x569f8f(0x307)]=_0x20fab9,_0x45fc42['plannedIgnoreAdditions']=_0x37dbf8;const _0x1ab7a4=crypto[_0x569f8f(0x1f1)](_0x569f8f(0x25f))['update'](JSON[_0x569f8f(0x290)](_0x45fc42))[_0x569f8f(0x279)](_0x569f8f(0x2b8));return{'success':![],'code':_0x4e18de['length']?_0x569f8f(0x1f5):_0x569f8f(0x2b0),'error':_0x4e18de[_0x569f8f(0x31e)]?_0x569f8f(0x2b7):_0x569f8f(0x1da),'confirmationToken':_0x1ab7a4,'fileCount':_0x4f99ff['length'],'totalBytes':_0x20fab9[_0x569f8f(0x312)]((_0xce5db5,_0x214c90)=>_0xce5db5+_0x214c90[_0x569f8f(0x1cf)],0x0),'files':_0x4f99ff,'sensitiveFiles':_0x4e18de,'largeFiles':_0x72eb92,'plannedIgnoreAdditions':_0x37dbf8};}finally{const _0xc99d52={};_0xc99d52['recursive']=!![],_0xc99d52[_0x569f8f(0x27c)]=!![],fs['rmSync'](_0x3c729c,_0xc99d52);}}[_0x1a9389(0x2cc)](){const _0x56b1d2=_0x1a9389,_0x22c9e9=path['join'](this[_0x56b1d2(0x215)],_0x56b1d2(0x22a)),_0x185052=_0x56b1d2(0x2ef),_0x613a4c=fs[_0x56b1d2(0x23b)](_0x22c9e9)?fs[_0x56b1d2(0x202)](_0x22c9e9,_0x56b1d2(0x1f2)):'',_0x3c722e=_0x613a4c[_0x56b1d2(0x1e4)](/\r?\n/)[_0x56b1d2(0x2ad)](_0x4c3577=>_0x4c3577[_0x56b1d2(0x1d8)]());if(_0x3c722e[_0x56b1d2(0x300)](_0x185052))return;const _0x30e2c0=_0x613a4c&&!_0x613a4c[_0x56b1d2(0x22c)]('\x0a')?'\x0a':'';fs[_0x56b1d2(0x293)](_0x22c9e9,''+_0x30e2c0+_0x185052+'\x0a',_0x56b1d2(0x1f2));}[_0x1a9389(0x1ec)](_0x3e4bfd){const _0x549ba4=_0x1a9389,_0x3c844c=this[_0x549ba4(0x305)]();if(_0x3c844c['code']===_0x549ba4(0x1f5))return _0x3c844c;if(_0x3c844c['confirmationToken']!==_0x3e4bfd){const _0xc481ac={};return _0xc481ac[_0x549ba4(0x200)]=_0x3c844c,error(_0x549ba4(0x1ae),_0x549ba4(0x1a6),_0xc481ac);}const _0x51dd3f=this[_0x549ba4(0x1fd)]()['filter'](_0x50d2be=>_0x50d2be[_0x549ba4(0x292)]===_0x549ba4(0x204)||_0x50d2be[_0x549ba4(0x292)]==='initializing');if(_0x51dd3f[_0x549ba4(0x31e)])return error(_0x549ba4(0x1f6),_0x549ba4(0x303));const _0x3987d5=this[_0x549ba4(0x219)](['config',_0x549ba4(0x23c),'user.name']),_0x292b64=this[_0x549ba4(0x219)]([_0x549ba4(0x260),'--get',_0x549ba4(0x1d3)]);if(!_0x3987d5['ok']||!_0x3987d5[_0x549ba4(0x1bc)]||!_0x292b64['ok']||!_0x292b64[_0x549ba4(0x1bc)]){const _0x5b3d88={};return _0x5b3d88[_0x549ba4(0x2bc)]=[_0x549ba4(0x2d9),_0x549ba4(0x2a5)],error(_0x549ba4(0x22d),_0x549ba4(0x2c5),_0x5b3d88);}const _0x2c03a9=this[_0x549ba4(0x219)]([_0x549ba4(0x260),_0x549ba4(0x23c),_0x549ba4(0x314)]),_0xac59d7=_0x2c03a9['ok']&&_0x2c03a9[_0x549ba4(0x1bc)]?_0x2c03a9['stdout']:'main';let _0x3c8aff=this[_0x549ba4(0x219)]([_0x549ba4(0x28c),'-b',_0xac59d7]);if(!_0x3c8aff['ok']){_0x3c8aff=this[_0x549ba4(0x219)]([_0x549ba4(0x28c)]);if(!_0x3c8aff['ok'])return error(_0x549ba4(0x309),_0x3c8aff['stderr']);const _0x42fb3f=this[_0x549ba4(0x219)]([_0x549ba4(0x1f8),'-M',_0xac59d7]);if(!_0x42fb3f['ok'])return error(_0x549ba4(0x309),_0x42fb3f[_0x549ba4(0x306)]);}this[_0x549ba4(0x2cc)]();const _0x4fc84c=this[_0x549ba4(0x219)]([_0x549ba4(0x249),'-A']);if(!_0x4fc84c['ok'])return error(_0x549ba4(0x1ba),_0x4fc84c['stderr']);const _0x5627ff=this['runGit']([_0x549ba4(0x220),'--no-gpg-sign','-m','chore:\x20initialize\x20local\x20repository']);if(!_0x5627ff['ok'])return error(_0x549ba4(0x1ba),_0x5627ff['stderr']);const _0xaff86d=this[_0x549ba4(0x219)]([_0x549ba4(0x292),_0x549ba4(0x22b)]);if(!_0xaff86d['ok']||_0xaff86d[_0x549ba4(0x1bc)])return error('GIT_BASELINE_NOT_CLEAN',_0x549ba4(0x2ba),{'status':_0xaff86d[_0x549ba4(0x1bc)]});const _0x5d605e=this['stateRoot'];this['refreshRepositoryContext'](),this['migrateStateRoot'](_0x5d605e);const _0x236c23={};return _0x236c23[_0x549ba4(0x1b7)]=!![],_0x236c23[_0x549ba4(0x1f8)]=_0xac59d7,_0x236c23[_0x549ba4(0x2f6)]=!![],_0x236c23;}['migrateStateRoot'](_0xcafb9c){const _0x1f895a=_0x1a9389;if(!_0xcafb9c||normalizePath(_0xcafb9c)===normalizePath(this[_0x1f895a(0x272)])||!fs[_0x1f895a(0x23b)](_0xcafb9c))return;const _0x588c21=path['join'](this[_0x1f895a(0x272)],_0x1f895a(0x1db),crypto[_0x1f895a(0x1f1)]('sha256')[_0x1f895a(0x284)](_0xcafb9c)['digest'](_0x1f895a(0x2b8))+_0x1f895a(0x2fb));if(fs[_0x1f895a(0x23b)](_0x588c21))return;const _0x2bbb62=this['listRunsFromRoot'](_0xcafb9c)[_0x1f895a(0x234)](_0x5dd7af=>_0x5dd7af[_0x1f895a(0x292)]===_0x1f895a(0x204)||_0x5dd7af[_0x1f895a(0x292)]==='initializing'),_0x439d8f={};_0x439d8f[_0x1f895a(0x1b6)]='PIPELINES_ACTIVE_DURING_GIT_INIT';if(_0x2bbb62['length'])throw Object[_0x1f895a(0x212)](new Error(_0x1f895a(0x28f)),_0x439d8f);for(const _0xe275ca of this[_0x1f895a(0x310)](_0xcafb9c)){const _0x3cd625=path[_0x1f895a(0x24c)](_0xcafb9c,_0xe275ca[_0x1f895a(0x265)],_0x1f895a(0x274),_0xe275ca[_0x1f895a(0x2e2)]),_0x388019=this[_0x1f895a(0x207)](_0xe275ca[_0x1f895a(0x265)],_0xe275ca['runId']),_0x232f5d={};_0x232f5d[_0x1f895a(0x259)]=!![],_0x232f5d[_0x1f895a(0x1c7)]=!![];if(!fs['existsSync'](_0x388019))fs[_0x1f895a(0x28a)](_0x3cd625,_0x388019,_0x232f5d);this['verifyCopiedTree'](_0x3cd625,_0x388019);const _0x5c67e3=path[_0x1f895a(0x24c)](_0xcafb9c,_0xe275ca[_0x1f895a(0x265)],_0x1f895a(0x28d));fs[_0x1f895a(0x23b)](_0x5c67e3)&&!fs['existsSync'](this[_0x1f895a(0x2f8)](_0xe275ca[_0x1f895a(0x265)]))&&(fs['copyFileSync'](_0x5c67e3,this[_0x1f895a(0x2f8)](_0xe275ca[_0x1f895a(0x265)])),this[_0x1f895a(0x2c8)](_0x5c67e3,this[_0x1f895a(0x2f8)](_0xe275ca[_0x1f895a(0x265)])));}this[_0x1f895a(0x2f0)](_0x588c21,{'source':_0xcafb9c,'migratedAt':this[_0x1f895a(0x1e5)]()[_0x1f895a(0x2ed)]()});}[_0x1a9389(0x2c8)](_0x1b799b,_0x58bc79){const _0x1d29e7=_0x1a9389,_0x5c7dcd=fs['statSync'](_0x1b799b),_0x12893b=fs['statSync'](_0x58bc79);if(_0x5c7dcd[_0x1d29e7(0x268)]()!==_0x12893b['isDirectory']()){const _0x1833a6={};_0x1833a6['code']=_0x1d29e7(0x256);throw Object[_0x1d29e7(0x212)](new Error(_0x1d29e7(0x2de)+_0x1b799b),_0x1833a6);}if(_0x5c7dcd[_0x1d29e7(0x268)]()){const _0x1062ee=fs[_0x1d29e7(0x298)](_0x1b799b)[_0x1d29e7(0x25d)](),_0x2e985f=fs[_0x1d29e7(0x298)](_0x58bc79)['sort']();if(JSON[_0x1d29e7(0x290)](_0x1062ee)!==JSON[_0x1d29e7(0x290)](_0x2e985f)){const _0x4f0884={};_0x4f0884[_0x1d29e7(0x1b6)]=_0x1d29e7(0x256);throw Object[_0x1d29e7(0x212)](new Error('Pipeline\x20state\x20copy\x20entries\x20mismatch:\x20'+_0x1b799b),_0x4f0884);}for(const _0x440744 of _0x1062ee)this[_0x1d29e7(0x2c8)](path['join'](_0x1b799b,_0x440744),path[_0x1d29e7(0x24c)](_0x58bc79,_0x440744));return;}const _0x3901df=crypto[_0x1d29e7(0x1f1)](_0x1d29e7(0x25f))[_0x1d29e7(0x284)](fs[_0x1d29e7(0x202)](_0x1b799b))['digest']('hex'),_0x14b88a=crypto[_0x1d29e7(0x1f1)](_0x1d29e7(0x25f))[_0x1d29e7(0x284)](fs[_0x1d29e7(0x202)](_0x58bc79))[_0x1d29e7(0x279)]('hex');if(_0x3901df!==_0x14b88a){const _0x4e2e15={};_0x4e2e15[_0x1d29e7(0x1b6)]='STATE_MIGRATION_VERIFY_FAILED';throw Object[_0x1d29e7(0x212)](new Error('Pipeline\x20state\x20copy\x20hash\x20mismatch:\x20'+_0x1b799b),_0x4e2e15);}}[_0x1a9389(0x299)](_0x4c05a9,_0x1a91a1,_0x509beb){const _0x5a84db=_0x1a9389;if(!this[_0x5a84db(0x2e5)]){if(!_0x509beb['initializeGit']||!_0x509beb[_0x5a84db(0x23d)])return this[_0x5a84db(0x305)]();if(!_0x509beb[_0x5a84db(0x205)])return error(_0x5a84db(0x323),_0x5a84db(0x257));const _0x3368d1=this[_0x5a84db(0x1ec)](_0x509beb[_0x5a84db(0x23d)]);if(!_0x3368d1[_0x5a84db(0x1b7)])return _0x3368d1;}if(!_0x509beb[_0x5a84db(0x205)])return error('WORKTREE_CONSENT_REQUIRED','Creating\x20a\x20Git\x20worktree\x20requires\x20direct\x20user\x20confirmation.');const _0x20f143=this['runGit']([_0x5a84db(0x292),'--porcelain']);if(!_0x20f143['ok']||_0x20f143[_0x5a84db(0x1bc)])return error(_0x5a84db(0x29a),_0x5a84db(0x1fe),{'status':_0x20f143['stdout']});const _0x5cce16=this[_0x5a84db(0x219)]([_0x5a84db(0x201),_0x5a84db(0x228)]);if(!_0x5cce16['ok'])return error(_0x5a84db(0x276),_0x5cce16[_0x5a84db(0x306)]||_0x5a84db(0x1f4));const _0x226a1f=this[_0x5a84db(0x219)]([_0x5a84db(0x1f8),_0x5a84db(0x1e9)]),_0x64b582=path[_0x5a84db(0x2eb)](this[_0x5a84db(0x215)]),_0x30b656=path[_0x5a84db(0x24c)](path[_0x5a84db(0x253)](this['projectPath']),_0x5a84db(0x1e6),_0x64b582,_0x4c05a9,_0x1a91a1),_0x19bce6=_0x5a84db(0x1cd)+_0x4c05a9+'/'+_0x1a91a1;if(fs['existsSync'](_0x30b656))return error(_0x5a84db(0x1e0),_0x5a84db(0x2f1)+_0x30b656);const _0x4464b2=this[_0x5a84db(0x219)]([_0x5a84db(0x2e9),_0x5a84db(0x249),'-b',_0x19bce6,_0x30b656,_0x509beb[_0x5a84db(0x1d2)]||_0x5cce16['stdout']]),_0x2b18a9={};_0x2b18a9[_0x5a84db(0x1c3)]=_0x30b656,_0x2b18a9[_0x5a84db(0x1f8)]=_0x19bce6;if(!_0x4464b2['ok'])return error(_0x5a84db(0x2c1),_0x4464b2[_0x5a84db(0x306)]||'git\x20worktree\x20add\x20failed.',_0x2b18a9);return{'success':!![],'workspace':{'mode':'worktree','path':normalizePath(_0x30b656),'branch':_0x19bce6,'baseRef':_0x509beb[_0x5a84db(0x1d2)]||_0x5cce16[_0x5a84db(0x1bc)],'baseBranch':_0x226a1f['ok']?_0x226a1f[_0x5a84db(0x1bc)]:'','status':_0x5a84db(0x20e),'createdAt':this[_0x5a84db(0x1e5)]()['toISOString'](),'managed':!![]}};}['resolveWorkspace'](_0x396bb7,_0x3ef20a,_0x13afd6={}){const _0x545cbd=_0x1a9389,_0x23324e=_0x13afd6[_0x545cbd(0x232)]||'auto';if(!['auto',_0x545cbd(0x2ff),_0x545cbd(0x2e9)]['includes'](_0x23324e))return error('INVALID_WORKSPACE_MODE',_0x545cbd(0x302)+_0x23324e);if(_0x23324e===_0x545cbd(0x2e9))return this[_0x545cbd(0x299)](_0x396bb7,_0x3ef20a,_0x13afd6);return{'success':!![],'workspace':{'mode':this['isLinkedWorktree']()?_0x545cbd(0x252):_0x545cbd(0x2ff),'path':this[_0x545cbd(0x215)],'branch':this[_0x545cbd(0x2e5)]?this[_0x545cbd(0x219)]([_0x545cbd(0x1f8),_0x545cbd(0x1e9)])[_0x545cbd(0x1bc)]:'','baseRef':this[_0x545cbd(0x2e5)]?this[_0x545cbd(0x219)]([_0x545cbd(0x201),'HEAD'])['stdout']:'','baseBranch':this[_0x545cbd(0x2e5)]?this[_0x545cbd(0x219)]([_0x545cbd(0x1f8),_0x545cbd(0x1e9)])[_0x545cbd(0x1bc)]:'','status':'ready','managed':![]}};}[_0x1a9389(0x289)](_0x42442b={}){const _0x80b16e=_0x1a9389;let {pipeline:_0x28108e,task:_0x5af0bc,workspace:workspace={},schemaVersion:schemaVersion=0x3}=_0x42442b;const _0x469e4e=PipelineManager['validateTask'](_0x5af0bc);if(_0x469e4e)return _0x469e4e;if(![0x2,0x3]['includes'](schemaVersion))return error(_0x80b16e(0x1e8),'Supported\x20pipeline\x20versions\x20are\x202\x20and\x203.');for(const _0x231f7e of['acceptanceCriteria','scope','skills']){if(_0x42442b[_0x231f7e]!==undefined&&(!Array['isArray'](_0x42442b[_0x231f7e])||!_0x42442b[_0x231f7e]['every'](_0x23ceba=>typeof _0x23ceba===_0x80b16e(0x1bb)&&_0x23ceba[_0x80b16e(0x1d8)]())))return error('INVALID_RUN_INPUT',_0x231f7e+_0x80b16e(0x2a3));}const _0x572437=schemaVersion===0x3?PIPELINE_DEFINITIONS_V3:PIPELINE_DEFINITIONS,_0x51b6c7=_0x572437[_0x28108e];if(!_0x51b6c7)return error(_0x80b16e(0x2c2),_0x80b16e(0x1c1)+_0x28108e+'.',{'valid_pipelines':Object[_0x80b16e(0x2ea)](PIPELINE_DEFINITIONS)});const _0xf581d0=_0x51b6c7[_0x80b16e(0x210)][0x0]['skill'];if(_0xf581d0){const _0x2de7f0=this[_0x80b16e(0x2f9)](_0xf581d0);if(_0x2de7f0)return _0x2de7f0;}if((workspace['mode']||_0x80b16e(0x239))===_0x80b16e(0x2e9)&&!this[_0x80b16e(0x2e5)]){if(!workspace[_0x80b16e(0x1bf)]||!workspace[_0x80b16e(0x23d)])return this['previewGitBootstrap']();if(!workspace[_0x80b16e(0x205)])return error(_0x80b16e(0x323),_0x80b16e(0x257));const _0x4e2052=this[_0x80b16e(0x1ec)](workspace[_0x80b16e(0x23d)]);if(!_0x4e2052[_0x80b16e(0x1b7)])return _0x4e2052;workspace={...workspace,'initializeGit':![],'confirmationToken':undefined};}return this['withLock'](_0x5af0bc,()=>{const _0x54b42e=_0x80b16e,_0x5d7b42=this[_0x54b42e(0x2a9)](_0x5af0bc);if(_0x5d7b42&&['initializing',_0x54b42e(0x204),_0x54b42e(0x21a)]['includes'](_0x5d7b42[_0x54b42e(0x292)]))return error(_0x54b42e(0x222),'Task\x20\x22'+_0x5af0bc+_0x54b42e(0x1c9),{'task':_0x5af0bc,'runId':_0x5d7b42[_0x54b42e(0x2e2)]});const _0x4e20d9=this['generateRunId'](),_0x37e80a=this[_0x54b42e(0x2b5)](_0x5af0bc,_0x4e20d9,workspace);if(!_0x37e80a[_0x54b42e(0x1b7)])return _0x37e80a;const _0x245614={'schemaVersion':schemaVersion,'task':_0x5af0bc,'runId':_0x4e20d9,'pipeline':_0x28108e,'status':_0x54b42e(0x204),'completedSteps':[],'workspace':_0x37e80a['workspace'],'startedAt':this['now']()['toISOString'](),'updatedAt':this['now']()[_0x54b42e(0x2ed)]()};if(schemaVersion===0x3)this[_0x54b42e(0x23a)][_0x54b42e(0x1f9)](_0x245614,_0x42442b);const _0x2b19ec={};_0x2b19ec[_0x54b42e(0x1d7)]=!![],this[_0x54b42e(0x322)](_0x245614,_0x2b19ec),this[_0x54b42e(0x2fc)](_0x245614,_0x54b42e(0x2a8),_0x54b42e(0x218)+_0x245614[_0x54b42e(0x1b0)][_0x54b42e(0x1dd)]+_0x54b42e(0x1ad)+_0x51b6c7['steps'][0x0]['id']);const _0x1d6090={};return _0x1d6090[_0x54b42e(0x1b7)]=!![],this[_0x54b42e(0x203)](_0x245614,_0x1d6090);});}['next'](_0x2010fc={}){const _0x5330f8=_0x1a9389;return this[_0x5330f8(0x23a)][_0x5330f8(0x1fb)](_0x2010fc);}[_0x1a9389(0x226)](_0x41d6b1={}){const _0xd6f07e=_0x1a9389;return this[_0xd6f07e(0x23a)][_0xd6f07e(0x226)](_0x41d6b1);}[_0x1a9389(0x294)](_0x38355e={}){const _0x1f3efc=_0x1a9389;return this[_0x1f3efc(0x23a)][_0x1f3efc(0x294)](_0x38355e);}['checkpoint'](_0x5e2386={}){const _0x45447e=_0x1a9389,{task:_0x2d5bef,runId:_0xe5f44c,pipeline:_0x1db9b1,step:_0x13acbf,status:_0x18c512,summary:_0x4aab1c}=_0x5e2386,_0x2d28fb=PipelineManager[_0x45447e(0x275)](_0x2d5bef);if(_0x2d28fb)return _0x2d28fb;if(!_0xe5f44c)return error(_0x45447e(0x2f2),'runId\x20is\x20required\x20for\x20pipeline\x20mutations.');const _0x604491=PipelineManager[_0x45447e(0x236)](_0xe5f44c);if(_0x604491)return _0x604491;if(this['readRun'](_0x2d5bef,_0xe5f44c)?.[_0x45447e(0x1f0)]===0x3)return this[_0x45447e(0x23a)]['checkpoint'](_0x5e2386);return this[_0x45447e(0x1c6)](_0x2d5bef,()=>{const _0x54c835=_0x45447e,_0x4a60b1=this[_0x54c835(0x2a0)](_0x2d5bef,_0xe5f44c);if(!_0x4a60b1)return error(_0x54c835(0x19e),_0x54c835(0x26b)+_0xe5f44c+_0x54c835(0x2ec)+_0x2d5bef+'\x22.');const _0x502ec7=this[_0x54c835(0x2a9)](_0x2d5bef);if(!_0x502ec7||_0x502ec7[_0x54c835(0x2e2)]!==_0xe5f44c)return error(_0x54c835(0x243),_0x54c835(0x271));if(_0x4a60b1['status']!==_0x54c835(0x204))return error(_0x54c835(0x273),'Run\x20is\x20'+_0x4a60b1[_0x54c835(0x292)]+_0x54c835(0x296));if(_0x1db9b1&&_0x1db9b1!==_0x4a60b1['pipeline'])return error(_0x54c835(0x315),_0x54c835(0x262)+_0x4a60b1[_0x54c835(0x30f)]+_0x54c835(0x251)+_0x1db9b1+'\x22.');if(_0x18c512!==_0x54c835(0x248))return error(_0x54c835(0x231),_0x54c835(0x2ca));const _0x4dd41d=PIPELINE_DEFINITIONS[_0x4a60b1[_0x54c835(0x30f)]],_0xa99311=_0x4dd41d['steps'][_0x4a60b1[_0x54c835(0x30c)][_0x54c835(0x31e)]];if(!_0xa99311||_0xa99311['id']!==_0x13acbf)return error(_0x54c835(0x242),_0x54c835(0x1a4)+(_0xa99311?.['id']||_0x54c835(0x2f7))+_0x54c835(0x1c0)+_0x13acbf+'\x22.',{'expected_step':_0xa99311?.['id']||null});if(_0xa99311['skill']){const _0x165f3b=this['requiredSkillError'](_0xa99311[_0x54c835(0x233)],_0x4a60b1[_0x54c835(0x1b0)][_0x54c835(0x1dd)]);if(_0x165f3b)return _0x165f3b;}if(_0x4a60b1[_0x54c835(0x30f)]==='hotfix'&&_0x13acbf===_0x54c835(0x211)&&(!_0x4aab1c||_0x4aab1c[_0x54c835(0x1d8)]()[_0x54c835(0x31e)]<0xa))return error(_0x54c835(0x2d6),_0x54c835(0x2dc));_0x4a60b1[_0x54c835(0x30c)]['push']({'id':_0x13acbf,'summary':_0x4aab1c||'','completedAt':this['now']()[_0x54c835(0x2ed)]()});if(_0x4a60b1[_0x54c835(0x30c)][_0x54c835(0x31e)]===_0x4dd41d[_0x54c835(0x210)][_0x54c835(0x31e)])_0x4a60b1['status']=_0x54c835(0x248);this[_0x54c835(0x322)](_0x4a60b1),this['appendLedger'](_0x4a60b1,_0x54c835(0x286)+_0x13acbf,_0x4aab1c||_0x54c835(0x238));const _0xebb72b={};_0xebb72b[_0x54c835(0x1b7)]=!![];const _0x95b455=this[_0x54c835(0x203)](_0x4a60b1,_0xebb72b);if(MEMORY_TRIGGERS[_0x13acbf])_0x95b455[_0x54c835(0x263)]=MEMORY_TRIGGERS[_0x13acbf];return _0x95b455;});}[_0x1a9389(0x2a6)]({task:_0x588a1b,runId:_0xf6521,confirm:_0x15bbef}={}){const _0x28e9eb=_0x1a9389,_0x214c20=PipelineManager[_0x28e9eb(0x275)](_0x588a1b);if(_0x214c20)return _0x214c20;if(!_0xf6521)return error(_0x28e9eb(0x2f2),'runId\x20is\x20required\x20for\x20pipeline\x20reset.');const _0x5cc918=PipelineManager['validateRunId'](_0xf6521);if(_0x5cc918)return _0x5cc918;if(_0x15bbef!==!![])return error(_0x28e9eb(0x30b),_0x28e9eb(0x1a1));return this['withLock'](_0x588a1b,()=>{const _0x1e4869=_0x28e9eb,_0xccba0d=this[_0x1e4869(0x2a0)](_0x588a1b,_0xf6521);if(!_0xccba0d)return error(_0x1e4869(0x19e),_0x1e4869(0x26b)+_0xf6521+_0x1e4869(0x227));const _0x209e6d=this['readCurrent'](_0x588a1b);if(!_0x209e6d||_0x209e6d[_0x1e4869(0x2e2)]!==_0xf6521)return error('RUN_MISMATCH',_0x1e4869(0x271));if(!['active',_0x1e4869(0x21a)]['includes'](_0xccba0d[_0x1e4869(0x292)]))return error('RUN_NOT_ACTIVE','Run\x20is\x20'+_0xccba0d[_0x1e4869(0x292)]+_0x1e4869(0x296));if(_0xccba0d[_0x1e4869(0x23a)]?.[_0x1e4869(0x204)][_0x1e4869(0x31e)])return error(_0x1e4869(0x1c5),'Stop\x20and\x20release\x20active\x20workers\x20before\x20cancelling\x20the\x20run.');_0xccba0d[_0x1e4869(0x292)]=_0x1e4869(0x285),_0xccba0d[_0x1e4869(0x1a8)]=this['now']()[_0x1e4869(0x2ed)](),this['writeState'](_0xccba0d),this[_0x1e4869(0x2fc)](_0xccba0d,'Run\x20cancelled',_0x1e4869(0x30a));const _0x36cf16={};return _0x36cf16[_0x1e4869(0x1b7)]=!![],this[_0x1e4869(0x203)](_0xccba0d,_0x36cf16);});}[_0x1a9389(0x25c)](_0x3e8e5b,_0x1746dc){const _0x471098=_0x1a9389,_0x130fbf=PipelineManager['validateTask'](_0x3e8e5b);if(_0x130fbf)return _0x130fbf;if(!_0x1746dc)return error(_0x471098(0x2f2),'runId\x20is\x20required.');const _0x4e9940=PipelineManager['validateRunId'](_0x1746dc);if(_0x4e9940)return _0x4e9940;const _0x348773=this[_0x471098(0x2a0)](_0x3e8e5b,_0x1746dc);if(!_0x348773)return error('RUN_NOT_FOUND',_0x471098(0x26b)+_0x1746dc+_0x471098(0x227));if(![_0x471098(0x204),'paused']['includes'](_0x348773['status']))return error(_0x471098(0x273),_0x471098(0x319)+_0x348773['status']+',\x20not\x20resumable.');const _0x2c5d26={};return _0x2c5d26[_0x471098(0x1b7)]=!![],this[_0x471098(0x203)](_0x348773,_0x2c5d26);}[_0x1a9389(0x203)](_0x5494e8,_0x25439b={}){const _0x5d3ec7=_0x1a9389,_0x384df6=_0x5494e8[_0x5d3ec7(0x1f0)]===0x3?_0x5494e8[_0x5d3ec7(0x250)]:PIPELINE_DEFINITIONS[_0x5494e8[_0x5d3ec7(0x30f)]],_0x27cb72=_0x5494e8[_0x5d3ec7(0x30c)][_0x5d3ec7(0x31e)],_0x3852f0=_0x384df6[_0x5d3ec7(0x210)][_0x27cb72]||null,_0x3d90bb={..._0x25439b,'active':_0x5494e8[_0x5d3ec7(0x292)]==='active','state':_0x5494e8['status'],'task':_0x5494e8['task'],'runId':_0x5494e8[_0x5d3ec7(0x2e2)],'pipeline':_0x5494e8[_0x5d3ec7(0x30f)],'pipeline_name':_0x384df6[_0x5d3ec7(0x31b)],'progress':_0x27cb72+'/'+_0x384df6['steps'][_0x5d3ec7(0x31e)],'completed':_0x5494e8[_0x5d3ec7(0x30c)][_0x5d3ec7(0x2ad)](_0x9526d=>_0x9526d['id']),'next_step':_0x3852f0?{'id':_0x3852f0['id'],'name':_0x3852f0[_0x5d3ec7(0x31b)],'skill':_0x3852f0[_0x5d3ec7(0x233)]}:null,'workspacePath':_0x5494e8[_0x5d3ec7(0x1b0)][_0x5d3ec7(0x1dd)],'stateRoot':this['stateRoot'],'ledgerPath':this[_0x5d3ec7(0x25a)](_0x5494e8[_0x5d3ec7(0x265)],_0x5494e8[_0x5d3ec7(0x2e2)]),'workspace':_0x5494e8['workspace'],'tool_routing':TOOL_ROUTING};if(_0x5494e8['schemaVersion']===0x3)Object['assign'](_0x3d90bb,{'schemaVersion':0x3,'versions':_0x5494e8[_0x5d3ec7(0x1eb)],'acceptance':_0x5494e8[_0x5d3ec7(0x2a4)],'sessionId':_0x5494e8['coordinator'],'workItems':_0x5494e8[_0x5d3ec7(0x2b9)],'execution':_0x5494e8[_0x5d3ec7(0x23a)],'verification_level':_0x5d3ec7(0x2d3),'stop_reason':_0x5494e8[_0x5d3ec7(0x23a)][_0x5d3ec7(0x1b9)]});else _0x3d90bb[_0x5d3ec7(0x1c4)]=_0x5d3ec7(0x208);if(_0x3852f0?.[_0x5d3ec7(0x233)]){const _0x3c9f8a=_0x5494e8[_0x5d3ec7(0x1f0)]===0x3&&_0x5494e8[_0x5d3ec7(0x216)]?.[_0x3852f0[_0x5d3ec7(0x233)]]?null:this['requiredSkillError'](_0x3852f0[_0x5d3ec7(0x233)],_0x5494e8[_0x5d3ec7(0x1b0)][_0x5d3ec7(0x1dd)]),_0x3dad40={};_0x3dad40[_0x5d3ec7(0x204)]=![],_0x3dad40[_0x5d3ec7(0x321)]=!![];if(_0x3c9f8a)Object['assign'](_0x3d90bb,_0x3c9f8a,_0x3dad40);else _0x3d90bb[_0x5d3ec7(0x29e)]=_0x5d3ec7(0x27b)+_0x3852f0[_0x5d3ec7(0x233)]+_0x5d3ec7(0x1a7)+_0x3852f0['id']+'\x22.';}if(_0x3852f0&&['tdd',_0x5d3ec7(0x1ee),_0x5d3ec7(0x2fa)][_0x5d3ec7(0x300)](_0x3852f0['id']))_0x3d90bb[_0x5d3ec7(0x1a9)]=DOMAIN_SKILL_REMINDER;return _0x3d90bb;}[_0x1a9389(0x310)](_0xd14a39){const _0x4c96c2=_0x1a9389,_0x4ab3eb=[];if(!fs[_0x4c96c2(0x23b)](_0xd14a39))return _0x4ab3eb;const _0x4d2fb9={};_0x4d2fb9[_0x4c96c2(0x24e)]=!![];for(const _0xd185d0 of fs['readdirSync'](_0xd14a39,_0x4d2fb9)){if(!_0xd185d0[_0x4c96c2(0x268)]()||_0xd185d0[_0x4c96c2(0x31b)][_0x4c96c2(0x269)]('.'))continue;const _0x49a024=path[_0x4c96c2(0x24c)](_0xd14a39,_0xd185d0[_0x4c96c2(0x31b)],_0x4c96c2(0x274));if(!fs[_0x4c96c2(0x23b)](_0x49a024))continue;const _0x6637d7={};_0x6637d7[_0x4c96c2(0x24e)]=!![];for(const _0x4383ff of fs['readdirSync'](_0x49a024,_0x6637d7)){if(!_0x4383ff['isDirectory']())continue;const _0x4c20e3=_0xd14a39===this[_0x4c96c2(0x272)]?this[_0x4c96c2(0x2a0)](_0xd185d0[_0x4c96c2(0x31b)],_0x4383ff[_0x4c96c2(0x31b)]):this[_0x4c96c2(0x1e3)](path[_0x4c96c2(0x24c)](_0x49a024,_0x4383ff['name'],_0x4c96c2(0x29b)));if(_0x4c20e3)_0x4ab3eb['push'](_0x4c20e3);}}return _0x4ab3eb;}[_0x1a9389(0x1fd)](){return this['listRunsFromRoot'](this['stateRoot']);}['listActivePipelines'](){const _0x3af445=_0x1a9389;return this[_0x3af445(0x1fd)]()['filter'](_0x4deff2=>_0x4deff2[_0x3af445(0x292)]==='active')['map'](_0x3cc29c=>this[_0x3af445(0x203)](_0x3cc29c));}[_0x1a9389(0x282)](_0x13f002,_0x379e93){const _0x1cd72e=_0x1a9389;if(!_0x13f002){const _0x593f3f=[];if(fs[_0x1cd72e(0x23b)](this['stateRoot'])){const _0xbd318c={};_0xbd318c[_0x1cd72e(0x24e)]=!![];for(const _0x2e7706 of fs[_0x1cd72e(0x298)](this[_0x1cd72e(0x272)],_0xbd318c)){if(!_0x2e7706[_0x1cd72e(0x268)]()||_0x2e7706['name']['startsWith']('.'))continue;const _0x4093f6=this['readCurrent'](_0x2e7706[_0x1cd72e(0x31b)]);if(_0x4093f6)_0x593f3f[_0x1cd72e(0x27f)](this[_0x1cd72e(0x203)](_0x4093f6));}}return{'success':!![],'active':_0x593f3f['some'](_0x5831a9=>_0x5831a9[_0x1cd72e(0x204)]),'state':_0x593f3f[_0x1cd72e(0x31e)]?_0x1cd72e(0x1bd):'none','pipelines':_0x593f3f,'stateRoot':this['stateRoot'],'migrationWarnings':this[_0x1cd72e(0x1b1)],'message':_0x593f3f[_0x1cd72e(0x31e)]?_0x593f3f[_0x1cd72e(0x31e)]+'\x20task(s)\x20tracked.':'No\x20pipeline.\x20Call\x20pipeline_start\x20before\x20executable\x20changes.','tool_routing':TOOL_ROUTING};}const _0x389fdc=PipelineManager[_0x1cd72e(0x275)](_0x13f002);if(_0x389fdc)return _0x389fdc;if(_0x379e93){const _0x1d7c6b=PipelineManager[_0x1cd72e(0x236)](_0x379e93);if(_0x1d7c6b)return _0x1d7c6b;}const _0xcdb5e6=_0x379e93?this[_0x1cd72e(0x2a0)](_0x13f002,_0x379e93):this[_0x1cd72e(0x2a9)](_0x13f002);if(!_0xcdb5e6)return error(_0x1cd72e(0x19e),'No\x20pipeline\x20run\x20found\x20for\x20task\x20\x22'+_0x13f002+'\x22.',{'active':![],'state':_0x1cd72e(0x2f7),'task':_0x13f002,'stateRoot':this[_0x1cd72e(0x272)]});const _0x3326b8={};return _0x3326b8['success']=!![],this[_0x1cd72e(0x203)](_0xcdb5e6,_0x3326b8);}['prepareMerge'](_0x2c01a1,_0x5d45db){const _0x501dbe=_0x1a9389,_0x3287ef=PipelineManager[_0x501dbe(0x275)](_0x2c01a1);if(_0x3287ef)return _0x3287ef;const _0x3cf091=PipelineManager[_0x501dbe(0x236)](_0x5d45db);if(_0x3cf091)return _0x3cf091;const _0x25da0b=this[_0x501dbe(0x2a0)](_0x2c01a1,_0x5d45db);if(!_0x25da0b)return error('RUN_NOT_FOUND',_0x501dbe(0x26b)+_0x5d45db+'\x22\x20was\x20not\x20found.');if(!_0x25da0b[_0x501dbe(0x1b0)][_0x501dbe(0x2f4)]||_0x25da0b['workspace'][_0x501dbe(0x232)]!==_0x501dbe(0x2e9))return error(_0x501dbe(0x1fa),_0x501dbe(0x297));const _0xc7d2f0={};_0xc7d2f0[_0x501dbe(0x1a0)]=_0x25da0b[_0x501dbe(0x1b0)][_0x501dbe(0x1dd)];const _0x1a30f1=this[_0x501dbe(0x219)]([_0x501dbe(0x292),'--porcelain'],_0xc7d2f0);if(!_0x25da0b['workspace'][_0x501dbe(0x2cb)])return error(_0x501dbe(0x237),_0x501dbe(0x2d4));const _0xf04336=this[_0x501dbe(0x219)]([_0x501dbe(0x2bb),_0x501dbe(0x313),_0x501dbe(0x1a5),_0x25da0b['workspace'][_0x501dbe(0x2cb)]+_0x501dbe(0x2e8)+_0x25da0b[_0x501dbe(0x1b0)][_0x501dbe(0x1f8)]]),_0x14981b=this[_0x501dbe(0x219)]([_0x501dbe(0x1a3),_0x501dbe(0x246),_0x25da0b['workspace'][_0x501dbe(0x1d2)]+_0x501dbe(0x2e8)+_0x25da0b[_0x501dbe(0x1b0)]['branch']]),[_0xc0e6a1='0',_0x4f1fa4='0']=_0xf04336[_0x501dbe(0x1bc)]['split'](/\s+/);return{'success':_0x1a30f1['ok']&&_0xf04336['ok']&&_0x14981b['ok'],'task':_0x2c01a1,'runId':_0x5d45db,'workspacePath':_0x25da0b[_0x501dbe(0x1b0)][_0x501dbe(0x1dd)],'branch':_0x25da0b[_0x501dbe(0x1b0)]['branch'],'baseRef':_0x25da0b[_0x501dbe(0x1b0)][_0x501dbe(0x1d2)],'baseBranch':_0x25da0b['workspace'][_0x501dbe(0x2cb)],'clean':_0x1a30f1['ok']&&!_0x1a30f1[_0x501dbe(0x1bc)],'status':_0x1a30f1[_0x501dbe(0x1bc)],'ahead':Number(_0x4f1fa4),'behind':Number(_0xc0e6a1),'changedFiles':_0x14981b[_0x501dbe(0x1bc)]?_0x14981b[_0x501dbe(0x1bc)][_0x501dbe(0x1e4)](/\r?\n/)[_0x501dbe(0x234)](Boolean):[],'mergePerformed':![]};}[_0x1a9389(0x1d1)]({task:_0x3806d7,runId:_0x2db92e,confirm:_0x1b453e}={}){const _0xa28b77=_0x1a9389,_0x18ba38=PipelineManager[_0xa28b77(0x275)](_0x3806d7);if(_0x18ba38)return _0x18ba38;const _0x6993a3=PipelineManager[_0xa28b77(0x236)](_0x2db92e);if(_0x6993a3)return _0x6993a3;if(_0x1b453e!==!![])return error(_0xa28b77(0x270),_0xa28b77(0x244));return this['withLock'](_0x3806d7,()=>{const _0x4b29fd=_0xa28b77,_0x4ff6fc=this[_0x4b29fd(0x2a0)](_0x3806d7,_0x2db92e);if(!_0x4ff6fc)return error(_0x4b29fd(0x19e),_0x4b29fd(0x26b)+_0x2db92e+_0x4b29fd(0x227));if(![_0x4b29fd(0x248),_0x4b29fd(0x285)][_0x4b29fd(0x300)](_0x4ff6fc[_0x4b29fd(0x292)]))return error(_0x4b29fd(0x214),'Complete\x20or\x20cancel\x20the\x20run\x20before\x20cleanup.');if(!_0x4ff6fc[_0x4b29fd(0x1b0)][_0x4b29fd(0x2f4)]||_0x4ff6fc[_0x4b29fd(0x1b0)][_0x4b29fd(0x292)]===_0x4b29fd(0x2d7))return error('WORKTREE_NOT_MANAGED',_0x4b29fd(0x1dc));const _0x5922c5={};_0x5922c5['cwd']=_0x4ff6fc[_0x4b29fd(0x1b0)][_0x4b29fd(0x1dd)];const _0xcd3efc=this['runGit']([_0x4b29fd(0x292),_0x4b29fd(0x22b)],_0x5922c5);if(!_0xcd3efc['ok']||_0xcd3efc[_0x4b29fd(0x1bc)])return error(_0x4b29fd(0x1e2),'Worktree\x20contains\x20uncommitted\x20changes.',{'status':_0xcd3efc['stdout']});if(!_0x4ff6fc[_0x4b29fd(0x1b0)][_0x4b29fd(0x2cb)])return error(_0x4b29fd(0x261),'Cannot\x20verify\x20that\x20the\x20branch\x20was\x20merged.');const _0x2fc87a=this[_0x4b29fd(0x219)](['merge-base',_0x4b29fd(0x26a),_0x4ff6fc[_0x4b29fd(0x1b0)][_0x4b29fd(0x1f8)],_0x4ff6fc[_0x4b29fd(0x1b0)]['baseBranch']]);if(!_0x2fc87a['ok'])return error(_0x4b29fd(0x261),'Branch\x20is\x20not\x20merged\x20into\x20the\x20recorded\x20base\x20branch.');const _0x13bf93=this['runGit']([_0x4b29fd(0x2e9),_0x4b29fd(0x1b8),_0x4ff6fc[_0x4b29fd(0x1b0)][_0x4b29fd(0x1dd)]]);if(!_0x13bf93['ok'])return error('WORKTREE_REMOVE_FAILED',_0x13bf93['stderr']);_0x4ff6fc[_0x4b29fd(0x1b0)]['status']=_0x4b29fd(0x2d7),_0x4ff6fc[_0x4b29fd(0x1b0)][_0x4b29fd(0x2f5)]=this[_0x4b29fd(0x1e5)]()['toISOString'](),this[_0x4b29fd(0x322)](_0x4ff6fc),this[_0x4b29fd(0x2fc)](_0x4ff6fc,'Worktree\x20removed',_0x4b29fd(0x21c)+_0x4ff6fc[_0x4b29fd(0x1b0)][_0x4b29fd(0x1f8)]);const _0x30fb13={};return _0x30fb13[_0x4b29fd(0x1b7)]=!![],_0x30fb13['task']=_0x3806d7,_0x30fb13[_0x4b29fd(0x2e2)]=_0x2db92e,_0x30fb13['branch']=_0x4ff6fc[_0x4b29fd(0x1b0)][_0x4b29fd(0x1f8)],_0x30fb13[_0x4b29fd(0x1d4)]=![],_0x30fb13;});}['migrateLegacyTaskDirectories'](){const _0x7fc6f6=_0x1a9389,_0xf911fa=new Set([path[_0x7fc6f6(0x24c)](this[_0x7fc6f6(0x215)],_0x7fc6f6(0x1c2),'pipelines'),this['stateRoot']]);for(const _0x1f0c93 of _0xf911fa){if(!fs[_0x7fc6f6(0x23b)](_0x1f0c93))continue;const _0x16ada4={};_0x16ada4[_0x7fc6f6(0x24e)]=!![];for(const _0x21e26b of fs[_0x7fc6f6(0x298)](_0x1f0c93,_0x16ada4)){if(!_0x21e26b[_0x7fc6f6(0x268)]()||_0x21e26b['name'][_0x7fc6f6(0x269)]('.'))continue;const _0xfcecbf=path[_0x7fc6f6(0x24c)](_0x1f0c93,_0x21e26b[_0x7fc6f6(0x31b)],_0x7fc6f6(0x29b));if(!fs[_0x7fc6f6(0x23b)](_0xfcecbf))continue;const _0x259c18=fs['readFileSync'](_0xfcecbf,_0x7fc6f6(0x1f2));let _0x537efd;try{_0x537efd=JSON[_0x7fc6f6(0x304)](_0x259c18);}catch(_0x384bc2){const _0x462b1b={};_0x462b1b['code']=_0x7fc6f6(0x2bd),_0x462b1b[_0x7fc6f6(0x1dd)]=_0xfcecbf,_0x462b1b[_0x7fc6f6(0x295)]=_0x384bc2[_0x7fc6f6(0x1ff)],this[_0x7fc6f6(0x1b1)][_0x7fc6f6(0x27f)](_0x462b1b);continue;}if(!_0x537efd?.[_0x7fc6f6(0x30f)]||!PIPELINE_DEFINITIONS[_0x537efd[_0x7fc6f6(0x30f)]]){const _0x15c2aa={};_0x15c2aa[_0x7fc6f6(0x1b6)]=_0x7fc6f6(0x2bd),_0x15c2aa[_0x7fc6f6(0x1dd)]=_0xfcecbf,_0x15c2aa['error']='Missing\x20or\x20invalid\x20pipeline.',this[_0x7fc6f6(0x1b1)]['push'](_0x15c2aa);continue;}const _0x105a8e=crypto[_0x7fc6f6(0x1f1)](_0x7fc6f6(0x25f))[_0x7fc6f6(0x284)](_0xfcecbf+'\x00'+_0x259c18)['digest'](_0x7fc6f6(0x2b8)),_0x55a314=path[_0x7fc6f6(0x24c)](this[_0x7fc6f6(0x272)],'.migrations',_0x105a8e+'.json');if(fs[_0x7fc6f6(0x23b)](_0x55a314))continue;const _0x59d876=String(_0x537efd[_0x7fc6f6(0x2ce)]||this[_0x7fc6f6(0x1e5)]()[_0x7fc6f6(0x2ed)]())['slice'](0x0,0xa)[_0x7fc6f6(0x277)](/-/g,''),_0x32a255=PipelineManager[_0x7fc6f6(0x275)](_0x21e26b[_0x7fc6f6(0x31b)])?'legacy-'+_0x537efd[_0x7fc6f6(0x30f)]+'-'+_0x59d876:_0x21e26b[_0x7fc6f6(0x31b)];let _0x17e2e4=_0x32a255,_0x36dee3=0x0;while(this[_0x7fc6f6(0x2a9)](_0x17e2e4)){const _0x2d36a6=_0x36dee3++===0x0?_0x105a8e[_0x7fc6f6(0x2a2)](0x0,0x6):_0x105a8e[_0x7fc6f6(0x2a2)](0x0,0x4)+'-'+_0x36dee3;_0x17e2e4=_0x32a255[_0x7fc6f6(0x2a2)](0x0,0x3f-_0x2d36a6[_0x7fc6f6(0x31e)])+'-'+_0x2d36a6;}const _0x37d4b6=this[_0x7fc6f6(0x29f)](),_0x299113=PIPELINE_DEFINITIONS[_0x537efd[_0x7fc6f6(0x30f)]],_0x1fa136=(_0x537efd[_0x7fc6f6(0x30c)]||[])[_0x7fc6f6(0x2ad)](_0x36db86=>typeof _0x36db86==='string'?{'id':_0x36db86,'summary':'Migrated\x20from\x201.x\x20task\x20state','completedAt':this[_0x7fc6f6(0x1e5)]()[_0x7fc6f6(0x2ed)]()}:_0x36db86),_0x5849c8={};_0x5849c8[_0x7fc6f6(0x232)]='current',_0x5849c8[_0x7fc6f6(0x1dd)]=this[_0x7fc6f6(0x215)],_0x5849c8[_0x7fc6f6(0x2f4)]=![],_0x5849c8[_0x7fc6f6(0x292)]=_0x7fc6f6(0x20e);const _0x360ad5={'schemaVersion':0x2,'task':_0x17e2e4,'runId':_0x37d4b6,'pipeline':_0x537efd['pipeline'],'status':_0x1fa136[_0x7fc6f6(0x31e)]>=_0x299113[_0x7fc6f6(0x210)][_0x7fc6f6(0x31e)]?'completed':_0x7fc6f6(0x204),'completedSteps':_0x1fa136,'workspace':_0x5849c8,'startedAt':_0x537efd[_0x7fc6f6(0x2ce)]||this['now']()[_0x7fc6f6(0x2ed)](),'updatedAt':this[_0x7fc6f6(0x1e5)]()[_0x7fc6f6(0x2ed)](),'migratedFrom':_0xfcecbf},_0x4611d3={};_0x4611d3[_0x7fc6f6(0x1d7)]=!![],this[_0x7fc6f6(0x322)](_0x360ad5,_0x4611d3);const _0x5e3802=path[_0x7fc6f6(0x24c)](_0x1f0c93,_0x21e26b[_0x7fc6f6(0x31b)],_0x7fc6f6(0x24b)),_0x4dfc40=fs[_0x7fc6f6(0x23b)](_0x5e3802)?fs['readFileSync'](_0x5e3802,_0x7fc6f6(0x1f2)):_0x7fc6f6(0x254);this[_0x7fc6f6(0x2fc)](_0x360ad5,_0x7fc6f6(0x281),_0x7fc6f6(0x240)+_0xfcecbf+'\x0a\x0a'+_0x4dfc40),this[_0x7fc6f6(0x2f0)](_0x55a314,{'source':_0xfcecbf,'task':_0x17e2e4,'runId':_0x37d4b6,'fingerprint':_0x105a8e,'migratedAt':this[_0x7fc6f6(0x1e5)]()[_0x7fc6f6(0x2ed)]()});}}}[_0x1a9389(0x1e1)](){const _0x4dcd9d=_0x1a9389;if(!fs[_0x4dcd9d(0x23b)](this[_0x4dcd9d(0x278)]))return;const _0x52d0e4=fs[_0x4dcd9d(0x202)](this[_0x4dcd9d(0x278)],_0x4dcd9d(0x1f2));let _0x154132;try{_0x154132=JSON['parse'](_0x52d0e4);}catch(_0x72da1e){this[_0x4dcd9d(0x1b1)][_0x4dcd9d(0x27f)]({'code':'LEGACY_STATE_INVALID','path':this['legacyStateFilePath'],'error':_0x72da1e['message']});return;}if(!_0x154132?.[_0x4dcd9d(0x30f)]||!PIPELINE_DEFINITIONS[_0x154132[_0x4dcd9d(0x30f)]]){this[_0x4dcd9d(0x1b1)]['push']({'code':_0x4dcd9d(0x2bd),'path':this[_0x4dcd9d(0x278)],'error':_0x4dcd9d(0x24f)});return;}const _0x37d292=crypto['createHash']('sha256')['update'](_0x52d0e4)[_0x4dcd9d(0x279)]('hex'),_0x58b0ac=path['join'](this['stateRoot'],_0x4dcd9d(0x1db),_0x37d292+_0x4dcd9d(0x2fb));if(fs[_0x4dcd9d(0x23b)](_0x58b0ac))return;const _0x104b76=String(_0x154132[_0x4dcd9d(0x2ce)]||this[_0x4dcd9d(0x1e5)]()['toISOString']())['slice'](0x0,0xa)[_0x4dcd9d(0x277)](/-/g,''),_0x151b17='legacy-'+_0x154132[_0x4dcd9d(0x30f)]+'-'+_0x104b76;let _0x3cbe5f=_0x151b17,_0xdabf9=0x0;while(fs['existsSync'](this[_0x4dcd9d(0x1b2)](_0x3cbe5f))){const _0x4e996a=_0xdabf9++===0x0?_0x37d292[_0x4dcd9d(0x2a2)](0x0,0x6):_0x37d292[_0x4dcd9d(0x2a2)](0x0,0x4)+'-'+_0xdabf9;_0x3cbe5f=_0x151b17[_0x4dcd9d(0x2a2)](0x0,0x3f-_0x4e996a[_0x4dcd9d(0x31e)])+'-'+_0x4e996a;}const _0x9c250c=this[_0x4dcd9d(0x29f)](),_0x228747=PIPELINE_DEFINITIONS[_0x154132['pipeline']],_0x3a930b=(_0x154132[_0x4dcd9d(0x30c)]||[])['map'](_0x383159=>typeof _0x383159===_0x4dcd9d(0x1bb)?{'id':_0x383159,'summary':_0x4dcd9d(0x2da),'completedAt':this[_0x4dcd9d(0x1e5)]()[_0x4dcd9d(0x2ed)]()}:_0x383159),_0x65432c={};_0x65432c[_0x4dcd9d(0x232)]=_0x4dcd9d(0x2ff),_0x65432c[_0x4dcd9d(0x1dd)]=this[_0x4dcd9d(0x215)],_0x65432c['managed']=![],_0x65432c[_0x4dcd9d(0x292)]=_0x4dcd9d(0x20e);const _0x5fca5e={'schemaVersion':0x2,'task':_0x3cbe5f,'runId':_0x9c250c,'pipeline':_0x154132['pipeline'],'status':_0x3a930b['length']>=_0x228747[_0x4dcd9d(0x210)][_0x4dcd9d(0x31e)]?_0x4dcd9d(0x248):_0x4dcd9d(0x204),'completedSteps':_0x3a930b,'workspace':_0x65432c,'startedAt':_0x154132[_0x4dcd9d(0x2ce)]||this['now']()[_0x4dcd9d(0x2ed)](),'updatedAt':this[_0x4dcd9d(0x1e5)]()[_0x4dcd9d(0x2ed)](),'migratedFrom':this[_0x4dcd9d(0x278)]},_0x1892cb={};_0x1892cb[_0x4dcd9d(0x1d7)]=!![],this['writeState'](_0x5fca5e,_0x1892cb),this['appendLedger'](_0x5fca5e,'Legacy\x20state\x20imported','Source\x20retained\x20at\x20'+this[_0x4dcd9d(0x278)]),this['atomicWriteJson'](_0x58b0ac,{'source':this['legacyStateFilePath'],'task':_0x3cbe5f,'runId':_0x9c250c,'fingerprint':_0x37d292,'migratedAt':this['now']()[_0x4dcd9d(0x2ed)]()});}static[_0x1a9389(0x1ac)](_0x3017da){const _0x21213c=_0x1a9389,_0x3d8724=String(_0x3017da||'')[_0x21213c(0x267)]();if(/\b(bug|crash|regression|broken|debug)\b|bị lỗi|không chạy/[_0x21213c(0x2d5)](_0x3d8724)){const _0x47beec={};return _0x47beec[_0x21213c(0x29d)]=_0x21213c(0x2d0),_0x47beec['confidence']=_0x21213c(0x2b6),_0x47beec[_0x21213c(0x1be)]='Bug-fix\x20signals\x20detected.',_0x47beec;}if(/\b(typo|rename|config|one-liner|small fix)\b|sửa nhỏ|lỗi chính tả/[_0x21213c(0x2d5)](_0x3d8724)){const _0x304f5d={};return _0x304f5d[_0x21213c(0x29d)]=_0x21213c(0x28e),_0x304f5d['confidence']=_0x21213c(0x2b6),_0x304f5d[_0x21213c(0x1be)]=_0x21213c(0x217),_0x304f5d;}const _0x49effd={};return _0x49effd[_0x21213c(0x29d)]=_0x21213c(0x311),_0x49effd[_0x21213c(0x320)]=_0x3d8724[_0x21213c(0x31e)]>=0x3?_0x21213c(0x2b6):_0x21213c(0x1aa),_0x49effd[_0x21213c(0x1be)]=_0x21213c(0x280),_0x49effd;}}const _0x2696d1={};_0x2696d1['PipelineManager']=PipelineManager,_0x2696d1['PIPELINE_DEFINITIONS']=PIPELINE_DEFINITIONS,_0x2696d1[_0x1a9389(0x264)]=PIPELINE_DEFINITIONS_V3,module[_0x1a9389(0x26d)]=_0x2696d1;
|