@nuvin/agent-core 0.2.0-rc.5 → 0.2.0-rc.6

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(_0x7ab346,_0x5ca152){const _0x5a7d0d={_0x221015:0x6f,_0x29f02d:0x7d,_0x3c0ed3:0x76,_0x343ad2:0x71,_0x34e2c3:0x64,_0x4e9652:0x69,_0x1dc498:0x1e0,_0x4b102d:0x1f8,_0x24e0b7:0x1ed,_0x10b7d2:0x78,_0x18896b:0x77};function _0x266ca0(_0x1e1f02,_0x54cf3f,_0xd7e37f,_0x18cbd7){return _0x9cdb(_0x54cf3f- -0xe,_0x1e1f02);}const _0x3d45ae=_0x7ab346();function _0x5346ff(_0x3b9a5e,_0x4c0842,_0x58b626,_0x4caf68){return _0x9cdb(_0x4caf68- -0x262,_0x58b626);}while(!![]){try{const _0x3c118e=-parseInt(_0x266ca0(0x1c9,0x1d3,0x1d5,0x1b2))/0x1+parseInt(_0x5346ff(-0x98,-_0x5a7d0d._0x221015,-0x91,-0x83))/0x2+-parseInt(_0x5346ff(-_0x5a7d0d._0x29f02d,-_0x5a7d0d._0x3c0ed3,-0x78,-_0x5a7d0d._0x343ad2))/0x3*(-parseInt(_0x5346ff(-_0x5a7d0d._0x34e2c3,-_0x5a7d0d._0x4e9652,-0x75,-0x5f))/0x4)+parseInt(_0x266ca0(_0x5a7d0d._0x1dc498,0x1c4,0x1b3,0x1da))/0x5+parseInt(_0x266ca0(0x214,_0x5a7d0d._0x4b102d,0x1f7,_0x5a7d0d._0x24e0b7))/0x6+-parseInt(_0x5346ff(-0x73,-0x95,-_0x5a7d0d._0x10b7d2,-_0x5a7d0d._0x18896b))/0x7+parseInt(_0x5346ff(-0x4f,-0x7c,-0x77,-0x61))/0x8;if(_0x3c118e===_0x5ca152)break;else _0x3d45ae['push'](_0x3d45ae['shift']());}catch(_0x54dc84){_0x3d45ae['push'](_0x3d45ae['shift']());}}}(_0x27b7,0x472f7));function _0x27b7(){const _0x252884=['u0Lhs0Lmta','BgvUz3rO','CgfYC2u','C3rKAw4','CgLWzq','Dg9VBe5HBwu','yMvMB3jLrMLUywXpDxrWDxq','C3rYAw5NAwz5','ntq4otuWy3frEu1S','Ag9VAZPqB3n0vg9VBfvZzq','Bwf0y2HLCG','Ag9VAZPoB3rPzMLJyxrPB24','BMfTzq','C3rHDhvZ','B3v0Chv0','C3rKzxjY','zgvJAxnPB24','y2XVC2u','D3jPDgu','xIG/oG','Ag9VA3m','odm5mJmYAfL5txfm','ywz0zxjuB29SuMvZDwX0','mJGZota4AuXVBMzy','z2v0sg9VA3m','zxjYB3i','ywz0zxjuDxjUq29TCgXLDgu','CMvQzwn0','DgvZDa','yMXVy2S','uhjLvg9VBfvZzq','CgfZCW','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','mZqYmdGYm3nQsLz2uW','ug9ZDfrVB2XvC2u','y29Kzq','sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','zgf0yq','mJuYodm0rMLyDxvK','C2vZC2LVBKLK','tM90AwzPy2f0Aw9U','Ag9VA1nWzwnPzMLJt3v0Chv0','BwfW','C3rHDgu','ChvZAa','AgfZsg9VA3m','ywXSB3C','A2LSBa','BM93','zw5Kx3r1CM4','Dg9tDhjPBMC','DgLTzw91Da','DhjPBq','zw52','mtC3ndG0oevjCNHWqG','y29TBwfUza','oeP0v3LTrW','zgvUEq','y3DK','ody2mti0CxHdtu9N','C3rKB3v0','Aw5WDxq','CMvHC29U','B2jZzxj2zxi','BwvZC2fNzq'];_0x27b7=function(){return _0x252884;};return _0x27b7();}function _0x9cdb(_0x362e9f,_0x1a9138){_0x362e9f=_0x362e9f-0x1ce;const _0x27b7e8=_0x27b7();let _0x9cdb5d=_0x27b7e8[_0x362e9f];if(_0x9cdb['ZPvbaO']===undefined){var _0x3232d9=function(_0x4aea69){const _0x3a7b7f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4fb612='',_0x554abb='';for(let _0x3ef255=0x0,_0x37f700,_0x129543,_0x551921=0x0;_0x129543=_0x4aea69['charAt'](_0x551921++);~_0x129543&&(_0x37f700=_0x3ef255%0x4?_0x37f700*0x40+_0x129543:_0x129543,_0x3ef255++%0x4)?_0x4fb612+=String['fromCharCode'](0xff&_0x37f700>>(-0x2*_0x3ef255&0x6)):0x0){_0x129543=_0x3a7b7f['indexOf'](_0x129543);}for(let _0x2f7d88=0x0,_0x1384aa=_0x4fb612['length'];_0x2f7d88<_0x1384aa;_0x2f7d88++){_0x554abb+='%'+('00'+_0x4fb612['charCodeAt'](_0x2f7d88)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x554abb);};_0x9cdb['suOdQF']=_0x3232d9,_0x9cdb['fOGHWM']={},_0x9cdb['ZPvbaO']=!![];}const _0x37ca03=_0x27b7e8[0x0],_0x8df4a9=_0x362e9f+_0x37ca03,_0x5d3d1e=_0x9cdb['fOGHWM'][_0x8df4a9];return!_0x5d3d1e?(_0x9cdb5d=_0x9cdb['suOdQF'](_0x9cdb5d),_0x9cdb['fOGHWM'][_0x8df4a9]=_0x9cdb5d):_0x9cdb5d=_0x5d3d1e,_0x9cdb5d;}import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x4fb612,_0x554abb,_0x3ef255=DEFAULT_TIMEOUT_S,_0x37f700){const _0x4f4369={_0x31afc0:0x37c,_0x1490bb:0x390,_0x5d5876:0x39c,_0x3a97a9:0x3e6,_0x338363:0x3ce,_0x34bfa2:0x91,_0x30d3cb:0x89,_0x1a39d8:0x3f6,_0x460881:0x63,_0x345849:0x5a,_0x3c0598:0x3aa,_0x55ac57:0x3bb,_0xd6a1f3:0x3be,_0x35b8ea:0x3c1,_0x536e31:0x3dd,_0x353c61:0x67,_0xa1ddff:0xa1,_0x3640aa:0x93,_0x4d8499:0x39e,_0x57f694:0x40,_0x5657c6:0xa8,_0x1e2407:0x77,_0x1bf8b4:0x61,_0x5d383b:0x3f,_0x1bab87:0x5f,_0x50dd26:0x3cf,_0x13df10:0x3a3,_0x113f14:0x3a6},_0x29c3cb={_0x32c27e:0x3b9,_0x1f3cf8:0x3c2,_0x12e2c8:0x386,_0x3b5aa5:0x3d0,_0x218b00:0x3ca,_0x5f4305:0x3d9,_0x26b4ae:0x3e6},_0x19b228={_0x50574f:0xdd,_0x1705b8:0x1eb,_0x2bf725:0x1d8,_0x4fc47a:0x1dc,_0x792a2e:0xbb,_0x26a738:0xad,_0x1f756a:0xce,_0x3f1d82:0x1f9,_0x2bfc0b:0x1e0,_0xa3436a:0xcc,_0x28819b:0xc7,_0x501117:0xcf,_0x50866b:0xbd,_0x2eeed7:0xa6,_0x52ce8b:0x1b6,_0x463206:0x1e9,_0x53f24a:0x1da,_0x4cd26d:0x1ce,_0x379cbf:0x19b,_0x2c4b5e:0x1b5,_0x4c023b:0x1bb,_0x46f40b:0x1da},_0x1dc717={_0x549b88:0x1ce},_0x1facac={_0x1bb831:0x11c,_0x4f5592:0xf7},_0x129543=Date['now']();return new Promise(_0x551921=>{const _0x1f9fbc={_0x490787:0x32,_0x6f0f50:0x591},_0x51ecaa={_0x1b6324:0x505,_0x3c06d6:0x4e8,_0x102a59:0x522,_0x1895f9:0x519,_0xa5536b:0x517,_0x51395f:0x532,_0x25c143:0x4ee,_0x1666ad:0x5da,_0x42d59d:0x5c3},_0x1984b2={_0x563431:0x13d},_0x4cf916={_0x4ea844:0x17c},_0x5d447e={_0x28d137:0xa6,_0x152de3:0xa3},_0x154775={_0x228418:0x5a},_0x6f171={_0x3a739f:0x177},_0x2f7d88=spawn('sh',['-c',_0x4fb612],{'stdio':[_0x3fbd56(_0x4f4369._0x31afc0,_0x4f4369._0x1490bb,0x3ac,_0x4f4369._0x5d5876),'pipe','pipe'],'env':{...process[_0x3fbd56(0x3ea,_0x4f4369._0x3a97a9,0x3ce,_0x4f4369._0x338363)],'CLAUDE_PROJECT_DIR':_0x37f700??process[_0x32ced6(0x88,_0x4f4369._0x34bfa2,0x99,_0x4f4369._0x30d3cb)]()}});let _0x1384aa='',_0x4090c5='';_0x2f7d88[_0x3fbd56(_0x4f4369._0x1a39d8,0x3c1,0x3c6,0x3d5)]['on']('data',_0x28d396=>{const _0x4bfbea={_0x1d461f:0x37,_0x31e1fa:0x1e6,_0xcbc0a4:0x17d};function _0x382e33(_0x32d626,_0xed1621,_0x540d8a,_0x5241d2){return _0x32ced6(_0x32d626-_0x4bfbea._0x1d461f,_0x32d626,_0x540d8a-_0x4bfbea._0x31e1fa,_0x540d8a- -_0x4bfbea._0xcbc0a4);}_0x1384aa+=_0x28d396[_0x382e33(-_0x1facac._0x1bb831,-_0x1facac._0x4f5592,-0xfc,-0xf7)]();}),_0x2f7d88[_0x32ced6(_0x4f4369._0x460881,0x5d,_0x4f4369._0x345849,0x5d)]['on'](_0x3fbd56(0x3b9,_0x4f4369._0x3c0598,_0x4f4369._0x55ac57,_0x4f4369._0xd6a1f3),_0x1f19ad=>{function _0x3f8feb(_0xcdedf4,_0x5ad728,_0x3b25e8,_0x5ae645){return _0x3fbd56(_0x3b25e8,_0x5ad728-0x1d0,_0x3b25e8-_0x6f171._0x3a739f,_0x5ad728- -0x425);}_0x4090c5+=_0x1f19ad[_0x3f8feb(-0x5e,-_0x154775._0x228418,-0x5f,-0x47)]();}),_0x2f7d88[_0x3fbd56(_0x4f4369._0x35b8ea,0x3f6,0x3f9,_0x4f4369._0x536e31)]['on'](_0x32ced6(0x5b,0x54,0x75,_0x4f4369._0x353c61),_0x2a7e5b=>{function _0x2a85cd(_0x178d7c,_0x3376ed,_0x4959e6,_0x2eee36){return _0x3fbd56(_0x4959e6,_0x3376ed-0x1da,_0x4959e6-0x7c,_0x2eee36- -0x45e);}if(_0x2a7e5b[_0x2a85cd(-0xc3,-0xb4,-_0x5d447e._0x28d137,-_0x5d447e._0x152de3)]!=='EPIPE')throw _0x2a7e5b;}),_0x2f7d88[_0x32ced6(0x76,_0x4f4369._0xa1ddff,0x91,_0x4f4369._0x3640aa)][_0x3fbd56(0x3b1,_0x4f4369._0x4d8499,0x3cb,_0x4f4369._0x3c0598)](JSON[_0x32ced6(_0x4f4369._0x57f694,0x59,0x55,0x55)](_0x554abb)),_0x2f7d88[_0x32ced6(0xad,_0x4f4369._0x5657c6,_0x4f4369._0x1e2407,0x93)]['end']();function _0x3fbd56(_0x3e0d7a,_0x13aa1f,_0x54a768,_0x198aaf){return _0x9cdb(_0x198aaf-_0x1dc717._0x549b88,_0x3e0d7a);}function _0x32ced6(_0x226766,_0x8b66aa,_0x4f16f7,_0x4d048b){return _0x9cdb(_0x4d048b- -_0x4cf916._0x4ea844,_0x8b66aa);}const _0x4f9e0b=setTimeout(()=>{const _0x3a9566={_0x37e1b3:0x150,_0xc1779d:0x55b};function _0x23639d(_0x50f107,_0x2e8ef5,_0x4f258d,_0x3d0529){return _0x3fbd56(_0x4f258d,_0x2e8ef5-0x111,_0x4f258d-0x1de,_0x2e8ef5-_0x1984b2._0x563431);}_0x2f7d88[_0x23639d(_0x51ecaa._0x1b6324,_0x51ecaa._0x1b6324,_0x51ecaa._0x3c06d6,_0x51ecaa._0x102a59)](_0x23639d(_0x51ecaa._0x1895f9,_0x51ecaa._0xa5536b,_0x51ecaa._0x51395f,0x509));function _0x5a118a(_0x3191b1,_0x4402bd,_0x3a4509,_0x2fd18b){return _0x32ced6(_0x3191b1-_0x3a9566._0x37e1b3,_0x3191b1,_0x3a4509-0xc3,_0x4402bd-_0x3a9566._0xc1779d);}_0x551921({'status':_0x23639d(0x500,_0x51ecaa._0x25c143,0x4f5,0x4fb),'error':'Hook\x20timed\x20out\x20after\x20'+_0x3ef255+'s','duration_ms':Date[_0x5a118a(0x5f8,_0x51ecaa._0x1666ad,0x5e2,_0x51ecaa._0x42d59d)]()-_0x129543});},_0x3ef255*0x3e8);_0x2f7d88['on'](_0x32ced6(_0x4f4369._0x1bf8b4,0x78,_0x4f4369._0x5d383b,_0x4f4369._0x1bab87),_0x182374=>{function _0x23d850(_0x33c0bd,_0x3c5df5,_0x3efd6d,_0x3efd08){return _0x3fbd56(_0x33c0bd,_0x3c5df5-_0x1f9fbc._0x490787,_0x3efd6d-0x28,_0x3efd08- -_0x1f9fbc._0x6f0f50);}clearTimeout(_0x4f9e0b);const _0x30f844=Date[_0x36ec13(-0xbf,-0xa6,-_0x19b228._0x50574f,-0xd0)]()-_0x129543;if(_0x182374===0x2){_0x551921({'status':_0x23d850(-_0x19b228._0x1705b8,-_0x19b228._0x2bf725,-0x1f6,-_0x19b228._0x4fc47a),'output':{'decision':_0x23d850(-0x1d9,-0x1bc,-0x1fa,-_0x19b228._0x4fc47a),'reason':_0x4090c5[_0x36ec13(-_0x19b228._0x792a2e,-_0x19b228._0x26a738,-_0x19b228._0x1f756a,-0x9e)]()||_0x36ec13(-0xd0,-0xb1,-0xda,-0xcc)},'duration_ms':_0x30f844});return;}function _0x36ec13(_0x187f10,_0x25a33b,_0xd1e939,_0x5eb46a){return _0x32ced6(_0x187f10-0x48,_0x25a33b,_0xd1e939-0x12c,_0x187f10- -0x13e);}if(_0x182374!==0x0){_0x551921({'status':_0x23d850(-0x1e6,-0x1d1,-_0x19b228._0x3f1d82,-_0x19b228._0x2bfc0b),'error':_0x36ec13(-_0x19b228._0xa3436a,-0xc9,-0xdf,-_0x19b228._0x28819b)+_0x182374+(_0x4090c5[_0x36ec13(-0xbb,-_0x19b228._0x501117,-0xb7,-_0x19b228._0x50866b)]()?':\x20'+_0x4090c5['trim']():''),'duration_ms':_0x30f844});return;}const _0x4bc16e=_0x1384aa[_0x36ec13(-0xbb,-_0x19b228._0x2eeed7,-0xcf,-0xac)]();if(_0x4bc16e[_0x23d850(-0x1cd,-0x1a9,-0x1d3,-_0x19b228._0x52ce8b)]===0x0){_0x551921({'status':_0x23d850(-0x1b9,-_0x19b228._0x463206,-0x1be,-_0x19b228._0x53f24a),'duration_ms':_0x30f844});return;}try{const _0x22b0c8=JSON[_0x23d850(-_0x19b228._0x4cd26d,-_0x19b228._0x379cbf,-0x1bf,-_0x19b228._0x2c4b5e)](_0x4bc16e);_0x551921({'status':_0x23d850(-0x1c4,-0x1d9,-_0x19b228._0x4c023b,-_0x19b228._0x46f40b),'output':_0x22b0c8,'duration_ms':_0x30f844});}catch{_0x551921({'status':'pass','duration_ms':_0x30f844});}}),_0x2f7d88['on'](_0x3fbd56(_0x4f4369._0x50dd26,_0x4f4369._0x13df10,_0x4f4369._0x113f14,0x3b1),_0x69a2bd=>{const _0x1919c1={_0x2b64b3:0x15b,_0x8fbd84:0x33b},_0x48dfc5={_0x102a04:0x17,_0x288915:0xe5,_0x2ab86f:0x389};function _0x3315f0(_0x48fc8f,_0x166be7,_0x39ec5f,_0x3adb68){return _0x32ced6(_0x48fc8f-_0x48dfc5._0x102a04,_0x3adb68,_0x39ec5f-_0x48dfc5._0x288915,_0x48fc8f-_0x48dfc5._0x2ab86f);}function _0x1c1758(_0x384001,_0x3497f9,_0x30c4bf,_0x327a57){return _0x32ced6(_0x384001-_0x1919c1._0x2b64b3,_0x327a57,_0x30c4bf-0x1d2,_0x3497f9-_0x1919c1._0x8fbd84);}clearTimeout(_0x4f9e0b),_0x551921({'status':_0x1c1758(_0x29c3cb._0x32c27e,0x3a2,_0x29c3cb._0x1f3cf8,_0x29c3cb._0x12e2c8),'error':_0x69a2bd[_0x1c1758(_0x29c3cb._0x3b5aa5,_0x29c3cb._0x218b00,_0x29c3cb._0x5f4305,_0x29c3cb._0x26b4ae)],'duration_ms':Date[_0x3315f0(0x408,0x411,0x3fa,0x414)]()-_0x129543});});});}function createHookExtensions(_0xa0f835,_0x50f5ea,_0x391d84={}){const _0x2ec8ce={_0x3eb231:0x194,_0x933f6c:0x262,_0x2a645f:0x29a,_0xbccc7b:0x1b1,_0x14c4b2:0x1b4,_0x44769a:0x19d,_0x13c4be:0x2b7,_0x1473b8:0x2a1,_0x2f522f:0x194,_0x2d321d:0x190,_0xc078a9:0x179,_0x3b7e40:0x18b,_0x32357c:0x1ac,_0x194795:0x184,_0x2103f0:0x181,_0x1f2837:0x2b9},_0x4ba8cf={_0x581615:0x53a,_0xabb838:0x53c,_0x367cd5:0x539,_0x356e31:0x515,_0x447376:0xd6,_0x386402:0xb7,_0x28b8e4:0x530,_0x6083a0:0x54f,_0x4bb37c:0x524,_0x232adf:0x544},_0x21fa03={_0x22cbf1:0x25e,_0x504872:0x16a},_0x3da403={_0x3d3765:0x19f,_0x121103:0x177,_0x901027:0x1a1,_0x645a1b:0x223},_0x38d557={_0x2b5e4f:0x326,_0x362779:0x1ea},_0x168140={_0x34d2e0:0x88,_0x5a43a7:0x196,_0xdba7ce:0x102},_0x22f804={_0x3609ec:0x576,_0x21405c:0x398,_0xcf3357:0x396,_0x3249ab:0x3b4,_0x5bccb3:0x59c,_0x167a24:0x57d,_0x37f3ee:0x573,_0x5d9f64:0x57a,_0x422f94:0x5a4,_0x2b8e0d:0x585,_0x2212d5:0x3b0,_0x97e85b:0x3a9,_0x5da358:0x3be,_0x2fbafe:0x5a1,_0x20ad9e:0x5a0},_0x4bcf5d={_0x30f0f4:0x22b};function _0x301049(_0x576376,_0x4b294b,_0x2b9190,_0x1e7530){return _0x9cdb(_0x576376-0xad,_0x4b294b);}const _0xe3466f=[],{sessionId:_0x248705,projectDir:_0x55268e}=_0x391d84,_0x1f9bd6=_0x446e40=>_0xa0f835[_0x301049(0x2a5,0x2bd,0x296,0x2b3)]?_0xa0f835[_0x14816f(0x188,0x195,0x195,0x19a)](_0x446e40):_0xa0f835['getHooks'](_0x446e40)['length']>0x0;_0x1f9bd6('PostToolUse')&&_0xe3466f[_0x14816f(0x1b5,_0x2ec8ce._0x3eb231,0x1ac,0x193)]({'id':_0x301049(0x280,0x279,_0x2ec8ce._0x933f6c,0x26c),'stage':_0x301049(0x28d,0x273,_0x2ec8ce._0x2a645f,0x27a),'kind':_0x14816f(_0x2ec8ce._0xbccc7b,0x1a7,_0x2ec8ce._0x14c4b2,_0x2ec8ce._0x44769a),'order':0x0,'enabled':!![],'run':async(_0x2fc8fa,_0x1b0c1d)=>{const _0x384139={_0x291df5:0x1d5,_0x51d10e:0x1cc},_0xb970d9=_0xa0f835[_0x3af6a2(0x585,_0x22f804._0x3609ec,0x582,0x590)](_0x1079a7(_0x22f804._0x21405c,0x3c2,_0x22f804._0xcf3357,_0x22f804._0x3249ab),_0x2fc8fa[_0x3af6a2(_0x22f804._0x5bccb3,0x59e,0x595,_0x22f804._0x167a24)]);function _0x1079a7(_0x312720,_0x3b485d,_0x2e8126,_0x45c175){return _0x14816f(_0x2e8126,_0x45c175-_0x4bcf5d._0x30f0f4,_0x2e8126-0x2d,_0x45c175-0xfa);}function _0x3af6a2(_0x13b122,_0x2ad169,_0x1e94ba,_0x414dc8){return _0x14816f(_0x1e94ba,_0x414dc8-0x411,_0x1e94ba-_0x384139._0x291df5,_0x414dc8-_0x384139._0x51d10e);}for(const _0x4b5e97 of _0xb970d9){const _0x2b8381={'tool_name':_0x2fc8fa[_0x3af6a2(0x594,_0x22f804._0x37f3ee,0x566,0x57d)],'tool_input':void 0x0,'tool_output':_0x2fc8fa[_0x3af6a2(_0x22f804._0x5d9f64,0x583,_0x22f804._0x422f94,0x586)],'tool_result_status':_0x2fc8fa[_0x3af6a2(0x586,0x59b,0x585,_0x22f804._0x2b8e0d)],'session_id':_0x248705??_0x1b0c1d[_0x1079a7(_0x22f804._0x2212d5,0x3db,_0x22f804._0x97e85b,_0x22f804._0x5da358)][_0x3af6a2(_0x22f804._0x2fbafe,0x583,0x5b2,_0x22f804._0x20ad9e)]};await _0x50f5ea(_0x4b5e97['command'],_0x2b8381,_0x4b5e97['timeout'],_0x55268e);}}});_0x1f9bd6('Stop')&&_0xe3466f['push']({'id':'hook:Stop','stage':_0x301049(0x27d,0x292,0x27a,0x272),'kind':_0x301049(_0x2ec8ce._0x13c4be,0x2c1,_0x2ec8ce._0x1473b8,0x2b5),'order':0x0,'enabled':!![],'run':async(_0x54668,_0x172788)=>{function _0x553e78(_0x42d422,_0x126fa1,_0x4b045d,_0x125688){return _0x14816f(_0x4b045d,_0x42d422-_0x168140._0x34d2e0,_0x4b045d-_0x168140._0x5a43a7,_0x125688-_0x168140._0xdba7ce);}function _0x39ed7f(_0x26d5c2,_0x3ebce3,_0x13919d,_0x26d09a){return _0x14816f(_0x13919d,_0x26d09a- -_0x38d557._0x2b5e4f,_0x13919d-0xb6,_0x26d09a-_0x38d557._0x362779);}const _0x5023da=_0xa0f835[_0x553e78(0x207,0x209,0x211,0x20e)]('Stop');for(const _0x365acf of _0x5023da){const _0x138f98={'stop_reason':_0x39ed7f(-0x19e,-_0x3da403._0x3d3765,-0x1ad,-0x18d),'session_id':_0x248705??_0x172788[_0x39ed7f(-_0x3da403._0x121103,-0x1ab,-0x19c,-0x193)][_0x39ed7f(-_0x3da403._0x901027,-0x184,-0x19f,-0x197)]};await _0x50f5ea(_0x365acf['command'],_0x138f98,_0x365acf[_0x553e78(_0x3da403._0x645a1b,0x231,0x217,0x237)],_0x55268e);}}});function _0x14816f(_0xdd28d3,_0x1603e0,_0x22e5b8,_0x3eab6a){return _0x9cdb(_0x1603e0- -0x63,_0xdd28d3);}return _0x1f9bd6(_0x14816f(_0x2ec8ce._0x2f522f,_0x2ec8ce._0x2d321d,_0x2ec8ce._0xc078a9,0x18c))&&_0xe3466f[_0x14816f(0x19d,0x194,_0x2ec8ce._0x3b7e40,_0x2ec8ce._0x32357c)]({'id':_0x14816f(0x192,0x172,0x183,_0x2ec8ce._0x194795),'stage':_0x14816f(0x18e,_0x2ec8ce._0x2103f0,0x180,0x19d),'kind':_0x301049(0x2b7,0x2ba,_0x2ec8ce._0x1f2837,0x2a9),'order':0x0,'enabled':!![],'run':async(_0x106806,_0x2ca316)=>{const _0x5b0ee1={_0x591664:0x3a9};function _0xbb4ed2(_0x16cd0a,_0xdb417b,_0x3dae9b,_0x182c6c){return _0x14816f(_0x182c6c,_0x3dae9b- -_0x21fa03._0x22cbf1,_0x3dae9b-_0x21fa03._0x504872,_0x182c6c-0x2a);}function _0x194f42(_0x16242a,_0x5bc31c,_0x2f47d9,_0xbd77f4){return _0x14816f(_0x5bc31c,_0xbd77f4-_0x5b0ee1._0x591664,_0x2f47d9-0x76,_0xbd77f4-0x112);}const _0xe90853=_0xa0f835[_0x194f42(0x537,0x535,0x52f,0x528)](_0x194f42(_0x4ba8cf._0x581615,_0x4ba8cf._0xabb838,0x540,_0x4ba8cf._0x367cd5));for(const _0x44e8b8 of _0xe90853){const _0x8d0f16={'message':_0x194f42(_0x4ba8cf._0x356e31,0x538,0x547,0x535),'session_id':_0x248705??_0x106806['sessionId']};await _0x50f5ea(_0x44e8b8[_0xbb4ed2(-0xd5,-_0x4ba8cf._0x447376,-0xbf,-_0x4ba8cf._0x386402)],_0x8d0f16,_0x44e8b8[_0x194f42(_0x4ba8cf._0x28b8e4,_0x4ba8cf._0x6083a0,_0x4ba8cf._0x4bb37c,_0x4ba8cf._0x232adf)],_0x55268e);}}}),_0xe3466f;}function createHookOnToolCallMiddleware(_0x548704,_0x56d07b,_0x6c5c5e,_0x439347={}){const _0x2730f6={_0x32f6bb:0x38,_0x6cf407:0x40,_0x5b1974:0x42,_0x42ffef:0x28f,_0x497ba6:0x27e,_0x5d2fe0:0x45,_0x16f5bc:0x36,_0x56ae9a:0x39,_0x52f187:0x2ac,_0x3e1926:0x2af,_0x48d8ec:0x291,_0x542a67:0x28e,_0x50a098:0x2a5,_0x49911f:0x2a3,_0x64eea:0x59,_0x24bd07:0x59,_0x492fff:0x28a,_0x4996eb:0x2c3,_0x53df3f:0x1a,_0x31af00:0x3d,_0x2e2aba:0x38,_0x5311af:0x27f,_0x27c0a5:0x29b,_0x4434a6:0x27b,_0xbfc7c0:0x28c,_0x4f38ee:0x278,_0x1a67ae:0x46,_0x1b1baf:0x53,_0x123b8f:0x260,_0x44478c:0x26e,_0x3dcd02:0x29d,_0x54d0a9:0x289,_0x1035a8:0x281,_0x42f3a7:0x58,_0x32e99c:0x4a,_0x374d1a:0x29e,_0x362f84:0x4b,_0x405d38:0x67,_0x52e571:0x69},{sessionId:_0x544c7e,projectDir:_0xee5d8b}=_0x439347;return async(_0x17fc7d,_0x3104be)=>{const _0x5142e9=_0x548704[_0x2ec422(0x5c,_0x2730f6._0x32f6bb,_0x2730f6._0x6cf407,_0x2730f6._0x5b1974)](_0x1c2f27(0x2ae,0x295,_0x2730f6._0x42ffef,_0x2730f6._0x497ba6),_0x17fc7d[_0x2ec422(0x30,_0x2730f6._0x5d2fe0,0x1b,_0x2730f6._0x16f5bc)]);function _0x1c2f27(_0x4ee563,_0x5bd5d6,_0x14762f,_0x1457a9){return _0x9cdb(_0x14762f-0xa7,_0x4ee563);}for(const _0x2cb5c5 of _0x5142e9){const _0x44272c={'tool_name':_0x17fc7d[_0x2ec422(_0x2730f6._0x56ae9a,0x56,0x4d,0x36)],'tool_input':_0x17fc7d[_0x1c2f27(0x2d0,_0x2730f6._0x52f187,_0x2730f6._0x3e1926,_0x2730f6._0x48d8ec)],'session_id':_0x544c7e},_0x3a9d5e=await _0x56d07b(_0x2cb5c5['command'],_0x44272c,_0x2cb5c5[_0x1c2f27(_0x2730f6._0x542a67,0x292,_0x2730f6._0x50a098,_0x2730f6._0x49911f)],_0xee5d8b),_0x209d7e=_0x3a9d5e[_0x2ec422(0x51,0x3a,0x44,_0x2730f6._0x32f6bb)]?.['hookSpecificOutput']?.['permissionDecision'];if(_0x209d7e===_0x2ec422(0x4d,_0x2730f6._0x64eea,0x65,_0x2730f6._0x24bd07))break;if(_0x209d7e===_0x1c2f27(_0x2730f6._0x492fff,_0x2730f6._0x4996eb,0x2ab,0x296))return{'action':'reject','reason':_0x3a9d5e[_0x2ec422(_0x2730f6._0x53df3f,0x48,_0x2730f6._0x31af00,_0x2730f6._0x2e2aba)]?.[_0x1c2f27(_0x2730f6._0x5311af,0x2a1,_0x2730f6._0x27c0a5,0x297)]?.['permissionDecisionReason']||'Permission\x20denied\x20for\x20'+_0x17fc7d[_0x1c2f27(_0x2730f6._0x4434a6,_0x2730f6._0xbfc7c0,0x27d,_0x2730f6._0x4f38ee)]};if(_0x3a9d5e[_0x2ec422(_0x2730f6._0x1a67ae,_0x2730f6._0x1b1baf,0x53,0x37)]===_0x2ec422(0x55,_0x2730f6._0x24bd07,0x2a,0x47)||_0x3a9d5e[_0x1c2f27(_0x2730f6._0x123b8f,_0x2730f6._0x44478c,0x27f,_0x2730f6._0x3dcd02)]?.[_0x1c2f27(_0x2730f6._0x54d0a9,0x270,_0x2730f6._0x1035a8,0x271)]===_0x2ec422(_0x2730f6._0x42f3a7,_0x2730f6._0x32e99c,0x32,0x47))return{'action':_0x1c2f27(_0x2730f6._0x374d1a,_0x2730f6._0x27c0a5,_0x2730f6._0xbfc7c0,0x28a),'reason':_0x3a9d5e['output']?.[_0x2ec422(_0x2730f6._0x362f84,_0x2730f6._0x405d38,0x76,_0x2730f6._0x52e571)]||'Blocked\x20by\x20PreToolUse\x20hook\x20for\x20'+_0x17fc7d['name']};}function _0x2ec422(_0x13501c,_0x5b2309,_0x29ca59,_0x38ad1c){return _0x9cdb(_0x38ad1c- -0x1a0,_0x5b2309);}return _0x6c5c5e(_0x17fc7d,_0x3104be);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x26268b){const _0x7372d8={_0x9b5f8d:0xca,_0x370b86:0xad,_0x11fb92:0xb1,_0x3779c9:0xc5,_0x4f35a8:0xcf,_0x313ba4:0xbe,_0x4b9f37:0x98,_0x45f873:0x466,_0x9db629:0x460,_0x4db3ff:0x46e,_0xb5a019:0x46b,_0xf181ed:0x456,_0x16deb4:0x452,_0x10ef2b:0x44d,_0x3de9e3:0x46d,_0x3db9b3:0xc6,_0x1532fb:0xa0,_0x4b4ea3:0xbf,_0x4a308a:0x482,_0x80376a:0x470,_0x10e4b3:0x47c},_0x231b63={_0x56f19f:0x127},_0x5b3c47={_0x3bdf26:0x24f};return{'hasHooks'(_0x5cae4f){function _0x571ff4(_0x42ae8e,_0x1cf59a,_0x277263,_0x29ff3e){return _0x9cdb(_0x29ff3e-0x26,_0x277263);}return(_0x26268b[_0x5cae4f]?.[_0x571ff4(0x233,0x220,_0x5b3c47._0x3bdf26,0x233)]??0x0)>0x0;},'getHooks'(_0x25dadd,_0x459017){const _0x4792d3={_0x4ea8ad:0x279};function _0x1f1373(_0x4c3dc5,_0x280a7a,_0x2b6b8c,_0x39a408){return _0x9cdb(_0x2b6b8c-_0x4792d3._0x4ea8ad,_0x280a7a);}const _0x1f21ef=_0x26268b[_0x25dadd];function _0x45420b(_0x36e2e5,_0x3e83ed,_0x491096,_0x215fd5){return _0x9cdb(_0x215fd5- -_0x231b63._0x56f19f,_0x36e2e5);}if(!_0x1f21ef)return[];const _0x100eac=[];for(const _0x47538a of _0x1f21ef){if(!_0x47538a[_0x45420b(0xbb,_0x7372d8._0x9b5f8d,0xb7,_0x7372d8._0x370b86)]||_0x47538a[_0x45420b(_0x7372d8._0x11fb92,0xab,_0x7372d8._0x3779c9,0xad)]==='*'){_0x100eac[_0x45420b(0xd0,0xf0,_0x7372d8._0x4f35a8,0xd0)](..._0x47538a[_0x45420b(_0x7372d8._0x313ba4,0xa7,_0x7372d8._0x4b9f37,0xb7)][_0x1f1373(_0x7372d8._0x45f873,_0x7372d8._0x9db629,_0x7372d8._0x4db3ff,_0x7372d8._0xb5a019)](_0x5f2b88=>({'command':_0x5f2b88['command'],'timeout':_0x5f2b88[_0x45420b(0xb6,0xef,0xd9,0xd7)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x459017===void 0x0)continue;const _0x55b9ce=new RegExp(_0x1f1373(_0x7372d8._0xb5a019,0x44d,_0x7372d8._0xf181ed,_0x7372d8._0x16deb4)+_0x47538a[_0x1f1373(0x45d,0x42f,_0x7372d8._0x10ef2b,_0x7372d8._0x3de9e3)]+')$');_0x55b9ce[_0x45420b(_0x7372d8._0x3db9b3,0xd1,_0x7372d8._0x1532fb,_0x7372d8._0x4b4ea3)](_0x459017)&&_0x100eac[_0x1f1373(_0x7372d8._0x4a308a,0x46f,_0x7372d8._0x80376a,_0x7372d8._0x10e4b3)](..._0x47538a[_0x1f1373(_0x7372d8._0x16deb4,0x436,0x457,0x43e)][_0x1f1373(0x480,0x462,0x46e,0x485)](_0x4bc4e4=>({'command':_0x4bc4e4[_0x45420b(0xbf,0xcf,0xc7,0xdb)],'timeout':_0x4bc4e4[_0x45420b(0xe8,0xc4,0xba,0xd7)]??DEFAULT_TIMEOUT_S2})));}return _0x100eac;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};
1
+ (function(_0x5d7d98,_0x437334){const _0x4fbd45={_0x2d8694:0x337,_0x10e6f4:0x336,_0x822f2:0x353,_0x56be86:0x328,_0x302b79:0x33a,_0x488045:0x31f,_0x5712b8:0x34a,_0x27ab22:0x356,_0x45db37:0x35c,_0x1c5902:0x340,_0x40cad5:0xc3,_0x3e8d27:0xf9,_0x7f6503:0xdd,_0x195dc3:0xbe,_0x332907:0x107,_0x25edaf:0xed,_0x46fb5f:0xd0,_0x31fa1d:0xc8,_0x3204be:0xd4,_0xfef157:0x349,_0x34283f:0x32b,_0x5071f3:0x332},_0x5c3600={_0x565a9b:0x167};function _0x26e8f5(_0x9486b9,_0x38d676,_0x10189e,_0x78a074){return _0x15c2(_0x9486b9- -0x3ca,_0x38d676);}function _0x4b295a(_0x55eb23,_0x484e6d,_0x30f719,_0x615418){return _0x15c2(_0x484e6d- -_0x5c3600._0x565a9b,_0x55eb23);}const _0x41472e=_0x5d7d98();while(!![]){try{const _0x18b9b7=-parseInt(_0x26e8f5(-_0x4fbd45._0x2d8694,-_0x4fbd45._0x10e6f4,-_0x4fbd45._0x822f2,-_0x4fbd45._0x56be86))/0x1+-parseInt(_0x26e8f5(-0x33d,-_0x4fbd45._0x302b79,-_0x4fbd45._0x488045,-0x32a))/0x2+parseInt(_0x26e8f5(-_0x4fbd45._0x5712b8,-_0x4fbd45._0x27ab22,-_0x4fbd45._0x45db37,-_0x4fbd45._0x1c5902))/0x3*(-parseInt(_0x4b295a(-0xde,-0xe4,-_0x4fbd45._0x40cad5,-0xcc))/0x4)+parseInt(_0x4b295a(-_0x4fbd45._0x3e8d27,-_0x4fbd45._0x7f6503,-0xe3,-_0x4fbd45._0x195dc3))/0x5+parseInt(_0x4b295a(-0x113,-0xfc,-_0x4fbd45._0x332907,-_0x4fbd45._0x25edaf))/0x6+-parseInt(_0x4b295a(-_0x4fbd45._0x46fb5f,-_0x4fbd45._0x31fa1d,-_0x4fbd45._0x3204be,-0xa7))/0x7+parseInt(_0x26e8f5(-0x327,-_0x4fbd45._0xfef157,-0x330,-_0x4fbd45._0x34283f))/0x8*(parseInt(_0x26e8f5(-0x32d,-0x311,-_0x4fbd45._0x5071f3,-0x331))/0x9);if(_0x18b9b7===_0x437334)break;else _0x41472e['push'](_0x41472e['shift']());}catch(_0x4dde3f){_0x41472e['push'](_0x41472e['shift']());}}}(_0x4d99,0x56cad));import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;function _0x15c2(_0x204bd6,_0x17ef20){_0x204bd6=_0x204bd6-0x66;const _0x4d9982=_0x4d99();let _0x15c2a0=_0x4d9982[_0x204bd6];if(_0x15c2['VjhzBM']===undefined){var _0x242efc=function(_0x1b4725){const _0x5a8681='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xa6e7f6='',_0x5359c8='';for(let _0x1b8c79=0x0,_0x7920b9,_0x1bead6,_0xe33cfb=0x0;_0x1bead6=_0x1b4725['charAt'](_0xe33cfb++);~_0x1bead6&&(_0x7920b9=_0x1b8c79%0x4?_0x7920b9*0x40+_0x1bead6:_0x1bead6,_0x1b8c79++%0x4)?_0xa6e7f6+=String['fromCharCode'](0xff&_0x7920b9>>(-0x2*_0x1b8c79&0x6)):0x0){_0x1bead6=_0x5a8681['indexOf'](_0x1bead6);}for(let _0x57b54b=0x0,_0x41b069=_0xa6e7f6['length'];_0x57b54b<_0x41b069;_0x57b54b++){_0x5359c8+='%'+('00'+_0xa6e7f6['charCodeAt'](_0x57b54b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5359c8);};_0x15c2['DlxZiP']=_0x242efc,_0x15c2['nsrvxt']={},_0x15c2['VjhzBM']=!![];}const _0x29a240=_0x4d9982[0x0],_0xe048ae=_0x204bd6+_0x29a240,_0x2ba733=_0x15c2['nsrvxt'][_0xe048ae];return!_0x2ba733?(_0x15c2a0=_0x15c2['DlxZiP'](_0x15c2a0),_0x15c2['nsrvxt'][_0xe048ae]=_0x15c2a0):_0x15c2a0=_0x2ba733,_0x15c2a0;}async function executeCommandHook(_0xa6e7f6,_0x5359c8,_0x1b8c79=DEFAULT_TIMEOUT_S,_0x7920b9){const _0x36613b={_0x4c059f:0x22f,_0x6fcff5:0x264,_0x1eb1b8:0x249},_0x512e2d={_0x56de31:0x31b,_0x4fa1ad:0x32f,_0x143c7b:0x318,_0x104709:0x2a0,_0x1c64c6:0x2ce,_0x221cfa:0x2bb,_0x19c604:0x2d2,_0x237b0a:0x2d0,_0x44dff9:0x2c0,_0x3d47b7:0x2b3,_0x243134:0x2d8,_0x42a42e:0x31b,_0x32ca4d:0x31e,_0x3ba931:0x2b2,_0x33af4b:0x2d7,_0x474b3d:0x2c3,_0x33a051:0x2fe,_0x4ac12a:0x319,_0x210d03:0x314,_0x190222:0x2ac,_0x1b1680:0x2c1,_0x172eda:0x2ee,_0x1026cf:0x2da,_0x54c1fe:0x2d2,_0x168ed8:0x2e2,_0x301b1e:0x2db,_0x3b183b:0x319,_0x269a0f:0x2c1,_0x2e9694:0x310,_0x33f3d8:0x2ce,_0x271c9b:0x2e9},_0x4b3a56={_0x22b7e8:0x7d,_0x5dd5c0:0x7b,_0x616378:0xfa},_0x4ff489={_0x599528:0x83,_0x2cf287:0x534,_0x215e7b:0xa8};function _0x3a2942(_0x25ffda,_0x46e356,_0x113920,_0x4fb6d8){return _0x15c2(_0x113920-0x1dd,_0x46e356);}const _0x1bead6=Date[_0x3a2942(_0x36613b._0x4c059f,_0x36613b._0x6fcff5,_0x36613b._0x1eb1b8,0x238)]();return new Promise(_0xe33cfb=>{const _0x721981={_0x13a184:0x1,_0x357110:0x18,_0x567b40:0x2fc,_0x55ae95:0x302,_0x3bd04a:0x34f},_0x4d4676={_0x4fe4b5:0x2f2},_0x5291ae={_0x268a7f:0x146,_0x293374:0x12f,_0x362169:0x132,_0x509001:0x165,_0x3fc47b:0x319,_0x15f1fe:0x15c,_0x8d64dc:0x165,_0x2823b6:0x168,_0x37aaa3:0x354,_0x18f125:0x32a,_0xff061a:0x347,_0x148aba:0x138,_0x727765:0x11f,_0x52ee01:0x30e,_0x254673:0x328,_0x19c1fb:0x346,_0x47bbe3:0x123,_0x1433a7:0x105,_0x58ec43:0x14b,_0xb9db10:0x15c,_0x9082ca:0x321,_0x4b5511:0x31a,_0x1306b7:0x309},_0x2a8b52={_0x20914a:0x153,_0x22022:0xf0,_0x25eb2e:0xd5,_0x54af78:0xd8,_0x9673a8:0xf5,_0x120159:0x149,_0x5f43f7:0x139,_0x30fa21:0x163,_0x46c89b:0x169},_0x3a190d={_0x5a226e:0x22,_0x3208e3:0x115},_0x3b08e4={_0x47b7ed:0x1d3,_0x245123:0x3c9},_0x21ae49={_0x5245cc:0x35,_0x48fd71:0x25},_0x4f3b5e={_0x324179:0xf4,_0x228c2a:0x323},_0x391f09={_0x599f58:0xaf,_0x25e154:0xa6};function _0x4f5b72(_0x57860c,_0x3a8c44,_0x5a798b,_0x28a150){return _0x3a2942(_0x57860c-_0x4ff489._0x599528,_0x57860c,_0x28a150- -_0x4ff489._0x2cf287,_0x28a150-_0x4ff489._0x215e7b);}const _0x57b54b=spawn('sh',['-c',_0xa6e7f6],{'stdio':[_0x4393a6(_0x512e2d._0x56de31,_0x512e2d._0x4fa1ad,_0x512e2d._0x143c7b,0x2f8),_0x4f5b72(-_0x512e2d._0x104709,-0x2e0,-0x2d4,-0x2c2),_0x4f5b72(-_0x512e2d._0x1c64c6,-_0x512e2d._0x221cfa,-_0x512e2d._0x19c604,-0x2c2)],'env':{...process[_0x4f5b72(-0x2e9,-0x2cf,-_0x512e2d._0x237b0a,-0x2e8)],'CLAUDE_PROJECT_DIR':_0x7920b9??process[_0x4f5b72(-0x2b9,-0x2d6,-0x2c3,-0x2b5)]()}});let _0x41b069='',_0x240857='';function _0x4393a6(_0x2bae84,_0x5a713b,_0x1d9d52,_0x502a1d){return _0x3a2942(_0x2bae84-_0x391f09._0x599f58,_0x2bae84,_0x1d9d52-_0x391f09._0x25e154,_0x502a1d-0xca);}_0x57b54b[_0x4f5b72(-_0x512e2d._0x44dff9,-0x2a6,-0x2b9,-_0x512e2d._0x3d47b7)]['on'](_0x4f5b72(-0x2dd,-_0x512e2d._0x243134,-0x2a9,-0x2c3),_0x4eab2a=>{_0x41b069+=_0x4eab2a['toString']();}),_0x57b54b[_0x4393a6(_0x512e2d._0x42a42e,0x303,_0x512e2d._0x32ca4d,0x324)]['on'](_0x4f5b72(-_0x512e2d._0x3ba931,-_0x512e2d._0x33af4b,-0x2b2,-_0x512e2d._0x474b3d),_0x4db688=>{function _0x21f1dc(_0x215ac6,_0x5bd66f,_0x4154bb,_0x275b66){return _0x4f5b72(_0x5bd66f,_0x5bd66f-_0x4f3b5e._0x324179,_0x4154bb-0x18a,_0x215ac6-_0x4f3b5e._0x228c2a);}_0x240857+=_0x4db688[_0x21f1dc(_0x21ae49._0x5245cc,_0x21ae49._0x5245cc,_0x21ae49._0x48fd71,0x32)]();}),_0x57b54b[_0x4393a6(0x308,_0x512e2d._0x33a051,_0x512e2d._0x4ac12a,_0x512e2d._0x210d03)]['on'](_0x4f5b72(-0x2e4,-0x300,-0x2d7,-0x2e9),_0x2191d8=>{const _0x305956={_0x2caddc:0x43,_0x109dc8:0x1e3,_0x517c74:0x344};function _0x15b1d9(_0x18f5eb,_0x323d21,_0x4d38f2,_0x3c2579){return _0x4f5b72(_0x323d21,_0x323d21-0xd8,_0x4d38f2-_0x3b08e4._0x47b7ed,_0x4d38f2-_0x3b08e4._0x245123);}function _0x4a2558(_0x52b5e8,_0x2e8ce4,_0x122416,_0xe57feb){return _0x4f5b72(_0x122416,_0x2e8ce4-_0x305956._0x2caddc,_0x122416-_0x305956._0x109dc8,_0x52b5e8-_0x305956._0x517c74);}if(_0x2191d8[_0x4a2558(_0x4b3a56._0x22b7e8,0x9e,0x6c,_0x4b3a56._0x5dd5c0)]!==_0x15b1d9(0xd3,0xf3,0xec,_0x4b3a56._0x616378))throw _0x2191d8;}),_0x57b54b[_0x4f5b72(-0x2c9,-0x2da,-_0x512e2d._0x190222,-_0x512e2d._0x1b1680)][_0x4f5b72(-_0x512e2d._0x172eda,-_0x512e2d._0x1026cf,-_0x512e2d._0x54c1fe,-_0x512e2d._0x168ed8)](JSON[_0x4f5b72(-0x2be,-0x2dc,-0x2fb,-_0x512e2d._0x301b1e)](_0x5359c8)),_0x57b54b[_0x4393a6(0x325,0x30d,_0x512e2d._0x3b183b,0x2fa)][_0x4f5b72(-0x2b6,-0x2b1,-_0x512e2d._0x269a0f,-0x2bd)]();const _0xcd671c=setTimeout(()=>{const _0x19e409={_0x584653:0xeb,_0x270a70:0x471};function _0xf49e15(_0x114826,_0x56d497,_0x1f100b,_0x5cfbb1){return _0x4f5b72(_0x1f100b,_0x56d497-_0x3a190d._0x5a226e,_0x1f100b-_0x3a190d._0x3208e3,_0x56d497-0x3be);}function _0x504abf(_0x2fffeb,_0x2a1cf9,_0x5fc59a,_0x1a68da){return _0x4393a6(_0x1a68da,_0x2a1cf9-_0x19e409._0x584653,_0x2fffeb- -_0x19e409._0x270a70,_0x1a68da-0x35);}_0x57b54b[_0x504abf(-0x16f,-_0x2a8b52._0x20914a,-0x15e,-0x182)]('SIGKILL'),_0xe33cfb({'status':_0xf49e15(_0x2a8b52._0x22022,_0x2a8b52._0x25eb2e,_0x2a8b52._0x54af78,_0x2a8b52._0x9673a8),'error':_0x504abf(-_0x2a8b52._0x120159,-_0x2a8b52._0x5f43f7,-0x152,-0x167)+_0x1b8c79+'s','duration_ms':Date[_0x504abf(-0x182,-0x176,-_0x2a8b52._0x30fa21,-_0x2a8b52._0x46c89b)]()-_0x1bead6});},_0x1b8c79*0x3e8);_0x57b54b['on'](_0x4393a6(_0x512e2d._0x2e9694,0x2f3,0x301,0x2ff),_0x3b3ad1=>{const _0x56e695={_0x1f1ea0:0xe1},_0x2f3ff6={_0x1fb76e:0x18};clearTimeout(_0xcd671c);const _0x1117fa=Date[_0x1dc9a1(-_0x5291ae._0x268a7f,-_0x5291ae._0x293374,-_0x5291ae._0x362169,-_0x5291ae._0x509001)]()-_0x1bead6;if(_0x3b3ad1===0x2){_0xe33cfb({'status':_0x100362(0x313,0x335,0x31f,0x314),'output':{'decision':_0x100362(0x313,0x302,0x317,_0x5291ae._0x3fc47b),'reason':_0x240857['trim']()||_0x1dc9a1(-0x148,-_0x5291ae._0x15f1fe,-_0x5291ae._0x8d64dc,-_0x5291ae._0x2823b6)},'duration_ms':_0x1117fa});return;}function _0x100362(_0x5f188e,_0x1eb698,_0xd12e7,_0x249ad8){return _0x4393a6(_0xd12e7,_0x1eb698-0x14,_0x5f188e-_0x2f3ff6._0x1fb76e,_0x249ad8-0x102);}if(_0x3b3ad1!==0x0){_0xe33cfb({'status':'error','error':_0x100362(0x337,_0x5291ae._0x37aaa3,_0x5291ae._0x18f125,_0x5291ae._0xff061a)+_0x3b3ad1+(_0x240857[_0x1dc9a1(-0x123,-_0x5291ae._0x148aba,-0x10a,-_0x5291ae._0x727765)]()?':\x20'+_0x240857[_0x100362(0x32a,_0x5291ae._0x52ee01,_0x5291ae._0x254673,_0x5291ae._0x19c1fb)]():''),'duration_ms':_0x1117fa});return;}const _0x4ecda4=_0x41b069[_0x1dc9a1(-_0x5291ae._0x47bbe3,-_0x5291ae._0x1433a7,-_0x5291ae._0x1433a7,-0x119)]();function _0x1dc9a1(_0x17a43b,_0x379b2c,_0x3ea947,_0x3c7f3c){return _0x4393a6(_0x379b2c,_0x379b2c-0x1f1,_0x17a43b- -0x435,_0x3c7f3c-_0x56e695._0x1f1ea0);}if(_0x4ecda4['length']===0x0){_0xe33cfb({'status':_0x1dc9a1(-_0x5291ae._0x58ec43,-_0x5291ae._0xb9db10,-0x13f,-0x146),'duration_ms':_0x1117fa});return;}try{const _0x2e5833=JSON[_0x100362(_0x5291ae._0x9082ca,0x30b,_0x5291ae._0x4b5511,_0x5291ae._0x1306b7)](_0x4ecda4);_0xe33cfb({'status':'pass','output':_0x2e5833,'duration_ms':_0x1117fa});}catch{_0xe33cfb({'status':'pass','duration_ms':_0x1117fa});}}),_0x57b54b['on'](_0x4f5b72(-0x300,-0x2d8,-_0x512e2d._0x33f3d8,-_0x512e2d._0x271c9b),_0x3fd769=>{const _0x3e42ab={_0x5ed78a:0x115,_0x149a84:0x623};function _0x49b64e(_0x167050,_0x5660b4,_0x238d0d,_0x3ac428){return _0x4393a6(_0x238d0d,_0x5660b4-_0x3e42ab._0x5ed78a,_0x3ac428- -_0x3e42ab._0x149a84,_0x3ac428-0x1c3);}function _0x533996(_0x5473cd,_0x3c1857,_0x5e7711,_0x22cfcd){return _0x4393a6(_0x3c1857,_0x3c1857-0x96,_0x5e7711- -_0x4d4676._0x4fe4b5,_0x22cfcd-0xa1);}clearTimeout(_0xcd671c),_0xe33cfb({'status':_0x533996(-0x16,0xd,-_0x721981._0x13a184,-_0x721981._0x357110),'error':_0x3fd769[_0x49b64e(-0x30f,-0x2f3,-_0x721981._0x567b40,-_0x721981._0x55ae95)],'duration_ms':Date[_0x49b64e(-0x317,-_0x721981._0x3bd04a,-0x331,-0x334)]()-_0x1bead6});});});}function createHookExtensions(_0x8b84a9,_0x44919d,_0x2090c4={}){const _0xe2693e={_0x1529e3:0x2e6,_0x4bd6e2:0x2cc,_0x39c59d:0x2e8,_0x5c6902:0x2ba,_0x2f7faa:0x63,_0x4d1477:0x54,_0x1c25ba:0x6a,_0x51aa5f:0x6b,_0x39c6e1:0x4a,_0x1452a8:0x68,_0xa5f886:0x7a,_0x574add:0x31,_0x443749:0x34,_0x5b919e:0x30f,_0x3c12ff:0x300,_0x5c6484:0x65,_0x43bda6:0x2d,_0x3098a0:0x4a,_0x4dce71:0x30b,_0x247e0f:0x2ee,_0x16622b:0x2b4,_0x3af333:0x2d0,_0x2b7bd0:0x2bd,_0x2dd259:0x2c6},_0x4a9480={_0x53cb12:0x1ad,_0x169f1e:0x1b3,_0x4762db:0x197,_0x501c1d:0x325,_0x1252dd:0x19b,_0x338747:0x19e,_0x9107af:0x1ab,_0x139f0e:0x1a6,_0x31d387:0x17a,_0x3ba54c:0x17c},_0x2206f0={_0x47ec0d:0x88},_0x1d9b67={_0x540b8b:0x17b,_0x349c33:0xe7,_0x15343c:0x148,_0x513c94:0x155,_0x21974b:0x169,_0xcdabe2:0x16a,_0x3b438c:0x158,_0x451c0e:0xd6,_0x342e85:0xec},_0x2096be={_0x3c20f8:0x2c1,_0x121ad6:0x89,_0x36fb94:0x2b2,_0x3559c5:0x2cb,_0x28a577:0xa1,_0x4f7b94:0x91,_0x2bb6fd:0x91,_0x14b1d5:0xbb},_0xdd5e31={_0x4c3892:0x20,_0xb1c03d:0x271},_0x32b7a4={_0x52392c:0xdc},_0x264a16={_0x42f40b:0x378};function _0x1e35b0(_0x5218ee,_0x7026bd,_0xe7644e,_0x49b1d9){return _0x15c2(_0x7026bd- -_0x264a16._0x42f40b,_0xe7644e);}const _0x5cd802=[],{sessionId:_0x5ea4e5,projectDir:_0x1eb2bd}=_0x2090c4,_0x7de91c=_0x58561a=>_0x8b84a9[_0x11a4a6(-0x35,-0x1e,-0x3c,-0x32)]?_0x8b84a9[_0x11a4a6(-0x4a,-0x37,-0x3c,-0x4f)](_0x58561a):_0x8b84a9[_0x11a4a6(-0x72,-0x4b,-0x57,-0x4d)](_0x58561a)[_0x11a4a6(-0x62,-0x79,-0x6c,-0x4c)]>0x0;function _0x11a4a6(_0x14d6c5,_0x4c73d7,_0x11f326,_0x1ec1bc){return _0x15c2(_0x11f326- -_0x32b7a4._0x52392c,_0x4c73d7);}return _0x7de91c(_0x11a4a6(-0x50,-0x3f,-0x4e,-0x3a))&&_0x5cd802[_0x1e35b0(-0x2d2,-_0xe2693e._0x1529e3,-0x301,-_0xe2693e._0x4bd6e2)]({'id':'hook:PostToolUse','stage':'afterToolResult','kind':_0x1e35b0(-_0xe2693e._0x39c59d,-0x2d0,-_0xe2693e._0x5c6902,-0x2b0),'order':0x0,'enabled':!![],'run':async(_0x245a85,_0x33de94)=>{const _0x46ee6c={_0x170411:0x145,_0x4180c8:0x290,_0x21790c:0x3e};function _0x22151f(_0x550b43,_0x474532,_0xac527e,_0x3b11c7){return _0x11a4a6(_0x550b43-_0x46ee6c._0x170411,_0x474532,_0x3b11c7- -_0x46ee6c._0x4180c8,_0x3b11c7-_0x46ee6c._0x21790c);}const _0x2b6124=_0x8b84a9['getHooks']('PostToolUse',_0x245a85['toolName']);function _0x2709ee(_0x4ae77e,_0x36236e,_0x5ac42e,_0x59a678){return _0x1e35b0(_0x4ae77e-_0xdd5e31._0x4c3892,_0x59a678-_0xdd5e31._0xb1c03d,_0x36236e,_0x59a678-0xb1);}for(const _0x1d7af4 of _0x2b6124){const _0x208fce={'tool_name':_0x245a85['toolName'],'tool_input':void 0x0,'tool_output':_0x245a85[_0x22151f(-0x2ed,-_0x2096be._0x3c20f8,-0x2e9,-0x2db)],'tool_result_status':_0x245a85['status'],'session_id':_0x5ea4e5??_0x33de94[_0x2709ee(-0xa2,-0x93,-_0x2096be._0x121ad6,-0x8e)][_0x22151f(-0x2ba,-_0x2096be._0x36fb94,-0x2e9,-_0x2096be._0x3559c5)]};await _0x44919d(_0x1d7af4[_0x2709ee(-0x9f,-_0x2096be._0x28a577,-0x8b,-_0x2096be._0x4f7b94)],_0x208fce,_0x1d7af4[_0x2709ee(-0xaf,-_0x2096be._0x2bb6fd,-_0x2096be._0x14b1d5,-0x9f)],_0x1eb2bd);}}}),_0x7de91c(_0x11a4a6(-_0xe2693e._0x2f7faa,-_0xe2693e._0x4d1477,-0x68,-_0xe2693e._0x1c25ba))&&_0x5cd802[_0x11a4a6(-_0xe2693e._0x51aa5f,-0x62,-_0xe2693e._0x39c6e1,-_0xe2693e._0x1452a8)]({'id':_0x11a4a6(-0x77,-0x57,-0x6a,-_0xe2693e._0xa5f886),'stage':'beforeFinalOutput','kind':_0x11a4a6(-_0xe2693e._0x574add,-0x42,-_0xe2693e._0x443749,-0x2b),'order':0x0,'enabled':!![],'run':async(_0x3babb2,_0x2febbd)=>{const _0x5816c7={_0x567bbf:0x402,_0x374b37:0x2a};function _0x5baa85(_0xe5c399,_0x3dc710,_0x3ccc1d,_0xfd5c78){return _0x1e35b0(_0xe5c399-0x91,_0x3ccc1d-_0x5816c7._0x567bbf,_0xe5c399,_0xfd5c78-_0x5816c7._0x374b37);}function _0x344b8d(_0x2b570f,_0x2ac816,_0xc06bf,_0x387881){return _0x11a4a6(_0x2b570f-0xcf,_0xc06bf,_0x2b570f- -0x10d,_0x387881-0x95);}const _0x4f855d=_0x8b84a9['getHooks'](_0x344b8d(-0x175,-_0x1d9b67._0x540b8b,-0x192,-0x170));for(const _0x2ec4f6 of _0x4f855d){const _0x4e4662={'stop_reason':'end_turn','session_id':_0x5ea4e5??_0x2febbd[_0x5baa85(0x11b,_0x1d9b67._0x349c33,0x103,0xe3)][_0x344b8d(-_0x1d9b67._0x15343c,-0x13b,-_0x1d9b67._0x513c94,-_0x1d9b67._0x21974b)]};await _0x44919d(_0x2ec4f6[_0x344b8d(-0x173,-_0x1d9b67._0xcdabe2,-0x167,-_0x1d9b67._0x3b438c)],_0x4e4662,_0x2ec4f6[_0x5baa85(_0x1d9b67._0x451c0e,_0x1d9b67._0x342e85,0xf2,0xe8)],_0x1eb2bd);}}}),_0x7de91c(_0x1e35b0(-_0xe2693e._0x5b919e,-0x2f1,-0x2e5,-_0xe2693e._0x3c12ff))&&_0x5cd802[_0x11a4a6(-_0xe2693e._0x5c6484,-_0xe2693e._0x43bda6,-_0xe2693e._0x3098a0,-0x4f)]({'id':_0x1e35b0(-0x2ff,-_0xe2693e._0x4dce71,-_0xe2693e._0x247e0f,-0x31b),'stage':'afterTurnComplete','kind':_0x1e35b0(-_0xe2693e._0x16622b,-_0xe2693e._0x3af333,-_0xe2693e._0x2b7bd0,-_0xe2693e._0x2dd259),'order':0x0,'enabled':!![],'run':async(_0xe80852,_0x5dede1)=>{const _0x2e7ff0={_0x5702b0:0x48a},_0x20ced3=_0x8b84a9[_0x1bd71a(_0x4a9480._0x53cb12,_0x4a9480._0x169f1e,_0x4a9480._0x4762db,0x19b)](_0x3745da(-0x301,-0x30f,-_0x4a9480._0x501c1d,-0x318));function _0x1bd71a(_0x2bc5e7,_0x514e90,_0x43bc93,_0x337be6){return _0x1e35b0(_0x2bc5e7-0x165,_0x43bc93-_0x2e7ff0._0x5702b0,_0x2bc5e7,_0x337be6-0x9f);}function _0x3745da(_0x3a4b86,_0x4936c9,_0x172387,_0x230fab){return _0x11a4a6(_0x3a4b86-_0x2206f0._0x47ec0d,_0x3a4b86,_0x4936c9- -0x2ba,_0x230fab-0x8);}for(const _0x3b35b5 of _0x20ced3){const _0x3f5168={'message':_0x1bd71a(_0x4a9480._0x1252dd,_0x4a9480._0x338747,_0x4a9480._0x9107af,_0x4a9480._0x139f0e),'session_id':_0x5ea4e5??_0xe80852['sessionId']};await _0x44919d(_0x3b35b5[_0x1bd71a(_0x4a9480._0x31d387,_0x4a9480._0x3ba54c,0x188,0x19c)],_0x3f5168,_0x3b35b5['timeout'],_0x1eb2bd);}}}),_0x5cd802;}function createHookOnToolCallMiddleware(_0x32500d,_0x40a2aa,_0x5b7b6e,_0x14b52b={}){const _0x440e2a={_0x2c5ec3:0x41a,_0x3c2c9b:0x43c,_0x563546:0x7a,_0x6f92d8:0x38,_0x5ea347:0x2f,_0x6c010d:0x28,_0x20a1db:0x33,_0x28e2ec:0x46,_0x46ee69:0x41a,_0x44ebe0:0x431,_0x1adeb4:0x442,_0x101047:0x438,_0x1a957d:0x42c,_0x32468b:0x439,_0x219647:0x41c,_0x22308d:0x42b,_0xbfba46:0x460,_0x2dc1b1:0x435,_0x5b85c9:0x445,_0x2e6001:0x41e,_0xcb8232:0x43a,_0x1ff161:0x427,_0x88b845:0x3f,_0x957c26:0x45f,_0x28d5d2:0x44b,_0x86f2ee:0x44,_0xc3a2eb:0x42,_0x1eab82:0x5c,_0x32be90:0x24,_0x4a9c8e:0x33,_0x1c1153:0x2e,_0x24d1d6:0x54,_0x4711b0:0x45,_0x45019c:0x32,_0x4c3e45:0x33,_0x25d7ee:0x18,_0x28e1c8:0x45c,_0x1e150a:0x40e,_0xc7abba:0x43b,_0x253032:0x444,_0x13cd90:0x464,_0x2aa948:0x436,_0x201de7:0x42c,_0x2c56ad:0x2b,_0x162de6:0x1a,_0x1f7cc0:0x454,_0x15e5f6:0x441,_0x5ad127:0x44c,_0x4af204:0x442},_0x16008a={_0x1f63ae:0x3b4},{sessionId:_0x27678e,projectDir:_0x4159ae}=_0x14b52b;return async(_0x58c024,_0x333143)=>{const _0x2cc0b4=_0x32500d[_0x195986(0x424,_0x440e2a._0x2c5ec3,_0x440e2a._0x3c2c9b,0x439)](_0x55dc9d(_0x440e2a._0x563546,0x43,0x58,_0x440e2a._0x6f92d8),_0x58c024[_0x55dc9d(_0x440e2a._0x5ea347,0x3c,_0x440e2a._0x6c010d,_0x440e2a._0x20a1db)]);function _0x55dc9d(_0x5b6b69,_0x27b2c4,_0xa382ea,_0x146250){return _0x15c2(_0xa382ea- -0x4f,_0x5b6b69);}for(const _0xb3ee1a of _0x2cc0b4){const _0xc3f159={'tool_name':_0x58c024[_0x55dc9d(0x41,0x22,0x28,_0x440e2a._0x28e2ec)],'tool_input':_0x58c024[_0x195986(_0x440e2a._0x46ee69,0x40f,0x416,_0x440e2a._0x44ebe0)],'session_id':_0x27678e},_0x865a9b=await _0x40a2aa(_0xb3ee1a[_0x195986(0x41a,0x431,_0x440e2a._0x1adeb4,0x42a)],_0xc3f159,_0xb3ee1a[_0x195986(_0x440e2a._0x101047,_0x440e2a._0x1a957d,_0x440e2a._0x32468b,_0x440e2a._0x219647)],_0x4159ae),_0x11c0ef=_0x865a9b[_0x195986(_0x440e2a._0x22308d,_0x440e2a._0xbfba46,_0x440e2a._0x2dc1b1,_0x440e2a._0x5b85c9)]?.[_0x195986(_0x440e2a._0x2e6001,0x444,_0x440e2a._0xcb8232,_0x440e2a._0x1ff161)]?.[_0x55dc9d(0x1c,_0x440e2a._0x88b845,0x2c,0x43)];if(_0x11c0ef===_0x195986(0x440,0x449,_0x440e2a._0x957c26,_0x440e2a._0x28d5d2))break;if(_0x11c0ef===_0x55dc9d(0x4f,0x3a,0x39,0x3d))return{'action':'reject','reason':_0x865a9b[_0x55dc9d(_0x440e2a._0x86f2ee,0x42,_0x440e2a._0xc3a2eb,_0x440e2a._0x1eab82)]?.[_0x55dc9d(0x1c,0x17,_0x440e2a._0x32be90,0x1e)]?.[_0x55dc9d(0x1a,0x53,_0x440e2a._0x4a9c8e,_0x440e2a._0x1c1153)]||_0x55dc9d(_0x440e2a._0x24d1d6,_0x440e2a._0x4711b0,_0x440e2a._0x45019c,_0x440e2a._0x4c3e45)+_0x58c024[_0x55dc9d(0x20,_0x440e2a._0x4711b0,_0x440e2a._0x6c010d,_0x440e2a._0x25d7ee)]};if(_0x865a9b[_0x195986(_0x440e2a._0x28e1c8,0x474,0x461,0x45a)]===_0x195986(_0x440e2a._0x1e150a,_0x440e2a._0x2e6001,_0x440e2a._0xc7abba,_0x440e2a._0x1a957d)||_0x865a9b[_0x195986(_0x440e2a._0x253032,_0x440e2a._0x13cd90,_0x440e2a._0x2aa948,_0x440e2a._0x5b85c9)]?.['decision']===_0x195986(0x40e,0x41d,_0x440e2a._0x32468b,_0x440e2a._0x201de7))return{'action':'reject','reason':_0x865a9b[_0x195986(0x429,0x455,_0x440e2a._0x13cd90,0x445)]?.[_0x55dc9d(_0x440e2a._0x2c56ad,_0x440e2a._0x162de6,0x17,_0x440e2a._0x20a1db)]||_0x195986(_0x440e2a._0x1f7cc0,_0x440e2a._0x15e5f6,_0x440e2a._0x3c2c9b,_0x440e2a._0x5ad127)+_0x58c024[_0x195986(_0x440e2a._0x4af204,0x447,0x438,0x42b)]};}function _0x195986(_0x513320,_0x2cf5b6,_0x4fbcde,_0x422bb2){return _0x15c2(_0x422bb2-_0x16008a._0x1f63ae,_0x513320);}return _0x5b7b6e(_0x58c024,_0x333143);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x236246){const _0x227e1c={_0x3bc274:0xd9,_0x133197:0xe2,_0x5758f5:0xf9,_0x2e4533:0xdc,_0x46e0c2:0xec,_0x2da6fd:0xeb,_0xd91aee:0xea,_0x59da78:0x270,_0x38ab24:0x28d,_0x983590:0x281,_0x2779f5:0x102,_0x3ec39b:0xe8,_0x2d8e09:0xdd,_0x116a1f:0x267,_0x2f1cc4:0x286,_0x34bc78:0x272,_0x1fa477:0x278,_0x39b9f1:0x259},_0xf28bdd={_0x65e185:0xeb};return{'hasHooks'(_0x2b7a83){function _0x182c8a(_0xb34ce9,_0x25c5f9,_0x20178e,_0x3c433b){return _0x15c2(_0x20178e-0x5e,_0x3c433b);}return(_0x236246[_0x2b7a83]?.[_0x182c8a(0xd3,_0xf28bdd._0x65e185,0xce,0xd9)]??0x0)>0x0;},'getHooks'(_0x20f09d,_0x294a24){const _0x41cb84={_0x26983e:0x1f4},_0x8665a5=_0x236246[_0x20f09d];function _0x5c712d(_0x251792,_0x1d579a,_0x50ffd2,_0x56bc82){return _0x15c2(_0x50ffd2-_0x41cb84._0x26983e,_0x251792);}function _0x439929(_0x367b29,_0x3a6bfd,_0x1bbc6e,_0x4c71c8){return _0x15c2(_0x4c71c8- -0x16e,_0x1bbc6e);}if(!_0x8665a5)return[];const _0x23dd66=[];for(const _0x4f5bb7 of _0x8665a5){if(!_0x4f5bb7[_0x439929(-_0x227e1c._0x3bc274,-0xc8,-0xd8,-_0x227e1c._0x133197)]||_0x4f5bb7['matcher']==='*'){_0x23dd66[_0x439929(-0xef,-_0x227e1c._0x5758f5,-0xda,-_0x227e1c._0x2e4533)](..._0x4f5bb7[_0x439929(-_0x227e1c._0x46e0c2,-_0x227e1c._0x2da6fd,-0xd5,-_0x227e1c._0xd91aee)][_0x5c712d(0x27d,_0x227e1c._0x59da78,0x27d,_0x227e1c._0x38ab24)](_0x9268fe=>({'command':_0x9268fe[_0x439929(-0xf9,-0xdf,-0xf8,-0xf8)],'timeout':_0x9268fe[_0x439929(-0x10c,-0xfd,-0x10e,-0x106)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x294a24===void 0x0)continue;const _0x2c836b=new RegExp(_0x5c712d(0x290,0x261,0x27f,_0x227e1c._0x983590)+_0x4f5bb7[_0x439929(-0xf6,-_0x227e1c._0x2779f5,-0xe7,-0xe2)]+')$');_0x2c836b[_0x439929(-0xee,-_0x227e1c._0x3ec39b,-_0x227e1c._0x2d8e09,-0xfd)](_0x294a24)&&_0x23dd66[_0x5c712d(0x272,_0x227e1c._0x116a1f,_0x227e1c._0x2f1cc4,_0x227e1c._0x34bc78)](..._0x4f5bb7[_0x5c712d(0x274,0x259,_0x227e1c._0x1fa477,_0x227e1c._0x39b9f1)]['map'](_0x5792af=>({'command':_0x5792af[_0x439929(-0xeb,-0x10d,-0xf3,-0xf8)],'timeout':_0x5792af['timeout']??DEFAULT_TIMEOUT_S2})));}return _0x23dd66;}};}function _0x4d99(){const _0x3db727=['Ag9VAZPoB3rPzMLJyxrPB24','zxjYB3i','zw52','BgvUz3rO','DgvZDa','Ag9VAZPtDg9W','Ag9VA1nWzwnPzMLJt3v0Chv0','u3rVCa','D3jPDgu','y29TBwfUza','BMfTzq','yMXVy2S','C3rHDgu','rvbjueu','CgvYBwLZC2LVBKrLy2LZAw9U','C3rYAw5NAwz5','Aw5WDxq','y2XVC2u','A2LSBa','odG1mgrmBgzpua','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','nZz0CLDtzfi','Ag9VA3m','z2v0sg9VA3m','CgfYC2u','tM90AwzPy2f0Aw9U','zgvUEq','BwfW','mZi0nJq0nwXvyMn2yq','xIG/oG','Bwf0y2HLCG','mZyZmZe0zxfpD1fT','ug9ZDfrVB2XvC2u','DhjPBq','y29Kzq','B3v0Chv0','ChvZAa','mZiWnJC3rNrdDevu','zgf0yq','CgLWzq','C3rKAw4','ywXSB3C','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','zw5K','C3rKzxjY','sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','ndi0mZuYn09gCMHmBq','BwvZC2fNzq','mJmXmdqYmejSDezLwa','AgfZsg9VA3m','C2vZC2LVBKLK','y3DK','oeLpwuDAra','C3rKB3v0','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','C3rHDhvZ','uhjLvg9VBfvZzq','B2jZzxj2zxi','CMvHC29U','CgfZCW','DgLTzw91Da','Dg9tDhjPBMC','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','nZm4ote4wujmCxDb','BM93'];_0x4d99=function(){return _0x3db727;};return _0x4d99();}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};