@nuvin/agent-core 0.0.0-rc.0 → 0.0.0-rc.1

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.
@@ -1 +1 @@
1
- (function(_0xa4c7a0,_0x372e8e){const _0x488dc8={_0x19b44c:0x40e,_0x495002:0x3ca,_0x454c3e:0x384,_0x82abe2:0x3c8,_0x2e97f8:0x402,_0x3fcb2c:0x3d6,_0x5ee9ec:0x3ec,_0x2b7e81:0x3d0,_0x4d8a1f:0x38f,_0x4f1365:0x32c,_0x31ec4b:0x394,_0x22fc35:0x354,_0x3b8611:0x412,_0xce374:0x3b1,_0x2a455a:0x3ff,_0x3c6667:0x441,_0x1b0bc1:0x404,_0x534fa0:0x3ee},_0x1245b2={_0x57e3ab:0x1e7};function _0x1221a1(_0x2d5bcc,_0x30ab54,_0x5c9335,_0xd84154){return _0xdaaf(_0x30ab54-_0x1245b2._0x57e3ab,_0x2d5bcc);}const _0x72d5e2=_0xa4c7a0();function _0x1dcc07(_0x444c45,_0x2d88c3,_0x1eaa0d,_0x4b9aa3){return _0xdaaf(_0x2d88c3-0x1c6,_0x4b9aa3);}while(!![]){try{const _0x13f1b5=-parseInt(_0x1221a1(_0x488dc8._0x19b44c,_0x488dc8._0x495002,_0x488dc8._0x454c3e,_0x488dc8._0x82abe2))/0x1+parseInt(_0x1dcc07(0x460,0x40e,0x417,0x3bc))/0x2*(parseInt(_0x1221a1(_0x488dc8._0x2e97f8,0x458,0x413,0x417))/0x3)+parseInt(_0x1221a1(0x421,_0x488dc8._0x3fcb2c,0x412,_0x488dc8._0x5ee9ec))/0x4*(-parseInt(_0x1221a1(0x38f,_0x488dc8._0x2b7e81,0x3ee,_0x488dc8._0x4d8a1f))/0x5)+-parseInt(_0x1221a1(_0x488dc8._0x4f1365,_0x488dc8._0x31ec4b,_0x488dc8._0x22fc35,0x37b))/0x6+-parseInt(_0x1dcc07(0x35d,0x387,0x38d,0x3a7))/0x7+-parseInt(_0x1dcc07(0x352,0x398,0x36a,0x34f))/0x8*(parseInt(_0x1221a1(_0x488dc8._0x3b8611,0x3be,0x3fa,_0x488dc8._0xce374))/0x9)+-parseInt(_0x1221a1(_0x488dc8._0x2a455a,_0x488dc8._0x3c6667,0x3f3,0x479))/0xa*(-parseInt(_0x1dcc07(0x455,_0x488dc8._0x1b0bc1,0x448,_0x488dc8._0x534fa0))/0xb);if(_0x13f1b5===_0x372e8e)break;else _0x72d5e2['push'](_0x72d5e2['shift']());}catch(_0x44e4fa){_0x72d5e2['push'](_0x72d5e2['shift']());}}}(_0x39d0,0xda6c6));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-EJTTW4JQ.js';import{getTextFromMessage}from'../chunk-C6OLKGP6.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function _0x39d0(){const _0x26b7be=['ugf0AcbPCYbUB3qGysbMAwXLoIa','igzHAwXLzc4','zMLSzq','zxHPDcbJB2rLia','ru5pru5u','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLigzPBguGy29UDgvUDhmU','ugfJA2fNzxm','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','zNjVBq','Aw5KzxHpzG','CgLK','CMfUzg9T','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','z2XVyG','ls1NBg9I','mteYotK3nvnPweHwtW','yxnZAwDU','A2LSBa','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','y29Kzq','B2zM','BNvTyMvY','DxbKyxrL','CNvUswq','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','u2HLBgWGBM90igzVDw5KoIa','y21KlMv4zq','C3rYAw5N','Cgf0DgvYBIbPCYbYzxf1AxjLza','zNvUy3rPB24','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','l3vZCI9IAw4VyMfZAa','mJrrrKPVu1O','ls1NBg9IpseUz2L0lYO','B3v0Chv0','AgfZ','z2v0','mtmXmJi5ow5JwNLrAa','B3rOzxi','BgLUzuvUza','ihDHCYbHyM9YDgvKlG','C3rHCNrZv2L0Aa','zgf0yq','uhjVz3jHBuzPBgvZ','tM8GC3vJAcbMAwXLoIaN','wZ0+nY04kcLD','q29Tu3bLyW','C3LTBgLUAW','Bwf4','mZKWmZG1yMzUsxzW','C3jJl2v4yw1WBgvZl2rLBw8UDhm','Aw5WDxq','C2vZC2LVBKLK','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','CgfJA2fNzs5QC29U','mZi1vu5lB3vs','DgvZDa','C3jJl2fNzw50l2fNzw50lNrZ','ywDLBNrZ','ls1YzwDLEha','A2LSBgvK','nZq3nJrNuMrWzLa','B2XKvgv4Da','C3rYAw5NAwz5','CMvZDwX0','AxngAwXL','l3vZCI9IAw4VCMC','CMLWz3jLCcbMywLSzwq6ia','yM9VBgvHBG','CMLWz3jLCa','xg5DkJ8','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','ywjVCNrLza','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','zxjYB3jnzxnZywDL','CMvHC29U','BM93','C2L6zq','rMLSzuvKAxq','rMLSzu5LDW','BgvUz3rO','l2jPBI9YzW','BgLUzvn0yxj0','y3jSzG','zw52','v2LUr2v0','C2LNBMfS','C3rKB3v0','ChvZAa','y2XVC2u','BMfTzq','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','zMLSDgvY','C3rKzxjY','yMLYDgH0Aw1L','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','l2jPBI9ZAa','zMLSzvbHDgG','Bg9JywXLq29TCgfYzq','zMLUywXnzxnZywDLvgv4Da','twLJCM9ZB2z0','ls1MAwXLCW','AxnbyNnVBhv0zq','D2LUmZi','CMvZB2X2zq','uhjVz3jHBuzPBgvZkhG4nIK','BxrPBwu','BwfW','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','ugf0AcbPCYbVDxrZAwrLihDVCMTZCgfJztOG','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','AxngAw5PDgu','zxjYB3i','CMvWBgfJzq','l3vZCI9IAw4VC2G','u0HfteW','D3jPDgu','y29TBwfUza','C2XPy2u','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','CgXHDgzVCM0','lNrTCc4','l29WDc9OB21LyNjLDY9IAw4VCMC','AxneAxjLy3rVCNK','zw50CMLLCW','lI4U','BxrPBwvnCW','zgvSzwDHDgvKlxj1BI0','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','y2HHCKnVzgvbDa','ig1HDgnO','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uUie9WDgLVBMfSBhKGC3bLy2LMEsbSAw5LihjHBMDLCY4','DhjPBuvUza','y29UDgv4Da','AxndB250zxH0','DgHLBG','B3jPz2LUvg9VBenHBgXjza','r3jLCa','C3rHDhvZ','DhjPBq','mti0m3D4v3PQzW','lu5VuhjVzMLSzq','Aw5JBhvKzq','AwDUB3jL','qMfZAa','C2v0','Dg9tDhjPBMC','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','mJH4ywLUv04','y3DK','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','CgfYzw50u2vZC2LVBKLK','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','vw5RBM93BIb0B29SoIa','BgLTAxq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','Dg9ju09tDhjPBMC','C3bSAxq','l2jPBI9IyxnO','BMv3vgv4Da','yMfZzw5HBwu','Dhj1BMm','zw5K','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','rMLSzsb3CML0DgvUigf0ia','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLlG','mJe5ntqWwMXWrgnM','l3bPza','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','AxnbCNjHEq','CgLWzq','C3jJl3nOyxjLzc90ExbLCY50CW','DxrMoa','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','Agv4','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','C29YDa','BgLUzvrLEhq','zMLUywXnzxnZywDL','D2HLCMuGCMC','AM9PBG','CMvSyxrPDMu','y2f0y2G','rM91BMqG','Cgf0DgvYBG','qxnZAwDUvgfZAW','ienHDxnLoIa','B2jQzwn0','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4Gysb3B3jRC3bHy2uGzgLYzwn0B3j5lG','mJC3odGXvxPbwKvn','lw5i','o1TE','zgvMyxvSDfrPBwvVDxrnCW','BwvZC2fNzq','CNvUBMLUzW','Dg9VBfjLC3vSDhm','BwLU','u0Lhs0Lmta','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','DgfZAW','qwDLBNqGCNvUia','C3rYAxbbBNnP','zgvZy3jPChrPB24','C2HLBgXqyxrO','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','CgfYC2vjBNq','B25Jzq','y29UDgvUDa','ywDLBNrjza','Bw9Kzq','C2HPzNq','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','nda3mJu2mhvKzNDMCq','zgLYBMfTzq','CMCUzxHL','zgvMyxvSDen3za','Cgf0Aa'];_0x39d0=function(){return _0x26b7be;};return _0x39d0();}import{spawn}from'child_process';import{statSync}from'fs';import*as _0x20a4fc from'os';import*as _0x366479 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';var DEFAULT_DESCRIPTION=_0x5c1169(0x542,0x520,0x526,0x58f),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x11bf24){return _0x11bf24 instanceof Error;}function shellExists(_0x438b4a){const _0x5f1475={_0x53b3e9:0x330,_0x4e1b2f:0x375,_0x6d5bc2:0x3ba,_0x1de1e6:0x408,_0x185715:0x3c2},_0x3187c9={_0x339904:0x175,_0xa388c1:0x1e0},_0x157d26={_0x2dbda4:0x1a4,_0xce0638:0xe7,_0x5ca49c:0x31};function _0x40d64c(_0x1c6128,_0x2a1f19,_0x363dbf,_0x185f23){return _0x5c1169(_0x1c6128-_0x157d26._0x2dbda4,_0x2a1f19,_0x185f23- -_0x157d26._0xce0638,_0x185f23-_0x157d26._0x5ca49c);}function _0x3196a1(_0x254c71,_0x233afa,_0x52c792,_0xb42134){return _0x5c1169(_0x254c71-_0x3187c9._0x339904,_0x254c71,_0x52c792- -_0x3187c9._0xa388c1,_0xb42134-0x82);}try{const _0x467da1=statSync(_0x438b4a);return _0x467da1[_0x3196a1(_0x5f1475._0x53b3e9,0x30c,_0x5f1475._0x4e1b2f,_0x5f1475._0x6d5bc2)]()&&(_0x467da1[_0x3196a1(0x3b7,0x411,_0x5f1475._0x1de1e6,_0x5f1475._0x185715)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x12cc19){const _0x2cbd9a={_0x204435:0x51b,_0x25a58a:0x526,_0x14abed:0x5e3,_0x265928:0x578,_0xf6088f:0x590,_0x2850ed:0x601,_0x4404f1:0x5f3,_0x5d43a9:0x5a2,_0x3ab781:0x604,_0x1ad2d0:0x572,_0xc9892a:0x4ba,_0xef696c:0x58b,_0x2fa882:0x5e8,_0x762be9:0x4d9,_0xc04007:0x4c4,_0x303f44:0x619,_0x54afdd:0x5fa,_0x449f20:0x621,_0x4ec8d0:0x4db,_0x16d048:0x4f1,_0x5a377c:0x5fb,_0x3d5f04:0x63d,_0x493599:0x68c},_0x2e49b7={_0x3998cf:0x34,_0xc1088d:0x190};if(_0x12cc19)return _0x12cc19;function _0x594779(_0x24d8bb,_0x157ecb,_0x479037,_0x49cf31){return _0x5c1169(_0x24d8bb-0x14a,_0x49cf31,_0x24d8bb- -0x8f,_0x49cf31-0xbd);}if(_0x20a4fc[_0x594779(0x4fd,0x551,_0x2cbd9a._0x204435,0x4a3)]()===_0x594779(0x4ec,0x480,0x497,_0x2cbd9a._0x25a58a))return process[_0x5be598(_0x2cbd9a._0x14abed,0x5dc,_0x2cbd9a._0x265928,0x583)][_0x5be598(_0x2cbd9a._0xf6088f,0x5b6,_0x2cbd9a._0x2850ed,0x559)]||_0x5be598(_0x2cbd9a._0x4404f1,_0x2cbd9a._0x5d43a9,_0x2cbd9a._0x3ab781,_0x2cbd9a._0x1ad2d0);const _0x5dc622=[_0x594779(0x525,0x567,_0x2cbd9a._0xc9892a,_0x2cbd9a._0xef696c),_0x5be598(0x59b,_0x2cbd9a._0x2fa882,0x610,0x59c),_0x594779(0x4a4,_0x2cbd9a._0x762be9,0x4cb,_0x2cbd9a._0xc04007),_0x5be598(_0x2cbd9a._0x303f44,_0x2cbd9a._0x54afdd,0x5a4,_0x2cbd9a._0x449f20)];for(const _0x3c50fc of _0x5dc622){if(shellExists(_0x3c50fc))return _0x3c50fc;}function _0x5be598(_0x2a7613,_0x2d406b,_0x1162ee,_0x2fae29){return _0x5c1169(_0x2a7613-_0x2e49b7._0x3998cf,_0x1162ee,_0x2d406b-0x74,_0x2fae29-_0x2e49b7._0xc1088d);}const _0x45a9da=process[_0x594779(0x4d9,_0x2cbd9a._0x4ec8d0,0x4da,_0x2cbd9a._0x16d048)][_0x5be598(0x657,_0x2cbd9a._0x5a377c,0x5ff,0x5ea)];if(_0x45a9da&&shellExists(_0x45a9da))return _0x45a9da;return _0x5be598(0x648,0x628,_0x2cbd9a._0x3d5f04,_0x2cbd9a._0x493599);}function buildShellArgs(_0x51665e,_0x5e4b9a){const _0x229b56={_0x20cee1:0x54a,_0x5c357f:0x5a1,_0x5fbb57:0x345,_0x4fba15:0x321,_0x273d18:0x5b6},_0x1cf18d={_0x206a2a:0xc7,_0x3fb01d:0x95},_0x5cf37b={_0x504af1:0x13d};function _0x3d97f6(_0x46246e,_0x33fb30,_0x645062,_0x4470f3){return _0x5c1169(_0x46246e-_0x5cf37b._0x504af1,_0x46246e,_0x645062- -0x207,_0x4470f3-0xe8);}function _0x24ba44(_0xabe06c,_0x26dddb,_0x499ee,_0x323533){return _0x5c1169(_0xabe06c-_0x1cf18d._0x206a2a,_0x499ee,_0x26dddb-0x15,_0x323533-_0x1cf18d._0x3fb01d);}if(_0x20a4fc[_0x24ba44(_0x229b56._0x20cee1,_0x229b56._0x5c357f,0x599,0x577)]()==='win32'){const _0x91550d=/cmd(\.exe)?$/i[_0x3d97f6(0x2ff,0x2e6,_0x229b56._0x5fbb57,_0x229b56._0x4fba15)](_0x5e4b9a);return _0x91550d?['/d','/s','/c',_0x51665e]:['-NoLogo',_0x24ba44(0x5ea,_0x229b56._0x273d18,0x55f,0x5b1),'-Command',_0x51665e];}return['-c',_0x51665e];}function stripAnsiAndControls(_0x28b2e4){const _0xf8a4d3={_0x55a481:0x44c,_0x21df4c:0x34,_0x40970b:0x28,_0x36130a:0x1,_0x54e880:0x6b,_0x505bbf:0x53,_0x4c9d7f:0x59,_0x528f90:0x496,_0x4ea447:0x47,_0x1d4836:0x4c,_0x2f449e:0x70,_0x557948:0x3fc,_0x5dd147:0x72,_0x484c5f:0x52},_0x3639ad={_0xcfbdb5:0x198,_0x4a7152:0x1c4},_0x394402={_0x88bd50:0x1a1,_0x2e5176:0x7};function _0x3431b9(_0x13dfc5,_0x36f858,_0x658ab3,_0x3c4566){return _0x5c1169(_0x13dfc5-_0x394402._0x88bd50,_0x3c4566,_0x658ab3- -0x139,_0x3c4566-_0x394402._0x2e5176);}function _0xc81508(_0x5152e7,_0x14453a,_0x2a487f,_0x169388){return _0x5c1169(_0x5152e7-_0x3639ad._0xcfbdb5,_0x169388,_0x14453a- -0x5ad,_0x169388-_0x3639ad._0x4a7152);}_0x28b2e4=stripVTControlCharacters(_0x28b2e4);const _0x5277b1='\x1b',_0x7d470c='\x07';return _0x28b2e4=_0x28b2e4[_0x3431b9(0x461,0x493,_0xf8a4d3._0x55a481,0x481)](new RegExp(_0xc81508(-_0xf8a4d3._0x21df4c,_0xf8a4d3._0x40970b,-_0xf8a4d3._0x36130a,_0xf8a4d3._0x54e880)+_0x7d470c+_0xc81508(0x7,-_0xf8a4d3._0x505bbf,-0x98,-_0xf8a4d3._0x4c9d7f)+_0x7d470c,'g'),''),_0x28b2e4=_0x28b2e4[_0xc81508(-0x1f,-0x28,-0x88,-0x65)](new RegExp(';[^\x5cn]*?'+_0x5277b1+'\x5c\x5c','g'),''),_0x28b2e4=_0x28b2e4['replace'](new RegExp(_0x7d470c,'g'),''),_0x28b2e4=_0x28b2e4[_0x3431b9(0x3f0,_0xf8a4d3._0x528f90,_0xf8a4d3._0x55a481,0x3ef)](new RegExp(_0x5277b1+'[P_^][\x5cs\x5cS]*?'+_0x5277b1+'\x5c\x5c','g'),''),_0x28b2e4=_0x28b2e4['replace'](new RegExp(_0x5277b1+_0xc81508(-_0xf8a4d3._0x4ea447,-0x6c,-_0xf8a4d3._0x1d4836,-_0xf8a4d3._0x2f449e),'g'),''),_0x28b2e4=_0x28b2e4[_0x3431b9(_0xf8a4d3._0x557948,0x4b4,_0xf8a4d3._0x55a481,0x478)](/[\u0080-\u009F]/g,''),_0x28b2e4=_0x28b2e4[_0xc81508(-0x13,-0x28,-_0xf8a4d3._0x2f449e,-0x62)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x28b2e4=_0x28b2e4[_0xc81508(-_0xf8a4d3._0x5dd147,-0x28,-_0xf8a4d3._0x484c5f,-0x15)](/[\u23CE\u2424]/g,''),_0x28b2e4;}function resolveWorkingDirectory(_0x2b62a4,_0x295b68){const _0x21ed79={_0x19b1ff:0x328,_0x3c226b:0x391,_0x47578b:0x3de,_0x21a009:0x371,_0x5c208a:0x37b},_0x1bb1b1={_0x4f0825:0x1e7,_0x1e3fcc:0x252,_0x5c7353:0x181},_0x110cb2={_0x4151ba:0x157};function _0x1a646c(_0x3fd529,_0xbad02c,_0xb76aa0,_0x45d2f1){return _0x5c1169(_0x3fd529-_0x110cb2._0x4151ba,_0xbad02c,_0x45d2f1- -0x673,_0x45d2f1-0x11d);}const _0x68e62f=_0x2b62a4?_0x366479[_0x263d23(0x32e,_0x21ed79._0x19b1ff,0x36e,0x345)](_0x2b62a4)?_0x2b62a4:_0x366479['resolve'](_0x295b68,_0x2b62a4):_0x295b68;function _0x263d23(_0x4776b8,_0x42a3a8,_0x3cc89e,_0x1a9268){return _0x5c1169(_0x4776b8-_0x1bb1b1._0x4f0825,_0x1a9268,_0x42a3a8- -_0x1bb1b1._0x1e3fcc,_0x1a9268-_0x1bb1b1._0x5c7353);}try{const _0x59b5a4=statSync(_0x68e62f);if(!_0x59b5a4['isDirectory']())throw new ToolExecutionError(_0x263d23(0x33b,_0x21ed79._0x3c226b,_0x21ed79._0x47578b,0x39f)+_0x68e62f,{'cwd':_0x68e62f});return _0x68e62f;}catch(_0x21836e){if(_0x21836e instanceof ToolExecutionError)throw _0x21836e;throw new ToolExecutionError(_0x263d23(_0x21ed79._0x21a009,0x38a,_0x21ed79._0x5c208a,0x33e)+_0x68e62f,{'cwd':_0x68e62f});}}function killProcessGroup(_0x5bb2a6,_0x35c00b,_0x2b5595=_0x27a792(0x374,0x2f9,0x31e,0x362)){const _0x787b45={_0x4017d2:0x474,_0x2f1a8e:0x297,_0x3d53f9:0x2a3,_0x30b058:0x2a8,_0x5d035c:0x1cb,_0x4ff041:0x19e,_0x2036b0:0x24b,_0x2d4f09:0x4dd,_0x43a897:0x49f,_0x34e36d:0x417,_0x20e4be:0x452,_0x22004e:0x247,_0x5e2d46:0x1bf},_0x15d354={_0x1beb82:0x107,_0x2a0c6b:0x198},_0x191bdf={_0x4638c6:0xa7,_0x40c701:0xad};function _0x242c57(_0x406745,_0x12b424,_0x4e3483,_0x2a7279){return _0x27a792(_0x406745-_0x191bdf._0x4638c6,_0x12b424-0x66,_0x2a7279,_0x12b424- -_0x191bdf._0x40c701);}if(!_0x5bb2a6[_0x2b10e8(0x443,_0x787b45._0x4017d2,0x417,0x42c)])return;if(_0x35c00b)try{spawn('taskkill',[_0x242c57(0x262,_0x787b45._0x2f1a8e,_0x787b45._0x3d53f9,_0x787b45._0x30b058),_0x5bb2a6[_0x242c57(_0x787b45._0x5d035c,0x1f8,_0x787b45._0x4ff041,_0x787b45._0x2036b0)][_0x2b10e8(_0x787b45._0x2d4f09,0x4d2,_0x787b45._0x43a897,0x4a6)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x5bb2a6['kill'](_0x2b5595);return;}function _0x2b10e8(_0x504788,_0x9656f6,_0x42f821,_0x509657){return _0x5c1169(_0x504788-0xf6,_0x9656f6,_0x42f821- -_0x15d354._0x1beb82,_0x509657-_0x15d354._0x2a0c6b);}try{process['kill'](-_0x5bb2a6[_0x2b10e8(0x3ab,0x483,_0x787b45._0x34e36d,_0x787b45._0x20e4be)],_0x2b5595);}catch{_0x5bb2a6[_0x242c57(0x234,0x1ff,_0x787b45._0x22004e,_0x787b45._0x5e2d46)](_0x2b5595);}}function appendChunk(_0x36fbe2,_0x9371a3,_0x3c90df,_0x2a8ad0,_0x554e4b){const _0x109f2b={_0x53a400:0x13e,_0x552f41:0x10f,_0x21c80b:0x11f,_0x251b53:0x16d,_0x337fa0:0x16b,_0x2b93b6:0x117,_0x2c2613:0x137},_0x1fd205={_0x2f468c:0x683,_0x454d53:0x1dd},_0x2c8fca={_0x13969c:0x1d6},_0x584020=_0x2a8ad0?stripAnsiAndControls(_0x3c90df):_0x3c90df;if(_0x584020[_0xb24e35(-_0x109f2b._0x53a400,-_0x109f2b._0x552f41,-_0x109f2b._0x21c80b,-_0x109f2b._0x251b53)]===0x0)return;_0x36fbe2[_0xb24e35(-0xe9,-_0x109f2b._0x337fa0,-_0x109f2b._0x2b93b6,-0xc0)](_0x584020);function _0x149387(_0x4ee6cd,_0x1284ee,_0x3c0b48,_0x204d7f){return _0x5c1169(_0x4ee6cd-0x1c1,_0x4ee6cd,_0x3c0b48- -0x486,_0x204d7f-_0x2c8fca._0x13969c);}_0x9371a3[_0xb24e35(-0xf9,-0x16c,-0x117,-_0x109f2b._0x2c2613)](_0x584020);function _0xb24e35(_0x1fe90d,_0x50998b,_0x343aec,_0x2ae4e2){return _0x5c1169(_0x1fe90d-0x15,_0x1fe90d,_0x343aec- -_0x1fd205._0x2f468c,_0x2ae4e2-_0x1fd205._0x454d53);}_0x554e4b();}function createBashTool(_0x5abb13={}){const _0x3c8840={_0x43556b:0x9c,_0xd00d22:0x89,_0x495022:0x46,_0x22c4b1:0x10,_0x537118:0x117,_0x242df7:0xbc,_0x3897be:0x7,_0x22f418:0xc,_0x28e4c4:0x1d,_0x5744b5:0x1c7,_0x304d8c:0x10e,_0x857ec4:0x139,_0x4d1864:0x119,_0x52e53c:0x177,_0x21e2ec:0xfd,_0x296ba9:0xef,_0x1ed0f3:0x10c,_0x5a2b37:0xe5,_0x3eb73d:0x1ae,_0x1219ff:0x200,_0x38c2a3:0x1b4,_0x5bdb7a:0x193,_0x4cf10c:0x152},_0xdd6db7={_0x3b3d14:0x24c,_0x1b28e6:0x257,_0x195ebb:0x280,_0x50ae63:0x212,_0x17ccb5:0x1a8,_0x58dfe0:0x163,_0x3be162:0x185,_0x517acd:0xe3,_0x9b271e:0x19d,_0x4f3737:0x140,_0x482e09:0x10e,_0x5a2bc6:0x167,_0x526b78:0x15f,_0x4d5624:0x295,_0x2f6a24:0x249,_0x2c52a5:0x28a,_0x3a69b2:0x20b,_0x356ba5:0x266,_0x853a91:0x271,_0x3b198e:0x13c,_0x4292d5:0x13e,_0x4dcaf8:0xde,_0x521568:0x2f4,_0x1df949:0x258,_0x43ddfe:0x239,_0x58964a:0x2d5,_0x21c12f:0x2a1,_0x335075:0x2db,_0x488075:0x1c1,_0xf08114:0x142,_0x9d877a:0x1a9,_0x3cbb2c:0x196,_0x40ea18:0x97,_0x377586:0xee,_0x5b5a6e:0xfa,_0x4b3692:0x113,_0x6497a2:0x2bd,_0x55ce32:0x340,_0x57a34a:0x152,_0xc85ac3:0x153,_0xe733ea:0x178,_0x308a10:0x2c5,_0x525538:0x269,_0x211b93:0x143,_0x2a7021:0x114,_0x550874:0xc7,_0x59032f:0x280,_0x2c9285:0x265,_0x3da564:0xf3,_0x29a4e2:0xfd,_0x5e3cc4:0x130,_0x3a0e01:0x118,_0x283c10:0x18c,_0x552012:0x166,_0xdb7757:0x145,_0x295b53:0x140,_0x208dbc:0x16c,_0x12024a:0x280,_0x4abc04:0x25b,_0x45adc7:0x168,_0x125e1d:0x1a7,_0x14021d:0x121,_0x3cfd82:0x202,_0x12c464:0x290,_0xcd659c:0x2d1,_0x1e62f4:0x2e7,_0x21a994:0x9a,_0x31e601:0xf3,_0x1d9818:0x1da,_0x576ef1:0x2b0,_0x24323c:0x27e,_0x122a4c:0x32f,_0x221327:0x2d5,_0x191427:0x273,_0x142e7c:0x287,_0x35b134:0x2ec,_0x2e1ade:0x178,_0x3543c4:0x132,_0x457c06:0x174,_0x562c41:0x217,_0x4c1717:0x1ea,_0x33325e:0x20f},_0x5f5348={_0x46c82d:0x284},_0x31a161={_0x441b81:0x125,_0x10ece8:0x169},_0x20c809={_0x2bf95b:0x1ce,_0x84516b:0x2},_0x4f34ab={_0x2f6b0c:0x159};function _0x247c90(_0x520824,_0x477dc3,_0x4a65a1,_0x24a09b){return _0x27a792(_0x520824-0x72,_0x477dc3-_0x4f34ab._0x2f6b0c,_0x520824,_0x24a09b- -0x31a);}const _0x3cda1e=_0x366479[_0x247c90(-0x1c,-0x4f,-0x63,-0x17)](_0x5abb13[_0x247c90(-_0x3c8840._0x43556b,-0x75,-_0x3c8840._0xd00d22,-0x81)]??process[_0x247c90(0x1a,-_0x3c8840._0x495022,_0x3c8840._0x22c4b1,0x18)]()),_0x1318ed=_0x5abb13[_0x376fe0(-0x107,-_0x3c8840._0x537118,-_0x3c8840._0x242df7,-0xdc)]??DEFAULT_TIMEOUT_MS,_0x7bf0a6=_0x5abb13[_0x247c90(_0x3c8840._0x3897be,_0x3c8840._0x22f418,-_0x3c8840._0x28e4c4,0x4c)]??!![],_0x3fd812=_0x5abb13[_0x376fe0(-0x16f,-_0x3c8840._0x5744b5,-_0x3c8840._0x304d8c,-0x17c)]??_0x376fe0(-_0x3c8840._0x857ec4,-_0x3c8840._0x4d1864,-_0x3c8840._0x52e53c,-0x1a6);function _0x376fe0(_0x1047cf,_0x1e0b3e,_0x757d3e,_0x4cdd3c){return _0x27a792(_0x1047cf-_0x20c809._0x2bf95b,_0x1e0b3e-_0x20c809._0x84516b,_0x1e0b3e,_0x1047cf- -0x464);}return defineTool({'name':_0x3fd812,'description':_0x5abb13[_0x376fe0(-_0x3c8840._0x21e2ec,-_0x3c8840._0x296ba9,-0xcf,-0x113)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x376fe0(-_0x3c8840._0x1ed0f3,-0x15b,-0xf6,-_0x3c8840._0x5a2b37),'properties':{'command':{'type':_0x376fe0(-_0x3c8840._0x3eb73d,-0x155,-0x15c,-_0x3c8840._0x1219ff)},'cwd':{'type':_0x376fe0(-_0x3c8840._0x3eb73d,-0x1af,-0x1cd,-0x189)},'timeoutMs':{'type':_0x376fe0(-_0x3c8840._0x38c2a3,-0x216,-0x197,-_0x3c8840._0x5bdb7a)},'ignoreOutput':{'type':_0x376fe0(-0x185,-0x1aa,-0x13f,-_0x3c8840._0x4cf10c)}},'required':['command']},async *'execute'(_0x1626de,_0x4a3525){const _0x392ec8={_0x1d72a9:0x47a,_0x5b4ca7:0x48c,_0x281641:0x4bd,_0x2fe79d:0x4db,_0x3f8337:0x474,_0x1c4d9b:0x4df,_0x3580dd:0x1bd,_0x1bf3b2:0x1fa},_0x3f169c={_0x1a801b:0x1bb,_0x4a9fbb:0x1e7,_0x24146c:0x1c5,_0x26c68f:0x1b9},_0xf3a95d={_0x2d2719:0x570},_0x126911={_0x45a1f2:0x1a9,_0x1eebcb:0x8a,_0x685939:0x1b},_0x36091d={_0x52ba76:0x2f9,_0x38ad13:0x306,_0x4a8a3c:0x35e},_0x32c36c={_0x2d9c61:0x53,_0x126d41:0x20},_0x2457fd={_0x43dc5a:0x110},_0x100a62={_0x1f7b92:0x137,_0x1ac03a:0x1a5},_0x3b7765={_0x1c653c:0x291};function _0x4b4e0f(_0x37492c,_0x5ad077,_0x1c1f30,_0x5025bd){return _0x247c90(_0x37492c,_0x5ad077-0x7c,_0x1c1f30-0xcf,_0x1c1f30-_0x3b7765._0x1c653c);}const _0x5e622a=_0x1626de['timeoutMs']??_0x1318ed;if(!Number['isFinite'](_0x5e622a)||_0x5e622a<0x1)throw new ToolExecutionError(_0x4b4e0f(_0xdd6db7._0x3b3d14,_0xdd6db7._0x1b28e6,_0xdd6db7._0x195ebb,_0xdd6db7._0x50ae63),{'command':_0x1626de[_0x139f2f(_0xdd6db7._0x17ccb5,_0xdd6db7._0x58dfe0,0x15f,_0xdd6db7._0x3be162)]});throwIfAborted(_0x4a3525[_0x139f2f(_0xdd6db7._0x517acd,_0xdd6db7._0x9b271e,_0xdd6db7._0x4f3737,_0xdd6db7._0x482e09)]);const _0x155efa=resolveWorkingDirectory(_0x1626de['cwd'],_0x3cda1e),_0x3a546d=_0x1626de['ignoreOutput']??![],_0x417f89=resolveDefaultShell(_0x5abb13[_0x139f2f(0x17d,0x174,0x1b7,_0xdd6db7._0x5a2bc6)]),_0x455837=buildShellArgs(_0x1626de[_0x139f2f(_0xdd6db7._0x4f3737,0x145,_0xdd6db7._0x526b78,0x10b)],_0x417f89),_0x34492e=_0x20a4fc[_0x4b4e0f(_0xdd6db7._0x4d5624,_0xdd6db7._0x2f6a24,_0xdd6db7._0x2c52a5,0x2a1)]()==='win32';let _0x4102ee;try{_0x4102ee=spawn(_0x417f89,_0x455837,{'cwd':_0x155efa,'env':{...process[_0x4b4e0f(0x215,_0xdd6db7._0x3a69b2,_0xdd6db7._0x356ba5,_0xdd6db7._0x853a91)],..._0x5abb13[_0x139f2f(_0xdd6db7._0x3b198e,0xeb,_0xdd6db7._0x4292d5,_0xdd6db7._0x4dcaf8)]??{}},'stdio':_0x3a546d?['ignore',_0x4b4e0f(_0xdd6db7._0x521568,0x2dd,0x2a1,_0xdd6db7._0x1df949),_0x4b4e0f(_0xdd6db7._0x43ddfe,_0xdd6db7._0x58964a,_0xdd6db7._0x21c12f,_0xdd6db7._0x335075)]:['ignore',_0x139f2f(_0xdd6db7._0x488075,0x19c,0x196,_0xdd6db7._0xf08114),_0x139f2f(_0xdd6db7._0x9d877a,0x161,_0xdd6db7._0x3cbb2c,0x13d)],'shell':![],'windowsHide':!![],'detached':!_0x34492e});}catch(_0x33e305){if(isErrnoException(_0x33e305)&&_0x33e305['code']===_0x139f2f(0xd8,_0xdd6db7._0x40ea18,_0xdd6db7._0x377586,0xf7))throw new ToolExecutionError(_0x139f2f(_0xdd6db7._0x5b5a6e,0xf2,0x103,0xbf)+_0x417f89,{'command':_0x1626de[_0x139f2f(0x110,_0xdd6db7._0x4b3692,0x15f,0xf8)],'cwd':_0x155efa,'shellPath':_0x417f89});throw new ToolExecutionError(_0x33e305 instanceof Error?_0x33e305[_0x4b4e0f(0x277,_0xdd6db7._0x6497a2,0x2d5,_0xdd6db7._0x55ce32)]:String(_0x33e305),{'command':_0x1626de['command'],'cwd':_0x155efa,'shellPath':_0x417f89});}const _0x5fe90=[],_0x5f2e4=[],_0x1d580b=new StringDecoder(_0x139f2f(_0xdd6db7._0x57a34a,_0xdd6db7._0xc85ac3,0x198,_0xdd6db7._0xe733ea)),_0x283fba=new StringDecoder(_0x4b4e0f(0x2f7,0x25b,0x2c0,0x2c4));let _0x530cf5,_0x4b777f=![];function _0x139f2f(_0x8f2a1c,_0x2bca00,_0x2949f6,_0x706305){return _0x247c90(_0x2bca00,_0x2bca00-0x141,_0x2949f6-_0x31a161._0x441b81,_0x2949f6-_0x31a161._0x10ece8);}let _0x3fac91;const _0x560d03=()=>{if(!_0x530cf5)return;const _0x369627=_0x530cf5;_0x530cf5=void 0x0,_0x369627();},_0xd90139=async()=>{function _0x43eff2(_0xd07c01,_0x124bd4,_0x293409,_0x4db24a){return _0x4b4e0f(_0x4db24a,_0x124bd4-_0x100a62._0x1f7b92,_0x293409- -_0x100a62._0x1ac03a,_0x4db24a-0x135);}if(_0x5f2e4[_0x43eff2(0x57,0x11e,0xbd,_0x2457fd._0x43dc5a)]>0x0||_0x4b777f)return;await new Promise(_0x57c70d=>{_0x530cf5=_0x57c70d;});},_0x292dd7=_0x201040=>{appendChunk(_0x5fe90,_0x5f2e4,_0x1d580b['write'](_0x201040),_0x7bf0a6,_0x560d03);},_0x2bcb65=_0x42f88e=>{function _0x4d4957(_0x51097f,_0x359e3c,_0x26d631,_0x510129){return _0x4b4e0f(_0x510129,_0x359e3c-_0x32c36c._0x2d9c61,_0x359e3c-0x73,_0x510129-_0x32c36c._0x126d41);}appendChunk(_0x5fe90,_0x5f2e4,_0x283fba[_0x4d4957(0x2d3,_0x36091d._0x52ba76,_0x36091d._0x38ad13,_0x36091d._0x4a8a3c)](_0x42f88e),_0x7bf0a6,_0x560d03);};_0x4102ee[_0x4b4e0f(_0xdd6db7._0x308a10,0x2b3,_0xdd6db7._0x525538,0x241)]?.['on'](_0x139f2f(_0xdd6db7._0x211b93,0x100,_0xdd6db7._0x2a7021,_0xdd6db7._0x550874),_0x292dd7),_0x4102ee['stderr']?.['on'](_0x4b4e0f(0x224,0x1d9,0x23c,0x2a8),_0x2bcb65);let _0x276df8=![],_0x3c61df;const _0x590bea=addAbortListener(_0x4a3525[_0x4b4e0f(0x1fc,0x22d,0x268,0x25c)],()=>{const _0xada1e7={_0x70e543:0x1b1,_0x747bf8:0x59},_0x391017={_0x292a12:0x18e};_0x3fac91=toAbortError(_0x4a3525[_0xf04198(0x2ce,0x2ee,_0x5f5348._0x46c82d,0x2bc)][_0x5bef3c(0x1b6,0x18e,0x145,0x12e)]);function _0xf04198(_0x55776e,_0x238d03,_0x2c70cb,_0x8881ce){return _0x139f2f(_0x55776e-0x139,_0x8881ce,_0x55776e-_0x391017._0x292a12,_0x8881ce-0x79);}function _0x5bef3c(_0x5444cd,_0x7cdb81,_0x57d477,_0x2f63e4){return _0x139f2f(_0x5444cd-_0xada1e7._0x70e543,_0x57d477,_0x7cdb81-_0xada1e7._0x747bf8,_0x2f63e4-0x86);}_0x4b777f=!![],_0x560d03();try{killProcessGroup(_0x4102ee,_0x34492e);}catch{}});try{const _0xac1822=new Promise((_0x28edf3,_0x542e5d)=>{const _0x3fc633={_0x34369b:0x40},_0x13ac77={_0x3d3cdd:0x570,_0x10fa47:0x4bf,_0x3a6244:0x525,_0x1fedc3:0x51e},_0x3692ea={_0x28013c:0x122};function _0x51d7c4(_0x23f64e,_0x3ecb85,_0x229c7d,_0x5b6dd8){return _0x139f2f(_0x23f64e-_0x126911._0x45a1f2,_0x3ecb85,_0x229c7d-_0x126911._0x1eebcb,_0x5b6dd8-_0x126911._0x685939);}const _0x576f65=()=>{_0x3c61df&&(clearTimeout(_0x3c61df),_0x3c61df=void 0x0);function _0x868d11(_0x45470e,_0x1b30c1,_0x18f135,_0x322e75){return _0xdaaf(_0x322e75-_0x3692ea._0x28013c,_0x1b30c1);}_0x4102ee[_0x13b38f(_0x13ac77._0x3d3cdd,_0x13ac77._0x10fa47,0x587,_0x13ac77._0x3a6244)]('error',_0x46053e);function _0x13b38f(_0x400419,_0x2c3dfd,_0x53485a,_0xaa123b){return _0xdaaf(_0xaa123b-0x35f,_0x2c3dfd);}_0x4102ee[_0x13b38f(0x531,_0x13ac77._0x1fedc3,0x4c3,_0x13ac77._0x3a6244)]('close',_0x42814e);},_0x46053e=_0x45871f=>{_0x4b777f=!![],_0x560d03(),_0x576f65(),_0x542e5d(_0x3fac91??_0x45871f);};function _0x139bc9(_0x340221,_0x4e4f8b,_0x1956aa,_0x16b8b2){return _0x139f2f(_0x340221-0xcd,_0x16b8b2,_0x340221-0x320,_0x16b8b2-0x30);}const _0x42814e=(_0x16350c,_0x291496)=>{_0x276df8=!![],appendChunk(_0x5fe90,_0x5f2e4,_0x1d580b['end'](),_0x7bf0a6,_0x560d03),appendChunk(_0x5fe90,_0x5f2e4,_0x283fba[_0x2e0180(0x593,0x5ad,_0xf3a95d._0x2d2719,0x5d1)](),_0x7bf0a6,_0x560d03),_0x4b777f=!![];function _0x2e0180(_0x49925f,_0x38a711,_0x54ecfc,_0x1e2e61){return _0xdaaf(_0x1e2e61-0x37b,_0x49925f);}_0x560d03(),_0x576f65();if(_0x3fac91){_0x542e5d(_0x3fac91);return;}_0x28edf3({'code':_0x16350c,'signal':_0x291496});};_0x3c61df=setTimeout(()=>{const _0x71287c={_0x577a83:0x23d};_0x4b777f=!![];function _0x20f2e5(_0x57be85,_0x5a5637,_0x341918,_0x40c103){return _0xdaaf(_0x57be85- -_0x3fc633._0x34369b,_0x40c103);}_0x560d03(),_0x576f65();try{killProcessGroup(_0x4102ee,_0x34492e);}catch{}function _0x5c3448(_0x2c983c,_0x172942,_0x4005a7,_0x4554f7){return _0xdaaf(_0x4554f7-_0x71287c._0x577a83,_0x2c983c);}_0x542e5d(new ToolExecutionError(_0x20f2e5(_0x3f169c._0x1a801b,0x1fb,0x15f,0x1e0)+_0x5e622a+'\x20ms',{'command':_0x1626de[_0x20f2e5(_0x3f169c._0x4a9fbb,0x242,_0x3f169c._0x24146c,_0x3f169c._0x26c68f)],'cwd':_0x155efa,'shellPath':_0x417f89,'timeoutMs':_0x5e622a,'timedOut':!![]}));},_0x5e622a),_0x4102ee['once'](_0x139bc9(_0x392ec8._0x1d72a9,_0x392ec8._0x5b4ca7,0x4cf,_0x392ec8._0x281641),_0x46053e),_0x4102ee[_0x139bc9(_0x392ec8._0x2fe79d,0x497,_0x392ec8._0x3f8337,_0x392ec8._0x1c4d9b)](_0x51d7c4(0x20a,_0x392ec8._0x3580dd,0x1cd,_0x392ec8._0x1bf3b2),_0x42814e);});while(_0x5f2e4['length']>0x0||!_0x4b777f){if(_0x5f2e4[_0x4b4e0f(_0xdd6db7._0x59032f,_0xdd6db7._0x2c9285,0x262,0x2b5)]===0x0){await _0xd90139();continue;}const _0x23b0b5=_0x5f2e4['shift']();_0x23b0b5!==void 0x0&&(yield _0x23b0b5);}const _0x129b9c=await _0xac1822,_0x547611=_0x3a546d?_0x139f2f(0xdc,0x14d,0xed,_0xdd6db7._0x3da564)+(_0x129b9c[_0x139f2f(0x106,0x138,_0xdd6db7._0x29a4e2,_0xdd6db7._0x5e3cc4)]??0x0):_0x5fe90['join'](''),_0x585aaf={'command':_0x1626de[_0x139f2f(_0xdd6db7._0x3a0e01,_0xdd6db7._0x283c10,0x15f,_0xdd6db7._0x552012)],'cwd':_0x155efa,'exitCode':_0x129b9c['code']??0x0,'signal':_0x129b9c[_0x139f2f(0x160,_0xdd6db7._0xdb7757,_0xdd6db7._0x295b53,_0xdd6db7._0x208dbc)],'ignoreOutput':_0x3a546d,'shellPath':_0x417f89,'timeoutMs':_0x5e622a};if(_0x129b9c[_0x4b4e0f(0x1d9,_0xdd6db7._0x12024a,0x225,_0xdd6db7._0x4abc04)]!==0x0)throw new ToolExecutionError(_0x547611||_0x139f2f(_0xdd6db7._0x45adc7,0x225,0x1b8,_0xdd6db7._0x125e1d)+(_0x129b9c[_0x139f2f(0xb0,_0xdd6db7._0x14021d,_0xdd6db7._0x29a4e2,0x15b)]??0x0),_0x585aaf);return createToolOutput(_0x547611,_0x585aaf);}catch(_0x145030){while(_0x5f2e4[_0x4b4e0f(_0xdd6db7._0x3cfd82,_0xdd6db7._0x12c464,0x262,0x26b)]>0x0){const _0x1ad5ab=_0x5f2e4[_0x4b4e0f(_0xdd6db7._0xcd659c,0x353,_0xdd6db7._0x1e62f4,0x2d9)]();_0x1ad5ab!==void 0x0&&(yield _0x1ad5ab);}if(_0x145030 instanceof ToolExecutionError)throw _0x145030;if(_0x3fac91)throw _0x3fac91;if(isErrnoException(_0x145030)&&_0x145030[_0x139f2f(0x9e,_0xdd6db7._0x21a994,0xfd,_0xdd6db7._0x31e601)]===_0x4b4e0f(_0xdd6db7._0x1d9818,0x1d3,0x216,0x25d))throw new ToolExecutionError(_0x139f2f(0xee,_0xdd6db7._0x5b5a6e,0x103,0x104)+_0x417f89,{'command':_0x1626de[_0x4b4e0f(0x252,_0xdd6db7._0x576ef1,0x287,0x2c0)],'cwd':_0x155efa,'shellPath':_0x417f89});throw new ToolExecutionError(_0x145030 instanceof Error?_0x145030[_0x4b4e0f(_0xdd6db7._0x24323c,_0xdd6db7._0x122a4c,_0xdd6db7._0x221327,_0xdd6db7._0x191427)]:String(_0x145030),{'command':_0x1626de[_0x4b4e0f(_0xdd6db7._0x142e7c,_0xdd6db7._0x35b134,0x287,0x263)],'cwd':_0x155efa,'shellPath':_0x417f89});}finally{_0x3c61df&&clearTimeout(_0x3c61df);_0x590bea(),_0x4102ee[_0x139f2f(_0xdd6db7._0x2e1ade,_0xdd6db7._0x3543c4,0x141,_0xdd6db7._0x457c06)]?.['off'](_0x4b4e0f(0x231,_0xdd6db7._0x562c41,0x23c,0x266),_0x292dd7),_0x4102ee['stderr']?.['off'](_0x4b4e0f(0x20a,_0xdd6db7._0x4c1717,0x23c,0x280),_0x2bcb65);if(!_0x276df8&&_0x4102ee['pid']&&!_0x4102ee[_0x4b4e0f(0x248,0x281,0x24e,_0xdd6db7._0x33325e)])try{killProcessGroup(_0x4102ee,_0x34492e);}catch{}}}});}function _0x27a792(_0x26245a,_0x32adfa,_0x3ae8c9,_0x7d4956){const _0x357a40={_0x47335f:0xe9};return _0xdaaf(_0x7d4956-_0x357a40._0x47335f,_0x3ae8c9);}function createShellExecTool(_0x1c0c80={}){return createBashTool(_0x1c0c80);}import{createHash}from'crypto';import{readFile,rename,stat as _0x3a745a,writeFile}from'fs/promises';import*as _0x264aea from'path';import{stat}from'fs/promises';import*as _0x2b3c5c from'path';function resolveWorkspacePath(_0x420536,_0x26645b){const _0x5a5785={_0x10cdc7:0x283,_0x7ed7a7:0x28f,_0x3d391a:0x2a8,_0x2e3e4c:0x27e,_0x1eee7c:0xac,_0x106a85:0x28,_0x38930d:0x8d,_0x1d6158:0x5d,_0x962aef:0xa3,_0xfe6356:0xa6,_0x1fdf5f:0xae,_0x59fa5c:0x228},_0x308956={_0x428bb5:0x1b,_0x1c4d02:0x331},_0x2d8b90={_0x6ad815:0x1ec,_0x19c40d:0x628},_0x3fe959=_0x2b3c5c[_0x6d806b(_0x5a5785._0x10cdc7,_0x5a5785._0x7ed7a7,_0x5a5785._0x3d391a,0x24b)](_0x420536),_0x2acc59=_0x2b3c5c[_0x6d806b(_0x5a5785._0x2e3e4c,0x1e9,_0x5a5785._0x3d391a,0x24b)](_0x3fe959,_0x26645b);function _0x54ee2d(_0x4b90e1,_0x467734,_0x56f17f,_0x3fabcc){return _0x5c1169(_0x4b90e1-_0x2d8b90._0x6ad815,_0x56f17f,_0x3fabcc- -_0x2d8b90._0x19c40d,_0x3fabcc-0x109);}const _0x2b4303=_0x2b3c5c[_0x54ee2d(-_0x5a5785._0x1eee7c,-_0x5a5785._0x106a85,-_0x5a5785._0x38930d,-_0x5a5785._0x1d6158)](_0x3fe959,_0x2acc59);if(_0x2b4303===''||!_0x2b4303[_0x6d806b(0x25e,0x1f1,0x1d2,0x20c)]('..')&&!_0x2b3c5c[_0x54ee2d(-0x41,-_0x5a5785._0x962aef,-_0x5a5785._0xfe6356,-_0x5a5785._0x1fdf5f)](_0x2b4303))return _0x2acc59;function _0x6d806b(_0x450279,_0x59a4c1,_0x4d08e9,_0x46b5bb){return _0x5c1169(_0x450279-_0x308956._0x428bb5,_0x59a4c1,_0x46b5bb- -_0x308956._0x1c4d02,_0x46b5bb-0x1a5);}throw new ToolExecutionError(_0x6d806b(0x2b9,_0x5a5785._0x59fa5c,0x2b6,0x250)+_0x26645b,{'path':_0x26645b,'rootDir':_0x3fe959});}async function assertWorkspaceFile(_0xa1d3f7){const _0x502a1e={_0x5df1e:0x165,_0x1f16bb:0x1cb,_0x160337:0x21a,_0xbeaec1:0x1de},_0x4271a5={_0x2f732a:0x1c5,_0x568afa:0x15a},_0x57f153={_0x543db9:0x1e2,_0x569042:0x78,_0x301377:0x57};function _0x9068cb(_0x555ab9,_0x141caf,_0x5d9403,_0x200109){return _0x5c1169(_0x555ab9-_0x57f153._0x543db9,_0x555ab9,_0x5d9403- -_0x57f153._0x569042,_0x200109-_0x57f153._0x301377);}const _0x2f542f=await stat(_0xa1d3f7);function _0xe5dd69(_0x303b0b,_0x24b2c8,_0x3ed7ee,_0x3f7ee2){return _0x27a792(_0x303b0b-_0x4271a5._0x2f732a,_0x24b2c8-_0x4271a5._0x568afa,_0x303b0b,_0x24b2c8- -0x4a6);}if(!_0x2f542f[_0xe5dd69(-_0x502a1e._0x5df1e,-0x1ca,-_0x502a1e._0x1f16bb,-0x1cc)]())throw new ToolExecutionError(_0xe5dd69(-_0x502a1e._0x160337,-0x20b,-_0x502a1e._0xbeaec1,-0x226)+_0xa1d3f7,{'path':_0xa1d3f7});}function isProbablyBinary(_0x5c1884){return _0x5c1884['includes'](0x0);}function detectEol(_0x4d6b8b){const _0x3ba03c={_0x195370:0x364,_0xd11458:0x336,_0xa1d42f:0x352,_0x4a1433:0x335,_0x265a42:0x2f1},_0x1dc17a={_0x5f3664:0x1de};function _0x2d4604(_0x49292d,_0x1834ce,_0x331e71,_0x2c1c6b){return _0x27a792(_0x49292d-0x131,_0x1834ce-_0x1dc17a._0x5f3664,_0x1834ce,_0x49292d-0x263);}function _0x33429e(_0x29a03a,_0x57a587,_0x3c3caf,_0x3f5734){return _0x5c1169(_0x29a03a-0x98,_0x57a587,_0x3f5734- -0x219,_0x3f5734-0xce);}return/\r\n/[_0x33429e(_0x3ba03c._0x195370,0x36a,_0x3ba03c._0xd11458,0x333)](_0x4d6b8b['toString'](_0x33429e(0x3f6,_0x3ba03c._0xa1d42f,0x349,0x3a9)))?_0x33429e(_0x3ba03c._0x4a1433,0x357,_0x3ba03c._0x265a42,0x34e):'lf';}function normalizeToLf(_0x465768){return _0x465768['replace'](/\r\n/g,'\x0a');}function convertEol(_0x424b2e,_0x550a5a){const _0x5868d8={_0x1a8ab8:0x13c},_0x43eedf={_0x180e7c:0x111,_0x3a474d:0x211};function _0x39f9d6(_0x132170,_0x5a3f1d,_0x3047f4,_0x3f5000){return _0x27a792(_0x132170-0xa6,_0x5a3f1d-_0x43eedf._0x180e7c,_0x3047f4,_0x5a3f1d- -_0x43eedf._0x3a474d);}return _0x550a5a==='crlf'?_0x424b2e[_0x39f9d6(0x11d,0xfb,0x97,_0x5868d8._0x1a8ab8)](/\n/g,'\x0d\x0a'):_0x424b2e;}async function atomicWrite(_0x3d2501,_0x18658a){const _0x47c483={_0x18b971:0x32e,_0x243803:0x2f6,_0x32b148:0x3e8,_0x149e5f:0x38a,_0x44bb0d:0x1c8,_0x3607be:0x201,_0x3d1f70:0x1fb,_0x2ece24:0x1b4,_0x5dc2e4:0x258,_0x2ff023:0x1e3,_0x7f5a3f:0x19b,_0x1feb8c:0x180,_0x2b3ad2:0x33d,_0x2bc812:0x393,_0x4c5e25:0x366,_0x218add:0x1e1,_0xa8b322:0x1b7,_0x34a95a:0x1c5,_0x424cfa:0x233,_0x32c15a:0x160},_0x24d36e={_0x1984a0:0x4e};function _0x4a5668(_0x19c359,_0x56bdf4,_0x4e0947,_0x37d273){return _0x5c1169(_0x19c359-0x116,_0x37d273,_0x19c359- -0x1e2,_0x37d273-0x181);}const _0x1de9a3=_0x264aea[_0x4a5668(_0x47c483._0x18b971,0x386,0x2df,_0x47c483._0x243803)](_0x3d2501),_0xe4a0fc=_0x264aea[_0x4a5668(_0x47c483._0x32b148,0x423,_0x47c483._0x149e5f,0x416)](_0x1de9a3,_0x46ded3(0x22a,_0x47c483._0x44bb0d,_0x47c483._0x3607be,0x1d0)+_0x264aea[_0x46ded3(_0x47c483._0x3d1f70,0x1f1,_0x47c483._0x2ece24,_0x47c483._0x5dc2e4)](_0x3d2501)+'.'+Date[_0x46ded3(_0x47c483._0x2ff023,_0x47c483._0x7f5a3f,_0x47c483._0x1feb8c,0x161)]()+'.'+Math[_0x4a5668(_0x47c483._0x2b3ad2,_0x47c483._0x2bc812,0x321,_0x47c483._0x4c5e25)]()[_0x46ded3(0x1e9,_0x47c483._0x218add,_0x47c483._0xa8b322,0x198)](0x24)[_0x46ded3(0x185,_0x47c483._0x34a95a,_0x47c483._0x424cfa,_0x47c483._0x32c15a)](0x2));await writeFile(_0xe4a0fc,_0x18658a);function _0x46ded3(_0x5a397c,_0x3ff803,_0x5a02cf,_0x58ab8d){return _0x5c1169(_0x5a397c-_0x24d36e._0x1984a0,_0x58ab8d,_0x3ff803- -0x3c5,_0x58ab8d-0x1f4);}await rename(_0xe4a0fc,_0x3d2501);}function sha256(_0x4a7c04){const _0x24f86b={_0x175f16:0xcd,_0x15f615:0x60,_0x103204:0xf4,_0x47a291:0x27,_0x44ba52:0x53,_0x535a78:0x8a,_0x1c23e6:0x79},_0x13b9ac={_0x30f664:0x1a7},_0xb82b80={_0x34fdca:0x153};function _0x1c1ca1(_0x3c7634,_0x10a0c8,_0x47a549,_0x26cc88){return _0x27a792(_0x3c7634-0xf4,_0x10a0c8-_0xb82b80._0x34fdca,_0x10a0c8,_0x26cc88- -0x2d2);}function _0x401e24(_0x2421ef,_0x22a55d,_0x593172,_0x56812e){return _0x27a792(_0x2421ef-0x190,_0x22a55d-_0x13b9ac._0x30f664,_0x56812e,_0x2421ef- -0x37e);}return createHash('sha256')[_0x401e24(-_0x24f86b._0x175f16,-0x64,-_0x24f86b._0x15f615,-_0x24f86b._0x103204)](_0x4a7c04)['digest'](_0x1c1ca1(_0x24f86b._0x47a291,_0x24f86b._0x44ba52,_0x24f86b._0x535a78,_0x24f86b._0x1c23e6));}function countLines(_0x393949){const _0x16a653={_0x4f3fa3:0x307,_0x3742ae:0x454,_0x54bb81:0x3f5,_0x257bc5:0x462},_0x114463={_0x341e6c:0x6d,_0x5f2b8a:0x13},_0x2e838f={_0x2d40bf:0x37,_0x4d9566:0x102,_0x89029b:0x177};function _0x336086(_0x51d77a,_0x34b3a8,_0xf3a11f,_0x251fb5){return _0x27a792(_0x51d77a-_0x2e838f._0x2d40bf,_0x34b3a8-_0x2e838f._0x4d9566,_0x51d77a,_0x251fb5-_0x2e838f._0x89029b);}function _0x465799(_0x29e1ec,_0x264f6e,_0x1dd65b,_0x1c23a4){return _0x27a792(_0x29e1ec-_0x114463._0x341e6c,_0x264f6e-0x187,_0x264f6e,_0x1dd65b- -_0x114463._0x5f2b8a);}const _0x2d106b=_0x393949[_0x465799(0x291,_0x16a653._0x4f3fa3,0x2f9,0x29d)](/\n$/,'');return _0x2d106b[_0x336086(_0x16a653._0x3742ae,0x4bd,_0x16a653._0x54bb81,_0x16a653._0x257bc5)]===0x0?0x0:_0x2d106b['split']('\x0a')['length'];}function calculateLineNumbers(_0x43036d,_0x4dd6ab,_0x311d22,_0xf422aa){const _0x271f5d={_0x331ad2:0x3e9,_0x4ad363:0x390,_0x55af78:0x44b,_0x5c41dd:0x407,_0x21485a:0x427,_0x3fa1a7:0x44b,_0x33ea6c:0x36f,_0x31c749:0x374},_0x335b20={_0x413431:0x18c,_0xbaa5c0:0x173},_0x4dac2c={_0x21a129:0xee,_0x3005ca:0x1ad};function _0x528992(_0x4e0f08,_0x277c60,_0xf8d4dc,_0x7374c7){return _0x5c1169(_0x4e0f08-_0x4dac2c._0x21a129,_0xf8d4dc,_0x4e0f08- -0x1f5,_0x7374c7-_0x4dac2c._0x3005ca);}const _0x48e8bf=_0x43036d[_0xe5b287(_0x271f5d._0x331ad2,0x3fe,_0x271f5d._0x4ad363,_0x271f5d._0x55af78)](0x0,_0xf422aa)[_0xe5b287(_0x271f5d._0x5c41dd,_0x271f5d._0x21485a,_0x271f5d._0x3fa1a7,0x470)]('\x0a')[_0x528992(_0x271f5d._0x33ea6c,0x317,_0x271f5d._0x31c749,0x385)];function _0xe5b287(_0x146e8c,_0x5df28b,_0xfa003b,_0x52fbff){return _0x5c1169(_0x146e8c-0x28,_0x146e8c,_0x5df28b- -_0x335b20._0x413431,_0x52fbff-_0x335b20._0xbaa5c0);}const _0x5105d6=countLines(_0x4dd6ab),_0x2416f7=countLines(_0x311d22);return{'oldStartLine':_0x48e8bf,'oldEndLine':_0x48e8bf+_0x5105d6-0x1,'newStartLine':_0x48e8bf,'newEndLine':_0x48e8bf+_0x2416f7-0x1,'oldLineCount':_0x5105d6,'newLineCount':_0x2416f7};}function createFileEditTool(_0x426cb1={}){const _0x198dd5={_0x54c1c7:0x39,_0x41e99c:0x67,_0x2eaf10:0x7b,_0x504b22:0x82,_0x5a13ef:0x34,_0x20dbd4:0xaa,_0x19f536:0xb},_0x176de5={_0x5e0d02:0x45,_0x1fe539:0x5a,_0x3af165:0x9f,_0x3ed102:0x5b5,_0x306512:0x5e6,_0x2d761d:0x5a7,_0x489eee:0x59b,_0x39a9c6:0x57b,_0x2abe88:0x57b,_0x22a63b:0x57d,_0xd415bc:0x72,_0x1aa5f6:0x34,_0x5952eb:0x8b,_0x2a19d3:0x552,_0x2adff5:0x546,_0x5d42c4:0x556,_0x51864e:0x18,_0x5ca0fe:0x3e,_0x31a935:0x64,_0x5c65ac:0x574,_0xf5b696:0x5d1,_0xa83588:0x567,_0x48f59e:0x598,_0x28e922:0x5e7,_0x22d7e5:0x589,_0x252eb1:0x8d,_0x4ae912:0x1,_0x7626d:0x95,_0x281a60:0xcd,_0x53ef36:0x5eb,_0x5e0c78:0x60,_0x2ca196:0x2b,_0x5a20e5:0x78,_0x1df9a6:0x49,_0x3aecd5:0x74,_0x3a575f:0x52,_0x451237:0xb4,_0x28ab63:0xe0,_0x18b129:0x77,_0x12052a:0xdf,_0x295705:0x591,_0x3f9474:0x5ab,_0x46d93d:0x59c,_0x46f8be:0x58a,_0x7cb87b:0x5bc,_0x2f4dda:0x5aa,_0x2730ea:0x585,_0x56d22c:0x5c7,_0x475186:0x5ef,_0x12d1b6:0x57c},_0x12a20a={_0x22c62b:0xf9,_0x4e47b7:0x5d6},_0xbbb8c1={_0x414f2f:0x5ad,_0x5e0418:0x1c7},_0x53208b={_0x2736a3:0x117};function _0x3c5bf2(_0x88338b,_0x1cad53,_0x384cbc,_0x3c55ce){return _0x5c1169(_0x88338b-_0x53208b._0x2736a3,_0x384cbc,_0x88338b- -0x529,_0x3c55ce-0x9);}const _0x27556a=_0x264aea['resolve'](_0x426cb1['defaultCwd']??process['cwd']());function _0x363912(_0x64b3a1,_0x4daf90,_0x4ef969,_0x5a13ea){return _0x5c1169(_0x64b3a1-0xef,_0x4ef969,_0x5a13ea- -_0xbbb8c1._0x414f2f,_0x5a13ea-_0xbbb8c1._0x5e0418);}const _0x130c46=_0x426cb1['name']??_0x3c5bf2(_0x198dd5._0x54c1c7,_0x198dd5._0x41e99c,_0x198dd5._0x2eaf10,0x6b);return defineTool({'name':_0x130c46,'description':'Edit\x20a\x20UTF-8\x20text\x20file\x20by\x20replacing\x20the\x20first\x20exact\x20text\x20segment.','inputSchema':{'type':_0x363912(_0x198dd5._0x504b22,-0x29,-_0x198dd5._0x5a13ef,0x24),'properties':{'filePath':{'type':_0x3c5bf2(0x6,-0x60,-0x4,-0x24)},'oldText':{'type':'string'},'newText':{'type':'string'},'dryRun':{'type':_0x363912(-0xb2,-_0x198dd5._0x20dbd4,-0x63,-0x55)}},'required':[_0x3c5bf2(0x4c,0xb7,0x8e,0x80),_0x363912(-_0x198dd5._0x19f536,-0x99,-0xc,-0x5b),'newText']},async *'execute'(_0x1a0542){const _0x4fa251={_0x29cee8:0x3c},_0xf2cf63=resolveWorkspacePath(_0x27556a,_0x1a0542[_0x49a689(-_0x176de5._0x5e0d02,-_0x176de5._0x1fe539,-0x74,-_0x176de5._0x3af165)]);await assertWorkspaceFile(_0xf2cf63);const _0x26ba12=await _0x3a745a(_0xf2cf63),_0x4bd30c=await readFile(_0xf2cf63),_0x2abe24=detectEol(_0x4bd30c),_0xb503a0=normalizeToLf(_0x4bd30c[_0x3276d3(_0x176de5._0x3ed102,0x5a2,0x5cf,_0x176de5._0x306512)](_0x3276d3(_0x176de5._0x2d761d,0x5f8,0x5eb,_0x176de5._0x489eee))),_0x171cec=normalizeToLf(_0x1a0542[_0x3276d3(0x5cb,_0x176de5._0x39a9c6,_0x176de5._0x2abe88,_0x176de5._0x22a63b)]),_0x208951=normalizeToLf(_0x1a0542[_0x49a689(-_0x176de5._0xd415bc,-0x1b,-_0x176de5._0x1aa5f6,-_0x176de5._0x5952eb)]),_0x45b981=_0xb503a0[_0x3276d3(_0x176de5._0x2a19d3,0x539,_0x176de5._0x2adff5,_0x176de5._0x5d42c4)](_0x171cec);if(_0x45b981===-0x1){const _0x1af48d=_0x171cec[_0x49a689(-_0x176de5._0x51864e,-_0x176de5._0x5ca0fe,-0x5f,-0xc2)](0x0,0x64)[_0x49a689(-0x46,-0x45,-_0x176de5._0x31a935,-0x55)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x3276d3(0x596,_0x176de5._0x5c65ac,_0x176de5._0xf5b696,_0x176de5._0xa83588)+_0x1af48d+(_0x171cec['length']>0x64?_0x3276d3(0x5a6,_0x176de5._0x48f59e,0x5ba,0x612):'')+'\x22',{'filePath':_0x1a0542[_0x3276d3(_0x176de5._0x28e922,0x5f7,0x59e,0x549)]});}const _0x1dc252=_0xb503a0[_0x3276d3(0x56b,_0x176de5._0x22d7e5,0x5b3,0x615)](0x0,_0x45b981)+_0x208951+_0xb503a0[_0x49a689(-_0x176de5._0x252eb1,-_0x176de5._0x4ae912,-0x5f,-_0x176de5._0x7626d)](_0x45b981+_0x171cec['length']),_0x28832a=convertEol(_0x1dc252,_0x2abe24),_0x4ce533=Buffer[_0x49a689(-0xcd,-0xe3,-_0x176de5._0x281a60,-0xd2)](_0x28832a,_0x3276d3(0x5cb,0x59c,_0x176de5._0x53ef36,0x5a7)),_0x410b8f=sha256(_0x4bd30c),_0x54ebd2=sha256(_0x4ce533);function _0x49a689(_0x41f094,_0x533c1c,_0x4bca6f,_0x4a1d49){return _0x363912(_0x41f094-0x166,_0x533c1c-0x32,_0x533c1c,_0x4bca6f- -_0x4fa251._0x29cee8);}const _0x46fe72=_0x410b8f===_0x54ebd2,_0x2c9dac=_0x1a0542['dryRun']??![];function _0x3276d3(_0x496db7,_0xd3d7af,_0x513a37,_0x5baf35){return _0x363912(_0x496db7-_0x12a20a._0x22c62b,_0xd3d7af-0x73,_0x496db7,_0x513a37-_0x12a20a._0x4e47b7);}return!_0x2c9dac&&!_0x46fe72&&await atomicWrite(_0xf2cf63,_0x4ce533),yield createToolOutput(_0x46fe72?_0x3276d3(0x56c,0x5b3,0x5da,_0x176de5._0x22a63b):_0x2c9dac?_0x49a689(-_0x176de5._0x5e0c78,-0x20,-_0x176de5._0x2ca196,0x27):_0x49a689(-0x7d,-_0x176de5._0x5a20e5,-0x8e,-_0x176de5._0x1df9a6),{'filePath':_0x1a0542[_0x49a689(-0xc6,-0x24,-_0x176de5._0x3aecd5,-_0x176de5._0x3a575f)],'resolvedPath':_0xf2cf63,'created':_0x26ba12[_0x49a689(-_0x176de5._0x451237,-_0x176de5._0x28ab63,-_0x176de5._0x18b129,-_0x176de5._0x12052a)]['toISOString'](),'modified':_0x26ba12[_0x3276d3(0x604,_0x176de5._0x295705,0x5a7,0x5cd)]['toISOString'](),'size':_0x26ba12[_0x3276d3(_0x176de5._0x3f9474,_0x176de5._0x46d93d,_0x176de5._0x46f8be,0x54d)],'eol':_0x2abe24,'oldTextLength':_0x171cec[_0x3276d3(_0x176de5._0x7cb87b,0x587,0x58d,_0x176de5._0x2f4dda)],'newTextLength':_0x208951[_0x3276d3(0x55b,_0x176de5._0x2730ea,0x58d,_0x176de5._0x56d22c)],'bytesWritten':_0x46fe72||_0x2c9dac?0x0:_0x4ce533[_0x3276d3(_0x176de5._0x475186,_0x176de5._0x12d1b6,0x58d,0x55e)],'beforeSha':_0x410b8f,'afterSha':_0x54ebd2,'dryRun':_0x2c9dac,'noChange':_0x46fe72,'lineNumbers':calculateLineNumbers(_0xb503a0,_0x171cec,_0x208951,_0x45b981)}),void 0x0;}});}import{mkdir,rename as _0x1de27e,stat as _0x2a9f9e,writeFile as _0x2d3dfb}from'fs/promises';import*as _0x4d93dc from'path';async function atomicWrite2(_0x5d1494,_0x53496b){const _0x4649f6={_0x140934:0x116,_0x15a165:0xb7,_0x309978:0xa1,_0x23213c:0x107,_0x321893:0x160,_0x21fcb3:0x16e,_0x48daef:0x14c,_0x246736:0x14f,_0x591a19:0x1b8,_0x31db89:0x1d2,_0x1cec12:0x154,_0x13910c:0x1a2,_0x17c013:0x14c},_0x1e29f0={_0x5d0c90:0x36,_0x2e6365:0x1c5},_0x546434={_0x42a4d3:0x160,_0x4ca735:0x66b};function _0x28979b(_0x236f25,_0xd61d94,_0x35d9dc,_0x54de7f){return _0x5c1169(_0x236f25-_0x546434._0x42a4d3,_0x35d9dc,_0xd61d94- -_0x546434._0x4ca735,_0x54de7f-0xa1);}const _0x171bd8=_0x4d93dc[_0x28979b(-0xfd,-0x15b,-0x15d,-_0x4649f6._0x140934)](_0x5d1494);await mkdir(_0x171bd8,{'recursive':!![]});function _0x484a7c(_0x156505,_0xb1c95,_0x40a398,_0x7f9b14){return _0x27a792(_0x156505-0x18d,_0xb1c95-_0x1e29f0._0x5d0c90,_0x156505,_0x7f9b14- -_0x1e29f0._0x2e6365);}const _0x1d0d2a=_0x4d93dc[_0x28979b(-_0x4649f6._0x15a165,-_0x4649f6._0x309978,-_0x4649f6._0x23213c,-0xf3)](_0x171bd8,_0x484a7c(_0x4649f6._0x321893,_0x4649f6._0x21fcb3,_0x4649f6._0x48daef,_0x4649f6._0x246736)+_0x4d93dc[_0x484a7c(_0x4649f6._0x591a19,_0x4649f6._0x31db89,0x1d4,0x178)](_0x5d1494)+'.'+Date[_0x484a7c(_0x4649f6._0x1cec12,0x171,0x123,0x122)]()+'.'+Math[_0x28979b(-_0x4649f6._0x13910c,-_0x4649f6._0x17c013,-0x141,-0x134)]()['toString'](0x24)['slice'](0x2));await _0x2d3dfb(_0x1d0d2a,_0x53496b),await _0x1de27e(_0x1d0d2a,_0x5d1494);}function createFileNewTool(_0x3cecb6={}){const _0x1fd026={_0x138357:0x57e,_0x12b9c6:0x5e3,_0xf5387c:0x573,_0x45bfb7:0x537,_0x223dee:0x36a,_0x4f0599:0x3cd,_0x5d30d9:0x3b0,_0x22af71:0x3a7,_0x1f6abe:0x5e1,_0x4ada72:0x597,_0x1b649c:0x53b,_0x370c16:0x35e,_0x2b24c8:0x35f,_0xed0e2b:0x31b,_0x287a6f:0x361},_0x2052d0={_0x399866:0x3d1,_0x52c957:0x436,_0x2eec91:0x439,_0x49c96c:0x405,_0x43c309:0x3b7,_0xc60971:0x354,_0x498e02:0xa7,_0x44f4c6:0x115,_0x141a54:0x12c,_0x52321f:0x112,_0x34ec89:0x11d,_0x28bd6f:0xb0,_0xf75a44:0x19f,_0x5b78e5:0x106,_0x2309b3:0x3d1,_0x15e117:0x3b2,_0x5032cb:0x410,_0x2e6e6d:0x124,_0xa31a14:0x18d,_0x4dd40b:0x118,_0x23c0d3:0x18e},_0x20bdbe={_0xf4aac:0xf2},_0x3f2998={_0x3a57a6:0xa8,_0x23aeda:0x121,_0x463f8a:0xaf},_0x5b397c={_0x4ad124:0x46,_0x5b1e86:0x289},_0x568eb9={_0x231a5c:0x3b,_0x2014d7:0x214},_0x16de83=_0x4d93dc['resolve'](_0x3cecb6['defaultCwd']??process['cwd']());function _0x2408fc(_0x2b6498,_0x747e25,_0x209954,_0x3b5327){return _0x5c1169(_0x2b6498-_0x568eb9._0x231a5c,_0x209954,_0x3b5327- -_0x568eb9._0x2014d7,_0x3b5327-0x45);}const _0x173264=_0x3cecb6[_0x384d88(_0x1fd026._0x138357,_0x1fd026._0x12b9c6,0x54f,0x51d)]??_0x384d88(_0x1fd026._0xf5387c,_0x1fd026._0x45bfb7,0x59b,0x54c);function _0x384d88(_0x387605,_0x2b7970,_0x1875c7,_0xfd9dec){return _0x27a792(_0x387605-0x1b3,_0x2b7970-_0x5b397c._0x4ad124,_0x1875c7,_0x387605-_0x5b397c._0x5b1e86);}return defineTool({'name':_0x173264,'description':_0x2408fc(_0x1fd026._0x223dee,_0x1fd026._0x4f0599,_0x1fd026._0x5d30d9,_0x1fd026._0x22af71),'inputSchema':{'type':_0x384d88(_0x1fd026._0x1f6abe,_0x1fd026._0x4ada72,0x5c1,0x574),'properties':{'filePath':{'type':_0x384d88(0x53f,0x57c,_0x1fd026._0x1b649c,0x51a)},'content':{'type':_0x2408fc(0x37d,_0x1fd026._0x370c16,_0x1fd026._0x2b24c8,_0x1fd026._0xed0e2b)}},'required':[_0x2408fc(0x366,0x332,0x395,_0x1fd026._0x287a6f),_0x384d88(0x5f6,0x638,0x5ab,0x636)]},async *'execute'(_0x4de3cb){const _0x3d2870=resolveWorkspacePath(_0x16de83,_0x4de3cb['filePath']),_0x22841c=await _0x2a9f9e(_0x3d2870)[_0x4176bc(_0x2052d0._0x399866,0x447,_0x2052d0._0x52c957,0x447)](()=>!![])[_0x4176bc(_0x2052d0._0x2eec91,0x401,0x467,_0x2052d0._0x49c96c)](()=>![]),_0x7b6634=Buffer[_0x4176bc(0x3e3,0x3db,_0x2052d0._0x43c309,_0x2052d0._0xc60971)](_0x4de3cb[_0x30ce0a(-0xf1,-_0x2052d0._0x498e02,-0x150,-0x8d)],_0x30ce0a(-_0x2052d0._0x44f4c6,-_0x2052d0._0x141a54,-_0x2052d0._0x52321f,-0xa8));await atomicWrite2(_0x3d2870,_0x7b6634);function _0x4176bc(_0x4bad57,_0x279191,_0xb1f7a2,_0xe4544a){return _0x2408fc(_0x4bad57-_0x3f2998._0x3a57a6,_0x279191-_0x3f2998._0x23aeda,_0xe4544a,_0xb1f7a2-_0x3f2998._0x463f8a);}yield createToolOutput(_0x30ce0a(-_0x2052d0._0x34ec89,-_0x2052d0._0x28bd6f,-0x116,-0x187)+_0x4de3cb[_0x30ce0a(-0x162,-0x13c,-_0x2052d0._0xf75a44,-_0x2052d0._0x5b78e5)]+'.',{'filePath':_0x4de3cb[_0x4176bc(_0x2052d0._0x2309b3,_0x2052d0._0x15e117,_0x2052d0._0x5032cb,0x467)],'resolvedPath':_0x3d2870,'bytes':_0x7b6634['length'],'lines':_0x4de3cb['content'][_0x30ce0a(-_0x2052d0._0x2e6e6d,-0xd9,-_0x2052d0._0xa31a14,-0x174)](/\r?\n/)[_0x30ce0a(-0x173,-_0x2052d0._0x4dd40b,-_0x2052d0._0x23c0d3,-0x157)],'created':new Date()[_0x30ce0a(-0x125,-0x115,-0x15e,-0x15d)](),'overwritten':_0x22841c});function _0x30ce0a(_0x4045e0,_0x138882,_0x20479d,_0x2d077b){return _0x384d88(_0x4045e0- -0x6e7,_0x138882-_0x20bdbe._0xf4aac,_0x2d077b,_0x2d077b-0xd2);}return void 0x0;}});}import{readFile as _0xd465f0,stat as _0x2cbc2b}from'fs/promises';import*as _0x292625 from'path';function stripUtfBom(_0x3ea0a6){const _0x18aff3={_0x421d1b:0x3dc,_0x32592c:0x3e3},_0x9505a2={_0x559264:0x13c,_0x196846:0x1b9};function _0x1e5bc3(_0x4c669d,_0x58d0fd,_0x81b868,_0x39476f){return _0x5c1169(_0x4c669d-_0x9505a2._0x559264,_0x81b868,_0x58d0fd- -_0x9505a2._0x196846,_0x39476f-0x48);}return _0x3ea0a6[_0x1e5bc3(0x3ba,_0x18aff3._0x421d1b,0x3cd,_0x18aff3._0x32592c)](0x0)===0xfeff?_0x3ea0a6['slice'](0x1):_0x3ea0a6;}function clampLine(_0x8587fc,_0x3fcee4){const _0x592ad3={_0x2143c9:0x89,_0x13861a:0x5b,_0x522351:0xcf,_0x4abfba:0xaa,_0x1ad92d:0x20b,_0x359c79:0x153,_0x3e335d:0x187,_0x10c21b:0x1b3},_0x2738c5={_0x293fe3:0x17f},_0x1750a9={_0x4c7a01:0xc1,_0xd2c99c:0x155};function _0xd35bd2(_0x506259,_0x2518db,_0x235492,_0x1317fa){return _0x5c1169(_0x506259-_0x1750a9._0x4c7a01,_0x2518db,_0x235492- -0x404,_0x1317fa-_0x1750a9._0xd2c99c);}function _0x5d0fb6(_0x2233e3,_0x8780c4,_0x56a201,_0x37b625){return _0x27a792(_0x2233e3-0x1ce,_0x8780c4-_0x2738c5._0x293fe3,_0x37b625,_0x2233e3- -0x242);}if(!Number['isFinite'](_0x8587fc))return 0x1;return Math[_0x5d0fb6(_0x592ad3._0x2143c9,_0x592ad3._0x13861a,_0x592ad3._0x522351,_0x592ad3._0x4abfba)](0x1,Math[_0xd35bd2(_0x592ad3._0x1ad92d,0x20d,0x1d6,0x227)](Math[_0xd35bd2(_0x592ad3._0x359c79,_0x592ad3._0x3e335d,_0x592ad3._0x10c21b,0x1b9)](_0x8587fc),_0x3fcee4));}function createFileReadTool(_0x2bc8ea={}){const _0x4c420e={_0x4a93ed:0x529,_0x5d838f:0x545,_0x29fe63:0x54d,_0x2addc9:0x597,_0x1ef13f:0x591,_0x26539e:0x5ae,_0x2308d3:0x5e7,_0x499a85:0x606,_0x45f46e:0x614,_0x2c728e:0x356,_0x97e612:0x38e,_0x25a93b:0x32f,_0x341a90:0x398,_0x577872:0x350,_0x4dad3f:0x387,_0x38ce5b:0x3be},_0x17c7c8={_0x242f42:0x153,_0x41b252:0x370,_0x151d2d:0x3fa,_0x4c8760:0x4ae,_0x5f3a72:0x3fd,_0xc6876d:0x478,_0x30cb2e:0x19e,_0x4496f8:0x16a,_0x501278:0x1a0,_0xfcb87a:0x194,_0x82b9ef:0x129,_0x4e1314:0x464,_0x1cbcbe:0x3ea,_0x539791:0x434,_0xe28572:0x4a1,_0x2f0e53:0x15f,_0x3fd91a:0x18d,_0x4ebd2a:0x1a1,_0x26fa6e:0x1f0,_0xc900:0x155,_0x3139c5:0x160,_0x40fadb:0x140,_0x37413f:0x3f6,_0x4edf5d:0x154,_0x471b75:0x1b2,_0x2098e1:0x181,_0x584636:0x18d,_0x9b3c1d:0x203,_0x2d8c55:0x440,_0x4c87b1:0x227,_0x411a73:0x1f3,_0x552cdd:0x190},_0x32ea48={_0x366a0e:0x1e5},_0x55abe9={_0xce59ad:0x17},_0x28b4b6=_0x292625['resolve'](_0x2bc8ea[_0x483acd(_0x4c420e._0x4a93ed,_0x4c420e._0x5d838f,_0x4c420e._0x29fe63,0x55a)]??process[_0x483acd(0x5c2,0x5f0,_0x4c420e._0x2addc9,_0x4c420e._0x1ef13f)]()),_0x58627a=_0x2bc8ea['name']??'FileRead';function _0x483acd(_0x20554b,_0x897e9c,_0x5d80c6,_0x53da06){return _0x5c1169(_0x20554b-0x1cc,_0x53da06,_0x20554b-_0x55abe9._0xce59ad,_0x53da06-0xd2);}function _0x2b2e51(_0x36ba3d,_0x5863a4,_0x27a456,_0x37d6ec){return _0x5c1169(_0x36ba3d-0x83,_0x36ba3d,_0x5863a4- -0x1d9,_0x37d6ec-0x134);}return defineTool({'name':_0x58627a,'description':_0x483acd(_0x4c420e._0x26539e,0x5fb,0x5df,_0x4c420e._0x2308d3),'inputSchema':{'type':_0x483acd(0x5e8,_0x4c420e._0x499a85,_0x4c420e._0x45f46e,0x62c),'properties':{'path':{'type':_0x2b2e51(0x361,_0x4c420e._0x2c728e,_0x4c420e._0x97e612,_0x4c420e._0x25a93b)},'lineStart':{'type':_0x2b2e51(_0x4c420e._0x341a90,_0x4c420e._0x577872,0x3a1,0x314)},'lineEnd':{'type':_0x2b2e51(0x2ea,0x350,_0x4c420e._0x4dad3f,_0x4c420e._0x38ce5b)}},'required':['path']},async *'execute'(_0x19b940){const _0x3b6eb4={_0x350e0f:0x8f},_0x5ab7ce=resolveWorkspacePath(_0x28b4b6,_0x19b940[_0x63396a(0x102,0x13c,_0x17c7c8._0x242f42,0x17d)]);await assertWorkspaceFile(_0x5ab7ce);const _0xc28b76=await _0x2cbc2b(_0x5ab7ce);function _0x63396a(_0x5ce8ab,_0x3786b1,_0x23f4f9,_0x23400d){return _0x483acd(_0x3786b1- -0x3ee,_0x3786b1-_0x32ea48._0x366a0e,_0x23f4f9-0xd9,_0x23400d);}const _0x3659b4=await _0xd465f0(_0x5ab7ce);if(isProbablyBinary(_0x3659b4))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x19b940[_0x480bba(0x3c9,_0x17c7c8._0x41b252,0x39d,_0x17c7c8._0x151d2d)],{'path':_0x19b940['path']});let _0x2cd619=_0x3659b4[_0x480bba(0x45c,_0x17c7c8._0x4c8760,0x45b,_0x17c7c8._0x5f3a72)](_0x480bba(_0x17c7c8._0xc6876d,0x48b,0x482,0x42e));const _0x357c86=_0x2cd619[_0x63396a(_0x17c7c8._0x30cb2e,0x1be,_0x17c7c8._0x4496f8,0x15b)](0x0)===0xfeff;_0x2cd619=stripUtfBom(_0x2cd619);function _0x480bba(_0x4c63ed,_0x1fc522,_0x220424,_0x38f657){return _0x2b2e51(_0x1fc522,_0x4c63ed-_0x3b6eb4._0x350e0f,_0x220424-0x81,_0x38f657-0x6c);}const _0x2037ca=_0x2cd619[_0x63396a(0x17a,0x1dc,0x1a7,_0x17c7c8._0x501278)](/\r?\n/),_0x487c7d={'path':_0x19b940[_0x63396a(0x18d,0x13c,_0x17c7c8._0xfcb87a,_0x17c7c8._0x82b9ef)],'resolvedPath':_0x5ab7ce,'created':_0xc28b76[_0x480bba(0x428,_0x17c7c8._0x4e1314,0x3f6,_0x17c7c8._0x1cbcbe)]['toISOString'](),'modified':_0xc28b76[_0x480bba(_0x17c7c8._0x539791,0x43f,_0x17c7c8._0xe28572,0x43b)]['toISOString'](),'size':_0xc28b76['size'],'encoding':'utf8','bomStripped':_0x357c86,'truncated':![],'totalLines':_0x2037ca[_0x63396a(_0x17c7c8._0x2f0e53,_0x17c7c8._0x3fd91a,_0x17c7c8._0x4ebd2a,_0x17c7c8._0x26fa6e)]};if(_0x19b940[_0x63396a(0x15d,0x18f,0x1af,_0x17c7c8._0xc900)]!==void 0x0||_0x19b940['lineEnd']!==void 0x0){const _0x5a2456=clampLine(_0x19b940[_0x63396a(_0x17c7c8._0x3139c5,0x18f,0x1d9,_0x17c7c8._0x40fadb)]??0x1,_0x2037ca[_0x480bba(0x41a,_0x17c7c8._0x37413f,0x438,0x3be)]),_0x431402=clampLine(_0x19b940[_0x63396a(0x146,0x164,_0x17c7c8._0x4edf5d,_0x17c7c8._0x471b75)]??_0x2037ca[_0x63396a(_0x17c7c8._0x2098e1,_0x17c7c8._0x3fd91a,0x1c3,_0x17c7c8._0x584636)],_0x2037ca['length']),_0x5e6a70=Math[_0x63396a(0x1e8,_0x17c7c8._0x9b3c1d,0x1cf,0x1c6)](_0x5a2456,_0x431402),_0x8c9078=Math['max'](_0x5a2456,_0x431402),_0x55e7d4=_0x2037ca[_0x480bba(_0x17c7c8._0x2d8c55,0x427,0x3eb,0x479)](_0x5e6a70-0x1,_0x8c9078)[_0x480bba(0x435,0x408,0x461,0x442)]((_0x4cd5cf,_0x527da)=>_0x5e6a70+_0x527da+'|'+_0x4cd5cf)[_0x63396a(_0x17c7c8._0x4c87b1,_0x17c7c8._0x411a73,0x1fc,_0x17c7c8._0x552cdd)]('\x0a');return yield createToolOutput(_0x55e7d4,{..._0x487c7d,'lineRange':{'lineStart':_0x5e6a70,'lineEnd':_0x8c9078,'linesTotal':_0x2037ca['length']}}),void 0x0;}return yield createToolOutput(_0x2cd619,_0x487c7d),void 0x0;}});}function _0x5c1169(_0x4f6408,_0x1a6343,_0x186186,_0x141e78){const _0x3af1fd={_0x77a42a:0x362};return _0xdaaf(_0x186186-_0x3af1fd._0x77a42a,_0x1a6343);}import{stat as _0x172043}from'fs/promises';import*as _0x336f02 from'path';import{execSync,spawn as _0x3d42e5}from'child_process';import{existsSync}from'fs';import{stat as _0x38c437}from'fs/promises';import*as _0x1264af from'os';import*as _0x2eea10 from'path';var cachedRgPath=null;function findSystemRipgrep(){const _0x5f2c6d={_0x2cd808:0x605,_0xd468c2:0x5c7,_0x4b13bc:0x5c4,_0x4bfc49:0x61c,_0x29196d:0x632,_0x250f57:0x639,_0x101f38:0x5e1,_0x213eee:0x5b8,_0x4d8ae5:0x10b,_0xe7e5ac:0xaf,_0x57344f:0x6f,_0x109f37:0xcb,_0x4c309f:0x593,_0x288e2e:0x535,_0x24614e:0x6a,_0x54fbae:0xf9,_0x4027ba:0xdf,_0x1013f9:0xe9,_0x213f22:0x643,_0x4ae319:0x651,_0x1f6ccd:0x5e1,_0x933ce2:0x601,_0x373033:0x582,_0x4b7f52:0xbb,_0x165685:0x68,_0x445a70:0x119,_0x14b2af:0xbb,_0x73d36b:0x5d2,_0x211ea0:0xe2,_0x46b6a3:0x8e,_0x32faa8:0x614,_0x49aff7:0x5e4,_0x19bb72:0x6f,_0x3ed053:0x9f,_0x20c14c:0x81,_0x5b28b7:0x78,_0x2f3502:0x19,_0x2e9486:0x7a,_0x40ff02:0x63d,_0x419f75:0x99,_0x56665c:0xcf,_0xd58cfa:0x90,_0x1ba2af:0x62c},_0x17b6a7={_0xf420c6:0x32},_0x5f0d1d={_0x25b7f1:0x1de},_0x2ac3dc=_0x1264af[_0x302bef(_0x5f2c6d._0x2cd808,0x62a,_0x5f2c6d._0xd468c2,_0x5f2c6d._0x4b13bc)]()===_0x302bef(0x5f4,_0x5f2c6d._0x4bfc49,_0x5f2c6d._0x29196d,_0x5f2c6d._0x250f57),_0x39d288=_0x2ac3dc?[_0x2eea10['join'](process[_0x302bef(_0x5f2c6d._0x101f38,0x640,0x61d,_0x5f2c6d._0x213eee)]['LOCALAPPDATA']||'',_0x2c298e(-0xc0,-0x11d,-_0x5f2c6d._0x4d8ae5,-_0x5f2c6d._0xe7e5ac),_0x2c298e(-0xcf,-_0x5f2c6d._0x57344f,-0xfd,-_0x5f2c6d._0x109f37),_0x302bef(_0x5f2c6d._0x4c309f,0x5c5,0x573,_0x5f2c6d._0x288e2e)),_0x2eea10[_0x2c298e(-0x6e,-0x59,-_0x5f2c6d._0x24614e,-0x30)](process['env'][_0x2c298e(-_0x5f2c6d._0x54fbae,-0x13e,-0x11b,-0xac)]||'',_0x2c298e(-_0x5f2c6d._0x4027ba,-0xdb,-0xec,-_0x5f2c6d._0x1013f9),_0x302bef(0x58a,0x56d,0x52d,0x5ea)),_0x2eea10[_0x302bef(_0x5f2c6d._0x213f22,0x632,0x688,_0x5f2c6d._0x4ae319)](process[_0x302bef(_0x5f2c6d._0x1f6ccd,_0x5f2c6d._0x933ce2,_0x5f2c6d._0x373033,0x574)][_0x2c298e(-_0x5f2c6d._0x4b7f52,-_0x5f2c6d._0x165685,-_0x5f2c6d._0x445a70,-_0x5f2c6d._0x14b2af)]||'',_0x302bef(_0x5f2c6d._0x73d36b,0x5e2,0x613,0x633),_0x302bef(0x58a,0x580,0x5d9,0x5cc))]:[_0x302bef(0x607,0x5f5,0x666,0x5a8),'/usr/local/bin/rg',_0x2c298e(-_0x5f2c6d._0x211ea0,-0x11a,-0x9a,-_0x5f2c6d._0x46b6a3),_0x302bef(0x5de,_0x5f2c6d._0x32faa8,0x59e,_0x5f2c6d._0x49aff7)];for(const _0xa6a83f of _0x39d288){if(existsSync(_0xa6a83f))return _0xa6a83f;}try{const _0x272a89=_0x2ac3dc?_0x2c298e(-_0x5f2c6d._0x19bb72,-_0x5f2c6d._0x3ed053,-_0x5f2c6d._0x20c14c,-0xbd):'which\x20rg',_0x2bd0ac=execSync(_0x272a89,{'encoding':'utf8','stdio':[_0x2c298e(-_0x5f2c6d._0x5b28b7,-_0x5f2c6d._0x2f3502,-0x9c,-_0x5f2c6d._0x2e9486),_0x302bef(_0x5f2c6d._0x250f57,0x68b,_0x5f2c6d._0x40ff02,0x67b),'ignore']})[_0x2c298e(-_0x5f2c6d._0x419f75,-_0x5f2c6d._0x56665c,-_0x5f2c6d._0xd58cfa,-0x42)]()[_0x302bef(_0x5f2c6d._0x1ba2af,0x687,0x5da,0x67e)](/\r?\n/)[0x0];if(_0x2bd0ac&&existsSync(_0x2bd0ac))return _0x2bd0ac;}catch{return null;}function _0x2c298e(_0x4e6ad8,_0x3dcb5b,_0x26cdab,_0x1c76f7){return _0x27a792(_0x4e6ad8-_0x5f0d1d._0x25b7f1,_0x3dcb5b-0x41,_0x1c76f7,_0x4e6ad8- -0x3bf);}function _0x302bef(_0x1021c8,_0x2b131b,_0x425590,_0x5e5f53){return _0x27a792(_0x1021c8-0xf2,_0x2b131b-_0x17b6a7._0xf420c6,_0x2b131b,_0x1021c8-0x2f2);}return null;}async function filepath(){if(cachedRgPath)return cachedRgPath;const _0x4fb33a=findSystemRipgrep();if(!_0x4fb33a)throw new Error('ripgrep\x20executable\x20not\x20found.\x20Install\x20rg\x20to\x20use\x20Glob\x20and\x20Grep\x20tools.');return cachedRgPath=_0x4fb33a,_0x4fb33a;}async function*files(_0x2c8871){const _0x476ffc={_0xad8062:0x60f,_0xbc9630:0x2c8,_0x5099cb:0x265,_0x38bf54:0x28f,_0x1c4b58:0x217,_0x4ae431:0x21f,_0x326997:0x29e,_0x74b330:0x281,_0x438b44:0x25f,_0x3ed068:0x57c,_0x268ca7:0x530,_0x343e4f:0x5dd,_0xa644a7:0x5d0,_0x5a8aeb:0x58c,_0x472a7b:0x1e0,_0x652185:0x585,_0x1dd82b:0x58e,_0x22bbfd:0x636,_0x28bc8f:0x60f,_0x569f00:0x5b4,_0x2123ae:0x5c5,_0x313234:0x607,_0x3f2609:0x5aa,_0x2e30ac:0x635,_0x25adfc:0x23d,_0xaaffe3:0x296,_0x2e28bb:0x247,_0x329973:0x241,_0xf5b88a:0x28a,_0x420070:0x27c,_0xb5e750:0x289,_0x594cc2:0x248,_0x4e9830:0x5c8,_0x297a55:0x5fb,_0x2ae7d9:0x610,_0x58386d:0x5c8,_0x1b7daa:0x65f},_0x56d533={_0x2c2ca9:0x18b,_0x1df7ca:0xb1},_0x143999={_0x523d4b:0x1bc};function _0x3dcb90(_0x135289,_0x2d76be,_0x8eb835,_0x220fbc){return _0x5c1169(_0x135289-0xca,_0x2d76be,_0x135289-0x64,_0x220fbc-_0x143999._0x523d4b);}function _0x32f978(_0x4200ac,_0x255e03,_0x4e6625,_0x4cfa84){return _0x27a792(_0x4200ac-0x130,_0x255e03-_0x56d533._0x2c2ca9,_0x4cfa84,_0x4e6625- -_0x56d533._0x1df7ca);}const _0x14fae4=await filepath(),_0x20563c=await _0x38c437(_0x2c8871[_0x3dcb90(_0x476ffc._0xad8062,0x61d,0x639,0x5b7)])['catch'](()=>null);if(!_0x20563c?.[_0x32f978(0x292,_0x476ffc._0xbc9630,_0x476ffc._0x5099cb,_0x476ffc._0x38bf54)]())throw Object[_0x32f978(_0x476ffc._0x1c4b58,0x1aa,0x1fa,0x211)](new Error(_0x32f978(0x206,0x25b,_0x476ffc._0x4ae431,0x21e)+_0x2c8871[_0x32f978(0x264,_0x476ffc._0x326997,_0x476ffc._0x74b330,_0x476ffc._0x438b44)]+'\x27'),{'code':_0x3dcb90(_0x476ffc._0x3ed068,0x539,0x5c2,_0x476ffc._0x268ca7)});const _0x47b876=[_0x3dcb90(_0x476ffc._0x343e4f,_0x476ffc._0xa644a7,_0x476ffc._0x5a8aeb,0x5c8),'--follow','--hidden',_0x32f978(_0x476ffc._0x472a7b,0x22c,0x20b,0x250)];for(const _0x2c2827 of _0x2c8871[_0x3dcb90(_0x476ffc._0x652185,0x572,0x585,0x566)]??[]){_0x47b876[_0x3dcb90(0x5d0,0x5dd,_0x476ffc._0x1dd82b,_0x476ffc._0x22bbfd)]('--glob='+_0x2c2827);}const _0x55324c=_0x3d42e5(_0x14fae4,_0x47b876,{'cwd':_0x2c8871[_0x3dcb90(_0x476ffc._0x28bc8f,0x627,_0x476ffc._0x569f00,_0x476ffc._0x2123ae)],'stdio':[_0x3dcb90(_0x476ffc._0x313234,0x5c0,_0x476ffc._0x3f2609,_0x476ffc._0x2e30ac),'pipe',_0x32f978(_0x476ffc._0x25adfc,0x25c,_0x476ffc._0xaaffe3,_0x476ffc._0x2e28bb)]});let _0x4779b5='';for await(const _0x19b1d2 of _0x55324c[_0x32f978(0x1d5,0x254,_0x476ffc._0x329973,0x293)]??[]){_0x4779b5+=_0x19b1d2[_0x32f978(0x247,_0x476ffc._0xf5b88a,_0x476ffc._0x420070,0x23a)]();const _0x1cb701=_0x4779b5[_0x32f978(0x266,0x26e,_0x476ffc._0xb5e750,_0x476ffc._0x594cc2)](/\r?\n/);_0x4779b5=_0x1cb701['pop']()??'';for(const _0x47aee of _0x1cb701){if(_0x47aee[_0x3dcb90(_0x476ffc._0x4e9830,0x58b,_0x476ffc._0x297a55,_0x476ffc._0x2ae7d9)]>0x0)yield _0x47aee;}}_0x4779b5['trim']()[_0x3dcb90(_0x476ffc._0x58386d,0x5fb,0x61f,0x5e7)]>0x0&&(yield _0x4779b5[_0x3dcb90(0x603,_0x476ffc._0x1b7daa,0x5ed,0x5fc)]());}function parseMatchLine(_0x52278c,_0xa267b){const _0x8ba80e={_0x3f3f78:0x132,_0x2fa3a7:0x149,_0x5c493d:0x1af,_0x506c2a:0x1c9,_0x415071:0x1ad,_0x43a2ba:0xfb,_0x5370e4:0x30a,_0x2545e6:0x30e,_0x4e310e:0x174,_0x1c88aa:0x202,_0x437a39:0x2e4,_0x2ae1b4:0x34f,_0x93a561:0x364,_0x68c8c6:0x358,_0x2bc4bd:0x36c,_0xd3d9f4:0x176,_0x559cdf:0x168,_0x3bf1bf:0x2be},_0x38c416={_0x5acb4a:0x97,_0x590be1:0x280,_0x1b57d5:0x1e3},_0x2dccb0={_0x5390e9:0x1a2};if(!_0x52278c||_0x52278c==='--')return null;function _0x1f2867(_0xcc45ec,_0x2c5e2d,_0x240566,_0xb6322a){return _0x27a792(_0xcc45ec-0x11e,_0x2c5e2d-0x1ed,_0xb6322a,_0x2c5e2d- -_0x2dccb0._0x5390e9);}const _0x1de7ca=_0x52278c['split']('|');if(_0xa267b&&_0x1de7ca[_0x1f2867(_0x8ba80e._0x3f3f78,_0x8ba80e._0x2fa3a7,0x15d,0x136)]>=0x4&&Number['isFinite'](Number[_0x1f2867(_0x8ba80e._0x5c493d,_0x8ba80e._0x506c2a,_0x8ba80e._0x415071,0x193)](_0x1de7ca[0x2]??'',0xa))){const _0x2fba08=Number[_0x1f2867(0x231,_0x8ba80e._0x506c2a,0x187,0x1ad)](_0x1de7ca[0x1]??'',0xa);if(!Number[_0x1f2867(0x1c3,0x168,0x109,_0x8ba80e._0x43a2ba)](_0x2fba08)||!_0x1de7ca[0x0])return null;return{'filePath':_0x1de7ca[0x0],'lineNum':_0x2fba08,'lineText':_0x1de7ca[_0x1bb43c(_0x8ba80e._0x5370e4,0x2c1,0x300,_0x8ba80e._0x2545e6)](0x3)[_0x1f2867(_0x8ba80e._0x4e310e,_0x8ba80e._0x5c493d,_0x8ba80e._0x1c88aa,0x1b8)]('|')};}function _0x1bb43c(_0x19af6a,_0x575d6c,_0x63189c,_0x6ef7f9){return _0x5c1169(_0x19af6a-_0x38c416._0x5acb4a,_0x63189c,_0x19af6a- -_0x38c416._0x590be1,_0x6ef7f9-_0x38c416._0x1b57d5);}if(_0x1de7ca[_0x1bb43c(_0x8ba80e._0x437a39,0x287,0x32e,_0x8ba80e._0x2ae1b4)]>=0x3){const _0x3b9104=Number[_0x1bb43c(_0x8ba80e._0x93a561,_0x8ba80e._0x68c8c6,0x3b1,_0x8ba80e._0x2bc4bd)](_0x1de7ca[0x1]??'',0xa);if(!Number[_0x1f2867(_0x8ba80e._0xd3d9f4,_0x8ba80e._0x559cdf,0x179,0x169)](_0x3b9104)||!_0x1de7ca[0x0])return null;return{'filePath':_0x1de7ca[0x0],'lineNum':_0x3b9104,'lineText':_0x1de7ca[_0x1bb43c(0x30a,_0x8ba80e._0x3bf1bf,0x2a5,0x312)](0x2)['join']('|'),..._0xa267b?{'isContext':!![]}:{}};}return null;}async function search(_0x39ce02){const _0x5dcaba={_0x9902ca:0x4dc,_0x212e79:0x4f9,_0x1abbcf:0x482,_0x2907bb:0x487,_0x5f0ff4:0x4e2,_0xe6e00e:0x4b0,_0x231ac9:0x51c,_0x1cc578:0x43a,_0x4f67c0:0x562,_0x58d46a:0x517,_0x57576c:0x3f4,_0x2e333b:0x478,_0xa64474:0x491,_0x4393ca:0x42e,_0x180783:0x5a1,_0x1b7d4b:0x4e2,_0xbcb19f:0x568,_0x428a09:0x50f,_0x16ead4:0x55d,_0x18488b:0x589,_0x716970:0x509,_0x5f5c60:0x5d6,_0x27c454:0x569,_0x1b8857:0x59a,_0x2df119:0x590,_0x18c9d2:0x570,_0x11026b:0x44c,_0x4d5ee5:0x432,_0x221921:0x465,_0x5b924c:0x543,_0x16323b:0x4e4,_0x4ebe09:0x4d2,_0x5d2285:0x4d1,_0x61f79b:0x47a,_0x1427ac:0x4b4,_0xbfae7f:0x482,_0x264764:0x42d,_0x3aeb0d:0x45f,_0x51c501:0x437,_0x55f4cb:0x4c6,_0x52cad9:0x514,_0x3d5844:0x482,_0x200966:0x521,_0x3d08aa:0x4e7,_0x2893f9:0x4e7,_0x4d9974:0x4e6,_0x12ae87:0x4f6,_0x157b3d:0x532,_0x1ac452:0x542,_0x4caf5a:0x513,_0x9537c8:0x53c,_0x484bca:0x52f},_0x16bc20={_0x29cfc5:0x594,_0x2d4812:0x346,_0x127605:0x299,_0x57e0e2:0x503,_0x54494d:0x546,_0x5353ea:0x503,_0x5be50e:0x47e,_0x3ef498:0x2ad,_0xe158c0:0x258,_0x3fc148:0x273,_0x281eb0:0x279,_0x1be2d5:0x2d0,_0x582b64:0x530,_0x33c0c2:0x588},_0x163112={_0x3616ae:0x40,_0x25e88d:0x6e,_0x40e7da:0x3bf,_0x5f2a0a:0x22,_0x83de02:0x11},_0x5d62ac={_0x9673e7:0x45e,_0x1317d1:0x46d},_0x2d02ff={_0x2b3539:0x14b},_0x4eb282={_0x56a189:0x2a},_0x409cce={_0x445f04:0x84},_0x34c1e5={_0x2d06b2:0x1cf,_0x47a286:0x18f},_0x540194=await filepath();function _0x431d04(_0x271a53,_0xe92fd3,_0x346ae4,_0x24d84f){return _0x27a792(_0x271a53-0x1c4,_0xe92fd3-_0x34c1e5._0x2d06b2,_0xe92fd3,_0x24d84f-_0x34c1e5._0x47a286);}function _0x2eda91(_0x2220f9,_0x2448c6,_0x115a52,_0x3ed852){return _0x27a792(_0x2220f9-0x1aa,_0x2448c6-_0x409cce._0x445f04,_0x115a52,_0x2448c6-0x23f);}if(_0x39ce02[_0x2eda91(0x532,_0x5dcaba._0x9902ca,_0x5dcaba._0x212e79,_0x5dcaba._0x1abbcf)]){const _0x1a16de=await _0x38c437(_0x39ce02['file'])[_0x431d04(0x546,0x492,_0x5dcaba._0x2907bb,_0x5dcaba._0x5f0ff4)](()=>null);if(!_0x1a16de?.[_0x2eda91(0x503,0x51b,_0x5dcaba._0xe6e00e,_0x5dcaba._0x231ac9)]())throw Object[_0x431d04(0x3d3,0x474,0x446,_0x5dcaba._0x1cc578)](new Error(_0x2eda91(_0x5dcaba._0x4f67c0,0x506,_0x5dcaba._0x58d46a,0x519)+_0x39ce02[_0x431d04(_0x5dcaba._0x57576c,_0x5dcaba._0x2e333b,_0x5dcaba._0xa64474,0x42c)]+'\x27'),{'code':_0x431d04(_0x5dcaba._0x2907bb,0x40f,0x3e1,_0x5dcaba._0x4393ca)});}else{const _0x56db86=await _0x38c437(_0x39ce02[_0x2eda91(0x552,0x571,_0x5dcaba._0x180783,0x59a)])[_0x431d04(0x52e,0x47d,0x4f4,_0x5dcaba._0x1b7d4b)](()=>null);if(!_0x56db86?.[_0x2eda91(0x54b,0x555,0x508,0x516)]())throw Object['assign'](new Error(_0x2eda91(_0x5dcaba._0xbcb19f,_0x5dcaba._0x428a09,_0x5dcaba._0x16ead4,0x4cf)+_0x39ce02[_0x2eda91(_0x5dcaba._0x18488b,0x571,_0x5dcaba._0x716970,_0x5dcaba._0x5f5c60)]+'\x27'),{'code':'ENOENT'});}const _0x45a4aa=[_0x2eda91(_0x5dcaba._0x27c454,_0x5dcaba._0x1b8857,_0x5dcaba._0x2df119,0x5da),_0x2eda91(_0x5dcaba._0x18c9d2,0x56d,0x509,0x506),'--field-context-separator=|',_0x431d04(_0x5dcaba._0x11026b,0x41b,_0x5dcaba._0x4d5ee5,_0x5dcaba._0x221921),_0x39ce02[_0x431d04(_0x5dcaba._0x5b924c,0x47a,0x4a4,_0x5dcaba._0x16323b)]],_0x57351b=typeof _0x39ce02[_0x431d04(_0x5dcaba._0x4ebe09,0x50d,0x481,0x4af)]==='number'&&_0x39ce02[_0x431d04(0x4c8,_0x5dcaba._0x5d2285,0x45f,0x4af)]>0x0;return _0x57351b&&_0x45a4aa[_0x431d04(0x420,_0x5dcaba._0x61f79b,_0x5dcaba._0x1427ac,_0x5dcaba._0xbfae7f)]('-C',String(_0x39ce02['context']),'--column'),_0x39ce02[_0x431d04(0x479,_0x5dcaba._0x264764,_0x5dcaba._0x3aeb0d,_0x5dcaba._0x51c501)]&&!_0x39ce02[_0x2eda91(_0x5dcaba._0x55f4cb,_0x5dcaba._0x9902ca,0x476,_0x5dcaba._0x52cad9)]&&_0x45a4aa[_0x431d04(0x4be,0x424,0x47f,_0x5dcaba._0x3d5844)](_0x2eda91(_0x5dcaba._0x200966,0x4e8,0x4f9,0x4e0),_0x39ce02[_0x2eda91(_0x5dcaba._0x3d08aa,_0x5dcaba._0x2893f9,_0x5dcaba._0x4d9974,0x53f)]),_0x45a4aa[_0x2eda91(_0x5dcaba._0x12ae87,_0x5dcaba._0x157b3d,_0x5dcaba._0x1ac452,_0x5dcaba._0x4caf5a)](_0x39ce02[_0x2eda91(0x4f9,0x4dc,_0x5dcaba._0x9537c8,_0x5dcaba._0x484bca)]??_0x39ce02['cwd']),await new Promise((_0x2af48e,_0xeb017e)=>{const _0x1b0958={_0x2fcd23:0x19d,_0x45f140:0xe},_0x2007f2={_0x3c85e0:0xa9,_0xe7c907:0x53b},_0x2f3425={_0x161aa1:0x109},_0x6f45d6={_0x21614c:0x118,_0x10993d:0xd8},_0x19dd3c=_0x3d42e5(_0x540194,_0x45a4aa,{'cwd':_0x39ce02[_0x53777e(0x51a,_0x16bc20._0x29cfc5,0x54b,0x544)],'stdio':[_0xd2d608(0x2df,_0x16bc20._0x2d4812,0x2df,_0x16bc20._0x127605),'pipe',_0x53777e(_0x16bc20._0x57e0e2,_0x16bc20._0x54494d,0x52c,0x559)]});function _0x53777e(_0x48f6d7,_0x1c10ea,_0x317940,_0x29d014){return _0x2eda91(_0x48f6d7-0xce,_0x29d014- -0x2d,_0x1c10ea,_0x29d014-_0x4eb282._0x56a189);}let _0x226887='';function _0xd2d608(_0x4b26ec,_0x3cb226,_0x1224d2,_0x597c4f){return _0x431d04(_0x4b26ec-0x17c,_0x3cb226,_0x1224d2-_0x2d02ff._0x2b3539,_0x4b26ec- -0x1da);}let _0x3a0cee='';_0x19dd3c['stdout']?.['on'](_0x53777e(_0x16bc20._0x5353ea,0x46b,_0x16bc20._0x5be50e,0x4d7),_0x4f7e2b=>{function _0x2f4ad6(_0x3fce99,_0x1af2e5,_0x739fcd,_0x2714a1){return _0x53777e(_0x3fce99-_0x6f45d6._0x21614c,_0x3fce99,_0x739fcd-_0x6f45d6._0x10993d,_0x1af2e5- -0x342);}_0x226887+=_0x4f7e2b[_0x2f4ad6(0x218,0x1fd,0x1fa,0x25f)]();}),_0x19dd3c[_0xd2d608(_0x16bc20._0x3ef498,_0x16bc20._0xe158c0,0x29a,_0x16bc20._0x3fc148)]?.['on'](_0xd2d608(0x27a,_0x16bc20._0x281eb0,0x273,_0x16bc20._0x1be2d5),_0x5c5d69=>{function _0x423fd8(_0x266183,_0xead0d8,_0x19b08a,_0x98938b){return _0xd2d608(_0x19b08a-0x17c,_0x98938b,_0x19b08a-0x118,_0x98938b-_0x2f3425._0x161aa1);}_0x3a0cee+=_0x5c5d69[_0x423fd8(0x452,0x404,_0x5d62ac._0x9673e7,_0x5d62ac._0x1317d1)]();}),_0x19dd3c['on']('close',_0x52244f=>{if(_0x52244f===0x1&&_0x226887===''){_0x2af48e([]);return;}if(_0x52244f!==0x0&&_0x52244f!==0x1){_0xeb017e(new Error(_0x1cde94(-0xb1,-_0x163112._0x3616ae,-0x4b,-_0x163112._0x25e88d)+_0x3a0cee));return;}const _0x582f6e=_0x39ce02[_0x4430fb(0x39a,0x358,0x2fb,_0x163112._0x40e7da)]??0x64;function _0x1cde94(_0x23cbb1,_0x478398,_0x48328a,_0x3db709){return _0x53777e(_0x23cbb1-0x125,_0x478398,_0x48328a-_0x2007f2._0x3c85e0,_0x48328a- -_0x2007f2._0xe7c907);}const _0x13b137=[];for(const _0x4caf87 of _0x226887[_0x1cde94(_0x163112._0x5f2a0a,0x1f,_0x163112._0x83de02,0x30)](/\r?\n/)){if(_0x13b137['length']>=_0x582f6e)break;const _0x4f8cae=parseMatchLine(_0x4caf87,_0x57351b);if(_0x4f8cae)_0x13b137['push'](_0x4f8cae);}function _0x4430fb(_0x42d778,_0x44b8b4,_0x344093,_0x5bc160){return _0xd2d608(_0x44b8b4-0x6c,_0x344093,_0x344093-_0x1b0958._0x2fcd23,_0x5bc160-_0x1b0958._0x45f140);}_0x2af48e(_0x13b137);}),_0x19dd3c['on'](_0x53777e(0x527,_0x16bc20._0x582b64,_0x16bc20._0x33c0c2,0x51d),_0xeb017e);});}function createGlobTool(_0x370afe={}){const _0x1d083e={_0x2e8bc7:0x473,_0x5b9671:0x4c5,_0x592d52:0x4ff,_0x1aec7e:0x423,_0xc2db9:0x423,_0x38a398:0x434,_0x294545:0x42d,_0x2208fa:0x4c2,_0x1a4457:0x4f9},_0x15435a={_0x1df1ad:0x26e,_0x59bfd8:0x253,_0x5999dd:0x1d0,_0xbf5106:0x12f,_0x2f74ed:0x148,_0x241103:0x26c,_0x24d2ce:0x236,_0x2bebc2:0x2d9,_0x2a5992:0x2a3,_0x34513e:0xf8,_0x5db0de:0xb3,_0x36251d:0xd3,_0x1599d7:0x90,_0x118db4:0x18d,_0x5241f5:0x165,_0x2c4094:0x16f,_0x4ec693:0x115,_0x316aad:0x146,_0x4cf38d:0x92,_0x2793d7:0xdc,_0x4c50ef:0xef,_0x3408b9:0x16c,_0xb5242e:0x138,_0xd0019a:0x20a,_0x37aedd:0x2ac,_0x293a4c:0x19b,_0x1afa08:0x20b,_0x64bd51:0x26a,_0x32923c:0x8c,_0x2b630e:0x4d,_0xda01ce:0x78,_0x3b2de4:0x225,_0x193de6:0x10a,_0x2ac16c:0xb0,_0x5b2254:0xd6,_0x1b3a72:0x24f,_0x48386e:0x1dd,_0x2ada52:0x80,_0x42a215:0x64,_0x488208:0xcf,_0x2c632c:0x64,_0x26186a:0x231,_0x261644:0x217,_0x3aa0e0:0x1ec,_0x33d5ce:0x18c,_0xcfc37a:0x26e,_0x364ce7:0x280,_0x2f816a:0x224,_0x1a3362:0xa4,_0x17a46b:0x77,_0x50a336:0xee,_0x2b6c18:0x94},_0xd84848={_0x1ed2f0:0x1b2},_0x208b84={_0x1f7be1:0xb},_0xc514d0=_0x336f02['resolve'](_0x370afe['defaultCwd']??process['cwd']()),_0x115806=_0x370afe[_0xa26ce7(0x4a4,_0x1d083e._0x2e8bc7,0x436,0x4f8)]??0x64,_0x412c7e=_0x370afe['name']??'Glob';function _0xa26ce7(_0x5bbf36,_0x509fec,_0x864b09,_0x67cb8e){return _0x27a792(_0x5bbf36-_0x208b84._0x1f7be1,_0x509fec-0x158,_0x67cb8e,_0x5bbf36-0x16d);}function _0x2eb036(_0x34f571,_0x21e05f,_0x4d968e,_0x341f66){return _0x27a792(_0x34f571-0x197,_0x21e05f-0x15f,_0x4d968e,_0x34f571- -_0xd84848._0x1ed2f0);}return defineTool({'name':_0x412c7e,'description':'Find\x20workspace\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0xa26ce7(_0x1d083e._0x5b9671,0x4c5,_0x1d083e._0x592d52,0x46b),'properties':{'pattern':{'type':_0xa26ce7(_0x1d083e._0x1aec7e,0x42d,0x44b,0x476)},'path':{'type':_0xa26ce7(_0x1d083e._0xc2db9,_0x1d083e._0x38a398,0x3f4,_0x1d083e._0x294545)},'limit':{'type':'number'}},'required':[_0xa26ce7(_0x1d083e._0x2208fa,_0x1d083e._0x1a4457,0x515,0x4e7)]},async *'execute'(_0x46688c){const _0x40534c={_0x5e8625:0xcb,_0x643e51:0x1ce,_0x3ec17d:0x13c};if(_0x46688c[_0x99a921(_0x15435a._0x1df1ad,0x2cc,_0x15435a._0x59bfd8,0x252)]['trim']()['length']===0x0)throw new ToolExecutionError(_0x99a921(_0x15435a._0x5999dd,0x22d,0x21f,0x211),{});const _0x5c6b48=resolveWorkspacePath(_0xc514d0,_0x46688c[_0x312873(-0x132,-0xeb,-_0x15435a._0xbf5106,-_0x15435a._0x2f74ed)]??'.'),_0x15eef0=await _0x172043(_0x5c6b48)[_0x99a921(_0x15435a._0x241103,_0x15435a._0x24d2ce,_0x15435a._0x2bebc2,_0x15435a._0x2a5992)](()=>null);if(!_0x15eef0?.[_0x312873(-0x57,-_0x15435a._0x34513e,-_0x15435a._0x5db0de,-0xce)]())throw new ToolExecutionError(_0x312873(-0xeb,-0x137,-_0x15435a._0x36251d,-_0x15435a._0x1599d7)+(_0x46688c[_0x99a921(0x1b3,0x20d,_0x15435a._0x118db4,_0x15435a._0x5241f5)]??'.'),{'path':_0x46688c[_0x312873(-_0x15435a._0x2c4094,-_0x15435a._0x4ec693,-0x12f,-_0x15435a._0x316aad)]??'.'});const _0x3318f7=_0x46688c[_0x312873(-0x4f,-0x35,-_0x15435a._0x4cf38d,-_0x15435a._0x2793d7)]??_0x115806,_0x2dbee6=Math[_0x312873(-_0x15435a._0x4c50ef,-_0x15435a._0x3408b9,-0xfe,-_0x15435a._0xb5242e)](0x1,Math['trunc'](_0x3318f7)),_0x31fe14=[];let _0x3b7019=![];for await(const _0x4e6177 of files({'cwd':_0x5c6b48,'glob':[_0x46688c[_0x99a921(0x26e,_0x15435a._0xd0019a,_0x15435a._0x37aedd,0x21f)]]})){if(_0x31fe14[_0x99a921(0x204,_0x15435a._0x293a4c,_0x15435a._0x1afa08,_0x15435a._0x64bd51)]>=_0x2dbee6){_0x3b7019=!![];break;}const _0x57628d=await _0x172043(_0x336f02[_0x312873(-_0x15435a._0x32923c,-_0x15435a._0x2b630e,-_0x15435a._0xda01ce,-0xc)](_0x5c6b48,_0x4e6177))[_0x99a921(0x26c,0x21b,0x2c8,_0x15435a._0x3b2de4)](()=>null);_0x31fe14['push']({'path':_0x4e6177,'mtime':_0x57628d?.[_0x312873(-0xdb,-_0x15435a._0x193de6,-_0x15435a._0x2ac16c,-_0x15435a._0x5b2254)]??0x0});}_0x31fe14[_0x99a921(0x266,0x218,0x241,_0x15435a._0x1b3a72)]((_0x14796c,_0x40b964)=>_0x40b964['mtime']-_0x14796c[_0x99a921(0x21e,0x25e,0x1b6,0x27c)]);function _0x312873(_0x569bc3,_0x3a7a54,_0x2595db,_0x2d404f){return _0x2eb036(_0x2595db- -0x217,_0x3a7a54-0x1b,_0x569bc3,_0x2d404f-0xdd);}const _0x18b871=_0x31fe14[_0x99a921(0x21f,0x220,0x266,0x1e4)](_0xbb152b=>_0xbb152b['path']),_0x4799a6=_0x18b871[_0x99a921(0x204,_0x15435a._0x48386e,0x25d,0x1ad)]===0x0?_0x312873(-_0x15435a._0x2ada52,-_0x15435a._0x42a215,-_0x15435a._0x488208,-_0x15435a._0x2c632c)+_0x46688c[_0x99a921(0x26e,_0x15435a._0x26186a,0x210,0x203)]:''+_0x18b871[_0x99a921(0x26a,0x270,0x1fe,_0x15435a._0x261644)]('\x0a')+(_0x3b7019?_0x99a921(0x1d2,_0x15435a._0x3aa0e0,0x1b2,_0x15435a._0x33d5ce):'');function _0x99a921(_0x391afd,_0xbbb440,_0x2405c5,_0x209f7c){return _0x2eb036(_0x391afd-_0x40534c._0x5e8625,_0xbbb440-_0x40534c._0x643e51,_0x209f7c,_0x209f7c-_0x40534c._0x3ec17d);}return yield createToolOutput(_0x4799a6,{'pattern':_0x46688c[_0x99a921(_0x15435a._0xcfc37a,_0x15435a._0x364ce7,_0x15435a._0x2f816a,0x295)],'searchPath':_0x336f02[_0x312873(-_0x15435a._0x1a3362,-0x5e,-_0x15435a._0x17a46b,-0x25)](_0xc514d0,_0x5c6b48)||'.','matches':_0x18b871,'count':_0x18b871[_0x312873(-_0x15435a._0x50a336,-0x124,-0xde,-_0x15435a._0x2b6c18)],'truncated':_0x3b7019}),void 0x0;}});}import{stat as _0x5dd0c7}from'fs/promises';import*as _0x3d8664 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x4f6a82={}){const _0x550f83={_0x5ba71e:0x1c4,_0x1cc395:0x15f,_0x5d02e7:0x156,_0x2b3446:0x165,_0x1019ac:0x1ac,_0x4ed58a:0x177,_0x4e2f65:0x14b,_0x4eea3e:0x2b0,_0x1447cc:0x27c,_0x5885de:0x2a4,_0xb204b0:0x2ac,_0x1da4a0:0x1aa,_0x299ce0:0x2f4,_0x3c8f43:0x148,_0x19edf9:0x138,_0x43f3ce:0x1a2,_0x1ff649:0x261,_0x1a7f78:0x1b7,_0x25ab95:0x14c,_0x529008:0xf2,_0x54ebc6:0x143,_0x5c0916:0xdb,_0x551f5a:0x10a,_0x1c512e:0xfe,_0x14b2a5:0x1d7,_0x33e05a:0x222},_0x5b71f8={_0x54500e:0x1d8,_0x614b6d:0x1c9,_0x8fd5dd:0x422,_0x2b1dd5:0x4a6,_0x529239:0x41a,_0x1af0d0:0x43a,_0x2d0d4b:0x3dd,_0x26f437:0x42e,_0x488737:0x55,_0x393b46:0xb0,_0x5aecce:0x43f,_0x5cd3e9:0x413,_0x4f70c6:0x12c,_0x51965c:0x49a,_0x4a40a7:0x445,_0x1cb4a8:0x443,_0x4ff5af:0x4a1,_0x4b17cd:0x43d,_0x23f1a3:0x509,_0x1599ef:0x467,_0x41fe53:0x8e,_0xd5ede9:0xad,_0x48e059:0x48c,_0x3df7ed:0x481,_0x3731b7:0x4d1,_0x469ccd:0x407,_0x53fbe0:0x487,_0x4d8e55:0x45f,_0x2f3c5c:0x4c2,_0x3874b3:0x13e,_0x47476e:0x177,_0x133e7b:0x126,_0x3107c4:0x133,_0xd58037:0x125,_0x1ea0be:0x142,_0x24428f:0x41a,_0x22097e:0x4df,_0x28c74c:0x3ea,_0x4df14a:0x45f,_0x5de2c9:0x45a,_0x4eab20:0x4b3,_0x18cdb1:0x47a,_0x1b0484:0x4a3,_0x9e0a76:0x4cd,_0x13e18d:0x4e9,_0xe7beca:0xcb,_0x1d1f06:0x12e,_0x592a89:0x10d,_0x4c59f1:0x44e,_0x4a91d2:0x43c,_0x24dd81:0x4b8,_0x4bcf90:0x49b,_0x57497f:0x47e,_0xb32cf1:0x491,_0x483771:0x178,_0x26460f:0x133,_0x2c3a39:0x4e1,_0x27091a:0x45e,_0x591d0d:0x4b1,_0x4e1694:0x466,_0x1f5a8a:0x504,_0x535f94:0x14f,_0x5c3ea5:0x493,_0x5f4d1e:0x4b5,_0x2d0a47:0x508,_0x492154:0x480,_0x5b47c4:0x4a0,_0x19a03c:0x446,_0xcaca06:0x13f,_0x91594:0x48c,_0x56f921:0x4de,_0x14c7ba:0x105},_0x472b9d={_0x3f4852:0x4f},_0x32b4bf={_0x5a872d:0xa8},_0x54f7c0={_0x285557:0x5d,_0x59f432:0x17e},_0x21e9c4=_0x3d8664[_0x1a2d93(_0x550f83._0x5ba71e,0x1eb,0x185,0x1b6)](_0x4f6a82['defaultCwd']??process[_0x1a2d93(0x1c7,0x1d4,0x1b4,_0x550f83._0x1cc395)]()),_0x2574e7=_0x4f6a82[_0x1a2d93(_0x550f83._0x5d02e7,_0x550f83._0x2b3446,0x1b9,0x1ab)]??0x64;function _0x1a2d93(_0x197bf3,_0x4a99f0,_0x4c8739,_0x159bb3){return _0x27a792(_0x197bf3-0x119,_0x4a99f0-_0x54f7c0._0x285557,_0x197bf3,_0x4c8739- -_0x54f7c0._0x59f432);}const _0x4f454f=_0x4f6a82[_0x1a2d93(_0x550f83._0x1019ac,0x155,_0x550f83._0x4ed58a,_0x550f83._0x4e2f65)]??_0x316a14(_0x550f83._0x4eea3e,_0x550f83._0x1447cc,_0x550f83._0x5885de,_0x550f83._0xb204b0);function _0x316a14(_0x37ceb9,_0x270236,_0x55c6f9,_0x23af89){return _0x27a792(_0x37ceb9-0x160,_0x270236-0xc,_0x55c6f9,_0x270236- -_0x32b4bf._0x5a872d);}return defineTool({'name':_0x4f454f,'description':_0x316a14(0x1a9,0x1f8,0x23f,_0x550f83._0x1da4a0),'inputSchema':{'type':_0x316a14(_0x550f83._0x299ce0,0x2b0,0x24f,0x2aa),'properties':{'pattern':{'type':_0x1a2d93(_0x550f83._0x3c8f43,0x165,_0x550f83._0x19edf9,0x171)},'path':{'type':_0x316a14(_0x550f83._0x43f3ce,0x20e,_0x550f83._0x1ff649,_0x550f83._0x1a7f78)},'include':{'type':_0x1a2d93(_0x550f83._0x25ab95,_0x550f83._0x529008,_0x550f83._0x19edf9,0xd9)},'limit':{'type':_0x1a2d93(_0x550f83._0x54ebc6,0x152,0x132,_0x550f83._0x5c0916)},'context':{'type':_0x1a2d93(0x13b,_0x550f83._0x551f5a,0x132,_0x550f83._0x1c512e)}},'required':[_0x1a2d93(0x172,_0x550f83._0x1da4a0,_0x550f83._0x14b2a5,_0x550f83._0x33e05a)]},async *'execute'(_0x2c284c){const _0x3f0c9b={_0x12e64c:0x88,_0x5cf9c2:0x1a};if(_0x2c284c[_0x52abf6(_0x5b71f8._0x54500e,0x113,_0x5b71f8._0x614b6d,0x16b)]['trim']()[_0x468627(0x44e,0x424,_0x5b71f8._0x8fd5dd,_0x5b71f8._0x2b1dd5)]===0x0)throw new ToolExecutionError(_0x468627(_0x5b71f8._0x529239,_0x5b71f8._0x1af0d0,_0x5b71f8._0x2d0d4b,_0x5b71f8._0x26f437),{});const _0x5eb012=resolveWorkspacePath(_0x21e9c4,_0x2c284c[_0x52abf6(0x71,0xa8,_0x5b71f8._0x488737,_0x5b71f8._0x393b46)]??'.'),_0x2baec1=await _0x5dd0c7(_0x5eb012)['catch'](()=>null),_0x5cec4e=_0x2baec1?.[_0x468627(_0x5b71f8._0x5aecce,_0x5b71f8._0x5cd3e9,0x3d3,0x454)]()??![],_0x45f339=_0x2baec1?.[_0x52abf6(0x119,0x180,0x177,_0x5b71f8._0x4f70c6)]()??![];if(!_0x5cec4e&&!_0x45f339)throw new ToolExecutionError('Path\x20not\x20found:\x20'+(_0x2c284c['path']??'.'),{'path':_0x2c284c['path']??'.'});const _0x2ddf3e=_0x2c284c[_0x468627(_0x5b71f8._0x51965c,0x4e2,0x4bf,_0x5b71f8._0x4a40a7)]??_0x2574e7,_0x300b97=Math[_0x468627(0x42e,_0x5b71f8._0x1cb4a8,0x420,0x433)](0x1,Math[_0x468627(_0x5b71f8._0x4ff5af,_0x5b71f8._0x4b17cd,_0x5b71f8._0x23f1a3,_0x5b71f8._0x1599ef)](_0x2ddf3e)),_0x59801c=await search({'cwd':_0x45f339?_0x5eb012:_0x3d8664[_0x52abf6(0x9c,_0x5b71f8._0x41fe53,0xb3,_0x5b71f8._0xd5ede9)](_0x5eb012),'pattern':_0x2c284c['pattern'],'glob':_0x45f339?_0x2c284c[_0x468627(_0x5b71f8._0x48e059,_0x5b71f8._0x3df7ed,_0x5b71f8._0x3731b7,0x44d)]:void 0x0,'limit':_0x300b97,'file':_0x5cec4e?_0x5eb012:void 0x0,'context':_0x2c284c['context']}),_0x125635=new Map();for(const _0x2140cd of _0x59801c){if(!_0x125635[_0x468627(0x421,_0x5b71f8._0x469ccd,_0x5b71f8._0x53fbe0,0x43a)](_0x2140cd[_0x468627(_0x5b71f8._0x4d8e55,0x410,0x46b,_0x5b71f8._0x2f3c5c)])){const _0x451ef6=await _0x5dd0c7(_0x2140cd['filePath'])[_0x52abf6(_0x5b71f8._0x3874b3,0x106,_0x5b71f8._0x47476e,0x169)](()=>null);_0x125635[_0x52abf6(_0x5b71f8._0x133e7b,_0x5b71f8._0x3107c4,_0x5b71f8._0xd58037,_0x5b71f8._0x1ea0be)](_0x2140cd['filePath'],{'matches':[],'mtime':_0x451ef6?.[_0x468627(0x47c,_0x5b71f8._0x24428f,_0x5b71f8._0x22097e,_0x5b71f8._0x3df7ed)]??0x0});}_0x125635[_0x468627(0x422,_0x5b71f8._0x28c74c,0x413,0x41b)](_0x2140cd[_0x468627(_0x5b71f8._0x4df14a,0x46a,_0x5b71f8._0x5de2c9,_0x5b71f8._0x4eab20)])?.['matches']['push'](_0x2140cd);}const _0x6ac347=[..._0x125635[_0x468627(_0x5b71f8._0x18cdb1,_0x5b71f8._0x1b0484,_0x5b71f8._0x9e0a76,0x485)]()][_0x468627(0x4b0,0x46b,0x465,_0x5b71f8._0x13e18d)]((_0x5dd7b9,_0x50a0bf)=>_0x50a0bf[0x1][_0x52abf6(0x138,0x135,0xf4,0x11b)]-_0x5dd7b9[0x1][_0x52abf6(0xec,0xf8,0x173,0x11b)]),_0x3ba248=_0x59801c[_0x52abf6(_0x5b71f8._0xe7beca,_0x5b71f8._0x1d1f06,0xd9,_0x5b71f8._0x592a89)](_0x3ab134=>!_0x3ab134[_0x468627(0x484,0x47a,0x43e,0x48f)])['length'],_0x1937bf=_0x59801c[_0x468627(_0x5b71f8._0x4c59f1,0x46d,0x403,0x44f)]>=_0x300b97,_0x4ed8a9=_0x5cec4e?_0x3d8664['dirname'](_0x5eb012):_0x5eb012;function _0x52abf6(_0x3a3b1d,_0x3e6167,_0x4715d1,_0x374d3d){return _0x316a14(_0x3a3b1d-_0x3f0c9b._0x12e64c,_0x374d3d- -0x142,_0x3e6167,_0x374d3d-_0x3f0c9b._0x5cf9c2);}let _0x152840='';if(_0x59801c[_0x468627(0x44e,0x409,_0x5b71f8._0x4a91d2,0x4b4)]===0x0)_0x152840=_0x468627(0x40a,0x3e9,0x3b2,0x3d8)+_0x2c284c[_0x468627(_0x5b71f8._0x24dd81,0x4bd,_0x5b71f8._0x4bcf90,0x4aa)];else{_0x152840=_0x468627(0x4b7,0x4c1,_0x5b71f8._0x57497f,_0x5b71f8._0xb32cf1)+_0x3ba248+_0x52abf6(_0x5b71f8._0x483771,0x183,0x129,_0x5b71f8._0x26460f)+(_0x3ba248===0x1?'':'es')+'\x0a';for(const [_0x18a22b,_0x26c5aa]of _0x6ac347){const _0x2dd92b=_0x5cec4e?_0x3d8664[_0x468627(0x4a0,_0x5b71f8._0x2c3a39,0x4e6,_0x5b71f8._0x27091a)](_0x18a22b):_0x3d8664['relative'](_0x4ed8a9,_0x18a22b);_0x152840+='\x0a'+_0x2dd92b+':\x0a';for(const _0x1eaff7 of _0x26c5aa['matches']){const _0x1c98cc=_0x1eaff7['lineText']['length']>MAX_LINE_LENGTH?_0x1eaff7[_0x468627(_0x5b71f8._0x591d0d,_0x5b71f8._0x4e1694,0x4e3,_0x5b71f8._0x1f5a8a)][_0x52abf6(0x134,0xf7,_0x5b71f8._0x535f94,0x127)](0x0,MAX_LINE_LENGTH)+'...':_0x1eaff7[_0x468627(_0x5b71f8._0x591d0d,0x4e9,_0x5b71f8._0x5c3ea5,0x46f)],_0x317e2e=_0x1eaff7[_0x52abf6(0x129,0x12e,0xd0,0x137)]?'\x20\x20':'>\x20';_0x152840+=_0x317e2e+'Line\x20'+_0x1eaff7['lineNum']+':\x20'+_0x1c98cc+'\x0a';}}_0x1937bf&&(_0x152840+=_0x52abf6(0xf1,0x6e,0x105,0xcf));}const _0x13e3f2={'searchPath':_0x3d8664[_0x468627(_0x5b71f8._0x5f4d1e,_0x5b71f8._0x2d0a47,_0x5b71f8._0x492154,0x503)](_0x21e9c4,_0x5eb012)||'.','pattern':_0x2c284c[_0x468627(0x4b8,_0x5b71f8._0x5b47c4,_0x5b71f8._0x22097e,0x50e)],'matchCount':_0x3ba248,'fileCount':_0x125635[_0x468627(0x44b,_0x5b71f8._0x48e059,_0x5b71f8._0x19a03c,0x48a)],'truncated':_0x1937bf};function _0x468627(_0x4af0d1,_0x380840,_0x555585,_0x11d10d){return _0x1a2d93(_0x380840,_0x380840-_0x472b9d._0x3f4852,_0x4af0d1-0x2e1,_0x11d10d-0x192);}return _0x45f339&&_0x2c284c[_0x52abf6(0x189,0x162,0x12c,_0x5b71f8._0xcaca06)]!==void 0x0&&(_0x13e3f2[_0x468627(_0x5b71f8._0x91594,0x4e7,0x4b3,_0x5b71f8._0x56f921)]=_0x2c284c[_0x52abf6(0xfe,_0x5b71f8._0x14c7ba,0x155,0x13f)]),yield createToolOutput(_0x152840[_0x52abf6(0x13e,0xd3,0x199,0x13c)](),_0x13e3f2),void 0x0;}});}import{readdir,readFile as _0x17eab8,stat as _0x1b1301}from'fs/promises';function _0xdaaf(_0x399900,_0x351b45){_0x399900=_0x399900-0x1ac;const _0x39d05f=_0x39d0();let _0xdaaf81=_0x39d05f[_0x399900];if(_0xdaaf['lujMdu']===undefined){var _0x1e8ca6=function(_0x3096ef){const _0xa6b6b4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x20a4fc='',_0x366479='';for(let _0x3a745a=0x0,_0x264aea,_0x2b3c5c,_0x1de27e=0x0;_0x2b3c5c=_0x3096ef['charAt'](_0x1de27e++);~_0x2b3c5c&&(_0x264aea=_0x3a745a%0x4?_0x264aea*0x40+_0x2b3c5c:_0x2b3c5c,_0x3a745a++%0x4)?_0x20a4fc+=String['fromCharCode'](0xff&_0x264aea>>(-0x2*_0x3a745a&0x6)):0x0){_0x2b3c5c=_0xa6b6b4['indexOf'](_0x2b3c5c);}for(let _0x2a9f9e=0x0,_0x2d3dfb=_0x20a4fc['length'];_0x2a9f9e<_0x2d3dfb;_0x2a9f9e++){_0x366479+='%'+('00'+_0x20a4fc['charCodeAt'](_0x2a9f9e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x366479);};_0xdaaf['qzzoOz']=_0x1e8ca6,_0xdaaf['YgWjZL']={},_0xdaaf['lujMdu']=!![];}const _0x16f8f7=_0x39d05f[0x0],_0x199d02=_0x399900+_0x16f8f7,_0x32bb51=_0xdaaf['YgWjZL'][_0x199d02];return!_0x32bb51?(_0xdaaf81=_0xdaaf['qzzoOz'](_0xdaaf81),_0xdaaf['YgWjZL'][_0x199d02]=_0xdaaf81):_0xdaaf81=_0x32bb51,_0xdaaf81;}import*as _0x24d89d from'path';import*as _0x4e4793 from'yaml';async function countTextLines(_0x2b255f){const _0x5c18f8={_0x313599:0x4b6,_0x1da853:0x448,_0x25eee6:0x433,_0x99ab7c:0x422,_0x1895c0:0x3d6,_0x19c3df:0x43e,_0x3e2e6b:0x154,_0x1e07a0:0x112},_0x421e05={_0x248f90:0x1bd},_0x561e37={_0x5ab090:0x8,_0x2ac818:0xf5},_0x126ee9=await _0x17eab8(_0x2b255f)[_0x41db1a(_0x5c18f8._0x313599,_0x5c18f8._0x1da853,_0x5c18f8._0x25eee6,0x434)](()=>null);function _0x41db1a(_0x7b3b47,_0x489162,_0x1290d8,_0xc486a3){return _0x27a792(_0x7b3b47-0x78,_0x489162-_0x561e37._0x5ab090,_0x7b3b47,_0x489162-_0x561e37._0x2ac818);}if(!_0x126ee9||isProbablyBinary(_0x126ee9))return void 0x0;function _0xf067c5(_0x19fc5e,_0x11ad05,_0xcc323d,_0x24170c){return _0x5c1169(_0x19fc5e-0xe2,_0x19fc5e,_0xcc323d- -0x6ee,_0x24170c-_0x421e05._0x248f90);}return _0x126ee9[_0x41db1a(0x3e3,_0x5c18f8._0x99ab7c,0x46c,_0x5c18f8._0x1895c0)](_0x41db1a(0x3d8,_0x5c18f8._0x19c3df,0x422,0x4a2))[_0xf067c5(-_0x5c18f8._0x3e2e6b,-_0x5c18f8._0x1e07a0,-0x13b,-0x12d)](/\r?\n/)['length'];}function createLsTool(_0xa2f043={}){const _0x101985={_0x3cfda3:0xaf,_0xcf33d:0x162,_0x559af1:0xe4,_0x201085:0xaa,_0x2bed5f:0xe0,_0x23abc8:0xab,_0x1b4a8a:0x16f,_0x25aa55:0xe7,_0x117e21:0x14d},_0x1d866c={_0x2305ee:0x6c,_0x541afd:0x3d,_0x1b0332:0x99,_0x4d279c:0xc4,_0x50dd0c:0x5e0,_0x3fff3b:0x60c,_0x333d05:0x5a4,_0x44114c:0x5c0,_0x433f1f:0x607,_0x46c087:0x618,_0x5c414c:0x595,_0x25be3e:0x543,_0x5d0c9c:0x5e5,_0x1fe924:0x5db,_0x3635a9:0x5b5,_0x4738ab:0x161,_0x4b5d35:0x150,_0x1e33e5:0x58b,_0x11f9ee:0xac,_0x36fc5a:0xdb,_0x5e7ab3:0x111,_0x355d2e:0x94,_0xb840a5:0x9c,_0x4a0c37:0xb8,_0x118483:0x11c,_0x9e4702:0x14f,_0x21c697:0x180,_0x245e4f:0xa6,_0x285965:0xc9,_0x29496e:0x10e,_0x1e838e:0x5b2,_0x4624f0:0x554,_0x459cf7:0x611,_0x4415ed:0x5c3,_0x3aee36:0xd9,_0x14e547:0x13e,_0x26001a:0x16e,_0x13a0bd:0xe7,_0x130f18:0x120,_0x135308:0x617,_0x2e4d83:0x606,_0x4fa754:0xce,_0xdd94b6:0xbd,_0x48b50d:0xcd,_0xf3e20d:0x11d,_0x2939e5:0x11e,_0x5b0041:0x111,_0x9846da:0x5b5},_0x2dbee2={_0x127a7e:0xd3,_0x396dcd:0x1a},_0x4ca9f6={_0x2b2f62:0x118},_0x24a019={_0x3f8dec:0x4c,_0x23527e:0x1c2};function _0x130c5c(_0x5a62b7,_0x496cf8,_0x2dd3e3,_0x46f16f){return _0x5c1169(_0x5a62b7-_0x24a019._0x3f8dec,_0x5a62b7,_0x46f16f- -0x67c,_0x46f16f-_0x24a019._0x23527e);}const _0x38e1fa=_0x24d89d['resolve'](_0xa2f043['defaultCwd']??process['cwd']());function _0xd721e1(_0x312f8e,_0x58ef93,_0x3e667a,_0x119493){return _0x5c1169(_0x312f8e-0x9b,_0x3e667a,_0x312f8e- -0x2dc,_0x119493-_0x4ca9f6._0x2b2f62);}const _0x4a4a76=_0xa2f043[_0x130c5c(-_0x101985._0x3cfda3,-_0x101985._0xcf33d,-0x121,-0x10e)]??'Ls';return defineTool({'name':_0x4a4a76,'description':_0x130c5c(-_0x101985._0x559af1,-0x48,-0x10b,-_0x101985._0x201085),'inputSchema':{'type':_0x130c5c(-_0x101985._0x2bed5f,-0x4e,-0xfc,-_0x101985._0x23abc8),'properties':{'path':{'type':_0x130c5c(-0x161,-_0x101985._0x1b4a8a,-_0x101985._0x25aa55,-_0x101985._0x117e21)},'limit':{'type':_0x130c5c(-0xef,-0x148,-0x143,-0x153)}}},async *'execute'(_0xd46955){const _0x168c91={_0x117071:0x6b},_0x39ef91=_0xd46955[_0x1cdca9(_0x1d866c._0x2305ee,_0x1d866c._0x541afd,_0x1d866c._0x1b0332,_0x1d866c._0x4d279c)]??'.';function _0x1cdca9(_0x472dc4,_0x32e315,_0x4af19a,_0x34df52){return _0xd721e1(_0x4af19a- -0x19e,_0x32e315-_0x2dbee2._0x127a7e,_0x34df52,_0x34df52-_0x2dbee2._0x396dcd);}const _0x14f2b6=resolveWorkspacePath(_0x38e1fa,_0x39ef91),_0x263255=await _0x1b1301(_0x14f2b6)['catch'](()=>null);if(!_0x263255?.[_0x3bf0a3(_0x1d866c._0x50dd0c,_0x1d866c._0x3fff3b,0x5f2,_0x1d866c._0x333d05)]())throw new ToolExecutionError(_0x3bf0a3(_0x1d866c._0x44114c,_0x1d866c._0x433f1f,0x5fa,0x5f1)+_0x39ef91,{'path':_0x39ef91});const _0x2cc3b5=_0xd46955[_0x3bf0a3(0x601,0x5f2,_0x1d866c._0x46c087,0x5d1)]??0x3e8;function _0x3bf0a3(_0x2a0e61,_0x54add4,_0x3e0194,_0x45b05f){return _0xd721e1(_0x2a0e61-0x32d,_0x54add4-_0x168c91._0x117071,_0x45b05f,_0x45b05f-0x22);}const _0x719782=Math['min'](Math[_0x3bf0a3(_0x1d866c._0x5c414c,_0x1d866c._0x25be3e,0x5d1,_0x1d866c._0x5d0c9c)](Math['trunc'](_0x2cc3b5),0x1),0x2710),_0x10f39d=await readdir(_0x14f2b6),_0x27c245=[];for(const _0x15ad9e of _0x10f39d[_0x3bf0a3(_0x1d866c._0x1fe924,0x5cb,0x5a1,_0x1d866c._0x3635a9)](0x0,_0x719782)){const _0x1aef03=_0x24d89d[_0x1cdca9(_0x1d866c._0x4738ab,0x176,_0x1d866c._0x4b5d35,0x144)](_0x14f2b6,_0x15ad9e),_0x283cdd=await _0x1b1301(_0x1aef03)['catch'](()=>null);if(!_0x283cdd)continue;let _0x3f486d=_0x3bf0a3(_0x1d866c._0x1e33e5,0x55b,0x569,0x5e4);if(_0x283cdd[_0x1cdca9(0xfe,_0x1d866c._0x11f9ee,_0x1d866c._0x36fc5a,_0x1d866c._0x5e7ab3)]())_0x3f486d=_0x1cdca9(0xda,_0x1d866c._0x355d2e,_0x1d866c._0xb840a5,_0x1d866c._0x4a0c37);else{if(_0x283cdd[_0x1cdca9(_0x1d866c._0x118483,_0x1d866c._0x9e4702,0x115,_0x1d866c._0x21c697)]())_0x3f486d='directory';else{if(_0x283cdd['isSymbolicLink']())_0x3f486d=_0x1cdca9(0x89,_0x1d866c._0x245e4f,_0x1d866c._0x285965,_0x1d866c._0x29496e);}}const _0x19df9c={'name':_0x15ad9e,'type':_0x3f486d,'size':_0x283cdd[_0x3bf0a3(_0x1d866c._0x1e838e,_0x1d866c._0x4624f0,_0x1d866c._0x459cf7,_0x1d866c._0x4415ed)],'mtime':_0x283cdd[_0x1cdca9(0x15e,0x17e,0x118,_0x1d866c._0x3aee36)],'mode':_0x283cdd[_0x1cdca9(_0x1d866c._0x14e547,0x13e,_0x1d866c._0x26001a,0x13a)]},_0x1cd0b6=_0x3f486d===_0x1cdca9(0xfb,_0x1d866c._0x13a0bd,0x9c,0xa2)?await countTextLines(_0x1aef03):void 0x0;if(_0x1cd0b6!==void 0x0)_0x19df9c['lines']=_0x1cd0b6;_0x27c245[_0x1cdca9(0xa8,0xc4,0xf2,_0x1d866c._0x130f18)](_0x19df9c);}_0x27c245[_0x3bf0a3(_0x1d866c._0x135308,0x619,_0x1d866c._0x2e4d83,0x67d)]((_0x3c7368,_0x32eef3)=>_0x3c7368[_0x1cdca9(0x155,0x108,0xf4,0x136)][_0x3bf0a3(0x5c7,0x5a2,0x56a,0x583)](_0x32eef3[_0x1cdca9(0x86,0xb7,0xf4,0x86)]));const _0x3f1cda={'path':_0x39ef91,'total':_0x27c245[_0x1cdca9(0x88,_0x1d866c._0x4fa754,0xea,_0x1d866c._0xdd94b6)],'truncated':_0x10f39d['length']>_0x719782,'entries':_0x27c245};return yield createToolOutput(_0x4e4793[_0x1cdca9(0xea,0x13c,0xd9,_0x1d866c._0x48b50d)](_0x3f1cda,{'indent':0x2,'lineWidth':0x0})[_0x1cdca9(0x16b,_0x1d866c._0xf3e20d,_0x1d866c._0x2939e5,0x111)](),{'path':_0x39ef91,'total':_0x27c245[_0x1cdca9(0xe0,_0x1d866c._0x5b0041,0xea,0xb2)],'truncated':_0x10f39d[_0x3bf0a3(_0x1d866c._0x9846da,0x5ba,0x54f,0x5e0)]>_0x719782,'limit':_0x719782,'entries':_0x27c245}),void 0x0;}});}function getCommand(_0x1b4032){const _0x2e8241={_0x18eca9:0x11c,_0x1c708e:0x17b,_0xf30a38:0x140,_0x2dc83e:0x10a,_0x4bafe6:0x1a3,_0x270721:0x142,_0x2c7a9b:0x149},_0x57517f={_0x4c4c84:0x19b,_0x9a528c:0x459},_0x2213df={_0x32fdaa:0x3d,_0x49431f:0x474};function _0x5d186c(_0x36f824,_0x420a05,_0x30fb75,_0x4e70e7){return _0x27a792(_0x36f824-0x1d3,_0x420a05-_0x2213df._0x32fdaa,_0x36f824,_0x30fb75- -_0x2213df._0x49431f);}function _0x21bea6(_0x43a165,_0x3a628c,_0x100e20,_0x19838a){return _0x27a792(_0x43a165-0x139,_0x3a628c-_0x57517f._0x4c4c84,_0x43a165,_0x3a628c- -_0x57517f._0x9a528c);}if(_0x1b4032&&typeof _0x1b4032===_0x5d186c(-0xbc,-0x14d,-_0x2e8241._0x18eca9,-_0x2e8241._0x1c708e)&&!Array[_0x21bea6(-_0x2e8241._0xf30a38,-0x113,-_0x2e8241._0x2dc83e,-0x174)](_0x1b4032)&&typeof _0x1b4032['command']===_0x21bea6(-0x14f,-_0x2e8241._0x4bafe6,-0x20e,-0x19d))return _0x1b4032[_0x21bea6(-_0x2e8241._0x270721,-_0x2e8241._0x2c7a9b,-0x16f,-0x183)];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=['docs/plans/2026-04-16-agent-loop-core-design.md',_0x27a792(0x337,0x347,0x342,0x335),_0x27a792(0x299,0x267,0x2cb,0x295),_0x5c1169(0x599,0x53d,0x54a,0x535),_0x27a792(0x2ab,0x311,0x308,0x2d4),'src/formats/message-format.ts',_0x5c1169(0x518,0x58c,0x546,0x5ae),_0x5c1169(0x58e,0x5e0,0x5b9,0x5b5),'src/models/mock-model.ts',_0x27a792(0x38a,0x334,0x341,0x333),_0x5c1169(0x55f,0x563,0x594,0x601),_0x5c1169(0x5a7,0x578,0x580,0x572),_0x5c1169(0x60b,0x612,0x5c1,0x58f),_0x5c1169(0x625,0x572,0x5c5,0x599),_0x5c1169(0x56a,0x540,0x52c,0x4bf),_0x27a792(0x308,0x248,0x295,0x2a2),_0x5c1169(0x552,0x547,0x58b,0x563)][_0x5c1169(0x5a1,0x5d1,0x5ca,0x5dc)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x5c1169(0x603,0x5b0,0x5a4,0x5a4),'description':_0x5c1169(0x555,0x5a8,0x5a9,0x57d),'input_schema':{'type':_0x27a792(0x3b6,0x340,0x38e,0x358),'properties':{'command':{'type':_0x5c1169(0x544,0x504,0x52f,0x535)}},'required':['command']}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x2ea5f7){return{'output':_0x2ea5f7,'structured':{'value':_0x2ea5f7}};}function createUnknownToolResult(_0x3b2f74){const _0x2eebdc={_0x3fd59a:0x276,_0xa2e3b7:0x296,_0x175d49:0x22e,_0x55a3fa:0x295,_0x4a5acc:0x2a6,_0x55f2ea:0x3ed,_0x4c39ae:0x3ea},_0x17f332={_0x5abbcb:0xbc,_0x33e74f:0xf8};function _0x1c645b(_0xc46338,_0x5dcd17,_0x3ead7a,_0x44c372){return _0x5c1169(_0xc46338-0x1f3,_0xc46338,_0x5dcd17- -0x31a,_0x44c372-0xb2);}function _0x2fb096(_0x11ac5e,_0x427698,_0xbfb7c1,_0x56a1a9){return _0x27a792(_0x11ac5e-_0x17f332._0x5abbcb,_0x427698-0x14c,_0x56a1a9,_0xbfb7c1-_0x17f332._0x33e74f);}return{'callId':_0x3b2f74['id'],'toolName':_0x3b2f74[_0x1c645b(0x2a2,0x254,_0x2eebdc._0x3fd59a,0x29f)],'status':_0x1c645b(0x248,0x26a,_0x2eebdc._0xa2e3b7,_0x2eebdc._0x175d49),'output':_0x1c645b(0x228,_0x2eebdc._0x55a3fa,_0x2eebdc._0x4a5acc,0x2ef)+_0x3b2f74[_0x2fb096(0x3a5,0x409,_0x2eebdc._0x55f2ea,_0x2eebdc._0x4c39ae)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x36b571,_0x3c100e){const _0x53d309={_0x4ed467:0x29c,_0x54b429:0x271},_0x13150b={_0x4ffabf:0x27},_0x30f6d7={_0x3afb26:0x186,_0x4fd0f2:0x12d};function _0x306358(_0x2cf4a9,_0x56df5d,_0x4a1cc2,_0x1fa79a){return _0x27a792(_0x2cf4a9-_0x30f6d7._0x3afb26,_0x56df5d-_0x30f6d7._0x4fd0f2,_0x2cf4a9,_0x1fa79a-0x1a2);}function _0x5b336e(_0x468877,_0x4591b4,_0x587c2e,_0x382b82){return _0x5c1169(_0x468877-_0x13150b._0x4ffabf,_0x468877,_0x382b82- -0x2fd,_0x382b82-0x7d);}return{'callId':_0x36b571['id'],'toolName':_0x36b571[_0x5b336e(_0x53d309._0x4ed467,0x206,0x26e,_0x53d309._0x54b429)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x36b571[_0x5b336e(0x291,0x29e,0x1f2,0x24a)]),'exitCode':0x0},'chunks':[_0x3c100e],'meta':createMeta()};}function createMockToolRuntime(){const _0x35372b={_0xa19804:0x63,_0x378c6d:0x88},_0x126ec9={_0x10b8e7:0x57b,_0x548bb1:0x593,_0x3af334:0x5c5,_0x155314:0x571},_0x1ce61d={_0x42bcf5:0x3c9},_0x3bdaeb=async(_0x469927,_0x640dab)=>{function _0xa78773(_0x2c0697,_0x84cca4,_0x1aee88,_0x252f19){return _0xdaaf(_0x2c0697-0x308,_0x252f19);}if(_0x469927[_0x59cc08(_0x126ec9._0x10b8e7,_0x126ec9._0x548bb1,0x5d5,_0x126ec9._0x3af334)]!==_0xa78773(0x54a,_0x126ec9._0x155314,0x588,0x58e))return createUnknownToolResult(_0x469927);function _0x59cc08(_0x31b4c8,_0x3d491d,_0x3400a8,_0x1d1637){return _0xdaaf(_0x3400a8-_0x1ce61d._0x42bcf5,_0x1d1637);}const _0x486b1b=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x469927,_0x486b1b);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},async 'executeCalls'(_0x488cac,_0x2150c7){function _0xca86dc(_0x319791,_0x14503f,_0x55baa6,_0x2a1b6a){return _0xdaaf(_0x2a1b6a- -0x176,_0x14503f);}return await Promise['all'](_0x488cac[_0xca86dc(_0x35372b._0xa19804,_0x35372b._0x378c6d,0x92,0xa7)](async _0x3f5047=>{return await _0x3bdaeb(_0x3f5047,_0x2150c7);}));},async 'execute'(_0x5138e7,_0x177207){return await _0x3bdaeb(_0x5138e7,_0x177207);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x2eb313={_0x446f51:0x1d6,_0x3b471a:0x1b2},_0x2e80a4={_0x6563a7:0x46,_0x432037:0x1bf};function _0x3d2c40(_0x23c1c5,_0x544052,_0x104150,_0x2d2141){return _0x27a792(_0x23c1c5-_0x2e80a4._0x6563a7,_0x544052-_0x2e80a4._0x432037,_0x23c1c5,_0x2d2141- -0x4cc);}return delegatedRunCounter+=0x1,_0x3d2c40(-_0x2eb313._0x446f51,-0x15f,-0x1fe,-_0x2eb313._0x3b471a)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x44fa2c,_0x3fbb0d){const _0x518e90={_0x5456c5:0x473,_0x12fc3a:0x3fc},_0x4bf8f3={_0x4562c0:0x155};function _0x768a12(_0x29e9e6,_0x31591b,_0x47f524,_0x2cad71){return _0x27a792(_0x29e9e6-_0x4bf8f3._0x4562c0,_0x31591b-0x1d0,_0x31591b,_0x47f524-0x16c);}return typeof _0x44fa2c===_0x768a12(_0x518e90._0x5456c5,_0x518e90._0x12fc3a,0x424,0x3fe)?await _0x44fa2c(_0x3fbb0d):_0x44fa2c;}function getDelegatedAgentDefinition(_0x4cf1ca,_0x838328){const _0x2417aa={_0x387bf9:0x2ce,_0x20a4f9:0x304},_0x3ce15f={_0x23e737:0x2f};function _0x10421c(_0x132693,_0x1274f8,_0x47ac2f,_0x4ae1b0){return _0x27a792(_0x132693-0x130,_0x1274f8-0x145,_0x1274f8,_0x4ae1b0-_0x3ce15f._0x23e737);}return _0x4cf1ca[_0x10421c(0x354,0x362,_0x2417aa._0x387bf9,_0x2417aa._0x20a4f9)]?.[_0x838328];}function createRunSummary(_0x547db5){const _0x37ddd1={_0x3756c6:0x4b4,_0x35009:0x4d8,_0x11fed6:0x2a2,_0x5944cc:0x305,_0x2ad5d3:0x2a0,_0x527c38:0x29f,_0x1a062f:0x2c9,_0x518389:0x308,_0x423c0e:0x383,_0x57ac98:0x317,_0x564021:0x539,_0x40580e:0x539,_0x52ea9d:0x4ea,_0x15414d:0x516,_0x5725cb:0x46d,_0x20b7c9:0x503,_0x528b6f:0x4ac,_0x48958b:0x4f7,_0xbd598f:0x4bf,_0x25df0b:0x4e3,_0x3425e8:0x434,_0x27bbf5:0x457,_0x120c8d:0x4a2,_0x1bfbe4:0x346,_0x37e05a:0x33e,_0x5e37f7:0x332,_0x38bd8b:0x4ac},_0xfa4fa9={_0x1f6cf4:0x1c8,_0x5d934c:0x74,_0x5ec0f9:0x1c7},_0x47cac0={_0xe21dd5:0x196,_0x87e8ec:0x296,_0x44311d:0x12b};function _0x36eb5d(_0x46789a,_0x97d864,_0x981d11,_0x1f0a33){return _0x5c1169(_0x46789a-_0x47cac0._0xe21dd5,_0x981d11,_0x1f0a33- -_0x47cac0._0x87e8ec,_0x1f0a33-_0x47cac0._0x44311d);}function _0x3206a7(_0x4e3e65,_0x6b198b,_0x5400e3,_0x15ec9c){return _0x27a792(_0x4e3e65-_0xfa4fa9._0x1f6cf4,_0x6b198b-_0xfa4fa9._0x5d934c,_0x4e3e65,_0x15ec9c-_0xfa4fa9._0x5ec0f9);}return{'runId':_0x547db5[_0x3206a7(_0x37ddd1._0x3756c6,0x499,0x429,0x479)],'agentId':_0x547db5[_0x3206a7(0x4f5,_0x37ddd1._0x35009,0x519,0x535)],'sessionId':_0x547db5[_0x36eb5d(_0x37ddd1._0x11fed6,_0x37ddd1._0x5944cc,_0x37ddd1._0x2ad5d3,0x2b2)],'status':_0x547db5[_0x36eb5d(_0x37ddd1._0x527c38,0x34b,_0x37ddd1._0x1a062f,_0x37ddd1._0x518389)],'parentSessionId':_0x547db5[_0x36eb5d(0x2c4,0x328,_0x37ddd1._0x423c0e,_0x37ddd1._0x57ac98)],..._0x547db5['originToolCallId']!==void 0x0?{'originToolCallId':_0x547db5[_0x3206a7(_0x37ddd1._0x564021,_0x37ddd1._0x40580e,0x4c9,_0x37ddd1._0x52ea9d)]}:{},..._0x547db5[_0x3206a7(_0x37ddd1._0x15414d,_0x37ddd1._0x5725cb,_0x37ddd1._0x20b7c9,_0x37ddd1._0x528b6f)]!==void 0x0?{'errorMessage':_0x547db5[_0x3206a7(_0x37ddd1._0x48958b,0x485,_0x37ddd1._0xbd598f,0x4ac)]}:{},..._0x547db5[_0x3206a7(_0x37ddd1._0x25df0b,_0x37ddd1._0x3425e8,_0x37ddd1._0x27bbf5,_0x37ddd1._0x120c8d)]?.[_0x36eb5d(0x34a,_0x37ddd1._0x1bfbe4,_0x37ddd1._0x37e05a,_0x37ddd1._0x5e37f7)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x547db5[_0x3206a7(_0x37ddd1._0x38bd8b,0x4fa,0x49e,_0x37ddd1._0x120c8d)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x43cadb,_0xd7c991){const _0x32fcb2={_0x461d56:0x2c4,_0x4fb063:0x2b4,_0x320636:0x266,_0x435ff6:0x2a1},_0x18dde6={_0x34f249:0x190,_0x2b3d5a:0x2c3},_0x3d327b={_0x1207bd:0xd4};function _0x583d58(_0x47cd99,_0x2a1d18,_0x43215e,_0x491757){return _0x5c1169(_0x47cd99-0x19a,_0x2a1d18,_0x47cd99- -0x696,_0x491757-_0x3d327b._0x1207bd);}const _0x50e06f=createRunSummary(_0x43cadb);function _0x2d0be4(_0x1e9cb6,_0x258df3,_0x7bb56e,_0x82d225){return _0x5c1169(_0x1e9cb6-_0x18dde6._0x34f249,_0x258df3,_0x82d225- -_0x18dde6._0x2b3d5a,_0x82d225-0x160);}const _0x4da0e6=_0x50e06f[_0x2d0be4(0x272,_0x32fcb2._0x461d56,0x2c7,_0x32fcb2._0x4fb063)];return createToolOutput(typeof _0x4da0e6==='string'&&_0x4da0e6[_0x2d0be4(0x25d,_0x32fcb2._0x320636,0x24f,_0x32fcb2._0x435ff6)]>0x0?_0x4da0e6:_0xd7c991,_0x50e06f);}function getRunTerminalErrorMessage(_0x1caaf2){const _0xe7d3e8={_0x47862c:0x249,_0x24c5d0:0xa7,_0x2d4dc6:0x5a,_0x1ac5ad:0x8e,_0x548973:0x97,_0x1f3e1f:0xf,_0x2c97c2:0x1ea,_0x3a7a1a:0x1a6,_0x4e1848:0x1b9,_0x5a17e8:0xba,_0x5aed09:0x5b,_0xfd94e5:0xb,_0x1a73a5:0x1a6,_0x57b441:0x1b4},_0x4c2aaa={_0x305d48:0x1a0},_0x4266d8={_0x2fca0b:0xfd,_0x5c6a29:0xf1,_0x3183bb:0x2cb},_0x1739b2=_0x1caaf2?.['state'][_0x243c41(0x26c,_0xe7d3e8._0x47862c,0x270,0x239)]['at'](-0x1);function _0x2bd07b(_0x5d082e,_0x5ec0bc,_0x402bf7,_0xb540ee){return _0x27a792(_0x5d082e-_0x4266d8._0x2fca0b,_0x5ec0bc-_0x4266d8._0x5c6a29,_0xb540ee,_0x5ec0bc- -_0x4266d8._0x3183bb);}if(_0x1739b2?.[_0x2bd07b(_0xe7d3e8._0x24c5d0,_0xe7d3e8._0x2d4dc6,_0xe7d3e8._0x1ac5ad,0x36)]===_0x2bd07b(0x93,0x40,_0xe7d3e8._0x548973,-_0xe7d3e8._0x1f3e1f)&&_0x1739b2[_0x243c41(_0xe7d3e8._0x2c97c2,_0xe7d3e8._0x3a7a1a,_0xe7d3e8._0x4e1848,0x1b0)][_0x2bd07b(_0xe7d3e8._0x5a17e8,_0xe7d3e8._0x5aed09,0x58,_0xe7d3e8._0xfd94e5)]()['length']>0x0)return _0x1739b2[_0x243c41(0x1b5,_0xe7d3e8._0x1a73a5,_0xe7d3e8._0x57b441,0x192)];function _0x243c41(_0x8001c8,_0x23bc62,_0x103cdd,_0x117fa5){return _0x5c1169(_0x8001c8-_0x4c2aaa._0x305d48,_0x8001c8,_0x23bc62- -0x390,_0x117fa5-0xea);}return void 0x0;}function formatAbortedRunMessage(_0x2d493b,_0x2e2686){const _0x50778e={_0x3ef1e9:0x463,_0x40b093:0x47b,_0x36b072:0x339,_0x33d9df:0x40c,_0x20ea45:0x405,_0x39cdb2:0x43d,_0x4ea29f:0x495},_0x537eef={_0x11b624:0x9c},_0x3694a8={_0x5e9ef8:0xa4,_0x250137:0x88,_0x1cfb8a:0x76};function _0x4d10b2(_0x5d2143,_0xa17372,_0x4a1b7f,_0x4b401c){return _0x27a792(_0x5d2143-_0x3694a8._0x5e9ef8,_0xa17372-_0x3694a8._0x250137,_0x5d2143,_0xa17372-_0x3694a8._0x1cfb8a);}function _0x41b4af(_0x17c1e1,_0x80199d,_0x2b5243,_0x12d731){return _0x5c1169(_0x17c1e1-_0x537eef._0x11b624,_0x2b5243,_0x80199d- -0x193,_0x12d731-0x8e);}const _0x49b63a=_0x41b4af(_0x50778e._0x3ef1e9,0x44b,_0x50778e._0x40b093,0x436)+_0x2d493b+_0x4d10b2(0x361,_0x50778e._0x36b072,0x2f8,0x389);if(!_0x2e2686||_0x2e2686[_0x41b4af(0x3ad,_0x50778e._0x33d9df,0x431,0x3c9)]()[_0x41b4af(0x3e5,0x3d1,_0x50778e._0x20ea45,0x3eb)]===0x0||_0x2e2686===_0x49b63a)return _0x49b63a;return _0x49b63a+_0x41b4af(0x419,_0x50778e._0x39cdb2,0x42a,_0x50778e._0x4ea29f)+_0x2e2686;}function createAssignTaskTool(_0x4a3f3f){const _0xd35340={_0x3c95bc:0x7e,_0x39cfc9:0x6b,_0x5d4f95:0x518,_0x30fa4e:0x4e4,_0x560c7e:0x570,_0x359dbe:0x51e,_0x283a47:0x9b,_0x4bacac:0x6d,_0x26b4c9:0x5d,_0x1c54a6:0x61,_0x2801dc:0x4cd,_0x5ad928:0x46a,_0x1baf50:0x53c,_0x48b56d:0x516,_0x55dffe:0x59f,_0x59e62f:0xbe},_0x439660={_0x45f022:0x678,_0x397a92:0x6d1,_0x46acfd:0x6a8,_0x490a5e:0x670,_0x33d222:0x17e,_0x1bbe9a:0x1c5,_0x43172f:0x5ca,_0x50d542:0x62d,_0x242360:0x5d7,_0x3531c6:0x65a,_0x4da891:0x613,_0x567f3f:0x636,_0x52bc55:0x575,_0x2bc711:0x633,_0x44f2eb:0x63c,_0x54e6b6:0x10a,_0x2339f6:0xa7,_0x18f986:0xc1,_0x3d09a5:0x623,_0x2f39da:0x684,_0x33fcc3:0x17d,_0xba21c4:0x135,_0x12b3c7:0x609,_0xb760dd:0x1b4,_0x44af7e:0x618,_0x331f0c:0x65d,_0x37d88a:0x5c5,_0x15ed1:0x222,_0x37216c:0x5ad,_0x4c15e8:0x5b6,_0x5e438f:0x5b1,_0x57eaf7:0x5de,_0x536955:0x60e,_0x4a2fbd:0x61b,_0x37fa89:0x13b,_0x40abd2:0x138,_0x4ee72b:0x133,_0x12714f:0x659,_0x3b5cba:0x621,_0x4cbf6c:0x66e,_0x1526e9:0x672,_0x51d24b:0x137,_0x264e66:0x5d6,_0x4bb261:0x1b6,_0x5a9713:0x1eb,_0x3f9194:0x155,_0x4c2435:0x1bd,_0x1cfbb4:0x171,_0x4ad684:0x10a,_0x526cf7:0x162,_0x34d1f1:0x5e5,_0x2d5621:0x56a},_0x1f357e={_0x2bcf76:0x314,_0x5268db:0x36c,_0x17ba7a:0x33d},_0x13dff5={_0x4f0259:0xa1,_0x377b81:0x1ce},_0xa0cfd4={_0x137eee:0x15d};function _0x16b235(_0x36b2ea,_0x281e9a,_0x4b195d,_0x4e4319){return _0x27a792(_0x36b2ea-0x181,_0x281e9a-_0xa0cfd4._0x137eee,_0x36b2ea,_0x4b195d- -0x2eb);}function _0x188132(_0x28a789,_0x4237fd,_0x1fc0c0,_0x3d031e){return _0x27a792(_0x28a789-_0x13dff5._0x4f0259,_0x4237fd-0x1,_0x4237fd,_0x28a789-_0x13dff5._0x377b81);}return defineTool({'name':_0x16b235(0xa1,_0xd35340._0x3c95bc,_0xd35340._0x39cfc9,0x7),'description':_0x188132(_0xd35340._0x5d4f95,_0xd35340._0x30fa4e,_0xd35340._0x560c7e,_0xd35340._0x359dbe),'inputSchema':{'type':_0x16b235(_0xd35340._0x283a47,0x10,_0xd35340._0x4bacac,0xc6),'properties':{'agentId':{'type':_0x16b235(-_0xd35340._0x26b4c9,-0x30,-0x35,-_0xd35340._0x1c54a6)},'task':{'type':_0x188132(0x484,_0xd35340._0x2801dc,_0xd35340._0x5ad928,0x441)}},'required':[_0x188132(_0xd35340._0x1baf50,_0xd35340._0x48b56d,_0xd35340._0x55dffe,0x4ed),_0x16b235(_0xd35340._0x59e62f,0x4b,0x79,0x11)]},async *'execute'(_0x5a5fd2,_0x1b64dd){const _0x3c18c6={_0x467f1b:0x12d,_0x21b577:0x1c5},_0x57ad33={_0x3f0562:0x1be,_0x31ea7e:0x143,_0x5bada0:0x15};function _0x181417(_0x38ebee,_0x156be0,_0x135d39,_0x2eb016){return _0x16b235(_0x156be0,_0x156be0-_0x57ad33._0x3f0562,_0x38ebee-_0x57ad33._0x31ea7e,_0x2eb016-_0x57ad33._0x5bada0);}function _0x4ea3cf(_0x4245d6,_0x589563,_0x1645eb,_0x54235d){return _0x188132(_0x4245d6-_0x3c18c6._0x467f1b,_0x54235d,_0x1645eb-_0x3c18c6._0x21b577,_0x54235d-0x44);}const _0x525a41=createDelegatedRunId(),_0x2a6fbe={'agentId':_0x5a5fd2[_0x4ea3cf(0x669,_0x439660._0x45f022,0x663,_0x439660._0x397a92)],'parentSessionId':_0x1b64dd[_0x4ea3cf(0x5ca,0x5a2,0x5eb,0x5c7)],'runId':_0x525a41,..._0x1b64dd['toolCallId']!==void 0x0?{'toolCallId':_0x1b64dd['toolCallId']}:{}},_0x442fb0=getDelegatedAgentDefinition(_0x4a3f3f,_0x5a5fd2[_0x4ea3cf(0x669,_0x439660._0x46acfd,0x632,0x660)]);if(!_0x442fb0)throw new ToolExecutionError('Unknown\x20delegated\x20agent:\x20'+_0x5a5fd2[_0x4ea3cf(0x669,0x68c,_0x439660._0x490a5e,0x62d)],{'agentId':_0x5a5fd2[_0x181417(0x1c6,0x182,_0x439660._0x33d222,_0x439660._0x1bbe9a)]});const _0x23f9f8=new Agent(await resolveDelegatedAgentOptions(_0x442fb0,_0x2a6fbe));let _0x2f5664={'runId':_0x525a41,'agentId':_0x5a5fd2['agentId'],'sessionId':_0x23f9f8[_0x4ea3cf(_0x439660._0x43172f,0x5a1,_0x439660._0x50d542,_0x439660._0x242360)],'status':_0x4ea3cf(_0x439660._0x3531c6,_0x439660._0x4da891,0x671,0x5ff),'parentSessionId':_0x1b64dd[_0x4ea3cf(0x5ca,_0x439660._0x567f3f,_0x439660._0x52bc55,_0x439660._0x2bc711)],..._0x1b64dd['toolCallId']!==void 0x0?{'originToolCallId':_0x1b64dd['toolCallId']}:{}};const _0x144931=new AbortController(),_0x5db999=addAbortListener(_0x1b64dd[_0x4ea3cf(0x5ec,_0x439660._0x44f2eb,0x597,0x60c)],()=>{function _0x154296(_0xb8a555,_0x58cf88,_0x476560,_0x1a4779){return _0x4ea3cf(_0x1a4779- -0x2af,_0x58cf88-0x14b,_0x476560-0x29,_0x476560);}_0x144931['abort'](_0x1b64dd[_0x154296(_0x1f357e._0x2bcf76,_0x1f357e._0x5268db,0x339,_0x1f357e._0x17ba7a)]?.['reason']);});yield createToolOutput('Started\x20agent\x20run\x20'+_0x2f5664[_0x181417(_0x439660._0x54e6b6,_0x439660._0x2339f6,_0x439660._0x18f986,0x145)]+'.',{'runId':_0x2f5664['runId'],'agentId':_0x2f5664[_0x4ea3cf(0x669,0x64c,_0x439660._0x3d09a5,_0x439660._0x2f39da)],'sessionId':_0x2f5664['sessionId'],'status':_0x2f5664[_0x181417(_0x439660._0x33fcc3,0x132,_0x439660._0xba21c4,0x148)]});try{const _0x5df7b8=await _0x23f9f8['send'](_0x5a5fd2[_0x4ea3cf(0x65f,0x61a,_0x439660._0x12b3c7,0x625)],{'signal':_0x144931['signal']});_0x2f5664={..._0x2f5664,'status':_0x5df7b8[_0x181417(0x17d,0x1c8,_0x439660._0xb760dd,0x19b)],'result':_0x5df7b8};if(_0x5df7b8[_0x4ea3cf(0x620,_0x439660._0x44af7e,_0x439660._0x331f0c,_0x439660._0x37d88a)]!=='completed'){const _0x4f0101=getRunTerminalErrorMessage(_0x5df7b8),_0x64e5f9=formatAbortedRunMessage(_0x2f5664['runId'],_0x4f0101);throw new ToolExecutionError(_0x64e5f9,{...createRunSummary(_0x2f5664),'aborted':!![],'errorMessage':_0x64e5f9});}return createRunSummaryOutput(_0x2f5664,_0x181417(0x1bd,0x173,0x210,_0x439660._0x15ed1)+_0x2f5664[_0x4ea3cf(_0x439660._0x37216c,_0x439660._0x4c15e8,0x54d,_0x439660._0x5e438f)]+'\x20completed.');}catch(_0x28e240){if(_0x28e240 instanceof ToolExecutionError)throw _0x28e240;if(isAbortError(_0x28e240)||_0x144931['signal'][_0x4ea3cf(_0x439660._0x57eaf7,_0x439660._0x536955,_0x439660._0x4a2fbd,0x5e2)]||_0x1b64dd['signal'][_0x181417(_0x439660._0x37fa89,_0x439660._0x40abd2,0x10e,0x12b)]){const _0x22e07a=getRunTerminalErrorMessage(_0x2f5664[_0x181417(_0x439660._0x4ee72b,0xed,0x143,0x109)])??(_0x28e240 instanceof Error?_0x28e240[_0x4ea3cf(_0x439660._0x12714f,_0x439660._0x3b5cba,_0x439660._0x4cbf6c,_0x439660._0x1526e9)]:String(_0x28e240)),_0x286e18=formatAbortedRunMessage(_0x2f5664['runId'],_0x22e07a);_0x2f5664={..._0x2f5664,'status':_0x181417(_0x439660._0x37fa89,_0x439660._0x51d24b,0x144,0x140),'errorMessage':_0x286e18};throw new ToolExecutionError(_0x286e18,{...createRunSummary(_0x2f5664),'aborted':!![],'errorMessage':_0x286e18});}const _0x3ce55a=getRunTerminalErrorMessage(_0x2f5664[_0x4ea3cf(_0x439660._0x264e66,0x5fe,0x593,0x611)])??(_0x28e240 instanceof Error?_0x28e240[_0x181417(_0x439660._0x4bb261,_0x439660._0x5a9713,_0x439660._0x3f9194,0x1c2)]:String(_0x28e240))??_0x181417(_0x439660._0x4c2435,0x200,_0x439660._0x1cfbb4,0x1c9)+_0x2f5664[_0x181417(_0x439660._0x4ad684,0x11e,_0x439660._0x526cf7,0xf4)]+_0x4ea3cf(0x597,0x5ee,_0x439660._0x34d1f1,_0x439660._0x2d5621);_0x2f5664={..._0x2f5664,'status':'failed','errorMessage':_0x3ce55a};throw new ToolExecutionError(_0x3ce55a,{...createRunSummary(_0x2f5664),'errorMessage':_0x3ce55a});}finally{_0x5db999();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x1c270f){return[createAssignTaskTool(_0x1c270f)];}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createLsTool,createMockToolRuntime,createShellExecTool,createToolOutput,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveWorkspacePath,search,validateToolInput};
1
+ (function(_0x33ee05,_0x3ee9bd){const _0x236eb7={_0x2911f2:0x471,_0x4bbe59:0x50c,_0x35243b:0x4a6,_0x2d6d29:0xac,_0xcab7aa:0x157,_0x1af998:0x11d,_0x2fc972:0x87,_0x69185f:0x1a9,_0x14f294:0x1a2,_0x236bf6:0x189,_0x238457:0xf5,_0x1c6403:0x114,_0x343e49:0x158,_0xbd34a7:0x49d,_0xd486ad:0x521,_0x796b3b:0x53b,_0x38a66e:0x4f9,_0x3adb7e:0x4f8,_0x2d9b3e:0x53e,_0xe06391:0x5b6,_0x2062d8:0x5ac,_0x37caa5:0x4b5,_0x496e8c:0x4c0,_0x3e57d1:0x57e,_0x19e1a6:0x50d,_0x3edf5b:0x5fa,_0xd375d1:0x52d},_0x533508={_0x32beec:0x369},_0x1351e6=_0x33ee05();function _0x544809(_0x8c7c23,_0x196ad4,_0x561305,_0x82a549){return _0x5314(_0x82a549-0x320,_0x8c7c23);}function _0x6f4054(_0x16bc67,_0x211046,_0x502743,_0xae70d){return _0x5314(_0x502743- -_0x533508._0x32beec,_0x16bc67);}while(!![]){try{const _0x2ee0cc=parseInt(_0x544809(_0x236eb7._0x2911f2,0x4da,_0x236eb7._0x4bbe59,_0x236eb7._0x35243b))/0x1+parseInt(_0x6f4054(-_0x236eb7._0x2d6d29,-_0x236eb7._0xcab7aa,-_0x236eb7._0x1af998,-_0x236eb7._0x2fc972))/0x2+-parseInt(_0x6f4054(-0x1fd,-_0x236eb7._0x69185f,-_0x236eb7._0x14f294,-_0x236eb7._0x236bf6))/0x3*(-parseInt(_0x6f4054(-0x7e,-_0x236eb7._0x238457,-_0x236eb7._0x1c6403,-_0x236eb7._0x343e49))/0x4)+parseInt(_0x544809(0x587,0x4d0,_0x236eb7._0xbd34a7,_0x236eb7._0xd486ad))/0x5+-parseInt(_0x544809(_0x236eb7._0x796b3b,_0x236eb7._0x38a66e,_0x236eb7._0x3adb7e,_0x236eb7._0x2d9b3e))/0x6+-parseInt(_0x544809(0x647,_0x236eb7._0xe06391,0x51f,_0x236eb7._0x2062d8))/0x7*(parseInt(_0x544809(_0x236eb7._0x37caa5,_0x236eb7._0x496e8c,_0x236eb7._0x3e57d1,_0x236eb7._0x19e1a6))/0x8)+parseInt(_0x544809(0x63f,0x52f,0x63a,_0x236eb7._0xe06391))/0x9*(-parseInt(_0x544809(0x60b,_0x236eb7._0x3edf5b,_0x236eb7._0xd375d1,0x596))/0xa);if(_0x2ee0cc===_0x3ee9bd)break;else _0x1351e6['push'](_0x1351e6['shift']());}catch(_0x55806){_0x1351e6['push'](_0x1351e6['shift']());}}}(_0x4186,0xd4673));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-WVVWOCQ5.js';import{getTextFromMessage}from'../chunk-C6OLKGP6.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{spawn}from'child_process';import{statSync}from'fs';import*as _0x957778 from'os';import*as _0x369387 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';var DEFAULT_DESCRIPTION=_0x452c58(0x183,0x1e8,0x145,0x1c0),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0xfbe6a){return _0xfbe6a instanceof Error;}function shellExists(_0x30e4a9){const _0xf784e7={_0x254ed4:0x2a7,_0x49e132:0x35a,_0x212706:0x39f},_0x1b5a53={_0x4f21c0:0x190},_0x1ad0c6={_0x4b78f8:0x1d8};function _0x2a25a8(_0x4eee00,_0x279b81,_0x4503e5,_0x515d92){return _0x452c58(_0x515d92-0x2ea,_0x279b81,_0x4503e5-0x188,_0x515d92-_0x1ad0c6._0x4b78f8);}function _0x23ef26(_0x323baa,_0x5bacbd,_0x1bfff3,_0x967a33){return _0x452c58(_0x323baa-_0x1b5a53._0x4f21c0,_0x1bfff3,_0x1bfff3-0x14a,_0x967a33-0x5d);}try{const _0x5d1d4b=statSync(_0x30e4a9);return _0x5d1d4b[_0x23ef26(0x337,_0xf784e7._0x254ed4,0x354,0x3af)]()&&(_0x5d1d4b[_0x23ef26(_0xf784e7._0x49e132,0x377,0x35a,_0xf784e7._0x212706)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x1acab0){const _0x2acb05={_0x3b29dc:0x1d6,_0x13f678:0x2d3,_0x58fdfe:0x258,_0xa09af9:0x259,_0x5e79d3:0x9b,_0x121a45:0x231,_0x1aa899:0x2c3,_0x1d27de:0x27d,_0x1d6a1b:0x20c,_0x6e0a1:0x2d7,_0x1771b6:0x227,_0x8b7b2:0x38,_0xf03629:0x47},_0x1a0aa1={_0x37b224:0xf,_0xac871:0x5a,_0xa213c5:0x3},_0x5977ae={_0x5e876:0x290,_0x327c94:0x12d};function _0x3c5bd0(_0x1dcf44,_0x1075d6,_0x68afef,_0x58ec11){return _0x452c58(_0x68afef- -_0x5977ae._0x5e876,_0x1dcf44,_0x68afef-0x11d,_0x58ec11-_0x5977ae._0x327c94);}if(_0x1acab0)return _0x1acab0;if(_0x957778['platform']()===_0x51aad2(_0x2acb05._0x3b29dc,0x185,0x195,0x15c))return process[_0x51aad2(_0x2acb05._0x13f678,_0x2acb05._0x58fdfe,0x237,_0x2acb05._0xa09af9)][_0x3c5bd0(-0xf5,-0x1,-0x60,-0x4)]||_0x3c5bd0(-0x2,-0x6c,-_0x2acb05._0x5e79d3,-0x115);const _0x25246e=['/bin/bash',_0x51aad2(0x2cb,_0x2acb05._0x121a45,_0x2acb05._0x1aa899,0x1a3),_0x51aad2(_0x2acb05._0x1d27de,_0x2acb05._0x1d6a1b,0x21e,0x22d),'/usr/bin/sh'];for(const _0x4460e4 of _0x25246e){if(shellExists(_0x4460e4))return _0x4460e4;}const _0x3f132a=process[_0x51aad2(_0x2acb05._0x6e0a1,0x258,_0x2acb05._0x1771b6,0x2d1)]['SHELL'];if(_0x3f132a&&shellExists(_0x3f132a))return _0x3f132a;function _0x51aad2(_0x1713d2,_0x55e3f5,_0x410195,_0x1f2ce3){return _0x452c58(_0x55e3f5- -_0x1a0aa1._0x37b224,_0x1f2ce3,_0x410195-_0x1a0aa1._0xac871,_0x1f2ce3-_0x1a0aa1._0xa213c5);}return _0x3c5bd0(-_0x2acb05._0x8b7b2,-_0x2acb05._0xf03629,-0xcd,-0x60);}function buildShellArgs(_0x137730,_0x25a3b8){const _0x3137d9={_0x5dd8b6:0x538,_0x3b1811:0x5e2,_0x2c6063:0x587,_0x730958:0x43d,_0x136a3b:0x4d2},_0xb737a3={_0x29dd19:0x2e2},_0x39b511={_0x53c641:0x53};function _0x696fa8(_0xfe9cf,_0x2a9b9b,_0x4d3dcb,_0x599c54){return _0x452c58(_0x599c54-0x31e,_0xfe9cf,_0x4d3dcb-_0x39b511._0x53c641,_0x599c54-0x152);}if(_0x957778[_0x696fa8(_0x3137d9._0x5dd8b6,_0x3137d9._0x3b1811,0x514,_0x3137d9._0x2c6063)]()==='win32'){const _0x27ff36=/cmd(\.exe)?$/i['test'](_0x25a3b8);return _0x27ff36?['/d','/s','/c',_0x137730]:['-NoLogo',_0x2514a6(_0x3137d9._0x730958,_0x3137d9._0x136a3b,0x465,0x533),'-Command',_0x137730];}function _0x2514a6(_0x351b23,_0x29c346,_0x30b1b2,_0x583ed3){return _0x452c58(_0x29c346-_0xb737a3._0x29dd19,_0x583ed3,_0x30b1b2-0x1c2,_0x583ed3-0x4c);}return['-c',_0x137730];}function stripAnsiAndControls(_0x2485c9){const _0x1048be={_0x471cb5:0x166,_0x5ee668:0x329,_0x1dde75:0x339,_0x5232ec:0x2e9,_0xddc9c3:0x2ed,_0x4d97b5:0x187,_0x51cae8:0x3cd,_0x126b26:0x47d,_0x2090d1:0x112,_0x353b3f:0x1b6,_0x372992:0x38f,_0x1ed619:0x333,_0x686eea:0x147,_0x1356a1:0xa9},_0x59c73a={_0x220327:0x303},_0x31a5dd={_0x56a42e:0x164};_0x2485c9=stripVTControlCharacters(_0x2485c9);const _0x17a9bd='\x1b',_0x30f6fd='\x07';_0x2485c9=_0x2485c9[_0x23d94e(-_0x1048be._0x471cb5,-0x12e,-0x194,-0x1ca)](new RegExp(';[^'+_0x30f6fd+_0x3b5591(_0x1048be._0x5ee668,0x355,0x40d,0x39e)+_0x30f6fd,'g'),''),_0x2485c9=_0x2485c9[_0x3b5591(0x355,0x327,0x320,_0x1048be._0x1dde75)](new RegExp(_0x3b5591(0x2e3,0x28c,_0x1048be._0x5232ec,_0x1048be._0xddc9c3)+_0x17a9bd+'\x5c\x5c','g'),''),_0x2485c9=_0x2485c9[_0x23d94e(-0x11f,-0x12e,-0x18c,-_0x1048be._0x4d97b5)](new RegExp(_0x30f6fd,'g'),''),_0x2485c9=_0x2485c9[_0x3b5591(0x2ff,0x370,0x348,0x339)](new RegExp(_0x17a9bd+_0x3b5591(0x371,0x30e,_0x1048be._0x51cae8,0x351)+_0x17a9bd+'\x5c\x5c','g'),'');function _0x3b5591(_0x185064,_0x594016,_0x395017,_0x433098){return _0x452c58(_0x433098-_0x31a5dd._0x56a42e,_0x185064,_0x395017-0x23,_0x433098-0x117);}function _0x23d94e(_0x1dc570,_0x26c95c,_0x1898da,_0x3a866e){return _0x452c58(_0x26c95c- -_0x59c73a._0x220327,_0x1dc570,_0x1898da-0x17c,_0x3a866e-0xa4);}return _0x2485c9=_0x2485c9[_0x3b5591(0x383,0x29e,0x2e1,0x339)](new RegExp(_0x17a9bd+_0x3b5591(0x3d5,_0x1048be._0x126b26,0x46c,0x3f8),'g'),''),_0x2485c9=_0x2485c9[_0x23d94e(-_0x1048be._0x2090d1,-0x12e,-0x15a,-_0x1048be._0x353b3f)](/[\u0080-\u009F]/g,''),_0x2485c9=_0x2485c9[_0x3b5591(_0x1048be._0x372992,_0x1048be._0x1ed619,0x33c,_0x1048be._0x1dde75)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x2485c9=_0x2485c9[_0x23d94e(-0x190,-0x12e,-_0x1048be._0x686eea,-_0x1048be._0x1356a1)](/[\u23CE\u2424]/g,''),_0x2485c9;}function resolveWorkingDirectory(_0x28acd1,_0x3e889f){const _0x377e13={_0x512ac6:0x58,_0x25f588:0x1f,_0x163097:0x5d},_0x2ccb33={_0x12db71:0x14c},_0x39c335={_0x17a302:0x19e};function _0x1c4ead(_0xd80215,_0x499c84,_0x9fdf32,_0x207011){return _0x452c58(_0xd80215-0x27f,_0x207011,_0x9fdf32-0x3f,_0x207011-_0x39c335._0x17a302);}function _0x214195(_0x2b6fc1,_0x3aa4db,_0xceac3d,_0x45c656){return _0x452c58(_0x3aa4db- -0x284,_0x2b6fc1,_0xceac3d-_0x2ccb33._0x12db71,_0x45c656-0xe7);}const _0x154a28=_0x28acd1?_0x369387[_0x214195(-_0x377e13._0x512ac6,0x17,0x57,-0x5a)](_0x28acd1)?_0x28acd1:_0x369387[_0x214195(0xa3,0xe,-_0x377e13._0x25f588,-_0x377e13._0x163097)](_0x3e889f,_0x28acd1):_0x3e889f;try{const _0x4d18ee=statSync(_0x154a28);if(!_0x4d18ee[_0x214195(-0x7f,-0x2d,-0x4b,-0x55)]())throw new ToolExecutionError('Working\x20directory\x20is\x20not\x20a\x20directory:\x20'+_0x154a28,{'cwd':_0x154a28});return _0x154a28;}catch(_0xc7de7b){if(_0xc7de7b instanceof ToolExecutionError)throw _0xc7de7b;throw new ToolExecutionError('Working\x20directory\x20not\x20found:\x20'+_0x154a28,{'cwd':_0x154a28});}}function killProcessGroup(_0x545560,_0x456da1,_0x1d7a83=_0x452c58(0x17b,0x10b,0xe8,0x130)){const _0x1dd02e={_0x44692a:0x1ae,_0x3dfc82:0x1f4,_0x524bfd:0x4ec,_0x2e7db5:0x4fe,_0x477e84:0x4f3,_0x12bf06:0x52a,_0x3ed372:0x528,_0x2aca8a:0x5ed,_0x579814:0x453,_0x1dffdd:0x423,_0x2b74a8:0x4b6,_0x103e61:0x1e4,_0x49df28:0x19c,_0x3973a0:0x220,_0x193271:0x52b,_0x238c1b:0x52d,_0x434b52:0x427},_0x1095c2={_0x2614f5:0x1ad,_0x53adab:0x2b0},_0x3acf69={_0x294dc5:0x1ef,_0x51f830:0xb4};if(!_0x545560[_0x462827(_0x1dd02e._0x44692a,_0x1dd02e._0x3dfc82,0x16c,0x1c5)])return;function _0x451baa(_0x536058,_0x3cfe91,_0x584c1c,_0x46d377){return _0x44530c(_0x46d377,_0x3cfe91-_0x3acf69._0x294dc5,_0x584c1c-0x173,_0x584c1c-_0x3acf69._0x51f830);}if(_0x456da1)try{spawn('taskkill',['/pid',_0x545560[_0x451baa(_0x1dd02e._0x524bfd,0x57d,0x512,_0x1dd02e._0x2e7db5)][_0x451baa(_0x1dd02e._0x477e84,0x554,_0x1dd02e._0x12bf06,0x522)](),'/T','/F'],{'stdio':_0x451baa(_0x1dd02e._0x3ed372,_0x1dd02e._0x2aca8a,0x5be,0x61f)});return;}catch{_0x545560[_0x451baa(_0x1dd02e._0x579814,_0x1dd02e._0x1dffdd,_0x1dd02e._0x2b74a8,0x4fb)](_0x1d7a83);return;}function _0x462827(_0x55bedb,_0x5dc30a,_0x24b0aa,_0x59231f){return _0x44530c(_0x59231f,_0x5dc30a-0x1d0,_0x24b0aa-_0x1095c2._0x2614f5,_0x55bedb- -_0x1095c2._0x53adab);}try{process['kill'](-_0x545560[_0x462827(0x1ae,_0x1dd02e._0x103e61,_0x1dd02e._0x49df28,_0x1dd02e._0x3973a0)],_0x1d7a83);}catch{_0x545560[_0x451baa(_0x1dd02e._0x193271,_0x1dd02e._0x238c1b,0x4b6,_0x1dd02e._0x434b52)](_0x1d7a83);}}function appendChunk(_0xab9039,_0x515767,_0x14ef69,_0x4b75a7,_0x535321){const _0x12aedf={_0x197fe0:0x389,_0x13731b:0x2f2,_0x3b40d7:0x396,_0x29eb77:0x511,_0x1dc32a:0x3ea,_0x27d9c0:0x3b8,_0x1e6fd3:0x388,_0x28de35:0x31d},_0x19195c={_0x308582:0x1bb,_0x243817:0x1d5};function _0x10de8a(_0x5cac5c,_0x5ea0a8,_0x545824,_0x4f3a29){return _0x452c58(_0x545824-0x314,_0x5ea0a8,_0x545824-0x11f,_0x4f3a29-0x4e);}function _0x4bbb32(_0x50a689,_0x1abff8,_0x337df9,_0x446517){return _0x452c58(_0x1abff8-_0x19195c._0x308582,_0x50a689,_0x337df9-_0x19195c._0x243817,_0x446517-0x13d);}const _0x53d1f7=_0x4b75a7?stripAnsiAndControls(_0x14ef69):_0x14ef69;if(_0x53d1f7[_0x4bbb32(0x31b,_0x12aedf._0x197fe0,_0x12aedf._0x13731b,_0x12aedf._0x3b40d7)]===0x0)return;_0xab9039[_0x10de8a(0x49d,0x50e,_0x12aedf._0x29eb77,0x483)](_0x53d1f7),_0x515767[_0x4bbb32(_0x12aedf._0x1dc32a,_0x12aedf._0x27d9c0,_0x12aedf._0x1e6fd3,_0x12aedf._0x28de35)](_0x53d1f7),_0x535321();}function createBashTool(_0x364c65={}){const _0x4754ad={_0x95d0bb:0x309,_0x5b5bfc:0x258,_0x525cf0:0x247,_0xa36d6b:0x4b3,_0x5c1702:0x4c4,_0x7d4b0b:0x4d4,_0x4c81a0:0x29b,_0x268547:0x231,_0x31fd6e:0x28d,_0x5da4a4:0x55a,_0x4bcc3a:0x4e6,_0x2b5474:0x538,_0x132c05:0x57f,_0x1ed9c4:0x514,_0x216900:0x275,_0x3561a0:0x39f},_0x977578={_0x2c1a0d:0x244,_0xffcb6d:0x21b,_0x1b76e5:0x1c7,_0x3b545a:0x17d,_0x4f20f2:0x2b5,_0xd493ac:0x283,_0x5bb8b8:0xe4,_0x5e4f26:0x15c,_0x16b304:0x306,_0x265273:0x28a,_0x1e0fa1:0x2ce,_0x3cc407:0x6c,_0x48b2f6:0xbb,_0x488156:0x30,_0x3c02a1:0x19,_0xee0619:0x58,_0x4ee9f2:0xe3,_0x21fb1f:0x2e0,_0x151eb6:0x336,_0x9bd3b:0x29f,_0x257763:0x23e,_0x578c8b:0xaa,_0x11088f:0x41,_0x8e948b:0x240,_0x595531:0x1f9,_0x410f9e:0x143,_0x92942d:0x210,_0x6f422f:0x215,_0x367815:0x175,_0x296445:0x25f,_0x38dd37:0x2c0,_0x4ecb3e:0x2f5,_0x1df16b:0x26c,_0x208b38:0x2ee,_0x280aeb:0x7e,_0x137718:0xaa,_0x2f89bc:0x98,_0x12e0d1:0x1cd,_0x105532:0x1e1,_0x2b7150:0x21b,_0x1112fd:0x1d0,_0x14546b:0x4a,_0x403c01:0x5d,_0x44e35f:0x31,_0x53f2be:0x62,_0x2a6080:0x48,_0x50fc47:0x192,_0x1f0b05:0x1d3,_0x3c3283:0x5,_0x2946fc:0x1ce,_0x5db1ff:0x1aa,_0x5142bd:0x23a,_0x342567:0x2b5,_0x41efb5:0x2f1,_0x40c0f9:0x269,_0x4bf562:0x1dd,_0x4bc008:0x188,_0x56551b:0x1c3,_0xf217d7:0x6,_0x487629:0x251,_0xbda03:0x34,_0xc9e796:0x27,_0x18e4e7:0x71,_0x9950e:0x234,_0x2068d5:0x1e5,_0x445c53:0x13a,_0x34afdd:0x1dd,_0xdcd8a:0x7e,_0x38247c:0xd1,_0x39a5da:0x99,_0x35bb42:0xc1,_0x55d7e4:0x25b,_0x540ff4:0x1c4,_0x41a0db:0x1ef,_0x347b15:0x249,_0x43df5c:0xe,_0x2dd64f:0x50,_0x4531b6:0x96,_0x38d3e5:0xb,_0x995d15:0x49,_0x385016:0x115,_0x172802:0xd6,_0x351a1b:0x12e,_0x339f9c:0x259,_0x487a5e:0x300,_0x574046:0x2c0,_0x1e3be9:0x185,_0xfd8bf3:0x177,_0x504707:0x1c6,_0x4bbd8c:0x53,_0x31d8cc:0x6f,_0x31c085:0x58,_0x1591bc:0x146,_0x487858:0x1a2,_0x4ac4bf:0x1b8,_0xbef472:0x36,_0x3bd105:0x24,_0x3f4e11:0x4,_0x44cb3c:0x12b,_0x229b3d:0x192,_0x3a34f9:0x16b},_0x1610a3={_0x14f995:0x2f8,_0x5b4d13:0x2fa,_0x4a509e:0x319,_0x415af1:0x168,_0x4de917:0x167,_0x586f2e:0x138,_0x2bef94:0x29e,_0x1f65ff:0x383,_0x31ca1c:0x3a4,_0x32ca9c:0x389,_0x3ea7f0:0x2c2},_0x23b60f={_0x34b003:0x69,_0x10f39f:0x2a3},_0x46d3a4={_0x6e185:0x132,_0x2df1b6:0xd0},_0x12d999={_0x36949f:0x2c4,_0x32cf97:0x63},_0x5d9ddf={_0x29066c:0x8e,_0x235e4b:0x1f,_0x42a905:0x16c},_0x4fe77a=_0x369387[_0x48e6f7(0x320,_0x4754ad._0x95d0bb,0x30a,0x2d3)](_0x364c65['defaultCwd']??process[_0x48e6f7(0x257,_0x4754ad._0x5b5bfc,0x280,_0x4754ad._0x525cf0)]()),_0x1ea378=_0x364c65['defaultTimeoutMs']??DEFAULT_TIMEOUT_MS;function _0x48e6f7(_0x1d8d4e,_0x3ab2da,_0x387f8a,_0x266b49){return _0x452c58(_0x1d8d4e-_0x5d9ddf._0x29066c,_0x387f8a,_0x387f8a-_0x5d9ddf._0x235e4b,_0x266b49-_0x5d9ddf._0x42a905);}const _0x620eca=_0x364c65[_0x4c7fb1(0x429,0x472,_0x4754ad._0xa36d6b,_0x4754ad._0x5c1702)]??!![];function _0x4c7fb1(_0x5131d2,_0x514d28,_0x3e5619,_0xc14d49){return _0x452c58(_0xc14d49-_0x12d999._0x36949f,_0x514d28,_0x3e5619-_0x12d999._0x32cf97,_0xc14d49-0x40);}const _0x16f452=_0x364c65['name']??_0x4c7fb1(0x50b,_0x4754ad._0x7d4b0b,0x47a,0x516);return defineTool({'name':_0x16f452,'description':_0x364c65[_0x48e6f7(_0x4754ad._0x4c81a0,_0x4754ad._0x268547,0x2f9,0x227)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x48e6f7(0x307,0x37b,_0x4754ad._0x31fd6e,0x370),'properties':{'command':{'type':'string'},'cwd':{'type':_0x4c7fb1(_0x4754ad._0x5da4a4,0x4b2,_0x4754ad._0x4bcc3a,_0x4754ad._0x2b5474)},'timeoutMs':{'type':_0x4c7fb1(0x59e,0x597,_0x4754ad._0x132c05,_0x4754ad._0x1ed9c4)},'ignoreOutput':{'type':_0x48e6f7(0x30f,_0x4754ad._0x216900,0x2d3,_0x4754ad._0x3561a0)}},'required':['command']},async *'execute'(_0x354d1d,_0x12b9f2){const _0x424bda={_0x29a0bf:0x44a,_0x4f8a98:0x4b6,_0x5c5947:0x46d,_0x5ef6cc:0x502,_0x263f69:0x45b,_0x4775d2:0x548,_0xda88b6:0x582,_0x220ab7:0x544},_0x2671bb={_0x2251ae:0xb3,_0x4bab05:0x9b,_0x4e0744:0xc2},_0x1a8ea5={_0x16e514:0x138},_0x274d96={_0x2b16e3:0x1c4,_0x47f38d:0x246,_0x3148ad:0x1e0},_0xbbf169={_0x9600cd:0xf3,_0x508be7:0x380},_0xf77c0f={_0x193664:0x257,_0x39bf0c:0x144},_0x30346b=_0x354d1d['timeoutMs']??_0x1ea378;if(!Number[_0x5c94c8(_0x977578._0x2c1a0d,_0x977578._0xffcb6d,_0x977578._0x1b76e5,_0x977578._0x3b545a)](_0x30346b)||_0x30346b<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x354d1d[_0x2c87f2(0x102,0xac,0xd6,0x44)]});throwIfAborted(_0x12b9f2['signal']);const _0x288877=resolveWorkingDirectory(_0x354d1d[_0x5c94c8(0x259,0x1b1,0x1ea,0x1f2)],_0x4fe77a),_0x42716c=_0x354d1d[_0x5c94c8(0x1d4,_0x977578._0x4f20f2,0x225,_0x977578._0xd493ac)]??![],_0x36b76e=resolveDefaultShell(_0x364c65['shellPath']),_0x768651=buildShellArgs(_0x354d1d[_0x2c87f2(0x14e,_0x977578._0x5bb8b8,0xd6,_0x977578._0x5e4f26)],_0x36b76e),_0x48ace7=_0x957778[_0x5c94c8(0x30b,_0x977578._0x16b304,_0x977578._0x265273,_0x977578._0x1e0fa1)]()===_0x2c87f2(-0x4a,-_0x977578._0x3cc407,-0x35,-0x91);let _0x2d68d9;try{_0x2d68d9=spawn(_0x36b76e,_0x768651,{'cwd':_0x288877,'env':{...process['env'],..._0x364c65[_0x2c87f2(_0x977578._0x48b2f6,_0x977578._0x488156,0x9e,_0x977578._0x3c02a1)]??{}},'stdio':_0x42716c?['ignore',_0x2c87f2(_0x977578._0xee0619,_0x977578._0x4ee9f2,0xb5,0xd0),_0x5c94c8(_0x977578._0x21fb1f,_0x977578._0x151eb6,_0x977578._0x9bd3b,_0x977578._0x257763)]:['ignore',_0x2c87f2(_0x977578._0x578c8b,-0x1e,0xf,-_0x977578._0x11088f),_0x5c94c8(0x27c,_0x977578._0x8e948b,_0x977578._0x595531,0x1a5)],'shell':![],'windowsHide':!![],'detached':!_0x48ace7});}catch(_0x51fc24){if(isErrnoException(_0x51fc24)&&_0x51fc24[_0x5c94c8(_0x977578._0x410f9e,_0x977578._0x92942d,0x1c3,0x1ea)]==='ENOENT')throw new ToolExecutionError(_0x5c94c8(0x279,_0x977578._0x6f422f,0x210,_0x977578._0x367815)+_0x36b76e,{'command':_0x354d1d[_0x5c94c8(_0x977578._0x296445,0x285,_0x977578._0x38dd37,0x350)],'cwd':_0x288877,'shellPath':_0x36b76e});throw new ToolExecutionError(_0x51fc24 instanceof Error?_0x51fc24[_0x5c94c8(_0x977578._0x4ecb3e,0x2e6,_0x977578._0x1df16b,_0x977578._0x208b38)]:String(_0x51fc24),{'command':_0x354d1d[_0x2c87f2(_0x977578._0x280aeb,_0x977578._0x137718,0xd6,_0x977578._0x2f89bc)],'cwd':_0x288877,'shellPath':_0x36b76e});}const _0xf9743c=[],_0x4e6439=[],_0x120ac3=new StringDecoder(_0x5c94c8(_0x977578._0x12e0d1,_0x977578._0x105532,_0x977578._0x2b7150,_0x977578._0x1112fd)),_0x58dff1=new StringDecoder(_0x2c87f2(_0x977578._0x14546b,-_0x977578._0x403c01,_0x977578._0x44e35f,-0x4e));let _0x3400ae,_0x4c0379=![];function _0x2c87f2(_0x23b405,_0x53b4c3,_0x13d9e1,_0x3da51a){return _0x48e6f7(_0x13d9e1- -_0xf77c0f._0x193664,_0x53b4c3-_0xf77c0f._0x39bf0c,_0x23b405,_0x3da51a-0x16b);}let _0xa9a2e6;const _0x2dbd3d=()=>{if(!_0x3400ae)return;const _0x493ff7=_0x3400ae;_0x3400ae=void 0x0,_0x493ff7();},_0x1b686e=async()=>{if(_0x4e6439['length']>0x0||_0x4c0379)return;await new Promise(_0x47ef89=>{_0x3400ae=_0x47ef89;});},_0x18390c=_0x207bd4=>{function _0x50cf7a(_0x573318,_0x442390,_0x5e733a,_0x27ffd8){return _0x5c94c8(_0x573318-_0xbbf169._0x9600cd,_0x442390-0x7b,_0x442390- -_0xbbf169._0x508be7,_0x573318);}appendChunk(_0xf9743c,_0x4e6439,_0x120ac3[_0x50cf7a(-0x15b,-_0x274d96._0x2b16e3,-_0x274d96._0x47f38d,-_0x274d96._0x3148ad)](_0x207bd4),_0x620eca,_0x2dbd3d);},_0x59c6b0=_0x2194e6=>{function _0x105dbc(_0xd6b95f,_0x18b4fb,_0x502b74,_0x4ded65){return _0x5c94c8(_0xd6b95f-_0x1a8ea5._0x16e514,_0x18b4fb-0x35,_0xd6b95f- -0xb8,_0x4ded65);}appendChunk(_0xf9743c,_0x4e6439,_0x58dff1[_0x105dbc(0x104,_0x46d3a4._0x6e185,_0x46d3a4._0x2df1b6,0xd5)](_0x2194e6),_0x620eca,_0x2dbd3d);};_0x2d68d9['stdout']?.['on']('data',_0x18390c),_0x2d68d9[_0x2c87f2(-_0x977578._0x53f2be,0x16,-_0x977578._0x2a6080,-0xaf)]?.['on'](_0x5c94c8(0x22b,0x148,_0x977578._0x50fc47,_0x977578._0x1f0b05),_0x59c6b0);let _0x5ac508=![],_0x36613a;const _0x5eca6a=addAbortListener(_0x12b9f2['signal'],()=>{const _0x59c224={_0x27c4d7:0x1e8,_0x5ed084:0x197},_0x12c23f={_0x585f01:0x120};_0xa9a2e6=toAbortError(_0x12b9f2[_0x279068(0xbe,_0x2671bb._0x2251ae,0x84,_0x2671bb._0x4bab05)][_0x279068(0x137,_0x2671bb._0x4e0744,0xee,0x74)]);function _0x279068(_0x2b9209,_0x4ce5b1,_0x2f6b1a,_0xbf7567){return _0x2c87f2(_0x2b9209,_0x4ce5b1-_0x12c23f._0x585f01,_0x2f6b1a-0x89,_0xbf7567-0x82);}_0x4c0379=!![],_0x2dbd3d();function _0x1008da(_0x701d0c,_0x34e727,_0x41996a,_0x2c6dfd){return _0x5c94c8(_0x701d0c-0xb,_0x34e727-_0x59c224._0x27c4d7,_0x701d0c- -_0x59c224._0x5ed084,_0x34e727);}try{killProcessGroup(_0x2d68d9,_0x48ace7);}catch{}});function _0x5c94c8(_0x362136,_0x333e70,_0x555d51,_0x21cb34){return _0x4c7fb1(_0x362136-_0x23b60f._0x34b003,_0x21cb34,_0x555d51-0xd7,_0x555d51- -_0x23b60f._0x10f39f);}try{const _0x406501=new Promise((_0x1fa49f,_0x443887)=>{const _0x303573={_0x5400ca:0x162,_0x29e8d9:0x14c,_0x45795b:0x18f,_0x5f4078:0x161,_0xe8e9a1:0x1ec,_0x5d6bd3:0x593,_0x3c29d0:0x574,_0x5b3457:0x584},_0xbedadb={_0x41c4b2:0x2cd},_0x5ecd77={_0x55f5b8:0xe8},_0x3ec6fc={_0x396754:0x249,_0x46c297:0x2d1,_0xe4b7c7:0x22,_0x3d8bc7:0x6c},_0x3647ce={_0x2a6af0:0x1e8},_0xc145f4=()=>{const _0xc7e8cb={_0x3205c5:0x309},_0x5bbf63={_0xbe9ae9:0x317};function _0x980433(_0xc0818b,_0x1517cf,_0x65ec71,_0x2c6e1c){return _0x5314(_0x2c6e1c-_0x5bbf63._0xbe9ae9,_0x1517cf);}function _0x5ae2aa(_0x454ab7,_0xcc3be9,_0x4fd529,_0x18a4c0){return _0x5314(_0xcc3be9-_0xc7e8cb._0x3205c5,_0x4fd529);}_0x36613a&&(clearTimeout(_0x36613a),_0x36613a=void 0x0),_0x2d68d9[_0x5ae2aa(_0x424bda._0x29a0bf,_0x424bda._0x4f8a98,0x436,0x474)](_0x980433(0x4ad,0x539,_0x424bda._0x5c5947,0x4d9),_0x139130),_0x2d68d9[_0x5ae2aa(_0x424bda._0x5ef6cc,0x4b6,_0x424bda._0x263f69,_0x424bda._0x4775d2)](_0x980433(_0x424bda._0xda88b6,0x568,0x4e3,_0x424bda._0x220ab7),_0x2991fb);};function _0x28ca20(_0x249922,_0x5cdac7,_0x5286be,_0x29f42a){return _0x2c87f2(_0x5cdac7,_0x5cdac7-0xcd,_0x5286be- -0x12e,_0x29f42a-_0x3647ce._0x2a6af0);}const _0x139130=_0x20ef65=>{_0x4c0379=!![],_0x2dbd3d(),_0xc145f4(),_0x443887(_0xa9a2e6??_0x20ef65);},_0x2991fb=(_0x5ee041,_0x551874)=>{const _0x4dc0df={_0x30db17:0x72};_0x5ac508=!![];function _0x313230(_0x1136dc,_0x5439cd,_0x20430e,_0x15307e){return _0x5314(_0x20430e- -0x16b,_0x5439cd);}appendChunk(_0xf9743c,_0x4e6439,_0x120ac3[_0x232ff4(_0x3ec6fc._0x396754,_0x3ec6fc._0x46c297,0x28e,0x1c7)](),_0x620eca,_0x2dbd3d),appendChunk(_0xf9743c,_0x4e6439,_0x58dff1[_0x313230(_0x3ec6fc._0xe4b7c7,0xcd,_0x3ec6fc._0x3d8bc7,-0x10)](),_0x620eca,_0x2dbd3d),_0x4c0379=!![],_0x2dbd3d();function _0x232ff4(_0x4c0f65,_0x3ab0d2,_0x21eddd,_0x3c279a){return _0x5314(_0x4c0f65-_0x4dc0df._0x30db17,_0x3ab0d2);}_0xc145f4();if(_0xa9a2e6){_0x443887(_0xa9a2e6);return;}_0x1fa49f({'code':_0x5ee041,'signal':_0x551874});};function _0x5f3dad(_0x820ddd,_0x19bd8e,_0xa19a5f,_0x36f29a){return _0x2c87f2(_0x19bd8e,_0x19bd8e-_0x5ecd77._0x55f5b8,_0xa19a5f-0x2d6,_0x36f29a-0x1c3);}_0x36613a=setTimeout(()=>{const _0x428a86={_0x238129:0x70};_0x4c0379=!![];function _0x45b44e(_0x536392,_0xd569ef,_0xc89b54,_0x404343){return _0x5314(_0xd569ef- -_0x428a86._0x238129,_0x536392);}_0x2dbd3d();function _0x1bcf43(_0x20be5f,_0x12e124,_0x29a3cc,_0x4cbbbd){return _0x5314(_0x29a3cc-_0xbedadb._0x41c4b2,_0x4cbbbd);}_0xc145f4();try{killProcessGroup(_0x2d68d9,_0x48ace7);}catch{}_0x443887(new ToolExecutionError(_0x45b44e(_0x303573._0x5400ca,0x18e,_0x303573._0x29e8d9,0x207)+_0x30346b+_0x45b44e(0x131,_0x303573._0x45795b,_0x303573._0x5f4078,_0x303573._0xe8e9a1),{'command':_0x354d1d[_0x1bcf43(0x579,_0x303573._0x5d6bd3,_0x303573._0x3c29d0,_0x303573._0x5b3457)],'cwd':_0x288877,'shellPath':_0x36b76e,'timeoutMs':_0x30346b,'timedOut':!![]}));},_0x30346b),_0x2d68d9[_0x5f3dad(_0x1610a3._0x14f995,_0x1610a3._0x5b4d13,_0x1610a3._0x4a509e,0x316)](_0x28ca20(-_0x1610a3._0x415af1,-_0x1610a3._0x4de917,-0x13d,-_0x1610a3._0x586f2e),_0x139130),_0x2d68d9[_0x5f3dad(_0x1610a3._0x2bef94,0x2ee,_0x1610a3._0x4a509e,_0x1610a3._0x1f65ff)](_0x5f3dad(_0x1610a3._0x31ca1c,_0x1610a3._0x32ca9c,0x332,_0x1610a3._0x3ea7f0),_0x2991fb);});while(_0x4e6439[_0x2c87f2(0x57,-0x8c,_0x977578._0x3c3283,0x11)]>0x0||!_0x4c0379){if(_0x4e6439[_0x5c94c8(0x222,_0x977578._0x2946fc,0x1ef,0x258)]===0x0){await _0x1b686e();continue;}const _0x14c7a6=_0x4e6439[_0x5c94c8(0x2cf,_0x977578._0x5db1ff,_0x977578._0x5142bd,0x2a9)]();_0x14c7a6!==void 0x0&&(yield _0x14c7a6);}const _0x10dc33=await _0x406501,_0x45ae46=_0x42716c?_0x5c94c8(_0x977578._0x342567,_0x977578._0x41efb5,_0x977578._0x40c0f9,_0x977578._0x4bf562)+(_0x10dc33[_0x5c94c8(0x219,_0x977578._0x4bc008,_0x977578._0x56551b,0x1b8)]??0x0):_0xf9743c[_0x2c87f2(-0xba,-_0x977578._0xf217d7,-0x36,-0xbb)](''),_0x38a736={'command':_0x354d1d[_0x5c94c8(0x2c8,_0x977578._0x487629,0x2c0,0x2b2)],'cwd':_0x288877,'exitCode':_0x10dc33[_0x2c87f2(-0x94,-_0x977578._0xbda03,-_0x977578._0xc9e796,-_0x977578._0x18e4e7)]??0x0,'signal':_0x10dc33[_0x5c94c8(0x1df,_0x977578._0x9950e,_0x977578._0x2068d5,0x25a)],'ignoreOutput':_0x42716c,'shellPath':_0x36b76e,'timeoutMs':_0x30346b};if(_0x10dc33[_0x5c94c8(0x21f,_0x977578._0x445c53,0x1c3,_0x977578._0x34afdd)]!==0x0)throw new ToolExecutionError(_0x45ae46||_0x2c87f2(_0x977578._0xdcd8a,_0x977578._0x38247c,_0x977578._0x39a5da,_0x977578._0x35bb42)+(_0x10dc33[_0x5c94c8(_0x977578._0x55d7e4,0x135,_0x977578._0x56551b,_0x977578._0x540ff4)]??0x0),_0x38a736);return createToolOutput(_0x45ae46,_0x38a736);}catch(_0x505d82){while(_0x4e6439[_0x5c94c8(0x19a,0x199,_0x977578._0x41a0db,_0x977578._0x347b15)]>0x0){const _0x5f291d=_0x4e6439[_0x2c87f2(0x9,_0x977578._0x43df5c,_0x977578._0x2dd64f,0x1b)]();_0x5f291d!==void 0x0&&(yield _0x5f291d);}if(_0x505d82 instanceof ToolExecutionError)throw _0x505d82;if(_0xa9a2e6)throw _0xa9a2e6;if(isErrnoException(_0x505d82)&&_0x505d82[_0x5c94c8(0x1cd,0x15c,0x1c3,0x169)]==='ENOENT')throw new ToolExecutionError(_0x2c87f2(_0x977578._0x4531b6,-_0x977578._0x38d3e5,0x26,-_0x977578._0x995d15)+_0x36b76e,{'command':_0x354d1d[_0x2c87f2(_0x977578._0x385016,0xa2,_0x977578._0x172802,_0x977578._0x351a1b)],'cwd':_0x288877,'shellPath':_0x36b76e});throw new ToolExecutionError(_0x505d82 instanceof Error?_0x505d82[_0x5c94c8(_0x977578._0x339f9c,_0x977578._0x487a5e,0x26c,0x25c)]:String(_0x505d82),{'command':_0x354d1d[_0x5c94c8(0x298,0x2c8,_0x977578._0x574046,0x231)],'cwd':_0x288877,'shellPath':_0x36b76e});}finally{_0x36613a&&clearTimeout(_0x36613a);_0x5eca6a(),_0x2d68d9[_0x5c94c8(_0x977578._0x1e3be9,0x199,0x1c2,_0x977578._0xfd8bf3)]?.[_0x5c94c8(0x1ea,0x23d,_0x977578._0x504707,0x1a3)](_0x2c87f2(-_0x977578._0x4bbd8c,-_0x977578._0x31d8cc,-_0x977578._0x31c085,0xd),_0x18390c),_0x2d68d9[_0x5c94c8(0x1df,_0x977578._0x1591bc,_0x977578._0x487858,_0x977578._0x4ac4bf)]?.[_0x2c87f2(_0x977578._0xbef472,-0x7c,-_0x977578._0x3bd105,-_0x977578._0x3f4e11)](_0x5c94c8(0x127,_0x977578._0x44cb3c,_0x977578._0x229b3d,_0x977578._0x3a34f9),_0x59c6b0);if(!_0x5ac508&&_0x2d68d9[_0x2c87f2(-0x44,-0x2,0x9,-0x21)]&&!_0x2d68d9['killed'])try{killProcessGroup(_0x2d68d9,_0x48ace7);}catch{}}}});}function createShellExecTool(_0x3de247={}){return createBashTool(_0x3de247);}function tokenizeArgs(_0x451fed){const _0x2c16ce={_0x4c6446:0x348,_0x3702b6:0x2fa,_0x274fca:0x2c2,_0x493fa5:0x28a,_0x5dbec8:0x317,_0x51f158:0x2fc,_0x43126b:0x35d,_0x518a28:0x332,_0x54cafe:0x385},_0x41d0ff={_0x1761b7:0xa0,_0x94a9b2:0x143},_0x4cc044={_0x36779f:0x157,_0x360f3a:0x0};function _0x568e4b(_0x267f1b,_0xe9999c,_0x3dc6e4,_0x5cf33a){return _0x452c58(_0x267f1b-_0x4cc044._0x36779f,_0x3dc6e4,_0x3dc6e4-_0x4cc044._0x360f3a,_0x5cf33a-0x66);}const _0x240764=[];let _0x3d8ff9='',_0x3fbeec=0x0;while(_0x3fbeec<_0x451fed[_0x568e4b(0x325,0x38f,0x361,0x2ce)]){const _0x1df05c=_0x451fed[_0x3fbeec];if(_0x1df05c==='\x5c'&&_0x3fbeec+0x1<_0x451fed[_0x568e4b(0x325,0x343,_0x2c16ce._0x4c6446,_0x2c16ce._0x3702b6)])_0x3d8ff9+=_0x451fed[_0x3fbeec+0x1],_0x3fbeec+=0x2;else{if(_0x1df05c==='\x22'||_0x1df05c==='\x27'){const _0x2e5d98=_0x1df05c;_0x3fbeec++;while(_0x3fbeec<_0x451fed['length']&&_0x451fed[_0x3fbeec]!==_0x2e5d98){_0x451fed[_0x3fbeec]==='\x5c'&&_0x3fbeec+0x1<_0x451fed[_0x3239a8(_0x2c16ce._0x274fca,_0x2c16ce._0x493fa5,_0x2c16ce._0x5dbec8,0x36f)]?(_0x3d8ff9+=_0x451fed[_0x3fbeec+0x1],_0x3fbeec+=0x2):(_0x3d8ff9+=_0x451fed[_0x3fbeec],_0x3fbeec++);}_0x3fbeec++;}else _0x1df05c!==void 0x0&&/\s/[_0x568e4b(0x304,_0x2c16ce._0x51f158,_0x2c16ce._0x43126b,0x32e)](_0x1df05c)?(_0x3d8ff9&&(_0x240764[_0x3239a8(0x387,_0x2c16ce._0x518a28,0x346,0x341)](_0x3d8ff9),_0x3d8ff9=''),_0x3fbeec++):(_0x3d8ff9+=_0x1df05c,_0x3fbeec++);}}function _0x3239a8(_0x36a4c1,_0x6ae009,_0x56b1dc,_0x150ef6){return _0x44530c(_0x36a4c1,_0x6ae009-0x3c,_0x56b1dc-_0x41d0ff._0x1761b7,_0x56b1dc- -_0x41d0ff._0x94a9b2);}if(_0x3d8ff9)_0x240764[_0x568e4b(0x354,0x323,_0x2c16ce._0x54cafe,0x356)](_0x3d8ff9);return _0x240764;}function renderCommandPrompt(_0x888a9a,_0x7cfa58,_0x39a67b){const _0x57280d={_0x29812f:0x144,_0x1b3d02:0xcf,_0x38f89d:0xa2,_0xa26972:0x190,_0x52afe8:0x119,_0x7da94f:0x101,_0x1d129e:0xd2,_0x484ce1:0x14b,_0x630b61:0x165,_0x5146db:0xf9,_0x390878:0x2a,_0x7f750:0x62,_0x3218d6:0x84,_0x134e1a:0xf3},_0x3d5ea4={_0x26e68a:0xb1,_0x57e298:0xf5,_0x373be7:0x527},_0x2b5ffb={_0x230fa8:0xa};let _0xec9b2f=_0x888a9a,_0x56e611=![];const _0x5b8eaa=tokenizeArgs(_0x39a67b);function _0x591d7e(_0x5c1a1c,_0x1ea933,_0x2730f8,_0x5e0510){return _0x452c58(_0x5e0510- -0x2ce,_0x1ea933,_0x2730f8-_0x2b5ffb._0x230fa8,_0x5e0510-0x13a);}_0xec9b2f=_0xec9b2f[_0x591d7e(-_0x57280d._0x29812f,-_0x57280d._0x1b3d02,-0xdd,-0xf9)](/\$ARGUMENTS\[(\d+)\]/g,(_0x551460,_0x28f598)=>{return _0x56e611=!![],_0x5b8eaa[Number(_0x28f598)]??'';}),_0xec9b2f=_0xec9b2f[_0x37487a(-0x110,-_0x57280d._0x38f89d,-0xc6,-0x2f)](/\$ARGUMENTS\b/g,()=>{return _0x56e611=!![],_0x39a67b;});if(_0x7cfa58)for(let _0x353122=0x0;_0x353122<_0x7cfa58[_0x591d7e(-_0x57280d._0xa26972,-_0x57280d._0x52afe8,-0x12e,-0x100)];_0x353122++){const _0x29842e=_0x7cfa58[_0x353122];_0x29842e&&(_0xec9b2f=_0xec9b2f[_0x591d7e(-_0x57280d._0x7da94f,-_0x57280d._0x1d129e,-_0x57280d._0x484ce1,-0xf9)](new RegExp('\x5c$'+_0x29842e+'\x5cb','g'),()=>{return _0x56e611=!![],_0x5b8eaa[_0x353122]??'';}));}_0xec9b2f=_0xec9b2f[_0x591d7e(-0x84,-0x114,-_0x57280d._0x630b61,-_0x57280d._0x5146db)](/\$(\d+)\b/g,(_0x4d47e4,_0x211e67)=>{return _0x56e611=!![],_0x5b8eaa[Number(_0x211e67)]??'';});function _0x37487a(_0x4fc903,_0x4ae40f,_0x48b6eb,_0x4c331d){return _0x44530c(_0x4c331d,_0x4ae40f-_0x3d5ea4._0x26e68a,_0x48b6eb-_0x3d5ea4._0x57e298,_0x48b6eb- -_0x3d5ea4._0x373be7);}return!_0x56e611&&_0x39a67b[_0x37487a(0x56,-0x62,-0x41,_0x57280d._0x390878)]()&&(_0xec9b2f=_0xec9b2f+_0x591d7e(-_0x57280d._0x7f750,-0x72,-_0x57280d._0x3218d6,-_0x57280d._0x134e1a)+_0x39a67b),_0xec9b2f;}function buildDescription(_0x2138c3){const _0x379fb6={_0x2aa504:0x520,_0x24e68e:0x470,_0x3ef7fd:0xbd,_0x4c6c49:0xd0,_0x2562b8:0x126,_0x175926:0x118,_0x58cecd:0xca,_0x4d3889:0x40,_0x1e6a1b:0x1f,_0x587284:0x4f,_0x83373e:0x44e,_0x9fe0b6:0x4e0,_0x2626e4:0x4b0,_0x2527da:0x417,_0x326819:0x508,_0x4cc8ee:0x48c,_0x4a4636:0x4b6,_0x303518:0x4c6,_0x574ff2:0x4b6,_0x41e60b:0x49b,_0x4e07f8:0x418,_0x5e7de0:0x522,_0x22c563:0x48e},_0x565d67={_0x365c4e:0xe0},_0x3db593={_0x51495f:0x172};function _0x658768(_0x180d93,_0x3e1123,_0x13fce9,_0x3e02b7){return _0x44530c(_0x13fce9,_0x3e1123-0x12e,_0x13fce9-_0x3db593._0x51495f,_0x3e02b7- -0x511);}function _0x4a9751(_0x47b571,_0x1b0603,_0x20d4cb,_0x28c928){return _0x452c58(_0x47b571-0x2fb,_0x28c928,_0x20d4cb-_0x565d67._0x365c4e,_0x28c928-0x1e9);}if(_0x2138c3[_0x4a9751(0x4c9,_0x379fb6._0x2aa504,_0x379fb6._0x24e68e,0x447)]===0x0)return[_0x658768(-0xd0,-0xd2,-_0x379fb6._0x3ef7fd,-_0x379fb6._0x4c6c49),_0x658768(-_0x379fb6._0x2562b8,-_0x379fb6._0x175926,-0x12e,-_0x379fb6._0x58cecd),_0x658768(-_0x379fb6._0x4d3889,_0x379fb6._0x1e6a1b,-0x2a,-_0x379fb6._0x587284)][_0x4a9751(0x48e,0x457,_0x379fb6._0x83373e,_0x379fb6._0x9fe0b6)]('\x0a');const _0x186032=[_0x4a9751(_0x379fb6._0x2626e4,_0x379fb6._0x2527da,_0x379fb6._0x326819,_0x379fb6._0x4cc8ee),_0x4a9751(_0x379fb6._0x4a4636,_0x379fb6._0x303518,_0x379fb6._0x574ff2,0x46a),_0x4a9751(_0x379fb6._0x41e60b,_0x379fb6._0x4e07f8,0x503,_0x379fb6._0x5e7de0),..._0x2138c3['map'](_0x570deb=>_0x570deb[_0x4a9751(0x550,0x4f3,0x55c,0x4c7)]?'-\x20'+_0x570deb[_0x4a9751(0x4b9,0x546,0x52b,0x4d0)]+'\x20'+_0x570deb[_0x4a9751(0x550,0x587,0x55f,0x54b)]+':\x20'+_0x570deb[_0x4a9751(0x508,0x49d,0x4a6,0x572)]:'-\x20'+_0x570deb[_0x658768(-0x157,-0x72,-0xc0,-0xc7)]+':\x20'+_0x570deb[_0x658768(-0xf3,-0x62,-0xef,-0x78)])];return _0x186032[_0x4a9751(_0x379fb6._0x22c563,0x4af,0x497,0x469)]('\x0a');}function createInvokeCommandTool(_0x6cdde5){const _0x25083b={_0x144cc4:0x2e9,_0x1e385f:0x30a,_0x6768b:0x2cf,_0x439f3d:0x236,_0x1ba49e:0x2ce,_0xeb2cb1:0x2c8,_0x10e5b1:0x295,_0x3b9ffc:0x25c,_0x3fcbb3:0x28f,_0x367a29:0x226,_0x2594a8:0x277,_0x5eb880:0x2e5,_0x1975b2:0x3ac,_0x3ac303:0x24b,_0x429ed6:0x2c3,_0x155894:0x23b},_0x3ea06a={_0x3b5f9d:0x24b,_0x5896ab:0x307,_0x3f201b:0x31d,_0x4f4afc:0x309,_0x3be6ae:0x2e9,_0x3a2fef:0x263,_0x303587:0x370,_0xb39370:0x3ac,_0x3b21c7:0x2a6,_0x5e87ae:0x321,_0x5b8778:0x2de,_0x469899:0x34c,_0x5be7e8:0x1b3,_0x12c3af:0x15f,_0x240a46:0x113,_0x512cca:0x1b7,_0x4b461e:0x2c2,_0x195aca:0x2da,_0x38fe3a:0x333,_0x292e55:0x2de,_0x98ae4c:0x31b,_0x560155:0x334,_0x288578:0x315,_0x5eec72:0x2ce,_0x1d92b8:0x2e4},_0x435380={_0x553ee8:0xfa,_0x12b2d6:0x157,_0x44ced7:0xb4},_0x6ce211={_0x16d634:0x125,_0x4dc0f0:0x220},_0x478cc8={_0x556c2d:0x103,_0x11d52f:0x1db};function _0x595237(_0x824086,_0x318bf0,_0x478a20,_0x13d5e4){return _0x44530c(_0x13d5e4,_0x318bf0-0x1d8,_0x478a20-_0x478cc8._0x556c2d,_0x478a20- -_0x478cc8._0x11d52f);}function _0x42a155(_0x5750ea,_0x55d194,_0x5d59ff,_0x578127){return _0x44530c(_0x578127,_0x55d194-_0x6ce211._0x16d634,_0x5d59ff-0x3a,_0x5d59ff- -_0x6ce211._0x4dc0f0);}const _0x4f6b05=new Map(_0x6cdde5[_0x595237(0x2ad,_0x25083b._0x144cc4,_0x25083b._0x1e385f,0x36e)][_0x42a155(_0x25083b._0x6768b,_0x25083b._0x439f3d,0x28d,_0x25083b._0x1ba49e)](_0xe5a983=>[_0xe5a983[_0x42a155(0x27f,0x2b3,0x22a,0x1c7)],_0xe5a983])),_0x3e1c90=buildDescription(_0x6cdde5[_0x595237(_0x25083b._0xeb2cb1,_0x25083b._0x10e5b1,0x30a,0x395)]);return defineTool({'name':_0x595237(_0x25083b._0x3b9ffc,_0x25083b._0x3fcbb3,0x29f,_0x25083b._0x367a29),'description':_0x3e1c90,'inputSchema':{'type':_0x42a155(_0x25083b._0x2594a8,0x364,_0x25083b._0x5eb880,0x2d9),'properties':{'name':{'type':'string'},'args':{'type':_0x595237(0x30f,_0x25083b._0x1975b2,0x325,0x2a7)}},'required':[_0x42a155(_0x25083b._0x3ac303,_0x25083b._0x429ed6,0x22a,_0x25083b._0x155894)]},async *'execute'(_0x21faaa){const _0x1f3c52={_0x2410f4:0x152},_0x420f6c=_0x4f6b05['get'](_0x21faaa[_0xcfe552(0x2de,_0x3ea06a._0x3b5f9d,0x2f5,_0x3ea06a._0x5896ab)]);if(!_0x420f6c){const _0x434306=Array['from'](_0x4f6b05[_0xcfe552(0x36f,0x324,_0x3ea06a._0x3f201b,_0x3ea06a._0x4f4afc)]())[_0xcfe552(0x2b3,0x220,_0x3ea06a._0x3be6ae,_0x3ea06a._0x3a2fef)](',\x20');throw new ToolExecutionError(_0xcfe552(0x337,_0x3ea06a._0x303587,_0x3ea06a._0xb39370,_0x3ea06a._0x3b21c7)+_0x21faaa['name']+_0xcfe552(0x38b,_0x3ea06a._0x5e87ae,0x2f1,0x32e)+_0x434306,{'name':_0x21faaa[_0xcfe552(_0x3ea06a._0x5b8778,0x2ba,0x24e,_0x3ea06a._0x469899)]});}const _0x286b6a=await _0x6cdde5[_0x39572d(_0x3ea06a._0x5be7e8,_0x3ea06a._0x12c3af,0x11d,0xbb)](_0x420f6c),_0x1b993e=_0x21faaa['args']??'',_0x457f1f=renderCommandPrompt(_0x286b6a[_0x39572d(_0x3ea06a._0x240a46,_0x3ea06a._0x512cca,0x13d,0x16d)],_0x286b6a[_0xcfe552(0x2fc,_0x3ea06a._0x4b461e,_0x3ea06a._0x195aca,_0x3ea06a._0x38fe3a)],_0x1b993e);yield createToolOutput(_0x457f1f,{'id':_0x286b6a['id'],'name':_0x286b6a[_0xcfe552(_0x3ea06a._0x292e55,_0x3ea06a._0x98ae4c,0x33b,_0x3ea06a._0x560155)],'path':_0x420f6c[_0xcfe552(0x29d,_0x3ea06a._0x288578,_0x3ea06a._0x5eec72,0x247)][_0xcfe552(0x2d7,0x251,0x2e8,_0x3ea06a._0x1d92b8)]});function _0xcfe552(_0x265301,_0xf63813,_0x954b08,_0x5c506c){return _0x42a155(_0x265301-_0x435380._0x553ee8,_0xf63813-_0x435380._0x12b2d6,_0x265301-_0x435380._0x44ced7,_0xf63813);}function _0x39572d(_0xc4dd3e,_0x123a21,_0x4496f3,_0x262ad2){return _0x42a155(_0xc4dd3e-0xd7,_0x123a21-0xa1,_0x4496f3- -_0x1f3c52._0x2410f4,_0x123a21);}return void 0x0;}});}import{createHash}from'crypto';import{readFile,rename,stat as _0xa29099,writeFile}from'fs/promises';import*as _0x5afd85 from'path';import{stat}from'fs/promises';import*as _0x31f93b from'path';function _0x4186(){const _0x48f90c=['rMLSzu5LDW','B25Jzq','zgvZy3jPChrPB24','twLJCM9ZB2z0','ls1YzwDLEha','CMLWz3jLCcbMywLSzwq6ia','zMfPBgvK','C2vYDMvYCW','l3vZCI9IAw4VCMC','lNrTCc4','zgvMyxvSDen3za','oduZmZG4nfLkAujzBG','q29TBwfUzcaN','r3jLCa','C2HPzNq','ywXSB3DLzfrVB2XZ','l3vZCI9IAw4VyMfZAa','zgvSzwDHDgvKlxj1BI0','Dg9VBa','C3rVCMfNzurPCG','D2HPy2GGCMC','Dg9VBfjLC3vSDhm','BwfW','ignVBxbSzxrLzc4','Aw5ZDhj1y3rPB25Z','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','y2XVC2u','mc4WlJa','C2vZC2LVBKLK','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','AxndB250zxH0','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','CMvZDwX0','CMvHC29U','C2vYDMvYtMfTzq','q29Tu3bLyW','ChjVCgvYDgLLCW','rMLSzuvKAxq','yxv0Aa','qxnZAwDUvgfZAW','Dg9VBhmVy2fSBa','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','ywDLBNrjza','qxv0Ag9YAxPHDgLVBG','xg5DkJ8','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','lw5i','ugf0AcbPCYbUB3qGysbMAwXLoIa','C2vUza','qMvHCMvYia','l2jPBI9ZAa','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','DxjS','C3rYAw5NAwz5','mZa3mJm0CgDWA293','C3jJl3nOyxjLzc90ExbLCY50CW','Bg9HzfnRAwXS','Dhj1BMm','zxHPDcbJB2rLia','CgfJA2fNzs5QC29U','u2TPBgWGjW','BwvZC2fNzq','Dg9VBenHBgXjza','ndi2nZC0ogjfs3rcqq','rMLSzsb3CML0DgvUigf0ia','A2v5CW','BNvTyMvY','B25szwrPCMvJDa','qMfZAa','yMfZzw5HBwu','yxjNCW','yxjNDw1LBNriAw50','lMPZB24','AxneAxjLy3rVCNK','C3bSAxq','y29TBwfUzhm','DhjPBq','Dg9VBhm','zMLSzvbHDgG','DhLWzq','y2fSBgjHy2TvCMW','l3vZCI9SB2nHBc9IAw4VCMC','AxrLBxm','y29UzMLN','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLigzPBguGy29UDgvUDhmU','B2XKvgv4Da','Ahr0Ca','ywDLBNrZ','zw52','ls1MB2XSB3C','CgXHDgzVCM0','tM8GC3vJAcbMAwXLoIaN','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','BgLZDfrVB2XZ','Dg9Rzw5Z','mtyWtxzwr1DA','Aw5JBhvKzq','CMvXDwLYzwq','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','zNjVBq','CMvSyxrPDMu','C3rYAw5N','BwLU','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','B2f1DgG','ru5pru5u','B2jQzwn0','ls1NBg9IpseUz2L0lYO','zMLUywXnzxnZywDL','y29UC3rYDwn0B3i','zw50CMLLCW','AwDUB3jL','zgLZywjSzwq','y2XPzw50twv0ywrHDgfvCMW','yM9VBgvHBG','C2vYDMvY','C29YDa','n2LtB3DNvq','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','yMLYDgH0Aw1L','Aw5KzxHpzG','AxnbCNjHEq','tunqihnLCNzLCIa','y2f0y2G','BxrPBwvnCW','AgvHzgvYCW','CMvXDwvZDa','ndG0nJvrrurvChC','BNv2Aw4','DhjHBNnWB3j0','zgLYBMfTzq','CMvZB2X2zq','y29UBMvJDa','wZ0+nY04kcLD','y29UDgvUDa','Bg9JywXLq29TCgfYzq','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','BwnWxW','CNvUswq','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','AxnbyNnVBhv0zq','AxnfCNjVCG','C2nVCgvZ','y2XPzw50','y29TBwfUza','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','qMfZzsbKAxjLy3rVCNK6ia','Bwf4','Dg9Rzw5tDg9YywDLs2v5','ls1MAwXLCW','ls1OAwrKzw4','BgLUzvn0yxj0','yxnZAwDU','BMv3vgv4Da','zgf0yq','CMfUzg9T','Dg9Rzw4','zgLZy292zxj5','Cgf0DgvYBIbPCYbYzxf1AxjLza','A2LSBa','y29UBMvJDgLVBG','D2HLCMuGCMC','ig1HDgnO','ihDHCYbHyM9YDgvKlG','u0Lhs0Lmta','Aw50zwDLCG','C291CMnL','mZaZmJu0t25lvxvd','l2jPBI9YzW','Aw5WDxrty2HLBwe','C3rKzxjY','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','zgLNzxn0','v2LUr2v0','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','y29UBMvJDgvK','rMLUzcb3B3jRC3bHy2uGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','o1TExg5DkJ8','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','DgfZAW','yMvHCMvY','y2HHCKnVzgvbDa','vw5HDxrOB3jPEMvKrxjYB3i','y2fSBfrVB2W','C2HHmJu2','ls1NBg9I','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','AM9PBG','D2LUmZi','Aw5WDxq','tNv2Aw4','tgLUzsa','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','zgLYzwn0B3j5','D3jPDgu','ywXS','ugf0AcbPCYbVDxrZAwrLihDVCMTZCgfJztOG','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','uhjVz3jHBuzPBgvZkhG4nIK','qxzHAwXHyMXLignVBw1HBMrZoG','C3rKB3v0','y29Kzq','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','B2zM','AxngAw5PDgu','AxngAwXL','B3v0Chv0','rwrPDcbHifvurI04ihrLEhqGzMLSzsbIEsbYzxbSywnPBMCGDgHLigzPCNn0igv4ywn0ihrLEhqGC2vNBwvUDc4','BgLUzvrLEhq','C3jJl2fNzw50l2fNzw50lNrZ','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','DgvZDa','DMvYAwzPzxi','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','yxv0Ag9YAxPHDgLVBL9JB2rL','igzYB20G','yxjYyxK','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','BxrPBwu','Cgf0Aa','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLlG','r2XVyG','zxjYB3i','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','y3jSzG','zMLSDgvY','BMfTzq','m21SAxvRwq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','B3jPz2LUvg9VBenHBgXjza','lI4U','l2jPBI9IyxnO','C2LNBMfS','BgLTAxq','ChjLzML4','C3rHDgu','CNvUBMLUzW','y3DK','Bw9Kzq','Bwf0y2HLCW','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','ugf0AcbUB3qGzM91BMq6ia','BgvUz3rO','zw5K','C2XPy2u','Dg9ju09tDhjPBMC','CgLK','C2TPBgXZ','CgfYC2vjBNq','CMvWBgfJzq','zgLZy292zxj5u3rHDgu','Dgv4Da','CgLWzq','ywjVCNrLza','BM93','cGPbuKDvtuvovfm6ia','yxjNDw1LBNrZ','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','u3rHCNrLzcbHz2vUDcbYDw4G','C2v0','C3rHDhvZ','zw5HyMXLza','DhjPBuvUza','ls0T','zxjYB3jnzxnZywDL','mte3mZy2ngXsBLzZDW','tunqihrVB2WG','CMvMCMvZAf90B2TLBG','BgLUzuvUza','rMLSzvjLywq','Dg9tDhjPBMC','tg9HzgvKigzYB206ia','igzHAwXLzc4','w1bFxL1BxhnCu10QpW','sw52B2TLq29TBwfUza','u2HLBgWGBM90igzVDw5KoIa','lu5VuhjVzMLSzq','y29KzvzLCMLMAwvY','y29UDgv4Da','zMLSzq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','y21KlMv4zq','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','ig1Z','z2v0','ntaWnJG4nuzurwXOBa','DxrMoa','zhj5uNvU','DxbKyxrL','ChvZAa','CMCUzxHL','y2XPzw50sw5MB3jTyxrPB24','C3rYAxbbBNnP','C3LTBgLUAW','CMLWz3jLCa','Bg9HzenVBw1HBMq','AwDUB3jLt3v0Chv0','Cgf0DgvYBG','Agv4','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','C2L6zq','z2XVyG'];_0x4186=function(){return _0x48f90c;};return _0x4186();}function resolveWorkspacePath(_0x4fb237,_0x373ad8){const _0x250845={_0x75a60a:0x3b5,_0x5f0c7b:0x351,_0x5a2858:0x2fe,_0x37ec79:0x338,_0x3f9e3f:0x2ef,_0x294dfc:0x343,_0x242e00:0x2f2},_0x569ff6={_0x45de4f:0x123,_0x5885ab:0xbd,_0x10b765:0x120},_0x23bd77={_0x24c58b:0x5b},_0x44bceb=_0x31f93b[_0x157155(_0x250845._0x75a60a,0x429,_0x250845._0x5f0c7b,0x333)](_0x4fb237),_0x5ca260=_0x31f93b[_0x1858d3(0x37c,0x3d2,0x2a1,0x33a)](_0x44bceb,_0x373ad8);function _0x1858d3(_0x5d44d2,_0x38103e,_0x397366,_0x326a1d){return _0x44530c(_0x38103e,_0x38103e-_0x23bd77._0x24c58b,_0x397366-0x6b,_0x326a1d- -0x1e4);}const _0x2f5136=_0x31f93b[_0x157155(0x396,0x376,_0x250845._0x5a2858,0x40b)](_0x44bceb,_0x5ca260);function _0x157155(_0x119dc0,_0x1f5c9f,_0x4e0653,_0x52bd1a){return _0x452c58(_0x119dc0-_0x569ff6._0x45de4f,_0x1f5c9f,_0x4e0653-_0x569ff6._0x5885ab,_0x52bd1a-_0x569ff6._0x10b765);}if(_0x2f5136===''||!_0x2f5136['startsWith']('..')&&!_0x31f93b[_0x1858d3(_0x250845._0x37ec79,0x2fc,_0x250845._0x3f9e3f,_0x250845._0x294dfc)](_0x2f5136))return _0x5ca260;throw new ToolExecutionError(_0x157155(0x2c0,0x34a,0x257,_0x250845._0x242e00)+_0x373ad8,{'path':_0x373ad8,'rootDir':_0x44bceb});}async function assertWorkspaceFile(_0x430b4b){const _0xda8109={_0xe42ab1:0x282,_0x34e98c:0x2a7},_0x4f4b6e={_0x3fdc01:0x128};function _0x4b2c38(_0x1d8ca0,_0x5af609,_0x4e0963,_0x14b6bb){return _0x44530c(_0x1d8ca0,_0x5af609-0x6e,_0x4e0963-_0x4f4b6e._0x3fdc01,_0x4e0963- -0x247);}const _0x349182=await stat(_0x430b4b);if(!_0x349182['isFile']())throw new ToolExecutionError(_0x4b2c38(0x1e6,0x1e6,_0xda8109._0xe42ab1,_0xda8109._0x34e98c)+_0x430b4b,{'path':_0x430b4b});}function isProbablyBinary(_0x332eb8){return _0x332eb8['includes'](0x0);}function detectEol(_0x2687fd){const _0x2f83e8={_0xc508d9:0x158,_0x11765e:0x205,_0x5caceb:0x497,_0x5b8954:0x40c,_0x38e121:0x4a4,_0x3a19f8:0x1f1,_0x35d9fc:0x3de,_0x272063:0x412},_0x150a08={_0x46b0bd:0x10a};function _0x40a47b(_0x23d735,_0x26d96b,_0x119041,_0x574b43){return _0x452c58(_0x26d96b- -0x9,_0x574b43,_0x119041-0xdc,_0x574b43-_0x150a08._0x46b0bd);}function _0x49aa81(_0x5dcf16,_0x3dcd62,_0x244c69,_0x2d71db){return _0x452c58(_0x244c69-0x2ba,_0x5dcf16,_0x244c69-0xad,_0x2d71db-0x48);}return/\r\n/[_0x40a47b(_0x2f83e8._0xc508d9,0x1a4,_0x2f83e8._0x11765e,0x187)](_0x2687fd[_0x49aa81(_0x2f83e8._0x5caceb,_0x2f83e8._0x5b8954,_0x2f83e8._0x38e121,0x4aa)](_0x40a47b(0x183,_0x2f83e8._0x3a19f8,0x21e,0x217)))?_0x49aa81(_0x2f83e8._0x35d9fc,_0x2f83e8._0x272063,0x476,0x501):'lf';}function normalizeToLf(_0x2c7b9c){const _0x3ca612={_0x418a84:0x2f2,_0x1e586a:0x365,_0x90094d:0x332},_0x451595={_0x3e1c34:0x93,_0x135558:0x12f};function _0x3ff5f7(_0x4d9a52,_0x1bd8d3,_0x144baf,_0x3b768a){return _0x44530c(_0x4d9a52,_0x1bd8d3-0xf9,_0x144baf-_0x451595._0x3e1c34,_0x3b768a- -_0x451595._0x135558);}return _0x2c7b9c[_0x3ff5f7(0x3b7,_0x3ca612._0x418a84,_0x3ca612._0x1e586a,_0x3ca612._0x90094d)](/\r\n/g,'\x0a');}function convertEol(_0xa2c506,_0x63f7f7){const _0x39d88f={_0x4e41a7:0x47f,_0x3a207c:0x45d,_0x371d08:0x449,_0x34637c:0x49b},_0x4b9663={_0x1c6a38:0x6f},_0x474337={_0x2307f7:0x167,_0xef2b3a:0x157,_0xde14ee:0x3a};function _0x54b509(_0x2bd70d,_0x415926,_0x306ca4,_0x136182){return _0x44530c(_0x2bd70d,_0x415926-_0x474337._0x2307f7,_0x306ca4-_0x474337._0xef2b3a,_0x415926-_0x474337._0xde14ee);}function _0xfc0df9(_0x3b7376,_0x61ee22,_0x4795b2,_0x2c2c1e){return _0x44530c(_0x61ee22,_0x61ee22-0xe,_0x4795b2-_0x4b9663._0x1c6a38,_0x2c2c1e- -0x1b6);}return _0x63f7f7===_0x54b509(_0x39d88f._0x4e41a7,0x482,_0x39d88f._0x3a207c,0x4b0)?_0xa2c506[_0x54b509(_0x39d88f._0x371d08,_0x39d88f._0x34637c,0x518,0x52d)](/\n/g,'\x0d\x0a'):_0xa2c506;}async function atomicWrite(_0x2d5ae3,_0x4bbb9f){const _0xca5519={_0x17fa08:0x105,_0x3a28ec:0xdb,_0x3ae6d2:0x1e8,_0x823d22:0x204,_0x237d52:0x1bd,_0x419573:0x2cc,_0x46b2e6:0x2c4,_0x13d5f0:0x161,_0x253c3d:0x1f7,_0x4f603e:0x2ac,_0x39ff05:0x25b,_0x3c6ca2:0x1fa,_0x5f50e8:0x179,_0xa64e26:0x19c},_0x530c10={_0x17d5f0:0x71,_0x155f87:0x1c2,_0xaf8358:0xe8},_0x77ecce={_0x2821d8:0x184,_0x31c8af:0x5f8},_0xff6baa=_0x5afd85[_0x3b1065(-0x7b,-_0xca5519._0x17fa08,-0x14a,-_0xca5519._0x3a28ec)](_0x2d5ae3);function _0x3b1065(_0x2bb880,_0x28626b,_0x91d912,_0xd2623e){return _0x44530c(_0x2bb880,_0x28626b-_0x77ecce._0x2821d8,_0x91d912-0x179,_0xd2623e- -_0x77ecce._0x31c8af);}const _0x48d884=_0x5afd85[_0x426fde(_0xca5519._0x3ae6d2,_0xca5519._0x823d22,0x241,_0xca5519._0x237d52)](_0xff6baa,'.tmp.'+_0x5afd85[_0x426fde(_0xca5519._0x419573,_0xca5519._0x46b2e6,0x314,0x2dd)](_0x2d5ae3)+'.'+Date[_0x426fde(0x2df,0x24b,0x21d,0x1ff)]()+'.'+Math[_0x3b1065(-_0xca5519._0x13d5f0,-_0xca5519._0x253c3d,-0x26b,-0x1fa)]()[_0x426fde(_0xca5519._0x4f603e,_0xca5519._0x39ff05,0x2d3,_0xca5519._0x3c6ca2)](0x24)[_0x3b1065(-_0xca5519._0x5f50e8,-0x179,-0x135,-_0xca5519._0xa64e26)](0x2));function _0x426fde(_0xbcfb53,_0x385f6b,_0x4b8033,_0x3f08c2){return _0x452c58(_0x385f6b-_0x530c10._0x17d5f0,_0x4b8033,_0x4b8033-_0x530c10._0x155f87,_0x3f08c2-_0x530c10._0xaf8358);}await writeFile(_0x48d884,_0x4bbb9f),await rename(_0x48d884,_0x2d5ae3);}function sha256(_0x2016b9){const _0x510782={_0x37fa40:0x1e6,_0x2838bd:0x183,_0x4f46ca:0x1c8,_0x57aa2b:0x1bf,_0x87bd7f:0x236},_0x262323={_0x30ed04:0xf1,_0xa972b7:0x59f},_0x219ad4={_0x439be2:0x71,_0x51191f:0x1c1};function _0x2ba2c6(_0x41caa3,_0x57d5c5,_0x174302,_0x18bb43){return _0x452c58(_0x174302-_0x219ad4._0x439be2,_0x57d5c5,_0x174302-_0x219ad4._0x51191f,_0x18bb43-0xd1);}function _0x21e173(_0x10005d,_0x276962,_0xd4c0d5,_0x3820ff){return _0x44530c(_0x276962,_0x276962-_0x262323._0x30ed04,_0xd4c0d5-0xb,_0x3820ff- -_0x262323._0xa972b7);}return createHash(_0x21e173(-0xf9,-_0x510782._0x37fa40,-0x215,-_0x510782._0x2838bd))[_0x2ba2c6(0x284,0x27b,0x26d,0x2f8)](_0x2016b9)[_0x21e173(-0x14e,-_0x510782._0x4f46ca,-_0x510782._0x57aa2b,-0x18f)](_0x2ba2c6(0x27f,_0x510782._0x87bd7f,0x277,0x2bf));}function countLines(_0x152e61){const _0x3f30cf={_0x2c1945:0x472,_0x454354:0x4a8,_0x167842:0x432,_0x214283:0x446,_0x244530:0x46b,_0x4b8a53:0x4f7,_0x1fe49d:0x4f5,_0x3fdc7b:0x48b,_0x9a3662:0x556,_0x416470:0x58b,_0x5b33e0:0x5d6},_0x450c03={_0x364a85:0x19e,_0x100a40:0x135,_0x1efcb6:0x11};function _0xd0010b(_0x2bd92a,_0x12ab61,_0x10d7bf,_0x44a5c7){return _0x44530c(_0x10d7bf,_0x12ab61-0xdf,_0x10d7bf-0x118,_0x12ab61-0xfc);}const _0x47c2cb=_0x152e61[_0x22fb2d(0x45c,_0x3f30cf._0x2c1945,_0x3f30cf._0x454354,_0x3f30cf._0x167842)](/\n$/,'');function _0x22fb2d(_0x13deb8,_0x374831,_0x2e5e78,_0x14a1ab){return _0x44530c(_0x14a1ab,_0x374831-_0x450c03._0x364a85,_0x2e5e78-_0x450c03._0x100a40,_0x374831-_0x450c03._0x1efcb6);}return _0x47c2cb[_0x22fb2d(_0x3f30cf._0x214283,_0x3f30cf._0x244530,0x40c,0x41b)]===0x0?0x0:_0x47c2cb[_0x22fb2d(_0x3f30cf._0x4b8a53,_0x3f30cf._0x1fe49d,_0x3f30cf._0x3fdc7b,0x571)]('\x0a')[_0xd0010b(0x5c1,_0x3f30cf._0x9a3662,_0x3f30cf._0x416470,_0x3f30cf._0x5b33e0)];}function calculateLineNumbers(_0xfe905f,_0x5a415d,_0x4324d6,_0x4b2164){const _0x1a9a0a={_0x5f257a:0x4fb,_0x564c63:0x554,_0x4076c5:0x4f9,_0x5e1d74:0x4c9,_0x85c2d:0x468},_0x439be6={_0x1abf7e:0x10c,_0x1599dc:0xd9},_0x2321da={_0x101a89:0xb0,_0x27606c:0x1},_0x46500c=_0xfe905f[_0x5b8f29(_0x1a9a0a._0x5f257a,_0x1a9a0a._0x564c63,0x52d,0x49c)](0x0,_0x4b2164)[_0x5b8f29(0x583,0x612,0x585,0x558)]('\x0a')[_0x5b8f29(_0x1a9a0a._0x4076c5,0x527,_0x1a9a0a._0x5e1d74,_0x1a9a0a._0x85c2d)];function _0x1e801f(_0x5b2492,_0x466af9,_0x20390c,_0x39b9d2){return _0x452c58(_0x466af9-_0x2321da._0x101a89,_0x39b9d2,_0x20390c-0x128,_0x39b9d2-_0x2321da._0x27606c);}function _0x5b8f29(_0x1a6940,_0x1183d8,_0x2eca07,_0x405333){return _0x452c58(_0x1a6940-0x32b,_0x2eca07,_0x2eca07-_0x439be6._0x1abf7e,_0x405333-_0x439be6._0x1599dc);}const _0x5e1c5b=countLines(_0x5a415d),_0x5131f1=countLines(_0x4324d6);return{'oldStartLine':_0x46500c,'oldEndLine':_0x46500c+_0x5e1c5b-0x1,'newStartLine':_0x46500c,'newEndLine':_0x46500c+_0x5131f1-0x1,'oldLineCount':_0x5e1c5b,'newLineCount':_0x5131f1};}function createFileEditTool(_0x1d7c37={}){const _0x2634fd={_0x38bbc2:0x4c5,_0x358f66:0x4c4,_0x27b8dd:0x403,_0x3f4973:0x3d8,_0x2a445e:0x3df,_0x127d21:0x4e2,_0x5f7ce8:0x347,_0x2eea58:0x4b3,_0x4527b6:0x45c,_0x11f881:0x459,_0x333126:0x4b0,_0x8690c8:0x440,_0x432a3a:0x4d4,_0x19cc33:0x531,_0xa79ad9:0x534,_0x50396e:0x4f2,_0x2594bb:0x50c,_0x5b58ff:0x514,_0x273dfe:0x47f,_0x19ad10:0x488},_0x2fa5ab={_0x3630c5:0x97,_0x532396:0x18,_0x4275c2:0x42,_0x3b782a:0x59,_0x47833c:0x5e,_0x389718:0x19,_0x22b784:0x1d,_0xa1ce92:0xa5,_0x39cb0b:0x7f,_0x23ec4f:0xb4,_0x2ab311:0x9d,_0x3eebb7:0xc,_0x3e6b59:0x76,_0x3c93e7:0x25,_0x46a718:0xd3,_0x567618:0xc5,_0x4105a0:0xdb,_0xe40746:0x7b,_0x531f94:0x50,_0x4846f1:0xc2,_0x16611a:0x7d,_0x1eecaf:0x5,_0x167ab2:0xad,_0x4af99b:0x19,_0x1c6663:0x5f,_0x2ee7eb:0xc,_0x6b6365:0x57,_0x2f1093:0x33,_0x53f219:0x38,_0x5db998:0x72,_0xe99836:0x44,_0x4d5d2e:0x11,_0x22582d:0x38,_0x12c3b6:0x11,_0x50c31f:0x14,_0x133e25:0x14,_0x135a66:0x9,_0x3e8aef:0x47,_0x27420e:0x2,_0x464ba1:0x95,_0x12172d:0x28,_0x470022:0x7a,_0x22d36e:0x56,_0x467e5b:0xc8,_0x47d643:0x10e,_0x343e63:0xf7,_0x3caa39:0x5,_0x2c1fbc:0x3},_0x2e5c32={_0x485a01:0xb,_0x3d1ac5:0xbe},_0x50060b={_0x5bb165:0xe2},_0x3d01af=_0x5afd85['resolve'](_0x1d7c37[_0x2f2937(_0x2634fd._0x38bbc2,0x473,0x525,_0x2634fd._0x358f66)]??process[_0x1ef4f2(_0x2634fd._0x27b8dd,_0x2634fd._0x3f4973,_0x2634fd._0x2a445e,0x412)]());function _0x1ef4f2(_0x463cf9,_0x42008c,_0x222274,_0x462d27){return _0x452c58(_0x463cf9-0x23a,_0x462d27,_0x222274-0x1ac,_0x462d27-0x1ae);}const _0x1824cf=_0x1d7c37['name']??_0x2f2937(_0x2634fd._0x127d21,0x4e6,0x4fb,0x529);function _0x2f2937(_0x113e8d,_0x1bf603,_0x13014a,_0x558c67){return _0x44530c(_0x1bf603,_0x1bf603-_0x50060b._0x5bb165,_0x13014a-0x3b,_0x113e8d-0x24);}return defineTool({'name':_0x1824cf,'description':_0x1ef4f2(0x3e3,_0x2634fd._0x5f7ce8,0x34e,0x34c),'inputSchema':{'type':_0x1ef4f2(_0x2634fd._0x2eea58,_0x2634fd._0x4527b6,_0x2634fd._0x11f881,0x4d0),'properties':{'filePath':{'type':'string'},'oldText':{'type':_0x1ef4f2(0x4ae,0x4bd,_0x2634fd._0x333126,_0x2634fd._0x8690c8)},'newText':{'type':_0x1ef4f2(0x4ae,0x45c,0x41a,_0x2634fd._0x432a3a)},'dryRun':{'type':_0x2f2937(_0x2634fd._0x19cc33,_0x2634fd._0xa79ad9,0x59b,_0x2634fd._0x50396e)}},'required':[_0x2f2937(_0x2634fd._0x2594bb,0x489,0x509,0x593),_0x2f2937(_0x2634fd._0x5b58ff,0x4da,_0x2634fd._0x273dfe,0x56d),_0x1ef4f2(0x4e2,_0x2634fd._0x19ad10,0x453,0x45e)]},async *'execute'(_0x1dbcb6){const _0x57d053={_0x2a9c5f:0x1ec},_0xdc8a6b=resolveWorkspacePath(_0x3d01af,_0x1dbcb6[_0x203120(_0x2fa5ab._0x3630c5,0x59,-0x6c,0x11)]);await assertWorkspaceFile(_0xdc8a6b);const _0x5ee89b=await _0xa29099(_0xdc8a6b);function _0x2e128f(_0x389c5c,_0xc339ee,_0x185280,_0x3a1753){return _0x1ef4f2(_0x389c5c- -0x41c,_0xc339ee-_0x57d053._0x2a9c5f,_0x185280-0x121,_0xc339ee);}const _0x852dce=await readFile(_0xdc8a6b),_0x31b189=detectEol(_0x852dce),_0x4928f0=normalizeToLf(_0x852dce['toString'](_0x2e128f(_0x2fa5ab._0x532396,_0x2fa5ab._0x4275c2,-_0x2fa5ab._0x3b782a,_0x2fa5ab._0x47833c))),_0x4b19e0=normalizeToLf(_0x1dbcb6[_0x203120(-0x5,0x7f,-0x68,_0x2fa5ab._0x389718)]),_0x4eb54d=normalizeToLf(_0x1dbcb6[_0x203120(0xa3,-_0x2fa5ab._0x22b784,0xaa,0x5d)]),_0x31d9cb=_0x4928f0[_0x2e128f(_0x2fa5ab._0xa1ce92,_0x2fa5ab._0x39cb0b,0x11f,_0x2fa5ab._0x23ec4f)](_0x4b19e0);if(_0x31d9cb===-0x1){const _0x577a93=_0x4b19e0['slice'](0x0,0x64)[_0x203120(-0xd0,-_0x2fa5ab._0x2ab311,-_0x2fa5ab._0x3eebb7,-_0x2fa5ab._0x3e6b59)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x203120(_0x2fa5ab._0x3c93e7,-0xa2,-0x6f,-0x44)+_0x577a93+(_0x4b19e0[_0x2e128f(-0x14,-0x2e,0x5b,-0x69)]>0x64?_0x203120(-_0x2fa5ab._0x46a718,-0x3f,-_0x2fa5ab._0x567618,-0x89):'')+'\x22',{'filePath':_0x1dbcb6['filePath']});}const _0x33908b=_0x4928f0['slice'](0x0,_0x31d9cb)+_0x4eb54d+_0x4928f0[_0x203120(-0x69,-0xa9,-_0x2fa5ab._0x4105a0,-_0x2fa5ab._0xe40746)](_0x31d9cb+_0x4b19e0[_0x203120(-_0x2fa5ab._0x531f94,-_0x2fa5ab._0x4846f1,-0x58,-_0x2fa5ab._0x16611a)]),_0x1d2757=convertEol(_0x33908b,_0x31b189),_0x5a907f=Buffer[_0x203120(-0x50,0x65,_0x2fa5ab._0x1eecaf,0x27)](_0x1d2757,_0x203120(-_0x2fa5ab._0x167ab2,-0xaa,-0xb4,-0x51)),_0x18107e=sha256(_0x852dce),_0x17b81b=sha256(_0x5a907f),_0x12bbb4=_0x18107e===_0x17b81b,_0x4ad754=_0x1dbcb6[_0x2e128f(_0x2fa5ab._0x4af99b,0x59,0x75,0x3b)]??![];function _0x203120(_0x111168,_0x2e46b9,_0x2758b9,_0x31f198){return _0x1ef4f2(_0x31f198- -0x485,_0x2e46b9-_0x2e5c32._0x485a01,_0x2758b9-_0x2e5c32._0x3d1ac5,_0x2e46b9);}return!_0x4ad754&&!_0x12bbb4&&await atomicWrite(_0xdc8a6b,_0x5a907f),yield createToolOutput(_0x12bbb4?_0x203120(-_0x2fa5ab._0x1c6663,-_0x2fa5ab._0x2ee7eb,-0x37,-_0x2fa5ab._0x6b6365):_0x4ad754?_0x2e128f(_0x2fa5ab._0x3b782a,0xc5,-0x1b,-0x36):_0x2e128f(-_0x2fa5ab._0x2f1093,_0x2fa5ab._0x53f219,-_0x2fa5ab._0x5db998,0x3a),{'filePath':_0x1dbcb6[_0x203120(_0x2fa5ab._0xe99836,-0x74,-0x69,_0x2fa5ab._0x4d5d2e)],'resolvedPath':_0xdc8a6b,'created':_0x5ee89b[_0x2e128f(0xa4,0x5e,0xad,_0x2fa5ab._0x22582d)][_0x2e128f(-_0x2fa5ab._0x12c3b6,_0x2fa5ab._0x50c31f,_0x2fa5ab._0x133e25,_0x2fa5ab._0x135a66)](),'modified':_0x5ee89b[_0x203120(-_0x2fa5ab._0x3e8aef,-_0x2fa5ab._0x27420e,-0x12e,-_0x2fa5ab._0x464ba1)][_0x2e128f(-0x11,_0x2fa5ab._0x12172d,_0x2fa5ab._0x470022,0x89)](),'size':_0x5ee89b['size'],'eol':_0x31b189,'oldTextLength':_0x4b19e0[_0x203120(-_0x2fa5ab._0x22d36e,-_0x2fa5ab._0x467e5b,-_0x2fa5ab._0x47d643,-_0x2fa5ab._0x16611a)],'newTextLength':_0x4eb54d[_0x203120(-_0x2fa5ab._0x343e63,-0xc8,-0xce,-0x7d)],'bytesWritten':_0x12bbb4||_0x4ad754?0x0:_0x5a907f[_0x2e128f(-0x14,_0x2fa5ab._0x3caa39,_0x2fa5ab._0x2c1fbc,-0xaf)],'beforeSha':_0x18107e,'afterSha':_0x17b81b,'dryRun':_0x4ad754,'noChange':_0x12bbb4,'lineNumbers':calculateLineNumbers(_0x4928f0,_0x4b19e0,_0x4eb54d,_0x31d9cb)}),void 0x0;}});}import{mkdir,rename as _0x53289c,stat as _0x516c80,writeFile as _0x4483b2}from'fs/promises';function _0x452c58(_0x2ab9ef,_0x363324,_0x15a04a,_0x399021){const _0x5f06b3={_0x28bf0e:0x8};return _0x5314(_0x2ab9ef- -_0x5f06b3._0x28bf0e,_0x363324);}import*as _0x1fc5ca from'path';async function atomicWrite2(_0x1c9720,_0x45b882){const _0x29a3da={_0x5e763f:0x65d,_0x32ead8:0x387,_0x1f001c:0x3be,_0x305974:0x32c,_0x1a193f:0x2d4,_0x395fa4:0x3fb,_0x480008:0x36b,_0x38aad8:0x2f7,_0x3bb99f:0x2b6},_0x44b94e={_0x5beeba:0x96},_0x3f839b={_0x242c4c:0x3cc};function _0x39d14b(_0x5dddc8,_0x358a13,_0x5665ab,_0x5c5c35){return _0x452c58(_0x358a13-_0x3f839b._0x242c4c,_0x5dddc8,_0x5665ab-0x194,_0x5c5c35-0x185);}const _0xdde73c=_0x1fc5ca[_0x39d14b(0x674,_0x29a3da._0x5e763f,0x658,0x613)](_0x1c9720);await mkdir(_0xdde73c,{'recursive':!![]});const _0x539918=_0x1fc5ca['join'](_0xdde73c,_0x102478(_0x29a3da._0x32ead8,_0x29a3da._0x1f001c,0x368,_0x29a3da._0x305974)+_0x1fc5ca[_0x102478(_0x29a3da._0x1a193f,_0x29a3da._0x395fa4,0x2fd,_0x29a3da._0x480008)](_0x1c9720)+'.'+Date['now']()+'.'+Math['random']()['toString'](0x24)[_0x102478(0x24e,_0x29a3da._0x38aad8,_0x29a3da._0x3bb99f,0x2e8)](0x2));await _0x4483b2(_0x539918,_0x45b882);function _0x102478(_0x26b0ec,_0x5b4a6b,_0x488a49,_0x51b375){return _0x44530c(_0x488a49,_0x5b4a6b-_0x44b94e._0x5beeba,_0x488a49-0xe9,_0x51b375- -0x174);}await _0x53289c(_0x539918,_0x1c9720);}function createFileNewTool(_0x5e9c5d={}){const _0x434b0b={_0xb9be47:0x77,_0x1e52b4:0x77,_0x4262cc:0xf0,_0x59cb32:0x54,_0x219b49:0x1a,_0x535fb2:0x112,_0x34c34b:0xc1,_0x58c181:0xd3,_0x79ef7e:0x45,_0x45f57d:0x369,_0x43665c:0x2d1,_0x5f1acf:0x3a0,_0x3061b7:0x3ea},_0x32ec5d={_0x496474:0x182,_0x29fcd3:0xee,_0x4c0afc:0xdf,_0x19a68d:0x6a,_0x3b2a86:0x12c,_0x2f3959:0xfb,_0x4c251a:0xe2,_0x4bb93b:0x5c5,_0x3f8800:0x529,_0x4d4083:0x598,_0x3582ab:0x55e,_0x3872ee:0xb3,_0x2f9206:0x83,_0x27f81f:0xa9,_0x319f8a:0xd7,_0x38a1b6:0x160,_0x5cc8a2:0x4f7,_0xf11f0c:0x53a,_0x49a246:0x501,_0x3d0af7:0x45e,_0x31c146:0x54f,_0x570413:0x596,_0xc265f1:0x73,_0xd295a:0xe1,_0x59bc30:0xb9};function _0xda87e6(_0x173cec,_0x27a479,_0x13e61e,_0x47f7ce){return _0x44530c(_0x47f7ce,_0x27a479-0x24,_0x13e61e-0x1ca,_0x13e61e- -0x545);}const _0x3d3be6=_0x1fc5ca[_0x48e5a7(0x388,0x39f,0x32e,0x349)](_0x5e9c5d['defaultCwd']??process[_0xda87e6(-_0x434b0b._0xb9be47,-_0x434b0b._0x1e52b4,-_0x434b0b._0x4262cc,-_0x434b0b._0x59cb32)]());function _0x48e5a7(_0x23f22f,_0x28eff8,_0x57fa0a,_0x479b90){return _0x452c58(_0x28eff8-0x10d,_0x479b90,_0x57fa0a-0x77,_0x479b90-0x5);}const _0x400f3a=_0x5e9c5d['name']??_0xda87e6(-0x76,-_0x434b0b._0x219b49,-0xae,-_0x434b0b._0x535fb2);return defineTool({'name':_0x400f3a,'description':_0xda87e6(-0x135,-_0x434b0b._0x34c34b,-0x101,-0x7b),'inputSchema':{'type':'object','properties':{'filePath':{'type':_0xda87e6(0x49,-_0x434b0b._0x58c181,-_0x434b0b._0x79ef7e,-0x4b)},'content':{'type':'string'}},'required':[_0x48e5a7(0x3ad,_0x434b0b._0x45f57d,0x37c,_0x434b0b._0x43665c),_0x48e5a7(_0x434b0b._0x5f1acf,0x3a2,_0x434b0b._0x3061b7,0x343)]},async *'execute'(_0x1379ed){const _0x1b2be4={_0x34ee55:0x8f,_0x51f989:0x78},_0x116790={_0x2091d0:0x1b},_0x176f24=resolveWorkspacePath(_0x3d3be6,_0x1379ed['filePath']);function _0x5eb1ec(_0x30e43d,_0x47b63c,_0x4f0039,_0x4aca43){return _0x48e5a7(_0x30e43d-_0x116790._0x2091d0,_0x4aca43-0x1bc,_0x4f0039-0xe3,_0x4f0039);}const _0x15bea4=await _0x516c80(_0x176f24)['then'](()=>!![])[_0x48c5ae(_0x32ec5d._0x496474,_0x32ec5d._0x29fcd3,0x113,_0x32ec5d._0x4c0afc)](()=>![]);function _0x48c5ae(_0x4b2f40,_0x2c374d,_0x19fa66,_0x6d6d0c){return _0xda87e6(_0x4b2f40-_0x1b2be4._0x34ee55,_0x2c374d-_0x1b2be4._0x51f989,_0x19fa66-0x142,_0x2c374d);}const _0x27c428=Buffer[_0x48c5ae(_0x32ec5d._0x19a68d,_0x32ec5d._0x3b2a86,_0x32ec5d._0x2f3959,_0x32ec5d._0x4c251a)](_0x1379ed[_0x5eb1ec(_0x32ec5d._0x4bb93b,_0x32ec5d._0x3f8800,_0x32ec5d._0x4d4083,_0x32ec5d._0x3582ab)],_0x48c5ae(_0x32ec5d._0x3872ee,-0x5,_0x32ec5d._0x2f9206,0x97));return await atomicWrite2(_0x176f24,_0x27c428),yield createToolOutput(_0x48c5ae(0x15d,_0x32ec5d._0x27f81f,_0x32ec5d._0x319f8a,_0x32ec5d._0x38a1b6)+_0x1379ed[_0x5eb1ec(_0x32ec5d._0x5cc8a2,_0x32ec5d._0xf11f0c,0x51e,0x525)]+'.',{'filePath':_0x1379ed['filePath'],'resolvedPath':_0x176f24,'bytes':_0x27c428[_0x5eb1ec(0x47d,_0x32ec5d._0x49a246,_0x32ec5d._0x3d0af7,0x497)],'lines':_0x1379ed[_0x5eb1ec(0x5f2,_0x32ec5d._0x31c146,_0x32ec5d._0x570413,0x55e)][_0x48c5ae(_0x32ec5d._0xc265f1,0xed,_0x32ec5d._0xd295a,0x50)](/\r?\n/)[_0x48c5ae(_0x32ec5d._0x59bc30,0x93,0x57,0x68)],'created':new Date()['toISOString'](),'overwritten':_0x15bea4}),void 0x0;}});}import{readFile as _0x79fc89,stat as _0x592384}from'fs/promises';import*as _0x3b7c46 from'path';function stripUtfBom(_0x512ced){const _0x28a0e3={_0x549fe5:0x9a,_0x231789:0x111},_0x232824={_0x9f345b:0xa1,_0x3d4bec:0xdd};function _0xd11383(_0x53aff7,_0x44fa44,_0x27d676,_0x459d75){return _0x44530c(_0x53aff7,_0x44fa44-_0x232824._0x9f345b,_0x27d676-_0x232824._0x3d4bec,_0x27d676- -0x4f4);}return _0x512ced['charCodeAt'](0x0)===0xfeff?_0x512ced[_0xd11383(-_0x28a0e3._0x549fe5,-_0x28a0e3._0x231789,-0x98,-0x31)](0x1):_0x512ced;}function clampLine(_0x1a6ffe,_0x1436b5){const _0x589367={_0x245d6f:0x16a,_0x2e7e73:0x131},_0xe2c94b={_0x3a8bf9:0x1a5};function _0x1d71d1(_0x5ddeff,_0x3f47ee,_0x56f456,_0x9f9635){return _0x44530c(_0x9f9635,_0x3f47ee-_0xe2c94b._0x3a8bf9,_0x56f456-0xfd,_0x56f456- -0x29e);}if(!Number[_0x1d71d1(0x147,_0x589367._0x245d6f,0x194,_0x589367._0x2e7e73)](_0x1a6ffe))return 0x1;return Math['max'](0x1,Math['min'](Math['trunc'](_0x1a6ffe),_0x1436b5));}function createFileReadTool(_0x29cf24={}){const _0x3ed89={_0x2a9f2f:0x211,_0x58ff2b:0x1ee,_0x2ba02f:0xe6,_0x3efe91:0x103,_0x24dca6:0x4fe,_0x18a687:0x512,_0x341bf1:0x1b8,_0x5a2699:0x525,_0x251eb2:0x552,_0x3adb60:0x54a,_0x2d66b4:0x4d5,_0x34f888:0x52e,_0x5bca47:0x4e5,_0x4afe26:0x224,_0x59efce:0x16e,_0x2478c5:0x161},_0x2723dc={_0x128b4d:0x308,_0x1a3bc6:0x2b8,_0x14e3ee:0x2c5,_0x5036dc:0x30d,_0x284e9a:0x9b,_0x58c81b:0x53,_0x183c7f:0x43,_0x3adbde:0x26,_0x43e629:0x1a,_0x170a88:0x1d,_0xc0904a:0x27d,_0x347d8f:0x25e,_0x2d9056:0x28e,_0x49dc06:0x3f1,_0x137512:0x359,_0x3887f8:0x3e4,_0x2942bd:0x342,_0x3ff6bc:0x54,_0xba509f:0x2d3,_0x54b2e6:0x2d2,_0x5bb932:0x337,_0x57d9e4:0x256,_0x4133f7:0x2db,_0x3d1c39:0x43c,_0x2c6bc4:0x328,_0x3c94cd:0x3a7,_0x3c5712:0x340,_0x866341:0x2e9,_0x1f1f56:0xd7,_0x622c6b:0x115,_0x54a32a:0xae,_0x1fe997:0xbe,_0xe53d5a:0x57,_0x3f09c8:0xb2,_0x2757ed:0xb,_0x52862e:0x2f0,_0x2221ce:0x174,_0x5f3b20:0xe4,_0x27225c:0x36c,_0x469cdf:0x31c,_0x98c115:0x3a3,_0x27dcc9:0xc3,_0x49d548:0x3f,_0x41f615:0xd3,_0x5d168d:0x2d5,_0x412ed5:0x2b0},_0xe3cfe0={_0x292b86:0x1d3},_0x87b15b={_0x22de32:0x2e,_0x498887:0x34d},_0x5d3f78={_0x5741f4:0x52},_0x376364=_0x3b7c46[_0x9cef31(_0x3ed89._0x2a9f2f,_0x3ed89._0x58ff2b,0x1d1,0x144)](_0x29cf24[_0x9cef31(0x10b,_0x3ed89._0x2ba02f,0x154,0x1af)]??process[_0x9cef31(0x190,0x157,0x108,_0x3ed89._0x3efe91)]()),_0x10bece=_0x29cf24[_0x442e77(0x51c,_0x3ed89._0x24dca6,0x49c,0x4c3)]??_0x442e77(0x44b,0x49c,0x4c7,_0x3ed89._0x18a687);function _0x442e77(_0x3a1c2e,_0x27cc05,_0x39e67c,_0x91f917){return _0x44530c(_0x3a1c2e,_0x27cc05-0x145,_0x39e67c-0x197,_0x39e67c-_0x5d3f78._0x5741f4);}function _0x9cef31(_0xf16c02,_0xafb4bf,_0x2acffa,_0x55ad70){return _0x44530c(_0xf16c02,_0xafb4bf-0x52,_0x2acffa-_0x87b15b._0x22de32,_0x2acffa- -_0x87b15b._0x498887);}return defineTool({'name':_0x10bece,'description':'Read\x20a\x20UTF-8\x20text\x20file\x20from\x20the\x20workspace.\x20Optionally\x20specify\x20line\x20ranges.','inputSchema':{'type':_0x9cef31(0x1c2,0x1d8,_0x3ed89._0x341bf1,0x225),'properties':{'path':{'type':_0x442e77(0x4d9,_0x3ed89._0x5a2699,_0x3ed89._0x251eb2,0x53f)},'lineStart':{'type':_0x442e77(_0x3ed89._0x3adb60,_0x3ed89._0x2d66b4,_0x3ed89._0x34f888,_0x3ed89._0x5bca47)},'lineEnd':{'type':_0x9cef31(0x1d1,_0x3ed89._0x4afe26,0x18f,0x191)}},'required':[_0x9cef31(0x12b,_0x3ed89._0x59efce,0xf6,_0x3ed89._0x2478c5)]},async *'execute'(_0x27729d){const _0x2712f2=resolveWorkspacePath(_0x376364,_0x27729d[_0x593798(_0x2723dc._0x128b4d,0x2c0,0x30b,_0x2723dc._0x1a3bc6)]);await assertWorkspaceFile(_0x2712f2);const _0x456df2=await _0x592384(_0x2712f2);function _0x593798(_0x28886b,_0x5a10ec,_0x355d33,_0x1fa9fc){return _0x9cef31(_0x355d33,_0x5a10ec-0x194,_0x1fa9fc-0x1c2,_0x1fa9fc-0x14d);}const _0x14c78c=await _0x79fc89(_0x2712f2);if(isProbablyBinary(_0x14c78c))throw new ToolExecutionError(_0x593798(_0x2723dc._0x14e3ee,_0x2723dc._0x5036dc,0x336,0x2cd)+_0x27729d[_0x4746d4(_0x2723dc._0x284e9a,0x26,-_0x2723dc._0x58c81b,-0x2e)],{'path':_0x27729d[_0x4746d4(-_0x2723dc._0x183c7f,_0x2723dc._0x3adbde,-0x5,-0x53)]});let _0x18a4b9=_0x14c78c[_0x4746d4(-_0x2723dc._0x43e629,0x59,0x5d,-_0x2723dc._0x170a88)]('utf8');const _0x3060f5=_0x18a4b9[_0x593798(_0x2723dc._0xc0904a,0x244,_0x2723dc._0x347d8f,_0x2723dc._0x2d9056)](0x0)===0xfeff;function _0x4746d4(_0x418caf,_0x4cfc80,_0x2689e8,_0x25c885){return _0x442e77(_0x25c885,_0x4cfc80-_0xe3cfe0._0x292b86,_0x4cfc80- -0x46f,_0x25c885-0x4);}_0x18a4b9=stripUtfBom(_0x18a4b9);const _0x128cdc=_0x18a4b9[_0x593798(_0x2723dc._0x49dc06,0x3c5,0x321,_0x2723dc._0x137512)](/\r?\n/),_0x33a29c={'path':_0x27729d['path'],'resolvedPath':_0x2712f2,'created':_0x456df2[_0x593798(_0x2723dc._0x3887f8,_0x2723dc._0x2942bd,0x309,0x387)][_0x4746d4(-_0x2723dc._0x3ff6bc,0x40,0x4f,-0x15)](),'modified':_0x456df2['mtime'][_0x593798(_0x2723dc._0xba509f,0x34f,0x26d,_0x2723dc._0x54b2e6)](),'size':_0x456df2[_0x593798(0x367,_0x2723dc._0x5bb932,0x29a,0x30a)],'encoding':'utf8','bomStripped':_0x3060f5,'truncated':![],'totalLines':_0x128cdc[_0x593798(_0x2723dc._0x57d9e4,0x2db,_0x2723dc._0x4133f7,0x2cf)]};if(_0x27729d[_0x593798(_0x2723dc._0x3d1c39,0x37f,_0x2723dc._0x2c6bc4,_0x2723dc._0x3c94cd)]!==void 0x0||_0x27729d[_0x593798(0x276,0x24d,_0x2723dc._0x3c5712,_0x2723dc._0x866341)]!==void 0x0){const _0x2a2ee8=clampLine(_0x27729d[_0x4746d4(_0x2723dc._0x1f1f56,_0x2723dc._0x622c6b,0x140,_0x2723dc._0x54a32a)]??0x1,_0x128cdc['length']),_0x29edb7=clampLine(_0x27729d[_0x4746d4(_0x2723dc._0x1fe997,_0x2723dc._0xe53d5a,_0x2723dc._0x3f09c8,_0x2723dc._0x2757ed)]??_0x128cdc[_0x593798(0x356,0x2d2,_0x2723dc._0x52862e,0x2cf)],_0x128cdc['length']),_0x2b6212=Math[_0x4746d4(_0x2723dc._0x2221ce,_0x2723dc._0x5f3b20,0x95,0x78)](_0x2a2ee8,_0x29edb7),_0x4822e8=Math[_0x593798(_0x2723dc._0x27225c,0x3a1,_0x2723dc._0x469cdf,_0x2723dc._0x98c115)](_0x2a2ee8,_0x29edb7),_0x16796a=_0x128cdc[_0x4746d4(_0x2723dc._0x27dcc9,_0x2723dc._0x49d548,_0x2723dc._0x41f615,0x83)](_0x2b6212-0x1,_0x4822e8)['map']((_0x52f557,_0x31c7ed)=>_0x2b6212+_0x31c7ed+'|'+_0x52f557)[_0x593798(0x2c2,_0x2723dc._0x5d168d,_0x2723dc._0x412ed5,0x294)]('\x0a');return yield createToolOutput(_0x16796a,{..._0x33a29c,'lineRange':{'lineStart':_0x2b6212,'lineEnd':_0x4822e8,'linesTotal':_0x128cdc['length']}}),void 0x0;}return yield createToolOutput(_0x18a4b9,_0x33a29c),void 0x0;}});}import{stat as _0x5c1969}from'fs/promises';import*as _0x27ea33 from'path';import{execSync,spawn as _0x44b542}from'child_process';import{existsSync}from'fs';import{stat as _0x470eda}from'fs/promises';import*as _0x4de71a from'os';import*as _0x48f11e from'path';var cachedRgPath=null;function findSystemRipgrep(){const _0x3d58df={_0xdc11f7:0x40,_0x59822f:0x48,_0x3c4778:0x71,_0xef1201:0x23a,_0x1329d6:0x257,_0x184899:0x16,_0x340e9b:0x65,_0x11b934:0x64,_0x165d66:0x9,_0x5164c2:0x4c,_0x5b1fef:0x53,_0x34e523:0x22b,_0x4904c4:0x1b6,_0x1cba2f:0x1d9,_0x531701:0xdc,_0x1adad5:0x329,_0x172ea9:0x37f,_0x2499f7:0x24f,_0x5ab66a:0x234,_0x16cfd1:0x219,_0x189cbd:0x25,_0x4fa6d1:0x6,_0xa1697c:0x281,_0x48af76:0x21c,_0x39262b:0x104,_0x134011:0x6f,_0x453a13:0x29c,_0x49e8c3:0x1e2,_0x1061b7:0x44,_0x25296f:0x288,_0x283087:0x305,_0x5c5958:0x2a3,_0x574c11:0x2b9,_0x299ce1:0x2da,_0x34b0ca:0x281,_0x180776:0x2cd,_0x50397c:0x1fa,_0x1bd94c:0x29e,_0xab63f9:0x198,_0x490881:0x1d1,_0x3f9616:0x27e,_0x1c0b84:0x22d,_0x17af4b:0x2a0,_0x45213c:0x212,_0xd21a0e:0x2df,_0x426cc9:0x109,_0x27fbd9:0x3a,_0x91f709:0x62,_0x570611:0xc,_0xf88e34:0x68,_0x1819b3:0x60},_0x22034e={_0x4541f2:0x1e6},_0x5201d1=_0x4de71a[_0x435393(_0x3d58df._0xdc11f7,_0x3d58df._0x59822f,0x86,_0x3d58df._0x3c4778)]()===_0x59834a(_0x3d58df._0xef1201,0x233,_0x3d58df._0x1329d6,0x2c9),_0x1f94d9=_0x5201d1?[_0x48f11e[_0x435393(0x2a,-_0x3d58df._0x184899,-0xcd,-_0x3d58df._0x340e9b)](process[_0x435393(_0x3d58df._0x11b934,0xe4,_0x3d58df._0x165d66,0x6f)]['LOCALAPPDATA']||'',_0x435393(_0x3d58df._0x5164c2,_0x3d58df._0x5b1fef,0x8c,_0x3d58df._0x184899),_0x59834a(_0x3d58df._0x34e523,_0x3d58df._0x4904c4,_0x3d58df._0x1cba2f,0x1d0),'Packages'),_0x48f11e[_0x435393(-_0x3d58df._0x531701,0x2,-0x8c,-_0x3d58df._0x340e9b)](process[_0x59834a(0x30d,_0x3d58df._0x1adad5,0x2d9,_0x3d58df._0x172ea9)]['ProgramFiles']||'',_0x59834a(0x2a8,_0x3d58df._0x2499f7,_0x3d58df._0x5ab66a,_0x3d58df._0x16cfd1),_0x435393(_0x3d58df._0x189cbd,-0x22,-0x24,_0x3d58df._0x4fa6d1)),_0x48f11e[_0x59834a(0x239,_0x3d58df._0xa1697c,0x1df,_0x3d58df._0x48af76)](process[_0x435393(_0x3d58df._0x39262b,0x5d,0x3e,_0x3d58df._0x134011)][_0x59834a(0x245,0x1cd,_0x3d58df._0x453a13,_0x3d58df._0x49e8c3)]||'',_0x435393(_0x3d58df._0x1061b7,0xa6,-0xa,0xa),_0x59834a(0x2a4,0x2b6,_0x3d58df._0x25296f,0x226))]:['/opt/homebrew/bin/rg',_0x59834a(_0x3d58df._0x283087,0x329,0x388,_0x3d58df._0x5c5958),_0x59834a(_0x3d58df._0x574c11,_0x3d58df._0x299ce1,_0x3d58df._0x34b0ca,_0x3d58df._0x180776),_0x59834a(0x225,_0x3d58df._0x50397c,_0x3d58df._0x1bd94c,0x1a7)];for(const _0x4d4ef1 of _0x1f94d9){if(existsSync(_0x4d4ef1))return _0x4d4ef1;}function _0x59834a(_0x57d100,_0x106097,_0x2237d0,_0x6d7cda){return _0x44530c(_0x6d7cda,_0x106097-0xec,_0x2237d0-0x75,_0x57d100- -_0x22034e._0x4541f2);}function _0x435393(_0x13abab,_0x17efa3,_0xedccd5,_0x597201){return _0x452c58(_0x597201- -0x1f8,_0x17efa3,_0xedccd5-0xc0,_0x597201-0x80);}try{const _0x3afc83=_0x5201d1?_0x59834a(0x21e,0x1bc,_0x3d58df._0xab63f9,_0x3d58df._0x490881):_0x59834a(0x2c5,0x272,0x25b,0x2aa),_0x4324e5=execSync(_0x3afc83,{'encoding':_0x59834a(0x2a0,0x268,0x269,0x333),'stdio':[_0x59834a(_0x3d58df._0x3f9616,_0x3d58df._0x1c0b84,_0x3d58df._0x17af4b,0x2dd),_0x59834a(0x27e,0x269,_0x3d58df._0x45213c,_0x3d58df._0xd21a0e),_0x435393(0xcc,0x2b,_0x3d58df._0x426cc9,0x86)]})[_0x435393(0xc0,0xfe,_0x3d58df._0x27fbd9,_0x3d58df._0x91f709)]()[_0x435393(_0x3d58df._0x570611,_0x3d58df._0xf88e34,_0x3d58df._0x531701,_0x3d58df._0x1819b3)](/\r?\n/)[0x0];if(_0x4324e5&&existsSync(_0x4324e5))return _0x4324e5;}catch{return null;}return null;}async function filepath(){const _0x24167b={_0x3cded9:0x218,_0x1d7186:0x257},_0x92b3bc={_0x2576dc:0xcd};if(cachedRgPath)return cachedRgPath;const _0x4cc391=findSystemRipgrep();if(!_0x4cc391)throw new Error(_0x489d74(0x294,0x326,_0x24167b._0x3cded9,_0x24167b._0x1d7186));cachedRgPath=_0x4cc391;function _0x489d74(_0x4dae91,_0x1ea75b,_0x4b0e7f,_0x1d8dcc){return _0x452c58(_0x4dae91-0x68,_0x4b0e7f,_0x4b0e7f-_0x92b3bc._0x2576dc,_0x1d8dcc-0x11);}return _0x4cc391;}async function*files(_0x5354bc){const _0x946f3b={_0x38dbdc:0x14d,_0x5bac14:0x115,_0x2272e8:0x8f,_0x5adfc0:0x41,_0x5f0a69:0x1f3,_0xb27603:0x174,_0x5dd58a:0x11f,_0x41111a:0x61,_0x7c2a67:0x88,_0x191999:0x1c4,_0x43f4f1:0x1dd,_0x2d52b6:0xa9,_0x15597a:0x17,_0x4d7b3a:0x96,_0x356e2f:0x54,_0x5aeb0c:0x63,_0x4a48e1:0x1c6,_0x5cb67e:0x24d,_0x29cecc:0x143,_0x332e1f:0x105,_0x3364f8:0x115,_0x318d88:0x13d,_0x59513b:0x106,_0x2ff8f3:0x8,_0x1ce5e8:0x79,_0x37746f:0x2,_0x7e8fd0:0x3a,_0x37bd63:0x136,_0x212249:0x153,_0x36f192:0x160,_0x3921d0:0x70,_0x41cb96:0x7,_0x17d589:0x4,_0x23fadd:0x6e,_0xaac8d:0x83,_0x2964a0:0xe9,_0x2eba7f:0x11a,_0xa3d3bc:0xc8,_0x1b76de:0x16d,_0x4e4034:0x16b},_0x439699={_0x37ac66:0xb4,_0x2de31:0x23},_0x309f50=await filepath();function _0x4a0b83(_0x3254cc,_0x108255,_0x4c15f5,_0x3ce2e2){return _0x452c58(_0x108255- -0x251,_0x3254cc,_0x4c15f5-0x111,_0x3ce2e2-0xa7);}const _0x3b3802=await _0x470eda(_0x5354bc[_0x61b6bc(0x115,0x17b,_0x946f3b._0x38dbdc,_0x946f3b._0x5bac14)])['catch'](()=>null);function _0x61b6bc(_0x32dce5,_0x12e0d6,_0xa7e6cf,_0x52fd14){return _0x452c58(_0x32dce5- -_0x439699._0x37ac66,_0x12e0d6,_0xa7e6cf-0xd9,_0x52fd14-_0x439699._0x2de31);}if(!_0x3b3802?.[_0x4a0b83(-_0x946f3b._0x2272e8,0x6,0x25,_0x946f3b._0x5adfc0)]())throw Object[_0x61b6bc(_0x946f3b._0x5f0a69,0x1b6,_0x946f3b._0xb27603,0x215)](new Error(_0x61b6bc(0xde,_0x946f3b._0x5dd58a,0xf6,0x165)+_0x5354bc[_0x4a0b83(-_0x946f3b._0x41111a,-_0x946f3b._0x7c2a67,-0x4a,-0x1a)]+'\x27'),{'code':_0x61b6bc(_0x946f3b._0x191999,0x196,0x12c,0x234)});const _0x4653bc=[_0x61b6bc(0x1f0,_0x946f3b._0x43f4f1,0x1fc,0x167),_0x4a0b83(_0x946f3b._0x2d52b6,_0x946f3b._0x15597a,0xa5,_0x946f3b._0x4d7b3a),_0x4a0b83(0x1d,_0x946f3b._0x356e2f,_0x946f3b._0x5aeb0c,0x89),_0x61b6bc(_0x946f3b._0x4a48e1,0x1c4,0x1b8,_0x946f3b._0x5cb67e)];for(const _0x12f133 of _0x5354bc[_0x61b6bc(0x156,0x1b8,_0x946f3b._0x29cecc,_0x946f3b._0x332e1f)]??[]){_0x4653bc[_0x4a0b83(-0x4e,-0x54,-0x5e,0x1f)]('--glob='+_0x12f133);}const _0xf6952b=_0x44b542(_0x309f50,_0x4653bc,{'cwd':_0x5354bc[_0x61b6bc(_0x946f3b._0x3364f8,0xe7,_0x946f3b._0x318d88,_0x946f3b._0x59513b)],'stdio':['ignore',_0x61b6bc(0x124,0x134,0x165,0xa2),_0x4a0b83(_0x946f3b._0x2ff8f3,-_0x946f3b._0x1ce5e8,-_0x946f3b._0x37746f,-_0x946f3b._0x7e8fd0)]});let _0xd02778='';for await(const _0x9988e of _0xf6952b['stdout']??[]){_0xd02778+=_0x9988e[_0x61b6bc(_0x946f3b._0x37bd63,0x1a8,_0x946f3b._0x212249,_0x946f3b._0x36f192)]();const _0x4e28ce=_0xd02778[_0x4a0b83(-_0x946f3b._0x3921d0,_0x946f3b._0x41cb96,-_0x946f3b._0x17d589,-_0x946f3b._0x23fadd)](/\r?\n/);_0xd02778=_0x4e28ce['pop']()??'';for(const _0x571fce of _0x4e28ce){if(_0x571fce[_0x4a0b83(-_0x946f3b._0x2ff8f3,-_0x946f3b._0xaac8d,-_0x946f3b._0x2964a0,-0x4a)]>0x0)yield _0x571fce;}}_0xd02778['trim']()[_0x61b6bc(_0x946f3b._0x2eba7f,0x192,0xa3,_0x946f3b._0xa3d3bc)]>0x0&&(yield _0xd02778[_0x61b6bc(0x1a6,_0x946f3b._0x1b76de,0x10c,_0x946f3b._0x4e4034)]());}function parseMatchLine(_0x134b6a,_0x28aae2){const _0x6eb31f={_0x1fcb57:0x4a2,_0x5457d6:0x42,_0x3f1599:0x2b,_0x376782:0x96,_0x1a189e:0x492,_0x2a1736:0x46a,_0x83b50e:0x4b6,_0x2e17f7:0x4f9,_0x59dfa9:0x4e0,_0x481c50:0x459,_0x33133a:0x51e,_0x1996f0:0x4a3,_0x523fc0:0x9b,_0x4ed5e0:0x2,_0x67d435:0xc},_0x27b5bd={_0xadf236:0x18a},_0x2788c9={_0x1dd314:0xb1,_0xebfd5b:0x140};function _0x2dc1ea(_0x4bdf55,_0x484527,_0x2bde78,_0x4c5cbb){return _0x452c58(_0x4c5cbb-0x310,_0x2bde78,_0x2bde78-_0x2788c9._0x1dd314,_0x4c5cbb-_0x2788c9._0xebfd5b);}if(!_0x134b6a||_0x134b6a==='--')return null;function _0x1abe9d(_0x47488d,_0x286761,_0x1c04f5,_0x550f4a){return _0x44530c(_0x47488d,_0x286761-_0x27b5bd._0xadf236,_0x1c04f5-0x170,_0x286761- -0x45a);}const _0x490f18=_0x134b6a['split']('|');if(_0x28aae2&&_0x490f18[_0x2dc1ea(0x571,0x49f,_0x6eb31f._0x1fcb57,0x4de)]>=0x4&&Number['isFinite'](Number[_0x1abe9d(_0x6eb31f._0x5457d6,0x6,_0x6eb31f._0x3f1599,-_0x6eb31f._0x376782)](_0x490f18[0x2]??'',0xa))){const _0x48a58b=Number['parseInt'](_0x490f18[0x1]??'',0xa);if(!Number[_0x2dc1ea(0x48e,_0x6eb31f._0x1a189e,_0x6eb31f._0x2a1736,_0x6eb31f._0x83b50e)](_0x48a58b)||!_0x490f18[0x0])return null;return{'filePath':_0x490f18[0x0],'lineNum':_0x48a58b,'lineText':_0x490f18[_0x2dc1ea(_0x6eb31f._0x2e17f7,0x4b5,0x4e5,_0x6eb31f._0x59dfa9)](0x3)[_0x2dc1ea(_0x6eb31f._0x481c50,0x4f3,_0x6eb31f._0x33133a,_0x6eb31f._0x1996f0)]('|')};}if(_0x490f18['length']>=0x3){const _0x2a9997=Number['parseInt'](_0x490f18[0x1]??'',0xa);if(!Number['isFinite'](_0x2a9997)||!_0x490f18[0x0])return null;return{'filePath':_0x490f18[0x0],'lineNum':_0x2a9997,'lineText':_0x490f18[_0x1abe9d(_0x6eb31f._0x523fc0,_0x6eb31f._0x4ed5e0,-0x48,_0x6eb31f._0x67d435)](0x2)['join']('|'),..._0x28aae2?{'isContext':!![]}:{}};}return null;}async function search(_0x1b203a){const _0x56b595={_0x915b39:0x153,_0x51a919:0x196,_0x218153:0x165,_0x3f6830:0x1da,_0x5164d7:0x287,_0x3ed285:0x239,_0x264ac8:0x19b,_0x4c98d2:0x139,_0x5cd8f4:0x164,_0x247b05:0x103,_0x2a767e:0x5b9,_0x2a3674:0x5a7,_0x43cb0e:0x657,_0xc7f995:0x5c5,_0x113a9d:0x63a,_0x11f592:0x6a0,_0x5bad9f:0x60a,_0x2e948e:0x22a,_0x66fafc:0x1ab,_0x52921c:0x1a4,_0x28cc96:0x671,_0x52fcc8:0x645,_0x58a167:0x504,_0x4e2970:0x4e6,_0x212670:0x5cc,_0x46655b:0x572,_0x3765b2:0x57b,_0x20c404:0x4d9,_0x19d279:0x568,_0x502c6c:0x1b8,_0x4a9ab6:0x258,_0x833895:0x1dd,_0x285411:0x24a,_0x12e555:0x1ee,_0x22e8dd:0x4e1,_0x39a804:0x560,_0xa19cc7:0x225,_0x2b15d9:0x203,_0x277ed7:0x1ee,_0x1e37a3:0x1ce,_0x3ffaf2:0x56d,_0x2d7c63:0x5af,_0x44c2c4:0x556,_0x1c64ae:0x1e3,_0x5eae4a:0x1d7,_0x376621:0x234,_0x5ea5f8:0x1ed,_0x51364f:0x565,_0x40167c:0x52c},_0x339ffd={_0x6e89ec:0xe5,_0x16d0d7:0xde,_0x2fc49d:0xd0,_0x31d49a:0x39a,_0x1acd19:0x3b7,_0x4ef4a4:0x4e,_0x35d337:0x62,_0x17e4f8:0x15f,_0x10af7e:0x176,_0x13f34d:0x57,_0x327126:0xd6},_0x1e3d3c={_0x354333:0x557,_0x586eb5:0x43c,_0x5d6572:0x3f9,_0xca23a7:0x586,_0x2916bb:0x50e,_0x18430c:0x4a0,_0x5aa9b4:0x39e,_0x438ed3:0x420,_0x3f1e33:0x371},_0x4d8d73={_0x2644b3:0x1c2,_0x1e68c6:0x125,_0x3bdb04:0x447},_0xc68329={_0x32a1e9:0x2aa,_0xe8299b:0x276},_0x3896cf={_0xdaf083:0xca,_0x419ce0:0x626,_0x3ed45a:0x19b},_0x2db789={_0x5dddf4:0xde,_0x5ca350:0x1a8},_0x1e6b9e={_0x3e37fe:0xe4,_0x1ad69e:0xd7};function _0x226d2f(_0x2bc045,_0x46fa1c,_0x27250e,_0x699c82){return _0x44530c(_0x46fa1c,_0x46fa1c-0x165,_0x27250e-_0x1e6b9e._0x3e37fe,_0x699c82-_0x1e6b9e._0x1ad69e);}function _0x41171a(_0xd02e1d,_0x26d9f6,_0x5e117b,_0xf88f2b){return _0x44530c(_0xd02e1d,_0x26d9f6-_0x2db789._0x5dddf4,_0x5e117b-_0x2db789._0x5ca350,_0x5e117b- -0x66c);}const _0x5b2d44=await filepath();if(_0x1b203a['file']){const _0x3c01f2=await _0x470eda(_0x1b203a[_0x41171a(-_0x56b595._0x915b39,-_0x56b595._0x51a919,-0x1ed,-_0x56b595._0x218153)])[_0x41171a(-0x19f,-0x193,-0x156,-0x1dd)](()=>null);if(!_0x3c01f2?.[_0x41171a(-_0x56b595._0x3f6830,-_0x56b595._0x5164d7,-_0x56b595._0x3ed285,-0x1f5)]())throw Object[_0x41171a(-0x1a7,-_0x56b595._0x264ac8,-_0x56b595._0x4c98d2,-0x13d)](new Error(_0x41171a(-_0x56b595._0x5cd8f4,-0x15e,-0x176,-_0x56b595._0x247b05)+_0x1b203a['file']+'\x27'),{'code':_0x41171a(-0x197,-0x1ad,-0x168,-0x19a)});}else{const _0x3de46d=await _0x470eda(_0x1b203a[_0x226d2f(_0x56b595._0x2a767e,0x58f,_0x56b595._0x2a3674,0x52c)])[_0x226d2f(_0x56b595._0x43cb0e,_0x56b595._0xc7f995,_0x56b595._0x113a9d,0x5ed)](()=>null);if(!_0x3de46d?.['isDirectory']())throw Object[_0x226d2f(_0x56b595._0x11f592,0x658,0x5e7,_0x56b595._0x5bad9f)](new Error(_0x41171a(-0x241,-_0x56b595._0x2e948e,-0x24e,-0x2c3)+_0x1b203a['cwd']+'\x27'),{'code':_0x41171a(-0x115,-0x17c,-0x168,-0x1f9)});}const _0x31d103=[_0x41171a(-0x179,-_0x56b595._0x66fafc,-_0x56b595._0x52921c,-0x1ca),_0x226d2f(0x57c,_0x56b595._0x28cc96,_0x56b595._0x52fcc8,0x5fa),_0x226d2f(_0x56b595._0x58a167,_0x56b595._0x4e2970,0x49b,0x506),_0x226d2f(0x540,_0x56b595._0x212670,0x57f,_0x56b595._0x46655b),_0x1b203a[_0x226d2f(0x5cf,_0x56b595._0x3765b2,_0x56b595._0x20c404,_0x56b595._0x19d279)]],_0x4e0e5f=typeof _0x1b203a[_0x41171a(-0x22c,-_0x56b595._0x502c6c,-0x1ee,-_0x56b595._0x4a9ab6)]===_0x41171a(-_0x56b595._0x502c6c,-_0x56b595._0x833895,-0x190,-0x136)&&_0x1b203a[_0x41171a(-_0x56b595._0x285411,-0x20b,-_0x56b595._0x12e555,-0x1e9)]>0x0;return _0x4e0e5f&&_0x31d103[_0x226d2f(0x586,0x5dd,_0x56b595._0x22e8dd,_0x56b595._0x39a804)]('-C',String(_0x1b203a[_0x41171a(-_0x56b595._0xa19cc7,-_0x56b595._0x2b15d9,-_0x56b595._0x277ed7,-_0x56b595._0x1e37a3)]),'--column'),_0x1b203a[_0x226d2f(0x570,0x56d,0x5d0,_0x56b595._0x3ffaf2)]&&!_0x1b203a[_0x226d2f(_0x56b595._0x2d7c63,0x58f,0x4e7,_0x56b595._0x44c2c4)]&&_0x31d103[_0x41171a(-0x1ea,-0x154,-_0x56b595._0x1c64ae,-_0x56b595._0x5eae4a)](_0x41171a(-0x21a,-0x2e1,-0x24f,-_0x56b595._0x376621),_0x1b203a['glob']),_0x31d103[_0x41171a(-0x249,-0x1d7,-0x1e3,-0x1dc)](_0x1b203a[_0x41171a(-_0x56b595._0x218153,-0x276,-_0x56b595._0x5ea5f8,-0x282)]??_0x1b203a[_0x226d2f(_0x56b595._0x51364f,0x542,0x496,_0x56b595._0x40167c)]),await new Promise((_0x55bcf0,_0x50a200)=>{const _0x3faf79={_0x469160:0x39a},_0x147aa0={_0x3ac7f8:0x31,_0x353000:0x8d},_0x67a15d=_0x44b542(_0x5b2d44,_0x31d103,{'cwd':_0x1b203a[_0x2e3e0e(0x6e,0x14c,_0x339ffd._0x6e89ec,_0x339ffd._0x16d0d7)],'stdio':['ignore',_0x41196b(0x3e6,0x41e,0x3bd,0x48b),_0x2e3e0e(_0x339ffd._0x2fc49d,0x16e,0xf4,0x12f)]});function _0x41196b(_0x39c902,_0x160c1b,_0x111e0e,_0x1898b6){return _0x41171a(_0x1898b6,_0x160c1b-_0x3896cf._0xdaf083,_0x160c1b-_0x3896cf._0x419ce0,_0x1898b6-_0x3896cf._0x3ed45a);}let _0x168a79='',_0x369ce8='';_0x67a15d['stdout']?.['on'](_0x41196b(_0x339ffd._0x31d49a,_0x339ffd._0x1acd19,0x370,0x33a),_0x2cd44e=>{function _0x34aef0(_0xd2d16e,_0x57f04d,_0x541fd5,_0x53f2bc){return _0x41196b(_0xd2d16e-_0x147aa0._0x3ac7f8,_0x541fd5- -0x202,_0x541fd5-_0x147aa0._0x353000,_0xd2d16e);}_0x168a79+=_0x2cd44e[_0x34aef0(_0xc68329._0x32a1e9,0x249,0x22e,_0xc68329._0xe8299b)]();});function _0x2e3e0e(_0xf55828,_0x12494e,_0x37897b,_0x35db2a){return _0x226d2f(_0xf55828-_0x4d8d73._0x2644b3,_0xf55828,_0x37897b-_0x4d8d73._0x1e68c6,_0x37897b- -_0x4d8d73._0x3bdb04);}_0x67a15d[_0x2e3e0e(0xd1,_0x339ffd._0x4ef4a4,0x9d,_0x339ffd._0x35d337)]?.['on']('data',_0x7ca342=>{_0x369ce8+=_0x7ca342['toString']();}),_0x67a15d['on'](_0x2e3e0e(0x1a7,_0x339ffd._0x17e4f8,0x141,_0x339ffd._0x10af7e),_0x2907eb=>{const _0x51956b={_0x311e76:0x76,_0x40a5ba:0x13b};if(_0x2907eb===0x1&&_0x168a79===''){_0x55bcf0([]);return;}if(_0x2907eb!==0x0&&_0x2907eb!==0x1){_0x50a200(new Error(_0x57c013(0x4fd,_0x1e3d3c._0x354333,0x4c6,0x47a)+_0x369ce8));return;}const _0x316ac6=_0x1b203a[_0x57c013(_0x1e3d3c._0x586eb5,_0x1e3d3c._0x5d6572,0x47b,0x426)]??0x64,_0x381884=[];function _0x25ded1(_0x1cc496,_0x46ca1d,_0x425f58,_0x46f3f0){return _0x41196b(_0x1cc496-0x1ed,_0x425f58- -_0x51956b._0x311e76,_0x425f58-_0x51956b._0x40a5ba,_0x46ca1d);}function _0x57c013(_0x1fb79b,_0x3ceca4,_0x59c0f6,_0x38fecd){return _0x2e3e0e(_0x1fb79b,_0x3ceca4-0xd9,_0x59c0f6-_0x3faf79._0x469160,_0x38fecd-0x12);}for(const _0x29f339 of _0x168a79[_0x57c013(_0x1e3d3c._0xca23a7,0x4f6,_0x1e3d3c._0x2916bb,_0x1e3d3c._0x18430c)](/\r?\n/)){if(_0x381884[_0x25ded1(0x303,0x3b5,_0x1e3d3c._0x5aa9b4,0x307)]>=_0x316ac6)break;const _0x4b9edc=parseMatchLine(_0x29f339,_0x4e0e5f);if(_0x4b9edc)_0x381884[_0x25ded1(_0x1e3d3c._0x438ed3,0x465,0x3cd,_0x1e3d3c._0x3f1e33)](_0x4b9edc);}_0x55bcf0(_0x381884);}),_0x67a15d['on'](_0x2e3e0e(_0x339ffd._0x13f34d,0x114,_0x339ffd._0x327126,0x66),_0x50a200);});}function createGlobTool(_0x1b37c8={}){const _0x3f52fd={_0x2d4fb7:0x5a3,_0x364b76:0x56b,_0x195b57:0x5c8,_0x386394:0x5c3,_0x5510a1:0x56a,_0x4a7a37:0x523,_0xd74dfc:0x534,_0x304311:0x571,_0x1466e1:0x33d,_0x2a004d:0x5aa,_0x2327cb:0x53b,_0x34c3bf:0x68d,_0xb169c8:0x609,_0x1f60ee:0x650,_0x3b0753:0x5f1,_0x74353d:0x5d6,_0x1d90e1:0x627,_0x1c8a98:0x5d9,_0x36eb15:0x5b8},_0x27429a={_0x175755:0xff,_0x3eadcd:0x113,_0x3d0d2a:0xef,_0x5cac28:0x149,_0x5ae63c:0xac,_0x3c6842:0x79,_0x47d391:0x40,_0x10184b:0x9d,_0x4ff274:0x69,_0x131df5:0x2a,_0x1e102b:0xbf,_0x5a1ebe:0x96,_0x2e469a:0x37,_0x422f93:0x41,_0x266c56:0x44,_0x1023b5:0x64,_0x495d5d:0x17,_0x2f3b30:0x26,_0x15993f:0x29,_0x16d6a5:0x57,_0x5735c6:0xb4,_0x391bd0:0x8d,_0x5775ce:0xb5,_0x1a568c:0x59,_0x297751:0x1af,_0x11eb8e:0x16e,_0x3485e3:0x191,_0x5eea32:0x6b,_0x2d9023:0xd,_0x173194:0x101,_0x400e6c:0x155,_0x1d9234:0x180,_0xd3b7a5:0x1e1,_0x244935:0x32,_0x59073d:0x5b,_0x23f72d:0xcb,_0x35621b:0x17,_0x467848:0x6c},_0x1711c2={_0x587607:0x1cf},_0x193ab3={_0x2a3e2f:0x17a},_0x338f36={_0x50f0a4:0x1c8,_0x2ad58b:0x127};function _0x3afdba(_0x27d6c9,_0x162bb3,_0x54442c,_0x290d93){return _0x44530c(_0x54442c,_0x162bb3-_0x338f36._0x50f0a4,_0x54442c-0x164,_0x290d93-_0x338f36._0x2ad58b);}const _0x5db37e=_0x27ea33['resolve'](_0x1b37c8[_0x3afdba(0x57d,_0x3f52fd._0x2d4fb7,_0x3f52fd._0x364b76,_0x3f52fd._0x195b57)]??process['cwd']()),_0x58a87e=_0x1b37c8[_0x3afdba(_0x3f52fd._0x386394,_0x3f52fd._0x5510a1,_0x3f52fd._0x4a7a37,0x578)]??0x64;function _0x47f8f4(_0x1024ef,_0x57b1a4,_0x16aa85,_0x3bb677){return _0x44530c(_0x1024ef,_0x57b1a4-_0x193ab3._0x2a3e2f,_0x16aa85-0xc,_0x16aa85- -0x146);}const _0x3e6a29=_0x1b37c8[_0x3afdba(_0x3f52fd._0xd74dfc,0x53a,0x562,_0x3f52fd._0x304311)]??_0x47f8f4(0x2b2,0x319,0x2ff,_0x3f52fd._0x1466e1);return defineTool({'name':_0x3e6a29,'description':_0x3afdba(0x530,0x5c8,_0x3f52fd._0x2a004d,_0x3f52fd._0x2327cb),'inputSchema':{'type':_0x3afdba(0x688,0x661,_0x3f52fd._0x34c3bf,0x62c),'properties':{'pattern':{'type':_0x3afdba(0x620,_0x3f52fd._0xb169c8,_0x3f52fd._0x1f60ee,0x627)},'path':{'type':_0x3afdba(_0x3f52fd._0x3b0753,_0x3f52fd._0x74353d,0x5f6,_0x3f52fd._0x1d90e1)},'limit':{'type':'number'}},'required':[_0x3afdba(_0x3f52fd._0x1c8a98,0x547,0x5bd,_0x3f52fd._0x36eb15)]},async *'execute'(_0xa649cc){const _0x9275e3={_0x32059b:0x10f,_0x424159:0x22,_0x1cee98:0x5a1};if(_0xa649cc['pattern']['trim']()[_0x1f8d98(-_0x27429a._0x175755,-_0x27429a._0x3eadcd,-_0x27429a._0x3d0d2a,-_0x27429a._0x5cac28)]===0x0)throw new ToolExecutionError(_0x34a5df(-_0x27429a._0x5ae63c,0x7,-_0x27429a._0x3c6842,-0xba),{});const _0x26328c=resolveWorkspacePath(_0x5db37e,_0xa649cc[_0x34a5df(_0x27429a._0x47d391,-0x6e,-0x37,-_0x27429a._0x10184b)]??'.'),_0x122d41=await _0x5c1969(_0x26328c)['catch'](()=>null);if(!_0x122d41?.[_0x34a5df(0x30,-0x22,_0x27429a._0x4ff274,_0x27429a._0x131df5)]())throw new ToolExecutionError(_0x1f8d98(-0x8,-_0x27429a._0x1e102b,-_0x27429a._0x5a1ebe,-0xa1)+(_0xa649cc[_0x34a5df(-0x41,-0x64,-_0x27429a._0x2e469a,-_0x27429a._0x422f93)]??'.'),{'path':_0xa649cc[_0x34a5df(-_0x27429a._0x266c56,_0x27429a._0x1023b5,-0x37,-_0x27429a._0x495d5d)]??'.'});const _0x2166a5=_0xa649cc[_0x34a5df(-_0x27429a._0x3c6842,_0x27429a._0x2f3b30,-_0x27429a._0x15993f,_0x27429a._0x16d6a5)]??_0x58a87e,_0x220ca1=Math[_0x34a5df(0x2f,0x49,_0x27429a._0x5735c6,0xad)](0x1,Math[_0x34a5df(_0x27429a._0x391bd0,_0x27429a._0x5775ce,_0x27429a._0x1a568c,0x48)](_0x2166a5)),_0x2bedfd=[];let _0x560ad3=![];for await(const _0x282b68 of files({'cwd':_0x26328c,'glob':[_0xa649cc[_0x1f8d98(-0x158,-0x91,-0x19b,-0x112)]]})){if(_0x2bedfd['length']>=_0x220ca1){_0x560ad3=!![];break;}const _0x309b18=await _0x5c1969(_0x27ea33[_0x1f8d98(-_0x27429a._0x297751,-_0x27429a._0x11eb8e,-_0x27429a._0x3485e3,-0x184)](_0x26328c,_0x282b68))['catch'](()=>null);_0x2bedfd[_0x34a5df(_0x27429a._0x5eea32,0xc,0xf,0xa9)]({'path':_0x282b68,'mtime':_0x309b18?.[_0x34a5df(_0x27429a._0x2d9023,_0x27429a._0x173194,_0x27429a._0x10184b,0x1c)]??0x0});}_0x2bedfd['sort']((_0x573256,_0x40ef85)=>_0x40ef85[_0x34a5df(-0x9f,0x35,-0x38,0x5b)]-_0x573256[_0x34a5df(-0x1f,-0x19,-0x38,-0x8c)]);const _0xbc739f=_0x2bedfd[_0x1f8d98(-0x14e,-_0x27429a._0x400e6c,-0x60,-0xf6)](_0x4de1c1=>_0x4de1c1['path']),_0x55e528=_0xbc739f[_0x1f8d98(-_0x27429a._0x1d9234,-0xf4,-_0x27429a._0xd3b7a5,-0x149)]===0x0?'No\x20files\x20found\x20matching\x20pattern:\x20'+_0xa649cc[_0x34a5df(_0x27429a._0x244935,-_0x27429a._0x47d391,0x17,-0x74)]:''+_0xbc739f[_0x34a5df(0x25,-0xa5,-_0x27429a._0x59073d,-_0x27429a._0x23f72d)]('\x0a')+(_0x560ad3?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');function _0x34a5df(_0x4f328c,_0x216110,_0x99093d,_0x16810e){return _0x3afdba(_0x4f328c-_0x9275e3._0x32059b,_0x216110-_0x9275e3._0x424159,_0x216110,_0x99093d- -_0x9275e3._0x1cee98);}function _0x1f8d98(_0x1ecfa4,_0xfb50fa,_0x1cfa64,_0x57fff8){return _0x47f8f4(_0x1ecfa4,_0xfb50fa-_0x1711c2._0x587607,_0x57fff8- -0x45d,_0x57fff8-0x72);}return yield createToolOutput(_0x55e528,{'pattern':_0xa649cc[_0x34a5df(-0x5d,0x56,_0x27429a._0x35621b,_0x27429a._0x467848)],'searchPath':_0x27ea33['relative'](_0x5db37e,_0x26328c)||'.','matches':_0xbc739f,'count':_0xbc739f['length'],'truncated':_0x560ad3}),void 0x0;}});}import{stat as _0xe46774}from'fs/promises';import*as _0x15a878 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x1788a9={}){const _0x228660={_0x50363f:0x5e3,_0x467928:0x511,_0x2c2bdd:0x565,_0x10f6e7:0x1c3,_0x585e45:0x201,_0x3d3cd8:0x23b,_0x4d6888:0x240,_0xae2803:0x1b2,_0x10d5a0:0x243,_0xeb0047:0x549,_0x2ad266:0x5ad,_0x24daae:0x5b3,_0x12832e:0x5a0,_0x3d193c:0x557,_0x40f8c5:0x595,_0x1c5162:0x5c4,_0x1ad93f:0x119,_0x4d60ae:0x156,_0x12834d:0x5b1,_0x143d39:0x5a5,_0x2b7ba0:0x202,_0x3c1baf:0x12c,_0x56f039:0x12e},_0x4bab7f={_0x29b76d:0x4d0,_0x257b0f:0x439,_0x409857:0x4da,_0x524cb8:0x1d6,_0x3f50f5:0xed,_0x7ba9ef:0x10f,_0xfb4604:0xd1,_0x59ef0d:0x53c,_0x3f47bd:0xf5,_0x187719:0x1ce,_0x3fef69:0x4d0,_0x1ca8a9:0x55e,_0x4501d6:0x48e,_0x50ae01:0x503,_0x17a01f:0x4aa,_0x2f8d9b:0x454,_0x2d3c59:0x4e0,_0x5d9fea:0x527,_0x9014f8:0x587,_0x263833:0x566,_0x171c14:0x57e,_0x43e282:0x496,_0x513747:0x42d,_0x531842:0x175,_0x20d6e0:0x152,_0x1c24fb:0x548,_0x2f8cf2:0x5db,_0x288099:0x54e,_0x52048c:0x4c2,_0x2409e1:0x588,_0x59a539:0x51c,_0x3ef6ec:0x148,_0x3f334b:0x11d,_0x491a70:0x10c,_0x38ca2b:0x124,_0x45e773:0x121,_0x4d7a4a:0x1ba,_0xd45173:0x127,_0x3b224d:0x60,_0x9b0fb6:0x239,_0x5616a8:0x15d,_0x2a1d0f:0x53e,_0x1e12be:0x4b9,_0x11840b:0x575,_0x492852:0x143,_0x478c75:0x18c,_0x59c0ae:0x131,_0x3fd6df:0x461,_0xee1a59:0x475,_0x21d193:0x48a,_0x186a9c:0x166,_0x471de2:0x1b0,_0x541584:0x1a1,_0x320015:0x147,_0x16b4fa:0x117,_0x595def:0xa9,_0x23ddd0:0x170,_0xd4b161:0x1eb,_0x3c0f1d:0x1a3,_0xff51f:0x549,_0x6f1f76:0x57c,_0x5228a8:0x4f2,_0x26dd5f:0x1d2,_0x116948:0x1a5,_0xdfef:0x19a},_0x467d1a={_0x1e9ba0:0x46},_0x25f936={_0x32702b:0x14a,_0x3442d1:0x85},_0x4700ac={_0x23fbf7:0xf1,_0x2698bb:0x656},_0x25ff23={_0x5a055a:0x84};function _0xfa9b5e(_0xe235a2,_0x54f8ae,_0x2549a5,_0x36c148){return _0x452c58(_0x36c148-0x350,_0x54f8ae,_0x2549a5-_0x25ff23._0x5a055a,_0x36c148-0x144);}const _0x203c36=_0x15a878['resolve'](_0x1788a9[_0xfa9b5e(_0x228660._0x50363f,_0x228660._0x467928,0x5aa,_0x228660._0x2c2bdd)]??process[_0x5dc7dc(-_0x228660._0x10f6e7,-_0x228660._0x585e45,-_0x228660._0x3d3cd8,-0x1be)]()),_0x4af676=_0x1788a9['limit']??0x64;function _0x5dc7dc(_0x568e3a,_0x34dcfd,_0x371d15,_0x59097d){return _0x44530c(_0x59097d,_0x34dcfd-_0x4700ac._0x23fbf7,_0x371d15-0x14c,_0x34dcfd- -_0x4700ac._0x2698bb);}const _0x223ef2=_0x1788a9['name']??_0x5dc7dc(-_0x228660._0x4d6888,-_0x228660._0xae2803,-_0x228660._0x10d5a0,-0x23c);return defineTool({'name':_0x223ef2,'description':_0xfa9b5e(_0x228660._0xeb0047,_0x228660._0x2ad266,0x5d0,_0x228660._0x24daae),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0xfa9b5e(0x5a7,_0x228660._0x12832e,_0x228660._0x3d193c,0x5c4)},'path':{'type':_0xfa9b5e(0x58d,0x549,_0x228660._0x40f8c5,_0x228660._0x1c5162)},'include':{'type':_0x5dc7dc(-_0x228660._0x1ad93f,-_0x228660._0x4d60ae,-0x1e3,-0x185)},'limit':{'type':_0xfa9b5e(_0x228660._0x12834d,_0x228660._0x143d39,0x605,_0x228660._0x12832e)},'context':{'type':'number'}},'required':[_0x5dc7dc(-_0x228660._0x2b7ba0,-0x1c5,-_0x228660._0x3c1baf,-_0x228660._0x56f039)]},async *'execute'(_0x12dcaf){if(_0x12dcaf[_0x459a19(_0x4bab7f._0x29b76d,_0x4bab7f._0x257b0f,0x4cf,_0x4bab7f._0x409857)]['trim']()[_0x11537f(0x146,0x1a9,0xc0,_0x4bab7f._0x524cb8)]===0x0)throw new ToolExecutionError(_0x11537f(_0x4bab7f._0x3f50f5,_0x4bab7f._0x7ba9ef,0xff,_0x4bab7f._0xfb4604),{});const _0x5109fb=resolveWorkspacePath(_0x203c36,_0x12dcaf['path']??'.'),_0x1937f2=await _0xe46774(_0x5109fb)['catch'](()=>null),_0x8367b9=_0x1937f2?.['isFile']()??![],_0x5e45b0=_0x1937f2?.[_0x459a19(0x522,_0x4bab7f._0x59ef0d,0x554,0x4c9)]()??![];if(!_0x8367b9&&!_0x5e45b0)throw new ToolExecutionError(_0x459a19(0x498,0x45f,0x445,0x4e9)+(_0x12dcaf['path']??'.'),{'path':_0x12dcaf['path']??'.'});function _0x459a19(_0x8d475b,_0x38399f,_0x49768a,_0x3e297c){return _0xfa9b5e(_0x8d475b-0x13c,_0x38399f,_0x49768a-_0x25f936._0x32702b,_0x8d475b- -_0x25f936._0x3442d1);}const _0x5ca0f9=_0x12dcaf[_0x11537f(0x13d,0x15f,_0x4bab7f._0x3f47bd,_0x4bab7f._0x187719)]??_0x4af676,_0x3b33c6=Math[_0x459a19(0x56d,0x5af,0x598,0x56a)](0x1,Math[_0x459a19(0x512,0x53d,0x54e,0x584)](_0x5ca0f9)),_0xee30ba=await search({'cwd':_0x5e45b0?_0x5109fb:_0x15a878['dirname'](_0x5109fb),'pattern':_0x12dcaf[_0x459a19(_0x4bab7f._0x3fef69,0x4dc,_0x4bab7f._0x1ca8a9,_0x4bab7f._0x4501d6)],'glob':_0x5e45b0?_0x12dcaf['include']:void 0x0,'limit':_0x3b33c6,'file':_0x8367b9?_0x5109fb:void 0x0,'context':_0x12dcaf['context']}),_0x5dd5ad=new Map();for(const _0x3aeccb of _0xee30ba){if(!_0x5dd5ad['has'](_0x3aeccb['filePath'])){const _0x5a2b4c=await _0xe46774(_0x3aeccb[_0x459a19(0x527,0x4be,0x578,_0x4bab7f._0x50ae01)])['catch'](()=>null);_0x5dd5ad[_0x459a19(_0x4bab7f._0x17a01f,0x53a,_0x4bab7f._0x2f8d9b,_0x4bab7f._0x2d3c59)](_0x3aeccb[_0x459a19(_0x4bab7f._0x5d9fea,_0x4bab7f._0x9014f8,0x4e9,0x501)],{'matches':[],'mtime':_0x5a2b4c?.['mtimeMs']??0x0});}_0x5dd5ad['get'](_0x3aeccb[_0x459a19(_0x4bab7f._0x5d9fea,_0x4bab7f._0x263833,0x5c1,_0x4bab7f._0x171c14)])?.[_0x459a19(_0x4bab7f._0x43e282,_0x4bab7f._0x513747,0x404,0x473)][_0x11537f(_0x4bab7f._0x531842,_0x4bab7f._0x20d6e0,0xe8,0x126)](_0x3aeccb);}const _0x4c6bb7=[..._0x5dd5ad[_0x459a19(_0x4bab7f._0x1c24fb,0x54e,0x5a7,_0x4bab7f._0x2f8cf2)]()][_0x459a19(_0x4bab7f._0x288099,_0x4bab7f._0x52048c,_0x4bab7f._0x2409e1,_0x4bab7f._0x59a539)]((_0x2d2002,_0x306132)=>_0x306132[0x1]['mtime']-_0x2d2002[0x1][_0x459a19(0x481,0x4b5,0x46a,0x4c3)]),_0x75dffe=_0xee30ba['filter'](_0x366a1f=>!_0x366a1f['isContext'])['length'];function _0x11537f(_0xb35c77,_0x27f61c,_0x13fe1f,_0x15b8bb){return _0xfa9b5e(_0xb35c77-0x11e,_0x27f61c,_0x13fe1f-_0x467d1a._0x1e9ba0,_0xb35c77- -0x3d8);}const _0xdd4246=_0xee30ba['length']>=_0x3b33c6,_0xbf7630=_0x8367b9?_0x15a878['dirname'](_0x5109fb):_0x5109fb;let _0x50a197='';if(_0xee30ba[_0x11537f(0x146,_0x4bab7f._0x3ef6ec,_0x4bab7f._0x3f334b,_0x4bab7f._0x491a70)]===0x0)_0x50a197=_0x11537f(_0x4bab7f._0x38ca2b,_0x4bab7f._0x45e773,_0x4bab7f._0x4d7a4a,0x8e)+_0x12dcaf[_0x11537f(0x17d,0x1f6,0x15c,_0x4bab7f._0xd45173)];else{_0x50a197='Found\x20'+_0x75dffe+_0x11537f(0xf1,0xb1,_0x4bab7f._0x3b224d,0xb3)+(_0x75dffe===0x1?'':'es')+'\x0a';for(const [_0x50408c,_0x2cde14]of _0x4c6bb7){const _0x18ded4=_0x8367b9?_0x15a878[_0x11537f(0x1cb,0x211,_0x4bab7f._0x9b0fb6,_0x4bab7f._0x5616a8)](_0x50408c):_0x15a878[_0x459a19(_0x4bab7f._0x2a1d0f,_0x4bab7f._0x1e12be,0x585,_0x4bab7f._0x11840b)](_0xbf7630,_0x50408c);_0x50a197+='\x0a'+_0x18ded4+':\x0a';for(const _0x5637c8 of _0x2cde14[_0x11537f(_0x4bab7f._0x492852,_0x4bab7f._0x478c75,0x14a,_0x4bab7f._0x59c0ae)]){const _0x285f40=_0x5637c8[_0x459a19(0x475,0x405,0x4fe,_0x4bab7f._0x3fd6df)]['length']>MAX_LINE_LENGTH?_0x5637c8[_0x459a19(_0x4bab7f._0xee1a59,_0x4bab7f._0x21d193,0x4b8,0x465)][_0x11537f(_0x4bab7f._0x3ef6ec,_0x4bab7f._0x186a9c,0xfc,_0x4bab7f._0x471de2)](0x0,MAX_LINE_LENGTH)+'...':_0x5637c8['lineText'],_0x51d503=_0x5637c8[_0x11537f(_0x4bab7f._0x541584,_0x4bab7f._0x320015,_0x4bab7f._0x16b4fa,0x164)]?'\x20\x20':'>\x20';_0x50a197+=_0x51d503+_0x11537f(0x10f,0x8d,_0x4bab7f._0x595def,0x19c)+_0x5637c8['lineNum']+':\x20'+_0x285f40+'\x0a';}}_0xdd4246&&(_0x50a197+=_0x11537f(0x180,0x185,_0x4bab7f._0x23ddd0,0x1e7));}const _0x51c536={'searchPath':_0x15a878[_0x11537f(_0x4bab7f._0xd4b161,0x1bf,_0x4bab7f._0x3c0f1d,0x1bb)](_0x203c36,_0x5109fb)||'.','pattern':_0x12dcaf['pattern'],'matchCount':_0x75dffe,'fileCount':_0x5dd5ad['size'],'truncated':_0xdd4246};return _0x5e45b0&&_0x12dcaf['include']!==void 0x0&&(_0x51c536[_0x459a19(0x53a,_0x4bab7f._0xff51f,_0x4bab7f._0x6f1f76,_0x4bab7f._0x5228a8)]=_0x12dcaf['include']),yield createToolOutput(_0x50a197[_0x11537f(_0x4bab7f._0x26dd5f,_0x4bab7f._0x116948,_0x4bab7f._0xdfef,0x1bd)](),_0x51c536),void 0x0;}});}import{readdir,readFile as _0x2aaf1e,stat as _0x35254f}from'fs/promises';import*as _0x4e95f2 from'path';import*as _0x4cda1b from'yaml';async function countTextLines(_0x32dac5){const _0x13d903={_0x5d76cd:0x56d,_0x44a5b5:0x62b,_0x4b8aa6:0x598,_0x1079fb:0x473,_0x1b7bb7:0x4b1,_0x3b1e1e:0x4ae,_0x4ede02:0x4ab,_0x20c550:0x4ce,_0x231469:0x4fc,_0x15fe76:0x448,_0x1bfd90:0x4dc},_0x5535ae={_0x51ba82:0x101},_0x1e48e7=await _0x2aaf1e(_0x32dac5)[_0x19b242(_0x13d903._0x5d76cd,_0x13d903._0x44a5b5,0x5a4,_0x13d903._0x4b8aa6)](()=>null);function _0x48f51b(_0xf33da,_0x4dc5b0,_0x21741e,_0x1262b5){return _0x452c58(_0xf33da-_0x5535ae._0x51ba82,_0x1262b5,_0x21741e-0xf9,_0x1262b5-0x77);}function _0x19b242(_0x4301fc,_0x9e5664,_0x5a531e,_0xda2f5b){return _0x452c58(_0xda2f5b-0x30e,_0x5a531e,_0x5a531e-0x17a,_0xda2f5b-0x2c);}if(!_0x1e48e7||isProbablyBinary(_0x1e48e7))return void 0x0;return _0x1e48e7[_0x19b242(_0x13d903._0x1079fb,_0x13d903._0x1b7bb7,0x4ae,0x4f8)](_0x19b242(_0x13d903._0x3b1e1e,_0x13d903._0x4ede02,_0x13d903._0x20c550,0x508))['split'](/\r?\n/)[_0x19b242(_0x13d903._0x231469,0x4c2,_0x13d903._0x15fe76,_0x13d903._0x1bfd90)];}function createLsTool(_0x5dcd79={}){const _0x57e791={_0x2e7737:0x73,_0x5a4b61:0xf1,_0x68b2b6:0x194,_0x312f1d:0x151,_0x5c5a5a:0x145,_0x58a806:0x129,_0x17edfc:0x150,_0x50fa11:0x26,_0x4d9924:0x53,_0x5a49af:0xba,_0x52cf29:0x9a,_0x4c4a0b:0x137,_0x2c7084:0xc5,_0x5ed649:0xbe},_0x291679={_0x4657e8:0x297,_0x1ecf99:0x220,_0x226456:0x2aa,_0x15eea5:0x525,_0x195ffd:0x490,_0x277ec0:0x409,_0x303752:0x2ef,_0x3a84f7:0x34a,_0x5401bb:0x543,_0x1088eb:0x452,_0x31afb1:0x4a8,_0x1e5616:0x460,_0x37d764:0x31a,_0x5a01ad:0x35f,_0x4fe680:0x2c3,_0x2fcfcf:0x388,_0x3a0ff2:0x32a,_0x1394ec:0x2e6,_0x36451d:0x388,_0x4818a2:0x34a,_0x557f57:0x3a7,_0x4002f9:0x3a0,_0x28b503:0x356,_0x3197a0:0x40d,_0x1cbc2e:0x38f,_0x2f1910:0x2f7,_0x3bc878:0x2bd,_0x117f6f:0x3de,_0x188750:0x46b,_0x2f0d54:0x3f9,_0x4169d2:0x46a,_0x29d7af:0x35e,_0x249025:0x306,_0x138c60:0x2f3,_0x4592f9:0x370,_0x3b33a7:0x3d4,_0x5057cf:0x44b,_0x1aaae4:0x3e8,_0x46db32:0x2ed,_0x59e568:0x2c1,_0x9ed977:0x3d8,_0x56c91f:0x38a},_0x51d1f2={_0x28f7ad:0x46},_0x289064={_0xdf222b:0x108},_0x52d53a={_0x3a3150:0xeb};function _0x121791(_0x322ef6,_0x554cf8,_0x4b6e8b,_0x50c2b3){return _0x452c58(_0x50c2b3- -0x30e,_0x554cf8,_0x4b6e8b-0x1dd,_0x50c2b3-0xc4);}const _0x3d3a6e=_0x4e95f2[_0x121791(-_0x57e791._0x2e7737,-0x54,-_0x57e791._0x5a4b61,-0x7c)](_0x5dcd79['defaultCwd']??process[_0x121791(-_0x57e791._0x68b2b6,-0x11a,-_0x57e791._0x312f1d,-_0x57e791._0x5c5a5a)]()),_0x5ad72d=_0x5dcd79[_0x121791(-0x1d9,-_0x57e791._0x58a806,-0x118,-_0x57e791._0x17edfc)]??'Ls';function _0x10111e(_0x4d1d49,_0x11a25f,_0x252332,_0x2865b6){return _0x44530c(_0x2865b6,_0x11a25f-0x13b,_0x252332-_0x52d53a._0x3a3150,_0x4d1d49- -0x348);}return defineTool({'name':_0x5ad72d,'description':'List\x20files\x20and\x20directories\x20in\x20a\x20workspace\x20directory.','inputSchema':{'type':'object','properties':{'path':{'type':_0x121791(-_0x57e791._0x50fa11,-_0x57e791._0x4d9924,-_0x57e791._0x5a49af,-_0x57e791._0x52cf29)},'limit':{'type':_0x121791(-_0x57e791._0x4c4a0b,-_0x57e791._0x2c7084,-0xc5,-_0x57e791._0x5ed649)}}},async *'execute'(_0x547abc){const _0x23ddad=_0x547abc[_0x5099c0(_0x291679._0x4657e8,0x322,_0x291679._0x1ecf99,_0x291679._0x226456)]??'.',_0x1b9aa6=resolveWorkspacePath(_0x3d3a6e,_0x23ddad),_0x2e75eb=await _0x35254f(_0x1b9aa6)[_0x4610e1(0x521,_0x291679._0x15eea5,_0x291679._0x195ffd,_0x291679._0x277ec0)](()=>null);if(!_0x2e75eb?.[_0x5099c0(0x39f,0x3aa,_0x291679._0x303752,_0x291679._0x3a84f7)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x23ddad,{'path':_0x23ddad});const _0x36b27f=_0x547abc['limit']??0x3e8,_0x15fa62=Math['min'](Math[_0x4610e1(_0x291679._0x5401bb,_0x291679._0x1088eb,_0x291679._0x31afb1,_0x291679._0x1e5616)](Math['trunc'](_0x36b27f),0x1),0x2710),_0xb21956=await readdir(_0x1b9aa6),_0xdaa908=[];for(const _0x20f2d1 of _0xb21956[_0x5099c0(0x2ee,_0x291679._0x37d764,_0x291679._0x5a01ad,_0x291679._0x4fe680)](0x0,_0x15fa62)){const _0x3cf2c3=_0x4e95f2[_0x4610e1(_0x291679._0x2fcfcf,_0x291679._0x3a0ff2,0x399,0x35c)](_0x1b9aa6,_0x20f2d1),_0x4cf7a6=await _0x35254f(_0x3cf2c3)['catch'](()=>null);if(!_0x4cf7a6)continue;let _0x520c0c='other';if(_0x4cf7a6['isFile']())_0x520c0c=_0x5099c0(0x288,0x32e,0x328,_0x291679._0x1394ec);else{if(_0x4cf7a6[_0x5099c0(0x3bb,_0x291679._0x36451d,0x37c,_0x291679._0x4818a2)]())_0x520c0c=_0x4610e1(_0x291679._0x557f57,0x39f,_0x291679._0x4002f9,_0x291679._0x28b503);else{if(_0x4cf7a6['isSymbolicLink']())_0x520c0c=_0x4610e1(_0x291679._0x3197a0,_0x291679._0x1cbc2e,0x407,0x3b3);}}const _0x1039a1={'name':_0x20f2d1,'type':_0x520c0c,'size':_0x4cf7a6['size'],'mtime':_0x4cf7a6[_0x4610e1(_0x291679._0x195ffd,0x498,0x491,0x529)],'mode':_0x4cf7a6[_0x5099c0(0x28f,_0x291679._0x2f1910,0x2dc,_0x291679._0x3bc878)]},_0x41bd4a=_0x520c0c===_0x4610e1(_0x291679._0x117f6f,_0x291679._0x188750,_0x291679._0x2f0d54,_0x291679._0x4169d2)?await countTextLines(_0x3cf2c3):void 0x0;if(_0x41bd4a!==void 0x0)_0x1039a1['lines']=_0x41bd4a;_0xdaa908[_0x5099c0(_0x291679._0x29d7af,0x365,_0x291679._0x249025,0x2f0)](_0x1039a1);}_0xdaa908[_0x5099c0(0x379,0x36f,_0x291679._0x138c60,0x376)]((_0x45309c,_0x2bee62)=>_0x45309c[_0x5099c0(0x2f0,0x2d6,0x314,0x2b1)][_0x4610e1(0x486,0x41e,0x49c,0x408)](_0x2bee62[_0x5099c0(0x251,0x21a,0x30e,0x2b1)]));function _0x4610e1(_0x323de6,_0x5c8634,_0x157a4a,_0x1b7994){return _0x121791(_0x323de6-_0x289064._0xdf222b,_0x323de6,_0x157a4a-0xd1,_0x157a4a-0x514);}const _0x1311a4={'path':_0x23ddad,'total':_0xdaa908[_0x4610e1(_0x291679._0x4592f9,0x399,_0x291679._0x3b33a7,0x3e7)],'truncated':_0xb21956['length']>_0x15fa62,'entries':_0xdaa908};function _0x5099c0(_0x39008b,_0x3f0ee3,_0xda2d25,_0x4362aa){return _0x121791(_0x39008b-0x1b4,_0x3f0ee3,_0xda2d25-_0x51d1f2._0x28f7ad,_0x4362aa-0x401);}return yield createToolOutput(_0x4cda1b['stringify'](_0x1311a4,{'indent':0x2,'lineWidth':0x0})[_0x4610e1(0x3e1,_0x291679._0x5057cf,_0x291679._0x1aaae4,0x461)](),{'path':_0x23ddad,'total':_0xdaa908[_0x5099c0(_0x291679._0x46db32,0x22c,0x2eb,_0x291679._0x59e568)],'truncated':_0xb21956[_0x4610e1(_0x291679._0x9ed977,_0x291679._0x56c91f,0x3d4,0x3a2)]>_0x15fa62,'limit':_0x15fa62,'entries':_0xdaa908}),void 0x0;}});}import{randomUUID}from'crypto';import{mkdir as _0x267ad9,readFile as _0x1ffa19,writeFile as _0x192900}from'fs/promises';import{join as _0x50c478}from'path';function sanitizeStorageKey(_0x5bccd6){const _0x3000bd={_0x5d9734:0xcd,_0xa537db:0x100,_0x555325:0xf5,_0x44d902:0x1b8,_0x443440:0x75,_0xdc73f4:0x10b},_0x3ccaf3={_0x134807:0x171,_0x13ad88:0x1d4,_0x15091c:0x2e9};function _0x5abfd6(_0x5b2724,_0x1cde30,_0x474794,_0x15e2c5){return _0x44530c(_0x474794,_0x1cde30-0x55,_0x474794-0xa4,_0x5b2724- -0x5b9);}function _0x4de0b2(_0x222ffa,_0x40d530,_0x52166c,_0x56a09a){return _0x44530c(_0x52166c,_0x40d530-_0x3ccaf3._0x134807,_0x52166c-_0x3ccaf3._0x13ad88,_0x56a09a- -_0x3ccaf3._0x15091c);}return _0x5bccd6[_0x5abfd6(-0x158,-_0x3000bd._0x5d9734,-0x164,-_0x3000bd._0xa537db)](/[^a-zA-Z0-9_]+/g,'_')[_0x4de0b2(0x1dc,_0x3000bd._0x555325,_0x3000bd._0x44d902,0x178)](/^_+|_+$/g,'')||_0x5abfd6(-0xab,-_0x3000bd._0x443440,-0xb5,-_0x3000bd._0xdc73f4);}function storagePath(_0x43867a){const _0x475e4f={_0x36560a:0x332,_0x420503:0x2e8,_0x427998:0x1d6,_0x572258:0x185,_0x400ea7:0x1b9,_0x5efa25:0x202,_0x10358a:0x1ed,_0x59c0aa:0x236,_0x3ba750:0x18e,_0x2e59ab:0x1ed,_0x24a26e:0x367},_0x797ac4={_0x2173e1:0x16a,_0x11f843:0x32d},_0x549d81={_0x459c8d:0xe5};function _0x45588e(_0x35f610,_0x5f441f,_0x1621b4,_0x38aa43){return _0x452c58(_0x38aa43-0x87,_0x1621b4,_0x1621b4-0x148,_0x38aa43-_0x549d81._0x459c8d);}function _0x1089b(_0x4563b3,_0x2650a6,_0x3b31ee,_0x443d41){return _0x44530c(_0x443d41,_0x2650a6-_0x797ac4._0x2173e1,_0x3b31ee-0xad,_0x4563b3- -_0x797ac4._0x11f843);}const _0x5cf90a=sanitizeStorageKey(_0x43867a[_0x45588e(0x319,_0x475e4f._0x36560a,0x336,_0x475e4f._0x420503)][_0x1089b(_0x475e4f._0x427998,_0x475e4f._0x572258,0x25f,_0x475e4f._0x400ea7)]?.[_0x1089b(_0x475e4f._0x5efa25,0x26a,_0x475e4f._0x10358a,_0x475e4f._0x59c0aa)]??_0x43867a[_0x1089b(_0x475e4f._0x3ba750,_0x475e4f._0x2e59ab,0x107,0x166)]);return _0x50c478(_0x43867a['storageDir'],_0x5cf90a+_0x45588e(0x303,0x297,_0x475e4f._0x24a26e,0x2dd));}async function readStore(_0x6891f4){const _0x5581bb={_0x105ba4:0x1b4,_0x1aee6f:0x40c,_0x5efc19:0x3d5,_0x52a83c:0x457},_0x250ecc={_0x4ce8d0:0x9a},_0x56791c={_0x2b12b8:0x2dc};function _0x2ffdc9(_0x30e580,_0x4a4a22,_0x2ee13a,_0x3db9e9){return _0x44530c(_0x4a4a22,_0x4a4a22-0x1be,_0x2ee13a-0x49,_0x30e580- -_0x56791c._0x2b12b8);}function _0x46fbca(_0x50ed74,_0x222973,_0x4be5a0,_0x4ae105){return _0x44530c(_0x50ed74,_0x222973-_0x250ecc._0x4ce8d0,_0x4be5a0-0x14b,_0x4be5a0- -0x22);}try{return JSON['parse'](await _0x1ffa19(_0x6891f4,_0x2ffdc9(0x1aa,_0x5581bb._0x105ba4,0x14f,0x245)));}catch(_0x29ce01){if(_0x29ce01 instanceof Error&&_0x46fbca(0x387,0x384,_0x5581bb._0x1aee6f,_0x5581bb._0x5efc19)in _0x29ce01&&_0x29ce01[_0x46fbca(_0x5581bb._0x52a83c,0x456,0x40c,0x3e0)]==='ENOENT')return{};throw _0x29ce01;}}async function writeStore(_0x126d6e,_0x216463){const _0x1c41ae={_0x36b5c3:0x289,_0x9a10d9:0x2a3};await _0x267ad9(_0x50c478(_0x126d6e,'..'),{'recursive':!![]});function _0x1a708f(_0x5567f8,_0x1e0e38,_0x34b3ea,_0x131b66){return _0x44530c(_0x131b66,_0x1e0e38-0x14,_0x34b3ea-0x101,_0x1e0e38- -0x243);}await _0x192900(_0x126d6e,JSON[_0x1a708f(0x29d,0x28c,_0x1c41ae._0x36b5c3,_0x1c41ae._0x9a10d9)](_0x216463,null,0x2),'utf8');}async function updateStore(_0x44c32d,_0x1fc40c){const _0x2af43f=await readStore(_0x44c32d);_0x1fc40c(_0x2af43f),await writeStore(_0x44c32d,_0x2af43f);}function createMcpOAuthProvider(_0x5a61f0){const _0x17f9f7={_0x10d8b3:0x319,_0x231b02:0x2cd,_0x22d2ba:0x311,_0x41f4f9:0x21a,_0x51a27d:0x109,_0x506b6a:0xfd,_0x2ec824:0xfb,_0x172a37:0x180,_0x1a8347:0x172,_0xf783bd:0x171,_0xb64f00:0x2d2,_0x4a50a:0x203,_0xc19539:0x118,_0x423fd7:0x7d,_0x2d0564:0x14b,_0x180bd2:0x1ed,_0xbee367:0x20e,_0x1fd093:0x257,_0xd30b7b:0x19c,_0x26ae58:0x1f6,_0x52ddb7:0x167},_0x2f8bc5={_0x3d584b:0x2fa,_0x307a1c:0x33a,_0x345e85:0x369,_0x54807e:0x2f6},_0x2620b2={_0x2a6d8f:0x58,_0x35da57:0xc1},_0x557db4={_0x217e24:0x280,_0x5e42f2:0x224,_0x46e93d:0x204},_0x3e65e3={_0x5644de:0xab,_0x5824bb:0x70,_0x4a77bc:0x49a,_0x2e23e0:0x3dc,_0x4e4488:0xae,_0x480e2f:0x322,_0x4220c9:0xff,_0x37eab2:0x99,_0x4b4085:0x79,_0x52d8e5:0x3c,_0x494d45:0x85,_0x138dad:0x34d,_0x1644e7:0x387,_0x184d22:0x3ad,_0x4ff388:0x378,_0x3c1f1a:0x2ac,_0x29ed6b:0xae,_0x3bcb95:0xd3,_0x241ca3:0xba,_0xde70b5:0x35c,_0x50f77f:0x38f},_0x5e41f1={_0x349a8e:0x194,_0x56dc0a:0x226,_0x3178c7:0x142,_0x50f0ff:0x1cb},_0x47d995={_0x5036ec:0x27,_0x262695:0x1f1},_0x4c2b34={_0x240df9:0xbc,_0x5ef5a7:0x88},_0x255765={_0xab91e9:0xde,_0x5698a2:0xf1},_0x1d941e={_0x3488b9:0x42e},_0x2ab88f={_0x1ca618:0x1d2,_0x4ef811:0x15f},_0x5edbd8={_0x34e820:0x568},_0x2fb136={_0x367d66:0x152},_0x41d547={_0x2e53b3:0xdb},_0x190595={_0x21b897:0x182,_0x4122a1:0x1e9,_0x4d0854:0x316};function _0x18cc83(_0x119467,_0x2895a6,_0x1b888c,_0x5cfeb8){return _0x44530c(_0x1b888c,_0x2895a6-_0x190595._0x21b897,_0x1b888c-_0x190595._0x4122a1,_0x119467- -_0x190595._0x4d0854);}const _0x28e601=storagePath(_0x5a61f0),_0x14e684=_0x5a61f0['config'][_0x142c03(0x318,_0x17f9f7._0x10d8b3,_0x17f9f7._0x231b02,_0x17f9f7._0x22d2ba)]?.[_0x18cc83(0x213,0x228,_0x17f9f7._0x41f4f9,0x1ce)]?.[_0x18cc83(_0x17f9f7._0x51a27d,0x198,0x198,0xd7)]('\x20');function _0x142c03(_0x31965e,_0x42ba54,_0x23ab87,_0x5864bc){return _0x452c58(_0x31965e-0xa1,_0x23ab87,_0x23ab87-_0x41d547._0x2e53b3,_0x5864bc-0x125);}const _0x60a0fd={'client_name':_0x18cc83(0x10c,_0x17f9f7._0x506b6a,_0x17f9f7._0x2ec824,_0x17f9f7._0x172a37),'redirect_uris':[_0x5a61f0[_0x18cc83(0x1d4,_0x17f9f7._0x1a8347,_0x17f9f7._0xf783bd,0x236)]],'grant_types':[_0x18cc83(0x127,0xa0,0x11e,_0x17f9f7._0x51a27d),_0x142c03(0x288,_0x17f9f7._0xb64f00,0x295,_0x17f9f7._0x4a50a)],'response_types':[_0x18cc83(_0x17f9f7._0xc19539,_0x17f9f7._0x423fd7,_0x17f9f7._0x2d0564,0x19e)],'token_endpoint_auth_method':'client_secret_post',..._0x14e684?{'scope':_0x14e684}:{}};return{'clientMetadataUrl':_0x5a61f0['config'][_0x18cc83(_0x17f9f7._0x180bd2,_0x17f9f7._0xbee367,_0x17f9f7._0x1fd093,_0x17f9f7._0xd30b7b)]?.[_0x18cc83(_0x17f9f7._0x26ae58,_0x17f9f7._0x52ddb7,0x1cf,0x1d0)],get 'redirectUrl'(){return _0x5a61f0['callbackUrl'];},get 'clientMetadata'(){return _0x60a0fd;},async 'state'(){const _0x36c945={_0x255536:0x3ee,_0x3b4bdd:0x40a,_0x34945b:0x421};function _0x429650(_0x21871e,_0x242298,_0x5eb0f3,_0x8473dc){return _0x18cc83(_0x5eb0f3- -_0x2fb136._0x367d66,_0x242298-0xea,_0x242298,_0x8473dc-0x127);}const _0x4dfa76=await readStore(_0x28e601);if(_0x4dfa76[_0x429650(0x10,-0x93,-0x15,0x14)])return _0x4dfa76['state'];const _0x322d93=randomUUID();return await updateStore(_0x28e601,_0x471f39=>{function _0x33fe60(_0x48fed3,_0x463f03,_0x5ce59d,_0x4f1f45){return _0x429650(_0x48fed3-0x10d,_0x48fed3,_0x5ce59d-0x41f,_0x4f1f45-0xd1);}_0x471f39[_0x33fe60(_0x36c945._0x255536,0x3cf,_0x36c945._0x3b4bdd,_0x36c945._0x34945b)]=_0x322d93;}),_0x322d93;},async 'clientInformation'(){return(await readStore(_0x28e601))['clientInformation'];},async 'saveClientInformation'(_0x334b85){await updateStore(_0x28e601,_0x135e0a=>{const _0x52ea94={_0xcf5202:0x35b};function _0x4de7f7(_0x26f40d,_0x501ab4,_0x461742,_0x2a3191){return _0x5314(_0x461742-_0x52ea94._0xcf5202,_0x2a3191);}_0x135e0a[_0x4de7f7(0x580,0x5ac,0x562,_0x5edbd8._0x34e820)]=_0x334b85;});},async 'tokens'(){function _0x40c8e2(_0x43f0e0,_0x2c1551,_0x39d6c6,_0x32b335){return _0x18cc83(_0x43f0e0-0x1f7,_0x2c1551-_0x2ab88f._0x1ca618,_0x39d6c6,_0x32b335-_0x2ab88f._0x4ef811);}return(await readStore(_0x28e601))[_0x40c8e2(0x3da,0x376,_0x1d941e._0x3488b9,0x401)];},async 'saveTokens'(_0x4469df){await updateStore(_0x28e601,_0x458fa0=>{_0x458fa0['tokens']=_0x4469df;});},async 'redirectToAuthorization'(_0x4e79f4){function _0x2af5b0(_0x29f55e,_0x44a7ad,_0x1d85ba,_0x36e5b7){return _0x18cc83(_0x36e5b7- -0x13f,_0x44a7ad-_0x255765._0xab91e9,_0x44a7ad,_0x36e5b7-_0x255765._0x5698a2);}await _0x5a61f0[_0x2af5b0(0x81,0xcb,_0x4c2b34._0x240df9,_0x4c2b34._0x5ef5a7)](_0x4e79f4);},async 'saveCodeVerifier'(_0x441f3f){const _0x3d429d={_0x4f92a2:0x274,_0x4a4ea7:0x2d8,_0x38efb0:0x1f3,_0x35002b:0x2a4};await updateStore(_0x28e601,_0x38a5df=>{const _0x565e5c={_0x34c3ca:0x7b};function _0x33ce1a(_0x60b9fe,_0x289f30,_0x599c32,_0x2b014f){return _0x5314(_0x60b9fe-_0x565e5c._0x34c3ca,_0x599c32);}_0x38a5df[_0x33ce1a(_0x3d429d._0x4f92a2,_0x3d429d._0x4a4ea7,_0x3d429d._0x38efb0,_0x3d429d._0x35002b)]=_0x441f3f;});},async 'codeVerifier'(){const _0x204c3a={_0x9faba9:0xd8};function _0x8b2aae(_0x99b859,_0x5ae9a8,_0x2c7272,_0x34f1ba){return _0x142c03(_0x5ae9a8- -0x2,_0x5ae9a8-_0x47d995._0x5036ec,_0x2c7272,_0x34f1ba-_0x47d995._0x262695);}function _0x3ff362(_0x291cbb,_0x31f629,_0x3594f0,_0x5ad128){return _0x18cc83(_0x291cbb-0x2d,_0x31f629-0x1e8,_0x5ad128,_0x5ad128-_0x204c3a._0x9faba9);}const _0x11fbf0=(await readStore(_0x28e601))[_0x3ff362(_0x5e41f1._0x349a8e,0x1da,_0x5e41f1._0x56dc0a,_0x5e41f1._0x3178c7)];if(!_0x11fbf0)throw new Error(_0x3ff362(_0x5e41f1._0x50f0ff,0x146,0x1f8,0x249));return _0x11fbf0;},async 'invalidateCredentials'(_0x8aa823){await updateStore(_0x28e601,_0x29b6f6=>{(_0x8aa823===_0x3b12f2(-0x13f,-_0x3e65e3._0x5644de,-0x49,-_0x3e65e3._0x5824bb)||_0x8aa823===_0x34aa92(0x424,_0x3e65e3._0x4a77bc,_0x3e65e3._0x2e23e0,0x430))&&(_0x29b6f6[_0x3b12f2(0x51,-0x48,-_0x3e65e3._0x4e4488,-0x87)]=void 0x0);(_0x8aa823==='all'||_0x8aa823==='tokens')&&(_0x29b6f6['tokens']=void 0x0);(_0x8aa823===_0x34aa92(_0x3e65e3._0x480e2f,0x399,0x32d,0x389)||_0x8aa823===_0x3b12f2(-_0x3e65e3._0x4220c9,-_0x3e65e3._0x37eab2,-_0x3e65e3._0x4b4085,-_0x3e65e3._0x52d8e5))&&(_0x29b6f6[_0x3b12f2(-0xb4,-0x56,-0x41,-_0x3e65e3._0x494d45)]=void 0x0,_0x29b6f6[_0x34aa92(_0x3e65e3._0x138dad,_0x3e65e3._0x1644e7,0x378,_0x3e65e3._0x184d22)]=void 0x0);function _0x3b12f2(_0x36c38e,_0x43b58b,_0x2936a5,_0x4ef8f9){return _0x5314(_0x43b58b- -0x24f,_0x36c38e);}function _0x34aa92(_0x4842a2,_0xd24712,_0x44d434,_0xc8453b){return _0x5314(_0x4842a2-0x17e,_0xc8453b);}(_0x8aa823===_0x34aa92(0x322,_0x3e65e3._0x4ff388,0x323,_0x3e65e3._0x3c1f1a)||_0x8aa823===_0x3b12f2(-_0x3e65e3._0x29ed6b,-_0x3e65e3._0x3bcb95,-_0x3e65e3._0x241ca3,-0x4c))&&(_0x29b6f6[_0x34aa92(_0x3e65e3._0xde70b5,0x302,0x336,_0x3e65e3._0x50f77f)]=void 0x0);});},async 'saveDiscoveryState'(_0x1ab71e){await updateStore(_0x28e601,_0x21aef8=>{function _0x4584d9(_0xf35857,_0x25fb52,_0x5d0be,_0x4bd985){return _0x5314(_0xf35857-0x61,_0x25fb52);}_0x21aef8[_0x4584d9(0x23f,_0x557db4._0x217e24,_0x557db4._0x5e42f2,_0x557db4._0x46e93d)]=_0x1ab71e;});},async 'discoveryState'(){function _0x242418(_0x2c9f26,_0x3d89ab,_0x49cae5,_0x11cdf4){return _0x142c03(_0x2c9f26-0x83,_0x3d89ab-_0x2620b2._0x2a6d8f,_0x11cdf4,_0x11cdf4-_0x2620b2._0x35da57);}return(await readStore(_0x28e601))[_0x242418(_0x2f8bc5._0x3d584b,_0x2f8bc5._0x307a1c,_0x2f8bc5._0x345e85,_0x2f8bc5._0x54807e)];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function createMcpToolName(_0x47c48c,_0x1744b6){const _0x23e4fd={_0x574056:0x216,_0x7b2f73:0x177},_0x333f94={_0x427beb:0x10e,_0x2d7cdd:0x85,_0x3a142e:0x28f},_0x30d1a1={_0x8ab097:0x8b},_0x37bba5=_0x597549=>_0x597549[_0x3137db(0x11a,0x1a4,0x14a,0x19e)](/[^a-zA-Z0-9_]+/g,'_')[_0x3137db(0xc3,0x126,0x14a,0x147)](/^_+|_+$/g,'');function _0x3137db(_0x5b5773,_0x279205,_0xbaaaf5,_0x14cf43){return _0x452c58(_0xbaaaf5- -_0x30d1a1._0x8ab097,_0x279205,_0xbaaaf5-0x165,_0x14cf43-0xe7);}function _0x1bcd29(_0x46deb2,_0x26ed53,_0x51485d,_0x1dd653){return _0x44530c(_0x1dd653,_0x26ed53-_0x333f94._0x427beb,_0x51485d-_0x333f94._0x2d7cdd,_0x46deb2- -_0x333f94._0x3a142e);}return _0x3137db(_0x23e4fd._0x574056,0x1a3,0x20d,_0x23e4fd._0x7b2f73)+_0x37bba5(_0x47c48c)+'_'+_0x37bba5(_0x1744b6);}function isObject(_0x4ef533){const _0x2b9428={_0x42ff5c:0x1b,_0x165e77:0x14,_0x1c0560:0x31},_0x46cc06={_0x4ccab9:0x3d};function _0x1261c0(_0xa5bf37,_0x15c41e,_0xc85f71,_0x47bc2a){return _0x44530c(_0xa5bf37,_0x15c41e-_0x46cc06._0x4ccab9,_0xc85f71-0x17b,_0xc85f71- -0x4d9);}return typeof _0x4ef533==='object'&&_0x4ef533!==null&&!Array[_0x1261c0(_0x2b9428._0x42ff5c,-_0x2b9428._0x165e77,0x3b,_0x2b9428._0x1c0560)](_0x4ef533);}function toSupportedSchema(_0xeefc02){const _0x129cae={_0x40b38c:0xd7,_0x3fdc19:0xe4,_0x335a31:0x1a2,_0x25abb9:0xbc,_0x26405e:0x55,_0x212f24:0x12a,_0x54690c:0x19f,_0x5699f1:0x9d,_0x198a38:0x71,_0x3c9b98:0x49,_0x338a89:0x3e,_0x72f10e:0xa6,_0x4b60b5:0x96,_0xf43ac0:0x164,_0x355adc:0x1ae,_0x2e7a87:0x14e,_0x4b6f13:0x1ae,_0x403199:0x17a,_0x45ff23:0xb1,_0xaa6d8d:0x194,_0x1556fa:0x72,_0xcea98c:0x50,_0x5354e5:0xd6,_0x55ce21:0x120,_0x1cd84b:0xe5,_0x22e1ff:0xad,_0x3508b6:0x95,_0x44c325:0xa3,_0x668349:0x154,_0x14b574:0xe7},_0x49d47b={_0x530bb8:0x18a},_0x355f13={_0x101deb:0x192};if(!isObject(_0xeefc02))return void 0x0;if(_0xeefc02[_0x585cce(0xb9,0xc3,0x12c,0xcb)]===_0x11657b(_0x129cae._0x40b38c,0x141,_0x129cae._0x3fdc19,_0x129cae._0x335a31))return{'type':_0x585cce(_0x129cae._0x25abb9,_0x129cae._0x26405e,0x62,0xe2)};function _0x585cce(_0x4af6ed,_0x3324fa,_0xbc61c0,_0x8691f6){return _0x452c58(_0x8691f6- -_0x355f13._0x101deb,_0xbc61c0,_0xbc61c0-0x10c,_0x8691f6-0xda);}if(_0xeefc02[_0x11657b(0x1bd,_0x129cae._0x212f24,_0x129cae._0x54690c,0x13e)]==='number'||_0xeefc02[_0x11657b(0x11b,0x12a,_0x129cae._0x5699f1,0xde)]===_0x11657b(_0x129cae._0x198a38,_0x129cae._0x3c9b98,_0x129cae._0x338a89,-0x41))return{'type':_0x11657b(_0x129cae._0x72f10e,0x11d,0xf6,0x124)};function _0x11657b(_0x1d7278,_0x12bee3,_0xadd27e,_0x1a99e3){return _0x44530c(_0xadd27e,_0x12bee3-0x120,_0xadd27e-_0x49d47b._0x530bb8,_0x12bee3- -0x3bf);}if(_0xeefc02[_0x11657b(_0x129cae._0x4b60b5,0x12a,_0x129cae._0xf43ac0,0xc4)]===_0x11657b(_0x129cae._0x355adc,_0x129cae._0x2e7a87,_0x129cae._0x4b6f13,_0x129cae._0x403199))return{'type':_0x11657b(0x1de,0x14e,0x181,_0x129cae._0x335a31)};if(_0xeefc02[_0x11657b(_0x129cae._0x45ff23,0x12a,_0x129cae._0xaa6d8d,0xe0)]==='array')return{'type':_0x585cce(0x5,_0x129cae._0x1556fa,_0x129cae._0xcea98c,0x21),'items':toSupportedSchema(_0xeefc02[_0x11657b(_0x129cae._0x5354e5,0x12d,_0x129cae._0x55ce21,_0x129cae._0x1cd84b)])??{'type':_0x585cce(0x141,0xa9,_0x129cae._0x22e1ff,0xe2)}};if(_0xeefc02[_0x585cce(_0x129cae._0x3508b6,0x130,0x143,0xcb)]===_0x585cce(_0x129cae._0x44c325,0x5d,_0x129cae._0x668349,_0x129cae._0x14b574))return toNuvinToolSchema(_0xeefc02);return void 0x0;}function toNuvinToolSchema(_0x2a8a2e){const _0x1830d6={_0x33ec8f:0x54f,_0x45a1cb:0x54a,_0x453360:0x637,_0x26fe66:0x65f,_0x2f8684:0x5d5,_0x2944d3:0x5c7,_0x1b9629:0x605,_0x57de24:0x575,_0x32c4a:0x525,_0x396a47:0x5be,_0x1d28d2:0x57f,_0x26b53d:0x4a1,_0x513142:0x576,_0x413ce0:0x50b,_0xefce68:0x422,_0x85506d:0x50a,_0x1f8304:0x4b2,_0x5baec4:0x5e3,_0x20b1cc:0x566,_0x3b27a0:0x559},_0x2df9f6={_0x4bb5cd:0x19e,_0x5dda33:0xc2},_0x189729={_0x1ebc5e:0x2ed};if(!isObject(_0x2a8a2e)||_0x2a8a2e[_0x1c2932(0x569,_0x1830d6._0x33ec8f,_0x1830d6._0x45a1cb,0x596)]!=='object')return{'type':_0x37c4ff(_0x1830d6._0x453360,_0x1830d6._0x26fe66,_0x1830d6._0x2f8684,_0x1830d6._0x2944d3),'properties':{}};const _0x5d594f={};function _0x1c2932(_0x2d1f96,_0x3a6a83,_0x35f0d5,_0x457869){return _0x452c58(_0x35f0d5-_0x189729._0x1ebc5e,_0x2d1f96,_0x35f0d5-0x14b,_0x457869-0x1d0);}const _0x504a7a=isObject(_0x2a8a2e[_0x37c4ff(0x553,0x592,0x5e0,0x57f)])?_0x2a8a2e['properties']:{};function _0x37c4ff(_0x250755,_0x449190,_0x53c32d,_0x2ff28d){return _0x44530c(_0x53c32d,_0x449190-_0x2df9f6._0x4bb5cd,_0x53c32d-0xae,_0x2ff28d-_0x2df9f6._0x5dda33);}for(const [_0x1f5dd0,_0x555fd3]of Object['entries'](_0x504a7a)){const _0x5141f4=toSupportedSchema(_0x555fd3);if(_0x5141f4)_0x5d594f[_0x1f5dd0]=_0x5141f4;}const _0x5efd4e=Array[_0x1c2932(0x4fe,_0x1830d6._0x1b9629,_0x1830d6._0x57de24,0x4da)](_0x2a8a2e[_0x1c2932(0x4f6,0x55f,0x55d,0x57f)])?_0x2a8a2e[_0x37c4ff(0x5d4,_0x1830d6._0x32c4a,0x530,_0x1830d6._0x396a47)][_0x37c4ff(_0x1830d6._0x1d28d2,_0x1830d6._0x26b53d,_0x1830d6._0x513142,_0x1830d6._0x413ce0)](_0x11f3cf=>typeof _0x11f3cf===_0x37c4ff(0x60e,0x541,0x5e2,0x5c2)):void 0x0;return _0x5efd4e?.[_0x1c2932(_0x1830d6._0xefce68,_0x1830d6._0x85506d,0x4bb,_0x1830d6._0x1f8304)]?{'type':'object','properties':_0x5d594f,'required':_0x5efd4e}:{'type':_0x1c2932(0x5ea,_0x1830d6._0x5baec4,_0x1830d6._0x20b1cc,_0x1830d6._0x3b27a0),'properties':_0x5d594f};}function isJsonObject(_0x3d14ed){const _0x1c34b2={_0x20ccf9:0x10f,_0x5634fd:0x9f},_0x47d844={_0x169713:0x1c1};function _0x197831(_0x50c2ad,_0x2a28ac,_0x8b56d6,_0x412ef7){return _0x44530c(_0x412ef7,_0x2a28ac-_0x47d844._0x169713,_0x8b56d6-0x140,_0x50c2ad- -0x405);}return typeof _0x3d14ed==='object'&&_0x3d14ed!==null&&!Array[_0x197831(_0x1c34b2._0x20ccf9,0xe3,0xeb,_0x1c34b2._0x5634fd)](_0x3d14ed);}function formatMcpContent(_0x3980f4){const _0x5dd28a={_0x38c0a3:0x3fb,_0x3be445:0x4c8,_0x40d08a:0x491,_0x3d6ee4:0x523,_0x315780:0x45c,_0x556849:0x427,_0x1bc92d:0x3eb,_0x24672e:0xf4,_0x385f0d:0x172},_0x1a5ae8={_0x359305:0x4ef,_0x1ad297:0x468,_0x181e03:0x209,_0x9b8939:0x2a6,_0x3576d8:0x2c8,_0x245dde:0x209,_0x2113f0:0x196,_0x3b9a93:0x55b,_0x2e2b79:0x5eb},_0x39d619={_0x4155fd:0x8e},_0x14706b={_0x5967d5:0x179,_0x4d2481:0x11c},_0x10fb1a={_0x12183a:0x5c},_0x1deeaa=Array[_0x8a2492(_0x5dd28a._0x38c0a3,0x514,0x458,0x484)](_0x3980f4[_0x8a2492(_0x5dd28a._0x3be445,0x4d5,0x48f,_0x5dd28a._0x40d08a)])?_0x3980f4[_0x8a2492(0x446,_0x5dd28a._0x3d6ee4,_0x5dd28a._0x315780,0x491)]:[];function _0x28f567(_0xd5659a,_0x566975,_0x4161c8,_0x3978f9){return _0x452c58(_0x4161c8- -_0x10fb1a._0x12183a,_0x3978f9,_0x4161c8-0x1de,_0x3978f9-0x19f);}function _0x8a2492(_0x12f89e,_0x4db0ea,_0x19bf8c,_0x4ff3e6){return _0x452c58(_0x4ff3e6-0x1fc,_0x12f89e,_0x19bf8c-0x187,_0x4ff3e6-0xe5);}const _0x3b6208=_0x1deeaa['map'](_0x49911c=>{if(!isObject(_0x49911c))return'';function _0x50ed35(_0x160115,_0x37ba0d,_0x488a2c,_0x2e849e){return _0x8a2492(_0x37ba0d,_0x37ba0d-0x16d,_0x488a2c-_0x14706b._0x5967d5,_0x160115-_0x14706b._0x4d2481);}function _0x4f52ec(_0x513b3c,_0x21f8dd,_0xc65c76,_0x16813c){return _0x28f567(_0x513b3c-0x177,_0x21f8dd-0x199,_0x513b3c-_0x39d619._0x4155fd,_0x21f8dd);}if(_0x49911c['type']===_0x50ed35(_0x1a5ae8._0x359305,0x53f,0x4f3,_0x1a5ae8._0x1ad297)&&typeof _0x49911c[_0x4f52ec(_0x1a5ae8._0x181e03,0x291,0x268,0x235)]===_0x4f52ec(_0x1a5ae8._0x9b8939,0x25d,0x2f4,_0x1a5ae8._0x3576d8))return _0x49911c[_0x4f52ec(_0x1a5ae8._0x245dde,0x297,_0x1a5ae8._0x2113f0,0x190)];return JSON[_0x50ed35(_0x1a5ae8._0x3b9a93,_0x1a5ae8._0x2e2b79,0x523,0x539)](_0x49911c);})['filter'](_0xf79dbc=>_0xf79dbc[_0x28f567(0x16e,0x157,0x172,0x201)]>0x0)[_0x8a2492(_0x5dd28a._0x556849,0x3ac,_0x5dd28a._0x1bc92d,0x38f)]('\x0a');if(_0x3b6208[_0x28f567(0x17a,_0x5dd28a._0x24672e,_0x5dd28a._0x385f0d,0x170)]>0x0)return _0x3b6208;return JSON['stringify'](_0x3980f4,null,0x2);}function createMcpTool(_0x218fb4){const _0x26f86a={_0x14211c:0x30a,_0x40dab3:0x28c,_0x215ef6:0x2a6,_0x297191:0x496,_0x449181:0x355,_0x2e446b:0x369,_0x3b5512:0x3a2,_0xc7bb8d:0x358,_0x28a76c:0x347,_0x1daf0f:0x37b,_0x26320a:0x39b,_0x350f6e:0x414,_0x16e419:0x3e8},_0x59132d={_0x8a0f2f:0x6ee,_0x42c7d5:0x6f7,_0x233622:0x658,_0x581646:0x580,_0x1564c7:0x5fa,_0x3deb5f:0x5c9,_0x50def0:0x67b,_0x377916:0x60c,_0x5b4128:0x644,_0x4426c3:0x4c3,_0x67e24d:0x4b5,_0x54cfa9:0x628,_0x5d6d5f:0x5f6,_0x273def:0x573,_0x15336a:0x59d},_0x23a829={_0x170d2d:0x10b},_0x1f836a={_0x4e32b2:0x33,_0x488b66:0x87,_0x281ade:0x140};function _0x3ecb87(_0x397657,_0x32c193,_0x2f413a,_0x192880){return _0x44530c(_0x397657,_0x32c193-_0x1f836a._0x4e32b2,_0x2f413a-_0x1f836a._0x488b66,_0x32c193- -_0x1f836a._0x281ade);}function _0x1d0800(_0x43993c,_0x13bcef,_0xdbde42,_0x1e72d3){return _0x452c58(_0xdbde42-0x279,_0x1e72d3,_0xdbde42-0x110,_0x1e72d3-_0x23a829._0x170d2d);}const _0xa932ac=createMcpToolName(_0x218fb4['serverName'],_0x218fb4['tool'][_0x3ecb87(0x2d4,_0x26f86a._0x14211c,_0x26f86a._0x40dab3,_0x26f86a._0x215ef6)]);return defineTool({'name':_0xa932ac,'description':_0x218fb4[_0x1d0800(0x516,0x4ad,_0x26f86a._0x297191,0x4da)][_0x1d0800(0x50e,0x4ad,0x486,0x3f5)]??_0x3ecb87(_0x26f86a._0x449181,0x332,0x2c0,0x305)+_0x218fb4[_0x3ecb87(0x351,_0x26f86a._0x2e446b,0x38f,_0x26f86a._0x3b5512)]['name']+_0x3ecb87(0x272,0x2fe,_0x26f86a._0xc7bb8d,_0x26f86a._0x28a76c)+_0x218fb4[_0x3ecb87(0x357,_0x26f86a._0x1daf0f,_0x26f86a._0x26320a,0x3ee)],'inputSchema':toNuvinToolSchema(_0x218fb4['tool'][_0x1d0800(_0x26f86a._0x350f6e,_0x26f86a._0x16e419,0x3f9,0x3f5)]),async *'execute'(_0x5818c4){const _0x1e023d={_0x23d969:0x164},_0x5d0aea={_0x1ffa30:0x1a7,_0x1e2d8:0xda},_0x2ed4e4=await _0x218fb4[_0x484018(_0x59132d._0x8a0f2f,_0x59132d._0x42c7d5,0x63e,0x67b)][_0x45cede(0x443,0x4b6,0x492,0x471)]({'name':_0x218fb4[_0x484018(_0x59132d._0x233622,_0x59132d._0x581646,0x5c2,_0x59132d._0x1564c7)][_0x45cede(0x4df,0x473,0x4c1,0x46c)],'arguments':isJsonObject(_0x5818c4)?_0x5818c4:{}});function _0x45cede(_0x23be8b,_0x53b760,_0x2faae3,_0x4d12dd){return _0x3ecb87(_0x4d12dd,_0x2faae3-0x1b7,_0x2faae3-_0x5d0aea._0x1ffa30,_0x4d12dd-_0x5d0aea._0x1e2d8);}if(_0x2ed4e4[_0x45cede(0x5ff,0x57f,0x59f,_0x59132d._0x3deb5f)])throw new ToolExecutionError(formatMcpContent(_0x2ed4e4),{'serverName':_0x218fb4[_0x484018(0x5c0,0x610,_0x59132d._0x50def0,_0x59132d._0x377916)],'toolName':_0x218fb4[_0x484018(_0x59132d._0x5b4128,0x5f2,0x636,0x5fa)][_0x45cede(_0x59132d._0x4426c3,0x50a,0x4c1,0x511)]});function _0x484018(_0x55056a,_0x519853,_0xb4db31,_0x5f47d7){return _0x1d0800(_0x55056a-0x1b6,_0x519853-0x34,_0x5f47d7-_0x1e023d._0x23d969,_0x55056a);}return yield createToolOutput(formatMcpContent(_0x2ed4e4),{'serverName':_0x218fb4[_0x45cede(_0x59132d._0x67e24d,0x534,0x532,0x51f)],'toolName':_0x218fb4[_0x484018(_0x59132d._0x54cfa9,_0x59132d._0x5d6d5f,_0x59132d._0x273def,0x5fa)][_0x484018(0x5e5,_0x59132d._0x15336a,0x569,0x59b)],'result':_0x2ed4e4}),void 0x0;}});}function resolvePrefix(_0xc7b08e,_0x2072db){const _0x443e02={_0x447997:0x4d6,_0x516505:0x41d,_0x2d7b9c:0x480,_0x2b282a:0x3f6};function _0xf8274a(_0x1859f5,_0x44797f,_0x2678c3,_0x2c6d11){return _0x452c58(_0x2678c3-0x2ba,_0x2c6d11,_0x2678c3-0x161,_0x2c6d11-0x130);}return _0x2072db[_0xf8274a(_0x443e02._0x447997,_0x443e02._0x516505,_0x443e02._0x2d7b9c,_0x443e02._0x2b282a)]??_0xc7b08e;}function buildMcpHttpHeaders(_0x5a61e9){const _0x5ac222={_0x9875ac:0x365,_0x4cc1ca:0x321,_0xa10d4d:0x29d,_0x4929b5:0x2f9,_0x358251:0x30c,_0xf3778f:0x270,_0x643d9b:0x24c,_0x165c41:0x2e8,_0x340d08:0x241,_0x43681a:0x215,_0x199cde:0x28d,_0x21e609:0x30a,_0x8c47cb:0x23e,_0x3f638d:0x287,_0x265166:0x293,_0xf0453d:0x137,_0x2724b3:0x25c,_0x370459:0x1c7,_0x25a5de:0x1bd,_0x490a68:0x325,_0x4bb7ae:0x233},_0x4dd121={_0x5a4d06:0x12c,_0x4e6150:0x1b3},_0x3a6df6={_0x21a54e:0x1c5,_0x574325:0x1c4},_0x819e6d={..._0x5a61e9[_0x2e4c41(_0x5ac222._0x9875ac,0x31c,0x320,_0x5ac222._0x4cc1ca)]??{}};_0x5a61e9['auth']?.[_0x2e4c41(0x336,0x2eb,_0x5ac222._0xa10d4d,0x3b0)]===_0x2e4c41(0x265,0x1fb,0x271,_0x5ac222._0x4929b5)&&_0x5a61e9[_0x2e4c41(_0x5ac222._0x358251,0x27f,0x374,_0x5ac222._0xf3778f)][_0x2e4c41(_0x5ac222._0x643d9b,_0x5ac222._0x165c41,0x2c1,0x1d2)]&&_0x819e6d[_0x281348(_0x5ac222._0x340d08,_0x5ac222._0x43681a,_0x5ac222._0x199cde,0x207)]===void 0x0&&(_0x819e6d['Authorization']=_0x281348(0x303,_0x5ac222._0x21e609,0x293,0x27e)+_0x5a61e9[_0x281348(0x2bf,_0x5ac222._0x8c47cb,_0x5ac222._0x3f638d,_0x5ac222._0x265166)][_0x281348(_0x5ac222._0xf0453d,_0x5ac222._0x2724b3,_0x5ac222._0x370459,_0x5ac222._0x25a5de)]);function _0x281348(_0x30d85a,_0x211f86,_0x45fc40,_0x1f24a6){return _0x44530c(_0x30d85a,_0x211f86-_0x3a6df6._0x21a54e,_0x45fc40-_0x3a6df6._0x574325,_0x45fc40- -0x238);}function _0x2e4c41(_0x502617,_0x329f1f,_0x4ae3e4,_0x4bc614){return _0x44530c(_0x329f1f,_0x329f1f-0xee,_0x4ae3e4-_0x4dd121._0x5a4d06,_0x502617- -_0x4dd121._0x4e6150);}return Object[_0x2e4c41(0x328,0x2db,0x333,0x2cc)](_0x819e6d)[_0x2e4c41(0x2a7,0x2f8,_0x5ac222._0x490a68,_0x5ac222._0x4bb7ae)]>0x0?_0x819e6d:void 0x0;}function getErrorMessage(_0x14aa0b){const _0x55d2d4={_0x5ad986:0x144,_0x50f2a8:0x11d},_0x1a596a={_0x2c6a94:0x83,_0x559850:0x3ba};function _0x188531(_0x3f94ad,_0x2460f6,_0xa285a6,_0x2b9408){return _0x44530c(_0x2460f6,_0x2460f6-_0x1a596a._0x2c6a94,_0xa285a6-0x6a,_0x2b9408- -_0x1a596a._0x559850);}return _0x14aa0b instanceof Error?_0x14aa0b[_0x188531(0xbc,_0x55d2d4._0x5ad986,0x174,_0x55d2d4._0x50f2a8)]:String(_0x14aa0b);}function isUnauthorizedError(_0x21af59){const _0x417fdd={_0x519da3:0x365,_0x3a8a12:0x288,_0x56a732:0x278,_0xabae74:0x1fd,_0x14994e:0x28c,_0x26e120:0x1da},_0x1f87c3={_0x4ec576:0x176},_0x1566b8={_0x40048c:0x41,_0x1d5e08:0x66c};function _0x38744d(_0x3eead5,_0xdd6126,_0x2b7613,_0x24cef9){return _0x44530c(_0x24cef9,_0xdd6126-0x142,_0x2b7613-_0x1566b8._0x40048c,_0xdd6126- -_0x1566b8._0x1d5e08);}function _0x2b9899(_0x50fb96,_0x34e2dd,_0x1e8ba9,_0x5d5f29){return _0x44530c(_0x5d5f29,_0x34e2dd-_0x1f87c3._0x4ec576,_0x1e8ba9-0xe6,_0x50fb96- -0x210);}return _0x21af59 instanceof Error&&_0x21af59[_0x2b9899(0x2f8,_0x417fdd._0x519da3,_0x417fdd._0x3a8a12,0x36a)][_0x2b9899(0x23a,0x1ec,_0x417fdd._0x56a732,_0x417fdd._0xabae74)]===_0x2b9899(0x20a,_0x417fdd._0x14994e,_0x417fdd._0x26e120,0x199);}function _0x5314(_0x25c8d5,_0x1e0e47){_0x25c8d5=_0x25c8d5-0x179;const _0x418684=_0x4186();let _0x531419=_0x418684[_0x25c8d5];if(_0x5314['RJhcfe']===undefined){var _0x38c5ee=function(_0x529957){const _0x198131='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x957778='',_0x369387='';for(let _0xa29099=0x0,_0x5afd85,_0x31f93b,_0x53289c=0x0;_0x31f93b=_0x529957['charAt'](_0x53289c++);~_0x31f93b&&(_0x5afd85=_0xa29099%0x4?_0x5afd85*0x40+_0x31f93b:_0x31f93b,_0xa29099++%0x4)?_0x957778+=String['fromCharCode'](0xff&_0x5afd85>>(-0x2*_0xa29099&0x6)):0x0){_0x31f93b=_0x198131['indexOf'](_0x31f93b);}for(let _0x516c80=0x0,_0x4483b2=_0x957778['length'];_0x516c80<_0x4483b2;_0x516c80++){_0x369387+='%'+('00'+_0x957778['charCodeAt'](_0x516c80)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x369387);};_0x5314['lHuujx']=_0x38c5ee,_0x5314['KfGxmy']={},_0x5314['RJhcfe']=!![];}const _0x36bb63=_0x418684[0x0],_0x487109=_0x25c8d5+_0x36bb63,_0x11472e=_0x5314['KfGxmy'][_0x487109];return!_0x11472e?(_0x531419=_0x5314['lHuujx'](_0x531419),_0x5314['KfGxmy'][_0x487109]=_0x531419):_0x531419=_0x11472e,_0x531419;}async function connectMcpServer(_0x5f01d9,_0x37d345,_0x2a1575){const _0x3b6730={_0x3bc9ce:0x138,_0x492947:0x13b,_0x20daa3:0x12c,_0x53c76d:0xd2,_0x2466a7:0x65d,_0x1a83f5:0x5eb,_0x4886a8:0x8d,_0x5260ad:0x503,_0x4484fe:0x573,_0x24ac8a:0xe3,_0x59ea52:0xee,_0x17e09e:0x1b9,_0x471c94:0x18e,_0x3ee692:0x135,_0x2f7945:0x5c2,_0x300a2a:0x609,_0xc045e5:0x531,_0x474089:0x58e,_0x30fa65:0x93,_0x13ca15:0x123,_0x167aa2:0xb2,_0x2dfced:0x8f,_0x25d090:0xbe,_0x177731:0x163,_0x4f2430:0xdf,_0x1cc704:0x62e,_0x30297c:0x5a8,_0x2c9150:0x539,_0xa65443:0x5a8,_0x55a838:0x550,_0x5088d0:0x616,_0x80437d:0x514,_0x241d56:0x540,_0x572e26:0x6f,_0x21ddae:0xca,_0x155c6b:0xd3,_0x1253c3:0xd8,_0x4eee9a:0x573,_0x467ebc:0x644,_0x2b7679:0x525,_0x309336:0x4b7,_0x3ce159:0x44d,_0x7239f4:0x4c2,_0x9b9404:0x148,_0x21f2b9:0xde,_0x459d9c:0x107,_0x2af65b:0x176,_0x31e6f9:0x13f},_0x278f77={_0x130129:0x536,_0x5973ba:0x4ad,_0x2569bc:0x54b},_0x727fe3={_0x3b271e:0x16b,_0x4be8f0:0x97},_0x11bd08={_0xc44182:0x2c8,_0x46712d:0x327},_0x1d2411={_0x5847ba:0x100},_0x141e07={_0x5b23d3:0xf6,_0x799e52:0x8f},_0x378f67={_0x45ef4e:0x59};function _0x9e46bb(_0x1397d8,_0x8b49ed,_0x5c20bc,_0x1520d1){return _0x44530c(_0x1397d8,_0x8b49ed-0xac,_0x5c20bc-_0x378f67._0x45ef4e,_0x5c20bc- -0x3e0);}const _0x55fd79=new Client({'name':_0x9e46bb(0x120,_0x3b6730._0x3bc9ce,_0x3b6730._0x492947,_0x3b6730._0x20daa3),'version':_0x9e46bb(0x66,0x36,_0x3b6730._0x53c76d,0x41)});function _0x2afb6b(_0x20f909,_0x3641c2,_0x39444b,_0x91afad){return _0x44530c(_0x3641c2,_0x3641c2-_0x141e07._0x5b23d3,_0x39444b-_0x141e07._0x799e52,_0x91afad-0xa5);}if(_0x37d345[_0x2afb6b(0x5c5,_0x3b6730._0x2466a7,_0x3b6730._0x1a83f5,0x5c1)]===_0x9e46bb(_0x3b6730._0x4886a8,0x13c,0x111,0x103)||_0x37d345[_0x2afb6b(0x5c2,0x4d8,_0x3b6730._0x5260ad,_0x3b6730._0x4484fe)]){if(!_0x37d345[_0x9e46bb(0x102,_0x3b6730._0x24ac8a,_0x3b6730._0x59ea52,0xa5)])throw new Error(_0x9e46bb(_0x3b6730._0x17e09e,_0x3b6730._0x471c94,_0x3b6730._0x3ee692,0x162)+_0x5f01d9+_0x2afb6b(0x589,0x55b,_0x3b6730._0x2f7945,0x55c));if(_0x37d345['auth']?.[_0x2afb6b(0x616,_0x3b6730._0x300a2a,_0x3b6730._0xc045e5,_0x3b6730._0x474089)]===_0x9e46bb(_0x3b6730._0x30fa65,0x1ac,_0x3b6730._0x13ca15,0x192)&&!_0x2a1575?.[_0x2afb6b(0x5a9,0x546,0x598,0x5a8)])throw new Error(_0x2afb6b(0x564,0x5f5,0x5e6,0x5ba)+_0x5f01d9+_0x9e46bb(0x4c,_0x3b6730._0x167aa2,0x50,_0x3b6730._0x2dfced));const _0x4d2e7f=buildMcpHttpHeaders(_0x37d345),_0x37a1b2=_0x37d345[_0x9e46bb(_0x3b6730._0x25d090,_0x3b6730._0x177731,_0x3b6730._0x4f2430,0xe3)]?.['type']===_0x2afb6b(0x594,0x604,0x535,0x5a8)&&_0x2a1575?.[_0x2afb6b(0x599,0x559,_0x3b6730._0x1cc704,_0x3b6730._0x30297c)]?createMcpOAuthProvider({'serverName':_0x5f01d9,'callbackUrl':_0x2a1575[_0x2afb6b(_0x3b6730._0x2c9150,0x5ab,0x5ba,_0x3b6730._0xa65443)][_0x2afb6b(_0x3b6730._0x55a838,_0x3b6730._0x5088d0,0x506,0x58f)],'storageDir':_0x2a1575[_0x2afb6b(_0x3b6730._0x80437d,_0x3b6730._0x241d56,0x606,0x5a8)][_0x9e46bb(_0x3b6730._0x572e26,0xd0,_0x3b6730._0x21ddae,_0x3b6730._0x155c6b)],'config':_0x37d345[_0x9e46bb(0xfc,0xdc,0xdf,_0x3b6730._0x1253c3)],'onRedirect':_0x55f007=>_0x2a1575[_0x2afb6b(0x50c,0x56e,0x5cc,0x5a8)]?.[_0x2afb6b(0x553,0x608,0x530,0x582)](_0x5f01d9,_0x55f007)}):void 0x0,_0x2fbd54=new StreamableHTTPClientTransport(new URL(_0x37d345[_0x2afb6b(0x530,0x593,0x4de,_0x3b6730._0x4eee9a)]),{'authProvider':_0x37a1b2,'requestInit':_0x4d2e7f?{'headers':_0x4d2e7f}:void 0x0});await _0x55fd79[_0x9e46bb(0x184,0x19b,0x13f,0x169)](_0x2fbd54);}else{if(!_0x37d345['command'])throw new Error(_0x2afb6b(_0x3b6730._0x467ebc,0x5f0,_0x3b6730._0x2b7679,0x5ba)+_0x5f01d9+_0x2afb6b(_0x3b6730._0x309336,_0x3b6730._0x3ce159,_0x3b6730._0x7239f4,0x4c9));const _0x291e6f=new StdioClientTransport({'command':_0x37d345[_0x9e46bb(0x132,_0x3b6730._0x9b9404,0x14b,0x11f)],'args':_0x37d345[_0x9e46bb(_0x3b6730._0x21f2b9,0x96,0x100,0xed)]??[],'env':_0x37d345['env']});await _0x55fd79[_0x9e46bb(_0x3b6730._0x459d9c,_0x3b6730._0x2af65b,_0x3b6730._0x31e6f9,0x134)](_0x291e6f);}return{async 'listTools'(){return await _0x55fd79['listTools']();},async 'callTool'(_0xeb5795){const _0x225b29={_0x24691a:0x1ee,_0x29bd5d:0x3d};function _0x2110e5(_0x2a7a6a,_0x21d3cd,_0x4f24e8,_0x1d071b){return _0x9e46bb(_0x4f24e8,_0x21d3cd-0x13c,_0x1d071b-_0x225b29._0x24691a,_0x1d071b-_0x225b29._0x29bd5d);}function _0x56cfe6(_0x5d1fe5,_0x1163c6,_0x5b5e5f,_0x325434){return _0x9e46bb(_0x5d1fe5,_0x1163c6-_0x1d2411._0x5847ba,_0x5b5e5f-0x21f,_0x325434-0x13a);}return await _0x55fd79[_0x2110e5(0x31a,_0x11bd08._0xc44182,0x329,_0x11bd08._0x46712d)]({'method':_0x2110e5(0x35a,0x2cd,0x356,0x2cf),'params':_0xeb5795},CallToolResultSchema);},async 'close'(){function _0x28c80a(_0x26339e,_0x486d9d,_0x5375e0,_0x1b4ddf){return _0x2afb6b(_0x26339e-_0x727fe3._0x3b271e,_0x5375e0,_0x5375e0-0x1dc,_0x1b4ddf- -_0x727fe3._0x4be8f0);}await _0x55fd79[_0x28c80a(_0x278f77._0x130129,_0x278f77._0x5973ba,_0x278f77._0x2569bc,0x4bf)]();}};}async function createMcpToolsFromServers(_0x4bbc23){const _0x102425={_0x35dfae:0x1d5,_0x417389:0x26d,_0x4fa1cf:0xdf,_0x6951d0:0x86,_0x155fa7:0xf3,_0x36dcde:0x181,_0x3422be:0x150,_0x304c8a:0x1bb,_0x29f0a1:0x2bf,_0xca35bf:0x21c,_0x769818:0x46,_0x489035:0x64,_0x111594:0x40,_0x186a94:0x1a5,_0x4d27cb:0x1b1,_0x1b7763:0x98,_0x3fdcbb:0xdc,_0x350b49:0xf1,_0x19f0bc:0xf4,_0x281737:0x78,_0x5e9ef8:0x1e5,_0x33d82e:0x13f,_0x4a6bda:0x161,_0x26ccea:0xf8,_0x19d4b1:0x137,_0x47cb99:0xde},_0x442f94={_0x2f72a8:0x4c7,_0x4a79b1:0x4a5,_0x35d87d:0x1d9,_0xbe6c16:0x121,_0x15ffe1:0x1b2},_0x387846={_0x188785:0x1cd,_0xa5c026:0x49},_0x9e5749={_0x4e34ca:0x189},_0x970586={_0x5b974e:0x26,_0x42bcc7:0xda,_0x3b0e5d:0x1e7},_0x357534={_0x4840c5:0x168,_0x835304:0x91,_0x56c872:0x53e},_0x2e7c6d=_0x4bbc23[_0x2ac518(_0x102425._0x35dfae,0x1f5,0x2c9,_0x102425._0x417389)]??connectMcpServer,_0x503f3b=[],_0x467b1b={};function _0x240d41(_0x18770d,_0x53a92f,_0x36b19a,_0x4d9808){return _0x44530c(_0x4d9808,_0x53a92f-_0x357534._0x4840c5,_0x36b19a-_0x357534._0x835304,_0x18770d- -_0x357534._0x56c872);}const _0x41493d=[];for(const [_0x4d46c5,_0x3ea35e]of Object['entries'](_0x4bbc23[_0x240d41(-0xa0,-_0x102425._0x4fa1cf,-_0x102425._0x6951d0,-_0x102425._0x155fa7)]??{})){if(_0x3ea35e[_0x2ac518(0x12c,_0x102425._0x36dcde,_0x102425._0x3422be,_0x102425._0x304c8a)]===![]){_0x467b1b[_0x4d46c5]={'status':_0x2ac518(_0x102425._0x29f0a1,0x2d2,_0x102425._0xca35bf,0x259)};continue;}try{const _0x5d7db4=await _0x2e7c6d(_0x4d46c5,_0x3ea35e,_0x4bbc23[_0x2ac518(0xbe,0x1e1,0x1ed,0x151)]);_0x503f3b[_0x2ac518(0x21a,0x1ff,0x1d6,0x1d7)](_0x5d7db4);const _0x49327f=await _0x5d7db4[_0x240d41(-_0x102425._0x769818,-_0x102425._0x489035,_0x102425._0x111594,0x47)]();let _0x169f10=0x0;for(const _0x56cda8 of _0x49327f[_0x2ac518(_0x102425._0x186a94,_0x102425._0x4d27cb,0x24d,0x235)]){const _0x208ca6=_0x4bbc23[_0x240d41(-_0x102425._0x1b7763,-_0x102425._0x3fdcbb,-0xb3,-_0x102425._0x350b49)]?.[_0x4d46c5]?.[_0x56cda8[_0x240d41(-_0x102425._0x19f0bc,-0xa3,-0xc0,-0x152)]];if(_0x208ca6===![])continue;_0x169f10+=0x1,_0x41493d[_0x240d41(-0xb5,-0x2c,-0x131,-_0x102425._0x281737)](createMcpTool({'serverName':resolvePrefix(_0x4d46c5,_0x3ea35e),'tool':_0x56cda8,'client':_0x5d7db4}));}_0x467b1b[_0x4d46c5]={'status':_0x2ac518(_0x102425._0x5e9ef8,_0x102425._0x33d82e,0x109,_0x102425._0x4a6bda),'toolCount':_0x169f10};}catch(_0x115a22){_0x467b1b[_0x4d46c5]=isUnauthorizedError(_0x115a22)?{'status':'authRequired','message':getErrorMessage(_0x115a22)}:{'status':_0x240d41(-_0x102425._0x26ccea,-_0x102425._0x19d4b1,-_0x102425._0x47cb99,-0xc4),'message':getErrorMessage(_0x115a22)};}}function _0x2ac518(_0x1587e6,_0x4dece5,_0x539c65,_0x213dfc){return _0x452c58(_0x213dfc- -_0x970586._0x5b974e,_0x1587e6,_0x539c65-_0x970586._0x42bcc7,_0x213dfc-_0x970586._0x3b0e5d);}return{'tools':_0x41493d,'servers':_0x467b1b,async 'close'(){function _0x462dad(_0x6d5f4c,_0x47d2d6,_0x3737dc,_0x40df96){return _0x2ac518(_0x3737dc,_0x47d2d6-_0x9e5749._0x4e34ca,_0x3737dc-0x1de,_0x40df96-0x32f);}function _0x5c43c0(_0x5a5c8a,_0x22b3c1,_0x2df309,_0x4f9ace){return _0x2ac518(_0x2df309,_0x22b3c1-_0x387846._0x188785,_0x2df309-0x5d,_0x4f9ace- -_0x387846._0xa5c026);}await Promise[_0x462dad(0x436,0x450,_0x442f94._0x2f72a8,_0x442f94._0x4a79b1)](_0x503f3b[_0x5c43c0(0x150,_0x442f94._0x35d87d,_0x442f94._0xbe6c16,_0x442f94._0x15ffe1)](_0x5ca86c=>_0x5ca86c[_0x5c43c0(0x13b,0x162,0x20f,0x1b6)]()));}};}function getCommand(_0x582107){const _0x55c900={_0x4e0e8e:0x167,_0x25eefe:0x148,_0x354ef8:0x111,_0x298c5a:0xf8,_0x1f85a1:0x1bc,_0x3f826b:0x14f},_0x69d5e3={_0x4b26dd:0x11e,_0x638222:0x1c6};function _0x27db43(_0x6c2b53,_0x43caa2,_0x14541d,_0x2b53e8){return _0x44530c(_0x2b53e8,_0x43caa2-0xbd,_0x14541d-0x9a,_0x6c2b53- -0x80);}function _0x1f5e79(_0x4a19e5,_0x584535,_0x3f26a9,_0x3efce6){return _0x452c58(_0x4a19e5- -0x3e0,_0x3efce6,_0x3f26a9-_0x69d5e3._0x4b26dd,_0x3efce6-_0x69d5e3._0x638222);}if(_0x582107&&typeof _0x582107===_0x1f5e79(-_0x55c900._0x4e0e8e,-_0x55c900._0x25eefe,-_0x55c900._0x354ef8,-0x146)&&!Array[_0x1f5e79(-0x158,-_0x55c900._0x298c5a,-0x1e1,-0x111)](_0x582107)&&typeof _0x582107['command']===_0x1f5e79(-0x16c,-0x163,-0x1b1,-0x1b8))return _0x582107[_0x1f5e79(-0x141,-0x134,-_0x55c900._0x1f85a1,-_0x55c900._0x3f826b)];return'ls\x20-la';}function _0x44530c(_0x2d6241,_0x3dea1a,_0x43f76a,_0x2a2869){return _0x5314(_0x2a2869-0x284,_0x2d6241);}var MOCK_WORKSPACE_LISTING=[_0x44530c(0x4c2,0x4d5,0x536,0x526),'docs/plans/2026-04-16-mock-agent-loop-implementation.md','docs/plans/2026-04-16-public-tools-api-implementation.md',_0x452c58(0x249,0x1cc,0x2a4,0x251),_0x452c58(0x1ab,0x152,0x17b,0x228),'src/formats/message-format.ts','src/examples/demo.ts',_0x452c58(0x182,0x206,0x1e8,0x162),_0x452c58(0x2a0,0x225,0x29b,0x312),'src/tools/mock-tool-runtime.ts',_0x44530c(0x409,0x38d,0x496,0x412),_0x452c58(0x1dd,0x223,0x187,0x271),_0x452c58(0x245,0x24c,0x28b,0x23f),_0x44530c(0x5a5,0x569,0x529,0x511),_0x452c58(0x199,0x170,0x1e9,0x112),_0x44530c(0x465,0x4f5,0x4cf,0x4fd),_0x452c58(0x1b0,0x171,0x1d6,0x228)][_0x44530c(0x4b6,0x4a4,0x404,0x41f)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x452c58(0x252,0x2d6,0x210,0x287),'description':_0x452c58(0x1b4,0x221,0x21e,0x1e0),'input_schema':{'type':_0x452c58(0x279,0x279,0x208,0x299),'properties':{'command':{'type':_0x452c58(0x274,0x29e,0x2a9,0x273)}},'required':[_0x452c58(0x29f,0x2fd,0x330,0x293)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x3efd96){return{'output':_0x3efd96,'structured':{'value':_0x3efd96}};}function createUnknownToolResult(_0x3524e1){const _0x510fee={_0x4a81b9:0x39d,_0x32b832:0x371,_0xa62ea:0x1ff,_0x3c9c9b:0x235,_0xdc5161:0x1ed},_0x59a573={_0x173522:0x11f,_0xba9fe3:0xea,_0xf0a4a1:0x211},_0xe48a1={_0x1fb9f2:0x11c,_0x3dfb5d:0xbd,_0x43b713:0xd7};function _0x35bfbe(_0x3bca98,_0x5c4f30,_0x5e7ec7,_0x43e5b5){return _0x44530c(_0x43e5b5,_0x5c4f30-_0xe48a1._0x1fb9f2,_0x5e7ec7-_0xe48a1._0x3dfb5d,_0x5e7ec7- -_0xe48a1._0x43b713);}function _0x1cbe66(_0x4d5604,_0x22b2ad,_0x288a2e,_0x1b0b65){return _0x44530c(_0x22b2ad,_0x22b2ad-_0x59a573._0x173522,_0x288a2e-_0x59a573._0xba9fe3,_0x288a2e- -_0x59a573._0xf0a4a1);}return{'callId':_0x3524e1['id'],'toolName':_0x3524e1[_0x35bfbe(0x3c8,_0x510fee._0x4a81b9,0x373,_0x510fee._0x32b832)],'status':_0x1cbe66(_0x510fee._0xa62ea,0x20c,_0x510fee._0x3c9c9b,0x1fc),'output':'Unknown\x20tool:\x20'+_0x3524e1[_0x1cbe66(0x2be,_0x510fee._0xdc5161,0x239,0x24d)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x224f15,_0x15100f){const _0x4ef0ae={_0x30c3c9:0x3b8},_0x19a9e2={_0x16c050:0x15b,_0x2cf488:0x5a};function _0x18942a(_0x21fe9a,_0x452100,_0x594bc5,_0x1eaaf9){return _0x44530c(_0x452100,_0x452100-_0x19a9e2._0x16c050,_0x594bc5-_0x19a9e2._0x2cf488,_0x594bc5- -0x5);}return{'callId':_0x224f15['id'],'toolName':_0x224f15['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x224f15[_0x18942a(0x3f5,0x467,0x41c,_0x4ef0ae._0x30c3c9)]),'exitCode':0x0},'chunks':[_0x15100f],'meta':createMeta()};}function createMockToolRuntime(){const _0xd0a36c={_0x34445d:0x19f,_0x33540d:0x107},_0x142ec4={_0x4a5a90:0x343},_0x4a522f={_0x76c2bb:0x1be,_0x3ca9cd:0x1f1},_0x116311={_0x2da708:0x38a},_0x19439a=async(_0xd8f28b,_0x49bea9)=>{if(_0xd8f28b[_0x5bf724(-_0x4a522f._0x76c2bb,-_0x4a522f._0x3ca9cd,-0x1c4,-0x19f)]!=='Bash')return createUnknownToolResult(_0xd8f28b);const _0x3bd681=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x5bf724(_0x2f97c4,_0x2de78c,_0x2a2696,_0x53ef36){return _0x5314(_0x2a2696- -_0x116311._0x2da708,_0x53ef36);}return createSuccessToolResult(_0xd8f28b,_0x3bd681);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x5c4962,_0xaa5e2e){function _0x254bdb(_0x3f1565,_0x1743cf,_0x4d394f,_0x138b9a){return _0x5314(_0x3f1565- -_0x142ec4._0x4a5a90,_0x1743cf);}return await Promise[_0x254bdb(-_0xd0a36c._0x34445d,-0x167,-_0xd0a36c._0x33540d,-0x146)](_0x5c4962['map'](async _0x43565e=>{return await _0x19439a(_0x43565e,_0xaa5e2e);}));},async 'execute'(_0x184d58,_0x214182){return await _0x19439a(_0x184d58,_0x214182);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x37566b={_0x4276d9:0x4ab,_0x53fc99:0x537},_0x2c6d12={_0x488b5c:0xd8};delegatedRunCounter+=0x1;function _0x4bd980(_0x5b9649,_0x3a5f91,_0x334291,_0x278ea1){return _0x452c58(_0x278ea1-0x31b,_0x334291,_0x334291-0x1f4,_0x278ea1-_0x2c6d12._0x488b5c);}return _0x4bd980(0x569,_0x37566b._0x4276d9,0x5b4,_0x37566b._0x53fc99)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x2159ab,_0x40be3b){return typeof _0x2159ab==='function'?await _0x2159ab(_0x40be3b):_0x2159ab;}function getDelegatedAgentDefinition(_0x5b998f,_0x3f469f){const _0x59180f={_0x1cc53d:0x3ea,_0x3589bc:0x411,_0x3c935e:0x471},_0x49e9a6={_0x30b896:0x2f};function _0x4035b7(_0x456928,_0x5ec80c,_0x3f4a69,_0x5da697){return _0x44530c(_0x5da697,_0x5ec80c-0xc1,_0x3f4a69-_0x49e9a6._0x30b896,_0x3f4a69- -0x7d);}return _0x5b998f[_0x4035b7(_0x59180f._0x1cc53d,_0x59180f._0x3589bc,0x475,_0x59180f._0x3c935e)]?.[_0x3f469f];}function createRunSummary(_0x2df3f6){const _0x1b8ea6={_0x480d27:0x5c,_0x5bc19b:0x2e,_0x317129:0xba,_0x396a5b:0x4b,_0x39998f:0x97,_0x553d5c:0x2f,_0x15214a:0x1b,_0xa06698:0x475,_0x413cdd:0x45c,_0x589ba5:0x420,_0x1f2029:0x50c,_0x55d3aa:0x4b9,_0x165fd1:0x4e7,_0x59e7c7:0xa0,_0x210fde:0xa};function _0xefa2de(_0x7612b9,_0x2e98a7,_0x40adf1,_0x2ba0d2){return _0x452c58(_0x7612b9-0x291,_0x40adf1,_0x40adf1-0x1bf,_0x2ba0d2-0xc3);}function _0x3ef530(_0x196564,_0x297ab4,_0x3b9b0b,_0x42bcb5){return _0x44530c(_0x42bcb5,_0x297ab4-0x190,_0x3b9b0b-0x1b0,_0x297ab4- -0x468);}return{'runId':_0x2df3f6['runId'],'agentId':_0x2df3f6[_0x3ef530(-0x2c,_0x1b8ea6._0x480d27,-_0x1b8ea6._0x5bc19b,_0x1b8ea6._0x317129)],'sessionId':_0x2df3f6[_0x3ef530(0xa7,_0x1b8ea6._0x396a5b,0xd6,0x3c)],'status':_0x2df3f6[_0x3ef530(-0x45,0x4,-_0x1b8ea6._0x39998f,0x1e)],'parentSessionId':_0x2df3f6['parentSessionId'],..._0x2df3f6['originToolCallId']!==void 0x0?{'originToolCallId':_0x2df3f6[_0x3ef530(_0x1b8ea6._0x553d5c,-_0x1b8ea6._0x15214a,-0x66,-0x27)]}:{},..._0x2df3f6['errorMessage']!==void 0x0?{'errorMessage':_0x2df3f6[_0xefa2de(_0x1b8ea6._0xa06698,_0x1b8ea6._0x413cdd,0x4d8,_0x1b8ea6._0x589ba5)]}:{},..._0x2df3f6['result']?.[_0xefa2de(_0x1b8ea6._0x1f2029,_0x1b8ea6._0x55d3aa,0x535,_0x1b8ea6._0x165fd1)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x2df3f6[_0x3ef530(_0x1b8ea6._0x59e7c7,0x51,-_0x1b8ea6._0x210fde,0x35)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0xb18764,_0x7d9a13){const _0xb22314={_0x9e3049:0x22,_0xb575d5:0xd5,_0x25274a:0x26,_0x55ff22:0x78},_0x40c33b={_0x4b272c:0x17b},_0x1585b1={_0x388428:0x194};function _0x1ec64e(_0x3f582d,_0x17454f,_0x8eaa6e,_0xabc6ec){return _0x44530c(_0x17454f,_0x17454f-0x145,_0x8eaa6e-_0x1585b1._0x388428,_0x8eaa6e- -0x4d2);}const _0x51a772=createRunSummary(_0xb18764);function _0x438a48(_0x3b0acf,_0x2e036b,_0x1682da,_0x499ea3){return _0x452c58(_0x499ea3- -0x22a,_0x2e036b,_0x1682da-_0x40c33b._0x4b272c,_0x499ea3-0x1af);}const _0xca4edb=_0x51a772['finalMessageText'];return createToolOutput(typeof _0xca4edb===_0x438a48(_0xb22314._0x9e3049,_0xb22314._0xb575d5,-_0xb22314._0x25274a,0x4a)&&_0xca4edb[_0x1ec64e(-0x114,-0xe9,-_0xb22314._0x55ff22,-0x3f)]>0x0?_0xca4edb:_0x7d9a13,_0x51a772);}function getRunTerminalErrorMessage(_0x26189c){const _0x169419={_0x1a17f0:0x165,_0x32be5a:0x1ee,_0x2badc6:0x17c,_0x293710:0x9f,_0x104b55:0x1be,_0x53ce4b:0x152,_0x3229b3:0x11a,_0x15a990:0xa9,_0x4fc31c:0x15b,_0x5165bc:0x148,_0x357c22:0x1ee},_0x1bc5f6={_0x13ea6d:0x329,_0x1bd786:0x69},_0x2133a4={_0x327420:0xf8,_0x56a281:0x18},_0x3fb257=_0x26189c?.[_0x3dfea7(-0x162,-0x1b3,-_0x169419._0x1a17f0,-_0x169419._0x32be5a)][_0x3dfea7(-0x109,-_0x169419._0x2badc6,-0x11d,-_0x169419._0x293710)]['at'](-0x1);if(_0x3fb257?.['status']===_0x3dfea7(-0x16f,-0x1c2,-_0x169419._0x104b55,-0x1f6)&&_0x3fb257[_0x439315(-0x19d,-_0x169419._0x53ce4b,-_0x169419._0x3229b3,-0x20c)][_0x439315(-0xeb,-_0x169419._0x2badc6,-_0x169419._0x15a990,-0x119)]()[_0x3dfea7(-_0x169419._0x4fc31c,-0x1a0,-_0x169419._0x5165bc,-_0x169419._0x357c22)]>0x0)return _0x3fb257['output'];function _0x439315(_0x3d262c,_0x372999,_0x577379,_0x3c784d){return _0x44530c(_0x3c784d,_0x372999-_0x2133a4._0x327420,_0x577379-_0x2133a4._0x56a281,_0x3d262c- -0x5d1);}function _0x3dfea7(_0xaf567a,_0x5f1410,_0x3348fc,_0x334c83){return _0x452c58(_0xaf567a- -_0x1bc5f6._0x13ea6d,_0x3348fc,_0x3348fc-0x58,_0x334c83-_0x1bc5f6._0x1bd786);}return void 0x0;}function formatAbortedRunMessage(_0x1598ac,_0x26cf75){const _0x511b85={_0x31a072:0xa7,_0x394e2d:0x1e,_0x4e148f:0x90,_0x22d321:0xfe,_0xa09717:0x50},_0x492c54={_0x27d935:0x68},_0x243734={_0x218213:0x4a,_0xfb0469:0x118},_0x31481b='Agent\x20run\x20'+_0x1598ac+_0x1b69ef(0x86,_0x511b85._0x31a072,0x30,_0x511b85._0x394e2d);function _0x404857(_0x1f751f,_0x450144,_0x32e1d5,_0x5efbc6){return _0x44530c(_0x5efbc6,_0x450144-0x38,_0x32e1d5-_0x243734._0x218213,_0x1f751f-_0x243734._0xfb0469);}if(!_0x26cf75||_0x26cf75[_0x1b69ef(0x98,_0x511b85._0x4e148f,0x9e,_0x511b85._0x22d321)]()[_0x1b69ef(0xe5,0x88,_0x511b85._0xa09717,0x72)]===0x0||_0x26cf75===_0x31481b)return _0x31481b;function _0x1b69ef(_0xa84efe,_0x2e9008,_0x39bc15,_0x4ef0c5){return _0x44530c(_0x39bc15,_0x2e9008-_0x492c54._0x27d935,_0x39bc15-0x115,_0x4ef0c5- -0x3e8);}return _0x31481b+'\x20Cause:\x20'+_0x26cf75;}function createAssignTaskTool(_0x4ba3d4){const _0x36395c={_0x19bd01:0x21,_0x32aff2:0x3a,_0x193b2c:0x122,_0x173d32:0x8f,_0x354d3a:0x1e,_0x59c9f3:0x4c,_0x1c88a8:0x1f,_0x32627d:0x4,_0x4b2d23:0x6,_0x28a824:0x27,_0x331712:0x3},_0x160bea={_0x1fc1a4:0x440,_0x254478:0x4a8,_0x193c98:0x3e5,_0x418991:0x42f,_0x4a0a47:0x4bb,_0x3ca3de:0x49c,_0x3a28f0:0x355,_0x2554b7:0x370,_0x2d2b05:0x3d3,_0x42c223:0x433,_0x372ae8:0x42c,_0x481a0e:0x486,_0x367e12:0x459,_0x4a86dc:0x341,_0x1a73e3:0x2bd,_0x4dd946:0x347,_0x437f3d:0x3bc,_0x2b93bf:0x330,_0x34e085:0x3b7,_0x1a6c22:0x314,_0xc5563f:0x3d0,_0x10c024:0x44f,_0x3f8c7b:0x39f,_0x29462c:0x3f5,_0x5b81fd:0x466,_0x21e7f4:0x3ff,_0x324b64:0x454,_0x1b86fe:0x3dc,_0x29a335:0x3e6,_0x536649:0x37c,_0x3bb6d0:0x450,_0x57a2fa:0x31c,_0x868882:0x391,_0x565203:0x30a,_0x4a300a:0x327,_0x2931c3:0x377,_0x437c97:0x256,_0x49f7c9:0x2f8,_0x1fc6a2:0x3c7,_0x4fd16d:0x4a9,_0x4c49c6:0x4a1,_0x2cfde8:0x409,_0x19d435:0x2fe,_0x1d71f9:0x2d3,_0x4e0d7c:0x382,_0x4810f6:0x3e1,_0x2028fb:0x407,_0xe4f26:0x2cd,_0x220230:0x350,_0x25c2b6:0x3e1,_0x3fe4fc:0x4b6,_0x13c00e:0x418,_0x2a6b35:0x3a2,_0x560b6a:0x448,_0x1fa69d:0x34f,_0x2fe24f:0x3e7,_0x41a7c7:0x37a,_0x364c57:0x32f,_0x2ac73b:0x45e,_0xc6141e:0x453,_0x33431b:0x373,_0x5432df:0x39c,_0x4dc803:0x3f4,_0x445087:0x455,_0x2949d1:0x3a3,_0x34c090:0x48f},_0x516744={_0x288bac:0x2f1,_0x18872b:0x264,_0x2b1a39:0x1c9},_0x4260cd={_0x547840:0x12b,_0x235b9f:0x142,_0x49ff24:0x4b4},_0x28a8cc={_0x3e6631:0x1b2,_0x4b961f:0x1,_0x20b113:0x1cb};function _0x3eec45(_0x1ba834,_0x56d34c,_0x34d27e,_0x3530f2){return _0x452c58(_0x34d27e- -_0x28a8cc._0x3e6631,_0x3530f2,_0x34d27e-_0x28a8cc._0x4b961f,_0x3530f2-_0x28a8cc._0x20b113);}function _0x58ac69(_0x1c4fc9,_0x35df9e,_0x1a1059,_0x23bb4b){return _0x44530c(_0x35df9e,_0x35df9e-_0x4260cd._0x547840,_0x1a1059-_0x4260cd._0x235b9f,_0x1c4fc9- -_0x4260cd._0x49ff24);}return defineTool({'name':_0x58ac69(0xc,_0x36395c._0x19bd01,-0x5b,-0x5d),'description':_0x3eec45(_0x36395c._0x32aff2,_0x36395c._0x193b2c,_0x36395c._0x173d32,0x8c),'inputSchema':{'type':'object','properties':{'agentId':{'type':_0x58ac69(0x4c,0x14,_0x36395c._0x354d3a,0x62)},'task':{'type':_0x58ac69(_0x36395c._0x59c9f3,0x4,0x64,_0x36395c._0x1c88a8)}},'required':[_0x3eec45(_0x36395c._0x32627d,0x43,0x86,0xb5),_0x3eec45(-_0x36395c._0x4b2d23,0x6,-_0x36395c._0x28a824,-_0x36395c._0x331712)]},async *'execute'(_0x3de61e,_0x1f0710){const _0x520a56={_0x3eb2e0:0xda,_0x25ce7a:0x168},_0x517343={_0x3f8b90:0x2bb},_0x26cbf5=createDelegatedRunId(),_0x2dea9c={'agentId':_0x3de61e[_0x9f9713(0x3d4,_0x160bea._0x1fc1a4,_0x160bea._0x254478,_0x160bea._0x193c98)],'parentSessionId':_0x1f0710[_0x9f9713(0x4c4,_0x160bea._0x418991,_0x160bea._0x4a0a47,_0x160bea._0x3ca3de)],'runId':_0x26cbf5,..._0x1f0710[_0x24919c(_0x160bea._0x3a28f0,0x365,_0x160bea._0x2554b7,_0x160bea._0x2d2b05)]!==void 0x0?{'toolCallId':_0x1f0710['toolCallId']}:{}},_0x1e431c=getDelegatedAgentDefinition(_0x4ba3d4,_0x3de61e['agentId']);if(!_0x1e431c)throw new ToolExecutionError(_0x9f9713(_0x160bea._0x42c223,_0x160bea._0x372ae8,0x3e7,0x41c)+_0x3de61e[_0x9f9713(0x484,0x440,_0x160bea._0x481a0e,_0x160bea._0x367e12)],{'agentId':_0x3de61e[_0x24919c(_0x160bea._0x4a86dc,_0x160bea._0x1a73e3,0x30d,_0x160bea._0x4dd946)]});function _0x9f9713(_0x53043a,_0x1f6df6,_0x26cb3a,_0x21b53e){return _0x58ac69(_0x1f6df6-0x430,_0x21b53e,_0x26cb3a-0x3e,_0x21b53e-0x17a);}function _0x24919c(_0x4cf3ca,_0x1b167a,_0x5dbbbd,_0x3f24fa){return _0x3eec45(_0x4cf3ca-0xed,_0x1b167a-0x57,_0x4cf3ca-_0x517343._0x3f8b90,_0x1b167a);}const _0x379a77=new Agent(await resolveDelegatedAgentOptions(_0x1e431c,_0x2dea9c));let _0x85e8e4={'runId':_0x26cbf5,'agentId':_0x3de61e[_0x24919c(0x341,_0x160bea._0x437f3d,0x2c9,0x3c6)],'sessionId':_0x379a77[_0x24919c(_0x160bea._0x2b93bf,0x354,_0x160bea._0x34e085,_0x160bea._0x1a6c22)],'status':_0x9f9713(0x375,_0x160bea._0xc5563f,0x440,_0x160bea._0x10c024),'parentSessionId':_0x1f0710[_0x9f9713(_0x160bea._0x3f8c7b,_0x160bea._0x418991,_0x160bea._0x29462c,_0x160bea._0x5b81fd)],..._0x1f0710['toolCallId']!==void 0x0?{'originToolCallId':_0x1f0710[_0x9f9713(_0x160bea._0x21e7f4,_0x160bea._0x324b64,0x49d,0x489)]}:{}};const _0x48f972=new AbortController(),_0x2c60bd=addAbortListener(_0x1f0710['signal'],()=>{function _0x721d0e(_0x738f21,_0x44b01b,_0x516f73,_0x1aed84){return _0x9f9713(_0x738f21-_0x520a56._0x3eb2e0,_0x44b01b- -_0x520a56._0x25ce7a,_0x516f73-0x33,_0x738f21);}_0x48f972['abort'](_0x1f0710[_0x721d0e(_0x516744._0x288bac,_0x516744._0x18872b,_0x516744._0x2b1a39,0x296)]?.['reason']);});yield createToolOutput(_0x9f9713(_0x160bea._0x1b86fe,_0x160bea._0x29a335,_0x160bea._0x536649,_0x160bea._0x3bb6d0)+_0x85e8e4[_0x24919c(0x3a2,_0x160bea._0x57a2fa,_0x160bea._0x868882,0x3f3)]+'.',{'runId':_0x85e8e4['runId'],'agentId':_0x85e8e4['agentId'],'sessionId':_0x85e8e4['sessionId'],'status':_0x85e8e4[_0x24919c(0x2e9,_0x160bea._0x565203,_0x160bea._0x4a300a,_0x160bea._0x2931c3)]});try{const _0x470a8f=await _0x379a77[_0x24919c(0x347,0x30a,0x388,0x2ea)](_0x3de61e[_0x24919c(0x294,_0x160bea._0x437c97,0x302,_0x160bea._0x49f7c9)],{'signal':_0x48f972[_0x9f9713(0x3ed,0x3cc,_0x160bea._0x1fc6a2,0x3f3)]});_0x85e8e4={..._0x85e8e4,'status':_0x470a8f['status'],'result':_0x470a8f};if(_0x470a8f['status']!=='completed'){const _0xded9ff=getRunTerminalErrorMessage(_0x470a8f),_0x2ac7ea=formatAbortedRunMessage(_0x85e8e4[_0x9f9713(_0x160bea._0x4fd16d,_0x160bea._0x4c49c6,0x532,0x469)],_0xded9ff);throw new ToolExecutionError(_0x2ac7ea,{...createRunSummary(_0x85e8e4),'aborted':!![],'errorMessage':_0x2ac7ea});}return createRunSummaryOutput(_0x85e8e4,'Agent\x20run\x20'+_0x85e8e4[_0x9f9713(_0x160bea._0x2cfde8,_0x160bea._0x4c49c6,0x439,0x535)]+_0x24919c(0x32b,_0x160bea._0x19d435,0x3c6,_0x160bea._0x1d71f9));}catch(_0x4d4f04){if(_0x4d4f04 instanceof ToolExecutionError)throw _0x4d4f04;if(isAbortError(_0x4d4f04)||_0x48f972[_0x24919c(0x2cd,0x2ef,0x2ec,0x362)][_0x9f9713(_0x160bea._0x4e0d7c,_0x160bea._0x4810f6,_0x160bea._0x2028fb,0x3c1)]||_0x1f0710[_0x24919c(_0x160bea._0xe4f26,0x315,0x2ef,_0x160bea._0x220230)][_0x9f9713(0x35d,_0x160bea._0x25c2b6,0x3fc,0x439)]){const _0x4c4ddd=getRunTerminalErrorMessage(_0x85e8e4[_0x9f9713(0x493,0x435,_0x160bea._0x3fe4fc,_0x160bea._0x13c00e)])??(_0x4d4f04 instanceof Error?_0x4d4f04['message']:String(_0x4d4f04)),_0x49d2e1=formatAbortedRunMessage(_0x85e8e4[_0x24919c(_0x160bea._0x2a6b35,0x36d,0x398,0x3a4)],_0x4c4ddd);_0x85e8e4={..._0x85e8e4,'status':_0x9f9713(_0x160bea._0x560b6a,0x3e1,_0x160bea._0x1fa69d,_0x160bea._0x2fe24f),'errorMessage':_0x49d2e1};throw new ToolExecutionError(_0x49d2e1,{...createRunSummary(_0x85e8e4),'aborted':!![],'errorMessage':_0x49d2e1});}const _0x2e5c7a=getRunTerminalErrorMessage(_0x85e8e4[_0x24919c(0x336,0x37b,_0x160bea._0x41a7c7,_0x160bea._0x364c57)])??(_0x4d4f04 instanceof Error?_0x4d4f04[_0x9f9713(_0x160bea._0x2ac73b,_0x160bea._0xc6141e,0x3f5,0x3eb)]:String(_0x4d4f04))??'Agent\x20run\x20'+_0x85e8e4[_0x24919c(0x3a2,_0x160bea._0x33431b,_0x160bea._0x5432df,0x30e)]+_0x9f9713(0x48d,_0x160bea._0x4dc803,_0x160bea._0x445087,_0x160bea._0x2949d1);_0x85e8e4={..._0x85e8e4,'status':_0x9f9713(0x3ff,0x419,0x3be,_0x160bea._0x34c090),'errorMessage':_0x2e5c7a};throw new ToolExecutionError(_0x2e5c7a,{...createRunSummary(_0x85e8e4),'errorMessage':_0x2e5c7a});}finally{_0x2c60bd();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x6dc31a){return[createAssignTaskTool(_0x6dc31a)];}import*as _0x592476 from'path';function buildDescription2(_0x4c486a){const _0x564f41={_0x259773:0x5c9,_0x2da653:0x59c,_0x58de03:0x5a5,_0x4aa02a:0xb4,_0xdf21f2:0xcd,_0x2ba041:0xf4,_0x153e40:0x104,_0x14ef96:0x554,_0x2dbd4f:0x614,_0x446c8b:0x68b,_0x591592:0x601,_0x37beac:0x61b,_0x59c8f9:0x5f9,_0x3d2318:0x60e,_0x720498:0x60a,_0x196974:0x150,_0x3eaba7:0x146},_0x4e291f={_0x1c1452:0xd1,_0x59a3e6:0xba},_0x14ded6={_0x3444d5:0x8c,_0x50920d:0x14b};function _0xd61641(_0x2beade,_0x324e33,_0x17cba2,_0x140b9b){return _0x44530c(_0x324e33,_0x324e33-_0x14ded6._0x3444d5,_0x17cba2-0xb5,_0x17cba2-_0x14ded6._0x50920d);}function _0x546c8d(_0x35d3c9,_0x49ad74,_0x451224,_0x412357){return _0x452c58(_0x49ad74- -_0x4e291f._0x1c1452,_0x451224,_0x451224-_0x4e291f._0x59a3e6,_0x412357-0x3f);}if(_0x4c486a[_0xd61641(_0x564f41._0x259773,_0x564f41._0x2da653,_0x564f41._0x58de03,0x5cd)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';const _0x37e191=[_0x546c8d(_0x564f41._0x4aa02a,_0x564f41._0xdf21f2,_0x564f41._0x2ba041,_0x564f41._0x153e40),_0xd61641(0x567,_0x564f41._0x14ef96,0x597,0x525),_0xd61641(_0x564f41._0x2dbd4f,_0x564f41._0x446c8b,_0x564f41._0x591592,0x608),_0xd61641(_0x564f41._0x37beac,_0x564f41._0x59c8f9,_0x564f41._0x3d2318,_0x564f41._0x720498),..._0x4c486a[_0x546c8d(0x185,_0x564f41._0x196974,0xeb,0x1b8)](_0xb24e4f=>'-\x20'+_0xb24e4f['name']+':\x20'+_0xb24e4f[_0x546c8d(0x166,0x13c,0x124,0xdd)])];return _0x37e191[_0x546c8d(_0x564f41._0x3eaba7,0xc2,0x95,0xae)]('\x0a');}function createLoadSkillTool(_0x5d35e6){const _0x3cc3be={_0x7d472b:0x321,_0x1ee67a:0x3b7,_0x4722ce:0x342,_0x1d4317:0x3ba,_0x523c5c:0x361,_0x2ec988:0x390,_0x1b2c7a:0x2bb,_0xe021c1:0x234,_0xaafe4e:0x241,_0x26f78c:0x290,_0x260089:0x2da,_0x4f0838:0x390,_0x1cebec:0x36b,_0x37c8d7:0x29a},_0x467275={_0x1c85fd:0x2e0,_0x32d8ff:0x31c,_0x165463:0x297,_0x25c517:0x24a,_0x19ae2c:0x273,_0x1ab695:0x2ab,_0x1499cd:0x309,_0x26d1ae:0x387,_0x257c1c:0x2b3,_0x41da10:0x2bb,_0x5da718:0x2f8,_0x8fc0d2:0x339,_0x33daeb:0x289,_0x542951:0x35c,_0xa3eb1c:0x2fa,_0x2a9127:0x332,_0x34e696:0x2c0,_0x4bc4f9:0x364,_0x3e5df3:0x37c,_0x29a4c1:0x1d0,_0x30319d:0x1e9,_0x4374e9:0x394,_0x3ae253:0x2ed,_0x3e600f:0x2db,_0x459a3a:0x2a5,_0x21a245:0x32a,_0x28b933:0x359,_0x31d343:0x2ea,_0x25cb92:0x282,_0x33bd98:0x2ac,_0x1c18ca:0x1fd,_0x144fb8:0x1a1,_0x5ea839:0x366,_0x4caf8a:0x3a3,_0x2021b6:0x40d,_0x2310a4:0x3d7,_0x22fe1f:0x26e,_0x30465c:0x22a,_0x4de94e:0x1aa,_0x9d7195:0x2df,_0x500bac:0x253,_0x3bfb59:0x2aa,_0x3403a5:0x1ed,_0x182d01:0x283,_0x3e92b3:0x197,_0x23cf86:0x24e},_0x287a99={_0x5be467:0x1cf,_0x5069a8:0x36},_0x59613f={_0xaddd60:0x39},_0x5a4cc2={_0x3ec062:0x61,_0x217844:0x15e},_0x1d319f={_0x16d9e3:0x125,_0xbd4d7b:0x13b},_0x1aeb27=new Map(_0x5d35e6[_0x1e3311(0x3c5,_0x3cc3be._0x7d472b,_0x3cc3be._0x1ee67a,_0x3cc3be._0x4722ce)][_0x1e3311(_0x3cc3be._0x1d4317,_0x3cc3be._0x7d472b,_0x3cc3be._0x523c5c,_0x3cc3be._0x2ec988)](_0x46551d=>[_0x46551d[_0x1e3311(0x33e,0x329,0x3a3,0x32d)],_0x46551d]));function _0x1e3311(_0x439794,_0x36858e,_0x1cf051,_0x3191d0){return _0x44530c(_0x1cf051,_0x36858e-_0x1d319f._0x16d9e3,_0x1cf051-_0x1d319f._0xbd4d7b,_0x3191d0- -0x11d);}function _0x2d03c6(_0x45e3c9,_0x172e8d,_0x102c6d,_0x79ff92){return _0x452c58(_0x79ff92-_0x5a4cc2._0x3ec062,_0x45e3c9,_0x102c6d-0x10,_0x79ff92-_0x5a4cc2._0x217844);}const _0x4d9042=buildDescription2(_0x5d35e6[_0x2d03c6(_0x3cc3be._0x1b2c7a,0x294,0x284,_0x3cc3be._0xe021c1)]);return defineTool({'name':'LoadSkill','description':_0x4d9042,'inputSchema':{'type':_0x2d03c6(0x33d,_0x3cc3be._0xaafe4e,_0x3cc3be._0x26f78c,_0x3cc3be._0x260089),'properties':{'name':{'type':_0x1e3311(_0x3cc3be._0x4f0838,0x429,_0x3cc3be._0x1cebec,0x3e3)}},'required':[_0x1e3311(_0x3cc3be._0x37c8d7,0x37b,0x35d,0x32d)]},async *'execute'(_0x35c154){const _0x18baa3=_0x1aeb27[_0x4b9a23(0x315,0x28f,_0x467275._0x1c85fd,_0x467275._0x32d8ff)](_0x35c154[_0x4b9a23(_0x467275._0x165463,0x255,_0x467275._0x25c517,_0x467275._0x19ae2c)]);function _0x1ccd3c(_0x23ae24,_0x1d9017,_0x10a5ee,_0x35d1dd){return _0x1e3311(_0x23ae24-0x16f,_0x1d9017-0x42,_0x1d9017,_0x35d1dd- -_0x59613f._0xaddd60);}if(!_0x18baa3){const _0x219dbb=Array[_0x4b9a23(_0x467275._0x1ab695,_0x467275._0x1499cd,0x27f,_0x467275._0x26d1ae)](_0x1aeb27[_0x1ccd3c(0x344,0x341,0x306,0x385)]())[_0x4b9a23(_0x467275._0x257c1c,0x22a,_0x467275._0x41da10,0x2b8)](',\x20');throw new ToolExecutionError(_0x1ccd3c(_0x467275._0x5da718,0x393,0x314,0x380)+_0x35c154[_0x1ccd3c(_0x467275._0x8fc0d2,_0x467275._0x33daeb,_0x467275._0x542951,0x2f4)]+_0x1ccd3c(_0x467275._0xa3eb1c,0x2c0,_0x467275._0x2a9127,_0x467275._0x34e696)+_0x219dbb,{'name':_0x35c154['name']});}const _0x33acc6=await _0x5d35e6[_0x1ccd3c(0x34c,0x38a,_0x467275._0x4bc4f9,_0x467275._0x3e5df3)](_0x18baa3);function _0x4b9a23(_0x559bb8,_0x238c19,_0x17122b,_0x48a636){return _0x2d03c6(_0x559bb8,_0x238c19-_0x287a99._0x5be467,_0x17122b-0x78,_0x238c19-_0x287a99._0x5069a8);}const _0x5207f5=_0x18baa3[_0x4b9a23(0x1d0,0x214,_0x467275._0x29a4c1,0x17c)][_0x4b9a23(0x1dd,0x231,0x2ad,_0x467275._0x30319d)]??_0x592476[_0x4b9a23(_0x467275._0x4374e9,0x328,0x39c,0x2b6)](_0x18baa3['source'][_0x1ccd3c(0x272,0x338,0x2c0,_0x467275._0x3ae253)]),_0x3f2fa1=['##\x20Skill:\x20'+_0x33acc6[_0x4b9a23(_0x467275._0x3e600f,0x255,_0x467275._0x459a3a,0x290)],'',_0x33acc6[_0x1ccd3c(0x361,0x341,_0x467275._0x21a245,_0x467275._0x28b933)],'',_0x4b9a23(0x314,0x27a,_0x467275._0x31d343,0x2b0),_0x4b9a23(0x25b,_0x467275._0x25cb92,0x2f4,0x258)+_0x18baa3[_0x4b9a23(_0x467275._0x33bd98,0x214,_0x467275._0x1c18ca,_0x467275._0x144fb8)]['path'],_0x1ccd3c(_0x467275._0x5ea839,_0x467275._0x4caf8a,_0x467275._0x2021b6,_0x467275._0x2310a4)+_0x5207f5][_0x4b9a23(_0x467275._0x22fe1f,_0x467275._0x30465c,0x20e,_0x467275._0x4de94e)]('\x0a');return yield createToolOutput(_0x3f2fa1,{'id':_0x33acc6['id'],'name':_0x33acc6[_0x4b9a23(_0x467275._0x9d7195,0x255,_0x467275._0x500bac,_0x467275._0x3bfb59)],'path':_0x18baa3[_0x4b9a23(_0x467275._0x3403a5,0x214,_0x467275._0x182d01,_0x467275._0x3e92b3)][_0x4b9a23(0x2cc,_0x467275._0x23cf86,0x234,0x22c)],'baseDirectory':_0x5207f5}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createToolOutput,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};