@nuvin/agent-core 0.0.0-rc.0 → 0.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +14 -3
- package/dist/agent/index.js +1 -1
- package/dist/chunk-G2FR4UGO.js +1 -0
- package/dist/chunk-LXQDGX4K.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-VFTQW5WK.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +2 -2
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-BHDQNPHa.d.ts → provider-adapters-Cb5hUJoD.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +177 -6
- package/dist/tools/index.js +1 -1
- package/dist/{types-BueDJWnx.d.ts → types-QPBW5jHO.d.ts} +23 -3
- package/package.json +13 -11
- package/dist/chunk-C6OLKGP6.js +0 -1
- package/dist/chunk-EJTTW4JQ.js +0 -1
- package/dist/chunk-U2BLX7Y5.js +0 -1
package/dist/tools/index.js
CHANGED
|
@@ -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(_0x1ad655,_0x2f5a78){const _0xc3cde8={_0xbacc46:0x1a3,_0x4649f3:0x95,_0x1fa49e:0x1b0,_0x1ea531:0x162,_0x3c819f:0xd7,_0x5711f8:0x1ce,_0x25c649:0x1e9,_0x5ab0c6:0x215,_0x5e8ea5:0x129,_0x3002c4:0x194,_0x247184:0x16d,_0x1889bf:0xf8,_0xacc32f:0x9a,_0x57e7b7:0xe1,_0x52c3a2:0x8c,_0x11f852:0x146,_0x14aed9:0x136,_0x3a5de2:0x11d,_0x1f1764:0x158,_0x343950:0x119,_0x14f661:0x1ac,_0x1ca499:0x1bb,_0x5af842:0x186,_0x583062:0x136,_0x1dc58a:0x243},_0x2b2f87={_0x451b51:0x329},_0xc36003=_0x1ad655();function _0x394927(_0x4f21a1,_0x23ec7,_0x50dab8,_0x13aaf9){return _0x3e7e(_0x4f21a1- -_0x2b2f87._0x451b51,_0x23ec7);}function _0x27a1e8(_0x5f68a1,_0x184126,_0x405cf9,_0x37447b){return _0x3e7e(_0x405cf9- -0xbd,_0x37447b);}while(!![]){try{const _0x4926d8=parseInt(_0x27a1e8(_0xc3cde8._0xbacc46,_0xc3cde8._0x4649f3,0x130,0xff))/0x1*(-parseInt(_0x27a1e8(0x13c,_0xc3cde8._0x1fa49e,_0xc3cde8._0x1ea531,_0xc3cde8._0x3c819f))/0x2)+parseInt(_0x27a1e8(0x1d6,0x22a,_0xc3cde8._0x5711f8,_0xc3cde8._0x25c649))/0x3+-parseInt(_0x27a1e8(0x1a8,_0xc3cde8._0x5ab0c6,0x1af,0x114))/0x4*(parseInt(_0x27a1e8(_0xc3cde8._0x5e8ea5,_0xc3cde8._0x3002c4,_0xc3cde8._0x247184,0xce))/0x5)+parseInt(_0x394927(-_0xc3cde8._0x1889bf,-_0xc3cde8._0xacc32f,-0x143,-_0xc3cde8._0x57e7b7))/0x6*(parseInt(_0x394927(-0xfb,-0x5b,-0x113,-_0xc3cde8._0x52c3a2))/0x7)+parseInt(_0x394927(-_0xc3cde8._0x11f852,-0x184,-_0xc3cde8._0x14aed9,-_0xc3cde8._0x3a5de2))/0x8*(-parseInt(_0x394927(-_0xc3cde8._0x1f1764,-_0xc3cde8._0x343950,-0x194,-0x122))/0x9)+-parseInt(_0x394927(-_0xc3cde8._0x14f661,-0x118,-_0xc3cde8._0x1ca499,-_0xc3cde8._0x343950))/0xa+-parseInt(_0x27a1e8(0xb7,_0xc3cde8._0x5af842,_0xc3cde8._0x583062,0x109))/0xb*(-parseInt(_0x27a1e8(_0xc3cde8._0x1dc58a,0x241,0x19c,0x1b1))/0xc);if(_0x4926d8===_0x2f5a78)break;else _0xc36003['push'](_0xc36003['shift']());}catch(_0x5f3361){_0xc36003['push'](_0xc36003['shift']());}}}(_0x2dbf,0x3792b));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-VFTQW5WK.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{spawn}from'child_process';import{statSync}from'fs';import*as _0x201fde from'os';import*as _0x239355 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';var DEFAULT_DESCRIPTION=_0x256f33(0x3bb,0x388,0x35f,0x32a),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x2b25f0){return _0x2b25f0 instanceof Error;}function shellExists(_0x56f770){const _0x438a47={_0x71aa25:0x13e,_0x42fc9c:0xf2,_0x56ba1a:0x12e,_0x209ab8:0x33,_0x142029:0x42},_0xddd810={_0x305263:0x178},_0x856056={_0x3983a8:0x2e2};function _0xc3a736(_0x551685,_0x1c13f8,_0x208df9,_0x1e8b28){return _0x256f33(_0x551685,_0x1c13f8-0x72,_0x208df9- -_0x856056._0x3983a8,_0x1e8b28-0x7f);}function _0x279be3(_0x2cd222,_0xd7831f,_0x15e9f6,_0x22f865){return _0x256f33(_0x22f865,_0xd7831f-_0xddd810._0x305263,_0xd7831f- -0x52f,_0x22f865-0xe6);}try{const _0x4e2bd3=statSync(_0x56f770);return _0x4e2bd3[_0xc3a736(_0x438a47._0x71aa25,0x48,_0x438a47._0x42fc9c,_0x438a47._0x56ba1a)]()&&(_0x4e2bd3[_0xc3a736(-_0x438a47._0x209ab8,_0x438a47._0x142029,0x41,-0x3a)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x5979d8){const _0x35a7e7={_0x496e62:0x2d,_0x2dd25f:0x59,_0x4f105a:0x12,_0x4c2711:0x44,_0x43c6f6:0x37,_0x290f46:0x42,_0x4a1a54:0x6c,_0x8d03f1:0xeb,_0x52711f:0x3e,_0x4cc585:0x1d,_0xef53d6:0x3c,_0x4e227e:0x37,_0x26a8c7:0x68,_0x2c0f9b:0x46,_0x56442c:0xb1},_0x2e19d2={_0x2273eb:0x3d1},_0x727909={_0x4e83f0:0x9d};function _0x1b7904(_0x44c78d,_0x26c78f,_0x4e3656,_0x25074d){return _0x256f33(_0x44c78d,_0x26c78f-_0x727909._0x4e83f0,_0x26c78f- -0x3d1,_0x25074d-0x80);}if(_0x5979d8)return _0x5979d8;function _0x315ba7(_0x3540ca,_0x223da8,_0x552ea8,_0x2f11f9){return _0x256f33(_0x3540ca,_0x223da8-0x15c,_0x552ea8- -_0x2e19d2._0x2273eb,_0x2f11f9-0xcd);}if(_0x201fde[_0x315ba7(-0x135,-0x10b,-0xa3,-0x144)]()==='win32')return process[_0x315ba7(0x83,0x8,-0x5,0x87)][_0x1b7904(_0x35a7e7._0x496e62,-_0x35a7e7._0x2dd25f,_0x35a7e7._0x4f105a,-0xc2)]||'cmd.exe';const _0x5cc5ca=[_0x315ba7(0x61,0xb5,_0x35a7e7._0x4c2711,0x6d),_0x1b7904(-_0x35a7e7._0x43c6f6,-_0x35a7e7._0x290f46,-0xce,-_0x35a7e7._0x4a1a54),_0x315ba7(-0xc6,-_0x35a7e7._0x8d03f1,-_0x35a7e7._0x52711f,_0x35a7e7._0x4cc585),_0x1b7904(_0x35a7e7._0xef53d6,-0x47,-0xc5,-0x81)];for(const _0x578ca9 of _0x5cc5ca){if(shellExists(_0x578ca9))return _0x578ca9;}const _0x42f58e=process['env'][_0x1b7904(-_0x35a7e7._0x43c6f6,-_0x35a7e7._0x4e227e,0x28,-0x12)];if(_0x42f58e&&shellExists(_0x42f58e))return _0x42f58e;return _0x315ba7(_0x35a7e7._0x26a8c7,_0x35a7e7._0x2c0f9b,_0x35a7e7._0x4c2711,_0x35a7e7._0x56442c);}function _0x3e7e(_0x52683,_0x1e7d0b){_0x52683=_0x52683-0x139;const _0x2dbf10=_0x2dbf();let _0x3e7ef6=_0x2dbf10[_0x52683];if(_0x3e7e['FYNXnO']===undefined){var _0x4b729b=function(_0x3cdd88){const _0x32d611='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x201fde='',_0x239355='';for(let _0x45391b=0x0,_0x53d907,_0x15a2a1,_0xe33de0=0x0;_0x15a2a1=_0x3cdd88['charAt'](_0xe33de0++);~_0x15a2a1&&(_0x53d907=_0x45391b%0x4?_0x53d907*0x40+_0x15a2a1:_0x15a2a1,_0x45391b++%0x4)?_0x201fde+=String['fromCharCode'](0xff&_0x53d907>>(-0x2*_0x45391b&0x6)):0x0){_0x15a2a1=_0x32d611['indexOf'](_0x15a2a1);}for(let _0x975f79=0x0,_0x53331e=_0x201fde['length'];_0x975f79<_0x53331e;_0x975f79++){_0x239355+='%'+('00'+_0x201fde['charCodeAt'](_0x975f79)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x239355);};_0x3e7e['uzdnik']=_0x4b729b,_0x3e7e['wBaXkF']={},_0x3e7e['FYNXnO']=!![];}const _0x5eba02=_0x2dbf10[0x0],_0x7d8cc3=_0x52683+_0x5eba02,_0x1cbd0b=_0x3e7e['wBaXkF'][_0x7d8cc3];return!_0x1cbd0b?(_0x3e7ef6=_0x3e7e['uzdnik'](_0x3e7ef6),_0x3e7e['wBaXkF'][_0x7d8cc3]=_0x3e7ef6):_0x3e7ef6=_0x1cbd0b,_0x3e7ef6;}function buildShellArgs(_0x26adb3,_0x3ec7de){const _0xea1e18={_0x868f92:0x146,_0x1a2aa3:0xa3,_0x2e5d7e:0x34b,_0x2d0454:0x35c,_0x19d1e6:0x94,_0x49938f:0x95},_0x15904f={_0x579137:0xb8},_0x19505f={_0x203508:0x463,_0x5541b1:0xd5};function _0x2b92c9(_0x301f12,_0x5a7535,_0x4bce6a,_0x37e473){return _0x256f33(_0x5a7535,_0x5a7535-0xf4,_0x4bce6a- -_0x19505f._0x203508,_0x37e473-_0x19505f._0x5541b1);}function _0x1a2651(_0x352212,_0x59e441,_0x2bd32a,_0x3a7ec3){return _0x256f33(_0x352212,_0x59e441-_0x15904f._0x579137,_0x2bd32a- -0x6b,_0x3a7ec3-0x160);}if(_0x201fde['platform']()===_0x2b92c9(-0xf9,-0x1b1,-_0xea1e18._0x868f92,-_0xea1e18._0x1a2aa3)){const _0xd095c8=/cmd(\.exe)?$/i[_0x1a2651(_0xea1e18._0x2e5d7e,_0xea1e18._0x2d0454,0x31a,0x391)](_0x3ec7de);return _0xd095c8?['/d','/s','/c',_0x26adb3]:[_0x2b92c9(-0x70,0x10,-_0xea1e18._0x19d1e6,-0xac),'-NoProfile',_0x2b92c9(-_0xea1e18._0x49938f,0x12,-0x84,-0x7a),_0x26adb3];}return['-c',_0x26adb3];}function stripAnsiAndControls(_0x4cace5){const _0x1d7130={_0x6c63cd:0x152,_0x2243c7:0x18c,_0x4e3c7c:0x43,_0x358214:0xa7,_0x42d78d:0x41,_0x4be5d0:0x16e,_0x273728:0x2a,_0x1627a6:0xf,_0x435285:0x1e0,_0x1720f0:0x246,_0x3d62d0:0x6c,_0x2b719a:0x7d,_0x3b5a31:0x133,_0x23e7a8:0xb7,_0x418c71:0x149,_0x25a931:0x1bf,_0x5f4b38:0x1a4,_0x206b96:0x71,_0x3b7dad:0xea,_0x875e38:0x168,_0x342623:0x237,_0x4625ac:0x1ad},_0x32d9b7={_0x57f7ec:0x147,_0x2d3150:0x2b9},_0x1b9944={_0x54adba:0x1db,_0x3cf1df:0x373,_0x2c2230:0x18a};_0x4cace5=stripVTControlCharacters(_0x4cace5);const _0x19b6c8='\x1b',_0x5516ea='\x07';_0x4cace5=_0x4cace5[_0x54c943(_0x1d7130._0x6c63cd,_0x1d7130._0x2243c7,0xea,0x126)](new RegExp(';[^'+_0x5516ea+_0x54c943(-_0x1d7130._0x4e3c7c,-_0x1d7130._0x358214,-_0x1d7130._0x42d78d,0x69)+_0x5516ea,'g'),''),_0x4cace5=_0x4cace5[_0x54c943(_0x1d7130._0x4be5d0,0x165,0xea,0x60)](new RegExp(_0x54c943(-0x6e,-_0x1d7130._0x273728,-0x2f,_0x1d7130._0x1627a6)+_0x19b6c8+'\x5c\x5c','g'),''),_0x4cace5=_0x4cace5[_0x216afb(0x1a2,_0x1d7130._0x435285,_0x1d7130._0x1720f0,0x1a4)](new RegExp(_0x5516ea,'g'),''),_0x4cace5=_0x4cace5['replace'](new RegExp(_0x19b6c8+_0x54c943(-0xb0,-_0x1d7130._0x3d62d0,-0x26,_0x1d7130._0x2b719a)+_0x19b6c8+'\x5c\x5c','g'),''),_0x4cace5=_0x4cace5['replace'](new RegExp(_0x19b6c8+_0x216afb(0x199,_0x1d7130._0x3b5a31,_0x1d7130._0x23e7a8,_0x1d7130._0x418c71),'g'),'');function _0x54c943(_0x27241f,_0xb47953,_0x2d41db,_0x26c177){return _0x256f33(_0x26c177,_0xb47953-_0x1b9944._0x54adba,_0x2d41db- -_0x1b9944._0x3cf1df,_0x26c177-_0x1b9944._0x2c2230);}_0x4cace5=_0x4cace5[_0x216afb(0x222,0x1fe,_0x1d7130._0x25a931,_0x1d7130._0x5f4b38)](/[\u0080-\u009F]/g,''),_0x4cace5=_0x4cace5[_0x54c943(0xc5,_0x1d7130._0x206b96,_0x1d7130._0x3b7dad,_0x1d7130._0x875e38)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,'');function _0x216afb(_0x51aaee,_0x5db96e,_0x33baba,_0x4414f6){return _0x256f33(_0x5db96e,_0x5db96e-_0x32d9b7._0x57f7ec,_0x4414f6- -_0x32d9b7._0x2d3150,_0x4414f6-0x89);}return _0x4cace5=_0x4cace5[_0x216afb(_0x1d7130._0x342623,0x24b,_0x1d7130._0x4625ac,0x1a4)](/[\u23CE\u2424]/g,''),_0x4cace5;}function resolveWorkingDirectory(_0x43b442,_0x9a9268){const _0xe0df55={_0x4d7b06:0x2c4,_0x321d61:0x374,_0x4f0460:0x34a,_0x36cbb6:0x372,_0x3f83e0:0x209,_0x592e1f:0x165,_0x4fa0e7:0x136},_0x57f6fe={_0x4593ba:0xf2,_0x321552:0x2b},_0x6c5147={_0x426538:0x10b};function _0x570b8e(_0x48666d,_0xe6ccfe,_0x329517,_0x2eaf21){return _0x256f33(_0xe6ccfe,_0xe6ccfe-0x10,_0x329517- -0x472,_0x2eaf21-_0x6c5147._0x426538);}const _0x55be7e=_0x43b442?_0x239355[_0x570b8e(-0x156,-0x106,-0x106,-0x190)](_0x43b442)?_0x43b442:_0x239355['resolve'](_0x9a9268,_0x43b442):_0x9a9268;function _0x26c0c6(_0x1b60b4,_0x21afbb,_0x2e0126,_0x1b3719){return _0x256f33(_0x21afbb,_0x21afbb-_0x57f6fe._0x4593ba,_0x2e0126- -_0x57f6fe._0x321552,_0x1b3719-0x117);}try{const _0x14912e=statSync(_0x55be7e);if(!_0x14912e['isDirectory']())throw new ToolExecutionError(_0x26c0c6(_0xe0df55._0x4d7b06,_0xe0df55._0x321d61,_0xe0df55._0x4f0460,_0xe0df55._0x36cbb6)+_0x55be7e,{'cwd':_0x55be7e});return _0x55be7e;}catch(_0x5c6693){if(_0x5c6693 instanceof ToolExecutionError)throw _0x5c6693;throw new ToolExecutionError(_0x570b8e(-0x11a,-_0xe0df55._0x3f83e0,-_0xe0df55._0x592e1f,-_0xe0df55._0x4fa0e7)+_0x55be7e,{'cwd':_0x55be7e});}}function killProcessGroup(_0x49066b,_0xf217b2,_0xf1a09f=_0x379285(0x71,0x22,-0x20,0xe)){const _0x1b5252={_0xda283b:0x3ad,_0xc2c70b:0x354,_0x1fd016:0x381,_0x4034c9:0x3aa,_0x14016f:0x329,_0x4c37a6:0x459,_0xe8fa45:0x3e1,_0x136376:0x40d,_0xef32a2:0x401,_0x4302a0:0x3d9,_0x1ad4c6:0x357,_0x2a73b1:0x46d,_0x538878:0x3ea,_0x52b4bd:0x3c0},_0x4a6b55={_0x2e9c56:0x41a,_0x21c7c3:0xb4},_0x26d32c={_0x330233:0x156,_0x43b6e2:0x72};function _0x1df4e5(_0x2e19e7,_0xb28401,_0x53964e,_0x27eb29){return _0x256f33(_0xb28401,_0xb28401-0xca,_0x2e19e7-_0x26d32c._0x330233,_0x27eb29-_0x26d32c._0x43b6e2);}if(!_0x49066b['pid'])return;if(_0xf217b2)try{spawn(_0x412496(_0x1b5252._0xda283b,_0x1b5252._0xc2c70b,0x352,0x352),['/pid',_0x49066b[_0x412496(_0x1b5252._0x1fd016,0x454,_0x1b5252._0x4034c9,_0x1b5252._0x14016f)][_0x412496(_0x1b5252._0x4c37a6,0x3ee,_0x1b5252._0xe8fa45,0x37c)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x49066b[_0x412496(_0x1b5252._0x136376,_0x1b5252._0xef32a2,_0x1b5252._0x4302a0,0x34c)](_0xf1a09f);return;}function _0x412496(_0x1d651d,_0x4bfcbb,_0x14b014,_0x3ba58d){return _0x379285(_0x1d651d-0x70,_0x14b014-_0x4a6b55._0x2e9c56,_0x14b014-_0x4a6b55._0x21c7c3,_0x4bfcbb);}try{process[_0x412496(_0x1b5252._0x1ad4c6,_0x1b5252._0x2a73b1,0x3d9,0x450)](-_0x49066b[_0x1df4e5(0x510,0x544,0x539,0x51f)],_0xf1a09f);}catch{_0x49066b[_0x412496(0x410,_0x1b5252._0x538878,0x3d9,_0x1b5252._0x52b4bd)](_0xf1a09f);}}function appendChunk(_0x5a6f67,_0x1a3fce,_0x230d25,_0x257b73,_0x579ec8){const _0x30608e={_0xc3b003:0x24e,_0x5bf326:0x342,_0x1eba0c:0x5e6,_0x4894a3:0x49b},_0x3e66a3={_0x54f113:0x566},_0x3f87f2={_0x37e5be:0xfe};function _0x390deb(_0x4de953,_0x26b4a4,_0x24ecf3,_0x4144ea){return _0x256f33(_0x26b4a4,_0x26b4a4-0x58,_0x24ecf3- -0x62,_0x4144ea-_0x3f87f2._0x37e5be);}const _0x251dcf=_0x257b73?stripAnsiAndControls(_0x230d25):_0x230d25;function _0x4294ff(_0x531f12,_0x3d6610,_0x489914,_0x483fd6){return _0x379285(_0x531f12-0x38,_0x489914-_0x3e66a3._0x54f113,_0x489914-0x13c,_0x531f12);}if(_0x251dcf[_0x390deb(0x2e2,_0x30608e._0xc3b003,0x2a3,_0x30608e._0x5bf326)]===0x0)return;_0x5a6f67[_0x4294ff(0x5dd,0x634,0x58d,_0x30608e._0x1eba0c)](_0x251dcf),_0x1a3fce[_0x390deb(0x36d,_0x30608e._0x4894a3,0x3ef,0x3ae)](_0x251dcf),_0x579ec8();}function createBashTool(_0x553791={}){const _0x22558c={_0x4f590a:0x2b5,_0x318b8c:0x273,_0x25c993:0xb3,_0x43c827:0x60,_0x269b94:0x137,_0x8b3afc:0xa3,_0x4b28d5:0x165,_0x1a5921:0x9e,_0xbdab0d:0x4b,_0x4d4ad2:0x59,_0x3f68a2:0x7f,_0xfe8c88:0x6e,_0x1130f4:0x15,_0x1a330d:0x1e8,_0x1ea6af:0x1cf,_0x4a5c9a:0x39,_0xead4d1:0x55,_0x1c52cc:0x56,_0x3b0676:0xa5,_0x52bee9:0x70,_0x437ea3:0xac,_0x517be8:0x27,_0x323ef3:0x83},_0x4d5d05={_0x191a54:0x15d,_0x486012:0x111,_0x150323:0x7c,_0x186506:0x2c3,_0xe7a194:0x247,_0x335dfa:0x13e,_0x101083:0xa8,_0x1d2736:0xfb,_0x2d052:0x222,_0x16a231:0x1c5,_0x59f3b0:0x17a,_0x29c5b1:0x356,_0x43aa93:0x21e,_0x4a1e14:0x17b,_0x2b7475:0xfd,_0x15e8b2:0x158,_0x1d1bf3:0x229,_0x4da8a9:0x2a0,_0x326f5f:0x23d,_0x23f7d7:0x2a8,_0x436416:0x22d,_0x2d8c28:0x235,_0x3648ff:0xbd,_0x22de03:0x136,_0x4b27de:0x213,_0x347eca:0x75,_0x36182a:0x8,_0x25b30d:0x79,_0x8aa9e7:0x38,_0x3f5878:0x12,_0x3ead34:0x6d,_0x1636fb:0x10a,_0x2f1550:0x266,_0xe86bac:0x293,_0x199a69:0x2ba,_0xab4291:0x2c9,_0x377465:0x29c,_0x2750ed:0x250,_0x31097e:0xc2,_0x4278be:0xf3,_0x191edb:0xc0,_0x1ed714:0x162,_0x501fa7:0xdd,_0x25f542:0x93,_0x89840a:0x5e,_0x3f2e1e:0x56,_0x38a03a:0x5b,_0x3f4bd8:0xa8,_0x2df10b:0x17f,_0x4d93f2:0xb8,_0x44f20b:0xb3,_0x5dd983:0x17c,_0x15b99b:0xec,_0x2b0027:0xe9,_0x441ddc:0x185,_0x40babe:0x1c,_0x1ec407:0xb,_0x40399c:0x2ab,_0x1bc56c:0x26c,_0x287d87:0x32c,_0x34d581:0x1d4,_0x32fef7:0x75,_0x4bffe8:0x94,_0x103f9c:0x22,_0xef8532:0x24,_0x1a04c4:0x1d1,_0x3ed7f0:0x126,_0x23598c:0x153,_0x9e666e:0xc8,_0x4879e2:0x18d,_0x4f94d2:0x7d,_0x3dbbe6:0x218,_0x4eae21:0x1ce,_0x34f56d:0x23,_0x406803:0x4e,_0x5d4f95:0x44,_0x597130:0x240,_0x2b7b3a:0x1f0,_0x16d331:0x8a,_0xaf37c0:0x9,_0x48307d:0x2a0,_0x5826ff:0xc0,_0x52b266:0x114,_0x263d82:0x5,_0x5d2a30:0x53,_0xf8c630:0x152,_0x2283ad:0x123},_0x23e679={_0x103726:0x4ec,_0x413d38:0x571,_0x5cd29e:0x5b9},_0x1c5929={_0x2a4961:0x25c,_0x22910c:0x47,_0x216d60:0x1a1},_0x2c846a={_0x4e4893:0x71,_0x213aa9:0x191},_0x909039={_0x11cafd:0x25b},_0x13aeac=_0x239355[_0x4179f1(0x286,_0x22558c._0x4f590a,0x218,_0x22558c._0x318b8c)](_0x553791[_0x574674(_0x22558c._0x25c993,0xa5,0x8,_0x22558c._0x43c827)]??process[_0x4179f1(_0x22558c._0x269b94,_0x22558c._0x8b3afc,_0x22558c._0x4b28d5,0x102)]()),_0x542ae1=_0x553791[_0x574674(-_0x22558c._0x1a5921,_0x22558c._0xbdab0d,-_0x22558c._0x4d4ad2,-0xb5)]??DEFAULT_TIMEOUT_MS;function _0x4179f1(_0x8ce223,_0x3420bb,_0x4c5430,_0x38a962){return _0x379285(_0x8ce223-0xa9,_0x8ce223-_0x909039._0x11cafd,_0x4c5430-0x69,_0x4c5430);}const _0x19e7c7=_0x553791['stripAnsi']??!![],_0x3f76f2=_0x553791[_0x574674(0xcd,-0x11,_0x22558c._0x3f68a2,-0x5)]??_0x574674(-0x3d,_0x22558c._0xfe8c88,_0x22558c._0x1130f4,0x15);function _0x574674(_0x43f055,_0x440559,_0x5b0824,_0x1ee6f9){return _0x379285(_0x43f055-0x166,_0x5b0824-_0x2c846a._0x4e4893,_0x5b0824-_0x2c846a._0x213aa9,_0x43f055);}return defineTool({'name':_0x3f76f2,'description':_0x553791[_0x574674(0x4b,-0xd6,-0x49,-0xcb)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x4179f1(0x22f,0x1ce,_0x22558c._0x1a330d,_0x22558c._0x1ea6af),'properties':{'command':{'type':_0x4179f1(0x189,0x22d,0x1fc,0x145)},'cwd':{'type':'string'},'timeoutMs':{'type':_0x574674(-_0x22558c._0x4a5c9a,0x72,_0x22558c._0xead4d1,_0x22558c._0x1c52cc)},'ignoreOutput':{'type':_0x574674(-0x77,-_0x22558c._0x3b0676,-_0x22558c._0x52bee9,-_0x22558c._0x437ea3)}},'required':[_0x574674(0xb6,_0x22558c._0x517be8,0x95,_0x22558c._0x323ef3)]},async *'execute'(_0x244aa8,_0x2e8498){const _0x14523d={_0x171728:0x452,_0x4fdac2:0x49c,_0x5cac25:0x3cf,_0x4376de:0x45b},_0x3dde7f={_0x132bc1:0x26d,_0x1069b0:0x28c},_0x4aee6b={_0x2b9d9d:0x147},_0x1e332a={_0x5eeb9c:0x37a,_0x550e26:0x284,_0x156757:0x249},_0x432ba3={_0x5af964:0x2f0},_0xe6252a={_0x225ddf:0x157,_0x2da529:0xca,_0x264318:0x5c},_0x5e89a6={_0x247fac:0xcd},_0x349aec={_0x2b3a2a:0x216},_0x5b17df=_0x244aa8['timeoutMs']??_0x542ae1;if(!Number['isFinite'](_0x5b17df)||_0x5b17df<0x1)throw new ToolExecutionError(_0x4f59ad(-_0x4d5d05._0x191a54,-_0x4d5d05._0x486012,-_0x4d5d05._0x150323,-0x7c),{'command':_0x244aa8[_0x14a266(0x2ab,_0x4d5d05._0x186506,_0x4d5d05._0xe7a194,0x220)]});throwIfAborted(_0x2e8498[_0x4f59ad(-_0x4d5d05._0x335dfa,-_0x4d5d05._0x101083,-_0x4d5d05._0x1d2736,-0xd3)]);const _0x5a6823=resolveWorkingDirectory(_0x244aa8['cwd'],_0x13aeac),_0x6f86c6=_0x244aa8[_0x14a266(0x1d8,_0x4d5d05._0x2d052,_0x4d5d05._0x16a231,0x1d1)]??![],_0x65c42=resolveDefaultShell(_0x553791[_0x14a266(0x172,_0x4d5d05._0x59f3b0,0x1a3,0x1a8)]);function _0x14a266(_0x1fdcb5,_0xa65d97,_0x3946b7,_0x2f24ec){return _0x574674(_0x2f24ec,_0xa65d97-0x89,_0x1fdcb5-_0x349aec._0x2b3a2a,_0x2f24ec-0xab);}const _0x3e170d=buildShellArgs(_0x244aa8[_0x14a266(0x2ab,_0x4d5d05._0x29c5b1,_0x4d5d05._0x43aa93,0x34d)],_0x65c42),_0x5e6e04=_0x201fde[_0x4f59ad(-_0x4d5d05._0x4a1e14,-_0x4d5d05._0x2b7475,-0x15b,-_0x4d5d05._0x15e8b2)]()==='win32';let _0x1ef4be;try{_0x1ef4be=spawn(_0x65c42,_0x3e170d,{'cwd':_0x5a6823,'env':{...process[_0x14a266(_0x4d5d05._0x1d1bf3,_0x4d5d05._0x4da8a9,0x27f,_0x4d5d05._0x326f5f)],..._0x553791[_0x14a266(0x229,0x290,_0x4d5d05._0x23f7d7,0x224)]??{}},'stdio':_0x6f86c6?[_0x14a266(0x1cb,_0x4d5d05._0x436416,_0x4d5d05._0x2d8c28,0x1b2),'ignore',_0x4f59ad(-0xf2,-_0x4d5d05._0x3648ff,-_0x4d5d05._0x22de03,-0x10f)]:['ignore',_0x14a266(_0x4d5d05._0x4b27de,0x297,0x246,0x1b8),_0x4f59ad(-0xf0,-_0x4d5d05._0x347eca,-0xdf,0x5)],'shell':![],'windowsHide':!![],'detached':!_0x5e6e04});}catch(_0x1e5725){if(isErrnoException(_0x1e5725)&&_0x1e5725[_0x4f59ad(-0x44,-_0x4d5d05._0x36182a,-_0x4d5d05._0x25b30d,_0x4d5d05._0x8aa9e7)]===_0x4f59ad(_0x4d5d05._0x3f5878,-_0x4d5d05._0x3ead34,-_0x4d5d05._0x1636fb,-0x49))throw new ToolExecutionError(_0x14a266(_0x4d5d05._0x2f1550,_0x4d5d05._0xe86bac,_0x4d5d05._0x199a69,0x2b4)+_0x65c42,{'command':_0x244aa8['command'],'cwd':_0x5a6823,'shellPath':_0x65c42});throw new ToolExecutionError(_0x1e5725 instanceof Error?_0x1e5725['message']:String(_0x1e5725),{'command':_0x244aa8[_0x14a266(0x2ab,0x2a1,0x289,_0x4d5d05._0xab4291)],'cwd':_0x5a6823,'shellPath':_0x65c42});}const _0x1d52d9=[],_0x1903e1=[],_0x21ba8d=new StringDecoder(_0x4f59ad(-0x3f,0x14,0x62,0x7c)),_0x2f98ce=new StringDecoder(_0x14a266(_0x4d5d05._0x377465,_0x4d5d05._0x2750ed,0x1f5,0x1f6));let _0xf7b58d,_0x3d429f=![],_0x352a69;const _0x56665c=()=>{if(!_0xf7b58d)return;const _0x5c138e=_0xf7b58d;_0xf7b58d=void 0x0,_0x5c138e();},_0x335df0=async()=>{if(_0x1903e1['length']>0x0||_0x3d429f)return;await new Promise(_0x12ddb4=>{_0xf7b58d=_0x12ddb4;});},_0x1d2865=_0x41d63f=>{function _0x3a06a5(_0x41dc7d,_0x279d5c,_0x246185,_0x102ef4){return _0x14a266(_0x279d5c- -0x355,_0x279d5c-_0x5e89a6._0x247fac,_0x246185-0x10e,_0x41dc7d);}appendChunk(_0x1d52d9,_0x1903e1,_0x21ba8d[_0x3a06a5(-_0xe6252a._0x225ddf,-_0xe6252a._0x2da529,-_0xe6252a._0x264318,-0xc0)](_0x41d63f),_0x19e7c7,_0x56665c);},_0x398cdb=_0x16ba56=>{function _0x5583c8(_0x12ff8e,_0xb658a4,_0x2b31b9,_0x191d69){return _0x4f59ad(_0x12ff8e-0xfa,_0x191d69-_0x432ba3._0x5af964,_0x12ff8e,_0x191d69-0x53);}appendChunk(_0x1d52d9,_0x1903e1,_0x2f98ce[_0x5583c8(_0x1e332a._0x5eeb9c,_0x1e332a._0x550e26,_0x1e332a._0x156757,0x2f3)](_0x16ba56),_0x19e7c7,_0x56665c);};function _0x4f59ad(_0x5921e3,_0x27614a,_0x2d5d67,_0x432dae){return _0x4179f1(_0x27614a- -_0x1c5929._0x2a4961,_0x27614a-_0x1c5929._0x22910c,_0x2d5d67,_0x432dae-_0x1c5929._0x216d60);}_0x1ef4be[_0x4f59ad(-_0x4d5d05._0x31097e,-_0x4d5d05._0x4278be,-0x4a,-0x17a)]?.['on'](_0x4f59ad(-0x145,-_0x4d5d05._0x191edb,-_0x4d5d05._0x1ed714,-_0x4d5d05._0x501fa7),_0x1d2865),_0x1ef4be[_0x4f59ad(-0x5d,-_0x4d5d05._0x25f542,-0x119,-_0x4d5d05._0x89840a)]?.['on'](_0x4f59ad(-0x83,-0xc0,-_0x4d5d05._0x3f2e1e,-_0x4d5d05._0x38a03a),_0x398cdb);let _0x41918e=![],_0x466177;const _0x275be9=addAbortListener(_0x2e8498[_0x4f59ad(-0xab,-_0x4d5d05._0x3f4bd8,-0xc7,0x7)],()=>{_0x352a69=toAbortError(_0x2e8498['signal'][_0x3df23f(_0x23e679._0x103726,0x5fc,_0x23e679._0x413d38,_0x23e679._0x5cd29e)]),_0x3d429f=!![];function _0x3df23f(_0x27e004,_0x10beeb,_0x3166cf,_0x7a6239){return _0x4f59ad(_0x27e004-0xd2,_0x3166cf-0x648,_0x10beeb,_0x7a6239-_0x4aee6b._0x2b9d9d);}_0x56665c();try{killProcessGroup(_0x1ef4be,_0x5e6e04);}catch{}});try{const _0xe513b4=new Promise((_0x5db0ad,_0xf5348d)=>{const _0x297979={_0x573835:0x1bf},_0x103ba2={_0x288335:0xfe,_0x386d02:0x6e,_0x9c5c1a:0x17f,_0x23aa7d:0x465,_0xf0875d:0x488,_0x21e300:0x456},_0x3bc52a={_0x47d40f:0x249,_0x56c485:0x277,_0x1cc96e:0x182,_0x1fd1b1:0xc7},_0x4e1e35={_0x3c4964:0x228,_0x3dd2b9:0x155};function _0x59059a(_0x50ec82,_0x3a4502,_0x222484,_0x3b205f){return _0x14a266(_0x222484-_0x4e1e35._0x3c4964,_0x3a4502-0xd5,_0x222484-_0x4e1e35._0x3dd2b9,_0x3b205f);}const _0x236b86=()=>{function _0x5919dc(_0xce1556,_0x450139,_0x2e9d5c,_0x2811be){return _0x3e7e(_0x2e9d5c-0x68,_0x2811be);}function _0x196cf7(_0x4a6cbb,_0x4bad28,_0x24274c,_0x5e0b38){return _0x3e7e(_0x4bad28- -0x25c,_0x4a6cbb);}_0x466177&&(clearTimeout(_0x466177),_0x466177=void 0x0),_0x1ef4be['off'](_0x5919dc(0x1be,_0x3bc52a._0x47d40f,0x26d,_0x3bc52a._0x56c485),_0x3be897),_0x1ef4be['off'](_0x196cf7(-_0x3bc52a._0x1cc96e,-0x11b,-_0x3bc52a._0x1fd1b1,-0xc3),_0x376b68);},_0x3be897=_0x55629c=>{_0x3d429f=!![],_0x56665c(),_0x236b86(),_0xf5348d(_0x352a69??_0x55629c);},_0x376b68=(_0x34d4ab,_0x556290)=>{const _0xe1044e={_0x283c1d:0xfe};_0x41918e=!![];function _0x53c973(_0x31c16f,_0xd199d2,_0x38ef27,_0xbd5bde){return _0x3e7e(_0x31c16f-_0xe1044e._0x283c1d,_0xbd5bde);}appendChunk(_0x1d52d9,_0x1903e1,_0x21ba8d[_0x53c973(_0x3dde7f._0x132bc1,0x2ef,0x2f6,_0x3dde7f._0x1069b0)](),_0x19e7c7,_0x56665c),appendChunk(_0x1d52d9,_0x1903e1,_0x2f98ce['end'](),_0x19e7c7,_0x56665c),_0x3d429f=!![],_0x56665c(),_0x236b86();if(_0x352a69){_0xf5348d(_0x352a69);return;}_0x5db0ad({'code':_0x34d4ab,'signal':_0x556290});};_0x466177=setTimeout(()=>{const _0x13397e={_0x5e7204:0x31a};_0x3d429f=!![];function _0x5eb3cb(_0x2b96e9,_0xf4e43d,_0x414eb2,_0x37948e){return _0x3e7e(_0x37948e-0x1d0,_0x414eb2);}_0x56665c(),_0x236b86();function _0x56d4cb(_0x31ebdd,_0x500b02,_0x3604ee,_0x3af1a8){return _0x3e7e(_0x31ebdd- -_0x13397e._0x5e7204,_0x500b02);}try{killProcessGroup(_0x1ef4be,_0x5e6e04);}catch{}_0xf5348d(new ToolExecutionError(_0x56d4cb(-_0x103ba2._0x288335,-0xee,-_0x103ba2._0x386d02,-0xe6)+_0x5b17df+_0x56d4cb(-0x1a3,-_0x103ba2._0x9c5c1a,-0x24c,-0x221),{'command':_0x244aa8[_0x5eb3cb(0x407,_0x103ba2._0x23aa7d,_0x103ba2._0xf0875d,_0x103ba2._0x21e300)],'cwd':_0x5a6823,'shellPath':_0x65c42,'timeoutMs':_0x5b17df,'timedOut':!![]}));},_0x5b17df),_0x1ef4be['once'](_0x59059a(0x4c3,0x489,_0x14523d._0x171728,_0x14523d._0x4fdac2),_0x3be897);function _0x10af4b(_0x4793c8,_0x263004,_0x52c67f,_0x539368){return _0x14a266(_0x52c67f- -_0x297979._0x573835,_0x263004-0x9a,_0x52c67f-0x2e,_0x539368);}_0x1ef4be[_0x59059a(_0x14523d._0x5cac25,0x3ee,0x40b,_0x14523d._0x4376de)]('close',_0x376b68);});while(_0x1903e1[_0x14a266(0x162,_0x4d5d05._0x2df10b,_0x4d5d05._0x4d93f2,0x169)]>0x0||!_0x3d429f){if(_0x1903e1[_0x14a266(0x162,_0x4d5d05._0x44f20b,_0x4d5d05._0x5dd983,0x1da)]===0x0){await _0x335df0();continue;}const _0x5f3267=_0x1903e1[_0x4f59ad(-_0x4d5d05._0x15b99b,-_0x4d5d05._0x2b0027,-_0x4d5d05._0x441ddc,-0x190)]();_0x5f3267!==void 0x0&&(yield _0x5f3267);}const _0xdc7ea0=await _0xe513b4,_0x32a8c9=_0x6f86c6?_0x4f59ad(-_0x4d5d05._0x40babe,-0x3e,0x38,-_0x4d5d05._0x1ec407)+(_0xdc7ea0[_0x4f59ad(-0x5e,-0x8,-0x8c,0x9a)]??0x0):_0x1d52d9['join'](''),_0x3cf0b4={'command':_0x244aa8[_0x14a266(_0x4d5d05._0x40399c,0x231,_0x4d5d05._0x1bc56c,0x2cc)],'cwd':_0x5a6823,'exitCode':_0xdc7ea0[_0x14a266(0x280,_0x4d5d05._0x287d87,0x292,_0x4d5d05._0x34d581)]??0x0,'signal':_0xdc7ea0['signal'],'ignoreOutput':_0x6f86c6,'shellPath':_0x65c42,'timeoutMs':_0x5b17df};if(_0xdc7ea0[_0x4f59ad(0x35,-_0x4d5d05._0x36182a,-_0x4d5d05._0x32fef7,-_0x4d5d05._0x4bffe8)]!==0x0)throw new ToolExecutionError(_0x32a8c9||_0x4f59ad(_0x4d5d05._0x103f9c,-_0x4d5d05._0x8aa9e7,0x34,_0x4d5d05._0xef8532)+(_0xdc7ea0['code']??0x0),_0x3cf0b4);return createToolOutput(_0x32a8c9,_0x3cf0b4);}catch(_0x303480){while(_0x1903e1[_0x4f59ad(-_0x4d5d05._0x1a04c4,-_0x4d5d05._0x3ed7f0,-0x116,-_0x4d5d05._0x5dd983)]>0x0){const _0xe1061e=_0x1903e1[_0x4f59ad(-_0x4d5d05._0x23598c,-0xe9,-_0x4d5d05._0x9e666e,-_0x4d5d05._0x4879e2)]();_0xe1061e!==void 0x0&&(yield _0xe1061e);}if(_0x303480 instanceof ToolExecutionError)throw _0x303480;if(_0x352a69)throw _0x352a69;if(isErrnoException(_0x303480)&&_0x303480[_0x4f59ad(0x37,-0x8,0x81,-0x4d)]===_0x4f59ad(0x3d,-0x6d,-_0x4d5d05._0x4f94d2,-0x119))throw new ToolExecutionError(_0x14a266(0x266,_0x4d5d05._0x3dbbe6,_0x4d5d05._0x4eae21,0x2c1)+_0x65c42,{'command':_0x244aa8[_0x4f59ad(0x1c,_0x4d5d05._0x34f56d,-_0x4d5d05._0x406803,_0x4d5d05._0x5d4f95)],'cwd':_0x5a6823,'shellPath':_0x65c42});throw new ToolExecutionError(_0x303480 instanceof Error?_0x303480[_0x14a266(0x275,_0x4d5d05._0x597130,_0x4d5d05._0x2b7b3a,0x21a)]:String(_0x303480),{'command':_0x244aa8[_0x4f59ad(-_0x4d5d05._0x16d331,_0x4d5d05._0x34f56d,-_0x4d5d05._0xaf37c0,-0x2f)],'cwd':_0x5a6823,'shellPath':_0x65c42});}finally{_0x466177&&clearTimeout(_0x466177);_0x275be9(),_0x1ef4be['stdout']?.[_0x14a266(0x28d,0x2e2,_0x4d5d05._0x48307d,0x20d)](_0x4f59ad(-0x12d,-_0x4d5d05._0x5826ff,-_0x4d5d05._0x52b266,-0xbb),_0x1d2865),_0x1ef4be[_0x4f59ad(-0x6e,-0x93,-0x8d,-0xad)]?.[_0x4f59ad(0x6e,_0x4d5d05._0x263d82,-0x82,-_0x4d5d05._0x5d2a30)]('data',_0x398cdb);if(!_0x41918e&&_0x1ef4be['pid']&&!_0x1ef4be[_0x4f59ad(-_0x4d5d05._0xf8c630,-_0x4d5d05._0x2283ad,-0xfb,-0xb4)])try{killProcessGroup(_0x1ef4be,_0x5e6e04);}catch{}}}});}function createShellExecTool(_0x2a2315={}){return createBashTool(_0x2a2315);}import{renderCommandInstructions}from'@nuvin/config';function buildDescription(_0x583933){const _0x343f53={_0x19fc73:0x3fe,_0x317ac1:0x384,_0xb5b74a:0x368,_0x2e98ef:0x530,_0x28609a:0x501,_0x469cbd:0x4c3,_0x2dc67e:0x3ee,_0x520bea:0x493,_0x3e4698:0x53f,_0x329e7f:0x3f6,_0x4d6c94:0x446,_0x21548b:0x491,_0x4ee50d:0x4d7,_0x76fd67:0x4c5,_0x5e4621:0x3f8,_0x19a0b0:0x4ca,_0x165568:0x47b,_0xc9da71:0x40f,_0x3a072e:0x3e4,_0x1b6800:0x3f1,_0x539e3e:0x3f5,_0x4b7d5e:0x524,_0x5623f5:0x491,_0x43371e:0x507},_0x3f3344={_0x2dd5b3:0x13d,_0x168655:0x4a9},_0xa98e3d={_0x5a5ab6:0x12d};if(_0x583933[_0x47bc14(_0x343f53._0x19fc73,_0x343f53._0x317ac1,_0x343f53._0xb5b74a,0x3b0)]===0x0)return[_0x5ca373(0x45b,_0x343f53._0x2e98ef,_0x343f53._0x28609a,_0x343f53._0x469cbd),_0x5ca373(_0x343f53._0x2dc67e,0x44e,_0x343f53._0x520bea,_0x343f53._0x3e4698),_0x47bc14(_0x343f53._0x329e7f,_0x343f53._0x4d6c94,0x3ca,0x49d)][_0x5ca373(0x496,0x521,_0x343f53._0x21548b,0x4d0)]('\x0a');const _0x440841=[_0x5ca373(_0x343f53._0x4ee50d,0x4c7,_0x343f53._0x28609a,_0x343f53._0x76fd67),_0x47bc14(_0x343f53._0x5e4621,0x45b,_0x343f53._0x19a0b0,_0x343f53._0x165568),_0x47bc14(_0x343f53._0x19fc73,_0x343f53._0xc9da71,_0x343f53._0x3a072e,_0x343f53._0x1b6800),..._0x583933[_0x47bc14(0x47b,_0x343f53._0x539e3e,0x460,0x3eb)](_0x55cb24=>_0x55cb24[_0x5ca373(0x39e,0x38c,0x424,0x3af)]?'-\x20'+_0x55cb24[_0x5ca373(0x479,0x56f,0x4ef,0x535)]+'\x20'+_0x55cb24['argumentHint']+':\x20'+_0x55cb24['description']:'-\x20'+_0x55cb24['name']+':\x20'+_0x55cb24[_0x5ca373(0x3a6,0x422,0x427,0x469)])];function _0x5ca373(_0x1df1b0,_0x522ad3,_0x429fe4,_0x4b2fe3){return _0x379285(_0x1df1b0-_0xa98e3d._0x5a5ab6,_0x429fe4-0x4e1,_0x429fe4-0x1a4,_0x4b2fe3);}function _0x47bc14(_0x2c9aa5,_0x301d52,_0x3d4c2d,_0x18d0a0){return _0x379285(_0x2c9aa5-_0x3f3344._0x2dd5b3,_0x301d52-_0x3f3344._0x168655,_0x3d4c2d-0x10a,_0x3d4c2d);}return _0x440841[_0x5ca373(_0x343f53._0x4b7d5e,0x443,_0x343f53._0x5623f5,_0x343f53._0x43371e)]('\x0a');}function createInvokeCommandTool(_0x4f4e39){const _0x4ede8d={_0x3b0c92:0x8c,_0x20c37d:0x35,_0x59f622:0xe,_0xea530:0xbc,_0x519a64:0x13,_0x2431b7:0xc9,_0x3714b5:0x167,_0x3850db:0xd3,_0x489c77:0xc4},_0x121e30={_0x1ce922:0x3c3,_0x2244ac:0x3ee,_0xf17f69:0x73,_0x116662:0x4,_0x3ab040:0x1f,_0x3fb053:0x2,_0x37df07:0x92,_0x3af4fd:0x85,_0x9efe18:0x51,_0x1a3c03:0x9e,_0xc05d84:0xe2,_0x346b3c:0x430,_0x5aa773:0x73,_0x3c84f2:0x10c,_0x271d75:0x3f5,_0xfe7873:0x431,_0x41a78c:0x3d2,_0x482ff6:0x3c1,_0x16ea84:0x396,_0x2c138e:0x434,_0x38f084:0x48c,_0x230271:0x556,_0x559c9a:0x187},_0x18271c={_0x61af4e:0x395,_0x1b8141:0xfe},_0x3aa099={_0x1ed101:0x1c4},_0x25f7c2={_0x413b1b:0x1db},_0x40370f={_0x179251:0x41,_0x5337dd:0x113,_0x4ba441:0x1c},_0x2ec491=new Map(_0x4f4e39[_0x44a891(-0x21,-_0x4ede8d._0x3b0c92,-0x13,0x45)][_0x44a891(_0x4ede8d._0x20c37d,0x68,0x5f,_0x4ede8d._0x59f622)](_0x484706=>[_0x484706['id'],_0x484706])),_0x113357=buildDescription(_0x4f4e39[_0x44a891(-0x7,-_0x4ede8d._0xea530,-_0x4ede8d._0x519a64,-_0x4ede8d._0x20c37d)]);function _0x44a891(_0x2a2fd2,_0x4e1691,_0x431a4e,_0x52fed8){return _0x379285(_0x2a2fd2-_0x40370f._0x179251,_0x431a4e-_0x40370f._0x5337dd,_0x431a4e-_0x40370f._0x4ba441,_0x4e1691);}function _0x2cd82b(_0x3c47ca,_0x3aae7d,_0x125757,_0x784d14){return _0x256f33(_0x784d14,_0x3aae7d-_0x25f7c2._0x413b1b,_0x3c47ca- -0x2e7,_0x784d14-0x196);}return defineTool({'name':'InvokeCommand','description':_0x113357,'inputSchema':{'type':_0x2cd82b(0x117,_0x4ede8d._0x2431b7,_0x4ede8d._0x3714b5,0x1ba),'properties':{'name':{'type':'string'},'args':{'type':'string'}},'required':[_0x2cd82b(0x151,0x1b0,_0x4ede8d._0x3850db,_0x4ede8d._0x489c77)]},async *'execute'(_0x323ec2){const _0x731f40=_0x2ec491[_0x1e0a6f(0x467,0x43d,_0x121e30._0x1ce922,_0x121e30._0x2244ac)](_0x323ec2[_0x5b7379(-_0x121e30._0xf17f69,-_0x121e30._0x116662,-_0x121e30._0x3ab040,-_0x121e30._0x3fb053)]);if(!_0x731f40){const _0x332827=Array[_0x5b7379(-_0x121e30._0x37df07,-_0x121e30._0x3af4fd,-_0x121e30._0x9efe18,-_0x121e30._0x1a3c03)](_0x2ec491['keys']())['join'](',\x20');throw new ToolExecutionError(_0x5b7379(-_0x121e30._0xc05d84,-0xc8,-0xaf,-0xd3)+_0x323ec2['name']+_0x1e0a6f(0x45c,0x4d2,_0x121e30._0x346b3c,0x4cc)+_0x332827,{'name':_0x323ec2[_0x5b7379(-_0x121e30._0x5aa773,-_0x121e30._0x3c84f2,-0x18,-0xa0)]});}const _0x331178=await _0x4f4e39[_0x1e0a6f(_0x121e30._0x271d75,0x44a,0x44d,_0x121e30._0xfe7873)](_0x731f40);function _0x5b7379(_0x3eeef1,_0x103374,_0x20a273,_0x2e088f){return _0x2cd82b(_0x3eeef1- -_0x3aa099._0x1ed101,_0x103374-0x197,_0x20a273-0xe2,_0x2e088f);}const _0x2fef70=_0x323ec2['args']??'',_0x738393=renderCommandInstructions({'instructions':_0x331178[_0x1e0a6f(_0x121e30._0x41a78c,_0x121e30._0x482ff6,_0x121e30._0x16ea84,_0x121e30._0x2c138e)],'argumentsText':_0x2fef70,'argumentNames':_0x331178['arguments']});function _0x1e0a6f(_0x4ff3b7,_0x4defff,_0x5ad346,_0x1665cb){return _0x2cd82b(_0x4ff3b7-_0x18271c._0x61af4e,_0x4defff-_0x18271c._0x1b8141,_0x5ad346-0xd5,_0x5ad346);}return yield createToolOutput(_0x738393,{'id':_0x331178['id'],'name':_0x331178[_0x1e0a6f(0x4e6,0x50d,_0x121e30._0x38f084,_0x121e30._0x230271)],'path':_0x731f40[_0x5b7379(-0x103,-0x10e,-0xd3,-_0x121e30._0x559c9a)]['path']}),void 0x0;}});}import{createHash}from'crypto';import{readFile,rename,stat as _0x45391b,writeFile}from'fs/promises';import*as _0x53d907 from'path';import{stat}from'fs/promises';import*as _0x15a2a1 from'path';function resolveWorkspacePath(_0x2e2038,_0x31d6b5){const _0x206334={_0x3ebb17:0x3bc,_0x46e691:0x46d,_0x4c0dce:0x46f,_0x120fb6:0x45e,_0x405408:0x4ff},_0xb2f82f={_0x1e5d1b:0x152,_0x50b814:0x19c},_0x47dc5b=_0x15a2a1['resolve'](_0x2e2038);function _0x2be495(_0x391165,_0x35d515,_0x58ca35,_0x1024f3){return _0x379285(_0x391165-0xd4,_0x35d515-0x54d,_0x58ca35-0x1b,_0x1024f3);}const _0x408015=_0x15a2a1[_0x2be495(0x535,0x578,0x502,0x5d2)](_0x47dc5b,_0x31d6b5);function _0x12ed12(_0x5812ee,_0xdeb0e7,_0x5a530c,_0x160f48){return _0x256f33(_0x5a530c,_0xdeb0e7-0xb1,_0x160f48- -_0xb2f82f._0x1e5d1b,_0x160f48-_0xb2f82f._0x50b814);}const _0x34034f=_0x15a2a1[_0x2be495(0x3dd,0x443,_0x206334._0x3ebb17,_0x206334._0x46e691)](_0x47dc5b,_0x408015);if(_0x34034f===''||!_0x34034f[_0x2be495(0x465,0x4d3,_0x206334._0x4c0dce,_0x206334._0x120fb6)]('..')&&!_0x15a2a1[_0x12ed12(0x283,0x1e4,0x22f,0x21a)](_0x34034f))return _0x408015;throw new ToolExecutionError(_0x2be495(_0x206334._0x405408,0x45e,0x497,0x424)+_0x31d6b5,{'path':_0x31d6b5,'rootDir':_0x47dc5b});}async function assertWorkspaceFile(_0x15c6c7){const _0x597400={_0x38a60c:0x233},_0x28a975={_0x510567:0x23};function _0x503638(_0x5cab81,_0x39a9b3,_0x7d7081,_0x27fd89){return _0x379285(_0x5cab81-_0x28a975._0x510567,_0x39a9b3-0x269,_0x7d7081-0x14c,_0x7d7081);}const _0x120bf5=await stat(_0x15c6c7);if(!_0x120bf5['isFile']())throw new ToolExecutionError(_0x503638(_0x597400._0x38a60c,0x29a,0x329,0x334)+_0x15c6c7,{'path':_0x15c6c7});}function isProbablyBinary(_0x38f1b1){const _0x5b0b7a={_0x25c7b3:0x1e3},_0x648104={_0x26494c:0x19c,_0x174e8a:0xe4};function _0x2331a9(_0x3f5780,_0x291b76,_0x497b01,_0x508280){return _0x256f33(_0x3f5780,_0x291b76-0x1e3,_0x497b01- -_0x648104._0x26494c,_0x508280-_0x648104._0x174e8a);}return _0x38f1b1[_0x2331a9(0x149,0x277,_0x5b0b7a._0x25c7b3,0x1df)](0x0);}function detectEol(_0x39114b){const _0x5575f4={_0x5055d2:0x305,_0x37be8c:0x1be,_0x4707b2:0x378,_0x3a889b:0x349,_0x26896d:0x413},_0x4bf5e5={_0x461394:0x562,_0x541a31:0x139};function _0x2c6fe9(_0x4a465b,_0x5d991e,_0x45a398,_0x34e7e7){return _0x379285(_0x4a465b-0x1a1,_0x5d991e-0x431,_0x45a398-0xba,_0x34e7e7);}function _0x1acabe(_0x4f1514,_0x14d642,_0x12d4fd,_0x213f0b){return _0x256f33(_0x4f1514,_0x14d642-0x15d,_0x12d4fd- -_0x4bf5e5._0x461394,_0x213f0b-_0x4bf5e5._0x541a31);}return/\r\n/[_0x2c6fe9(_0x5575f4._0x5055d2,0x38c,0x3f9,0x35f)](_0x39114b['toString'](_0x1acabe(-_0x5575f4._0x37be8c,-0x143,-0x123,-0x18e)))?_0x2c6fe9(_0x5575f4._0x4707b2,0x36b,_0x5575f4._0x3a889b,_0x5575f4._0x26896d):'lf';}function normalizeToLf(_0x26dbc5){const _0x1a3169={_0xf6fc65:0x30e,_0x1bdd7:0x2da},_0x3d41f7={_0x5e1cd7:0x186};function _0x3c8dfe(_0x37794d,_0x26f29c,_0x32fe4b,_0x1a936d){return _0x256f33(_0x37794d,_0x26f29c-0x113,_0x1a936d- -0x1b9,_0x1a936d-_0x3d41f7._0x5e1cd7);}return _0x26dbc5[_0x3c8dfe(_0x1a3169._0xf6fc65,_0x1a3169._0x1bdd7,0x2b5,0x2a4)](/\r\n/g,'\x0a');}function convertEol(_0x117654,_0x513dcf){const _0x41f18d={_0x592fc0:0x32,_0x53906f:0xc0,_0x3e3534:0x1a,_0x2c96d8:0x82,_0x41bbbd:0x5b,_0x32aebe:0xdf},_0x347132={_0x254cf9:0x1ea,_0x37bb4e:0xc};function _0x479b64(_0x173e4a,_0x30e6d6,_0x4d088f,_0x54599d){return _0x379285(_0x173e4a-_0x347132._0x254cf9,_0x4d088f-0x223,_0x4d088f-_0x347132._0x37bb4e,_0x30e6d6);}function _0x365796(_0x3627da,_0x28e243,_0x3b4359,_0x4bb205){return _0x256f33(_0x28e243,_0x28e243-0x19f,_0x4bb205- -0x37e,_0x4bb205-0xce);}return _0x513dcf===_0x365796(0x48,-_0x41f18d._0x592fc0,-_0x41f18d._0x53906f,-_0x41f18d._0x3e3534)?_0x117654[_0x365796(_0x41f18d._0x2c96d8,_0x41f18d._0x41bbbd,0x78,_0x41f18d._0x32aebe)](/\n/g,'\x0d\x0a'):_0x117654;}async function atomicWrite(_0x4b64d6,_0x190759){const _0x5d4374={_0x2baef7:0x396,_0xef847d:0x36e,_0x517334:0x5b,_0x259c16:0x402,_0x580f54:0x3ea,_0x4b24cd:0x4a7,_0x3c146c:0x93,_0x358fab:0x1d,_0x16db3a:0x70,_0x4c89df:0x7b,_0x538af9:0x3ae,_0x487b15:0x2ed},_0x218db1={_0x5c1ce1:0xae,_0x9fcfd5:0xc0},_0x4887c6={_0x2fbb14:0x1e0,_0x486b02:0x93,_0x3a73b3:0x14b};function _0x2053db(_0x329731,_0x4b7432,_0xcc4143,_0xdeb2d0){return _0x379285(_0x329731-_0x4887c6._0x2fbb14,_0x329731- -_0x4887c6._0x486b02,_0xcc4143-_0x4887c6._0x3a73b3,_0xcc4143);}const _0x2c02fc=_0x53d907[_0x39a9ab(_0x5d4374._0x2baef7,_0x5d4374._0xef847d,0x344,0x2d8)](_0x4b64d6),_0x309e11=_0x53d907[_0x2053db(-0xe3,-_0x5d4374._0x517334,-0x9d,-0x9e)](_0x2c02fc,_0x39a9ab(0x483,_0x5d4374._0x259c16,_0x5d4374._0x580f54,_0x5d4374._0x4b24cd)+_0x53d907[_0x2053db(-_0x5d4374._0x3c146c,-0x19,-0x122,-_0x5d4374._0x358fab)](_0x4b64d6)+'.'+Date[_0x2053db(-_0x5d4374._0x16db3a,-0xab,-0xbc,-0x59)]()+'.'+Math[_0x2053db(-_0x5d4374._0x4c89df,-0x9f,-0x18,-0x105)]()['toString'](0x24)[_0x39a9ab(0x3cb,0x383,_0x5d4374._0x538af9,_0x5d4374._0x487b15)](0x2));await writeFile(_0x309e11,_0x190759);function _0x39a9ab(_0x2fd6e2,_0x577b7e,_0x14746a,_0x4cd3ee){return _0x379285(_0x2fd6e2-_0x218db1._0x5c1ce1,_0x577b7e-0x3fb,_0x14746a-_0x218db1._0x9fcfd5,_0x14746a);}await rename(_0x309e11,_0x4b64d6);}function sha256(_0x464b0a){const _0x2c7bbc={_0x53f21f:0xdd,_0x7ffa82:0x40,_0xa33529:0x76,_0x24bfbb:0x22b,_0x1d41b1:0xe9,_0x45d6ea:0xba},_0x2d6ee9={_0x2a4de5:0xad},_0xb67482={_0x8c1f54:0x5f,_0x3c7222:0x218};function _0xbd2345(_0x52b838,_0x55e858,_0x4c7261,_0x54d03e){return _0x256f33(_0x4c7261,_0x55e858-_0xb67482._0x8c1f54,_0x52b838- -_0xb67482._0x3c7222,_0x54d03e-0x150);}function _0x531612(_0x5f4070,_0x2b355d,_0x1e5aa3,_0x4acada){return _0x256f33(_0x1e5aa3,_0x2b355d-_0x2d6ee9._0x2a4de5,_0x5f4070- -0x31b,_0x4acada-0x1e8);}return createHash('sha256')[_0x531612(_0x2c7bbc._0x53f21f,_0x2c7bbc._0x7ffa82,0x132,_0x2c7bbc._0xa33529)](_0x464b0a)[_0xbd2345(0x1ff,_0x2c7bbc._0x24bfbb,0x152,0x172)](_0x531612(_0x2c7bbc._0x1d41b1,0x16d,0x177,_0x2c7bbc._0x45d6ea));}function countLines(_0x2678e1){const _0x2fac5c={_0x43cd69:0x35f,_0x290a79:0x23a,_0x3a0077:0x2ce,_0x6cf3d5:0x2db,_0x4d8035:0x25c,_0x1e9d52:0x182},_0x1795b5={_0x35f082:0x51},_0x144a57={_0x4793e8:0xf4},_0x3e38ef=_0x2678e1['replace'](/\n$/,'');function _0x4bc1b7(_0x3e7a4d,_0x3034d5,_0xa14fca,_0x33ef4a){return _0x256f33(_0x33ef4a,_0x3034d5-0x17b,_0x3e7a4d- -0x183,_0x33ef4a-_0x144a57._0x4793e8);}function _0x301ada(_0x2ba4fe,_0x1f6191,_0xe95bbc,_0x4b663c){return _0x256f33(_0x2ba4fe,_0x1f6191-_0x1795b5._0x35f082,_0x4b663c- -0x37,_0x4b663c-0xeb);}return _0x3e38ef[_0x301ada(_0x2fac5c._0x43cd69,_0x2fac5c._0x290a79,0x29e,_0x2fac5c._0x3a0077)]===0x0?0x0:_0x3e38ef[_0x4bc1b7(_0x2fac5c._0x6cf3d5,_0x2fac5c._0x4d8035,0x25f,0x274)]('\x0a')[_0x4bc1b7(_0x2fac5c._0x1e9d52,0x21c,0x215,0x211)];}function calculateLineNumbers(_0x285618,_0x21c1af,_0x7789b0,_0x542a38){const _0xd4e46c={_0x4b4a0d:0x4fe},_0x2cdc85={_0x506c41:0xc7,_0x1a6668:0x65},_0x5185e5=_0x285618['slice'](0x0,_0x542a38)[_0x25d772(_0xd4e46c._0x4b4a0d,0x507,0x4c3,0x44e)]('\x0a')['length'],_0x1d08a7=countLines(_0x21c1af),_0x47c396=countLines(_0x7789b0);function _0x25d772(_0x320163,_0x282cd8,_0x559785,_0x8e73ee){return _0x256f33(_0x282cd8,_0x282cd8-_0x2cdc85._0x506c41,_0x559785-_0x2cdc85._0x1a6668,_0x8e73ee-0x147);}return{'oldStartLine':_0x5185e5,'oldEndLine':_0x5185e5+_0x1d08a7-0x1,'newStartLine':_0x5185e5,'newEndLine':_0x5185e5+_0x47c396-0x1,'oldLineCount':_0x1d08a7,'newLineCount':_0x47c396};}function createFileEditTool(_0x568750={}){const _0x3f82ef={_0x5a85fe:0x52a,_0x357769:0x513,_0x352292:0x45d,_0x56b9f8:0x502,_0x68827:0x52d,_0x359949:0x634,_0x3c05a3:0x5c6,_0x342f8d:0x465,_0x4aeba6:0x3cf,_0x5b5e19:0x5c5,_0x3bbb99:0x584,_0x28367b:0x393,_0x4314f5:0x3a4,_0x25c9a5:0x348,_0x3cf51a:0x564,_0x34c24c:0x39b,_0x18521d:0x5b3,_0x29ac45:0x637,_0x53c998:0x602,_0x38ef1b:0x601},_0x27503a={_0x11dd50:0x55d,_0x592afd:0x4b7,_0x49877d:0x4ca,_0xd6f4ec:0x575,_0xf1ddf8:0x1a1,_0x577b33:0xa8,_0x2a1355:0x1c9,_0x2d8068:0x4cb,_0x33dbad:0x130,_0x1a1b88:0x1cd,_0xcc2a95:0x251,_0x33eea9:0x1d6,_0xeaac34:0x3f7,_0x3343c8:0x3f4,_0xa59309:0x425,_0x26ba25:0x539,_0x59757a:0x426,_0xebac8b:0x1fa,_0x4b500a:0x473,_0x45949f:0x497,_0x4767af:0x423,_0x5e76af:0x52e,_0x48f03f:0x5bf,_0x51f397:0x4e9,_0x5eb536:0x17f,_0x1371e8:0x1e1,_0x57735b:0x4c0,_0x4063db:0x4e4,_0x3cb320:0x30f,_0x4a4fd1:0x202,_0x50c7b5:0x123,_0x2ef34a:0x1bc,_0x3f5b85:0x4cc,_0x3c31b7:0x48b,_0x2ce55f:0x584,_0x15736c:0x59f,_0x2900d8:0x4d2,_0x1e51de:0x1ce,_0x22db3a:0x293,_0x3ed545:0x3f4,_0x168b17:0x404,_0x281391:0x218,_0x39d719:0x283,_0x358e7e:0x2fe,_0x13a58d:0x38a,_0x7a2c5d:0x473},_0x813bdc={_0x2d9d5c:0x16d,_0x2e79d4:0x10d},_0x11371a={_0x39e395:0x152,_0x4e1f2e:0x47c},_0x1cac3e={_0x5b3fc2:0x1fc},_0x10b224=_0x53d907[_0x29fb3e(_0x3f82ef._0x5a85fe,0x4a7,0x423,_0x3f82ef._0x357769)](_0x568750['defaultCwd']??process[_0x16b523(0x565,_0x3f82ef._0x352292,_0x3f82ef._0x56b9f8,_0x3f82ef._0x68827)]()),_0x4fff5b=_0x568750[_0x16b523(0x648,0x5d7,_0x3f82ef._0x359949,_0x3f82ef._0x3c05a3)]??_0x29fb3e(_0x3f82ef._0x342f8d,_0x3f82ef._0x4aeba6,0x3ac,0x356);function _0x16b523(_0x3179af,_0x12bb59,_0x4f6eb2,_0x3891ff){return _0x256f33(_0x3891ff,_0x12bb59-0x1dc,_0x4f6eb2-_0x1cac3e._0x5b3fc2,_0x3891ff-0x3f);}function _0x29fb3e(_0xefd89b,_0x2f799d,_0x5547e5,_0x350b0e){return _0x379285(_0xefd89b-_0x11371a._0x39e395,_0x2f799d-_0x11371a._0x4e1f2e,_0x5547e5-0x18d,_0x5547e5);}return defineTool({'name':_0x4fff5b,'description':_0x16b523(_0x3f82ef._0x5b5e19,0x61c,_0x3f82ef._0x3bbb99,0x611),'inputSchema':{'type':'object','properties':{'filePath':{'type':_0x29fb3e(0x324,0x3aa,_0x3f82ef._0x28367b,0x3d5)},'oldText':{'type':_0x29fb3e(_0x3f82ef._0x4314f5,0x3aa,_0x3f82ef._0x25c9a5,0x325)},'newText':{'type':_0x16b523(0x5c7,_0x3f82ef._0x357769,0x554,_0x3f82ef._0x3cf51a)},'dryRun':{'type':_0x29fb3e(0x319,_0x3f82ef._0x34c24c,0x3e8,0x2f9)}},'required':[_0x16b523(0x668,0x658,0x5da,0x663),_0x16b523(0x5d4,_0x3f82ef._0x18521d,_0x3f82ef._0x29ac45,0x5c0),_0x16b523(0x6f6,_0x3f82ef._0x53c998,0x653,_0x3f82ef._0x38ef1b)]},async *'execute'(_0x1ca109){const _0xb0e14f={_0x994b9:0x1e5,_0x45fa56:0x784},_0x30082=resolveWorkspacePath(_0x10b224,_0x1ca109[_0x468dbb(_0x27503a._0x11dd50,0x4cd,_0x27503a._0x592afd,0x445)]);await assertWorkspaceFile(_0x30082);const _0x3e7898=await _0x45391b(_0x30082),_0x1c4605=await readFile(_0x30082);function _0x17f7d5(_0x1c2fef,_0x20d0f5,_0x536e7b,_0x3945a2){return _0x16b523(_0x1c2fef-_0xb0e14f._0x994b9,_0x20d0f5-0x1e1,_0x20d0f5- -_0xb0e14f._0x45fa56,_0x1c2fef);}const _0x47099d=detectEol(_0x1c4605),_0x2a720f=normalizeToLf(_0x1c4605[_0x468dbb(_0x27503a._0x49877d,0x4e0,_0x27503a._0xd6f4ec,0x49f)](_0x17f7d5(-0x111,-0x149,-_0x27503a._0xf1ddf8,-_0x27503a._0x577b33))),_0xd8cdb0=normalizeToLf(_0x1ca109[_0x17f7d5(-_0x27503a._0x2a1355,-0x14d,-0xf5,-0x114)]),_0x41b94c=normalizeToLf(_0x1ca109[_0x468dbb(_0x27503a._0x2d8068,0x546,0x4ed,0x595)]),_0x2effa5=_0x2a720f[_0x17f7d5(-0x12d,-_0x27503a._0x33dbad,-0x123,-_0x27503a._0x1a1b88)](_0xd8cdb0);if(_0x2effa5===-0x1){const _0x51838a=_0xd8cdb0[_0x17f7d5(-_0x27503a._0xcc2a95,-_0x27503a._0x33eea9,-0x249,-0x19d)](0x0,0x64)['replace'](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x51838a+(_0xd8cdb0[_0x468dbb(_0x27503a._0xeaac34,_0x27503a._0x3343c8,0x403,_0x27503a._0xa59309)]>0x64?_0x468dbb(_0x27503a._0x26ba25,0x49b,_0x27503a._0x59757a,0x4d7):'')+'\x22',{'filePath':_0x1ca109['filePath']});}function _0x468dbb(_0x42a782,_0x1e48a6,_0xaa1c7c,_0x3ebf8d){return _0x16b523(_0x42a782-_0x813bdc._0x2d9d5c,_0x1e48a6-0x129,_0x1e48a6- -_0x813bdc._0x2e79d4,_0xaa1c7c);}const _0xd2a920=_0x2a720f['slice'](0x0,_0x2effa5)+_0x41b94c+_0x2a720f[_0x17f7d5(-0x1e1,-0x1d6,-_0x27503a._0xebac8b,-0x21b)](_0x2effa5+_0xd8cdb0[_0x468dbb(_0x27503a._0x4b500a,0x3f4,_0x27503a._0x45949f,_0x27503a._0x4767af)]),_0x1b79d1=convertEol(_0xd2a920,_0x47099d),_0x3923bc=Buffer['from'](_0x1b79d1,_0x468dbb(0x505,_0x27503a._0x5e76af,_0x27503a._0x48f03f,_0x27503a._0x51f397)),_0x114a7c=sha256(_0x1c4605),_0x2fb23e=sha256(_0x3923bc),_0x296daf=_0x114a7c===_0x2fb23e,_0x1b6d89=_0x1ca109[_0x17f7d5(-_0x27503a._0x5eb536,-_0x27503a._0x1371e8,-0x250,-0x24b)]??![];return!_0x1b6d89&&!_0x296daf&&await atomicWrite(_0x30082,_0x3923bc),yield createToolOutput(_0x296daf?'No\x20changes\x20(content\x20identical).':_0x1b6d89?_0x468dbb(_0x27503a._0x57735b,_0x27503a._0x4063db,0x53b,0x44c):_0x17f7d5(-0x260,-0x26c,-_0x27503a._0x3cb320,-0x249),{'filePath':_0x1ca109[_0x17f7d5(-_0x27503a._0x4a4fd1,-0x1aa,-_0x27503a._0x50c7b5,-_0x27503a._0x2ef34a)],'resolvedPath':_0x30082,'created':_0x3e7898[_0x468dbb(0x45d,_0x27503a._0x3f5b85,0x4e3,_0x27503a._0x3c31b7)][_0x468dbb(_0x27503a._0x2ce55f,0x524,_0x27503a._0x15736c,_0x27503a._0x2900d8)](),'modified':_0x3e7898['mtime']['toISOString'](),'size':_0x3e7898[_0x17f7d5(-_0x27503a._0x1e51de,-0x236,-0x1d9,-_0x27503a._0x22db3a)],'eol':_0x47099d,'oldTextLength':_0xd8cdb0[_0x468dbb(0x44e,_0x27503a._0x3ed545,_0x27503a._0x168b17,0x349)],'newTextLength':_0x41b94c[_0x17f7d5(-_0x27503a._0x281391,-_0x27503a._0x39d719,-_0x27503a._0x358e7e,-0x332)],'bytesWritten':_0x296daf||_0x1b6d89?0x0:_0x3923bc[_0x468dbb(_0x27503a._0x13a58d,0x3f4,0x347,_0x27503a._0x7a2c5d)],'beforeSha':_0x114a7c,'afterSha':_0x2fb23e,'dryRun':_0x1b6d89,'noChange':_0x296daf,'lineNumbers':calculateLineNumbers(_0x2a720f,_0xd8cdb0,_0x41b94c,_0x2effa5)}),void 0x0;}});}import{mkdir,rename as _0xe33de0,stat as _0x975f79,writeFile as _0x53331e}from'fs/promises';import*as _0x160027 from'path';async function atomicWrite2(_0x3a0976,_0x1e5da3){const _0x33c6c2={_0x14a13d:0x537,_0x305a16:0x305,_0x3abe45:0x36e,_0x1ea67d:0x5a3,_0x4824da:0x3f7,_0x4415f9:0x38a,_0x3e7903:0x429,_0x3580f3:0x423,_0x367ae3:0x37f,_0x1dd14d:0x58b,_0x1f041e:0x540,_0x94d72a:0x25f,_0x38a81b:0x298},_0x156a70={_0xd8a2a:0xc3,_0x1856e5:0x167},_0x316f8f={_0x442260:0x5c4};function _0x23f566(_0x5f161b,_0x232ce9,_0x50a87b,_0x3e8834){return _0x379285(_0x5f161b-0x1a3,_0x5f161b-_0x316f8f._0x442260,_0x50a87b-0x76,_0x50a87b);}const _0xa804d4=_0x160027[_0x23f566(_0x33c6c2._0x14a13d,0x4f5,0x4b9,0x4bb)](_0x3a0976);await mkdir(_0xa804d4,{'recursive':!![]});function _0x333183(_0x2a2639,_0x2ddcd5,_0x20670c,_0xa9f070){return _0x256f33(_0x20670c,_0x2ddcd5-0xb3,_0xa9f070- -_0x156a70._0xd8a2a,_0xa9f070-_0x156a70._0x1856e5);}const _0x42ade8=_0x160027['join'](_0xa804d4,_0x333183(0x3ce,_0x33c6c2._0x305a16,0x36a,_0x33c6c2._0x3abe45)+_0x160027[_0x23f566(0x5c4,_0x33c6c2._0x1ea67d,0x64e,0x588)](_0x3a0976)+'.'+Date[_0x333183(_0x33c6c2._0x4824da,0x41a,0x3ca,_0x33c6c2._0x4415f9)]()+'.'+Math[_0x333183(_0x33c6c2._0x3e7903,0x344,_0x33c6c2._0x3580f3,_0x33c6c2._0x367ae3)]()[_0x23f566(_0x33c6c2._0x1dd14d,_0x33c6c2._0x1f041e,0x612,0x594)](0x24)[_0x333183(_0x33c6c2._0x94d72a,_0x33c6c2._0x38a81b,0x293,0x2ef)](0x2));await _0x53331e(_0x42ade8,_0x1e5da3),await _0xe33de0(_0x42ade8,_0x3a0976);}function createFileNewTool(_0xb81aa={}){const _0xce4127={_0xc580f4:0x4b9,_0x3906d7:0x53a,_0x380622:0x49d,_0x24640b:0x1d0,_0x1df666:0x4e6,_0x28690f:0x4dc,_0x35ef1e:0x32c,_0x1eee09:0x2f5,_0x5bb934:0x2e6,_0x39b05b:0x31c,_0x520a70:0x30d,_0x3161e7:0x2f3,_0x52e5aa:0x443,_0x3e650a:0x2da,_0x3c9a9d:0x2ef,_0x298084:0x284},_0x2ccefc={_0x13911c:0x1fb,_0x45d577:0x1cd,_0x2792ab:0x1e5,_0x56d741:0x180,_0x179116:0x19b,_0x100df6:0x174,_0x392575:0x4b7,_0x192591:0x430,_0x5d0601:0x3d3,_0x11eb60:0x4d9,_0x859a61:0x3a8,_0x444bd4:0x247,_0x535b61:0x19c,_0x2d8689:0x32e,_0x591463:0x346,_0x51767c:0x4c4,_0x1d68bd:0x35d,_0x3b6b37:0x3c3,_0x214734:0x18b,_0x46d30c:0x145,_0x1aafbe:0x178,_0x1869af:0xb8},_0x56e25f={_0x19731f:0x199},_0x3dd7a2={_0x231096:0xa3,_0x48bc85:0x154,_0x58b9f0:0x155},_0x5e26a4=_0x160027[_0x9590c8(_0xce4127._0xc580f4,_0xce4127._0x3906d7,_0xce4127._0x380622,0x4aa)](_0xb81aa[_0x9590c8(0x3de,0x3ae,0x409,0x41a)]??process[_0x22ec8d(0x1a4,_0xce4127._0x24640b,0x129,0x1b2)]());function _0x22ec8d(_0x1479f2,_0x1dd9f7,_0x187be7,_0x47e0b1){return _0x256f33(_0x1dd9f7,_0x1dd9f7-_0x3dd7a2._0x231096,_0x47e0b1- -_0x3dd7a2._0x48bc85,_0x47e0b1-_0x3dd7a2._0x58b9f0);}const _0x450649=_0xb81aa[_0x9590c8(_0xce4127._0x1df666,_0xce4127._0x28690f,0x480,0x46a)]??_0x9590c8(0x41a,_0xce4127._0x35ef1e,0x3d5,0x333);function _0x9590c8(_0x1cc969,_0x5ce6bc,_0x59e6f6,_0x130192){return _0x379285(_0x1cc969-0x10e,_0x59e6f6-0x472,_0x59e6f6-0xf2,_0x5ce6bc);}return defineTool({'name':_0x450649,'description':_0x22ec8d(0x2f4,0x365,_0xce4127._0x1eee09,_0xce4127._0x5bb934),'inputSchema':{'type':_0x22ec8d(_0xce4127._0x39b05b,_0xce4127._0x520a70,_0xce4127._0x3161e7,0x2aa),'properties':{'filePath':{'type':'string'},'content':{'type':_0x9590c8(0x2fd,_0xce4127._0x52e5aa,0x3a0,0x43f)}},'required':['filePath',_0x22ec8d(_0xce4127._0x3e650a,0x2e2,_0xce4127._0x3c9a9d,_0xce4127._0x298084)]},async *'execute'(_0x4488d2){const _0x23cd80={_0x39da50:0x5c2,_0x23e1f1:0x1f2},_0x12b3c0=resolveWorkspacePath(_0x5e26a4,_0x4488d2[_0x22d873(-0x22f,-0x19c,-_0x2ccefc._0x13911c,-0x17d)]),_0x49295e=await _0x975f79(_0x12b3c0)[_0x22d873(-_0x2ccefc._0x45d577,-0x1c9,-0x1e8,-0x253)](()=>!![])[_0x22d873(-_0x2ccefc._0x2792ab,-_0x2ccefc._0x56d741,-0x1e1,-_0x2ccefc._0x179116)](()=>![]);function _0x1afc9a(_0x38a6bd,_0x35124b,_0x4b5749,_0x4ef0dc){return _0x22ec8d(_0x38a6bd-_0x56e25f._0x19731f,_0x4b5749,_0x4b5749-0x10b,_0x35124b-0x1ac);}const _0x2354cf=Buffer[_0x22d873(-_0x2ccefc._0x100df6,-0x161,-0x20d,-0xef)](_0x4488d2[_0x1afc9a(_0x2ccefc._0x392575,_0x2ccefc._0x192591,0x428,0x41a)],'utf8');await atomicWrite2(_0x12b3c0,_0x2354cf),yield createToolOutput(_0x1afc9a(_0x2ccefc._0x5d0601,0x43a,_0x2ccefc._0x11eb60,_0x2ccefc._0x859a61)+_0x4488d2[_0x22d873(-_0x2ccefc._0x444bd4,-_0x2ccefc._0x535b61,-0x19e,-0x1b9)]+'.',{'filePath':_0x4488d2['filePath'],'resolvedPath':_0x12b3c0,'bytes':_0x2354cf[_0x1afc9a(0x3ee,0x35d,_0x2ccefc._0x2d8689,_0x2ccefc._0x591463)],'lines':_0x4488d2[_0x22d873(-0x155,-0x1a2,-0x105,-0x194)][_0x1afc9a(0x498,0x4b6,_0x2ccefc._0x51767c,0x520)](/\r?\n/)[_0x1afc9a(_0x2ccefc._0x5d0601,_0x2ccefc._0x1d68bd,0x364,_0x2ccefc._0x3b6b37)],'created':new Date()[_0x22d873(-_0x2ccefc._0x214734,-_0x2ccefc._0x46d30c,-_0x2ccefc._0x1aafbe,-_0x2ccefc._0x1869af)](),'overwritten':_0x49295e});function _0x22d873(_0x17f6ca,_0x35fe3f,_0x3c0526,_0x831eb6){return _0x9590c8(_0x17f6ca-0x105,_0x3c0526,_0x35fe3f- -_0x23cd80._0x39da50,_0x831eb6-_0x23cd80._0x23e1f1);}return void 0x0;}});}import{readFile as _0x249222,stat as _0x28098d}from'fs/promises';import*as _0x4c0422 from'path';function stripUtfBom(_0x5957ab){const _0x252139={_0xb48936:0x625,_0x1443f1:0x5ce,_0x2130b5:0x604},_0x24b5b4={_0x21b8d2:0x646,_0x4eea22:0x94};function _0x55a847(_0x348cdd,_0x3c4b90,_0x2aa521,_0x34efb2){return _0x379285(_0x348cdd-0xab,_0x3c4b90-_0x24b5b4._0x21b8d2,_0x2aa521-_0x24b5b4._0x4eea22,_0x348cdd);}return _0x5957ab['charCodeAt'](0x0)===0xfeff?_0x5957ab[_0x55a847(_0x252139._0xb48936,_0x252139._0x1443f1,_0x252139._0x2130b5,0x673)](0x1):_0x5957ab;}function clampLine(_0x271f6a,_0x228ba1){const _0x8adca3={_0x33692e:0x68,_0xba5115:0x184,_0x15607c:0x125,_0x389f8f:0x144,_0x1e1b32:0x1dc},_0x23139c={_0x3bc0ec:0x515};function _0x1fe826(_0xb287e,_0x460424,_0x2980be,_0x2e269a){return _0x256f33(_0x2980be,_0x460424-0x131,_0x2e269a- -0x4e6,_0x2e269a-0xdc);}function _0x382924(_0x36a363,_0x5f295c,_0x500114,_0x484f6a){return _0x256f33(_0x484f6a,_0x5f295c-0xa7,_0x500114- -_0x23139c._0x3bc0ec,_0x484f6a-0xf0);}if(!Number[_0x1fe826(-_0x8adca3._0x33692e,-_0x8adca3._0xba5115,-0x167,-0xe9)](_0x271f6a))return 0x1;return Math[_0x382924(-0x1ae,-0xb0,-_0x8adca3._0x15607c,-0x1d4)](0x1,Math[_0x1fe826(-0x91,-0x35,-0x9,-0x96)](Math[_0x382924(-0x23d,-_0x8adca3._0x389f8f,-_0x8adca3._0x1e1b32,-0x238)](_0x271f6a),_0x228ba1));}function createFileReadTool(_0x5648b0={}){const _0x235b9f={_0x596b00:0x200,_0x1d9d5f:0x74,_0x4e5e1f:0x11,_0x4db706:0xe4,_0x1e5ecd:0xdf,_0x23076b:0x7f,_0x39c0f0:0xc4,_0x303271:0xd8,_0x923f42:0x4b,_0x989bb6:0x34,_0x277d93:0x1bc,_0x478a06:0x17d,_0x3f8aa5:0x20e,_0x1e26fc:0x62,_0x5a1a8b:0x108,_0x2f6812:0x67},_0x396799={_0x8f3abc:0x22,_0x8a7dda:0x64,_0x27ac2e:0x62,_0x2b5749:0x8b,_0x1da447:0x83,_0x3e2499:0xb3,_0x180097:0x22,_0x386276:0x17,_0x1cf623:0x4e,_0x32c9fa:0x1db,_0x466e9f:0x16d,_0x565b79:0xcf,_0x10a23b:0xa2,_0x2b5227:0x39,_0x447fe9:0xfe,_0x11c8d8:0x132,_0x4c4d63:0x11b,_0x45dbab:0xf0,_0x181f9d:0x2e,_0x4d4de5:0x4c,_0x37adb7:0x50,_0x118a88:0x14d,_0x2604eb:0x1c0,_0x5495bc:0x19d,_0x3c9b85:0xb5,_0x486f98:0x9d,_0x40fed4:0x102,_0x332a33:0xdc,_0x1bf335:0xba,_0x255bf8:0x37,_0x223a31:0xce,_0x24db21:0x40,_0x1335d3:0x7f,_0x44631b:0x9a,_0x2104dc:0x47,_0x8f92f:0x115,_0x4314cd:0x6c,_0x2ff2d7:0x46,_0x2b859c:0x189,_0xc62ecd:0xdb,_0x343ea0:0xa4,_0x12050f:0xa9,_0x3d3e3a:0x15,_0xcc201e:0x74,_0x5f3f01:0x160,_0x49ec77:0xf4,_0x32a04a:0x100,_0x52dcc8:0x116,_0x378f70:0x52},_0x14ad0f={_0x528f65:0x1b},_0x58647c={_0x1d054f:0x134},_0x16020d=_0x4c0422['resolve'](_0x5648b0[_0x46edce(0x17b,0x13a,_0x235b9f._0x596b00,0x1c1)]??process[_0x342b0b(0x3d,-_0x235b9f._0x1d9d5f,0x29,-0x1c)]());function _0x342b0b(_0x1661f3,_0x220127,_0x4ad652,_0x430b70){return _0x379285(_0x1661f3-0x66,_0x4ad652-0x14d,_0x4ad652-_0x58647c._0x1d054f,_0x1661f3);}const _0x2dc893=_0x5648b0['name']??_0x342b0b(_0x235b9f._0x4e5e1f,0x55,0x81,_0x235b9f._0x4db706);function _0x46edce(_0x2376d3,_0x365210,_0xad8b3e,_0x4b0815){return _0x256f33(_0x365210,_0x365210-0x1bc,_0x4b0815- -0x200,_0x4b0815-_0x14ad0f._0x528f65);}return defineTool({'name':_0x2dc893,'description':_0x46edce(0x17c,0xb2,_0x235b9f._0x1e5ecd,0x102),'inputSchema':{'type':_0x342b0b(_0x235b9f._0x23076b,_0x235b9f._0x39c0f0,0x121,0x124),'properties':{'path':{'type':_0x342b0b(_0x235b9f._0x303271,_0x235b9f._0x923f42,0x7b,_0x235b9f._0x989bb6)},'lineStart':{'type':'number'},'lineEnd':{'type':_0x46edce(_0x235b9f._0x277d93,_0x235b9f._0x478a06,0x1d3,_0x235b9f._0x3f8aa5)}},'required':[_0x342b0b(_0x235b9f._0x1e26fc,0x1a4,_0x235b9f._0x5a1a8b,_0x235b9f._0x2f6812)]},async *'execute'(_0x4d0236){const _0x4ae0d6={_0x416d52:0x1d2,_0x2f9b6b:0x13,_0x341ee7:0x1e6},_0x38d5bf={_0x4e63de:0x207},_0x355850=resolveWorkspacePath(_0x16020d,_0x4d0236[_0x169ac4(-_0x396799._0x8f3abc,_0x396799._0x8a7dda,_0x396799._0x27ac2e,_0x396799._0x2b5749)]);await assertWorkspaceFile(_0x355850);const _0x1e5aff=await _0x28098d(_0x355850),_0x185022=await _0x249222(_0x355850);if(isProbablyBinary(_0x185022))throw new ToolExecutionError(_0x169ac4(-0xf6,-_0x396799._0x1da447,-0x6b,-_0x396799._0x3e2499)+_0x4d0236['path'],{'path':_0x4d0236[_0x169ac4(-_0x396799._0x180097,-_0x396799._0x386276,-0x9e,0x4c)]});let _0x2d66ff=_0x185022[_0x169ac4(-0x16,_0x396799._0x1cf623,0x41,-0x10)](_0xe4489e(0x14f,_0x396799._0x32c9fa,_0x396799._0x466e9f,_0x396799._0x565b79));const _0x3478b9=_0x2d66ff[_0xe4489e(0x73,0x2,_0x396799._0x10a23b,_0x396799._0x2b5227)](0x0)===0xfeff;function _0x169ac4(_0x7b9342,_0x278585,_0x1d6c6b,_0x43c56c){return _0x46edce(_0x7b9342-0x18c,_0x278585,_0x1d6c6b-0x30,_0x7b9342- -_0x38d5bf._0x4e63de);}_0x2d66ff=stripUtfBom(_0x2d66ff);const _0x2508ad=_0x2d66ff[_0xe4489e(0x16e,0x1b6,_0x396799._0x447fe9,_0x396799._0x11c8d8)](/\r?\n/),_0x4b68a7={'path':_0x4d0236[_0xe4489e(0xf5,0x18d,_0x396799._0x4c4d63,_0x396799._0x45dbab)],'resolvedPath':_0x355850,'created':_0x1e5aff['birthtime'][_0x169ac4(_0x396799._0x181f9d,_0x396799._0x4d4de5,0xc8,-_0x396799._0x37adb7)](),'modified':_0x1e5aff[_0xe4489e(_0x396799._0x118a88,0x124,_0x396799._0x2604eb,0x159)][_0xe4489e(0x145,0x19a,0x1f2,_0x396799._0x5495bc)](),'size':_0x1e5aff[_0x169ac4(-_0x396799._0x3c9b85,-0xbb,-_0x396799._0x486f98,-0xc5)],'encoding':'utf8','bomStripped':_0x3478b9,'truncated':![],'totalLines':_0x2508ad[_0x169ac4(-_0x396799._0x40fed4,-0x95,-_0x396799._0x332a33,-_0x396799._0x1bf335)]};if(_0x4d0236[_0xe4489e(_0x396799._0x255bf8,_0x396799._0x223a31,0x1c,-_0x396799._0x24db21)]!==void 0x0||_0x4d0236[_0x169ac4(0x1,-_0x396799._0x1335d3,_0x396799._0x44631b,-0x5d)]!==void 0x0){const _0x2f3ccf=clampLine(_0x4d0236[_0x169ac4(-0xe0,-_0x396799._0x2104dc,-_0x396799._0x8f92f,-_0x396799._0x4314cd)]??0x1,_0x2508ad[_0xe4489e(0x15,-_0x396799._0x2ff2d7,0x1d,0x40)]),_0x3e2c9b=clampLine(_0x4d0236[_0xe4489e(0x118,0xf4,_0x396799._0x2b859c,_0x396799._0xc62ecd)]??_0x2508ad[_0x169ac4(-_0x396799._0x40fed4,-0x1af,-_0x396799._0x343ea0,-_0x396799._0x12050f)],_0x2508ad[_0xe4489e(_0x396799._0x3d3e3a,_0x396799._0xcc201e,0xf,0x37)]),_0x36fee4=Math[_0xe4489e(_0x396799._0x5f3f01,0x1ba,0x1c4,_0x396799._0x49ec77)](_0x2f3ccf,_0x3e2c9b),_0x4ccdbb=Math[_0xe4489e(_0x396799._0x32a04a,0x61,0x196,0x62)](_0x2f3ccf,_0x3e2c9b),_0x4ddd38=_0x2508ad[_0x169ac4(-0x55,-0x6b,-0x6f,-0x46)](_0x36fee4-0x1,_0x4ccdbb)[_0xe4489e(0x86,_0x396799._0x52dcc8,_0x396799._0x378f70,0x3d)]((_0x1a2ecb,_0x41a4f7)=>_0x36fee4+_0x41a4f7+'|'+_0x1a2ecb)['join']('\x0a');return yield createToolOutput(_0x4ddd38,{..._0x4b68a7,'lineRange':{'lineStart':_0x36fee4,'lineEnd':_0x4ccdbb,'linesTotal':_0x2508ad['length']}}),void 0x0;}function _0xe4489e(_0x18c74d,_0x575338,_0x2e5afc,_0x372db6){return _0x342b0b(_0x575338,_0x575338-_0x4ae0d6._0x416d52,_0x18c74d- -_0x4ae0d6._0x2f9b6b,_0x372db6-_0x4ae0d6._0x341ee7);}return yield createToolOutput(_0x2d66ff,_0x4b68a7),void 0x0;}});}import{stat as _0x7d6eb9}from'fs/promises';import*as _0xf57af5 from'path';import{execSync,spawn as _0x4b517b}from'child_process';import{existsSync}from'fs';function _0x256f33(_0x23ce33,_0x4ff4eb,_0x48f723,_0x20145a){return _0x3e7e(_0x48f723-0x1c8,_0x23ce33);}import{stat as _0x57e0fb}from'fs/promises';import*as _0xde0cd4 from'os';import*as _0x40b7d0 from'path';import{rgPath as _0x221eff}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x30c326={_0x210e5d:0x249,_0xa62251:0x249,_0x16ccfd:0x23b,_0x815e7a:0x38a,_0x54b361:0x429,_0x34b676:0x3e2,_0x5b7f1d:0x37c,_0x5e4083:0x3fb,_0x5aeda8:0x42a,_0x54d0e1:0x39f,_0x12255e:0x3be,_0x2c4997:0x2ca,_0x100833:0x20d,_0xb247e6:0x137,_0x4aad52:0x17e,_0x1cd2d0:0x1cf,_0x445bf9:0xff,_0x442e8b:0x18c,_0x2d5f52:0x2f3,_0x3ab0da:0x2d8,_0x441ef0:0x337,_0x12b0f1:0x35a,_0x433411:0x403,_0x4151f5:0x1e1,_0x3054e2:0x259,_0x3d7469:0x2d8,_0x27dce3:0x2c6,_0x253543:0x2c2,_0x28c367:0x298,_0x3e4431:0x34e,_0x1cb5df:0x244,_0x5826ec:0x16e,_0x726928:0x265,_0xc1dae7:0x250,_0x3a2b8c:0x182,_0x428ae9:0x24c,_0x48ac25:0x1b2,_0x56ece4:0x241,_0x380148:0x33c,_0x2354b8:0x3e3,_0x507330:0x435,_0x2b8df9:0x47e,_0x27af3a:0x366,_0x32236b:0x414,_0xc8ad43:0x1d4,_0x5d332f:0x279,_0x39f384:0x1ea,_0x4d1a7c:0x341,_0x75ff67:0x337},_0x54d5f3={_0x5493f3:0x1a7,_0x2cf6a5:0x3da},_0x1a99e4={_0x4df8a4:0x48,_0x4c9e27:0xfc};function _0x3d6aa7(_0x16beda,_0x4b4db1,_0x226314,_0x221d3f){return _0x256f33(_0x4b4db1,_0x4b4db1-_0x1a99e4._0x4df8a4,_0x221d3f- -0x558,_0x221d3f-_0x1a99e4._0x4c9e27);}const _0x5160e1=_0xde0cd4[_0x362b44(0x2dc,0x2de,0x288,0x2b5)]()===_0x3d6aa7(-0x1ae,-_0x30c326._0x210e5d,-_0x30c326._0xa62251,-_0x30c326._0x16ccfd),_0xf0b8e6=_0x5160e1?[_0x40b7d0[_0x362b44(0x2f4,_0x30c326._0x815e7a,_0x30c326._0x54b361,0x3b2)](process[_0x362b44(_0x30c326._0x34b676,_0x30c326._0x5b7f1d,0x35f,0x3a3)][_0x362b44(0x3cf,_0x30c326._0x5e4083,0x3ca,_0x30c326._0x5aeda8)]||'',_0x362b44(_0x30c326._0x54d0e1,0x3dd,_0x30c326._0x12255e,0x3da),'WinGet',_0x362b44(0x3f1,0x352,0x2e1,_0x30c326._0x2c4997)),_0x40b7d0[_0x3d6aa7(-_0x30c326._0x100833,-_0x30c326._0xb247e6,-0x133,-_0x30c326._0x4aad52)](process[_0x3d6aa7(-_0x30c326._0x1cd2d0,-0x1ef,-_0x30c326._0x445bf9,-_0x30c326._0x442e8b)][_0x362b44(0x2a1,0x301,0x31d,_0x30c326._0x2d5f52)]||'',_0x362b44(0x317,_0x30c326._0x3ab0da,0x314,_0x30c326._0x441ef0),'rg.exe'),_0x40b7d0[_0x362b44(0x3c0,0x38a,_0x30c326._0x12b0f1,_0x30c326._0x433411)](process[_0x3d6aa7(-_0x30c326._0x4151f5,-0x1ea,-0x210,-_0x30c326._0x442e8b)]['ProgramFiles(x86)']||'',_0x362b44(_0x30c326._0x3054e2,_0x30c326._0x3d7469,_0x30c326._0x27dce3,0x35f),_0x362b44(_0x30c326._0x253543,0x334,_0x30c326._0x28c367,_0x30c326._0x3e4431))]:[_0x3d6aa7(-0x17c,-0x1be,-_0x30c326._0x1cb5df,-0x1d1),_0x3d6aa7(-_0x30c326._0x5826ec,-0x19d,-0x17c,-0x109),_0x3d6aa7(-_0x30c326._0x726928,-_0x30c326._0xc1dae7,-_0x30c326._0x3a2b8c,-0x210),'/bin/rg'];for(const _0xedd34d of _0xf0b8e6){if(existsSync(_0xedd34d))return _0xedd34d;}try{const _0x22e679=_0x5160e1?_0x3d6aa7(-0x2a7,-_0x30c326._0x428ae9,-_0x30c326._0x48ac25,-_0x30c326._0x56ece4):_0x362b44(_0x30c326._0x380148,_0x30c326._0x2354b8,_0x30c326._0x507330,_0x30c326._0x2b8df9),_0x59338a=execSync(_0x22e679,{'encoding':'utf8','stdio':['pipe',_0x362b44(0x33a,_0x30c326._0x27af3a,0x3a4,_0x30c326._0x32236b),_0x3d6aa7(-_0x30c326._0xc8ad43,-0x1dd,-_0x30c326._0x5d332f,-_0x30c326._0x39f384)]})[_0x362b44(0x380,_0x30c326._0x4d1a7c,0x3c8,_0x30c326._0x75ff67)]()['split'](/\r?\n/)[0x0];if(_0x59338a&&existsSync(_0x59338a))return _0x59338a;}catch{return null;}function _0x362b44(_0x1f5b26,_0x34c151,_0x1e6f16,_0x3820f6){return _0x379285(_0x1f5b26-_0x54d5f3._0x5493f3,_0x34c151-_0x54d5f3._0x2cf6a5,_0x1e6f16-0x92,_0x1f5b26);}return null;}async function filepath(){const _0x483e74={_0x1080be:0x319,_0xe880c0:0x29a},_0x43caf6={_0x39ac02:0x150,_0x191d03:0x13f,_0x426d71:0x177};if(cachedRgPath)return cachedRgPath;function _0x375b15(_0x407126,_0x595ed5,_0x33337b,_0x57cb8b){return _0x256f33(_0x595ed5,_0x595ed5-_0x43caf6._0x39ac02,_0x57cb8b- -_0x43caf6._0x191d03,_0x57cb8b-_0x43caf6._0x426d71);}if(_0x221eff&&existsSync(_0x221eff))return cachedRgPath=_0x221eff,_0x221eff;const _0x45f7f7=findSystemRipgrep();if(!_0x45f7f7)throw new Error(_0x375b15(_0x483e74._0x1080be,0x2e2,0x207,_0x483e74._0xe880c0));return cachedRgPath=_0x45f7f7,_0x45f7f7;}async function*files(_0xcae39f){const _0x41cc96={_0x9a4a6a:0x40d,_0x549aea:0x591,_0x41fa5a:0x5f4,_0xee1990:0x4fa,_0x5e49b6:0x444,_0x4c701b:0x493,_0x189ff7:0x5d1,_0x1b73b9:0x51a,_0x3adb82:0x4d1,_0x24876c:0x5f5,_0x3d74b7:0x528,_0x51ee6d:0x5f2,_0x346bf8:0x62d,_0x5d6256:0x533,_0x28750b:0x500,_0x421db3:0x5a5,_0x14e288:0x62a,_0x322ca5:0x5f4,_0x28e4f8:0x455,_0x4ea5c2:0x56d,_0xb3000a:0x49b,_0x1ea424:0x511,_0x19ddc0:0x58c,_0x1fbc3e:0x58f,_0x5f1633:0x559,_0x49cb95:0x5e4,_0x2f0c6d:0x566,_0x544c20:0x4e4,_0x5105d7:0x583,_0x51304b:0x458,_0x4cc5f0:0x492,_0x138890:0x443,_0x9b3e5c:0x3fa,_0x418bb4:0x435,_0x940486:0x51f,_0x585147:0x549,_0x26802d:0x4d4,_0x403fab:0x4ce,_0x4e3a0d:0x4cf},_0x26a3f5={_0x1e65e1:0x198},_0x2e43b1=await filepath(),_0x4fc8ae=await _0x57e0fb(_0xcae39f[_0x4ce764(_0x41cc96._0x9a4a6a,0x4c6,0x444,0x3f7)])['catch'](()=>null);if(!_0x4fc8ae?.['isDirectory']())throw Object[_0x6f333b(_0x41cc96._0x549aea,0x67c,0x5e4,_0x41cc96._0x41fa5a)](new Error(_0x6f333b(0x59d,0x4b7,_0x41cc96._0xee1990,0x4b7)+_0xcae39f[_0x4ce764(0x3b2,0x4a5,_0x41cc96._0x5e49b6,_0x41cc96._0x4c701b)]+'\x27'),{'code':'ENOENT'});const _0x56dc8e=['--files',_0x4ce764(_0x41cc96._0x189ff7,_0x41cc96._0x1b73b9,0x53d,_0x41cc96._0x3adb82),_0x6f333b(_0x41cc96._0x24876c,_0x41cc96._0x3d74b7,0x56d,_0x41cc96._0x51ee6d),_0x4ce764(_0x41cc96._0x346bf8,_0x41cc96._0x5d6256,0x581,0x5bb)];for(const _0x482584 of _0xcae39f[_0x6f333b(0x561,0x497,_0x41cc96._0x28750b,0x58d)]??[]){_0x56dc8e[_0x6f333b(_0x41cc96._0x421db3,_0x41cc96._0x14e288,_0x41cc96._0x322ca5,0x65b)](_0x4ce764(0x44b,0x451,0x474,_0x41cc96._0x28e4f8)+_0x482584);}const _0x5aed23=_0x4b517b(_0x2e43b1,_0x56dc8e,{'cwd':_0xcae39f['cwd'],'stdio':[_0x6f333b(_0x41cc96._0x4ea5c2,_0x41cc96._0xb3000a,_0x41cc96._0x1ea424,0x5aa),_0x6f333b(_0x41cc96._0x19ddc0,0x55a,0x559,0x543),_0x6f333b(_0x41cc96._0x1fbc3e,0x4fb,_0x41cc96._0x5f1633,_0x41cc96._0x49cb95)]});function _0x4ce764(_0x71b08c,_0x1e1e6d,_0x5cca31,_0x5b5de3){return _0x379285(_0x71b08c-0xd2,_0x5cca31-0x568,_0x5cca31-0x19b,_0x71b08c);}let _0xf899c='';for await(const _0x15b94e of _0x5aed23['stdout']??[]){_0xf899c+=_0x15b94e[_0x6f333b(0x5c8,_0x41cc96._0x2f0c6d,0x594,0x62c)]();const _0x11ff72=_0xf899c['split'](/\r?\n/);_0xf899c=_0x11ff72[_0x4ce764(0x50b,_0x41cc96._0x544c20,_0x41cc96._0x5105d7,0x5d5)]()??'';for(const _0x1e5e53 of _0x11ff72){if(_0x1e5e53[_0x4ce764(_0x41cc96._0x51304b,_0x41cc96._0x4cc5f0,_0x41cc96._0x138890,_0x41cc96._0x9b3e5c)]>0x0)yield _0x1e5e53;}}function _0x6f333b(_0x124431,_0x2983e7,_0x36523c,_0x22df96){return _0x379285(_0x124431-_0x26a3f5._0x1e65e1,_0x36523c-0x5cd,_0x36523c-0x193,_0x22df96);}_0xf899c[_0x4ce764(_0x41cc96._0x418bb4,_0x41cc96._0x940486,0x4cf,_0x41cc96._0x585147)]()[_0x6f333b(0x524,_0x41cc96._0x26802d,0x4a8,_0x41cc96._0x403fab)]>0x0&&(yield _0xf899c[_0x4ce764(0x507,0x43d,_0x41cc96._0x4e3a0d,0x44a)]());}function parseMatchLine(_0x1e2b78,_0x33bba0){const _0x292517={_0x360109:0x4d9,_0x4d3578:0x4ad,_0x32f734:0x45b,_0x148988:0x1aa,_0x40f22c:0x1b4,_0x1fee01:0x1a4,_0x12e121:0x44d,_0x58289a:0x4f0,_0x6bd135:0x25d,_0x5a2634:0x1fb,_0xb5e560:0x1e1,_0x1be079:0x22f,_0x1d6591:0x13e,_0x231e64:0x1b0,_0x217a3e:0x467,_0x4f4bca:0x3db,_0x1779f9:0x271,_0x3e0346:0x3a3,_0x5e641e:0x231,_0x266f0b:0x1e6,_0x34a5e3:0x15e,_0x21c4e9:0x1f6},_0x1dec60={_0x2a9352:0x66,_0x292080:0x427,_0x5eae46:0x87},_0x3e7e7d={_0x5b6b82:0x1b2,_0x3d7e49:0x228};function _0x418c35(_0x39ecd5,_0x265959,_0x122e73,_0x483017){return _0x379285(_0x39ecd5-_0x3e7e7d._0x5b6b82,_0x122e73-_0x3e7e7d._0x3d7e49,_0x122e73-0x1e2,_0x265959);}if(!_0x1e2b78||_0x1e2b78==='--')return null;const _0x41755c=_0x1e2b78[_0x2604c(_0x292517._0x360109,_0x292517._0x4d3578,_0x292517._0x32f734,0x3ed)]('|');if(_0x33bba0&&_0x41755c['length']>=0x4&&Number[_0x418c35(_0x292517._0x148988,_0x292517._0x40f22c,0x1fb,_0x292517._0x1fee01)](Number['parseInt'](_0x41755c[0x2]??'',0xa))){const _0x2d4c0f=Number[_0x2604c(0x3f7,_0x292517._0x12e121,0x445,_0x292517._0x58289a)](_0x41755c[0x1]??'',0xa);if(!Number[_0x418c35(_0x292517._0x6bd135,0x1e1,_0x292517._0x5a2634,_0x292517._0xb5e560)](_0x2d4c0f)||!_0x41755c[0x0])return null;return{'filePath':_0x41755c[0x0],'lineNum':_0x2d4c0f,'lineText':_0x41755c[_0x418c35(_0x292517._0x1be079,_0x292517._0x1d6591,_0x292517._0x231e64,0x1e4)](0x3)[_0x2604c(_0x292517._0x217a3e,0x3e8,0x3d7,_0x292517._0x4f4bca)]('|')};}function _0x2604c(_0x394752,_0x1beab9,_0x32246b,_0x14b048){return _0x379285(_0x394752-_0x1dec60._0x2a9352,_0x32246b-_0x1dec60._0x292080,_0x32246b-_0x1dec60._0x5eae46,_0x394752);}if(_0x41755c[_0x2604c(_0x292517._0x1779f9,0x28a,0x302,_0x292517._0x3e0346)]>=0x3){const _0x45f809=Number[_0x418c35(_0x292517._0x5e641e,_0x292517._0x266f0b,0x246,0x22b)](_0x41755c[0x1]??'',0xa);if(!Number[_0x418c35(_0x292517._0x34a5e3,0x1a4,_0x292517._0x5a2634,0x17c)](_0x45f809)||!_0x41755c[0x0])return null;return{'filePath':_0x41755c[0x0],'lineNum':_0x45f809,'lineText':_0x41755c['slice'](0x2)[_0x418c35(0x26b,0x22f,0x1d8,_0x292517._0x21c4e9)]('|'),..._0x33bba0?{'isContext':!![]}:{}};}return null;}async function search(_0x5e1a10){const _0xf70c42={_0x91a382:0xdb,_0x3123ac:0x93,_0xc4f5b:0x5c6,_0x30269e:0x622,_0x553f9d:0x57e,_0x8e9a08:0x4ab,_0x31b716:0x54c,_0x57e487:0x4d9,_0x1b1961:0x4c5,_0x4910b9:0x460,_0xd4a7c9:0x1b,_0x19ed98:0x6f,_0x56a40c:0x2,_0x423585:0x26,_0x54b651:0x62,_0x278e0d:0x47,_0x524bd1:0x4b0,_0x24bee9:0x51e,_0x1df8f2:0x40e,_0x21502a:0x443,_0x4b72d2:0x2d,_0x282ec8:0x43,_0x9952db:0x526,_0x2818b6:0x47b,_0x4b54a7:0x4de,_0x4507ec:0x51f,_0x386c91:0x547,_0x3ed0db:0x4c8,_0x2ce88c:0x36,_0x6b34a5:0x36,_0x31365e:0x16,_0x1c6430:0x512,_0x1ae48d:0x68,_0x309af1:0xb8,_0xcce87e:0xcb,_0x41ca2:0x50a,_0x3e8e28:0xd9,_0x4b1c52:0x108},_0x3f7a6f={_0x47fabf:0x33d,_0x4c560a:0x278,_0x5aa664:0x37a,_0x459a34:0x321,_0xfc0a7c:0x368,_0x1393ab:0x3b9,_0x548ad1:0x37c,_0x509e66:0x40b,_0x43f542:0x3ab,_0x419f0a:0x451,_0x1f2fb3:0x38d,_0x59e97:0x312,_0x17c199:0x463,_0x2b432f:0x461,_0x342546:0x2d9,_0x5e7018:0x3db,_0x5d4d19:0x3c0,_0x4f8861:0x45c,_0xb4b26e:0x35e,_0x2f6ea2:0x2b3,_0x4776ad:0x3e0,_0x50894f:0x393},_0x209521={_0x3b9d28:0x67},_0x486228={_0x3d86ef:0x14a},_0x1afe23=await filepath();if(_0x5e1a10['file']){const _0x39de2f=await _0x57e0fb(_0x5e1a10[_0x341b6f(0x30,_0xf70c42._0x91a382,_0xf70c42._0x3123ac,-0x16)])['catch'](()=>null);if(!_0x39de2f?.['isFile']())throw Object[_0x24f402(_0xf70c42._0xc4f5b,_0xf70c42._0x30269e,_0xf70c42._0x553f9d,0x5d7)](new Error('No\x20such\x20file:\x20\x27'+_0x5e1a10[_0x24f402(0x54b,_0xf70c42._0x8e9a08,_0xf70c42._0x31b716,_0xf70c42._0x57e487)]+'\x27'),{'code':_0x24f402(_0xf70c42._0x1b1961,0x525,0x4fb,_0xf70c42._0x4910b9)});}else{const _0x571826=await _0x57e0fb(_0x5e1a10['cwd'])[_0x341b6f(_0xf70c42._0xd4a7c9,_0xf70c42._0x19ed98,0xbb,_0xf70c42._0x56a40c)](()=>null);if(!_0x571826?.[_0x341b6f(-0x51,-0x7d,-0x62,-_0xf70c42._0x423585)]())throw Object[_0x341b6f(_0xf70c42._0x54b651,0xee,-_0xf70c42._0x278e0d,-0x28)](new Error(_0x24f402(0x3f9,_0xf70c42._0x524bd1,0x494,_0xf70c42._0x24bee9)+_0x5e1a10[_0x24f402(_0xf70c42._0x1df8f2,0x47f,_0xf70c42._0x21502a,0x3f2)]+'\x27'),{'code':'ENOENT'});}const _0x1d7d80=[_0x341b6f(_0xf70c42._0x4b72d2,-0x6d,-_0xf70c42._0x54b651,-_0xf70c42._0x282ec8),'--field-match-separator=|','--field-context-separator=|',_0x24f402(_0xf70c42._0x9952db,0x4f0,0x505,0x49d),_0x5e1a10['pattern']],_0x2c79e2=typeof _0x5e1a10[_0x24f402(0x464,_0xf70c42._0x2818b6,_0xf70c42._0x4b54a7,_0xf70c42._0x4507ec)]==='number'&&_0x5e1a10[_0x24f402(0x46f,_0xf70c42._0x386c91,0x4de,_0xf70c42._0x3ed0db)]>0x0;_0x2c79e2&&_0x1d7d80[_0x341b6f(0x72,_0xf70c42._0x2ce88c,0x6c,-_0xf70c42._0x6b34a5)]('-C',String(_0x5e1a10[_0x341b6f(-0x3e,0x18,-_0xf70c42._0x31365e,-0x54)]),_0x24f402(_0xf70c42._0x1c6430,0x559,0x4bd,0x4f5));_0x5e1a10['glob']&&!_0x5e1a10['file']&&_0x1d7d80['push'](_0x341b6f(_0xf70c42._0x1ae48d,_0xf70c42._0x309af1,_0xf70c42._0xcce87e,0xec),_0x5e1a10[_0x24f402(0x3f8,_0xf70c42._0x41ca2,0x49a,0x490)]);_0x1d7d80['push'](_0x5e1a10['file']??_0x5e1a10[_0x341b6f(-_0xf70c42._0x3e8e28,-_0xf70c42._0x4b1c52,-0x6d,-0x124)]);function _0x24f402(_0x428f4b,_0x19afd4,_0x3f6476,_0x388cd5){return _0x256f33(_0x428f4b,_0x19afd4-_0x486228._0x3d86ef,_0x3f6476-0x13d,_0x388cd5-0x3c);}function _0x341b6f(_0x567ee7,_0x17e10a,_0x1771a2,_0x1d8029){return _0x256f33(_0x17e10a,_0x17e10a-0x56,_0x567ee7- -0x3df,_0x1d8029-_0x209521._0x3b9d28);}return await new Promise((_0x2c4fbd,_0x449a82)=>{const _0x1f9880={_0x42f54a:0x3a4,_0x12dc86:0x1be,_0x43d21e:0x22b,_0x54fdb1:0x36e,_0x250612:0x454,_0x626f8f:0x2fa,_0x2a9b1f:0x31d},_0x549725={_0x24a38c:0x148,_0x987775:0x3a,_0x1a8be2:0x41},_0x4d4efe={_0x50b82b:0x434,_0x45ef8b:0x48},_0x1f0da5={_0x2983cb:0x197,_0x13972f:0x1a3},_0x1aeb1d=_0x4b517b(_0x1afe23,_0x1d7d80,{'cwd':_0x5e1a10[_0x12bba1(_0x3f7a6f._0x47fabf,0x346,_0x3f7a6f._0x4c560a,0x2cc)],'stdio':[_0x4115a4(_0x3f7a6f._0x5aa664,0x3c3,_0x3f7a6f._0x459a34,0x3f3),_0x12bba1(_0x3f7a6f._0xfc0a7c,0x411,_0x3f7a6f._0x1393ab,_0x3f7a6f._0x548ad1),_0x4115a4(0x490,_0x3f7a6f._0x509e66,_0x3f7a6f._0x43f542,_0x3f7a6f._0x419f0a)]});let _0x41a616='',_0x4ed41b='';function _0x12bba1(_0x46daea,_0x39b39e,_0x2e5e25,_0x156d2e){return _0x341b6f(_0x156d2e-0x3a5,_0x46daea,_0x2e5e25-_0x1f0da5._0x2983cb,_0x156d2e-_0x1f0da5._0x13972f);}_0x1aeb1d[_0x4115a4(0x3c1,_0x3f7a6f._0x1f2fb3,_0x3f7a6f._0x59e97,0x36b)]?.['on'](_0x4115a4(0x43a,0x3c0,_0x3f7a6f._0x17c199,_0x3f7a6f._0x2b432f),_0x42cef5=>{_0x41a616+=_0x42cef5['toString']();});function _0x4115a4(_0x449f27,_0x4013fc,_0x215b32,_0x437435){return _0x341b6f(_0x4013fc-_0x4d4efe._0x50b82b,_0x215b32,_0x215b32-_0x4d4efe._0x45ef8b,_0x437435-0x1ca);}_0x1aeb1d[_0x12bba1(_0x3f7a6f._0x342546,0x2d1,_0x3f7a6f._0x5e7018,0x35e)]?.['on'](_0x4115a4(0x32b,_0x3f7a6f._0x5d4d19,0x398,_0x3f7a6f._0x4f8861),_0x5ca8c5=>{_0x4ed41b+=_0x5ca8c5['toString']();}),_0x1aeb1d['on'](_0x4115a4(0x368,_0x3f7a6f._0xb4b26e,_0x3f7a6f._0x2f6ea2,_0x3f7a6f._0x4776ad),_0x4af882=>{const _0x145cc5={_0x5d4511:0x102,_0x33bb60:0x54c,_0x453419:0x12};if(_0x4af882===0x1&&_0x41a616===''){_0x2c4fbd([]);return;}if(_0x4af882!==0x0&&_0x4af882!==0x1){_0x449a82(new Error(_0x22053a(0x35c,0x34d,_0x1f9880._0x42f54a,0x3ca)+_0x4ed41b));return;}const _0x6a1178=_0x5e1a10[_0x380f61(-_0x1f9880._0x12dc86,-0x1e3,-_0x1f9880._0x43d21e,-0x254)]??0x64;function _0x22053a(_0x20dcf9,_0x5c0bde,_0x3bfa13,_0x569fae){return _0x12bba1(_0x20dcf9,_0x5c0bde-_0x549725._0x24a38c,_0x3bfa13-_0x549725._0x987775,_0x3bfa13- -_0x549725._0x1a8be2);}function _0x380f61(_0x4d8fb9,_0x2fcd15,_0x1c1c88,_0x493a92){return _0x4115a4(_0x4d8fb9-_0x145cc5._0x5d4511,_0x2fcd15- -_0x145cc5._0x33bb60,_0x4d8fb9,_0x493a92-_0x145cc5._0x453419);}const _0x560377=[];for(const _0x34b206 of _0x41a616[_0x22053a(0x48c,_0x1f9880._0x54fdb1,0x3e3,_0x1f9880._0x250612)](/\r?\n/)){if(_0x560377[_0x22053a(0x265,_0x1f9880._0x626f8f,0x28a,_0x1f9880._0x2a9b1f)]>=_0x6a1178)break;const _0x5b1395=parseMatchLine(_0x34b206,_0x2c79e2);if(_0x5b1395)_0x560377['push'](_0x5b1395);}_0x2c4fbd(_0x560377);}),_0x1aeb1d['on'](_0x12bba1(0x414,0x36a,0x34b,_0x3f7a6f._0x50894f),_0x449a82);});}function createGlobTool(_0x2f174e={}){const _0x17ebdc={_0x42dd02:0xc4,_0x5c3a0d:0xe2,_0x35045e:0x6f,_0x253e9b:0xd9,_0x565a21:0x98,_0x3553ab:0x11c,_0x3eaf5e:0x8e,_0x2d2b2a:0x1aa,_0x25854f:0x1a5,_0x341929:0xb7,_0x6f17d1:0xa0,_0x1b2d0a:0x1cc,_0x16db6d:0x190,_0x508cd6:0x20d,_0x20213:0x236,_0x2034db:0x70,_0x5cf9f1:0x34,_0x1e308c:0x48,_0x470a48:0x72},_0x4b5423={_0x1a548d:0xaa,_0x10e400:0x1f1,_0x5c502c:0x142,_0x2a52c8:0x20b,_0x6606c:0x20d,_0x35a9bc:0x4a9,_0x984d99:0x53c,_0x4bd88c:0x53f,_0x44bd49:0x5bd,_0x1b89a0:0x645,_0x5a5a4b:0x432,_0x1aabcb:0x10f,_0x3f5ae4:0x5e4,_0x5044d8:0x565,_0xf0000:0x4b8,_0x2b80b2:0x514,_0x26d0ab:0x63a,_0x466df7:0x445,_0x2fb957:0x48f,_0x4f3e50:0x4dd,_0x2198c1:0x206,_0x461b33:0x158,_0x4a4420:0xca,_0x2a3ac8:0x421,_0x17f14a:0x57e,_0x404055:0x51d,_0x2f6201:0x641,_0x1d36fd:0xdb,_0xf4bb9c:0x70,_0x2f006b:0x103,_0x49f55a:0x1a1,_0xaa8ad3:0x562,_0x515fcd:0x4c6,_0x5eb637:0x568,_0x5f4161:0x509,_0x564618:0x1d8,_0x3309d8:0x135,_0x5b883e:0x553,_0x136a6f:0x5af,_0x548055:0x5a0,_0x5d6602:0x64d,_0x2c7fc2:0x1a5,_0x34f5c1:0x249,_0x2811f8:0x234,_0xcfe35f:0x2ae,_0x4edd4a:0x27a},_0x4a7241={_0x2bba5f:0x732,_0x3719f3:0xd4},_0x368d84={_0x52c69b:0x60,_0x3da3cb:0x164,_0x27d971:0x1ae},_0x3c8777={_0x2efcdf:0x1bb,_0x1b5d8b:0x6,_0x333016:0x75},_0x2e07f8=_0xf57af5[_0x5885cd(_0x17ebdc._0x42dd02,0x25,-0x1f,-0x20)](_0x2f174e[_0x5885cd(-_0x17ebdc._0x5c3a0d,-_0x17ebdc._0x35045e,0x36,-_0x17ebdc._0x253e9b)]??process['cwd']());function _0x5885cd(_0x24b0b4,_0x32bea5,_0x9035f8,_0x1b0fa8){return _0x379285(_0x24b0b4-_0x3c8777._0x2efcdf,_0x32bea5- -_0x3c8777._0x1b5d8b,_0x9035f8-_0x3c8777._0x333016,_0x24b0b4);}const _0x5b00ea=_0x2f174e[_0x5885cd(-_0x17ebdc._0x565a21,-_0x17ebdc._0x3553ab,-_0x17ebdc._0x3eaf5e,-_0x17ebdc._0x2d2b2a)]??0x64,_0x160d3f=_0x2f174e[_0x52cc33(-0x156,-0xd7,-0x12b,-_0x17ebdc._0x25854f)]??_0x5885cd(-0x97,-_0x17ebdc._0x341929,-_0x17ebdc._0x6f17d1,-0x4d);function _0x52cc33(_0x5695f5,_0x48cdaf,_0x41c755,_0x5d96bf){return _0x379285(_0x5695f5-_0x368d84._0x52c69b,_0x5695f5- -_0x368d84._0x3da3cb,_0x41c755-_0x368d84._0x27d971,_0x48cdaf);}return defineTool({'name':_0x160d3f,'description':_0x52cc33(-0x150,-_0x17ebdc._0x1b2d0a,-0xd4,-0xff),'inputSchema':{'type':_0x52cc33(-_0x17ebdc._0x16db6d,-0x108,-0x1c3,-0x1b5),'properties':{'pattern':{'type':_0x52cc33(-0x236,-_0x17ebdc._0x508cd6,-0x2b9,-0x292)},'path':{'type':_0x52cc33(-_0x17ebdc._0x20213,-0x22e,-0x1ff,-0x1d2)},'limit':{'type':'number'}},'required':[_0x5885cd(_0x17ebdc._0x2034db,-_0x17ebdc._0x5cf9f1,-_0x17ebdc._0x1e308c,-_0x17ebdc._0x470a48)]},async *'execute'(_0x131a72){function _0x511e41(_0x278e7d,_0x2a4b53,_0x524a8b,_0x378dac){return _0x52cc33(_0x524a8b-0x3a,_0x278e7d,_0x524a8b-0x92,_0x378dac-0x196);}if(_0x131a72[_0x511e41(-_0x4b5423._0x1a548d,-_0x4b5423._0x10e400,-0x158,-0xc0)][_0x511e41(-_0x4b5423._0x5c502c,-_0x4b5423._0x2a52c8,-0x1c3,-_0x4b5423._0x6606c)]()[_0x483bad(0x4c7,0x527,_0x4b5423._0x35a9bc,0x4ac)]===0x0)throw new ToolExecutionError(_0x483bad(_0x4b5423._0x984d99,0x4ef,_0x4b5423._0x4bd88c,0x5af),{});const _0x3a14ab=resolveWorkspacePath(_0x2e07f8,_0x131a72[_0x483bad(0x5b6,0x5d3,0x589,_0x4b5423._0x44bd49)]??'.'),_0x5330d9=await _0x7d6eb9(_0x3a14ab)[_0x483bad(0x588,_0x4b5423._0x1b89a0,0x59e,0x5cd)](()=>null);if(!_0x5330d9?.['isDirectory']())throw new ToolExecutionError(_0x483bad(0x551,0x55d,0x4cf,_0x4b5423._0x5a5a4b)+(_0x131a72[_0x511e41(-0x144,-_0x4b5423._0x1aabcb,-0x16f,-0x190)]??'.'),{'path':_0x131a72[_0x483bad(_0x4b5423._0x3f5ae4,0x5f5,0x589,0x50c)]??'.'});const _0x8e8849=_0x131a72[_0x483bad(0x4a4,_0x4b5423._0x5044d8,_0x4b5423._0xf0000,0x4aa)]??_0x5b00ea,_0x5f5daf=Math[_0x483bad(0x5f1,_0x4b5423._0x2b80b2,0x594,_0x4b5423._0x26d0ab)](0x1,Math[_0x483bad(_0x4b5423._0x466df7,_0x4b5423._0x2fb957,_0x4b5423._0x4f3e50,0x4fb)](_0x8e8849)),_0x5d5171=[];let _0xcda608=![];for await(const _0x2d7b78 of files({'cwd':_0x3a14ab,'glob':[_0x131a72[_0x511e41(-_0x4b5423._0x2198c1,-0x165,-_0x4b5423._0x461b33,-_0x4b5423._0x4a4420)]]})){if(_0x5d5171[_0x483bad(_0x4b5423._0x2a3ac8,0x4f9,0x4a9,0x3fa)]>=_0x5f5daf){_0xcda608=!![];break;}const _0x757ad=await _0x7d6eb9(_0xf57af5[_0x483bad(0x4f8,0x5d4,_0x4b5423._0x17f14a,_0x4b5423._0x404055)](_0x3a14ab,_0x2d7b78))[_0x483bad(0x532,0x529,0x59e,_0x4b5423._0x2f6201)](()=>null);_0x5d5171[_0x511e41(-_0x4b5423._0x1d36fd,-_0x4b5423._0xf4bb9c,-_0x4b5423._0x2f006b,-_0x4b5423._0x49f55a)]({'path':_0x2d7b78,'mtime':_0x757ad?.[_0x483bad(_0x4b5423._0xaa8ad3,_0x4b5423._0x515fcd,_0x4b5423._0x5eb637,_0x4b5423._0x5f4161)]??0x0});}_0x5d5171['sort']((_0x597f11,_0x4ecc15)=>_0x4ecc15[_0x511e41(-0x17c,-0x97,-0x117,-0xea)]-_0x597f11[_0x483bad(0x5a4,0x674,0x5e1,0x5a7)]);const _0xecf5ed=_0x5d5171[_0x511e41(-_0x4b5423._0x564618,-_0x4b5423._0x3309d8,-0x1de,-0x1cb)](_0x3f3d98=>_0x3f3d98[_0x483bad(0x5b1,0x601,0x589,0x598)]),_0x2fe03a=_0xecf5ed[_0x483bad(_0x4b5423._0x5b883e,0x4cf,0x4a9,0x42b)]===0x0?'No\x20files\x20found\x20matching\x20pattern:\x20'+_0x131a72[_0x483bad(_0x4b5423._0x136a6f,0x5b9,_0x4b5423._0x548055,_0x4b5423._0x5d6602)]:''+_0xecf5ed['join']('\x0a')+(_0xcda608?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');function _0x483bad(_0x128a8a,_0x516737,_0x394e88,_0x2eefa8){return _0x52cc33(_0x394e88-_0x4a7241._0x2bba5f,_0x516737,_0x394e88-_0x4a7241._0x3719f3,_0x2eefa8-0x18b);}return yield createToolOutput(_0x2fe03a,{'pattern':_0x131a72['pattern'],'searchPath':_0xf57af5[_0x511e41(-_0x4b5423._0x2c7fc2,-_0x4b5423._0x34f5c1,-_0x4b5423._0x2811f8,-_0x4b5423._0xcfe35f)](_0x2e07f8,_0x3a14ab)||'.','matches':_0xecf5ed,'count':_0xecf5ed[_0x511e41(-0x212,-0x236,-0x24f,-_0x4b5423._0x4edd4a)],'truncated':_0xcda608}),void 0x0;}});}import{stat as _0x23bbfb}from'fs/promises';import*as _0x5f05d7 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x3015ff={}){const _0x452d69={_0x209a2c:0x231,_0x3a3436:0x2f0,_0x1ad966:0x1a0,_0x3e80ba:0x178,_0x2c5856:0x12b,_0x54226d:0x9c,_0x3121b6:0x11f,_0x5c3ffc:0x56,_0x17aac0:0x16c,_0xa7a587:0x211,_0x2f654d:0x215,_0x47b063:0x1ad,_0xfe8059:0x246,_0x42a8ac:0x225,_0x4a1f8d:0x213},_0x283306={_0x134004:0x10,_0x39ba0d:0xef,_0xc832e1:0x68,_0x3a0f0f:0x73,_0x21df52:0x19,_0x2ed134:0x145,_0x3d0041:0xa5,_0x569e10:0x9,_0x4059d0:0x3c,_0xa6626f:0x5b,_0x2a4cdf:0x3b,_0x27294e:0x32,_0xedf57f:0xe,_0x389190:0x50,_0x3d76a2:0x27,_0x38670e:0x75,_0x2909a7:0x11e,_0x4d16b8:0x129,_0x3e2ef5:0x8f,_0x2f8d6d:0x41,_0x4d83e4:0x21,_0x444c2a:0x23,_0x297775:0xa3,_0x2af1e4:0x6b,_0x281dcb:0x4a,_0x120e72:0x7,_0x363861:0x29,_0x293b8e:0x52,_0x188904:0x3a,_0x2c395f:0x19,_0x2b4fc7:0xf,_0x3d55be:0xb0,_0x123dbe:0xa0,_0x4dc2d2:0x8,_0x30df2b:0x69,_0x11bea5:0x1f,_0x1443e3:0x75,_0x31effa:0xd9,_0x3a2032:0x25,_0x3bd979:0x76,_0x1e7353:0x22,_0x1644cb:0x20,_0x1518f3:0xa7,_0x12418e:0x7f,_0x455444:0x19,_0xb6fab1:0x15,_0x5c9547:0x66,_0x5aacee:0xb5,_0x141eba:0x122,_0x1a4cd0:0x64,_0x3ae065:0x48,_0x4cf69a:0x1,_0x29cc28:0xe4,_0x6c3622:0x6c,_0x106488:0x5c,_0x19b464:0x52,_0x4c5817:0x108,_0x17602a:0xc,_0x1920d2:0x137,_0xe28944:0x128,_0x4009cd:0x7c,_0x588e4b:0x84,_0x5c2829:0x1d,_0x20c4ed:0x2a,_0x586694:0x5b,_0x21efc1:0xd,_0x24f77a:0x2a,_0x556d48:0x7b,_0x1e7618:0x65,_0x5778ab:0x18,_0x86ffa4:0x57,_0x3744d9:0xa2,_0x49b813:0x40,_0x3f17ec:0x59,_0x347424:0x41,_0x430fee:0x36,_0xf3993c:0xe7,_0xaea688:0xb1,_0x2217e0:0xce,_0x193262:0x52},_0x501d6b={_0x17abbe:0x5},_0x49ecda={_0x481fa1:0x154},_0x4ae5c7={_0x42b415:0x241,_0x45da48:0x8b},_0x4f3a31=_0x5f05d7['resolve'](_0x3015ff[_0x44b826(_0x452d69._0x209a2c,0x1d1,0x18d,0x1d8)]??process[_0x465979(-_0x452d69._0x3a3436,-0x1ac,-0x28a,-0x251)]());function _0x44b826(_0x3f4814,_0x3e4233,_0x2ccc9a,_0x47ac9f){return _0x379285(_0x3f4814-0xcd,_0x47ac9f-_0x4ae5c7._0x42b415,_0x2ccc9a-_0x4ae5c7._0x45da48,_0x2ccc9a);}const _0x1a7fba=_0x3015ff[_0x44b826(0x1aa,_0x452d69._0x1ad966,_0x452d69._0x3e80ba,_0x452d69._0x2c5856)]??0x64,_0x1739d7=_0x3015ff[_0x465979(-0x18d,-0x17b,-_0x452d69._0x54226d,-_0x452d69._0x3121b6)]??'Grep';function _0x465979(_0x4f9585,_0x358f62,_0x5e2fc4,_0x2de5eb){return _0x256f33(_0x5e2fc4,_0x358f62-_0x49ecda._0x481fa1,_0x2de5eb- -0x557,_0x2de5eb-0x97);}return defineTool({'name':_0x1739d7,'description':_0x465979(-0x192,-0x7e,-_0x452d69._0x5c3ffc,-0xfb),'inputSchema':{'type':_0x44b826(0x1a5,_0x452d69._0x17aac0,_0x452d69._0xa7a587,_0x452d69._0x2f654d),'properties':{'pattern':{'type':_0x44b826(_0x452d69._0x47b063,_0x452d69._0x2f654d,0xec,0x16f)},'path':{'type':_0x465979(-0x220,-0x204,-_0x452d69._0xfe8059,-0x1ff)},'include':{'type':'string'},'limit':{'type':_0x44b826(0x1c2,0x183,0x29d,_0x452d69._0x42a8ac)},'context':{'type':'number'}},'required':[_0x44b826(0x1e7,_0x452d69._0x2f654d,0x1ba,_0x452d69._0x4a1f8d)]},async *'execute'(_0x4a33b3){const _0x16e09e={_0xc24c72:0x1f4};if(_0x4a33b3[_0x385657(-_0x283306._0x134004,0xdd,_0x283306._0x39ba0d,0x52)][_0x385657(-_0x283306._0xc832e1,-0x3e,-_0x283306._0x3a0f0f,-_0x283306._0x21df52)]()[_0x385657(-0xb1,-0xb9,-_0x283306._0x2ed134,-_0x283306._0x3d0041)]===0x0)throw new ToolExecutionError(_0xefac3d(0x53,-_0x283306._0x569e10,-0x4a,-0x1d),{});const _0x35a248=resolveWorkspacePath(_0x4f3a31,_0x4a33b3[_0x385657(-_0x283306._0x4059d0,0xd2,_0x283306._0xa6626f,_0x283306._0x2a4cdf)]??'.'),_0xd18f0=await _0x23bbfb(_0x35a248)[_0x385657(_0x283306._0x27294e,_0x283306._0xedf57f,0xa4,_0x283306._0x389190)](()=>null),_0x53506d=_0xd18f0?.[_0x385657(_0x283306._0x3d76a2,-_0x283306._0x38670e,0x16,0x2a)]()??![],_0x257c8e=_0xd18f0?.['isDirectory']()??![];function _0x385657(_0x146b4e,_0x4608e6,_0xbdd40,_0xbfcc96){return _0x465979(_0x146b4e-0x179,_0x4608e6-_0x16e09e._0xc24c72,_0x146b4e,_0xbfcc96-0x1ad);}if(!_0x53506d&&!_0x257c8e)throw new ToolExecutionError(_0x385657(-_0x283306._0x2909a7,-0xe7,-_0x283306._0x4d16b8,-_0x283306._0x3e2ef5)+(_0x4a33b3[_0x385657(0x76,0xd5,0x42,0x3b)]??'.'),{'path':_0x4a33b3[_0xefac3d(0x33,_0x283306._0x2f8d6d,_0x283306._0x4d83e4,_0x283306._0x444c2a)]??'.'});const _0x4718ed=_0x4a33b3[_0xefac3d(-0x5,-0x90,-0x5,-0x13d)]??_0x1a7fba;function _0xefac3d(_0x41c6fe,_0x3a6210,_0x33263a,_0x424a86){return _0x465979(_0x41c6fe-_0x501d6b._0x17abbe,_0x3a6210-0x85,_0x424a86,_0x3a6210-0x1b3);}const _0x110bb0=Math[_0x385657(0x8b,0x4c,_0x283306._0x297775,0x46)](0x1,Math[_0xefac3d(-0xcb,-_0x283306._0x2af1e4,-_0x283306._0x281dcb,-0xad)](_0x4718ed)),_0x34a29c=await search({'cwd':_0x257c8e?_0x35a248:_0x5f05d7[_0xefac3d(0x9f,-_0x283306._0x120e72,_0x283306._0x363861,0x86)](_0x35a248),'pattern':_0x4a33b3['pattern'],'glob':_0x257c8e?_0x4a33b3[_0xefac3d(-_0x283306._0x293b8e,-0x74,-_0x283306._0x188904,-_0x283306._0x2c395f)]:void 0x0,'limit':_0x110bb0,'file':_0x53506d?_0x35a248:void 0x0,'context':_0x4a33b3[_0x385657(-0x8f,_0x283306._0x2b4fc7,-_0x283306._0x3d55be,-0x9)]}),_0x4e3ddb=new Map();for(const _0x49778f of _0x34a29c){if(!_0x4e3ddb[_0x385657(0x4b,_0x283306._0x123dbe,_0x283306._0x4dc2d2,_0x283306._0x30df2b)](_0x49778f[_0x385657(_0x283306._0x11bea5,_0x283306._0x1443e3,_0x283306._0x31effa,0x34)])){const _0x24b74c=await _0x23bbfb(_0x49778f[_0xefac3d(-0x5b,0x3a,0x53,-0x57)])[_0xefac3d(-0x9,0x56,-_0x283306._0x3a2032,-_0x283306._0x27294e)](()=>null);_0x4e3ddb[_0xefac3d(_0x283306._0x3bd979,0x5,_0x283306._0x1e7353,0x1c)](_0x49778f['filePath'],{'matches':[],'mtime':_0x24b74c?.[_0xefac3d(0xb7,_0x283306._0x1644cb,_0x283306._0x1518f3,_0x283306._0x12418e)]??0x0});}_0x4e3ddb[_0xefac3d(-_0x283306._0x455444,_0x283306._0xb6fab1,-0x4f,0x23)](_0x49778f[_0x385657(0xc0,_0x283306._0x5c9547,_0x283306._0x5aacee,0x34)])?.['matches'][_0x385657(_0x283306._0x141eba,_0x283306._0x1a4cd0,0x7f,0xa7)](_0x49778f);}const _0x14fa9e=[..._0x4e3ddb['entries']()]['sort']((_0x16309e,_0x2eb2cf)=>_0x2eb2cf[0x1][_0xefac3d(0x107,0x99,0x61,0xd4)]-_0x16309e[0x1][_0xefac3d(0x41,0x99,0xb1,0x67)]),_0x59a08d=_0x34a29c[_0xefac3d(_0x283306._0x3ae065,-0x61,-0x104,-0xde)](_0x286136=>!_0x286136[_0x385657(-0xd9,-0x3d,-0xd3,-0x5c)])[_0xefac3d(-0x92,-0x9f,-0xf5,-0x18)],_0x432e05=_0x34a29c['length']>=_0x110bb0,_0x2b76c0=_0x53506d?_0x5f05d7[_0x385657(0x58,-0x54,0x40,-0xd)](_0x35a248):_0x35a248;let _0x7ed387='';if(_0x34a29c[_0xefac3d(-_0x283306._0x4cf69a,-0x9f,0x8,_0x283306._0x4dc2d2)]===0x0)_0x7ed387=_0x385657(-0x97,-_0x283306._0x29cc28,-0x14,-_0x283306._0x6c3622)+_0x4a33b3[_0x385657(-_0x283306._0x106488,0xad,-0x37,_0x283306._0x19b464)];else{_0x7ed387=_0x385657(_0x283306._0x4c5817,0xd2,-_0x283306._0x17602a,0x63)+_0x59a08d+_0xefac3d(_0x283306._0x1920d2,0x93,_0x283306._0xe28944,_0x283306._0x4009cd)+(_0x59a08d===0x1?'':'es')+'\x0a';for(const [_0x55a622,_0x35ae22]of _0x14fa9e){const _0x3b93d7=_0x53506d?_0x5f05d7['basename'](_0x55a622):_0x5f05d7[_0xefac3d(-0x1,-_0x283306._0x588e4b,_0x283306._0x5c2829,-0x11)](_0x2b76c0,_0x55a622);_0x7ed387+='\x0a'+_0x3b93d7+':\x0a';for(const _0x489f45 of _0x35ae22['matches']){const _0x18c8b7=_0x489f45[_0xefac3d(-0x62,-_0x283306._0x20c4ed,-0x55,-_0x283306._0x586694)][_0x385657(-0x78,-_0x283306._0x21efc1,-0xd0,-0xa5)]>MAX_LINE_LENGTH?_0x489f45[_0xefac3d(0x78,-_0x283306._0x24f77a,-0x5c,-_0x283306._0x3a2032)][_0x385657(_0x283306._0x556d48,_0x283306._0x3bd979,-_0x283306._0x1e7618,0x8)](0x0,MAX_LINE_LENGTH)+_0x385657(0x1,0x5,-_0x283306._0x5778ab,0x2):_0x489f45['lineText'],_0x34afd3=_0x489f45[_0x385657(-_0x283306._0x86ffa4,-_0x283306._0x3744d9,-0x50,-_0x283306._0x106488)]?'\x20\x20':'>\x20';_0x7ed387+=_0x34afd3+_0x385657(0x4,0xd4,-_0x283306._0x49b813,_0x283306._0x3f17ec)+_0x489f45[_0x385657(-0x70,_0x283306._0x347424,0x5c,-_0x283306._0x430fee)]+':\x20'+_0x18c8b7+'\x0a';}}_0x432e05&&(_0x7ed387+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x129e8c={'searchPath':_0x5f05d7[_0x385657(-_0x283306._0xf3993c,-_0x283306._0xaea688,-0xb9,-0x8a)](_0x4f3a31,_0x35a248)||'.','pattern':_0x4a33b3['pattern'],'matchCount':_0x59a08d,'fileCount':_0x4e3ddb[_0xefac3d(-_0x283306._0x2217e0,-_0x283306._0x193262,_0x283306._0x134004,-0x87)],'truncated':_0x432e05};return _0x257c8e&&_0x4a33b3['include']!==void 0x0&&(_0x129e8c['include']=_0x4a33b3['include']),yield createToolOutput(_0x7ed387['trim'](),_0x129e8c),void 0x0;}});}import{readdir,readFile as _0x5f0278,stat as _0x52ee5c}from'fs/promises';import*as _0x2aee41 from'path';import*as _0x19893e from'yaml';async function countTextLines(_0x3d4902){const _0x272a7f={_0x32eef5:0x12f,_0x191f1b:0x94,_0x4ce39a:0xf2,_0x419a60:0x122,_0x55a9a9:0x14c,_0x1ce1b8:0xb7,_0xde929f:0xa4,_0x2d707f:0x85,_0x4df082:0x17a,_0x529ce2:0x200},_0xa29d05={_0x2bacee:0x1a},_0xb36858={_0x34fa2b:0x12e,_0x39b5d7:0x17a};function _0x4a3757(_0x27e12d,_0x55a067,_0x51f1fc,_0x51abd6){return _0x379285(_0x27e12d-_0xb36858._0x34fa2b,_0x51f1fc- -0x161,_0x51f1fc-_0xb36858._0x39b5d7,_0x51abd6);}function _0x2ff6e4(_0x443dbe,_0x3fcb33,_0x1aecd9,_0xe44d56){return _0x256f33(_0x443dbe,_0x3fcb33-0x187,_0xe44d56- -0x4e3,_0xe44d56-_0xa29d05._0x2bacee);}const _0x4056cc=await _0x5f0278(_0x3d4902)['catch'](()=>null);if(!_0x4056cc||isProbablyBinary(_0x4056cc))return void 0x0;return _0x4056cc[_0x2ff6e4(-_0x272a7f._0x32eef5,-_0x272a7f._0x191f1b,-0x143,-_0x272a7f._0x4ce39a)](_0x4a3757(-_0x272a7f._0x419a60,-_0x272a7f._0x419a60,-_0x272a7f._0x55a9a9,-_0x272a7f._0x1ce1b8))[_0x2ff6e4(-0x90,-0x132,-_0x272a7f._0xde929f,-_0x272a7f._0x2d707f)](/\r?\n/)[_0x2ff6e4(-_0x272a7f._0x4df082,-0x267,-_0x272a7f._0x529ce2,-0x1de)];}function createLsTool(_0x3a2e2c={}){const _0x2ef39d={_0x1af4c0:0x399,_0x576514:0x3ee,_0x43ce6:0x361,_0x34919c:0x462,_0x2c57b4:0x333,_0x8d90f0:0x2f8,_0x164c4e:0x123,_0xfd1866:0x3a5,_0x40cf01:0x168,_0x6608ae:0xd1},_0x16eee5={_0x23534c:0x49f,_0x28b92f:0x402,_0x2bb05a:0x38a,_0xcd424b:0x3d0,_0xbcd3d8:0x4ae,_0x12756a:0x52b,_0x3663bd:0x3aa,_0x24ff11:0x31b,_0x404f25:0x4d1,_0x1352e5:0x428,_0x2d8b08:0x415,_0x53f676:0x469,_0x281b49:0x43a,_0x31f253:0x4e7,_0x30aed6:0x565,_0x54e8a1:0x41f,_0x211fdd:0x472,_0x2a2dca:0x453,_0x48c651:0x474,_0xc9ae28:0x404,_0x3fde27:0x3bb,_0x11b759:0x48e,_0x42ad8c:0x451,_0x544b5a:0x43f,_0x1ee15e:0x447,_0x251762:0x41e,_0x5a7bd6:0x45a,_0x4b6c9a:0x44f,_0x266ed2:0x4d3,_0x18fd93:0x485,_0x4a7642:0x416,_0x500084:0x4fb,_0x4c5bcc:0x4f5,_0x53132f:0x588,_0x33b4a4:0x3b9,_0x4bfc99:0x3cd,_0x5cf637:0x370,_0x23b1ac:0x316,_0x2e2b3e:0x37b,_0x43c563:0x504,_0x424c60:0x3f2,_0xb82b:0x3b9,_0x3f5e49:0x37b,_0x2d09b5:0x368,_0x19aa1f:0x39d},_0x37b00f={_0xd3de4b:0x49},_0x8fa8a7={_0x3028d7:0x457,_0x1875d8:0x1c7},_0x14e1bd={_0x46fc4e:0x14f,_0x350413:0x1c9},_0x2b7661=_0x2aee41['resolve'](_0x3a2e2c[_0x8a3991(_0x2ef39d._0x1af4c0,_0x2ef39d._0x576514,_0x2ef39d._0x43ce6,_0x2ef39d._0x34919c)]??process[_0x8a3991(0x303,_0x2ef39d._0x2c57b4,_0x2ef39d._0x8d90f0,0x340)]());function _0x1a018c(_0x408269,_0x1c726b,_0xdcdfe9,_0x1c06e3){return _0x379285(_0x408269-0x1cb,_0xdcdfe9-_0x14e1bd._0x46fc4e,_0xdcdfe9-_0x14e1bd._0x350413,_0x1c06e3);}function _0x8a3991(_0x3a3478,_0x1f7059,_0x2785a8,_0x5d71f0){return _0x379285(_0x3a3478-0x19,_0x1f7059-_0x8fa8a7._0x3028d7,_0x2785a8-_0x8fa8a7._0x1875d8,_0x3a3478);}const _0x94823b=_0x3a2e2c['name']??'Ls';return defineTool({'name':_0x94823b,'description':'List\x20files\x20and\x20directories\x20in\x20a\x20workspace\x20directory.','inputSchema':{'type':_0x1a018c(0x140,0x8c,_0x2ef39d._0x164c4e,0x117),'properties':{'path':{'type':_0x8a3991(_0x2ef39d._0xfd1866,0x385,_0x2ef39d._0x2c57b4,0x3b5)},'limit':{'type':_0x1a018c(_0x2ef39d._0x40cf01,0xdf,0x133,_0x2ef39d._0x6608ae)}}},async *'execute'(_0x54a99e){const _0x396673={_0x2d0b1c:0xa1},_0x2bc236=_0x54a99e[_0x37e411(0x48f,_0x16eee5._0x23534c,0x459,0x3fa)]??'.',_0x15f293=resolveWorkspacePath(_0x2b7661,_0x2bc236);function _0x241013(_0x230526,_0x2cef5c,_0x4c3dbf,_0x207ab0){return _0x8a3991(_0x230526,_0x4c3dbf-_0x37b00f._0xd3de4b,_0x4c3dbf-0x123,_0x207ab0-0xca);}const _0x59e368=await _0x52ee5c(_0x15f293)['catch'](()=>null);if(!_0x59e368?.['isDirectory']())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x2bc236,{'path':_0x2bc236});const _0x1f475c=_0x54a99e[_0x241013(_0x16eee5._0x28b92f,0x2ea,_0x16eee5._0x2bb05a,_0x16eee5._0xcd424b)]??0x3e8,_0x226c7d=Math['min'](Math[_0x37e411(0x49a,_0x16eee5._0xbcd3d8,_0x16eee5._0x12756a,0x3f5)](Math[_0x241013(0x418,_0x16eee5._0x3663bd,0x3af,_0x16eee5._0x24ff11)](_0x1f475c),0x1),0x2710),_0xc3970d=await readdir(_0x15f293),_0x3b2bde=[];function _0x37e411(_0x274eb7,_0x2e90b7,_0x5ec9e3,_0xbe7092){return _0x1a018c(_0x274eb7-_0x396673._0x2d0b1c,_0x2e90b7-0x119,_0x274eb7-0x385,_0xbe7092);}for(const _0x5223ae of _0xc3970d[_0x241013(0x404,_0x16eee5._0x404f25,_0x16eee5._0x1352e5,_0x16eee5._0x2d8b08)](0x0,_0x226c7d)){const _0x2c6057=_0x2aee41['join'](_0x15f293,_0x5223ae),_0x17ae14=await _0x52ee5c(_0x2c6057)[_0x37e411(0x4a4,_0x16eee5._0x53f676,0x4a0,0x480)](()=>null);if(!_0x17ae14)continue;let _0x45437c=_0x37e411(0x4bb,_0x16eee5._0x281b49,_0x16eee5._0x31f253,_0x16eee5._0x30aed6);if(_0x17ae14[_0x241013(_0x16eee5._0x54e8a1,0x4d1,0x44a,_0x16eee5._0x211fdd)]())_0x45437c='file';else{if(_0x17ae14[_0x241013(_0x16eee5._0x2a2dca,_0x16eee5._0x48c651,_0x16eee5._0xc9ae28,_0x16eee5._0x3fde27)]())_0x45437c=_0x241013(0x3d3,_0x16eee5._0x11b759,_0x16eee5._0x42ad8c,_0x16eee5._0x544b5a);else{if(_0x17ae14[_0x241013(_0x16eee5._0x1ee15e,0x46f,0x447,0x42a)]())_0x45437c='symlink';}}const _0x4114e8={'name':_0x5223ae,'type':_0x45437c,'size':_0x17ae14[_0x241013(_0x16eee5._0x251762,0x44d,0x3c8,_0x16eee5._0x5a7bd6)],'mtime':_0x17ae14['mtimeMs'],'mode':_0x17ae14['mode']},_0x5d57ad=_0x45437c===_0x241013(_0x16eee5._0x4b6c9a,_0x16eee5._0x266ed2,_0x16eee5._0x18fd93,_0x16eee5._0x4a7642)?await countTextLines(_0x2c6057):void 0x0;if(_0x5d57ad!==void 0x0)_0x4114e8['lines']=_0x5d57ad;_0x3b2bde[_0x37e411(_0x16eee5._0x500084,_0x16eee5._0x4c5bcc,_0x16eee5._0x53132f,_0x16eee5._0x12756a)](_0x4114e8);}_0x3b2bde[_0x37e411(_0x16eee5._0x33b4a4,0x403,0x330,_0x16eee5._0x4bfc99)]((_0x4e3d31,_0x140423)=>_0x4e3d31[_0x241013(0x44e,0x4e0,0x4ae,0x4b0)][_0x37e411(0x411,0x392,0x368,0x458)](_0x140423[_0x37e411(0x4e2,0x45d,0x57b,0x4c6)]));const _0x2ffb37={'path':_0x2bc236,'total':_0x3b2bde[_0x241013(_0x16eee5._0x5cf637,0x361,0x37b,0x337)],'truncated':_0xc3970d[_0x241013(_0x16eee5._0x23b1ac,0x34f,_0x16eee5._0x2e2b3e,0x331)]>_0x226c7d,'entries':_0x3b2bde};return yield createToolOutput(_0x19893e[_0x241013(_0x16eee5._0x43c563,0x532,0x493,0x4b2)](_0x2ffb37,{'indent':0x2,'lineWidth':0x0})[_0x241013(_0x16eee5._0x424c60,_0x16eee5._0xb82b,0x3c2,0x437)](),{'path':_0x2bc236,'total':_0x3b2bde[_0x241013(0x320,0x3de,_0x16eee5._0x3f5e49,0x369)],'truncated':_0xc3970d[_0x37e411(0x3af,0x366,_0x16eee5._0x2d09b5,_0x16eee5._0x19aa1f)]>_0x226c7d,'limit':_0x226c7d,'entries':_0x3b2bde}),void 0x0;}});}import{randomUUID}from'crypto';import{mkdir as _0x4536a1,readFile as _0x5782e9,writeFile as _0x4ed649}from'fs/promises';import{join as _0x1b158c}from'path';function sanitizeStorageKey(_0x141828){const _0x1ea37d={_0x49dfa1:0x4d3,_0x34b4f0:0x4fb,_0x398808:0x57b,_0x6fd84a:0x4f5,_0x47de3d:0x454,_0x138625:0x45f,_0x255615:0x4d0},_0x54cb62={_0x33ae28:0x5e,_0x15c71f:0x1d9},_0xc9086={_0x281d39:0x127,_0x3fbabc:0x14d};function _0x2025c4(_0x4d5a9e,_0x10dd60,_0x3891a3,_0x123774){return _0x256f33(_0x123774,_0x10dd60-_0xc9086._0x281d39,_0x10dd60-0x2d,_0x123774-_0xc9086._0x3fbabc);}function _0x58adc6(_0x4f7c34,_0x1e17f2,_0x1c0a81,_0xff574e){return _0x256f33(_0xff574e,_0x1e17f2-_0x54cb62._0x33ae28,_0x4f7c34-0x9b,_0xff574e-_0x54cb62._0x15c71f);}return _0x141828[_0x58adc6(0x4f8,_0x1ea37d._0x49dfa1,_0x1ea37d._0x34b4f0,0x4f2)](/[^a-zA-Z0-9_]+/g,'_')[_0x58adc6(0x4f8,_0x1ea37d._0x398808,_0x1ea37d._0x6fd84a,_0x1ea37d._0x47de3d)](/^_+|_+$/g,'')||_0x2025c4(0x3ba,_0x1ea37d._0x138625,0x3b6,_0x1ea37d._0x255615);}function storagePath(_0x5302df){const _0x23c810={_0x6eecca:0x330},_0x1d69f8={_0x38c548:0x1b8},_0x35d0a0=sanitizeStorageKey(_0x5302df['config']['oauth']?.['tokenStorageKey']??_0x5302df['serverName']);function _0x38e942(_0x4361d8,_0x54a0e1,_0x3e6419,_0x244fec){return _0x379285(_0x4361d8-0x164,_0x54a0e1-0x481,_0x3e6419-_0x1d69f8._0x38c548,_0x3e6419);}function _0x1172be(_0x1a13ab,_0x888919,_0x31c675,_0x3942b5){return _0x379285(_0x1a13ab-0x97,_0x3942b5-0x17e,_0x31c675-0xe4,_0x31c675);}return _0x1b158c(_0x5302df[_0x38e942(0x464,0x446,0x4e7,0x4af)],_0x35d0a0+_0x38e942(0x45a,0x3bd,_0x23c810._0x6eecca,0x3ad));}async function readStore(_0x411ab9){const _0x9310ef={_0xd5fa25:0x4f9,_0x18b45a:0x423,_0x51d723:0x584,_0x30adcf:0x5dc,_0x4c676b:0x594,_0x308ff6:0x43f,_0x14f3ae:0x481,_0x271dfc:0x453,_0x17850a:0x51e,_0x1c7454:0x502,_0x28dbcd:0x526},_0x565eec={_0x50e88d:0xd8,_0x1544ae:0x5e,_0xcd7ec0:0x6d},_0x253362={_0x5eb1b8:0x154};function _0x1da6de(_0x1760cc,_0x1cf448,_0x4e23f9,_0x3df8f4){return _0x256f33(_0x4e23f9,_0x1cf448-0x1db,_0x1cf448-0x160,_0x3df8f4-_0x253362._0x5eb1b8);}function _0x4935a6(_0x230d22,_0x30d0bd,_0x1930b3,_0x4b8a6f){return _0x256f33(_0x230d22,_0x30d0bd-_0x565eec._0x50e88d,_0x1930b3-_0x565eec._0x1544ae,_0x4b8a6f-_0x565eec._0xcd7ec0);}try{return JSON['parse'](await _0x5782e9(_0x411ab9,_0x4935a6(0x4ae,_0x9310ef._0xd5fa25,0x49d,_0x9310ef._0x18b45a)));}catch(_0x3de9ef){if(_0x3de9ef instanceof Error&&_0x1da6de(_0x9310ef._0x51d723,0x583,_0x9310ef._0x30adcf,_0x9310ef._0x4c676b)in _0x3de9ef&&_0x3de9ef[_0x4935a6(_0x9310ef._0x308ff6,0x416,_0x9310ef._0x14f3ae,_0x9310ef._0x271dfc)]===_0x1da6de(0x533,_0x9310ef._0x17850a,_0x9310ef._0x1c7454,_0x9310ef._0x28dbcd))return{};throw _0x3de9ef;}}async function writeStore(_0x35c5b4,_0x32284a){const _0x1f977d={_0x1c3cf8:0xcf,_0x534003:0x180},_0x3d75a2={_0x430e10:0x1b3,_0x5dd770:0x235},_0x420a3f={_0x1d0c60:0xe4};function _0x27146e(_0x26de08,_0x38d824,_0x1a9da5,_0x164fe5){return _0x379285(_0x26de08-_0x420a3f._0x1d0c60,_0x1a9da5- -0x131,_0x1a9da5-0x1cf,_0x38d824);}await _0x4536a1(_0x1b158c(_0x35c5b4,'..'),{'recursive':!![]});function _0x410ebb(_0x121cd3,_0x2b2a6e,_0x4f4d81,_0x4d7145){return _0x379285(_0x121cd3-_0x3d75a2._0x430e10,_0x2b2a6e-_0x3d75a2._0x5dd770,_0x4f4d81-0x75,_0x4f4d81);}await _0x4ed649(_0x35c5b4,JSON[_0x27146e(-0xa9,-0x16a,-0x13e,-_0x1f977d._0x1c3cf8)](_0x32284a,null,0x2),_0x27146e(-0x107,-0xf2,-0x11c,-_0x1f977d._0x534003));}async function updateStore(_0x5f246a,_0x5e7d21){const _0x2731bb=await readStore(_0x5f246a);_0x5e7d21(_0x2731bb),await writeStore(_0x5f246a,_0x2731bb);}function _0x379285(_0x4e8f35,_0x2d5908,_0x49d7c3,_0x376412){return _0x3e7e(_0x2d5908- -0x262,_0x376412);}function createMcpOAuthProvider(_0x45e35f){const _0x2d4d98={_0x139456:0x8d,_0x521a5c:0xc7,_0x4784f5:0x575,_0x4efda0:0x5ad,_0x2c1eb9:0x256,_0xe22ab:0x238,_0x4c6321:0x1b0,_0x23c8c7:0x125,_0x53cd7a:0x192,_0x3aa3f8:0x85,_0x708920:0xea,_0x1e1b79:0x624,_0x499585:0x581,_0x37b9e6:0x5f8,_0x48d28c:0x299,_0x592988:0x21c,_0x53354f:0x582,_0xb75576:0x51b,_0x193fa0:0x48c,_0x50ea08:0x507},_0xddd4e3={_0x358f08:0x54c,_0x20083a:0x63a},_0x2c9f74={_0xecaf76:0x166,_0x30c35d:0x41b},_0x40c3ec={_0x31f505:0x56a,_0x860be7:0x503,_0x122ea6:0x2f,_0x2f8cb1:0x4b,_0x142bbe:0xb4,_0xe273ef:0x18,_0x593a9c:0x8a,_0x1cc84a:0x3b8,_0x57d700:0x41c,_0x15813a:0x4e5,_0x1f16f3:0x503,_0x1a28b7:0x12,_0x3ca61e:0x8e,_0x4a9c39:0xbd},_0xad440c={_0x4f8797:0x2d1,_0x3e65f9:0x257,_0xfdd703:0x295},_0x1cd880={_0x19c4b9:0x10a,_0x36cf87:0x125},_0x48f863={_0x228958:0x53e,_0xd7acf5:0x4d2,_0x208405:0x59f},_0x357b6e={_0x1f21bf:0x22d,_0x549a8e:0x1cc,_0x14625c:0x1cb},_0x166fa5={_0x3d83b3:0xf4,_0x30dca0:0xf1,_0xed2b81:0x32e},_0x162ab6={_0x4500d8:0x272,_0x3f8f1f:0x161},_0xafb8dd={_0x338cf8:0x471,_0x54ad16:0x4b4},_0x1f339a={_0x55b82b:0x40,_0x555ee7:0x1a},_0x273e43={_0x47cf73:0x118},_0x32383f={_0x19f624:0x89},_0x3bef52=storagePath(_0x45e35f);function _0x4fb5df(_0x58cf9,_0x355c9a,_0x12ede7,_0x44b306){return _0x256f33(_0x44b306,_0x355c9a-_0x32383f._0x19f624,_0x12ede7- -0x223,_0x44b306-0x119);}const _0xb019a9=_0x45e35f[_0x4fb5df(_0x2d4d98._0x139456,_0x2d4d98._0x521a5c,0x138,0x1b8)]['oauth']?.[_0x3f7ccb(0x62c,_0x2d4d98._0x4784f5,0x659,0x5e5)]?.[_0x3f7ccb(0x5b7,0x529,0x554,_0x2d4d98._0x4efda0)]('\x20');function _0x3f7ccb(_0x12c870,_0x5a644c,_0x240a61,_0x475862){return _0x379285(_0x12c870-0x180,_0x475862-0x5fd,_0x240a61-_0x273e43._0x47cf73,_0x240a61);}const _0x5d70c7={'client_name':_0x4fb5df(_0x2d4d98._0x2c1eb9,_0x2d4d98._0xe22ab,0x1c0,_0x2d4d98._0x4c6321),'redirect_uris':[_0x45e35f[_0x4fb5df(_0x2d4d98._0x23c8c7,_0x2d4d98._0x53cd7a,0x1cb,0x268)]],'grant_types':[_0x4fb5df(0x166,_0x2d4d98._0x3aa3f8,0x123,_0x2d4d98._0x708920),_0x3f7ccb(_0x2d4d98._0x1e1b79,0x5c8,_0x2d4d98._0x499585,_0x2d4d98._0x37b9e6)],'response_types':[_0x4fb5df(0x288,_0x2d4d98._0x48d28c,0x200,_0x2d4d98._0x592988)],'token_endpoint_auth_method':'client_secret_post',..._0xb019a9?{'scope':_0xb019a9}:{}};return{'clientMetadataUrl':_0x45e35f[_0x3f7ccb(0x489,_0x2d4d98._0x53354f,_0x2d4d98._0xb75576,0x52e)][_0x3f7ccb(0x48b,0x483,_0x2d4d98._0x193fa0,_0x2d4d98._0x50ea08)]?.[_0x3f7ccb(0x4ac,0x44b,0x514,0x4dd)],get 'redirectUrl'(){return _0x45e35f['callbackUrl'];},get 'clientMetadata'(){return _0x5d70c7;},async 'state'(){const _0x1adaa9={_0x352019:0x170,_0x3abd2b:0x2f9},_0x4a51ab=await readStore(_0x3bef52);if(_0x4a51ab['state'])return _0x4a51ab[_0x2e856e(_0x162ab6._0x4500d8,_0x162ab6._0x3f8f1f,0x1e3,0x246)];const _0x2bcdc7=randomUUID();function _0x2e856e(_0x6c989e,_0x8c4125,_0x2e8e7a,_0x1af963){return _0x4fb5df(_0x6c989e-0x1c5,_0x8c4125-_0x1f339a._0x55b82b,_0x2e8e7a- -_0x1f339a._0x555ee7,_0x6c989e);}return await updateStore(_0x3bef52,_0x1a1f8c=>{function _0x1d0054(_0x50503f,_0x1bf84f,_0x4c42fd,_0x3da561){return _0x2e856e(_0x1bf84f,_0x1bf84f-_0x1adaa9._0x352019,_0x50503f-_0x1adaa9._0x3abd2b,_0x3da561-0x1b8);}_0x1a1f8c[_0x1d0054(0x4dc,_0xafb8dd._0x338cf8,0x4b9,_0xafb8dd._0x54ad16)]=_0x2bcdc7;}),_0x2bcdc7;},async 'clientInformation'(){function _0x4220a7(_0xa1e5a9,_0x8db61d,_0x221399,_0x2fe6d3){return _0x3f7ccb(_0xa1e5a9-_0x166fa5._0x3d83b3,_0x8db61d-_0x166fa5._0x30dca0,_0xa1e5a9,_0x2fe6d3- -_0x166fa5._0xed2b81);}return(await readStore(_0x3bef52))[_0x4220a7(_0x357b6e._0x1f21bf,0x148,_0x357b6e._0x549a8e,_0x357b6e._0x14625c)];},async 'saveClientInformation'(_0x2552d6){const _0x1aa01b={_0x1a1893:0x4d7,_0x14f190:0x429};await updateStore(_0x3bef52,_0x19877d=>{function _0x1d3c83(_0x198beb,_0x3e0b8d,_0x4b6c41,_0x288cc6){return _0x3e7e(_0x288cc6-0x2cb,_0x198beb);}_0x19877d[_0x1d3c83(0x472,_0x1aa01b._0x1a1893,0x3a4,_0x1aa01b._0x14f190)]=_0x2552d6;});},async 'tokens'(){const _0x5c5fe7={_0x1f5026:0x104};function _0x1eebea(_0x16cc47,_0x395eb8,_0x75d17,_0x4d3f0c){return _0x4fb5df(_0x16cc47-0xe,_0x395eb8-_0x5c5fe7._0x1f5026,_0x16cc47-0x40c,_0x395eb8);}return(await readStore(_0x3bef52))[_0x1eebea(_0x48f863._0x228958,0x5ec,_0x48f863._0xd7acf5,_0x48f863._0x208405)];},async 'saveTokens'(_0x3c7989){const _0x4d03ce={_0x4c11ca:0x156,_0x221612:0x1a3};await updateStore(_0x3bef52,_0x216ac=>{function _0x1e1dde(_0x5d3da2,_0x2b32fd,_0x50c775,_0x21c004){return _0x3e7e(_0x50c775-0x16,_0x2b32fd);}_0x216ac[_0x1e1dde(0x170,_0x4d03ce._0x4c11ca,_0x4d03ce._0x221612,0x1e6)]=_0x3c7989;});},async 'redirectToAuthorization'(_0x3e89a4){function _0x38eb74(_0x3d2fa8,_0x2a21ff,_0x1ba0d3,_0x5ee701){return _0x4fb5df(_0x3d2fa8-0xe8,_0x2a21ff-0x1c7,_0x2a21ff- -0x166,_0x5ee701);}await _0x45e35f[_0x38eb74(-0x88,-0x7d,-_0x1cd880._0x19c4b9,-_0x1cd880._0x36cf87)](_0x3e89a4);},async 'saveCodeVerifier'(_0x49d9a7){await updateStore(_0x3bef52,_0x14e564=>{_0x14e564['codeVerifier']=_0x49d9a7;});},async 'codeVerifier'(){const _0x5e8d91={_0x4d0e8f:0x98};function _0x5de785(_0x2fe3fe,_0x2128f9,_0x3d93bd,_0x48f420){return _0x4fb5df(_0x2fe3fe-_0x5e8d91._0x4d0e8f,_0x2128f9-0x193,_0x48f420-0xe3,_0x3d93bd);}const _0x430d84=(await readStore(_0x3bef52))[_0x5de785(_0xad440c._0x4f8797,_0xad440c._0x3e65f9,0x215,_0xad440c._0xfdd703)];if(!_0x430d84)throw new Error('No\x20MCP\x20OAuth\x20code\x20verifier\x20saved');return _0x430d84;},async 'invalidateCredentials'(_0x5de60a){await updateStore(_0x3bef52,_0x502d37=>{const _0x1c3372={_0x37cb44:0x1a5};(_0x5de60a===_0x32a95f(_0x40c3ec._0x31f505,0x5ad,0x458,_0x40c3ec._0x860be7)||_0x5de60a===_0x33f865(-0x3d,_0x40c3ec._0x122ea6,-_0x40c3ec._0x2f8cb1,-0x67))&&(_0x502d37['clientInformation']=void 0x0);function _0x32a95f(_0x56a355,_0xfa87c2,_0x460a79,_0x1fc36e){return _0x3e7e(_0x1fc36e-0x28f,_0x56a355);}function _0x33f865(_0x5541bb,_0x276a69,_0x2c07b5,_0x45c1f7){return _0x3e7e(_0x2c07b5- -_0x1c3372._0x37cb44,_0x276a69);}(_0x5de60a==='all'||_0x5de60a===_0x33f865(0x84,-_0x40c3ec._0x142bbe,-_0x40c3ec._0xe273ef,-_0x40c3ec._0x593a9c))&&(_0x502d37[_0x32a95f(0x3f3,_0x40c3ec._0x1cc84a,0x48c,_0x40c3ec._0x57d700)]=void 0x0),(_0x5de60a===_0x32a95f(0x5a5,_0x40c3ec._0x15813a,0x540,_0x40c3ec._0x1f16f3)||_0x5de60a===_0x33f865(-_0x40c3ec._0x1a28b7,-0x33,0x39,0x79))&&(_0x502d37['codeVerifier']=void 0x0,_0x502d37[_0x33f865(0xb5,_0x40c3ec._0x3ca61e,0xb3,0x41)]=void 0x0),(_0x5de60a===_0x33f865(0x47,_0x40c3ec._0x4a9c39,0xcf,0x21)||_0x5de60a==='discovery')&&(_0x502d37['discoveryState']=void 0x0);});},async 'saveDiscoveryState'(_0x52219e){const _0x2546d6={_0x279a67:0x574,_0x27ba89:0x503};await updateStore(_0x3bef52,_0x1d98f4=>{function _0x33c705(_0x180b5b,_0x4c2f31,_0x1f20e3,_0x1b096e){return _0x3e7e(_0x1f20e3-0x3a5,_0x180b5b);}_0x1d98f4[_0x33c705(0x4c8,0x5f0,_0x2546d6._0x279a67,_0x2546d6._0x27ba89)]=_0x52219e;});},async 'discoveryState'(){function _0x43dbac(_0x1a47f7,_0x13ae04,_0x186cae,_0x33bcdf){return _0x4fb5df(_0x1a47f7-0x120,_0x13ae04-_0x2c9f74._0xecaf76,_0x13ae04-_0x2c9f74._0x30c35d,_0x33bcdf);}return(await readStore(_0x3bef52))[_0x43dbac(_0xddd4e3._0x358f08,0x58f,0x543,_0xddd4e3._0x20083a)];}};}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(_0x5413e3,_0x258c2b){const _0x4cc7f4={_0x6a621c:0x14e,_0x4c6961:0x1cd},_0x5165eb={_0x20323a:0x174};function _0x5e35af(_0x305199,_0x2c20a4,_0x40f9c2,_0x38f8a2){return _0x379285(_0x305199-0xda,_0x2c20a4-0x263,_0x40f9c2-_0x5165eb._0x20323a,_0x40f9c2);}const _0x2502b7=_0x19d349=>_0x19d349['replace'](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'');return _0x5e35af(0x1cd,0x14f,_0x4cc7f4._0x6a621c,_0x4cc7f4._0x4c6961)+_0x2502b7(_0x5413e3)+'_'+_0x2502b7(_0x258c2b);}function isObject(_0x4cf332){const _0x530749={_0x8a2151:0x1e1,_0x575c98:0x177,_0x25ba0f:0x181},_0x280b67={_0x36eb4d:0x1e0,_0x5a3390:0x181};function _0x1f19d8(_0x2b31d8,_0x49978a,_0x400ffb,_0x2c37cd){return _0x256f33(_0x49978a,_0x49978a-_0x280b67._0x36eb4d,_0x2c37cd- -0x4be,_0x2c37cd-_0x280b67._0x5a3390);}return typeof _0x4cf332==='object'&&_0x4cf332!==null&&!Array[_0x1f19d8(-0x168,-_0x530749._0x8a2151,-_0x530749._0x575c98,-_0x530749._0x25ba0f)](_0x4cf332);}function toSupportedSchema(_0x121c49){const _0x5a12e1={_0x79ef04:0x447,_0x36efc9:0x3de,_0x29b377:0x39d,_0x273fa2:0x361,_0x59a5db:0x39d,_0x145773:0x341,_0x4a36e0:0x361,_0x3e936c:0x340,_0x252fa0:0x45f,_0x218b0d:0x342,_0xa07bd7:0x371,_0x2cddde:0x363,_0x5262b3:0x20f,_0x7c65c5:0x290,_0x28c625:0x2b7,_0x2e18b3:0x43d,_0x1699c7:0x480,_0x3cf3b9:0x366,_0x275057:0x363,_0x9536c1:0x3a7,_0x2ef132:0x1ef,_0x8e6b07:0x352,_0x322413:0x355,_0x32ad63:0x331,_0x3115bf:0x407,_0x2877bc:0x419,_0x261b70:0x363,_0x2d7cbb:0x2f8,_0x50ff86:0x46a},_0x4bf66f={_0x7ec498:0x66,_0x3ec4df:0xf3},_0x7ba6e3={_0x19e60e:0x88,_0x315f03:0xd0};if(!isObject(_0x121c49))return void 0x0;function _0x33e1e5(_0x168ad7,_0x2af910,_0x29605d,_0x2def8f){return _0x256f33(_0x2def8f,_0x2af910-_0x7ba6e3._0x19e60e,_0x29605d-0x9,_0x2def8f-_0x7ba6e3._0x315f03);}if(_0x121c49[_0x33e1e5(_0x5a12e1._0x79ef04,0x4bf,0x45f,0x41a)]===_0x33e1e5(_0x5a12e1._0x36efc9,_0x5a12e1._0x29b377,_0x5a12e1._0x273fa2,0x2e2))return{'type':_0x33e1e5(_0x5a12e1._0x59a5db,_0x5a12e1._0x145773,_0x5a12e1._0x4a36e0,_0x5a12e1._0x3e936c)};if(_0x121c49[_0x33e1e5(0x4d3,0x3e4,_0x5a12e1._0x252fa0,0x448)]===_0x2c22d0(_0x5a12e1._0x218b0d,0x320,0x31b,_0x5a12e1._0xa07bd7)||_0x121c49[_0x2c22d0(0x2f5,0x2dd,_0x5a12e1._0x2cddde,0x2be)]===_0x2c22d0(_0x5a12e1._0x5262b3,_0x5a12e1._0x7c65c5,0x218,_0x5a12e1._0x28c625))return{'type':_0x33e1e5(_0x5a12e1._0x2e18b3,0x43d,0x417,_0x5a12e1._0x1699c7)};if(_0x121c49[_0x2c22d0(_0x5a12e1._0x3cf3b9,0x341,_0x5a12e1._0x275057,_0x5a12e1._0x9536c1)]===_0x2c22d0(0x303,_0x5a12e1._0x2ef132,0x256,0x303))return{'type':'boolean'};if(_0x121c49[_0x2c22d0(_0x5a12e1._0x8e6b07,0x37b,0x363,_0x5a12e1._0x322413)]===_0x2c22d0(0x3c6,0x2b6,0x35f,_0x5a12e1._0x32ad63))return{'type':'array','items':toSupportedSchema(_0x121c49[_0x33e1e5(0x472,_0x5a12e1._0x3115bf,_0x5a12e1._0x2877bc,0x403)])??{'type':_0x33e1e5(0x3a7,_0x5a12e1._0x261b70,0x361,_0x5a12e1._0x2d7cbb)}};function _0x2c22d0(_0x375118,_0x1f8d66,_0x72a28c,_0x38602c){return _0x256f33(_0x1f8d66,_0x1f8d66-_0x4bf66f._0x7ec498,_0x72a28c- -_0x4bf66f._0x3ec4df,_0x38602c-0x131);}if(_0x121c49[_0x2c22d0(0x3a5,0x345,_0x5a12e1._0x275057,0x330)]===_0x33e1e5(0x3cc,_0x5a12e1._0x50ff86,0x407,0x3c8))return toNuvinToolSchema(_0x121c49);return void 0x0;}function toNuvinToolSchema(_0x13b657){const _0x413b94={_0x18f2db:0x180,_0x202082:0xb1,_0x4dedf6:0x1b9,_0x50d74c:0x126,_0x21eeb5:0x176,_0x12f8d8:0x15c,_0x581bd0:0x155,_0x41950f:0x100,_0x3bf419:0xc4,_0x5b31e3:0x8a,_0x2d9af1:0x7f,_0x2f9b7b:0x1bf,_0x381d52:0x20a,_0x3c5b98:0x1c0,_0x3aeac9:0x8e,_0x4fd2a4:0xc2,_0x11e1e0:0xd8,_0x4ee9cb:0xe1,_0x4a4b7c:0xb4,_0xff9510:0x23e,_0x60cc31:0x17c,_0x2c5dac:0x176,_0x593b10:0x21e,_0x157f85:0x176,_0x1294a6:0xef},_0x3d33d8={_0x5c48c5:0x1a2},_0x2267e9={_0x20097b:0x18a};if(!isObject(_0x13b657)||_0x13b657[_0x193c2a(-0xfd,-0x124,-_0x413b94._0x18f2db,-_0x413b94._0x202082)]!==_0x5d7e4e(_0x413b94._0x4dedf6,_0x413b94._0x50d74c,_0x413b94._0x21eeb5,_0x413b94._0x12f8d8))return{'type':_0x193c2a(-_0x413b94._0x581bd0,-0x142,-_0x413b94._0x41950f,-_0x413b94._0x3bf419),'properties':{}};const _0x4e10aa={};function _0x193c2a(_0x4789a2,_0x55e890,_0x20dba0,_0xc20541){return _0x256f33(_0x20dba0,_0x55e890-0x1f2,_0x4789a2- -0x553,_0xc20541-_0x2267e9._0x20097b);}function _0x5d7e4e(_0x3441dd,_0x3357cf,_0x4b9de0,_0x3e866d){return _0x379285(_0x3441dd-0x17b,_0x4b9de0-_0x3d33d8._0x5c48c5,_0x4b9de0-0x2e,_0x3357cf);}const _0x3db17b=isObject(_0x13b657[_0x5d7e4e(_0x413b94._0x5b31e3,_0x413b94._0x2d9af1,0xd4,0x90)])?_0x13b657['properties']:{};for(const [_0x5a4ae3,_0x10599c]of Object[_0x193c2a(-_0x413b94._0x2f9b7b,-_0x413b94._0x381d52,-_0x413b94._0x3c5b98,-0x148)](_0x3db17b)){const _0x4e7f83=toSupportedSchema(_0x10599c);if(_0x4e7f83)_0x4e10aa[_0x5a4ae3]=_0x4e7f83;}const _0x2dd4c1=Array['isArray'](_0x13b657['required'])?_0x13b657[_0x5d7e4e(0x41,_0x413b94._0x3aeac9,_0x413b94._0x4fd2a4,_0x413b94._0x11e1e0)][_0x5d7e4e(_0x413b94._0x4ee9cb,0xa2,0xbb,_0x413b94._0x4a4b7c)](_0xe0b6a4=>typeof _0xe0b6a4===_0x193c2a(-0x1fb,-0x1ef,-0x1b9,-0x1a6)):void 0x0;return _0x2dd4c1?.[_0x193c2a(-0x24e,-0x214,-0x260,-_0x413b94._0xff9510)]?{'type':_0x5d7e4e(0x20b,_0x413b94._0x60cc31,_0x413b94._0x2c5dac,_0x413b94._0x593b10),'properties':_0x4e10aa,'required':_0x2dd4c1}:{'type':_0x5d7e4e(0x188,0xf6,_0x413b94._0x157f85,_0x413b94._0x1294a6),'properties':_0x4e10aa};}function isJsonObject(_0x24560b){const _0x5c3c37={_0x2abdd8:0x1cb,_0x44927c:0x196,_0x4dc9fd:0x11b,_0x404c85:0x1a9},_0xc9af6a={_0x1b5788:0x31},_0x2bead2={_0x3b128b:0x1ef,_0x45321e:0xd1};function _0x2a1c11(_0x25895d,_0x42c154,_0x107c6f,_0x45cfed){return _0x379285(_0x25895d-_0x2bead2._0x3b128b,_0x107c6f-0x109,_0x107c6f-_0x2bead2._0x45321e,_0x45cfed);}function _0x2c9b91(_0x1bd116,_0x5c2893,_0x5b6b9f,_0x2ab759){return _0x256f33(_0x2ab759,_0x5c2893-0x2e,_0x5c2893- -0x268,_0x2ab759-_0xc9af6a._0x1b5788);}return typeof _0x24560b===_0x2c9b91(_0x5c3c37._0x2abdd8,_0x5c3c37._0x44927c,_0x5c3c37._0x4dc9fd,_0x5c3c37._0x404c85)&&_0x24560b!==null&&!Array[_0x2c9b91(0xbf,0xd5,0xad,0xe3)](_0x24560b);}function formatMcpContent(_0x4246bb){const _0x261830={_0x58c09d:0x53b,_0x19abb1:0x46a,_0x49d9c6:0x4c1,_0x12faaf:0x4ff,_0x5acc15:0x495,_0x1dce76:0x4f2,_0x2369c5:0x4c3,_0x3aad10:0x388,_0x216e3a:0x2ee,_0x3cf736:0x3db,_0x3bd54f:0x4e1,_0x52954d:0x450,_0x253e3b:0x469},_0x49a8e7={_0x1b8118:0xeb,_0x148968:0x7a},_0xec0314={_0x246e06:0x8b,_0x47313d:0x63,_0x2bfc94:0x4a,_0x39536e:0x7f,_0x90c53:0x69,_0x378ab8:0x49,_0x2cfaee:0x25,_0x448a2c:0x4fd,_0x5a8206:0x51b,_0xc348b9:0x567},_0x411c9d={_0x2ac415:0x1c0,_0x36bf1a:0x51},_0x2128a5=Array[_0x34248f(0x47e,_0x261830._0x58c09d,0x4a3,0x42c)](_0x4246bb[_0x221bec(0x4ca,0x417,0x424,_0x261830._0x19abb1)])?_0x4246bb[_0x221bec(_0x261830._0x49d9c6,0x4bf,0x424,0x40d)]:[];function _0x34248f(_0x324002,_0x278a5b,_0x11ff08,_0xce7dd7){return _0x379285(_0x324002-_0x411c9d._0x2ac415,_0x11ff08-0x590,_0x11ff08-_0x411c9d._0x36bf1a,_0xce7dd7);}const _0x4f2cc6=_0x2128a5[_0x34248f(0x4ca,0x4a4,0x4dc,_0x261830._0x12faaf)](_0x38de06=>{const _0x58eff1={_0x3358f5:0x115,_0x4306d5:0x5a1},_0x56ca7a={_0x345f62:0x198,_0x808ebb:0x74,_0x1a2d0a:0x86};if(!isObject(_0x38de06))return'';function _0x275a56(_0x3bfdab,_0x531c0d,_0x42a78d,_0x17eccd){return _0x34248f(_0x3bfdab-_0x56ca7a._0x345f62,_0x531c0d-_0x56ca7a._0x808ebb,_0x531c0d- -_0x56ca7a._0x1a2d0a,_0x17eccd);}function _0x34e344(_0x4191d6,_0x4c7cdf,_0xae9afb,_0x423fe4){return _0x34248f(_0x4191d6-_0x58eff1._0x3358f5,_0x4c7cdf-0x16a,_0x423fe4- -_0x58eff1._0x4306d5,_0x4c7cdf);}if(_0x38de06['type']===_0x34e344(-_0xec0314._0x246e06,_0xec0314._0x47313d,-_0xec0314._0x2bfc94,-0x25)&&typeof _0x38de06['text']===_0x34e344(-0x9c,-0x183,-_0xec0314._0x39536e,-0xe3))return _0x38de06[_0x34e344(_0xec0314._0x90c53,-_0xec0314._0x2bfc94,_0xec0314._0x378ab8,-_0xec0314._0x2cfaee)];return JSON[_0x275a56(0x52e,_0xec0314._0x448a2c,_0xec0314._0x5a8206,_0xec0314._0xc348b9)](_0x38de06);})[_0x221bec(0x39a,0x34f,0x38f,0x315)](_0x4fe85b=>_0x4fe85b[_0x221bec(0x351,0x378,0x351,0x3c7)]>0x0)[_0x34248f(_0x261830._0x5acc15,_0x261830._0x1dce76,0x540,_0x261830._0x2369c5)]('\x0a');if(_0x4f2cc6[_0x221bec(_0x261830._0x3aad10,_0x261830._0x216e3a,0x351,_0x261830._0x3cf736)]>0x0)return _0x4f2cc6;function _0x221bec(_0x6758ec,_0x1868ae,_0x3c05fd,_0x4d944b){return _0x256f33(_0x1868ae,_0x1868ae-_0x49a8e7._0x1b8118,_0x3c05fd-0x4c,_0x4d944b-_0x49a8e7._0x148968);}return JSON[_0x221bec(_0x261830._0x3bd54f,_0x261830._0x52954d,_0x261830._0x253e3b,0x406)](_0x4246bb,null,0x2);}function createMcpTool(_0x3ea129){const _0x5750b6={_0xe6594a:0x127,_0x5f063c:0x20e,_0x1ce6ed:0x18f,_0x48f217:0x1a1,_0x1b404c:0x113,_0x55905d:0x252,_0x23adb8:0x1e6,_0x372b47:0x1d3,_0x4f6793:0x226,_0x169488:0x1cf,_0x2cd664:0x192,_0x439212:0x114,_0x265af7:0xbd,_0x20d253:0x42,_0x478c87:0x66,_0x47a4c5:0xc1,_0x58f23f:0xd2},_0x1f32a1={_0x530951:0x3bc,_0x3e0155:0x375,_0xe7ba7d:0x4ab,_0x410d68:0x495,_0x3a30bd:0x440,_0x57a269:0x43a,_0x571abc:0x4cd,_0x5e7513:0x48e,_0x189690:0x496,_0x3bfbd5:0x436,_0x3d268b:0x427,_0x5280cf:0x4e5,_0x1f52cb:0x4c7,_0x31d711:0x4e1,_0x28eece:0x443,_0x216e2d:0x467},_0x3e9869={_0x25314b:0x113,_0x5bb42a:0x5c5},_0x422a97={_0x2b9c76:0x139},_0x3e047a={_0x6c117a:0x101},_0x4ef6a9={_0x25a6d0:0x556,_0x58c122:0xb6};function _0x4d28eb(_0x58ada3,_0x1ec83f,_0x5a7b79,_0x565708){return _0x256f33(_0x565708,_0x1ec83f-0x1f3,_0x5a7b79- -_0x4ef6a9._0x25a6d0,_0x565708-_0x4ef6a9._0x58c122);}const _0xb38765=createMcpToolName(_0x3ea129['serverName'],_0x3ea129[_0x4d28eb(-_0x5750b6._0xe6594a,-_0x5750b6._0x5f063c,-0x18b,-0x162)][_0x18d27c(0x161,0x12a,0x12d,_0x5750b6._0x1ce6ed)]);function _0x18d27c(_0x2ff948,_0x369dd5,_0x3d0a4f,_0x2081fe){return _0x379285(_0x2ff948-0xd2,_0x369dd5-0x11c,_0x3d0a4f-_0x3e047a._0x6c117a,_0x2ff948);}return defineTool({'name':_0xb38765,'description':_0x3ea129[_0x4d28eb(-0x14e,-_0x5750b6._0x48f217,-0x18b,-_0x5750b6._0x1b404c)][_0x4d28eb(-_0x5750b6._0x55905d,-0x22a,-_0x5750b6._0x23adb8,-_0x5750b6._0x372b47)]??_0x18d27c(0xef,0xc8,0x3d,0x8b)+_0x3ea129[_0x4d28eb(-_0x5750b6._0x4f6793,-_0x5750b6._0x169488,-0x18b,-_0x5750b6._0x2cd664)]['name']+'\x20from\x20'+_0x3ea129[_0x4d28eb(-0xca,-0x7c,-0x120,-_0x5750b6._0x439212)],'inputSchema':toNuvinToolSchema(_0x3ea129[_0x18d27c(0xe5,_0x5750b6._0x265af7,_0x5750b6._0x20d253,_0x5750b6._0x478c87)][_0x18d27c(_0x5750b6._0x47a4c5,0xd3,_0x5750b6._0x58f23f,0x45)]),async *'execute'(_0x162c0d){const _0x2add15=await _0x3ea129[_0x3f25dd(0x3cd,0x409,_0x1f32a1._0x530951,_0x1f32a1._0x3e0155)][_0x3f25dd(_0x1f32a1._0xe7ba7d,_0x1f32a1._0x410d68,0x3ff,_0x1f32a1._0x3a30bd)]({'name':_0x3ea129[_0x442178(_0x1f32a1._0x57a269,0x3a7,0x3a4,0x3d5)]['name'],'arguments':isJsonObject(_0x162c0d)?_0x162c0d:{}});if(_0x2add15[_0x3f25dd(_0x1f32a1._0x571abc,_0x1f32a1._0x5e7513,0x51c,_0x1f32a1._0x189690)])throw new ToolExecutionError(formatMcpContent(_0x2add15),{'serverName':_0x3ea129[_0x3f25dd(0x4e1,0x511,_0x1f32a1._0x3bfbd5,0x4ed)],'toolName':_0x3ea129[_0x3f25dd(0x476,0x3db,_0x1f32a1._0x3d268b,0x3cc)][_0x3f25dd(0x4e3,_0x1f32a1._0x5280cf,0x552,_0x1f32a1._0x1f52cb)]});function _0x3f25dd(_0x5b71cf,_0x159fc2,_0x25dccf,_0x1f0391){return _0x18d27c(_0x25dccf,_0x5b71cf-0x3b9,_0x25dccf-0x1bf,_0x1f0391-_0x422a97._0x2b9c76);}function _0x442178(_0x8c3f98,_0x2fc73e,_0x229805,_0x5973e8){return _0x4d28eb(_0x8c3f98-_0x3e9869._0x25314b,_0x2fc73e-0x1c5,_0x8c3f98-_0x3e9869._0x5bb42a,_0x5973e8);}return yield createToolOutput(formatMcpContent(_0x2add15),{'serverName':_0x3ea129[_0x3f25dd(_0x1f32a1._0x31d711,_0x1f32a1._0x28eece,_0x1f32a1._0x216e2d,0x453)],'toolName':_0x3ea129[_0x442178(0x43a,0x45e,0x466,0x3e1)]['name'],'result':_0x2add15}),void 0x0;}});}function resolvePrefix(_0x26bc2a,_0x1fa89e){const _0x1e0f7f={_0x5692fd:0xc6,_0x2eec03:0x1e5};function _0x3fc907(_0x2ac9bc,_0x26194f,_0x33df8e,_0x17395a){return _0x379285(_0x2ac9bc-0x1bd,_0x17395a- -0x162,_0x33df8e-0x12d,_0x2ac9bc);}return _0x1fa89e[_0x3fc907(-_0x1e0f7f._0x5692fd,-0x13d,-_0x1e0f7f._0x2eec03,-0x148)]??_0x26bc2a;}function buildMcpHttpHeaders(_0x3beaee){const _0x51cc22={_0x4e37f6:0x74,_0x2ad9ac:0x84,_0x1667bd:0x93,_0x4ef4e5:0xea,_0x47801f:0x116,_0x1d7d8a:0x63,_0x3e28df:0x199,_0x27f3ce:0x1cf,_0x591413:0x9b,_0x498578:0xb0,_0xe8274b:0x28,_0x307a45:0x62},_0x5228d1={_0x65de8d:0x12c,_0x4d6570:0x83,_0x209f1c:0xc8},_0x3d5251={_0x5404db:0x66,_0x2cf822:0x14a};function _0x873f2c(_0x1ad76e,_0x5307c5,_0x4f7a38,_0x57412f){return _0x379285(_0x1ad76e-_0x3d5251._0x5404db,_0x5307c5- -_0x3d5251._0x2cf822,_0x4f7a38-0x1b2,_0x57412f);}const _0x3b0e89={..._0x3beaee[_0x420eb3(-_0x51cc22._0x4e37f6,-0x5c,-_0x51cc22._0x2ad9ac,-0x119)]??{}};function _0x420eb3(_0x403cf5,_0x13b133,_0x2920ac,_0x4ea98a){return _0x379285(_0x403cf5-_0x5228d1._0x65de8d,_0x403cf5-_0x5228d1._0x4d6570,_0x2920ac-_0x5228d1._0x209f1c,_0x13b133);}return _0x3beaee[_0x873f2c(-0x195,-0x21e,-0x1f7,-0x253)]?.[_0x873f2c(-_0x51cc22._0x1667bd,-0x11e,-_0x51cc22._0x4ef4e5,-_0x51cc22._0x47801f)]===_0x420eb3(-0x29,-0x80,-0x7e,-_0x51cc22._0x1d7d8a)&&_0x3beaee['auth'][_0x873f2c(-_0x51cc22._0x3e28df,-0x20a,-_0x51cc22._0x27f3ce,-0x1be)]&&_0x3b0e89['Authorization']===void 0x0&&(_0x3b0e89[_0x420eb3(0x75,_0x51cc22._0x591413,0xe3,0x34)]=_0x420eb3(0x54,_0x51cc22._0x498578,0xde,-0x3b)+_0x3beaee['auth']['token']),Object[_0x420eb3(0x85,-_0x51cc22._0xe8274b,_0x51cc22._0x307a45,0x12f)](_0x3b0e89)['length']>0x0?_0x3b0e89:void 0x0;}function getErrorMessage(_0x49c531){const _0x2a1280={_0x39d392:0x185,_0x246de2:0x141,_0x4b004f:0x1e9},_0x58fcd5={_0x24552:0x156};function _0xe8f968(_0x55a55d,_0x494d8e,_0x38c8f1,_0x241086){return _0x379285(_0x55a55d-0x1de,_0x241086- -_0x58fcd5._0x24552,_0x38c8f1-0x10b,_0x55a55d);}return _0x49c531 instanceof Error?_0x49c531[_0xe8f968(-_0x2a1280._0x39d392,-_0x2a1280._0x246de2,-_0x2a1280._0x4b004f,-0x168)]:String(_0x49c531);}function isUnauthorizedError(_0x5176e0){const _0x5b3d4d={_0x2b5948:0x25},_0x5be173={_0x4d36bf:0xc8,_0x5f4b0d:0x15f},_0x5793fb={_0x1c7e44:0x26,_0x2ec5a2:0x197};function _0x57cfa9(_0x46fefb,_0x535cd8,_0x5ccc13,_0x443306){return _0x379285(_0x46fefb-_0x5793fb._0x1c7e44,_0x5ccc13-0x4b5,_0x5ccc13-_0x5793fb._0x2ec5a2,_0x46fefb);}function _0xd0f00f(_0x1e3d1b,_0x2e0260,_0x48d210,_0x2c728d){return _0x379285(_0x1e3d1b-0x1f2,_0x2c728d-_0x5be173._0x4d36bf,_0x48d210-_0x5be173._0x5f4b0d,_0x48d210);}return _0x5176e0 instanceof Error&&_0x5176e0[_0xd0f00f(0x5f,-0x6a,_0x5b3d4d._0x2b5948,0x2a)][_0x57cfa9(0x4c7,0x42d,0x4c3,0x474)]==='UnauthorizedError';}async function connectMcpServer(_0x212c98,_0x330ad6,_0xbd115a){const _0xfbfd53={_0x2b792b:0x1c1,_0x3fcc0f:0x20b,_0x41d1fb:0x29a,_0x5a34a4:0x271,_0x11aa48:0x2cb,_0x156883:0x222,_0xcb39c1:0x64,_0x28bde8:0x1e,_0x4b3ba1:0x177,_0x4bc2f6:0x224,_0x3a9f21:0xd1,_0x3c32d4:0xfd,_0x368b2f:0x45,_0x297a9a:0x1f,_0x5a9df6:0x206,_0x520ff8:0x13,_0x501a58:0x1,_0x5ae9d4:0x6a,_0x322250:0x185,_0xe80d49:0x101,_0x444bce:0x300,_0x1974f4:0x1dd,_0x100c11:0x31,_0xa54b1a:0x5e,_0x109310:0x219,_0x1f6f66:0x5c,_0x40f30e:0x1af,_0x2511db:0x190,_0x5cf743:0x12f,_0x35843e:0x2f0,_0x4cb0f3:0x1eb,_0x1fc3b7:0x2b5,_0x3f69cc:0x9a,_0xe5bf7c:0x78,_0x32ab7d:0x243,_0x40c523:0x2a2,_0x9e033c:0x2ed,_0x149699:0x211,_0x867a3d:0xe7,_0x4b315a:0x80,_0x29d633:0x151,_0x53e3a7:0x12e,_0xa090c7:0x1d1,_0x4c31de:0x14f},_0x398e84={_0x5b7c62:0xa5,_0x1bdc6f:0x105},_0x21d48f={_0x52681d:0xa7,_0x206356:0x92},_0x15c83d={_0x1216b4:0xea,_0x5369a0:0x159},_0x161fbb={_0x49af81:0x173},_0x1e1dc5={_0x213f59:0xed};function _0x4ede52(_0x290737,_0x27eb90,_0x445736,_0x12a37f){return _0x256f33(_0x12a37f,_0x27eb90-_0x1e1dc5._0x213f59,_0x27eb90- -0x355,_0x12a37f-0xb2);}function _0x11607a(_0x1974a8,_0x43f396,_0x144952,_0x26122b){return _0x379285(_0x1974a8-0x1c8,_0x1974a8- -_0x161fbb._0x49af81,_0x144952-0x24,_0x43f396);}const _0x5017e2=new Client({'name':_0x11607a(-0x1bd,-_0xfbfd53._0x2b792b,-0x120,-_0xfbfd53._0x3fcc0f),'version':_0x11607a(-_0xfbfd53._0x41d1fb,-_0xfbfd53._0x5a34a4,-_0xfbfd53._0x11aa48,-_0xfbfd53._0x156883)});if(_0x330ad6[_0x4ede52(-_0xfbfd53._0xcb39c1,-0x29,0x2b,_0xfbfd53._0x28bde8)]===_0x11607a(-0x1b3,-0x1af,-0x15d,-0x248)||_0x330ad6[_0x11607a(-_0xfbfd53._0x4b3ba1,-0x218,-0xd1,-_0xfbfd53._0x4bc2f6)]){if(!_0x330ad6[_0x4ede52(0xb8,_0xfbfd53._0x3a9f21,_0xfbfd53._0x3c32d4,0x145)])throw new Error(_0x4ede52(-_0xfbfd53._0x368b2f,0x1e,_0xfbfd53._0x297a9a,0x32)+_0x212c98+_0x11607a(-0x263,-_0xfbfd53._0x5a9df6,-0x26a,-0x218));if(_0x330ad6[_0x4ede52(-_0xfbfd53._0x520ff8,_0xfbfd53._0x501a58,-0x40,-_0xfbfd53._0x5ae9d4)]?.[_0x4ede52(_0xfbfd53._0x322250,_0xfbfd53._0xe80d49,0xdd,0x176)]===_0x11607a(-0x269,-0x2f5,-_0xfbfd53._0x444bce,-0x2c3)&&!_0xbd115a?.['oauth'])throw new Error(_0x11607a(-0x22a,-_0xfbfd53._0x1974f4,-0x1c8,-0x183)+_0x212c98+'\x20requires\x20OAuth\x20connection\x20options');const _0x3a66bb=buildMcpHttpHeaders(_0x330ad6),_0x394ac5=_0x330ad6[_0x4ede52(_0xfbfd53._0x100c11,0x1,-_0xfbfd53._0xa54b1a,-0x24)]?.['type']===_0x11607a(-0x269,-_0xfbfd53._0x109310,-0x2d5,-0x2ab)&&_0xbd115a?.['oauth']?createMcpOAuthProvider({'serverName':_0x212c98,'callbackUrl':_0xbd115a[_0x4ede52(0xd,-0x21,0x58,_0xfbfd53._0x1f6f66)][_0x11607a(-_0xfbfd53._0x40f30e,-_0xfbfd53._0x2511db,-0x175,-_0xfbfd53._0x5cf743)],'storageDir':_0xbd115a[_0x11607a(-0x269,-_0xfbfd53._0x35843e,-_0xfbfd53._0x4cb0f3,-_0xfbfd53._0x1fc3b7)][_0x4ede52(0xa7,_0xfbfd53._0x3f69cc,_0xfbfd53._0xe5bf7c,_0xfbfd53._0x3c32d4)],'config':_0x330ad6[_0x11607a(-0x247,-_0xfbfd53._0x32ab7d,-_0xfbfd53._0x40c523,-_0xfbfd53._0x9e033c)],'onRedirect':_0x2affa3=>_0xbd115a[_0x4ede52(0x75,-0x21,-0x97,0x78)]?.[_0x11607a(-0x291,-0x209,-0x324,-0x333)](_0x212c98,_0x2affa3)}):void 0x0,_0x47186a=new StreamableHTTPClientTransport(new URL(_0x330ad6[_0x11607a(-_0xfbfd53._0x4b3ba1,-_0xfbfd53._0x149699,-0xcb,-0x116)]),{'authProvider':_0x394ac5,'requestInit':_0x3a66bb?{'headers':_0x3a66bb}:void 0x0});await _0x5017e2[_0x11607a(-0x183,-0x168,-0xeb,-0x13f)](_0x47186a);}else{if(!_0x330ad6[_0x11607a(-0x14f,-0x167,-_0xfbfd53._0x867a3d,-_0xfbfd53._0x3c32d4)])throw new Error(_0x11607a(-0x22a,-0x27b,-0x25d,-0x1f4)+_0x212c98+_0x4ede52(0xa,0x22,0x1a,-_0xfbfd53._0x4b315a));const _0x52e13c=new StdioClientTransport({'command':_0x330ad6[_0x4ede52(_0xfbfd53._0x29d633,0xf9,0x4b,0x188)],'args':_0x330ad6[_0x4ede52(0x9b,0x9f,0xfc,_0xfbfd53._0x53e3a7)]??[],'env':_0x330ad6[_0x11607a(-_0xfbfd53._0xa090c7,-_0xfbfd53._0x4c31de,-0x1d6,-0x228)]});await _0x5017e2['connect'](_0x52e13c);}return{async 'listTools'(){const _0x30ae67={_0x2fbeae:0x30d,_0x4cc91c:0x61,_0x148e11:0xb5};function _0x3a2f06(_0x2f58d8,_0x3a57fc,_0x544f23,_0x44cf57){return _0x11607a(_0x2f58d8-_0x30ae67._0x2fbeae,_0x44cf57,_0x544f23-_0x30ae67._0x4cc91c,_0x44cf57-_0x30ae67._0x148e11);}return await _0x5017e2[_0x3a2f06(0xd5,_0x15c83d._0x1216b4,_0x15c83d._0x5369a0,0xdc)]();},async 'callTool'(_0x2f9fa9){function _0x4e87e8(_0x5b6091,_0x1015b4,_0x6ae893,_0x490e81){return _0x4ede52(_0x5b6091-_0x21d48f._0x52681d,_0x5b6091-_0x21d48f._0x206356,_0x6ae893-0xc,_0x490e81);}return await _0x5017e2[_0x4e87e8(_0x398e84._0x5b7c62,0x116,0xa,_0x398e84._0x1bdc6f)]({'method':'tools/call','params':_0x2f9fa9},CallToolResultSchema);},async 'close'(){await _0x5017e2['close']();}};}async function createMcpToolsFromServers(_0x3051ba){const _0x47bd50={_0x44a1a7:0x155,_0x99d16e:0x1d3,_0x19ce55:0x22a,_0x22b3ae:0x174,_0xf6acf7:0x2c6,_0x5c1c0a:0x1c7,_0x3fdd7a:0x20f,_0x2e879e:0x21a,_0x3089b:0x233,_0x1aa0a6:0x1b5,_0x572d36:0x1c6,_0x54b7d7:0x1f8,_0x4bc1a2:0x22d,_0x6eb8d4:0x227,_0xc93540:0x62,_0x51d270:0x29f,_0x150671:0x2ff,_0x2cafde:0x28c,_0x31b9bc:0x116,_0x2c8ab9:0x205,_0xad24c6:0x29a,_0x236774:0x213,_0x8320ba:0x1e7,_0x17d6e0:0xfa},_0x3c09e9={_0x54b3ed:0x235,_0x421b42:0x2a6},_0x49caeb={_0x15c48e:0x5af,_0x9631ff:0x12f},_0x1ca2be=_0x3051ba[_0x329c3b(-_0x47bd50._0x44a1a7,-_0x47bd50._0x99d16e,-0x12f,-0x12d)]??connectMcpServer,_0xd609ea=[];function _0x329c3b(_0x2d0ec7,_0xf19f6f,_0x4d357c,_0x26420){return _0x256f33(_0xf19f6f,_0xf19f6f-0x18e,_0x26420- -0x547,_0x26420-0xbb);}const _0x4c56fd={},_0x236b39=[];for(const [_0x18a894,_0x3a3db3]of Object[_0x329c3b(-_0x47bd50._0x19ce55,-_0x47bd50._0x22b3ae,-0x23f,-0x1b3)](_0x3051ba[_0x329c3b(-_0x47bd50._0xf6acf7,-_0x47bd50._0x5c1c0a,-_0x47bd50._0x3fdd7a,-_0x47bd50._0x2e879e)]??{})){if(_0x3a3db3[_0x329c3b(-_0x47bd50._0x3089b,-0x15e,-_0x47bd50._0x1aa0a6,-_0x47bd50._0x572d36)]===![]){_0x4c56fd[_0x18a894]={'status':_0x4a92da(-_0x47bd50._0x54b7d7,-_0x47bd50._0x4bc1a2,-0x220,-0x222)};continue;}try{const _0x1febd8=await _0x1ca2be(_0x18a894,_0x3a3db3,_0x3051ba[_0x329c3b(-_0x47bd50._0x6eb8d4,-_0x47bd50._0x99d16e,-0x245,-0x1e6)]);_0xd609ea[_0x329c3b(-0x11d,-0x87,-_0x47bd50._0xc93540,-0xf6)](_0x1febd8);const _0x50d522=await _0x1febd8['listTools']();let _0x531a1f=0x0;for(const _0x307f65 of _0x50d522[_0x4a92da(-_0x47bd50._0x51d270,-0x2f2,-0x205,-_0x47bd50._0x150671)]){const _0x12d39b=_0x3051ba[_0x329c3b(-_0x47bd50._0x2cafde,-0x27d,-0x2d4,-0x235)]?.[_0x18a894]?.[_0x307f65['name']];if(_0x12d39b===![])continue;_0x531a1f+=0x1,_0x236b39[_0x329c3b(-_0x47bd50._0x31b9bc,-0x97,-0x192,-0xf6)](createMcpTool({'serverName':resolvePrefix(_0x18a894,_0x3a3db3),'tool':_0x307f65,'client':_0x1febd8}));}_0x4c56fd[_0x18a894]={'status':_0x329c3b(-_0x47bd50._0x4bc1a2,-0x149,-0x183,-0x188),'toolCount':_0x531a1f};}catch(_0x4b6a5c){_0x4c56fd[_0x18a894]=isUnauthorizedError(_0x4b6a5c)?{'status':_0x4a92da(-_0x47bd50._0x2c8ab9,-_0x47bd50._0xad24c6,-0x223,-_0x47bd50._0x236774),'message':getErrorMessage(_0x4b6a5c)}:{'status':_0x329c3b(-_0x47bd50._0x8320ba,-0x1bc,-_0x47bd50._0x17d6e0,-0x17a),'message':getErrorMessage(_0x4b6a5c)};}}function _0x4a92da(_0xa13c06,_0x22b70d,_0x3b95f2,_0x58443b){return _0x256f33(_0x22b70d,_0x22b70d-0xf5,_0xa13c06- -_0x49caeb._0x15c48e,_0x58443b-_0x49caeb._0x9631ff);}return{'tools':_0x236b39,'servers':_0x4c56fd,async 'close'(){const _0x25af2f={_0x5b22d2:0x3a8,_0x4e1ea5:0xe7},_0x56acc7={_0x19573f:0x1f3,_0x4a9a6f:0x60,_0x28e182:0x25};function _0x5aca1c(_0x5dd534,_0x4c3886,_0x56f764,_0x439027){return _0x4a92da(_0x5dd534-_0x56acc7._0x19573f,_0x4c3886,_0x56f764-_0x56acc7._0x4a9a6f,_0x439027-_0x56acc7._0x28e182);}function _0x58e1d5(_0x4075e8,_0x54e9f9,_0x224289,_0xbcfdda){return _0x4a92da(_0x4075e8-_0x25af2f._0x5b22d2,_0x54e9f9,_0x224289-0xbc,_0xbcfdda-_0x25af2f._0x4e1ea5);}await Promise[_0x58e1d5(_0x3c09e9._0x54b3ed,_0x3c09e9._0x421b42,0x1db,0x1c4)](_0xd609ea['map'](_0x782ff0=>_0x782ff0[_0x58e1d5(0x102,0x11f,0xe8,0xea)]()));}};}function getCommand(_0x2a64c2){const _0x5aa126={_0x44f818:0x51b,_0x3f74c9:0x4b2,_0x5cadc2:0x5aa,_0x4800b2:0x6a7,_0x1895dc:0x4b6,_0x12b197:0x4f0,_0x5dd50c:0x581},_0xe6d824={_0x4e702b:0x607,_0x5a966a:0xb4},_0x7a99ec={_0x22cc96:0xad,_0x584935:0x1ae};function _0x259d8b(_0x386603,_0xd60d45,_0x1b97d2,_0x23928d){return _0x379285(_0x386603-_0x7a99ec._0x22cc96,_0x386603-0x5f6,_0x1b97d2-_0x7a99ec._0x584935,_0xd60d45);}function _0x5e511d(_0x2987fd,_0x4d14df,_0x5cdab1,_0x55510f){return _0x379285(_0x2987fd-0x1ad,_0x5cdab1-_0xe6d824._0x4e702b,_0x5cdab1-_0xe6d824._0x5a966a,_0x4d14df);}if(_0x2a64c2&&typeof _0x2a64c2==='object'&&!Array['isArray'](_0x2a64c2)&&typeof _0x2a64c2[_0x5e511d(0x5f8,0x69c,0x62b,0x66e)]===_0x5e511d(_0x5aa126._0x44f818,0x4ae,0x535,_0x5aa126._0x3f74c9))return _0x2a64c2[_0x259d8b(0x61a,_0x5aa126._0x5cadc2,0x640,_0x5aa126._0x4800b2)];return _0x5e511d(_0x5aa126._0x1895dc,0x593,_0x5aa126._0x12b197,_0x5aa126._0x5dd50c);}var MOCK_WORKSPACE_LISTING=[_0x379285(-0xeb,-0x7b,-0x96,-0x5b),_0x256f33(0x431,0x3a2,0x427,0x394),_0x256f33(0x4a3,0x439,0x454,0x3d1),_0x256f33(0x355,0x2c7,0x359,0x32d),_0x256f33(0x32e,0x3c9,0x382,0x2e9),_0x379285(-0x7,-0x33,-0x54,-0x8e),_0x379285(-0x5b,-0x23,-0xb9,-0x23),_0x256f33(0x48f,0x3d4,0x414,0x36c),_0x256f33(0x2fe,0x409,0x395,0x353),_0x256f33(0x35e,0x3ef,0x3e6,0x478),_0x256f33(0x306,0x3a8,0x3b3,0x38d),_0x379285(-0xee,-0x85,-0x2d,-0xb),_0x379285(-0x2b,-0x94,0x1,-0x32),_0x256f33(0x3f2,0x371,0x401,0x3da),_0x379285(0x31,-0x25,-0xa0,-0x9d),_0x379285(-0xb1,-0x86,-0x96,-0xcc),_0x379285(-0x141,-0xfb,-0x135,-0xa0)][_0x256f33(0x45a,0x3f5,0x3da,0x3b7)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x256f33(0x44b,0x408,0x3ce,0x36c),'description':'Executes\x20a\x20shell\x20command','input_schema':{'type':_0x379285(-0xc0,-0x2c,-0xc4,-0x66),'properties':{'command':{'type':_0x379285(-0xef,-0xd2,-0x11a,-0xb8)}},'required':[_0x379285(-0x6c,0x24,0x3f,-0x53)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x50eb32){return{'output':_0x50eb32,'structured':{'value':_0x50eb32}};}function createUnknownToolResult(_0x4681b6){const _0x549c46={_0xfe0b98:0xe0,_0x4fffb1:0x17f},_0x7c02cf={_0x5a74f4:0x42},_0x559dfb={_0x150b5a:0xe1};function _0x575988(_0x4e92a3,_0x437866,_0x3a8066,_0x575d87){return _0x256f33(_0x437866,_0x437866-0x38,_0x3a8066- -0x1d,_0x575d87-_0x559dfb._0x150b5a);}function _0x5db796(_0x559177,_0x320420,_0x14c1aa,_0x1d1a2e){return _0x256f33(_0x1d1a2e,_0x320420-0x97,_0x320420- -0x571,_0x1d1a2e-_0x7c02cf._0x5a74f4);}return{'callId':_0x4681b6['id'],'toolName':_0x4681b6[_0x5db796(-0x13c,-0x139,-_0x549c46._0xfe0b98,-_0x549c46._0x4fffb1)],'status':_0x5db796(-0x13e,-0x1a4,-0x175,-0x129),'output':'Unknown\x20tool:\x20'+_0x4681b6['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x1e6ea3,_0x1321e4){return{'callId':_0x1e6ea3['id'],'toolName':_0x1e6ea3['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x1e6ea3['input']),'exitCode':0x0},'chunks':[_0x1321e4],'meta':createMeta()};}function createMockToolRuntime(){const _0x2938c1={_0x5d2f9e:0x2c7,_0x3fc773:0x24e,_0x56ce66:0x2af,_0x220a5e:0x46a,_0x414561:0x3dc,_0x34c780:0x34a},_0x2fcad8=async(_0x3e37f7,_0x1d052a)=>{function _0x3f34d4(_0x5ce891,_0x58de46,_0x4b81d0,_0x981c8c){return _0x3e7e(_0x981c8c-0x3f,_0x5ce891);}if(_0x3e37f7[_0x3f34d4(_0x2938c1._0x5d2f9e,_0x2938c1._0x3fc773,0x217,_0x2938c1._0x56ce66)]!==_0x15bfe9(0x453,_0x2938c1._0x220a5e,_0x2938c1._0x414561,_0x2938c1._0x34c780))return createUnknownToolResult(_0x3e37f7);function _0x15bfe9(_0x58f039,_0x324211,_0x5b0629,_0x46bb09){return _0x3e7e(_0x5b0629-0x1d6,_0x46bb09);}const _0x405964=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x3e37f7,_0x405964);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0xfc7860,_0x553cd6){function _0x582786(_0x7dfcaa,_0x4a427a,_0xb566ee,_0x219230){return _0x3e7e(_0x7dfcaa-0x2d1,_0x4a427a);}return await Promise[_0x582786(0x545,0x514,0x5ac,0x55a)](_0xfc7860['map'](async _0x2f602f=>{return await _0x2fcad8(_0x2f602f,_0x553cd6);}));},async 'execute'(_0x54e5e0,_0x47337d){return await _0x2fcad8(_0x54e5e0,_0x47337d);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x319604,_0x2ef346){const _0x502957={_0x21e6b9:0x1ad,_0x441857:0x11f},_0x2cc3d0={_0x2fde80:0x196,_0x33246a:0x159};function _0x329d84(_0x379642,_0x4fd4a1,_0x5c816f,_0x4201cb){return _0x256f33(_0x4fd4a1,_0x4fd4a1-_0x2cc3d0._0x2fde80,_0x5c816f- -_0x2cc3d0._0x33246a,_0x4201cb-0x8c);}return typeof _0x319604===_0x329d84(_0x502957._0x21e6b9,_0x502957._0x441857,0x1c6,0x196)?await _0x319604(_0x2ef346):_0x319604;}function getDelegatedAgentDefinition(_0x4e4df4,_0x131907){const _0x3691f0={_0x40f3b3:0x169,_0x35e4ee:0x210},_0x14c943={_0x2403cf:0x115,_0x4714d3:0x1a4};function _0x4d83d6(_0x676707,_0x32a412,_0x42d019,_0x2a2d05){return _0x379285(_0x676707-_0x14c943._0x2403cf,_0x32a412-_0x14c943._0x4714d3,_0x42d019-0xe4,_0x2a2d05);}return _0x4e4df4[_0x4d83d6(_0x3691f0._0x40f3b3,0x1ba,_0x3691f0._0x35e4ee,0x1d1)]?.[_0x131907];}function createRunSummary(_0x4263dc){const _0x2742b3={_0x53d8d2:0x182,_0x26803a:0x153,_0x17641a:0x13d,_0x48087f:0x1b2,_0x3695bb:0xd1,_0x5a7d81:0xfb,_0x56fe12:0x5a,_0x2a779d:0x1b6,_0x5f036c:0x129,_0x1dfdd4:0x187,_0x5b7f2f:0x20e,_0x2c378f:0x2e0,_0x4bd0c8:0x262,_0x103595:0x294,_0x3e552d:0x236,_0x3a8709:0x1d8,_0x51d376:0x1fe,_0x4ca3b4:0x1b9,_0x447e63:0x15e,_0x5528d2:0x13a},_0x1fefdd={_0x3e6616:0x1d1},_0x184c5={_0x319500:0x253};function _0x3ee08c(_0x47716b,_0x3bb423,_0x5375c1,_0xe34c67){return _0x379285(_0x47716b-0xc9,_0x5375c1-_0x184c5._0x319500,_0x5375c1-0x1aa,_0x3bb423);}function _0xece20c(_0x866434,_0x200479,_0x4a5645,_0x4fb35a){return _0x256f33(_0x4a5645,_0x200479-_0x1fefdd._0x3e6616,_0x200479- -0x299,_0x4fb35a-0xc1);}return{'runId':_0x4263dc['runId'],'agentId':_0x4263dc[_0x3ee08c(0x13b,_0x2742b3._0x53d8d2,_0x2742b3._0x26803a,0x1a4)],'sessionId':_0x4263dc[_0xece20c(_0x2742b3._0x17641a,0x12a,_0x2742b3._0x48087f,_0x2742b3._0x3695bb)],'status':_0x4263dc[_0xece20c(0xf7,0xe3,_0x2742b3._0x5a7d81,_0x2742b3._0x56fe12)],'parentSessionId':_0x4263dc[_0xece20c(_0x2742b3._0x2a779d,_0x2742b3._0x5f036c,0x16c,_0x2742b3._0x1dfdd4)],..._0x4263dc[_0x3ee08c(0x1e0,_0x2742b3._0x5b7f2f,0x262,0x2a4)]!==void 0x0?{'originToolCallId':_0x4263dc[_0x3ee08c(0x22e,_0x2742b3._0x2c378f,_0x2742b3._0x4bd0c8,_0x2742b3._0x103595)]}:{},..._0x4263dc[_0x3ee08c(_0x2742b3._0x3e552d,_0x2742b3._0x3a8709,0x215,0x263)]!==void 0x0?{'errorMessage':_0x4263dc['errorMessage']}:{},..._0x4263dc[_0x3ee08c(0x28c,0x1d4,0x247,_0x2742b3._0x51d376)]?.[_0xece20c(0xa7,0x13a,_0x2742b3._0x4ca3b4,0x156)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x4263dc['result'][_0xece20c(_0x2742b3._0x447e63,_0x2742b3._0x5528d2,0x157,0x1c1)])}:{}};}function createRunSummaryOutput(_0x42cee2,_0x4bf771){const _0x47713e={_0x58ac30:0x3e7,_0x5d42e5:0x41a,_0x3a947c:0x25f,_0x10d1da:0x1f4},_0x581882={_0x48e0b5:0xe4,_0x4c7cec:0x169},_0x2603ec={_0x174d29:0x1a0,_0xacb850:0xa6},_0x5227d2=createRunSummary(_0x42cee2);function _0x32edbe(_0x51a75d,_0x15462c,_0x15e229,_0x2cfc5f){return _0x256f33(_0x15462c,_0x15462c-_0x2603ec._0x174d29,_0x51a75d- -_0x2603ec._0xacb850,_0x2cfc5f-0x1e4);}function _0x35ac8d(_0x3ab1e6,_0xc84fb4,_0x585721,_0x295d8e){return _0x379285(_0x3ab1e6-_0x581882._0x48e0b5,_0x295d8e-0x53d,_0x585721-_0x581882._0x4c7cec,_0x585721);}const _0x25be20=_0x5227d2[_0x35ac8d(0x36b,_0x47713e._0x58ac30,0x3c4,_0x47713e._0x5d42e5)];return createToolOutput(typeof _0x25be20==='string'&&_0x25be20[_0x32edbe(_0x47713e._0x3a947c,_0x47713e._0x10d1da,0x2d3,0x2a3)]>0x0?_0x25be20:_0x4bf771,_0x5227d2);}function getRunTerminalErrorMessage(_0x1f158d){const _0x5a5dd0={_0x5c1967:0x1e9,_0x5980e6:0x202,_0x488e85:0x2d6,_0x5552ea:0x20a,_0x3c3289:0x20,_0x1bc4a8:0x15,_0x25c694:0x20f,_0xd6c1c0:0x1c1,_0x98da0f:0x242,_0x4e365d:0x248,_0x8a38e7:0x1ad,_0x4b58f0:0x126},_0xac59dc={_0x4f36bc:0x153,_0x10a2ec:0x237},_0xce030b={_0x38da81:0xd6,_0x355190:0x72,_0x45ad7f:0x157},_0x121317=_0x1f158d?.[_0x104ecb(_0x5a5dd0._0x5c1967,0x22d,_0x5a5dd0._0x5980e6,_0x5a5dd0._0x488e85)][_0x2cff27(0x7f,0x3d,0x5f,-0x19)]['at'](-0x1);function _0x2cff27(_0xec01e9,_0x494d5e,_0x55834f,_0x447d62){return _0x379285(_0xec01e9-_0xce030b._0x38da81,_0x447d62-_0xce030b._0x355190,_0x55834f-_0xce030b._0x45ad7f,_0xec01e9);}function _0x104ecb(_0x3b1814,_0x47e89c,_0x5d7b99,_0x10bab9){return _0x379285(_0x3b1814-_0xac59dc._0x4f36bc,_0x47e89c-_0xac59dc._0x10a2ec,_0x5d7b99-0x10,_0x10bab9);}if(_0x121317?.[_0x104ecb(_0x5a5dd0._0x5552ea,0x189,0x16c,0xfe)]===_0x2cff27(-0x1e,-_0x5a5dd0._0x3c3289,_0x5a5dd0._0x1bc4a8,_0x5a5dd0._0x1bc4a8)&&_0x121317['output'][_0x104ecb(_0x5a5dd0._0x25c694,0x19e,_0x5a5dd0._0xd6c1c0,_0x5a5dd0._0x98da0f)]()['length']>0x0)return _0x121317[_0x104ecb(_0x5a5dd0._0x4e365d,_0x5a5dd0._0x8a38e7,0x18a,_0x5a5dd0._0x4b58f0)];return void 0x0;}function formatAbortedRunMessage(_0x151c65,_0xb525aa){const _0x589337={_0x278d5c:0xae,_0x28e72b:0x109,_0x19e752:0x18c,_0x4f33d5:0x2b0,_0x277333:0x213,_0x474950:0x25a,_0x3bb039:0x297,_0x395c58:0x171,_0x2633f8:0xdb},_0x2ffde3={_0x269e85:0x175,_0x2f1f12:0x1ed,_0x50fdb3:0x83},_0x4b06be='Agent\x20run\x20'+_0x151c65+_0x312af5(_0x589337._0x278d5c,0x18e,_0x589337._0x28e72b,0x12c);function _0x1782c4(_0x1bea5d,_0x1c8cce,_0x5b6d48,_0x2195dd){return _0x256f33(_0x1bea5d,_0x1c8cce-0xec,_0x1c8cce- -0xf2,_0x2195dd-0x1d0);}function _0x312af5(_0x2da6eb,_0x3e5bde,_0x414fdf,_0x17b867){return _0x379285(_0x2da6eb-_0x2ffde3._0x269e85,_0x17b867-_0x2ffde3._0x2f1f12,_0x414fdf-_0x2ffde3._0x50fdb3,_0x2da6eb);}if(!_0xb525aa||_0xb525aa[_0x312af5(_0x589337._0x19e752,0x18f,0x1ef,0x154)]()[_0x1782c4(_0x589337._0x4f33d5,_0x589337._0x277333,_0x589337._0x474950,_0x589337._0x3bb039)]===0x0||_0xb525aa===_0x4b06be)return _0x4b06be;return _0x4b06be+_0x312af5(0xeb,0x119,_0x589337._0x395c58,_0x589337._0x2633f8)+_0xb525aa;}function createAssignTaskTool(_0x1202f8){const _0xd0f9f8={_0x245ec1:0x442,_0xbcfb98:0x500,_0x619704:0x4f7,_0x51556b:0x2e,_0x336144:0x74},_0x1e683d={_0x5ca5bb:0xf1,_0x2f3f98:0x14f,_0x219c80:0xea,_0x5657da:0x194,_0x5b3e41:0x195,_0x13175d:0x63,_0x5d2ab1:0xaf,_0x84ef4:0x34,_0xf840f7:0x148,_0x342bec:0x1b5,_0x24925a:0x17d,_0x33ec0e:0xd9,_0x3e5716:0xf0,_0x2c3aa4:0xd4,_0x3d2039:0x51,_0x2b8dd1:0x4b,_0x16ca18:0x1b1,_0x2838ba:0xdc,_0x352073:0xfd,_0x3633b8:0x10,_0x177203:0xf3,_0x439363:0x4f,_0x114f59:0x101,_0x149869:0xe0,_0x3c5b95:0x157,_0x132c35:0xdf,_0x4fa407:0x173,_0x39fd68:0x1d,_0x1b33d0:0x25,_0x4335fb:0x108,_0x6e00ca:0x9f,_0x1d4bde:0x10f,_0x17e697:0x16e,_0x286cf8:0x11a,_0xa3cb0b:0x3b,_0x1767b8:0x2,_0x206afa:0xa3,_0x222d4e:0xe2,_0x5d2aae:0xb5,_0x532de6:0xaa,_0x458658:0x143,_0x2bd3b:0xb1,_0x351041:0x98,_0x59031f:0x2c,_0x516586:0xbf,_0xb9eb8c:0xaa,_0x255d12:0x3,_0x7f352c:0xf,_0x108e60:0x16,_0x440b24:0x86,_0xbf1aa6:0x121,_0x1febd5:0x17c,_0x1448db:0x13a,_0x2cb7c8:0xaa,_0x27c2d6:0xf4,_0x1327b2:0xb4,_0x5b26f5:0x7d,_0x5341ad:0xd2,_0x43a3ce:0xef,_0x29766e:0x197,_0x311419:0x23,_0x458065:0x40},_0x1f354c={_0x26f23e:0xc9,_0x53205c:0x121,_0x5c4d41:0x1fb},_0x2763d7={_0x13a5ca:0x180};function _0x46041d(_0x3afc55,_0x1ee401,_0x13d049,_0x215881){return _0x379285(_0x3afc55-0xd5,_0x3afc55-0x5b3,_0x13d049-_0x2763d7._0x13a5ca,_0x215881);}function _0x20f632(_0x3b100e,_0xb3ef05,_0x182140,_0x5499ab){return _0x256f33(_0x182140,_0xb3ef05-0x12,_0x5499ab- -0x26f,_0x5499ab-0xb6);}return defineTool({'name':'AssignTask','description':'Delegates\x20a\x20task\x20to\x20another\x20agent\x20and\x20waits\x20for\x20completion','inputSchema':{'type':'object','properties':{'agentId':{'type':_0x46041d(0x4e1,0x58f,0x57f,_0xd0f9f8._0x245ec1)},'task':{'type':_0x46041d(0x4e1,_0xd0f9f8._0xbcfb98,_0xd0f9f8._0x619704,0x4ff)}},'required':[_0x20f632(_0xd0f9f8._0x51556b,_0xd0f9f8._0x336144,0xdf,0xbb),'task']},async *'execute'(_0x1c73bb,_0xd4b07d){const _0x4b58b0={_0x12665c:0x25a,_0x34914c:0x194},_0x5ef7e3={_0x2881ae:0x5a4},_0x3a6309={_0x3bce54:0x1cb,_0x3a33dc:0xc0},_0x2d6812=createDelegatedRunId(),_0x59ba52={'agentId':_0x1c73bb[_0x2430d1(-_0x1e683d._0x5ca5bb,-_0x1e683d._0x2f3f98,-0x19d,-0x75)],'parentSessionId':_0xd4b07d['sessionId'],'runId':_0x2d6812,..._0xd4b07d['toolCallId']!==void 0x0?{'toolCallId':_0xd4b07d[_0x2430d1(-_0x1e683d._0x219c80,-0xa3,-_0x1e683d._0x5657da,-_0x1e683d._0x5b3e41)]}:{}},_0x537c4f=getDelegatedAgentDefinition(_0x1202f8,_0x1c73bb['agentId']);if(!_0x537c4f)throw new ToolExecutionError(_0x2430d1(0x0,-_0x1e683d._0x13175d,0x99,-0x45)+_0x1c73bb['agentId'],{'agentId':_0x1c73bb[_0x11a455(_0x1e683d._0x5d2ab1,0x50,0x15e,_0x1e683d._0x84ef4)]});function _0x11a455(_0x457af5,_0xceae07,_0x14a58b,_0x3fbe3a){return _0x20f632(_0x457af5-_0x3a6309._0x3bce54,_0xceae07-_0x3a6309._0x3a33dc,_0xceae07,_0x457af5- -0xc);}const _0x363d6d=new Agent(await resolveDelegatedAgentOptions(_0x537c4f,_0x59ba52));let _0x1a37f4={'runId':_0x2d6812,'agentId':_0x1c73bb['agentId'],'sessionId':_0x363d6d[_0x11a455(_0x1e683d._0xf840f7,0xd8,_0x1e683d._0x342bec,_0x1e683d._0x24925a)],'status':_0x2430d1(-0xda,-0xce,-0x147,-_0x1e683d._0x33ec0e),'parentSessionId':_0xd4b07d[_0x2430d1(-0x58,-_0x1e683d._0x3e5716,-_0x1e683d._0x2c3aa4,_0x1e683d._0x3d2039)],..._0xd4b07d['toolCallId']!==void 0x0?{'originToolCallId':_0xd4b07d[_0x2430d1(-_0x1e683d._0x219c80,-0xc4,-_0x1e683d._0x2b8dd1,-0x17d)]}:{}};function _0x2430d1(_0x1be12e,_0x3eee41,_0x1deec1,_0x4b5050){return _0x46041d(_0x1be12e- -_0x5ef7e3._0x2881ae,_0x3eee41-0xe8,_0x1deec1-0x192,_0x3eee41);}const _0x473b20=new AbortController(),_0x761865=addAbortListener(_0xd4b07d[_0x11a455(0x108,0xc2,0x14a,0xa8)],()=>{const _0x53aa3b={_0x32cf31:0xea};function _0x5ab3ed(_0x1fed4e,_0x22bc59,_0x58b597,_0x4de07e){return _0x11a455(_0x4de07e- -_0x4b58b0._0x12665c,_0x22bc59,_0x58b597-0xce,_0x4de07e-_0x4b58b0._0x34914c);}function _0x5baf0b(_0xf50f84,_0x15289e,_0x2d6c79,_0x11dc55){return _0x11a455(_0x15289e-0x475,_0x2d6c79,_0x2d6c79-_0x53aa3b._0x32cf31,_0x11dc55-0x1a9);}_0x473b20[_0x5ab3ed(-0x190,-0x144,-_0x1f354c._0x26f23e,-_0x1f354c._0x53205c)](_0xd4b07d[_0x5ab3ed(-0x111,-_0x1f354c._0x5c4d41,-0x121,-0x152)]?.['reason']);});yield createToolOutput(_0x11a455(0x1ad,0x250,_0x1e683d._0x16ca18,0x120)+_0x1a37f4['runId']+'.',{'runId':_0x1a37f4[_0x2430d1(-0x7f,-_0x1e683d._0x2838ba,-_0x1e683d._0x352073,_0x1e683d._0x3633b8)],'agentId':_0x1a37f4[_0x11a455(_0x1e683d._0x5d2ab1,_0x1e683d._0x177203,0xe0,0x150)],'sessionId':_0x1a37f4[_0x2430d1(-0x58,0x27,-_0x1e683d._0x439363,-0xbf)],'status':_0x1a37f4[_0x11a455(_0x1e683d._0x114f59,_0x1e683d._0x149869,0x1a4,_0x1e683d._0x3c5b95)]});try{const _0x22a6f1=await _0x363d6d[_0x11a455(0xd5,_0x1e683d._0x132c35,_0x1e683d._0x4fa407,0x9d)](_0x1c73bb[_0x2430d1(-0x7d,-_0x1e683d._0x39fd68,-0xf,_0x1e683d._0x1b33d0)],{'signal':_0x473b20[_0x11a455(_0x1e683d._0x4335fb,0x173,0x18a,0x167)]});_0x1a37f4={..._0x1a37f4,'status':_0x22a6f1['status'],'result':_0x22a6f1};if(_0x22a6f1[_0x2430d1(-_0x1e683d._0x6e00ca,-0x85,-_0x1e683d._0x1d4bde,-0x7c)]!==_0x11a455(0x117,0x172,_0x1e683d._0x17e697,_0x1e683d._0x286cf8)){const _0x41b415=getRunTerminalErrorMessage(_0x22a6f1),_0x2969d4=formatAbortedRunMessage(_0x1a37f4[_0x2430d1(-0x7f,-0x7c,-_0x1e683d._0xa3cb0b,-_0x1e683d._0x1767b8)],_0x41b415);throw new ToolExecutionError(_0x2969d4,{...createRunSummary(_0x1a37f4),'aborted':!![],'errorMessage':_0x2969d4});}return createRunSummaryOutput(_0x1a37f4,_0x11a455(_0x1e683d._0x2c3aa4,0x168,_0x1e683d._0x206afa,_0x1e683d._0x222d4e)+_0x1a37f4[_0x11a455(0x121,0x19b,0x13a,0x127)]+'\x20completed.');}catch(_0x143442){if(_0x143442 instanceof ToolExecutionError)throw _0x143442;if(isAbortError(_0x143442)||_0x473b20[_0x11a455(0x108,0x143,0x62,_0x1e683d._0x5d2aae)][_0x11a455(_0x1e683d._0x532de6,_0x1e683d._0x458658,_0x1e683d._0x2bd3b,0x24)]||_0xd4b07d[_0x2430d1(-_0x1e683d._0x351041,-_0x1e683d._0x59031f,-0x104,-_0x1e683d._0x516586)][_0x11a455(_0x1e683d._0xb9eb8c,0x2a,0x14f,0x33)]){const _0x40c9f9=getRunTerminalErrorMessage(_0x1a37f4[_0x2430d1(_0x1e683d._0x255d12,-0xa6,0xa4,-_0x1e683d._0x7f352c)])??(_0x143442 instanceof Error?_0x143442[_0x2430d1(-0x3,-_0x1e683d._0x108e60,_0x1e683d._0x440b24,0x27)]:String(_0x143442)),_0x47aa53=formatAbortedRunMessage(_0x1a37f4[_0x11a455(_0x1e683d._0xbf1aa6,0x18d,_0x1e683d._0x1febd5,_0x1e683d._0x1448db)],_0x40c9f9);_0x1a37f4={..._0x1a37f4,'status':_0x11a455(_0x1e683d._0x2cb7c8,_0x1e683d._0x27c2d6,0x1,_0x1e683d._0x1327b2),'errorMessage':_0x47aa53};throw new ToolExecutionError(_0x47aa53,{...createRunSummary(_0x1a37f4),'aborted':!![],'errorMessage':_0x47aa53});}const _0x4344e9=getRunTerminalErrorMessage(_0x1a37f4['result'])??(_0x143442 instanceof Error?_0x143442[_0x11a455(0x19d,0x1ec,0x194,0x167)]:String(_0x143442))??_0x11a455(0xd4,0x157,0x58,_0x1e683d._0x5b26f5)+_0x1a37f4[_0x11a455(_0x1e683d._0xbf1aa6,_0x1e683d._0x5341ad,_0x1e683d._0x43a3ce,_0x1e683d._0x29766e)]+_0x11a455(0x18b,0xe1,0x1d0,0x120);_0x1a37f4={..._0x1a37f4,'status':_0x2430d1(0x2e,-_0x1e683d._0x311419,0x8,-_0x1e683d._0x458065),'errorMessage':_0x4344e9};throw new ToolExecutionError(_0x4344e9,{...createRunSummary(_0x1a37f4),'errorMessage':_0x4344e9});}finally{_0x761865();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x1eaeec){return[createAssignTaskTool(_0x1eaeec)];}function _0x2dbf(){const _0x885b49=['B2zM','lNrTCc4','C2vYDMvY','D2HPy2GGCMC','ody4oduYruPzAvbw','Dg9ju09tDhjPBMC','C2vYDMvYtMfTzq','ig1HDgnO','BMfTzq','B3jPz2LUvg9VBenHBgXjza','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLlG','B2XKvgv4Da','ywXS','BxrPBwu','rMLUzcb3B3jRC3bHy2uGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','DxrMoa','ywDLBNrZ','yxnZAwDU','CMfUzg9T','ls1NBg9IpseUz2L0lYO','ChjLzML4','Cg9W','u2TPBgWGjW','ls1NBg9I','CgfYC2vjBNq','zMfPBgvK','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','te9dquXbufbeqvrb','u0Lhs0Lmta','BM93','y29TBwfUza','l3vZCI9SB2nHBc9IAw4VCMC','BwLU','ChvZAa','yxjYyxK','mJqZmdu0DwPdu1bZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','CMvZB2X2zq','DhLWzq','BMv3vgv4Da','Aw5KzxHpzG','C2TPBgXZ','yxv0BW','ugf0AcbPCYbUB3qGysbMAwXLoIa','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLigzPBguGy29UDgvUDhmU','CMvWBgfJzq','C3bSAxq','vMLLD2vKigLTywDLigzPBgu6ia','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uUie9WDgLVBMfSBhKGC3bLy2LMEsbSAw5LihjHBMDLCY4','mc4WlJa','y29TBwfUzhm','BgvUz3rO','y3DK','zMLUywXnzxnZywDLvgv4Da','A2LSBgvK','y2XVC2u','y2XPzw50twv0ywrHDgfvCMW','Aw50zwDLCG','B25szwrPCMvJDa','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','C29YDa','Dg9VBhm','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','ywXSB3DLzfrVB2XZ','BhmGlwXH','BgLTAxq','C2HLBgXqyxrO','BwnWxW','D2HLCMuGCMC','ienHDxnLoIa','Aw1Hz2uVCg5N','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','ugf0AcbUB3qGzM91BMq6ia','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','D2LUmZi','rgv0ywLSoIa','zNvUy3rPB24','CMvSyxrPDMu','tuLnrtOG','y2XPzw50','Bw9Kzq','Aw5ZDhj1y3rPB25Z','ywjVCNrLza','y2XPzw50sw5MB3jTyxrPB24','BgLUzvn0yxj0','CMLWz3jLCa','lMPWzW','ywDLBNrjza','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','DhjHBNnWB3j0','C2vYDMvYCW','CgXHDgzVCM0','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','Aw5JBhvKzq','Dg9VBenHBgXjza','xg5DkJ8','AgvHzgvYCW','B2f1DgG','Dg9mB3DLCKnHC2u','ls1NBg9Ipq','zw5K','C3rKB3v0','Dhj1BMm','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','ugf0AcbPCYbVDxrZAwrLihDVCMTZCgfJztOG','tg9HzgvKigzYB206ia','AxnbCNjHEq','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','ig1Z','Aw1Hz2u','CNvUBMLUzW','C2HPzNq','zMLSDgvY','o1TExg5DkJ8','mZi2mZq2mfH6AgvKAa','yxv0Ag9YAxPHDgLVBL9JB2rL','Bg9HzenVBw1HBMq','l3vZCI9IAw4VCMC','yM9VBgvHBG','CMvXDwLYzwq','C3vIyxjYyxK','DhjPBuvUza','w1bFxL1BxhnCu10QpW','AxndB250zxH0','qwDLBNqGCNvUia','C2vUza','uhjVz3jHBuzPBgvZ','C2L6zq','lNDLyNa','CMvHC29U','Dg9Rzw5Z','yxv0Aa','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','C3rYAw5N','CgfJA2fNzs5QC29U','Aw1Hz2uVD2vICa','y29UzMLN','ChjVCgvYDgLLCW','z2XVyG','rMLSzvjLywq','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','zgvMyxvSDfrPBwvVDxrnCW','y29UBMvJDgLVBG','DgfZA2TPBgW','y2HHCKnVzgvbDa','y3jSzG','BgLZDfrVB2XZ','lMPZB24','Bg9JywXLq29TCgfYzq','CMvXDwvZDa','ihDHCYbHyM9YDgvKlG','Dg9Rzw4','zgf0yq','AxnbyNnVBhv0zq','yxjNDw1LBNriAw50','AwDUB3jL','AgLNAa','zgvZy3jPChrPB24','Bg9HzfnRAwXS','zgv0ywLS','tunqihnLCNzLCIa','BgLUzu51Bq','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','BwfW','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','q29Tu3bLyW','r2XVyG','BgLUzvrLEhq','AwDUB3jLt3v0Chv0','C3rHDhvZ','rMLSzuvKAxq','yMvHCMvY','Aw5JBhvKzxm','ls1JB2X1Bw4','zw5HyMXLza','C3jJl2fNzw50l2fNzw50lNrZ','C2LNBMfS','CMCUzxHL','DgvZDa','B25Jzq','l29WDc9OB21LyNjLDY9IAw4VCMC','rwrPDcbHifvurI04ihrLEhqGzMLSzsbIEsbYzxbSywnPBMCGDgHLigzPCNn0igv4ywn0ihrLEhqGC2vNBwvUDc4','yxnJAwK','l3vZCI9IAw4VC2G','ls0T','y29UC3rYDwn0B3i','rMLSzu5LDW','AxneAxjLy3rVCNK','l2jPBI9ZAa','qxzHAwXHyMXLignVBw1HBMrZoG','DhjPBq','y29TCgXLDgvK','l3vZCI9IAw4VyMfZAa','zw50CMLLCW','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','C3jJl3nOyxjLzc90ExbLCY50CW','zgLZy292zxj5u3rHDgu','C3rKzxjY','ouLkr1PwyG','u0HfteW','Cgf0DgvYBIbPCYbYzxf1AxjLza','CNvUswq','zgLYBMfTzq','DgfZAW','Dg9VBfjLC3vSDhm','B3v0Chv0','y29UDgv4Da','ugfJA2fNzxm','B3jPz2LUywW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','DMvYAwzPzxi','zhj5uNvU','C291CMnL','C2v0','yxv0AfjLCxvPCMvK','mtC0odi0oeXfvKjJEa','lI4U','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbZBYb0AguGBw9KzwWGy2fUigLUC3bLy3qGAxrZihzPC3vHBcbJB250zw50lIbtDxbWB3j0CYbqtKCSiePqruCSifDLyLaSigfUzcbhsuyGAw1Hz2vZlIbvC2uGDgHPCYbMB3iGC2nYzwvUC2HVDhmSigrPywDYyw1ZlcbWAg90B3mSigfUzcbVDgHLCIbPBwfNzsbMAwXLCZSGDxnLiezPBgvszwfKigzVCIb0zxH0igzPBgvZlG','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','C3rHCNrZv2L0Aa','DgHLBG','C2XPy2u','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','ywjVCNq','mxzOtwfPvW','CgLWzq','zgLZywjSzwq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','z2v0','CgLK','mti1otK4nfnpBgTysa','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','lMDPzG','ru5pru5u','y29UBMvJDgvK','Aw1Hz2uVz2LM','zgvMyxvSDen3za','CgfYzw50u2vZC2LVBKLK','C2vZC2LVBKLK','BxrPBwvnCW','r0LgodLH','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','ls1YzwDLEha','q29TBwfUzcaN','ls1OAwrKzw4','Dg9VBa','zw52','zxjYB3i','qMfZAa','lu5Vtg9NBW','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','AxntEw1IB2XPy0XPBMS','lMPWzwC','zMLUywXnzxnZywDL','AxngAwXL','y29KzvzLCMLMAwvY','tunqihrVB2WG','igj5DgvZ','y29UDgvUDa','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','AM9PBG','zgLYzwn0B3j5','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','yMLYDgH0Aw1L','zMLSzvbHDgG','lunVBw1HBMq','BNv2Aw4','Aw5WDxrty2HLBwe','rMLSzsb3CML0DgvUigf0ia','tNv2Aw4','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','Cgf0Aa','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','nta2mZqWC2Hbwvvb','y29Uy2f0','A2LSBa','Ahr0Ca','uKLgrG','zxjYB3jnzxnZywDL','zxHPDcbJB2rLia','y2fSBgjHy2TvCMW','C3rVCMfNzurPCG','Bwf4','Dg9tDhjPBMC','nvzNuMrXsW','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','yxjNCW','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','mJfqzLH5qKe','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','DxbKyxrL','ndKXmdm0vMzhsxjy','y2f0y2G','qMvHCMvYia','Cgf0DgvYBG','AxngAw5PDgu','B2jQzwn0','ls1MB2XSB3C','y2fSBfrVB2W','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','wZ0+nY04kcLD','tgLUzsa','Agv4','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','igzHAwXLzc4','C3jJl2v4yw1WBgvZl2rLBw8UDhm','BgLUzuvUza','u2HLBgWGBM90igzVDw5KoIa','yMfZzty0','vMLLD0zPBgu','lw5i','rM91BMqG','BNvTyMvY','zMLSzq','AxrLBxm','B3rOzxi','C2nVCgvZ','AgfZ','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','l2jPBI9IyxnO','Dgv4Da','zgLNzxn0','BwvZC2fNzq','zNjVBq','y29UBMvJDa','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','qxv0Ag9YAxPHDgLVBG','C3rYAw5NAwz5','CMvZDwX0','CMLWz3jLCcbMywLSzwq6ia','C3rHDgu','otzZsKfgvKK','AxnfCNjVCG','y29Kzq','Aw1Hz2uVANbLzW','CMvMCMvZAf90B2TLBG','DxjS','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','u3rHCNrLzcbHz2vUDcbYDw4G','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','yMfZzw5HBwu','Bg93','A2v5CW','twLJCM9ZB2z0','D3jPDgu','tg9HzfnRAwXS'];_0x2dbf=function(){return _0x885b49;};return _0x2dbf();}import*as _0x1583dd from'path';function buildDescription2(_0x44f5dc){const _0x4de9fe={_0x4baf3d:0x108,_0x1d4b6d:0x14d,_0x215711:0x1ef,_0x51f78a:0x275,_0x5f2017:0x231,_0x210db5:0x426,_0x1b15ca:0x3dc,_0x5da662:0x1ed,_0x2c83d1:0x204,_0x43847d:0x448,_0x4430ac:0x484},_0x42d3c6={_0x448af8:0x19d,_0x5e72b:0x272,_0x380c21:0xe8};if(_0x44f5dc[_0x2c1209(0x121,0x16f,_0x4de9fe._0x4baf3d,_0x4de9fe._0x1d4b6d)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';function _0x2c1209(_0x55a943,_0xeed7b,_0x2cc830,_0x2dcb22){return _0x379285(_0x55a943-_0x42d3c6._0x448af8,_0x2dcb22-_0x42d3c6._0x5e72b,_0x2cc830-_0x42d3c6._0x380c21,_0x2cc830);}const _0x3c3bfd=[_0x2c1209(_0x4de9fe._0x215711,_0x4de9fe._0x51f78a,_0x4de9fe._0x5f2017,0x218),_0x4d295a(0x457,0x45a,_0x4de9fe._0x210db5,_0x4de9fe._0x1b15ca),_0x2c1209(0x208,_0x4de9fe._0x5da662,0x1ba,_0x4de9fe._0x2c83d1),'Available\x20skills\x20(skill_name:\x20description):',..._0x44f5dc['map'](_0x3e2841=>'-\x20'+_0x3e2841[_0x2c1209(0x245,0x2d9,0x21f,0x280)]+':\x20'+_0x3e2841['description'])];function _0x4d295a(_0x18174e,_0x5da29e,_0x57aa57,_0x4ea9b3){return _0x379285(_0x18174e-0x14e,_0x57aa57-0x498,_0x57aa57-0x16d,_0x4ea9b3);}return _0x3c3bfd[_0x4d295a(0x47a,0x3bd,_0x4de9fe._0x43847d,_0x4de9fe._0x4430ac)]('\x0a');}function createLoadSkillTool(_0x50ca7a){const _0x2aa3c5={_0x51331c:0x94,_0x27bc83:0x6b,_0x350a0c:0x42e,_0x21356e:0x464,_0xc471ba:0x478,_0x1a9e8f:0x4f7,_0xf8efca:0x51d,_0x85a7a7:0x4c1,_0x282acb:0x595,_0x176caf:0x4ec,_0x419796:0x4fd,_0x5093f6:0x48e},_0xfd531f={_0x152c17:0x1fe,_0x15af96:0x297,_0x307e31:0x1ff,_0x10a264:0x19a,_0x557f2b:0x21f,_0x562d99:0x2f5,_0x399673:0xc4,_0x9caafc:0xdd,_0x36cb8f:0xa1,_0x2db11a:0x244,_0x493bb1:0x22f,_0xd36ec4:0x2f0,_0x13f4e7:0x5,_0x117e7a:0x5a,_0x22c3e2:0x65,_0x17231b:0x1d,_0xead245:0x46,_0x5945eb:0x28,_0x44ff4f:0x48,_0x426114:0x3b,_0x9f51b5:0x63,_0x439ce8:0x40,_0x2e3390:0x3c,_0x1e1770:0x25,_0x232094:0x1f1,_0x2d1b0c:0x206,_0x2d5e81:0x1d0,_0x4eb854:0x28c,_0x5eea0b:0x205,_0xff2b15:0x64,_0x5119cf:0xe9,_0x3dedaf:0x12a,_0xe708bf:0x197,_0x41e369:0xef,_0x221317:0x148,_0x4c0114:0x1f8,_0x25f0e7:0x196,_0x20cb0a:0x1d2,_0x5aa82c:0xb,_0x3b03b4:0x2f,_0x5c0169:0x98},_0x46523e={_0x260674:0x125},_0xf24e51={_0x58cf29:0x1d9,_0x566443:0x9a};function _0x1a58a3(_0x2a2cd8,_0x5eb572,_0x47accd,_0xdf4983){return _0x379285(_0x2a2cd8-_0xf24e51._0x58cf29,_0xdf4983- -_0xf24e51._0x566443,_0x47accd-0x39,_0x2a2cd8);}const _0x3561cf=new Map(_0x50ca7a[_0x1a58a3(-0x66,-0x109,-_0x2aa3c5._0x51331c,-_0x2aa3c5._0x27bc83)][_0x2c9237(_0x2aa3c5._0x350a0c,_0x2aa3c5._0x21356e,0x3e7,_0x2aa3c5._0xc471ba)](_0x5e7d92=>[_0x5e7d92[_0x2c9237(0x53b,0x526,0x4c7,0x52c)],_0x5e7d92])),_0xbaefd7=buildDescription2(_0x50ca7a['skills']);function _0x2c9237(_0x5b3e2d,_0x8e21ba,_0x108617,_0x2ec7b6){return _0x256f33(_0x2ec7b6,_0x8e21ba-0x1e,_0x8e21ba-0xee,_0x2ec7b6-_0x46523e._0x260674);}return defineTool({'name':_0x2c9237(_0x2aa3c5._0x1a9e8f,_0x2aa3c5._0xf8efca,0x55f,_0x2aa3c5._0x85a7a7),'description':_0xbaefd7,'inputSchema':{'type':_0x2c9237(_0x2aa3c5._0x282acb,_0x2aa3c5._0x176caf,0x4f6,_0x2aa3c5._0x419796),'properties':{'name':{'type':'string'}},'required':[_0x2c9237(0x4e9,0x526,0x574,_0x2aa3c5._0x5093f6)]},async *'execute'(_0x52369b){const _0x1db22f={_0x20653b:0x179,_0x4b7ff3:0x1a7},_0x388fb8={_0x160a54:0xf2},_0x197f69=_0x3561cf[_0x10035f(0x194,0x1c5,0x183,0x223)](_0x52369b[_0x10035f(_0xfd531f._0x152c17,0x244,_0xfd531f._0x15af96,_0xfd531f._0x307e31)]);function _0x10035f(_0x4a4fa8,_0x5b5e60,_0x1873ce,_0x5cb1fb){return _0x1a58a3(_0x5cb1fb,_0x5b5e60-_0x388fb8._0x160a54,_0x1873ce-0x120,_0x5b5e60-0x2d0);}if(!_0x197f69){const _0x41473e=Array[_0x10035f(0x2ac,0x225,_0xfd531f._0x10a264,0x1e6)](_0x3561cf['keys']())[_0x10035f(0x22d,0x1e6,_0xfd531f._0x557f2b,0x1db)](',\x20');throw new ToolExecutionError(_0x10035f(_0xfd531f._0x562d99,0x252,0x1e1,0x242)+_0x52369b[_0x4cdd22(0x85,_0xfd531f._0x399673,_0xfd531f._0x9caafc,_0xfd531f._0x36cb8f)]+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x41473e,{'name':_0x52369b[_0x10035f(0x20e,_0xfd531f._0x2db11a,_0xfd531f._0x493bb1,_0xfd531f._0xd36ec4)]});}function _0x4cdd22(_0x57d4cf,_0x3a176b,_0x148e1e,_0xda24e2){return _0x1a58a3(_0xda24e2,_0x3a176b-_0x1db22f._0x20653b,_0x148e1e-_0x1db22f._0x4b7ff3,_0x57d4cf-0x111);}const _0x56d4b3=await _0x50ca7a[_0x4cdd22(-0x42,_0xfd531f._0x13f4e7,-_0xfd531f._0x117e7a,-_0xfd531f._0x22c3e2)](_0x197f69),_0x355d32=_0x197f69[_0x4cdd22(-0xb,-_0xfd531f._0x17231b,_0xfd531f._0xead245,-0x57)][_0x4cdd22(_0xfd531f._0x5945eb,-_0xfd531f._0x44ff4f,_0xfd531f._0x426114,_0xfd531f._0x9f51b5)]??_0x1583dd[_0x4cdd22(-0x16,-_0xfd531f._0x439ce8,_0xfd531f._0x2e3390,-_0xfd531f._0x1e1770)](_0x197f69['source'][_0x10035f(0x28e,_0xfd531f._0x232094,_0xfd531f._0x2d1b0c,_0xfd531f._0x2d5e81)]),_0x21c780=['##\x20Skill:\x20'+_0x56d4b3[_0x10035f(0x226,0x244,_0xfd531f._0x4eb854,_0xfd531f._0x5eea0b)],'',_0x56d4b3[_0x4cdd22(-0x8f,-_0xfd531f._0xff2b15,-_0xfd531f._0x5119cf,-_0xfd531f._0x3dedaf)],'',_0x10035f(0x12f,_0xfd531f._0xe708bf,0x1c4,0x204),_0x10035f(_0xfd531f._0x41e369,_0xfd531f._0x221317,0x1d4,0x18c)+_0x197f69[_0x10035f(_0xfd531f._0x4c0114,0x1b4,0x1fa,0x175)][_0x10035f(_0xfd531f._0x25f0e7,0x1f1,_0xfd531f._0x20cb0a,0x298)],'Base\x20directory:\x20'+_0x355d32]['join']('\x0a');return yield createToolOutput(_0x21c780,{'id':_0x56d4b3['id'],'name':_0x56d4b3['name'],'path':_0x197f69[_0x4cdd22(-_0xfd531f._0x5aa82c,_0xfd531f._0x3b03b4,_0xfd531f._0x5c0169,-0x44)]['path'],'baseDirectory':_0x355d32}),void 0x0;}});}import{readFile as _0x161915,stat as _0x177acc}from'fs/promises';import*as _0x363047 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x379285(0x8b,0x30,0x17,0x3f),_0x256f33(0x386,0x3b0,0x36f,0x3ba),_0x256f33(0x3b7,0x41b,0x42b,0x461),_0x379285(-0xcf,-0x87,-0xd4,-0x44)]),PNG_SIGNATURE=Buffer[_0x379285(-0x56,-0x11,-0x9,0x82)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x1b0a41,_0x5c611b){const _0x80ed40={_0xfa31b4:0x151,_0x6c6c93:0x187,_0x592e46:0x193,_0x3e4d28:0x23d,_0x5e28ef:0x26d,_0x2c3346:0x25d,_0x23cd77:0x203,_0x18ac76:0x4b,_0x583f18:0x5,_0x23dc13:0x7c,_0x3d85ac:0xba,_0x530ba7:0x241,_0x21536d:0x1d7,_0x422163:0x21b,_0x580da5:0x189,_0x19f19a:0x1c5,_0x58fde5:0x2fa,_0x1c02f7:0x26b,_0x2ae7bb:0x114,_0xd2e5b:0xc4,_0xaa5ae6:0x26c,_0x2dcf55:0x1f2,_0x34c59f:0x1cf,_0x19e3de:0x16c,_0x1e11f6:0x23b,_0x20534e:0x1d4,_0x59c785:0x85,_0x195f3a:0x47,_0x51d87a:0x89,_0x3ef042:0x58,_0x3baf35:0x89,_0x5eeeae:0xd3,_0x530a16:0x1a4,_0x52052f:0x239,_0x1d93cb:0x1b9},_0x3fc258={_0x151e69:0x11f};if(_0x1b0a41['subarray'](0x0,0x8)['equals'](PNG_SIGNATURE))return _0x21dce8(0x1f1,_0x80ed40._0xfa31b4,_0x80ed40._0x6c6c93,_0x80ed40._0x592e46);if(_0x1b0a41[0x0]===0xff&&_0x1b0a41[0x1]===0xd8&&_0x1b0a41[0x2]===0xff)return _0x21dce8(0x256,0x344,_0x80ed40._0x3e4d28,0x29e);function _0x21dce8(_0x2e8fb2,_0x421484,_0x395c0c,_0x1c6b97){return _0x256f33(_0x395c0c,_0x421484-0x1c9,_0x1c6b97- -0x186,_0x1c6b97-0x168);}const _0x1f19ea=_0x1b0a41['subarray'](0x0,0x6)[_0x21dce8(_0x80ed40._0x5e28ef,0x1be,0x29d,0x26b)](_0x21dce8(0x1fa,_0x80ed40._0x2c3346,0x168,_0x80ed40._0x23cd77));if(_0x1f19ea==='GIF87a'||_0x1f19ea===_0x5bb3be(_0x80ed40._0x18ac76,-_0x80ed40._0x583f18,_0x80ed40._0x23dc13,_0x80ed40._0x3d85ac))return _0x21dce8(0x1d9,_0x80ed40._0x530ba7,_0x80ed40._0x21536d,0x23a);if(_0x1b0a41[_0x21dce8(_0x80ed40._0x422163,_0x80ed40._0x580da5,0x258,_0x80ed40._0x19f19a)](0x0,0x4)[_0x21dce8(0x297,0x1fd,_0x80ed40._0x58fde5,_0x80ed40._0x1c02f7)](_0x21dce8(0x1c1,0x175,0x236,0x203))===_0x5bb3be(_0x80ed40._0x2ae7bb,0xcf,0xa2,_0x80ed40._0xd2e5b)&&_0x1b0a41['subarray'](0x8,0xc)[_0x21dce8(0x1d6,_0x80ed40._0xaa5ae6,0x208,0x26b)](_0x21dce8(0x1b8,_0x80ed40._0x2dcf55,_0x80ed40._0x34c59f,0x203))==='WEBP')return _0x21dce8(_0x80ed40._0x19e3de,0x218,_0x80ed40._0x1e11f6,_0x80ed40._0x20534e);const _0x2208ce=_0x363047['extname'](_0x5c611b)[_0x5bb3be(_0x80ed40._0x59c785,-_0x80ed40._0x195f3a,-0x14,-0x7f)]();if(_0x2208ce==='.png')return'image/png';if(_0x2208ce===_0x5bb3be(_0x80ed40._0x51d87a,_0x80ed40._0x3ef042,-0x20,-0xd)||_0x2208ce===_0x5bb3be(0xd3,0x15,_0x80ed40._0x3baf35,_0x80ed40._0x5eeeae))return'image/jpeg';if(_0x2208ce===_0x21dce8(_0x80ed40._0x530a16,_0x80ed40._0x52052f,0x210,0x237))return _0x21dce8(0x266,0x26e,_0x80ed40._0x1d93cb,0x23a);function _0x5bb3be(_0x30d5ae,_0x57de9b,_0x180c30,_0x5e33fd){return _0x379285(_0x30d5ae-_0x3fc258._0x151e69,_0x180c30-0xe1,_0x180c30-0xab,_0x5e33fd);}if(_0x2208ce==='.webp')return _0x21dce8(0x244,0x1b2,0x25a,_0x80ed40._0x20534e);return void 0x0;}function normalizeDetail(_0x5d632c){const _0x46518b={_0x285f1e:0x1ab,_0x19cf82:0x240,_0x57b348:0x2b6,_0x5964cf:0x23c,_0x1fa0ba:0x224,_0xc032e9:0x2d0},_0x33a977={_0x3914ef:0x2d,_0x5179a3:0x167},_0x4afc35={_0x3417d4:0x2c,_0x5bad71:0x2a0};function _0x464b23(_0x585ef3,_0x11dfe8,_0x24f58c,_0x3e866a){return _0x379285(_0x585ef3-_0x4afc35._0x3417d4,_0x585ef3-_0x4afc35._0x5bad71,_0x24f58c-0x5b,_0x11dfe8);}function _0x4afda1(_0x5810a1,_0x10d362,_0x522220,_0x375587){return _0x256f33(_0x375587,_0x10d362-_0x33a977._0x3914ef,_0x522220-0xd5,_0x375587-_0x33a977._0x5179a3);}if(_0x5d632c===void 0x0)return void 0x0;const _0x48ed17=_0x5d632c['trim']()[_0x464b23(_0x46518b._0x285f1e,0x15d,_0x46518b._0x19cf82,0x115)]();if(!SUPPORTED_DETAILS[_0x464b23(0x289,_0x46518b._0x57b348,0x266,0x30d)](_0x48ed17))throw new ToolExecutionError(_0x464b23(_0x46518b._0x5964cf,_0x46518b._0x1fa0ba,_0x46518b._0xc032e9,0x20f)+_0x5d632c,{'detail':_0x5d632c});return _0x48ed17;}function createViewFileTool(_0x41588e={}){const _0x403a70={_0x42221c:0x2a6,_0x4a6c67:0x2f6,_0x189563:0x594,_0x2a2404:0x54b,_0x40ca88:0x504,_0x46263e:0x569,_0x3c4904:0x1ff,_0x2e9e5f:0x282,_0x424908:0x55a,_0x402d8e:0x5fe,_0x4fe735:0x4a3,_0x50cdd5:0x4b4,_0x3487fc:0x4dc,_0x31522c:0x254,_0x354f53:0x1e9,_0x3f8f0e:0x591,_0x49aabc:0x541,_0x2f74d8:0x521},_0x449640={_0x2edc37:0x383,_0x1f1baf:0x37e,_0x3653d3:0x228,_0x514a1f:0x2d7,_0x2af400:0x26f,_0x5a0aa3:0x2ff,_0x25deb2:0x32d,_0x4efd93:0x2cc,_0x348d08:0x77,_0x2e1741:0x3cf,_0x3d101a:0x67,_0x2ca8c1:0x71,_0x43a659:0x4b,_0x554f9f:0x20f,_0x270311:0x26d,_0x1fbfc7:0x20f,_0x43bcd3:0x2d2,_0xa80abd:0x28c,_0x507e92:0x2aa,_0x782af2:0x2b8,_0x46caec:0x21b,_0x32dd82:0x192,_0x26e4dc:0x1a2,_0x481258:0x21f,_0x54c565:0x199,_0x16a440:0x2f8,_0x59a13f:0x25e,_0x194319:0x2f1,_0x266f72:0xa5,_0x5346ea:0x1ea,_0x1233ee:0x2bb,_0x158c69:0x2a0,_0x365343:0x134,_0x2b8d6d:0x63,_0x48357a:0x7d,_0x499674:0x3c2,_0x70ea96:0x38f,_0x1ed00b:0xb6,_0x540e8f:0xee,_0x2f1bd1:0x3a8,_0x5bcdcb:0x251,_0x24292c:0xc2,_0x56432c:0xc1,_0x541dcc:0x34f,_0x4c7475:0x3cd,_0x3ada68:0x2be,_0x211cd7:0x14,_0x476c28:0x66,_0x532764:0x31},_0x47abd4={_0x22d389:0xc2,_0x79c50a:0x4c6,_0xd20844:0x1ba},_0x1309cc={_0x104f60:0x1a8,_0x4a0dfc:0x5ac};function _0x31763e(_0x435e1b,_0xcaa171,_0x94ff5c,_0x838665){return _0x256f33(_0x94ff5c,_0xcaa171-_0x1309cc._0x104f60,_0xcaa171- -_0x1309cc._0x4a0dfc,_0x838665-0x153);}const _0x516bff=_0x363047['resolve'](_0x41588e['defaultCwd']??process[_0x31763e(-0x269,-_0x403a70._0x42221c,-0x25e,-_0x403a70._0x4a6c67)]());function _0x46923b(_0x427f64,_0x3ce1be,_0x21a371,_0x1ddbab){return _0x256f33(_0x1ddbab,_0x3ce1be-0x183,_0x3ce1be-0x15c,_0x1ddbab-0x17c);}const _0x2806cd=_0x41588e['maxBytes']??DEFAULT_MAX_BYTES,_0x5b58de=_0x41588e[_0x46923b(0x58d,_0x403a70._0x189563,0x59c,_0x403a70._0x2a2404)]??_0x46923b(_0x403a70._0x40ca88,0x567,0x4f7,_0x403a70._0x46263e);return defineTool({'name':_0x5b58de,'description':_0x31763e(-0x221,-_0x403a70._0x3c4904,-_0x403a70._0x2e9e5f,-0x27b),'inputSchema':{'type':_0x46923b(0x50e,_0x403a70._0x424908,0x54f,_0x403a70._0x402d8e),'properties':{'path':{'type':_0x46923b(_0x403a70._0x4fe735,_0x403a70._0x50cdd5,_0x403a70._0x3487fc,0x480)},'detail':{'type':_0x31763e(-0x253,-_0x403a70._0x31522c,-0x2be,-_0x403a70._0x354f53)}},'required':[_0x46923b(_0x403a70._0x3f8f0e,_0x403a70._0x49aabc,0x5ad,_0x403a70._0x2f74d8)]},async *'execute'(_0x2aa89f){const _0x1e68b3={_0x472be2:0x1bd},_0x48ba46=resolveWorkspacePath(_0x516bff,_0x2aa89f[_0x2e9141(_0x449640._0x2edc37,0x2ff,_0x449640._0x1f1baf,0x3a4)]);await assertWorkspaceFile(_0x48ba46);const _0x54b400=await _0x177acc(_0x48ba46);if(_0x54b400['size']>_0x2806cd)throw new ToolExecutionError(_0x2e9141(0x2a1,_0x449640._0x3653d3,_0x449640._0x514a1f,_0x449640._0x2af400)+_0x2aa89f[_0x2e9141(0x36e,_0x449640._0x5a0aa3,_0x449640._0x25deb2,_0x449640._0x4efd93)],{'path':_0x2aa89f['path'],'maxBytes':_0x2806cd,'size':_0x54b400[_0x1cdf65(-0xe,0x12,-_0x449640._0x348d08,-0x22)]});function _0x2e9141(_0x2c7713,_0x4e3a7c,_0x350358,_0x251a6f){return _0x31763e(_0x2c7713-_0x47abd4._0x22d389,_0x4e3a7c-_0x47abd4._0x79c50a,_0x251a6f,_0x251a6f-_0x47abd4._0xd20844);}const _0x5f300e=await _0x161915(_0x48ba46),_0x172bff=detectImageMediaType(_0x5f300e,_0x48ba46);if(!_0x172bff)throw new ToolExecutionError(_0x2e9141(_0x449640._0x2e1741,0x343,0x397,0x3ec)+_0x2aa89f[_0x1cdf65(_0x449640._0x3d101a,0x8d,0x6f,_0x449640._0x2ca8c1)],{'path':_0x2aa89f[_0x1cdf65(0x61,0x98,0x10f,0x71)],'supported':['.gif','.jpeg',_0x1cdf65(-0x14,-0xd4,-0xf4,-_0x449640._0x43a659),'.png',_0x2e9141(_0x449640._0x554f9f,_0x449640._0x270311,0x28c,_0x449640._0x1fbfc7)]});const _0x4bf582=normalizeDetail(_0x2aa89f[_0x2e9141(_0x449640._0x43bcd3,_0x449640._0xa80abd,_0x449640._0x507e92,0x250)]);function _0x1cdf65(_0x19b490,_0x97f0cf,_0x4038e2,_0x471385){return _0x46923b(_0x19b490-0x10e,_0x471385- -0x4d0,_0x4038e2-_0x1e68b3._0x472be2,_0x4038e2);}const _0x4727f0=[_0x2e9141(_0x449640._0x782af2,_0x449640._0x46caec,_0x449640._0x32dd82,_0x449640._0x26e4dc)+_0x2aa89f[_0x2e9141(0x2e7,_0x449640._0x5a0aa3,0x33e,0x365)],_0x2e9141(_0x449640._0x481258,0x23b,0x1d4,_0x449640._0x54c565)+_0x172bff,'Size:\x20'+_0x54b400[_0x2e9141(0x24a,0x26c,0x243,_0x449640._0x16a440)]+_0x2e9141(_0x449640._0x59a13f,_0x449640._0x194319,0x383,0x399)][_0x1cdf65(-0x1e,_0x449640._0x266f72,0x50,0x74)](_0x4bf582?[_0x2e9141(_0x449640._0x3653d3,0x238,_0x449640._0x5346ea,0x259)+_0x4bf582]:[])['join']('\x0a'),_0x2632e0=[{'type':_0x2e9141(_0x449640._0x1233ee,0x25a,_0x449640._0x158c69,0x2d6),'source':{'type':_0x1cdf65(0x46,_0x449640._0x365343,-0x9,0x96),'media_type':_0x172bff,'data':_0x5f300e[_0x1cdf65(0x5e,0xe6,_0x449640._0x2b8d6d,_0x449640._0x48357a)](_0x2e9141(_0x449640._0x499674,0x324,0x283,_0x449640._0x70ea96))}},{'type':_0x1cdf65(_0x449640._0x1ed00b,0x149,_0x449640._0x540e8f,0xa2),'text':_0x4727f0}];return yield createToolOutput(_0x4727f0,{'path':_0x2aa89f[_0x2e9141(_0x449640._0x2f1bd1,_0x449640._0x5a0aa3,0x322,_0x449640._0x5bcdcb)],'resolvedPath':_0x48ba46,'created':_0x54b400['birthtime'][_0x1cdf65(0x1c,_0x449640._0x24292c,0x29,_0x449640._0x56432c)](),'modified':_0x54b400['mtime'][_0x2e9141(0x339,_0x449640._0x541dcc,_0x449640._0x4c7475,_0x449640._0x3ada68)](),'size':_0x54b400[_0x1cdf65(-_0x449640._0x211cd7,-_0x449640._0x476c28,_0x449640._0x532764,-0x22)],'mimeType':_0x172bff,'encoding':_0x1cdf65(0x100,0x5f,0xee,0x96),..._0x4bf582?{'detail':_0x4bf582}:{}},_0x2632e0),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,createViewFileTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
|