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

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