@nuvin/agent-core 0.2.0-rc.4 → 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.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-A4CS4HLK.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-IUZALP6K.js +1 -1
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/lsp/client.d.ts +4 -0
- package/dist/models/index.js +1 -1
- package/dist/shared/abort-aware-semaphore.d.ts +5 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.js +1 -1
- package/dist/shared/types.d.ts +8 -0
- package/dist/tools/background-process-registry.d.ts +60 -8
- package/dist/tools/file-mutation.d.ts +15 -0
- package/dist/tools/grep-engine.d.ts +22 -0
- package/dist/tools/grep-tool.d.ts +1 -1
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.js +1 -1
- package/dist/tools/process-tree-termination.d.ts +25 -0
- package/dist/tools/ripgrep.d.ts +1 -0
- package/dist/tools/runtime-manager-tools.d.ts +9 -1
- package/dist/tools/terminal-output-normalizer.d.ts +6 -0
- package/package.json +3 -3
package/dist/hooks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
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};
|
package/dist/lsp/client.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { Location } from "vscode-languageserver-types";
|
|
2
2
|
import type { LspClientInfo, LspServerHandle, LspServerInfo } from "./types.ts";
|
|
3
|
+
/** Default deadline for initialize and all LSP JSON-RPC requests. */
|
|
4
|
+
export declare const DEFAULT_LSP_REQUEST_TIMEOUT_MS = 30000;
|
|
3
5
|
type LocationResponse = Location | Location[] | null | undefined;
|
|
4
6
|
export declare function normalizeLocations(value: LocationResponse): Location[];
|
|
7
|
+
export declare function withLspTimeout<T>(promise: Promise<T>, timeoutMs: number, label: string): Promise<T>;
|
|
5
8
|
export declare function createLspClient(input: {
|
|
6
9
|
server: LspServerInfo;
|
|
7
10
|
root: string;
|
|
8
11
|
handle: LspServerHandle;
|
|
12
|
+
requestTimeoutMs?: number;
|
|
9
13
|
}): Promise<LspClientInfo>;
|
|
10
14
|
export {};
|
|
11
15
|
//# sourceMappingURL=client.d.ts.map
|