@nuvin/agent-core 0.0.0-rc.1 → 0.0.0-rc.3
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/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +525 -17
- 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 +319 -23
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +634 -332
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-F0kn75gb.d.ts → provider-adapters-Cb5hUJoD.d.ts} +1 -1
- package/dist/shared/index.d.ts +709 -14
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +969 -421
- package/dist/tools/index.js +1 -1
- package/dist/{types-D11KxtW1.d.ts → types-QPBW5jHO.d.ts} +22 -3
- package/package.json +6 -4
- package/dist/chunk-C6OLKGP6.js +0 -1
- package/dist/chunk-U2BLX7Y5.js +0 -1
- package/dist/chunk-WVVWOCQ5.js +0 -1
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x33ee05,_0x3ee9bd){const _0x236eb7={_0x2911f2:0x471,_0x4bbe59:0x50c,_0x35243b:0x4a6,_0x2d6d29:0xac,_0xcab7aa:0x157,_0x1af998:0x11d,_0x2fc972:0x87,_0x69185f:0x1a9,_0x14f294:0x1a2,_0x236bf6:0x189,_0x238457:0xf5,_0x1c6403:0x114,_0x343e49:0x158,_0xbd34a7:0x49d,_0xd486ad:0x521,_0x796b3b:0x53b,_0x38a66e:0x4f9,_0x3adb7e:0x4f8,_0x2d9b3e:0x53e,_0xe06391:0x5b6,_0x2062d8:0x5ac,_0x37caa5:0x4b5,_0x496e8c:0x4c0,_0x3e57d1:0x57e,_0x19e1a6:0x50d,_0x3edf5b:0x5fa,_0xd375d1:0x52d},_0x533508={_0x32beec:0x369},_0x1351e6=_0x33ee05();function _0x544809(_0x8c7c23,_0x196ad4,_0x561305,_0x82a549){return _0x5314(_0x82a549-0x320,_0x8c7c23);}function _0x6f4054(_0x16bc67,_0x211046,_0x502743,_0xae70d){return _0x5314(_0x502743- -_0x533508._0x32beec,_0x16bc67);}while(!![]){try{const _0x2ee0cc=parseInt(_0x544809(_0x236eb7._0x2911f2,0x4da,_0x236eb7._0x4bbe59,_0x236eb7._0x35243b))/0x1+parseInt(_0x6f4054(-_0x236eb7._0x2d6d29,-_0x236eb7._0xcab7aa,-_0x236eb7._0x1af998,-_0x236eb7._0x2fc972))/0x2+-parseInt(_0x6f4054(-0x1fd,-_0x236eb7._0x69185f,-_0x236eb7._0x14f294,-_0x236eb7._0x236bf6))/0x3*(-parseInt(_0x6f4054(-0x7e,-_0x236eb7._0x238457,-_0x236eb7._0x1c6403,-_0x236eb7._0x343e49))/0x4)+parseInt(_0x544809(0x587,0x4d0,_0x236eb7._0xbd34a7,_0x236eb7._0xd486ad))/0x5+-parseInt(_0x544809(_0x236eb7._0x796b3b,_0x236eb7._0x38a66e,_0x236eb7._0x3adb7e,_0x236eb7._0x2d9b3e))/0x6+-parseInt(_0x544809(0x647,_0x236eb7._0xe06391,0x51f,_0x236eb7._0x2062d8))/0x7*(parseInt(_0x544809(_0x236eb7._0x37caa5,_0x236eb7._0x496e8c,_0x236eb7._0x3e57d1,_0x236eb7._0x19e1a6))/0x8)+parseInt(_0x544809(0x63f,0x52f,0x63a,_0x236eb7._0xe06391))/0x9*(-parseInt(_0x544809(0x60b,_0x236eb7._0x3edf5b,_0x236eb7._0xd375d1,0x596))/0xa);if(_0x2ee0cc===_0x3ee9bd)break;else _0x1351e6['push'](_0x1351e6['shift']());}catch(_0x55806){_0x1351e6['push'](_0x1351e6['shift']());}}}(_0x4186,0xd4673));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-WVVWOCQ5.js';import{getTextFromMessage}from'../chunk-C6OLKGP6.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{spawn}from'child_process';import{statSync}from'fs';import*as _0x957778 from'os';import*as _0x369387 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';var DEFAULT_DESCRIPTION=_0x452c58(0x183,0x1e8,0x145,0x1c0),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0xfbe6a){return _0xfbe6a instanceof Error;}function shellExists(_0x30e4a9){const _0xf784e7={_0x254ed4:0x2a7,_0x49e132:0x35a,_0x212706:0x39f},_0x1b5a53={_0x4f21c0:0x190},_0x1ad0c6={_0x4b78f8:0x1d8};function _0x2a25a8(_0x4eee00,_0x279b81,_0x4503e5,_0x515d92){return _0x452c58(_0x515d92-0x2ea,_0x279b81,_0x4503e5-0x188,_0x515d92-_0x1ad0c6._0x4b78f8);}function _0x23ef26(_0x323baa,_0x5bacbd,_0x1bfff3,_0x967a33){return _0x452c58(_0x323baa-_0x1b5a53._0x4f21c0,_0x1bfff3,_0x1bfff3-0x14a,_0x967a33-0x5d);}try{const _0x5d1d4b=statSync(_0x30e4a9);return _0x5d1d4b[_0x23ef26(0x337,_0xf784e7._0x254ed4,0x354,0x3af)]()&&(_0x5d1d4b[_0x23ef26(_0xf784e7._0x49e132,0x377,0x35a,_0xf784e7._0x212706)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x1acab0){const _0x2acb05={_0x3b29dc:0x1d6,_0x13f678:0x2d3,_0x58fdfe:0x258,_0xa09af9:0x259,_0x5e79d3:0x9b,_0x121a45:0x231,_0x1aa899:0x2c3,_0x1d27de:0x27d,_0x1d6a1b:0x20c,_0x6e0a1:0x2d7,_0x1771b6:0x227,_0x8b7b2:0x38,_0xf03629:0x47},_0x1a0aa1={_0x37b224:0xf,_0xac871:0x5a,_0xa213c5:0x3},_0x5977ae={_0x5e876:0x290,_0x327c94:0x12d};function _0x3c5bd0(_0x1dcf44,_0x1075d6,_0x68afef,_0x58ec11){return _0x452c58(_0x68afef- -_0x5977ae._0x5e876,_0x1dcf44,_0x68afef-0x11d,_0x58ec11-_0x5977ae._0x327c94);}if(_0x1acab0)return _0x1acab0;if(_0x957778['platform']()===_0x51aad2(_0x2acb05._0x3b29dc,0x185,0x195,0x15c))return process[_0x51aad2(_0x2acb05._0x13f678,_0x2acb05._0x58fdfe,0x237,_0x2acb05._0xa09af9)][_0x3c5bd0(-0xf5,-0x1,-0x60,-0x4)]||_0x3c5bd0(-0x2,-0x6c,-_0x2acb05._0x5e79d3,-0x115);const _0x25246e=['/bin/bash',_0x51aad2(0x2cb,_0x2acb05._0x121a45,_0x2acb05._0x1aa899,0x1a3),_0x51aad2(_0x2acb05._0x1d27de,_0x2acb05._0x1d6a1b,0x21e,0x22d),'/usr/bin/sh'];for(const _0x4460e4 of _0x25246e){if(shellExists(_0x4460e4))return _0x4460e4;}const _0x3f132a=process[_0x51aad2(_0x2acb05._0x6e0a1,0x258,_0x2acb05._0x1771b6,0x2d1)]['SHELL'];if(_0x3f132a&&shellExists(_0x3f132a))return _0x3f132a;function _0x51aad2(_0x1713d2,_0x55e3f5,_0x410195,_0x1f2ce3){return _0x452c58(_0x55e3f5- -_0x1a0aa1._0x37b224,_0x1f2ce3,_0x410195-_0x1a0aa1._0xac871,_0x1f2ce3-_0x1a0aa1._0xa213c5);}return _0x3c5bd0(-_0x2acb05._0x8b7b2,-_0x2acb05._0xf03629,-0xcd,-0x60);}function buildShellArgs(_0x137730,_0x25a3b8){const _0x3137d9={_0x5dd8b6:0x538,_0x3b1811:0x5e2,_0x2c6063:0x587,_0x730958:0x43d,_0x136a3b:0x4d2},_0xb737a3={_0x29dd19:0x2e2},_0x39b511={_0x53c641:0x53};function _0x696fa8(_0xfe9cf,_0x2a9b9b,_0x4d3dcb,_0x599c54){return _0x452c58(_0x599c54-0x31e,_0xfe9cf,_0x4d3dcb-_0x39b511._0x53c641,_0x599c54-0x152);}if(_0x957778[_0x696fa8(_0x3137d9._0x5dd8b6,_0x3137d9._0x3b1811,0x514,_0x3137d9._0x2c6063)]()==='win32'){const _0x27ff36=/cmd(\.exe)?$/i['test'](_0x25a3b8);return _0x27ff36?['/d','/s','/c',_0x137730]:['-NoLogo',_0x2514a6(_0x3137d9._0x730958,_0x3137d9._0x136a3b,0x465,0x533),'-Command',_0x137730];}function _0x2514a6(_0x351b23,_0x29c346,_0x30b1b2,_0x583ed3){return _0x452c58(_0x29c346-_0xb737a3._0x29dd19,_0x583ed3,_0x30b1b2-0x1c2,_0x583ed3-0x4c);}return['-c',_0x137730];}function stripAnsiAndControls(_0x2485c9){const _0x1048be={_0x471cb5:0x166,_0x5ee668:0x329,_0x1dde75:0x339,_0x5232ec:0x2e9,_0xddc9c3:0x2ed,_0x4d97b5:0x187,_0x51cae8:0x3cd,_0x126b26:0x47d,_0x2090d1:0x112,_0x353b3f:0x1b6,_0x372992:0x38f,_0x1ed619:0x333,_0x686eea:0x147,_0x1356a1:0xa9},_0x59c73a={_0x220327:0x303},_0x31a5dd={_0x56a42e:0x164};_0x2485c9=stripVTControlCharacters(_0x2485c9);const _0x17a9bd='\x1b',_0x30f6fd='\x07';_0x2485c9=_0x2485c9[_0x23d94e(-_0x1048be._0x471cb5,-0x12e,-0x194,-0x1ca)](new RegExp(';[^'+_0x30f6fd+_0x3b5591(_0x1048be._0x5ee668,0x355,0x40d,0x39e)+_0x30f6fd,'g'),''),_0x2485c9=_0x2485c9[_0x3b5591(0x355,0x327,0x320,_0x1048be._0x1dde75)](new RegExp(_0x3b5591(0x2e3,0x28c,_0x1048be._0x5232ec,_0x1048be._0xddc9c3)+_0x17a9bd+'\x5c\x5c','g'),''),_0x2485c9=_0x2485c9[_0x23d94e(-0x11f,-0x12e,-0x18c,-_0x1048be._0x4d97b5)](new RegExp(_0x30f6fd,'g'),''),_0x2485c9=_0x2485c9[_0x3b5591(0x2ff,0x370,0x348,0x339)](new RegExp(_0x17a9bd+_0x3b5591(0x371,0x30e,_0x1048be._0x51cae8,0x351)+_0x17a9bd+'\x5c\x5c','g'),'');function _0x3b5591(_0x185064,_0x594016,_0x395017,_0x433098){return _0x452c58(_0x433098-_0x31a5dd._0x56a42e,_0x185064,_0x395017-0x23,_0x433098-0x117);}function _0x23d94e(_0x1dc570,_0x26c95c,_0x1898da,_0x3a866e){return _0x452c58(_0x26c95c- -_0x59c73a._0x220327,_0x1dc570,_0x1898da-0x17c,_0x3a866e-0xa4);}return _0x2485c9=_0x2485c9[_0x3b5591(0x383,0x29e,0x2e1,0x339)](new RegExp(_0x17a9bd+_0x3b5591(0x3d5,_0x1048be._0x126b26,0x46c,0x3f8),'g'),''),_0x2485c9=_0x2485c9[_0x23d94e(-_0x1048be._0x2090d1,-0x12e,-0x15a,-_0x1048be._0x353b3f)](/[\u0080-\u009F]/g,''),_0x2485c9=_0x2485c9[_0x3b5591(_0x1048be._0x372992,_0x1048be._0x1ed619,0x33c,_0x1048be._0x1dde75)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x2485c9=_0x2485c9[_0x23d94e(-0x190,-0x12e,-_0x1048be._0x686eea,-_0x1048be._0x1356a1)](/[\u23CE\u2424]/g,''),_0x2485c9;}function resolveWorkingDirectory(_0x28acd1,_0x3e889f){const _0x377e13={_0x512ac6:0x58,_0x25f588:0x1f,_0x163097:0x5d},_0x2ccb33={_0x12db71:0x14c},_0x39c335={_0x17a302:0x19e};function _0x1c4ead(_0xd80215,_0x499c84,_0x9fdf32,_0x207011){return _0x452c58(_0xd80215-0x27f,_0x207011,_0x9fdf32-0x3f,_0x207011-_0x39c335._0x17a302);}function _0x214195(_0x2b6fc1,_0x3aa4db,_0xceac3d,_0x45c656){return _0x452c58(_0x3aa4db- -0x284,_0x2b6fc1,_0xceac3d-_0x2ccb33._0x12db71,_0x45c656-0xe7);}const _0x154a28=_0x28acd1?_0x369387[_0x214195(-_0x377e13._0x512ac6,0x17,0x57,-0x5a)](_0x28acd1)?_0x28acd1:_0x369387[_0x214195(0xa3,0xe,-_0x377e13._0x25f588,-_0x377e13._0x163097)](_0x3e889f,_0x28acd1):_0x3e889f;try{const _0x4d18ee=statSync(_0x154a28);if(!_0x4d18ee[_0x214195(-0x7f,-0x2d,-0x4b,-0x55)]())throw new ToolExecutionError('Working\x20directory\x20is\x20not\x20a\x20directory:\x20'+_0x154a28,{'cwd':_0x154a28});return _0x154a28;}catch(_0xc7de7b){if(_0xc7de7b instanceof ToolExecutionError)throw _0xc7de7b;throw new ToolExecutionError('Working\x20directory\x20not\x20found:\x20'+_0x154a28,{'cwd':_0x154a28});}}function killProcessGroup(_0x545560,_0x456da1,_0x1d7a83=_0x452c58(0x17b,0x10b,0xe8,0x130)){const _0x1dd02e={_0x44692a:0x1ae,_0x3dfc82:0x1f4,_0x524bfd:0x4ec,_0x2e7db5:0x4fe,_0x477e84:0x4f3,_0x12bf06:0x52a,_0x3ed372:0x528,_0x2aca8a:0x5ed,_0x579814:0x453,_0x1dffdd:0x423,_0x2b74a8:0x4b6,_0x103e61:0x1e4,_0x49df28:0x19c,_0x3973a0:0x220,_0x193271:0x52b,_0x238c1b:0x52d,_0x434b52:0x427},_0x1095c2={_0x2614f5:0x1ad,_0x53adab:0x2b0},_0x3acf69={_0x294dc5:0x1ef,_0x51f830:0xb4};if(!_0x545560[_0x462827(_0x1dd02e._0x44692a,_0x1dd02e._0x3dfc82,0x16c,0x1c5)])return;function _0x451baa(_0x536058,_0x3cfe91,_0x584c1c,_0x46d377){return _0x44530c(_0x46d377,_0x3cfe91-_0x3acf69._0x294dc5,_0x584c1c-0x173,_0x584c1c-_0x3acf69._0x51f830);}if(_0x456da1)try{spawn('taskkill',['/pid',_0x545560[_0x451baa(_0x1dd02e._0x524bfd,0x57d,0x512,_0x1dd02e._0x2e7db5)][_0x451baa(_0x1dd02e._0x477e84,0x554,_0x1dd02e._0x12bf06,0x522)](),'/T','/F'],{'stdio':_0x451baa(_0x1dd02e._0x3ed372,_0x1dd02e._0x2aca8a,0x5be,0x61f)});return;}catch{_0x545560[_0x451baa(_0x1dd02e._0x579814,_0x1dd02e._0x1dffdd,_0x1dd02e._0x2b74a8,0x4fb)](_0x1d7a83);return;}function _0x462827(_0x55bedb,_0x5dc30a,_0x24b0aa,_0x59231f){return _0x44530c(_0x59231f,_0x5dc30a-0x1d0,_0x24b0aa-_0x1095c2._0x2614f5,_0x55bedb- -_0x1095c2._0x53adab);}try{process['kill'](-_0x545560[_0x462827(0x1ae,_0x1dd02e._0x103e61,_0x1dd02e._0x49df28,_0x1dd02e._0x3973a0)],_0x1d7a83);}catch{_0x545560[_0x451baa(_0x1dd02e._0x193271,_0x1dd02e._0x238c1b,0x4b6,_0x1dd02e._0x434b52)](_0x1d7a83);}}function appendChunk(_0xab9039,_0x515767,_0x14ef69,_0x4b75a7,_0x535321){const _0x12aedf={_0x197fe0:0x389,_0x13731b:0x2f2,_0x3b40d7:0x396,_0x29eb77:0x511,_0x1dc32a:0x3ea,_0x27d9c0:0x3b8,_0x1e6fd3:0x388,_0x28de35:0x31d},_0x19195c={_0x308582:0x1bb,_0x243817:0x1d5};function _0x10de8a(_0x5cac5c,_0x5ea0a8,_0x545824,_0x4f3a29){return _0x452c58(_0x545824-0x314,_0x5ea0a8,_0x545824-0x11f,_0x4f3a29-0x4e);}function _0x4bbb32(_0x50a689,_0x1abff8,_0x337df9,_0x446517){return _0x452c58(_0x1abff8-_0x19195c._0x308582,_0x50a689,_0x337df9-_0x19195c._0x243817,_0x446517-0x13d);}const _0x53d1f7=_0x4b75a7?stripAnsiAndControls(_0x14ef69):_0x14ef69;if(_0x53d1f7[_0x4bbb32(0x31b,_0x12aedf._0x197fe0,_0x12aedf._0x13731b,_0x12aedf._0x3b40d7)]===0x0)return;_0xab9039[_0x10de8a(0x49d,0x50e,_0x12aedf._0x29eb77,0x483)](_0x53d1f7),_0x515767[_0x4bbb32(_0x12aedf._0x1dc32a,_0x12aedf._0x27d9c0,_0x12aedf._0x1e6fd3,_0x12aedf._0x28de35)](_0x53d1f7),_0x535321();}function createBashTool(_0x364c65={}){const _0x4754ad={_0x95d0bb:0x309,_0x5b5bfc:0x258,_0x525cf0:0x247,_0xa36d6b:0x4b3,_0x5c1702:0x4c4,_0x7d4b0b:0x4d4,_0x4c81a0:0x29b,_0x268547:0x231,_0x31fd6e:0x28d,_0x5da4a4:0x55a,_0x4bcc3a:0x4e6,_0x2b5474:0x538,_0x132c05:0x57f,_0x1ed9c4:0x514,_0x216900:0x275,_0x3561a0:0x39f},_0x977578={_0x2c1a0d:0x244,_0xffcb6d:0x21b,_0x1b76e5:0x1c7,_0x3b545a:0x17d,_0x4f20f2:0x2b5,_0xd493ac:0x283,_0x5bb8b8:0xe4,_0x5e4f26:0x15c,_0x16b304:0x306,_0x265273:0x28a,_0x1e0fa1:0x2ce,_0x3cc407:0x6c,_0x48b2f6:0xbb,_0x488156:0x30,_0x3c02a1:0x19,_0xee0619:0x58,_0x4ee9f2:0xe3,_0x21fb1f:0x2e0,_0x151eb6:0x336,_0x9bd3b:0x29f,_0x257763:0x23e,_0x578c8b:0xaa,_0x11088f:0x41,_0x8e948b:0x240,_0x595531:0x1f9,_0x410f9e:0x143,_0x92942d:0x210,_0x6f422f:0x215,_0x367815:0x175,_0x296445:0x25f,_0x38dd37:0x2c0,_0x4ecb3e:0x2f5,_0x1df16b:0x26c,_0x208b38:0x2ee,_0x280aeb:0x7e,_0x137718:0xaa,_0x2f89bc:0x98,_0x12e0d1:0x1cd,_0x105532:0x1e1,_0x2b7150:0x21b,_0x1112fd:0x1d0,_0x14546b:0x4a,_0x403c01:0x5d,_0x44e35f:0x31,_0x53f2be:0x62,_0x2a6080:0x48,_0x50fc47:0x192,_0x1f0b05:0x1d3,_0x3c3283:0x5,_0x2946fc:0x1ce,_0x5db1ff:0x1aa,_0x5142bd:0x23a,_0x342567:0x2b5,_0x41efb5:0x2f1,_0x40c0f9:0x269,_0x4bf562:0x1dd,_0x4bc008:0x188,_0x56551b:0x1c3,_0xf217d7:0x6,_0x487629:0x251,_0xbda03:0x34,_0xc9e796:0x27,_0x18e4e7:0x71,_0x9950e:0x234,_0x2068d5:0x1e5,_0x445c53:0x13a,_0x34afdd:0x1dd,_0xdcd8a:0x7e,_0x38247c:0xd1,_0x39a5da:0x99,_0x35bb42:0xc1,_0x55d7e4:0x25b,_0x540ff4:0x1c4,_0x41a0db:0x1ef,_0x347b15:0x249,_0x43df5c:0xe,_0x2dd64f:0x50,_0x4531b6:0x96,_0x38d3e5:0xb,_0x995d15:0x49,_0x385016:0x115,_0x172802:0xd6,_0x351a1b:0x12e,_0x339f9c:0x259,_0x487a5e:0x300,_0x574046:0x2c0,_0x1e3be9:0x185,_0xfd8bf3:0x177,_0x504707:0x1c6,_0x4bbd8c:0x53,_0x31d8cc:0x6f,_0x31c085:0x58,_0x1591bc:0x146,_0x487858:0x1a2,_0x4ac4bf:0x1b8,_0xbef472:0x36,_0x3bd105:0x24,_0x3f4e11:0x4,_0x44cb3c:0x12b,_0x229b3d:0x192,_0x3a34f9:0x16b},_0x1610a3={_0x14f995:0x2f8,_0x5b4d13:0x2fa,_0x4a509e:0x319,_0x415af1:0x168,_0x4de917:0x167,_0x586f2e:0x138,_0x2bef94:0x29e,_0x1f65ff:0x383,_0x31ca1c:0x3a4,_0x32ca9c:0x389,_0x3ea7f0:0x2c2},_0x23b60f={_0x34b003:0x69,_0x10f39f:0x2a3},_0x46d3a4={_0x6e185:0x132,_0x2df1b6:0xd0},_0x12d999={_0x36949f:0x2c4,_0x32cf97:0x63},_0x5d9ddf={_0x29066c:0x8e,_0x235e4b:0x1f,_0x42a905:0x16c},_0x4fe77a=_0x369387[_0x48e6f7(0x320,_0x4754ad._0x95d0bb,0x30a,0x2d3)](_0x364c65['defaultCwd']??process[_0x48e6f7(0x257,_0x4754ad._0x5b5bfc,0x280,_0x4754ad._0x525cf0)]()),_0x1ea378=_0x364c65['defaultTimeoutMs']??DEFAULT_TIMEOUT_MS;function _0x48e6f7(_0x1d8d4e,_0x3ab2da,_0x387f8a,_0x266b49){return _0x452c58(_0x1d8d4e-_0x5d9ddf._0x29066c,_0x387f8a,_0x387f8a-_0x5d9ddf._0x235e4b,_0x266b49-_0x5d9ddf._0x42a905);}const _0x620eca=_0x364c65[_0x4c7fb1(0x429,0x472,_0x4754ad._0xa36d6b,_0x4754ad._0x5c1702)]??!![];function _0x4c7fb1(_0x5131d2,_0x514d28,_0x3e5619,_0xc14d49){return _0x452c58(_0xc14d49-_0x12d999._0x36949f,_0x514d28,_0x3e5619-_0x12d999._0x32cf97,_0xc14d49-0x40);}const _0x16f452=_0x364c65['name']??_0x4c7fb1(0x50b,_0x4754ad._0x7d4b0b,0x47a,0x516);return defineTool({'name':_0x16f452,'description':_0x364c65[_0x48e6f7(_0x4754ad._0x4c81a0,_0x4754ad._0x268547,0x2f9,0x227)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x48e6f7(0x307,0x37b,_0x4754ad._0x31fd6e,0x370),'properties':{'command':{'type':'string'},'cwd':{'type':_0x4c7fb1(_0x4754ad._0x5da4a4,0x4b2,_0x4754ad._0x4bcc3a,_0x4754ad._0x2b5474)},'timeoutMs':{'type':_0x4c7fb1(0x59e,0x597,_0x4754ad._0x132c05,_0x4754ad._0x1ed9c4)},'ignoreOutput':{'type':_0x48e6f7(0x30f,_0x4754ad._0x216900,0x2d3,_0x4754ad._0x3561a0)}},'required':['command']},async *'execute'(_0x354d1d,_0x12b9f2){const _0x424bda={_0x29a0bf:0x44a,_0x4f8a98:0x4b6,_0x5c5947:0x46d,_0x5ef6cc:0x502,_0x263f69:0x45b,_0x4775d2:0x548,_0xda88b6:0x582,_0x220ab7:0x544},_0x2671bb={_0x2251ae:0xb3,_0x4bab05:0x9b,_0x4e0744:0xc2},_0x1a8ea5={_0x16e514:0x138},_0x274d96={_0x2b16e3:0x1c4,_0x47f38d:0x246,_0x3148ad:0x1e0},_0xbbf169={_0x9600cd:0xf3,_0x508be7:0x380},_0xf77c0f={_0x193664:0x257,_0x39bf0c:0x144},_0x30346b=_0x354d1d['timeoutMs']??_0x1ea378;if(!Number[_0x5c94c8(_0x977578._0x2c1a0d,_0x977578._0xffcb6d,_0x977578._0x1b76e5,_0x977578._0x3b545a)](_0x30346b)||_0x30346b<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x354d1d[_0x2c87f2(0x102,0xac,0xd6,0x44)]});throwIfAborted(_0x12b9f2['signal']);const _0x288877=resolveWorkingDirectory(_0x354d1d[_0x5c94c8(0x259,0x1b1,0x1ea,0x1f2)],_0x4fe77a),_0x42716c=_0x354d1d[_0x5c94c8(0x1d4,_0x977578._0x4f20f2,0x225,_0x977578._0xd493ac)]??![],_0x36b76e=resolveDefaultShell(_0x364c65['shellPath']),_0x768651=buildShellArgs(_0x354d1d[_0x2c87f2(0x14e,_0x977578._0x5bb8b8,0xd6,_0x977578._0x5e4f26)],_0x36b76e),_0x48ace7=_0x957778[_0x5c94c8(0x30b,_0x977578._0x16b304,_0x977578._0x265273,_0x977578._0x1e0fa1)]()===_0x2c87f2(-0x4a,-_0x977578._0x3cc407,-0x35,-0x91);let _0x2d68d9;try{_0x2d68d9=spawn(_0x36b76e,_0x768651,{'cwd':_0x288877,'env':{...process['env'],..._0x364c65[_0x2c87f2(_0x977578._0x48b2f6,_0x977578._0x488156,0x9e,_0x977578._0x3c02a1)]??{}},'stdio':_0x42716c?['ignore',_0x2c87f2(_0x977578._0xee0619,_0x977578._0x4ee9f2,0xb5,0xd0),_0x5c94c8(_0x977578._0x21fb1f,_0x977578._0x151eb6,_0x977578._0x9bd3b,_0x977578._0x257763)]:['ignore',_0x2c87f2(_0x977578._0x578c8b,-0x1e,0xf,-_0x977578._0x11088f),_0x5c94c8(0x27c,_0x977578._0x8e948b,_0x977578._0x595531,0x1a5)],'shell':![],'windowsHide':!![],'detached':!_0x48ace7});}catch(_0x51fc24){if(isErrnoException(_0x51fc24)&&_0x51fc24[_0x5c94c8(_0x977578._0x410f9e,_0x977578._0x92942d,0x1c3,0x1ea)]==='ENOENT')throw new ToolExecutionError(_0x5c94c8(0x279,_0x977578._0x6f422f,0x210,_0x977578._0x367815)+_0x36b76e,{'command':_0x354d1d[_0x5c94c8(_0x977578._0x296445,0x285,_0x977578._0x38dd37,0x350)],'cwd':_0x288877,'shellPath':_0x36b76e});throw new ToolExecutionError(_0x51fc24 instanceof Error?_0x51fc24[_0x5c94c8(_0x977578._0x4ecb3e,0x2e6,_0x977578._0x1df16b,_0x977578._0x208b38)]:String(_0x51fc24),{'command':_0x354d1d[_0x2c87f2(_0x977578._0x280aeb,_0x977578._0x137718,0xd6,_0x977578._0x2f89bc)],'cwd':_0x288877,'shellPath':_0x36b76e});}const _0xf9743c=[],_0x4e6439=[],_0x120ac3=new StringDecoder(_0x5c94c8(_0x977578._0x12e0d1,_0x977578._0x105532,_0x977578._0x2b7150,_0x977578._0x1112fd)),_0x58dff1=new StringDecoder(_0x2c87f2(_0x977578._0x14546b,-_0x977578._0x403c01,_0x977578._0x44e35f,-0x4e));let _0x3400ae,_0x4c0379=![];function _0x2c87f2(_0x23b405,_0x53b4c3,_0x13d9e1,_0x3da51a){return _0x48e6f7(_0x13d9e1- -_0xf77c0f._0x193664,_0x53b4c3-_0xf77c0f._0x39bf0c,_0x23b405,_0x3da51a-0x16b);}let _0xa9a2e6;const _0x2dbd3d=()=>{if(!_0x3400ae)return;const _0x493ff7=_0x3400ae;_0x3400ae=void 0x0,_0x493ff7();},_0x1b686e=async()=>{if(_0x4e6439['length']>0x0||_0x4c0379)return;await new Promise(_0x47ef89=>{_0x3400ae=_0x47ef89;});},_0x18390c=_0x207bd4=>{function _0x50cf7a(_0x573318,_0x442390,_0x5e733a,_0x27ffd8){return _0x5c94c8(_0x573318-_0xbbf169._0x9600cd,_0x442390-0x7b,_0x442390- -_0xbbf169._0x508be7,_0x573318);}appendChunk(_0xf9743c,_0x4e6439,_0x120ac3[_0x50cf7a(-0x15b,-_0x274d96._0x2b16e3,-_0x274d96._0x47f38d,-_0x274d96._0x3148ad)](_0x207bd4),_0x620eca,_0x2dbd3d);},_0x59c6b0=_0x2194e6=>{function _0x105dbc(_0xd6b95f,_0x18b4fb,_0x502b74,_0x4ded65){return _0x5c94c8(_0xd6b95f-_0x1a8ea5._0x16e514,_0x18b4fb-0x35,_0xd6b95f- -0xb8,_0x4ded65);}appendChunk(_0xf9743c,_0x4e6439,_0x58dff1[_0x105dbc(0x104,_0x46d3a4._0x6e185,_0x46d3a4._0x2df1b6,0xd5)](_0x2194e6),_0x620eca,_0x2dbd3d);};_0x2d68d9['stdout']?.['on']('data',_0x18390c),_0x2d68d9[_0x2c87f2(-_0x977578._0x53f2be,0x16,-_0x977578._0x2a6080,-0xaf)]?.['on'](_0x5c94c8(0x22b,0x148,_0x977578._0x50fc47,_0x977578._0x1f0b05),_0x59c6b0);let _0x5ac508=![],_0x36613a;const _0x5eca6a=addAbortListener(_0x12b9f2['signal'],()=>{const _0x59c224={_0x27c4d7:0x1e8,_0x5ed084:0x197},_0x12c23f={_0x585f01:0x120};_0xa9a2e6=toAbortError(_0x12b9f2[_0x279068(0xbe,_0x2671bb._0x2251ae,0x84,_0x2671bb._0x4bab05)][_0x279068(0x137,_0x2671bb._0x4e0744,0xee,0x74)]);function _0x279068(_0x2b9209,_0x4ce5b1,_0x2f6b1a,_0xbf7567){return _0x2c87f2(_0x2b9209,_0x4ce5b1-_0x12c23f._0x585f01,_0x2f6b1a-0x89,_0xbf7567-0x82);}_0x4c0379=!![],_0x2dbd3d();function _0x1008da(_0x701d0c,_0x34e727,_0x41996a,_0x2c6dfd){return _0x5c94c8(_0x701d0c-0xb,_0x34e727-_0x59c224._0x27c4d7,_0x701d0c- -_0x59c224._0x5ed084,_0x34e727);}try{killProcessGroup(_0x2d68d9,_0x48ace7);}catch{}});function _0x5c94c8(_0x362136,_0x333e70,_0x555d51,_0x21cb34){return _0x4c7fb1(_0x362136-_0x23b60f._0x34b003,_0x21cb34,_0x555d51-0xd7,_0x555d51- -_0x23b60f._0x10f39f);}try{const _0x406501=new Promise((_0x1fa49f,_0x443887)=>{const _0x303573={_0x5400ca:0x162,_0x29e8d9:0x14c,_0x45795b:0x18f,_0x5f4078:0x161,_0xe8e9a1:0x1ec,_0x5d6bd3:0x593,_0x3c29d0:0x574,_0x5b3457:0x584},_0xbedadb={_0x41c4b2:0x2cd},_0x5ecd77={_0x55f5b8:0xe8},_0x3ec6fc={_0x396754:0x249,_0x46c297:0x2d1,_0xe4b7c7:0x22,_0x3d8bc7:0x6c},_0x3647ce={_0x2a6af0:0x1e8},_0xc145f4=()=>{const _0xc7e8cb={_0x3205c5:0x309},_0x5bbf63={_0xbe9ae9:0x317};function _0x980433(_0xc0818b,_0x1517cf,_0x65ec71,_0x2c6e1c){return _0x5314(_0x2c6e1c-_0x5bbf63._0xbe9ae9,_0x1517cf);}function _0x5ae2aa(_0x454ab7,_0xcc3be9,_0x4fd529,_0x18a4c0){return _0x5314(_0xcc3be9-_0xc7e8cb._0x3205c5,_0x4fd529);}_0x36613a&&(clearTimeout(_0x36613a),_0x36613a=void 0x0),_0x2d68d9[_0x5ae2aa(_0x424bda._0x29a0bf,_0x424bda._0x4f8a98,0x436,0x474)](_0x980433(0x4ad,0x539,_0x424bda._0x5c5947,0x4d9),_0x139130),_0x2d68d9[_0x5ae2aa(_0x424bda._0x5ef6cc,0x4b6,_0x424bda._0x263f69,_0x424bda._0x4775d2)](_0x980433(_0x424bda._0xda88b6,0x568,0x4e3,_0x424bda._0x220ab7),_0x2991fb);};function _0x28ca20(_0x249922,_0x5cdac7,_0x5286be,_0x29f42a){return _0x2c87f2(_0x5cdac7,_0x5cdac7-0xcd,_0x5286be- -0x12e,_0x29f42a-_0x3647ce._0x2a6af0);}const _0x139130=_0x20ef65=>{_0x4c0379=!![],_0x2dbd3d(),_0xc145f4(),_0x443887(_0xa9a2e6??_0x20ef65);},_0x2991fb=(_0x5ee041,_0x551874)=>{const _0x4dc0df={_0x30db17:0x72};_0x5ac508=!![];function _0x313230(_0x1136dc,_0x5439cd,_0x20430e,_0x15307e){return _0x5314(_0x20430e- -0x16b,_0x5439cd);}appendChunk(_0xf9743c,_0x4e6439,_0x120ac3[_0x232ff4(_0x3ec6fc._0x396754,_0x3ec6fc._0x46c297,0x28e,0x1c7)](),_0x620eca,_0x2dbd3d),appendChunk(_0xf9743c,_0x4e6439,_0x58dff1[_0x313230(_0x3ec6fc._0xe4b7c7,0xcd,_0x3ec6fc._0x3d8bc7,-0x10)](),_0x620eca,_0x2dbd3d),_0x4c0379=!![],_0x2dbd3d();function _0x232ff4(_0x4c0f65,_0x3ab0d2,_0x21eddd,_0x3c279a){return _0x5314(_0x4c0f65-_0x4dc0df._0x30db17,_0x3ab0d2);}_0xc145f4();if(_0xa9a2e6){_0x443887(_0xa9a2e6);return;}_0x1fa49f({'code':_0x5ee041,'signal':_0x551874});};function _0x5f3dad(_0x820ddd,_0x19bd8e,_0xa19a5f,_0x36f29a){return _0x2c87f2(_0x19bd8e,_0x19bd8e-_0x5ecd77._0x55f5b8,_0xa19a5f-0x2d6,_0x36f29a-0x1c3);}_0x36613a=setTimeout(()=>{const _0x428a86={_0x238129:0x70};_0x4c0379=!![];function _0x45b44e(_0x536392,_0xd569ef,_0xc89b54,_0x404343){return _0x5314(_0xd569ef- -_0x428a86._0x238129,_0x536392);}_0x2dbd3d();function _0x1bcf43(_0x20be5f,_0x12e124,_0x29a3cc,_0x4cbbbd){return _0x5314(_0x29a3cc-_0xbedadb._0x41c4b2,_0x4cbbbd);}_0xc145f4();try{killProcessGroup(_0x2d68d9,_0x48ace7);}catch{}_0x443887(new ToolExecutionError(_0x45b44e(_0x303573._0x5400ca,0x18e,_0x303573._0x29e8d9,0x207)+_0x30346b+_0x45b44e(0x131,_0x303573._0x45795b,_0x303573._0x5f4078,_0x303573._0xe8e9a1),{'command':_0x354d1d[_0x1bcf43(0x579,_0x303573._0x5d6bd3,_0x303573._0x3c29d0,_0x303573._0x5b3457)],'cwd':_0x288877,'shellPath':_0x36b76e,'timeoutMs':_0x30346b,'timedOut':!![]}));},_0x30346b),_0x2d68d9[_0x5f3dad(_0x1610a3._0x14f995,_0x1610a3._0x5b4d13,_0x1610a3._0x4a509e,0x316)](_0x28ca20(-_0x1610a3._0x415af1,-_0x1610a3._0x4de917,-0x13d,-_0x1610a3._0x586f2e),_0x139130),_0x2d68d9[_0x5f3dad(_0x1610a3._0x2bef94,0x2ee,_0x1610a3._0x4a509e,_0x1610a3._0x1f65ff)](_0x5f3dad(_0x1610a3._0x31ca1c,_0x1610a3._0x32ca9c,0x332,_0x1610a3._0x3ea7f0),_0x2991fb);});while(_0x4e6439[_0x2c87f2(0x57,-0x8c,_0x977578._0x3c3283,0x11)]>0x0||!_0x4c0379){if(_0x4e6439[_0x5c94c8(0x222,_0x977578._0x2946fc,0x1ef,0x258)]===0x0){await _0x1b686e();continue;}const _0x14c7a6=_0x4e6439[_0x5c94c8(0x2cf,_0x977578._0x5db1ff,_0x977578._0x5142bd,0x2a9)]();_0x14c7a6!==void 0x0&&(yield _0x14c7a6);}const _0x10dc33=await _0x406501,_0x45ae46=_0x42716c?_0x5c94c8(_0x977578._0x342567,_0x977578._0x41efb5,_0x977578._0x40c0f9,_0x977578._0x4bf562)+(_0x10dc33[_0x5c94c8(0x219,_0x977578._0x4bc008,_0x977578._0x56551b,0x1b8)]??0x0):_0xf9743c[_0x2c87f2(-0xba,-_0x977578._0xf217d7,-0x36,-0xbb)](''),_0x38a736={'command':_0x354d1d[_0x5c94c8(0x2c8,_0x977578._0x487629,0x2c0,0x2b2)],'cwd':_0x288877,'exitCode':_0x10dc33[_0x2c87f2(-0x94,-_0x977578._0xbda03,-_0x977578._0xc9e796,-_0x977578._0x18e4e7)]??0x0,'signal':_0x10dc33[_0x5c94c8(0x1df,_0x977578._0x9950e,_0x977578._0x2068d5,0x25a)],'ignoreOutput':_0x42716c,'shellPath':_0x36b76e,'timeoutMs':_0x30346b};if(_0x10dc33[_0x5c94c8(0x21f,_0x977578._0x445c53,0x1c3,_0x977578._0x34afdd)]!==0x0)throw new ToolExecutionError(_0x45ae46||_0x2c87f2(_0x977578._0xdcd8a,_0x977578._0x38247c,_0x977578._0x39a5da,_0x977578._0x35bb42)+(_0x10dc33[_0x5c94c8(_0x977578._0x55d7e4,0x135,_0x977578._0x56551b,_0x977578._0x540ff4)]??0x0),_0x38a736);return createToolOutput(_0x45ae46,_0x38a736);}catch(_0x505d82){while(_0x4e6439[_0x5c94c8(0x19a,0x199,_0x977578._0x41a0db,_0x977578._0x347b15)]>0x0){const _0x5f291d=_0x4e6439[_0x2c87f2(0x9,_0x977578._0x43df5c,_0x977578._0x2dd64f,0x1b)]();_0x5f291d!==void 0x0&&(yield _0x5f291d);}if(_0x505d82 instanceof ToolExecutionError)throw _0x505d82;if(_0xa9a2e6)throw _0xa9a2e6;if(isErrnoException(_0x505d82)&&_0x505d82[_0x5c94c8(0x1cd,0x15c,0x1c3,0x169)]==='ENOENT')throw new ToolExecutionError(_0x2c87f2(_0x977578._0x4531b6,-_0x977578._0x38d3e5,0x26,-_0x977578._0x995d15)+_0x36b76e,{'command':_0x354d1d[_0x2c87f2(_0x977578._0x385016,0xa2,_0x977578._0x172802,_0x977578._0x351a1b)],'cwd':_0x288877,'shellPath':_0x36b76e});throw new ToolExecutionError(_0x505d82 instanceof Error?_0x505d82[_0x5c94c8(_0x977578._0x339f9c,_0x977578._0x487a5e,0x26c,0x25c)]:String(_0x505d82),{'command':_0x354d1d[_0x5c94c8(0x298,0x2c8,_0x977578._0x574046,0x231)],'cwd':_0x288877,'shellPath':_0x36b76e});}finally{_0x36613a&&clearTimeout(_0x36613a);_0x5eca6a(),_0x2d68d9[_0x5c94c8(_0x977578._0x1e3be9,0x199,0x1c2,_0x977578._0xfd8bf3)]?.[_0x5c94c8(0x1ea,0x23d,_0x977578._0x504707,0x1a3)](_0x2c87f2(-_0x977578._0x4bbd8c,-_0x977578._0x31d8cc,-_0x977578._0x31c085,0xd),_0x18390c),_0x2d68d9[_0x5c94c8(0x1df,_0x977578._0x1591bc,_0x977578._0x487858,_0x977578._0x4ac4bf)]?.[_0x2c87f2(_0x977578._0xbef472,-0x7c,-_0x977578._0x3bd105,-_0x977578._0x3f4e11)](_0x5c94c8(0x127,_0x977578._0x44cb3c,_0x977578._0x229b3d,_0x977578._0x3a34f9),_0x59c6b0);if(!_0x5ac508&&_0x2d68d9[_0x2c87f2(-0x44,-0x2,0x9,-0x21)]&&!_0x2d68d9['killed'])try{killProcessGroup(_0x2d68d9,_0x48ace7);}catch{}}}});}function createShellExecTool(_0x3de247={}){return createBashTool(_0x3de247);}function tokenizeArgs(_0x451fed){const _0x2c16ce={_0x4c6446:0x348,_0x3702b6:0x2fa,_0x274fca:0x2c2,_0x493fa5:0x28a,_0x5dbec8:0x317,_0x51f158:0x2fc,_0x43126b:0x35d,_0x518a28:0x332,_0x54cafe:0x385},_0x41d0ff={_0x1761b7:0xa0,_0x94a9b2:0x143},_0x4cc044={_0x36779f:0x157,_0x360f3a:0x0};function _0x568e4b(_0x267f1b,_0xe9999c,_0x3dc6e4,_0x5cf33a){return _0x452c58(_0x267f1b-_0x4cc044._0x36779f,_0x3dc6e4,_0x3dc6e4-_0x4cc044._0x360f3a,_0x5cf33a-0x66);}const _0x240764=[];let _0x3d8ff9='',_0x3fbeec=0x0;while(_0x3fbeec<_0x451fed[_0x568e4b(0x325,0x38f,0x361,0x2ce)]){const _0x1df05c=_0x451fed[_0x3fbeec];if(_0x1df05c==='\x5c'&&_0x3fbeec+0x1<_0x451fed[_0x568e4b(0x325,0x343,_0x2c16ce._0x4c6446,_0x2c16ce._0x3702b6)])_0x3d8ff9+=_0x451fed[_0x3fbeec+0x1],_0x3fbeec+=0x2;else{if(_0x1df05c==='\x22'||_0x1df05c==='\x27'){const _0x2e5d98=_0x1df05c;_0x3fbeec++;while(_0x3fbeec<_0x451fed['length']&&_0x451fed[_0x3fbeec]!==_0x2e5d98){_0x451fed[_0x3fbeec]==='\x5c'&&_0x3fbeec+0x1<_0x451fed[_0x3239a8(_0x2c16ce._0x274fca,_0x2c16ce._0x493fa5,_0x2c16ce._0x5dbec8,0x36f)]?(_0x3d8ff9+=_0x451fed[_0x3fbeec+0x1],_0x3fbeec+=0x2):(_0x3d8ff9+=_0x451fed[_0x3fbeec],_0x3fbeec++);}_0x3fbeec++;}else _0x1df05c!==void 0x0&&/\s/[_0x568e4b(0x304,_0x2c16ce._0x51f158,_0x2c16ce._0x43126b,0x32e)](_0x1df05c)?(_0x3d8ff9&&(_0x240764[_0x3239a8(0x387,_0x2c16ce._0x518a28,0x346,0x341)](_0x3d8ff9),_0x3d8ff9=''),_0x3fbeec++):(_0x3d8ff9+=_0x1df05c,_0x3fbeec++);}}function _0x3239a8(_0x36a4c1,_0x6ae009,_0x56b1dc,_0x150ef6){return _0x44530c(_0x36a4c1,_0x6ae009-0x3c,_0x56b1dc-_0x41d0ff._0x1761b7,_0x56b1dc- -_0x41d0ff._0x94a9b2);}if(_0x3d8ff9)_0x240764[_0x568e4b(0x354,0x323,_0x2c16ce._0x54cafe,0x356)](_0x3d8ff9);return _0x240764;}function renderCommandPrompt(_0x888a9a,_0x7cfa58,_0x39a67b){const _0x57280d={_0x29812f:0x144,_0x1b3d02:0xcf,_0x38f89d:0xa2,_0xa26972:0x190,_0x52afe8:0x119,_0x7da94f:0x101,_0x1d129e:0xd2,_0x484ce1:0x14b,_0x630b61:0x165,_0x5146db:0xf9,_0x390878:0x2a,_0x7f750:0x62,_0x3218d6:0x84,_0x134e1a:0xf3},_0x3d5ea4={_0x26e68a:0xb1,_0x57e298:0xf5,_0x373be7:0x527},_0x2b5ffb={_0x230fa8:0xa};let _0xec9b2f=_0x888a9a,_0x56e611=![];const _0x5b8eaa=tokenizeArgs(_0x39a67b);function _0x591d7e(_0x5c1a1c,_0x1ea933,_0x2730f8,_0x5e0510){return _0x452c58(_0x5e0510- -0x2ce,_0x1ea933,_0x2730f8-_0x2b5ffb._0x230fa8,_0x5e0510-0x13a);}_0xec9b2f=_0xec9b2f[_0x591d7e(-_0x57280d._0x29812f,-_0x57280d._0x1b3d02,-0xdd,-0xf9)](/\$ARGUMENTS\[(\d+)\]/g,(_0x551460,_0x28f598)=>{return _0x56e611=!![],_0x5b8eaa[Number(_0x28f598)]??'';}),_0xec9b2f=_0xec9b2f[_0x37487a(-0x110,-_0x57280d._0x38f89d,-0xc6,-0x2f)](/\$ARGUMENTS\b/g,()=>{return _0x56e611=!![],_0x39a67b;});if(_0x7cfa58)for(let _0x353122=0x0;_0x353122<_0x7cfa58[_0x591d7e(-_0x57280d._0xa26972,-_0x57280d._0x52afe8,-0x12e,-0x100)];_0x353122++){const _0x29842e=_0x7cfa58[_0x353122];_0x29842e&&(_0xec9b2f=_0xec9b2f[_0x591d7e(-_0x57280d._0x7da94f,-_0x57280d._0x1d129e,-_0x57280d._0x484ce1,-0xf9)](new RegExp('\x5c$'+_0x29842e+'\x5cb','g'),()=>{return _0x56e611=!![],_0x5b8eaa[_0x353122]??'';}));}_0xec9b2f=_0xec9b2f[_0x591d7e(-0x84,-0x114,-_0x57280d._0x630b61,-_0x57280d._0x5146db)](/\$(\d+)\b/g,(_0x4d47e4,_0x211e67)=>{return _0x56e611=!![],_0x5b8eaa[Number(_0x211e67)]??'';});function _0x37487a(_0x4fc903,_0x4ae40f,_0x48b6eb,_0x4c331d){return _0x44530c(_0x4c331d,_0x4ae40f-_0x3d5ea4._0x26e68a,_0x48b6eb-_0x3d5ea4._0x57e298,_0x48b6eb- -_0x3d5ea4._0x373be7);}return!_0x56e611&&_0x39a67b[_0x37487a(0x56,-0x62,-0x41,_0x57280d._0x390878)]()&&(_0xec9b2f=_0xec9b2f+_0x591d7e(-_0x57280d._0x7f750,-0x72,-_0x57280d._0x3218d6,-_0x57280d._0x134e1a)+_0x39a67b),_0xec9b2f;}function buildDescription(_0x2138c3){const _0x379fb6={_0x2aa504:0x520,_0x24e68e:0x470,_0x3ef7fd:0xbd,_0x4c6c49:0xd0,_0x2562b8:0x126,_0x175926:0x118,_0x58cecd:0xca,_0x4d3889:0x40,_0x1e6a1b:0x1f,_0x587284:0x4f,_0x83373e:0x44e,_0x9fe0b6:0x4e0,_0x2626e4:0x4b0,_0x2527da:0x417,_0x326819:0x508,_0x4cc8ee:0x48c,_0x4a4636:0x4b6,_0x303518:0x4c6,_0x574ff2:0x4b6,_0x41e60b:0x49b,_0x4e07f8:0x418,_0x5e7de0:0x522,_0x22c563:0x48e},_0x565d67={_0x365c4e:0xe0},_0x3db593={_0x51495f:0x172};function _0x658768(_0x180d93,_0x3e1123,_0x13fce9,_0x3e02b7){return _0x44530c(_0x13fce9,_0x3e1123-0x12e,_0x13fce9-_0x3db593._0x51495f,_0x3e02b7- -0x511);}function _0x4a9751(_0x47b571,_0x1b0603,_0x20d4cb,_0x28c928){return _0x452c58(_0x47b571-0x2fb,_0x28c928,_0x20d4cb-_0x565d67._0x365c4e,_0x28c928-0x1e9);}if(_0x2138c3[_0x4a9751(0x4c9,_0x379fb6._0x2aa504,_0x379fb6._0x24e68e,0x447)]===0x0)return[_0x658768(-0xd0,-0xd2,-_0x379fb6._0x3ef7fd,-_0x379fb6._0x4c6c49),_0x658768(-_0x379fb6._0x2562b8,-_0x379fb6._0x175926,-0x12e,-_0x379fb6._0x58cecd),_0x658768(-_0x379fb6._0x4d3889,_0x379fb6._0x1e6a1b,-0x2a,-_0x379fb6._0x587284)][_0x4a9751(0x48e,0x457,_0x379fb6._0x83373e,_0x379fb6._0x9fe0b6)]('\x0a');const _0x186032=[_0x4a9751(_0x379fb6._0x2626e4,_0x379fb6._0x2527da,_0x379fb6._0x326819,_0x379fb6._0x4cc8ee),_0x4a9751(_0x379fb6._0x4a4636,_0x379fb6._0x303518,_0x379fb6._0x574ff2,0x46a),_0x4a9751(_0x379fb6._0x41e60b,_0x379fb6._0x4e07f8,0x503,_0x379fb6._0x5e7de0),..._0x2138c3['map'](_0x570deb=>_0x570deb[_0x4a9751(0x550,0x4f3,0x55c,0x4c7)]?'-\x20'+_0x570deb[_0x4a9751(0x4b9,0x546,0x52b,0x4d0)]+'\x20'+_0x570deb[_0x4a9751(0x550,0x587,0x55f,0x54b)]+':\x20'+_0x570deb[_0x4a9751(0x508,0x49d,0x4a6,0x572)]:'-\x20'+_0x570deb[_0x658768(-0x157,-0x72,-0xc0,-0xc7)]+':\x20'+_0x570deb[_0x658768(-0xf3,-0x62,-0xef,-0x78)])];return _0x186032[_0x4a9751(_0x379fb6._0x22c563,0x4af,0x497,0x469)]('\x0a');}function createInvokeCommandTool(_0x6cdde5){const _0x25083b={_0x144cc4:0x2e9,_0x1e385f:0x30a,_0x6768b:0x2cf,_0x439f3d:0x236,_0x1ba49e:0x2ce,_0xeb2cb1:0x2c8,_0x10e5b1:0x295,_0x3b9ffc:0x25c,_0x3fcbb3:0x28f,_0x367a29:0x226,_0x2594a8:0x277,_0x5eb880:0x2e5,_0x1975b2:0x3ac,_0x3ac303:0x24b,_0x429ed6:0x2c3,_0x155894:0x23b},_0x3ea06a={_0x3b5f9d:0x24b,_0x5896ab:0x307,_0x3f201b:0x31d,_0x4f4afc:0x309,_0x3be6ae:0x2e9,_0x3a2fef:0x263,_0x303587:0x370,_0xb39370:0x3ac,_0x3b21c7:0x2a6,_0x5e87ae:0x321,_0x5b8778:0x2de,_0x469899:0x34c,_0x5be7e8:0x1b3,_0x12c3af:0x15f,_0x240a46:0x113,_0x512cca:0x1b7,_0x4b461e:0x2c2,_0x195aca:0x2da,_0x38fe3a:0x333,_0x292e55:0x2de,_0x98ae4c:0x31b,_0x560155:0x334,_0x288578:0x315,_0x5eec72:0x2ce,_0x1d92b8:0x2e4},_0x435380={_0x553ee8:0xfa,_0x12b2d6:0x157,_0x44ced7:0xb4},_0x6ce211={_0x16d634:0x125,_0x4dc0f0:0x220},_0x478cc8={_0x556c2d:0x103,_0x11d52f:0x1db};function _0x595237(_0x824086,_0x318bf0,_0x478a20,_0x13d5e4){return _0x44530c(_0x13d5e4,_0x318bf0-0x1d8,_0x478a20-_0x478cc8._0x556c2d,_0x478a20- -_0x478cc8._0x11d52f);}function _0x42a155(_0x5750ea,_0x55d194,_0x5d59ff,_0x578127){return _0x44530c(_0x578127,_0x55d194-_0x6ce211._0x16d634,_0x5d59ff-0x3a,_0x5d59ff- -_0x6ce211._0x4dc0f0);}const _0x4f6b05=new Map(_0x6cdde5[_0x595237(0x2ad,_0x25083b._0x144cc4,_0x25083b._0x1e385f,0x36e)][_0x42a155(_0x25083b._0x6768b,_0x25083b._0x439f3d,0x28d,_0x25083b._0x1ba49e)](_0xe5a983=>[_0xe5a983[_0x42a155(0x27f,0x2b3,0x22a,0x1c7)],_0xe5a983])),_0x3e1c90=buildDescription(_0x6cdde5[_0x595237(_0x25083b._0xeb2cb1,_0x25083b._0x10e5b1,0x30a,0x395)]);return defineTool({'name':_0x595237(_0x25083b._0x3b9ffc,_0x25083b._0x3fcbb3,0x29f,_0x25083b._0x367a29),'description':_0x3e1c90,'inputSchema':{'type':_0x42a155(_0x25083b._0x2594a8,0x364,_0x25083b._0x5eb880,0x2d9),'properties':{'name':{'type':'string'},'args':{'type':_0x595237(0x30f,_0x25083b._0x1975b2,0x325,0x2a7)}},'required':[_0x42a155(_0x25083b._0x3ac303,_0x25083b._0x429ed6,0x22a,_0x25083b._0x155894)]},async *'execute'(_0x21faaa){const _0x1f3c52={_0x2410f4:0x152},_0x420f6c=_0x4f6b05['get'](_0x21faaa[_0xcfe552(0x2de,_0x3ea06a._0x3b5f9d,0x2f5,_0x3ea06a._0x5896ab)]);if(!_0x420f6c){const _0x434306=Array['from'](_0x4f6b05[_0xcfe552(0x36f,0x324,_0x3ea06a._0x3f201b,_0x3ea06a._0x4f4afc)]())[_0xcfe552(0x2b3,0x220,_0x3ea06a._0x3be6ae,_0x3ea06a._0x3a2fef)](',\x20');throw new ToolExecutionError(_0xcfe552(0x337,_0x3ea06a._0x303587,_0x3ea06a._0xb39370,_0x3ea06a._0x3b21c7)+_0x21faaa['name']+_0xcfe552(0x38b,_0x3ea06a._0x5e87ae,0x2f1,0x32e)+_0x434306,{'name':_0x21faaa[_0xcfe552(_0x3ea06a._0x5b8778,0x2ba,0x24e,_0x3ea06a._0x469899)]});}const _0x286b6a=await _0x6cdde5[_0x39572d(_0x3ea06a._0x5be7e8,_0x3ea06a._0x12c3af,0x11d,0xbb)](_0x420f6c),_0x1b993e=_0x21faaa['args']??'',_0x457f1f=renderCommandPrompt(_0x286b6a[_0x39572d(_0x3ea06a._0x240a46,_0x3ea06a._0x512cca,0x13d,0x16d)],_0x286b6a[_0xcfe552(0x2fc,_0x3ea06a._0x4b461e,_0x3ea06a._0x195aca,_0x3ea06a._0x38fe3a)],_0x1b993e);yield createToolOutput(_0x457f1f,{'id':_0x286b6a['id'],'name':_0x286b6a[_0xcfe552(_0x3ea06a._0x292e55,_0x3ea06a._0x98ae4c,0x33b,_0x3ea06a._0x560155)],'path':_0x420f6c[_0xcfe552(0x29d,_0x3ea06a._0x288578,_0x3ea06a._0x5eec72,0x247)][_0xcfe552(0x2d7,0x251,0x2e8,_0x3ea06a._0x1d92b8)]});function _0xcfe552(_0x265301,_0xf63813,_0x954b08,_0x5c506c){return _0x42a155(_0x265301-_0x435380._0x553ee8,_0xf63813-_0x435380._0x12b2d6,_0x265301-_0x435380._0x44ced7,_0xf63813);}function _0x39572d(_0xc4dd3e,_0x123a21,_0x4496f3,_0x262ad2){return _0x42a155(_0xc4dd3e-0xd7,_0x123a21-0xa1,_0x4496f3- -_0x1f3c52._0x2410f4,_0x123a21);}return void 0x0;}});}import{createHash}from'crypto';import{readFile,rename,stat as _0xa29099,writeFile}from'fs/promises';import*as _0x5afd85 from'path';import{stat}from'fs/promises';import*as _0x31f93b from'path';function _0x4186(){const _0x48f90c=['rMLSzu5LDW','B25Jzq','zgvZy3jPChrPB24','twLJCM9ZB2z0','ls1YzwDLEha','CMLWz3jLCcbMywLSzwq6ia','zMfPBgvK','C2vYDMvYCW','l3vZCI9IAw4VCMC','lNrTCc4','zgvMyxvSDen3za','oduZmZG4nfLkAujzBG','q29TBwfUzcaN','r3jLCa','C2HPzNq','ywXSB3DLzfrVB2XZ','l3vZCI9IAw4VyMfZAa','zgvSzwDHDgvKlxj1BI0','Dg9VBa','C3rVCMfNzurPCG','D2HPy2GGCMC','Dg9VBfjLC3vSDhm','BwfW','ignVBxbSzxrLzc4','Aw5ZDhj1y3rPB25Z','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','y2XVC2u','mc4WlJa','C2vZC2LVBKLK','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','AxndB250zxH0','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','CMvZDwX0','CMvHC29U','C2vYDMvYtMfTzq','q29Tu3bLyW','ChjVCgvYDgLLCW','rMLSzuvKAxq','yxv0Aa','qxnZAwDUvgfZAW','Dg9VBhmVy2fSBa','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','ywDLBNrjza','qxv0Ag9YAxPHDgLVBG','xg5DkJ8','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','lw5i','ugf0AcbPCYbUB3qGysbMAwXLoIa','C2vUza','qMvHCMvYia','l2jPBI9ZAa','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','DxjS','C3rYAw5NAwz5','mZa3mJm0CgDWA293','C3jJl3nOyxjLzc90ExbLCY50CW','Bg9HzfnRAwXS','Dhj1BMm','zxHPDcbJB2rLia','CgfJA2fNzs5QC29U','u2TPBgWGjW','BwvZC2fNzq','Dg9VBenHBgXjza','ndi2nZC0ogjfs3rcqq','rMLSzsb3CML0DgvUigf0ia','A2v5CW','BNvTyMvY','B25szwrPCMvJDa','qMfZAa','yMfZzw5HBwu','yxjNCW','yxjNDw1LBNriAw50','lMPZB24','AxneAxjLy3rVCNK','C3bSAxq','y29TBwfUzhm','DhjPBq','Dg9VBhm','zMLSzvbHDgG','DhLWzq','y2fSBgjHy2TvCMW','l3vZCI9SB2nHBc9IAw4VCMC','AxrLBxm','y29UzMLN','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLigzPBguGy29UDgvUDhmU','B2XKvgv4Da','Ahr0Ca','ywDLBNrZ','zw52','ls1MB2XSB3C','CgXHDgzVCM0','tM8GC3vJAcbMAwXLoIaN','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','BgLZDfrVB2XZ','Dg9Rzw5Z','mtyWtxzwr1DA','Aw5JBhvKzq','CMvXDwLYzwq','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','zNjVBq','CMvSyxrPDMu','C3rYAw5N','BwLU','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','B2f1DgG','ru5pru5u','B2jQzwn0','ls1NBg9IpseUz2L0lYO','zMLUywXnzxnZywDL','y29UC3rYDwn0B3i','zw50CMLLCW','AwDUB3jL','zgLZywjSzwq','y2XPzw50twv0ywrHDgfvCMW','yM9VBgvHBG','C2vYDMvY','C29YDa','n2LtB3DNvq','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','yMLYDgH0Aw1L','Aw5KzxHpzG','AxnbCNjHEq','tunqihnLCNzLCIa','y2f0y2G','BxrPBwvnCW','AgvHzgvYCW','CMvXDwvZDa','ndG0nJvrrurvChC','BNv2Aw4','DhjHBNnWB3j0','zgLYBMfTzq','CMvZB2X2zq','y29UBMvJDa','wZ0+nY04kcLD','y29UDgvUDa','Bg9JywXLq29TCgfYzq','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','BwnWxW','CNvUswq','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','AxnbyNnVBhv0zq','AxnfCNjVCG','C2nVCgvZ','y2XPzw50','y29TBwfUza','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','qMfZzsbKAxjLy3rVCNK6ia','Bwf4','Dg9Rzw5tDg9YywDLs2v5','ls1MAwXLCW','ls1OAwrKzw4','BgLUzvn0yxj0','yxnZAwDU','BMv3vgv4Da','zgf0yq','CMfUzg9T','Dg9Rzw4','zgLZy292zxj5','Cgf0DgvYBIbPCYbYzxf1AxjLza','A2LSBa','y29UBMvJDgLVBG','D2HLCMuGCMC','ig1HDgnO','ihDHCYbHyM9YDgvKlG','u0Lhs0Lmta','Aw50zwDLCG','C291CMnL','mZaZmJu0t25lvxvd','l2jPBI9YzW','Aw5WDxrty2HLBwe','C3rKzxjY','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','zgLNzxn0','v2LUr2v0','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','y29UBMvJDgvK','rMLUzcb3B3jRC3bHy2uGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','o1TExg5DkJ8','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','DgfZAW','yMvHCMvY','y2HHCKnVzgvbDa','vw5HDxrOB3jPEMvKrxjYB3i','y2fSBfrVB2W','C2HHmJu2','ls1NBg9I','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','AM9PBG','D2LUmZi','Aw5WDxq','tNv2Aw4','tgLUzsa','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','zgLYzwn0B3j5','D3jPDgu','ywXS','ugf0AcbPCYbVDxrZAwrLihDVCMTZCgfJztOG','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','uhjVz3jHBuzPBgvZkhG4nIK','qxzHAwXHyMXLignVBw1HBMrZoG','C3rKB3v0','y29Kzq','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','B2zM','AxngAw5PDgu','AxngAwXL','B3v0Chv0','rwrPDcbHifvurI04ihrLEhqGzMLSzsbIEsbYzxbSywnPBMCGDgHLigzPCNn0igv4ywn0ihrLEhqGC2vNBwvUDc4','BgLUzvrLEhq','C3jJl2fNzw50l2fNzw50lNrZ','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','DgvZDa','DMvYAwzPzxi','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','yxv0Ag9YAxPHDgLVBL9JB2rL','igzYB20G','yxjYyxK','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','BxrPBwu','Cgf0Aa','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLlG','r2XVyG','zxjYB3i','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','y3jSzG','zMLSDgvY','BMfTzq','m21SAxvRwq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','B3jPz2LUvg9VBenHBgXjza','lI4U','l2jPBI9IyxnO','C2LNBMfS','BgLTAxq','ChjLzML4','C3rHDgu','CNvUBMLUzW','y3DK','Bw9Kzq','Bwf0y2HLCW','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','ugf0AcbUB3qGzM91BMq6ia','BgvUz3rO','zw5K','C2XPy2u','Dg9ju09tDhjPBMC','CgLK','C2TPBgXZ','CgfYC2vjBNq','CMvWBgfJzq','zgLZy292zxj5u3rHDgu','Dgv4Da','CgLWzq','ywjVCNrLza','BM93','cGPbuKDvtuvovfm6ia','yxjNDw1LBNrZ','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','u3rHCNrLzcbHz2vUDcbYDw4G','C2v0','C3rHDhvZ','zw5HyMXLza','DhjPBuvUza','ls0T','zxjYB3jnzxnZywDL','mte3mZy2ngXsBLzZDW','tunqihrVB2WG','CMvMCMvZAf90B2TLBG','BgLUzuvUza','rMLSzvjLywq','Dg9tDhjPBMC','tg9HzgvKigzYB206ia','igzHAwXLzc4','w1bFxL1BxhnCu10QpW','sw52B2TLq29TBwfUza','u2HLBgWGBM90igzVDw5KoIa','lu5VuhjVzMLSzq','y29KzvzLCMLMAwvY','y29UDgv4Da','zMLSzq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','y21KlMv4zq','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','ig1Z','z2v0','ntaWnJG4nuzurwXOBa','DxrMoa','zhj5uNvU','DxbKyxrL','ChvZAa','CMCUzxHL','y2XPzw50sw5MB3jTyxrPB24','C3rYAxbbBNnP','C3LTBgLUAW','CMLWz3jLCa','Bg9HzenVBw1HBMq','AwDUB3jLt3v0Chv0','Cgf0DgvYBG','Agv4','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','C2L6zq','z2XVyG'];_0x4186=function(){return _0x48f90c;};return _0x4186();}function resolveWorkspacePath(_0x4fb237,_0x373ad8){const _0x250845={_0x75a60a:0x3b5,_0x5f0c7b:0x351,_0x5a2858:0x2fe,_0x37ec79:0x338,_0x3f9e3f:0x2ef,_0x294dfc:0x343,_0x242e00:0x2f2},_0x569ff6={_0x45de4f:0x123,_0x5885ab:0xbd,_0x10b765:0x120},_0x23bd77={_0x24c58b:0x5b},_0x44bceb=_0x31f93b[_0x157155(_0x250845._0x75a60a,0x429,_0x250845._0x5f0c7b,0x333)](_0x4fb237),_0x5ca260=_0x31f93b[_0x1858d3(0x37c,0x3d2,0x2a1,0x33a)](_0x44bceb,_0x373ad8);function _0x1858d3(_0x5d44d2,_0x38103e,_0x397366,_0x326a1d){return _0x44530c(_0x38103e,_0x38103e-_0x23bd77._0x24c58b,_0x397366-0x6b,_0x326a1d- -0x1e4);}const _0x2f5136=_0x31f93b[_0x157155(0x396,0x376,_0x250845._0x5a2858,0x40b)](_0x44bceb,_0x5ca260);function _0x157155(_0x119dc0,_0x1f5c9f,_0x4e0653,_0x52bd1a){return _0x452c58(_0x119dc0-_0x569ff6._0x45de4f,_0x1f5c9f,_0x4e0653-_0x569ff6._0x5885ab,_0x52bd1a-_0x569ff6._0x10b765);}if(_0x2f5136===''||!_0x2f5136['startsWith']('..')&&!_0x31f93b[_0x1858d3(_0x250845._0x37ec79,0x2fc,_0x250845._0x3f9e3f,_0x250845._0x294dfc)](_0x2f5136))return _0x5ca260;throw new ToolExecutionError(_0x157155(0x2c0,0x34a,0x257,_0x250845._0x242e00)+_0x373ad8,{'path':_0x373ad8,'rootDir':_0x44bceb});}async function assertWorkspaceFile(_0x430b4b){const _0xda8109={_0xe42ab1:0x282,_0x34e98c:0x2a7},_0x4f4b6e={_0x3fdc01:0x128};function _0x4b2c38(_0x1d8ca0,_0x5af609,_0x4e0963,_0x14b6bb){return _0x44530c(_0x1d8ca0,_0x5af609-0x6e,_0x4e0963-_0x4f4b6e._0x3fdc01,_0x4e0963- -0x247);}const _0x349182=await stat(_0x430b4b);if(!_0x349182['isFile']())throw new ToolExecutionError(_0x4b2c38(0x1e6,0x1e6,_0xda8109._0xe42ab1,_0xda8109._0x34e98c)+_0x430b4b,{'path':_0x430b4b});}function isProbablyBinary(_0x332eb8){return _0x332eb8['includes'](0x0);}function detectEol(_0x2687fd){const _0x2f83e8={_0xc508d9:0x158,_0x11765e:0x205,_0x5caceb:0x497,_0x5b8954:0x40c,_0x38e121:0x4a4,_0x3a19f8:0x1f1,_0x35d9fc:0x3de,_0x272063:0x412},_0x150a08={_0x46b0bd:0x10a};function _0x40a47b(_0x23d735,_0x26d96b,_0x119041,_0x574b43){return _0x452c58(_0x26d96b- -0x9,_0x574b43,_0x119041-0xdc,_0x574b43-_0x150a08._0x46b0bd);}function _0x49aa81(_0x5dcf16,_0x3dcd62,_0x244c69,_0x2d71db){return _0x452c58(_0x244c69-0x2ba,_0x5dcf16,_0x244c69-0xad,_0x2d71db-0x48);}return/\r\n/[_0x40a47b(_0x2f83e8._0xc508d9,0x1a4,_0x2f83e8._0x11765e,0x187)](_0x2687fd[_0x49aa81(_0x2f83e8._0x5caceb,_0x2f83e8._0x5b8954,_0x2f83e8._0x38e121,0x4aa)](_0x40a47b(0x183,_0x2f83e8._0x3a19f8,0x21e,0x217)))?_0x49aa81(_0x2f83e8._0x35d9fc,_0x2f83e8._0x272063,0x476,0x501):'lf';}function normalizeToLf(_0x2c7b9c){const _0x3ca612={_0x418a84:0x2f2,_0x1e586a:0x365,_0x90094d:0x332},_0x451595={_0x3e1c34:0x93,_0x135558:0x12f};function _0x3ff5f7(_0x4d9a52,_0x1bd8d3,_0x144baf,_0x3b768a){return _0x44530c(_0x4d9a52,_0x1bd8d3-0xf9,_0x144baf-_0x451595._0x3e1c34,_0x3b768a- -_0x451595._0x135558);}return _0x2c7b9c[_0x3ff5f7(0x3b7,_0x3ca612._0x418a84,_0x3ca612._0x1e586a,_0x3ca612._0x90094d)](/\r\n/g,'\x0a');}function convertEol(_0xa2c506,_0x63f7f7){const _0x39d88f={_0x4e41a7:0x47f,_0x3a207c:0x45d,_0x371d08:0x449,_0x34637c:0x49b},_0x4b9663={_0x1c6a38:0x6f},_0x474337={_0x2307f7:0x167,_0xef2b3a:0x157,_0xde14ee:0x3a};function _0x54b509(_0x2bd70d,_0x415926,_0x306ca4,_0x136182){return _0x44530c(_0x2bd70d,_0x415926-_0x474337._0x2307f7,_0x306ca4-_0x474337._0xef2b3a,_0x415926-_0x474337._0xde14ee);}function _0xfc0df9(_0x3b7376,_0x61ee22,_0x4795b2,_0x2c2c1e){return _0x44530c(_0x61ee22,_0x61ee22-0xe,_0x4795b2-_0x4b9663._0x1c6a38,_0x2c2c1e- -0x1b6);}return _0x63f7f7===_0x54b509(_0x39d88f._0x4e41a7,0x482,_0x39d88f._0x3a207c,0x4b0)?_0xa2c506[_0x54b509(_0x39d88f._0x371d08,_0x39d88f._0x34637c,0x518,0x52d)](/\n/g,'\x0d\x0a'):_0xa2c506;}async function atomicWrite(_0x2d5ae3,_0x4bbb9f){const _0xca5519={_0x17fa08:0x105,_0x3a28ec:0xdb,_0x3ae6d2:0x1e8,_0x823d22:0x204,_0x237d52:0x1bd,_0x419573:0x2cc,_0x46b2e6:0x2c4,_0x13d5f0:0x161,_0x253c3d:0x1f7,_0x4f603e:0x2ac,_0x39ff05:0x25b,_0x3c6ca2:0x1fa,_0x5f50e8:0x179,_0xa64e26:0x19c},_0x530c10={_0x17d5f0:0x71,_0x155f87:0x1c2,_0xaf8358:0xe8},_0x77ecce={_0x2821d8:0x184,_0x31c8af:0x5f8},_0xff6baa=_0x5afd85[_0x3b1065(-0x7b,-_0xca5519._0x17fa08,-0x14a,-_0xca5519._0x3a28ec)](_0x2d5ae3);function _0x3b1065(_0x2bb880,_0x28626b,_0x91d912,_0xd2623e){return _0x44530c(_0x2bb880,_0x28626b-_0x77ecce._0x2821d8,_0x91d912-0x179,_0xd2623e- -_0x77ecce._0x31c8af);}const _0x48d884=_0x5afd85[_0x426fde(_0xca5519._0x3ae6d2,_0xca5519._0x823d22,0x241,_0xca5519._0x237d52)](_0xff6baa,'.tmp.'+_0x5afd85[_0x426fde(_0xca5519._0x419573,_0xca5519._0x46b2e6,0x314,0x2dd)](_0x2d5ae3)+'.'+Date[_0x426fde(0x2df,0x24b,0x21d,0x1ff)]()+'.'+Math[_0x3b1065(-_0xca5519._0x13d5f0,-_0xca5519._0x253c3d,-0x26b,-0x1fa)]()[_0x426fde(_0xca5519._0x4f603e,_0xca5519._0x39ff05,0x2d3,_0xca5519._0x3c6ca2)](0x24)[_0x3b1065(-_0xca5519._0x5f50e8,-0x179,-0x135,-_0xca5519._0xa64e26)](0x2));function _0x426fde(_0xbcfb53,_0x385f6b,_0x4b8033,_0x3f08c2){return _0x452c58(_0x385f6b-_0x530c10._0x17d5f0,_0x4b8033,_0x4b8033-_0x530c10._0x155f87,_0x3f08c2-_0x530c10._0xaf8358);}await writeFile(_0x48d884,_0x4bbb9f),await rename(_0x48d884,_0x2d5ae3);}function sha256(_0x2016b9){const _0x510782={_0x37fa40:0x1e6,_0x2838bd:0x183,_0x4f46ca:0x1c8,_0x57aa2b:0x1bf,_0x87bd7f:0x236},_0x262323={_0x30ed04:0xf1,_0xa972b7:0x59f},_0x219ad4={_0x439be2:0x71,_0x51191f:0x1c1};function _0x2ba2c6(_0x41caa3,_0x57d5c5,_0x174302,_0x18bb43){return _0x452c58(_0x174302-_0x219ad4._0x439be2,_0x57d5c5,_0x174302-_0x219ad4._0x51191f,_0x18bb43-0xd1);}function _0x21e173(_0x10005d,_0x276962,_0xd4c0d5,_0x3820ff){return _0x44530c(_0x276962,_0x276962-_0x262323._0x30ed04,_0xd4c0d5-0xb,_0x3820ff- -_0x262323._0xa972b7);}return createHash(_0x21e173(-0xf9,-_0x510782._0x37fa40,-0x215,-_0x510782._0x2838bd))[_0x2ba2c6(0x284,0x27b,0x26d,0x2f8)](_0x2016b9)[_0x21e173(-0x14e,-_0x510782._0x4f46ca,-_0x510782._0x57aa2b,-0x18f)](_0x2ba2c6(0x27f,_0x510782._0x87bd7f,0x277,0x2bf));}function countLines(_0x152e61){const _0x3f30cf={_0x2c1945:0x472,_0x454354:0x4a8,_0x167842:0x432,_0x214283:0x446,_0x244530:0x46b,_0x4b8a53:0x4f7,_0x1fe49d:0x4f5,_0x3fdc7b:0x48b,_0x9a3662:0x556,_0x416470:0x58b,_0x5b33e0:0x5d6},_0x450c03={_0x364a85:0x19e,_0x100a40:0x135,_0x1efcb6:0x11};function _0xd0010b(_0x2bd92a,_0x12ab61,_0x10d7bf,_0x44a5c7){return _0x44530c(_0x10d7bf,_0x12ab61-0xdf,_0x10d7bf-0x118,_0x12ab61-0xfc);}const _0x47c2cb=_0x152e61[_0x22fb2d(0x45c,_0x3f30cf._0x2c1945,_0x3f30cf._0x454354,_0x3f30cf._0x167842)](/\n$/,'');function _0x22fb2d(_0x13deb8,_0x374831,_0x2e5e78,_0x14a1ab){return _0x44530c(_0x14a1ab,_0x374831-_0x450c03._0x364a85,_0x2e5e78-_0x450c03._0x100a40,_0x374831-_0x450c03._0x1efcb6);}return _0x47c2cb[_0x22fb2d(_0x3f30cf._0x214283,_0x3f30cf._0x244530,0x40c,0x41b)]===0x0?0x0:_0x47c2cb[_0x22fb2d(_0x3f30cf._0x4b8a53,_0x3f30cf._0x1fe49d,_0x3f30cf._0x3fdc7b,0x571)]('\x0a')[_0xd0010b(0x5c1,_0x3f30cf._0x9a3662,_0x3f30cf._0x416470,_0x3f30cf._0x5b33e0)];}function calculateLineNumbers(_0xfe905f,_0x5a415d,_0x4324d6,_0x4b2164){const _0x1a9a0a={_0x5f257a:0x4fb,_0x564c63:0x554,_0x4076c5:0x4f9,_0x5e1d74:0x4c9,_0x85c2d:0x468},_0x439be6={_0x1abf7e:0x10c,_0x1599dc:0xd9},_0x2321da={_0x101a89:0xb0,_0x27606c:0x1},_0x46500c=_0xfe905f[_0x5b8f29(_0x1a9a0a._0x5f257a,_0x1a9a0a._0x564c63,0x52d,0x49c)](0x0,_0x4b2164)[_0x5b8f29(0x583,0x612,0x585,0x558)]('\x0a')[_0x5b8f29(_0x1a9a0a._0x4076c5,0x527,_0x1a9a0a._0x5e1d74,_0x1a9a0a._0x85c2d)];function _0x1e801f(_0x5b2492,_0x466af9,_0x20390c,_0x39b9d2){return _0x452c58(_0x466af9-_0x2321da._0x101a89,_0x39b9d2,_0x20390c-0x128,_0x39b9d2-_0x2321da._0x27606c);}function _0x5b8f29(_0x1a6940,_0x1183d8,_0x2eca07,_0x405333){return _0x452c58(_0x1a6940-0x32b,_0x2eca07,_0x2eca07-_0x439be6._0x1abf7e,_0x405333-_0x439be6._0x1599dc);}const _0x5e1c5b=countLines(_0x5a415d),_0x5131f1=countLines(_0x4324d6);return{'oldStartLine':_0x46500c,'oldEndLine':_0x46500c+_0x5e1c5b-0x1,'newStartLine':_0x46500c,'newEndLine':_0x46500c+_0x5131f1-0x1,'oldLineCount':_0x5e1c5b,'newLineCount':_0x5131f1};}function createFileEditTool(_0x1d7c37={}){const _0x2634fd={_0x38bbc2:0x4c5,_0x358f66:0x4c4,_0x27b8dd:0x403,_0x3f4973:0x3d8,_0x2a445e:0x3df,_0x127d21:0x4e2,_0x5f7ce8:0x347,_0x2eea58:0x4b3,_0x4527b6:0x45c,_0x11f881:0x459,_0x333126:0x4b0,_0x8690c8:0x440,_0x432a3a:0x4d4,_0x19cc33:0x531,_0xa79ad9:0x534,_0x50396e:0x4f2,_0x2594bb:0x50c,_0x5b58ff:0x514,_0x273dfe:0x47f,_0x19ad10:0x488},_0x2fa5ab={_0x3630c5:0x97,_0x532396:0x18,_0x4275c2:0x42,_0x3b782a:0x59,_0x47833c:0x5e,_0x389718:0x19,_0x22b784:0x1d,_0xa1ce92:0xa5,_0x39cb0b:0x7f,_0x23ec4f:0xb4,_0x2ab311:0x9d,_0x3eebb7:0xc,_0x3e6b59:0x76,_0x3c93e7:0x25,_0x46a718:0xd3,_0x567618:0xc5,_0x4105a0:0xdb,_0xe40746:0x7b,_0x531f94:0x50,_0x4846f1:0xc2,_0x16611a:0x7d,_0x1eecaf:0x5,_0x167ab2:0xad,_0x4af99b:0x19,_0x1c6663:0x5f,_0x2ee7eb:0xc,_0x6b6365:0x57,_0x2f1093:0x33,_0x53f219:0x38,_0x5db998:0x72,_0xe99836:0x44,_0x4d5d2e:0x11,_0x22582d:0x38,_0x12c3b6:0x11,_0x50c31f:0x14,_0x133e25:0x14,_0x135a66:0x9,_0x3e8aef:0x47,_0x27420e:0x2,_0x464ba1:0x95,_0x12172d:0x28,_0x470022:0x7a,_0x22d36e:0x56,_0x467e5b:0xc8,_0x47d643:0x10e,_0x343e63:0xf7,_0x3caa39:0x5,_0x2c1fbc:0x3},_0x2e5c32={_0x485a01:0xb,_0x3d1ac5:0xbe},_0x50060b={_0x5bb165:0xe2},_0x3d01af=_0x5afd85['resolve'](_0x1d7c37[_0x2f2937(_0x2634fd._0x38bbc2,0x473,0x525,_0x2634fd._0x358f66)]??process[_0x1ef4f2(_0x2634fd._0x27b8dd,_0x2634fd._0x3f4973,_0x2634fd._0x2a445e,0x412)]());function _0x1ef4f2(_0x463cf9,_0x42008c,_0x222274,_0x462d27){return _0x452c58(_0x463cf9-0x23a,_0x462d27,_0x222274-0x1ac,_0x462d27-0x1ae);}const _0x1824cf=_0x1d7c37['name']??_0x2f2937(_0x2634fd._0x127d21,0x4e6,0x4fb,0x529);function _0x2f2937(_0x113e8d,_0x1bf603,_0x13014a,_0x558c67){return _0x44530c(_0x1bf603,_0x1bf603-_0x50060b._0x5bb165,_0x13014a-0x3b,_0x113e8d-0x24);}return defineTool({'name':_0x1824cf,'description':_0x1ef4f2(0x3e3,_0x2634fd._0x5f7ce8,0x34e,0x34c),'inputSchema':{'type':_0x1ef4f2(_0x2634fd._0x2eea58,_0x2634fd._0x4527b6,_0x2634fd._0x11f881,0x4d0),'properties':{'filePath':{'type':'string'},'oldText':{'type':_0x1ef4f2(0x4ae,0x4bd,_0x2634fd._0x333126,_0x2634fd._0x8690c8)},'newText':{'type':_0x1ef4f2(0x4ae,0x45c,0x41a,_0x2634fd._0x432a3a)},'dryRun':{'type':_0x2f2937(_0x2634fd._0x19cc33,_0x2634fd._0xa79ad9,0x59b,_0x2634fd._0x50396e)}},'required':[_0x2f2937(_0x2634fd._0x2594bb,0x489,0x509,0x593),_0x2f2937(_0x2634fd._0x5b58ff,0x4da,_0x2634fd._0x273dfe,0x56d),_0x1ef4f2(0x4e2,_0x2634fd._0x19ad10,0x453,0x45e)]},async *'execute'(_0x1dbcb6){const _0x57d053={_0x2a9c5f:0x1ec},_0xdc8a6b=resolveWorkspacePath(_0x3d01af,_0x1dbcb6[_0x203120(_0x2fa5ab._0x3630c5,0x59,-0x6c,0x11)]);await assertWorkspaceFile(_0xdc8a6b);const _0x5ee89b=await _0xa29099(_0xdc8a6b);function _0x2e128f(_0x389c5c,_0xc339ee,_0x185280,_0x3a1753){return _0x1ef4f2(_0x389c5c- -0x41c,_0xc339ee-_0x57d053._0x2a9c5f,_0x185280-0x121,_0xc339ee);}const _0x852dce=await readFile(_0xdc8a6b),_0x31b189=detectEol(_0x852dce),_0x4928f0=normalizeToLf(_0x852dce['toString'](_0x2e128f(_0x2fa5ab._0x532396,_0x2fa5ab._0x4275c2,-_0x2fa5ab._0x3b782a,_0x2fa5ab._0x47833c))),_0x4b19e0=normalizeToLf(_0x1dbcb6[_0x203120(-0x5,0x7f,-0x68,_0x2fa5ab._0x389718)]),_0x4eb54d=normalizeToLf(_0x1dbcb6[_0x203120(0xa3,-_0x2fa5ab._0x22b784,0xaa,0x5d)]),_0x31d9cb=_0x4928f0[_0x2e128f(_0x2fa5ab._0xa1ce92,_0x2fa5ab._0x39cb0b,0x11f,_0x2fa5ab._0x23ec4f)](_0x4b19e0);if(_0x31d9cb===-0x1){const _0x577a93=_0x4b19e0['slice'](0x0,0x64)[_0x203120(-0xd0,-_0x2fa5ab._0x2ab311,-_0x2fa5ab._0x3eebb7,-_0x2fa5ab._0x3e6b59)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x203120(_0x2fa5ab._0x3c93e7,-0xa2,-0x6f,-0x44)+_0x577a93+(_0x4b19e0[_0x2e128f(-0x14,-0x2e,0x5b,-0x69)]>0x64?_0x203120(-_0x2fa5ab._0x46a718,-0x3f,-_0x2fa5ab._0x567618,-0x89):'')+'\x22',{'filePath':_0x1dbcb6['filePath']});}const _0x33908b=_0x4928f0['slice'](0x0,_0x31d9cb)+_0x4eb54d+_0x4928f0[_0x203120(-0x69,-0xa9,-_0x2fa5ab._0x4105a0,-_0x2fa5ab._0xe40746)](_0x31d9cb+_0x4b19e0[_0x203120(-_0x2fa5ab._0x531f94,-_0x2fa5ab._0x4846f1,-0x58,-_0x2fa5ab._0x16611a)]),_0x1d2757=convertEol(_0x33908b,_0x31b189),_0x5a907f=Buffer[_0x203120(-0x50,0x65,_0x2fa5ab._0x1eecaf,0x27)](_0x1d2757,_0x203120(-_0x2fa5ab._0x167ab2,-0xaa,-0xb4,-0x51)),_0x18107e=sha256(_0x852dce),_0x17b81b=sha256(_0x5a907f),_0x12bbb4=_0x18107e===_0x17b81b,_0x4ad754=_0x1dbcb6[_0x2e128f(_0x2fa5ab._0x4af99b,0x59,0x75,0x3b)]??![];function _0x203120(_0x111168,_0x2e46b9,_0x2758b9,_0x31f198){return _0x1ef4f2(_0x31f198- -0x485,_0x2e46b9-_0x2e5c32._0x485a01,_0x2758b9-_0x2e5c32._0x3d1ac5,_0x2e46b9);}return!_0x4ad754&&!_0x12bbb4&&await atomicWrite(_0xdc8a6b,_0x5a907f),yield createToolOutput(_0x12bbb4?_0x203120(-_0x2fa5ab._0x1c6663,-_0x2fa5ab._0x2ee7eb,-0x37,-_0x2fa5ab._0x6b6365):_0x4ad754?_0x2e128f(_0x2fa5ab._0x3b782a,0xc5,-0x1b,-0x36):_0x2e128f(-_0x2fa5ab._0x2f1093,_0x2fa5ab._0x53f219,-_0x2fa5ab._0x5db998,0x3a),{'filePath':_0x1dbcb6[_0x203120(_0x2fa5ab._0xe99836,-0x74,-0x69,_0x2fa5ab._0x4d5d2e)],'resolvedPath':_0xdc8a6b,'created':_0x5ee89b[_0x2e128f(0xa4,0x5e,0xad,_0x2fa5ab._0x22582d)][_0x2e128f(-_0x2fa5ab._0x12c3b6,_0x2fa5ab._0x50c31f,_0x2fa5ab._0x133e25,_0x2fa5ab._0x135a66)](),'modified':_0x5ee89b[_0x203120(-_0x2fa5ab._0x3e8aef,-_0x2fa5ab._0x27420e,-0x12e,-_0x2fa5ab._0x464ba1)][_0x2e128f(-0x11,_0x2fa5ab._0x12172d,_0x2fa5ab._0x470022,0x89)](),'size':_0x5ee89b['size'],'eol':_0x31b189,'oldTextLength':_0x4b19e0[_0x203120(-_0x2fa5ab._0x22d36e,-_0x2fa5ab._0x467e5b,-_0x2fa5ab._0x47d643,-_0x2fa5ab._0x16611a)],'newTextLength':_0x4eb54d[_0x203120(-_0x2fa5ab._0x343e63,-0xc8,-0xce,-0x7d)],'bytesWritten':_0x12bbb4||_0x4ad754?0x0:_0x5a907f[_0x2e128f(-0x14,_0x2fa5ab._0x3caa39,_0x2fa5ab._0x2c1fbc,-0xaf)],'beforeSha':_0x18107e,'afterSha':_0x17b81b,'dryRun':_0x4ad754,'noChange':_0x12bbb4,'lineNumbers':calculateLineNumbers(_0x4928f0,_0x4b19e0,_0x4eb54d,_0x31d9cb)}),void 0x0;}});}import{mkdir,rename as _0x53289c,stat as _0x516c80,writeFile as _0x4483b2}from'fs/promises';function _0x452c58(_0x2ab9ef,_0x363324,_0x15a04a,_0x399021){const _0x5f06b3={_0x28bf0e:0x8};return _0x5314(_0x2ab9ef- -_0x5f06b3._0x28bf0e,_0x363324);}import*as _0x1fc5ca from'path';async function atomicWrite2(_0x1c9720,_0x45b882){const _0x29a3da={_0x5e763f:0x65d,_0x32ead8:0x387,_0x1f001c:0x3be,_0x305974:0x32c,_0x1a193f:0x2d4,_0x395fa4:0x3fb,_0x480008:0x36b,_0x38aad8:0x2f7,_0x3bb99f:0x2b6},_0x44b94e={_0x5beeba:0x96},_0x3f839b={_0x242c4c:0x3cc};function _0x39d14b(_0x5dddc8,_0x358a13,_0x5665ab,_0x5c5c35){return _0x452c58(_0x358a13-_0x3f839b._0x242c4c,_0x5dddc8,_0x5665ab-0x194,_0x5c5c35-0x185);}const _0xdde73c=_0x1fc5ca[_0x39d14b(0x674,_0x29a3da._0x5e763f,0x658,0x613)](_0x1c9720);await mkdir(_0xdde73c,{'recursive':!![]});const _0x539918=_0x1fc5ca['join'](_0xdde73c,_0x102478(_0x29a3da._0x32ead8,_0x29a3da._0x1f001c,0x368,_0x29a3da._0x305974)+_0x1fc5ca[_0x102478(_0x29a3da._0x1a193f,_0x29a3da._0x395fa4,0x2fd,_0x29a3da._0x480008)](_0x1c9720)+'.'+Date['now']()+'.'+Math['random']()['toString'](0x24)[_0x102478(0x24e,_0x29a3da._0x38aad8,_0x29a3da._0x3bb99f,0x2e8)](0x2));await _0x4483b2(_0x539918,_0x45b882);function _0x102478(_0x26b0ec,_0x5b4a6b,_0x488a49,_0x51b375){return _0x44530c(_0x488a49,_0x5b4a6b-_0x44b94e._0x5beeba,_0x488a49-0xe9,_0x51b375- -0x174);}await _0x53289c(_0x539918,_0x1c9720);}function createFileNewTool(_0x5e9c5d={}){const _0x434b0b={_0xb9be47:0x77,_0x1e52b4:0x77,_0x4262cc:0xf0,_0x59cb32:0x54,_0x219b49:0x1a,_0x535fb2:0x112,_0x34c34b:0xc1,_0x58c181:0xd3,_0x79ef7e:0x45,_0x45f57d:0x369,_0x43665c:0x2d1,_0x5f1acf:0x3a0,_0x3061b7:0x3ea},_0x32ec5d={_0x496474:0x182,_0x29fcd3:0xee,_0x4c0afc:0xdf,_0x19a68d:0x6a,_0x3b2a86:0x12c,_0x2f3959:0xfb,_0x4c251a:0xe2,_0x4bb93b:0x5c5,_0x3f8800:0x529,_0x4d4083:0x598,_0x3582ab:0x55e,_0x3872ee:0xb3,_0x2f9206:0x83,_0x27f81f:0xa9,_0x319f8a:0xd7,_0x38a1b6:0x160,_0x5cc8a2:0x4f7,_0xf11f0c:0x53a,_0x49a246:0x501,_0x3d0af7:0x45e,_0x31c146:0x54f,_0x570413:0x596,_0xc265f1:0x73,_0xd295a:0xe1,_0x59bc30:0xb9};function _0xda87e6(_0x173cec,_0x27a479,_0x13e61e,_0x47f7ce){return _0x44530c(_0x47f7ce,_0x27a479-0x24,_0x13e61e-0x1ca,_0x13e61e- -0x545);}const _0x3d3be6=_0x1fc5ca[_0x48e5a7(0x388,0x39f,0x32e,0x349)](_0x5e9c5d['defaultCwd']??process[_0xda87e6(-_0x434b0b._0xb9be47,-_0x434b0b._0x1e52b4,-_0x434b0b._0x4262cc,-_0x434b0b._0x59cb32)]());function _0x48e5a7(_0x23f22f,_0x28eff8,_0x57fa0a,_0x479b90){return _0x452c58(_0x28eff8-0x10d,_0x479b90,_0x57fa0a-0x77,_0x479b90-0x5);}const _0x400f3a=_0x5e9c5d['name']??_0xda87e6(-0x76,-_0x434b0b._0x219b49,-0xae,-_0x434b0b._0x535fb2);return defineTool({'name':_0x400f3a,'description':_0xda87e6(-0x135,-_0x434b0b._0x34c34b,-0x101,-0x7b),'inputSchema':{'type':'object','properties':{'filePath':{'type':_0xda87e6(0x49,-_0x434b0b._0x58c181,-_0x434b0b._0x79ef7e,-0x4b)},'content':{'type':'string'}},'required':[_0x48e5a7(0x3ad,_0x434b0b._0x45f57d,0x37c,_0x434b0b._0x43665c),_0x48e5a7(_0x434b0b._0x5f1acf,0x3a2,_0x434b0b._0x3061b7,0x343)]},async *'execute'(_0x1379ed){const _0x1b2be4={_0x34ee55:0x8f,_0x51f989:0x78},_0x116790={_0x2091d0:0x1b},_0x176f24=resolveWorkspacePath(_0x3d3be6,_0x1379ed['filePath']);function _0x5eb1ec(_0x30e43d,_0x47b63c,_0x4f0039,_0x4aca43){return _0x48e5a7(_0x30e43d-_0x116790._0x2091d0,_0x4aca43-0x1bc,_0x4f0039-0xe3,_0x4f0039);}const _0x15bea4=await _0x516c80(_0x176f24)['then'](()=>!![])[_0x48c5ae(_0x32ec5d._0x496474,_0x32ec5d._0x29fcd3,0x113,_0x32ec5d._0x4c0afc)](()=>![]);function _0x48c5ae(_0x4b2f40,_0x2c374d,_0x19fa66,_0x6d6d0c){return _0xda87e6(_0x4b2f40-_0x1b2be4._0x34ee55,_0x2c374d-_0x1b2be4._0x51f989,_0x19fa66-0x142,_0x2c374d);}const _0x27c428=Buffer[_0x48c5ae(_0x32ec5d._0x19a68d,_0x32ec5d._0x3b2a86,_0x32ec5d._0x2f3959,_0x32ec5d._0x4c251a)](_0x1379ed[_0x5eb1ec(_0x32ec5d._0x4bb93b,_0x32ec5d._0x3f8800,_0x32ec5d._0x4d4083,_0x32ec5d._0x3582ab)],_0x48c5ae(_0x32ec5d._0x3872ee,-0x5,_0x32ec5d._0x2f9206,0x97));return await atomicWrite2(_0x176f24,_0x27c428),yield createToolOutput(_0x48c5ae(0x15d,_0x32ec5d._0x27f81f,_0x32ec5d._0x319f8a,_0x32ec5d._0x38a1b6)+_0x1379ed[_0x5eb1ec(_0x32ec5d._0x5cc8a2,_0x32ec5d._0xf11f0c,0x51e,0x525)]+'.',{'filePath':_0x1379ed['filePath'],'resolvedPath':_0x176f24,'bytes':_0x27c428[_0x5eb1ec(0x47d,_0x32ec5d._0x49a246,_0x32ec5d._0x3d0af7,0x497)],'lines':_0x1379ed[_0x5eb1ec(0x5f2,_0x32ec5d._0x31c146,_0x32ec5d._0x570413,0x55e)][_0x48c5ae(_0x32ec5d._0xc265f1,0xed,_0x32ec5d._0xd295a,0x50)](/\r?\n/)[_0x48c5ae(_0x32ec5d._0x59bc30,0x93,0x57,0x68)],'created':new Date()['toISOString'](),'overwritten':_0x15bea4}),void 0x0;}});}import{readFile as _0x79fc89,stat as _0x592384}from'fs/promises';import*as _0x3b7c46 from'path';function stripUtfBom(_0x512ced){const _0x28a0e3={_0x549fe5:0x9a,_0x231789:0x111},_0x232824={_0x9f345b:0xa1,_0x3d4bec:0xdd};function _0xd11383(_0x53aff7,_0x44fa44,_0x27d676,_0x459d75){return _0x44530c(_0x53aff7,_0x44fa44-_0x232824._0x9f345b,_0x27d676-_0x232824._0x3d4bec,_0x27d676- -0x4f4);}return _0x512ced['charCodeAt'](0x0)===0xfeff?_0x512ced[_0xd11383(-_0x28a0e3._0x549fe5,-_0x28a0e3._0x231789,-0x98,-0x31)](0x1):_0x512ced;}function clampLine(_0x1a6ffe,_0x1436b5){const _0x589367={_0x245d6f:0x16a,_0x2e7e73:0x131},_0xe2c94b={_0x3a8bf9:0x1a5};function _0x1d71d1(_0x5ddeff,_0x3f47ee,_0x56f456,_0x9f9635){return _0x44530c(_0x9f9635,_0x3f47ee-_0xe2c94b._0x3a8bf9,_0x56f456-0xfd,_0x56f456- -0x29e);}if(!Number[_0x1d71d1(0x147,_0x589367._0x245d6f,0x194,_0x589367._0x2e7e73)](_0x1a6ffe))return 0x1;return Math['max'](0x1,Math['min'](Math['trunc'](_0x1a6ffe),_0x1436b5));}function createFileReadTool(_0x29cf24={}){const _0x3ed89={_0x2a9f2f:0x211,_0x58ff2b:0x1ee,_0x2ba02f:0xe6,_0x3efe91:0x103,_0x24dca6:0x4fe,_0x18a687:0x512,_0x341bf1:0x1b8,_0x5a2699:0x525,_0x251eb2:0x552,_0x3adb60:0x54a,_0x2d66b4:0x4d5,_0x34f888:0x52e,_0x5bca47:0x4e5,_0x4afe26:0x224,_0x59efce:0x16e,_0x2478c5:0x161},_0x2723dc={_0x128b4d:0x308,_0x1a3bc6:0x2b8,_0x14e3ee:0x2c5,_0x5036dc:0x30d,_0x284e9a:0x9b,_0x58c81b:0x53,_0x183c7f:0x43,_0x3adbde:0x26,_0x43e629:0x1a,_0x170a88:0x1d,_0xc0904a:0x27d,_0x347d8f:0x25e,_0x2d9056:0x28e,_0x49dc06:0x3f1,_0x137512:0x359,_0x3887f8:0x3e4,_0x2942bd:0x342,_0x3ff6bc:0x54,_0xba509f:0x2d3,_0x54b2e6:0x2d2,_0x5bb932:0x337,_0x57d9e4:0x256,_0x4133f7:0x2db,_0x3d1c39:0x43c,_0x2c6bc4:0x328,_0x3c94cd:0x3a7,_0x3c5712:0x340,_0x866341:0x2e9,_0x1f1f56:0xd7,_0x622c6b:0x115,_0x54a32a:0xae,_0x1fe997:0xbe,_0xe53d5a:0x57,_0x3f09c8:0xb2,_0x2757ed:0xb,_0x52862e:0x2f0,_0x2221ce:0x174,_0x5f3b20:0xe4,_0x27225c:0x36c,_0x469cdf:0x31c,_0x98c115:0x3a3,_0x27dcc9:0xc3,_0x49d548:0x3f,_0x41f615:0xd3,_0x5d168d:0x2d5,_0x412ed5:0x2b0},_0xe3cfe0={_0x292b86:0x1d3},_0x87b15b={_0x22de32:0x2e,_0x498887:0x34d},_0x5d3f78={_0x5741f4:0x52},_0x376364=_0x3b7c46[_0x9cef31(_0x3ed89._0x2a9f2f,_0x3ed89._0x58ff2b,0x1d1,0x144)](_0x29cf24[_0x9cef31(0x10b,_0x3ed89._0x2ba02f,0x154,0x1af)]??process[_0x9cef31(0x190,0x157,0x108,_0x3ed89._0x3efe91)]()),_0x10bece=_0x29cf24[_0x442e77(0x51c,_0x3ed89._0x24dca6,0x49c,0x4c3)]??_0x442e77(0x44b,0x49c,0x4c7,_0x3ed89._0x18a687);function _0x442e77(_0x3a1c2e,_0x27cc05,_0x39e67c,_0x91f917){return _0x44530c(_0x3a1c2e,_0x27cc05-0x145,_0x39e67c-0x197,_0x39e67c-_0x5d3f78._0x5741f4);}function _0x9cef31(_0xf16c02,_0xafb4bf,_0x2acffa,_0x55ad70){return _0x44530c(_0xf16c02,_0xafb4bf-0x52,_0x2acffa-_0x87b15b._0x22de32,_0x2acffa- -_0x87b15b._0x498887);}return defineTool({'name':_0x10bece,'description':'Read\x20a\x20UTF-8\x20text\x20file\x20from\x20the\x20workspace.\x20Optionally\x20specify\x20line\x20ranges.','inputSchema':{'type':_0x9cef31(0x1c2,0x1d8,_0x3ed89._0x341bf1,0x225),'properties':{'path':{'type':_0x442e77(0x4d9,_0x3ed89._0x5a2699,_0x3ed89._0x251eb2,0x53f)},'lineStart':{'type':_0x442e77(_0x3ed89._0x3adb60,_0x3ed89._0x2d66b4,_0x3ed89._0x34f888,_0x3ed89._0x5bca47)},'lineEnd':{'type':_0x9cef31(0x1d1,_0x3ed89._0x4afe26,0x18f,0x191)}},'required':[_0x9cef31(0x12b,_0x3ed89._0x59efce,0xf6,_0x3ed89._0x2478c5)]},async *'execute'(_0x27729d){const _0x2712f2=resolveWorkspacePath(_0x376364,_0x27729d[_0x593798(_0x2723dc._0x128b4d,0x2c0,0x30b,_0x2723dc._0x1a3bc6)]);await assertWorkspaceFile(_0x2712f2);const _0x456df2=await _0x592384(_0x2712f2);function _0x593798(_0x28886b,_0x5a10ec,_0x355d33,_0x1fa9fc){return _0x9cef31(_0x355d33,_0x5a10ec-0x194,_0x1fa9fc-0x1c2,_0x1fa9fc-0x14d);}const _0x14c78c=await _0x79fc89(_0x2712f2);if(isProbablyBinary(_0x14c78c))throw new ToolExecutionError(_0x593798(_0x2723dc._0x14e3ee,_0x2723dc._0x5036dc,0x336,0x2cd)+_0x27729d[_0x4746d4(_0x2723dc._0x284e9a,0x26,-_0x2723dc._0x58c81b,-0x2e)],{'path':_0x27729d[_0x4746d4(-_0x2723dc._0x183c7f,_0x2723dc._0x3adbde,-0x5,-0x53)]});let _0x18a4b9=_0x14c78c[_0x4746d4(-_0x2723dc._0x43e629,0x59,0x5d,-_0x2723dc._0x170a88)]('utf8');const _0x3060f5=_0x18a4b9[_0x593798(_0x2723dc._0xc0904a,0x244,_0x2723dc._0x347d8f,_0x2723dc._0x2d9056)](0x0)===0xfeff;function _0x4746d4(_0x418caf,_0x4cfc80,_0x2689e8,_0x25c885){return _0x442e77(_0x25c885,_0x4cfc80-_0xe3cfe0._0x292b86,_0x4cfc80- -0x46f,_0x25c885-0x4);}_0x18a4b9=stripUtfBom(_0x18a4b9);const _0x128cdc=_0x18a4b9[_0x593798(_0x2723dc._0x49dc06,0x3c5,0x321,_0x2723dc._0x137512)](/\r?\n/),_0x33a29c={'path':_0x27729d['path'],'resolvedPath':_0x2712f2,'created':_0x456df2[_0x593798(_0x2723dc._0x3887f8,_0x2723dc._0x2942bd,0x309,0x387)][_0x4746d4(-_0x2723dc._0x3ff6bc,0x40,0x4f,-0x15)](),'modified':_0x456df2['mtime'][_0x593798(_0x2723dc._0xba509f,0x34f,0x26d,_0x2723dc._0x54b2e6)](),'size':_0x456df2[_0x593798(0x367,_0x2723dc._0x5bb932,0x29a,0x30a)],'encoding':'utf8','bomStripped':_0x3060f5,'truncated':![],'totalLines':_0x128cdc[_0x593798(_0x2723dc._0x57d9e4,0x2db,_0x2723dc._0x4133f7,0x2cf)]};if(_0x27729d[_0x593798(_0x2723dc._0x3d1c39,0x37f,_0x2723dc._0x2c6bc4,_0x2723dc._0x3c94cd)]!==void 0x0||_0x27729d[_0x593798(0x276,0x24d,_0x2723dc._0x3c5712,_0x2723dc._0x866341)]!==void 0x0){const _0x2a2ee8=clampLine(_0x27729d[_0x4746d4(_0x2723dc._0x1f1f56,_0x2723dc._0x622c6b,0x140,_0x2723dc._0x54a32a)]??0x1,_0x128cdc['length']),_0x29edb7=clampLine(_0x27729d[_0x4746d4(_0x2723dc._0x1fe997,_0x2723dc._0xe53d5a,_0x2723dc._0x3f09c8,_0x2723dc._0x2757ed)]??_0x128cdc[_0x593798(0x356,0x2d2,_0x2723dc._0x52862e,0x2cf)],_0x128cdc['length']),_0x2b6212=Math[_0x4746d4(_0x2723dc._0x2221ce,_0x2723dc._0x5f3b20,0x95,0x78)](_0x2a2ee8,_0x29edb7),_0x4822e8=Math[_0x593798(_0x2723dc._0x27225c,0x3a1,_0x2723dc._0x469cdf,_0x2723dc._0x98c115)](_0x2a2ee8,_0x29edb7),_0x16796a=_0x128cdc[_0x4746d4(_0x2723dc._0x27dcc9,_0x2723dc._0x49d548,_0x2723dc._0x41f615,0x83)](_0x2b6212-0x1,_0x4822e8)['map']((_0x52f557,_0x31c7ed)=>_0x2b6212+_0x31c7ed+'|'+_0x52f557)[_0x593798(0x2c2,_0x2723dc._0x5d168d,_0x2723dc._0x412ed5,0x294)]('\x0a');return yield createToolOutput(_0x16796a,{..._0x33a29c,'lineRange':{'lineStart':_0x2b6212,'lineEnd':_0x4822e8,'linesTotal':_0x128cdc['length']}}),void 0x0;}return yield createToolOutput(_0x18a4b9,_0x33a29c),void 0x0;}});}import{stat as _0x5c1969}from'fs/promises';import*as _0x27ea33 from'path';import{execSync,spawn as _0x44b542}from'child_process';import{existsSync}from'fs';import{stat as _0x470eda}from'fs/promises';import*as _0x4de71a from'os';import*as _0x48f11e from'path';var cachedRgPath=null;function findSystemRipgrep(){const _0x3d58df={_0xdc11f7:0x40,_0x59822f:0x48,_0x3c4778:0x71,_0xef1201:0x23a,_0x1329d6:0x257,_0x184899:0x16,_0x340e9b:0x65,_0x11b934:0x64,_0x165d66:0x9,_0x5164c2:0x4c,_0x5b1fef:0x53,_0x34e523:0x22b,_0x4904c4:0x1b6,_0x1cba2f:0x1d9,_0x531701:0xdc,_0x1adad5:0x329,_0x172ea9:0x37f,_0x2499f7:0x24f,_0x5ab66a:0x234,_0x16cfd1:0x219,_0x189cbd:0x25,_0x4fa6d1:0x6,_0xa1697c:0x281,_0x48af76:0x21c,_0x39262b:0x104,_0x134011:0x6f,_0x453a13:0x29c,_0x49e8c3:0x1e2,_0x1061b7:0x44,_0x25296f:0x288,_0x283087:0x305,_0x5c5958:0x2a3,_0x574c11:0x2b9,_0x299ce1:0x2da,_0x34b0ca:0x281,_0x180776:0x2cd,_0x50397c:0x1fa,_0x1bd94c:0x29e,_0xab63f9:0x198,_0x490881:0x1d1,_0x3f9616:0x27e,_0x1c0b84:0x22d,_0x17af4b:0x2a0,_0x45213c:0x212,_0xd21a0e:0x2df,_0x426cc9:0x109,_0x27fbd9:0x3a,_0x91f709:0x62,_0x570611:0xc,_0xf88e34:0x68,_0x1819b3:0x60},_0x22034e={_0x4541f2:0x1e6},_0x5201d1=_0x4de71a[_0x435393(_0x3d58df._0xdc11f7,_0x3d58df._0x59822f,0x86,_0x3d58df._0x3c4778)]()===_0x59834a(_0x3d58df._0xef1201,0x233,_0x3d58df._0x1329d6,0x2c9),_0x1f94d9=_0x5201d1?[_0x48f11e[_0x435393(0x2a,-_0x3d58df._0x184899,-0xcd,-_0x3d58df._0x340e9b)](process[_0x435393(_0x3d58df._0x11b934,0xe4,_0x3d58df._0x165d66,0x6f)]['LOCALAPPDATA']||'',_0x435393(_0x3d58df._0x5164c2,_0x3d58df._0x5b1fef,0x8c,_0x3d58df._0x184899),_0x59834a(_0x3d58df._0x34e523,_0x3d58df._0x4904c4,_0x3d58df._0x1cba2f,0x1d0),'Packages'),_0x48f11e[_0x435393(-_0x3d58df._0x531701,0x2,-0x8c,-_0x3d58df._0x340e9b)](process[_0x59834a(0x30d,_0x3d58df._0x1adad5,0x2d9,_0x3d58df._0x172ea9)]['ProgramFiles']||'',_0x59834a(0x2a8,_0x3d58df._0x2499f7,_0x3d58df._0x5ab66a,_0x3d58df._0x16cfd1),_0x435393(_0x3d58df._0x189cbd,-0x22,-0x24,_0x3d58df._0x4fa6d1)),_0x48f11e[_0x59834a(0x239,_0x3d58df._0xa1697c,0x1df,_0x3d58df._0x48af76)](process[_0x435393(_0x3d58df._0x39262b,0x5d,0x3e,_0x3d58df._0x134011)][_0x59834a(0x245,0x1cd,_0x3d58df._0x453a13,_0x3d58df._0x49e8c3)]||'',_0x435393(_0x3d58df._0x1061b7,0xa6,-0xa,0xa),_0x59834a(0x2a4,0x2b6,_0x3d58df._0x25296f,0x226))]:['/opt/homebrew/bin/rg',_0x59834a(_0x3d58df._0x283087,0x329,0x388,_0x3d58df._0x5c5958),_0x59834a(_0x3d58df._0x574c11,_0x3d58df._0x299ce1,_0x3d58df._0x34b0ca,_0x3d58df._0x180776),_0x59834a(0x225,_0x3d58df._0x50397c,_0x3d58df._0x1bd94c,0x1a7)];for(const _0x4d4ef1 of _0x1f94d9){if(existsSync(_0x4d4ef1))return _0x4d4ef1;}function _0x59834a(_0x57d100,_0x106097,_0x2237d0,_0x6d7cda){return _0x44530c(_0x6d7cda,_0x106097-0xec,_0x2237d0-0x75,_0x57d100- -_0x22034e._0x4541f2);}function _0x435393(_0x13abab,_0x17efa3,_0xedccd5,_0x597201){return _0x452c58(_0x597201- -0x1f8,_0x17efa3,_0xedccd5-0xc0,_0x597201-0x80);}try{const _0x3afc83=_0x5201d1?_0x59834a(0x21e,0x1bc,_0x3d58df._0xab63f9,_0x3d58df._0x490881):_0x59834a(0x2c5,0x272,0x25b,0x2aa),_0x4324e5=execSync(_0x3afc83,{'encoding':_0x59834a(0x2a0,0x268,0x269,0x333),'stdio':[_0x59834a(_0x3d58df._0x3f9616,_0x3d58df._0x1c0b84,_0x3d58df._0x17af4b,0x2dd),_0x59834a(0x27e,0x269,_0x3d58df._0x45213c,_0x3d58df._0xd21a0e),_0x435393(0xcc,0x2b,_0x3d58df._0x426cc9,0x86)]})[_0x435393(0xc0,0xfe,_0x3d58df._0x27fbd9,_0x3d58df._0x91f709)]()[_0x435393(_0x3d58df._0x570611,_0x3d58df._0xf88e34,_0x3d58df._0x531701,_0x3d58df._0x1819b3)](/\r?\n/)[0x0];if(_0x4324e5&&existsSync(_0x4324e5))return _0x4324e5;}catch{return null;}return null;}async function filepath(){const _0x24167b={_0x3cded9:0x218,_0x1d7186:0x257},_0x92b3bc={_0x2576dc:0xcd};if(cachedRgPath)return cachedRgPath;const _0x4cc391=findSystemRipgrep();if(!_0x4cc391)throw new Error(_0x489d74(0x294,0x326,_0x24167b._0x3cded9,_0x24167b._0x1d7186));cachedRgPath=_0x4cc391;function _0x489d74(_0x4dae91,_0x1ea75b,_0x4b0e7f,_0x1d8dcc){return _0x452c58(_0x4dae91-0x68,_0x4b0e7f,_0x4b0e7f-_0x92b3bc._0x2576dc,_0x1d8dcc-0x11);}return _0x4cc391;}async function*files(_0x5354bc){const _0x946f3b={_0x38dbdc:0x14d,_0x5bac14:0x115,_0x2272e8:0x8f,_0x5adfc0:0x41,_0x5f0a69:0x1f3,_0xb27603:0x174,_0x5dd58a:0x11f,_0x41111a:0x61,_0x7c2a67:0x88,_0x191999:0x1c4,_0x43f4f1:0x1dd,_0x2d52b6:0xa9,_0x15597a:0x17,_0x4d7b3a:0x96,_0x356e2f:0x54,_0x5aeb0c:0x63,_0x4a48e1:0x1c6,_0x5cb67e:0x24d,_0x29cecc:0x143,_0x332e1f:0x105,_0x3364f8:0x115,_0x318d88:0x13d,_0x59513b:0x106,_0x2ff8f3:0x8,_0x1ce5e8:0x79,_0x37746f:0x2,_0x7e8fd0:0x3a,_0x37bd63:0x136,_0x212249:0x153,_0x36f192:0x160,_0x3921d0:0x70,_0x41cb96:0x7,_0x17d589:0x4,_0x23fadd:0x6e,_0xaac8d:0x83,_0x2964a0:0xe9,_0x2eba7f:0x11a,_0xa3d3bc:0xc8,_0x1b76de:0x16d,_0x4e4034:0x16b},_0x439699={_0x37ac66:0xb4,_0x2de31:0x23},_0x309f50=await filepath();function _0x4a0b83(_0x3254cc,_0x108255,_0x4c15f5,_0x3ce2e2){return _0x452c58(_0x108255- -0x251,_0x3254cc,_0x4c15f5-0x111,_0x3ce2e2-0xa7);}const _0x3b3802=await _0x470eda(_0x5354bc[_0x61b6bc(0x115,0x17b,_0x946f3b._0x38dbdc,_0x946f3b._0x5bac14)])['catch'](()=>null);function _0x61b6bc(_0x32dce5,_0x12e0d6,_0xa7e6cf,_0x52fd14){return _0x452c58(_0x32dce5- -_0x439699._0x37ac66,_0x12e0d6,_0xa7e6cf-0xd9,_0x52fd14-_0x439699._0x2de31);}if(!_0x3b3802?.[_0x4a0b83(-_0x946f3b._0x2272e8,0x6,0x25,_0x946f3b._0x5adfc0)]())throw Object[_0x61b6bc(_0x946f3b._0x5f0a69,0x1b6,_0x946f3b._0xb27603,0x215)](new Error(_0x61b6bc(0xde,_0x946f3b._0x5dd58a,0xf6,0x165)+_0x5354bc[_0x4a0b83(-_0x946f3b._0x41111a,-_0x946f3b._0x7c2a67,-0x4a,-0x1a)]+'\x27'),{'code':_0x61b6bc(_0x946f3b._0x191999,0x196,0x12c,0x234)});const _0x4653bc=[_0x61b6bc(0x1f0,_0x946f3b._0x43f4f1,0x1fc,0x167),_0x4a0b83(_0x946f3b._0x2d52b6,_0x946f3b._0x15597a,0xa5,_0x946f3b._0x4d7b3a),_0x4a0b83(0x1d,_0x946f3b._0x356e2f,_0x946f3b._0x5aeb0c,0x89),_0x61b6bc(_0x946f3b._0x4a48e1,0x1c4,0x1b8,_0x946f3b._0x5cb67e)];for(const _0x12f133 of _0x5354bc[_0x61b6bc(0x156,0x1b8,_0x946f3b._0x29cecc,_0x946f3b._0x332e1f)]??[]){_0x4653bc[_0x4a0b83(-0x4e,-0x54,-0x5e,0x1f)]('--glob='+_0x12f133);}const _0xf6952b=_0x44b542(_0x309f50,_0x4653bc,{'cwd':_0x5354bc[_0x61b6bc(_0x946f3b._0x3364f8,0xe7,_0x946f3b._0x318d88,_0x946f3b._0x59513b)],'stdio':['ignore',_0x61b6bc(0x124,0x134,0x165,0xa2),_0x4a0b83(_0x946f3b._0x2ff8f3,-_0x946f3b._0x1ce5e8,-_0x946f3b._0x37746f,-_0x946f3b._0x7e8fd0)]});let _0xd02778='';for await(const _0x9988e of _0xf6952b['stdout']??[]){_0xd02778+=_0x9988e[_0x61b6bc(_0x946f3b._0x37bd63,0x1a8,_0x946f3b._0x212249,_0x946f3b._0x36f192)]();const _0x4e28ce=_0xd02778[_0x4a0b83(-_0x946f3b._0x3921d0,_0x946f3b._0x41cb96,-_0x946f3b._0x17d589,-_0x946f3b._0x23fadd)](/\r?\n/);_0xd02778=_0x4e28ce['pop']()??'';for(const _0x571fce of _0x4e28ce){if(_0x571fce[_0x4a0b83(-_0x946f3b._0x2ff8f3,-_0x946f3b._0xaac8d,-_0x946f3b._0x2964a0,-0x4a)]>0x0)yield _0x571fce;}}_0xd02778['trim']()[_0x61b6bc(_0x946f3b._0x2eba7f,0x192,0xa3,_0x946f3b._0xa3d3bc)]>0x0&&(yield _0xd02778[_0x61b6bc(0x1a6,_0x946f3b._0x1b76de,0x10c,_0x946f3b._0x4e4034)]());}function parseMatchLine(_0x134b6a,_0x28aae2){const _0x6eb31f={_0x1fcb57:0x4a2,_0x5457d6:0x42,_0x3f1599:0x2b,_0x376782:0x96,_0x1a189e:0x492,_0x2a1736:0x46a,_0x83b50e:0x4b6,_0x2e17f7:0x4f9,_0x59dfa9:0x4e0,_0x481c50:0x459,_0x33133a:0x51e,_0x1996f0:0x4a3,_0x523fc0:0x9b,_0x4ed5e0:0x2,_0x67d435:0xc},_0x27b5bd={_0xadf236:0x18a},_0x2788c9={_0x1dd314:0xb1,_0xebfd5b:0x140};function _0x2dc1ea(_0x4bdf55,_0x484527,_0x2bde78,_0x4c5cbb){return _0x452c58(_0x4c5cbb-0x310,_0x2bde78,_0x2bde78-_0x2788c9._0x1dd314,_0x4c5cbb-_0x2788c9._0xebfd5b);}if(!_0x134b6a||_0x134b6a==='--')return null;function _0x1abe9d(_0x47488d,_0x286761,_0x1c04f5,_0x550f4a){return _0x44530c(_0x47488d,_0x286761-_0x27b5bd._0xadf236,_0x1c04f5-0x170,_0x286761- -0x45a);}const _0x490f18=_0x134b6a['split']('|');if(_0x28aae2&&_0x490f18[_0x2dc1ea(0x571,0x49f,_0x6eb31f._0x1fcb57,0x4de)]>=0x4&&Number['isFinite'](Number[_0x1abe9d(_0x6eb31f._0x5457d6,0x6,_0x6eb31f._0x3f1599,-_0x6eb31f._0x376782)](_0x490f18[0x2]??'',0xa))){const _0x48a58b=Number['parseInt'](_0x490f18[0x1]??'',0xa);if(!Number[_0x2dc1ea(0x48e,_0x6eb31f._0x1a189e,_0x6eb31f._0x2a1736,_0x6eb31f._0x83b50e)](_0x48a58b)||!_0x490f18[0x0])return null;return{'filePath':_0x490f18[0x0],'lineNum':_0x48a58b,'lineText':_0x490f18[_0x2dc1ea(_0x6eb31f._0x2e17f7,0x4b5,0x4e5,_0x6eb31f._0x59dfa9)](0x3)[_0x2dc1ea(_0x6eb31f._0x481c50,0x4f3,_0x6eb31f._0x33133a,_0x6eb31f._0x1996f0)]('|')};}if(_0x490f18['length']>=0x3){const _0x2a9997=Number['parseInt'](_0x490f18[0x1]??'',0xa);if(!Number['isFinite'](_0x2a9997)||!_0x490f18[0x0])return null;return{'filePath':_0x490f18[0x0],'lineNum':_0x2a9997,'lineText':_0x490f18[_0x1abe9d(_0x6eb31f._0x523fc0,_0x6eb31f._0x4ed5e0,-0x48,_0x6eb31f._0x67d435)](0x2)['join']('|'),..._0x28aae2?{'isContext':!![]}:{}};}return null;}async function search(_0x1b203a){const _0x56b595={_0x915b39:0x153,_0x51a919:0x196,_0x218153:0x165,_0x3f6830:0x1da,_0x5164d7:0x287,_0x3ed285:0x239,_0x264ac8:0x19b,_0x4c98d2:0x139,_0x5cd8f4:0x164,_0x247b05:0x103,_0x2a767e:0x5b9,_0x2a3674:0x5a7,_0x43cb0e:0x657,_0xc7f995:0x5c5,_0x113a9d:0x63a,_0x11f592:0x6a0,_0x5bad9f:0x60a,_0x2e948e:0x22a,_0x66fafc:0x1ab,_0x52921c:0x1a4,_0x28cc96:0x671,_0x52fcc8:0x645,_0x58a167:0x504,_0x4e2970:0x4e6,_0x212670:0x5cc,_0x46655b:0x572,_0x3765b2:0x57b,_0x20c404:0x4d9,_0x19d279:0x568,_0x502c6c:0x1b8,_0x4a9ab6:0x258,_0x833895:0x1dd,_0x285411:0x24a,_0x12e555:0x1ee,_0x22e8dd:0x4e1,_0x39a804:0x560,_0xa19cc7:0x225,_0x2b15d9:0x203,_0x277ed7:0x1ee,_0x1e37a3:0x1ce,_0x3ffaf2:0x56d,_0x2d7c63:0x5af,_0x44c2c4:0x556,_0x1c64ae:0x1e3,_0x5eae4a:0x1d7,_0x376621:0x234,_0x5ea5f8:0x1ed,_0x51364f:0x565,_0x40167c:0x52c},_0x339ffd={_0x6e89ec:0xe5,_0x16d0d7:0xde,_0x2fc49d:0xd0,_0x31d49a:0x39a,_0x1acd19:0x3b7,_0x4ef4a4:0x4e,_0x35d337:0x62,_0x17e4f8:0x15f,_0x10af7e:0x176,_0x13f34d:0x57,_0x327126:0xd6},_0x1e3d3c={_0x354333:0x557,_0x586eb5:0x43c,_0x5d6572:0x3f9,_0xca23a7:0x586,_0x2916bb:0x50e,_0x18430c:0x4a0,_0x5aa9b4:0x39e,_0x438ed3:0x420,_0x3f1e33:0x371},_0x4d8d73={_0x2644b3:0x1c2,_0x1e68c6:0x125,_0x3bdb04:0x447},_0xc68329={_0x32a1e9:0x2aa,_0xe8299b:0x276},_0x3896cf={_0xdaf083:0xca,_0x419ce0:0x626,_0x3ed45a:0x19b},_0x2db789={_0x5dddf4:0xde,_0x5ca350:0x1a8},_0x1e6b9e={_0x3e37fe:0xe4,_0x1ad69e:0xd7};function _0x226d2f(_0x2bc045,_0x46fa1c,_0x27250e,_0x699c82){return _0x44530c(_0x46fa1c,_0x46fa1c-0x165,_0x27250e-_0x1e6b9e._0x3e37fe,_0x699c82-_0x1e6b9e._0x1ad69e);}function _0x41171a(_0xd02e1d,_0x26d9f6,_0x5e117b,_0xf88f2b){return _0x44530c(_0xd02e1d,_0x26d9f6-_0x2db789._0x5dddf4,_0x5e117b-_0x2db789._0x5ca350,_0x5e117b- -0x66c);}const _0x5b2d44=await filepath();if(_0x1b203a['file']){const _0x3c01f2=await _0x470eda(_0x1b203a[_0x41171a(-_0x56b595._0x915b39,-_0x56b595._0x51a919,-0x1ed,-_0x56b595._0x218153)])[_0x41171a(-0x19f,-0x193,-0x156,-0x1dd)](()=>null);if(!_0x3c01f2?.[_0x41171a(-_0x56b595._0x3f6830,-_0x56b595._0x5164d7,-_0x56b595._0x3ed285,-0x1f5)]())throw Object[_0x41171a(-0x1a7,-_0x56b595._0x264ac8,-_0x56b595._0x4c98d2,-0x13d)](new Error(_0x41171a(-_0x56b595._0x5cd8f4,-0x15e,-0x176,-_0x56b595._0x247b05)+_0x1b203a['file']+'\x27'),{'code':_0x41171a(-0x197,-0x1ad,-0x168,-0x19a)});}else{const _0x3de46d=await _0x470eda(_0x1b203a[_0x226d2f(_0x56b595._0x2a767e,0x58f,_0x56b595._0x2a3674,0x52c)])[_0x226d2f(_0x56b595._0x43cb0e,_0x56b595._0xc7f995,_0x56b595._0x113a9d,0x5ed)](()=>null);if(!_0x3de46d?.['isDirectory']())throw Object[_0x226d2f(_0x56b595._0x11f592,0x658,0x5e7,_0x56b595._0x5bad9f)](new Error(_0x41171a(-0x241,-_0x56b595._0x2e948e,-0x24e,-0x2c3)+_0x1b203a['cwd']+'\x27'),{'code':_0x41171a(-0x115,-0x17c,-0x168,-0x1f9)});}const _0x31d103=[_0x41171a(-0x179,-_0x56b595._0x66fafc,-_0x56b595._0x52921c,-0x1ca),_0x226d2f(0x57c,_0x56b595._0x28cc96,_0x56b595._0x52fcc8,0x5fa),_0x226d2f(_0x56b595._0x58a167,_0x56b595._0x4e2970,0x49b,0x506),_0x226d2f(0x540,_0x56b595._0x212670,0x57f,_0x56b595._0x46655b),_0x1b203a[_0x226d2f(0x5cf,_0x56b595._0x3765b2,_0x56b595._0x20c404,_0x56b595._0x19d279)]],_0x4e0e5f=typeof _0x1b203a[_0x41171a(-0x22c,-_0x56b595._0x502c6c,-0x1ee,-_0x56b595._0x4a9ab6)]===_0x41171a(-_0x56b595._0x502c6c,-_0x56b595._0x833895,-0x190,-0x136)&&_0x1b203a[_0x41171a(-_0x56b595._0x285411,-0x20b,-_0x56b595._0x12e555,-0x1e9)]>0x0;return _0x4e0e5f&&_0x31d103[_0x226d2f(0x586,0x5dd,_0x56b595._0x22e8dd,_0x56b595._0x39a804)]('-C',String(_0x1b203a[_0x41171a(-_0x56b595._0xa19cc7,-_0x56b595._0x2b15d9,-_0x56b595._0x277ed7,-_0x56b595._0x1e37a3)]),'--column'),_0x1b203a[_0x226d2f(0x570,0x56d,0x5d0,_0x56b595._0x3ffaf2)]&&!_0x1b203a[_0x226d2f(_0x56b595._0x2d7c63,0x58f,0x4e7,_0x56b595._0x44c2c4)]&&_0x31d103[_0x41171a(-0x1ea,-0x154,-_0x56b595._0x1c64ae,-_0x56b595._0x5eae4a)](_0x41171a(-0x21a,-0x2e1,-0x24f,-_0x56b595._0x376621),_0x1b203a['glob']),_0x31d103[_0x41171a(-0x249,-0x1d7,-0x1e3,-0x1dc)](_0x1b203a[_0x41171a(-_0x56b595._0x218153,-0x276,-_0x56b595._0x5ea5f8,-0x282)]??_0x1b203a[_0x226d2f(_0x56b595._0x51364f,0x542,0x496,_0x56b595._0x40167c)]),await new Promise((_0x55bcf0,_0x50a200)=>{const _0x3faf79={_0x469160:0x39a},_0x147aa0={_0x3ac7f8:0x31,_0x353000:0x8d},_0x67a15d=_0x44b542(_0x5b2d44,_0x31d103,{'cwd':_0x1b203a[_0x2e3e0e(0x6e,0x14c,_0x339ffd._0x6e89ec,_0x339ffd._0x16d0d7)],'stdio':['ignore',_0x41196b(0x3e6,0x41e,0x3bd,0x48b),_0x2e3e0e(_0x339ffd._0x2fc49d,0x16e,0xf4,0x12f)]});function _0x41196b(_0x39c902,_0x160c1b,_0x111e0e,_0x1898b6){return _0x41171a(_0x1898b6,_0x160c1b-_0x3896cf._0xdaf083,_0x160c1b-_0x3896cf._0x419ce0,_0x1898b6-_0x3896cf._0x3ed45a);}let _0x168a79='',_0x369ce8='';_0x67a15d['stdout']?.['on'](_0x41196b(_0x339ffd._0x31d49a,_0x339ffd._0x1acd19,0x370,0x33a),_0x2cd44e=>{function _0x34aef0(_0xd2d16e,_0x57f04d,_0x541fd5,_0x53f2bc){return _0x41196b(_0xd2d16e-_0x147aa0._0x3ac7f8,_0x541fd5- -0x202,_0x541fd5-_0x147aa0._0x353000,_0xd2d16e);}_0x168a79+=_0x2cd44e[_0x34aef0(_0xc68329._0x32a1e9,0x249,0x22e,_0xc68329._0xe8299b)]();});function _0x2e3e0e(_0xf55828,_0x12494e,_0x37897b,_0x35db2a){return _0x226d2f(_0xf55828-_0x4d8d73._0x2644b3,_0xf55828,_0x37897b-_0x4d8d73._0x1e68c6,_0x37897b- -_0x4d8d73._0x3bdb04);}_0x67a15d[_0x2e3e0e(0xd1,_0x339ffd._0x4ef4a4,0x9d,_0x339ffd._0x35d337)]?.['on']('data',_0x7ca342=>{_0x369ce8+=_0x7ca342['toString']();}),_0x67a15d['on'](_0x2e3e0e(0x1a7,_0x339ffd._0x17e4f8,0x141,_0x339ffd._0x10af7e),_0x2907eb=>{const _0x51956b={_0x311e76:0x76,_0x40a5ba:0x13b};if(_0x2907eb===0x1&&_0x168a79===''){_0x55bcf0([]);return;}if(_0x2907eb!==0x0&&_0x2907eb!==0x1){_0x50a200(new Error(_0x57c013(0x4fd,_0x1e3d3c._0x354333,0x4c6,0x47a)+_0x369ce8));return;}const _0x316ac6=_0x1b203a[_0x57c013(_0x1e3d3c._0x586eb5,_0x1e3d3c._0x5d6572,0x47b,0x426)]??0x64,_0x381884=[];function _0x25ded1(_0x1cc496,_0x46ca1d,_0x425f58,_0x46f3f0){return _0x41196b(_0x1cc496-0x1ed,_0x425f58- -_0x51956b._0x311e76,_0x425f58-_0x51956b._0x40a5ba,_0x46ca1d);}function _0x57c013(_0x1fb79b,_0x3ceca4,_0x59c0f6,_0x38fecd){return _0x2e3e0e(_0x1fb79b,_0x3ceca4-0xd9,_0x59c0f6-_0x3faf79._0x469160,_0x38fecd-0x12);}for(const _0x29f339 of _0x168a79[_0x57c013(_0x1e3d3c._0xca23a7,0x4f6,_0x1e3d3c._0x2916bb,_0x1e3d3c._0x18430c)](/\r?\n/)){if(_0x381884[_0x25ded1(0x303,0x3b5,_0x1e3d3c._0x5aa9b4,0x307)]>=_0x316ac6)break;const _0x4b9edc=parseMatchLine(_0x29f339,_0x4e0e5f);if(_0x4b9edc)_0x381884[_0x25ded1(_0x1e3d3c._0x438ed3,0x465,0x3cd,_0x1e3d3c._0x3f1e33)](_0x4b9edc);}_0x55bcf0(_0x381884);}),_0x67a15d['on'](_0x2e3e0e(_0x339ffd._0x13f34d,0x114,_0x339ffd._0x327126,0x66),_0x50a200);});}function createGlobTool(_0x1b37c8={}){const _0x3f52fd={_0x2d4fb7:0x5a3,_0x364b76:0x56b,_0x195b57:0x5c8,_0x386394:0x5c3,_0x5510a1:0x56a,_0x4a7a37:0x523,_0xd74dfc:0x534,_0x304311:0x571,_0x1466e1:0x33d,_0x2a004d:0x5aa,_0x2327cb:0x53b,_0x34c3bf:0x68d,_0xb169c8:0x609,_0x1f60ee:0x650,_0x3b0753:0x5f1,_0x74353d:0x5d6,_0x1d90e1:0x627,_0x1c8a98:0x5d9,_0x36eb15:0x5b8},_0x27429a={_0x175755:0xff,_0x3eadcd:0x113,_0x3d0d2a:0xef,_0x5cac28:0x149,_0x5ae63c:0xac,_0x3c6842:0x79,_0x47d391:0x40,_0x10184b:0x9d,_0x4ff274:0x69,_0x131df5:0x2a,_0x1e102b:0xbf,_0x5a1ebe:0x96,_0x2e469a:0x37,_0x422f93:0x41,_0x266c56:0x44,_0x1023b5:0x64,_0x495d5d:0x17,_0x2f3b30:0x26,_0x15993f:0x29,_0x16d6a5:0x57,_0x5735c6:0xb4,_0x391bd0:0x8d,_0x5775ce:0xb5,_0x1a568c:0x59,_0x297751:0x1af,_0x11eb8e:0x16e,_0x3485e3:0x191,_0x5eea32:0x6b,_0x2d9023:0xd,_0x173194:0x101,_0x400e6c:0x155,_0x1d9234:0x180,_0xd3b7a5:0x1e1,_0x244935:0x32,_0x59073d:0x5b,_0x23f72d:0xcb,_0x35621b:0x17,_0x467848:0x6c},_0x1711c2={_0x587607:0x1cf},_0x193ab3={_0x2a3e2f:0x17a},_0x338f36={_0x50f0a4:0x1c8,_0x2ad58b:0x127};function _0x3afdba(_0x27d6c9,_0x162bb3,_0x54442c,_0x290d93){return _0x44530c(_0x54442c,_0x162bb3-_0x338f36._0x50f0a4,_0x54442c-0x164,_0x290d93-_0x338f36._0x2ad58b);}const _0x5db37e=_0x27ea33['resolve'](_0x1b37c8[_0x3afdba(0x57d,_0x3f52fd._0x2d4fb7,_0x3f52fd._0x364b76,_0x3f52fd._0x195b57)]??process['cwd']()),_0x58a87e=_0x1b37c8[_0x3afdba(_0x3f52fd._0x386394,_0x3f52fd._0x5510a1,_0x3f52fd._0x4a7a37,0x578)]??0x64;function _0x47f8f4(_0x1024ef,_0x57b1a4,_0x16aa85,_0x3bb677){return _0x44530c(_0x1024ef,_0x57b1a4-_0x193ab3._0x2a3e2f,_0x16aa85-0xc,_0x16aa85- -0x146);}const _0x3e6a29=_0x1b37c8[_0x3afdba(_0x3f52fd._0xd74dfc,0x53a,0x562,_0x3f52fd._0x304311)]??_0x47f8f4(0x2b2,0x319,0x2ff,_0x3f52fd._0x1466e1);return defineTool({'name':_0x3e6a29,'description':_0x3afdba(0x530,0x5c8,_0x3f52fd._0x2a004d,_0x3f52fd._0x2327cb),'inputSchema':{'type':_0x3afdba(0x688,0x661,_0x3f52fd._0x34c3bf,0x62c),'properties':{'pattern':{'type':_0x3afdba(0x620,_0x3f52fd._0xb169c8,_0x3f52fd._0x1f60ee,0x627)},'path':{'type':_0x3afdba(_0x3f52fd._0x3b0753,_0x3f52fd._0x74353d,0x5f6,_0x3f52fd._0x1d90e1)},'limit':{'type':'number'}},'required':[_0x3afdba(_0x3f52fd._0x1c8a98,0x547,0x5bd,_0x3f52fd._0x36eb15)]},async *'execute'(_0xa649cc){const _0x9275e3={_0x32059b:0x10f,_0x424159:0x22,_0x1cee98:0x5a1};if(_0xa649cc['pattern']['trim']()[_0x1f8d98(-_0x27429a._0x175755,-_0x27429a._0x3eadcd,-_0x27429a._0x3d0d2a,-_0x27429a._0x5cac28)]===0x0)throw new ToolExecutionError(_0x34a5df(-_0x27429a._0x5ae63c,0x7,-_0x27429a._0x3c6842,-0xba),{});const _0x26328c=resolveWorkspacePath(_0x5db37e,_0xa649cc[_0x34a5df(_0x27429a._0x47d391,-0x6e,-0x37,-_0x27429a._0x10184b)]??'.'),_0x122d41=await _0x5c1969(_0x26328c)['catch'](()=>null);if(!_0x122d41?.[_0x34a5df(0x30,-0x22,_0x27429a._0x4ff274,_0x27429a._0x131df5)]())throw new ToolExecutionError(_0x1f8d98(-0x8,-_0x27429a._0x1e102b,-_0x27429a._0x5a1ebe,-0xa1)+(_0xa649cc[_0x34a5df(-0x41,-0x64,-_0x27429a._0x2e469a,-_0x27429a._0x422f93)]??'.'),{'path':_0xa649cc[_0x34a5df(-_0x27429a._0x266c56,_0x27429a._0x1023b5,-0x37,-_0x27429a._0x495d5d)]??'.'});const _0x2166a5=_0xa649cc[_0x34a5df(-_0x27429a._0x3c6842,_0x27429a._0x2f3b30,-_0x27429a._0x15993f,_0x27429a._0x16d6a5)]??_0x58a87e,_0x220ca1=Math[_0x34a5df(0x2f,0x49,_0x27429a._0x5735c6,0xad)](0x1,Math[_0x34a5df(_0x27429a._0x391bd0,_0x27429a._0x5775ce,_0x27429a._0x1a568c,0x48)](_0x2166a5)),_0x2bedfd=[];let _0x560ad3=![];for await(const _0x282b68 of files({'cwd':_0x26328c,'glob':[_0xa649cc[_0x1f8d98(-0x158,-0x91,-0x19b,-0x112)]]})){if(_0x2bedfd['length']>=_0x220ca1){_0x560ad3=!![];break;}const _0x309b18=await _0x5c1969(_0x27ea33[_0x1f8d98(-_0x27429a._0x297751,-_0x27429a._0x11eb8e,-_0x27429a._0x3485e3,-0x184)](_0x26328c,_0x282b68))['catch'](()=>null);_0x2bedfd[_0x34a5df(_0x27429a._0x5eea32,0xc,0xf,0xa9)]({'path':_0x282b68,'mtime':_0x309b18?.[_0x34a5df(_0x27429a._0x2d9023,_0x27429a._0x173194,_0x27429a._0x10184b,0x1c)]??0x0});}_0x2bedfd['sort']((_0x573256,_0x40ef85)=>_0x40ef85[_0x34a5df(-0x9f,0x35,-0x38,0x5b)]-_0x573256[_0x34a5df(-0x1f,-0x19,-0x38,-0x8c)]);const _0xbc739f=_0x2bedfd[_0x1f8d98(-0x14e,-_0x27429a._0x400e6c,-0x60,-0xf6)](_0x4de1c1=>_0x4de1c1['path']),_0x55e528=_0xbc739f[_0x1f8d98(-_0x27429a._0x1d9234,-0xf4,-_0x27429a._0xd3b7a5,-0x149)]===0x0?'No\x20files\x20found\x20matching\x20pattern:\x20'+_0xa649cc[_0x34a5df(_0x27429a._0x244935,-_0x27429a._0x47d391,0x17,-0x74)]:''+_0xbc739f[_0x34a5df(0x25,-0xa5,-_0x27429a._0x59073d,-_0x27429a._0x23f72d)]('\x0a')+(_0x560ad3?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');function _0x34a5df(_0x4f328c,_0x216110,_0x99093d,_0x16810e){return _0x3afdba(_0x4f328c-_0x9275e3._0x32059b,_0x216110-_0x9275e3._0x424159,_0x216110,_0x99093d- -_0x9275e3._0x1cee98);}function _0x1f8d98(_0x1ecfa4,_0xfb50fa,_0x1cfa64,_0x57fff8){return _0x47f8f4(_0x1ecfa4,_0xfb50fa-_0x1711c2._0x587607,_0x57fff8- -0x45d,_0x57fff8-0x72);}return yield createToolOutput(_0x55e528,{'pattern':_0xa649cc[_0x34a5df(-0x5d,0x56,_0x27429a._0x35621b,_0x27429a._0x467848)],'searchPath':_0x27ea33['relative'](_0x5db37e,_0x26328c)||'.','matches':_0xbc739f,'count':_0xbc739f['length'],'truncated':_0x560ad3}),void 0x0;}});}import{stat as _0xe46774}from'fs/promises';import*as _0x15a878 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x1788a9={}){const _0x228660={_0x50363f:0x5e3,_0x467928:0x511,_0x2c2bdd:0x565,_0x10f6e7:0x1c3,_0x585e45:0x201,_0x3d3cd8:0x23b,_0x4d6888:0x240,_0xae2803:0x1b2,_0x10d5a0:0x243,_0xeb0047:0x549,_0x2ad266:0x5ad,_0x24daae:0x5b3,_0x12832e:0x5a0,_0x3d193c:0x557,_0x40f8c5:0x595,_0x1c5162:0x5c4,_0x1ad93f:0x119,_0x4d60ae:0x156,_0x12834d:0x5b1,_0x143d39:0x5a5,_0x2b7ba0:0x202,_0x3c1baf:0x12c,_0x56f039:0x12e},_0x4bab7f={_0x29b76d:0x4d0,_0x257b0f:0x439,_0x409857:0x4da,_0x524cb8:0x1d6,_0x3f50f5:0xed,_0x7ba9ef:0x10f,_0xfb4604:0xd1,_0x59ef0d:0x53c,_0x3f47bd:0xf5,_0x187719:0x1ce,_0x3fef69:0x4d0,_0x1ca8a9:0x55e,_0x4501d6:0x48e,_0x50ae01:0x503,_0x17a01f:0x4aa,_0x2f8d9b:0x454,_0x2d3c59:0x4e0,_0x5d9fea:0x527,_0x9014f8:0x587,_0x263833:0x566,_0x171c14:0x57e,_0x43e282:0x496,_0x513747:0x42d,_0x531842:0x175,_0x20d6e0:0x152,_0x1c24fb:0x548,_0x2f8cf2:0x5db,_0x288099:0x54e,_0x52048c:0x4c2,_0x2409e1:0x588,_0x59a539:0x51c,_0x3ef6ec:0x148,_0x3f334b:0x11d,_0x491a70:0x10c,_0x38ca2b:0x124,_0x45e773:0x121,_0x4d7a4a:0x1ba,_0xd45173:0x127,_0x3b224d:0x60,_0x9b0fb6:0x239,_0x5616a8:0x15d,_0x2a1d0f:0x53e,_0x1e12be:0x4b9,_0x11840b:0x575,_0x492852:0x143,_0x478c75:0x18c,_0x59c0ae:0x131,_0x3fd6df:0x461,_0xee1a59:0x475,_0x21d193:0x48a,_0x186a9c:0x166,_0x471de2:0x1b0,_0x541584:0x1a1,_0x320015:0x147,_0x16b4fa:0x117,_0x595def:0xa9,_0x23ddd0:0x170,_0xd4b161:0x1eb,_0x3c0f1d:0x1a3,_0xff51f:0x549,_0x6f1f76:0x57c,_0x5228a8:0x4f2,_0x26dd5f:0x1d2,_0x116948:0x1a5,_0xdfef:0x19a},_0x467d1a={_0x1e9ba0:0x46},_0x25f936={_0x32702b:0x14a,_0x3442d1:0x85},_0x4700ac={_0x23fbf7:0xf1,_0x2698bb:0x656},_0x25ff23={_0x5a055a:0x84};function _0xfa9b5e(_0xe235a2,_0x54f8ae,_0x2549a5,_0x36c148){return _0x452c58(_0x36c148-0x350,_0x54f8ae,_0x2549a5-_0x25ff23._0x5a055a,_0x36c148-0x144);}const _0x203c36=_0x15a878['resolve'](_0x1788a9[_0xfa9b5e(_0x228660._0x50363f,_0x228660._0x467928,0x5aa,_0x228660._0x2c2bdd)]??process[_0x5dc7dc(-_0x228660._0x10f6e7,-_0x228660._0x585e45,-_0x228660._0x3d3cd8,-0x1be)]()),_0x4af676=_0x1788a9['limit']??0x64;function _0x5dc7dc(_0x568e3a,_0x34dcfd,_0x371d15,_0x59097d){return _0x44530c(_0x59097d,_0x34dcfd-_0x4700ac._0x23fbf7,_0x371d15-0x14c,_0x34dcfd- -_0x4700ac._0x2698bb);}const _0x223ef2=_0x1788a9['name']??_0x5dc7dc(-_0x228660._0x4d6888,-_0x228660._0xae2803,-_0x228660._0x10d5a0,-0x23c);return defineTool({'name':_0x223ef2,'description':_0xfa9b5e(_0x228660._0xeb0047,_0x228660._0x2ad266,0x5d0,_0x228660._0x24daae),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0xfa9b5e(0x5a7,_0x228660._0x12832e,_0x228660._0x3d193c,0x5c4)},'path':{'type':_0xfa9b5e(0x58d,0x549,_0x228660._0x40f8c5,_0x228660._0x1c5162)},'include':{'type':_0x5dc7dc(-_0x228660._0x1ad93f,-_0x228660._0x4d60ae,-0x1e3,-0x185)},'limit':{'type':_0xfa9b5e(_0x228660._0x12834d,_0x228660._0x143d39,0x605,_0x228660._0x12832e)},'context':{'type':'number'}},'required':[_0x5dc7dc(-_0x228660._0x2b7ba0,-0x1c5,-_0x228660._0x3c1baf,-_0x228660._0x56f039)]},async *'execute'(_0x12dcaf){if(_0x12dcaf[_0x459a19(_0x4bab7f._0x29b76d,_0x4bab7f._0x257b0f,0x4cf,_0x4bab7f._0x409857)]['trim']()[_0x11537f(0x146,0x1a9,0xc0,_0x4bab7f._0x524cb8)]===0x0)throw new ToolExecutionError(_0x11537f(_0x4bab7f._0x3f50f5,_0x4bab7f._0x7ba9ef,0xff,_0x4bab7f._0xfb4604),{});const _0x5109fb=resolveWorkspacePath(_0x203c36,_0x12dcaf['path']??'.'),_0x1937f2=await _0xe46774(_0x5109fb)['catch'](()=>null),_0x8367b9=_0x1937f2?.['isFile']()??![],_0x5e45b0=_0x1937f2?.[_0x459a19(0x522,_0x4bab7f._0x59ef0d,0x554,0x4c9)]()??![];if(!_0x8367b9&&!_0x5e45b0)throw new ToolExecutionError(_0x459a19(0x498,0x45f,0x445,0x4e9)+(_0x12dcaf['path']??'.'),{'path':_0x12dcaf['path']??'.'});function _0x459a19(_0x8d475b,_0x38399f,_0x49768a,_0x3e297c){return _0xfa9b5e(_0x8d475b-0x13c,_0x38399f,_0x49768a-_0x25f936._0x32702b,_0x8d475b- -_0x25f936._0x3442d1);}const _0x5ca0f9=_0x12dcaf[_0x11537f(0x13d,0x15f,_0x4bab7f._0x3f47bd,_0x4bab7f._0x187719)]??_0x4af676,_0x3b33c6=Math[_0x459a19(0x56d,0x5af,0x598,0x56a)](0x1,Math[_0x459a19(0x512,0x53d,0x54e,0x584)](_0x5ca0f9)),_0xee30ba=await search({'cwd':_0x5e45b0?_0x5109fb:_0x15a878['dirname'](_0x5109fb),'pattern':_0x12dcaf[_0x459a19(_0x4bab7f._0x3fef69,0x4dc,_0x4bab7f._0x1ca8a9,_0x4bab7f._0x4501d6)],'glob':_0x5e45b0?_0x12dcaf['include']:void 0x0,'limit':_0x3b33c6,'file':_0x8367b9?_0x5109fb:void 0x0,'context':_0x12dcaf['context']}),_0x5dd5ad=new Map();for(const _0x3aeccb of _0xee30ba){if(!_0x5dd5ad['has'](_0x3aeccb['filePath'])){const _0x5a2b4c=await _0xe46774(_0x3aeccb[_0x459a19(0x527,0x4be,0x578,_0x4bab7f._0x50ae01)])['catch'](()=>null);_0x5dd5ad[_0x459a19(_0x4bab7f._0x17a01f,0x53a,_0x4bab7f._0x2f8d9b,_0x4bab7f._0x2d3c59)](_0x3aeccb[_0x459a19(_0x4bab7f._0x5d9fea,_0x4bab7f._0x9014f8,0x4e9,0x501)],{'matches':[],'mtime':_0x5a2b4c?.['mtimeMs']??0x0});}_0x5dd5ad['get'](_0x3aeccb[_0x459a19(_0x4bab7f._0x5d9fea,_0x4bab7f._0x263833,0x5c1,_0x4bab7f._0x171c14)])?.[_0x459a19(_0x4bab7f._0x43e282,_0x4bab7f._0x513747,0x404,0x473)][_0x11537f(_0x4bab7f._0x531842,_0x4bab7f._0x20d6e0,0xe8,0x126)](_0x3aeccb);}const _0x4c6bb7=[..._0x5dd5ad[_0x459a19(_0x4bab7f._0x1c24fb,0x54e,0x5a7,_0x4bab7f._0x2f8cf2)]()][_0x459a19(_0x4bab7f._0x288099,_0x4bab7f._0x52048c,_0x4bab7f._0x2409e1,_0x4bab7f._0x59a539)]((_0x2d2002,_0x306132)=>_0x306132[0x1]['mtime']-_0x2d2002[0x1][_0x459a19(0x481,0x4b5,0x46a,0x4c3)]),_0x75dffe=_0xee30ba['filter'](_0x366a1f=>!_0x366a1f['isContext'])['length'];function _0x11537f(_0xb35c77,_0x27f61c,_0x13fe1f,_0x15b8bb){return _0xfa9b5e(_0xb35c77-0x11e,_0x27f61c,_0x13fe1f-_0x467d1a._0x1e9ba0,_0xb35c77- -0x3d8);}const _0xdd4246=_0xee30ba['length']>=_0x3b33c6,_0xbf7630=_0x8367b9?_0x15a878['dirname'](_0x5109fb):_0x5109fb;let _0x50a197='';if(_0xee30ba[_0x11537f(0x146,_0x4bab7f._0x3ef6ec,_0x4bab7f._0x3f334b,_0x4bab7f._0x491a70)]===0x0)_0x50a197=_0x11537f(_0x4bab7f._0x38ca2b,_0x4bab7f._0x45e773,_0x4bab7f._0x4d7a4a,0x8e)+_0x12dcaf[_0x11537f(0x17d,0x1f6,0x15c,_0x4bab7f._0xd45173)];else{_0x50a197='Found\x20'+_0x75dffe+_0x11537f(0xf1,0xb1,_0x4bab7f._0x3b224d,0xb3)+(_0x75dffe===0x1?'':'es')+'\x0a';for(const [_0x50408c,_0x2cde14]of _0x4c6bb7){const _0x18ded4=_0x8367b9?_0x15a878[_0x11537f(0x1cb,0x211,_0x4bab7f._0x9b0fb6,_0x4bab7f._0x5616a8)](_0x50408c):_0x15a878[_0x459a19(_0x4bab7f._0x2a1d0f,_0x4bab7f._0x1e12be,0x585,_0x4bab7f._0x11840b)](_0xbf7630,_0x50408c);_0x50a197+='\x0a'+_0x18ded4+':\x0a';for(const _0x5637c8 of _0x2cde14[_0x11537f(_0x4bab7f._0x492852,_0x4bab7f._0x478c75,0x14a,_0x4bab7f._0x59c0ae)]){const _0x285f40=_0x5637c8[_0x459a19(0x475,0x405,0x4fe,_0x4bab7f._0x3fd6df)]['length']>MAX_LINE_LENGTH?_0x5637c8[_0x459a19(_0x4bab7f._0xee1a59,_0x4bab7f._0x21d193,0x4b8,0x465)][_0x11537f(_0x4bab7f._0x3ef6ec,_0x4bab7f._0x186a9c,0xfc,_0x4bab7f._0x471de2)](0x0,MAX_LINE_LENGTH)+'...':_0x5637c8['lineText'],_0x51d503=_0x5637c8[_0x11537f(_0x4bab7f._0x541584,_0x4bab7f._0x320015,_0x4bab7f._0x16b4fa,0x164)]?'\x20\x20':'>\x20';_0x50a197+=_0x51d503+_0x11537f(0x10f,0x8d,_0x4bab7f._0x595def,0x19c)+_0x5637c8['lineNum']+':\x20'+_0x285f40+'\x0a';}}_0xdd4246&&(_0x50a197+=_0x11537f(0x180,0x185,_0x4bab7f._0x23ddd0,0x1e7));}const _0x51c536={'searchPath':_0x15a878[_0x11537f(_0x4bab7f._0xd4b161,0x1bf,_0x4bab7f._0x3c0f1d,0x1bb)](_0x203c36,_0x5109fb)||'.','pattern':_0x12dcaf['pattern'],'matchCount':_0x75dffe,'fileCount':_0x5dd5ad['size'],'truncated':_0xdd4246};return _0x5e45b0&&_0x12dcaf['include']!==void 0x0&&(_0x51c536[_0x459a19(0x53a,_0x4bab7f._0xff51f,_0x4bab7f._0x6f1f76,_0x4bab7f._0x5228a8)]=_0x12dcaf['include']),yield createToolOutput(_0x50a197[_0x11537f(_0x4bab7f._0x26dd5f,_0x4bab7f._0x116948,_0x4bab7f._0xdfef,0x1bd)](),_0x51c536),void 0x0;}});}import{readdir,readFile as _0x2aaf1e,stat as _0x35254f}from'fs/promises';import*as _0x4e95f2 from'path';import*as _0x4cda1b from'yaml';async function countTextLines(_0x32dac5){const _0x13d903={_0x5d76cd:0x56d,_0x44a5b5:0x62b,_0x4b8aa6:0x598,_0x1079fb:0x473,_0x1b7bb7:0x4b1,_0x3b1e1e:0x4ae,_0x4ede02:0x4ab,_0x20c550:0x4ce,_0x231469:0x4fc,_0x15fe76:0x448,_0x1bfd90:0x4dc},_0x5535ae={_0x51ba82:0x101},_0x1e48e7=await _0x2aaf1e(_0x32dac5)[_0x19b242(_0x13d903._0x5d76cd,_0x13d903._0x44a5b5,0x5a4,_0x13d903._0x4b8aa6)](()=>null);function _0x48f51b(_0xf33da,_0x4dc5b0,_0x21741e,_0x1262b5){return _0x452c58(_0xf33da-_0x5535ae._0x51ba82,_0x1262b5,_0x21741e-0xf9,_0x1262b5-0x77);}function _0x19b242(_0x4301fc,_0x9e5664,_0x5a531e,_0xda2f5b){return _0x452c58(_0xda2f5b-0x30e,_0x5a531e,_0x5a531e-0x17a,_0xda2f5b-0x2c);}if(!_0x1e48e7||isProbablyBinary(_0x1e48e7))return void 0x0;return _0x1e48e7[_0x19b242(_0x13d903._0x1079fb,_0x13d903._0x1b7bb7,0x4ae,0x4f8)](_0x19b242(_0x13d903._0x3b1e1e,_0x13d903._0x4ede02,_0x13d903._0x20c550,0x508))['split'](/\r?\n/)[_0x19b242(_0x13d903._0x231469,0x4c2,_0x13d903._0x15fe76,_0x13d903._0x1bfd90)];}function createLsTool(_0x5dcd79={}){const _0x57e791={_0x2e7737:0x73,_0x5a4b61:0xf1,_0x68b2b6:0x194,_0x312f1d:0x151,_0x5c5a5a:0x145,_0x58a806:0x129,_0x17edfc:0x150,_0x50fa11:0x26,_0x4d9924:0x53,_0x5a49af:0xba,_0x52cf29:0x9a,_0x4c4a0b:0x137,_0x2c7084:0xc5,_0x5ed649:0xbe},_0x291679={_0x4657e8:0x297,_0x1ecf99:0x220,_0x226456:0x2aa,_0x15eea5:0x525,_0x195ffd:0x490,_0x277ec0:0x409,_0x303752:0x2ef,_0x3a84f7:0x34a,_0x5401bb:0x543,_0x1088eb:0x452,_0x31afb1:0x4a8,_0x1e5616:0x460,_0x37d764:0x31a,_0x5a01ad:0x35f,_0x4fe680:0x2c3,_0x2fcfcf:0x388,_0x3a0ff2:0x32a,_0x1394ec:0x2e6,_0x36451d:0x388,_0x4818a2:0x34a,_0x557f57:0x3a7,_0x4002f9:0x3a0,_0x28b503:0x356,_0x3197a0:0x40d,_0x1cbc2e:0x38f,_0x2f1910:0x2f7,_0x3bc878:0x2bd,_0x117f6f:0x3de,_0x188750:0x46b,_0x2f0d54:0x3f9,_0x4169d2:0x46a,_0x29d7af:0x35e,_0x249025:0x306,_0x138c60:0x2f3,_0x4592f9:0x370,_0x3b33a7:0x3d4,_0x5057cf:0x44b,_0x1aaae4:0x3e8,_0x46db32:0x2ed,_0x59e568:0x2c1,_0x9ed977:0x3d8,_0x56c91f:0x38a},_0x51d1f2={_0x28f7ad:0x46},_0x289064={_0xdf222b:0x108},_0x52d53a={_0x3a3150:0xeb};function _0x121791(_0x322ef6,_0x554cf8,_0x4b6e8b,_0x50c2b3){return _0x452c58(_0x50c2b3- -0x30e,_0x554cf8,_0x4b6e8b-0x1dd,_0x50c2b3-0xc4);}const _0x3d3a6e=_0x4e95f2[_0x121791(-_0x57e791._0x2e7737,-0x54,-_0x57e791._0x5a4b61,-0x7c)](_0x5dcd79['defaultCwd']??process[_0x121791(-_0x57e791._0x68b2b6,-0x11a,-_0x57e791._0x312f1d,-_0x57e791._0x5c5a5a)]()),_0x5ad72d=_0x5dcd79[_0x121791(-0x1d9,-_0x57e791._0x58a806,-0x118,-_0x57e791._0x17edfc)]??'Ls';function _0x10111e(_0x4d1d49,_0x11a25f,_0x252332,_0x2865b6){return _0x44530c(_0x2865b6,_0x11a25f-0x13b,_0x252332-_0x52d53a._0x3a3150,_0x4d1d49- -0x348);}return defineTool({'name':_0x5ad72d,'description':'List\x20files\x20and\x20directories\x20in\x20a\x20workspace\x20directory.','inputSchema':{'type':'object','properties':{'path':{'type':_0x121791(-_0x57e791._0x50fa11,-_0x57e791._0x4d9924,-_0x57e791._0x5a49af,-_0x57e791._0x52cf29)},'limit':{'type':_0x121791(-_0x57e791._0x4c4a0b,-_0x57e791._0x2c7084,-0xc5,-_0x57e791._0x5ed649)}}},async *'execute'(_0x547abc){const _0x23ddad=_0x547abc[_0x5099c0(_0x291679._0x4657e8,0x322,_0x291679._0x1ecf99,_0x291679._0x226456)]??'.',_0x1b9aa6=resolveWorkspacePath(_0x3d3a6e,_0x23ddad),_0x2e75eb=await _0x35254f(_0x1b9aa6)[_0x4610e1(0x521,_0x291679._0x15eea5,_0x291679._0x195ffd,_0x291679._0x277ec0)](()=>null);if(!_0x2e75eb?.[_0x5099c0(0x39f,0x3aa,_0x291679._0x303752,_0x291679._0x3a84f7)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x23ddad,{'path':_0x23ddad});const _0x36b27f=_0x547abc['limit']??0x3e8,_0x15fa62=Math['min'](Math[_0x4610e1(_0x291679._0x5401bb,_0x291679._0x1088eb,_0x291679._0x31afb1,_0x291679._0x1e5616)](Math['trunc'](_0x36b27f),0x1),0x2710),_0xb21956=await readdir(_0x1b9aa6),_0xdaa908=[];for(const _0x20f2d1 of _0xb21956[_0x5099c0(0x2ee,_0x291679._0x37d764,_0x291679._0x5a01ad,_0x291679._0x4fe680)](0x0,_0x15fa62)){const _0x3cf2c3=_0x4e95f2[_0x4610e1(_0x291679._0x2fcfcf,_0x291679._0x3a0ff2,0x399,0x35c)](_0x1b9aa6,_0x20f2d1),_0x4cf7a6=await _0x35254f(_0x3cf2c3)['catch'](()=>null);if(!_0x4cf7a6)continue;let _0x520c0c='other';if(_0x4cf7a6['isFile']())_0x520c0c=_0x5099c0(0x288,0x32e,0x328,_0x291679._0x1394ec);else{if(_0x4cf7a6[_0x5099c0(0x3bb,_0x291679._0x36451d,0x37c,_0x291679._0x4818a2)]())_0x520c0c=_0x4610e1(_0x291679._0x557f57,0x39f,_0x291679._0x4002f9,_0x291679._0x28b503);else{if(_0x4cf7a6['isSymbolicLink']())_0x520c0c=_0x4610e1(_0x291679._0x3197a0,_0x291679._0x1cbc2e,0x407,0x3b3);}}const _0x1039a1={'name':_0x20f2d1,'type':_0x520c0c,'size':_0x4cf7a6['size'],'mtime':_0x4cf7a6[_0x4610e1(_0x291679._0x195ffd,0x498,0x491,0x529)],'mode':_0x4cf7a6[_0x5099c0(0x28f,_0x291679._0x2f1910,0x2dc,_0x291679._0x3bc878)]},_0x41bd4a=_0x520c0c===_0x4610e1(_0x291679._0x117f6f,_0x291679._0x188750,_0x291679._0x2f0d54,_0x291679._0x4169d2)?await countTextLines(_0x3cf2c3):void 0x0;if(_0x41bd4a!==void 0x0)_0x1039a1['lines']=_0x41bd4a;_0xdaa908[_0x5099c0(_0x291679._0x29d7af,0x365,_0x291679._0x249025,0x2f0)](_0x1039a1);}_0xdaa908[_0x5099c0(0x379,0x36f,_0x291679._0x138c60,0x376)]((_0x45309c,_0x2bee62)=>_0x45309c[_0x5099c0(0x2f0,0x2d6,0x314,0x2b1)][_0x4610e1(0x486,0x41e,0x49c,0x408)](_0x2bee62[_0x5099c0(0x251,0x21a,0x30e,0x2b1)]));function _0x4610e1(_0x323de6,_0x5c8634,_0x157a4a,_0x1b7994){return _0x121791(_0x323de6-_0x289064._0xdf222b,_0x323de6,_0x157a4a-0xd1,_0x157a4a-0x514);}const _0x1311a4={'path':_0x23ddad,'total':_0xdaa908[_0x4610e1(_0x291679._0x4592f9,0x399,_0x291679._0x3b33a7,0x3e7)],'truncated':_0xb21956['length']>_0x15fa62,'entries':_0xdaa908};function _0x5099c0(_0x39008b,_0x3f0ee3,_0xda2d25,_0x4362aa){return _0x121791(_0x39008b-0x1b4,_0x3f0ee3,_0xda2d25-_0x51d1f2._0x28f7ad,_0x4362aa-0x401);}return yield createToolOutput(_0x4cda1b['stringify'](_0x1311a4,{'indent':0x2,'lineWidth':0x0})[_0x4610e1(0x3e1,_0x291679._0x5057cf,_0x291679._0x1aaae4,0x461)](),{'path':_0x23ddad,'total':_0xdaa908[_0x5099c0(_0x291679._0x46db32,0x22c,0x2eb,_0x291679._0x59e568)],'truncated':_0xb21956[_0x4610e1(_0x291679._0x9ed977,_0x291679._0x56c91f,0x3d4,0x3a2)]>_0x15fa62,'limit':_0x15fa62,'entries':_0xdaa908}),void 0x0;}});}import{randomUUID}from'crypto';import{mkdir as _0x267ad9,readFile as _0x1ffa19,writeFile as _0x192900}from'fs/promises';import{join as _0x50c478}from'path';function sanitizeStorageKey(_0x5bccd6){const _0x3000bd={_0x5d9734:0xcd,_0xa537db:0x100,_0x555325:0xf5,_0x44d902:0x1b8,_0x443440:0x75,_0xdc73f4:0x10b},_0x3ccaf3={_0x134807:0x171,_0x13ad88:0x1d4,_0x15091c:0x2e9};function _0x5abfd6(_0x5b2724,_0x1cde30,_0x474794,_0x15e2c5){return _0x44530c(_0x474794,_0x1cde30-0x55,_0x474794-0xa4,_0x5b2724- -0x5b9);}function _0x4de0b2(_0x222ffa,_0x40d530,_0x52166c,_0x56a09a){return _0x44530c(_0x52166c,_0x40d530-_0x3ccaf3._0x134807,_0x52166c-_0x3ccaf3._0x13ad88,_0x56a09a- -_0x3ccaf3._0x15091c);}return _0x5bccd6[_0x5abfd6(-0x158,-_0x3000bd._0x5d9734,-0x164,-_0x3000bd._0xa537db)](/[^a-zA-Z0-9_]+/g,'_')[_0x4de0b2(0x1dc,_0x3000bd._0x555325,_0x3000bd._0x44d902,0x178)](/^_+|_+$/g,'')||_0x5abfd6(-0xab,-_0x3000bd._0x443440,-0xb5,-_0x3000bd._0xdc73f4);}function storagePath(_0x43867a){const _0x475e4f={_0x36560a:0x332,_0x420503:0x2e8,_0x427998:0x1d6,_0x572258:0x185,_0x400ea7:0x1b9,_0x5efa25:0x202,_0x10358a:0x1ed,_0x59c0aa:0x236,_0x3ba750:0x18e,_0x2e59ab:0x1ed,_0x24a26e:0x367},_0x797ac4={_0x2173e1:0x16a,_0x11f843:0x32d},_0x549d81={_0x459c8d:0xe5};function _0x45588e(_0x35f610,_0x5f441f,_0x1621b4,_0x38aa43){return _0x452c58(_0x38aa43-0x87,_0x1621b4,_0x1621b4-0x148,_0x38aa43-_0x549d81._0x459c8d);}function _0x1089b(_0x4563b3,_0x2650a6,_0x3b31ee,_0x443d41){return _0x44530c(_0x443d41,_0x2650a6-_0x797ac4._0x2173e1,_0x3b31ee-0xad,_0x4563b3- -_0x797ac4._0x11f843);}const _0x5cf90a=sanitizeStorageKey(_0x43867a[_0x45588e(0x319,_0x475e4f._0x36560a,0x336,_0x475e4f._0x420503)][_0x1089b(_0x475e4f._0x427998,_0x475e4f._0x572258,0x25f,_0x475e4f._0x400ea7)]?.[_0x1089b(_0x475e4f._0x5efa25,0x26a,_0x475e4f._0x10358a,_0x475e4f._0x59c0aa)]??_0x43867a[_0x1089b(_0x475e4f._0x3ba750,_0x475e4f._0x2e59ab,0x107,0x166)]);return _0x50c478(_0x43867a['storageDir'],_0x5cf90a+_0x45588e(0x303,0x297,_0x475e4f._0x24a26e,0x2dd));}async function readStore(_0x6891f4){const _0x5581bb={_0x105ba4:0x1b4,_0x1aee6f:0x40c,_0x5efc19:0x3d5,_0x52a83c:0x457},_0x250ecc={_0x4ce8d0:0x9a},_0x56791c={_0x2b12b8:0x2dc};function _0x2ffdc9(_0x30e580,_0x4a4a22,_0x2ee13a,_0x3db9e9){return _0x44530c(_0x4a4a22,_0x4a4a22-0x1be,_0x2ee13a-0x49,_0x30e580- -_0x56791c._0x2b12b8);}function _0x46fbca(_0x50ed74,_0x222973,_0x4be5a0,_0x4ae105){return _0x44530c(_0x50ed74,_0x222973-_0x250ecc._0x4ce8d0,_0x4be5a0-0x14b,_0x4be5a0- -0x22);}try{return JSON['parse'](await _0x1ffa19(_0x6891f4,_0x2ffdc9(0x1aa,_0x5581bb._0x105ba4,0x14f,0x245)));}catch(_0x29ce01){if(_0x29ce01 instanceof Error&&_0x46fbca(0x387,0x384,_0x5581bb._0x1aee6f,_0x5581bb._0x5efc19)in _0x29ce01&&_0x29ce01[_0x46fbca(_0x5581bb._0x52a83c,0x456,0x40c,0x3e0)]==='ENOENT')return{};throw _0x29ce01;}}async function writeStore(_0x126d6e,_0x216463){const _0x1c41ae={_0x36b5c3:0x289,_0x9a10d9:0x2a3};await _0x267ad9(_0x50c478(_0x126d6e,'..'),{'recursive':!![]});function _0x1a708f(_0x5567f8,_0x1e0e38,_0x34b3ea,_0x131b66){return _0x44530c(_0x131b66,_0x1e0e38-0x14,_0x34b3ea-0x101,_0x1e0e38- -0x243);}await _0x192900(_0x126d6e,JSON[_0x1a708f(0x29d,0x28c,_0x1c41ae._0x36b5c3,_0x1c41ae._0x9a10d9)](_0x216463,null,0x2),'utf8');}async function updateStore(_0x44c32d,_0x1fc40c){const _0x2af43f=await readStore(_0x44c32d);_0x1fc40c(_0x2af43f),await writeStore(_0x44c32d,_0x2af43f);}function createMcpOAuthProvider(_0x5a61f0){const _0x17f9f7={_0x10d8b3:0x319,_0x231b02:0x2cd,_0x22d2ba:0x311,_0x41f4f9:0x21a,_0x51a27d:0x109,_0x506b6a:0xfd,_0x2ec824:0xfb,_0x172a37:0x180,_0x1a8347:0x172,_0xf783bd:0x171,_0xb64f00:0x2d2,_0x4a50a:0x203,_0xc19539:0x118,_0x423fd7:0x7d,_0x2d0564:0x14b,_0x180bd2:0x1ed,_0xbee367:0x20e,_0x1fd093:0x257,_0xd30b7b:0x19c,_0x26ae58:0x1f6,_0x52ddb7:0x167},_0x2f8bc5={_0x3d584b:0x2fa,_0x307a1c:0x33a,_0x345e85:0x369,_0x54807e:0x2f6},_0x2620b2={_0x2a6d8f:0x58,_0x35da57:0xc1},_0x557db4={_0x217e24:0x280,_0x5e42f2:0x224,_0x46e93d:0x204},_0x3e65e3={_0x5644de:0xab,_0x5824bb:0x70,_0x4a77bc:0x49a,_0x2e23e0:0x3dc,_0x4e4488:0xae,_0x480e2f:0x322,_0x4220c9:0xff,_0x37eab2:0x99,_0x4b4085:0x79,_0x52d8e5:0x3c,_0x494d45:0x85,_0x138dad:0x34d,_0x1644e7:0x387,_0x184d22:0x3ad,_0x4ff388:0x378,_0x3c1f1a:0x2ac,_0x29ed6b:0xae,_0x3bcb95:0xd3,_0x241ca3:0xba,_0xde70b5:0x35c,_0x50f77f:0x38f},_0x5e41f1={_0x349a8e:0x194,_0x56dc0a:0x226,_0x3178c7:0x142,_0x50f0ff:0x1cb},_0x47d995={_0x5036ec:0x27,_0x262695:0x1f1},_0x4c2b34={_0x240df9:0xbc,_0x5ef5a7:0x88},_0x255765={_0xab91e9:0xde,_0x5698a2:0xf1},_0x1d941e={_0x3488b9:0x42e},_0x2ab88f={_0x1ca618:0x1d2,_0x4ef811:0x15f},_0x5edbd8={_0x34e820:0x568},_0x2fb136={_0x367d66:0x152},_0x41d547={_0x2e53b3:0xdb},_0x190595={_0x21b897:0x182,_0x4122a1:0x1e9,_0x4d0854:0x316};function _0x18cc83(_0x119467,_0x2895a6,_0x1b888c,_0x5cfeb8){return _0x44530c(_0x1b888c,_0x2895a6-_0x190595._0x21b897,_0x1b888c-_0x190595._0x4122a1,_0x119467- -_0x190595._0x4d0854);}const _0x28e601=storagePath(_0x5a61f0),_0x14e684=_0x5a61f0['config'][_0x142c03(0x318,_0x17f9f7._0x10d8b3,_0x17f9f7._0x231b02,_0x17f9f7._0x22d2ba)]?.[_0x18cc83(0x213,0x228,_0x17f9f7._0x41f4f9,0x1ce)]?.[_0x18cc83(_0x17f9f7._0x51a27d,0x198,0x198,0xd7)]('\x20');function _0x142c03(_0x31965e,_0x42ba54,_0x23ab87,_0x5864bc){return _0x452c58(_0x31965e-0xa1,_0x23ab87,_0x23ab87-_0x41d547._0x2e53b3,_0x5864bc-0x125);}const _0x60a0fd={'client_name':_0x18cc83(0x10c,_0x17f9f7._0x506b6a,_0x17f9f7._0x2ec824,_0x17f9f7._0x172a37),'redirect_uris':[_0x5a61f0[_0x18cc83(0x1d4,_0x17f9f7._0x1a8347,_0x17f9f7._0xf783bd,0x236)]],'grant_types':[_0x18cc83(0x127,0xa0,0x11e,_0x17f9f7._0x51a27d),_0x142c03(0x288,_0x17f9f7._0xb64f00,0x295,_0x17f9f7._0x4a50a)],'response_types':[_0x18cc83(_0x17f9f7._0xc19539,_0x17f9f7._0x423fd7,_0x17f9f7._0x2d0564,0x19e)],'token_endpoint_auth_method':'client_secret_post',..._0x14e684?{'scope':_0x14e684}:{}};return{'clientMetadataUrl':_0x5a61f0['config'][_0x18cc83(_0x17f9f7._0x180bd2,_0x17f9f7._0xbee367,_0x17f9f7._0x1fd093,_0x17f9f7._0xd30b7b)]?.[_0x18cc83(_0x17f9f7._0x26ae58,_0x17f9f7._0x52ddb7,0x1cf,0x1d0)],get 'redirectUrl'(){return _0x5a61f0['callbackUrl'];},get 'clientMetadata'(){return _0x60a0fd;},async 'state'(){const _0x36c945={_0x255536:0x3ee,_0x3b4bdd:0x40a,_0x34945b:0x421};function _0x429650(_0x21871e,_0x242298,_0x5eb0f3,_0x8473dc){return _0x18cc83(_0x5eb0f3- -_0x2fb136._0x367d66,_0x242298-0xea,_0x242298,_0x8473dc-0x127);}const _0x4dfa76=await readStore(_0x28e601);if(_0x4dfa76[_0x429650(0x10,-0x93,-0x15,0x14)])return _0x4dfa76['state'];const _0x322d93=randomUUID();return await updateStore(_0x28e601,_0x471f39=>{function _0x33fe60(_0x48fed3,_0x463f03,_0x5ce59d,_0x4f1f45){return _0x429650(_0x48fed3-0x10d,_0x48fed3,_0x5ce59d-0x41f,_0x4f1f45-0xd1);}_0x471f39[_0x33fe60(_0x36c945._0x255536,0x3cf,_0x36c945._0x3b4bdd,_0x36c945._0x34945b)]=_0x322d93;}),_0x322d93;},async 'clientInformation'(){return(await readStore(_0x28e601))['clientInformation'];},async 'saveClientInformation'(_0x334b85){await updateStore(_0x28e601,_0x135e0a=>{const _0x52ea94={_0xcf5202:0x35b};function _0x4de7f7(_0x26f40d,_0x501ab4,_0x461742,_0x2a3191){return _0x5314(_0x461742-_0x52ea94._0xcf5202,_0x2a3191);}_0x135e0a[_0x4de7f7(0x580,0x5ac,0x562,_0x5edbd8._0x34e820)]=_0x334b85;});},async 'tokens'(){function _0x40c8e2(_0x43f0e0,_0x2c1551,_0x39d6c6,_0x32b335){return _0x18cc83(_0x43f0e0-0x1f7,_0x2c1551-_0x2ab88f._0x1ca618,_0x39d6c6,_0x32b335-_0x2ab88f._0x4ef811);}return(await readStore(_0x28e601))[_0x40c8e2(0x3da,0x376,_0x1d941e._0x3488b9,0x401)];},async 'saveTokens'(_0x4469df){await updateStore(_0x28e601,_0x458fa0=>{_0x458fa0['tokens']=_0x4469df;});},async 'redirectToAuthorization'(_0x4e79f4){function _0x2af5b0(_0x29f55e,_0x44a7ad,_0x1d85ba,_0x36e5b7){return _0x18cc83(_0x36e5b7- -0x13f,_0x44a7ad-_0x255765._0xab91e9,_0x44a7ad,_0x36e5b7-_0x255765._0x5698a2);}await _0x5a61f0[_0x2af5b0(0x81,0xcb,_0x4c2b34._0x240df9,_0x4c2b34._0x5ef5a7)](_0x4e79f4);},async 'saveCodeVerifier'(_0x441f3f){const _0x3d429d={_0x4f92a2:0x274,_0x4a4ea7:0x2d8,_0x38efb0:0x1f3,_0x35002b:0x2a4};await updateStore(_0x28e601,_0x38a5df=>{const _0x565e5c={_0x34c3ca:0x7b};function _0x33ce1a(_0x60b9fe,_0x289f30,_0x599c32,_0x2b014f){return _0x5314(_0x60b9fe-_0x565e5c._0x34c3ca,_0x599c32);}_0x38a5df[_0x33ce1a(_0x3d429d._0x4f92a2,_0x3d429d._0x4a4ea7,_0x3d429d._0x38efb0,_0x3d429d._0x35002b)]=_0x441f3f;});},async 'codeVerifier'(){const _0x204c3a={_0x9faba9:0xd8};function _0x8b2aae(_0x99b859,_0x5ae9a8,_0x2c7272,_0x34f1ba){return _0x142c03(_0x5ae9a8- -0x2,_0x5ae9a8-_0x47d995._0x5036ec,_0x2c7272,_0x34f1ba-_0x47d995._0x262695);}function _0x3ff362(_0x291cbb,_0x31f629,_0x3594f0,_0x5ad128){return _0x18cc83(_0x291cbb-0x2d,_0x31f629-0x1e8,_0x5ad128,_0x5ad128-_0x204c3a._0x9faba9);}const _0x11fbf0=(await readStore(_0x28e601))[_0x3ff362(_0x5e41f1._0x349a8e,0x1da,_0x5e41f1._0x56dc0a,_0x5e41f1._0x3178c7)];if(!_0x11fbf0)throw new Error(_0x3ff362(_0x5e41f1._0x50f0ff,0x146,0x1f8,0x249));return _0x11fbf0;},async 'invalidateCredentials'(_0x8aa823){await updateStore(_0x28e601,_0x29b6f6=>{(_0x8aa823===_0x3b12f2(-0x13f,-_0x3e65e3._0x5644de,-0x49,-_0x3e65e3._0x5824bb)||_0x8aa823===_0x34aa92(0x424,_0x3e65e3._0x4a77bc,_0x3e65e3._0x2e23e0,0x430))&&(_0x29b6f6[_0x3b12f2(0x51,-0x48,-_0x3e65e3._0x4e4488,-0x87)]=void 0x0);(_0x8aa823==='all'||_0x8aa823==='tokens')&&(_0x29b6f6['tokens']=void 0x0);(_0x8aa823===_0x34aa92(_0x3e65e3._0x480e2f,0x399,0x32d,0x389)||_0x8aa823===_0x3b12f2(-_0x3e65e3._0x4220c9,-_0x3e65e3._0x37eab2,-_0x3e65e3._0x4b4085,-_0x3e65e3._0x52d8e5))&&(_0x29b6f6[_0x3b12f2(-0xb4,-0x56,-0x41,-_0x3e65e3._0x494d45)]=void 0x0,_0x29b6f6[_0x34aa92(_0x3e65e3._0x138dad,_0x3e65e3._0x1644e7,0x378,_0x3e65e3._0x184d22)]=void 0x0);function _0x3b12f2(_0x36c38e,_0x43b58b,_0x2936a5,_0x4ef8f9){return _0x5314(_0x43b58b- -0x24f,_0x36c38e);}function _0x34aa92(_0x4842a2,_0xd24712,_0x44d434,_0xc8453b){return _0x5314(_0x4842a2-0x17e,_0xc8453b);}(_0x8aa823===_0x34aa92(0x322,_0x3e65e3._0x4ff388,0x323,_0x3e65e3._0x3c1f1a)||_0x8aa823===_0x3b12f2(-_0x3e65e3._0x29ed6b,-_0x3e65e3._0x3bcb95,-_0x3e65e3._0x241ca3,-0x4c))&&(_0x29b6f6[_0x34aa92(_0x3e65e3._0xde70b5,0x302,0x336,_0x3e65e3._0x50f77f)]=void 0x0);});},async 'saveDiscoveryState'(_0x1ab71e){await updateStore(_0x28e601,_0x21aef8=>{function _0x4584d9(_0xf35857,_0x25fb52,_0x5d0be,_0x4bd985){return _0x5314(_0xf35857-0x61,_0x25fb52);}_0x21aef8[_0x4584d9(0x23f,_0x557db4._0x217e24,_0x557db4._0x5e42f2,_0x557db4._0x46e93d)]=_0x1ab71e;});},async 'discoveryState'(){function _0x242418(_0x2c9f26,_0x3d89ab,_0x49cae5,_0x11cdf4){return _0x142c03(_0x2c9f26-0x83,_0x3d89ab-_0x2620b2._0x2a6d8f,_0x11cdf4,_0x11cdf4-_0x2620b2._0x35da57);}return(await readStore(_0x28e601))[_0x242418(_0x2f8bc5._0x3d584b,_0x2f8bc5._0x307a1c,_0x2f8bc5._0x345e85,_0x2f8bc5._0x54807e)];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function createMcpToolName(_0x47c48c,_0x1744b6){const _0x23e4fd={_0x574056:0x216,_0x7b2f73:0x177},_0x333f94={_0x427beb:0x10e,_0x2d7cdd:0x85,_0x3a142e:0x28f},_0x30d1a1={_0x8ab097:0x8b},_0x37bba5=_0x597549=>_0x597549[_0x3137db(0x11a,0x1a4,0x14a,0x19e)](/[^a-zA-Z0-9_]+/g,'_')[_0x3137db(0xc3,0x126,0x14a,0x147)](/^_+|_+$/g,'');function _0x3137db(_0x5b5773,_0x279205,_0xbaaaf5,_0x14cf43){return _0x452c58(_0xbaaaf5- -_0x30d1a1._0x8ab097,_0x279205,_0xbaaaf5-0x165,_0x14cf43-0xe7);}function _0x1bcd29(_0x46deb2,_0x26ed53,_0x51485d,_0x1dd653){return _0x44530c(_0x1dd653,_0x26ed53-_0x333f94._0x427beb,_0x51485d-_0x333f94._0x2d7cdd,_0x46deb2- -_0x333f94._0x3a142e);}return _0x3137db(_0x23e4fd._0x574056,0x1a3,0x20d,_0x23e4fd._0x7b2f73)+_0x37bba5(_0x47c48c)+'_'+_0x37bba5(_0x1744b6);}function isObject(_0x4ef533){const _0x2b9428={_0x42ff5c:0x1b,_0x165e77:0x14,_0x1c0560:0x31},_0x46cc06={_0x4ccab9:0x3d};function _0x1261c0(_0xa5bf37,_0x15c41e,_0xc85f71,_0x47bc2a){return _0x44530c(_0xa5bf37,_0x15c41e-_0x46cc06._0x4ccab9,_0xc85f71-0x17b,_0xc85f71- -0x4d9);}return typeof _0x4ef533==='object'&&_0x4ef533!==null&&!Array[_0x1261c0(_0x2b9428._0x42ff5c,-_0x2b9428._0x165e77,0x3b,_0x2b9428._0x1c0560)](_0x4ef533);}function toSupportedSchema(_0xeefc02){const _0x129cae={_0x40b38c:0xd7,_0x3fdc19:0xe4,_0x335a31:0x1a2,_0x25abb9:0xbc,_0x26405e:0x55,_0x212f24:0x12a,_0x54690c:0x19f,_0x5699f1:0x9d,_0x198a38:0x71,_0x3c9b98:0x49,_0x338a89:0x3e,_0x72f10e:0xa6,_0x4b60b5:0x96,_0xf43ac0:0x164,_0x355adc:0x1ae,_0x2e7a87:0x14e,_0x4b6f13:0x1ae,_0x403199:0x17a,_0x45ff23:0xb1,_0xaa6d8d:0x194,_0x1556fa:0x72,_0xcea98c:0x50,_0x5354e5:0xd6,_0x55ce21:0x120,_0x1cd84b:0xe5,_0x22e1ff:0xad,_0x3508b6:0x95,_0x44c325:0xa3,_0x668349:0x154,_0x14b574:0xe7},_0x49d47b={_0x530bb8:0x18a},_0x355f13={_0x101deb:0x192};if(!isObject(_0xeefc02))return void 0x0;if(_0xeefc02[_0x585cce(0xb9,0xc3,0x12c,0xcb)]===_0x11657b(_0x129cae._0x40b38c,0x141,_0x129cae._0x3fdc19,_0x129cae._0x335a31))return{'type':_0x585cce(_0x129cae._0x25abb9,_0x129cae._0x26405e,0x62,0xe2)};function _0x585cce(_0x4af6ed,_0x3324fa,_0xbc61c0,_0x8691f6){return _0x452c58(_0x8691f6- -_0x355f13._0x101deb,_0xbc61c0,_0xbc61c0-0x10c,_0x8691f6-0xda);}if(_0xeefc02[_0x11657b(0x1bd,_0x129cae._0x212f24,_0x129cae._0x54690c,0x13e)]==='number'||_0xeefc02[_0x11657b(0x11b,0x12a,_0x129cae._0x5699f1,0xde)]===_0x11657b(_0x129cae._0x198a38,_0x129cae._0x3c9b98,_0x129cae._0x338a89,-0x41))return{'type':_0x11657b(_0x129cae._0x72f10e,0x11d,0xf6,0x124)};function _0x11657b(_0x1d7278,_0x12bee3,_0xadd27e,_0x1a99e3){return _0x44530c(_0xadd27e,_0x12bee3-0x120,_0xadd27e-_0x49d47b._0x530bb8,_0x12bee3- -0x3bf);}if(_0xeefc02[_0x11657b(_0x129cae._0x4b60b5,0x12a,_0x129cae._0xf43ac0,0xc4)]===_0x11657b(_0x129cae._0x355adc,_0x129cae._0x2e7a87,_0x129cae._0x4b6f13,_0x129cae._0x403199))return{'type':_0x11657b(0x1de,0x14e,0x181,_0x129cae._0x335a31)};if(_0xeefc02[_0x11657b(_0x129cae._0x45ff23,0x12a,_0x129cae._0xaa6d8d,0xe0)]==='array')return{'type':_0x585cce(0x5,_0x129cae._0x1556fa,_0x129cae._0xcea98c,0x21),'items':toSupportedSchema(_0xeefc02[_0x11657b(_0x129cae._0x5354e5,0x12d,_0x129cae._0x55ce21,_0x129cae._0x1cd84b)])??{'type':_0x585cce(0x141,0xa9,_0x129cae._0x22e1ff,0xe2)}};if(_0xeefc02[_0x585cce(_0x129cae._0x3508b6,0x130,0x143,0xcb)]===_0x585cce(_0x129cae._0x44c325,0x5d,_0x129cae._0x668349,_0x129cae._0x14b574))return toNuvinToolSchema(_0xeefc02);return void 0x0;}function toNuvinToolSchema(_0x2a8a2e){const _0x1830d6={_0x33ec8f:0x54f,_0x45a1cb:0x54a,_0x453360:0x637,_0x26fe66:0x65f,_0x2f8684:0x5d5,_0x2944d3:0x5c7,_0x1b9629:0x605,_0x57de24:0x575,_0x32c4a:0x525,_0x396a47:0x5be,_0x1d28d2:0x57f,_0x26b53d:0x4a1,_0x513142:0x576,_0x413ce0:0x50b,_0xefce68:0x422,_0x85506d:0x50a,_0x1f8304:0x4b2,_0x5baec4:0x5e3,_0x20b1cc:0x566,_0x3b27a0:0x559},_0x2df9f6={_0x4bb5cd:0x19e,_0x5dda33:0xc2},_0x189729={_0x1ebc5e:0x2ed};if(!isObject(_0x2a8a2e)||_0x2a8a2e[_0x1c2932(0x569,_0x1830d6._0x33ec8f,_0x1830d6._0x45a1cb,0x596)]!=='object')return{'type':_0x37c4ff(_0x1830d6._0x453360,_0x1830d6._0x26fe66,_0x1830d6._0x2f8684,_0x1830d6._0x2944d3),'properties':{}};const _0x5d594f={};function _0x1c2932(_0x2d1f96,_0x3a6a83,_0x35f0d5,_0x457869){return _0x452c58(_0x35f0d5-_0x189729._0x1ebc5e,_0x2d1f96,_0x35f0d5-0x14b,_0x457869-0x1d0);}const _0x504a7a=isObject(_0x2a8a2e[_0x37c4ff(0x553,0x592,0x5e0,0x57f)])?_0x2a8a2e['properties']:{};function _0x37c4ff(_0x250755,_0x449190,_0x53c32d,_0x2ff28d){return _0x44530c(_0x53c32d,_0x449190-_0x2df9f6._0x4bb5cd,_0x53c32d-0xae,_0x2ff28d-_0x2df9f6._0x5dda33);}for(const [_0x1f5dd0,_0x555fd3]of Object['entries'](_0x504a7a)){const _0x5141f4=toSupportedSchema(_0x555fd3);if(_0x5141f4)_0x5d594f[_0x1f5dd0]=_0x5141f4;}const _0x5efd4e=Array[_0x1c2932(0x4fe,_0x1830d6._0x1b9629,_0x1830d6._0x57de24,0x4da)](_0x2a8a2e[_0x1c2932(0x4f6,0x55f,0x55d,0x57f)])?_0x2a8a2e[_0x37c4ff(0x5d4,_0x1830d6._0x32c4a,0x530,_0x1830d6._0x396a47)][_0x37c4ff(_0x1830d6._0x1d28d2,_0x1830d6._0x26b53d,_0x1830d6._0x513142,_0x1830d6._0x413ce0)](_0x11f3cf=>typeof _0x11f3cf===_0x37c4ff(0x60e,0x541,0x5e2,0x5c2)):void 0x0;return _0x5efd4e?.[_0x1c2932(_0x1830d6._0xefce68,_0x1830d6._0x85506d,0x4bb,_0x1830d6._0x1f8304)]?{'type':'object','properties':_0x5d594f,'required':_0x5efd4e}:{'type':_0x1c2932(0x5ea,_0x1830d6._0x5baec4,_0x1830d6._0x20b1cc,_0x1830d6._0x3b27a0),'properties':_0x5d594f};}function isJsonObject(_0x3d14ed){const _0x1c34b2={_0x20ccf9:0x10f,_0x5634fd:0x9f},_0x47d844={_0x169713:0x1c1};function _0x197831(_0x50c2ad,_0x2a28ac,_0x8b56d6,_0x412ef7){return _0x44530c(_0x412ef7,_0x2a28ac-_0x47d844._0x169713,_0x8b56d6-0x140,_0x50c2ad- -0x405);}return typeof _0x3d14ed==='object'&&_0x3d14ed!==null&&!Array[_0x197831(_0x1c34b2._0x20ccf9,0xe3,0xeb,_0x1c34b2._0x5634fd)](_0x3d14ed);}function formatMcpContent(_0x3980f4){const _0x5dd28a={_0x38c0a3:0x3fb,_0x3be445:0x4c8,_0x40d08a:0x491,_0x3d6ee4:0x523,_0x315780:0x45c,_0x556849:0x427,_0x1bc92d:0x3eb,_0x24672e:0xf4,_0x385f0d:0x172},_0x1a5ae8={_0x359305:0x4ef,_0x1ad297:0x468,_0x181e03:0x209,_0x9b8939:0x2a6,_0x3576d8:0x2c8,_0x245dde:0x209,_0x2113f0:0x196,_0x3b9a93:0x55b,_0x2e2b79:0x5eb},_0x39d619={_0x4155fd:0x8e},_0x14706b={_0x5967d5:0x179,_0x4d2481:0x11c},_0x10fb1a={_0x12183a:0x5c},_0x1deeaa=Array[_0x8a2492(_0x5dd28a._0x38c0a3,0x514,0x458,0x484)](_0x3980f4[_0x8a2492(_0x5dd28a._0x3be445,0x4d5,0x48f,_0x5dd28a._0x40d08a)])?_0x3980f4[_0x8a2492(0x446,_0x5dd28a._0x3d6ee4,_0x5dd28a._0x315780,0x491)]:[];function _0x28f567(_0xd5659a,_0x566975,_0x4161c8,_0x3978f9){return _0x452c58(_0x4161c8- -_0x10fb1a._0x12183a,_0x3978f9,_0x4161c8-0x1de,_0x3978f9-0x19f);}function _0x8a2492(_0x12f89e,_0x4db0ea,_0x19bf8c,_0x4ff3e6){return _0x452c58(_0x4ff3e6-0x1fc,_0x12f89e,_0x19bf8c-0x187,_0x4ff3e6-0xe5);}const _0x3b6208=_0x1deeaa['map'](_0x49911c=>{if(!isObject(_0x49911c))return'';function _0x50ed35(_0x160115,_0x37ba0d,_0x488a2c,_0x2e849e){return _0x8a2492(_0x37ba0d,_0x37ba0d-0x16d,_0x488a2c-_0x14706b._0x5967d5,_0x160115-_0x14706b._0x4d2481);}function _0x4f52ec(_0x513b3c,_0x21f8dd,_0xc65c76,_0x16813c){return _0x28f567(_0x513b3c-0x177,_0x21f8dd-0x199,_0x513b3c-_0x39d619._0x4155fd,_0x21f8dd);}if(_0x49911c['type']===_0x50ed35(_0x1a5ae8._0x359305,0x53f,0x4f3,_0x1a5ae8._0x1ad297)&&typeof _0x49911c[_0x4f52ec(_0x1a5ae8._0x181e03,0x291,0x268,0x235)]===_0x4f52ec(_0x1a5ae8._0x9b8939,0x25d,0x2f4,_0x1a5ae8._0x3576d8))return _0x49911c[_0x4f52ec(_0x1a5ae8._0x245dde,0x297,_0x1a5ae8._0x2113f0,0x190)];return JSON[_0x50ed35(_0x1a5ae8._0x3b9a93,_0x1a5ae8._0x2e2b79,0x523,0x539)](_0x49911c);})['filter'](_0xf79dbc=>_0xf79dbc[_0x28f567(0x16e,0x157,0x172,0x201)]>0x0)[_0x8a2492(_0x5dd28a._0x556849,0x3ac,_0x5dd28a._0x1bc92d,0x38f)]('\x0a');if(_0x3b6208[_0x28f567(0x17a,_0x5dd28a._0x24672e,_0x5dd28a._0x385f0d,0x170)]>0x0)return _0x3b6208;return JSON['stringify'](_0x3980f4,null,0x2);}function createMcpTool(_0x218fb4){const _0x26f86a={_0x14211c:0x30a,_0x40dab3:0x28c,_0x215ef6:0x2a6,_0x297191:0x496,_0x449181:0x355,_0x2e446b:0x369,_0x3b5512:0x3a2,_0xc7bb8d:0x358,_0x28a76c:0x347,_0x1daf0f:0x37b,_0x26320a:0x39b,_0x350f6e:0x414,_0x16e419:0x3e8},_0x59132d={_0x8a0f2f:0x6ee,_0x42c7d5:0x6f7,_0x233622:0x658,_0x581646:0x580,_0x1564c7:0x5fa,_0x3deb5f:0x5c9,_0x50def0:0x67b,_0x377916:0x60c,_0x5b4128:0x644,_0x4426c3:0x4c3,_0x67e24d:0x4b5,_0x54cfa9:0x628,_0x5d6d5f:0x5f6,_0x273def:0x573,_0x15336a:0x59d},_0x23a829={_0x170d2d:0x10b},_0x1f836a={_0x4e32b2:0x33,_0x488b66:0x87,_0x281ade:0x140};function _0x3ecb87(_0x397657,_0x32c193,_0x2f413a,_0x192880){return _0x44530c(_0x397657,_0x32c193-_0x1f836a._0x4e32b2,_0x2f413a-_0x1f836a._0x488b66,_0x32c193- -_0x1f836a._0x281ade);}function _0x1d0800(_0x43993c,_0x13bcef,_0xdbde42,_0x1e72d3){return _0x452c58(_0xdbde42-0x279,_0x1e72d3,_0xdbde42-0x110,_0x1e72d3-_0x23a829._0x170d2d);}const _0xa932ac=createMcpToolName(_0x218fb4['serverName'],_0x218fb4['tool'][_0x3ecb87(0x2d4,_0x26f86a._0x14211c,_0x26f86a._0x40dab3,_0x26f86a._0x215ef6)]);return defineTool({'name':_0xa932ac,'description':_0x218fb4[_0x1d0800(0x516,0x4ad,_0x26f86a._0x297191,0x4da)][_0x1d0800(0x50e,0x4ad,0x486,0x3f5)]??_0x3ecb87(_0x26f86a._0x449181,0x332,0x2c0,0x305)+_0x218fb4[_0x3ecb87(0x351,_0x26f86a._0x2e446b,0x38f,_0x26f86a._0x3b5512)]['name']+_0x3ecb87(0x272,0x2fe,_0x26f86a._0xc7bb8d,_0x26f86a._0x28a76c)+_0x218fb4[_0x3ecb87(0x357,_0x26f86a._0x1daf0f,_0x26f86a._0x26320a,0x3ee)],'inputSchema':toNuvinToolSchema(_0x218fb4['tool'][_0x1d0800(_0x26f86a._0x350f6e,_0x26f86a._0x16e419,0x3f9,0x3f5)]),async *'execute'(_0x5818c4){const _0x1e023d={_0x23d969:0x164},_0x5d0aea={_0x1ffa30:0x1a7,_0x1e2d8:0xda},_0x2ed4e4=await _0x218fb4[_0x484018(_0x59132d._0x8a0f2f,_0x59132d._0x42c7d5,0x63e,0x67b)][_0x45cede(0x443,0x4b6,0x492,0x471)]({'name':_0x218fb4[_0x484018(_0x59132d._0x233622,_0x59132d._0x581646,0x5c2,_0x59132d._0x1564c7)][_0x45cede(0x4df,0x473,0x4c1,0x46c)],'arguments':isJsonObject(_0x5818c4)?_0x5818c4:{}});function _0x45cede(_0x23be8b,_0x53b760,_0x2faae3,_0x4d12dd){return _0x3ecb87(_0x4d12dd,_0x2faae3-0x1b7,_0x2faae3-_0x5d0aea._0x1ffa30,_0x4d12dd-_0x5d0aea._0x1e2d8);}if(_0x2ed4e4[_0x45cede(0x5ff,0x57f,0x59f,_0x59132d._0x3deb5f)])throw new ToolExecutionError(formatMcpContent(_0x2ed4e4),{'serverName':_0x218fb4[_0x484018(0x5c0,0x610,_0x59132d._0x50def0,_0x59132d._0x377916)],'toolName':_0x218fb4[_0x484018(_0x59132d._0x5b4128,0x5f2,0x636,0x5fa)][_0x45cede(_0x59132d._0x4426c3,0x50a,0x4c1,0x511)]});function _0x484018(_0x55056a,_0x519853,_0xb4db31,_0x5f47d7){return _0x1d0800(_0x55056a-0x1b6,_0x519853-0x34,_0x5f47d7-_0x1e023d._0x23d969,_0x55056a);}return yield createToolOutput(formatMcpContent(_0x2ed4e4),{'serverName':_0x218fb4[_0x45cede(_0x59132d._0x67e24d,0x534,0x532,0x51f)],'toolName':_0x218fb4[_0x484018(_0x59132d._0x54cfa9,_0x59132d._0x5d6d5f,_0x59132d._0x273def,0x5fa)][_0x484018(0x5e5,_0x59132d._0x15336a,0x569,0x59b)],'result':_0x2ed4e4}),void 0x0;}});}function resolvePrefix(_0xc7b08e,_0x2072db){const _0x443e02={_0x447997:0x4d6,_0x516505:0x41d,_0x2d7b9c:0x480,_0x2b282a:0x3f6};function _0xf8274a(_0x1859f5,_0x44797f,_0x2678c3,_0x2c6d11){return _0x452c58(_0x2678c3-0x2ba,_0x2c6d11,_0x2678c3-0x161,_0x2c6d11-0x130);}return _0x2072db[_0xf8274a(_0x443e02._0x447997,_0x443e02._0x516505,_0x443e02._0x2d7b9c,_0x443e02._0x2b282a)]??_0xc7b08e;}function buildMcpHttpHeaders(_0x5a61e9){const _0x5ac222={_0x9875ac:0x365,_0x4cc1ca:0x321,_0xa10d4d:0x29d,_0x4929b5:0x2f9,_0x358251:0x30c,_0xf3778f:0x270,_0x643d9b:0x24c,_0x165c41:0x2e8,_0x340d08:0x241,_0x43681a:0x215,_0x199cde:0x28d,_0x21e609:0x30a,_0x8c47cb:0x23e,_0x3f638d:0x287,_0x265166:0x293,_0xf0453d:0x137,_0x2724b3:0x25c,_0x370459:0x1c7,_0x25a5de:0x1bd,_0x490a68:0x325,_0x4bb7ae:0x233},_0x4dd121={_0x5a4d06:0x12c,_0x4e6150:0x1b3},_0x3a6df6={_0x21a54e:0x1c5,_0x574325:0x1c4},_0x819e6d={..._0x5a61e9[_0x2e4c41(_0x5ac222._0x9875ac,0x31c,0x320,_0x5ac222._0x4cc1ca)]??{}};_0x5a61e9['auth']?.[_0x2e4c41(0x336,0x2eb,_0x5ac222._0xa10d4d,0x3b0)]===_0x2e4c41(0x265,0x1fb,0x271,_0x5ac222._0x4929b5)&&_0x5a61e9[_0x2e4c41(_0x5ac222._0x358251,0x27f,0x374,_0x5ac222._0xf3778f)][_0x2e4c41(_0x5ac222._0x643d9b,_0x5ac222._0x165c41,0x2c1,0x1d2)]&&_0x819e6d[_0x281348(_0x5ac222._0x340d08,_0x5ac222._0x43681a,_0x5ac222._0x199cde,0x207)]===void 0x0&&(_0x819e6d['Authorization']=_0x281348(0x303,_0x5ac222._0x21e609,0x293,0x27e)+_0x5a61e9[_0x281348(0x2bf,_0x5ac222._0x8c47cb,_0x5ac222._0x3f638d,_0x5ac222._0x265166)][_0x281348(_0x5ac222._0xf0453d,_0x5ac222._0x2724b3,_0x5ac222._0x370459,_0x5ac222._0x25a5de)]);function _0x281348(_0x30d85a,_0x211f86,_0x45fc40,_0x1f24a6){return _0x44530c(_0x30d85a,_0x211f86-_0x3a6df6._0x21a54e,_0x45fc40-_0x3a6df6._0x574325,_0x45fc40- -0x238);}function _0x2e4c41(_0x502617,_0x329f1f,_0x4ae3e4,_0x4bc614){return _0x44530c(_0x329f1f,_0x329f1f-0xee,_0x4ae3e4-_0x4dd121._0x5a4d06,_0x502617- -_0x4dd121._0x4e6150);}return Object[_0x2e4c41(0x328,0x2db,0x333,0x2cc)](_0x819e6d)[_0x2e4c41(0x2a7,0x2f8,_0x5ac222._0x490a68,_0x5ac222._0x4bb7ae)]>0x0?_0x819e6d:void 0x0;}function getErrorMessage(_0x14aa0b){const _0x55d2d4={_0x5ad986:0x144,_0x50f2a8:0x11d},_0x1a596a={_0x2c6a94:0x83,_0x559850:0x3ba};function _0x188531(_0x3f94ad,_0x2460f6,_0xa285a6,_0x2b9408){return _0x44530c(_0x2460f6,_0x2460f6-_0x1a596a._0x2c6a94,_0xa285a6-0x6a,_0x2b9408- -_0x1a596a._0x559850);}return _0x14aa0b instanceof Error?_0x14aa0b[_0x188531(0xbc,_0x55d2d4._0x5ad986,0x174,_0x55d2d4._0x50f2a8)]:String(_0x14aa0b);}function isUnauthorizedError(_0x21af59){const _0x417fdd={_0x519da3:0x365,_0x3a8a12:0x288,_0x56a732:0x278,_0xabae74:0x1fd,_0x14994e:0x28c,_0x26e120:0x1da},_0x1f87c3={_0x4ec576:0x176},_0x1566b8={_0x40048c:0x41,_0x1d5e08:0x66c};function _0x38744d(_0x3eead5,_0xdd6126,_0x2b7613,_0x24cef9){return _0x44530c(_0x24cef9,_0xdd6126-0x142,_0x2b7613-_0x1566b8._0x40048c,_0xdd6126- -_0x1566b8._0x1d5e08);}function _0x2b9899(_0x50fb96,_0x34e2dd,_0x1e8ba9,_0x5d5f29){return _0x44530c(_0x5d5f29,_0x34e2dd-_0x1f87c3._0x4ec576,_0x1e8ba9-0xe6,_0x50fb96- -0x210);}return _0x21af59 instanceof Error&&_0x21af59[_0x2b9899(0x2f8,_0x417fdd._0x519da3,_0x417fdd._0x3a8a12,0x36a)][_0x2b9899(0x23a,0x1ec,_0x417fdd._0x56a732,_0x417fdd._0xabae74)]===_0x2b9899(0x20a,_0x417fdd._0x14994e,_0x417fdd._0x26e120,0x199);}function _0x5314(_0x25c8d5,_0x1e0e47){_0x25c8d5=_0x25c8d5-0x179;const _0x418684=_0x4186();let _0x531419=_0x418684[_0x25c8d5];if(_0x5314['RJhcfe']===undefined){var _0x38c5ee=function(_0x529957){const _0x198131='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x957778='',_0x369387='';for(let _0xa29099=0x0,_0x5afd85,_0x31f93b,_0x53289c=0x0;_0x31f93b=_0x529957['charAt'](_0x53289c++);~_0x31f93b&&(_0x5afd85=_0xa29099%0x4?_0x5afd85*0x40+_0x31f93b:_0x31f93b,_0xa29099++%0x4)?_0x957778+=String['fromCharCode'](0xff&_0x5afd85>>(-0x2*_0xa29099&0x6)):0x0){_0x31f93b=_0x198131['indexOf'](_0x31f93b);}for(let _0x516c80=0x0,_0x4483b2=_0x957778['length'];_0x516c80<_0x4483b2;_0x516c80++){_0x369387+='%'+('00'+_0x957778['charCodeAt'](_0x516c80)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x369387);};_0x5314['lHuujx']=_0x38c5ee,_0x5314['KfGxmy']={},_0x5314['RJhcfe']=!![];}const _0x36bb63=_0x418684[0x0],_0x487109=_0x25c8d5+_0x36bb63,_0x11472e=_0x5314['KfGxmy'][_0x487109];return!_0x11472e?(_0x531419=_0x5314['lHuujx'](_0x531419),_0x5314['KfGxmy'][_0x487109]=_0x531419):_0x531419=_0x11472e,_0x531419;}async function connectMcpServer(_0x5f01d9,_0x37d345,_0x2a1575){const _0x3b6730={_0x3bc9ce:0x138,_0x492947:0x13b,_0x20daa3:0x12c,_0x53c76d:0xd2,_0x2466a7:0x65d,_0x1a83f5:0x5eb,_0x4886a8:0x8d,_0x5260ad:0x503,_0x4484fe:0x573,_0x24ac8a:0xe3,_0x59ea52:0xee,_0x17e09e:0x1b9,_0x471c94:0x18e,_0x3ee692:0x135,_0x2f7945:0x5c2,_0x300a2a:0x609,_0xc045e5:0x531,_0x474089:0x58e,_0x30fa65:0x93,_0x13ca15:0x123,_0x167aa2:0xb2,_0x2dfced:0x8f,_0x25d090:0xbe,_0x177731:0x163,_0x4f2430:0xdf,_0x1cc704:0x62e,_0x30297c:0x5a8,_0x2c9150:0x539,_0xa65443:0x5a8,_0x55a838:0x550,_0x5088d0:0x616,_0x80437d:0x514,_0x241d56:0x540,_0x572e26:0x6f,_0x21ddae:0xca,_0x155c6b:0xd3,_0x1253c3:0xd8,_0x4eee9a:0x573,_0x467ebc:0x644,_0x2b7679:0x525,_0x309336:0x4b7,_0x3ce159:0x44d,_0x7239f4:0x4c2,_0x9b9404:0x148,_0x21f2b9:0xde,_0x459d9c:0x107,_0x2af65b:0x176,_0x31e6f9:0x13f},_0x278f77={_0x130129:0x536,_0x5973ba:0x4ad,_0x2569bc:0x54b},_0x727fe3={_0x3b271e:0x16b,_0x4be8f0:0x97},_0x11bd08={_0xc44182:0x2c8,_0x46712d:0x327},_0x1d2411={_0x5847ba:0x100},_0x141e07={_0x5b23d3:0xf6,_0x799e52:0x8f},_0x378f67={_0x45ef4e:0x59};function _0x9e46bb(_0x1397d8,_0x8b49ed,_0x5c20bc,_0x1520d1){return _0x44530c(_0x1397d8,_0x8b49ed-0xac,_0x5c20bc-_0x378f67._0x45ef4e,_0x5c20bc- -0x3e0);}const _0x55fd79=new Client({'name':_0x9e46bb(0x120,_0x3b6730._0x3bc9ce,_0x3b6730._0x492947,_0x3b6730._0x20daa3),'version':_0x9e46bb(0x66,0x36,_0x3b6730._0x53c76d,0x41)});function _0x2afb6b(_0x20f909,_0x3641c2,_0x39444b,_0x91afad){return _0x44530c(_0x3641c2,_0x3641c2-_0x141e07._0x5b23d3,_0x39444b-_0x141e07._0x799e52,_0x91afad-0xa5);}if(_0x37d345[_0x2afb6b(0x5c5,_0x3b6730._0x2466a7,_0x3b6730._0x1a83f5,0x5c1)]===_0x9e46bb(_0x3b6730._0x4886a8,0x13c,0x111,0x103)||_0x37d345[_0x2afb6b(0x5c2,0x4d8,_0x3b6730._0x5260ad,_0x3b6730._0x4484fe)]){if(!_0x37d345[_0x9e46bb(0x102,_0x3b6730._0x24ac8a,_0x3b6730._0x59ea52,0xa5)])throw new Error(_0x9e46bb(_0x3b6730._0x17e09e,_0x3b6730._0x471c94,_0x3b6730._0x3ee692,0x162)+_0x5f01d9+_0x2afb6b(0x589,0x55b,_0x3b6730._0x2f7945,0x55c));if(_0x37d345['auth']?.[_0x2afb6b(0x616,_0x3b6730._0x300a2a,_0x3b6730._0xc045e5,_0x3b6730._0x474089)]===_0x9e46bb(_0x3b6730._0x30fa65,0x1ac,_0x3b6730._0x13ca15,0x192)&&!_0x2a1575?.[_0x2afb6b(0x5a9,0x546,0x598,0x5a8)])throw new Error(_0x2afb6b(0x564,0x5f5,0x5e6,0x5ba)+_0x5f01d9+_0x9e46bb(0x4c,_0x3b6730._0x167aa2,0x50,_0x3b6730._0x2dfced));const _0x4d2e7f=buildMcpHttpHeaders(_0x37d345),_0x37a1b2=_0x37d345[_0x9e46bb(_0x3b6730._0x25d090,_0x3b6730._0x177731,_0x3b6730._0x4f2430,0xe3)]?.['type']===_0x2afb6b(0x594,0x604,0x535,0x5a8)&&_0x2a1575?.[_0x2afb6b(0x599,0x559,_0x3b6730._0x1cc704,_0x3b6730._0x30297c)]?createMcpOAuthProvider({'serverName':_0x5f01d9,'callbackUrl':_0x2a1575[_0x2afb6b(_0x3b6730._0x2c9150,0x5ab,0x5ba,_0x3b6730._0xa65443)][_0x2afb6b(_0x3b6730._0x55a838,_0x3b6730._0x5088d0,0x506,0x58f)],'storageDir':_0x2a1575[_0x2afb6b(_0x3b6730._0x80437d,_0x3b6730._0x241d56,0x606,0x5a8)][_0x9e46bb(_0x3b6730._0x572e26,0xd0,_0x3b6730._0x21ddae,_0x3b6730._0x155c6b)],'config':_0x37d345[_0x9e46bb(0xfc,0xdc,0xdf,_0x3b6730._0x1253c3)],'onRedirect':_0x55f007=>_0x2a1575[_0x2afb6b(0x50c,0x56e,0x5cc,0x5a8)]?.[_0x2afb6b(0x553,0x608,0x530,0x582)](_0x5f01d9,_0x55f007)}):void 0x0,_0x2fbd54=new StreamableHTTPClientTransport(new URL(_0x37d345[_0x2afb6b(0x530,0x593,0x4de,_0x3b6730._0x4eee9a)]),{'authProvider':_0x37a1b2,'requestInit':_0x4d2e7f?{'headers':_0x4d2e7f}:void 0x0});await _0x55fd79[_0x9e46bb(0x184,0x19b,0x13f,0x169)](_0x2fbd54);}else{if(!_0x37d345['command'])throw new Error(_0x2afb6b(_0x3b6730._0x467ebc,0x5f0,_0x3b6730._0x2b7679,0x5ba)+_0x5f01d9+_0x2afb6b(_0x3b6730._0x309336,_0x3b6730._0x3ce159,_0x3b6730._0x7239f4,0x4c9));const _0x291e6f=new StdioClientTransport({'command':_0x37d345[_0x9e46bb(0x132,_0x3b6730._0x9b9404,0x14b,0x11f)],'args':_0x37d345[_0x9e46bb(_0x3b6730._0x21f2b9,0x96,0x100,0xed)]??[],'env':_0x37d345['env']});await _0x55fd79[_0x9e46bb(_0x3b6730._0x459d9c,_0x3b6730._0x2af65b,_0x3b6730._0x31e6f9,0x134)](_0x291e6f);}return{async 'listTools'(){return await _0x55fd79['listTools']();},async 'callTool'(_0xeb5795){const _0x225b29={_0x24691a:0x1ee,_0x29bd5d:0x3d};function _0x2110e5(_0x2a7a6a,_0x21d3cd,_0x4f24e8,_0x1d071b){return _0x9e46bb(_0x4f24e8,_0x21d3cd-0x13c,_0x1d071b-_0x225b29._0x24691a,_0x1d071b-_0x225b29._0x29bd5d);}function _0x56cfe6(_0x5d1fe5,_0x1163c6,_0x5b5e5f,_0x325434){return _0x9e46bb(_0x5d1fe5,_0x1163c6-_0x1d2411._0x5847ba,_0x5b5e5f-0x21f,_0x325434-0x13a);}return await _0x55fd79[_0x2110e5(0x31a,_0x11bd08._0xc44182,0x329,_0x11bd08._0x46712d)]({'method':_0x2110e5(0x35a,0x2cd,0x356,0x2cf),'params':_0xeb5795},CallToolResultSchema);},async 'close'(){function _0x28c80a(_0x26339e,_0x486d9d,_0x5375e0,_0x1b4ddf){return _0x2afb6b(_0x26339e-_0x727fe3._0x3b271e,_0x5375e0,_0x5375e0-0x1dc,_0x1b4ddf- -_0x727fe3._0x4be8f0);}await _0x55fd79[_0x28c80a(_0x278f77._0x130129,_0x278f77._0x5973ba,_0x278f77._0x2569bc,0x4bf)]();}};}async function createMcpToolsFromServers(_0x4bbc23){const _0x102425={_0x35dfae:0x1d5,_0x417389:0x26d,_0x4fa1cf:0xdf,_0x6951d0:0x86,_0x155fa7:0xf3,_0x36dcde:0x181,_0x3422be:0x150,_0x304c8a:0x1bb,_0x29f0a1:0x2bf,_0xca35bf:0x21c,_0x769818:0x46,_0x489035:0x64,_0x111594:0x40,_0x186a94:0x1a5,_0x4d27cb:0x1b1,_0x1b7763:0x98,_0x3fdcbb:0xdc,_0x350b49:0xf1,_0x19f0bc:0xf4,_0x281737:0x78,_0x5e9ef8:0x1e5,_0x33d82e:0x13f,_0x4a6bda:0x161,_0x26ccea:0xf8,_0x19d4b1:0x137,_0x47cb99:0xde},_0x442f94={_0x2f72a8:0x4c7,_0x4a79b1:0x4a5,_0x35d87d:0x1d9,_0xbe6c16:0x121,_0x15ffe1:0x1b2},_0x387846={_0x188785:0x1cd,_0xa5c026:0x49},_0x9e5749={_0x4e34ca:0x189},_0x970586={_0x5b974e:0x26,_0x42bcc7:0xda,_0x3b0e5d:0x1e7},_0x357534={_0x4840c5:0x168,_0x835304:0x91,_0x56c872:0x53e},_0x2e7c6d=_0x4bbc23[_0x2ac518(_0x102425._0x35dfae,0x1f5,0x2c9,_0x102425._0x417389)]??connectMcpServer,_0x503f3b=[],_0x467b1b={};function _0x240d41(_0x18770d,_0x53a92f,_0x36b19a,_0x4d9808){return _0x44530c(_0x4d9808,_0x53a92f-_0x357534._0x4840c5,_0x36b19a-_0x357534._0x835304,_0x18770d- -_0x357534._0x56c872);}const _0x41493d=[];for(const [_0x4d46c5,_0x3ea35e]of Object['entries'](_0x4bbc23[_0x240d41(-0xa0,-_0x102425._0x4fa1cf,-_0x102425._0x6951d0,-_0x102425._0x155fa7)]??{})){if(_0x3ea35e[_0x2ac518(0x12c,_0x102425._0x36dcde,_0x102425._0x3422be,_0x102425._0x304c8a)]===![]){_0x467b1b[_0x4d46c5]={'status':_0x2ac518(_0x102425._0x29f0a1,0x2d2,_0x102425._0xca35bf,0x259)};continue;}try{const _0x5d7db4=await _0x2e7c6d(_0x4d46c5,_0x3ea35e,_0x4bbc23[_0x2ac518(0xbe,0x1e1,0x1ed,0x151)]);_0x503f3b[_0x2ac518(0x21a,0x1ff,0x1d6,0x1d7)](_0x5d7db4);const _0x49327f=await _0x5d7db4[_0x240d41(-_0x102425._0x769818,-_0x102425._0x489035,_0x102425._0x111594,0x47)]();let _0x169f10=0x0;for(const _0x56cda8 of _0x49327f[_0x2ac518(_0x102425._0x186a94,_0x102425._0x4d27cb,0x24d,0x235)]){const _0x208ca6=_0x4bbc23[_0x240d41(-_0x102425._0x1b7763,-_0x102425._0x3fdcbb,-0xb3,-_0x102425._0x350b49)]?.[_0x4d46c5]?.[_0x56cda8[_0x240d41(-_0x102425._0x19f0bc,-0xa3,-0xc0,-0x152)]];if(_0x208ca6===![])continue;_0x169f10+=0x1,_0x41493d[_0x240d41(-0xb5,-0x2c,-0x131,-_0x102425._0x281737)](createMcpTool({'serverName':resolvePrefix(_0x4d46c5,_0x3ea35e),'tool':_0x56cda8,'client':_0x5d7db4}));}_0x467b1b[_0x4d46c5]={'status':_0x2ac518(_0x102425._0x5e9ef8,_0x102425._0x33d82e,0x109,_0x102425._0x4a6bda),'toolCount':_0x169f10};}catch(_0x115a22){_0x467b1b[_0x4d46c5]=isUnauthorizedError(_0x115a22)?{'status':'authRequired','message':getErrorMessage(_0x115a22)}:{'status':_0x240d41(-_0x102425._0x26ccea,-_0x102425._0x19d4b1,-_0x102425._0x47cb99,-0xc4),'message':getErrorMessage(_0x115a22)};}}function _0x2ac518(_0x1587e6,_0x4dece5,_0x539c65,_0x213dfc){return _0x452c58(_0x213dfc- -_0x970586._0x5b974e,_0x1587e6,_0x539c65-_0x970586._0x42bcc7,_0x213dfc-_0x970586._0x3b0e5d);}return{'tools':_0x41493d,'servers':_0x467b1b,async 'close'(){function _0x462dad(_0x6d5f4c,_0x47d2d6,_0x3737dc,_0x40df96){return _0x2ac518(_0x3737dc,_0x47d2d6-_0x9e5749._0x4e34ca,_0x3737dc-0x1de,_0x40df96-0x32f);}function _0x5c43c0(_0x5a5c8a,_0x22b3c1,_0x2df309,_0x4f9ace){return _0x2ac518(_0x2df309,_0x22b3c1-_0x387846._0x188785,_0x2df309-0x5d,_0x4f9ace- -_0x387846._0xa5c026);}await Promise[_0x462dad(0x436,0x450,_0x442f94._0x2f72a8,_0x442f94._0x4a79b1)](_0x503f3b[_0x5c43c0(0x150,_0x442f94._0x35d87d,_0x442f94._0xbe6c16,_0x442f94._0x15ffe1)](_0x5ca86c=>_0x5ca86c[_0x5c43c0(0x13b,0x162,0x20f,0x1b6)]()));}};}function getCommand(_0x582107){const _0x55c900={_0x4e0e8e:0x167,_0x25eefe:0x148,_0x354ef8:0x111,_0x298c5a:0xf8,_0x1f85a1:0x1bc,_0x3f826b:0x14f},_0x69d5e3={_0x4b26dd:0x11e,_0x638222:0x1c6};function _0x27db43(_0x6c2b53,_0x43caa2,_0x14541d,_0x2b53e8){return _0x44530c(_0x2b53e8,_0x43caa2-0xbd,_0x14541d-0x9a,_0x6c2b53- -0x80);}function _0x1f5e79(_0x4a19e5,_0x584535,_0x3f26a9,_0x3efce6){return _0x452c58(_0x4a19e5- -0x3e0,_0x3efce6,_0x3f26a9-_0x69d5e3._0x4b26dd,_0x3efce6-_0x69d5e3._0x638222);}if(_0x582107&&typeof _0x582107===_0x1f5e79(-_0x55c900._0x4e0e8e,-_0x55c900._0x25eefe,-_0x55c900._0x354ef8,-0x146)&&!Array[_0x1f5e79(-0x158,-_0x55c900._0x298c5a,-0x1e1,-0x111)](_0x582107)&&typeof _0x582107['command']===_0x1f5e79(-0x16c,-0x163,-0x1b1,-0x1b8))return _0x582107[_0x1f5e79(-0x141,-0x134,-_0x55c900._0x1f85a1,-_0x55c900._0x3f826b)];return'ls\x20-la';}function _0x44530c(_0x2d6241,_0x3dea1a,_0x43f76a,_0x2a2869){return _0x5314(_0x2a2869-0x284,_0x2d6241);}var MOCK_WORKSPACE_LISTING=[_0x44530c(0x4c2,0x4d5,0x536,0x526),'docs/plans/2026-04-16-mock-agent-loop-implementation.md','docs/plans/2026-04-16-public-tools-api-implementation.md',_0x452c58(0x249,0x1cc,0x2a4,0x251),_0x452c58(0x1ab,0x152,0x17b,0x228),'src/formats/message-format.ts','src/examples/demo.ts',_0x452c58(0x182,0x206,0x1e8,0x162),_0x452c58(0x2a0,0x225,0x29b,0x312),'src/tools/mock-tool-runtime.ts',_0x44530c(0x409,0x38d,0x496,0x412),_0x452c58(0x1dd,0x223,0x187,0x271),_0x452c58(0x245,0x24c,0x28b,0x23f),_0x44530c(0x5a5,0x569,0x529,0x511),_0x452c58(0x199,0x170,0x1e9,0x112),_0x44530c(0x465,0x4f5,0x4cf,0x4fd),_0x452c58(0x1b0,0x171,0x1d6,0x228)][_0x44530c(0x4b6,0x4a4,0x404,0x41f)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x452c58(0x252,0x2d6,0x210,0x287),'description':_0x452c58(0x1b4,0x221,0x21e,0x1e0),'input_schema':{'type':_0x452c58(0x279,0x279,0x208,0x299),'properties':{'command':{'type':_0x452c58(0x274,0x29e,0x2a9,0x273)}},'required':[_0x452c58(0x29f,0x2fd,0x330,0x293)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x3efd96){return{'output':_0x3efd96,'structured':{'value':_0x3efd96}};}function createUnknownToolResult(_0x3524e1){const _0x510fee={_0x4a81b9:0x39d,_0x32b832:0x371,_0xa62ea:0x1ff,_0x3c9c9b:0x235,_0xdc5161:0x1ed},_0x59a573={_0x173522:0x11f,_0xba9fe3:0xea,_0xf0a4a1:0x211},_0xe48a1={_0x1fb9f2:0x11c,_0x3dfb5d:0xbd,_0x43b713:0xd7};function _0x35bfbe(_0x3bca98,_0x5c4f30,_0x5e7ec7,_0x43e5b5){return _0x44530c(_0x43e5b5,_0x5c4f30-_0xe48a1._0x1fb9f2,_0x5e7ec7-_0xe48a1._0x3dfb5d,_0x5e7ec7- -_0xe48a1._0x43b713);}function _0x1cbe66(_0x4d5604,_0x22b2ad,_0x288a2e,_0x1b0b65){return _0x44530c(_0x22b2ad,_0x22b2ad-_0x59a573._0x173522,_0x288a2e-_0x59a573._0xba9fe3,_0x288a2e- -_0x59a573._0xf0a4a1);}return{'callId':_0x3524e1['id'],'toolName':_0x3524e1[_0x35bfbe(0x3c8,_0x510fee._0x4a81b9,0x373,_0x510fee._0x32b832)],'status':_0x1cbe66(_0x510fee._0xa62ea,0x20c,_0x510fee._0x3c9c9b,0x1fc),'output':'Unknown\x20tool:\x20'+_0x3524e1[_0x1cbe66(0x2be,_0x510fee._0xdc5161,0x239,0x24d)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x224f15,_0x15100f){const _0x4ef0ae={_0x30c3c9:0x3b8},_0x19a9e2={_0x16c050:0x15b,_0x2cf488:0x5a};function _0x18942a(_0x21fe9a,_0x452100,_0x594bc5,_0x1eaaf9){return _0x44530c(_0x452100,_0x452100-_0x19a9e2._0x16c050,_0x594bc5-_0x19a9e2._0x2cf488,_0x594bc5- -0x5);}return{'callId':_0x224f15['id'],'toolName':_0x224f15['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x224f15[_0x18942a(0x3f5,0x467,0x41c,_0x4ef0ae._0x30c3c9)]),'exitCode':0x0},'chunks':[_0x15100f],'meta':createMeta()};}function createMockToolRuntime(){const _0xd0a36c={_0x34445d:0x19f,_0x33540d:0x107},_0x142ec4={_0x4a5a90:0x343},_0x4a522f={_0x76c2bb:0x1be,_0x3ca9cd:0x1f1},_0x116311={_0x2da708:0x38a},_0x19439a=async(_0xd8f28b,_0x49bea9)=>{if(_0xd8f28b[_0x5bf724(-_0x4a522f._0x76c2bb,-_0x4a522f._0x3ca9cd,-0x1c4,-0x19f)]!=='Bash')return createUnknownToolResult(_0xd8f28b);const _0x3bd681=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x5bf724(_0x2f97c4,_0x2de78c,_0x2a2696,_0x53ef36){return _0x5314(_0x2a2696- -_0x116311._0x2da708,_0x53ef36);}return createSuccessToolResult(_0xd8f28b,_0x3bd681);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x5c4962,_0xaa5e2e){function _0x254bdb(_0x3f1565,_0x1743cf,_0x4d394f,_0x138b9a){return _0x5314(_0x3f1565- -_0x142ec4._0x4a5a90,_0x1743cf);}return await Promise[_0x254bdb(-_0xd0a36c._0x34445d,-0x167,-_0xd0a36c._0x33540d,-0x146)](_0x5c4962['map'](async _0x43565e=>{return await _0x19439a(_0x43565e,_0xaa5e2e);}));},async 'execute'(_0x184d58,_0x214182){return await _0x19439a(_0x184d58,_0x214182);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x37566b={_0x4276d9:0x4ab,_0x53fc99:0x537},_0x2c6d12={_0x488b5c:0xd8};delegatedRunCounter+=0x1;function _0x4bd980(_0x5b9649,_0x3a5f91,_0x334291,_0x278ea1){return _0x452c58(_0x278ea1-0x31b,_0x334291,_0x334291-0x1f4,_0x278ea1-_0x2c6d12._0x488b5c);}return _0x4bd980(0x569,_0x37566b._0x4276d9,0x5b4,_0x37566b._0x53fc99)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x2159ab,_0x40be3b){return typeof _0x2159ab==='function'?await _0x2159ab(_0x40be3b):_0x2159ab;}function getDelegatedAgentDefinition(_0x5b998f,_0x3f469f){const _0x59180f={_0x1cc53d:0x3ea,_0x3589bc:0x411,_0x3c935e:0x471},_0x49e9a6={_0x30b896:0x2f};function _0x4035b7(_0x456928,_0x5ec80c,_0x3f4a69,_0x5da697){return _0x44530c(_0x5da697,_0x5ec80c-0xc1,_0x3f4a69-_0x49e9a6._0x30b896,_0x3f4a69- -0x7d);}return _0x5b998f[_0x4035b7(_0x59180f._0x1cc53d,_0x59180f._0x3589bc,0x475,_0x59180f._0x3c935e)]?.[_0x3f469f];}function createRunSummary(_0x2df3f6){const _0x1b8ea6={_0x480d27:0x5c,_0x5bc19b:0x2e,_0x317129:0xba,_0x396a5b:0x4b,_0x39998f:0x97,_0x553d5c:0x2f,_0x15214a:0x1b,_0xa06698:0x475,_0x413cdd:0x45c,_0x589ba5:0x420,_0x1f2029:0x50c,_0x55d3aa:0x4b9,_0x165fd1:0x4e7,_0x59e7c7:0xa0,_0x210fde:0xa};function _0xefa2de(_0x7612b9,_0x2e98a7,_0x40adf1,_0x2ba0d2){return _0x452c58(_0x7612b9-0x291,_0x40adf1,_0x40adf1-0x1bf,_0x2ba0d2-0xc3);}function _0x3ef530(_0x196564,_0x297ab4,_0x3b9b0b,_0x42bcb5){return _0x44530c(_0x42bcb5,_0x297ab4-0x190,_0x3b9b0b-0x1b0,_0x297ab4- -0x468);}return{'runId':_0x2df3f6['runId'],'agentId':_0x2df3f6[_0x3ef530(-0x2c,_0x1b8ea6._0x480d27,-_0x1b8ea6._0x5bc19b,_0x1b8ea6._0x317129)],'sessionId':_0x2df3f6[_0x3ef530(0xa7,_0x1b8ea6._0x396a5b,0xd6,0x3c)],'status':_0x2df3f6[_0x3ef530(-0x45,0x4,-_0x1b8ea6._0x39998f,0x1e)],'parentSessionId':_0x2df3f6['parentSessionId'],..._0x2df3f6['originToolCallId']!==void 0x0?{'originToolCallId':_0x2df3f6[_0x3ef530(_0x1b8ea6._0x553d5c,-_0x1b8ea6._0x15214a,-0x66,-0x27)]}:{},..._0x2df3f6['errorMessage']!==void 0x0?{'errorMessage':_0x2df3f6[_0xefa2de(_0x1b8ea6._0xa06698,_0x1b8ea6._0x413cdd,0x4d8,_0x1b8ea6._0x589ba5)]}:{},..._0x2df3f6['result']?.[_0xefa2de(_0x1b8ea6._0x1f2029,_0x1b8ea6._0x55d3aa,0x535,_0x1b8ea6._0x165fd1)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x2df3f6[_0x3ef530(_0x1b8ea6._0x59e7c7,0x51,-_0x1b8ea6._0x210fde,0x35)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0xb18764,_0x7d9a13){const _0xb22314={_0x9e3049:0x22,_0xb575d5:0xd5,_0x25274a:0x26,_0x55ff22:0x78},_0x40c33b={_0x4b272c:0x17b},_0x1585b1={_0x388428:0x194};function _0x1ec64e(_0x3f582d,_0x17454f,_0x8eaa6e,_0xabc6ec){return _0x44530c(_0x17454f,_0x17454f-0x145,_0x8eaa6e-_0x1585b1._0x388428,_0x8eaa6e- -0x4d2);}const _0x51a772=createRunSummary(_0xb18764);function _0x438a48(_0x3b0acf,_0x2e036b,_0x1682da,_0x499ea3){return _0x452c58(_0x499ea3- -0x22a,_0x2e036b,_0x1682da-_0x40c33b._0x4b272c,_0x499ea3-0x1af);}const _0xca4edb=_0x51a772['finalMessageText'];return createToolOutput(typeof _0xca4edb===_0x438a48(_0xb22314._0x9e3049,_0xb22314._0xb575d5,-_0xb22314._0x25274a,0x4a)&&_0xca4edb[_0x1ec64e(-0x114,-0xe9,-_0xb22314._0x55ff22,-0x3f)]>0x0?_0xca4edb:_0x7d9a13,_0x51a772);}function getRunTerminalErrorMessage(_0x26189c){const _0x169419={_0x1a17f0:0x165,_0x32be5a:0x1ee,_0x2badc6:0x17c,_0x293710:0x9f,_0x104b55:0x1be,_0x53ce4b:0x152,_0x3229b3:0x11a,_0x15a990:0xa9,_0x4fc31c:0x15b,_0x5165bc:0x148,_0x357c22:0x1ee},_0x1bc5f6={_0x13ea6d:0x329,_0x1bd786:0x69},_0x2133a4={_0x327420:0xf8,_0x56a281:0x18},_0x3fb257=_0x26189c?.[_0x3dfea7(-0x162,-0x1b3,-_0x169419._0x1a17f0,-_0x169419._0x32be5a)][_0x3dfea7(-0x109,-_0x169419._0x2badc6,-0x11d,-_0x169419._0x293710)]['at'](-0x1);if(_0x3fb257?.['status']===_0x3dfea7(-0x16f,-0x1c2,-_0x169419._0x104b55,-0x1f6)&&_0x3fb257[_0x439315(-0x19d,-_0x169419._0x53ce4b,-_0x169419._0x3229b3,-0x20c)][_0x439315(-0xeb,-_0x169419._0x2badc6,-_0x169419._0x15a990,-0x119)]()[_0x3dfea7(-_0x169419._0x4fc31c,-0x1a0,-_0x169419._0x5165bc,-_0x169419._0x357c22)]>0x0)return _0x3fb257['output'];function _0x439315(_0x3d262c,_0x372999,_0x577379,_0x3c784d){return _0x44530c(_0x3c784d,_0x372999-_0x2133a4._0x327420,_0x577379-_0x2133a4._0x56a281,_0x3d262c- -0x5d1);}function _0x3dfea7(_0xaf567a,_0x5f1410,_0x3348fc,_0x334c83){return _0x452c58(_0xaf567a- -_0x1bc5f6._0x13ea6d,_0x3348fc,_0x3348fc-0x58,_0x334c83-_0x1bc5f6._0x1bd786);}return void 0x0;}function formatAbortedRunMessage(_0x1598ac,_0x26cf75){const _0x511b85={_0x31a072:0xa7,_0x394e2d:0x1e,_0x4e148f:0x90,_0x22d321:0xfe,_0xa09717:0x50},_0x492c54={_0x27d935:0x68},_0x243734={_0x218213:0x4a,_0xfb0469:0x118},_0x31481b='Agent\x20run\x20'+_0x1598ac+_0x1b69ef(0x86,_0x511b85._0x31a072,0x30,_0x511b85._0x394e2d);function _0x404857(_0x1f751f,_0x450144,_0x32e1d5,_0x5efbc6){return _0x44530c(_0x5efbc6,_0x450144-0x38,_0x32e1d5-_0x243734._0x218213,_0x1f751f-_0x243734._0xfb0469);}if(!_0x26cf75||_0x26cf75[_0x1b69ef(0x98,_0x511b85._0x4e148f,0x9e,_0x511b85._0x22d321)]()[_0x1b69ef(0xe5,0x88,_0x511b85._0xa09717,0x72)]===0x0||_0x26cf75===_0x31481b)return _0x31481b;function _0x1b69ef(_0xa84efe,_0x2e9008,_0x39bc15,_0x4ef0c5){return _0x44530c(_0x39bc15,_0x2e9008-_0x492c54._0x27d935,_0x39bc15-0x115,_0x4ef0c5- -0x3e8);}return _0x31481b+'\x20Cause:\x20'+_0x26cf75;}function createAssignTaskTool(_0x4ba3d4){const _0x36395c={_0x19bd01:0x21,_0x32aff2:0x3a,_0x193b2c:0x122,_0x173d32:0x8f,_0x354d3a:0x1e,_0x59c9f3:0x4c,_0x1c88a8:0x1f,_0x32627d:0x4,_0x4b2d23:0x6,_0x28a824:0x27,_0x331712:0x3},_0x160bea={_0x1fc1a4:0x440,_0x254478:0x4a8,_0x193c98:0x3e5,_0x418991:0x42f,_0x4a0a47:0x4bb,_0x3ca3de:0x49c,_0x3a28f0:0x355,_0x2554b7:0x370,_0x2d2b05:0x3d3,_0x42c223:0x433,_0x372ae8:0x42c,_0x481a0e:0x486,_0x367e12:0x459,_0x4a86dc:0x341,_0x1a73e3:0x2bd,_0x4dd946:0x347,_0x437f3d:0x3bc,_0x2b93bf:0x330,_0x34e085:0x3b7,_0x1a6c22:0x314,_0xc5563f:0x3d0,_0x10c024:0x44f,_0x3f8c7b:0x39f,_0x29462c:0x3f5,_0x5b81fd:0x466,_0x21e7f4:0x3ff,_0x324b64:0x454,_0x1b86fe:0x3dc,_0x29a335:0x3e6,_0x536649:0x37c,_0x3bb6d0:0x450,_0x57a2fa:0x31c,_0x868882:0x391,_0x565203:0x30a,_0x4a300a:0x327,_0x2931c3:0x377,_0x437c97:0x256,_0x49f7c9:0x2f8,_0x1fc6a2:0x3c7,_0x4fd16d:0x4a9,_0x4c49c6:0x4a1,_0x2cfde8:0x409,_0x19d435:0x2fe,_0x1d71f9:0x2d3,_0x4e0d7c:0x382,_0x4810f6:0x3e1,_0x2028fb:0x407,_0xe4f26:0x2cd,_0x220230:0x350,_0x25c2b6:0x3e1,_0x3fe4fc:0x4b6,_0x13c00e:0x418,_0x2a6b35:0x3a2,_0x560b6a:0x448,_0x1fa69d:0x34f,_0x2fe24f:0x3e7,_0x41a7c7:0x37a,_0x364c57:0x32f,_0x2ac73b:0x45e,_0xc6141e:0x453,_0x33431b:0x373,_0x5432df:0x39c,_0x4dc803:0x3f4,_0x445087:0x455,_0x2949d1:0x3a3,_0x34c090:0x48f},_0x516744={_0x288bac:0x2f1,_0x18872b:0x264,_0x2b1a39:0x1c9},_0x4260cd={_0x547840:0x12b,_0x235b9f:0x142,_0x49ff24:0x4b4},_0x28a8cc={_0x3e6631:0x1b2,_0x4b961f:0x1,_0x20b113:0x1cb};function _0x3eec45(_0x1ba834,_0x56d34c,_0x34d27e,_0x3530f2){return _0x452c58(_0x34d27e- -_0x28a8cc._0x3e6631,_0x3530f2,_0x34d27e-_0x28a8cc._0x4b961f,_0x3530f2-_0x28a8cc._0x20b113);}function _0x58ac69(_0x1c4fc9,_0x35df9e,_0x1a1059,_0x23bb4b){return _0x44530c(_0x35df9e,_0x35df9e-_0x4260cd._0x547840,_0x1a1059-_0x4260cd._0x235b9f,_0x1c4fc9- -_0x4260cd._0x49ff24);}return defineTool({'name':_0x58ac69(0xc,_0x36395c._0x19bd01,-0x5b,-0x5d),'description':_0x3eec45(_0x36395c._0x32aff2,_0x36395c._0x193b2c,_0x36395c._0x173d32,0x8c),'inputSchema':{'type':'object','properties':{'agentId':{'type':_0x58ac69(0x4c,0x14,_0x36395c._0x354d3a,0x62)},'task':{'type':_0x58ac69(_0x36395c._0x59c9f3,0x4,0x64,_0x36395c._0x1c88a8)}},'required':[_0x3eec45(_0x36395c._0x32627d,0x43,0x86,0xb5),_0x3eec45(-_0x36395c._0x4b2d23,0x6,-_0x36395c._0x28a824,-_0x36395c._0x331712)]},async *'execute'(_0x3de61e,_0x1f0710){const _0x520a56={_0x3eb2e0:0xda,_0x25ce7a:0x168},_0x517343={_0x3f8b90:0x2bb},_0x26cbf5=createDelegatedRunId(),_0x2dea9c={'agentId':_0x3de61e[_0x9f9713(0x3d4,_0x160bea._0x1fc1a4,_0x160bea._0x254478,_0x160bea._0x193c98)],'parentSessionId':_0x1f0710[_0x9f9713(0x4c4,_0x160bea._0x418991,_0x160bea._0x4a0a47,_0x160bea._0x3ca3de)],'runId':_0x26cbf5,..._0x1f0710[_0x24919c(_0x160bea._0x3a28f0,0x365,_0x160bea._0x2554b7,_0x160bea._0x2d2b05)]!==void 0x0?{'toolCallId':_0x1f0710['toolCallId']}:{}},_0x1e431c=getDelegatedAgentDefinition(_0x4ba3d4,_0x3de61e['agentId']);if(!_0x1e431c)throw new ToolExecutionError(_0x9f9713(_0x160bea._0x42c223,_0x160bea._0x372ae8,0x3e7,0x41c)+_0x3de61e[_0x9f9713(0x484,0x440,_0x160bea._0x481a0e,_0x160bea._0x367e12)],{'agentId':_0x3de61e[_0x24919c(_0x160bea._0x4a86dc,_0x160bea._0x1a73e3,0x30d,_0x160bea._0x4dd946)]});function _0x9f9713(_0x53043a,_0x1f6df6,_0x26cb3a,_0x21b53e){return _0x58ac69(_0x1f6df6-0x430,_0x21b53e,_0x26cb3a-0x3e,_0x21b53e-0x17a);}function _0x24919c(_0x4cf3ca,_0x1b167a,_0x5dbbbd,_0x3f24fa){return _0x3eec45(_0x4cf3ca-0xed,_0x1b167a-0x57,_0x4cf3ca-_0x517343._0x3f8b90,_0x1b167a);}const _0x379a77=new Agent(await resolveDelegatedAgentOptions(_0x1e431c,_0x2dea9c));let _0x85e8e4={'runId':_0x26cbf5,'agentId':_0x3de61e[_0x24919c(0x341,_0x160bea._0x437f3d,0x2c9,0x3c6)],'sessionId':_0x379a77[_0x24919c(_0x160bea._0x2b93bf,0x354,_0x160bea._0x34e085,_0x160bea._0x1a6c22)],'status':_0x9f9713(0x375,_0x160bea._0xc5563f,0x440,_0x160bea._0x10c024),'parentSessionId':_0x1f0710[_0x9f9713(_0x160bea._0x3f8c7b,_0x160bea._0x418991,_0x160bea._0x29462c,_0x160bea._0x5b81fd)],..._0x1f0710['toolCallId']!==void 0x0?{'originToolCallId':_0x1f0710[_0x9f9713(_0x160bea._0x21e7f4,_0x160bea._0x324b64,0x49d,0x489)]}:{}};const _0x48f972=new AbortController(),_0x2c60bd=addAbortListener(_0x1f0710['signal'],()=>{function _0x721d0e(_0x738f21,_0x44b01b,_0x516f73,_0x1aed84){return _0x9f9713(_0x738f21-_0x520a56._0x3eb2e0,_0x44b01b- -_0x520a56._0x25ce7a,_0x516f73-0x33,_0x738f21);}_0x48f972['abort'](_0x1f0710[_0x721d0e(_0x516744._0x288bac,_0x516744._0x18872b,_0x516744._0x2b1a39,0x296)]?.['reason']);});yield createToolOutput(_0x9f9713(_0x160bea._0x1b86fe,_0x160bea._0x29a335,_0x160bea._0x536649,_0x160bea._0x3bb6d0)+_0x85e8e4[_0x24919c(0x3a2,_0x160bea._0x57a2fa,_0x160bea._0x868882,0x3f3)]+'.',{'runId':_0x85e8e4['runId'],'agentId':_0x85e8e4['agentId'],'sessionId':_0x85e8e4['sessionId'],'status':_0x85e8e4[_0x24919c(0x2e9,_0x160bea._0x565203,_0x160bea._0x4a300a,_0x160bea._0x2931c3)]});try{const _0x470a8f=await _0x379a77[_0x24919c(0x347,0x30a,0x388,0x2ea)](_0x3de61e[_0x24919c(0x294,_0x160bea._0x437c97,0x302,_0x160bea._0x49f7c9)],{'signal':_0x48f972[_0x9f9713(0x3ed,0x3cc,_0x160bea._0x1fc6a2,0x3f3)]});_0x85e8e4={..._0x85e8e4,'status':_0x470a8f['status'],'result':_0x470a8f};if(_0x470a8f['status']!=='completed'){const _0xded9ff=getRunTerminalErrorMessage(_0x470a8f),_0x2ac7ea=formatAbortedRunMessage(_0x85e8e4[_0x9f9713(_0x160bea._0x4fd16d,_0x160bea._0x4c49c6,0x532,0x469)],_0xded9ff);throw new ToolExecutionError(_0x2ac7ea,{...createRunSummary(_0x85e8e4),'aborted':!![],'errorMessage':_0x2ac7ea});}return createRunSummaryOutput(_0x85e8e4,'Agent\x20run\x20'+_0x85e8e4[_0x9f9713(_0x160bea._0x2cfde8,_0x160bea._0x4c49c6,0x439,0x535)]+_0x24919c(0x32b,_0x160bea._0x19d435,0x3c6,_0x160bea._0x1d71f9));}catch(_0x4d4f04){if(_0x4d4f04 instanceof ToolExecutionError)throw _0x4d4f04;if(isAbortError(_0x4d4f04)||_0x48f972[_0x24919c(0x2cd,0x2ef,0x2ec,0x362)][_0x9f9713(_0x160bea._0x4e0d7c,_0x160bea._0x4810f6,_0x160bea._0x2028fb,0x3c1)]||_0x1f0710[_0x24919c(_0x160bea._0xe4f26,0x315,0x2ef,_0x160bea._0x220230)][_0x9f9713(0x35d,_0x160bea._0x25c2b6,0x3fc,0x439)]){const _0x4c4ddd=getRunTerminalErrorMessage(_0x85e8e4[_0x9f9713(0x493,0x435,_0x160bea._0x3fe4fc,_0x160bea._0x13c00e)])??(_0x4d4f04 instanceof Error?_0x4d4f04['message']:String(_0x4d4f04)),_0x49d2e1=formatAbortedRunMessage(_0x85e8e4[_0x24919c(_0x160bea._0x2a6b35,0x36d,0x398,0x3a4)],_0x4c4ddd);_0x85e8e4={..._0x85e8e4,'status':_0x9f9713(_0x160bea._0x560b6a,0x3e1,_0x160bea._0x1fa69d,_0x160bea._0x2fe24f),'errorMessage':_0x49d2e1};throw new ToolExecutionError(_0x49d2e1,{...createRunSummary(_0x85e8e4),'aborted':!![],'errorMessage':_0x49d2e1});}const _0x2e5c7a=getRunTerminalErrorMessage(_0x85e8e4[_0x24919c(0x336,0x37b,_0x160bea._0x41a7c7,_0x160bea._0x364c57)])??(_0x4d4f04 instanceof Error?_0x4d4f04[_0x9f9713(_0x160bea._0x2ac73b,_0x160bea._0xc6141e,0x3f5,0x3eb)]:String(_0x4d4f04))??'Agent\x20run\x20'+_0x85e8e4[_0x24919c(0x3a2,_0x160bea._0x33431b,_0x160bea._0x5432df,0x30e)]+_0x9f9713(0x48d,_0x160bea._0x4dc803,_0x160bea._0x445087,_0x160bea._0x2949d1);_0x85e8e4={..._0x85e8e4,'status':_0x9f9713(0x3ff,0x419,0x3be,_0x160bea._0x34c090),'errorMessage':_0x2e5c7a};throw new ToolExecutionError(_0x2e5c7a,{...createRunSummary(_0x85e8e4),'errorMessage':_0x2e5c7a});}finally{_0x2c60bd();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x6dc31a){return[createAssignTaskTool(_0x6dc31a)];}import*as _0x592476 from'path';function buildDescription2(_0x4c486a){const _0x564f41={_0x259773:0x5c9,_0x2da653:0x59c,_0x58de03:0x5a5,_0x4aa02a:0xb4,_0xdf21f2:0xcd,_0x2ba041:0xf4,_0x153e40:0x104,_0x14ef96:0x554,_0x2dbd4f:0x614,_0x446c8b:0x68b,_0x591592:0x601,_0x37beac:0x61b,_0x59c8f9:0x5f9,_0x3d2318:0x60e,_0x720498:0x60a,_0x196974:0x150,_0x3eaba7:0x146},_0x4e291f={_0x1c1452:0xd1,_0x59a3e6:0xba},_0x14ded6={_0x3444d5:0x8c,_0x50920d:0x14b};function _0xd61641(_0x2beade,_0x324e33,_0x17cba2,_0x140b9b){return _0x44530c(_0x324e33,_0x324e33-_0x14ded6._0x3444d5,_0x17cba2-0xb5,_0x17cba2-_0x14ded6._0x50920d);}function _0x546c8d(_0x35d3c9,_0x49ad74,_0x451224,_0x412357){return _0x452c58(_0x49ad74- -_0x4e291f._0x1c1452,_0x451224,_0x451224-_0x4e291f._0x59a3e6,_0x412357-0x3f);}if(_0x4c486a[_0xd61641(_0x564f41._0x259773,_0x564f41._0x2da653,_0x564f41._0x58de03,0x5cd)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';const _0x37e191=[_0x546c8d(_0x564f41._0x4aa02a,_0x564f41._0xdf21f2,_0x564f41._0x2ba041,_0x564f41._0x153e40),_0xd61641(0x567,_0x564f41._0x14ef96,0x597,0x525),_0xd61641(_0x564f41._0x2dbd4f,_0x564f41._0x446c8b,_0x564f41._0x591592,0x608),_0xd61641(_0x564f41._0x37beac,_0x564f41._0x59c8f9,_0x564f41._0x3d2318,_0x564f41._0x720498),..._0x4c486a[_0x546c8d(0x185,_0x564f41._0x196974,0xeb,0x1b8)](_0xb24e4f=>'-\x20'+_0xb24e4f['name']+':\x20'+_0xb24e4f[_0x546c8d(0x166,0x13c,0x124,0xdd)])];return _0x37e191[_0x546c8d(_0x564f41._0x3eaba7,0xc2,0x95,0xae)]('\x0a');}function createLoadSkillTool(_0x5d35e6){const _0x3cc3be={_0x7d472b:0x321,_0x1ee67a:0x3b7,_0x4722ce:0x342,_0x1d4317:0x3ba,_0x523c5c:0x361,_0x2ec988:0x390,_0x1b2c7a:0x2bb,_0xe021c1:0x234,_0xaafe4e:0x241,_0x26f78c:0x290,_0x260089:0x2da,_0x4f0838:0x390,_0x1cebec:0x36b,_0x37c8d7:0x29a},_0x467275={_0x1c85fd:0x2e0,_0x32d8ff:0x31c,_0x165463:0x297,_0x25c517:0x24a,_0x19ae2c:0x273,_0x1ab695:0x2ab,_0x1499cd:0x309,_0x26d1ae:0x387,_0x257c1c:0x2b3,_0x41da10:0x2bb,_0x5da718:0x2f8,_0x8fc0d2:0x339,_0x33daeb:0x289,_0x542951:0x35c,_0xa3eb1c:0x2fa,_0x2a9127:0x332,_0x34e696:0x2c0,_0x4bc4f9:0x364,_0x3e5df3:0x37c,_0x29a4c1:0x1d0,_0x30319d:0x1e9,_0x4374e9:0x394,_0x3ae253:0x2ed,_0x3e600f:0x2db,_0x459a3a:0x2a5,_0x21a245:0x32a,_0x28b933:0x359,_0x31d343:0x2ea,_0x25cb92:0x282,_0x33bd98:0x2ac,_0x1c18ca:0x1fd,_0x144fb8:0x1a1,_0x5ea839:0x366,_0x4caf8a:0x3a3,_0x2021b6:0x40d,_0x2310a4:0x3d7,_0x22fe1f:0x26e,_0x30465c:0x22a,_0x4de94e:0x1aa,_0x9d7195:0x2df,_0x500bac:0x253,_0x3bfb59:0x2aa,_0x3403a5:0x1ed,_0x182d01:0x283,_0x3e92b3:0x197,_0x23cf86:0x24e},_0x287a99={_0x5be467:0x1cf,_0x5069a8:0x36},_0x59613f={_0xaddd60:0x39},_0x5a4cc2={_0x3ec062:0x61,_0x217844:0x15e},_0x1d319f={_0x16d9e3:0x125,_0xbd4d7b:0x13b},_0x1aeb27=new Map(_0x5d35e6[_0x1e3311(0x3c5,_0x3cc3be._0x7d472b,_0x3cc3be._0x1ee67a,_0x3cc3be._0x4722ce)][_0x1e3311(_0x3cc3be._0x1d4317,_0x3cc3be._0x7d472b,_0x3cc3be._0x523c5c,_0x3cc3be._0x2ec988)](_0x46551d=>[_0x46551d[_0x1e3311(0x33e,0x329,0x3a3,0x32d)],_0x46551d]));function _0x1e3311(_0x439794,_0x36858e,_0x1cf051,_0x3191d0){return _0x44530c(_0x1cf051,_0x36858e-_0x1d319f._0x16d9e3,_0x1cf051-_0x1d319f._0xbd4d7b,_0x3191d0- -0x11d);}function _0x2d03c6(_0x45e3c9,_0x172e8d,_0x102c6d,_0x79ff92){return _0x452c58(_0x79ff92-_0x5a4cc2._0x3ec062,_0x45e3c9,_0x102c6d-0x10,_0x79ff92-_0x5a4cc2._0x217844);}const _0x4d9042=buildDescription2(_0x5d35e6[_0x2d03c6(_0x3cc3be._0x1b2c7a,0x294,0x284,_0x3cc3be._0xe021c1)]);return defineTool({'name':'LoadSkill','description':_0x4d9042,'inputSchema':{'type':_0x2d03c6(0x33d,_0x3cc3be._0xaafe4e,_0x3cc3be._0x26f78c,_0x3cc3be._0x260089),'properties':{'name':{'type':_0x1e3311(_0x3cc3be._0x4f0838,0x429,_0x3cc3be._0x1cebec,0x3e3)}},'required':[_0x1e3311(_0x3cc3be._0x37c8d7,0x37b,0x35d,0x32d)]},async *'execute'(_0x35c154){const _0x18baa3=_0x1aeb27[_0x4b9a23(0x315,0x28f,_0x467275._0x1c85fd,_0x467275._0x32d8ff)](_0x35c154[_0x4b9a23(_0x467275._0x165463,0x255,_0x467275._0x25c517,_0x467275._0x19ae2c)]);function _0x1ccd3c(_0x23ae24,_0x1d9017,_0x10a5ee,_0x35d1dd){return _0x1e3311(_0x23ae24-0x16f,_0x1d9017-0x42,_0x1d9017,_0x35d1dd- -_0x59613f._0xaddd60);}if(!_0x18baa3){const _0x219dbb=Array[_0x4b9a23(_0x467275._0x1ab695,_0x467275._0x1499cd,0x27f,_0x467275._0x26d1ae)](_0x1aeb27[_0x1ccd3c(0x344,0x341,0x306,0x385)]())[_0x4b9a23(_0x467275._0x257c1c,0x22a,_0x467275._0x41da10,0x2b8)](',\x20');throw new ToolExecutionError(_0x1ccd3c(_0x467275._0x5da718,0x393,0x314,0x380)+_0x35c154[_0x1ccd3c(_0x467275._0x8fc0d2,_0x467275._0x33daeb,_0x467275._0x542951,0x2f4)]+_0x1ccd3c(_0x467275._0xa3eb1c,0x2c0,_0x467275._0x2a9127,_0x467275._0x34e696)+_0x219dbb,{'name':_0x35c154['name']});}const _0x33acc6=await _0x5d35e6[_0x1ccd3c(0x34c,0x38a,_0x467275._0x4bc4f9,_0x467275._0x3e5df3)](_0x18baa3);function _0x4b9a23(_0x559bb8,_0x238c19,_0x17122b,_0x48a636){return _0x2d03c6(_0x559bb8,_0x238c19-_0x287a99._0x5be467,_0x17122b-0x78,_0x238c19-_0x287a99._0x5069a8);}const _0x5207f5=_0x18baa3[_0x4b9a23(0x1d0,0x214,_0x467275._0x29a4c1,0x17c)][_0x4b9a23(0x1dd,0x231,0x2ad,_0x467275._0x30319d)]??_0x592476[_0x4b9a23(_0x467275._0x4374e9,0x328,0x39c,0x2b6)](_0x18baa3['source'][_0x1ccd3c(0x272,0x338,0x2c0,_0x467275._0x3ae253)]),_0x3f2fa1=['##\x20Skill:\x20'+_0x33acc6[_0x4b9a23(_0x467275._0x3e600f,0x255,_0x467275._0x459a3a,0x290)],'',_0x33acc6[_0x1ccd3c(0x361,0x341,_0x467275._0x21a245,_0x467275._0x28b933)],'',_0x4b9a23(0x314,0x27a,_0x467275._0x31d343,0x2b0),_0x4b9a23(0x25b,_0x467275._0x25cb92,0x2f4,0x258)+_0x18baa3[_0x4b9a23(_0x467275._0x33bd98,0x214,_0x467275._0x1c18ca,_0x467275._0x144fb8)]['path'],_0x1ccd3c(_0x467275._0x5ea839,_0x467275._0x4caf8a,_0x467275._0x2021b6,_0x467275._0x2310a4)+_0x5207f5][_0x4b9a23(_0x467275._0x22fe1f,_0x467275._0x30465c,0x20e,_0x467275._0x4de94e)]('\x0a');return yield createToolOutput(_0x3f2fa1,{'id':_0x33acc6['id'],'name':_0x33acc6[_0x4b9a23(_0x467275._0x9d7195,0x255,_0x467275._0x500bac,_0x467275._0x3bfb59)],'path':_0x18baa3[_0x4b9a23(_0x467275._0x3403a5,0x214,_0x467275._0x182d01,_0x467275._0x3e92b3)][_0x4b9a23(0x2cc,_0x467275._0x23cf86,0x234,0x22c)],'baseDirectory':_0x5207f5}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createToolOutput,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
|
|
1
|
+
(function(_0x2fb82b,_0x4f3d63){const _0x4b979f={_0x5c235b:0x49e,_0x2d8904:0x5b0,_0x5601bb:0x51b,_0x47fdb2:0x6a1,_0x3d3cfc:0x619,_0x253e30:0x60b,_0x1b240f:0x6cb,_0x3a9f8a:0x42f,_0x32d590:0x442,_0x310d41:0x471,_0x4adb76:0x309,_0x979f43:0x391,_0x48daaf:0x2e0,_0x436550:0x4b8,_0x31256b:0x571,_0x39a660:0x56f,_0x35e20e:0x3d3,_0xd4fa7f:0x4f3},_0x538481={_0x3b670c:0x1a7};function _0xd3fc68(_0x3abbf1,_0x4087bd,_0x3baff4,_0x4c66ae){return _0x1a55(_0x4c66ae-_0x538481._0x3b670c,_0x4087bd);}const _0x463915=_0x2fb82b();function _0x5846cd(_0x410dd7,_0x449942,_0x23cc5a,_0x1dc9e7){return _0x1a55(_0x23cc5a-0x315,_0x410dd7);}while(!![]){try{const _0x5632fd=-parseInt(_0x5846cd(_0x4b979f._0x5c235b,_0x4b979f._0x2d8904,_0x4b979f._0x5601bb,0x55d))/0x1+-parseInt(_0x5846cd(_0x4b979f._0x47fdb2,_0x4b979f._0x3d3cfc,_0x4b979f._0x253e30,_0x4b979f._0x1b240f))/0x2+-parseInt(_0xd3fc68(_0x4b979f._0x3a9f8a,_0x4b979f._0x32d590,_0x4b979f._0x310d41,0x4a3))/0x3+parseInt(_0xd3fc68(0x326,0x415,_0x4b979f._0x4adb76,_0x4b979f._0x979f43))/0x4+parseInt(_0xd3fc68(0x351,_0x4b979f._0x48daaf,0x32c,0x376))/0x5+-parseInt(_0xd3fc68(0x520,0x4cb,_0x4b979f._0x436550,0x4af))/0x6+parseInt(_0x5846cd(0x506,_0x4b979f._0x31256b,_0x4b979f._0x39a660,0x5e9))/0x7*(parseInt(_0xd3fc68(0x425,_0x4b979f._0x35e20e,_0x4b979f._0xd4fa7f,0x457))/0x8);if(_0x5632fd===_0x4f3d63)break;else _0x463915['push'](_0x463915['shift']());}catch(_0x1921a6){_0x463915['push'](_0x463915['shift']());}}}(_0x3e54,0x4c435));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 _0x4299d8 from'os';import*as _0x5a08fe from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';var DEFAULT_DESCRIPTION=_0x49a26f(0x42f,0x407,0x419,0x426),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x1c09d6){return _0x1c09d6 instanceof Error;}function shellExists(_0x1ca187){const _0x47244e={_0xe2f015:0x4f4,_0x2fdf61:0x27d,_0x1eb52c:0x258,_0x503f1f:0x1e2},_0x59157d={_0x40a18c:0x106},_0x2e68f7={_0x407f95:0x1cc,_0x3c5ca7:0x1b8,_0x151a84:0x1f7};function _0x341ec3(_0x39a2cd,_0x47d49d,_0x13ac16,_0x33ff34){return _0x49a26f(_0x33ff34,_0x47d49d-_0x2e68f7._0x407f95,_0x13ac16-_0x2e68f7._0x3c5ca7,_0x13ac16- -_0x2e68f7._0x151a84);}function _0x393499(_0x48e039,_0x23af0d,_0x1a87e1,_0x9f2b5f){return _0x49a26f(_0x23af0d,_0x23af0d-0x152,_0x1a87e1-_0x59157d._0x40a18c,_0x9f2b5f-0x3a);}try{const _0x48af57=statSync(_0x1ca187);return _0x48af57[_0x393499(0x3b2,0x4d0,_0x47244e._0xe2f015,0x46f)]()&&(_0x48af57[_0x341ec3(_0x47244e._0x2fdf61,0x286,_0x47244e._0x1eb52c,_0x47244e._0x503f1f)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x40fd9d){const _0x2f7505={_0x5aa9af:0x4b1,_0x3dbe43:0x657,_0x335351:0x5ab,_0x55fd73:0x1df,_0xdedfab:0x26f,_0x398a3c:0x54c,_0x20b531:0x568,_0x1aceef:0x3e9,_0xe137df:0x497,_0x2fe0a9:0x59b,_0x28da5f:0x5ac,_0x20d464:0x29f,_0x24ce62:0x26f,_0xfe04ab:0x1bd,_0x17d08c:0x4c6,_0x4562e0:0x4dc,_0x4fe9a9:0x471},_0x4c1b3a={_0x4c9e71:0xea},_0x57927a={_0xcc1d4:0x11f,_0x2b881b:0xb6,_0x7c86e1:0x152};if(_0x40fd9d)return _0x40fd9d;if(_0x4299d8[_0x5ca992(0x408,0x566,_0x2f7505._0x5aa9af,0x56f)]()===_0x5ca992(_0x2f7505._0x3dbe43,0x5db,_0x2f7505._0x335351,0x581))return process[_0x53c9f0(_0x2f7505._0x55fd73,0x29c,_0x2f7505._0xdedfab,0x2bc)][_0x5ca992(0x4ed,0x4ff,_0x2f7505._0x398a3c,_0x2f7505._0x20b531)]||'cmd.exe';const _0x10e1ac=[_0x5ca992(_0x2f7505._0x1aceef,0x4fe,_0x2f7505._0xe137df,0x548),'/bin/sh',_0x5ca992(0x617,0x50f,_0x2f7505._0x2fe0a9,_0x2f7505._0x28da5f),'/usr/bin/sh'];for(const _0x4a0711 of _0x10e1ac){if(shellExists(_0x4a0711))return _0x4a0711;}function _0x5ca992(_0x5be416,_0xa97a3d,_0x3c019c,_0x1f10b9){return _0x49a26f(_0x1f10b9,_0xa97a3d-_0x57927a._0xcc1d4,_0x3c019c-_0x57927a._0x2b881b,_0x3c019c-_0x57927a._0x7c86e1);}const _0x45a97d=process[_0x53c9f0(_0x2f7505._0x20d464,0x1c9,_0x2f7505._0x24ce62,_0x2f7505._0xfe04ab)][_0x5ca992(0x42b,0x411,_0x2f7505._0x17d08c,0x431)];function _0x53c9f0(_0x4ddd1b,_0x41cbb2,_0xbb951c,_0x1e3432){return _0x49a26f(_0x4ddd1b,_0x41cbb2-0xe4,_0xbb951c-0x34,_0xbb951c- -_0x4c1b3a._0x4c9e71);}if(_0x45a97d&&shellExists(_0x45a97d))return _0x45a97d;return _0x5ca992(_0x2f7505._0x4562e0,0x4cb,0x497,_0x2f7505._0x4fe9a9);}function buildShellArgs(_0x2d1108,_0x2b9d6c){const _0x3519f5={_0x225834:0x180,_0x255146:0x1bd,_0x2ed7fd:0x266,_0x5d72c9:0x298,_0x53cb8b:0x25c,_0x35375b:0x26d,_0x3b5a7a:0x389,_0x241518:0x2c2,_0x279843:0x1d5,_0x55c701:0x15e,_0xf1ba4b:0x265,_0x4df7b5:0x579,_0x4aac28:0x59d,_0x41bf3d:0x562},_0xe0e0ed={_0x57396d:0x173},_0x5a555d={_0x6674c8:0x141};if(_0x4299d8[_0x337ef4(_0x3519f5._0x225834,0x1ab,0x1c2,0x21e)]()==='win32'){const _0x19a850=/cmd(\.exe)?$/i[_0x337ef4(_0x3519f5._0x255146,_0x3519f5._0x2ed7fd,_0x3519f5._0x5d72c9,_0x3519f5._0x53cb8b)](_0x2b9d6c);return _0x19a850?['/d','/s','/c',_0x2d1108]:[_0x337ef4(_0x3519f5._0x35375b,_0x3519f5._0x3b5a7a,_0x3519f5._0x241518,0x315),_0x337ef4(_0x3519f5._0x279843,_0x3519f5._0x55c701,_0x3519f5._0xf1ba4b,0x1de),_0x40c7d1(_0x3519f5._0x4df7b5,0x5ed,_0x3519f5._0x4aac28,_0x3519f5._0x41bf3d),_0x2d1108];}function _0x337ef4(_0x2994dd,_0x4d7ad3,_0x55d30d,_0x59c48c){return _0x49a26f(_0x4d7ad3,_0x4d7ad3-0x97,_0x55d30d-0x6c,_0x59c48c- -_0x5a555d._0x6674c8);}function _0x40c7d1(_0x4a7a92,_0x4bd12a,_0x1672e4,_0x24b6f4){return _0x49a26f(_0x4a7a92,_0x4bd12a-0x9f,_0x1672e4-0x106,_0x4bd12a-_0xe0e0ed._0x57396d);}return['-c',_0x2d1108];}function stripAnsiAndControls(_0x46e0be){const _0x27568e={_0x14d9cf:0x524,_0x22ca1e:0x53d,_0x1f79d4:0x498,_0x308b7d:0x3ad,_0x4ac222:0x478,_0x334e3b:0x49e,_0x1c6f61:0x67a,_0xfb4aca:0x64c,_0x4fdf82:0x3d2,_0x1ea1f9:0x665,_0x2c8e73:0x59d,_0x1f31a2:0x54c,_0x28b48c:0x498},_0x1beb94={_0x5a139e:0x1a4},_0x1b1570={_0x191c5e:0x139,_0x47cb87:0xa7,_0x55811b:0x4e};_0x46e0be=stripVTControlCharacters(_0x46e0be);const _0x37e057='\x1b',_0x2321d8='\x07';function _0x31a605(_0x5ec811,_0x532339,_0xbca678,_0x5f13d6){return _0x49a26f(_0x5ec811,_0x532339-_0x1b1570._0x191c5e,_0xbca678-_0x1b1570._0x47cb87,_0x5f13d6-_0x1b1570._0x55811b);}_0x46e0be=_0x46e0be[_0x31a605(0x4b9,_0x27568e._0x14d9cf,_0x27568e._0x22ca1e,_0x27568e._0x1f79d4)](new RegExp(_0x31a605(0x3dd,_0x27568e._0x308b7d,0x344,0x3ff)+_0x2321d8+_0x31a605(0x403,0x4b4,_0x27568e._0x4ac222,_0x27568e._0x334e3b)+_0x2321d8,'g'),''),_0x46e0be=_0x46e0be[_0x2e7bd9(0x644,_0x27568e._0x1c6f61,_0x27568e._0xfb4aca,0x5ee)](new RegExp(';[^\x5cn]*?'+_0x37e057+'\x5c\x5c','g'),''),_0x46e0be=_0x46e0be[_0x2e7bd9(0x643,0x56f,0x5f1,0x5ee)](new RegExp(_0x2321d8,'g'),''),_0x46e0be=_0x46e0be[_0x31a605(0x485,0x462,0x4f0,0x498)](new RegExp(_0x37e057+_0x31a605(0x401,0x327,_0x27568e._0x4fdf82,0x3d0)+_0x37e057+'\x5c\x5c','g'),''),_0x46e0be=_0x46e0be['replace'](new RegExp(_0x37e057+'[=>7-8()]','g'),''),_0x46e0be=_0x46e0be[_0x2e7bd9(0x597,_0x27568e._0x1ea1f9,_0x27568e._0x2c8e73,0x5ee)](/[\u0080-\u009F]/g,''),_0x46e0be=_0x46e0be['replace'](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,'');function _0x2e7bd9(_0x5505c0,_0x303072,_0x445908,_0x1ed4fa){return _0x49a26f(_0x445908,_0x303072-0x12b,_0x445908-0x12a,_0x1ed4fa-_0x1beb94._0x5a139e);}return _0x46e0be=_0x46e0be[_0x31a605(0x547,0x40d,_0x27568e._0x1f31a2,_0x27568e._0x28b48c)](/[\u23CE\u2424]/g,''),_0x46e0be;}function resolveWorkingDirectory(_0x58a6ef,_0x27fd80){const _0x5a546d={_0x26526a:0x366,_0x460f40:0x2c5,_0xe532b4:0x3bb},_0x18af32={_0x15e61f:0x167},_0x25bf85={_0x5336ca:0x81};function _0x28fab4(_0x3414bd,_0x38aea5,_0x3fef92,_0x2c2155){return _0x49a26f(_0x3414bd,_0x38aea5-0x6a,_0x3fef92-0x15f,_0x3fef92- -_0x25bf85._0x5336ca);}function _0x3b13d0(_0x2ee196,_0x345f09,_0x5e4a9f,_0x4ba908){return _0x49a26f(_0x4ba908,_0x345f09-_0x18af32._0x15e61f,_0x5e4a9f-0x15e,_0x345f09- -0x120);}const _0xfc1e4f=_0x58a6ef?_0x5a08fe['isAbsolute'](_0x58a6ef)?_0x58a6ef:_0x5a08fe[_0x28fab4(_0x5a546d._0x26526a,0x3c8,0x357,0x2da)](_0x27fd80,_0x58a6ef):_0x27fd80;try{const _0x1ff8aa=statSync(_0xfc1e4f);if(!_0x1ff8aa['isDirectory']())throw new ToolExecutionError(_0x3b13d0(0x31c,0x35d,0x3ba,0x36f)+_0xfc1e4f,{'cwd':_0xfc1e4f});return _0xfc1e4f;}catch(_0x184cb1){if(_0x184cb1 instanceof ToolExecutionError)throw _0x184cb1;throw new ToolExecutionError(_0x28fab4(0x3fb,_0x5a546d._0x460f40,0x37a,_0x5a546d._0xe532b4)+_0xfc1e4f,{'cwd':_0xfc1e4f});}}function killProcessGroup(_0x133c54,_0x364827,_0xb0431b=_0xaab5df(-0x24,-0xca,-0x18a,-0x10a)){const _0x118bf9={_0x16216d:0x374,_0x472b92:0x334,_0x5f4781:0x2bd,_0x49814d:0x264,_0x34a83c:0x301,_0x493647:0x3f5,_0x272bc4:0x455,_0x2b13d2:0x3f1,_0x40d1f2:0x34c},_0x31a0d5={_0x30badd:0x1d8,_0x137b29:0x22,_0x3aec2d:0x45};if(!_0x133c54[_0x11ff92(_0x118bf9._0x16216d,_0x118bf9._0x472b92,0x36e,0x3af)])return;function _0x11ff92(_0x2963f0,_0x27c9c4,_0x15b501,_0x2ff29c){return _0xaab5df(_0x2963f0-0x95,_0x2ff29c-0x4ee,_0x15b501-0xb7,_0x15b501);}if(_0x364827)try{spawn(_0x11ff92(_0x118bf9._0x5f4781,0x296,_0x118bf9._0x49814d,_0x118bf9._0x34a83c),['/pid',_0x133c54['pid']['toString'](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x133c54['kill'](_0xb0431b);return;}function _0x198259(_0x52f6d9,_0x4bac24,_0x27fcc1,_0x2effac){return _0x49a26f(_0x2effac,_0x4bac24-_0x31a0d5._0x30badd,_0x27fcc1-_0x31a0d5._0x137b29,_0x27fcc1- -_0x31a0d5._0x3aec2d);}try{process['kill'](-_0x133c54[_0x11ff92(_0x118bf9._0x493647,0x3c7,_0x118bf9._0x272bc4,0x3af)],_0xb0431b);}catch{_0x133c54[_0x198259(_0x118bf9._0x2b13d2,0x305,_0x118bf9._0x40d1f2,0x3bd)](_0xb0431b);}}function appendChunk(_0x16d120,_0x27ac04,_0x4b81bc,_0x1692d9,_0x27f81a){const _0x5eeee5={_0x4a08b1:0x5cb,_0x4dd044:0x47a,_0x283205:0x520,_0x3475c9:0x1d6,_0xdc157b:0x142,_0x2f4451:0x179},_0x4241f9={_0x5588c1:0xa,_0x35d9a1:0x1a8};function _0x46adbb(_0x590323,_0xcb5dff,_0x2eed83,_0x45703c){return _0xaab5df(_0x590323-0xac,_0x590323- -_0x4241f9._0x5588c1,_0x2eed83-_0x4241f9._0x35d9a1,_0xcb5dff);}const _0x468d72=_0x1692d9?stripAnsiAndControls(_0x4b81bc):_0x4b81bc;if(_0x468d72[_0x2c9a12(_0x5eeee5._0x4a08b1,_0x5eeee5._0x4dd044,0x517,_0x5eeee5._0x283205)]===0x0)return;_0x16d120[_0x46adbb(-_0x5eeee5._0x3475c9,-_0x5eeee5._0xdc157b,-_0x5eeee5._0x2f4451,-0x16f)](_0x468d72),_0x27ac04[_0x46adbb(-0x1d6,-0x20c,-0x22c,-0x17e)](_0x468d72);function _0x2c9a12(_0x5bcdf2,_0x3ca81c,_0x64a347,_0x4441ec){return _0x49a26f(_0x5bcdf2,_0x3ca81c-0xa2,_0x64a347-0x147,_0x4441ec-0x1bb);}_0x27f81a();}function createBashTool(_0x13e6ff={}){const _0x2acf74={_0x22d42b:0xad,_0x358a32:0x168,_0x37a019:0x153,_0x7029df:0x47,_0x37fb24:0x3c,_0xdf8c9e:0x1c7,_0x3bd178:0x11d,_0x39b005:0x1d,_0x545da5:0x101,_0x191a07:0xf2,_0x29d876:0x13,_0x376d8a:0xcd,_0x3b7dd4:0x16f,_0x327660:0x190,_0x57a9f4:0x93,_0x562665:0xfb,_0x2b2530:0x6f,_0x391d4d:0xaa,_0x4a0afa:0x52,_0x30099d:0x7},_0x3a7654={_0xab5338:0x5d1,_0x45afa2:0x70d,_0x2a48b1:0x659,_0x38f637:0x6e9,_0x5b4f37:0x52f,_0x5161d1:0x566,_0x78a4a4:0x624,_0x44ce3c:0x4e3,_0xf1d885:0x52a,_0x5ee366:0x622,_0x26bb7e:0x4ee,_0x27683e:0x6f3,_0x3e6dd8:0x6ad,_0x2d15f6:0x5b9,_0x13e702:0x623,_0x59ba38:0x585,_0x17a728:0x580,_0x4a0aa4:0x4ff,_0x3e103d:0x4ed,_0x3177b4:0x50b,_0x5b97e0:0x5dc,_0x47fad7:0x698,_0x3afa23:0x604,_0x5b4074:0x597,_0x22ea71:0x644,_0x5396b1:0x62d,_0x3e9689:0x6c3,_0x5d4c8e:0x56a,_0x45dc2b:0x593,_0x587e7e:0x5cf,_0x5412ac:0x593,_0x13a7bd:0x538,_0x2523ff:0x571,_0x10718e:0x4f1,_0xcf0ecf:0x580,_0x3a5fe0:0x5bf,_0x173ba2:0x4a2,_0x3af64:0x4ba,_0x2f376f:0x60a,_0x4988e6:0x50d,_0x140f45:0x553,_0x28fea8:0x49f,_0x57717d:0x602,_0x6e3fd8:0x6a7,_0x454046:0x632,_0x4ded30:0x606,_0x2a6214:0x581,_0x4a33bb:0x5f4,_0x5e5c7a:0x58e,_0xea81ea:0x594,_0xadf378:0x641,_0x59a831:0x603,_0x2cfc34:0x4e4,_0x5bb588:0x44a,_0x223d2f:0x4f5,_0x47e848:0x5a9,_0x68baf5:0x560,_0x319a00:0x45c,_0xf9870c:0x4f3,_0x3ede3c:0x582,_0x4ebea6:0x67b,_0x28ad1c:0x66e,_0x26d90a:0x5bb,_0x33604a:0x536,_0x2e7201:0x527,_0x5c1d81:0x5de,_0x36ef95:0x5a6,_0x2180fa:0x661,_0x3fa343:0x55c,_0x5ac299:0x559,_0x3b7945:0x4d1,_0x5e6d5d:0x5d7,_0x53b5a2:0x563,_0x31cd72:0x5f1,_0x2ad130:0x4b4,_0x15a496:0x4f3,_0x26866a:0x5e5,_0x474998:0x54f,_0x38a524:0x46f,_0x32192b:0x552,_0x12ac74:0x573,_0x2ba3d1:0x577,_0xe81d0f:0x5e8,_0x481886:0x595,_0x394570:0x66a,_0x5e8d08:0x5ff,_0x101bde:0x675,_0x484b3f:0x459,_0x41130a:0x4f5,_0x2ff472:0x4ac},_0x49af01={_0x50728e:0x32,_0x1b7179:0x106,_0x24bb68:0x543},_0x486706={_0x2c1a1b:0x1ae,_0x550c95:0x49b},_0x30adc9={_0x3fbffd:0x6,_0x55f412:0x29,_0x2f3147:0x30d},_0x1c0412={_0x2d9c5d:0xfb,_0x251fc9:0xc0,_0x13ef77:0x27e},_0x3c388b=_0x5a08fe['resolve'](_0x13e6ff[_0x53ee27(_0x2acf74._0x22d42b,0xd1,0xf3,_0x2acf74._0x358a32)]??process[_0x53ee27(0x1d1,0xf2,0x9e,_0x2acf74._0x37a019)]()),_0x584107=_0x13e6ff[_0x53ee27(-_0x2acf74._0x7029df,0x4,0x9a,_0x2acf74._0x37fb24)]??DEFAULT_TIMEOUT_MS,_0x517f15=_0x13e6ff[_0x2592b7(0x13a,_0x2acf74._0xdf8c9e,_0x2acf74._0x3bd178,0x86)]??!![];function _0x2592b7(_0x59c13e,_0x3d4fb3,_0x15b69e,_0x484558){return _0x49a26f(_0x15b69e,_0x3d4fb3-_0x1c0412._0x2d9c5d,_0x15b69e-_0x1c0412._0x251fc9,_0x59c13e- -_0x1c0412._0x13ef77);}const _0x158821=_0x13e6ff[_0x53ee27(-_0x2acf74._0x39b005,0xe6,0x109,0x55)]??'Bash';function _0x53ee27(_0x523a99,_0xad0924,_0x2b3857,_0xf859b1){return _0x49a26f(_0x523a99,_0xad0924-_0x30adc9._0x3fbffd,_0x2b3857-_0x30adc9._0x55f412,_0xf859b1- -_0x30adc9._0x2f3147);}return defineTool({'name':_0x158821,'description':_0x13e6ff[_0x53ee27(_0x2acf74._0x545da5,_0x2acf74._0x191a07,0xeb,0x14e)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x53ee27(-_0x2acf74._0x29d876,_0x2acf74._0x376d8a,-0x51,0x41),'properties':{'command':{'type':_0x53ee27(_0x2acf74._0x3b7dd4,_0x2acf74._0x327660,_0x2acf74._0x57a9f4,_0x2acf74._0x562665)},'cwd':{'type':_0x53ee27(0x50,0xf6,0xa6,0xfb)},'timeoutMs':{'type':_0x2592b7(0xf2,0x14f,0xa2,0xa1)},'ignoreOutput':{'type':_0x2592b7(0x10f,0x1a6,0xd8,_0x2acf74._0x2b2530)}},'required':[_0x53ee27(-_0x2acf74._0x391d4d,-_0x2acf74._0x4a0afa,0x47,_0x2acf74._0x30099d)]},async *'execute'(_0x32a151,_0x2465fe){const _0x46f2fc={_0x511fba:0x6ab,_0x50f774:0x5d3,_0x3d29e9:0x123,_0x49319c:0xfc},_0x2f8bc5={_0x19c47f:0x0,_0x5b9bfb:0x558},_0x444adc={_0x5ca2c0:0x214},_0x554d59={_0x266e04:0x5d3,_0xde5ed2:0xe1},_0x2d7acd={_0x9c344e:0x438,_0xd1198e:0x4de,_0xc79c43:0x539},_0x587c1a=_0x32a151[_0x769615(_0x3a7654._0xab5338,_0x3a7654._0x45afa2,_0x3a7654._0x2a48b1,_0x3a7654._0x38f637)]??_0x584107;if(!Number[_0x769615(_0x3a7654._0x5b4f37,0x4c9,_0x3a7654._0x5161d1,_0x3a7654._0x78a4a4)](_0x587c1a)||_0x587c1a<0x1)throw new ToolExecutionError(_0x769615(_0x3a7654._0x44ce3c,_0x3a7654._0xf1d885,0x571,_0x3a7654._0x5ee366),{'command':_0x32a151[_0x769615(0x53c,_0x3a7654._0x26bb7e,0x553,0x5f7)]});throwIfAborted(_0x2465fe['signal']);const _0xfe986d=resolveWorkingDirectory(_0x32a151[_0x769615(0x6a9,_0x3a7654._0x27683e,0x69f,_0x3a7654._0x3e6dd8)],_0x3c388b),_0x37b2a6=_0x32a151[_0x27c539(_0x3a7654._0x2d15f6,_0x3a7654._0x13e702,0x615,_0x3a7654._0x59ba38)]??![],_0x38506c=resolveDefaultShell(_0x13e6ff[_0x769615(_0x3a7654._0x17a728,0x52a,0x561,_0x3a7654._0x4a0aa4)]),_0x43bbb8=buildShellArgs(_0x32a151['command'],_0x38506c),_0x4f566a=_0x4299d8[_0x27c539(0x4c2,0x542,_0x3a7654._0x3e103d,_0x3a7654._0x3177b4)]()===_0x769615(_0x3a7654._0x5b97e0,0x6e9,_0x3a7654._0x47fad7,_0x3a7654._0x3afa23);let _0x42f6ed;function _0x27c539(_0x2ca90f,_0x329d24,_0x387bcf,_0x199749){return _0x53ee27(_0x2ca90f,_0x329d24-0x15f,_0x387bcf-_0x486706._0x2c1a1b,_0x387bcf-_0x486706._0x550c95);}try{_0x42f6ed=spawn(_0x38506c,_0x43bbb8,{'cwd':_0xfe986d,'env':{...process['env'],..._0x13e6ff[_0x27c539(0x5a2,0x43c,0x4e7,0x52d)]??{}},'stdio':_0x37b2a6?[_0x769615(0x5fa,_0x3a7654._0x5b4074,_0x3a7654._0x22ea71,0x617),_0x769615(0x61f,_0x3a7654._0x5396b1,0x644,_0x3a7654._0x3e9689),_0x27c539(0x5d7,_0x3a7654._0x5d4c8e,_0x3a7654._0x45dc2b,0x59e)]:[_0x27c539(_0x3a7654._0x587e7e,0x58d,_0x3a7654._0x5412ac,_0x3a7654._0x13a7bd),'pipe',_0x27c539(0x4c9,_0x3a7654._0x2523ff,_0x3a7654._0x10718e,_0x3a7654._0xcf0ecf)],'shell':![],'windowsHide':!![],'detached':!_0x4f566a});}catch(_0x5a8af7){if(isErrnoException(_0x5a8af7)&&_0x5a8af7['code']===_0x27c539(0x581,0x5e5,_0x3a7654._0x3a5fe0,0x537))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x38506c,{'command':_0x32a151[_0x27c539(0x559,0x424,_0x3a7654._0x173ba2,_0x3a7654._0x3af64)],'cwd':_0xfe986d,'shellPath':_0x38506c});throw new ToolExecutionError(_0x5a8af7 instanceof Error?_0x5a8af7['message']:String(_0x5a8af7),{'command':_0x32a151[_0x769615(_0x3a7654._0x2f376f,_0x3a7654._0x4988e6,_0x3a7654._0x140f45,_0x3a7654._0x28fea8)],'cwd':_0xfe986d,'shellPath':_0x38506c});}const _0x1ed295=[],_0x62b6f1=[],_0x4cff6c=new StringDecoder(_0x769615(_0x3a7654._0x57717d,_0x3a7654._0x6e3fd8,_0x3a7654._0x454046,_0x3a7654._0x4ded30)),_0x2617d7=new StringDecoder(_0x27c539(0x5ce,0x628,_0x3a7654._0x2a6214,0x55d));let _0xcfac01,_0x1a08a3=![],_0x5b928b;const _0x59d840=()=>{if(!_0xcfac01)return;const _0x1164d9=_0xcfac01;_0xcfac01=void 0x0,_0x1164d9();},_0x4baaba=async()=>{if(_0x62b6f1['length']>0x0||_0x1a08a3)return;await new Promise(_0x44f373=>{_0xcfac01=_0x44f373;});},_0x4ca6be=_0x5e1dae=>{appendChunk(_0x1ed295,_0x62b6f1,_0x4cff6c['write'](_0x5e1dae),_0x517f15,_0x59d840);},_0x1e0058=_0x4ce630=>{const _0x5bcba2={_0x4126de:0x18,_0x9aa412:0x19a};function _0x3d5d00(_0xbdef3e,_0x661b69,_0x227a31,_0x4fd1c7){return _0x769615(_0x661b69,_0x661b69-_0x5bcba2._0x4126de,_0x227a31- -0x152,_0x4fd1c7-_0x5bcba2._0x9aa412);}appendChunk(_0x1ed295,_0x62b6f1,_0x2617d7[_0x3d5d00(_0x2d7acd._0x9c344e,0x484,_0x2d7acd._0xd1198e,_0x2d7acd._0xc79c43)](_0x4ce630),_0x517f15,_0x59d840);};function _0x769615(_0x19caee,_0x2ba977,_0x275674,_0x1122a7){return _0x2592b7(_0x275674-0x4bd,_0x2ba977-0x57,_0x19caee,_0x1122a7-0x62);}_0x42f6ed[_0x769615(_0x3a7654._0x4a33bb,_0x3a7654._0x5e5c7a,_0x3a7654._0xea81ea,0x533)]?.['on']('data',_0x4ca6be),_0x42f6ed[_0x27c539(_0x3a7654._0xadf378,_0x3a7654._0x59a831,0x609,0x5a3)]?.['on'](_0x27c539(0x4fd,0x541,_0x3a7654._0x2cfc34,0x5a2),_0x1e0058);let _0x3a2a76=![],_0x14f9c4;const _0x22ff31=addAbortListener(_0x2465fe[_0x27c539(0x44d,_0x3a7654._0x5bb588,_0x3a7654._0x223d2f,0x56c)],()=>{function _0x2c2b23(_0x4d4127,_0x27ae71,_0x3a0adb,_0x1d3bf3){return _0x27c539(_0x4d4127,_0x27ae71-0xe7,_0x3a0adb- -_0x554d59._0x266e04,_0x1d3bf3-_0x554d59._0xde5ed2);}function _0x327c4e(_0x3f5f13,_0x116553,_0x19780f,_0x4ea76b){return _0x769615(_0x19780f,_0x116553-0x15d,_0x116553- -_0x444adc._0x5ca2c0,_0x4ea76b-0x83);}_0x5b928b=toAbortError(_0x2465fe[_0x2c2b23(-_0x49af01._0x50728e,-_0x49af01._0x1b7179,-0xde,-0x3e)][_0x327c4e(0x3fa,0x483,0x494,_0x49af01._0x24bb68)]),_0x1a08a3=!![],_0x59d840();try{killProcessGroup(_0x42f6ed,_0x4f566a);}catch{}});try{const _0x29f13f=new Promise((_0x265422,_0x52b092)=>{const _0x573654={_0x172cbb:0x4cc,_0x3aae9c:0x4ac},_0x3a7d58={_0x90dd52:0x31c},_0x159849={_0x518d14:0x63,_0x53e798:0x5b,_0x992ba1:0x47},_0x3f9009={_0x98c08f:0x51,_0x43ce84:0xc5,_0x6c460b:0x1b8},_0xd22ea7={_0x3b137a:0x638,_0x3d6029:0x6b4,_0x2ee1df:0x6a4,_0x434276:0x63f,_0x4ae148:0x6ac,_0x5738eb:0x6c0,_0x32bda6:0x753,_0x5cc179:0x727},_0xfb077a=()=>{function _0x90c22a(_0x19b415,_0x4c73b5,_0x27626b,_0x59f13e){return _0x1a55(_0x27626b-0x3ba,_0x4c73b5);}function _0x11708f(_0x449911,_0x17b769,_0x20e2f4,_0x55cff7){return _0x1a55(_0x55cff7- -0x1d1,_0x17b769);}_0x14f9c4&&(clearTimeout(_0x14f9c4),_0x14f9c4=void 0x0),_0x42f6ed[_0x90c22a(_0xd22ea7._0x3b137a,_0xd22ea7._0x3d6029,_0xd22ea7._0x2ee1df,0x6a7)](_0x90c22a(0x691,0x6f8,0x6f4,_0xd22ea7._0x434276),_0x29697a),_0x42f6ed[_0x90c22a(_0xd22ea7._0x4ae148,0x64c,0x6a4,_0xd22ea7._0x5738eb)](_0x90c22a(_0xd22ea7._0x32bda6,_0xd22ea7._0x5cc179,0x6aa,0x717),_0x463f14);},_0x29697a=_0x197935=>{_0x1a08a3=!![],_0x59d840(),_0xfb077a(),_0x52b092(_0x5b928b??_0x197935);};function _0x11bcc0(_0x11f0d5,_0x25cf16,_0x54bbaa,_0x8cd8d4){return _0x769615(_0x54bbaa,_0x25cf16-_0x3f9009._0x98c08f,_0x25cf16- -_0x3f9009._0x43ce84,_0x8cd8d4-_0x3f9009._0x6c460b);}function _0x3db552(_0x58678a,_0x3c4d5e,_0x3aec27,_0x1e1be8){return _0x769615(_0x58678a,_0x3c4d5e-_0x2f8bc5._0x19c47f,_0x3aec27- -_0x2f8bc5._0x5b9bfb,_0x1e1be8-0xd9);}const _0x463f14=(_0x4000b0,_0x3dc547)=>{const _0xb170a9={_0x457d73:0x267};_0x3a2a76=!![],appendChunk(_0x1ed295,_0x62b6f1,_0x4cff6c[_0x168260(_0x159849._0x518d14,-_0x159849._0x53e798,-0x103,-_0x159849._0x992ba1)](),_0x517f15,_0x59d840),appendChunk(_0x1ed295,_0x62b6f1,_0x2617d7['end'](),_0x517f15,_0x59d840),_0x1a08a3=!![],_0x59d840(),_0xfb077a();if(_0x5b928b){_0x52b092(_0x5b928b);return;}function _0x168260(_0x565e98,_0x380be6,_0x54001a,_0xe5fd7){return _0x1a55(_0xe5fd7- -_0xb170a9._0x457d73,_0x54001a);}_0x265422({'code':_0x4000b0,'signal':_0x3dc547});};_0x14f9c4=setTimeout(()=>{const _0x4a1b43={_0x596922:0x1c0};_0x1a08a3=!![];function _0x4de8e1(_0x3d6def,_0x584a19,_0x52a256,_0x2c26b0){return _0x1a55(_0x52a256-_0x3a7d58._0x90dd52,_0x2c26b0);}_0x59d840();function _0x5ce7dd(_0x9ff01c,_0x4779a7,_0x2a5c5d,_0x4bea51){return _0x1a55(_0x4bea51-_0x4a1b43._0x596922,_0x4779a7);}_0xfb077a();try{killProcessGroup(_0x42f6ed,_0x4f566a);}catch{}_0x52b092(new ToolExecutionError(_0x5ce7dd(0x54f,_0x573654._0x172cbb,0x473,0x4db)+_0x587c1a+_0x5ce7dd(_0x573654._0x3aae9c,0x3fd,0x3db,0x48f),{'command':_0x32a151['command'],'cwd':_0xfe986d,'shellPath':_0x38506c,'timeoutMs':_0x587c1a,'timedOut':!![]}));},_0x587c1a),_0x42f6ed[_0x11bcc0(_0x46f2fc._0x511fba,0x5ee,0x541,0x666)](_0x11bcc0(_0x46f2fc._0x50f774,0x600,0x648,0x5b3),_0x29697a),_0x42f6ed['once'](_0x3db552(0x142,0xd5,_0x46f2fc._0x3d29e9,_0x46f2fc._0x49319c),_0x463f14);});while(_0x62b6f1[_0x27c539(0x535,_0x3a7654._0x47e848,0x4f3,_0x3a7654._0x68baf5)]>0x0||!_0x1a08a3){if(_0x62b6f1[_0x27c539(_0x3a7654._0x319a00,0x56e,_0x3a7654._0xf9870c,0x4b3)]===0x0){await _0x4baaba();continue;}const _0x11207b=_0x62b6f1[_0x769615(0x651,_0x3a7654._0x3ede3c,_0x3a7654._0x2f376f,_0x3a7654._0x4ebea6)]();_0x11207b!==void 0x0&&(yield _0x11207b);}const _0x1ad9e4=await _0x29f13f,_0x17bb42=_0x37b2a6?_0x769615(0x695,0x661,_0x3a7654._0x28ad1c,0x6e2)+(_0x1ad9e4[_0x769615(0x4e7,0x5aa,0x559,_0x3a7654._0x26d90a)]??0x0):_0x1ed295[_0x27c539(_0x3a7654._0x2523ff,_0x3a7654._0x33604a,_0x3a7654._0x2e7201,0x4f8)](''),_0x59c70a={'command':_0x32a151['command'],'cwd':_0xfe986d,'exitCode':_0x1ad9e4['code']??0x0,'signal':_0x1ad9e4[_0x769615(0x5eb,_0x3a7654._0x5c1d81,_0x3a7654._0x36ef95,_0x3a7654._0x2180fa)],'ignoreOutput':_0x37b2a6,'shellPath':_0x38506c,'timeoutMs':_0x587c1a};if(_0x1ad9e4[_0x769615(_0x3a7654._0x3fa343,0x4c7,_0x3a7654._0x5ac299,_0x3a7654._0x3b7945)]!==0x0)throw new ToolExecutionError(_0x17bb42||_0x27c539(0x5a3,_0x3a7654._0x5e6d5d,_0x3a7654._0x53b5a2,_0x3a7654._0x31cd72)+(_0x1ad9e4['code']??0x0),_0x59c70a);return createToolOutput(_0x17bb42,_0x59c70a);}catch(_0x14ec0a){while(_0x62b6f1[_0x27c539(_0x3a7654._0x3ede3c,_0x3a7654._0x2ad130,_0x3a7654._0x15a496,0x47e)]>0x0){const _0x4a575a=_0x62b6f1[_0x27c539(0x4e8,_0x3a7654._0x26866a,0x559,_0x3a7654._0x474998)]();_0x4a575a!==void 0x0&&(yield _0x4a575a);}if(_0x14ec0a instanceof ToolExecutionError)throw _0x14ec0a;if(_0x5b928b)throw _0x5b928b;if(isErrnoException(_0x14ec0a)&&_0x14ec0a['code']==='ENOENT')throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x38506c,{'command':_0x32a151[_0x27c539(_0x3a7654._0x38a524,_0x3a7654._0x32192b,0x4a2,0x4bf)],'cwd':_0xfe986d,'shellPath':_0x38506c});throw new ToolExecutionError(_0x14ec0a instanceof Error?_0x14ec0a['message']:String(_0x14ec0a),{'command':_0x32a151[_0x769615(0x52c,_0x3a7654._0x12ac74,_0x3a7654._0x140f45,_0x3a7654._0x2ba3d1)],'cwd':_0xfe986d,'shellPath':_0x38506c});}finally{_0x14f9c4&&clearTimeout(_0x14f9c4);_0x22ff31(),_0x42f6ed['stdout']?.['off'](_0x769615(0x627,_0x3a7654._0xe81d0f,_0x3a7654._0x481886,0x4ee),_0x4ca6be),_0x42f6ed['stderr']?.[_0x769615(_0x3a7654._0x394570,_0x3a7654._0x5e8d08,_0x3a7654._0x101bde,_0x3a7654._0x5c1d81)](_0x27c539(0x4a0,0x44a,0x4e4,_0x3a7654._0x484b3f),_0x1e0058);if(!_0x3a2a76&&_0x42f6ed[_0x27c539(_0x3a7654._0x41130a,_0x3a7654._0x2ff472,0x55c,0x5da)]&&!_0x42f6ed['killed'])try{killProcessGroup(_0x42f6ed,_0x4f566a);}catch{}}}});}function createShellExecTool(_0x3214a1={}){return createBashTool(_0x3214a1);}import{readdir,readFile}from'fs/promises';import{extname,join as _0x415d43}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x40bd16,join,relative,resolve as _0x2db43f}from'path';import{readdir as _0x2b20f7,readFile as _0x4bc696}from'fs/promises';import{join as _0x2c54d1,relative as _0x207153,sep}from'path';import{delimiter}from'path';import{mkdir,rm,stat,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x4c16b2}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x38bede,rename,writeFile as _0x5c911e}from'fs/promises';import{homedir}from'os';import{dirname as _0xeaed6,isAbsolute as _0x2d3b67,join as _0x301ab0,resolve as _0x1e17db}from'path';import{parse as _0x3bbfc0,stringify as _0x4f3b34}from'yaml';import{z}from'zod';import{cp,mkdir as _0x227cca,readFile as _0x30b24b,rm as _0x1cc05d,writeFile as _0x21ceb0}from'fs/promises';import{homedir as _0x26021b}from'os';import{join as _0x5dfc54}from'path';import{parse as _0x134173,stringify as _0x53b30a}from'yaml';import{readdir as _0x4e0f9b,readFile as _0x19a991}from'fs/promises';import{join as _0x3c9e09}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x4e0b23){const _0x3b670d={_0x18882b:0x158,_0x4cac59:0x1e4,_0x4d4ec0:0x262,_0x59db7e:0x1ad,_0x6dfbff:0x1df,_0x9a3e73:0x139},_0x182686={_0x296c14:0xd3},_0x4f136b={_0xafc00c:0x438},_0x525787=[];let _0x38dd76='';function _0x161574(_0x5b48c3,_0x33a86c,_0x26acec,_0x41e337){return _0xaab5df(_0x5b48c3-0x85,_0x41e337-_0x4f136b._0xafc00c,_0x26acec-0x6b,_0x33a86c);}function _0x1bd6d0(_0x104d82,_0x50c7f0,_0x367663,_0x4d9759){return _0xaab5df(_0x104d82-0x169,_0x50c7f0- -0x5,_0x367663-_0x182686._0x296c14,_0x367663);}let _0x3615a8=0x0;while(_0x3615a8<_0x4e0b23[_0x1bd6d0(-0x127,-0x1ad,-_0x3b670d._0x18882b,-_0x3b670d._0x4cac59)]){const _0x2b24e3=_0x4e0b23[_0x3615a8];if(_0x2b24e3==='\x5c'&&_0x3615a8+0x1<_0x4e0b23['length'])_0x38dd76+=_0x4e0b23[_0x3615a8+0x1],_0x3615a8+=0x2;else{if(_0x2b24e3==='\x22'||_0x2b24e3==='\x27'){const _0x34d723=_0x2b24e3;_0x3615a8++;while(_0x3615a8<_0x4e0b23[_0x1bd6d0(-_0x3b670d._0x4d4ec0,-0x1ad,-0x14c,-0x157)]&&_0x4e0b23[_0x3615a8]!==_0x34d723){_0x4e0b23[_0x3615a8]==='\x5c'&&_0x3615a8+0x1<_0x4e0b23[_0x1bd6d0(-0x25f,-_0x3b670d._0x59db7e,-0x1a0,-0x10f)]?(_0x38dd76+=_0x4e0b23[_0x3615a8+0x1],_0x3615a8+=0x2):(_0x38dd76+=_0x4e0b23[_0x3615a8],_0x3615a8++);}_0x3615a8++;}else _0x2b24e3!==void 0x0&&/\s/[_0x161574(0x218,0x34f,0x239,0x2c8)](_0x2b24e3)?(_0x38dd76&&(_0x525787['push'](_0x38dd76),_0x38dd76=''),_0x3615a8++):(_0x38dd76+=_0x2b24e3,_0x3615a8++);}}if(_0x38dd76)_0x525787[_0x1bd6d0(-_0x3b670d._0x6dfbff,-0x1d1,-0x14a,-_0x3b670d._0x9a3e73)](_0x38dd76);return _0x525787;}function renderCommandInstructions(_0x38f48b){const _0x161eb1={_0x344114:0xe2,_0x5635f7:0xb0,_0x1fb7e7:0xdc,_0x1adbc8:0x3ad,_0x59f85a:0x349,_0x38e745:0x5a,_0x4700b9:0x45,_0x3ae932:0xb4,_0xf5e86d:0x8a,_0x191979:0x46a,_0x3f7832:0x403,_0x50817d:0x4dc,_0x817d6e:0x434,_0x587e2f:0x460,_0x4f1f90:0x31a,_0x4ccf78:0x4ee,_0x1e17e5:0x13a,_0x2df77e:0x132,_0xefe611:0x3d,_0x3b5bd2:0xbd,_0x11acb5:0x8a,_0x113fcf:0x26,_0x4ad300:0x7e,_0x592997:0x4d,_0x397110:0x54d,_0x3a017b:0x160,_0xc961b8:0x20b,_0xab4833:0x15e,_0x13fd0c:0x3a4},_0x2fe7ee={_0x3347ed:0x160},_0x1eff36={_0xbc08ee:0x98,_0x561f07:0x16d,_0x4e9966:0xf2},_0x93a99d={_0x398032:0x488};let _0x3283f1=_0x38f48b[_0x385801(-_0x161eb1._0x344114,-_0x161eb1._0x5635f7,-0xb5,-_0x161eb1._0x1fb7e7)],_0x3ba7a8=![];const _0x16387e=tokenizeCommandArguments(_0x38f48b[_0x249ecf(0x396,_0x161eb1._0x1adbc8,0x32a,_0x161eb1._0x59f85a)]);_0x3283f1=_0x3283f1['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0x54fcab,_0x27123c)=>{return _0x3ba7a8=!![],_0x16387e[Number(_0x27123c)]??'';});function _0x385801(_0x2432e6,_0x3acdae,_0x2bcbcb,_0x53e64c){return _0x49a26f(_0x2432e6,_0x3acdae-0x13a,_0x2bcbcb-0x1b2,_0x53e64c- -0x497);}_0x3283f1=_0x3283f1[_0x385801(-_0x161eb1._0x38e745,0x1b,-_0x161eb1._0x4700b9,-0x4d)](/\$ARGUMENTS\b/g,()=>{_0x3ba7a8=!![];function _0x3e2ab3(_0x5950a0,_0x526801,_0x583cf4,_0x18723f){return _0x249ecf(_0x18723f- -_0x93a99d._0x398032,_0x526801-0x17d,_0x583cf4-0x108,_0x5950a0);}return _0x38f48b[_0x3e2ab3(-_0x1eff36._0xbc08ee,-0xa3,-_0x1eff36._0x561f07,-_0x1eff36._0x4e9966)];});if(_0x38f48b[_0x385801(-_0x161eb1._0x3ae932,-0x39,0x1d,-_0x161eb1._0xf5e86d)]&&_0x38f48b[_0x249ecf(_0x161eb1._0x191979,0x51e,_0x161eb1._0x3f7832,_0x161eb1._0x50817d)][_0x249ecf(0x3c2,_0x161eb1._0x817d6e,_0x161eb1._0x587e2f,_0x161eb1._0x4f1f90)]>0x0)for(let _0x4515e9=0x0;_0x4515e9<_0x38f48b[_0x249ecf(0x46a,_0x161eb1._0x4ccf78,0x3ab,0x4aa)][_0x385801(-0x86,-0x194,-_0x161eb1._0x1e17e5,-_0x161eb1._0x2df77e)];_0x4515e9++){const _0x494cba=_0x38f48b[_0x385801(-_0x161eb1._0xefe611,-0x139,-_0x161eb1._0x3b5bd2,-_0x161eb1._0x11acb5)][_0x4515e9];if(_0x494cba){const _0x126312=new RegExp('\x5c$'+_0x494cba+'\x5cb','g');_0x3283f1=_0x3283f1[_0x385801(-_0x161eb1._0x113fcf,-_0x161eb1._0x4ad300,0x2a,-_0x161eb1._0x592997)](_0x126312,()=>{return _0x3ba7a8=!![],_0x16387e[_0x4515e9]??'';});}}_0x3283f1=_0x3283f1[_0x249ecf(0x4a7,0x43e,0x521,_0x161eb1._0x397110)](/\$(\d+)\b/g,(_0x2e8722,_0x80652)=>{return _0x3ba7a8=!![],_0x16387e[Number(_0x80652)]??'';});!_0x3ba7a8&&_0x38f48b[_0x385801(-_0x161eb1._0x3a017b,-0x1ca,-_0x161eb1._0xc961b8,-_0x161eb1._0xab4833)][_0x249ecf(0x3d7,0x3bc,0x492,0x436)]()&&(_0x3283f1=_0x3283f1+_0x249ecf(0x3e1,0x3e7,0x3bb,0x33c)+_0x38f48b[_0x249ecf(0x396,_0x161eb1._0x13fd0c,0x34a,0x3f5)]);function _0x249ecf(_0x485ea0,_0x30d302,_0xd89fbc,_0x33d3c1){return _0xaab5df(_0x485ea0-0x1ec,_0x485ea0-0x56a,_0xd89fbc-_0x2fe7ee._0x3347ed,_0x33d3c1);}return _0x3283f1;}var chatModelAuthSchemeSchema=z[_0x49a26f(0x3a9,0x32d,0x32e,0x376)](['bearer',_0x49a26f(0x2ef,0x42f,0x34a,0x388)]),apiKeyAuthSchema=z[_0x49a26f(0x3a6,0x394,0x381,0x34e)]({'type':z[_0xaab5df(-0x69,-0x125,-0x122,-0x111)](_0x49a26f(0x3fb,0x3fe,0x3be,0x451)),'apiKey':z[_0x49a26f(0x402,0x3d6,0x363,0x408)](),'authScheme':chatModelAuthSchemeSchema[_0x49a26f(0x338,0x340,0x467,0x3f6)]()})[_0x49a26f(0x351,0x3c3,0x35d,0x35d)](),oauthAuthSchema=z['object']({'type':z[_0x49a26f(0x3dc,0x3b3,0x403,0x3e8)](_0x49a26f(0x49f,0x45c,0x4a3,0x46a)),'access':z['string'](),'refresh':z[_0x49a26f(0x34d,0x398,0x3c7,0x408)](),'expires':z[_0x49a26f(0x2b6,0x301,0x364,0x370)]()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0xaab5df(-0x13a,-0x117,-0x94,-0x6b)]()})[_0x49a26f(0x31b,0x317,0x31c,0x35d)](),authMethodSchema=z[_0x49a26f(0x326,0x328,0x309,0x36a)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0xaab5df(-0x102,-0x1bf,-0x18f,-0x107)]({'id':z[_0xaab5df(-0x1c0,-0x105,-0x57,-0x68)](),'name':z['string']()[_0xaab5df(-0x70,-0x117,-0x6d,-0x162)]()})[_0xaab5df(-0x1f1,-0x1b0,-0x169,-0x1a9)](),modelConfigSchema=z[_0x49a26f(0x31e,0x3c2,0x2ab,0x36a)]([z[_0x49a26f(0x34a,0x3d0,0x3df,0x3e8)](![]),z[_0x49a26f(0x449,0x3e9,0x3ca,0x3e8)](!![]),z[_0xaab5df(-0x19e,-0x105,-0x164,-0xc2)](),z[_0xaab5df(-0x14d,-0xb6,-0x13d,0x0)](z['string']()),z[_0x49a26f(0x3f8,0x4e4,0x4b8,0x457)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x49a26f(0x376,0x2d6,0x41b,0x376)]([_0x49a26f(0x36b,0x390,0x3bb,0x3c6),_0xaab5df(-0x180,-0x132,-0xc5,-0x127),_0xaab5df(-0x143,-0xaf,-0xff,-0x79),_0x49a26f(0x3b8,0x31f,0x253,0x312)]),providerConfigSchema=z['object']({'apiKey':z[_0x49a26f(0x436,0x488,0x449,0x408)]()[_0xaab5df(-0xd1,-0x117,-0x1b6,-0x1b0)](),'token':z['string']()['optional'](),'defaultModel':z[_0x49a26f(0x3f0,0x35b,0x384,0x408)]()[_0xaab5df(-0xc1,-0x117,-0xfe,-0x1ce)](),'smallModel':z[_0x49a26f(0x3e3,0x371,0x419,0x408)]()[_0xaab5df(-0x157,-0x117,-0x62,-0x180)](),'currentAuth':z[_0xaab5df(-0xed,-0x105,-0xfb,-0x7b)]()[_0x49a26f(0x358,0x49a,0x41f,0x3f6)](),'auth':z['array'](authMethodSchema)[_0xaab5df(-0x10c,-0x117,-0x18d,-0x10b)](),'surface':chatModelSurfaceSchema['optional'](),'baseUrl':z[_0xaab5df(-0x11d,-0x105,-0x11f,-0x143)]()[_0x49a26f(0x3a6,0x45e,0x3ef,0x3f6)](),'models':modelConfigSchema[_0x49a26f(0x3cc,0x4b2,0x3ed,0x3f6)](),'customHeaders':z[_0x49a26f(0x51f,0x4ce,0x50d,0x472)](z[_0xaab5df(-0xc9,-0x105,-0x198,-0x143)](),z['string']())['optional']()})[_0xaab5df(-0x21c,-0x1b0,-0x11b,-0x1da)](),mcpServerConfigSchema=z[_0xaab5df(-0x211,-0x1bf,-0x125,-0x236)]({'command':z['string']()[_0xaab5df(-0xf9,-0x117,-0x1bd,-0x9d)](),'args':z['array'](z[_0x49a26f(0x416,0x39d,0x37d,0x408)]())['optional'](),'env':z[_0xaab5df(-0x10f,-0x9b,-0x6b,-0xd9)](z[_0x49a26f(0x3c5,0x3cc,0x45f,0x408)](),z['string']())[_0x49a26f(0x34c,0x453,0x3cf,0x3f6)](),'transport':z[_0xaab5df(-0x13e,-0x197,-0x233,-0x157)]([_0x49a26f(0x33a,0x33e,0x38b,0x318),'http'])[_0x49a26f(0x38e,0x40d,0x4a4,0x3f6)](),'url':z['string']()[_0xaab5df(-0x1b0,-0x117,-0x17d,-0x89)](),'headers':z[_0xaab5df(-0x2c,-0x9b,-0x13e,-0x21)](z['string'](),z[_0x49a26f(0x3ca,0x45e,0x3c2,0x408)]())[_0xaab5df(-0x8e,-0x117,-0x115,-0x1bf)](),'prefix':z[_0x49a26f(0x377,0x462,0x3a3,0x408)]()[_0x49a26f(0x3ee,0x3bb,0x3c0,0x3f6)](),'timeoutMs':z[_0xaab5df(-0x12d,-0x19d,-0x1a5,-0x11b)]()[_0xaab5df(-0x12d,-0x117,-0x197,-0x183)](),'enabled':z[_0x49a26f(0x419,0x41c,0x3b5,0x38d)]()[_0x49a26f(0x3bc,0x358,0x464,0x3f6)](),'auth':z['object']({'type':z['enum']([_0x49a26f(0x3f5,0x3e8,0x431,0x3c7),_0xaab5df(-0x217,-0x195,-0x13e,-0xfe),_0xaab5df(-0x134,-0xa3,-0x42,-0x14e)]),'token':z[_0x49a26f(0x34b,0x44d,0x46c,0x408)]()['optional'](),'oauth':z['object']({'clientId':z[_0x49a26f(0x448,0x495,0x4c7,0x408)]()[_0xaab5df(-0x1c8,-0x117,-0x5e,-0x1c5)](),'clientMetadataUrl':z[_0x49a26f(0x355,0x4a1,0x380,0x408)]()[_0x49a26f(0x443,0x3e0,0x4b4,0x3f6)](),'authorizationServer':z[_0xaab5df(-0x13b,-0x105,-0x122,-0xa9)]()[_0xaab5df(-0xfb,-0x117,-0x190,-0x58)](),'scopes':z[_0xaab5df(-0xbb,-0xb6,-0x140,0x4)](z[_0x49a26f(0x3ef,0x4a8,0x3e1,0x408)]())['optional'](),'tokenStorageKey':z[_0xaab5df(-0x4a,-0x105,-0x6d,-0x4c)]()[_0x49a26f(0x37f,0x3ca,0x471,0x3f6)]()})[_0x49a26f(0x2ca,0x3ad,0x3d6,0x35d)]()['optional']()})[_0xaab5df(-0x17b,-0x1b0,-0x23c,-0x1d2)]()[_0x49a26f(0x47b,0x436,0x3a9,0x3f6)]()})[_0xaab5df(-0x1a5,-0x1b0,-0x109,-0x26c)](),mcpSettingsSchema=z['object']({'servers':z[_0xaab5df(-0xf4,-0x9b,-0xce,-0x151)](z[_0xaab5df(-0xe1,-0x105,-0x1a7,-0xa0)](),mcpServerConfigSchema)['optional'](),'allowedTools':z[_0xaab5df(-0xe4,-0x9b,-0x14e,-0x113)](z[_0xaab5df(-0xc0,-0x105,-0x1a1,-0x198)](),z[_0xaab5df(-0xa2,-0x9b,-0x15a,-0x5b)](z[_0x49a26f(0x47f,0x47b,0x47f,0x408)](),z[_0x49a26f(0x305,0x385,0x304,0x38d)]()))['optional'](),'defaultTimeoutMs':z[_0xaab5df(-0x1ec,-0x19d,-0x1d6,-0x1f0)]()[_0x49a26f(0x46d,0x354,0x478,0x3f6)]()})[_0x49a26f(0x3c7,0x2c9,0x2a2,0x35d)](),skillsSettingsSchema=z[_0x49a26f(0x3cf,0x3c6,0x379,0x34e)]({'enabled':z[_0x49a26f(0x432,0x40a,0x305,0x38d)]()[_0x49a26f(0x37d,0x3c7,0x34a,0x3f6)](),'includeDefaults':z[_0xaab5df(-0x124,-0x180,-0x187,-0x20d)]()[_0x49a26f(0x443,0x46e,0x349,0x3f6)](),'directories':z[_0x49a26f(0x50d,0x509,0x4ad,0x457)](z[_0xaab5df(-0x82,-0x105,-0x163,-0x4f)]())[_0x49a26f(0x468,0x373,0x3e3,0x3f6)](),'exclude':z['array'](z[_0xaab5df(-0x89,-0x105,-0xeb,-0x97)]())[_0x49a26f(0x41a,0x46b,0x34e,0x3f6)]()})[_0xaab5df(-0xf7,-0x1b0,-0x187,-0x185)](),commandsSettingsSchema=z[_0xaab5df(-0x1d8,-0x1bf,-0x25c,-0x16d)]({'enabled':z[_0xaab5df(-0xc9,-0x180,-0x101,-0x1e2)]()[_0xaab5df(-0x1a2,-0x117,-0x60,-0x100)](),'directories':z['array'](z['string']())[_0x49a26f(0x3c8,0x38d,0x431,0x3f6)]()})[_0x49a26f(0x331,0x3b8,0x313,0x35d)](),agentsSettingsSchema=z[_0xaab5df(-0x1de,-0x1bf,-0x129,-0x202)]({'enabled':z['boolean']()[_0x49a26f(0x48c,0x371,0x41c,0x3f6)](),'includeDefaults':z['boolean']()[_0xaab5df(-0xf9,-0x117,-0x195,-0x76)](),'directories':z[_0x49a26f(0x511,0x41b,0x481,0x457)](z[_0xaab5df(-0x68,-0x105,-0xc0,-0xff)]())[_0xaab5df(-0x73,-0x117,-0xe4,-0x14a)]()})['passthrough'](),uiThemeSettingsSchema=z[_0xaab5df(-0x114,-0x1bf,-0x221,-0x1ec)]({'mode':z[_0xaab5df(-0x246,-0x197,-0x13f,-0x187)]([_0xaab5df(-0x9a,-0x106,-0x9e,-0x6d),_0x49a26f(0x464,0x328,0x44e,0x3a4),_0x49a26f(0x3c9,0x387,0x4d1,0x41d)])[_0xaab5df(-0xd0,-0x117,-0x6a,-0x153)](),'colorLevel':z[_0x49a26f(0x355,0x329,0x304,0x376)]([_0x49a26f(0x3d8,0x416,0x374,0x407),_0x49a26f(0x3f5,0x400,0x441,0x3c7),_0xaab5df(-0xa9,-0x14d,-0x105,-0x1ca),_0xaab5df(-0x4c,-0xd2,-0x8d,-0x92),_0xaab5df(-0x1aa,-0x1c1,-0x18d,-0x1e0)])['optional'](),'backgrounds':z[_0xaab5df(-0x16e,-0x197,-0x145,-0xd9)]([_0xaab5df(-0x1bc,-0x106,-0x1a2,-0x4a),'on','off'])[_0x49a26f(0x3dd,0x40d,0x466,0x3f6)](),'messageStyle':z[_0xaab5df(-0x238,-0x197,-0xe2,-0x143)]([_0xaab5df(-0x1dd,-0x18a,-0x162,-0x1f6),_0x49a26f(0x45a,0x45d,0x419,0x3a9)])['optional']()})[_0x49a26f(0x2b0,0x318,0x3f5,0x35d)](),statuslineSegmentSchema=z[_0x49a26f(0x42e,0x31a,0x34d,0x376)]([_0xaab5df(-0x84,-0xd9,-0x183,-0xbe),'session',_0xaab5df(-0x10f,-0x178,-0xd7,-0xf0),_0xaab5df(-0x256,-0x19b,-0x181,-0x1a0),_0xaab5df(-0x1a3,-0x18c,-0x11a,-0x1c6),'context',_0x49a26f(0x48f,0x3c8,0x3b7,0x43d),'requests','tools',_0xaab5df(-0xfa,-0x12c,-0x18c,-0x182),_0xaab5df(-0x253,-0x1f7,-0x175,-0x24a),_0x49a26f(0x2f2,0x2f5,0x3e6,0x33f),'keybindings','memory',_0x49a26f(0x33e,0x3ca,0x3f6,0x3c5)]),statuslineItemSchema=z[_0x49a26f(0x3a2,0x2ed,0x2f2,0x36a)]([statuslineSegmentSchema,z[_0x49a26f(0x494,0x45e,0x49a,0x3e8)]('|')]),statuslineRowSchema=z[_0xaab5df(-0x124,-0xb6,-0x9d,-0x4e)](statuslineItemSchema),statuslineConfigSchema=z[_0xaab5df(-0x239,-0x1bf,-0x258,-0x1a6)]({'rows':z[_0x49a26f(0x41d,0x326,0x360,0x3a7)]([statuslineRowSchema,statuslineRowSchema])[_0xaab5df(-0x87,-0x117,-0x10a,-0xa3)]()})['passthrough'](),memorySettingsSchema=z['object']({'version':z[_0x49a26f(0x3e0,0x348,0x32e,0x3e8)](0x2)[_0x49a26f(0x431,0x456,0x429,0x3f6)](),'retrieval':z['object']({'engine':z[_0x49a26f(0x450,0x39b,0x42d,0x3e8)](_0xaab5df(-0x145,-0xeb,-0xad,-0x102))['optional'](),'candidateLimit':z[_0x49a26f(0x40e,0x3ec,0x30c,0x370)]()[_0xaab5df(-0x17a,-0x117,-0x130,-0x69)](),'activeCandidateLimit':z[_0xaab5df(-0x198,-0x19d,-0x214,-0x1cf)]()[_0xaab5df(-0x5d,-0x117,-0xc0,-0xdf)](),'activeEnabled':z[_0x49a26f(0x2e6,0x405,0x2f2,0x38d)]()[_0xaab5df(-0x13b,-0x117,-0xed,-0x17a)](),'maxQueriesPerTurn':z[_0x49a26f(0x31e,0x3bd,0x2dc,0x370)]()[_0x49a26f(0x40b,0x38c,0x434,0x3f6)](),'coreInjectTokenBudget':z[_0xaab5df(-0x167,-0x19d,-0x1b7,-0x252)]()['optional'](),'injectTokenBudget':z[_0x49a26f(0x341,0x3f1,0x3e5,0x370)]()[_0xaab5df(-0x179,-0x117,-0x128,-0x19d)](),'minScore':z[_0xaab5df(-0x11a,-0x19d,-0x21b,-0x24b)]()['optional'](),'freshnessHalfLifeDays':z[_0x49a26f(0x370,0x354,0x3fa,0x370)]()[_0x49a26f(0x36b,0x44c,0x465,0x3f6)]()})['passthrough']()[_0xaab5df(-0x83,-0x117,-0xd5,-0xdc)](),'extraction':z['object']({'enabled':z[_0xaab5df(-0xe2,-0x180,-0x18a,-0x210)]()[_0x49a26f(0x414,0x494,0x3b0,0x3f6)](),'provider':z[_0x49a26f(0x407,0x3c5,0x365,0x408)]()[_0xaab5df(-0x11a,-0x117,-0xfc,-0x102)](),'model':z[_0xaab5df(-0x6c,-0x105,-0x192,-0x63)]()[_0xaab5df(-0x187,-0x117,-0x18a,-0x1ac)](),'sensitiveFilter':z['boolean']()['optional']()})[_0xaab5df(-0x247,-0x1b0,-0x1ef,-0x102)]()[_0x49a26f(0x366,0x3ad,0x3b7,0x3f6)](),'index':z[_0x49a26f(0x3aa,0x2b2,0x3b6,0x34e)]({'persisted':z[_0x49a26f(0x3c8,0x3c5,0x2f6,0x38d)]()[_0xaab5df(-0x188,-0x117,-0xef,-0x172)](),'flushIntervalMs':z[_0x49a26f(0x322,0x39b,0x2e0,0x370)]()[_0x49a26f(0x378,0x4b4,0x39c,0x3f6)]()})[_0x49a26f(0x3fb,0x3a1,0x3f7,0x35d)]()[_0x49a26f(0x338,0x428,0x478,0x3f6)](),'enabled':z[_0x49a26f(0x2f8,0x410,0x368,0x38d)]()[_0x49a26f(0x484,0x355,0x400,0x3f6)](),'saveTool':z['boolean']()[_0xaab5df(-0x88,-0x117,-0xcd,-0x103)](),'model':z[_0xaab5df(-0x15d,-0x105,-0xc6,-0x136)]()[_0x49a26f(0x34a,0x44a,0x47b,0x3f6)](),'provider':z[_0xaab5df(-0x87,-0x105,-0x8e,-0x76)]()[_0x49a26f(0x405,0x3b7,0x3f0,0x3f6)](),'maxInjectionTokens':z[_0xaab5df(-0x1e1,-0x19d,-0x226,-0xe8)]()['optional'](),'backgroundExtraction':z['boolean']()['optional']()})['passthrough'](),recentModelSchema=z['object']({'provider':z[_0x49a26f(0x4a9,0x3e5,0x46e,0x408)](),'model':z[_0xaab5df(-0x107,-0x105,-0x14f,-0x18f)](),'usedAt':z[_0xaab5df(-0x144,-0x19d,-0x254,-0xea)]()})['passthrough'](),lspServerEntrySchema=z['object']({'disabled':z[_0x49a26f(0x3fe,0x3de,0x391,0x38d)]()['optional'](),'command':z[_0xaab5df(-0x89,-0x105,-0x8b,-0x163)]()[_0xaab5df(-0x18c,-0x117,-0xc3,-0x59)](),'args':z[_0x49a26f(0x3be,0x492,0x3db,0x457)](z[_0xaab5df(-0x143,-0x105,-0x179,-0x16c)]())['optional'](),'rootMarkers':z['array'](z['string']())['optional']()})[_0x49a26f(0x395,0x329,0x3d6,0x35d)](),lspConfigSchema=z[_0x49a26f(0x36f,0x3cf,0x39d,0x34e)]({'enabled':z['boolean']()[_0xaab5df(-0x84,-0x117,-0xcb,-0xf2)](),'servers':z[_0xaab5df(-0x14a,-0x9b,0x1e,0x12)](z[_0x49a26f(0x3fa,0x365,0x3d5,0x408)](),lspServerEntrySchema)[_0xaab5df(-0x13b,-0x117,-0xa9,-0xf4)]()})[_0x49a26f(0x3a7,0x3de,0x412,0x35d)](),cliConfigSchema=z[_0x49a26f(0x3f4,0x2c0,0x3d3,0x34e)]({'activeProvider':z[_0xaab5df(-0x6f,-0x105,-0x89,-0x1c3)]()['optional'](),'activeModel':z[_0xaab5df(-0x6c,-0x105,-0xe2,-0x14b)]()['optional'](),'apiKey':z[_0x49a26f(0x496,0x37a,0x43c,0x408)]()['optional'](),'providers':z[_0x49a26f(0x418,0x4fc,0x52d,0x472)](z[_0x49a26f(0x389,0x387,0x477,0x408)](),providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema[_0x49a26f(0x417,0x4ad,0x400,0x3f6)](),'skills':skillsSettingsSchema[_0xaab5df(-0xef,-0x117,-0x118,-0x18f)](),'agents':agentsSettingsSchema[_0xaab5df(-0xd9,-0x117,-0xac,-0x60)](),'commands':commandsSettingsSchema[_0x49a26f(0x3e1,0x37d,0x420,0x3f6)](),'skillsEnabled':z[_0x49a26f(0x423,0x42e,0x4f4,0x472)](z[_0x49a26f(0x3a6,0x383,0x3db,0x408)](),z['boolean']())[_0x49a26f(0x479,0x3e2,0x38a,0x3f6)](),'memory':memorySettingsSchema[_0xaab5df(-0xd3,-0x117,-0x11d,-0x145)](),'session':z[_0x49a26f(0x324,0x3b9,0x349,0x34e)]({'memPersist':z[_0xaab5df(-0x1ee,-0x180,-0x168,-0x1b7)]()['optional'](),'persistEventLog':z[_0xaab5df(-0x1a9,-0x180,-0xfd,-0x153)]()['optional'](),'persistHttpLog':z[_0xaab5df(-0x1c3,-0x180,-0x18d,-0x18c)]()[_0x49a26f(0x374,0x4ac,0x38b,0x3f6)]()})['passthrough']()['optional'](),'requireToolApproval':z[_0xaab5df(-0x184,-0x180,-0x193,-0x139)]()[_0x49a26f(0x336,0x404,0x450,0x3f6)](),'thinking':z[_0xaab5df(-0x1e7,-0x197,-0x12f,-0x215)]([_0x49a26f(0x414,0x3ed,0x3cf,0x421),_0x49a26f(0x38f,0x40a,0x343,0x36d),_0xaab5df(0x6,-0x8e,-0xab,-0x58),_0x49a26f(0x2eb,0x3be,0x3f5,0x368)])[_0x49a26f(0x3af,0x470,0x46c,0x3f6)](),'streamingChunks':z[_0x49a26f(0x361,0x3c9,0x42e,0x38d)]()['optional'](),'agentsEnabled':z['record'](z[_0x49a26f(0x443,0x352,0x483,0x408)](),z[_0x49a26f(0x310,0x2f1,0x3df,0x38d)]())[_0xaab5df(-0xcf,-0x117,-0x193,-0x1b6)](),'recentModels':z[_0xaab5df(-0x79,-0xb6,-0x68,-0xe4)](recentModelSchema)[_0x49a26f(0x354,0x4b0,0x493,0x3f6)](),'lsp':lspConfigSchema[_0x49a26f(0x366,0x3fd,0x3ad,0x3f6)](),'ui':z[_0x49a26f(0x404,0x2e3,0x3fe,0x34e)]({'theme':uiThemeSettingsSchema[_0xaab5df(-0xbb,-0x117,-0x1af,-0xbd)](),'statusline':statuslineConfigSchema['optional']()})['passthrough']()[_0x49a26f(0x3c8,0x35c,0x349,0x3f6)](),'tools':z[_0x49a26f(0x3f5,0x4d4,0x3cf,0x472)](z['string'](),z[_0x49a26f(0x371,0x269,0x317,0x315)]())['optional']()})[_0xaab5df(-0x1ed,-0x1b0,-0x230,-0x11a)]();function buildDescription(_0x4feb9d){const _0x2444ef={_0x31b285:0x83,_0x44e977:0x54,_0x1c072c:0xe8,_0xa0761:0xb0,_0x57e6b7:0x93,_0x2bd56a:0x5b,_0x49efa7:0x9c,_0x36165f:0x42,_0x330a9f:0x20,_0x37dc17:0xa8,_0x2b9d04:0x18a,_0x2a5b65:0xbb,_0x58699d:0x101,_0x240a06:0x9c,_0x32139c:0x1,_0x30f2f5:0x16,_0x4011cb:0xc2},_0xf2a124={_0x734797:0x1f0},_0x2c335e={_0x1aa68c:0xa6};if(_0x4feb9d[_0x1cd083(-0x7e,-0xdb,-_0x2444ef._0x31b285,-_0x2444ef._0x44e977)]===0x0)return[_0xc1c6d0(-0x101,-0xa4,-0xae,-0x15c),_0xc1c6d0(-_0x2444ef._0x1c072c,-0x1a4,-_0x2444ef._0xa0761,-_0x2444ef._0x57e6b7),_0x1cd083(_0x2444ef._0x2bd56a,0xe,-_0x2444ef._0x49efa7,-0x1d)][_0x1cd083(0x90,-_0x2444ef._0x36165f,-0x92,-_0x2444ef._0x330a9f)]('\x0a');function _0x1cd083(_0x5be7ea,_0x17e06e,_0x252f86,_0x5833ed){return _0xaab5df(_0x5be7ea-0x4c,_0x5833ed-0x154,_0x252f86-_0x2c335e._0x1aa68c,_0x252f86);}const _0x296e81=[_0xc1c6d0(-0x101,-0x1b6,-0x102,-_0x2444ef._0x37dc17),_0xc1c6d0(-0xe8,-_0x2444ef._0x2b9d04,-0x58,-_0x2444ef._0x2a5b65),_0x1cd083(0x7,-0x164,-_0x2444ef._0x58699d,-0xa8),..._0x4feb9d[_0x1cd083(0xa1,0x1f,-_0x2444ef._0x240a06,_0x2444ef._0x32139c)](_0x55e64f=>_0x55e64f['argumentHint']?'-\x20'+_0x55e64f['name']+'\x20'+_0x55e64f[_0xc1c6d0(-0x3f,-0x44,-0x43,-0xfe)]+':\x20'+_0x55e64f[_0xc1c6d0(-0x67,-0xc2,-0x7f,-0x48)]:'-\x20'+_0x55e64f[_0xc1c6d0(-0x160,-0xf8,-0xf5,-0x19d)]+':\x20'+_0x55e64f[_0xc1c6d0(-0x67,-0x8c,0x47,-0xc7)])];function _0xc1c6d0(_0x23c53a,_0x2188a6,_0x34e2dc,_0x261b1e){return _0xaab5df(_0x23c53a-0x1d2,_0x23c53a-0x4b,_0x34e2dc-_0xf2a124._0x734797,_0x261b1e);}return _0x296e81[_0x1cd083(-_0x2444ef._0x30f2f5,0x33,-_0x2444ef._0x4011cb,-0x20)]('\x0a');}function createInvokeCommandTool(_0x1d445c){const _0x580d40={_0x3cf5ec:0x64,_0x18ef55:0x7d,_0x20f5f0:0x7f,_0x319efa:0x85,_0x3dcb83:0xdd,_0x2d1532:0xa6,_0x18e74a:0xe5,_0x1db33b:0x55,_0x2317bd:0x11,_0x296820:0x96},_0x581e8d={_0x88caed:0x10c,_0x185839:0x12,_0x1b6210:0x49,_0x108d72:0xea,_0x12e38c:0x3b,_0x1c61e9:0x38,_0x544d85:0x33,_0x37d58c:0x68,_0x452657:0xa6,_0x152f54:0x8a,_0x53045d:0x6f,_0x4890bb:0x39,_0xae2623:0x71,_0x36bb35:0x59,_0x282548:0x41,_0x563ed4:0x1b,_0x9d2ff5:0xac,_0x392f73:0x6a,_0x1d9969:0x95,_0x2c56ef:0x25,_0x4a06d5:0x1,_0x43ebbb:0x6,_0x3667e5:0x72,_0xdf2647:0xc6,_0x18e97b:0xf4,_0x348637:0x14f},_0x47cf7f={_0x39c328:0x18c,_0x5626b7:0x1c,_0x17eadb:0xc},_0x2b1da7={_0x5b046b:0x4c,_0x212b59:0xc2};function _0x47ccb1(_0x139243,_0x25d1be,_0x6e3b78,_0x2d4b16){return _0x49a26f(_0x2d4b16,_0x25d1be-_0x2b1da7._0x5b046b,_0x6e3b78-_0x2b1da7._0x212b59,_0x6e3b78- -0x3c6);}function _0x221d80(_0x3089ea,_0x4bf106,_0x4a51b8,_0x5eb12a){return _0x49a26f(_0x3089ea,_0x4bf106-0x16a,_0x4a51b8-0x10c,_0x4bf106- -0x383);}const _0x2dc7c2=new Map(_0x1d445c['commands']['map'](_0x4518b3=>[_0x4518b3['id'],_0x4518b3])),_0x1b98ec=buildDescription(_0x1d445c[_0x47ccb1(_0x580d40._0x3cf5ec,-0x3e,0xa,_0x580d40._0x18ef55)]);return defineTool({'name':'InvokeCommand','description':_0x1b98ec,'inputSchema':{'type':'object','properties':{'name':{'type':_0x221d80(_0x580d40._0x20f5f0,_0x580d40._0x319efa,_0x580d40._0x3dcb83,0x110)},'args':{'type':_0x221d80(0xb4,_0x580d40._0x319efa,_0x580d40._0x2d1532,_0x580d40._0x18e74a)}},'required':[_0x47ccb1(-_0x580d40._0x1db33b,_0x580d40._0x2317bd,-0x64,-_0x580d40._0x296820)]},async *'execute'(_0x5ee312){const _0x4bd3f8={_0x28f6e2:0x1b7};function _0x1d888b(_0x43535c,_0x5a0d6d,_0x4b7e8a,_0x4f9aa8){return _0x47ccb1(_0x43535c-_0x47cf7f._0x39c328,_0x5a0d6d-_0x47cf7f._0x5626b7,_0x43535c-_0x47cf7f._0x17eadb,_0x4f9aa8);}function _0x15278c(_0x57c3c0,_0x22b483,_0x3580fa,_0x7d90a4){return _0x221d80(_0x57c3c0,_0x3580fa- -0x51,_0x3580fa-_0x4bd3f8._0x28f6e2,_0x7d90a4-0x1c);}const _0x11ea5d=_0x2dc7c2[_0x1d888b(0xa3,_0x581e8d._0x88caed,0x9a,_0x581e8d._0x185839)](_0x5ee312['name']);if(!_0x11ea5d){const _0x3e37cc=Array[_0x1d888b(0x69,0x15,_0x581e8d._0x1b6210,0xae)](_0x2dc7c2[_0x1d888b(0x34,0x37,_0x581e8d._0x108d72,0x1a)]())[_0x15278c(-0x7c,-0xc7,-_0x581e8d._0x12e38c,_0x581e8d._0x1c61e9)](',\x20');throw new ToolExecutionError(_0x15278c(-_0x581e8d._0x544d85,-_0x581e8d._0x37d58c,-_0x581e8d._0x452657,-0x7)+_0x5ee312[_0x15278c(-0x13,-_0x581e8d._0x152f54,-0x72,-_0x581e8d._0x53045d)]+_0x15278c(-0x3c,_0x581e8d._0x4890bb,_0x581e8d._0xae2623,_0x581e8d._0x36bb35)+_0x3e37cc,{'name':_0x5ee312['name']});}const _0x9b6584=await _0x1d445c[_0x1d888b(-_0x581e8d._0x282548,-0xb7,-_0x581e8d._0x563ed4,-0xc)](_0x11ea5d),_0x1216ce=_0x5ee312[_0x1d888b(0x94,0x89,0xc0,_0x581e8d._0x9d2ff5)]??'',_0x5be4a2=renderCommandInstructions({'instructions':_0x9b6584[_0x15278c(_0x581e8d._0x392f73,_0x581e8d._0x1c61e9,-0x19,0x33)],'argumentsText':_0x1216ce,'argumentNames':_0x9b6584[_0x1d888b(-_0x581e8d._0x1d9969,-_0x581e8d._0x2c56ef,-0xc5,-_0x581e8d._0x4a06d5)]});return yield createToolOutput(_0x5be4a2,{'id':_0x9b6584['id'],'name':_0x9b6584[_0x15278c(-0xeb,-_0x581e8d._0x43ebbb,-_0x581e8d._0x3667e5,-0xac)],'path':_0x11ea5d[_0x1d888b(_0x581e8d._0xdf2647,0x2b,_0x581e8d._0x18e97b,_0x581e8d._0x18e97b)][_0x1d888b(0xa2,_0x581e8d._0x348637,0x124,0xa5)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x283a8e,rename as _0x1042c0,stat as _0x560cd3,writeFile as _0x583b3e}from'fs/promises';import*as _0x5cbb58 from'path';import{stat as _0x28faee}from'fs/promises';import*as _0x4f4f58 from'path';function resolveWorkspacePath(_0x15c6f5,_0x3c0dfb){const _0x322bb0={_0x7b26a4:0x5b,_0x455ecb:0x6b,_0x33bf89:0x219,_0x373c51:0x22e,_0x33c0b5:0x162,_0x5303a6:0x1d4,_0x54035c:0x30,_0x4e7f58:0x32,_0x356df1:0x16f},_0x4de2a6={_0x4df1ae:0x1d4},_0x403543={_0x572144:0x18d,_0x21a030:0x4a},_0x5bfad4=_0x4f4f58[_0x3fbe20(0xa2,0xb2,_0x322bb0._0x7b26a4,_0x322bb0._0x455ecb)](_0x15c6f5),_0x2f51d5=_0x4f4f58[_0x158175(0x210,0x159,0x275,_0x322bb0._0x33bf89)](_0x5bfad4,_0x3c0dfb),_0x49f736=_0x4f4f58[_0x158175(0x25a,_0x322bb0._0x373c51,0x242,0x2a5)](_0x5bfad4,_0x2f51d5);function _0x158175(_0x28e98f,_0x5665c6,_0x1b0e6f,_0x28fd94){return _0x49a26f(_0x28e98f,_0x5665c6-_0x403543._0x572144,_0x1b0e6f-_0x403543._0x21a030,_0x28fd94- -0x1bf);}function _0x3fbe20(_0x1d0bf4,_0x58d028,_0x43d7a0,_0xa2246){return _0x49a26f(_0x1d0bf4,_0x58d028-_0x4de2a6._0x4df1ae,_0x43d7a0-0x92,_0x43d7a0- -0x37d);}if(_0x49f736===''||!_0x49f736[_0x158175(0x123,_0x322bb0._0x33c0b5,_0x322bb0._0x5303a6,0x192)]('..')&&!_0x4f4f58[_0x3fbe20(-0x1c,-_0x322bb0._0x54035c,_0x322bb0._0x4e7f58,0x7d)](_0x49f736))return _0x2f51d5;throw new ToolExecutionError(_0x158175(0x1bc,0x1f6,_0x322bb0._0x356df1,0x1aa)+_0x3c0dfb,{'path':_0x3c0dfb,'rootDir':_0x5bfad4});}async function assertWorkspaceFile(_0x4ccf0c){const _0x429f4a={_0x2fe315:0x6ed,_0x69c130:0x6be,_0x18cd88:0x662},_0x39ddb4={_0xd1898:0x5e,_0x3c55db:0x9f},_0x516a94=await _0x28faee(_0x4ccf0c);function _0x54829f(_0x37b7af,_0x11fb8d,_0xcb0a39,_0x2f59e7){return _0xaab5df(_0x37b7af-_0x39ddb4._0xd1898,_0x2f59e7-0x73d,_0xcb0a39-_0x39ddb4._0x3c55db,_0xcb0a39);}if(!_0x516a94['isFile']())throw new ToolExecutionError(_0x54829f(_0x429f4a._0x2fe315,0x6df,_0x429f4a._0x69c130,_0x429f4a._0x18cd88)+_0x4ccf0c,{'path':_0x4ccf0c});}function isProbablyBinary(_0x94f522){const _0x444bce={_0x5126bb:0x172,_0x101ce8:0x17b,_0x699189:0x229},_0x8d086a={_0x39254e:0x342};function _0x4c7422(_0x4739db,_0x5057b2,_0x1adae2,_0xef4557){return _0xaab5df(_0x4739db-0x2a,_0x4739db-_0x8d086a._0x39254e,_0x1adae2-0x15a,_0x5057b2);}return _0x94f522[_0x4c7422(_0x444bce._0x5126bb,0x215,_0x444bce._0x101ce8,_0x444bce._0x699189)](0x0);}function detectEol(_0x2e4946){const _0x43b8d8={_0x7194ae:0x4e2,_0x4823cd:0x4ce,_0x862d2f:0x432,_0x3b9c56:0x454,_0x438f05:0x3f2},_0xe41940={_0x9914e5:0x126,_0x90128e:0x57},_0x1b2af6={_0x55b905:0xe6};function _0x2e43c1(_0x42b8f1,_0x44a03a,_0x523af4,_0x3d365c){return _0xaab5df(_0x42b8f1-_0x1b2af6._0x55b905,_0x3d365c-0x63e,_0x523af4-0xef,_0x44a03a);}function _0x15d1e9(_0x11f1ed,_0xa3199c,_0x336c0b,_0x5b3d0e){return _0x49a26f(_0x336c0b,_0xa3199c-0x1c8,_0x336c0b-_0xe41940._0x9914e5,_0xa3199c-_0xe41940._0x90128e);}return/\r\n/[_0x2e43c1(0x52f,0x589,_0x43b8d8._0x7194ae,_0x43b8d8._0x4823cd)](_0x2e4946[_0x15d1e9(0x3e1,0x424,_0x43b8d8._0x862d2f,0x4cd)](_0x15d1e9(0x4cc,0x44a,0x44d,0x439)))?_0x15d1e9(_0x43b8d8._0x3b9c56,_0x43b8d8._0x438f05,0x358,0x3cb):'lf';}function normalizeToLf(_0x14f745){const _0x2bd3aa={_0x36624a:0x22e,_0x1511e6:0x200,_0x31b35b:0x1e5};function _0x3ae4f7(_0x2ddfb8,_0x4bb302,_0x183ec4,_0x4ccefb){return _0x49a26f(_0x183ec4,_0x4bb302-0x163,_0x183ec4-0xb8,_0x4bb302- -0x24a);}return _0x14f745[_0x3ae4f7(_0x2bd3aa._0x36624a,_0x2bd3aa._0x1511e6,_0x2bd3aa._0x31b35b,0x203)](/\r\n/g,'\x0a');}function convertEol(_0x2886e5,_0x126c0a){return _0x126c0a==='crlf'?_0x2886e5['replace'](/\n/g,'\x0d\x0a'):_0x2886e5;}async function atomicWrite(_0x3e1936,_0x2fbf81){const _0x4af670={_0x41e938:0x520,_0x4e0521:0x481,_0x1ab1f3:0x4fd,_0x3818ad:0x33,_0x519e0b:0x44,_0x3120bb:0xad,_0x516cbf:0x6,_0x39f509:0x10f,_0x2bbc61:0x463,_0x335cc1:0x51e,_0x4ddfa5:0x5c7,_0x543077:0x57d,_0x38554d:0x578},_0x418f73={_0xb52bd:0x1d4,_0x43ea21:0x92,_0x370940:0x3dd},_0x3f4f44={_0x50493f:0x16b,_0xa04e4e:0x86},_0x5b630=_0x5cbb58[_0x1f3fc7(0x584,_0x4af670._0x41e938,_0x4af670._0x4e0521,_0x4af670._0x1ab1f3)](_0x3e1936),_0x43e61e=_0x5cbb58[_0x360116(_0x4af670._0x3818ad,-0xd,-_0x4af670._0x519e0b,-_0x4af670._0x3120bb)](_0x5b630,_0x1f3fc7(0x4dc,0x4df,0x4fd,0x4db)+_0x5cbb58['basename'](_0x3e1936)+'.'+Date['now']()+'.'+Math[_0x360116(-0x3a,_0x4af670._0x516cbf,-0x95,-_0x4af670._0x39f509)]()[_0x1f3fc7(_0x4af670._0x2bbc61,0x4ef,0x455,_0x4af670._0x335cc1)](0x24)[_0x1f3fc7(_0x4af670._0x4ddfa5,0x568,_0x4af670._0x543077,_0x4af670._0x38554d)](0x2));await _0x583b3e(_0x43e61e,_0x2fbf81);function _0x1f3fc7(_0x563df6,_0x25b63c,_0x5cf27c,_0x3207a8){return _0x49a26f(_0x5cf27c,_0x25b63c-_0x3f4f44._0x50493f,_0x5cf27c-_0x3f4f44._0xa04e4e,_0x25b63c-0x122);}function _0x360116(_0x2218e0,_0xf05cb1,_0x58b6b9,_0x3cda76){return _0x49a26f(_0x2218e0,_0xf05cb1-_0x418f73._0xb52bd,_0x58b6b9-_0x418f73._0x43ea21,_0x58b6b9- -_0x418f73._0x370940);}await _0x1042c0(_0x43e61e,_0x3e1936);}function sha256(_0x575933){const _0x217fde={_0x3639c8:0x166,_0x582672:0x135,_0x47a995:0x23e,_0x4163c7:0x2ce,_0x5522fa:0x20a},_0x5e0015={_0x39ff69:0x129,_0xb47642:0x339},_0x17d7ff={_0x13385a:0x14a,_0x488689:0x329};function _0x416208(_0x573c9f,_0x835d,_0x1f9d4f,_0x3e0b40){return _0xaab5df(_0x573c9f-_0x17d7ff._0x13385a,_0x3e0b40-_0x17d7ff._0x488689,_0x1f9d4f-0xa,_0x1f9d4f);}function _0x1482f6(_0x41000f,_0x37b662,_0x2dbac8,_0x1296f8){return _0xaab5df(_0x41000f-_0x5e0015._0x39ff69,_0x41000f-_0x5e0015._0xb47642,_0x2dbac8-0x34,_0x37b662);}return createHash('sha256')[_0x416208(_0x217fde._0x3639c8,_0x217fde._0x582672,0xc3,0x15e)](_0x575933)['digest'](_0x1482f6(_0x217fde._0x47a995,_0x217fde._0x4163c7,_0x217fde._0x5522fa,0x2d8));}function countLines(_0x3d8ca0){const _0x2aebaf={_0x4e7c07:0x3ac,_0xf8baaf:0x335,_0xdcda7f:0x2fa,_0x1304ce:0x2d8,_0x2ed5be:0x5f5,_0xf2a572:0x624,_0x17335f:0x667,_0x386804:0x285,_0x3dcad0:0x1e3,_0x55b7c4:0x1f8},_0x24698a={_0x2c8f05:0xe},_0x4e8a8d={_0xfd3671:0x1b0,_0x3b3835:0xa9};function _0x341738(_0x3c8537,_0x2c5208,_0x340b98,_0x287914){return _0xaab5df(_0x3c8537-_0x4e8a8d._0xfd3671,_0x340b98-0x425,_0x340b98-_0x4e8a8d._0x3b3835,_0x2c5208);}const _0x14591a=_0x3d8ca0[_0x341738(0x391,_0x2aebaf._0x4e7c07,0x362,_0x2aebaf._0xf8baaf)](/\n$/,'');function _0xbb3516(_0xcdf3ab,_0x57fd67,_0x179088,_0x4cb2d4){return _0xaab5df(_0xcdf3ab-0x1ac,_0x57fd67-0x728,_0x179088-_0x24698a._0x2c8f05,_0x4cb2d4);}return _0x14591a[_0x341738(0x236,_0x2aebaf._0xdcda7f,0x27d,_0x2aebaf._0x1304ce)]===0x0?0x0:_0x14591a[_0xbb3516(_0x2aebaf._0x2ed5be,_0x2aebaf._0xf2a572,0x60a,_0x2aebaf._0x17335f)]('\x0a')[_0x341738(_0x2aebaf._0x386804,_0x2aebaf._0x3dcad0,0x27d,_0x2aebaf._0x55b7c4)];}function calculateLineNumbers(_0x5888cc,_0x1f513f,_0x5811bd,_0x2e144b){const _0x938ba7={_0x39170b:0x2e1,_0x906c0:0x25f,_0x5138a0:0x25f},_0x1b1edb={_0x436bca:0xdf,_0x9b2e34:0xd0},_0x52ac7e=_0x5888cc[_0x196d7f(0x2a7,_0x938ba7._0x39170b,_0x938ba7._0x906c0,_0x938ba7._0x5138a0)](0x0,_0x2e144b)['split']('\x0a')['length'];function _0x196d7f(_0x2f7a7b,_0x5a5d41,_0x38339c,_0x2550e6){return _0xaab5df(_0x2f7a7b-_0x1b1edb._0x436bca,_0x5a5d41-0x3a8,_0x38339c-_0x1b1edb._0x9b2e34,_0x2550e6);}const _0x231057=countLines(_0x1f513f),_0x143e66=countLines(_0x5811bd);return{'oldStartLine':_0x52ac7e,'oldEndLine':_0x52ac7e+_0x231057-0x1,'newStartLine':_0x52ac7e,'newEndLine':_0x52ac7e+_0x143e66-0x1,'oldLineCount':_0x231057,'newLineCount':_0x143e66};}function createFileEditTool(_0x3d8e12={}){const _0x3e7ca6={_0x35e526:0x570,_0x21b594:0x636,_0x9f8f5c:0x585,_0x5cc726:0x4b8,_0x1f8a07:0x486,_0x3f7b8e:0x414,_0x56e916:0x158,_0x3259fc:0x10b,_0x5aa157:0x109,_0x168c63:0xf2,_0x11d0d9:0x46d,_0x409c5c:0x3f,_0x31d95e:0xf9,_0x29df07:0x19c,_0x26ca53:0x131,_0x27cac4:0xfc,_0x2bb148:0x51c},_0x5a6fc7={_0x2b7be8:0x197,_0x5c54b0:0x281,_0x4ac7b9:0x203,_0x40731e:0x212,_0x2d8fbc:0x27a,_0x531bdd:0x2c4,_0x89398e:0x32f,_0x29088a:0x3b2,_0x3c916c:0x28f,_0x2cde6d:0x311,_0xd50509:0x38f,_0xfe2961:0x286,_0x4664ae:0x225,_0x5789a3:0x20f,_0x534b37:0x119,_0x148790:0x1aa,_0x44aab5:0x1df,_0x3150a4:0x28b,_0x42e3b3:0x236,_0x5be213:0x2b0,_0x43a333:0x297,_0x5998d5:0x1cc,_0x2311a5:0x1b1,_0x4b7141:0x1b4,_0x4b8005:0x237,_0x1e6aeb:0x384,_0xdbdfff:0x270,_0x89a2e2:0x14d,_0x45da5e:0x1ea,_0x16b9db:0x17a,_0x8387a7:0x205,_0x12ec0c:0x30f,_0x30fc75:0x1b0,_0x862dd9:0x26a,_0x2ed900:0x248,_0x459ec3:0x224,_0x16d0f7:0x19e,_0x46e059:0x185,_0x116ac6:0x236,_0x5ce19d:0x1b2,_0x216356:0x266,_0x47c202:0x269},_0x18f04f={_0x4fda81:0xc6},_0x22ac2b={_0x20030d:0x1c6,_0x2d69df:0x111,_0x1b00b4:0x125},_0x11b890=_0x5cbb58['resolve'](_0x3d8e12['defaultCwd']??process[_0x5a8aa1(_0x3e7ca6._0x35e526,0x62f,_0x3e7ca6._0x21b594,_0x3e7ca6._0x9f8f5c)]()),_0x33886c=_0x3d8e12[_0x5a8aa1(_0x3e7ca6._0x5cc726,_0x3e7ca6._0x1f8a07,_0x3e7ca6._0x3f7b8e,0x487)]??_0x43e849(-0x89,-_0x3e7ca6._0x56e916,-_0x3e7ca6._0x3259fc,-0xe3);function _0x5a8aa1(_0x13eaf7,_0x35b39e,_0x1ef075,_0x388b29){return _0x49a26f(_0x13eaf7,_0x35b39e-_0x22ac2b._0x20030d,_0x1ef075-_0x22ac2b._0x2d69df,_0x388b29-_0x22ac2b._0x1b00b4);}function _0x43e849(_0x49a031,_0x14929c,_0x5e62c6,_0x2d2c42){return _0xaab5df(_0x49a031-0x1ec,_0x5e62c6-_0x18f04f._0x4fda81,_0x5e62c6-0xa2,_0x14929c);}return defineTool({'name':_0x33886c,'description':_0x43e849(-0xa6,-_0x3e7ca6._0x5aa157,-0x10d,-_0x3e7ca6._0x168c63),'inputSchema':{'type':_0x5a8aa1(0x3fe,_0x3e7ca6._0x11d0d9,0x4db,0x473),'properties':{'filePath':{'type':_0x43e849(-0x82,0x15,-_0x3e7ca6._0x409c5c,-0xc)},'oldText':{'type':_0x43e849(-_0x3e7ca6._0x31d95e,-0xa5,-_0x3e7ca6._0x409c5c,0x2b)},'newText':{'type':'string'},'dryRun':{'type':'boolean'}},'required':[_0x43e849(-_0x3e7ca6._0x29df07,-_0x3e7ca6._0x26ca53,-_0x3e7ca6._0x27cac4,-0x197),'oldText',_0x5a8aa1(0x459,0x46f,_0x3e7ca6._0x2bb148,0x4b0)]},async *'execute'(_0x1cde2b){const _0x3ced6f={_0x357e9f:0xc5,_0x56dd95:0x2e0},_0x1b8bec={_0x19fcfa:0x87,_0x18b998:0x318},_0x5eb5a0=resolveWorkspacePath(_0x11b890,_0x1cde2b['filePath']);await assertWorkspaceFile(_0x5eb5a0);const _0x1dbb91=await _0x560cd3(_0x5eb5a0),_0x1e07d2=await _0x283a8e(_0x5eb5a0),_0x50894a=detectEol(_0x1e07d2),_0x5e381d=normalizeToLf(_0x1e07d2[_0x2aee3e(_0x5a6fc7._0x2b7be8,0x212,_0x5a6fc7._0x5c54b0,_0x5a6fc7._0x4ac7b9)](_0x3a976c(_0x5a6fc7._0x40731e,_0x5a6fc7._0x2d8fbc,_0x5a6fc7._0x531bdd,_0x5a6fc7._0x89398e))),_0x491610=normalizeToLf(_0x1cde2b[_0x3a976c(_0x5a6fc7._0x29088a,0x2dd,0x308,_0x5a6fc7._0x3c916c)]);function _0x3a976c(_0x4a03e4,_0x29c18d,_0x15a118,_0x55a51f){return _0x43e849(_0x4a03e4-_0x1b8bec._0x19fcfa,_0x4a03e4,_0x15a118-_0x1b8bec._0x18b998,_0x55a51f-0xf4);}const _0x9da087=normalizeToLf(_0x1cde2b['newText']),_0xe6a41f=_0x5e381d[_0x3a976c(_0x5a6fc7._0x5c54b0,0x299,0x218,0x236)](_0x491610);if(_0xe6a41f===-0x1){const _0x4d8bf5=_0x491610['slice'](0x0,0x64)[_0x3a976c(_0x5a6fc7._0x2cde6d,_0x5a6fc7._0xd50509,0x31b,0x36e)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x2aee3e(_0x5a6fc7._0xfe2961,_0x5a6fc7._0x4664ae,_0x5a6fc7._0x5789a3,0x1dc)+_0x4d8bf5+(_0x491610[_0x2aee3e(_0x5a6fc7._0x534b37,_0x5a6fc7._0x148790,_0x5a6fc7._0x44aab5,0x244)]>0x64?'...':'')+'\x22',{'filePath':_0x1cde2b[_0x3a976c(0x21a,0x213,0x21c,0x198)]});}function _0x2aee3e(_0x536ccf,_0x2ed455,_0x512433,_0x365099){return _0x5a8aa1(_0x365099,_0x2ed455-_0x3ced6f._0x357e9f,_0x512433-0x1a2,_0x2ed455- -_0x3ced6f._0x56dd95);}const _0x199335=_0x5e381d[_0x2aee3e(0x348,_0x5a6fc7._0x3150a4,_0x5a6fc7._0x42e3b3,0x208)](0x0,_0xe6a41f)+_0x9da087+_0x5e381d[_0x3a976c(_0x5a6fc7._0x5be213,_0x5a6fc7._0x43a333,0x317,0x306)](_0xe6a41f+_0x491610[_0x3a976c(_0x5a6fc7._0x5998d5,_0x5a6fc7._0x2311a5,0x236,_0x5a6fc7._0x4b7141)]),_0x379e89=convertEol(_0x199335,_0x50894a),_0x1c39c2=Buffer['from'](_0x379e89,_0x3a976c(_0x5a6fc7._0x4b8005,_0x5a6fc7._0x1e6aeb,_0x5a6fc7._0x531bdd,_0x5a6fc7._0xdbdfff)),_0x26fa3a=sha256(_0x1e07d2),_0x269d4b=sha256(_0x1c39c2),_0x5ccecd=_0x26fa3a===_0x269d4b,_0x6fe108=_0x1cde2b[_0x2aee3e(_0x5a6fc7._0x89a2e2,_0x5a6fc7._0x45da5e,0x160,0x253)]??![];return!_0x6fe108&&!_0x5ccecd&&await atomicWrite(_0x5eb5a0,_0x1c39c2),yield createToolOutput(_0x5ccecd?_0x2aee3e(0xb6,0x15e,0x201,_0x5a6fc7._0x16b9db):_0x6fe108?_0x3a976c(_0x5a6fc7._0x8387a7,0x329,0x286,_0x5a6fc7._0x12ec0c):_0x2aee3e(0x23a,_0x5a6fc7._0x30fc75,_0x5a6fc7._0x862dd9,0x199),{'filePath':_0x1cde2b['filePath'],'resolvedPath':_0x5eb5a0,'created':_0x1dbb91['birthtime']['toISOString'](),'modified':_0x1dbb91[_0x2aee3e(_0x5a6fc7._0x2ed900,0x2bd,_0x5a6fc7._0x459ec3,0x214)][_0x3a976c(0x3ae,0x38e,0x334,0x376)](),'size':_0x1dbb91[_0x3a976c(0x25a,_0x5a6fc7._0x16d0f7,0x21b,0x21b)],'eol':_0x50894a,'oldTextLength':_0x491610[_0x3a976c(_0x5a6fc7._0x46e059,0x194,_0x5a6fc7._0x116ac6,_0x5a6fc7._0x5ce19d)],'newTextLength':_0x9da087[_0x3a976c(_0x5a6fc7._0x216356,_0x5a6fc7._0x47c202,0x236,0x196)],'bytesWritten':_0x5ccecd||_0x6fe108?0x0:_0x1c39c2['length'],'beforeSha':_0x26fa3a,'afterSha':_0x269d4b,'dryRun':_0x6fe108,'noChange':_0x5ccecd,'lineNumbers':calculateLineNumbers(_0x5e381d,_0x491610,_0x9da087,_0xe6a41f)}),void 0x0;}});}import{mkdir as _0x5aa85d,rename as _0x1bf01f,stat as _0x46feb1,writeFile as _0x5b19a8}from'fs/promises';import*as _0x4ad6c0 from'path';async function atomicWrite2(_0x2d70bf,_0x4d9922){const _0x4397cd={_0x431824:0x24e,_0x4db202:0x2d6,_0x29d416:0x201,_0xaccfd3:0x2f3,_0x1ed318:0x34b,_0xe636ca:0x2c3,_0x554912:0x1e7,_0x21dcfe:0x1e4,_0x108e00:0x2b3,_0x533f0b:0x2b7,_0x13f769:0x320,_0x5abf7d:0x280,_0x445f2f:0x241},_0x2e1809={_0x490c0f:0x278},_0x3f8730={_0x558d05:0x115,_0x1654ca:0x14b},_0x955cf4=_0x4ad6c0['dirname'](_0x2d70bf);await _0x5aa85d(_0x955cf4,{'recursive':!![]});const _0x5551f6=_0x4ad6c0[_0x3f6a60(_0x4397cd._0x431824,_0x4397cd._0x4db202,_0x4397cd._0x29d416,_0x4397cd._0xaccfd3)](_0x955cf4,'.tmp.'+_0x4ad6c0[_0x4890eb(0xb3,0x1f4,0x1c9,0x135)](_0x2d70bf)+'.'+Date[_0x3f6a60(0x29e,_0x4397cd._0x1ed318,_0x4397cd._0xe636ca,0x245)]()+'.'+Math[_0x3f6a60(0x1fd,_0x4397cd._0x554912,_0x4397cd._0x21dcfe,0x1dc)]()[_0x3f6a60(0x282,_0x4397cd._0x108e00,_0x4397cd._0x533f0b,_0x4397cd._0x13f769)](0x24)[_0x3f6a60(0x2fb,_0x4397cd._0x5abf7d,_0x4397cd._0x445f2f,_0x4397cd._0x431824)](0x2));function _0x3f6a60(_0x2a5e43,_0x2293a5,_0x35249c,_0x2b5250){return _0x49a26f(_0x35249c,_0x2293a5-_0x3f8730._0x558d05,_0x35249c-0xa5,_0x2a5e43- -_0x3f8730._0x1654ca);}function _0x4890eb(_0xb249a8,_0x312d0d,_0xd29893,_0x4068db){return _0xaab5df(_0xb249a8-0x1a0,_0x4068db-_0x2e1809._0x490c0f,_0xd29893-0x7a,_0xb249a8);}await _0x5b19a8(_0x5551f6,_0x4d9922),await _0x1bf01f(_0x5551f6,_0x2d70bf);}function createFileNewTool(_0x43f150={}){const _0x2d151d={_0x23643a:0x1da,_0x701994:0x12e,_0x555554:0xad,_0x2fb51c:0x14f,_0x58675a:0x154,_0x3baeac:0x20b,_0x431121:0x1af,_0x3173ed:0x1ee,_0x3e6860:0x150,_0x4331df:0x1e2,_0x387f4f:0x288,_0x5e872e:0x158,_0x2a9e0d:0xc8,_0x31f638:0x14d},_0x36a856={_0x194543:0x13e,_0x2aed5c:0x109,_0x4564d9:0xde,_0x27556d:0x2c2,_0x148cb1:0x177,_0x4423bd:0x102,_0x19d4b0:0x1c5,_0x595469:0xf9,_0x572fc7:0x166,_0x36b9d8:0x195,_0x1500b9:0x160,_0x46ffdd:0xfa,_0x516acf:0xed,_0x1d668b:0x100,_0x1d062d:0x1a6,_0x3b34b1:0x107,_0x28a99b:0x12d,_0x567f9b:0x1ba,_0x331987:0x1dd,_0x125306:0xe5,_0x2e4450:0x23d,_0x2796a0:0xf8,_0x2e755d:0x1ac,_0x1186e2:0x237,_0x97d1be:0x284},_0x84f98={_0x5b4a1f:0x68},_0x547716={_0x465b9e:0x8f};function _0x59641a(_0x15d228,_0x27486f,_0xeb3977,_0x5ffbf7){return _0xaab5df(_0x15d228-0x6,_0xeb3977-0x30f,_0xeb3977-_0x547716._0x465b9e,_0x5ffbf7);}const _0x327b39=_0x4ad6c0[_0x59641a(0x142,0x1cd,_0x2d151d._0x23643a,0x215)](_0x43f150['defaultCwd']??process['cwd']());function _0x49d597(_0x12ef51,_0x5e955d,_0x4ed6b6,_0x5c5976){return _0xaab5df(_0x12ef51-0x56,_0x5c5976-0x317,_0x4ed6b6-0x114,_0x4ed6b6);}const _0x62a806=_0x43f150[_0x49d597(0x20d,_0x2d151d._0x701994,_0x2d151d._0x555554,0x16c)]??_0x59641a(_0x2d151d._0x2fb51c,_0x2d151d._0x58675a,0x15c,_0x2d151d._0x3baeac);return defineTool({'name':_0x62a806,'description':'Create\x20or\x20overwrite\x20a\x20UTF-8\x20text\x20file\x20in\x20the\x20workspace.','inputSchema':{'type':_0x59641a(_0x2d151d._0x431121,_0x2d151d._0x3173ed,_0x2d151d._0x3e6860,0xee),'properties':{'filePath':{'type':_0x59641a(0x173,_0x2d151d._0x4331df,0x20a,0x1c9)},'content':{'type':_0x49d597(0x226,_0x2d151d._0x387f4f,_0x2d151d._0x5e872e,0x212)}},'required':[_0x59641a(0xdf,_0x2d151d._0x2a9e0d,_0x2d151d._0x31f638,0x145),'content']},async *'execute'(_0x1e5abd){const _0x376146={_0x4eddd5:0xfe,_0xe3870f:0x77},_0x26d415=resolveWorkspacePath(_0x327b39,_0x1e5abd[_0x29d4cb(_0x36a856._0x194543,_0x36a856._0x2aed5c,_0x36a856._0x4564d9,0x183)]),_0x3c2901=await _0x46feb1(_0x26d415)[_0x9fd692(0x208,0x2b2,0x174,_0x36a856._0x27556d)](()=>!![])[_0x29d4cb(0x112,0xfd,_0x36a856._0x148cb1,_0x36a856._0x4423bd)](()=>![]),_0x5c1eb7=Buffer[_0x9fd692(_0x36a856._0x19d4b0,0x1b0,0x19e,0x20b)](_0x1e5abd[_0x29d4cb(_0x36a856._0x595469,0x12d,_0x36a856._0x572fc7,0xc1)],_0x9fd692(_0x36a856._0x36b9d8,_0x36a856._0x1500b9,0x143,0x1df));function _0x29d4cb(_0x4e3b7f,_0x317192,_0x219902,_0xeae114){return _0x49d597(_0x4e3b7f-_0x376146._0x4eddd5,_0x317192-0xe2,_0x4e3b7f,_0x219902- -_0x376146._0xe3870f);}await atomicWrite2(_0x26d415,_0x5c1eb7);function _0x9fd692(_0x548963,_0x405e84,_0x1492c8,_0xba2a53){return _0x49d597(_0x548963-0x1b9,_0x405e84-0x1cd,_0xba2a53,_0x548963- -_0x84f98._0x5b4a1f);}return yield createToolOutput(_0x9fd692(0x166,0xe4,_0x36a856._0x46ffdd,0x112)+_0x1e5abd['filePath']+'.',{'filePath':_0x1e5abd[_0x9fd692(_0x36a856._0x516acf,0x31,_0x36a856._0x1d668b,_0x36a856._0x1d062d)],'resolvedPath':_0x26d415,'bytes':_0x5c1eb7[_0x9fd692(_0x36a856._0x3b34b1,_0x36a856._0x28a99b,0x89,_0x36a856._0x567f9b)],'lines':_0x1e5abd['content'][_0x29d4cb(_0x36a856._0x331987,_0x36a856._0x125306,0x19c,_0x36a856._0x2e4450)](/\r?\n/)[_0x29d4cb(0x195,0x101,_0x36a856._0x2796a0,_0x36a856._0x2e755d)],'created':new Date()[_0x9fd692(0x205,0x2af,_0x36a856._0x1186e2,_0x36a856._0x97d1be)](),'overwritten':_0x3c2901}),void 0x0;}});}import{readFile as _0xd06f83,stat as _0x42bba6}from'fs/promises';import*as _0x786846 from'path';function stripUtfBom(_0x313587){const _0x50f9b1={_0x29dcfa:0x40a,_0x443a2e:0x42d,_0x465e2e:0x396,_0x12115e:0x370,_0x121d1f:0x457,_0x4c850e:0x3da,_0x22281f:0x3fa},_0x3f1f3e={_0x431088:0x119};function _0x3b27c2(_0xd3d589,_0x46225b,_0x4befa5,_0xcec721){return _0x49a26f(_0x4befa5,_0x46225b-0x119,_0x4befa5-0x1e6,_0xcec721- -0x4c);}function _0x3db4d6(_0x46ebd8,_0x55c8a6,_0xb2161b,_0x1b05c6){return _0xaab5df(_0x46ebd8-0x131,_0x55c8a6-0x5ff,_0xb2161b-_0x3f1f3e._0x431088,_0x1b05c6);}return _0x313587[_0x3db4d6(_0x50f9b1._0x29dcfa,_0x50f9b1._0x443a2e,_0x50f9b1._0x465e2e,_0x50f9b1._0x12115e)](0x0)===0xfeff?_0x313587[_0x3b27c2(0x3bd,_0x50f9b1._0x121d1f,_0x50f9b1._0x4c850e,_0x50f9b1._0x22281f)](0x1):_0x313587;}function clampLine(_0x52047d,_0x38c0bf){const _0xfa2d3={_0x375d22:0x660,_0x34d118:0x6a9,_0x2a2d67:0x678,_0x2c841b:0x612},_0x2259a7={_0x2ad6e1:0xd3,_0x266f41:0x3e6},_0x46c4a2={_0x4c363a:0x272};if(!Number[_0x457db3(0x5e8,0x599,0x52f,0x57e)](_0x52047d))return 0x1;function _0x457db3(_0x4edd88,_0x1ddce6,_0x5ab75e,_0x4f18ce){return _0x49a26f(_0x5ab75e,_0x1ddce6-0x2,_0x5ab75e-0x10d,_0x1ddce6-_0x46c4a2._0x4c363a);}function _0x2b0075(_0x406133,_0x3fb8b9,_0x440d49,_0x5ec272){return _0x49a26f(_0x3fb8b9,_0x3fb8b9-0x1a8,_0x440d49-_0x2259a7._0x2ad6e1,_0x440d49- -_0x2259a7._0x266f41);}return Math['max'](0x1,Math[_0x457db3(0x620,0x649,0x669,_0xfa2d3._0x375d22)](Math[_0x457db3(_0xfa2d3._0x34d118,_0xfa2d3._0x2a2d67,_0xfa2d3._0x2c841b,0x6e8)](_0x52047d),_0x38c0bf));}function createFileReadTool(_0x112970={}){const _0x1868d3={_0x2009f0:0x610,_0x25e423:0x695,_0x4df04b:0x699,_0x2604d3:0x2ae,_0x1e220b:0x1f0,_0x12093e:0x300,_0x52fcb6:0x125,_0x4b19f0:0x254,_0x163d1e:0x5c6,_0x54db3f:0x616,_0x52c0e5:0xe9,_0x52f834:0x233,_0x37c9f0:0x1cf,_0x33f211:0x59a,_0xaeca9e:0x217,_0x3ce229:0x27a,_0x2da615:0x20e,_0x5e3359:0x694,_0x474b80:0x708},_0x394b8c={_0x7a7c9:0x9d,_0x258606:0xe2,_0x143865:0xb3,_0x49df43:0x66,_0x4a0880:0x35,_0x10ad07:0x416,_0x488ac9:0x41c,_0x235161:0x48c,_0x2c9b76:0x13,_0x593567:0x5a,_0x820cc4:0x164,_0x4d02a4:0xcb,_0x2ee1f7:0x57,_0x475d46:0x145,_0x1b955c:0xcd,_0x5807e8:0x15d,_0x186aea:0x1e2,_0x10e75e:0x31c,_0x2b1c70:0x3dc,_0x2135e4:0x3b1,_0xab4148:0x42b,_0x359f6e:0x41d,_0x26aba3:0x46c,_0x55ef8c:0x38d,_0x417930:0x421,_0x4ab157:0x373,_0x2b1477:0x465,_0x5104eb:0x420,_0x2c4333:0x299,_0x31c591:0x59,_0x3a1305:0xa5,_0x225190:0xff,_0x4b904f:0xc5,_0x35c79f:0x1dc,_0x43204f:0x131,_0x41619b:0x1c6,_0x231d28:0x2ff,_0xf774a0:0x319,_0x42abc0:0x35a,_0x109f72:0x38,_0x57d3ef:0x198,_0x4d63b6:0x133,_0x438663:0x9b,_0x15c22c:0xcd,_0x3a4e1c:0x254,_0xd4e483:0x2b8,_0x1b64f4:0x7b,_0x28f655:0x35b,_0x30da98:0x267,_0x1947f3:0x11c,_0x53b375:0x7c,_0x1efa21:0x497,_0x478388:0x445,_0x473599:0x3b,_0x1a2eb0:0xde,_0x19acb9:0x355,_0x520be1:0x2be},_0x26d4e6={_0xcdccc7:0x11e},_0x1c299f={_0x4194dc:0x143};function _0x1adcfc(_0x1d4937,_0x1d758f,_0x4ea823,_0x4133b7){return _0x49a26f(_0x1d4937,_0x1d758f-0xfa,_0x4ea823-_0x1c299f._0x4194dc,_0x1d758f-0x238);}function _0x24e6b6(_0x3f64a6,_0x165875,_0x39d8bf,_0x149eaf){return _0xaab5df(_0x3f64a6-0x194,_0x165875-0x35b,_0x39d8bf-_0x26d4e6._0xcdccc7,_0x39d8bf);}const _0x58c12e=_0x786846[_0x1adcfc(0x615,_0x1868d3._0x2009f0,_0x1868d3._0x25e423,0x62a)](_0x112970[_0x1adcfc(0x606,0x6ad,_0x1868d3._0x4df04b,0x768)]??process[_0x24e6b6(0x350,_0x1868d3._0x2604d3,_0x1868d3._0x1e220b,_0x1868d3._0x12093e)]()),_0xd15b7=_0x112970[_0x24e6b6(0x21c,0x1b0,_0x1868d3._0x52fcb6,_0x1868d3._0x4b19f0)]??_0x1adcfc(0x668,_0x1868d3._0x163d1e,_0x1868d3._0x54db3f,0x5bf);return defineTool({'name':_0xd15b7,'description':'Read\x20a\x20UTF-8\x20text\x20file\x20from\x20the\x20workspace.\x20Optionally\x20specify\x20line\x20ranges.','inputSchema':{'type':_0x24e6b6(_0x1868d3._0x52c0e5,0x19c,_0x1868d3._0x52f834,_0x1868d3._0x37c9f0),'properties':{'path':{'type':_0x1adcfc(0x681,0x640,_0x1868d3._0x33f211,0x6e1)},'lineStart':{'type':_0x24e6b6(_0x1868d3._0xaeca9e,0x1be,_0x1868d3._0x3ce229,_0x1868d3._0x2da615)},'lineEnd':{'type':_0x1adcfc(0x54b,0x5a8,0x542,0x5f3)}},'required':[_0x1adcfc(0x740,_0x1868d3._0x5e3359,0x711,_0x1868d3._0x474b80)]},async *'execute'(_0x8c1908){const _0x27dfc7={_0x462dcb:0x138,_0x3784e0:0xf5},_0x5f0274={_0x8a9b7b:0x6d0,_0x52b815:0x11f},_0x43b438=resolveWorkspacePath(_0x58c12e,_0x8c1908[_0x455873(-_0x394b8c._0x7a7c9,-0x3c,-_0x394b8c._0x258606,0x4)]);await assertWorkspaceFile(_0x43b438);const _0x403331=await _0x42bba6(_0x43b438),_0x519623=await _0xd06f83(_0x43b438);if(isProbablyBinary(_0x519623))throw new ToolExecutionError(_0x455873(-0x122,-_0x394b8c._0x143865,-_0x394b8c._0x49df43,-_0x394b8c._0x4a0880)+_0x8c1908[_0x43d6b6(_0x394b8c._0x10ad07,_0x394b8c._0x488ac9,0x404,_0x394b8c._0x235161)],{'path':_0x8c1908[_0x455873(-_0x394b8c._0x2c9b76,-0x3c,_0x394b8c._0x593567,0x12)]});let _0xa87142=_0x519623[_0x455873(-_0x394b8c._0x820cc4,-_0x394b8c._0x4d02a4,-_0x394b8c._0x2ee1f7,-0xeb)](_0x455873(-0x11,-0xa5,-_0x394b8c._0x475d46,-_0x394b8c._0x1b955c));const _0x2e8031=_0xa87142[_0x455873(-0x20d,-_0x394b8c._0x5807e8,-0x197,-_0x394b8c._0x186aea)](0x0)===0xfeff;_0xa87142=stripUtfBom(_0xa87142);function _0x455873(_0x3f78e9,_0x10ecc1,_0x12f9b1,_0x4385d4){return _0x1adcfc(_0x12f9b1,_0x10ecc1- -_0x5f0274._0x8a9b7b,_0x12f9b1-0x10f,_0x4385d4-_0x5f0274._0x52b815);}const _0x512de9=_0xa87142[_0x43d6b6(_0x394b8c._0x10e75e,_0x394b8c._0x2b1c70,_0x394b8c._0x2135e4,_0x394b8c._0xab4148)](/\r?\n/),_0x30314e={'path':_0x8c1908[_0x43d6b6(_0x394b8c._0x359f6e,_0x394b8c._0x26aba3,0x404,_0x394b8c._0x55ef8c)],'resolvedPath':_0x43b438,'created':_0x403331[_0x43d6b6(0x498,0x3d4,_0x394b8c._0x417930,_0x394b8c._0x4ab157)]['toISOString'](),'modified':_0x403331[_0x43d6b6(0x45d,_0x394b8c._0x2b1477,_0x394b8c._0x5104eb,0x378)][_0x43d6b6(0x3bd,0x433,0x40b,0x366)](),'size':_0x403331[_0x43d6b6(_0x394b8c._0x2c4333,0x235,0x2f2,0x354)],'encoding':_0x455873(-_0x394b8c._0x31c591,-_0x394b8c._0x3a1305,-_0x394b8c._0x225190,-_0x394b8c._0x4b904f),'bomStripped':_0x2e8031,'truncated':![],'totalLines':_0x512de9[_0x455873(-_0x394b8c._0x35c79f,-0x133,-_0x394b8c._0x43204f,-_0x394b8c._0x41619b)]};if(_0x8c1908[_0x43d6b6(_0x394b8c._0x231d28,_0x394b8c._0xf774a0,_0x394b8c._0x42abc0,0x40f)]!==void 0x0||_0x8c1908['lineEnd']!==void 0x0){const _0x28ba58=clampLine(_0x8c1908[_0x455873(-0x158,-0xe6,-_0x394b8c._0x109f72,-_0x394b8c._0x57d3ef)]??0x1,_0x512de9[_0x455873(-0x136,-_0x394b8c._0x4d63b6,-_0x394b8c._0x438663,-_0x394b8c._0x15c22c)]),_0x3bdc41=clampLine(_0x8c1908[_0x43d6b6(_0x394b8c._0x3a4e1c,0x1fe,_0x394b8c._0xd4e483,0x239)]??_0x512de9[_0x455873(-_0x394b8c._0x1b64f4,-0x133,-0x102,-0x1b3)],_0x512de9[_0x43d6b6(_0x394b8c._0x28f655,0x317,0x30d,_0x394b8c._0x30da98)]),_0xa39dd0=Math['min'](_0x28ba58,_0x3bdc41),_0xbdddfb=Math[_0x455873(-0x178,-_0x394b8c._0x1947f3,-0xe8,-_0x394b8c._0x53b375)](_0x28ba58,_0x3bdc41),_0x3149de=_0x512de9[_0x43d6b6(0x491,_0x394b8c._0x1efa21,0x3ee,_0x394b8c._0x478388)](_0xa39dd0-0x1,_0xbdddfb)[_0x455873(-_0x394b8c._0x473599,-_0x394b8c._0x1a2eb0,-0x59,-0xaf)]((_0x36c104,_0x35ec5d)=>_0xa39dd0+_0x35ec5d+'|'+_0x36c104)['join']('\x0a');return yield createToolOutput(_0x3149de,{..._0x30314e,'lineRange':{'lineStart':_0xa39dd0,'lineEnd':_0xbdddfb,'linesTotal':_0x512de9[_0x43d6b6(_0x394b8c._0x19acb9,0x30d,0x30d,_0x394b8c._0x520be1)]}}),void 0x0;}yield createToolOutput(_0xa87142,_0x30314e);function _0x43d6b6(_0x230e7c,_0x26b570,_0x5dcd7d,_0x4e9bb7){return _0x24e6b6(_0x230e7c-_0x27dfc7._0x462dcb,_0x5dcd7d-0x15a,_0x230e7c,_0x4e9bb7-_0x27dfc7._0x3784e0);}return void 0x0;}});}import{stat as _0x997e47}from'fs/promises';import*as _0x582e52 from'path';import{execSync,spawn as _0x3324fd}from'child_process';import{existsSync}from'fs';import{stat as _0x2f415b}from'fs/promises';import*as _0x5c227b from'os';import*as _0x2edea6 from'path';import{rgPath as _0x404eff}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x1eee3f={_0x4d57c3:0x1a6,_0x1b1879:0x1c2,_0x91c645:0x1fa,_0x3fa44a:0x1d7,_0x27af00:0x146,_0x134a0d:0x1b0,_0x54982b:0x267,_0x46b706:0x286,_0x4a7970:0xd6,_0x222a18:0x181,_0x227615:0x12a,_0x4660c9:0x15c,_0x352460:0x1f5,_0x4047da:0xd3,_0x53ac07:0x17b,_0x5579b9:0x6a,_0x1a9dd1:0x11c,_0x5958a:0xbc,_0x3eb3ba:0x2f8,_0x11223f:0x2af,_0x448da8:0x21a,_0x53de25:0x1da,_0x5e0a8c:0x273,_0x46427e:0x2cc,_0x1ad062:0x22f,_0x476261:0x23c,_0x1c635a:0x275,_0x55193e:0x2af,_0x43e779:0x2bb,_0xd29add:0x223,_0xa0d0de:0x274,_0x48448f:0x6f,_0x25c11f:0x201,_0x4b7b84:0x25d,_0x208aa3:0x25b,_0x106bec:0x1d1,_0x5161eb:0x1db,_0x3bef80:0x1c3,_0x4c4509:0x14e,_0x3c0cf7:0x190,_0x4707e6:0x1a8,_0x1e274a:0x18c,_0x3bb069:0x123,_0x5bc770:0xcf,_0x4a8aaf:0x1b0,_0x2556c1:0x154,_0x207343:0x15a,_0x485ec0:0xb3,_0x31c66c:0xb5,_0xabe31d:0x84,_0x4b0d5c:0xcb},_0x254ad2={_0x2de661:0x39,_0x253753:0x136},_0x51455f=_0x5c227b[_0x56464d(_0x1eee3f._0x4d57c3,0x221,0x1e0,_0x1eee3f._0x1b1879)]()==='win32',_0x4d8b73=_0x51455f?[_0x2edea6[_0x275ca7(-0x114,-_0x1eee3f._0x91c645,-_0x1eee3f._0x3fa44a,-0x13b)](process[_0x56464d(0x1ab,0x11e,0x1da,0x175)]['LOCALAPPDATA']||'',_0x275ca7(-0x23a,-_0x1eee3f._0x27af00,-0x133,-_0x1eee3f._0x134a0d),_0x56464d(_0x1eee3f._0x54982b,0x1ea,0x1f8,_0x1eee3f._0x46b706),_0x275ca7(-0x1af,-_0x1eee3f._0x4a7970,-_0x1eee3f._0x222a18,-_0x1eee3f._0x227615)),_0x2edea6[_0x275ca7(-0xaf,-_0x1eee3f._0x4660c9,-_0x1eee3f._0x352460,-0x13b)](process[_0x275ca7(-_0x1eee3f._0x4047da,-_0x1eee3f._0x4047da,-0x1ac,-_0x1eee3f._0x53ac07)][_0x275ca7(-0xc,-_0x1eee3f._0x5579b9,-_0x1eee3f._0x1a9dd1,-_0x1eee3f._0x5958a)]||'','ripgrep',_0x56464d(0x31f,_0x1eee3f._0x3eb3ba,_0x1eee3f._0x11223f,0x343)),_0x2edea6[_0x56464d(0x1e4,0x175,_0x1eee3f._0x448da8,0x17a)](process[_0x56464d(0x179,_0x1eee3f._0x4660c9,_0x1eee3f._0x53de25,0x27c)][_0x56464d(0x2cb,_0x1eee3f._0x5e0a8c,_0x1eee3f._0x46427e,_0x1eee3f._0x1ad062)]||'',_0x56464d(_0x1eee3f._0x476261,0x316,_0x1eee3f._0x1c635a,0x2e3),_0x56464d(0x2d5,0x20d,_0x1eee3f._0x55193e,_0x1eee3f._0x43e779))]:[_0x56464d(_0x1eee3f._0xd29add,0x223,0x229,0x1d7),_0x56464d(0x17a,0x233,0x1f6,0x1b3),_0x56464d(0x208,_0x1eee3f._0xa0d0de,0x2ae,0x356),_0x275ca7(-0xab,-0x9e,-0x9a,-_0x1eee3f._0x48448f)];function _0x56464d(_0x6435c5,_0x1847cc,_0x372df5,_0x29c68a){return _0xaab5df(_0x6435c5-0xdd,_0x372df5-0x38e,_0x372df5-0x66,_0x29c68a);}function _0x275ca7(_0x280447,_0x4d3c9f,_0x185b9b,_0x269329){return _0xaab5df(_0x280447-0x11d,_0x269329-_0x254ad2._0x2de661,_0x185b9b-_0x254ad2._0x253753,_0x280447);}for(const _0x4a1e57 of _0x4d8b73){if(existsSync(_0x4a1e57))return _0x4a1e57;}try{const _0x57ee7a=_0x51455f?_0x56464d(_0x1eee3f._0x25c11f,_0x1eee3f._0x4b7b84,0x268,0x20f):_0x56464d(0x1ea,_0x1eee3f._0x208aa3,0x25e,0x21d),_0x935cf5=execSync(_0x57ee7a,{'encoding':_0x56464d(0x299,0x238,_0x1eee3f._0xa0d0de,_0x1eee3f._0x106bec),'stdio':[_0x275ca7(-_0x1eee3f._0x5161eb,-_0x1eee3f._0x3bef80,-_0x1eee3f._0x4c4509,-0x171),_0x56464d(_0x1eee3f._0x3c0cf7,_0x1eee3f._0x4707e6,0x1e4,0x1fd),_0x275ca7(-0x48,-_0x1eee3f._0x1e274a,-_0x1eee3f._0x3bb069,-_0x1eee3f._0x5bc770)]})[_0x275ca7(-_0x1eee3f._0x4a8aaf,-_0x1eee3f._0x2556c1,-0xf5,-_0x1eee3f._0x207343)]()[_0x275ca7(-_0x1eee3f._0x485ec0,-_0x1eee3f._0x31c66c,-_0x1eee3f._0xabe31d,-_0x1eee3f._0x4b0d5c)](/\r?\n/)[0x0];if(_0x935cf5&&existsSync(_0x935cf5))return _0x935cf5;}catch{return null;}return null;}async function filepath(){if(cachedRgPath)return cachedRgPath;if(_0x404eff&&existsSync(_0x404eff))return cachedRgPath=_0x404eff,_0x404eff;const _0x33c409=findSystemRipgrep();if(!_0x33c409)throw new Error('ripgrep\x20executable\x20not\x20found.\x20Install\x20rg\x20to\x20use\x20Glob\x20and\x20Grep\x20tools.');return cachedRgPath=_0x33c409,_0x33c409;}async function*files(_0x3f33b6){const _0x20d923={_0x3b8ec9:0x545,_0x1d28d5:0x4a1,_0x22b822:0x2af,_0x434d8c:0x288,_0x39377d:0x2bc,_0x357a74:0x43d,_0x8e537c:0x4ab,_0x7d5c7e:0x32b,_0x18a73d:0x2cb,_0x4807ba:0x393,_0x23d60b:0x2c0,_0xdc3cd:0x4ad,_0x51b7c8:0x492,_0x3830a1:0x213,_0x54028f:0x2d7,_0x4d94e2:0x2b8,_0x4f6235:0x17b,_0x150e56:0x17d,_0xc626fa:0x426,_0x394a5a:0x405,_0x45e3a5:0x43b,_0x5e4cea:0x5c5,_0x40e44e:0x30d,_0x39972e:0x287,_0x64cbe:0x1bc,_0x5e0589:0x195,_0x50e13d:0x209,_0x116481:0x4ee,_0x27f3fb:0x493,_0x3932a5:0x53c,_0x509892:0x48f,_0x415144:0x46f,_0x366879:0x4fe,_0x5bcacb:0x4d4,_0x2aecea:0x245},_0x5435be={_0x531ccd:0xb9},_0x29ede7=await filepath();function _0x10823f(_0x1079b4,_0x195482,_0x3d7df1,_0x47b0f9){return _0x49a26f(_0x195482,_0x195482-0xde,_0x3d7df1-_0x5435be._0x531ccd,_0x1079b4- -0x135);}const _0x4b7ecc=await _0x2f415b(_0x3f33b6[_0x4e2fc1(_0x20d923._0x3b8ec9,0x52f,0x4d1,_0x20d923._0x1d28d5)])[_0x10823f(_0x20d923._0x22b822,0x2a2,_0x20d923._0x434d8c,_0x20d923._0x39377d)](()=>null);if(!_0x4b7ecc?.[_0x10823f(0x347,0x39f,0x358,0x2a6)]())throw Object[_0x4e2fc1(0x493,_0x20d923._0x357a74,_0x20d923._0x8e537c,0x471)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x3f33b6[_0x10823f(_0x20d923._0x7d5c7e,_0x20d923._0x18a73d,_0x20d923._0x4807ba,_0x20d923._0x23d60b)]+'\x27'),{'code':'ENOENT'});const _0x3f4738=[_0x4e2fc1(0x44b,_0x20d923._0xdc3cd,0x457,0x3ac),_0x4e2fc1(_0x20d923._0x51b7c8,0x4e8,0x4fe,0x3d4),_0x10823f(0x239,_0x20d923._0x3830a1,0x1c8,0x1c9),_0x10823f(_0x20d923._0x54028f,_0x20d923._0x4d94e2,0x2b7,0x395)];for(const _0x51c035 of _0x3f33b6[_0x10823f(0x21a,0x1d3,_0x20d923._0x4f6235,_0x20d923._0x150e56)]??[]){_0x3f4738[_0x4e2fc1(_0x20d923._0xc626fa,_0x20d923._0x394a5a,0x39b,_0x20d923._0x45e3a5)]('--glob='+_0x51c035);}function _0x4e2fc1(_0x6ce2f5,_0x1d57ae,_0x5eed83,_0x132f3e){return _0x49a26f(_0x1d57ae,_0x1d57ae-0xb2,_0x5eed83-0x18e,_0x6ce2f5-0xe5);}const _0x4241e6=_0x3324fd(_0x29ede7,_0x3f4738,{'cwd':_0x3f33b6[_0x4e2fc1(0x545,0x4e8,_0x20d923._0x5e4cea,0x53e)],'stdio':[_0x10823f(0x2d0,_0x20d923._0x40e44e,0x382,_0x20d923._0x39972e),_0x10823f(0x22e,_0x20d923._0x64cbe,0x2a8,0x1dd),'pipe']});let _0x2ac7bf='';for await(const _0x5e3daf of _0x4241e6[_0x10823f(0x220,0x1aa,_0x20d923._0x5e0589,_0x20d923._0x50e13d)]??[]){_0x2ac7bf+=_0x5e3daf['toString']();const _0x2e2a9e=_0x2ac7bf[_0x4e2fc1(_0x20d923._0x116481,_0x20d923._0x27f3fb,_0x20d923._0x3932a5,_0x20d923._0x509892)](/\r?\n/);_0x2ac7bf=_0x2e2a9e[_0x4e2fc1(_0x20d923._0x415144,_0x20d923._0x366879,0x489,_0x20d923._0x5bcacb)]()??'';for(const _0x3b4a0b of _0x2e2a9e){if(_0x3b4a0b['length']>0x0)yield _0x3b4a0b;}}_0x2ac7bf[_0x10823f(_0x20d923._0x2aecea,0x1c5,0x22a,0x1a4)]()['length']>0x0&&(yield _0x2ac7bf['trim']());}function parseMatchLine(_0x26fa24,_0x2d4cbb){const _0x290954={_0x1c9c49:0x2f4,_0x387abf:0x205,_0x3c8000:0x239,_0x42588c:0x18d,_0xc9941f:0x326,_0x55fac6:0x3e3,_0x1409bc:0x3d4,_0x1b2df4:0x2e6,_0x40b8e9:0x249,_0x78d610:0x18d,_0x37c333:0x232,_0x32ac05:0x2ac,_0x519eb2:0x20a,_0x1521eb:0x1ff,_0xf7206d:0x2a8,_0x469062:0x356,_0x434aca:0x26d,_0x349afa:0x2d2,_0x4be202:0x247,_0x1a5919:0x189,_0x42f087:0x395,_0x3ca47c:0x314},_0x300872={_0x58dce0:0x1be},_0x44a8cd={_0x5a9535:0x373};if(!_0x26fa24||_0x26fa24==='--')return null;const _0xadbede=_0x26fa24['split']('|');if(_0x2d4cbb&&_0xadbede[_0x5db210(0x2a8,_0x290954._0x1c9c49,_0x290954._0x387abf,0x327)]>=0x4&&Number[_0x418acc(0x197,_0x290954._0x3c8000,0x246,_0x290954._0x42588c)](Number[_0x5db210(_0x290954._0xc9941f,_0x290954._0x55fac6,0x2bd,_0x290954._0x1409bc)](_0xadbede[0x2]??'',0xa))){const _0x3948d3=Number[_0x418acc(0x1b1,0x2c2,_0x290954._0x1b2df4,_0x290954._0x40b8e9)](_0xadbede[0x1]??'',0xa);if(!Number[_0x418acc(0x19e,0x13a,0x21e,_0x290954._0x78d610)](_0x3948d3)||!_0xadbede[0x0])return null;return{'filePath':_0xadbede[0x0],'lineNum':_0x3948d3,'lineText':_0xadbede[_0x418acc(0x2ee,_0x290954._0x37c333,0x34d,_0x290954._0x32ac05)](0x3)[_0x418acc(_0x290954._0x519eb2,0x251,0x160,_0x290954._0x1521eb)]('|')};}function _0x418acc(_0x422b55,_0xaa64e7,_0x4ae487,_0x5c7aed){return _0xaab5df(_0x422b55-0xa4,_0x5c7aed-_0x44a8cd._0x5a9535,_0x4ae487-0x174,_0x4ae487);}if(_0xadbede[_0x5db210(_0x290954._0xf7206d,_0x290954._0x469062,0x259,0x352)]>=0x3){const _0x298b4e=Number[_0x418acc(_0x290954._0x434aca,_0x290954._0x349afa,_0x290954._0x4be202,0x249)](_0xadbede[0x1]??'',0xa);if(!Number[_0x418acc(_0x290954._0x1a5919,0x182,0x1f7,0x18d)](_0x298b4e)||!_0xadbede[0x0])return null;return{'filePath':_0xadbede[0x0],'lineNum':_0x298b4e,'lineText':_0xadbede[_0x5db210(0x389,_0x290954._0x42f087,_0x290954._0x3ca47c,0x3ef)](0x2)[_0x418acc(0x268,0x213,0x218,0x1ff)]('|'),..._0x2d4cbb?{'isContext':!![]}:{}};}function _0x5db210(_0x6425ad,_0x2ad945,_0x19121a,_0x95329a){return _0xaab5df(_0x6425ad-_0x300872._0x58dce0,_0x6425ad-0x450,_0x19121a-0x10c,_0x19121a);}return null;}async function search(_0x1fb5a6){const _0x1c5a15={_0x34399d:0xb0,_0x240333:0x155,_0x48f1be:0x57,_0xe9cf4f:0xf,_0x6b245c:0x1f5,_0x487960:0x16d,_0x2c8362:0x113,_0x1a2325:0x2,_0x124d55:0x7c,_0x424ffc:0x3e,_0x38f3ec:0x13e,_0x449264:0x17b,_0x56a22f:0x114,_0x20a417:0x46,_0x568f78:0x21,_0x42660e:0xad,_0x4cccc5:0x4,_0x2f8987:0x3b,_0x1f8a5f:0x1e,_0x21d757:0xba,_0x4096af:0x100,_0x30b7c9:0xe4,_0x1e7510:0x12a,_0x403994:0x24,_0x5dd9d5:0xbc,_0x2a1d25:0x97,_0x3f7a18:0x11e,_0x58cfd3:0x1bc,_0x161f58:0x1bf,_0x3a9f2b:0x1b7,_0x3164a8:0x27a,_0x5ce277:0x1f0,_0x56b1d7:0x273,_0x3b2085:0x17e,_0x75d554:0x23,_0xa53fac:0x1ae,_0x1bd46f:0x223,_0x2bdbfe:0x20f,_0x828c32:0x27,_0x33d124:0x1e,_0x23f07d:0x1cf},_0x27444a={_0x3bccde:0xfa,_0x482d8f:0x594,_0x59471c:0x6ae,_0x3a9749:0x633,_0x11d443:0x591,_0x354517:0x57c,_0x3d3ad9:0x5ea,_0x1f20a5:0x58,_0x49fda4:0xf1,_0x44cb22:0xce,_0x236176:0x14f,_0x1abe48:0x91,_0x3c9ab6:0x31,_0x485a77:0x6b9},_0x11ea3b={_0x3fa145:0xf0,_0x2e0f39:0x65},_0x7717b3={_0x5d0884:0x1d8,_0x3908c9:0x1a5,_0x3d1fd2:0x1f1};function _0x11d213(_0x229429,_0x5e40de,_0x359e52,_0x3ea95f){return _0x49a26f(_0x359e52,_0x5e40de-0x14f,_0x359e52-0x97,_0x229429- -0x4fd);}const _0x260eeb=await filepath();if(_0x1fb5a6[_0x11d213(-0x14d,-_0x1c5a15._0x34399d,-0x166,-_0x1c5a15._0x240333)]){const _0x571b55=await _0x2f415b(_0x1fb5a6[_0xc36d38(_0x1c5a15._0x48f1be,0xb,0x48,0x40)])[_0xc36d38(-0x38,-_0x1c5a15._0xe9cf4f,0x7c,0x5d)](()=>null);if(!_0x571b55?.['isFile']())throw Object[_0x11d213(-0x14f,-0x19b,-_0x1c5a15._0x6b245c,-0x160)](new Error('No\x20such\x20file:\x20\x27'+_0x1fb5a6[_0x11d213(-0x14d,-0x125,-_0x1c5a15._0x487960,-0x1f4)]+'\x27'),{'code':'ENOENT'});}else{const _0x1e9f0b=await _0x2f415b(_0x1fb5a6['cwd'])[_0xc36d38(_0x1c5a15._0x2c8362,_0x1c5a15._0x1a2325,_0x1c5a15._0x124d55,-_0x1c5a15._0x424ffc)](()=>null);if(!_0x1e9f0b?.[_0xc36d38(_0x1c5a15._0x38f3ec,_0x1c5a15._0x449264,_0x1c5a15._0x56a22f,0x176)]())throw Object[_0xc36d38(0x73,-0x20,_0x1c5a15._0x20a417,-0x41)](new Error(_0xc36d38(_0x1c5a15._0x568f78,0xb8,0x77,0x59)+_0x1fb5a6[_0x11d213(-0x9d,-_0x1c5a15._0x42660e,-0x80,-_0x1c5a15._0x4cccc5)]+'\x27'),{'code':_0xc36d38(_0x1c5a15._0x2f8987,_0x1c5a15._0x1f8a5f,0xc9,_0x1c5a15._0x21d757)});}const _0x2cf3bf=[_0x11d213(-0x167,-_0x1c5a15._0x4096af,-0xa7,-0xb4),_0x11d213(-_0x1c5a15._0x30b7c9,-_0x1c5a15._0x1e7510,-_0x1c5a15._0x403994,-_0x1c5a15._0x5dd9d5),'--field-context-separator=|','--regexp',_0x1fb5a6[_0xc36d38(0x50,0x6f,_0x1c5a15._0x2a1d25,-0x11)]],_0x5ee182=typeof _0x1fb5a6[_0xc36d38(0x13b,0x119,0xad,_0x1c5a15._0x3f7a18)]===_0xc36d38(0x26,0x79,0x8,-0xab)&&_0x1fb5a6['context']>0x0;_0x5ee182&&_0x2cf3bf[_0x11d213(-_0x1c5a15._0x58cfd3,-_0x1c5a15._0x161f58,-_0x1c5a15._0x3a9f2b,-_0x1c5a15._0x3164a8)]('-C',String(_0x1fb5a6['context']),_0x11d213(-_0x1c5a15._0x5ce277,-0x224,-_0x1c5a15._0x56b1d7,-_0x1c5a15._0x3b2085));function _0xc36d38(_0x11654a,_0x2f9d44,_0x3852f1,_0x4a2ffb){return _0xaab5df(_0x11654a-_0x7717b3._0x5d0884,_0x3852f1-_0x7717b3._0x3908c9,_0x3852f1-_0x7717b3._0x3d1fd2,_0x2f9d44);}return _0x1fb5a6[_0xc36d38(-0x22,-0x8e,-0x19,0xa0)]&&!_0x1fb5a6[_0xc36d38(0x20,0x98,0x48,0xcb)]&&_0x2cf3bf['push'](_0xc36d38(-0x65,_0x1c5a15._0x75d554,-0x4,_0x1c5a15._0x2f8987),_0x1fb5a6[_0x11d213(-_0x1c5a15._0xa53fac,-_0x1c5a15._0x1bd46f,-0x16f,-_0x1c5a15._0x2bdbfe)]),_0x2cf3bf[_0xc36d38(-0x82,-0xe3,-_0x1c5a15._0x828c32,-_0x1c5a15._0x33d124)](_0x1fb5a6[_0x11d213(-0x14d,-0xef,-_0x1c5a15._0x23f07d,-0xbb)]??_0x1fb5a6['cwd']),await new Promise((_0x5983a3,_0x4402f9)=>{const _0x40fd5f={_0x3c1e1c:0x72b,_0x5390cc:0x0},_0x4b2459={_0x1702b8:0x241,_0x1f2dd3:0x119,_0x42ccc8:0x90,_0x309946:0xe,_0x67ed8e:0x8a,_0x10e361:0x14,_0x41de80:0x97},_0x1aad5d={_0x27d5cd:0x34,_0x8bd997:0x152,_0xf8cc70:0x74},_0x72a355={_0x26ba2b:0x75},_0xbb74d8={_0x1d003f:0x2b,_0x59f1b3:0x61,_0x1cdf4a:0x34,_0x3e2d30:0x5d},_0x3ae141={_0x2ffaa6:0x101,_0x2964d8:0x1c4},_0x48f51b={_0x2cb13f:0xf0,_0x48ab07:0x1d},_0x57ca65=_0x3324fd(_0x260eeb,_0x2cf3bf,{'cwd':_0x1fb5a6[_0x59aeaa(0xb3,0x35,0x23,_0x27444a._0x3bccde)],'stdio':[_0x50b60f(_0x27444a._0x482d8f,_0x27444a._0x59471c,_0x27444a._0x3a9749,0x6ad),_0x50b60f(0x5f4,0x64a,_0x27444a._0x11d443,0x50f),_0x50b60f(0x543,_0x27444a._0x354517,_0x27444a._0x11d443,_0x27444a._0x3d3ad9)]});let _0x26b843='',_0x5db24f='';_0x57ca65[_0x59aeaa(-_0x27444a._0x1f20a5,-0x118,-0x50,-_0x27444a._0x49fda4)]?.['on'](_0x59aeaa(-0x57,0x47,0x5b,-0xd3),_0x5e42cb=>{function _0x5774f8(_0x45c276,_0x3c5b60,_0x5aa51f,_0x24de90){return _0x59aeaa(_0x24de90-_0x48f51b._0x2cb13f,_0x3c5b60-0x71,_0x5aa51f-_0x48f51b._0x48ab07,_0x45c276);}_0x26b843+=_0x5e42cb[_0x5774f8(0x121,_0x3ae141._0x2ffaa6,_0x3ae141._0x2964d8,0x110)]();}),_0x57ca65[_0x59aeaa(_0x27444a._0x44cb22,_0x27444a._0x236176,_0x27444a._0x1abe48,0x21)]?.['on']('data',_0xeee9d6=>{const _0x111517={_0x2fc16d:0x4b};function _0x29df52(_0x4cad7d,_0x2444bf,_0x20b560,_0x865d3d){return _0x59aeaa(_0x4cad7d- -_0x111517._0x2fc16d,_0x2444bf-0x153,_0x20b560-0x1e3,_0x2444bf);}_0x5db24f+=_0xeee9d6[_0x29df52(-_0xbb74d8._0x1d003f,-_0xbb74d8._0x59f1b3,-_0xbb74d8._0x1cdf4a,_0xbb74d8._0x3e2d30)]();});function _0x59aeaa(_0x4d0b88,_0x21b86d,_0x246b43,_0x498ee0){return _0x11d213(_0x4d0b88-0x150,_0x21b86d-_0x11ea3b._0x3fa145,_0x498ee0,_0x498ee0-_0x11ea3b._0x2e0f39);}_0x57ca65['on'](_0x59aeaa(0x8f,0x3b,-_0x27444a._0x3c9ab6,0x85),_0x3ad4bd=>{if(_0x3ad4bd===0x1&&_0x26b843===''){_0x5983a3([]);return;}if(_0x3ad4bd!==0x0&&_0x3ad4bd!==0x1){_0x4402f9(new Error('ripgrep\x20failed:\x20'+_0x5db24f));return;}const _0x5e76e6=_0x1fb5a6[_0x3b3b8d(0x225,0x274,_0x4b2459._0x1702b8,0x20f)]??0x64;function _0x3b3b8d(_0x4d1854,_0x1c3557,_0x57008d,_0x3c2130){return _0x59aeaa(_0x57008d-0x26f,_0x1c3557-_0x72a355._0x26ba2b,_0x57008d-0x16d,_0x1c3557);}const _0x1da25d=[];for(const _0x29c2b5 of _0x26b843[_0x5c061c(_0x4b2459._0x1f2dd3,_0x4b2459._0x42ccc8,_0x4b2459._0x309946,0x12f)](/\r?\n/)){if(_0x1da25d[_0x5c061c(_0x4b2459._0x67ed8e,-_0x4b2459._0x10e361,-0x39,-_0x4b2459._0x41de80)]>=_0x5e76e6)break;const _0x35c576=parseMatchLine(_0x29c2b5,_0x5ee182);if(_0x35c576)_0x1da25d['push'](_0x35c576);}function _0x5c061c(_0x162390,_0x48f352,_0x55d718,_0x5d3780){return _0x59aeaa(_0x48f352-_0x1aad5d._0x27d5cd,_0x48f352-_0x1aad5d._0x8bd997,_0x55d718-_0x1aad5d._0xf8cc70,_0x162390);}_0x5983a3(_0x1da25d);});function _0x50b60f(_0x964fa,_0x180202,_0x451e11,_0x83fc95){return _0x11d213(_0x451e11-_0x40fd5f._0x3c1e1c,_0x180202-0x3,_0x83fc95,_0x83fc95-_0x40fd5f._0x5390cc);}_0x57ca65['on'](_0x50b60f(0x740,_0x27444a._0x485a77,0x6b4,0x60d),_0x4402f9);});}function createGlobTool(_0x473501={}){const _0xd3f167={_0x15535f:0x37e,_0x42c412:0x385,_0x36c118:0x3c3,_0x1a2629:0x175,_0x717592:0x179,_0x4eb6ae:0x1c1,_0x51a6b8:0x160,_0x70e92f:0x185,_0x1e0f37:0x179,_0x1f68ec:0x41d,_0xce8baa:0x4a3,_0x5de1a0:0x497,_0x51a0bf:0x44c,_0x2c6fa1:0x163,_0x2b55bf:0x1ab,_0x5bb2d5:0x4eb,_0x35f043:0x443},_0xc47f4f={_0x596731:0x86,_0x524861:0xb8,_0x5143bb:0xa5,_0x583505:0x1e,_0x18420a:0xb7,_0x32da9f:0x129,_0x27d00c:0x1b3,_0x3d6079:0x7c,_0x35fa63:0x11e,_0x29b8bc:0x228,_0x592039:0x29,_0x8307b3:0x66,_0x41d1bc:0xb,_0x199019:0xb3,_0x2aa0a8:0x34,_0x2238a3:0xc2,_0x2b99f7:0x10c,_0x39714a:0x2d,_0x4343df:0x91,_0x417655:0x3f,_0x22a55d:0x6a,_0x18d62d:0x118,_0x317dcc:0x251,_0x40c17e:0x67,_0x269d76:0x99,_0x3e7e45:0x47,_0x46e6af:0x14f,_0x5db535:0x115,_0x47899f:0xfc,_0x40b380:0x33,_0x5bfb74:0x9f,_0x1ed77f:0xb8,_0x529de4:0x13d,_0x3e16ec:0x97,_0x2b9c60:0x12},_0x9465dc={_0x3b930f:0x3a,_0x1a001b:0x7},_0x3bd75f={_0x4ea3a6:0x551,_0x318e72:0x1d9};function _0xa79200(_0x403c12,_0x60b125,_0x1ecf0b,_0x570586){return _0xaab5df(_0x403c12-0x148,_0x570586-_0x3bd75f._0x4ea3a6,_0x1ecf0b-_0x3bd75f._0x318e72,_0x60b125);}const _0x2d7a5a=_0x582e52['resolve'](_0x473501['defaultCwd']??process[_0xa79200(0x504,0x482,0x525,0x4a4)]()),_0x5c61d4=_0x473501[_0xa79200(_0xd3f167._0x15535f,0x410,_0xd3f167._0x42c412,_0xd3f167._0x36c118)]??0x64,_0xcf4b11=_0x473501['name']??_0x5432de(-0x1ff,-_0xd3f167._0x1a2629,-0x1b5,-_0xd3f167._0x717592);function _0x5432de(_0x196e71,_0x3ed9f8,_0x10f981,_0x248b1f){return _0xaab5df(_0x196e71-0x137,_0x3ed9f8-_0x9465dc._0x3b930f,_0x10f981-_0x9465dc._0x1a001b,_0x10f981);}return defineTool({'name':_0xcf4b11,'description':_0x5432de(-_0xd3f167._0x4eb6ae,-_0xd3f167._0x51a6b8,-0x1d0,-0x16b),'inputSchema':{'type':_0x5432de(-0x176,-_0xd3f167._0x70e92f,-_0xd3f167._0x1e0f37,-0xd2),'properties':{'pattern':{'type':_0xa79200(0x4bf,_0xd3f167._0x1f68ec,0x447,0x44c)},'path':{'type':_0xa79200(0x4d9,_0xd3f167._0xce8baa,_0xd3f167._0x5de1a0,_0xd3f167._0x51a0bf)},'limit':{'type':_0x5432de(-0x137,-_0xd3f167._0x2c6fa1,-0x214,-_0xd3f167._0x2b55bf)}},'required':[_0xa79200(0x436,0x448,_0xd3f167._0x5bb2d5,_0xd3f167._0x35f043)]},async *'execute'(_0x3a0eba){const _0x350f43={_0x197010:0x1f3,_0x5962a7:0x62},_0xe57ee9={_0x1bca61:0x28,_0x4d4eaf:0x121};if(_0x3a0eba[_0x395d0b(-0x18a,-0x137,-0x7f,-0xfc)][_0x211353(_0xc47f4f._0x596731,-0x4e,0x27,_0xc47f4f._0x524861)]()['length']===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x4cdf98=resolveWorkspacePath(_0x2d7a5a,_0x3a0eba[_0x395d0b(-0x148,-0x13a,-0xa4,-0x9f)]??'.'),_0x114d52=await _0x997e47(_0x4cdf98)[_0x211353(0x82,_0xc47f4f._0x5143bb,0x91,-_0xc47f4f._0x583505)](()=>null);function _0x395d0b(_0x31cd19,_0x381095,_0x109ace,_0x52dda2){return _0x5432de(_0x31cd19-0x18,_0x52dda2- -_0xe57ee9._0x1bca61,_0x381095,_0x52dda2-_0xe57ee9._0x4d4eaf);}if(!_0x114d52?.[_0x211353(_0xc47f4f._0x18420a,0x136,_0xc47f4f._0x32da9f,_0xc47f4f._0x27d00c)]())throw new ToolExecutionError(_0x211353(0x5e,-0x85,0x36,0xb7)+(_0x3a0eba[_0x211353(0x10e,0x67,0x109,0xdf)]??'.'),{'path':_0x3a0eba[_0x211353(0x193,_0xc47f4f._0x3d6079,0x109,_0xc47f4f._0x35fa63)]??'.'});function _0x211353(_0x3646ca,_0x13fb97,_0x47da9e,_0x505cbb){return _0x5432de(_0x3646ca-_0x350f43._0x197010,_0x47da9e-0x180,_0x3646ca,_0x505cbb-_0x350f43._0x5962a7);}const _0x21b3f0=_0x3a0eba[_0x395d0b(-0x192,-0x113,-_0xc47f4f._0x29b8bc,-0x17c)]??_0x5c61d4,_0x13380c=Math[_0x211353(0x47,0x37,_0xc47f4f._0x592039,_0xc47f4f._0x8307b3)](0x1,Math[_0x211353(-_0xc47f4f._0x41d1bc,0xbb,_0xc47f4f._0x199019,_0xc47f4f._0x2aa0a8)](_0x21b3f0)),_0x215812=[];let _0x2d7ceb=![];for await(const _0xfe500 of files({'cwd':_0x4cdf98,'glob':[_0x3a0eba[_0x211353(_0xc47f4f._0x2238a3,0xc7,0xac,0xad)]]})){if(_0x215812['length']>=_0x13380c){_0x2d7ceb=!![];break;}const _0x214694=await _0x997e47(_0x582e52['join'](_0x4cdf98,_0xfe500))[_0x211353(_0xc47f4f._0x2b99f7,-_0xc47f4f._0x39714a,_0xc47f4f._0x4343df,0x36)](()=>null);_0x215812[_0x211353(_0xc47f4f._0x417655,-_0xc47f4f._0x22a55d,-0x12,0x12)]({'path':_0xfe500,'mtime':_0x214694?.[_0x395d0b(-0x12b,-0x16a,-0x19b,-0x1df)]??0x0});}_0x215812[_0x395d0b(-_0xc47f4f._0x18d62d,-_0xc47f4f._0x317dcc,-0x212,-0x1a4)]((_0x49a6ed,_0x4a4e71)=>_0x4a4e71[_0x395d0b(-0x1a,-0x19,-0x81,-0x83)]-_0x49a6ed[_0x211353(0xa4,0xb2,0x125,0x1de)]);const _0xda160c=_0x215812[_0x211353(0xd,0x36,_0xc47f4f._0x40c17e,0x35)](_0x22d370=>_0x22d370['path']),_0x422942=_0xda160c['length']===0x0?_0x211353(-_0xc47f4f._0x269d76,-0x4e,-_0xc47f4f._0x3e7e45,0x35)+_0x3a0eba[_0x395d0b(-0xe3,-_0xc47f4f._0x46e6af,-_0xc47f4f._0x5db535,-_0xc47f4f._0x47899f)]:''+_0xda160c[_0x211353(0xd1,_0xc47f4f._0x39714a,0x46,-_0xc47f4f._0x40b380)]('\x0a')+(_0x2d7ceb?_0x395d0b(-_0xc47f4f._0x5bfb74,-_0xc47f4f._0x18d62d,-_0xc47f4f._0x1ed77f,-_0xc47f4f._0x529de4):'');return yield createToolOutput(_0x422942,{'pattern':_0x3a0eba[_0x211353(0x45,0xa2,0xac,-0x14)],'searchPath':_0x582e52[_0x395d0b(-0x13f,-0x6d,-0x84,-_0xc47f4f._0x3e16ec)](_0x2d7a5a,_0x4cdf98)||'.','matches':_0xda160c,'count':_0xda160c[_0x211353(0x75,0x5,_0xc47f4f._0x2b9c60,0x41)],'truncated':_0x2d7ceb}),void 0x0;}});}import{stat as _0x3e0718}from'fs/promises';import*as _0xfb71cd from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x235f90={}){const _0x20234d={_0x454ef8:0x217,_0x3a6578:0x1d5,_0x5189ae:0x6fd,_0x917b3b:0x60d,_0x10ab05:0x724,_0x4bf36a:0x59b,_0x5dffb0:0x528,_0x5014bf:0x5c1,_0x5add4a:0x57b,_0x25bdca:0x645,_0x140d30:0x56e,_0x327bff:0x599,_0x1aae99:0x506,_0x5ed95a:0x2ba,_0x585e55:0x205,_0x5e51d7:0x1a6,_0x202e61:0x16b,_0xfc49da:0x154,_0xe09e4f:0xfd},_0x1947e7={_0x355512:0xbc,_0x193bca:0x34,_0x4f1c6f:0x14,_0x59568c:0x296,_0x4512e7:0x301,_0x444034:0x328,_0xbfe697:0x3f3,_0x260821:0x41f,_0x154ad2:0x4d9,_0x13c5f0:0x49c,_0x2bb07f:0x66,_0x1a3032:0x11d,_0x463b25:0x71,_0x32dcee:0x42,_0x129223:0x4c,_0x426b07:0x3,_0x54f79c:0x3b,_0x2e21d1:0x6b,_0x1140f0:0x1d,_0x14b0ab:0x118,_0x73a226:0x41e,_0x57568e:0x3d8,_0x262ba3:0xe8,_0x94da1f:0xda,_0x3847d8:0xa5,_0xfdb6c0:0x357,_0x23f523:0x30e,_0x439f07:0x332,_0x2bd85d:0x2b4,_0x207fbd:0x2a5,_0x5e1938:0x2df,_0x2f7267:0x294,_0x5cc151:0x117,_0x4d43c1:0xe,_0x128284:0x304,_0x2a2c2b:0x2ee,_0xd08f94:0x357,_0xc103e2:0x3ae,_0x15aab:0x28b,_0x52bad0:0x282,_0x341585:0x2d5,_0x4cb15c:0x8,_0x2fd9b9:0x86,_0x69b9aa:0x5f,_0x4dbf68:0x30,_0x1e49b8:0x24,_0x2f23af:0x94,_0x4b76fe:0x35,_0x284a93:0x4c,_0x3c1fb2:0x30,_0x37abf4:0x5a,_0x263901:0xc7,_0x1aef60:0x3b,_0x3aadf3:0xfa,_0x19e114:0x2b,_0x2bd37c:0x38d,_0x5697a8:0x426,_0x1b2fa1:0x13d,_0x292394:0x36,_0x5b3744:0xdd,_0x1886f2:0x35,_0x3f5009:0x76,_0x20c890:0x37a,_0x986f43:0x3c3,_0x1efdb9:0x365,_0x3d2e09:0x87,_0x3b6e5f:0xd6,_0xfd2c86:0x15,_0x25bf43:0xa1,_0x12ae92:0x54,_0x43b5f2:0x3c,_0x148abd:0x7d,_0x45daa8:0x28,_0x2d50a1:0x35f,_0x1d5cfd:0x36f,_0x2eb6ec:0x3d9,_0xe6e2d0:0xd5,_0x205705:0x83,_0x43f223:0x29,_0x364168:0x361,_0x119eef:0x4d,_0x4864dd:0x6,_0x45ab91:0x40c,_0x4d0db5:0x385,_0x4b3123:0x93,_0x112cc9:0xf7,_0x587742:0x9b,_0x16f386:0x9a},_0x5886d8={_0x61b43a:0x726},_0x3ae237={_0x1ebb64:0x17},_0x2a1b64=_0xfb71cd[_0x2f4d95(_0x20234d._0x454ef8,0x219,_0x20234d._0x3a6578,0x1c9)](_0x235f90[_0x34de5f(_0x20234d._0x5189ae,_0x20234d._0x917b3b,0x63a,0x68e)]??process[_0x34de5f(0x728,0x720,_0x20234d._0x10ab05,0x679)]());function _0x2f4d95(_0x232d53,_0xcbfe13,_0x5f6a14,_0x5e2543){return _0x49a26f(_0x5e2543,_0xcbfe13-0x43,_0x5f6a14-_0x3ae237._0x1ebb64,_0x5f6a14- -0x203);}function _0x34de5f(_0x260d28,_0x7646bf,_0x2b99d,_0x525b75){return _0xaab5df(_0x260d28-0x140,_0x525b75-_0x5886d8._0x61b43a,_0x2b99d-0x170,_0x260d28);}const _0x57ada6=_0x235f90[_0x34de5f(0x5ee,_0x20234d._0x4bf36a,0x50a,0x598)]??0x64,_0x476ec6=_0x235f90[_0x34de5f(_0x20234d._0x5dffb0,0x538,_0x20234d._0x5014bf,_0x20234d._0x5add4a)]??_0x34de5f(0x4ee,_0x20234d._0x25bdca,_0x20234d._0x140d30,_0x20234d._0x327bff);return defineTool({'name':_0x476ec6,'description':'Search\x20for\x20a\x20regex\x20pattern\x20in\x20workspace\x20file\x20contents.','inputSchema':{'type':_0x34de5f(0x5ec,_0x20234d._0x1aae99,0x526,0x567),'properties':{'pattern':{'type':_0x2f4d95(_0x20234d._0x5ed95a,0x28d,_0x20234d._0x585e55,0x179)},'path':{'type':'string'},'include':{'type':_0x2f4d95(0x17e,_0x20234d._0x5e51d7,_0x20234d._0x585e55,_0x20234d._0x202e61)},'limit':{'type':_0x2f4d95(_0x20234d._0xfc49da,_0x20234d._0xe09e4f,0x16d,0x18a)},'context':{'type':'number'}},'required':['pattern']},async *'execute'(_0x56cb8b){if(_0x56cb8b[_0x5ee378(_0x1947e7._0x355512,-_0x1947e7._0x193bca,_0x1947e7._0x4f1c6f,0x3b)][_0xdd4de9(_0x1947e7._0x59568c,0x33d,0x2ac,_0x1947e7._0x4512e7)]()[_0xdd4de9(0x313,_0x1947e7._0x444034,0x30a,0x277)]===0x0)throw new ToolExecutionError(_0xdd4de9(0x42e,_0x1947e7._0xbfe697,0x45c,0x437),{});const _0x4b5333=resolveWorkspacePath(_0x2a1b64,_0x56cb8b[_0xdd4de9(0x3b6,_0x1947e7._0x260821,_0x1947e7._0x154ad2,_0x1947e7._0x13c5f0)]??'.'),_0x48bc64=await _0x3e0718(_0x4b5333)['catch'](()=>null),_0x24e265=_0x48bc64?.[_0x5ee378(_0x1947e7._0x2bb07f,_0x1947e7._0x1a3032,0x81,_0x1947e7._0x463b25)]()??![],_0x32b3e5=_0x48bc64?.['isDirectory']()??![];function _0xdd4de9(_0x4592bc,_0x4d2a7a,_0x1fe1da,_0x38d197){return _0x34de5f(_0x4592bc,_0x4d2a7a-0x10f,_0x1fe1da-0x1ab,_0x4d2a7a- -0x256);}if(!_0x24e265&&!_0x32b3e5)throw new ToolExecutionError('Path\x20not\x20found:\x20'+(_0x56cb8b['path']??'.'),{'path':_0x56cb8b['path']??'.'});const _0x45090b=_0x56cb8b['limit']??_0x57ada6,_0x1493c2=Math['max'](0x1,Math[_0x5ee378(-0x20,-0x4,0x68,_0x1947e7._0x32dcee)](_0x45090b)),_0x15e6ce=await search({'cwd':_0x32b3e5?_0x4b5333:_0xfb71cd['dirname'](_0x4b5333),'pattern':_0x56cb8b[_0x5ee378(-0x36,-_0x1947e7._0x129223,-_0x1947e7._0x426b07,_0x1947e7._0x54f79c)],'glob':_0x32b3e5?_0x56cb8b[_0x5ee378(-_0x1947e7._0x2e21d1,_0x1947e7._0x1140f0,-_0x1947e7._0x14b0ab,-0x9a)]:void 0x0,'limit':_0x1493c2,'file':_0x24e265?_0x4b5333:void 0x0,'context':_0x56cb8b[_0xdd4de9(_0x1947e7._0x73a226,_0x1947e7._0x57568e,0x379,0x38f)]}),_0x13e8d2=new Map();for(const _0x14295f of _0x15e6ce){if(!_0x13e8d2['has'](_0x14295f[_0xdd4de9(0x35d,0x30e,0x2d1,0x349)])){const _0x98195=await _0x3e0718(_0x14295f['filePath'])['catch'](()=>null);_0x13e8d2[_0x5ee378(_0x1947e7._0x262ba3,0x116,_0x1947e7._0x94da1f,_0x1947e7._0x3847d8)](_0x14295f[_0xdd4de9(_0x1947e7._0xfdb6c0,_0x1947e7._0x23f523,_0x1947e7._0x439f07,_0x1947e7._0x2bd85d)],{'matches':[],'mtime':_0x98195?.[_0xdd4de9(_0x1947e7._0x207fbd,_0x1947e7._0x5e1938,0x2c7,_0x1947e7._0x2f7267)]??0x0});}_0x13e8d2[_0x5ee378(_0x1947e7._0x5cc151,0x8f,_0x1947e7._0x4d43c1,0x99)](_0x14295f['filePath'])?.['matches'][_0xdd4de9(0x294,_0x1947e7._0x128284,0x354,_0x1947e7._0x2a2c2b)](_0x14295f);}const _0x151535=[..._0x13e8d2[_0xdd4de9(0x416,_0x1947e7._0xd08f94,_0x1947e7._0xc103e2,0x32b)]()][_0xdd4de9(_0x1947e7._0x15aab,0x31a,_0x1947e7._0x52bad0,_0x1947e7._0x341585)]((_0x237492,_0x5da9b0)=>_0x5da9b0[0x1][_0x5ee378(0x136,0x11e,0x11e,0xb4)]-_0x237492[0x1][_0xdd4de9(0x4f8,0x43b,0x467,0x4ec)]),_0x3854d3=_0x15e6ce[_0xdd4de9(0x3c2,0x340,0x2ab,0x388)](_0x4fe2cc=>!_0x4fe2cc['isContext'])['length'],_0x7da518=_0x15e6ce[_0x5ee378(0x6,-_0x1947e7._0x4cb15c,-_0x1947e7._0x2fd9b9,-_0x1947e7._0x69b9aa)]>=_0x1493c2;function _0x5ee378(_0x4759d1,_0x525512,_0x3d8dc6,_0x428976){return _0x2f4d95(_0x4759d1-0x185,_0x525512-0x111,_0x428976- -0x1c1,_0x3d8dc6);}const _0x2c0829=_0x24e265?_0xfb71cd[_0x5ee378(0x81,-_0x1947e7._0x4dbf68,-_0x1947e7._0x1e49b8,0x3a)](_0x4b5333):_0x4b5333;let _0x15e207='';if(_0x15e6ce[_0x5ee378(-0xa2,-_0x1947e7._0x2f23af,_0x1947e7._0x4b76fe,-0x5f)]===0x0)_0x15e207=_0x5ee378(-0x101,_0x1947e7._0x284a93,-_0x1947e7._0x3c1fb2,-0x55)+_0x56cb8b[_0x5ee378(_0x1947e7._0x37abf4,-0x71,_0x1947e7._0x263901,_0x1947e7._0x1aef60)];else{_0x15e207=_0x5ee378(0x13,-0x8d,-_0x1947e7._0x3aadf3,-0x8c)+_0x3854d3+_0x5ee378(-0x3,_0x1947e7._0x19e114,-0x6e,-0x90)+(_0x3854d3===0x1?'':'es')+'\x0a';for(const [_0x24d42d,_0x4a34d2]of _0x151535){const _0x15241f=_0x24e265?_0xfb71cd[_0xdd4de9(0x3da,_0x1947e7._0x2bd37c,_0x1947e7._0x5697a8,0x3d7)](_0x24d42d):_0xfb71cd[_0x5ee378(_0x1947e7._0x1b2fa1,_0x1947e7._0x292394,0xa2,0xa0)](_0x2c0829,_0x24d42d);_0x15e207+='\x0a'+_0x15241f+':\x0a';for(const _0x216f57 of _0x4a34d2[_0x5ee378(_0x1947e7._0x5b3744,_0x1947e7._0x1886f2,_0x1947e7._0x3f5009,0x1e)]){const _0x4e8e6e=_0x216f57[_0xdd4de9(_0x1947e7._0x20c890,_0x1947e7._0x986f43,0x3a2,_0x1947e7._0x1efdb9)][_0x5ee378(-_0x1947e7._0x3d2e09,-_0x1947e7._0x3b6e5f,_0x1947e7._0xfd2c86,-_0x1947e7._0x69b9aa)]>MAX_LINE_LENGTH?_0x216f57[_0x5ee378(_0x1947e7._0x25bf43,0x4d,-_0x1947e7._0x12ae92,_0x1947e7._0x43b5f2)]['slice'](0x0,MAX_LINE_LENGTH)+'...':_0x216f57[_0x5ee378(0x2f,-_0x1947e7._0x148abd,_0x1947e7._0x45daa8,0x3c)],_0x2a445a=_0x216f57[_0xdd4de9(_0x1947e7._0x2d50a1,_0x1947e7._0x1d5cfd,_0x1947e7._0x2eb6ec,0x3d5)]?'\x20\x20':'>\x20';_0x15e207+=_0x2a445a+_0x5ee378(_0x1947e7._0xe6e2d0,-0x75,-_0x1947e7._0x205705,_0x1947e7._0x43f223)+_0x216f57[_0xdd4de9(_0x1947e7._0x341585,_0x1947e7._0x364168,0x351,0x2dc)]+':\x20'+_0x4e8e6e+'\x0a';}}_0x7da518&&(_0x15e207+=_0x5ee378(-0x8d,-0x93,_0x1947e7._0x119eef,-_0x1947e7._0x4864dd));}const _0xeff11c={'searchPath':_0xfb71cd[_0xdd4de9(_0x1947e7._0x45ab91,0x427,0x3f5,_0x1947e7._0x4d0db5)](_0x2a1b64,_0x4b5333)||'.','pattern':_0x56cb8b[_0x5ee378(0x1c,_0x1947e7._0x4b3123,0x56,_0x1947e7._0x1aef60)],'matchCount':_0x3854d3,'fileCount':_0x13e8d2['size'],'truncated':_0x7da518};return _0x32b3e5&&_0x56cb8b[_0x5ee378(-0xba,-0x73,-_0x1947e7._0x112cc9,-0x9a)]!==void 0x0&&(_0xeff11c[_0x5ee378(0x19,-0x2d,-_0x1947e7._0x587742,-_0x1947e7._0x16f386)]=_0x56cb8b['include']),yield createToolOutput(_0x15e207['trim'](),_0xeff11c),void 0x0;}});}function _0x49a26f(_0x33eb64,_0x107a22,_0x4dec6b,_0x389f3b){return _0x1a55(_0x389f3b-0x14c,_0x33eb64);}import{readdir as _0xbbdbbe,readFile as _0x5078cb,stat as _0x52c298}from'fs/promises';import*as _0x299949 from'path';import*as _0x267fa0 from'yaml';async function countTextLines(_0x18e6e8){const _0x21005b={_0x5898cf:0x44c,_0x249435:0x461,_0xd640c:0x413,_0x300f0f:0x457,_0x5972b2:0x42c},_0x259331={_0x49814a:0x1e2,_0x456ff8:0xa},_0x5232f4=await _0x5078cb(_0x18e6e8)['catch'](()=>null);function _0x1859c7(_0x13f0a1,_0xf9c9ff,_0x524e68,_0x4f90d0){return _0xaab5df(_0x13f0a1-0x1c2,_0x524e68-0x767,_0x524e68-0x192,_0xf9c9ff);}function _0x481bc1(_0x59b2fc,_0x9db805,_0x1dfb1e,_0x1c7685){return _0x49a26f(_0x1c7685,_0x9db805-0x72,_0x1dfb1e-_0x259331._0x49814a,_0x1dfb1e-_0x259331._0x456ff8);}if(!_0x5232f4||isProbablyBinary(_0x5232f4))return void 0x0;return _0x5232f4['toString'](_0x481bc1(_0x21005b._0x5898cf,0x399,0x3fd,0x35a))[_0x481bc1(_0x21005b._0x249435,0x3fa,_0x21005b._0xd640c,_0x21005b._0x300f0f)](/\r?\n/)[_0x481bc1(0x30c,_0x21005b._0x5972b2,0x36f,0x39c)];}function createLsTool(_0x58a164={}){const _0x4c1348={_0x3cc186:0x316,_0x5accb9:0x32f,_0x3c4d19:0x3cd,_0x2e57d3:0x47c,_0x58dfbe:0x48b,_0x5e2df6:0x427,_0x533af2:0x381,_0x3bf245:0x328,_0x2a312f:0x3fc,_0x118d6d:0x45c,_0x260f5f:0x412,_0x34f6ec:0x47b,_0x13e4bc:0x40f,_0x2d4ce3:0x457,_0x2d2672:0x308,_0x48cfa9:0x2a9},_0x4d6308={_0x28d515:0xac,_0x302b7e:0x9e,_0x27518a:0x47,_0x532e31:0x0,_0x2b2d04:0x37f,_0x192f0a:0x3d1,_0x4c71c2:0x3a4,_0x304af9:0x4b,_0x453574:0x3d2,_0x410ae0:0x313,_0x356668:0x3e3,_0x2b902d:0x33a,_0x337f0a:0x441,_0x2344de:0x4c3,_0x21a14d:0x42a,_0x96b51d:0x1b,_0x89f801:0x27,_0x2e64eb:0x430,_0x26bd75:0x3a3,_0x5c3fac:0x3ab,_0x3ca2c1:0x3f0,_0x1176a6:0x41a,_0x4f2fa3:0x72,_0x14784a:0x14e,_0x1c9e3f:0xeb,_0x452e5a:0xa0,_0x4077a4:0x297,_0x5b9dee:0x34a,_0x35b313:0x19,_0x391fb7:0x126,_0x3b0881:0x10e,_0x37b488:0x12d,_0x24787c:0xf8,_0x133e91:0x14e,_0x1e9ca3:0x2c4,_0x36ff5e:0x343,_0x491d6e:0x388,_0x422ee6:0x357,_0x3bf326:0xea,_0x1d1b76:0x130},_0x19d409={_0x3d17fb:0x3d,_0x32193e:0x1b8},_0x55f571={_0x5275c8:0x89},_0x3e2a80={_0x4c5278:0x514};function _0x334e55(_0x1c0be6,_0x3dfd34,_0x13d5b5,_0x21bf9d){return _0xaab5df(_0x1c0be6-0xf7,_0x13d5b5-_0x3e2a80._0x4c5278,_0x13d5b5-0x7,_0x1c0be6);}const _0x1477ba=_0x299949[_0x268df1(_0x4c1348._0x3cc186,0x39e,_0x4c1348._0x5accb9,0x316)](_0x58a164[_0x334e55(_0x4c1348._0x3c4d19,0x4be,_0x4c1348._0x2e57d3,_0x4c1348._0x58dfbe)]??process[_0x268df1(0x42e,0x426,_0x4c1348._0x5e2df6,_0x4c1348._0x533af2)]());function _0x268df1(_0x47c1fd,_0x49c266,_0x1340cc,_0x21d3f8){return _0x49a26f(_0x1340cc,_0x49c266-0x147,_0x1340cc-_0x55f571._0x5275c8,_0x49c266- -0x3a);}const _0x37dbf1=_0x58a164[_0x268df1(0x2c1,_0x4c1348._0x3bf245,0x310,0x2a7)]??'Ls';return defineTool({'name':_0x37dbf1,'description':_0x334e55(0x493,_0x4c1348._0x2a312f,_0x4c1348._0x118d6d,0x3f3),'inputSchema':{'type':'object','properties':{'path':{'type':_0x334e55(_0x4c1348._0x260f5f,_0x4c1348._0x34f6ec,_0x4c1348._0x13e4bc,_0x4c1348._0x2d4ce3)},'limit':{'type':_0x268df1(_0x4c1348._0x2d2672,0x336,0x2ca,_0x4c1348._0x48cfa9)}}},async *'execute'(_0x4ab4d1){const _0x22444e={_0x4dc393:0x415},_0x1fe84f=_0x4ab4d1[_0x2883b7(_0x4d6308._0x28d515,0xd,-0x5,_0x4d6308._0x302b7e)]??'.',_0x3381b9=resolveWorkspacePath(_0x1477ba,_0x1fe84f),_0x24cf1e=await _0x52c298(_0x3381b9)[_0x2883b7(0x38,-0x6b,_0x4d6308._0x27518a,_0x4d6308._0x532e31)](()=>null);if(!_0x24cf1e?.['isDirectory']())throw new ToolExecutionError(_0x4f8f53(0x384,_0x4d6308._0x2b2d04,_0x4d6308._0x192f0a,_0x4d6308._0x4c71c2)+_0x1fe84f,{'path':_0x1fe84f});const _0x638eb0=_0x4ab4d1[_0x2883b7(-0x126,-0xd0,-_0x4d6308._0x304af9,-0x176)]??0x3e8,_0x53c301=Math[_0x4f8f53(_0x4d6308._0x453574,_0x4d6308._0x410ae0,_0x4d6308._0x356668,_0x4d6308._0x2b902d)](Math['max'](Math['trunc'](_0x638eb0),0x1),0x2710),_0x121d72=await _0xbbdbbe(_0x3381b9),_0x8309ce=[];function _0x4f8f53(_0x3d8735,_0x2c54d8,_0x59f747,_0x18c723){return _0x268df1(_0x3d8735-_0x19d409._0x3d17fb,_0x3d8735-0x35,_0x2c54d8,_0x18c723-_0x19d409._0x32193e);}for(const _0x49349b of _0x121d72[_0x4f8f53(_0x4d6308._0x337f0a,_0x4d6308._0x2344de,0x3c7,0x439)](0x0,_0x53c301)){const _0x926159=_0x299949[_0x4f8f53(0x394,0x42d,0x358,_0x4d6308._0x21a14d)](_0x3381b9,_0x49349b),_0x194d60=await _0x52c298(_0x926159)[_0x2883b7(-0x28,-0x6b,-_0x4d6308._0x96b51d,_0x4d6308._0x89f801)](()=>null);if(!_0x194d60)continue;let _0x4a86fd='other';if(_0x194d60[_0x4f8f53(_0x4d6308._0x2e64eb,0x4ec,_0x4d6308._0x26bd75,0x474)]())_0x4a86fd=_0x4f8f53(_0x4d6308._0x5c3fac,0x402,_0x4d6308._0x3ca2c1,0x397);else{if(_0x194d60[_0x4f8f53(0x477,0x52c,_0x4d6308._0x1176a6,0x422)]())_0x4a86fd=_0x2883b7(-0x1da,-0x11e,-_0x4d6308._0x4f2fa3,-_0x4d6308._0x14784a);else{if(_0x194d60[_0x2883b7(-_0x4d6308._0x1c9e3f,-0xf4,-0x111,-_0x4d6308._0x452e5a)]())_0x4a86fd=_0x4f8f53(0x327,0x329,_0x4d6308._0x4077a4,0x26b);}}const _0x304177={'name':_0x49349b,'type':_0x4a86fd,'size':_0x194d60['size'],'mtime':_0x194d60[_0x4f8f53(0x317,0x27e,_0x4d6308._0x5b9dee,0x2c4)],'mode':_0x194d60['mode']},_0x1a603d=_0x4a86fd==='file'?await countTextLines(_0x926159):void 0x0;if(_0x1a603d!==void 0x0)_0x304177[_0x2883b7(-_0x4d6308._0x35b313,-0x45,-0x21,-0xe7)]=_0x1a603d;_0x8309ce[_0x2883b7(-_0x4d6308._0x391fb7,-_0x4d6308._0x3b0881,-0xc5,-_0x4d6308._0x37b488)](_0x304177);}function _0x2883b7(_0x45a9b7,_0xecd5f0,_0x3f566e,_0x1adc1a){return _0x268df1(_0x45a9b7-0x132,_0xecd5f0- -_0x22444e._0x4dc393,_0x1adc1a,_0x1adc1a-0x1a6);}_0x8309ce[_0x2883b7(-0x101,-_0x4d6308._0x24787c,-_0x4d6308._0x133e91,-0x151)]((_0x3ec16f,_0x486c32)=>_0x3ec16f['name'][_0x4f8f53(0x447,0x4a8,0x4af,0x3f1)](_0x486c32['name']));const _0x1f30c2={'path':_0x1fe84f,'total':_0x8309ce[_0x4f8f53(0x360,_0x4d6308._0x1e9ca3,0x381,_0x4d6308._0x36ff5e)],'truncated':_0x121d72[_0x4f8f53(0x360,_0x4d6308._0x491d6e,0x409,_0x4d6308._0x422ee6)]>_0x53c301,'entries':_0x8309ce};return yield createToolOutput(_0x267fa0[_0x2883b7(-0x15,0x19,-0x23,0x30)](_0x1f30c2,{'indent':0x2,'lineWidth':0x0})['trimEnd'](),{'path':_0x1fe84f,'total':_0x8309ce[_0x2883b7(-0xc5,-_0x4d6308._0x3bf326,-0x79,-_0x4d6308._0x1d1b76)],'truncated':_0x121d72[_0x2883b7(-0x12f,-0xea,-_0x4d6308._0x4f2fa3,-0xf7)]>_0x53c301,'limit':_0x53c301,'entries':_0x8309ce}),void 0x0;}});}import{randomUUID}from'crypto';import{mkdir as _0xea6a06,readFile as _0xccd99d,writeFile as _0x175cd9}from'fs/promises';import{join as _0x2f1b56}from'path';function sanitizeStorageKey(_0x3b2851){const _0xe61005={_0x1fac8f:0x3ca,_0x797071:0x30e},_0x56a912={_0x572738:0x159,_0x4f8c17:0xba};function _0x39f149(_0x4cfc0b,_0x38cecc,_0xc86f6f,_0x3b6bd1){return _0xaab5df(_0x4cfc0b-_0x56a912._0x572738,_0x38cecc-0x43d,_0xc86f6f-_0x56a912._0x4f8c17,_0x3b6bd1);}return _0x3b2851['replace'](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'')||_0x39f149(_0xe61005._0x1fac8f,_0xe61005._0x797071,0x3ca,0x24e);}function storagePath(_0xe74460){const _0x3ad686={_0x4946c5:0x139,_0x346594:0x88,_0x12ef60:0x169,_0x487219:0x160},_0x1e5c61={_0x53796d:0x1a6,_0x1232e4:0x8a},_0x330a32={_0x59bd35:0x87};function _0x12b7b8(_0x2bc903,_0x45791b,_0x29e137,_0x3bf59a){return _0x49a26f(_0x29e137,_0x45791b-_0x330a32._0x59bd35,_0x29e137-0x18d,_0x45791b- -0x4e7);}const _0x89aef1=sanitizeStorageKey(_0xe74460[_0x12b7b8(-_0x3ad686._0x4946c5,-_0x3ad686._0x346594,-0xd3,-0xff)]['oauth']?.['tokenStorageKey']??_0xe74460[_0xf7a22d(0x407,0x394,0x3d0,0x424)]);function _0xf7a22d(_0x3cf213,_0x48c5f2,_0x4b2529,_0x54d68b){return _0xaab5df(_0x3cf213-_0x1e5c61._0x53796d,_0x54d68b-0x5eb,_0x4b2529-_0x1e5c61._0x1232e4,_0x48c5f2);}return _0x2f1b56(_0xe74460[_0x12b7b8(-0x118,-0x18f,-0x176,-0x181)],_0x89aef1+_0x12b7b8(-0xbf,-_0x3ad686._0x12ef60,-0x153,-_0x3ad686._0x487219));}async function readStore(_0x3fc7e8){const _0x342b54={_0x5e489c:0x3f5,_0x25d4dc:0x377,_0x53ba0a:0x2e1,_0x5425cb:0x19f,_0xac8162:0x2c5,_0x43c435:0x4e6,_0x1f8184:0x52f},_0x53f3f7={_0x2711a3:0x1b3,_0x212fbd:0x1b4},_0x258178={_0x567c0f:0x1ac,_0x453191:0x18};function _0x481061(_0x1f4081,_0x4d3e7a,_0x3a9ec2,_0x4fe6ed){return _0x49a26f(_0x1f4081,_0x4d3e7a-_0x258178._0x567c0f,_0x3a9ec2-_0x258178._0x453191,_0x3a9ec2-0x198);}function _0x30a589(_0x3115cd,_0x5dafed,_0x38fc39,_0x3f0ff9){return _0xaab5df(_0x3115cd-_0x53f3f7._0x2711a3,_0x38fc39-0x3fb,_0x38fc39-_0x53f3f7._0x212fbd,_0x3115cd);}try{return JSON[_0x30a589(_0x342b54._0x5e489c,0x2bd,_0x342b54._0x25d4dc,0x2f8)](await _0xccd99d(_0x3fc7e8,_0x30a589(0x27c,0x32d,_0x342b54._0x53ba0a,0x29e)));}catch(_0x1134b2){if(_0x1134b2 instanceof Error&&_0x30a589(_0x342b54._0x5425cb,_0x342b54._0xac8162,0x208,0x29f)in _0x1134b2&&_0x1134b2[_0x481061(0x3fa,_0x342b54._0x43c435,0x4b2,_0x342b54._0x1f8184)]==='ENOENT')return{};throw _0x1134b2;}}async function writeStore(_0x2dd493,_0x1d969b){const _0x3f7a07={_0x4345e2:0x4ab,_0x364f7e:0x3fd,_0x51a015:0x30b},_0x50be87={_0x20cc34:0xca,_0x158c33:0x5d},_0x4a2d9c={_0x5be74e:0x69};function _0x152493(_0xaca99a,_0x5cea1e,_0x17eba9,_0x4dde4b){return _0x49a26f(_0xaca99a,_0x5cea1e-_0x4a2d9c._0x5be74e,_0x17eba9-0xdc,_0x4dde4b- -0x4fb);}function _0x263cae(_0x12ad4e,_0x503f37,_0x342f5b,_0x4f212f){return _0x49a26f(_0x12ad4e,_0x503f37-_0x50be87._0x20cc34,_0x342f5b-0x1cf,_0x4f212f- -_0x50be87._0x158c33);}await _0xea6a06(_0x2f1b56(_0x2dd493,'..'),{'recursive':!![]}),await _0x175cd9(_0x2dd493,JSON[_0x263cae(_0x3f7a07._0x4345e2,0x474,_0x3f7a07._0x364f7e,0x40b)](_0x1d969b,null,0x2),_0x263cae(0x38b,0x331,_0x3f7a07._0x51a015,0x396));}async function updateStore(_0x24a865,_0x4829b0){const _0x1d40e9=await readStore(_0x24a865);_0x4829b0(_0x1d40e9),await writeStore(_0x24a865,_0x1d40e9);}function createMcpOAuthProvider(_0x29b028){const _0x2101cb={_0x258418:0x2e,_0x258431:0x8a,_0x3022b2:0x172,_0x3e4adc:0xf9,_0x66adcb:0x13f,_0x18fa8d:0x5e8,_0x5d6970:0x5bf,_0x535f34:0x38,_0xfbc04f:0x42,_0x24d3d5:0xe0,_0xffe6ff:0xb5,_0x423f2d:0x5b,_0x4cd164:0x376,_0x5bda0b:0x4d6,_0x204dbd:0x42f,_0x5435ee:0x44,_0x1a3319:0x77,_0x4b4ce6:0x20},_0x16c819={_0x2df1a8:0x62e,_0x35c842:0x60c,_0x1487a5:0x79,_0x518d0b:0x3e,_0x4889e2:0x23,_0x1232a7:0x524,_0xf29ab1:0x5a8,_0x50b344:0x12a,_0x22807b:0x141,_0x7a2ae2:0x1ea,_0x418eb0:0x12b,_0xd66895:0xe9,_0x3d3694:0x54f,_0x24d76d:0x58b,_0xff09dd:0x5e6,_0x252940:0x206,_0x1cdd72:0x617,_0x4b2d07:0x545},_0x117715={_0x2a7c8b:0x16,_0x3b496f:0x92,_0x340877:0x18,_0xafffdd:0x2b,_0x47429e:0x21},_0x13a08a={_0x7ca90a:0x5e},_0x30c4e1={_0x2bb20d:0x183,_0x5e7dc8:0x195,_0x499399:0xf3,_0x4bca0e:0x169},_0x26ec38={_0x4423c5:0x207,_0x5c0ac4:0x17b},_0x4cbcc9={_0x9867e2:0x538,_0x4cce39:0x57e},_0x21e151={_0x41005d:0x379,_0x233cae:0x3bf},_0x5dcef7={_0x1b901b:0x16},_0x18abe2={_0x463e58:0x66,_0x2b18de:0x2c0,_0x3be682:0x29c,_0x2818a4:0x2a6},_0x53eb52={_0x4f84c8:0x33b},_0x1e85b6={_0x3871f0:0x15e},_0x56e13b={_0xabe866:0x5f0,_0x2a47de:0x670},_0x5efebf={_0x5cabec:0x4c,_0x198e9e:0x43d};function _0x3a5849(_0x25cc17,_0x29cd6e,_0x38918a,_0x20d6c6){return _0x49a26f(_0x25cc17,_0x29cd6e-0x18a,_0x38918a-0xbe,_0x20d6c6-0xcf);}const _0x47d1a5=storagePath(_0x29b028),_0x1f3be2=_0x29b028['config'][_0x58bc92(0x47,_0x2101cb._0x258418,0x2d,-_0x2101cb._0x258431)]?.['scopes']?.['join']('\x20');function _0x58bc92(_0x59c741,_0x147e2f,_0x39bdf2,_0x2e8adb){return _0x49a26f(_0x59c741,_0x147e2f-0x45,_0x39bdf2-_0x5efebf._0x5cabec,_0x39bdf2- -_0x5efebf._0x198e9e);}const _0x39a117={'client_name':_0x58bc92(-0xf5,-_0x2101cb._0x3022b2,-_0x2101cb._0x3e4adc,-_0x2101cb._0x66adcb),'redirect_uris':[_0x29b028[_0x3a5849(_0x2101cb._0x18fa8d,0x51c,_0x2101cb._0x5d6970,0x53e)]],'grant_types':[_0x58bc92(_0x2101cb._0x535f34,_0x2101cb._0xfbc04f,-0x57,-_0x2101cb._0x24d3d5),_0x58bc92(_0x2101cb._0xffe6ff,-_0x2101cb._0x423f2d,0x2f,0x53)],'response_types':['code'],'token_endpoint_auth_method':_0x3a5849(_0x2101cb._0x4cd164,0x4dd,_0x2101cb._0x5bda0b,_0x2101cb._0x204dbd),..._0x1f3be2?{'scope':_0x1f3be2}:{}};return{'clientMetadataUrl':_0x29b028['config'][_0x58bc92(0x8a,_0x2101cb._0x5435ee,0x2d,_0x2101cb._0x1a3319)]?.[_0x58bc92(-0x10,-_0x2101cb._0x4b4ce6,-0x40,-0x94)],get 'redirectUrl'(){const _0x52868f={_0x5b6f43:0xe8};function _0x567702(_0x482947,_0x3e6836,_0x2b5b24,_0x51c8f5){return _0x3a5849(_0x3e6836,_0x3e6836-_0x52868f._0x5b6f43,_0x2b5b24-0x17b,_0x51c8f5-0x132);}return _0x29b028[_0x567702(0x611,_0x56e13b._0xabe866,0x69b,_0x56e13b._0x2a47de)];},get 'clientMetadata'(){return _0x39a117;},async 'state'(){const _0x217107={_0x32ca6d:0x9f},_0x534dbc={_0x320151:0x116},_0x55609a=await readStore(_0x47d1a5);if(_0x55609a[_0x19400f(_0x18abe2._0x463e58,0x4,0x3b,-0x4b)])return _0x55609a[_0x223c14(_0x18abe2._0x2b18de,_0x18abe2._0x3be682,0x33a,_0x18abe2._0x2818a4)];function _0x223c14(_0x32525c,_0x31339c,_0x2fe2a0,_0xcad28e){return _0x3a5849(_0xcad28e,_0x31339c-0x4c,_0x2fe2a0-0x19,_0x31339c- -_0x1e85b6._0x3871f0);}const _0x48c5aa=randomUUID();function _0x19400f(_0x50ef1a,_0x487262,_0x33bf48,_0x359657){return _0x58bc92(_0x359657,_0x487262-0xbf,_0x487262-_0x534dbc._0x320151,_0x359657-0x115);}return await updateStore(_0x47d1a5,_0x15cd6d=>{function _0x971ba5(_0x3f8408,_0x31174a,_0x425ce6,_0x37759f){return _0x223c14(_0x3f8408-0x21,_0x37759f-_0x217107._0x32ca6d,_0x425ce6-0x1d1,_0x425ce6);}_0x15cd6d[_0x971ba5(0x2a4,0x2a2,0x2f0,_0x53eb52._0x4f84c8)]=_0x48c5aa;}),_0x48c5aa;},async 'clientInformation'(){function _0x6240ad(_0x33ff45,_0x2269e0,_0x189c82,_0x1e6c05){return _0x3a5849(_0x33ff45,_0x2269e0-0xb7,_0x189c82-0x1b3,_0x189c82-_0x5dcef7._0x1b901b);}return(await readStore(_0x47d1a5))[_0x6240ad(_0x21e151._0x41005d,_0x21e151._0x233cae,0x432,0x40e)];},async 'saveClientInformation'(_0x1000aa){const _0x3f7aab={_0x4c9c4f:0xcf,_0x3b74f1:0x129,_0x862897:0x19e};await updateStore(_0x47d1a5,_0x17a38f=>{const _0x5d4d39={_0x4cca2e:0xd8};function _0x51e88(_0xa1676a,_0x57d7e7,_0x406b91,_0x359a2c){return _0x1a55(_0x406b91- -_0x5d4d39._0x4cca2e,_0x359a2c);}_0x17a38f[_0x51e88(_0x3f7aab._0x4c9c4f,0x172,_0x3f7aab._0x3b74f1,_0x3f7aab._0x862897)]=_0x1000aa;});},async 'tokens'(){function _0x4d26dc(_0x10f3fb,_0x5c6d33,_0x402ade,_0x1ac0ec){return _0x3a5849(_0x1ac0ec,_0x5c6d33-0x19c,_0x402ade-0xe8,_0x402ade-0x198);}return(await readStore(_0x47d1a5))[_0x4d26dc(_0x4cbcc9._0x9867e2,_0x4cbcc9._0x4cce39,0x5e8,0x5c2)];},async 'saveTokens'(_0x152b01){await updateStore(_0x47d1a5,_0x1207ba=>{_0x1207ba['tokens']=_0x152b01;});},async 'redirectToAuthorization'(_0x388e28){function _0x57b69d(_0x4b8dc9,_0x6f1e7e,_0x5edb24,_0x223a87){return _0x58bc92(_0x223a87,_0x6f1e7e-0x192,_0x5edb24-_0x26ec38._0x4423c5,_0x223a87-_0x26ec38._0x5c0ac4);}await _0x29b028[_0x57b69d(_0x30c4e1._0x2bb20d,_0x30c4e1._0x5e7dc8,_0x30c4e1._0x499399,_0x30c4e1._0x4bca0e)](_0x388e28);},async 'saveCodeVerifier'(_0x12bcd7){const _0x1bb8a5={_0x1c9714:0x66c,_0x1f49b2:0x5e4};await updateStore(_0x47d1a5,_0x213116=>{const _0x233592={_0x2464e7:0x3b4};function _0x4892d2(_0x4db81b,_0x413253,_0x45d78c,_0xc7ebca){return _0x1a55(_0x4db81b-_0x233592._0x2464e7,_0xc7ebca);}_0x213116[_0x4892d2(_0x1bb8a5._0x1c9714,_0x1bb8a5._0x1f49b2,0x71b,0x69a)]=_0x12bcd7;});},async 'codeVerifier'(){const _0x5ee3a4={_0x13a457:0x19d,_0x3ecbb8:0x11a},_0x159637=(await readStore(_0x47d1a5))[_0x47d1c9(0x7e,_0x117715._0x2a7c8b,-_0x117715._0x3b496f,0x2a)];function _0x47d1c9(_0x3918d6,_0x51f8a2,_0x2a5afc,_0x458947){return _0x58bc92(_0x458947,_0x51f8a2-_0x13a08a._0x7ca90a,_0x51f8a2-0x4f,_0x458947-0x194);}if(!_0x159637)throw new Error(_0x47d1c9(-_0x117715._0x340877,-_0x117715._0xafffdd,-_0x117715._0x47429e,0x61));function _0x33d354(_0x3abe09,_0xc80f88,_0x73a679,_0x3d45f7){return _0x58bc92(_0x3d45f7,_0xc80f88-_0x5ee3a4._0x13a457,_0xc80f88- -0xf3,_0x3d45f7-_0x5ee3a4._0x3ecbb8);}return _0x159637;},async 'invalidateCredentials'(_0x500610){await updateStore(_0x47d1a5,_0x4d5335=>{const _0xe5e1f4={_0xb4b469:0x323};(_0x500610===_0x52826a(_0x16c819._0x2df1a8,0x5b0,0x60a,_0x16c819._0x35c842)||_0x500610===_0x18ca96(_0x16c819._0x1487a5,-0x5b,-_0x16c819._0x518d0b,-_0x16c819._0x4889e2))&&(_0x4d5335[_0x52826a(0x4b4,_0x16c819._0x1232a7,_0x16c819._0xf29ab1,0x487)]=void 0x0);(_0x500610==='all'||_0x500610==='tokens')&&(_0x4d5335[_0x18ca96(-_0x16c819._0x50b344,-0x113,-_0x16c819._0x22807b,-_0x16c819._0x7a2ae2)]=void 0x0);function _0x18ca96(_0x4e3d3,_0x278534,_0xecd86d,_0x4c490d){return _0x1a55(_0xecd86d- -0x376,_0x4e3d3);}(_0x500610===_0x18ca96(-0x49,-_0x16c819._0x418eb0,-_0x16c819._0xd66895,-0xdd)||_0x500610===_0x52826a(_0x16c819._0x3d3694,_0x16c819._0x24d76d,0x54f,_0x16c819._0xff09dd))&&(_0x4d5335['codeVerifier']=void 0x0,_0x4d5335[_0x18ca96(-0x111,-_0x16c819._0x252940,-0x197,-0x22c)]=void 0x0);function _0x52826a(_0x295fea,_0x911300,_0x4e5ead,_0x426e40){return _0x1a55(_0x911300-_0xe5e1f4._0xb4b469,_0x295fea);}(_0x500610===_0x18ca96(-0x37,-0x5a,-_0x16c819._0xd66895,-0x199)||_0x500610===_0x52826a(0x683,0x5e5,0x5a4,_0x16c819._0x1cdd72))&&(_0x4d5335[_0x52826a(0x54b,0x55d,_0x16c819._0x4b2d07,0x534)]=void 0x0);});},async 'saveDiscoveryState'(_0x31ae64){const _0x461c72={_0x20cacc:0x22c},_0x188ae2={_0x51c827:0xa4};await updateStore(_0x47d1a5,_0x115d56=>{function _0x18f81c(_0x24289c,_0x50e02e,_0x10b225,_0x42f858){return _0x1a55(_0x50e02e- -_0x188ae2._0x51c827,_0x42f858);}_0x115d56[_0x18f81c(0x11d,0x196,_0x461c72._0x20cacc,0x20d)]=_0x31ae64;});},async 'discoveryState'(){return(await readStore(_0x47d1a5))['discoveryState'];}};}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(_0x2418a5,_0x29cb4f){const _0x57ff52={_0x5417b6:0x4e3},_0x370c64={_0x36a4e2:0x98},_0x4791ed={_0x5855ad:0x5b7,_0x3c0084:0x94};function _0x3c27f6(_0xf110e2,_0x4ff862,_0x43b4ad,_0x59063f){return _0xaab5df(_0xf110e2-0xec,_0xf110e2-_0x4791ed._0x5855ad,_0x43b4ad-_0x4791ed._0x3c0084,_0x43b4ad);}const _0x484f39=_0x127336=>_0x127336['replace'](/[^a-zA-Z0-9_]+/g,'_')[_0x5e9d1b(0x5da,0x66a,0x5a5,0x5b4)](/^_+|_+$/g,'');function _0x5e9d1b(_0x4089c1,_0x1d8e10,_0x45b06a,_0x274185){return _0x49a26f(_0x45b06a,_0x1d8e10-0x15b,_0x45b06a-_0x370c64._0x36a4e2,_0x4089c1-0x190);}return _0x3c27f6(0x4a1,0x44e,_0x57ff52._0x5417b6,0x540)+_0x484f39(_0x2418a5)+'_'+_0x484f39(_0x29cb4f);}function _0x3e54(){const _0x237954=['zNjVBq','qxnZAwDUvgfZAW','Dg9VBa','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','AxnbCNjHEq','tuLnrtOG','lMDPzG','C3jJl2v4yw1WBgvZl2rLBw8UDhm','Bwf4qNL0zxm','Dg9mB3DLCKnHC2u','l3vZCI9IAw4VCMC','CMCUzxHL','zxHPDcbJB2rLia','Cgf0DgvYBIbPCYbYzxf1AxjLza','ru5pru5u','ugf0AcbPCYbUB3qGysbMAwXLoIa','zxf1ywXZ','Bw9KzwW','AxngAwXL','B2zM','B2XKvgv4Da','BNv2Aw4','tunqihnLCNzLCIa','DhLWzq','yw5ZAti1nG','y2XVC2u','y2fJAgvK','lMPWzW','Dg9VBhm','lMPWzwC','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','nti2odu2wefusNr4','u0Lhs0Lmta','Aw1Hz2uVANbLzW','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','C2XPy2u','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','mte0mty5mMXdDMTAzW','l3vZCI9IAw4VyMfZAa','CMvWBgfJzq','uhjVz3jHBuzPBgvZkhG4nIK','Bg9JywXLq29TCgfYzq','qMvHCMvYia','yxjNCW','Bw9Kzq','xg5DkJ8','yxbPs2v5','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','vw5HDxrOB3jPEMvKrxjYB3i','mZu4otu1ne9zwKnvtG','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4Gysb3B3jRC3bHy2uGzgLYzwn0B3j5lG','lu5Vtg9NBW','yxjYyxK','CMvHC29U','D2LUmZi','CNvUswq','zgvZy3jPChrPB24','Cgf0Aa','z2v0','B3bLBMfPlxjLC3bVBNnLCW','y29UzMLN','y3DK','Dg9VBenHBgXjza','C2vYDMvYCW','Dg9ju09tDhjPBMC','CMvSyxrPDMu','l2jPBI9YzW','DgHLBG','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','C3rYAw5NAwz5','C2v0','B2f1DgG','tg9HzfnRAwXS','CMvMCMvZAf90B2TLBG','C2vZC2LVBKLK','ChjVCgvYDgLLCW','y2fSBgjHy2TvCMW','Aw5WDxrty2HLBwe','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbZBYb0AguGBw9KzwWGy2fUigLUC3bLy3qGAxrZihzPC3vHBcbJB250zw50lIbtDxbWB3j0CYbqtKCSiePqruCSifDLyLaSigfUzcbhsuyGAw1Hz2vZlIbvC2uGDgHPCYbMB3iGC2nYzwvUC2HVDhmSigrPywDYyw1ZlcbWAg90B3mSigfUzcbVDgHLCIbPBwfNzsbMAwXLCZSGDxnLiezPBgvszwfKigzVCIb0zxH0igzPBgvZlG','CMvJB3jK','zMLUywXnzxnZywDLvgv4Da','B25Jzq','zgvMyxvSDen3za','AgfZ','ywDLBNrjza','BxrPBwu','yMLYDgH0Aw1L','lunVBw1HBMq','C3rKzxjY','AxneAxjLy3rVCNK','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','CMvXDwLYzwq','tuvesvvn','C291CMnL','zxH0BMfTzq','yMfZzty0','yxjNDw1LBNriAw50','y2XPzw50','BwvZC2fNzq','zxjYB3i','AwDUB3jLt3v0Chv0','vMLLD0zPBgu','CgfYC2u','y29UBMvJDgvK','B3jPz2LUywW','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','ls1JB2X1Bw4','v0vcua','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','BgLUzuvUza','qxzHAwXHyMXLignVBw1HBMrZoG','B3bLBMfPlxjLC3bVBNnLCY13CW','zgLZywjSzwq','y29TBwfUza','Dw5RBM93BG','BhnW','y29UC3rYDwn0B3i','C3rKAw8','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','y29Kzq','mJq0odm1meTsEfvYvG','BxrPBwvnCW','qxv0Ag9YAxPHDgLVBG','qMfZAa','lu5VuhjVzMLSzq','DgfZA2TPBgW','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','C2HLBgXqyxrO','ywDLBNrZ','twLJCM9ZB2z0','yxjNDw1LBNrZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','AxngAw5PDgu','Dgv4Da','B25szwrPCMvJDa','Aw5JBhvKzq','C3rHDgu','C3LTBgLUAW','BgLZDfrVB2XZ','q29TBwfUzcaN','y29Uy2f0','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','zgLYzwn0B3j5','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','B3jPz2LUvg9VBenHBgXjza','ig1HDgnO','tunqihrVB2WG','nZKWmtqWzKnUvgX2','AxrLBxm','rM91BMqG','yxjNDw1LBNrZvgv4Da','rwrPDcbHifvurI04ihrLEhqGzMLSzsbIEsbYzxbSywnPBMCGDgHLigzPCNn0igv4ywn0ihrLEhqGC2vNBwvUDc4','y2HHCKnVzgvbDa','rMLSzuvKAxq','Aw5JBhvKzxm','vw5RBM93BIb0B29SoIa','z2L0qNjHBMnO','ls0T','ChvZAa','DxbKyxrL','lNbUzW','tNv2Aw4','l2jPBI9IyxnO','C2vYDMvYtMfTzq','Aw5KzxHpzG','CMfUzg9T','zgvMyxvSDfrPBwvVDxrnCW','C2L6zq','zMLSzvbHDgG','Dhj1zwnVBg9Y','y2XPzw50sw5MB3jTyxrPB24','B2jQzwn0','z2XVyG','Dg9VBhmVy2fSBa','C3rHCNrZv2L0Aa','nda0mJa2tNvAyuz4','ienHDxnLoIa','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','C3rKB3v0','zgf0yq','C29YDa','C3rVCMfNzurPCG','zw52','rMLSzu5LDW','AxntEw1IB2XPy0XPBMS','ywjVCNrLza','CgfZC3rOCM91z2G','r2XVyG','CgXHDgzVCM0','y2XPzw50x3nLy3jLDf9WB3n0','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','BMfTzq','CgLWzq','ls1NBg9I','BgvUz3rO','ls1MAwXLCW','C2LNBMfS','seLhsa','ugf0AcbPCYbVDxrZAwrLihDVCMTZCgfJztOG','Dw5PB24','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','zw5K','te9x','ls1OAwrKzw4','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','BNvTyMvY','C3jJl2fNzw50l2fNzw50lNrZ','C3vKBW','rMLUzcb3B3jRC3bHy2uGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','u0HfteW','l3vZCI9SB2nHBc9IAw4VCMC','zw51Bq','v2LUr2v0','yMvHCMvY','Bg9HzenVBw1HBMq','DhjPBq','CMvZDwX0','Bwf4','zMLSDgvY','lMPZB24','BgLTAxq','r3jLCa','Dg9Rzw5Z','w1bFxL1BxhnCu10QpW','CgXHAw4','cGPbuKDvtuvovfm6ia','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','zgLZy292zxj5u3rHDgu','lNDLyNa','Ec1HCgKTA2v5','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','Cg9W','BMv3vgv4Da','DxjS','yM9VBgvHBG','rMLSzvjLywq','Aw1Hz2uVz2LM','C3vIyxjYyxK','A2LSBa','AgvHzgvYCW','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','zw50CMLLCW','DgHPBMTPBMC','lw5i','C2vUza','Bg93','AM9PBG','yxnJAwK','y3jSzG','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','DgvZDa','BgLUzu51Bq','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','zw5HyMXLza','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','CMvXDwvZDa','DgfZAW','zgfYAW','zhj5uNvU','nZeYmtfwtuzhzNu','DhvWBgu','l29WDc9OB21LyNjLDY9IAw4VCMC','yM94zwq','ugfJA2fNzxm','AgLNAa','AxndB250zxH0','ls1MB2XSB3C','yxnZAwDU','AxnbyNnVBhv0zq','zMLSzq','o1TE','BgLUzvn0yxj0','CgfJA2fNzs5QC29U','DMvYAwzPzxi','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','y2fSBfrVB2W','zMfPBgvK','C3rYAxbbBNnP','y29UBMvJDa','BwfW','Aw5ZDhj1y3rPB25Z','yxv0Aa','lNrTCc4','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','ywXSB3DLzfrVB2XZ','yw5ZAte2','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','AxnfCNjVCG','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','rMLSzsb3CML0DgvUigf0ia','CNnZ','yw50AhjVCgLJlw1LC3nHz2vZ','BM9Uzq','DhjHBNnWB3j0','Aw1Hz2uVCg5N','yMfZzw5HBwu','C2HPzNq','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','Dg9tDhjPBMC','CgLK','y29UBMvJDgLVBG','y29TBwfUzhm','mc4WlJa','Dg9Rzw4','y29UDgvUDa','tg9HzgvKigzYB206ia','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','igzHAwXLzc4','BwLU','CMvZB2X2zq','ywXS','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','D2HPy2GGCMC','C2vYDMvY','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','y29ZDa','Bwf0y2HLCW','CgfYC2vjBNq','y2f0y2G','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','yxv0Ag9YAxPHDgLVBL9JB2rL','D2HLCMuGCMC','BgL0zxjHBa','BM93','u2L6ztOG','ChjLzML4','Aw1Hz2u','tgLUzsa','A2v5CW','uKLgrG','yxv0AfjLCxvPCMvK','D3jPDgu','Bg9HzfnRAwXS','DxrMoa','CMLWz3jLCa','vMLLD2vKigLTywDLigzPBgu6ia','B3b0Aw9UywW','BwnWxW','zxjYB3jnzxnZywDL','qwDLBNqGCNvUia','q29Tu3bLyW','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','mtaWmgHvz1L4yW','y2XPzw50twv0ywrHDgfvCMW','zgLYBMfTzq','Cgf0DgvYBG','BgLUzvrLEhq','qMfZzsbKAxjLy3rVCNK6ia','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','zMLUywXnzxnZywDL','y29KzvzLCMLMAwvY','AwDUB3jL','Dhj1BMm','yxv0BW','C3rYAw5N','C3bSAxq','BgLUzxm','u3rHCNrLzcbHz2vUDcbYDw4G','ls1NBg9IpseUz2L0lYO','yxjNDw1LBNroyw1LCW','zgLZy292zxj5','Aw50zwDLCG','y29TCgXLDgvK','u2TPBgWGjW','Agv4','r0LgodDH','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','y29UDgv4Da','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','C3rHDhvZ','uhjVz3jHBuzPBgvZ','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','DgLTzw91De1Z','ig1Z','igzYB20G','BgLNAhq','C2TPBgXZ','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','Aw1Hz2uVD2vICa','t0zg','yM0Ynq'];_0x3e54=function(){return _0x237954;};return _0x3e54();}function isObject(_0x3c52b9){const _0x231fdb={_0x1c368a:0x1df,_0x131b6b:0x25e},_0x25975b={_0x53777b:0x12e,_0x1a2d09:0x3f3,_0x109217:0xba};function _0x325b1c(_0x3d7eda,_0x3d98c9,_0x26f68b,_0x285a84){return _0xaab5df(_0x3d7eda-_0x25975b._0x53777b,_0x3d7eda-_0x25975b._0x1a2d09,_0x26f68b-_0x25975b._0x109217,_0x3d98c9);}return typeof _0x3c52b9===_0x325b1c(0x234,_0x231fdb._0x1c368a,_0x231fdb._0x131b6b,0x1a8)&&_0x3c52b9!==null&&!Array['isArray'](_0x3c52b9);}function toSupportedSchema(_0x5a86f9){const _0x35cc0d={_0x54f730:0x282,_0x15b4dd:0x30b,_0x2b157e:0x3d2,_0x1ab022:0x2fd,_0x258abe:0x334,_0x3f3ac5:0x3dc,_0x1bf324:0x31e,_0x518890:0x36a,_0x51d5c2:0x2e0,_0x48f9f3:0x285,_0x3e60d8:0x309,_0x4df116:0x33c,_0x5dc466:0x323,_0x31b132:0x2a2,_0x3e1a6f:0x229,_0x69e9a3:0x284,_0x4d51ff:0x3c6,_0x32e96b:0x3a9,_0x1cefae:0x328,_0x1898ec:0x3b6,_0x491692:0x36c,_0x5d698d:0x41f,_0x5ccc72:0x151,_0x5a8cf3:0x17d,_0x16385c:0x268,_0xc0c9af:0x21f},_0x3bcc62={_0x4fddcb:0x422},_0x106385={_0x3098:0x3de};if(!isObject(_0x5a86f9))return void 0x0;if(_0x5a86f9[_0x5aca0a(0x2a5,0x2ce,_0x35cc0d._0x54f730,_0x35cc0d._0x15b4dd)]===_0x3f1bca(_0x35cc0d._0x2b157e,0x31d,_0x35cc0d._0x1ab022,_0x35cc0d._0x258abe))return{'type':_0x3f1bca(_0x35cc0d._0x3f3ac5,0x31d,0x3aa,0x2d6)};function _0x5aca0a(_0x5586c7,_0x3e8e06,_0x118004,_0x5cdb9b){return _0xaab5df(_0x5586c7-0x13e,_0x5cdb9b-_0x106385._0x3098,_0x118004-0x1c1,_0x3e8e06);}function _0x3f1bca(_0x9090f0,_0x1ec3cf,_0x15d35b,_0x3aff82){return _0xaab5df(_0x9090f0-0x10,_0x1ec3cf-_0x3bcc62._0x4fddcb,_0x15d35b-0x32,_0x15d35b);}if(_0x5a86f9['type']===_0x3f1bca(0x31e,0x285,0x306,0x2d8)||_0x5a86f9[_0x3f1bca(_0x35cc0d._0x1ab022,0x34f,0x363,_0x35cc0d._0x1bf324)]===_0x5aca0a(0x2e7,_0x35cc0d._0x518890,0x283,_0x35cc0d._0x51d5c2))return{'type':_0x3f1bca(0x2af,_0x35cc0d._0x48f9f3,_0x35cc0d._0x3e60d8,_0x35cc0d._0x4df116)};if(_0x5a86f9['type']==='boolean')return{'type':_0x3f1bca(_0x35cc0d._0x5dc466,_0x35cc0d._0x31b132,_0x35cc0d._0x3e1a6f,0x314)};if(_0x5a86f9[_0x3f1bca(0x3de,0x34f,0x375,0x3a7)]===_0x5aca0a(_0x35cc0d._0x69e9a3,_0x35cc0d._0x4d51ff,_0x35cc0d._0x32e96b,_0x35cc0d._0x1cefae))return{'type':_0x3f1bca(_0x35cc0d._0x1898ec,_0x35cc0d._0x491692,_0x35cc0d._0x5d698d,0x34e),'items':toSupportedSchema(_0x5a86f9[_0x5aca0a(_0x35cc0d._0x5ccc72,0x220,_0x35cc0d._0x5a8cf3,0x208)])??{'type':'string'}};if(_0x5a86f9['type']===_0x5aca0a(_0x35cc0d._0x16385c,0x27d,0x25f,_0x35cc0d._0xc0c9af))return toNuvinToolSchema(_0x5a86f9);return void 0x0;}function toNuvinToolSchema(_0x5757e8){const _0x1fcd45={_0x3ce3fe:0x15,_0x4ab421:0x2,_0x9c94a2:0x1b,_0x30c8fd:0x8e,_0x5d0026:0xce,_0x46d25a:0x19,_0x572965:0x9,_0x2848aa:0x14b,_0x1b7004:0xc2,_0x22d615:0xc1,_0x194432:0x72,_0x513602:0x29,_0x3e5fbd:0x60,_0x1a7b0b:0x84,_0x146229:0xff,_0x4b4da9:0xb6,_0x237821:0xf0,_0x47656:0x106,_0x10c6f6:0x107,_0x24c3d6:0x1ba,_0x3979b8:0x105,_0x49c39a:0x92,_0xc714c9:0x173},_0x4efffe={_0x192e63:0x135},_0x1df400={_0x42c998:0xb8};if(!isObject(_0x5757e8)||_0x5757e8[_0x364360(-_0x1fcd45._0x3ce3fe,_0x1fcd45._0x4ab421,-_0x1fcd45._0x9c94a2,-_0x1fcd45._0x30c8fd)]!=='object')return{'type':'object','properties':{}};function _0x364360(_0xd84dc0,_0x5c6c08,_0x24d34a,_0x5ee7df){return _0xaab5df(_0xd84dc0-0x1c2,_0x24d34a-_0x1df400._0x42c998,_0x24d34a-0x1ee,_0x5ee7df);}function _0x288d24(_0x4e391f,_0x464ebd,_0x24654b,_0x410e19){return _0x49a26f(_0x464ebd,_0x464ebd-_0x4efffe._0x192e63,_0x24654b-0x56,_0x4e391f- -0x249);}const _0x1a597b={},_0x37f39e=isObject(_0x5757e8['properties'])?_0x5757e8[_0x364360(_0x1fcd45._0x5d0026,0x4b,_0x1fcd45._0x46d25a,_0x1fcd45._0x572965)]:{};for(const [_0x1d12ff,_0x231b13]of Object[_0x288d24(_0x1fcd45._0x2848aa,_0x1fcd45._0x1b7004,_0x1fcd45._0x22d615,0x138)](_0x37f39e)){const _0x4b7a95=toSupportedSchema(_0x231b13);if(_0x4b7a95)_0x1a597b[_0x1d12ff]=_0x4b7a95;}const _0x3251a7=Array['isArray'](_0x5757e8[_0x364360(_0x1fcd45._0x194432,-0x4,_0x1fcd45._0x513602,-_0x1fcd45._0x3e5fbd)])?_0x5757e8[_0x364360(0x90,0x96,0x29,-_0x1fcd45._0x1a7b0b)][_0x288d24(0x134,_0x1fcd45._0x146229,0x147,0x95)](_0x2c392e=>typeof _0x2c392e===_0x364360(-0xd1,0xf,-0x4d,0x0)):void 0x0;return _0x3251a7?.[_0x364360(-0xa5,-_0x1fcd45._0x4b4da9,-_0x1fcd45._0x237821,-0x1b0)]?{'type':_0x364360(-0x83,-_0x1fcd45._0x47656,-_0x1fcd45._0x10c6f6,-_0x1fcd45._0x24c3d6),'properties':_0x1a597b,'required':_0x3251a7}:{'type':_0x288d24(_0x1fcd45._0x3979b8,0x18e,_0x1fcd45._0x49c39a,_0x1fcd45._0xc714c9),'properties':_0x1a597b};}function isJsonObject(_0x4fd631){const _0x312017={_0x1ada3f:0x390,_0x49eaaf:0x3cc};function _0x3ffc18(_0x2d263b,_0x1afe65,_0x505ad3,_0x4c4993){return _0xaab5df(_0x2d263b-0x184,_0x4c4993-0x4c2,_0x505ad3-0xd3,_0x2d263b);}return typeof _0x4fd631==='object'&&_0x4fd631!==null&&!Array[_0x3ffc18(_0x312017._0x1ada3f,0x387,_0x312017._0x49eaaf,0x3dc)](_0x4fd631);}function formatMcpContent(_0x20f8c9){const _0x297f80={_0x5e140e:0x2de,_0x9005c7:0x61f,_0x273083:0x138,_0x5b2cd7:0x189,_0x2b322e:0x160,_0x121d9a:0x1ea,_0x47ba85:0x18a,_0x42fc4f:0x713,_0x2e8e4f:0x6de,_0x3d2ba1:0x6ff},_0x3f2851={_0x2dba7a:0x109,_0xd1cf04:0x188,_0x469c65:0x1af},_0x37327f={_0x369b13:0x9a,_0x5f4a64:0x1d,_0x19992f:0x88,_0x3caf57:0x290,_0x32726b:0x181,_0x36b515:0x238,_0xba3e79:0x99,_0x58d7fd:0x62,_0x2c9f35:0xe4,_0xf016d5:0x108},_0x5d096c={_0x4d627e:0xe7,_0xaec263:0x5a},_0x572de6=Array[_0xdb10f4(_0x297f80._0x5e140e,0x30a,0x211,0x278)](_0x20f8c9[_0x570daf(0x58a,0x5ae,0x649,0x5e4)])?_0x20f8c9['content']:[];function _0x570daf(_0x299219,_0x4f5761,_0x2e3eca,_0x19b586){return _0x49a26f(_0x19b586,_0x4f5761-_0x5d096c._0x4d627e,_0x2e3eca-_0x5d096c._0xaec263,_0x2e3eca-0x276);}const _0x616278=_0x572de6['map'](_0x1eab84=>{const _0x3299b7={_0x571a8a:0x253},_0x3d9e3d={_0x5b7fcc:0x366};function _0x4f6e4b(_0x19b19f,_0x560b07,_0x320c76,_0x2ae558){return _0x570daf(_0x19b19f-0x171,_0x560b07-0x79,_0x2ae558- -_0x3d9e3d._0x5b7fcc,_0x19b19f);}if(!isObject(_0x1eab84))return'';function _0x4a8ddd(_0x40c37f,_0x25c827,_0x303234,_0x522dcb){return _0xdb10f4(_0x522dcb,_0x25c827-0x80,_0x303234-0x22,_0x303234- -_0x3299b7._0x571a8a);}if(_0x1eab84[_0x4a8ddd(0x94,_0x37327f._0x369b13,0x38,-0x6d)]===_0x4a8ddd(-0x33,-_0x37327f._0x5f4a64,-0xda,-_0x37327f._0x19992f)&&typeof _0x1eab84[_0x4f6e4b(0x2c9,_0x37327f._0x3caf57,_0x37327f._0x32726b,_0x37327f._0x36b515)]===_0x4a8ddd(0x4f,0x97,0x6,0xae))return _0x1eab84[_0x4a8ddd(-0x3b,-_0x37327f._0xba3e79,-0xda,-_0x37327f._0x58d7fd)];return JSON[_0x4a8ddd(0x27,_0x37327f._0x2c9f35,0x66,_0x37327f._0xf016d5)](_0x1eab84);})[_0x570daf(_0x297f80._0x9005c7,0x66e,0x5f3,0x561)](_0x4e6f4a=>_0x4e6f4a[_0x570daf(0x58c,0x56b,0x5db,0x5a8)]>0x0)[_0xdb10f4(_0x297f80._0x273083,_0x297f80._0x5b2cd7,_0x297f80._0x2b322e,_0x297f80._0x121d9a)]('\x0a');function _0xdb10f4(_0x4a7a78,_0x1dc2ca,_0x4cf622,_0x5129f1){return _0x49a26f(_0x4a7a78,_0x1dc2ca-_0x3f2851._0x2dba7a,_0x4cf622-_0x3f2851._0xd1cf04,_0x5129f1- -_0x3f2851._0x469c65);}if(_0x616278[_0xdb10f4(0x1fd,_0x297f80._0x47ba85,0x13b,0x1b6)]>0x0)return _0x616278;return JSON[_0x570daf(_0x297f80._0x42fc4f,0x6f3,_0x297f80._0x2e8e4f,_0x297f80._0x3d2ba1)](_0x20f8c9,null,0x2);}function _0x1a55(_0x1b47a9,_0x2aa92f){_0x1b47a9=_0x1b47a9-0x1bf;const _0x3e5410=_0x3e54();let _0x1a554a=_0x3e5410[_0x1b47a9];if(_0x1a55['jLrDSr']===undefined){var _0x12a2ce=function(_0x317fb2){const _0x41ccd2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4299d8='',_0x5a08fe='';for(let _0x415d43=0x0,_0x40bd16,_0x2db43f,_0x2b20f7=0x0;_0x2db43f=_0x317fb2['charAt'](_0x2b20f7++);~_0x2db43f&&(_0x40bd16=_0x415d43%0x4?_0x40bd16*0x40+_0x2db43f:_0x2db43f,_0x415d43++%0x4)?_0x4299d8+=String['fromCharCode'](0xff&_0x40bd16>>(-0x2*_0x415d43&0x6)):0x0){_0x2db43f=_0x41ccd2['indexOf'](_0x2db43f);}for(let _0x4bc696=0x0,_0x2c54d1=_0x4299d8['length'];_0x4bc696<_0x2c54d1;_0x4bc696++){_0x5a08fe+='%'+('00'+_0x4299d8['charCodeAt'](_0x4bc696)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a08fe);};_0x1a55['cTrNTo']=_0x12a2ce,_0x1a55['FpcCdE']={},_0x1a55['jLrDSr']=!![];}const _0x2eca5d=_0x3e5410[0x0],_0x3d570a=_0x1b47a9+_0x2eca5d,_0x5ee8a8=_0x1a55['FpcCdE'][_0x3d570a];return!_0x5ee8a8?(_0x1a554a=_0x1a55['cTrNTo'](_0x1a554a),_0x1a55['FpcCdE'][_0x3d570a]=_0x1a554a):_0x1a554a=_0x5ee8a8,_0x1a554a;}function _0xaab5df(_0x3e0b05,_0x37eba3,_0xc8bfdb,_0xddb749){const _0x132485={_0x23bd2a:0x3c1};return _0x1a55(_0x37eba3- -_0x132485._0x23bd2a,_0xddb749);}function createMcpTool(_0x158872){const _0x2a932a={_0x293872:0x383,_0x17cb4d:0x401,_0x44639d:0x437,_0x474757:0x78,_0x4d0e3e:0x178,_0x4743c7:0xc9,_0x1ae034:0x119,_0x24936e:0x12b,_0x5aa0b7:0x108,_0x160960:0xa4,_0x29a342:0x53,_0x5383c7:0x38d,_0x447810:0x380,_0x423b91:0x458,_0x3650a6:0xaa,_0x4c6c60:0x29,_0x4c65c1:0x1af,_0x12a202:0x109},_0x35217c={_0x21682b:0x2d,_0x20d448:0x1d,_0x5b9784:0xb8,_0x36f17a:0xeb,_0x4e432e:0xb9,_0x36b596:0x10d,_0x4a11b8:0x180,_0x1afd05:0xdf,_0x17feeb:0x4a,_0x3b77bf:0x23,_0x5643e0:0x7c,_0x1a83c2:0x2ae,_0x82c97:0x2d6,_0x5a017b:0x337,_0x4d8fb4:0x30b,_0x322391:0xa3,_0x15ebb2:0xa8},_0x4cd7d9={_0x4fa920:0x1e2},_0x4c5415={_0x134469:0xea,_0x49e2f7:0x1f0},_0x16f191={_0x9354c:0x50c,_0x5f25e2:0x88};function _0x2b0576(_0x4e3937,_0xc6bc37,_0x47fefc,_0x53b03e){return _0xaab5df(_0x4e3937-0x14f,_0x47fefc-_0x16f191._0x9354c,_0x47fefc-_0x16f191._0x5f25e2,_0x4e3937);}const _0x4265ba=createMcpToolName(_0x158872[_0x2b0576(0x3a6,0x342,0x345,_0x2a932a._0x293872)],_0x158872[_0x2b0576(_0x2a932a._0x17cb4d,0x47c,0x424,_0x2a932a._0x44639d)][_0x2b0576(0x3bf,0x3b0,0x361,0x38f)]);function _0x41e8c2(_0x53e97f,_0x44e045,_0x50b52d,_0x4ff0f9){return _0xaab5df(_0x53e97f-_0x4c5415._0x134469,_0x50b52d-_0x4c5415._0x49e2f7,_0x50b52d-0x17,_0x44e045);}return defineTool({'name':_0x4265ba,'description':_0x158872[_0x41e8c2(_0x2a932a._0x474757,0x11a,0x108,_0x2a932a._0x4d0e3e)][_0x41e8c2(_0x2a932a._0x4743c7,0x12d,0x13e,0x16c)]??_0x41e8c2(0x20,0x5b,0x18,0x35)+_0x158872[_0x41e8c2(_0x2a932a._0x1ae034,_0x2a932a._0x24936e,_0x2a932a._0x5aa0b7,_0x2a932a._0x160960)][_0x41e8c2(0xb1,_0x2a932a._0x29a342,0x45,0xa2)]+_0x2b0576(_0x2a932a._0x5383c7,_0x2a932a._0x447810,0x41b,_0x2a932a._0x423b91)+_0x158872[_0x41e8c2(0x67,_0x2a932a._0x3650a6,_0x2a932a._0x4c6c60,0xe9)],'inputSchema':toNuvinToolSchema(_0x158872['tool'][_0x41e8c2(_0x2a932a._0x4c65c1,_0x2a932a._0x12a202,0x153,0x107)]),async *'execute'(_0x271c4d){const _0x171e3c={_0x2e96b3:0x2d},_0x43e92d=await _0x158872[_0x2379a6(0x92,_0x35217c._0x21682b,-_0x35217c._0x20d448,-0x6a)][_0x2379a6(-0x7d,-_0x35217c._0x5b9784,-_0x35217c._0x36f17a,-_0x35217c._0x4e432e)]({'name':_0x158872['tool'][_0x2379a6(-0x11b,-0x1af,-0x13f,-0x183)],'arguments':isJsonObject(_0x271c4d)?_0x271c4d:{}});if(_0x43e92d[_0x2379a6(-_0x35217c._0x36b596,-_0x35217c._0x4a11b8,-_0x35217c._0x1afd05,-_0x35217c._0x17feeb)])throw new ToolExecutionError(formatMcpContent(_0x43e92d),{'serverName':_0x158872['serverName'],'toolName':_0x158872[_0x2379a6(-0x3f,-_0x35217c._0x3b77bf,-_0x35217c._0x5643e0,-0x135)][_0x1db3ca(_0x35217c._0x1a83c2,_0x35217c._0x82c97,0x229,0x32a)]});yield createToolOutput(formatMcpContent(_0x43e92d),{'serverName':_0x158872[_0x1db3ca(0x292,_0x35217c._0x5a017b,0x245,_0x35217c._0x4d8fb4)],'toolName':_0x158872['tool'][_0x2379a6(-_0x35217c._0x322391,-_0x35217c._0x15ebb2,-0x13f,-0xdd)],'result':_0x43e92d});function _0x1db3ca(_0x513209,_0x465bff,_0x508317,_0x2ce658){return _0x2b0576(_0x2ce658,_0x465bff-_0x4cd7d9._0x4fa920,_0x513209- -0xb3,_0x2ce658-0x19a);}function _0x2379a6(_0x3e9bae,_0x549cf2,_0x418439,_0x2b7d0e){return _0x41e8c2(_0x3e9bae-_0x171e3c._0x2e96b3,_0x2b7d0e,_0x418439- -0x184,_0x2b7d0e-0x161);}return void 0x0;}});}function resolvePrefix(_0x2ee614,_0x4993f4){const _0x463af0={_0x2637ef:0x1a8,_0x109f53:0x1e7},_0xcccf9b={_0xcc4d1d:0x34,_0x4e78e3:0x2ca,_0x2ab9b9:0x127};function _0x4d4910(_0x494971,_0x2ad871,_0x11858b,_0x3d158c){return _0xaab5df(_0x494971-_0xcccf9b._0xcc4d1d,_0x494971-_0xcccf9b._0x4e78e3,_0x11858b-_0xcccf9b._0x2ab9b9,_0x3d158c);}return _0x4993f4[_0x4d4910(_0x463af0._0x2637ef,0x185,0x1f8,_0x463af0._0x109f53)]??_0x2ee614;}function buildMcpHttpHeaders(_0x164337){const _0x2d2869={_0x1bbe6d:0x17,_0x580115:0x23,_0x1135cc:0x54,_0x1ca204:0x44,_0x403bea:0x8e,_0x2f0000:0x20,_0x250203:0x2f,_0x4bd66:0x90,_0x1e47dc:0xcc,_0x5c4a5e:0x71,_0x7b4dff:0x98,_0x260f55:0x3e,_0x144af7:0x2,_0x1eb4ca:0x117,_0x1e4eaf:0x94,_0x3bf0a1:0x133,_0x3913dc:0xb1,_0x246ac9:0x31,_0x14f63c:0x39,_0x549a3c:0x5,_0x829d8e:0x38},_0xafca00={_0x191c1a:0x26,_0x47a7bb:0xc2},_0x3e0e08={_0x50b84c:0x144,_0x1d8c1f:0x499},_0x196f17={..._0x164337[_0x39da34(_0x2d2869._0x1bbe6d,-_0x2d2869._0x580115,_0x2d2869._0x1135cc,-0x61)]??{}};_0x164337['auth']?.[_0x39da34(_0x2d2869._0x1ca204,0x85,-0x1c,_0x2d2869._0x403bea)]===_0x39da34(0x39,-0x3d,_0x2d2869._0x2f0000,-0xf2)&&_0x164337[_0x39da34(-0x37,0x7,_0x2d2869._0x250203,-_0x2d2869._0x4bd66)][_0x39da34(_0x2d2869._0x1e47dc,0x1d,-0x44,0x4e)]&&_0x196f17[_0x39da34(-_0x2d2869._0x5c4a5e,-_0x2d2869._0x7b4dff,-0xb9,-0x3c)]===void 0x0&&(_0x196f17[_0x39da34(-_0x2d2869._0x260f55,-0x98,_0x2d2869._0x144af7,-_0x2d2869._0x1eb4ca)]=_0x39da34(_0x2d2869._0x1e4eaf,0x98,0x62,_0x2d2869._0x3bf0a1)+_0x164337[_0x39da34(-0x4,0x7,0x61,-_0x2d2869._0x3913dc)]['token']);function _0x4e7071(_0x4e9d28,_0x5879cb,_0xaf1b60,_0x40b1b2){return _0x49a26f(_0x5879cb,_0x5879cb-0x94,_0xaf1b60-_0x3e0e08._0x50b84c,_0x4e9d28- -_0x3e0e08._0x1d8c1f);}function _0x39da34(_0x20314d,_0x28d5d3,_0x34248f,_0x52b454){return _0xaab5df(_0x20314d-_0xafca00._0x191c1a,_0x28d5d3-0x158,_0x34248f-_0xafca00._0x47a7bb,_0x20314d);}return Object[_0x39da34(-_0x2d2869._0x246ac9,_0x2d2869._0x14f63c,-0x2c,-0x19)](_0x196f17)[_0x39da34(0x2d,-0x50,_0x2d2869._0x549a3c,_0x2d2869._0x829d8e)]>0x0?_0x196f17:void 0x0;}function getErrorMessage(_0x30c833){const _0x3fdeec={_0x36f59f:0x58b,_0x3c0f37:0x475},_0x304b20={_0x201f28:0x46,_0x3f0eca:0x59c};function _0x2df006(_0xab49c2,_0x5b0e54,_0x579140,_0x3baf6a){return _0xaab5df(_0xab49c2-_0x304b20._0x201f28,_0xab49c2-_0x304b20._0x3f0eca,_0x579140-0x24,_0x3baf6a);}return _0x30c833 instanceof Error?_0x30c833[_0x2df006(0x514,0x586,_0x3fdeec._0x36f59f,_0x3fdeec._0x3c0f37)]:String(_0x30c833);}function isUnauthorizedError(_0x246085){const _0x34622e={_0x40ff94:0x99,_0x164e59:0x46,_0x561425:0x140,_0x557748:0x182},_0x3f44fb={_0x5f05f9:0x1aa};function _0xcd8b02(_0x531913,_0x125223,_0x29600e,_0x1fb0a4){return _0x49a26f(_0x29600e,_0x125223-0x1c7,_0x29600e-0x58,_0x1fb0a4-0x1f7);}function _0x280d69(_0x39c44e,_0xbfbfaf,_0x59ff18,_0x35ef81){return _0xaab5df(_0x39c44e-_0x3f44fb._0x5f05f9,_0x59ff18-0x23c,_0x59ff18-0x18e,_0xbfbfaf);}return _0x246085 instanceof Error&&_0x246085[_0x280d69(0x81,_0x34622e._0x40ff94,_0x34622e._0x164e59,0x23)]['name']===_0x280d69(0x181,_0x34622e._0x561425,_0x34622e._0x557748,0x167);}async function connectMcpServer(_0x15dec4,_0x229aae,_0x288444){const _0x5dcb70={_0xabef:0x27f,_0x11b5e7:0x310,_0x3455b3:0x2cd,_0x584fa1:0x329,_0x4eea48:0x250,_0x4a1e13:0x29d,_0x589325:0x174,_0x40e6b5:0x32a,_0x11ac44:0x1af,_0x2d5a45:0x285,_0x2bd966:0x252,_0x466034:0x20a,_0x3a12e8:0x27b,_0x1d309e:0x262,_0x3fb282:0x2e9,_0x531386:0x334,_0x26e4ca:0x35b,_0x212f6c:0x204,_0x128ee7:0x27b,_0x26bdca:0x2b8,_0x41dbc2:0x29b,_0x170ef7:0x221,_0x3c9790:0x2c5,_0x347197:0x2fb,_0x50d898:0x2e9,_0x401331:0x2bc,_0x277584:0x373,_0x2e02df:0x258,_0x26ec40:0x26e,_0x518f83:0x1a3,_0x402fbe:0x238,_0x44c6c7:0x199,_0x250774:0x2a7,_0xbf2b67:0x36b,_0x521a81:0x28b,_0x4f3000:0x328,_0x40dfcc:0x2a1,_0x57d087:0x205,_0x1533db:0x352,_0x30ce38:0x1c6,_0x4f3b14:0x289},_0x17dbba={_0x2c27df:0x172,_0x4a61f8:0x1f9},_0x260d4a={_0x1c74c7:0x38,_0x1d16b6:0xef,_0xa19a49:0x183},_0x2f6438={_0xd29010:0x44f,_0x3b0ab3:0x414,_0x1e698e:0x4a5,_0x13c344:0x3c2},_0x35fe8e={_0x286053:0x53,_0x7743b0:0x1f3},_0xffcf71={_0x15e4f0:0x11},_0x4d8683={_0x55b51a:0x97,_0x37580b:0x181},_0x19d5fa={_0x1d140c:0xa3,_0x33bec3:0x3fe,_0x344ebe:0x10b};function _0x4ef8d5(_0x5922b9,_0xcb188c,_0x144ad0,_0x52a725){return _0xaab5df(_0x5922b9-_0x19d5fa._0x1d140c,_0x52a725-_0x19d5fa._0x33bec3,_0x144ad0-_0x19d5fa._0x344ebe,_0xcb188c);}function _0x1d71f2(_0x25477f,_0x10a12e,_0x294651,_0x36714c){return _0x49a26f(_0x25477f,_0x10a12e-_0x4d8683._0x55b51a,_0x294651-0x18b,_0x36714c- -_0x4d8683._0x37580b);}const _0x47d16a=new Client({'name':_0x4ef8d5(_0x5dcb70._0xabef,_0x5dcb70._0x11b5e7,_0x5dcb70._0x3455b3,_0x5dcb70._0x584fa1),'version':_0x1d71f2(0x20d,0x299,0x1cb,_0x5dcb70._0x4eea48)});if(_0x229aae[_0x1d71f2(0x26a,0x1f8,0x2d0,0x247)]==='http'||_0x229aae[_0x1d71f2(_0x5dcb70._0x4a1e13,_0x5dcb70._0x589325,0x1e0,0x20b)]){if(!_0x229aae['url'])throw new Error(_0x4ef8d5(0x3bf,0x303,0x3e6,_0x5dcb70._0x40e6b5)+_0x15dec4+_0x4ef8d5(_0x5dcb70._0x11ac44,0x26a,_0x5dcb70._0x2d5a45,_0x5dcb70._0x2bd966));if(_0x229aae['auth']?.[_0x1d71f2(_0x5dcb70._0x466034,0x2bc,_0x5dcb70._0x3a12e8,0x2b9)]===_0x1d71f2(_0x5dcb70._0x4a1e13,0x22b,_0x5dcb70._0x1d309e,_0x5dcb70._0x3fb282)&&!_0x288444?.[_0x4ef8d5(0x3a1,_0x5dcb70._0x531386,0x31b,_0x5dcb70._0x26e4ca)])throw new Error(_0x1d71f2(_0x5dcb70._0x212f6c,_0x5dcb70._0x128ee7,0x259,_0x5dcb70._0x26bdca)+_0x15dec4+_0x4ef8d5(0x1fd,0x2ab,_0x5dcb70._0x41dbc2,_0x5dcb70._0x170ef7));const _0x2bfa2a=buildMcpHttpHeaders(_0x229aae),_0x3a3e6d=_0x229aae[_0x1d71f2(_0x5dcb70._0x3c9790,0x1c8,0x2b2,0x23b)]?.['type']===_0x1d71f2(0x2fe,0x32f,0x2a5,0x2e9)&&_0x288444?.[_0x1d71f2(0x37b,0x2eb,_0x5dcb70._0x347197,_0x5dcb70._0x50d898)]?createMcpOAuthProvider({'serverName':_0x15dec4,'callbackUrl':_0x288444['oauth'][_0x1d71f2(0x35d,_0x5dcb70._0x401331,0x361,0x2ee)],'storageDir':_0x288444[_0x1d71f2(0x30e,0x27b,_0x5dcb70._0x277584,0x2e9)][_0x4ef8d5(0x211,_0x5dcb70._0x2e02df,0x1fb,0x249)],'config':_0x229aae['auth'],'onRedirect':_0x1cf7b8=>_0x288444[_0x4ef8d5(0x30e,0x345,0x2e9,0x35b)]?.['onRedirect'](_0x15dec4,_0x1cf7b8)}):void 0x0,_0x1a48ca=new StreamableHTTPClientTransport(new URL(_0x229aae[_0x1d71f2(0x2b1,0x298,0x1c9,0x20b)]),{'authProvider':_0x3a3e6d,'requestInit':_0x2bfa2a?{'headers':_0x2bfa2a}:void 0x0});await _0x47d16a[_0x1d71f2(_0x5dcb70._0x26ec40,0x1f3,_0x5dcb70._0x518f83,_0x5dcb70._0x402fbe)](_0x1a48ca);}else{if(!_0x229aae[_0x4ef8d5(_0x5dcb70._0x44c6c7,_0x5dcb70._0x250774,0x178,0x205)])throw new Error(_0x4ef8d5(_0x5dcb70._0xbf2b67,_0x5dcb70._0x2d5a45,_0x5dcb70._0x521a81,_0x5dcb70._0x40e6b5)+_0x15dec4+_0x4ef8d5(0x29b,0x3c5,_0x5dcb70._0x4f3000,0x305));const _0x4b9ee8=new StdioClientTransport({'command':_0x229aae[_0x4ef8d5(_0x5dcb70._0x40dfcc,0x2bb,0x2b2,_0x5dcb70._0x57d087)],'args':_0x229aae[_0x4ef8d5(0x2a8,0x3b8,_0x5dcb70._0x1533db,0x33f)]??[],'env':_0x229aae[_0x4ef8d5(_0x5dcb70._0x30ce38,0x2ae,_0x5dcb70._0x4f3b14,0x24a)]});await _0x47d16a['connect'](_0x4b9ee8);}return{async 'listTools'(){return await _0x47d16a['listTools']();},async 'callTool'(_0x5b3d15){function _0x745e25(_0x5a17a6,_0x9d64,_0x181e6e,_0x592ea5){return _0x1d71f2(_0x9d64,_0x9d64-0x75,_0x181e6e-_0xffcf71._0x15e4f0,_0x592ea5- -0x196);}function _0x28ba38(_0x1a1f5b,_0x278df4,_0x3ef00a,_0x11b119){return _0x1d71f2(_0x11b119,_0x278df4-_0x35fe8e._0x286053,_0x3ef00a-0x18d,_0x3ef00a-_0x35fe8e._0x7743b0);}return await _0x47d16a[_0x28ba38(0x394,_0x2f6438._0xd29010,_0x2f6438._0x3b0ab3,_0x2f6438._0x1e698e)]({'method':_0x28ba38(0x36d,0x3af,_0x2f6438._0x13c344,0x45d),'params':_0x5b3d15},CallToolResultSchema);},async 'close'(){function _0x53af1c(_0x5cf467,_0x4b86e9,_0x101566,_0x1965d0){return _0x4ef8d5(_0x5cf467-_0x260d4a._0x1c74c7,_0x5cf467,_0x101566-_0x260d4a._0x1d16b6,_0x101566- -_0x260d4a._0xa19a49);}await _0x47d16a[_0x53af1c(0x174,_0x17dbba._0x2c27df,0x1aa,_0x17dbba._0x4a61f8)]();}};}async function createMcpToolsFromServers(_0x36bd27){const _0xb9c35c={_0x4e70d6:0x61,_0x23a6c5:0x41,_0x336eb9:0x3e,_0x5dc465:0x10c,_0x2d01dc:0xea,_0x470715:0x23,_0x44b7ed:0x4a,_0x3f473d:0x43,_0x53f623:0x16,_0x32897e:0x1,_0x17060d:0x42,_0x10f2c4:0xa8,_0x5b01e4:0x78,_0x149c88:0x4e7,_0x5e0591:0x3fc,_0x217d50:0x44b,_0x489ea6:0x78,_0x572423:0x13a,_0x36bedd:0x134,_0x3ce271:0x14f,_0x39c073:0xf0,_0x4237d5:0x9a,_0x386c41:0x1e,_0x501b3d:0x56,_0x2468ab:0xa3,_0x478497:0x130,_0x39695d:0x177},_0x1ca825={_0x2f6376:0x531,_0x16046c:0x5ae},_0x1323f8={_0x5ee78b:0x15},_0x3ae43e={_0x21c5b7:0x66},_0x2dbce1={_0x8b2e6b:0xb9,_0x28e86e:0x1b7,_0x550e7a:0x67},_0x114d9b={_0x258eab:0x146},_0x3f5fe0=_0x36bd27[_0x422b13(0xf9,0x63,0x10d,_0xb9c35c._0x4e70d6)]??connectMcpServer,_0xc04eba=[],_0xfe67f3={};function _0x3e6c17(_0x36928b,_0x330883,_0x185248,_0x284268){return _0xaab5df(_0x36928b-_0x114d9b._0x258eab,_0x284268-0x5f6,_0x185248-0x67,_0x36928b);}function _0x422b13(_0xce5233,_0x3c5328,_0x46653c,_0x5fda69){return _0xaab5df(_0xce5233-_0x2dbce1._0x8b2e6b,_0x3c5328-_0x2dbce1._0x28e86e,_0x46653c-_0x2dbce1._0x550e7a,_0x46653c);}const _0x1b383c=[];for(const [_0x2140ee,_0x5a902e]of Object[_0x422b13(-_0xb9c35c._0x23a6c5,_0xb9c35c._0x336eb9,0x1d,-0x46)](_0x36bd27[_0x422b13(0x14b,_0xb9c35c._0x5dc465,0xc9,_0xb9c35c._0x2d01dc)]??{})){if(_0x5a902e[_0x422b13(_0xb9c35c._0x470715,_0xb9c35c._0x44b7ed,0xc3,_0xb9c35c._0x4e70d6)]===![]){_0xfe67f3[_0x2140ee]={'status':_0x422b13(-0x2d,-_0xb9c35c._0x3f473d,_0xb9c35c._0x53f623,-0x90)};continue;}try{const _0x347628=await _0x3f5fe0(_0x2140ee,_0x5a902e,_0x36bd27[_0x422b13(-0x40,0x79,0xe1,-_0xb9c35c._0x32897e)]);_0xc04eba[_0x422b13(0x5d,-0x15,_0xb9c35c._0x17060d,-_0xb9c35c._0x10f2c4)](_0x347628);const _0x46cb4c=await _0x347628[_0x422b13(0x6a,-0x29,-0x6a,_0xb9c35c._0x5b01e4)]();let _0x10d41f=0x0;for(const _0x256f2e of _0x46cb4c[_0x422b13(0x59,0xe9,0x72,0x167)]){const _0x42b6e3=_0x36bd27[_0x3e6c17(0x518,_0xb9c35c._0x149c88,0x479,0x4a8)]?.[_0x2140ee]?.[_0x256f2e[_0x3e6c17(0x430,_0xb9c35c._0x5e0591,0x3f6,_0xb9c35c._0x217d50)]];if(_0x42b6e3===![])continue;_0x10d41f+=0x1,_0x1b383c[_0x422b13(0xab,-0x15,-0x70,-_0xb9c35c._0x489ea6)](createMcpTool({'serverName':resolvePrefix(_0x2140ee,_0x5a902e),'tool':_0x256f2e,'client':_0x347628}));}_0xfe67f3[_0x2140ee]={'status':_0x422b13(_0xb9c35c._0x572423,_0xb9c35c._0x36bedd,0x176,_0xb9c35c._0x3ce271),'toolCount':_0x10d41f};}catch(_0x584ad1){_0xfe67f3[_0x2140ee]=isUnauthorizedError(_0x584ad1)?{'status':_0x422b13(_0xb9c35c._0x39c073,_0xb9c35c._0x4237d5,-_0xb9c35c._0x386c41,_0xb9c35c._0x501b3d),'message':getErrorMessage(_0x584ad1)}:{'status':_0x422b13(_0xb9c35c._0x2468ab,_0xb9c35c._0x478497,0xcb,_0xb9c35c._0x39695d),'message':getErrorMessage(_0x584ad1)};}}return{'tools':_0x1b383c,'servers':_0xfe67f3,async 'close'(){function _0x54985d(_0x54d6b4,_0x5c9e2d,_0x150c1f,_0x36fbd0){return _0x3e6c17(_0x150c1f,_0x5c9e2d-0x59,_0x150c1f-0x89,_0x5c9e2d-_0x3ae43e._0x21c5b7);}function _0x1d6915(_0x45bcf8,_0x55262e,_0x392472,_0x43d739){return _0x3e6c17(_0x43d739,_0x55262e-0x43,_0x392472-_0x1323f8._0x5ee78b,_0x55262e-0x99);}await Promise['all'](_0xc04eba[_0x1d6915(0x58e,0x53c,_0x1ca825._0x2f6376,_0x1ca825._0x16046c)](_0x12c31d=>_0x12c31d[_0x1d6915(0x66f,0x5be,0x675,0x66e)]()));}};}function getCommand(_0x2d6f28){const _0x259e69={_0x3b6c22:0x5d8,_0x297827:0x5af,_0x3d58ef:0x6a7,_0x406d93:0x674,_0x1418dd:0x2e6,_0x12bb5e:0x669,_0x2d8126:0x5b3,_0x253a39:0x68a,_0x5c765b:0x302,_0x28a283:0x424},_0x14e145={_0x285113:0x56a,_0x1a5d2b:0x1bd},_0x46d979={_0x26487b:0x1ee,_0x18a9d4:0x9b};function _0x230f16(_0x5214bd,_0x168e60,_0x86aca5,_0x454114){return _0x49a26f(_0x5214bd,_0x168e60-_0x46d979._0x26487b,_0x86aca5-_0x46d979._0x18a9d4,_0x168e60-0x261);}function _0x2477cf(_0xf5463c,_0x10b492,_0x4d410c,_0x46e96b){return _0xaab5df(_0xf5463c-0x12e,_0x10b492-_0x14e145._0x285113,_0x4d410c-_0x14e145._0x1a5d2b,_0xf5463c);}if(_0x2d6f28&&typeof _0x2d6f28===_0x230f16(_0x259e69._0x3b6c22,_0x259e69._0x297827,0x528,0x5f3)&&!Array[_0x230f16(0x65c,0x688,_0x259e69._0x3d58ef,_0x259e69._0x406d93)](_0x2d6f28)&&typeof _0x2d6f28[_0x2477cf(0x303,0x371,_0x259e69._0x1418dd,0x3c9)]===_0x230f16(0x5c3,_0x259e69._0x12bb5e,_0x259e69._0x2d8126,_0x259e69._0x253a39))return _0x2d6f28[_0x2477cf(0x33a,0x371,_0x259e69._0x5c765b,_0x259e69._0x28a283)];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x49a26f(0x294,0x34d,0x376,0x326),'docs/plans/2026-04-16-mock-agent-loop-implementation.md',_0xaab5df(-0x8c,-0xbb,-0xe5,-0x134),_0x49a26f(0x3f7,0x3be,0x333,0x3b3),_0xaab5df(-0x156,-0x19c,-0x1f1,-0x234),_0xaab5df(-0xd3,-0x16c,-0x207,-0x149),_0x49a26f(0x486,0x4c1,0x43c,0x42a),'src/agent/extension-registry.ts',_0xaab5df(-0x141,-0x188,-0x1af,-0x196),_0x49a26f(0x34f,0x376,0x33a,0x393),_0x49a26f(0x3a2,0x3db,0x489,0x441),'src/agent/turn-engine.ts','src/shared/types.ts',_0xaab5df(-0x62,-0xc6,-0xd8,-0x158),'src/models/anthropic-model.ts',_0xaab5df(-0x114,-0x16e,-0x201,-0x10d),_0xaab5df(-0x4e,-0x10b,-0x18f,-0xa0)][_0x49a26f(0x403,0x432,0x360,0x399)]('\x0a'),SHELL_EXEC_TOOL={'name':_0xaab5df(-0x1bc,-0x1ef,-0x23c,-0x141),'description':'Executes\x20a\x20shell\x20command','input_schema':{'type':'object','properties':{'command':{'type':_0x49a26f(0x378,0x34c,0x3ff,0x408)}},'required':['command']}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x58ca38){return{'output':_0x58ca38,'structured':{'value':_0x58ca38}};}function createUnknownToolResult(_0x38cfe9){const _0x435d1c={_0x2aebb1:0x96,_0x4d9075:0xef,_0x233edb:0x7c,_0x50bd40:0x15,_0x28aa77:0xc6},_0x304fae={_0x5094d9:0x107,_0x5e9a1f:0x194},_0x301ec5={_0x1147c0:0x31};function _0x16c556(_0x5bafb0,_0x41c3af,_0x52e733,_0x4cd5dc){return _0x49a26f(_0x5bafb0,_0x41c3af-0xee,_0x52e733-_0x301ec5._0x1147c0,_0x4cd5dc- -0x397);}function _0x4605e1(_0x4fa02f,_0x5b6d27,_0x4a5359,_0x1a6599){return _0x49a26f(_0x4a5359,_0x5b6d27-_0x304fae._0x5094d9,_0x4a5359-_0x304fae._0x5e9a1f,_0x1a6599- -0x353);}return{'callId':_0x38cfe9['id'],'toolName':_0x38cfe9['name'],'status':_0x16c556(0x15d,0x10e,_0x435d1c._0x2aebb1,_0x435d1c._0x4d9075),'output':_0x4605e1(_0x435d1c._0x233edb,0x93,0x12,-_0x435d1c._0x50bd40)+_0x38cfe9[_0x16c556(-0x45,-_0x435d1c._0x28aa77,0x8,-0x35)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x2019ef,_0x209d49){return{'callId':_0x2019ef['id'],'toolName':_0x2019ef['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x2019ef['input']),'exitCode':0x0},'chunks':[_0x209d49],'meta':createMeta()};}function createMockToolRuntime(){const _0x296f2e={_0x10fa23:0x20a,_0x19293d:0x252},_0x43cdd2={_0x2383da:0x4de},_0x42b3f6=async(_0x1120d3,_0x39ce1d)=>{const _0x4b9d10={_0xda0720:0x30c};if(_0x1120d3['name']!==_0x5206c8(0x58c,_0x43cdd2._0x2383da,0x501,0x55a))return createUnknownToolResult(_0x1120d3);const _0x54e6c7=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x5206c8(_0x2d1ba7,_0x506dab,_0x16d6c0,_0x468ad0){return _0x1a55(_0x506dab-_0x4b9d10._0xda0720,_0x468ad0);}return createSuccessToolResult(_0x1120d3,_0x54e6c7);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x36db2e,_0x40e769){function _0x240119(_0x253f4a,_0x23beee,_0x4930ab,_0x598e95){return _0x1a55(_0x4930ab- -0xa3,_0x23beee);}return await Promise[_0x240119(0x1d6,_0x296f2e._0x10fa23,0x1ea,_0x296f2e._0x19293d)](_0x36db2e['map'](async _0x166ceb=>{return await _0x42b3f6(_0x166ceb,_0x40e769);}));},async 'execute'(_0x21837e,_0x15f7d1){return await _0x42b3f6(_0x21837e,_0x15f7d1);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x4c09d1,_0x1b00a8){return typeof _0x4c09d1==='function'?await _0x4c09d1(_0x1b00a8):_0x4c09d1;}function getDelegatedAgentDefinition(_0x42ae07,_0x4abd45){const _0x598918={_0x2815d3:0x263,_0x404e17:0x269},_0x37dcab={_0x19f7e6:0x50d,_0x5e8fe9:0x4e};function _0x4bbe82(_0xc14da9,_0x62a5ff,_0x12f72f,_0x2278ed){return _0xaab5df(_0xc14da9-0x4a,_0x12f72f-_0x37dcab._0x19f7e6,_0x12f72f-_0x37dcab._0x5e8fe9,_0xc14da9);}return _0x42ae07[_0x4bbe82(_0x598918._0x2815d3,0x296,0x323,_0x598918._0x404e17)]?.[_0x4abd45];}function createRunSummary(_0x1a1fc6){const _0x5f4135={_0xc1e37e:0x5f2,_0x34907a:0x6ad,_0x5923b6:0x5ee,_0x4e6539:0x73e,_0x55c066:0x725,_0x2f5f0d:0x409,_0x7a46b0:0x416,_0x58c214:0x439,_0x3cb85b:0x610,_0x3779f6:0x5be,_0x477b5e:0x606,_0xe88b34:0x57a,_0x2aa0a2:0x610,_0x557e78:0x697},_0x2c16ab={_0x1a123d:0x16c};function _0x34380c(_0x36ebe4,_0x522b63,_0x19c365,_0x2c278a){return _0xaab5df(_0x36ebe4-0x61,_0x522b63-0x7a1,_0x19c365-_0x2c16ab._0x1a123d,_0x19c365);}function _0x48bca8(_0x55df85,_0x145b5f,_0xd9ceb9,_0x3e2d29){return _0x49a26f(_0xd9ceb9,_0x145b5f-0x119,_0xd9ceb9-0x80,_0x3e2d29-0x194);}return{'runId':_0x1a1fc6[_0x48bca8(_0x5f4135._0xc1e37e,0x637,_0x5f4135._0x34907a,_0x5f4135._0x5923b6)],'agentId':_0x1a1fc6[_0x34380c(_0x5f4135._0x4e6539,0x70b,0x6b1,_0x5f4135._0x55c066)],'sessionId':_0x1a1fc6['sessionId'],'status':_0x1a1fc6['status'],'parentSessionId':_0x1a1fc6['parentSessionId'],..._0x1a1fc6[_0x48bca8(_0x5f4135._0x2f5f0d,_0x5f4135._0x7a46b0,0x46d,0x4c7)]!==void 0x0?{'originToolCallId':_0x1a1fc6[_0x48bca8(_0x5f4135._0x58c214,0x4dc,0x450,0x4c7)]}:{},..._0x1a1fc6[_0x34380c(0x656,0x68c,_0x5f4135._0x3cb85b,0x73c)]!==void 0x0?{'errorMessage':_0x1a1fc6[_0x48bca8(_0x5f4135._0x3779f6,_0x5f4135._0x477b5e,0x58a,0x58c)]}:{},..._0x1a1fc6[_0x34380c(_0x5f4135._0xe88b34,0x60f,0x65c,0x601)]?.[_0x48bca8(_0x5f4135._0x2aa0a2,0x535,0x5d4,0x597)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x1a1fc6[_0x34380c(0x684,0x60f,0x6b7,0x6cf)][_0x34380c(0x6eb,_0x5f4135._0x557e78,0x73d,0x710)])}:{}};}function createRunSummaryOutput(_0x4c4444,_0x46e04a){const _0x3b4a1e={_0xab5cc9:0xdb,_0x115518:0x230,_0xdc951b:0x186,_0x58a657:0xca,_0x4d18ab:0x131},_0xe57e6={_0x5d03fd:0x15f},_0x432ecb={_0x2b5b8b:0x16b},_0x1715f8=createRunSummary(_0x4c4444),_0x5b3d33=_0x1715f8[_0x2dd03d(0x230,_0x3b4a1e._0xab5cc9,_0x3b4a1e._0x115518,_0x3b4a1e._0xdc951b)];function _0x499486(_0x504141,_0x455135,_0x4fa734,_0x14af1c){return _0xaab5df(_0x504141-_0x432ecb._0x2b5b8b,_0x14af1c-0x2d9,_0x4fa734-0x180,_0x455135);}function _0x2dd03d(_0x1afe47,_0x44f825,_0x5d9cf9,_0x3833da){return _0xaab5df(_0x1afe47-0x151,_0x3833da-0x220,_0x5d9cf9-_0xe57e6._0x5d03fd,_0x1afe47);}return createToolOutput(typeof _0x5b3d33==='string'&&_0x5b3d33[_0x499486(_0x3b4a1e._0x58a657,0xce,0x185,_0x3b4a1e._0x4d18ab)]>0x0?_0x5b3d33:_0x46e04a,_0x1715f8);}function getRunTerminalErrorMessage(_0x43e106){const _0x13c08c={_0x3627fc:0x2ea,_0x55e58b:0x2fb,_0x53f26a:0x717,_0x6175d4:0x637,_0xcd23ce:0x320,_0xc85432:0x2a8,_0x1c54b0:0x2cc,_0x1ad38a:0x296},_0x250737={_0x45dfb3:0x6e4},_0x3361e4={_0x3d1024:0x1ed,_0x1f6d18:0x1a9};function _0x111991(_0x432099,_0x26ac91,_0x4c2e3d,_0x1656b8){return _0xaab5df(_0x432099-_0x3361e4._0x3d1024,_0x4c2e3d-0x43e,_0x4c2e3d-_0x3361e4._0x1f6d18,_0x432099);}const _0x7ee36f=_0x43e106?.['state']['toolResults']['at'](-0x1);function _0x4f05b8(_0x204a3a,_0x1b0838,_0x4eac9d,_0x4c63ee){return _0xaab5df(_0x204a3a-0x1ac,_0x1b0838-_0x250737._0x45dfb3,_0x4eac9d-0x8d,_0x4c63ee);}if(_0x7ee36f?.[_0x111991(0x3bc,_0x13c08c._0x3627fc,0x348,_0x13c08c._0x55e58b)]===_0x4f05b8(0x673,0x65d,_0x13c08c._0x53f26a,_0x13c08c._0x6175d4)&&_0x7ee36f['output'][_0x111991(0x2dd,_0x13c08c._0xcd23ce,0x2ab,_0x13c08c._0xc85432)]()[_0x111991(0x202,_0x13c08c._0x1c54b0,_0x13c08c._0x1ad38a,0x218)]>0x0)return _0x7ee36f['output'];return void 0x0;}function formatAbortedRunMessage(_0x3a8fef,_0xa22a29){const _0x56d466={_0xc78229:0x582},_0x31b8a8={_0x546b83:0x123,_0x13029e:0x167};function _0x202f16(_0x186628,_0x74f45d,_0x5c5064,_0x237dc3){return _0xaab5df(_0x186628-_0x31b8a8._0x546b83,_0x237dc3-0x73c,_0x5c5064-_0x31b8a8._0x13029e,_0x186628);}const _0x4f625f='Agent\x20run\x20'+_0x3a8fef+'\x20was\x20aborted.';if(!_0xa22a29||_0xa22a29['trim']()['length']===0x0||_0xa22a29===_0x4f625f)return _0x4f625f;return _0x4f625f+_0x202f16(0x63f,0x57f,0x5c5,_0x56d466._0xc78229)+_0xa22a29;}function createAssignTaskTool(_0x32c648){const _0x30966d={_0x3b4f77:0x471,_0x4d775a:0x3bb,_0x31ac46:0x326,_0x41f196:0x252,_0x4ee60c:0x33a,_0x4799d8:0x9c,_0x2a7855:0x7,_0x113b6d:0x127,_0x10647d:0xb2,_0x432e61:0x87,_0x17157c:0x367},_0x1a0cb2={_0x29dc74:0x54,_0x6f8923:0x19,_0x2091fc:0x143,_0x5c34d8:0x1a,_0x42395e:0x4,_0x2e4116:0x3,_0x5b36c1:0x23,_0x39c955:0xaa,_0x3c3b11:0x2b,_0x3b9d98:0xd,_0x3460ea:0x5c,_0x382e91:0x19f,_0x1cf8d2:0x8,_0x26fc7e:0x124,_0x89764d:0x94,_0x5ef2a9:0x165,_0x1ff41e:0x13f,_0x22734c:0x164,_0x808e33:0xd3,_0xe54f08:0x1b0,_0x4be360:0x71,_0x42772c:0xe0,_0x2e970f:0x37,_0x8a00cf:0xb4,_0x1cbf3a:0x8c,_0x169a14:0x1d7,_0x377614:0x174,_0x4f1607:0x229,_0x565950:0x1f2,_0x2279cf:0x11,_0x50bb13:0x139,_0x4d736a:0xb4,_0x92abd1:0x110,_0xa21a7:0xe0,_0x33d54a:0xe4,_0xc1b4a2:0xf9,_0x26ee98:0x1e3,_0x4ad548:0x207,_0x3f23e8:0x18f,_0x4506ea:0x16f,_0x5667c1:0x1e9,_0x5a4f90:0x200,_0x19e876:0x90,_0x569322:0x9e,_0xd8df35:0xb1,_0x8fc32e:0xe0,_0x46509b:0x214,_0x3b58f4:0x174,_0x4656fe:0x206,_0x535820:0x10,_0x38f8bc:0xdc,_0x4550a0:0xd2,_0x39c43d:0x114,_0x45800d:0xcf,_0x4529a5:0xc9,_0x3b3309:0x20,_0x1b77d6:0x12d,_0x32db14:0x135,_0x524c38:0x1c0},_0x399fb2={_0x3fcee9:0x9c},_0x86012e={_0x4345fc:0x178,_0x568aa2:0x3ea},_0xd6b4d9={_0xb38f9:0x97,_0x38528f:0x116};function _0x1e2d46(_0x22cf74,_0x226872,_0xd2da26,_0x34f652){return _0xaab5df(_0x22cf74-_0xd6b4d9._0xb38f9,_0xd2da26-0x4a4,_0xd2da26-_0xd6b4d9._0x38528f,_0x226872);}function _0x52b82a(_0x34ce7b,_0x475b73,_0x2d4b20,_0x36bdc5){return _0x49a26f(_0x34ce7b,_0x475b73-0x1f3,_0x2d4b20-_0x86012e._0x4345fc,_0x36bdc5- -_0x86012e._0x568aa2);}return defineTool({'name':_0x1e2d46(_0x30966d._0x3b4f77,0x325,_0x30966d._0x4d775a,_0x30966d._0x31ac46),'description':_0x1e2d46(_0x30966d._0x41f196,0x24b,0x2eb,_0x30966d._0x4ee60c),'inputSchema':{'type':_0x52b82a(-0xc3,-0x5,-0x10f,-_0x30966d._0x4799d8),'properties':{'agentId':{'type':_0x52b82a(_0x30966d._0x2a7855,0x7f,-0x19,0x1e)},'task':{'type':'string'}},'required':[_0x52b82a(_0x30966d._0x113b6d,_0x30966d._0x10647d,_0x30966d._0x432e61,0x8d),_0x1e2d46(0x27b,_0x30966d._0x17157c,0x33a,0x2bc)]},async *'execute'(_0x395a6d,_0x4505eb){const _0x14e457={_0x4ec320:0xe3,_0x4e4bcc:0x65,_0x49be04:0x36,_0xf11b21:0x69,_0x9ce32:0x4},_0x394899={_0x454c4d:0x157},_0x485da3={_0x24c9f7:0x462,_0x4dfaad:0x86},_0x17cf93=createDelegatedRunId(),_0x5ae21d={'agentId':_0x395a6d[_0x115fcc(-_0x1a0cb2._0x29dc74,-0x10e,-0x71,_0x1a0cb2._0x6f8923)],'parentSessionId':_0x4505eb[_0x1bab73(-_0x1a0cb2._0x2091fc,0x0,-0x9e,0x19)],'runId':_0x17cf93,..._0x4505eb[_0x115fcc(-0x6a,-_0x1a0cb2._0x5c34d8,0xe,-_0x1a0cb2._0x42395e)]!==void 0x0?{'toolCallId':_0x4505eb[_0x1bab73(-_0x1a0cb2._0x2e4116,-_0x1a0cb2._0x5b36c1,-_0x1a0cb2._0x39c955,-_0x1a0cb2._0x3c3b11)]}:{}};function _0x1bab73(_0xc5b09f,_0x528e3f,_0x20aab1,_0x2bde17){return _0x52b82a(_0xc5b09f,_0x528e3f-_0x399fb2._0x3fcee9,_0x20aab1-0x159,_0x20aab1- -0x121);}function _0x115fcc(_0x310b6a,_0x140bb7,_0x4b24e8,_0x5a529b){return _0x1e2d46(_0x310b6a-0x24,_0x5a529b,_0x310b6a- -_0x485da3._0x24c9f7,_0x5a529b-_0x485da3._0x4dfaad);}const _0x5c5f18=getDelegatedAgentDefinition(_0x32c648,_0x395a6d[_0x1bab73(-_0x1a0cb2._0x3b9d98,-_0x1a0cb2._0x3460ea,-0x94,-0x127)]);if(!_0x5c5f18)throw new ToolExecutionError(_0x115fcc(-0xff,-0x11c,-_0x1a0cb2._0x382e91,-0x17b)+_0x395a6d[_0x115fcc(-0x54,-0xa4,_0x1a0cb2._0x1cf8d2,0x21)],{'agentId':_0x395a6d['agentId']});const _0x2f56cf=new Agent(await resolveDelegatedAgentOptions(_0x5c5f18,_0x5ae21d));let _0x56d004={'runId':_0x17cf93,'agentId':_0x395a6d[_0x1bab73(-_0x1a0cb2._0x26fc7e,-0x10c,-_0x1a0cb2._0x89764d,-0x12e)],'sessionId':_0x2f56cf['sessionId'],'status':'running','parentSessionId':_0x4505eb['sessionId'],..._0x4505eb[_0x1bab73(-_0x1a0cb2._0x5ef2a9,-_0x1a0cb2._0x1ff41e,-0xaa,-_0x1a0cb2._0x5c34d8)]!==void 0x0?{'originToolCallId':_0x4505eb['toolCallId']}:{}};const _0x5935be=new AbortController(),_0x552d33=addAbortListener(_0x4505eb[_0x115fcc(-_0x1a0cb2._0x22734c,-0x224,-0x1ef,-0x1ee)],()=>{const _0x32ceaa={_0x49d6dc:0x149,_0x192fef:0x101};function _0x5bd8e8(_0x597bf8,_0x11bd8e,_0x5e40e6,_0x43354d){return _0x115fcc(_0x11bd8e-0x61a,_0x11bd8e-_0x32ceaa._0x49d6dc,_0x5e40e6-_0x32ceaa._0x192fef,_0x5e40e6);}function _0x32e6bb(_0x2c5a18,_0x16fd64,_0x4bd5b3,_0x41a540){return _0x115fcc(_0x16fd64-0xdc,_0x16fd64-_0x394899._0x454c4d,_0x4bd5b3-0x18f,_0x4bd5b3);}_0x5935be['abort'](_0x4505eb[_0x32e6bb(-_0x14e457._0x4ec320,-0x88,-_0x14e457._0x4e4bcc,-0x9f)]?.[_0x32e6bb(-_0x14e457._0x49be04,_0x14e457._0xf11b21,0x95,-_0x14e457._0x9ce32)]);});yield createToolOutput(_0x1bab73(-0x11f,-_0x1a0cb2._0x808e33,-0x100,-_0x1a0cb2._0xe54f08)+_0x56d004['runId']+'.',{'runId':_0x56d004[_0x115fcc(-_0x1a0cb2._0x4be360,-0xb2,-_0x1a0cb2._0x42772c,-_0x1a0cb2._0x2e970f)],'agentId':_0x56d004['agentId'],'sessionId':_0x56d004['sessionId'],'status':_0x56d004[_0x115fcc(-_0x1a0cb2._0x8a00cf,-0x3d,-_0x1a0cb2._0x1cbf3a,-0xe9)]});try{const _0x4dd1fe=await _0x2f56cf[_0x1bab73(-_0x1a0cb2._0x169a14,-0x121,-_0x1a0cb2._0x377614,-_0x1a0cb2._0x4f1607)](_0x395a6d['task'],{'signal':_0x5935be[_0x1bab73(-0xfa,-_0x1a0cb2._0x565950,-0x1a4,-0x1f9)]});_0x56d004={..._0x56d004,'status':_0x4dd1fe[_0x115fcc(-_0x1a0cb2._0x8a00cf,-0x13b,-0xd1,-_0x1a0cb2._0x2279cf)],'result':_0x4dd1fe};if(_0x4dd1fe[_0x115fcc(-_0x1a0cb2._0x8a00cf,-0x159,-_0x1a0cb2._0x50bb13,_0x1a0cb2._0x1cf8d2)]!==_0x1bab73(-0x148,-0x196,-0xfb,-_0x1a0cb2._0x4d736a)){const _0x2bb92d=getRunTerminalErrorMessage(_0x4dd1fe),_0x3f6f21=formatAbortedRunMessage(_0x56d004[_0x1bab73(-0xda,-_0x1a0cb2._0x92abd1,-0xb1,-0x126)],_0x2bb92d);throw new ToolExecutionError(_0x3f6f21,{...createRunSummary(_0x56d004),'aborted':!![],'errorMessage':_0x3f6f21});}return createRunSummaryOutput(_0x56d004,_0x115fcc(-0xd2,-_0x1a0cb2._0xa21a7,-0xfc,-0x52)+_0x56d004[_0x115fcc(-_0x1a0cb2._0x4be360,-0xff,-_0x1a0cb2._0x33d54a,-0x1d)]+'\x20completed.');}catch(_0x41bc61){if(_0x41bc61 instanceof ToolExecutionError)throw _0x41bc61;if(isAbortError(_0x41bc61)||_0x5935be[_0x1bab73(-_0x1a0cb2._0xc1b4a2,-0x1e0,-0x1a4,-0x258)][_0x115fcc(-0x16f,-_0x1a0cb2._0x26ee98,-0x223,-_0x1a0cb2._0x4ad548)]||_0x4505eb[_0x115fcc(-0x164,-0x17d,-0x1df,-_0x1a0cb2._0x3f23e8)][_0x115fcc(-_0x1a0cb2._0x4506ea,-0x1b9,-_0x1a0cb2._0x5667c1,-_0x1a0cb2._0x5a4f90)]){const _0x59164b=getRunTerminalErrorMessage(_0x56d004['result'])??(_0x41bc61 instanceof Error?_0x41bc61['message']:String(_0x41bc61)),_0x2fdb43=formatAbortedRunMessage(_0x56d004[_0x1bab73(-_0x1a0cb2._0x19e876,-_0x1a0cb2._0x569322,-_0x1a0cb2._0xd8df35,-_0x1a0cb2._0x8fc32e)],_0x59164b);_0x56d004={..._0x56d004,'status':'aborted','errorMessage':_0x2fdb43};throw new ToolExecutionError(_0x2fdb43,{...createRunSummary(_0x56d004),'aborted':!![],'errorMessage':_0x2fdb43});}const _0x278c8e=getRunTerminalErrorMessage(_0x56d004[_0x1bab73(-_0x1a0cb2._0x46509b,-_0x1a0cb2._0x3b58f4,-0x190,-_0x1a0cb2._0x4656fe)])??(_0x41bc61 instanceof Error?_0x41bc61[_0x1bab73(_0x1a0cb2._0x535820,-_0x1a0cb2._0x38f8bc,-0x86,-0xca)]:String(_0x41bc61))??_0x115fcc(-_0x1a0cb2._0x4550a0,-0x11c,-_0x1a0cb2._0x39c43d,-_0x1a0cb2._0x45800d)+_0x56d004[_0x115fcc(-_0x1a0cb2._0x4be360,-_0x1a0cb2._0x4529a5,_0x1a0cb2._0x3b3309,-_0x1a0cb2._0x1b77d6)]+_0x1bab73(-0xc3,-0xf2,-_0x1a0cb2._0x32db14,-0xa1);_0x56d004={..._0x56d004,'status':_0x115fcc(-0x114,-_0x1a0cb2._0x524c38,-0xdb,-0x1b7),'errorMessage':_0x278c8e};throw new ToolExecutionError(_0x278c8e,{...createRunSummary(_0x56d004),'errorMessage':_0x278c8e});}finally{_0x552d33();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x50a951){return[createAssignTaskTool(_0x50a951)];}import*as _0x193ce from'path';function buildDescription2(_0x5c59cd){const _0x215bc1={_0xf7be12:0x392,_0x356531:0x32b,_0x17b54d:0x3c4,_0x191bf2:0x2c1,_0x5ddec8:0x294,_0x19718d:0x2d5,_0x4ba20d:0x305,_0x2fbef4:0x491,_0x7fcf04:0x4a0,_0x313299:0x4f5,_0x2bc557:0x44c,_0x37deaa:0x3cd,_0x609945:0x475},_0x5abfc0={_0x5ed98a:0x3a},_0x39b287={_0x453fd7:0x15,_0x528a0a:0x5c0};function _0x4605e2(_0x5131eb,_0x2fdae4,_0xe16a4f,_0x23989e){return _0xaab5df(_0x5131eb-_0x39b287._0x453fd7,_0x5131eb-_0x39b287._0x528a0a,_0xe16a4f-0xf4,_0x23989e);}if(_0x5c59cd[_0x44c96d(_0x215bc1._0xf7be12,_0x215bc1._0x356531,_0x215bc1._0x17b54d,_0x215bc1._0x191bf2)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';const _0x23e95a=['Load\x20a\x20skill\x20to\x20get\x20detailed\x20instructions\x20for\x20a\x20specific\x20task.','Skills\x20provide\x20specialized\x20knowledge\x20and\x20step-by-step\x20guidance.',_0x44c96d(_0x215bc1._0x5ddec8,_0x215bc1._0x19718d,_0x215bc1._0x4ba20d,0x310),_0x4605e2(0x48f,_0x215bc1._0x2fbef4,0x499,_0x215bc1._0x7fcf04),..._0x5c59cd[_0x4605e2(0x46d,0x416,_0x215bc1._0x313299,0x44c)](_0x13bbcb=>'-\x20'+_0x13bbcb[_0x44c96d(0x338,0x328,0x3bf,0x3d2)]+':\x20'+_0x13bbcb[_0x44c96d(0x443,0x421,0x3f6,0x39c)])];function _0x44c96d(_0x3c8657,_0x5ef4e4,_0x34c1f2,_0x39c2e8){return _0x49a26f(_0x34c1f2,_0x5ef4e4-0x4,_0x34c1f2-0xaa,_0x5ef4e4- -_0x5abfc0._0x5ed98a);}return _0x23e95a[_0x4605e2(_0x215bc1._0x2bc557,_0x215bc1._0x37deaa,_0x215bc1._0x609945,0x480)]('\x0a');}function createLoadSkillTool(_0x26eecc){const _0x53b86b={_0x717ef0:0x44a,_0x7bd981:0x49b,_0x3adec5:0x33f,_0x3d82c2:0x4d3,_0x53e12c:0x2e8,_0x2122aa:0x2fa,_0x34c75c:0x387},_0x51273a={_0x3779dc:0x36e,_0x2f2047:0x1f9,_0x589208:0xc0,_0x236f10:0x239,_0x218182:0x222,_0x3d59ad:0x22a,_0x4ccffb:0x248,_0x58afc7:0x32a,_0x5919d1:0x374,_0x262d74:0x221,_0x19bcc0:0x210,_0x363263:0x2f3,_0x23e735:0x330,_0x35bb8a:0x27b,_0x4e74b6:0x21e,_0x5a38d9:0x1ee,_0x1b7326:0x239,_0x49c976:0x297,_0x24b69b:0x21f,_0x1559d7:0x411,_0x4af5cd:0x48d,_0x4253e4:0x4c4,_0x4d4b1c:0x2cb,_0x187e41:0x38f,_0x146509:0x420,_0x298c3d:0x3f4,_0x6ceebb:0x1e3,_0xaa6662:0x2e2,_0x505ee0:0x3d2,_0x3054b4:0x2ce,_0x3fdf8b:0x137,_0x5a9a17:0x28d,_0xbd81b:0x15d,_0x7e6461:0x12b,_0x581496:0x47e,_0x403c07:0x27d,_0x560f14:0x255,_0x2beeb3:0x1fd,_0x147e3d:0x392,_0x233c67:0x2d9,_0x1a6c95:0x198,_0x1ac308:0x23b,_0x37ed83:0x256,_0x48f490:0x115,_0x37839a:0x161,_0x30a898:0x25b,_0x31ba1d:0x1bc},_0x25f443={_0x5459f7:0x5d8},_0x9fd061={_0x221a09:0xb9,_0x35ae80:0x493},_0x18924a=new Map(_0x26eecc['skills']['map'](_0x3bfcfb=>[_0x3bfcfb[_0x5bc89c(0x2e8,0x266,0x394,0x24d)],_0x3bfcfb])),_0x2a036c=buildDescription2(_0x26eecc[_0x5bc89c(0x3a4,_0x53b86b._0x717ef0,0x33f,0x2f2)]);function _0x5bc89c(_0x214c7d,_0x432076,_0x651648,_0x466a9e){return _0xaab5df(_0x214c7d-_0x9fd061._0x221a09,_0x214c7d-_0x9fd061._0x35ae80,_0x651648-0x13,_0x651648);}function _0x14822f(_0xf5c72f,_0x22b600,_0x5ebe6d,_0x4716a1){return _0xaab5df(_0xf5c72f-0x13d,_0x5ebe6d-_0x25f443._0x5459f7,_0x5ebe6d-0x17f,_0xf5c72f);}return defineTool({'name':_0x5bc89c(0x3f1,0x427,_0x53b86b._0x7bd981,_0x53b86b._0x3adec5),'description':_0x2a036c,'inputSchema':{'type':'object','properties':{'name':{'type':_0x14822f(0x57a,0x527,_0x53b86b._0x3d82c2,0x428)}},'required':[_0x5bc89c(_0x53b86b._0x53e12c,0x27d,_0x53b86b._0x2122aa,_0x53b86b._0x34c75c)]},async *'execute'(_0x453a69){const _0xc6597a={_0x44d2ed:0x4a,_0x1908b1:0xa1},_0x1cea04=_0x18924a[_0x37537b(0x3ee,0x390,0x3ae,_0x51273a._0x3779dc)](_0x453a69[_0x55e921(0xd3,0x161,_0x51273a._0x2f2047,_0x51273a._0x589208)]);if(!_0x1cea04){const _0x5e26c6=Array[_0x55e921(_0x51273a._0x236f10,_0x51273a._0x218182,_0x51273a._0x3d59ad,_0x51273a._0x4ccffb)](_0x18924a['keys']())[_0x37537b(_0x51273a._0x58afc7,0x3e2,_0x51273a._0x5919d1,0x2e1)](',\x20');throw new ToolExecutionError(_0x55e921(_0x51273a._0x262d74,_0x51273a._0x19bcc0,0x19e,0x15f)+_0x453a69[_0x37537b(_0x51273a._0x363263,0x2c3,_0x51273a._0x23e735,0x275)]+_0x55e921(_0x51273a._0x35bb8a,_0x51273a._0x4e74b6,_0x51273a._0x5a38d9,_0x51273a._0x1b7326)+_0x5e26c6,{'name':_0x453a69['name']});}function _0x37537b(_0x4ebbe6,_0x17e807,_0x3d4bb5,_0x309d09){return _0x5bc89c(_0x4ebbe6-0xb,_0x17e807-0x1ab,_0x3d4bb5,_0x309d09-0x1c5);}const _0x46d139=await _0x26eecc[_0x55e921(_0x51273a._0x49c976,0x1f1,_0x51273a._0x24b69b,0x188)](_0x1cea04),_0x1f3ad6=_0x1cea04[_0x37537b(_0x51273a._0x1559d7,_0x51273a._0x4af5cd,_0x51273a._0x4253e4,0x3cc)][_0x37537b(0x2c2,0x221,_0x51273a._0x4d4b1c,0x33b)]??_0x193ce[_0x37537b(_0x51273a._0x187e41,0x2da,_0x51273a._0x146509,_0x51273a._0x298c3d)](_0x1cea04[_0x55e921(0x2a2,0x27f,_0x51273a._0x6ceebb,_0x51273a._0xaa6662)][_0x37537b(0x3ed,_0x51273a._0x505ee0,0x43e,0x3cc)]);function _0x55e921(_0x2b33cf,_0x3c44c8,_0x4d6640,_0x54b2b6){return _0x14822f(_0x4d6640,_0x3c44c8-_0xc6597a._0x44d2ed,_0x3c44c8- -0x2cc,_0x54b2b6-_0xc6597a._0x1908b1);}const _0x1dfd16=['##\x20Skill:\x20'+_0x46d139['name'],'',_0x46d139[_0x37537b(0x34c,0x2d7,_0x51273a._0x3054b4,0x403)],'',_0x55e921(_0x51273a._0x3fdf8b,0x13f,0x1a5,0x1f9),_0x55e921(_0x51273a._0x5a9a17,0x1d3,_0x51273a._0xbd81b,_0x51273a._0x7e6461)+_0x1cea04[_0x37537b(_0x51273a._0x1559d7,_0x51273a._0x581496,0x3e9,0x4af)][_0x55e921(_0x51273a._0x403c07,0x25b,_0x51273a._0x560f14,_0x51273a._0x2beeb3)],_0x37537b(_0x51273a._0x147e3d,0x39e,_0x51273a._0x233c67,0x3b8)+_0x1f3ad6][_0x55e921(0x158,_0x51273a._0x1a6c95,_0x51273a._0x1ac308,_0x51273a._0x37ed83)]('\x0a');return yield createToolOutput(_0x1dfd16,{'id':_0x46d139['id'],'name':_0x46d139[_0x55e921(_0x51273a._0x48f490,_0x51273a._0x37839a,0x1f7,0x1f2)],'path':_0x1cea04[_0x37537b(_0x51273a._0x1559d7,0x3e8,0x394,0x38c)][_0x55e921(0x2e5,_0x51273a._0x30a898,_0x51273a._0x31ba1d,0x203)],'baseDirectory':_0x1f3ad6}),void 0x0;}});}import{readFile as _0x39b279,stat as _0x312b04}from'fs/promises';import*as _0x18b8b7 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0xaab5df(-0x87,-0x106,-0x199,-0xf7),_0xaab5df(-0x215,-0x162,-0xf8,-0x14b),_0x49a26f(0x437,0x34e,0x3e5,0x398),_0x49a26f(0x319,0x2e9,0x2b7,0x30b)]),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x11fbaf,_0x23435f){const _0x309391={_0xe93f41:0x5bf,_0x937c82:0x63e,_0x30e1ba:0x551,_0x373f82:0x4,_0x14bb9b:0x54b,_0x239750:0x559,_0x152fb5:0x4a8,_0x258150:0x591,_0x34ce17:0x52d,_0x1a3d88:0x469,_0x19138a:0x649,_0x1f6fdc:0x4e2,_0x5c323e:0x558,_0x17f8ad:0x31,_0x57d512:0xd,_0x10f21b:0xb2,_0x258cfb:0x51c,_0xf9fec4:0x4f5,_0xc9478e:0x5c4,_0x5b70cc:0x31,_0x2fb87a:0xd,_0x6cc718:0x526,_0x54d47f:0x4dc,_0x25c5f7:0x4f3,_0x3620b3:0x545,_0x367daf:0x580,_0x35cc65:0x4c0,_0x42ee01:0x5d7,_0x51b11b:0xc5,_0x513ce6:0xe8,_0x195243:0x4a5,_0xfb67e9:0x4a2,_0x44ddf4:0x5b7,_0x41df2b:0x103,_0x19f536:0x8e,_0x14f1a9:0x6e,_0x2c57e7:0xe5,_0xc9f2a1:0x48,_0x260aab:0xd4,_0xed5014:0xb7,_0x573d4b:0x90,_0x250702:0x4cf,_0x325ec8:0x4c9,_0x5e3b51:0x60a,_0x2dee55:0x536,_0x3fcec9:0x5ca,_0x1f40e3:0x5b5,_0x5d0639:0x160,_0x5c0b49:0x8,_0x296568:0xa4,_0x4291a9:0x23,_0x471828:0x5d0,_0x5e1f31:0x5cb,_0x35a784:0x2e,_0x3b0e2b:0x97,_0xf63e4d:0x51b,_0x414887:0x4c3,_0xbfef08:0xa,_0x2bab3d:0x15,_0x5a4e55:0x29,_0x283db8:0x5ac,_0x5ab6d4:0x5af,_0x20955e:0x531},_0x58068f={_0x48648c:0x18c},_0x2e2925={_0x5b5146:0x10a};if(_0x11fbaf['subarray'](0x0,0x8)[_0x249406(_0x309391._0xe93f41,0x666,_0x309391._0x937c82,_0x309391._0x30e1ba)](PNG_SIGNATURE))return _0x2b6075(-_0x309391._0x373f82,-0x54,0x2d,0x1c);if(_0x11fbaf[0x0]===0xff&&_0x11fbaf[0x1]===0xd8&&_0x11fbaf[0x2]===0xff)return _0x249406(0x5d0,_0x309391._0x14bb9b,0x65f,0x654);const _0x5bddce=_0x11fbaf['subarray'](0x0,0x6)[_0x249406(_0x309391._0x239750,_0x309391._0x152fb5,_0x309391._0x258150,0x563)](_0x249406(0x526,0x597,_0x309391._0x34ce17,_0x309391._0x1a3d88));if(_0x5bddce===_0x249406(0x59f,_0x309391._0x19138a,_0x309391._0x1f6fdc,_0x309391._0x5c323e)||_0x5bddce==='GIF89a')return _0x2b6075(_0x309391._0x17f8ad,-0xb5,-_0x309391._0x57d512,-_0x309391._0x10f21b);if(_0x11fbaf[_0x249406(_0x309391._0x258cfb,_0x309391._0xf9fec4,0x4fb,_0x309391._0xc9478e)](0x0,0x4)[_0x2b6075(0x3,0xbf,_0x309391._0x5b70cc,_0x309391._0x2fb87a)](_0x249406(_0x309391._0x6cc718,_0x309391._0x54d47f,_0x309391._0x25c5f7,_0x309391._0x3620b3))===_0x249406(0x57b,0x544,_0x309391._0x367daf,0x552)&&_0x11fbaf[_0x249406(0x51c,0x4bc,_0x309391._0x35cc65,_0x309391._0x42ee01)](0x8,0xc)[_0x2b6075(_0x309391._0x51b11b,0x64,0x31,_0x309391._0x513ce6)](_0x249406(0x526,_0x309391._0x195243,_0x309391._0xfb67e9,_0x309391._0x44ddf4))===_0x2b6075(-_0x309391._0x41df2b,-0x70,-_0x309391._0x19f536,-0x21))return'image/webp';const _0x55dab1=_0x18b8b7[_0x2b6075(0x30,_0x309391._0x14f1a9,_0x309391._0x2c57e7,_0x309391._0xc9f2a1)](_0x23435f)[_0x2b6075(_0x309391._0x260aab,_0x309391._0xed5014,_0x309391._0x573d4b,-0xc)]();function _0x2b6075(_0x12f032,_0x15b871,_0x13a9f9,_0x6a9e92){return _0xaab5df(_0x12f032-0xed,_0x13a9f9-0x171,_0x13a9f9-_0x2e2925._0x5b5146,_0x15b871);}if(_0x55dab1===_0x249406(_0x309391._0x250702,0x40f,0x4de,_0x309391._0x325ec8))return _0x249406(0x555,_0x309391._0x5e3b51,_0x309391._0x2dee55,0x4c6);if(_0x55dab1===_0x249406(_0x309391._0x3fcec9,_0x309391._0x1f40e3,0x51f,0x5a6)||_0x55dab1===_0x2b6075(_0x309391._0x5d0639,-_0x309391._0x5c0b49,_0x309391._0x296568,_0x309391._0x4291a9))return _0x249406(_0x309391._0x471828,_0x309391._0x5e1f31,0x63e,0x54d);if(_0x55dab1===_0x2b6075(0xce,-_0x309391._0x35a784,0x8d,_0x309391._0x3b0e2b))return _0x249406(_0x309391._0xf63e4d,_0x309391._0x414887,0x5d3,0x4f3);function _0x249406(_0x4ce916,_0x4206ef,_0x56fdae,_0x49f6c3){return _0x49a26f(_0x49f6c3,_0x4206ef-0x4,_0x56fdae-0xcf,_0x4ce916-_0x58068f._0x48648c);}if(_0x55dab1===_0x2b6075(0x6f,-_0x309391._0xbfef08,-_0x309391._0x2bab3d,-_0x309391._0x5a4e55))return _0x249406(_0x309391._0x283db8,_0x309391._0x5ab6d4,_0x309391._0x20955e,0x63c);return void 0x0;}function normalizeDetail(_0x165d83){const _0x22869c={_0x3f09b4:0x42,_0x158712:0x5c,_0x4c4606:0x26,_0x13dccb:0x4d9,_0x27fc53:0x479,_0xe34a13:0x503},_0x58c38c={_0x1b7390:0x13d},_0x565feb={_0x588746:0x35,_0x5ea20b:0x17,_0x4d257d:0xed};function _0x366566(_0x10a0f8,_0x2324be,_0x1053b,_0xb83fc3){return _0x49a26f(_0x1053b,_0x2324be-_0x565feb._0x588746,_0x1053b-_0x565feb._0x5ea20b,_0xb83fc3-_0x565feb._0x4d257d);}if(_0x165d83===void 0x0)return void 0x0;const _0xe55d43=_0x165d83[_0x366566(0x41d,0x482,0x4ec,0x467)]()[_0x1eab47(_0x22869c._0x3f09b4,_0x22869c._0x158712,-_0x22869c._0x4c4606,0x9a)]();if(!SUPPORTED_DETAILS[_0x1eab47(-0x12,0xa6,0x7d,0x67)](_0xe55d43))throw new ToolExecutionError(_0x366566(_0x22869c._0x13dccb,_0x22869c._0x27fc53,0x472,_0x22869c._0xe34a13)+_0x165d83,{'detail':_0x165d83});function _0x1eab47(_0x4bee5c,_0x10fb56,_0x3bb5d7,_0x6005c9){return _0xaab5df(_0x4bee5c-0x1ec,_0x10fb56-_0x58c38c._0x1b7390,_0x3bb5d7-0x1b4,_0x4bee5c);}return _0xe55d43;}function createViewFileTool(_0x4a5f7e={}){const _0x25eacf={_0x23fe7c:0x198,_0x2fb10e:0xf2,_0x1bb67a:0x5a5,_0x1b1898:0x485,_0x48dc1e:0x5fe,_0x2aa758:0x5b5,_0x24ef0d:0xe6,_0x11b5d9:0x17c,_0x37f190:0x58a,_0x4ff8fe:0x59f},_0x11de41={_0x5e4d61:0x157,_0x14dbdf:0x192,_0xb26e10:0x16f,_0x205a53:0x45,_0xcdb887:0x42,_0x3e94d2:0x70,_0x53db3a:0xf2,_0x34195e:0x1a6,_0x43683e:0x17a,_0x6c81fa:0xf7,_0x12d811:0x1de,_0x28c031:0x158,_0x354bc7:0x4,_0x2fbed7:0x167,_0x3f3510:0x1ce,_0x59da81:0x1a3,_0x262da4:0x188,_0x2bf813:0x13c,_0x5c255e:0x1d2,_0x20d414:0x132,_0x318ff0:0x2b0,_0x1b9934:0x280,_0x3f68f6:0x33b,_0xef6d91:0x3e,_0xdb22ef:0x7,_0x4d2251:0x2ae,_0x181a5f:0x2c7,_0x56db09:0x31e,_0x2cdf12:0x281,_0x3e4ffb:0x236,_0x5949a6:0x118,_0x49a2c1:0xc5,_0x3d9083:0x252,_0x5e48f1:0x2a,_0x314d62:0x54,_0x1b4424:0xd9,_0x3ae3c6:0x1bf,_0x450720:0x33d,_0x5bfaf8:0x2db,_0xa84a90:0xc8,_0x73e6d7:0xe6,_0x113251:0x157,_0x51ca4c:0x108,_0x3a3954:0x32a,_0x38772e:0x25c,_0x5ea592:0x2a3,_0x12962e:0x2d1,_0x24c342:0x221,_0x3822c2:0xa6,_0x12207:0x5f,_0x3c84cf:0x1d9},_0x3e1a39={_0x201619:0x2e1},_0x37f49b={_0x175866:0xf0},_0x42a041={_0x39bc7f:0x1a5,_0x35a2d3:0x4d},_0xd3a151=_0x18b8b7[_0x5098d5(-0x1a6,-0x116,-0x1a1,-_0x25eacf._0x23fe7c)](_0x4a5f7e['defaultCwd']??process['cwd']());function _0x380ca5(_0x4680f6,_0x133a9b,_0x3bf525,_0xce015e){return _0x49a26f(_0x4680f6,_0x133a9b-_0x42a041._0x39bc7f,_0x3bf525-_0x42a041._0x35a2d3,_0xce015e-0x13a);}const _0x4d9cf7=_0x4a5f7e[_0x5098d5(-0xa8,-0xc3,-0x36,-_0x25eacf._0x2fb10e)]??DEFAULT_MAX_BYTES,_0x445144=_0x4a5f7e['name']??_0x380ca5(_0x25eacf._0x1bb67a,0x5b0,0x5f5,0x5c2);function _0x5098d5(_0x3dfb86,_0x25efb0,_0x1dab02,_0x228874){return _0x49a26f(_0x1dab02,_0x25efb0-_0x37f49b._0x175866,_0x1dab02-0x1e9,_0x25efb0- -0x4ee);}return defineTool({'name':_0x445144,'description':_0x5098d5(-0x110,-0x7d,0xe,-0xb4),'inputSchema':{'type':'object','properties':{'path':{'type':_0x380ca5(_0x25eacf._0x1b1898,_0x25eacf._0x48dc1e,_0x25eacf._0x2aa758,0x542)},'detail':{'type':_0x5098d5(-0x97,-_0x25eacf._0x24ef0d,-_0x25eacf._0x11b5d9,-0x158)}},'required':[_0x380ca5(_0x25eacf._0x37f190,_0x25eacf._0x4ff8fe,0x5d7,0x596)]},async *'execute'(_0x5bdb31){const _0x420e60={_0x1ee880:0x43f},_0x8844e1=resolveWorkspacePath(_0xd3a151,_0x5bdb31[_0xec7126(_0x11de41._0x5e4d61,_0x11de41._0x14dbdf,0x1e7,_0x11de41._0xb26e10)]);await assertWorkspaceFile(_0x8844e1);function _0xec7126(_0x56fd49,_0x2cfa45,_0x26334a,_0x334d74){return _0x380ca5(_0x26334a,_0x2cfa45-0x39,_0x26334a-0x10b,_0x56fd49- -_0x420e60._0x1ee880);}const _0xe1138f=await _0x312b04(_0x8844e1);if(_0xe1138f[_0xec7126(_0x11de41._0x205a53,_0x11de41._0xcdb887,0x3f,_0x11de41._0x3e94d2)]>_0x4d9cf7)throw new ToolExecutionError(_0x353bb1(_0x11de41._0x53db3a,_0x11de41._0x34195e,_0x11de41._0x43683e,0x16e)+_0x5bdb31[_0x353bb1(0x2e4,0x26b,0x2b5,0x223)],{'path':_0x5bdb31[_0xec7126(0x157,_0x11de41._0x6c81fa,_0x11de41._0x12d811,_0x11de41._0x28c031)],'maxBytes':_0x4d9cf7,'size':_0xe1138f[_0xec7126(0x45,0x55,-_0x11de41._0x354bc7,0x9f)]});const _0x520c1a=await _0x39b279(_0x8844e1),_0x3b1be4=detectImageMediaType(_0x520c1a,_0x8844e1);if(!_0x3b1be4)throw new ToolExecutionError('Unsupported\x20image\x20file:\x20'+_0x5bdb31[_0xec7126(0x157,0x1fa,0x9e,_0x11de41._0x2fbed7)],{'path':_0x5bdb31[_0xec7126(0x157,_0x11de41._0x3f3510,_0x11de41._0x59da81,_0x11de41._0x262da4)],'supported':[_0xec7126(0x124,0x10f,_0x11de41._0x2bf813,_0x11de41._0x5c255e),_0xec7126(0x13b,0xce,_0x11de41._0x20d414,0x1c3),_0x353bb1(_0x11de41._0x318ff0,_0x11de41._0x1b9934,0x297,_0x11de41._0x3f68f6),_0xec7126(_0x11de41._0xef6d91,-0x64,-_0x11de41._0xdb22ef,-0x68),_0x353bb1(_0x11de41._0x14dbdf,0x213,0x1e0,0x217)]});const _0x431c15=normalizeDetail(_0x5bdb31['detail']),_0x2ba11d=[_0x353bb1(0x2b8,_0x11de41._0x4d2251,0x24e,_0x11de41._0x181a5f)+_0x5bdb31[_0xec7126(0x157,0x13d,0xfd,0x10d)],_0x353bb1(0x1cc,_0x11de41._0x56db09,_0x11de41._0x2cdf12,_0x11de41._0x3e4ffb)+_0x3b1be4,_0xec7126(0xe5,0x14a,_0x11de41._0x5949a6,_0x11de41._0x49a2c1)+_0xe1138f[_0x353bb1(0x104,_0x11de41._0x3d9083,_0x11de41._0x59da81,0x1c3)]+'\x20bytes'][_0xec7126(_0x11de41._0x5e48f1,0x28,-_0x11de41._0x314d62,_0x11de41._0x1b4424)](_0x431c15?['Detail:\x20'+_0x431c15]:[])['join']('\x0a'),_0x184f4b=[{'type':_0x353bb1(0x25e,0x19b,0x245,_0x11de41._0x3ae3c6),'source':{'type':_0x353bb1(_0x11de41._0x450720,0x373,_0x11de41._0x5bfaf8,0x33e),'media_type':_0x3b1be4,'data':_0x520c1a[_0xec7126(_0x11de41._0xa84a90,_0x11de41._0x73e6d7,0xbd,0x141)](_0x353bb1(0x229,0x271,0x2db,0x38c))}},{'type':'text','text':_0x2ba11d}];function _0x353bb1(_0x4e47db,_0x9d52e,_0x108a00,_0x48de0b){return _0x380ca5(_0x4e47db,_0x9d52e-0x55,_0x108a00-0x147,_0x108a00- -_0x3e1a39._0x201619);}return yield createToolOutput(_0x2ba11d,{'path':_0x5bdb31[_0xec7126(_0x11de41._0x113251,0x1f4,_0x11de41._0x51ca4c,0x187)],'resolvedPath':_0x8844e1,'created':_0xe1138f['birthtime'][_0x353bb1(0x220,_0x11de41._0x3a3954,0x2bc,_0x11de41._0x38772e)](),'modified':_0xe1138f[_0x353bb1(0x2c6,_0x11de41._0x5ea592,_0x11de41._0x12962e,_0x11de41._0x24c342)]['toISOString'](),'size':_0xe1138f[_0xec7126(0x45,_0x11de41._0x3822c2,0x86,_0x11de41._0x12207)],'mimeType':_0x3b1be4,'encoding':_0xec7126(0x17d,0x218,0x205,_0x11de41._0x3c84cf),..._0x431c15?{'detail':_0x431c15}:{}},_0x184f4b),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};
|