@nuvin/agent-core 0.2.0-rc.3 → 0.2.0-rc.4

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(_0x2c311d,_0x13f71d){const _0x463ac7={_0x72a65f:0x46,_0x136521:0x61,_0x26097d:0x76,_0x34f733:0x48,_0x36867c:0x2ff,_0x14d8f3:0x2ee,_0x90d0e9:0x2b1,_0x13c183:0x2e3,_0x3a7d9d:0x2d5,_0xaa593f:0x2ea,_0x5cbd54:0x2b9,_0x1bc753:0x2fa,_0x49c3c8:0x2db,_0x6b496f:0x301,_0x36cbfa:0x4a,_0x49c378:0x5b,_0x55acdf:0x9f,_0x5714d9:0x85},_0x1b2809=_0x2c311d();function _0x5d0642(_0x2609db,_0x13968b,_0x22dc59,_0x54e33f){return _0x7af4(_0x54e33f-0xf5,_0x22dc59);}function _0x356918(_0x1f6d10,_0x4d448d,_0x1a7445,_0x2c7df9){return _0x7af4(_0x4d448d- -0x18d,_0x2c7df9);}while(!![]){try{const _0x54265d=-parseInt(_0x356918(_0x463ac7._0x72a65f,_0x463ac7._0x136521,_0x463ac7._0x26097d,0x73))/0x1*(-parseInt(_0x356918(0x5d,_0x463ac7._0x34f733,0x54,0x57))/0x2)+parseInt(_0x5d0642(0x2ef,_0x463ac7._0x36867c,0x2f3,_0x463ac7._0x14d8f3))/0x3+parseInt(_0x5d0642(0x31c,0x2e8,0x325,0x306))/0x4*(parseInt(_0x5d0642(_0x463ac7._0x90d0e9,0x2ef,_0x463ac7._0x13c183,_0x463ac7._0x3a7d9d))/0x5)+-parseInt(_0x5d0642(0x304,_0x463ac7._0xaa593f,0x2e9,0x308))/0x6+-parseInt(_0x5d0642(_0x463ac7._0x5cbd54,0x2cc,_0x463ac7._0x1bc753,_0x463ac7._0x49c3c8))/0x7+parseInt(_0x5d0642(0x2e9,0x2e2,0x2f8,_0x463ac7._0x6b496f))/0x8*(parseInt(_0x356918(_0x463ac7._0x36cbfa,_0x463ac7._0x49c378,0x52,0x74))/0x9)+parseInt(_0x356918(_0x463ac7._0x55acdf,_0x463ac7._0x5714d9,0x6b,0x72))/0xa;if(_0x54265d===_0x13f71d)break;else _0x1b2809['push'](_0x1b2809['shift']());}catch(_0x46f490){_0x1b2809['push'](_0x1b2809['shift']());}}}(_0x1b41,0x319cd));import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x4412cc,_0x2d6880,_0x546ef2=DEFAULT_TIMEOUT_S,_0x291997){const _0x47c4df={_0x1c0578:0xf8,_0x570d4a:0x106,_0x245f67:0x109},_0x4e2722={_0x98dd9f:0x308,_0x50120d:0x2f9,_0x3c5c12:0x2ea,_0x24d455:0x311,_0x555b62:0x199,_0x569387:0x1a7,_0x127010:0x187,_0x771215:0x317,_0x1318a6:0x1a3,_0x17b6b1:0x189,_0x4f61e1:0x317,_0x26bd25:0x320,_0x143a74:0x306,_0x5b36a7:0x1b7,_0x15f60f:0x312,_0x318585:0x32a,_0x41d20b:0x31b,_0x50ef80:0x300,_0x47de7d:0x2bc,_0x511f27:0x2ce,_0x4abc75:0x1c7,_0x376843:0x2e9,_0x496684:0x1c9,_0xc9a5c3:0x1ec,_0x3d0659:0x1e7,_0x3cb04c:0x1e6,_0x1c8326:0x1c3,_0x12b24b:0x303,_0x54f625:0x311,_0x3f3757:0x307,_0x93603c:0x2f6,_0x12afcc:0x309,_0x2f2262:0x2f4},_0x5b2b5e={_0x279f0d:0x107,_0x4a3cbc:0x10c,_0x3e36f3:0x101,_0xae9c53:0xef,_0x2bac36:0x120,_0x1d8bd2:0x2a3,_0x20d237:0x288,_0x203858:0x291,_0xee6151:0x284,_0x57ea75:0x29f,_0x24c0a8:0x2a1},_0x5bdba1={_0x661ead:0x5b,_0xb961f0:0x102},_0x4df989={_0x2be673:0x99};function _0x2ed460(_0x1893f9,_0x2bb7c1,_0x2b78ef,_0x1ac669){return _0x7af4(_0x1893f9- -0xf5,_0x1ac669);}const _0x5c2bd2=Date[_0x2ed460(_0x47c4df._0x1c0578,_0x47c4df._0x570d4a,0xe1,_0x47c4df._0x245f67)]();return new Promise(_0x29138a=>{const _0x1443da={_0x5efda8:0x47f,_0x5380cb:0x46d,_0x126719:0x47a,_0x42d980:0x46c,_0x1e5565:0x44f},_0x31192e={_0x2f495d:0x6a,_0x25d106:0x620},_0x49a7d5={_0x16f27f:0x63a},_0x28db7b={_0x35ab48:0x407,_0x2888b6:0x424,_0x241c48:0x428,_0x22712f:0x113,_0x2c9d52:0x42d,_0x839fc0:0x440,_0x907159:0xc0,_0x45c61c:0xcb,_0x1aef2a:0x3f1,_0x1dfddd:0x3e8,_0x35bc62:0x414,_0x408172:0x10c,_0x27387e:0xf4,_0x51367a:0x10f,_0x836375:0x3f1,_0x1b1e7e:0x3ea,_0x369052:0x3e4,_0x34a8bb:0x3f2},_0x534cae={_0x49fc44:0x3f,_0x3f3721:0x28,_0x5691b9:0x2b6},_0x53463b={_0x54b9b2:0x12a},_0x3ecf9e={_0x59a289:0x6e,_0x50f9ea:0x5b,_0x2aae90:0x3f,_0xd71e17:0x142,_0x36ca52:0x155,_0x51f45c:0x160},_0x2cb4a9={_0x1e1a9d:0x80},_0x296c52={_0x3c6583:0xca},_0x578fbb={_0x4ed88a:0x166},_0x5b75a3=spawn('sh',['-c',_0x4412cc],{'stdio':[_0x4e57b5(_0x4e2722._0x98dd9f,0x320,_0x4e2722._0x50120d,0x311),'pipe',_0x4e57b5(0x308,0x322,_0x4e2722._0x3c5c12,_0x4e2722._0x24d455)],'env':{...process[_0x2829ed(-_0x4e2722._0x555b62,-0x1b5,-_0x4e2722._0x569387,-_0x4e2722._0x127010)],'CLAUDE_PROJECT_DIR':_0x291997??process[_0x4e57b5(0x30c,0x319,_0x4e2722._0x771215,0x2fe)]()}});let _0x2ae55b='',_0x3fe950='';function _0x2829ed(_0x3a3922,_0x46f796,_0x2ffb9f,_0x12b437){return _0x2ed460(_0x2ffb9f- -0x2c9,_0x46f796-0x10c,_0x2ffb9f-_0x4df989._0x2be673,_0x12b437);}_0x5b75a3[_0x2829ed(-_0x4e2722._0x1318a6,-_0x4e2722._0x17b6b1,-0x1a9,-_0x4e2722._0x555b62)]['on'](_0x4e57b5(0x312,_0x4e2722._0x4f61e1,_0x4e2722._0x26bd25,_0x4e2722._0x143a74),_0x1a4436=>{const _0x2f0f8c={_0x542cf5:0x156,_0xaf1181:0x7};function _0x2bd123(_0x3b7d5c,_0x2d644f,_0x30027f,_0x2463e5){return _0x2829ed(_0x3b7d5c-_0x2f0f8c._0x542cf5,_0x2d644f-_0x2f0f8c._0xaf1181,_0x3b7d5c-0x56,_0x2d644f);}_0x2ae55b+=_0x1a4436[_0x2bd123(-0x14d,-0x167,-_0x578fbb._0x4ed88a,-0x13e)]();});function _0x4e57b5(_0x5d394a,_0x4f57c2,_0x5a24bf,_0x19c7c4){return _0x2ed460(_0x5d394a-0x1f9,_0x4f57c2-_0x5bdba1._0x661ead,_0x5a24bf-_0x5bdba1._0xb961f0,_0x5a24bf);}_0x5b75a3[_0x2829ed(-0x1ab,-0x196,-_0x4e2722._0x5b36a7,-0x1d5)]['on'](_0x4e57b5(_0x4e2722._0x15f60f,_0x4e2722._0x318585,0x335,_0x4e2722._0x41d20b),_0xd519e0=>{_0x3fe950+=_0xd519e0['toString']();}),_0x5b75a3[_0x4e57b5(0x2dc,_0x4e2722._0x50ef80,_0x4e2722._0x47de7d,_0x4e2722._0x511f27)]['on']('error',_0x13089e=>{function _0x386e21(_0x554065,_0x271e16,_0x46b355,_0x29c135){return _0x2829ed(_0x554065-0xda,_0x271e16-_0x296c52._0x3c6583,_0x271e16-0x6a,_0x46b355);}function _0x1db344(_0x2bf2a0,_0x4d8f3f,_0xdce4fd,_0x78133d){return _0x2829ed(_0x2bf2a0-_0x2cb4a9._0x1e1a9d,_0x4d8f3f-0x1a4,_0x4d8f3f-0x160,_0xdce4fd);}if(_0x13089e[_0x1db344(-_0x3ecf9e._0x59a289,-_0x3ecf9e._0x50f9ea,-_0x3ecf9e._0x2aae90,-0x61)]!==_0x386e21(-_0x3ecf9e._0xd71e17,-_0x3ecf9e._0x36ca52,-_0x3ecf9e._0x51f45c,-0x176))throw _0x13089e;}),_0x5b75a3[_0x2829ed(-0x1eb,-0x1d8,-0x1e6,-_0x4e2722._0x4abc75)][_0x4e57b5(_0x4e2722._0x376843,0x2e7,0x2ea,0x2ed)](JSON[_0x2829ed(-_0x4e2722._0x496684,-_0x4e2722._0xc9a5c3,-0x1cf,-0x1b2)](_0x2d6880)),_0x5b75a3[_0x2829ed(-_0x4e2722._0x3d0659,-0x1ed,-_0x4e2722._0x3cb04c,-_0x4e2722._0x1c8326)][_0x4e57b5(0x2fb,0x2e7,0x30c,_0x4e2722._0x12b24b)]();const _0x53783b=setTimeout(()=>{const _0x3a8db0={_0x911cd7:0x82,_0x1f48cc:0x166};function _0x14c4e5(_0x1d7161,_0x1a082e,_0xb4139b,_0x437c50){return _0x2829ed(_0x1d7161-_0x3a8db0._0x911cd7,_0x1a082e-_0x3a8db0._0x1f48cc,_0x1d7161-0x455,_0x437c50);}_0x5b75a3[_0x183a89(0x106,0x11f,_0x5b2b5e._0x279f0d,0x110)](_0x183a89(_0x5b2b5e._0x4a3cbc,_0x5b2b5e._0x3e36f3,_0x5b2b5e._0xae9c53,_0x5b2b5e._0x2bac36));function _0x183a89(_0x33cc68,_0x4053b5,_0x5c6a65,_0x54eb83){return _0x4e57b5(_0x33cc68- -0x1d4,_0x4053b5-0x1ef,_0x5c6a65,_0x54eb83-_0x53463b._0x54b9b2);}_0x29138a({'status':_0x14c4e5(0x29c,0x292,0x2ae,_0x5b2b5e._0x1d8bd2),'error':_0x14c4e5(_0x5b2b5e._0x20d237,0x280,_0x5b2b5e._0x203858,0x26e)+_0x546ef2+'s','duration_ms':Date[_0x14c4e5(_0x5b2b5e._0xee6151,_0x5b2b5e._0x57ea75,_0x5b2b5e._0x24c0a8,0x261)]()-_0x5c2bd2});},_0x546ef2*0x3e8);_0x5b75a3['on'](_0x4e57b5(_0x4e2722._0x54f625,0x308,_0x4e2722._0x3f3757,_0x4e2722._0x93603c),_0x4f0219=>{const _0xc7010d={_0x5a5583:0x110,_0x23fcda:0x8f};function _0x58ea65(_0x2d0717,_0xf686d7,_0x21ab7d,_0x267c33){return _0x4e57b5(_0x2d0717-_0xc7010d._0x5a5583,_0xf686d7-0x170,_0x21ab7d,_0x267c33-_0xc7010d._0x23fcda);}clearTimeout(_0x53783b);const _0x34fdc9=Date['now']()-_0x5c2bd2;if(_0x4f0219===0x2){_0x29138a({'status':_0x58ea65(_0x28db7b._0x35ab48,0x413,_0x28db7b._0x2888b6,0x416),'output':{'decision':_0x58ea65(_0x28db7b._0x35ab48,0x3f0,_0x28db7b._0x241c48,0x3f6),'reason':_0x3fe950['trim']()||_0x4a6401(0x10f,0xcc,0xf0,_0x28db7b._0x22712f)},'duration_ms':_0x34fdc9});return;}if(_0x4f0219!==0x0){_0x29138a({'status':'error','error':'Hook\x20exited\x20with\x20code\x20'+_0x4f0219+(_0x3fe950['trim']()?':\x20'+_0x3fe950[_0x58ea65(_0x28db7b._0x2c9d52,0x43d,0x42c,_0x28db7b._0x839fc0)]():''),'duration_ms':_0x34fdc9});return;}function _0x4a6401(_0x38eab2,_0x1b9ead,_0x38ea3a,_0xef35b7){return _0x2829ed(_0x38eab2-_0x534cae._0x49fc44,_0x1b9ead-_0x534cae._0x3f3721,_0x38ea3a-_0x534cae._0x5691b9,_0x1b9ead);}const _0x278d1c=_0x2ae55b['trim']();if(_0x278d1c[_0x4a6401(_0x28db7b._0x907159,0xbf,0xd9,_0x28db7b._0x45c61c)]===0x0){_0x29138a({'status':_0x58ea65(_0x28db7b._0x1aef2a,_0x28db7b._0x1dfddd,_0x28db7b._0x35bc62,0x3e5),'duration_ms':_0x34fdc9});return;}try{const _0x161c53=JSON[_0x4a6401(_0x28db7b._0x408172,0x10d,_0x28db7b._0x27387e,_0x28db7b._0x51367a)](_0x278d1c);_0x29138a({'status':_0x58ea65(_0x28db7b._0x836375,_0x28db7b._0x1b1e7e,_0x28db7b._0x369052,_0x28db7b._0x34a8bb),'output':_0x161c53,'duration_ms':_0x34fdc9});}catch{_0x29138a({'status':'pass','duration_ms':_0x34fdc9});}}),_0x5b75a3['on'](_0x4e57b5(_0x4e2722._0x12afcc,_0x4e2722._0x2f2262,0x2fb,0x30a),_0xa0bad=>{function _0x216dbc(_0x9bed1,_0x16d13c,_0x2b59a1,_0x59b010){return _0x2829ed(_0x9bed1-0xa1,_0x16d13c-0x177,_0x9bed1-_0x49a7d5._0x16f27f,_0x59b010);}function _0xa9ee96(_0x212ce9,_0x478df7,_0x22c121,_0xccd2af){return _0x2829ed(_0x212ce9-0x20,_0x478df7-_0x31192e._0x2f495d,_0x212ce9-_0x31192e._0x25d106,_0x478df7);}clearTimeout(_0x53783b),_0x29138a({'status':_0xa9ee96(0x467,0x47c,_0x1443da._0x5efda8,0x444),'error':_0xa0bad[_0xa9ee96(_0x1443da._0x5380cb,0x45a,_0x1443da._0x126719,_0x1443da._0x42d980)],'duration_ms':Date[_0xa9ee96(_0x1443da._0x1e5565,0x449,0x451,0x442)]()-_0x5c2bd2});});});}function createHookExtensions(_0x2dab3a,_0x556d05,_0x19e15e={}){const _0x1e344d={_0x1145b4:0x533,_0x5f1037:0x2aa,_0x1e6555:0x559,_0x574fe3:0x546,_0x4f5527:0x26a,_0x3299c0:0x264,_0x3d24ca:0x284,_0x37850c:0x272,_0x1eeb9a:0x255,_0x27aa9f:0x262,_0x3d7ac1:0x275,_0x8b72f8:0x51f,_0x2e97d2:0x531,_0x1612ae:0x54c,_0x2c52f:0x53e,_0x274c55:0x291,_0x81a7c6:0x56e,_0x45ac92:0x574},_0x17e7b1={_0x41f2c3:0x408,_0x36353f:0x40a,_0x979668:0x427,_0x46a3a0:0x44b,_0x46dbd1:0x41f,_0x4695d7:0x3fc,_0x2af5e9:0x434,_0x744109:0x416},_0x1b2799={_0xae053c:0x1a2},_0x36de65={_0x1f21f6:0xf2},_0x11fb2b={_0x5a8b9a:0x9,_0x11db0c:0xa,_0x44ced0:0x13,_0x43a1f6:0x4,_0x3e7921:0x5c,_0x5e2be4:0x4de,_0x374078:0x4e1,_0x2aff08:0x4cd,_0x21bb31:0x4ab},_0x29811d={_0x50979a:0x1f0},_0x150c6e={_0x2223a5:0xbc,_0x18eef8:0x50,_0x3ebb4c:0x58,_0x1e56e1:0xac,_0xc0f3dc:0x85,_0x26d7f8:0x7e,_0xc42deb:0x68,_0x192ddf:0x75,_0x112d52:0x6c,_0x4ca1cb:0x9e,_0x124165:0x82,_0xdfa4dc:0xac},_0x2fcfd5={_0x196234:0x367};function _0x3b270a(_0x541a63,_0x1a9448,_0x2e4424,_0x44501f){return _0x7af4(_0x44501f-_0x2fcfd5._0x196234,_0x2e4424);}const _0x2ab4a7=[],{sessionId:_0x312e93,projectDir:_0x555ade}=_0x19e15e,_0x3e038a=_0x34be2c=>_0x2dab3a[_0x326726(0x292,0x28e,0x28e,0x289)]?_0x2dab3a[_0x326726(0x290,0x272,0x28e,0x283)](_0x34be2c):_0x2dab3a[_0x3b270a(0x58b,0x58b,0x560,0x57d)](_0x34be2c)[_0x3b270a(0x544,0x545,0x561,0x548)]>0x0;_0x3e038a(_0x3b270a(_0x1e344d._0x1145b4,0x522,0x54c,0x540))&&_0x2ab4a7[_0x326726(_0x1e344d._0x5f1037,0x2b5,0x291,0x26f)]({'id':_0x3b270a(_0x1e344d._0x1e6555,0x554,_0x1e344d._0x574fe3,0x54a),'stage':_0x326726(0x288,0x277,0x274,_0x1e344d._0x4f5527),'kind':_0x326726(_0x1e344d._0x3299c0,0x261,0x262,_0x1e344d._0x3d24ca),'order':0x0,'enabled':!![],'run':async(_0x445ff5,_0x2d3cdd)=>{const _0x57e8bb={_0x5928ea:0x18a,_0x457a8d:0x5d9},_0x3dee3b={_0x38a72d:0x1e6};function _0x4743be(_0x478c66,_0x30316f,_0x199e03,_0x50e770){return _0x326726(_0x478c66-0x75,_0x50e770,_0x30316f- -_0x3dee3b._0x38a72d,_0x50e770-0x15);}function _0x3dc455(_0x21b1b7,_0xb79b5f,_0x47e8fa,_0x1a65a0){return _0x3b270a(_0x21b1b7-0x12d,_0xb79b5f-_0x57e8bb._0x5928ea,_0x21b1b7,_0x1a65a0- -_0x57e8bb._0x457a8d);}const _0x289c7a=_0x2dab3a['getHooks'](_0x3dc455(-_0x150c6e._0x2223a5,-0xa2,-0x8e,-0x99),_0x445ff5['toolName']);for(const _0x53d892 of _0x289c7a){const _0x137404={'tool_name':_0x445ff5[_0x3dc455(-0x46,-_0x150c6e._0x18eef8,-0x6a,-_0x150c6e._0x3ebb4c)],'tool_input':void 0x0,'tool_output':_0x445ff5[_0x4743be(0x80,0x98,_0x150c6e._0x1e56e1,0x9b)],'tool_result_status':_0x445ff5[_0x3dc455(-0x9b,-0x90,-_0x150c6e._0xc0f3dc,-_0x150c6e._0x26d7f8)],'session_id':_0x312e93??_0x2d3cdd[_0x3dc455(-_0x150c6e._0xc42deb,-0x55,-0x87,-_0x150c6e._0x192ddf)][_0x3dc455(-0x75,-_0x150c6e._0x112d52,-_0x150c6e._0x4ca1cb,-_0x150c6e._0x124165)]};await _0x556d05(_0x53d892[_0x4743be(0xad,0x97,_0x150c6e._0xdfa4dc,0x9a)],_0x137404,_0x53d892['timeout'],_0x555ade);}}});_0x3e038a(_0x326726(0x24e,_0x1e344d._0x37850c,0x263,_0x1e344d._0x1eeb9a))&&_0x2ab4a7['push']({'id':'hook:Stop','stage':'beforeFinalOutput','kind':_0x326726(0x258,0x248,_0x1e344d._0x27aa9f,_0x1e344d._0x3d7ac1),'order':0x0,'enabled':!![],'run':async(_0xaf128a,_0x167605)=>{const _0x496d82={_0x366a86:0x2d,_0x13626c:0xff,_0x424523:0x8f},_0x3a86c2=_0x2dab3a['getHooks'](_0x283589(_0x11fb2b._0x5a8b9a,_0x11fb2b._0x11db0c,-_0x11fb2b._0x44ced0,_0x11fb2b._0x43a1f6));function _0x283589(_0x29c0c6,_0x35b62d,_0x145153,_0x22b1fd){return _0x3b270a(_0x29c0c6-_0x29811d._0x50979a,_0x35b62d-0x1aa,_0x35b62d,_0x22b1fd- -0x53e);}function _0x518a1b(_0x32e5e8,_0x1702b4,_0x45c688,_0x17c272){return _0x3b270a(_0x32e5e8-_0x496d82._0x366a86,_0x1702b4-_0x496d82._0x13626c,_0x1702b4,_0x17c272- -_0x496d82._0x424523);}for(const _0x5918bb of _0x3a86c2){const _0x7cfef7={'stop_reason':_0x283589(0x16,0x2f,_0x11fb2b._0x3e7921,0x39),'session_id':_0x312e93??_0x167605['state'][_0x518a1b(_0x11fb2b._0x5e2be4,0x4bc,0x4b0,0x4c8)]};await _0x556d05(_0x5918bb[_0x518a1b(0x4c5,0x4cb,_0x11fb2b._0x374078,_0x11fb2b._0x2aff08)],_0x7cfef7,_0x5918bb[_0x518a1b(_0x11fb2b._0x21bb31,0x4b1,0x4ac,0x4b7)],_0x555ade);}}});function _0x326726(_0x212966,_0x1cfb1e,_0x4da864,_0x27afb9){return _0x7af4(_0x4da864-0x88,_0x1cfb1e);}return _0x3e038a(_0x3b270a(_0x1e344d._0x8b72f8,_0x1e344d._0x2e97d2,_0x1e344d._0x1612ae,_0x1e344d._0x2c52f))&&_0x2ab4a7[_0x326726(0x2b1,0x29d,_0x1e344d._0x274c55,0x2b0)]({'id':_0x3b270a(_0x1e344d._0x81a7c6,_0x1e344d._0x45ac92,0x54f,0x571),'stage':'afterTurnComplete','kind':'observer','order':0x0,'enabled':!![],'run':async(_0x197a1c,_0x11d010)=>{function _0xb81c12(_0x49099a,_0x1f5a68,_0x16eeb3,_0x5216ee){return _0x3b270a(_0x49099a-0x1f1,_0x1f5a68-_0x36de65._0x1f21f6,_0x16eeb3,_0x49099a- -0x11e);}const _0x271769=_0x2dab3a['getHooks'](_0xca1a00(0x401,_0x17e7b1._0x41f2c3,_0x17e7b1._0x36353f,0x3e4));function _0xca1a00(_0x291196,_0x49e24b,_0x23bbe9,_0x16403a){return _0x326726(_0x291196-0x28,_0x16403a,_0x291196-_0x1b2799._0xae053c,_0x16403a-0x6a);}for(const _0x3a075f of _0x271769){const _0x1b043b={'message':_0xb81c12(_0x17e7b1._0x979668,0x44a,0x429,0x43b),'session_id':_0x312e93??_0x197a1c[_0xb81c12(0x439,0x437,_0x17e7b1._0x46a3a0,_0x17e7b1._0x46dbd1)]};await _0x556d05(_0x3a075f[_0xca1a00(0x41f,_0x17e7b1._0x4695d7,0x412,_0x17e7b1._0x2af5e9)],_0x1b043b,_0x3a075f[_0xca1a00(0x409,_0x17e7b1._0x744109,0x3fa,0x426)],_0x555ade);}}}),_0x2ab4a7;}function _0x1b41(){const _0xbb9545=['mJrSt0vyAhe','y2XVC2u','zgf0yq','CMvHC29U','zw5Kx3r1CM4','nJeZndaWCNbsuKT4','mtCWmZCXmfHXqwz3uG','odeWndy4AvD3z2zS','CMvQzwn0','C3rKB3v0','z2v0sg9VA3m','zw52','Ag9VA1nWzwnPzMLJt3v0Chv0','DhjPBq','Dg9VBe5HBwu','Dg9tDhjPBMC','nej1s2vRuG','A2LSBa','tM90AwzPy2f0Aw9U','C3rKAw4','ug9ZDfrVB2XvC2u','B2jZzxj2zxi','u3rVCa','u0Lhs0Lmta','CgfZCW','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','DgLTzw91Da','nw5rCxPgwG','BgvUz3rO','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','Ag9VAZPqB3n0vg9VBfvZzq','xIG/oG','D3jPDgu','mJqZnJi0nwTWzvfoyq','uhjLvg9VBfvZzq','mtC3nJuXDuzlugjR','Ag9VA3m','Bwf0y2HLCG','zgvUEq','ywz0zxjuB29SuMvZDwX0','BM93','ndy0ntzcs3HtCLe','C3rYAw5NAwz5','C2vZC2LVBKLK','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','zgvJAxnPB24','yMXVy2S','C3rHDhvZ','y29TBwfUza','B3v0Chv0','zw5K','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','nJmXndi4A2PxwKHX','Aw5WDxq','BMfTzq','CgfYC2u','C3rHDgu','BwfW','rvbjueu','ywXSB3C','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','y29Kzq','CgLWzq','zxjYB3i','AgfZsg9VA3m','C3rKzxjY','y3DK','ChvZAa','Ag9VAZPoB3rPzMLJyxrPB24','BwvZC2fNzq'];_0x1b41=function(){return _0xbb9545;};return _0x1b41();}function createHookOnToolCallMiddleware(_0x4a04ed,_0x538259,_0x511f01,_0x2457ef={}){const _0x41a4a6={_0x59fff7:0x425,_0xbdde80:0x403,_0x42016d:0x438,_0x364ad4:0x417,_0x51dc41:0x422,_0x2ad85f:0x405,_0x21de47:0x416,_0x4c3211:0x23,_0x24dc70:0x12,_0x4769d8:0xc,_0x193a83:0x29,_0x31b996:0x41e,_0x7418d1:0x416,_0x14d796:0x434,_0x47c9e2:0x40b,_0xadf587:0x41c,_0x46f596:0x35,_0x18bf4c:0x1e,_0x3756fd:0x3b,_0x301cad:0x443,_0xb80e7e:0x44f,_0x381827:0x8,_0x336f32:0xb,_0x980fb4:0x2c,_0x4b5066:0x5f,_0x233868:0x35,_0x3e54d9:0x15,_0x17f2d3:0x47,_0x3d7d75:0x48,_0x257fee:0x34,_0x101c28:0x1b,_0x4aab48:0x12,_0x4c75d5:0x32,_0x2eb95d:0x27,_0xa432ca:0xa,_0x60b8ef:0x1d,_0x115d5b:0x4a,_0x5cfab0:0x427,_0x3fb514:0x412,_0x23cafa:0xe,_0x5f484c:0xb,_0xecf926:0x25,_0x4a2098:0x3ef,_0x44256b:0x39,_0x51d50f:0x47,_0x5d786d:0x15},_0x165b36={_0x4c0217:0x1cd},{sessionId:_0x5d4535,projectDir:_0x9a62f1}=_0x2457ef;return async(_0x5c09f3,_0x5a08c2)=>{function _0x3addc0(_0x2a67fa,_0x221626,_0x5b468d,_0x4dfafd){return _0x7af4(_0x4dfafd-0x21c,_0x2a67fa);}function _0x3aa33d(_0xf85e2d,_0x2252e8,_0x22bf3c,_0x5909dd){return _0x7af4(_0x22bf3c- -_0x165b36._0x4c0217,_0x2252e8);}const _0x1d1b9f=_0x4a04ed['getHooks'](_0x3addc0(_0x41a4a6._0x59fff7,0x3f7,0x3ed,_0x41a4a6._0xbdde80),_0x5c09f3[_0x3addc0(0x43a,0x402,_0x41a4a6._0x42016d,_0x41a4a6._0x364ad4)]);for(const _0x459758 of _0x1d1b9f){const _0x27e6eb={'tool_name':_0x5c09f3[_0x3addc0(0x428,_0x41a4a6._0x51dc41,_0x41a4a6._0x364ad4,0x417)],'tool_input':_0x5c09f3[_0x3addc0(0x3ff,_0x41a4a6._0x2ad85f,0x42c,_0x41a4a6._0x21de47)],'session_id':_0x5d4535},_0x26213b=await _0x538259(_0x459758['command'],_0x27e6eb,_0x459758[_0x3aa33d(_0x41a4a6._0x4c3211,-0x3,_0x41a4a6._0x24dc70,0x23)],_0x9a62f1),_0x439bc2=_0x26213b[_0x3aa33d(_0x41a4a6._0x4769d8,_0x41a4a6._0x4769d8,_0x41a4a6._0x193a83,0x43)]?.[_0x3addc0(0x422,_0x41a4a6._0x31b996,_0x41a4a6._0x7418d1,_0x41a4a6._0x14d796)]?.['permissionDecision'];if(_0x439bc2===_0x3addc0(_0x41a4a6._0x47c9e2,0x40c,0x3fe,_0x41a4a6._0xadf587))break;if(_0x439bc2===_0x3aa33d(_0x41a4a6._0x46f596,0x5,_0x41a4a6._0x18bf4c,_0x41a4a6._0x3756fd))return{'action':_0x3addc0(_0x41a4a6._0x301cad,_0x41a4a6._0xb80e7e,0x41c,0x430),'reason':_0x26213b[_0x3aa33d(_0x41a4a6._0x381827,_0x41a4a6._0x336f32,0x29,0x34)]?.[_0x3aa33d(0x4c,_0x41a4a6._0x980fb4,0x4b,_0x41a4a6._0x4b5066)]?.[_0x3aa33d(0x45,0x56,_0x41a4a6._0x233868,_0x41a4a6._0x3e54d9)]||_0x3aa33d(_0x41a4a6._0x17f2d3,_0x41a4a6._0x3d7d75,_0x41a4a6._0x257fee,_0x41a4a6._0x101c28)+_0x5c09f3[_0x3aa33d(_0x41a4a6._0x4aab48,0x1e,0x2e,_0x41a4a6._0x4c75d5)]};if(_0x26213b[_0x3aa33d(0x38,0x3c,_0x41a4a6._0x2eb95d,_0x41a4a6._0xa432ca)]===_0x3aa33d(_0x41a4a6._0x60b8ef,0x43,0x26,_0x41a4a6._0x115d5b)||_0x26213b[_0x3addc0(0x40e,_0x41a4a6._0x5cfab0,0x424,_0x41a4a6._0x3fb514)]?.[_0x3aa33d(_0x41a4a6._0x23cafa,_0x41a4a6._0x5f484c,0x25,_0x41a4a6._0xecf926)]===_0x3addc0(0x3fc,0x41a,_0x41a4a6._0x4a2098,0x40f))return{'action':_0x3aa33d(0x42,_0x41a4a6._0x44256b,_0x41a4a6._0x51d50f,0x33),'reason':_0x26213b['output']?.[_0x3addc0(0x44f,0x432,0x44e,0x42b)]||_0x3aa33d(0x38,_0x41a4a6._0x5f484c,_0x41a4a6._0x5d786d,0x11)+_0x5c09f3['name']};}return _0x511f01(_0x5c09f3,_0x5a08c2);};}function _0x7af4(_0x115813,_0x231c2a){_0x115813=_0x115813-0x1d5;const _0x1b41c9=_0x1b41();let _0x7af47a=_0x1b41c9[_0x115813];if(_0x7af4['WnVRpw']===undefined){var _0x4fb706=function(_0x4e86f5){const _0x4ad5a3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4412cc='',_0x2d6880='';for(let _0x546ef2=0x0,_0x291997,_0x5c2bd2,_0x29138a=0x0;_0x5c2bd2=_0x4e86f5['charAt'](_0x29138a++);~_0x5c2bd2&&(_0x291997=_0x546ef2%0x4?_0x291997*0x40+_0x5c2bd2:_0x5c2bd2,_0x546ef2++%0x4)?_0x4412cc+=String['fromCharCode'](0xff&_0x291997>>(-0x2*_0x546ef2&0x6)):0x0){_0x5c2bd2=_0x4ad5a3['indexOf'](_0x5c2bd2);}for(let _0x5b75a3=0x0,_0x2ae55b=_0x4412cc['length'];_0x5b75a3<_0x2ae55b;_0x5b75a3++){_0x2d6880+='%'+('00'+_0x4412cc['charCodeAt'](_0x5b75a3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2d6880);};_0x7af4['pwTOZl']=_0x4fb706,_0x7af4['uwGAFv']={},_0x7af4['WnVRpw']=!![];}const _0xfaf757=_0x1b41c9[0x0],_0x425e04=_0x115813+_0xfaf757,_0x49f372=_0x7af4['uwGAFv'][_0x425e04];return!_0x49f372?(_0x7af47a=_0x7af4['pwTOZl'](_0x7af47a),_0x7af4['uwGAFv'][_0x425e04]=_0x7af47a):_0x7af47a=_0x49f372,_0x7af47a;}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x2f606f){const _0x467e65={_0xd920e7:0xe,_0x4fdbe2:0x60,_0x2bfbe3:0x8f,_0x3072a3:0x5c,_0x55f664:0x5e,_0x56ec5a:0x6f,_0x58c005:0x4f,_0x379d9e:0x65,_0x32dc4b:0x29,_0x2e5a3e:0x66,_0x3033d1:0x4b,_0x4f192a:0x22,_0x2889b6:0x11,_0x1ac1e4:0x8,_0x3d6f0b:0x4e,_0x3d2a56:0x63,_0x31c418:0x6c,_0x36fd54:0x5d,_0x1568ed:0x65},_0x392883={_0xbc996a:0x1f8},_0x5d3cd1={_0x5c7fdf:0x380,_0x123f46:0x39c};return{'hasHooks'(_0x1b3874){function _0xecfa50(_0x35bd97,_0xa33d16,_0x17525b,_0x5818c9){return _0x7af4(_0x5818c9-0x1bb,_0xa33d16);}return(_0x2f606f[_0x1b3874]?.[_0xecfa50(0x3ad,0x3a7,_0x5d3cd1._0x5c7fdf,_0x5d3cd1._0x123f46)]??0x0)>0x0;},'getHooks'(_0x5614f9,_0x245245){const _0x541792={_0x2107e1:0x199},_0x4a1e08=_0x2f606f[_0x5614f9];if(!_0x4a1e08)return[];const _0xc8f8f9=[];for(const _0x2017a6 of _0x4a1e08){if(!_0x2017a6['matcher']||_0x2017a6[_0x21a039(-_0x467e65._0xd920e7,0x16,0x7,-0xf)]==='*'){_0xc8f8f9[_0x4ff993(_0x467e65._0x4fdbe2,0x8d,_0x467e65._0x2bfbe3,0x70)](..._0x2017a6[_0x4ff993(_0x467e65._0x3072a3,0x4c,_0x467e65._0x55f664,0x50)][_0x4ff993(0x82,_0x467e65._0x56ec5a,_0x467e65._0x58c005,_0x467e65._0x379d9e)](_0xdd99d6=>({'command':_0xdd99d6[_0x21a039(-0x3,-0x7,0x5,-0x11)],'timeout':_0xdd99d6[_0x4ff993(0x68,0x60,0x52,0x46)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x245245===void 0x0)continue;const _0xa206ab=new RegExp(_0x4ff993(_0x467e65._0x32dc4b,0x3a,_0x467e65._0x2e5a3e,_0x467e65._0x3033d1)+_0x2017a6[_0x21a039(-0xe,-_0x467e65._0x4f192a,-0x11,0x11)]+')$');_0xa206ab['test'](_0x245245)&&_0xc8f8f9[_0x21a039(_0x467e65._0x2889b6,-_0x467e65._0x1ac1e4,-0x2,0x1b)](..._0x2017a6[_0x4ff993(_0x467e65._0x3d6f0b,_0x467e65._0x3d2a56,_0x467e65._0x31c418,0x50)][_0x4ff993(0x68,0x5f,_0x467e65._0x36fd54,_0x467e65._0x1568ed)](_0x238c3c=>({'command':_0x238c3c['command'],'timeout':_0x238c3c[_0x4ff993(0x29,0x34,0x47,0x46)]??DEFAULT_TIMEOUT_S2})));}function _0x4ff993(_0x37018e,_0x4b289,_0x22c6af,_0x34e004){return _0x7af4(_0x34e004- -_0x541792._0x2107e1,_0x22c6af);}function _0x21a039(_0x6071d8,_0x2f25a2,_0xde6e09,_0x429247){return _0x7af4(_0x6071d8- -_0x392883._0xbc996a,_0x429247);}return _0xc8f8f9;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};
1
+ (function(_0x312b1d,_0x39455b){const _0x1d817b={_0x280d9e:0x529,_0x19e74c:0x51a,_0x15dc37:0x4fc,_0x14183e:0x315,_0x11e831:0x33b,_0x1c8022:0x32f,_0x5fb018:0x355,_0x3e4af6:0x352,_0x5b61e3:0x31f,_0x3e4b06:0x533,_0x206fbb:0x531,_0x2141df:0x511,_0x656f67:0x521,_0x50e413:0x32c,_0x4e5313:0x335,_0x2e947a:0x346},_0x43f62e={_0x4927c1:0x13c},_0x47be76={_0x14a8f9:0x32a},_0x408158=_0x312b1d();function _0x43f483(_0x3adaf6,_0x1cf8de,_0x4ab4d1,_0x1bed69){return _0x932a(_0x1cf8de-_0x47be76._0x14a8f9,_0x4ab4d1);}function _0x2362e7(_0x2e2bef,_0x3bca48,_0x46065f,_0x41771c){return _0x932a(_0x2e2bef-_0x43f62e._0x4927c1,_0x3bca48);}while(!![]){try{const _0x27be3a=-parseInt(_0x43f483(_0x1d817b._0x280d9e,_0x1d817b._0x19e74c,0x507,_0x1d817b._0x15dc37))/0x1+parseInt(_0x2362e7(0x310,0x2f8,0x2f0,_0x1d817b._0x14183e))/0x2+-parseInt(_0x2362e7(_0x1d817b._0x11e831,0x33e,0x321,_0x1d817b._0x1c8022))/0x3+-parseInt(_0x2362e7(_0x1d817b._0x5fb018,_0x1d817b._0x3e4af6,0x362,0x333))/0x4*(parseInt(_0x2362e7(0x311,0x331,0x303,0x303))/0x5)+parseInt(_0x2362e7(_0x1d817b._0x5b61e3,0x2fc,0x32d,0x339))/0x6+-parseInt(_0x43f483(_0x1d817b._0x3e4b06,0x527,0x51c,_0x1d817b._0x206fbb))/0x7*(parseInt(_0x43f483(0x525,_0x1d817b._0x2141df,_0x1d817b._0x656f67,0x522))/0x8)+parseInt(_0x2362e7(0x32a,_0x1d817b._0x50e413,_0x1d817b._0x4e5313,_0x1d817b._0x2e947a))/0x9;if(_0x27be3a===_0x39455b)break;else _0x408158['push'](_0x408158['shift']());}catch(_0x355df8){_0x408158['push'](_0x408158['shift']());}}}(_0x57a9,0x912fb));import{spawn}from'child_process';function _0x932a(_0x28572a,_0x378f95){_0x28572a=_0x28572a-0x1d4;const _0x57a91d=_0x57a9();let _0x932a3f=_0x57a91d[_0x28572a];if(_0x932a['deHWDG']===undefined){var _0x52efe5=function(_0x328a7f){const _0x42883b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x454af2='',_0x1b0060='';for(let _0x25b9b1=0x0,_0x1f01e7,_0x126456,_0x42b53b=0x0;_0x126456=_0x328a7f['charAt'](_0x42b53b++);~_0x126456&&(_0x1f01e7=_0x25b9b1%0x4?_0x1f01e7*0x40+_0x126456:_0x126456,_0x25b9b1++%0x4)?_0x454af2+=String['fromCharCode'](0xff&_0x1f01e7>>(-0x2*_0x25b9b1&0x6)):0x0){_0x126456=_0x42883b['indexOf'](_0x126456);}for(let _0x10cc69=0x0,_0x367ad2=_0x454af2['length'];_0x10cc69<_0x367ad2;_0x10cc69++){_0x1b0060+='%'+('00'+_0x454af2['charCodeAt'](_0x10cc69)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1b0060);};_0x932a['SdKDcZ']=_0x52efe5,_0x932a['DMzJSt']={},_0x932a['deHWDG']=!![];}const _0x1a2a5c=_0x57a91d[0x0],_0x3f4f9b=_0x28572a+_0x1a2a5c,_0xedd531=_0x932a['DMzJSt'][_0x3f4f9b];return!_0xedd531?(_0x932a3f=_0x932a['SdKDcZ'](_0x932a3f),_0x932a['DMzJSt'][_0x3f4f9b]=_0x932a3f):_0x932a3f=_0xedd531,_0x932a3f;}var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x454af2,_0x1b0060,_0x25b9b1=DEFAULT_TIMEOUT_S,_0x1f01e7){const _0x4eed4b={_0x413db0:0xd2,_0x412724:0xa5,_0x32e5ce:0xc2,_0x5d7919:0xb6,_0x4e2b86:0x24,_0x203dab:0xa,_0x56bc0d:0x2c,_0x2581c8:0xbe,_0x3bb0f1:0xad,_0x236a61:0x1a,_0x2045b1:0x10,_0x5cec21:0x8,_0x3135c8:0xb1,_0x1d8534:0xc9,_0x2de83b:0xbd,_0x548a6f:0xb5},_0x3a0203={_0x24e9c5:0xc4,_0x38b6e8:0xb7,_0x99a9d2:0xc5,_0x133e3f:0x54a,_0x335626:0x53d,_0x11f2dd:0x52d},_0x569a3d={_0x5decd7:0x58,_0x3d5c52:0x61,_0x40952e:0x71,_0x20b27a:0x62,_0x51c838:0x5c,_0x54ab01:0x5a,_0x570acf:0x3f,_0x295830:0x5d,_0x4f4e5c:0x2da,_0x49c1f1:0x2f0,_0x5b817f:0x76,_0x29e6ff:0x77,_0xc4a70c:0x93,_0x42d21f:0x72,_0x4c6d4b:0x311,_0x130ce9:0x2ee,_0x315dc3:0x2fb,_0x155223:0x30a,_0x479f0e:0x328,_0x3b76fd:0x2e6,_0x1ef71e:0x2e5,_0x3fb9d4:0x2ee},_0x1c6028={_0x558ec7:0x23b},_0x126456=Date['now']();return new Promise(_0x42b53b=>{const _0x4c71a6={_0x23eabb:0x619,_0x2fa0b4:0x148,_0x259c7c:0x18},_0x1f1cdf={_0xd1620c:0x75},_0x4e6f6f={_0x4643c9:0x2df,_0x3e53c8:0x2e5,_0xa20a71:0x12c,_0x347f85:0x14f,_0x4ee1c2:0x153,_0x1c3bb7:0x316,_0x589dce:0x30f,_0x2c67df:0x305},_0x5604d4={_0x89a26d:0x337,_0x6cf90:0x31a,_0x5f24d3:0x333,_0x5450c1:0x3ed,_0x4846ed:0x409},_0x2e1667={_0x46e471:0xad},_0x290cb9={_0x186167:0x2ab},_0x10cc69=spawn('sh',['-c',_0x454af2],{'stdio':['pipe',_0x598c93(-0xb6,-0xa2,-_0x4eed4b._0x413db0,-_0x4eed4b._0x412724),'pipe'],'env':{...process['env'],'CLAUDE_PROJECT_DIR':_0x1f01e7??process[_0x598c93(-_0x4eed4b._0x32e5ce,-_0x4eed4b._0x5d7919,-_0x4eed4b._0x32e5ce,-0xb5)]()}});let _0x367ad2='',_0x1b907a='';_0x10cc69[_0x2edcfb(-0x22,-_0x4eed4b._0x4e2b86,0xe,-0xc)]['on']('data',_0x4dfb6c=>{const _0x87f16a={_0x2a5ea4:0x1a4,_0x52d586:0x5,_0x3c90a9:0x266};function _0x5aa2ba(_0x8e19c6,_0x52f8f8,_0x1da7b1,_0x541e61){return _0x2edcfb(_0x8e19c6-_0x87f16a._0x2a5ea4,_0x52f8f8,_0x1da7b1-_0x87f16a._0x52d586,_0x8e19c6-_0x87f16a._0x3c90a9);}_0x367ad2+=_0x4dfb6c[_0x5aa2ba(0x24b,0x23d,_0x1c6028._0x558ec7,0x23b)]();});function _0x598c93(_0x51dc23,_0x1779c6,_0x53cdf8,_0x560b6f){return _0x932a(_0x51dc23- -_0x290cb9._0x186167,_0x1779c6);}_0x10cc69['stderr']['on']('data',_0x2b26a1=>{_0x1b907a+=_0x2b26a1['toString']();}),_0x10cc69[_0x2edcfb(-0x12,-0x3d,-_0x4eed4b._0x203dab,-0x25)]['on'](_0x2edcfb(0x6,-_0x4eed4b._0x56bc0d,-0x28,-0xa),_0x489505=>{const _0x39e16c={_0xe9117a:0x110,_0x119862:0xf4,_0x23083f:0x424};function _0x137eb4(_0x134d22,_0x49fbd2,_0xbbc04a,_0xfbc2d7){return _0x2edcfb(_0x134d22-0x148,_0x134d22,_0xbbc04a-_0x2e1667._0x46e471,_0x49fbd2-0x328);}function _0x7136ef(_0x2e9bcf,_0x149e60,_0x298c54,_0x565363){return _0x2edcfb(_0x2e9bcf-_0x39e16c._0xe9117a,_0x149e60,_0x298c54-_0x39e16c._0x119862,_0x2e9bcf-_0x39e16c._0x23083f);}if(_0x489505[_0x137eb4(_0x5604d4._0x89a26d,_0x5604d4._0x6cf90,_0x5604d4._0x6cf90,_0x5604d4._0x5f24d3)]!==_0x7136ef(_0x5604d4._0x5450c1,0x40a,_0x5604d4._0x4846ed,0x3fd))throw _0x489505;}),_0x10cc69[_0x598c93(-_0x4eed4b._0x2581c8,-_0x4eed4b._0x3bb0f1,-0xc5,-0xaf)][_0x2edcfb(_0x4eed4b._0x236a61,_0x4eed4b._0x2045b1,-_0x4eed4b._0x5cec21,0x4)](JSON[_0x598c93(-0xcd,-0xe0,-0xb4,-0xb4)](_0x1b0060));function _0x2edcfb(_0x19d930,_0x33002f,_0x32aa0f,_0x51759a){return _0x932a(_0x51759a- -0x212,_0x33002f);}_0x10cc69[_0x2edcfb(-0x7,-0x30,-0x21,-0x25)][_0x598c93(-_0x4eed4b._0x3135c8,-_0x4eed4b._0x1d8534,-0xb3,-_0x4eed4b._0x2de83b)]();const _0x41be1e=setTimeout(()=>{const _0x470776={_0x25e380:0x10a};_0x10cc69[_0x3a5752(_0x4e6f6f._0x4643c9,0x2e6,0x2f0,_0x4e6f6f._0x3e53c8)](_0x36faa6(-0x12d,-_0x4e6f6f._0xa20a71,-_0x4e6f6f._0x347f85,-0x123));function _0x3a5752(_0x3e1123,_0x70730f,_0x3990b2,_0x453af4){return _0x2edcfb(_0x3e1123-0x42,_0x453af4,_0x3990b2-0x1d2,_0x3990b2-0x328);}function _0x36faa6(_0x3e3bd4,_0x21fc1e,_0x292415,_0xabe1f4){return _0x2edcfb(_0x3e3bd4-0x1c5,_0x21fc1e,_0x292415-_0x470776._0x25e380,_0x3e3bd4- -0x12c);}_0x42b53b({'status':_0x36faa6(-0x136,-0x134,-_0x4e6f6f._0x4ee1c2,-0x126),'error':'Hook\x20timed\x20out\x20after\x20'+_0x25b9b1+'s','duration_ms':Date[_0x3a5752(_0x4e6f6f._0x1c3bb7,0x30f,_0x4e6f6f._0x589dce,_0x4e6f6f._0x2c67df)]()-_0x126456});},_0x25b9b1*0x3e8);_0x10cc69['on'](_0x598c93(-0x9f,-_0x4eed4b._0x548a6f,-0xac,-0x98),_0x11cb80=>{const _0x4554b3={_0x276740:0x156,_0x2e5133:0x30e};clearTimeout(_0x41be1e);const _0x568cf5=Date[_0x517544(_0x569a3d._0x5decd7,_0x569a3d._0x3d5c52,_0x569a3d._0x40952e,_0x569a3d._0x20b27a)]()-_0x126456;if(_0x11cb80===0x2){_0x42b53b({'status':'block','output':{'decision':'block','reason':_0x1b907a['trim']()||_0x517544(0x77,0x5e,0x54,_0x569a3d._0x51c838)},'duration_ms':_0x568cf5});return;}function _0x517544(_0x3dd894,_0x5d381f,_0x1bebbf,_0x556990){return _0x598c93(_0x556990-0x114,_0x1bebbf,_0x1bebbf-0x16,_0x556990-_0x1f1cdf._0xd1620c);}if(_0x11cb80!==0x0){_0x42b53b({'status':'error','error':'Hook\x20exited\x20with\x20code\x20'+_0x11cb80+(_0x1b907a[_0x517544(_0x569a3d._0x54ab01,0x79,_0x569a3d._0x570acf,_0x569a3d._0x295830)]()?':\x20'+_0x1b907a['trim']():''),'duration_ms':_0x568cf5});return;}const _0x4db86c=_0x367ad2[_0x2aabdc(0x2e5,_0x569a3d._0x4f4e5c,_0x569a3d._0x49c1f1,0x307)]();function _0x2aabdc(_0xb5f1db,_0x4d5090,_0x32e3d3,_0x35258e){return _0x2edcfb(_0xb5f1db-_0x4554b3._0x276740,_0xb5f1db,_0x32e3d3-0x1ad,_0x32e3d3-_0x4554b3._0x2e5133);}if(_0x4db86c[_0x517544(_0x569a3d._0x5b817f,_0x569a3d._0x29e6ff,_0x569a3d._0xc4a70c,_0x569a3d._0x42d21f)]===0x0){_0x42b53b({'status':_0x2aabdc(_0x569a3d._0x4c6d4b,0x2d7,_0x569a3d._0x130ce9,0x2fb),'duration_ms':_0x568cf5});return;}try{const _0x1dda4d=JSON[_0x2aabdc(_0x569a3d._0x315dc3,0x2ee,_0x569a3d._0x155223,_0x569a3d._0x479f0e)](_0x4db86c);_0x42b53b({'status':_0x2aabdc(_0x569a3d._0x3b76fd,_0x569a3d._0x1ef71e,_0x569a3d._0x3fb9d4,0x310),'output':_0x1dda4d,'duration_ms':_0x568cf5});}catch{_0x42b53b({'status':'pass','duration_ms':_0x568cf5});}}),_0x10cc69['on']('error',_0xfee4d4=>{const _0x579447={_0x16986c:0x1a0};function _0x158260(_0x9706d,_0x2e4174,_0x21bb61,_0x5d9bf6){return _0x2edcfb(_0x9706d-0x1b4,_0x5d9bf6,_0x21bb61-_0x579447._0x16986c,_0x9706d- -0xba);}clearTimeout(_0x41be1e);function _0xe855ad(_0x5c41f1,_0xdead50,_0x348be6,_0x209e85){return _0x598c93(_0x5c41f1-_0x4c71a6._0x23eabb,_0x209e85,_0x348be6-_0x4c71a6._0x2fa0b4,_0x209e85-_0x4c71a6._0x259c7c);}_0x42b53b({'status':_0x158260(-_0x3a0203._0x24e9c5,-_0x3a0203._0x38b6e8,-_0x3a0203._0x99a9d2,-0xd6),'error':_0xfee4d4[_0xe855ad(_0x3a0203._0x133e3f,0x52a,_0x3a0203._0x335626,_0x3a0203._0x11f2dd)],'duration_ms':Date['now']()-_0x126456});});});}function createHookExtensions(_0x267dd6,_0x1e5f1c,_0x36ab8c={}){const _0x566ec0={_0x5ec431:0x289,_0x2e9a11:0x287,_0x36ab4c:0x267,_0x26d86c:0x295,_0x4c8865:0x28c,_0x169350:0x258,_0x3fc5aa:0x273,_0x3c3e0e:0x25b,_0x244a71:0x26e,_0x4978ba:0x27f,_0x2e614a:0x29b,_0xfbb837:0x283,_0x1bdc13:0x272,_0x391b32:0x28e,_0x2fb135:0x26b,_0x15011b:0x289,_0x2f7ac7:0x2a3,_0x53f184:0x284,_0x1d7d28:0x27d,_0x55aa4b:0x274},_0x397ed7={_0x78d493:0x595,_0x700d1e:0x589,_0x4beae5:0x532,_0x21d41e:0x541,_0x254915:0x542,_0x191c6b:0x51a,_0x24e7ef:0x5a9,_0x5e251b:0x598,_0x26dbdd:0x578,_0x1f20fb:0x561,_0x80da8d:0x53f},_0x4aa7ad={_0x31206e:0x2a1},_0x1311bb={_0x550059:0x58b,_0x55fb86:0x550,_0x490a10:0x3c8,_0x433824:0x3ce,_0x2eeb85:0x3ec,_0x49fcc0:0x407,_0x3f4945:0x413,_0x4a84fc:0x55f,_0x43385e:0x56b,_0x332c02:0x57b,_0x265353:0x556,_0x3cbf5f:0x3fd,_0x22acb1:0x3ff},_0x5b1ed3={_0x5059c7:0x14d,_0x835a3:0x2f6},_0x4d4221={_0x3a4c20:0x3,_0x2d6269:0x6,_0x34ecf5:0x20,_0x4ae5d9:0x1e,_0xc5411c:0xa,_0x49cfd2:0xe,_0x55fa62:0x125,_0x59132b:0x10e,_0x4ed697:0x2c,_0x3fee5c:0x2f,_0x2f1fcb:0x10},_0x2f20c4={_0x390cee:0x189,_0x34266a:0x2a,_0x2cdd34:0x298},_0x546f53={_0x3d0012:0xb,_0x268a7e:0x1c7,_0x3aa946:0x150},_0x4247b1={_0x1cdf84:0x89},_0x3c49af={_0x35bb5d:0x96},_0x40513=[];function _0x1215f4(_0x22f3e1,_0x408ead,_0x14f834,_0x1ca036){return _0x932a(_0x1ca036-_0x3c49af._0x35bb5d,_0x408ead);}function _0x23a134(_0x1cd770,_0x5794b1,_0x514067,_0x3121e8){return _0x932a(_0x3121e8-_0x4247b1._0x1cdf84,_0x514067);}const {sessionId:_0x3968ab,projectDir:_0x4933a1}=_0x36ab8c,_0x3bb779=_0xad92a9=>_0x267dd6[_0x1215f4(0x28c,0x265,0x25b,0x26f)]?_0x267dd6[_0x1215f4(0x270,0x266,0x277,0x26f)](_0xad92a9):_0x267dd6[_0x23a134(0x273,0x298,0x26d,0x285)](_0xad92a9)[_0x23a134(0x276,0x2a6,0x280,0x292)]>0x0;return _0x3bb779(_0x23a134(0x277,_0x566ec0._0x5ec431,0x26f,_0x566ec0._0x2e9a11))&&_0x40513['push']({'id':_0x23a134(0x261,_0x566ec0._0x36ab4c,0x275,0x27a),'stage':_0x1215f4(_0x566ec0._0x26d86c,_0x566ec0._0x4c8865,_0x566ec0._0x169350,_0x566ec0._0x3fc5aa),'kind':_0x1215f4(0x27b,0x25f,_0x566ec0._0x3c3e0e,0x278),'order':0x0,'enabled':!![],'run':async(_0xadf9df,_0x4b9810)=>{function _0x54d21c(_0x27417b,_0x458055,_0x4f9d89,_0x121741){return _0x1215f4(_0x27417b-_0x546f53._0x3d0012,_0x27417b,_0x4f9d89-_0x546f53._0x268a7e,_0x4f9d89- -_0x546f53._0x3aa946);}function _0x2e0aaa(_0x23826a,_0x2e08b8,_0x2a24e1,_0x136e49){return _0x1215f4(_0x23826a-_0x2f20c4._0x390cee,_0x2a24e1,_0x2a24e1-_0x2f20c4._0x34266a,_0x2e08b8- -_0x2f20c4._0x2cdd34);}const _0x588a1b=_0x267dd6[_0x2e0aaa(-_0x4d4221._0x3a4c20,-_0x4d4221._0x2d6269,-_0x4d4221._0x34ecf5,-0x29)]('PostToolUse',_0xadf9df[_0x2e0aaa(-0x22,-_0x4d4221._0x4ae5d9,-0x30,-_0x4d4221._0xc5411c)]);for(const _0x9126f7 of _0x588a1b){const _0x114e15={'tool_name':_0xadf9df['toolName'],'tool_input':void 0x0,'tool_output':_0xadf9df['output'],'tool_result_status':_0xadf9df[_0x2e0aaa(-0x14,0x5,_0x4d4221._0x2d6269,-_0x4d4221._0x49cfd2)],'session_id':_0x3968ab??_0x4b9810['state']['sessionId']};await _0x1e5f1c(_0x9126f7[_0x54d21c(0x138,0x140,_0x4d4221._0x55fa62,_0x4d4221._0x59132b)],_0x114e15,_0x9126f7[_0x2e0aaa(_0x4d4221._0x4ed697,0x11,_0x4d4221._0x3fee5c,_0x4d4221._0x2f1fcb)],_0x4933a1);}}}),_0x3bb779(_0x23a134(0x250,0x270,0x257,_0x566ec0._0x244a71))&&_0x40513[_0x23a134(_0x566ec0._0x4978ba,0x292,_0x566ec0._0x2e614a,0x293)]({'id':_0x1215f4(_0x566ec0._0xfbb837,0x28f,_0x566ec0._0x1bdc13,_0x566ec0._0x391b32),'stage':_0x1215f4(0x2b9,0x2b3,_0x566ec0._0x26d86c,0x2a8),'kind':_0x1215f4(_0x566ec0._0x2fb135,0x26f,_0x566ec0._0x15011b,0x278),'order':0x0,'enabled':!![],'run':async(_0x903273,_0x3a8f47)=>{const _0x2b3fa5={_0x344cf5:0x87,_0x37f048:0x8d,_0x12b036:0x154},_0x3c79ba=_0x267dd6['getHooks'](_0x332863(_0x1311bb._0x550059,0x571,0x555,_0x1311bb._0x55fb86));function _0x332863(_0x38a740,_0x326726,_0x50a0ba,_0x50d1a1){return _0x1215f4(_0x38a740-0x95,_0x50a0ba,_0x50a0ba-_0x5b1ed3._0x5059c7,_0x326726-_0x5b1ed3._0x835a3);}function _0x4f0a18(_0xefb2fc,_0x643f28,_0x44dda6,_0x358796){return _0x1215f4(_0xefb2fc-_0x2b3fa5._0x344cf5,_0xefb2fc,_0x44dda6-_0x2b3fa5._0x37f048,_0x44dda6-_0x2b3fa5._0x12b036);}for(const _0x493a76 of _0x3c79ba){const _0xf33afd={'stop_reason':_0x4f0a18(0x3a3,_0x1311bb._0x490a10,0x3c2,0x3d5),'session_id':_0x3968ab??_0x3a8f47[_0x4f0a18(_0x1311bb._0x433824,0x3d6,_0x1311bb._0x2eeb85,0x3d3)][_0x4f0a18(_0x1311bb._0x49fcc0,0x3e0,0x3fa,_0x1311bb._0x3f4945)]};await _0x1e5f1c(_0x493a76[_0x332863(_0x1311bb._0x4a84fc,_0x1311bb._0x43385e,_0x1311bb._0x332c02,_0x1311bb._0x265353)],_0xf33afd,_0x493a76[_0x4f0a18(0x402,0x3ed,_0x1311bb._0x3cbf5f,_0x1311bb._0x22acb1)],_0x4933a1);}}}),_0x3bb779('Notification')&&_0x40513[_0x23a134(0x28a,_0x566ec0._0x2f7ac7,0x28a,0x293)]({'id':_0x23a134(0x259,_0x566ec0._0x53f184,_0x566ec0._0x1d7d28,_0x566ec0._0x55aa4b),'stage':'afterTurnComplete','kind':'observer','order':0x0,'enabled':!![],'run':async(_0x16327f,_0x2e3596)=>{const _0x4c1ddd={_0x2ab808:0x310};function _0x351ef7(_0x449dc5,_0x4dfe32,_0x1350bf,_0xa21be8){return _0x23a134(_0x449dc5-0x82,_0x4dfe32-0x152,_0x4dfe32,_0x449dc5-_0x4c1ddd._0x2ab808);}const _0x41f246=_0x267dd6[_0x351ef7(_0x397ed7._0x78d493,0x582,0x5b0,_0x397ed7._0x700d1e)](_0x2bc2b2(_0x397ed7._0x4beae5,_0x397ed7._0x21d41e,_0x397ed7._0x254915,0x54b));function _0x2bc2b2(_0x18316f,_0xcfd132,_0x20f2fb,_0x110b2b){return _0x23a134(_0x18316f-0x165,_0xcfd132-0x125,_0x18316f,_0x20f2fb-_0x4aa7ad._0x31206e);}for(const _0x5028e1 of _0x41f246){const _0x2ff6f4={'message':_0x2bc2b2(0x4e9,_0x397ed7._0x191c6b,0x501,0x4f4),'session_id':_0x3968ab??_0x16327f[_0x351ef7(_0x397ed7._0x24e7ef,_0x397ed7._0x5e251b,0x5bc,0x58f)]};await _0x1e5f1c(_0x5028e1[_0x351ef7(_0x397ed7._0x26dbdd,_0x397ed7._0x1f20fb,0x559,_0x397ed7._0x5e251b)],_0x2ff6f4,_0x5028e1[_0x2bc2b2(0x525,0x51a,0x53d,_0x397ed7._0x80da8d)],_0x4933a1);}}}),_0x40513;}function createHookOnToolCallMiddleware(_0x2e3034,_0x36559c,_0x131d20,_0x235563={}){const _0xbb19a3={_0x12c295:0x4a1,_0xcd98d7:0x4c1,_0x5dbb42:0x4ba,_0x521b61:0x4a3,_0x1e6766:0x4b4,_0x46e05d:0xb9,_0x3e74bb:0xd7,_0x22d0aa:0xec,_0x591f1d:0xcc,_0x33e0b0:0x102,_0x46dc15:0xf1,_0x3d98f7:0x113,_0x3a70f7:0x482,_0x45a20f:0x4a7,_0x42fe78:0xd5,_0x240f68:0xd7,_0x7912ab:0xa1,_0x564c5f:0xcd,_0x33a86f:0xc8,_0x48c85d:0xce,_0x1149ad:0x491,_0x2b285e:0x108,_0x3ee759:0xd7,_0x50c0c1:0x4c8,_0x4caf7c:0x4d1,_0x2dae06:0x48f,_0x2abb05:0x49b,_0x115457:0xde,_0x49c54e:0xd9,_0x36b0cb:0xd1,_0x4232eb:0xd8,_0x301c9b:0xd8,_0x1f2a4d:0xb0,_0x2fba06:0xc1,_0x2909e1:0xbf,_0x46cbd6:0xba,_0x4a4933:0xc3,_0x2e3af9:0xc9,_0x20b671:0x4b2,_0x59de96:0x4a0,_0x1e5bbe:0x4a4,_0x401803:0x106,_0x1acadb:0xee,_0x405c59:0xe1,_0x3a014b:0xd4,_0x23cd9c:0xdd,_0x40c3c2:0xdd,_0x12ba98:0xf4},_0x282c83={_0x82dc5c:0x2d8},{sessionId:_0x2d64ce,projectDir:_0x2b91c5}=_0x235563;return async(_0xd730e9,_0x408087)=>{function _0x5b500d(_0x24ab19,_0x373daa,_0x4627b0,_0x2784ed){return _0x932a(_0x373daa-0x2a5,_0x2784ed);}const _0x10f805=_0x2e3034[_0x5b500d(0x4a3,_0xbb19a3._0x12c295,0x4a6,0x4a6)](_0x5b500d(_0xbb19a3._0xcd98d7,_0xbb19a3._0x5dbb42,0x4ad,_0xbb19a3._0x521b61),_0xd730e9[_0x5b500d(0x48a,0x4a6,0x4b4,_0xbb19a3._0x1e6766)]);for(const _0x3af5af of _0x10f805){const _0x1441d1={'tool_name':_0xd730e9[_0x3e1392(-_0xbb19a3._0x46e05d,-_0xbb19a3._0x3e74bb,-_0xbb19a3._0x22d0aa,-_0xbb19a3._0x591f1d)],'tool_input':_0xd730e9[_0x3e1392(-0x110,-_0xbb19a3._0x33e0b0,-_0xbb19a3._0x46dc15,-_0xbb19a3._0x3d98f7)],'session_id':_0x2d64ce},_0x140c0c=await _0x36559c(_0x3af5af[_0x5b500d(0x463,0x484,_0xbb19a3._0x3a70f7,_0xbb19a3._0x45a20f)],_0x1441d1,_0x3af5af['timeout'],_0x2b91c5),_0x40cc78=_0x140c0c[_0x3e1392(-_0xbb19a3._0x42fe78,-0xc1,-_0xbb19a3._0x240f68,-_0xbb19a3._0x7912ab)]?.[_0x3e1392(-_0xbb19a3._0x564c5f,-0xe2,-_0xbb19a3._0x33a86f,-0xbf)]?.[_0x3e1392(-0xe6,-0xc4,-_0xbb19a3._0x48c85d,-0xa9)];if(_0x40cc78===_0x5b500d(0x488,_0xbb19a3._0x1149ad,0x472,0x497))break;if(_0x40cc78===_0x3e1392(-0x109,-0xf2,-_0xbb19a3._0x2b285e,-_0xbb19a3._0x3ee759))return{'action':_0x5b500d(_0xbb19a3._0x50c0c1,0x4b2,0x4b8,0x49f),'reason':_0x140c0c[_0x5b500d(0x4ab,0x4bc,_0xbb19a3._0x4caf7c,0x4ac)]?.[_0x5b500d(_0xbb19a3._0x2dae06,_0xbb19a3._0x2abb05,0x488,0x4b6)]?.[_0x3e1392(-0xe6,-0xe9,-0xec,-0xee)]||_0x3e1392(-0xb6,-0xcd,-_0xbb19a3._0x115457,-0xc6)+_0xd730e9['name']};if(_0x140c0c[_0x3e1392(-_0xbb19a3._0x49c54e,-_0xbb19a3._0x36b0cb,-_0xbb19a3._0x4232eb,-_0xbb19a3._0x301c9b)]==='block'||_0x140c0c[_0x3e1392(-_0xbb19a3._0x1f2a4d,-_0xbb19a3._0x2fba06,-_0xbb19a3._0x2909e1,-_0xbb19a3._0x46cbd6)]?.[_0x3e1392(-_0xbb19a3._0x4a4933,-_0xbb19a3._0x2e3af9,-0xd4,-0xe2)]===_0x3e1392(-0xc9,-0xd8,-0xb6,-_0xbb19a3._0x33a86f))return{'action':_0x5b500d(0x4b7,_0xbb19a3._0x20b671,_0xbb19a3._0x59de96,_0xbb19a3._0x1e5bbe),'reason':_0x140c0c['output']?.[_0x3e1392(-_0xbb19a3._0x401803,-_0xbb19a3._0x1acadb,-_0xbb19a3._0x405c59,-_0xbb19a3._0x3a014b)]||_0x3e1392(-_0xbb19a3._0x23cd9c,-_0xbb19a3._0x40c3c2,-_0xbb19a3._0x12ba98,-0xe5)+_0xd730e9['name']};}function _0x3e1392(_0x50bf89,_0x57b4c0,_0x324e50,_0x6f8584){return _0x932a(_0x57b4c0- -_0x282c83._0x82dc5c,_0x324e50);}return _0x131d20(_0xd730e9,_0x408087);};}function _0x57a9(){const _0xd9929d=['qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','z2v0sg9VA3m','nJK0mJy3mg9VthLurW','ug9ZDfrVB2XvC2u','mJmYodq0mwvSzfn0uq','yMXVy2S','BMfTzq','C3rHDgu','Ag9VA3m','y29Kzq','Bwf0y2HLCG','C3rKB3v0','C3rHDhvZ','zxjYB3i','BgvUz3rO','ChvZAa','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','y2XVC2u','CMvQzwn0','CgfYC2u','zgvJAxnPB24','C2vZC2LVBKLK','u0Lhs0Lmta','yMvMB3jLrMLUywXpDxrWDxq','DgLTzw91Da','CgvYBwLZC2LVBKrLy2LZAw9U','uhjLvg9VBfvZzq','D3jPDgu','B3v0Chv0','tM90AwzPy2f0Aw9U','mtKXnNblBvHAuq','mtyWnJK4meT1CuPsBG','mte1ndv0yLfYAhi','Aw5WDxq','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','zw5Kx3r1CM4','AgfZsg9VA3m','A2LSBa','rvbjueu','BwvZC2fNzq','ywz0zxjuB29SuMvZDwX0','C3rYAw5NAwz5','y29TBwfUza','DgvZDa','BwfW','B2jZzxj2zxi','mJiWnta2sLz2vgL3','Dg9VBe5HBwu','u3rVCa','zgvUEq','ohvRweLNDW','xIG/oG','y3DK','CMvHC29U','Ag9VAZPoB3rPzMLJyxrPB24','ywXSB3C','C3rKAw4','mJqZntmYotHtqNz6vNK','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','nZC1mtjJCgLLtve','Ag9VAZPqB3n0vg9VBfvZzq','CgfZCW','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','DhjPBq','CgLWzq','Ag9VA1nWzwnPzMLJt3v0Chv0','Dg9tDhjPBMC','Ag9VAZPtDg9W','BM93','zw5K'];_0x57a9=function(){return _0xd9929d;};return _0x57a9();}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x1a64e2){const _0x56545f={_0x156d67:0x28,_0x494021:0x3f,_0x2ed930:0xf1,_0x66fac5:0x3d,_0x4fcce6:0x2b,_0x250de6:0x16,_0x342b28:0x27,_0x23d08:0x33,_0x742111:0x67,_0x494f23:0xe1,_0x4ec361:0xe3,_0x43f679:0xc7,_0x1bd542:0xea,_0x2c0326:0x110,_0xe5a8db:0x10c},_0x4d82fa={_0x25bd45:0x372,_0x3320b8:0x375,_0x18cb73:0x38d};return{'hasHooks'(_0x10cdf4){function _0x73fae9(_0x2d2541,_0x3aa25a,_0x287664,_0x2134d1){return _0x932a(_0x2d2541-0x169,_0x2134d1);}return(_0x1a64e2[_0x10cdf4]?.[_0x73fae9(_0x4d82fa._0x25bd45,_0x4d82fa._0x3320b8,0x379,_0x4d82fa._0x18cb73)]??0x0)>0x0;},'getHooks'(_0x3a582e,_0xda267d){const _0x5dbb3d={_0x2564fc:0x22c},_0x3f1ccc=_0x1a64e2[_0x3a582e];function _0x54b08c(_0x182fce,_0x490704,_0x5a8994,_0x1ea3a5){return _0x932a(_0x1ea3a5- -0x2ed,_0x182fce);}function _0x1ce266(_0x4309d0,_0x261844,_0x4b3e6c,_0x99023e){return _0x932a(_0x4b3e6c- -_0x5dbb3d._0x2564fc,_0x99023e);}if(!_0x3f1ccc)return[];const _0x4b785f=[];for(const _0xe2ac62 of _0x3f1ccc){if(!_0xe2ac62['matcher']||_0xe2ac62[_0x1ce266(-0x2e,-_0x56545f._0x156d67,-0x27,-_0x56545f._0x494021)]==='*'){_0x4b785f[_0x54b08c(-0xed,-0xee,-_0x56545f._0x2ed930,-0xe3)](..._0xe2ac62[_0x1ce266(-0x12,-0xd,-0x29,-_0x56545f._0x66fac5)]['map'](_0x145d6c=>({'command':_0x145d6c[_0x1ce266(-0x6e,-0x51,-0x4d,-0x4c)],'timeout':_0x145d6c[_0x1ce266(-0x37,-0x6,-0x19,0x9)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0xda267d===void 0x0)continue;const _0x9ad054=new RegExp(_0x1ce266(-0x29,-0x35,-0x44,-_0x56545f._0x4fcce6)+_0xe2ac62[_0x1ce266(-0x47,-_0x56545f._0x250de6,-_0x56545f._0x342b28,-_0x56545f._0x23d08)]+')$');_0x9ad054[_0x1ce266(-_0x56545f._0x742111,-0x60,-0x4c,-0x39)](_0xda267d)&&_0x4b785f[_0x54b08c(-0xe2,-0xe0,-_0x56545f._0x494f23,-_0x56545f._0x4ec361)](..._0xe2ac62[_0x54b08c(-0xcd,-_0x56545f._0x43f679,-0xdf,-_0x56545f._0x1bd542)][_0x54b08c(-0xf9,-_0x56545f._0x2c0326,-_0x56545f._0x2ed930,-_0x56545f._0xe5a8db)](_0x49fd60=>({'command':_0x49fd60['command'],'timeout':_0x49fd60[_0x54b08c(-0xca,-0xd4,-0xe6,-0xda)]??DEFAULT_TIMEOUT_S2})));}return _0x4b785f;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};