@nuvin/agent-core 0.2.0-rc.7 → 0.2.0-rc.8

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(_0x536b2c,_0x4859dc){const _0x41e248={_0x2c377c:0x1a7,_0x594d39:0x1c4,_0x4e9ed9:0x184,_0x4d04ff:0x530,_0x1eb8cf:0x537,_0x14fcb6:0x53d,_0x322814:0x175,_0x1e297d:0x189,_0x133481:0x543,_0x1b5c1a:0x509,_0x55aaa7:0x513,_0x45c74c:0x1bf,_0x553a4b:0x1b0,_0x32bcaf:0x4fc,_0x27b125:0x4ec,_0x4d11f2:0x525,_0x468044:0x538,_0x18cd7e:0x519,_0x4d2c1f:0x19b,_0x24ca5a:0x186,_0x2ddddd:0x1be,_0x369d6b:0x50d,_0x186053:0x4e9},_0x211f82={_0x320329:0x35c};function _0x363ef2(_0x3a218b,_0x172864,_0x2ddc1b,_0x3ef68b){return _0x4dd7(_0x3a218b- -0x14,_0x2ddc1b);}const _0x4c9a85=_0x536b2c();function _0x1865f5(_0x27a4a8,_0x2520d6,_0x446e78,_0x177f89){return _0x4dd7(_0x27a4a8-_0x211f82._0x320329,_0x177f89);}while(!![]){try{const _0x3ba444=-parseInt(_0x363ef2(_0x41e248._0x2c377c,_0x41e248._0x594d39,0x1b8,_0x41e248._0x4e9ed9))/0x1*(-parseInt(_0x1865f5(_0x41e248._0x4d04ff,_0x41e248._0x1eb8cf,0x53c,_0x41e248._0x14fcb6))/0x2)+parseInt(_0x363ef2(0x18b,_0x41e248._0x322814,0x1ad,_0x41e248._0x1e297d))/0x3*(parseInt(_0x1865f5(_0x41e248._0x1eb8cf,0x54b,_0x41e248._0x133481,0x521))/0x4)+parseInt(_0x1865f5(_0x41e248._0x1b5c1a,0x51a,0x52a,_0x41e248._0x55aaa7))/0x5+parseInt(_0x363ef2(_0x41e248._0x45c74c,0x1bb,0x1db,_0x41e248._0x553a4b))/0x6+parseInt(_0x1865f5(_0x41e248._0x32bcaf,0x4fb,_0x41e248._0x27b125,0x51e))/0x7*(parseInt(_0x1865f5(_0x41e248._0x4d11f2,_0x41e248._0x468044,_0x41e248._0x133481,_0x41e248._0x18cd7e))/0x8)+-parseInt(_0x363ef2(_0x41e248._0x4d2c1f,0x1ac,_0x41e248._0x24ca5a,_0x41e248._0x2ddddd))/0x9+parseInt(_0x1865f5(_0x41e248._0x369d6b,0x52e,0x515,_0x41e248._0x186053))/0xa;if(_0x3ba444===_0x4859dc)break;else _0x4c9a85['push'](_0x4c9a85['shift']());}catch(_0x1356f5){_0x4c9a85['push'](_0x4c9a85['shift']());}}}(_0x48e8,0xaae83));import{spawn}from'child_process';function _0x4dd7(_0xf0d1e0,_0x29fd38){_0xf0d1e0=_0xf0d1e0-0x19c;const _0x48e8a1=_0x48e8();let _0x4dd752=_0x48e8a1[_0xf0d1e0];if(_0x4dd7['mqQotc']===undefined){var _0x5e5ca3=function(_0x446e07){const _0x3f911d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x36e8dc='',_0x2aac01='';for(let _0x312c49=0x0,_0x33b260,_0x4792d5,_0x4fa8a7=0x0;_0x4792d5=_0x446e07['charAt'](_0x4fa8a7++);~_0x4792d5&&(_0x33b260=_0x312c49%0x4?_0x33b260*0x40+_0x4792d5:_0x4792d5,_0x312c49++%0x4)?_0x36e8dc+=String['fromCharCode'](0xff&_0x33b260>>(-0x2*_0x312c49&0x6)):0x0){_0x4792d5=_0x3f911d['indexOf'](_0x4792d5);}for(let _0x14206a=0x0,_0x5c495c=_0x36e8dc['length'];_0x14206a<_0x5c495c;_0x14206a++){_0x2aac01+='%'+('00'+_0x36e8dc['charCodeAt'](_0x14206a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2aac01);};_0x4dd7['aAFEdZ']=_0x5e5ca3,_0x4dd7['QKYNBG']={},_0x4dd7['mqQotc']=!![];}const _0x4cec7d=_0x48e8a1[0x0],_0x9fff71=_0xf0d1e0+_0x4cec7d,_0x4ceb3a=_0x4dd7['QKYNBG'][_0x9fff71];return!_0x4ceb3a?(_0x4dd752=_0x4dd7['aAFEdZ'](_0x4dd752),_0x4dd7['QKYNBG'][_0x9fff71]=_0x4dd752):_0x4dd752=_0x4ceb3a,_0x4dd752;}var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x36e8dc,_0x2aac01,_0x312c49=DEFAULT_TIMEOUT_S,_0x33b260){const _0x3a6b9a={_0xd6738b:0x4d0,_0x3e4642:0x4dc,_0x17a4e1:0x4d2},_0x2ff174={_0x582f89:0x426,_0xa0e480:0x41a,_0x505686:0x43c,_0x88a0e1:0x2d0,_0x5665b9:0x2c3,_0x21d157:0x2f1,_0x45f3a5:0x2d4,_0x1704c2:0x402,_0x4850e9:0x41b,_0x59c358:0x413,_0x128336:0x420,_0x5e0687:0x425,_0x5de8c3:0x2bf,_0x4bee00:0x2c5,_0x36274a:0x2e7,_0xd15c3d:0x299,_0x5ae2d3:0x2af,_0x5b635b:0x28e,_0xa9df97:0x295,_0x43e723:0x416,_0x87328b:0x40b,_0x1fd506:0x3fc,_0x52f90d:0x412,_0x5e986a:0x3e7,_0x46892a:0x3d7,_0x5ebbe9:0x3f3,_0xce4392:0x406,_0x189797:0x3f8,_0x852b8e:0x3ec,_0x1f5c18:0x430,_0x67030:0x2be},_0x2ce83e={_0x2d3046:0x1fc,_0x1745c2:0x308,_0x47e62f:0x30d,_0x3fc98b:0x31f},_0x4c4fc2={_0x5122fe:0x239},_0x2e7f4b={_0x51e095:0x23,_0x481272:0x3e,_0x51a717:0x36,_0x21b741:0x23,_0xa2df09:0x30,_0x306278:0x31},_0x1d3a98={_0x3d343e:0x10c};function _0x1bb3c8(_0x37c6ef,_0x5a1284,_0x696ead,_0x28ab9b){return _0x4dd7(_0x28ab9b-0x331,_0x37c6ef);}const _0x4792d5=Date[_0x1bb3c8(_0x3a6b9a._0xd6738b,0x4ec,_0x3a6b9a._0x3e4642,_0x3a6b9a._0x17a4e1)]();return new Promise(_0x4fa8a7=>{const _0x289191={_0x4b7fa0:0x4b5,_0x52c7bb:0x4a4,_0x521632:0x4ad,_0x1b3d81:0x493,_0x516528:0x4cd},_0x3c2484={_0xaaad9b:0x10d,_0x30f0ac:0x2d1},_0x2addb6={_0xa736e6:0xbe,_0x27a9e6:0xe8},_0x1f9078={_0x1ece15:0x454,_0x4e9305:0x16a,_0x3f6277:0x176,_0x2ae04a:0x194,_0x5e5f6e:0x187,_0x266446:0x439,_0x2df2c0:0x418,_0x201421:0x45a,_0x34510b:0x440,_0x2adf2a:0x43d,_0x46b85e:0x453,_0x241f5a:0x188,_0x4b1420:0x18e,_0x5ba6f8:0x180,_0x4f04b8:0x427},_0x3f7c49={_0x1d9cf1:0xf9,_0x10be65:0x87,_0x489aee:0x27b},_0x4ab090={_0x2ea7c5:0x51,_0x45d44c:0x41d},_0x839111={_0x4f7d85:0xfc},_0x346afa={_0x4dc1f2:0x409,_0x15d9e1:0x3f6},_0x14206a=spawn('sh',['-c',_0x36e8dc],{'stdio':['pipe',_0x5f2a15(0x430,0x409,_0x2ff174._0x582f89,_0x2ff174._0xa0e480),_0x5f2a15(_0x2ff174._0x505686,0x41c,0x423,0x41a)],'env':{...process[_0x320bf3(_0x2ff174._0x88a0e1,_0x2ff174._0x5665b9,_0x2ff174._0x21d157,_0x2ff174._0x45f3a5)],'CLAUDE_PROJECT_DIR':_0x33b260??process[_0x5f2a15(0x421,_0x2ff174._0x1704c2,_0x2ff174._0x4850e9,_0x2ff174._0x59c358)]()}});let _0x5c495c='',_0x5e6c73='';_0x14206a[_0x5f2a15(_0x2ff174._0x128336,_0x2ff174._0x5e0687,0x402,0x40c)]['on'](_0x320bf3(_0x2ff174._0x5de8c3,_0x2ff174._0x4bee00,_0x2ff174._0x36274a,0x2da),_0x3535c3=>{const _0x351840={_0x27b766:0xce};function _0x5b81f7(_0x3a3183,_0x4b9657,_0x2e7804,_0xcccaad){return _0x5f2a15(_0x3a3183-0x89,_0x4b9657,_0x2e7804-_0x351840._0x27b766,_0xcccaad- -0x2c);}_0x5c495c+=_0x3535c3[_0x5b81f7(0x3d4,_0x346afa._0x4dc1f2,0x3d4,_0x346afa._0x15d9e1)]();}),_0x14206a[_0x320bf3(_0x2ff174._0xd15c3d,_0x2ff174._0x5ae2d3,_0x2ff174._0x5b635b,_0x2ff174._0xa9df97)]['on'](_0x5f2a15(_0x2ff174._0x43e723,0x437,_0x2ff174._0x87328b,0x42b),_0x554703=>{function _0x4f8380(_0x1d38e3,_0x96a80e,_0x436358,_0x1a6ca8){return _0x5f2a15(_0x1d38e3-0x103,_0x96a80e,_0x436358-_0x839111._0x4f7d85,_0x436358- -0x54e);}_0x5e6c73+=_0x554703[_0x4f8380(-0x10d,-_0x1d3a98._0x3d343e,-0x12c,-0x140)]();}),_0x14206a['stdin']['on'](_0x5f2a15(0x3f2,_0x2ff174._0x1fd506,0x3f7,0x40f),_0x21e30c=>{const _0x5c0274={_0x1760d1:0xd4};function _0x4dfb1b(_0x50023a,_0x2965b7,_0x789f20,_0x488176){return _0x5f2a15(_0x50023a-_0x5c0274._0x1760d1,_0x789f20,_0x789f20-0x5f,_0x488176- -0x81);}function _0x482388(_0x41310b,_0x1576d1,_0x44f106,_0x8944e){return _0x5f2a15(_0x41310b-_0x4ab090._0x2ea7c5,_0x44f106,_0x44f106-0x3c,_0x8944e- -_0x4ab090._0x45d44c);}if(_0x21e30c[_0x482388(-_0x2e7f4b._0x51e095,-0x56,-_0x2e7f4b._0x481272,-_0x2e7f4b._0x51a717)]!==_0x482388(-_0x2e7f4b._0x21b741,-0x48,-_0x2e7f4b._0xa2df09,-_0x2e7f4b._0x306278))throw _0x21e30c;});function _0x320bf3(_0x5e06b2,_0x3c527a,_0x23f316,_0x5e2dd5){return _0x1bb3c8(_0x5e06b2,_0x3c527a-0x90,_0x23f316-0x8f,_0x5e2dd5- -_0x4c4fc2._0x5122fe);}_0x14206a[_0x5f2a15(_0x2ff174._0x52f90d,_0x2ff174._0x5e986a,_0x2ff174._0x46892a,_0x2ff174._0x5ebbe9)][_0x5f2a15(0x401,0x421,0x428,_0x2ff174._0xce4392)](JSON[_0x5f2a15(0x3f0,_0x2ff174._0x189797,0x414,0x3f9)](_0x2aac01)),_0x14206a[_0x320bf3(0x2b5,0x2af,0x2a0,0x2a2)][_0x5f2a15(0x3ec,_0x2ff174._0x852b8e,0x3fd,0x3eb)]();const _0x1c87db=setTimeout(()=>{function _0x4b44f8(_0x284f82,_0x30b1de,_0x2f7b16,_0x5920f3){return _0x320bf3(_0x284f82,_0x30b1de-0x108,_0x2f7b16-0x137,_0x30b1de- -0x4de);}function _0x174480(_0x37fb83,_0x3172ea,_0x5cd05b,_0x14e4bb){return _0x5f2a15(_0x37fb83-0x162,_0x3172ea,_0x5cd05b-0xe2,_0x5cd05b- -0x10a);}_0x14206a[_0x4b44f8(-0x238,-0x21e,-0x21c,-_0x2ce83e._0x2d3046)]('SIGKILL'),_0x4fa8a7({'status':'error','error':_0x174480(_0x2ce83e._0x1745c2,0x31e,_0x2ce83e._0x47e62f,_0x2ce83e._0x3fc98b)+_0x312c49+'s','duration_ms':Date['now']()-_0x4792d5});},_0x312c49*0x3e8);_0x14206a['on'](_0x5f2a15(0x401,0x3f4,_0x2ff174._0x1f5c18,0x40e),_0x4e1d9f=>{const _0x3f6876={_0x1d538f:0x91,_0x7a1ebb:0x18a};function _0x15b35b(_0x36a2fa,_0x25d84d,_0xb11411,_0x131b75){return _0x320bf3(_0xb11411,_0x25d84d-_0x3f6876._0x1d538f,_0xb11411-0xc9,_0x36a2fa-_0x3f6876._0x7a1ebb);}clearTimeout(_0x1c87db);const _0x372ae3=Date['now']()-_0x4792d5;if(_0x4e1d9f===0x2){_0x4fa8a7({'status':_0x15b35b(0x434,_0x1f9078._0x1ece15,0x44a,0x44c),'output':{'decision':'block','reason':_0x5e6c73[_0x22726d(_0x1f9078._0x4e9305,0x17f,0x185,_0x1f9078._0x3f6277)]()||'Hook\x20blocked\x20execution'},'duration_ms':_0x372ae3});return;}if(_0x4e1d9f!==0x0){_0x4fa8a7({'status':_0x22726d(0x1a3,0x1a5,_0x1f9078._0x2ae04a,0x17b),'error':_0x22726d(_0x1f9078._0x5e5f6e,0x173,0x18a,0x173)+_0x4e1d9f+(_0x5e6c73[_0x15b35b(_0x1f9078._0x266446,_0x1f9078._0x2df2c0,_0x1f9078._0x201421,0x42d)]()?':\x20'+_0x5e6c73[_0x15b35b(0x439,_0x1f9078._0x34510b,0x446,_0x1f9078._0x2adf2a)]():''),'duration_ms':_0x372ae3});return;}const _0x16b93=_0x5c495c[_0x15b35b(0x439,0x45a,0x453,_0x1f9078._0x46b85e)]();function _0x22726d(_0x2d2b12,_0x5aa156,_0x36230e,_0x3aaa3a){return _0x5f2a15(_0x2d2b12-_0x3f7c49._0x1d9cf1,_0x5aa156,_0x36230e-_0x3f7c49._0x10be65,_0x36230e- -_0x3f7c49._0x489aee);}if(_0x16b93['length']===0x0){_0x4fa8a7({'status':_0x22726d(_0x1f9078._0x241f5a,_0x1f9078._0x4b1420,0x177,_0x1f9078._0x5ba6f8),'duration_ms':_0x372ae3});return;}try{const _0x426feb=JSON[_0x15b35b(_0x1f9078._0x4f04b8,_0x1f9078._0x2adf2a,0x420,0x445)](_0x16b93);_0x4fa8a7({'status':'pass','output':_0x426feb,'duration_ms':_0x372ae3});}catch{_0x4fa8a7({'status':'pass','duration_ms':_0x372ae3});}});function _0x5f2a15(_0x1e9f6c,_0x166bd3,_0x417d2b,_0x15725e){return _0x1bb3c8(_0x166bd3,_0x166bd3-_0x2addb6._0xa736e6,_0x417d2b-0x1d6,_0x15725e- -_0x2addb6._0x27a9e6);}_0x14206a['on'](_0x320bf3(0x2b6,0x2e1,0x2ac,_0x2ff174._0x67030),_0x1bd600=>{const _0x164635={_0x536616:0x7c,_0x2c36b8:0xc3};function _0x5efed0(_0x3c877d,_0x2441f8,_0x5119f8,_0x5592d8){return _0x5f2a15(_0x3c877d-_0x3c2484._0xaaad9b,_0x3c877d,_0x5119f8-0x6b,_0x2441f8- -_0x3c2484._0x30f0ac);}function _0xb282e9(_0x40a961,_0xf6e271,_0x2d907d,_0x10902e){return _0x5f2a15(_0x40a961-_0x164635._0x536616,_0x10902e,_0x2d907d-0x3a,_0xf6e271-_0x164635._0x2c36b8);}clearTimeout(_0x1c87db),_0x4fa8a7({'status':'error','error':_0x1bd600[_0xb282e9(0x4d2,0x4bf,_0x289191._0x4b7fa0,_0x289191._0x52c7bb)],'duration_ms':Date[_0xb282e9(0x490,_0x289191._0x521632,_0x289191._0x1b3d81,_0x289191._0x516528)]()-_0x4792d5});});});}function createHookExtensions(_0x5cb608,_0x4cfa53,_0x2ed58b={}){const _0x121d65={_0x52618d:0x57e,_0x2c999b:0x58a,_0x5f16e3:0x586,_0x203b7a:0x43a,_0x2fd731:0x54b,_0x20fbf9:0x433,_0x781d8a:0x411,_0x4f25c4:0x41e,_0x9f047c:0x41d,_0x1e2700:0x445,_0x2f32d6:0x431,_0x31d27e:0x567,_0xd89962:0x568,_0xda0e5:0x421,_0x155482:0x556,_0x23e482:0x417,_0x46cf71:0x579,_0x2defe4:0x56e,_0x197e70:0x561,_0x484a57:0x565},_0x19879b={_0x4cd7c6:0x439,_0x388d7a:0x1fe,_0x24c817:0x225,_0x2857cb:0x218,_0x44ea7b:0x209,_0x266958:0x237,_0x1bfd56:0x217,_0x35074b:0x432,_0x491419:0x418},_0xc445={_0x15ac97:0x4},_0x2c4941={_0xd6b487:0x35d,_0x136a4f:0x1f2},_0x34775d={_0x5c7898:0x473,_0x2eb198:0x4ba,_0x2114ec:0x49f,_0x116e42:0x1d1,_0x525a47:0x1d2,_0x19a0c6:0x1b4,_0x2dda7d:0x484,_0x2816cd:0x498,_0x22b5e4:0x48b,_0x49b06a:0x46e},_0x21b480={_0x37ca36:0xca,_0x4b085f:0x33},_0xaa2707={_0x8b2ba6:0x1b7},_0x527c86={_0x233d9d:0x329,_0x922c77:0x337,_0x1db6b7:0x375,_0x310160:0x355,_0x16aab6:0x356,_0x5bdba9:0x2e7,_0xa3ac58:0x331,_0xcb7f3a:0x34e,_0xecbda2:0x2dd,_0x4bdee0:0x2f6,_0x237cbe:0x2e2,_0x500065:0x2ee,_0x3e9978:0x301,_0x5d9dc7:0x2ee,_0x3886b9:0x2e3,_0x49609f:0x2fc},_0x5f253d={_0x4cec68:0x277,_0x8d1ce6:0x13e},_0x5d3c68={_0x5ea20c:0x215,_0x22d044:0x5},_0x97ef85={_0x5eb876:0x252},_0x535e52=[],{sessionId:_0x496fd3,projectDir:_0x137aca}=_0x2ed58b;function _0x262647(_0x19bb1e,_0xfd64fb,_0x16f7d9,_0x3564d2){return _0x4dd7(_0x3564d2-_0x97ef85._0x5eb876,_0xfd64fb);}function _0xb6e18d(_0x1de9fb,_0x1e2f5b,_0x419b45,_0x32bbd4){return _0x4dd7(_0x1de9fb-0x3a0,_0x32bbd4);}const _0x137913=_0x3cf4c7=>_0x5cb608[_0xb6e18d(0x577,0x55e,0x58e,0x597)]?_0x5cb608[_0x262647(0x428,0x444,0x442,0x429)](_0x3cf4c7):_0x5cb608[_0x262647(0x3f9,0x3ed,0x414,0x3f9)](_0x3cf4c7)[_0x262647(0x443,0x414,0x41f,0x422)]>0x0;return _0x137913('PostToolUse')&&_0x535e52[_0xb6e18d(_0x121d65._0x52618d,0x56e,_0x121d65._0x2c999b,_0x121d65._0x5f16e3)]({'id':_0x262647(0x41c,_0x121d65._0x203b7a,0x429,0x424),'stage':_0xb6e18d(_0x121d65._0x2fd731,0x52a,0x52a,0x56c),'kind':_0x262647(_0x121d65._0x20fbf9,0x41f,_0x121d65._0x781d8a,_0x121d65._0x4f25c4),'order':0x0,'enabled':!![],'run':async(_0x4b3d16,_0x39780e)=>{function _0x5c97e9(_0xc5ba28,_0x2418e0,_0x36deca,_0x52f53f){return _0xb6e18d(_0x52f53f- -_0x5d3c68._0x5ea20c,_0x2418e0-_0x5d3c68._0x22d044,_0x36deca-0x196,_0x2418e0);}const _0x3c7ea6=_0x5cb608[_0x5c97e9(_0x527c86._0x233d9d,0x33e,0x321,0x332)]('PostToolUse',_0x4b3d16['toolName']);function _0x5dd604(_0x5f07a8,_0x3c91d8,_0x4da449,_0x18a77f){return _0xb6e18d(_0x4da449- -_0x5f253d._0x4cec68,_0x3c91d8-0x38,_0x4da449-_0x5f253d._0x8d1ce6,_0x18a77f);}for(const _0x5ee342 of _0x3c7ea6){const _0xfb966f={'tool_name':_0x4b3d16['toolName'],'tool_input':void 0x0,'tool_output':_0x4b3d16['output'],'tool_result_status':_0x4b3d16[_0x5c97e9(_0x527c86._0x922c77,_0x527c86._0x1db6b7,_0x527c86._0x310160,_0x527c86._0x16aab6)],'session_id':_0x496fd3??_0x39780e[_0x5dd604(0x2c8,0x2d4,_0x527c86._0x5bdba9,0x2d5)][_0x5c97e9(_0x527c86._0xa3ac58,0x325,_0x527c86._0xcb7f3a,0x337)]};await _0x4cfa53(_0x5ee342[_0x5dd604(_0x527c86._0xecbda2,_0x527c86._0x4bdee0,_0x527c86._0x237cbe,_0x527c86._0x500065)],_0xfb966f,_0x5ee342[_0x5dd604(_0x527c86._0x3e9978,_0x527c86._0x5d9dc7,_0x527c86._0x3886b9,_0x527c86._0x49609f)],_0x137aca);}}}),_0x137913(_0x262647(0x41e,_0x121d65._0x9f047c,_0x121d65._0x1e2700,_0x121d65._0x2f32d6))&&_0x535e52['push']({'id':_0xb6e18d(_0x121d65._0x31d27e,0x569,_0x121d65._0xd89962,0x57b),'stage':_0x262647(_0x121d65._0x20fbf9,0x42d,0x411,_0x121d65._0xda0e5),'kind':_0x262647(0x400,0x41a,0x410,_0x121d65._0x4f25c4),'order':0x0,'enabled':!![],'run':async(_0x414d8c,_0x53c37f)=>{function _0x1569ad(_0x1e442,_0x210ddd,_0x56b6a6,_0x250895){return _0x262647(_0x1e442-0x18d,_0x250895,_0x56b6a6-_0xaa2707._0x8b2ba6,_0x1e442- -0x5e1);}const _0x148b30=_0x5cb608[_0x49e58a(0x47d,0x490,0x49d,_0x34775d._0x5c7898)]('Stop');function _0x49e58a(_0x362c79,_0xc3508d,_0x410ddc,_0x48b2f5){return _0xb6e18d(_0x362c79- -_0x21b480._0x37ca36,_0xc3508d-0xf6,_0x410ddc-_0x21b480._0x4b085f,_0xc3508d);}for(const _0xb981fd of _0x148b30){const _0xc8f481={'stop_reason':_0x49e58a(0x4b0,_0x34775d._0x2eb198,_0x34775d._0x2114ec,0x4a3),'session_id':_0x496fd3??_0x53c37f[_0x1569ad(-_0x34775d._0x116e42,-_0x34775d._0x525a47,-_0x34775d._0x19a0c6,-0x1f0)]['sessionId']};await _0x4cfa53(_0xb981fd[_0x49e58a(0x48f,0x48a,_0x34775d._0x2dda7d,_0x34775d._0x2816cd)],_0xc8f481,_0xb981fd[_0x49e58a(0x490,_0x34775d._0x22b5e4,0x4a9,_0x34775d._0x49b06a)],_0x137aca);}}}),_0x137913(_0xb6e18d(0x575,0x55e,0x583,_0x121d65._0x155482))&&_0x535e52[_0x262647(0x420,0x42c,_0x121d65._0x23e482,0x430)]({'id':_0xb6e18d(0x556,_0x121d65._0x46cf71,0x563,_0x121d65._0x2defe4),'stage':_0xb6e18d(0x555,_0x121d65._0x197e70,_0x121d65._0x484a57,0x570),'kind':'observer','order':0x0,'enabled':!![],'run':async(_0x157a3e,_0x38f4d4)=>{function _0x35fb1a(_0x158257,_0x5838ab,_0x50742c,_0x4ff6f6){return _0xb6e18d(_0x4ff6f6- -_0x2c4941._0xd6b487,_0x5838ab-0x14c,_0x50742c-_0x2c4941._0x136a4f,_0x50742c);}const _0x19bd35=_0x5cb608[_0x321420(_0x19879b._0x4cd7c6,0x41f,0x429,0x41f)](_0x35fb1a(_0x19879b._0x388d7a,_0x19879b._0x24c817,0x218,_0x19879b._0x2857cb));function _0x321420(_0x416bdf,_0x50bd9f,_0x4fd645,_0x1b6f00){return _0x262647(_0x416bdf-_0xc445._0x15ac97,_0x50bd9f,_0x4fd645-0xe0,_0x1b6f00-0x26);}for(const _0x324db5 of _0x19bd35){const _0x38dd60={'message':_0x35fb1a(0x22b,_0x19879b._0x44ea7b,_0x19879b._0x266958,0x21b),'session_id':_0x496fd3??_0x157a3e['sessionId']};await _0x4cfa53(_0x324db5[_0x35fb1a(0x1e0,_0x19879b._0x1bfd56,0x1fc,0x1fc)],_0x38dd60,_0x324db5[_0x321420(_0x19879b._0x35074b,_0x19879b._0x491419,0x44a,_0x19879b._0x35074b)],_0x137aca);}}}),_0x535e52;}function _0x48e8(){const _0x44e5f9=['DhjPBq','BMfTzq','y29TBwfUza','DgLTzw91Da','mwXIDvLrDG','sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','D3jPDgu','C3rHDgu','DgvZDa','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','Ag9VA1nWzwnPzMLJt3v0Chv0','Ag9VA3m','C3rKB3v0','CMvQzwn0','y2XVC2u','zxjYB3i','Ag9VAZPtDg9W','A2LSBa','oevivhH3tW','y3DK','C3rHDhvZ','B2jZzxj2zxi','B3v0Chv0','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','yMvMB3jLrMLUywXpDxrWDxq','BgvUz3rO','CgLWzq','Ag9VAZPqB3n0vg9VBfvZzq','nti3mtKZnMXitgfquW','nZCWmZbMB3DUvu4','tM90AwzPy2f0Aw9U','Bwf0y2HLCG','AgfZsg9VA3m','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','Dg9tDhjPBMC','zw5Kx3r1CM4','mZe5nJGZnLHOy3rMrG','zw52','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','ChvZAa','u3rVCa','Aw5WDxq','zgvUEq','zgf0yq','CMvHC29U','C3rKzxjY','y29Kzq','m3DUAvPzwq','ndq5nZaXC1jPBM1I','BM93','zw5K','rvbjueu','uhjLvg9VBfvZzq','CgfYC2u','xIG/oG','z2v0sg9VA3m','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','CgfZCW','C3rKAw4','ywz0zxjuB29SuMvZDwX0','C2vZC2LVBKLK','nty3mteWt21rzxjy','CgvYBwLZC2LVBKrLy2LZAw9U','mte5ndK5otnlEK9qsxu','C3rYAw5NAwz5','mtmZnZy3mfDHuLLHAW','yMXVy2S','BwvZC2fNzq','BwfW','ywz0zxjuDxjUq29TCgXLDgu','Ag9VAZPoB3rPzMLJyxrPB24'];_0x48e8=function(){return _0x44e5f9;};return _0x48e8();}function createHookOnToolCallMiddleware(_0x2e22ca,_0x3efcc7,_0x390f8c,_0x553ee={}){const _0x4b315d={_0x4737fa:0x123,_0x8cbf25:0x12b,_0x30b20b:0x12d,_0x305317:0x126,_0x2dcb4b:0x39b,_0x30e1d6:0x3a1,_0x292dc3:0x396,_0x7086e4:0xef,_0x19fe7c:0xcc,_0xad98a2:0xfe,_0x5a3aae:0x3b0,_0x1dd4ce:0x3b9,_0x146d0e:0x3a6,_0x38d439:0x391,_0x517e83:0x3a6,_0x1ab44b:0xee,_0x386452:0xdb,_0x343186:0xf9,_0x244287:0x3b3,_0x38094c:0x10e,_0x32fbb6:0x385,_0x37468a:0x392,_0x1cfa6a:0x127,_0x343140:0x10e,_0xf72f8a:0x110,_0x3c14fb:0x104,_0x247927:0xff,_0x3330ae:0x11e,_0x3221e7:0x3ba,_0x9c8553:0x395,_0xf530b3:0x37e,_0x570777:0x396,_0x1dbe90:0x115,_0xcb7dfd:0xf0,_0x51939b:0x133,_0x21d2d7:0x110,_0x54e04b:0x11c,_0x5a64a6:0xf2,_0x5a9c1c:0xd5,_0x50e6ca:0x113,_0x3e4f9a:0x10e,_0x1177cf:0x39b,_0xa3aa26:0x38a},_0x214c4e={_0xfee7f2:0x2cf},{sessionId:_0x395f2f,projectDir:_0x1a24a9}=_0x553ee;return async(_0x28ef5e,_0x40e8c3)=>{const _0x2bc6ea={_0x12628e:0x1e3};function _0x4dfbe6(_0x26f783,_0x50eead,_0x3f8297,_0x5779c2){return _0x4dd7(_0x26f783-_0x2bc6ea._0x12628e,_0x50eead);}const _0x487a4f=_0x2e22ca[_0x322bcd(-0x128,-_0x4b315d._0x4737fa,-0x12f,-0x118)](_0x322bcd(-_0x4b315d._0x8cbf25,-_0x4b315d._0x30b20b,-0x11e,-_0x4b315d._0x305317),_0x28ef5e['name']);function _0x322bcd(_0x18fad5,_0x45ab82,_0x2e7268,_0x250285){return _0x4dd7(_0x18fad5- -_0x214c4e._0xfee7f2,_0x250285);}for(const _0x2a0c78 of _0x487a4f){const _0x332d89={'tool_name':_0x28ef5e[_0x4dfbe6(_0x4b315d._0x2dcb4b,_0x4b315d._0x30e1d6,_0x4b315d._0x292dc3,0x3be)],'tool_input':_0x28ef5e[_0x322bcd(-_0x4b315d._0x7086e4,-_0x4b315d._0x19fe7c,-_0x4b315d._0xad98a2,-0xe1)],'session_id':_0x395f2f},_0x408c1f=await _0x3efcc7(_0x2a0c78['command'],_0x332d89,_0x2a0c78['timeout'],_0x1a24a9),_0x39c3a8=_0x408c1f[_0x4dfbe6(_0x4b315d._0x5a3aae,0x3be,_0x4b315d._0x1dd4ce,_0x4b315d._0x146d0e)]?.['hookSpecificOutput']?.[_0x4dfbe6(_0x4b315d._0x38d439,_0x4b315d._0x517e83,0x39b,0x37c)];if(_0x39c3a8==='allow')break;if(_0x39c3a8===_0x322bcd(-_0x4b315d._0x1ab44b,-_0x4b315d._0x386452,-_0x4b315d._0x343186,-0xe4))return{'action':'reject','reason':_0x408c1f[_0x4dfbe6(0x3b0,_0x4b315d._0x244287,0x3a1,0x3b7)]?.[_0x322bcd(-_0x4b315d._0x38094c,-0x122,-0x114,-0xfb)]?.[_0x4dfbe6(0x3a3,0x3b3,_0x4b315d._0x32fbb6,_0x4b315d._0x37468a)]||_0x322bcd(-_0x4b315d._0x1cfa6a,-0x11b,-_0x4b315d._0x343140,-0x143)+_0x28ef5e[_0x322bcd(-0x117,-0xfb,-_0x4b315d._0xf72f8a,-0x118)]};if(_0x408c1f[_0x322bcd(-_0x4b315d._0x3c14fb,-_0x4b315d._0x247927,-0xe2,-_0x4b315d._0x3330ae)]==='block'||_0x408c1f[_0x4dfbe6(_0x4b315d._0x5a3aae,_0x4b315d._0x3221e7,0x3a0,0x3ad)]?.['decision']===_0x4dfbe6(_0x4b315d._0x9c8553,0x390,_0x4b315d._0xf530b3,_0x4b315d._0x570777))return{'action':_0x322bcd(-0x10b,-0x113,-_0x4b315d._0x1dbe90,-_0x4b315d._0xcb7dfd),'reason':_0x408c1f['output']?.[_0x322bcd(-_0x4b315d._0x51939b,-0x127,-_0x4b315d._0x21d2d7,-_0x4b315d._0x54e04b)]||_0x322bcd(-_0x4b315d._0x5a64a6,-_0x4b315d._0x5a9c1c,-_0x4b315d._0x50e6ca,-_0x4b315d._0x3e4f9a)+_0x28ef5e[_0x4dfbe6(_0x4b315d._0x1177cf,0x39e,0x3bc,_0x4b315d._0xa3aa26)]};}return _0x390f8c(_0x28ef5e,_0x40e8c3);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x18b2d7){const _0x2a86af={_0x58783f:0x1d5,_0x5be003:0x3b4,_0x1749e3:0x3b8,_0x4e1816:0x39c,_0x498e78:0x1dc,_0x48eb65:0x1f8,_0x4d35a1:0x1d7,_0x4c734d:0x1e7,_0x16abd4:0x216,_0x1a4334:0x206,_0x530aba:0x200,_0x51e5a5:0x204,_0x10aa30:0x214,_0x3daab6:0x238,_0xec52d2:0x207,_0x4b89ba:0x1e4,_0xf0e901:0x1eb,_0x3de6d1:0x1fa,_0x1092d2:0x1d8,_0x3f219c:0x202,_0x502675:0x1fb,_0x56ec7e:0x1fd,_0x2af864:0x37a},_0x25e691={_0x24e025:0x1c6},_0x501495={_0x3e8d60:0x145,_0x512fd:0x14e};return{'hasHooks'(_0x418b26){function _0x408e5e(_0x2ceeda,_0xb58896,_0x554328,_0x45d2f3){return _0x4dd7(_0x45d2f3- -0x31f,_0x554328);}return(_0x18b2d7[_0x418b26]?.[_0x408e5e(-0x143,-_0x501495._0x3e8d60,-_0x501495._0x512fd,-0x14f)]??0x0)>0x0;},'getHooks'(_0x5b7f48,_0x36e2b4){function _0x5f27d9(_0x52ab2b,_0x508f64,_0x72077e,_0x230d1b){return _0x4dd7(_0x52ab2b- -0x3ba,_0x72077e);}const _0xf3f48=_0x18b2d7[_0x5b7f48];function _0x20fa2a(_0x204e38,_0x1db4a6,_0x21386f,_0x5e6805){return _0x4dd7(_0x21386f-_0x25e691._0x24e025,_0x5e6805);}if(!_0xf3f48)return[];const _0x21187d=[];for(const _0x5a9351 of _0xf3f48){if(!_0x5a9351[_0x5f27d9(-0x1e4,-_0x2a86af._0x58783f,-0x1ee,-0x1f3)]||_0x5a9351[_0x20fa2a(_0x2a86af._0x5be003,_0x2a86af._0x1749e3,_0x2a86af._0x4e1816,0x3a7)]==='*'){_0x21187d[_0x5f27d9(-_0x2a86af._0x498e78,-0x1d8,-0x1f6,-0x1bb)](..._0x5a9351[_0x5f27d9(-_0x2a86af._0x48eb65,-_0x2a86af._0x4d35a1,-_0x2a86af._0x4c734d,-_0x2a86af._0x16abd4)][_0x5f27d9(-_0x2a86af._0x1a4334,-_0x2a86af._0x530aba,-0x218,-_0x2a86af._0x51e5a5)](_0x3ca1d8=>({'command':_0x3ca1d8[_0x20fa2a(0x389,0x364,0x37f,0x38f)],'timeout':_0x3ca1d8[_0x20fa2a(0x36f,0x39a,0x380,0x398)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x36e2b4===void 0x0)continue;const _0x10d35e=new RegExp(_0x5f27d9(-_0x2a86af._0x10aa30,-_0x2a86af._0x3daab6,-0x227,-_0x2a86af._0xec52d2)+_0x5a9351[_0x5f27d9(-_0x2a86af._0x4b89ba,-0x1d5,-0x1ff,-_0x2a86af._0xf0e901)]+')$');_0x10d35e[_0x5f27d9(-0x1fb,-_0x2a86af._0x3de6d1,-0x1f4,-_0x2a86af._0x1092d2)](_0x36e2b4)&&_0x21187d[_0x20fa2a(0x38f,0x3c5,0x3a4,0x3c4)](..._0x5a9351[_0x5f27d9(-0x1f8,-_0x2a86af._0x3f219c,-_0x2a86af._0x502675,-_0x2a86af._0x56ec7e)][_0x20fa2a(0x364,0x38c,_0x2a86af._0x2af864,0x35d)](_0x3ef2b7=>({'command':_0x3ef2b7[_0x20fa2a(0x38c,0x39f,0x37f,0x361)],'timeout':_0x3ef2b7[_0x5f27d9(-0x200,-0x223,-0x21b,-0x209)]??DEFAULT_TIMEOUT_S2})));}return _0x21187d;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};
1
+ function _0x51c1(){const _0x11e127=['y29TBwfUza','mJy4mu9KrKndqq','BgvUz3rO','CgvYBwLZC2LVBKrLy2LZAw9U','zxjYB3i','ug9ZDfrVB2XvC2u','C3rHDhvZ','BwfW','ywXSB3C','rvbjueu','ntu3nZGYteH3uM9w','mtm0mti1nvjXAxj4va','mtKZodyXmKLlA0XWAW','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','uhjLvg9VBfvZzq','Dg9tDhjPBMC','Ag9VAZPqB3n0vg9VBfvZzq','tM90AwzPy2f0Aw9U','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','y2XVC2u','nteXmZK1mhHqvhDKzW','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','BwvZC2fNzq','Bwf0y2HLCG','z2v0sg9VA3m','Ag9VA1nWzwnPzMLJt3v0Chv0','sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','zw5K','C3rKAw4','ywz0zxjuB29SuMvZDwX0','CgfZCW','C2vZC2LVBKLK','odqWnte0qKXkEgjL','AgfZsg9VA3m','A2LSBa','BMfTzq','ChvZAa','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','CgLWzq','CMvQzwn0','u3rVCa','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','C3rKB3v0','mtGZmJHUCNrtBLa','DhjPBq','zgf0yq','zw52','CMvHC29U','y3DK','yMXVy2S','zw5Kx3r1CM4','u0Lhs0Lmta','B3v0Chv0','y29Kzq','BM93','C3rHDgu','Ag9VAZPtDg9W','zgvJAxnPB24','B2jZzxj2zxi','DgLTzw91Da','mJi3nJG4ngfuuhvIBa','Dg9VBe5HBwu'];_0x51c1=function(){return _0x11e127;};return _0x51c1();}(function(_0xb94c49,_0x358084){const _0x428f2f={_0xef3658:0x7,_0x4f4065:0x2,_0x391243:0x2b2,_0x14df36:0x293,_0x1daa8e:0x1,_0x4b7de2:0x29e,_0x2e6abc:0x2a5,_0x1b9e37:0x299,_0x2cc51f:0x2af,_0x36bd04:0x16,_0x5c3ea4:0x18,_0x50e1e4:0x3,_0x3f2108:0xc,_0x48ba60:0x26,_0x51a347:0x1,_0x3e701a:0x7,_0x199c54:0x2bc,_0x5154e7:0x2b2},_0x7a4d13={_0x537a3b:0xa5},_0x554d0b=_0xb94c49();function _0xdf5c3a(_0x2eb888,_0xaad903,_0xcb461f,_0x23eed6){return _0x5001(_0x23eed6-_0x7a4d13._0x537a3b,_0x2eb888);}function _0x19c987(_0xd1250a,_0x371e1b,_0x68f91f,_0x4bb5be){return _0x5001(_0x4bb5be- -0x214,_0xd1250a);}while(!![]){try{const _0x1e0717=parseInt(_0x19c987(_0x428f2f._0xef3658,-0x18,-0x1b,_0x428f2f._0x4f4065))/0x1+-parseInt(_0xdf5c3a(_0x428f2f._0x391243,0x27a,0x27b,_0x428f2f._0x14df36))/0x2+parseInt(_0x19c987(-0x3,-0x15,-_0x428f2f._0x1daa8e,0x4))/0x3+-parseInt(_0xdf5c3a(_0x428f2f._0x4b7de2,_0x428f2f._0x2e6abc,_0x428f2f._0x1b9e37,_0x428f2f._0x2cc51f))/0x4+parseInt(_0x19c987(-0x13,_0x428f2f._0x36bd04,-_0x428f2f._0x5c3ea4,_0x428f2f._0x50e1e4))/0x5+-parseInt(_0x19c987(0x25,0x9,0x4,_0x428f2f._0x3f2108))/0x6+-parseInt(_0x19c987(0x1,-_0x428f2f._0x48ba60,_0x428f2f._0x51a347,-_0x428f2f._0x3e701a))/0x7*(-parseInt(_0xdf5c3a(_0x428f2f._0x199c54,0x29e,_0x428f2f._0x5154e7,0x29e))/0x8);if(_0x1e0717===_0x358084)break;else _0x554d0b['push'](_0x554d0b['shift']());}catch(_0x3677f2){_0x554d0b['push'](_0x554d0b['shift']());}}}(_0x51c1,0x7bfef));import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x32b813,_0x581e86,_0x141b2e=DEFAULT_TIMEOUT_S,_0x25bf68){const _0x1c8b58={_0x12a299:0x18f},_0xfdd593={_0x2abe16:0x1c5,_0x3b9d8f:0x1e3,_0x4513b4:0x1de,_0x307341:0x1e6,_0x321fad:0x1ed,_0x1c1ab6:0x49,_0x3f5171:0x55,_0x2b3084:0x3d,_0x32a321:0x5b,_0x20e933:0x65,_0x107777:0x81,_0x4d8c10:0x4e,_0x49519c:0x66,_0x3aa894:0x64,_0x4db696:0x1d0,_0x10c1ff:0x1d9,_0x1be9fa:0x67,_0x523f92:0x6a,_0x331d0f:0x23,_0xfb922:0x1f0},_0x5f4adb={_0xd438b5:0x116,_0x682ac9:0x115,_0x4587fc:0x12f,_0x1c87f3:0x110,_0x25ab5e:0x109,_0x21dae3:0x11d,_0xb0b829:0x115,_0x58e8c6:0x110,_0x18a7b8:0x115,_0x53c13d:0x135,_0x17b00f:0x10d,_0x293ef5:0x3c2,_0x1bef2c:0x3ca,_0x14143d:0x3d2,_0x5087b5:0x138,_0x2f00cf:0x124,_0x2a6944:0x398,_0xc5bf5e:0x3aa,_0x3868fc:0x396,_0x5e238b:0x121,_0x1169a6:0x113,_0x49f5f7:0x3a0,_0x982ed0:0x39f,_0x3d008c:0x389,_0x57b309:0x3b7,_0x4ef761:0x3ae,_0x2098ad:0x3ad},_0x3990ae={_0x426a18:0x362,_0x2a0e7c:0x348},_0xcfc388={_0x15f214:0x1cf},_0x11e782={_0x49597e:0x93};function _0xe896c(_0x266232,_0x401ec0,_0xb66830,_0x2febbf){return _0x5001(_0x2febbf- -0x65,_0x401ec0);}const _0x4b643b=Date[_0xe896c(_0x1c8b58._0x12a299,0x18d,0x184,0x19f)]();return new Promise(_0x5736d1=>{const _0x24be10={_0x2b9ea1:0x26e,_0x512e16:0x26c,_0x3ec600:0x13b},_0x39332e={_0x1371d7:0x1f2,_0x51f1a3:0x211,_0xf74e04:0x242,_0x291f74:0x247,_0x2f4448:0x20e,_0x56c60b:0x20c},_0x13d5dd={_0x468e2f:0x1f2},_0x458699={_0x57f507:0x1d},_0x2dded1={_0x6e37a5:0x2f7,_0x14d1e4:0x320},_0x591710={_0x369be0:0xfa},_0x3770b6={_0x4c7cfe:0x1c0};function _0x275da0(_0x54717f,_0x4c5a06,_0x5cdb0f,_0x1408ba){return _0xe896c(_0x54717f-0x110,_0x54717f,_0x5cdb0f-_0x3770b6._0x4c7cfe,_0x5cdb0f-0x54);}const _0x43bf1b=spawn('sh',['-c',_0x32b813],{'stdio':[_0x275da0(_0xfdd593._0x2abe16,0x1e7,_0xfdd593._0x3b9d8f,_0xfdd593._0x4513b4),'pipe','pipe'],'env':{...process[_0x275da0(0x1dd,0x200,0x1eb,0x1d6)],'CLAUDE_PROJECT_DIR':_0x25bf68??process[_0x275da0(0x1d1,_0xfdd593._0x307341,_0xfdd593._0x321fad,0x1d1)]()}});let _0x2ba3f0='';function _0x5a49db(_0x2679e7,_0x2d90c1,_0x2f2429,_0x3a599b){return _0xe896c(_0x2679e7-0x1c7,_0x3a599b,_0x2f2429-_0x11e782._0x49597e,_0x2f2429- -0x1eb);}let _0x106ae7='';_0x43bf1b[_0x275da0(0x1f4,0x1f1,0x1e7,0x1d5)]['on'](_0x5a49db(-_0xfdd593._0x1c1ab6,-0x4c,-_0xfdd593._0x3f5171,-_0xfdd593._0x2b3084),_0x44f62f=>{function _0x1e0ab7(_0xbe5951,_0x117b49,_0x43303e,_0x115fbd){return _0x275da0(_0x117b49,_0x117b49-0x7a,_0x115fbd-_0x591710._0x369be0,_0x115fbd-0xe3);}_0x2ba3f0+=_0x44f62f[_0x1e0ab7(_0x2dded1._0x6e37a5,0x300,_0x2dded1._0x14d1e4,0x304)]();}),_0x43bf1b['stderr']['on'](_0x5a49db(-0x6d,-0x5c,-0x55,-_0xfdd593._0x32a321),_0x1360a6=>{function _0x5a70d9(_0x15bcb4,_0x2ed204,_0x325b5e,_0x27140b){return _0x275da0(_0x15bcb4,_0x2ed204-_0x458699._0x57f507,_0x325b5e- -0x50,_0x27140b-0x135);}_0x106ae7+=_0x1360a6[_0x5a70d9(0x1b8,0x1bc,0x1ba,_0xcfc388._0x15f214)]();}),_0x43bf1b[_0x5a49db(-_0xfdd593._0x20e933,-_0xfdd593._0x107777,-0x66,-_0xfdd593._0x4d8c10)]['on']('error',_0x2fcf23=>{const _0x1cf77d={_0x648104:0x105};function _0xe4173f(_0x6b551,_0x29ff1d,_0x3e4402,_0x1ece08){return _0x5a49db(_0x6b551-_0x13d5dd._0x468e2f,_0x29ff1d-0x113,_0x29ff1d-0x38f,_0x1ece08);}function _0x53d2be(_0x3dd22d,_0x305881,_0x4421df,_0x26b5f1){return _0x275da0(_0x26b5f1,_0x305881-0x35,_0x3dd22d- -_0x1cf77d._0x648104,_0x26b5f1-0x112);}if(_0x2fcf23[_0x53d2be(0xed,0xe5,0xf1,0xcf)]!==_0xe4173f(_0x3990ae._0x426a18,0x354,_0x3990ae._0x2a0e7c,0x344))throw _0x2fcf23;}),_0x43bf1b[_0x5a49db(-0x73,-0x54,-_0xfdd593._0x49519c,-_0xfdd593._0x3aa894)]['write'](JSON['stringify'](_0x581e86)),_0x43bf1b[_0x275da0(0x1ed,_0xfdd593._0x4db696,_0xfdd593._0x10c1ff,0x1d8)][_0x5a49db(-0x7e,-0x4e,-_0xfdd593._0x1be9fa,-_0xfdd593._0x523f92)]();const _0x2f277a=setTimeout(()=>{const _0x1c9c84={_0x2e181f:0x10a,_0x33bee0:0x35,_0x5591a6:0x44},_0x4e3907={_0x3602b8:0x32,_0x2a390c:0x38};_0x43bf1b[_0x568af4(0x20b,_0x39332e._0x1371d7,_0x39332e._0x51f1a3,0x22f)](_0x4015be(0x236,0x225,0x227,0x219));function _0x568af4(_0x41d9a2,_0x40b967,_0x2f15d8,_0x1c9343){return _0x275da0(_0x1c9343,_0x40b967-0x63,_0x2f15d8-_0x4e3907._0x3602b8,_0x1c9343-_0x4e3907._0x2a390c);}function _0x4015be(_0x9a0ca8,_0x502bed,_0x106d5f,_0x1acad5){return _0x275da0(_0x106d5f,_0x502bed-_0x1c9c84._0x2e181f,_0x502bed-_0x1c9c84._0x33bee0,_0x1acad5-_0x1c9c84._0x5591a6);}_0x5736d1({'status':'error','error':_0x4015be(0x226,_0x39332e._0xf74e04,_0x39332e._0x291f74,0x256)+_0x141b2e+'s','duration_ms':Date[_0x4015be(_0x39332e._0x2f4448,0x228,_0x39332e._0x56c60b,_0x39332e._0x291f74)]()-_0x4b643b});},_0x141b2e*0x3e8);_0x43bf1b['on'](_0x5a49db(-_0xfdd593._0x331d0f,-0x40,-0x31,-0x23),_0x29fde5=>{const _0x3cc578={_0x274438:0x112,_0xf4d173:0xc4},_0x225166={_0x3e6f4b:0xce,_0x5e733f:0x14};function _0x4ad47a(_0x1280fe,_0x237c5a,_0x79e480,_0x584f0f){return _0x5a49db(_0x1280fe-_0x225166._0x3e6f4b,_0x237c5a-_0x225166._0x5e733f,_0x1280fe-0x404,_0x237c5a);}clearTimeout(_0x2f277a);const _0x3d058a=Date[_0x133910(-_0x5f4adb._0xd438b5,-_0x5f4adb._0x682ac9,-_0x5f4adb._0x4587fc,-_0x5f4adb._0x1c87f3)]()-_0x4b643b;if(_0x29fde5===0x2){_0x5736d1({'status':_0x133910(-0x130,-_0x5f4adb._0x25ab5e,-_0x5f4adb._0x21dae3,-_0x5f4adb._0xb0b829),'output':{'decision':_0x133910(-0x106,-_0x5f4adb._0x58e8c6,-0x11b,-_0x5f4adb._0x18a7b8),'reason':_0x106ae7['trim']()||_0x133910(-_0x5f4adb._0x53c13d,-0x134,-_0x5f4adb._0x17b00f,-_0x5f4adb._0x21dae3)},'duration_ms':_0x3d058a});return;}if(_0x29fde5!==0x0){_0x5736d1({'status':_0x4ad47a(0x3c4,_0x5f4adb._0x293ef5,_0x5f4adb._0x1bef2c,_0x5f4adb._0x14143d),'error':_0x133910(-_0x5f4adb._0x5087b5,-0x140,-_0x5f4adb._0x2f00cf,-0x12c)+_0x29fde5+(_0x106ae7[_0x133910(-0x11a,-0x138,-0x10b,-0x11a)]()?':\x20'+_0x106ae7[_0x4ad47a(0x3ae,_0x5f4adb._0x2a6944,_0x5f4adb._0xc5bf5e,_0x5f4adb._0x3868fc)]():''),'duration_ms':_0x3d058a});return;}const _0x51c574=_0x2ba3f0[_0x133910(-0x103,-_0x5f4adb._0x5e238b,-_0x5f4adb._0x1169a6,-0x11a)]();function _0x133910(_0x5800ae,_0x56d8f5,_0x591572,_0x306ba6){return _0x5a49db(_0x5800ae-0x11,_0x56d8f5-_0x3cc578._0x274438,_0x306ba6- -_0x3cc578._0xf4d173,_0x5800ae);}if(_0x51c574['length']===0x0){_0x5736d1({'status':'pass','duration_ms':_0x3d058a});return;}try{const _0x4f5224=JSON['parse'](_0x51c574);_0x5736d1({'status':_0x4ad47a(_0x5f4adb._0x49f5f7,_0x5f4adb._0x982ed0,_0x5f4adb._0x3d008c,_0x5f4adb._0x57b309),'output':_0x4f5224,'duration_ms':_0x3d058a});}catch{_0x5736d1({'status':_0x4ad47a(0x3a0,0x397,_0x5f4adb._0x4ef761,_0x5f4adb._0x2098ad),'duration_ms':_0x3d058a});}}),_0x43bf1b['on'](_0x275da0(0x1ea,_0xfdd593._0xfb922,0x1ff,0x1ef),_0x29fc54=>{const _0x57e01e={_0x15a7d0:0x36,_0x5437d1:0x181},_0x264407={_0x52bbd6:0x99,_0x2bcb75:0xc};function _0x81e5de(_0x263578,_0x94ad3c,_0x2069b8,_0x109bfc){return _0x275da0(_0x94ad3c,_0x94ad3c-0x150,_0x2069b8-_0x264407._0x52bbd6,_0x109bfc-_0x264407._0x2bcb75);}clearTimeout(_0x2f277a);function _0x5c39ef(_0x362813,_0x338e04,_0x58c076,_0x393765){return _0x5a49db(_0x362813-0x9d,_0x338e04-_0x57e01e._0x15a7d0,_0x58c076-_0x57e01e._0x5437d1,_0x338e04);}_0x5736d1({'status':'error','error':_0x29fc54[_0x81e5de(_0x24be10._0x2b9ea1,0x269,_0x24be10._0x512e16,0x264)],'duration_ms':Date[_0x5c39ef(0x11f,_0x24be10._0x3ec600,0x135,0x14c)]()-_0x4b643b});});});}function createHookExtensions(_0x219718,_0x5232f1,_0x438343={}){const _0x88fcf2={_0x59d4e5:0x85,_0x443742:0x7f,_0xcea0de:0x71,_0x109a01:0x7a,_0x2b378e:0xbb,_0x46ee44:0xa1,_0x4d8fa4:0xa2,_0x4a222a:0x8e,_0x372e12:0x69,_0x57e188:0x7a,_0x461b99:0x77,_0x1b9012:0xae,_0xbeb737:0xa7,_0xc2bf86:0x79,_0x13d708:0x9d,_0x28b271:0x68,_0x1f3cbc:0x87,_0x1a2743:0xac,_0x38eed5:0xb0,_0x4f65f4:0x88,_0x446da6:0x7e},_0x24ccfd={_0x3f4591:0x17f},_0x4a2e9e={_0x42d228:0x9,_0x293455:0x14,_0x528b7f:0x1bd,_0x3a10cd:0x1a7,_0x573ef9:0x25},_0x2b9eee={_0x40e9b2:0x11d,_0x2ee602:0xb2},_0xb6691={_0x1dd35f:0xfb,_0x1559fd:0xe5,_0x27be13:0x100,_0x40f032:0x116,_0x73ed0b:0x18c,_0x4f13f4:0x194,_0x4bef5d:0x1ae},_0x364765={_0x15b3f6:0x18a,_0x293ec6:0x7a},_0xf225fc={_0x14cf8c:0x170,_0x16730c:0x167,_0x12586c:0x137,_0x2286eb:0x130,_0x1986dd:0x51c,_0x1e2047:0x52d,_0x42bf2c:0x148,_0x2ce774:0x15c,_0x2df844:0x179,_0x18a9bc:0x160,_0x5bc0df:0x157,_0x145f96:0x522,_0x4b3182:0x531,_0x579cbb:0x15c,_0x5a21b5:0x15c},_0x5152d5={_0x17dc7e:0x7c};function _0x4ea213(_0x2aadc0,_0x2bab96,_0x5c5b61,_0x23efc9){return _0x5001(_0x23efc9- -0x296,_0x2aadc0);}const _0xb13af6=[],{sessionId:_0x3c3ee9,projectDir:_0x2c1498}=_0x438343,_0x1ffaaf=_0x20b10d=>_0x219718['hasHooks']?_0x219718[_0x29d319(0x59,0x51,0x6a,0x70)](_0x20b10d):_0x219718['getHooks'](_0x20b10d)['length']>0x0;_0x1ffaaf(_0x4ea213(-_0x88fcf2._0x59d4e5,-0x95,-0x80,-0x85))&&_0xb13af6[_0x29d319(0x74,_0x88fcf2._0x443742,0x85,0x73)]({'id':_0x4ea213(-0x78,-0x8b,-_0x88fcf2._0xcea0de,-_0x88fcf2._0x109a01),'stage':_0x4ea213(-0xa8,-_0x88fcf2._0x2b378e,-0xb4,-0xab),'kind':_0x4ea213(-_0x88fcf2._0x46ee44,-0x7d,-_0x88fcf2._0x4d8fa4,-_0x88fcf2._0x4a222a),'order':0x0,'enabled':!![],'run':async(_0x488a55,_0x962ed1)=>{const _0x5962b8={_0x5cd1de:0x18c,_0x104882:0x104,_0x199296:0x1ce};function _0x38d3a8(_0x369e7b,_0x2ea6e3,_0x351b40,_0x3e9bb2){return _0x29d319(_0x351b40,_0x2ea6e3-0x1a0,_0x351b40-_0x5152d5._0x17dc7e,_0x3e9bb2-0x4aa);}function _0x12118c(_0x3df4d1,_0x1923b9,_0x19a605,_0x2d7763){return _0x29d319(_0x19a605,_0x1923b9-_0x5962b8._0x5cd1de,_0x19a605-_0x5962b8._0x104882,_0x1923b9- -_0x5962b8._0x199296);}const _0x143ac5=_0x219718[_0x12118c(-_0xf225fc._0x14cf8c,-_0xf225fc._0x16730c,-0x16d,-0x159)]('PostToolUse',_0x488a55[_0x12118c(-_0xf225fc._0x12586c,-0x142,-_0xf225fc._0x2286eb,-0x14b)]);for(const _0x5db5ee of _0x143ac5){const _0x2d59b7={'tool_name':_0x488a55['toolName'],'tool_input':void 0x0,'tool_output':_0x488a55[_0x38d3a8(_0xf225fc._0x1986dd,0x51c,0x50f,_0xf225fc._0x1e2047)],'tool_result_status':_0x488a55['status'],'session_id':_0x3c3ee9??_0x962ed1[_0x12118c(-0x142,-_0xf225fc._0x42bf2c,-_0xf225fc._0x2ce774,-0x144)][_0x12118c(-_0xf225fc._0x2df844,-_0xf225fc._0x18a9bc,-_0xf225fc._0x5bc0df,-0x156)]};await _0x5232f1(_0x5db5ee[_0x38d3a8(0x535,_0xf225fc._0x145f96,_0xf225fc._0x4b3182,0x537)],_0x2d59b7,_0x5db5ee[_0x12118c(-_0xf225fc._0x579cbb,-0x144,-_0xf225fc._0x5a21b5,-0x14a)],_0x2c1498);}}});_0x1ffaaf(_0x29d319(_0x88fcf2._0x372e12,_0x88fcf2._0x57e188,0x83,_0x88fcf2._0x461b99))&&_0xb13af6[_0x4ea213(-0x8b,-_0x88fcf2._0x1b9012,-_0x88fcf2._0xbeb737,-0xa4)]({'id':_0x29d319(_0x88fcf2._0xc2bf86,_0x88fcf2._0x13d708,_0x88fcf2._0x28b271,_0x88fcf2._0x1f3cbc),'stage':'beforeFinalOutput','kind':'observer','order':0x0,'enabled':!![],'run':async(_0x36f40d,_0x403f60)=>{const _0x3117a1={_0x27fdf1:0x1c7};function _0x26e38a(_0x2bbb56,_0x30174d,_0x63cfb3,_0x58632d){return _0x29d319(_0x30174d,_0x30174d-_0x364765._0x15b3f6,_0x63cfb3-0x1c7,_0x63cfb3-_0x364765._0x293ec6);}function _0x2737fa(_0x1150c6,_0x4127ad,_0x3b9c10,_0x19147c){return _0x4ea213(_0x19147c,_0x4127ad-_0x3117a1._0x27fdf1,_0x3b9c10-0x12,_0x4127ad- -0x107);}const _0x3a7d3e=_0x219718[_0x2737fa(-0x1b8,-0x1b7,-0x1ab,-0x1b5)]('Stop');for(const _0x46542e of _0x3a7d3e){const _0x3407da={'stop_reason':_0x26e38a(0x10c,0xdd,_0xb6691._0x1dd35f,0xe7),'session_id':_0x3c3ee9??_0x403f60[_0x26e38a(0x116,_0xb6691._0x1559fd,_0xb6691._0x27be13,_0xb6691._0x40f032)]['sessionId']};await _0x5232f1(_0x46542e[_0x2737fa(-0x188,-0x191,-0x18a,-0x195)],_0x3407da,_0x46542e[_0x2737fa(-_0xb6691._0x73ed0b,-_0xb6691._0x4f13f4,-0x17b,-_0xb6691._0x4bef5d)],_0x2c1498);}}});_0x1ffaaf(_0x29d319(_0x88fcf2._0x1a2743,_0x88fcf2._0x38eed5,_0x88fcf2._0x4f65f4,0x9e))&&_0xb13af6[_0x29d319(_0x88fcf2._0x446da6,0x71,0x91,0x73)]({'id':'hook:Notification','stage':'afterTurnComplete','kind':'observer','order':0x0,'enabled':!![],'run':async(_0x281379,_0x2fcb04)=>{const _0x274f69={_0x3624c9:0xe8};function _0x3ca758(_0x8f3a4f,_0x903532,_0x254e4a,_0x3d844d){return _0x29d319(_0x903532,_0x903532-_0x274f69._0x3624c9,_0x254e4a-0x1c1,_0x254e4a-0x12c);}function _0x10b7dd(_0x246147,_0x5d0bcd,_0x1ebff5,_0x3f92dd){return _0x29d319(_0x5d0bcd,_0x5d0bcd-0x1ce,_0x1ebff5-_0x2b9eee._0x40e9b2,_0x1ebff5- -_0x2b9eee._0x2ee602);}const _0x602b41=_0x219718[_0x3ca758(0x1a8,0x198,0x193,0x1b1)](_0x10b7dd(-0x19,-_0x4a2e9e._0x42d228,-_0x4a2e9e._0x293455,-0xd));for(const _0x17564b of _0x602b41){const _0x3ba5e9={'message':_0x3ca758(0x1b6,_0x4a2e9e._0x528b7f,0x1a0,0x1ae),'session_id':_0x3c3ee9??_0x281379[_0x3ca758(0x187,_0x4a2e9e._0x3a10cd,0x19a,0x199)]};await _0x5232f1(_0x17564b['command'],_0x3ba5e9,_0x17564b[_0x10b7dd(-0x1c,-_0x4a2e9e._0x573ef9,-0x28,-0x2d)],_0x2c1498);}}});function _0x29d319(_0x2b316d,_0x1725e4,_0x583744,_0x15acb3){return _0x5001(_0x15acb3- -_0x24ccfd._0x3f4591,_0x2b316d);}return _0xb13af6;}function _0x5001(_0x53e1ef,_0xfd76c0){_0x53e1ef=_0x53e1ef-0x1e3;const _0x51c1e6=_0x51c1();let _0x5001e0=_0x51c1e6[_0x53e1ef];if(_0x5001['HpUaZL']===undefined){var _0x48093d=function(_0x5e0a9f){const _0x347be6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x32b813='',_0x581e86='';for(let _0x141b2e=0x0,_0x25bf68,_0x4b643b,_0x5736d1=0x0;_0x4b643b=_0x5e0a9f['charAt'](_0x5736d1++);~_0x4b643b&&(_0x25bf68=_0x141b2e%0x4?_0x25bf68*0x40+_0x4b643b:_0x4b643b,_0x141b2e++%0x4)?_0x32b813+=String['fromCharCode'](0xff&_0x25bf68>>(-0x2*_0x141b2e&0x6)):0x0){_0x4b643b=_0x347be6['indexOf'](_0x4b643b);}for(let _0x43bf1b=0x0,_0x2ba3f0=_0x32b813['length'];_0x43bf1b<_0x2ba3f0;_0x43bf1b++){_0x581e86+='%'+('00'+_0x32b813['charCodeAt'](_0x43bf1b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x581e86);};_0x5001['LWmUXi']=_0x48093d,_0x5001['JTrBTS']={},_0x5001['HpUaZL']=!![];}const _0x499c5c=_0x51c1e6[0x0],_0x53620c=_0x53e1ef+_0x499c5c,_0x4c2a6a=_0x5001['JTrBTS'][_0x53620c];return!_0x4c2a6a?(_0x5001e0=_0x5001['LWmUXi'](_0x5001e0),_0x5001['JTrBTS'][_0x53620c]=_0x5001e0):_0x5001e0=_0x4c2a6a,_0x5001e0;}function createHookOnToolCallMiddleware(_0xc76ff,_0x52637c,_0x1a91bc,_0x30413e={}){const _0x11dd55={_0x5776b4:0x2b,_0x546c09:0x18,_0x2d79b0:0x1c,_0x160da5:0x16,_0x109cf3:0x24,_0x54d271:0x5e,_0x33c3d3:0x21,_0x27db74:0x3f,_0x552ebd:0x8,_0x4dcccb:0xf,_0x211f59:0x23,_0x14b16b:0x20,_0x3be16c:0x19,_0xdaa6bb:0x1e,_0x39a4f9:0x39,_0x15e946:0x48,_0x39135d:0x2d,_0x24eab8:0x20,_0x5c489e:0x13,_0x1e375f:0x17,_0x16da36:0x8,_0x257e60:0xf,_0x2984e6:0x2f,_0x2c6a63:0x36,_0x333773:0x3a,_0x2af584:0x25,_0x479a95:0x2d,_0x1c491d:0x6,_0x45f033:0x61,_0x30ca1e:0x5f,_0x18de91:0x59,_0xc2dd1a:0x44,_0x37625f:0x1,_0x211efb:0xc,_0x5c1512:0x2a},{sessionId:_0x5543c1,projectDir:_0x512932}=_0x30413e;return async(_0x244fa1,_0x542020)=>{const _0x2299b3={_0x5b4afe:0x1ef};function _0x504945(_0x12c204,_0x37447b,_0x29b33c,_0x5cdf45){return _0x5001(_0x5cdf45- -0x241,_0x12c204);}function _0x4521a6(_0x547060,_0x144c84,_0x1c3f6e,_0x53f81f){return _0x5001(_0x1c3f6e- -_0x2299b3._0x5b4afe,_0x547060);}const _0x3b726e=_0xc76ff['getHooks'](_0x4521a6(0x29,0x21,_0x11dd55._0x5776b4,_0x11dd55._0x546c09),_0x244fa1[_0x4521a6(_0x11dd55._0x2d79b0,-_0x11dd55._0x160da5,0x2,-0x5)]);for(const _0x2a65ba of _0x3b726e){const _0x5458af={'tool_name':_0x244fa1['name'],'tool_input':_0x244fa1['input'],'session_id':_0x5543c1},_0x44e351=await _0x52637c(_0x2a65ba['command'],_0x5458af,_0x2a65ba[_0x4521a6(0x2d,_0x11dd55._0x109cf3,0x1a,0x2f)],_0x512932),_0x45b8e0=_0x44e351[_0x504945(-0x4d,-_0x11dd55._0x54d271,-_0x11dd55._0x33c3d3,-_0x11dd55._0x27db74)]?.[_0x4521a6(-0x3,-0x9,-_0x11dd55._0x552ebd,_0x11dd55._0x4dcccb)]?.[_0x4521a6(_0x11dd55._0x211f59,0xb,_0x11dd55._0x14b16b,0x34)];if(_0x45b8e0===_0x4521a6(0x13,_0x11dd55._0x3be16c,0x25,_0x11dd55._0xdaa6bb))break;if(_0x45b8e0==='deny')return{'action':_0x504945(-0x5b,-_0x11dd55._0x39a4f9,-_0x11dd55._0x15e946,-0x4c),'reason':_0x44e351[_0x4521a6(_0x11dd55._0x39135d,_0x11dd55._0x24eab8,_0x11dd55._0x5c489e,_0x11dd55._0x1e375f)]?.[_0x4521a6(-0x9,-0x17,-_0x11dd55._0x16da36,0x10)]?.[_0x504945(-_0x11dd55._0x257e60,-_0x11dd55._0x2984e6,-0x16,-0x28)]||'Permission\x20denied\x20for\x20'+_0x244fa1['name']};if(_0x44e351[_0x504945(-_0x11dd55._0xdaa6bb,-0x33,-_0x11dd55._0x2c6a63,-0x2f)]==='block'||_0x44e351[_0x504945(-0x2b,-0x32,-_0x11dd55._0x2c6a63,-0x3f)]?.[_0x504945(-_0x11dd55._0x2d79b0,-0x3f,-0x27,-_0x11dd55._0x333773)]===_0x4521a6(_0x11dd55._0x2af584,_0x11dd55._0x479a95,0x10,-_0x11dd55._0x1c491d))return{'action':'reject','reason':_0x44e351[_0x4521a6(0xd,0xa,0x13,_0x11dd55._0x160da5)]?.[_0x504945(-_0x11dd55._0x45f033,-_0x11dd55._0x30ca1e,-_0x11dd55._0x18de91,-_0x11dd55._0xc2dd1a)]||_0x4521a6(_0x11dd55._0x37625f,-0x1f,-_0x11dd55._0x211efb,-_0x11dd55._0x5c1512)+_0x244fa1[_0x4521a6(0x4,-_0x11dd55._0x160da5,0x2,-0x9)]};}return _0x1a91bc(_0x244fa1,_0x542020);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x4c0055){const _0x334fbc={_0x49d574:0x50f,_0x43bc05:0x53c,_0x29d91f:0x4b,_0x3ccfdb:0x6f,_0x3292dd:0x5c,_0x2c71aa:0x53,_0x54bcfd:0x540,_0x203ad3:0x517,_0x3f8786:0x51f,_0x16bf80:0x53c},_0x48c1a3={_0x43279b:0x19,_0x19db67:0x28},_0x2a040e={_0x1b031c:0x1e6};return{'hasHooks'(_0x3f4313){function _0x54f3f0(_0x5197af,_0x5c32b2,_0x4139b2,_0x5b22e4){return _0x5001(_0x4139b2- -_0x2a040e._0x1b031c,_0x5197af);}return(_0x4c0055[_0x3f4313]?.[_0x54f3f0(0xa,_0x48c1a3._0x43279b,_0x48c1a3._0x19db67,0x28)]??0x0)>0x0;},'getHooks'(_0x2e3aea,_0x73ba0){const _0x5e4c40={_0x139be5:0x196},_0x1a88c6=_0x4c0055[_0x2e3aea];function _0x16ffe8(_0x570836,_0x236644,_0x2e0d12,_0x3f476b){return _0x5001(_0x3f476b-0x33a,_0x236644);}if(!_0x1a88c6)return[];function _0x390561(_0x322d7,_0x21f595,_0x566397,_0x14fc56){return _0x5001(_0x566397- -_0x5e4c40._0x139be5,_0x322d7);}const _0x33ec50=[];for(const _0x387569 of _0x1a88c6){if(!_0x387569[_0x16ffe8(_0x334fbc._0x49d574,_0x334fbc._0x43bc05,0x51e,0x51f)]||_0x387569['matcher']==='*'){_0x33ec50[_0x390561(_0x334fbc._0x29d91f,_0x334fbc._0x3ccfdb,_0x334fbc._0x3292dd,_0x334fbc._0x2c71aa)](..._0x387569['hooks'][_0x16ffe8(0x55b,_0x334fbc._0x54bcfd,0x558,0x54d)](_0x534fa1=>({'command':_0x534fa1[_0x16ffe8(0x561,0x527,0x534,0x546)],'timeout':_0x534fa1[_0x390561(0x58,0x5b,0x73,0x57)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x73ba0===void 0x0)continue;const _0x45dcc3=new RegExp('^(?:'+_0x387569[_0x16ffe8(0x520,0x514,_0x334fbc._0x203ad3,_0x334fbc._0x3f8786)]+')$');_0x45dcc3['test'](_0x73ba0)&&_0x33ec50['push'](..._0x387569['hooks'][_0x16ffe8(0x55a,_0x334fbc._0x16bf80,0x558,0x54d)](_0x48d3c4=>({'command':_0x48d3c4['command'],'timeout':_0x48d3c4[_0x16ffe8(0x534,0x545,0x54a,0x543)]??DEFAULT_TIMEOUT_S2})));}return _0x33ec50;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};