@nuvin/agent-core 0.1.0-rc.10 → 0.1.0-rc.12

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(_0x55f945,_0x1dfa1b){const _0x175f09={_0xcd2616:0x81,_0x56a893:0x7a,_0x2e6472:0x7f,_0x50bafd:0x64,_0x31a017:0x61,_0x576d2d:0x57,_0x245e7f:0x85,_0x11b0d0:0xa1,_0x151dd1:0xaa,_0x5f0473:0xbb,_0x522345:0x91,_0x59e48e:0x8e,_0xdc750e:0x93,_0x429acb:0x8f,_0x11f202:0xa6,_0x3c9bb5:0x204,_0x3171dd:0x239,_0x456dc5:0x235,_0x4498d2:0x220,_0x19744a:0xa7,_0x53bf82:0x96,_0x4158f6:0xb0,_0x482b74:0xb0,_0x2b007e:0xa8,_0x53db53:0xbe},_0x555b98={_0x1fac3b:0x1a},_0x1a48a2={_0x5696f6:0x168},_0x2c1b15=_0x55f945();function _0x468577(_0x2fce48,_0x415b8a,_0x3162fa,_0x13cd88){return _0x1745(_0x13cd88-_0x1a48a2._0x5696f6,_0x415b8a);}function _0x2d3b13(_0x5773a8,_0x530b19,_0x4c9ca2,_0xf7b014){return _0x1745(_0x5773a8- -_0x555b98._0x1fac3b,_0x4c9ca2);}while(!![]){try{const _0x479d7d=parseInt(_0x2d3b13(_0x175f09._0xcd2616,0x63,0x7c,_0x175f09._0x56a893))/0x1*(parseInt(_0x2d3b13(_0x175f09._0x2e6472,_0x175f09._0x50bafd,_0x175f09._0x31a017,0x77))/0x2)+-parseInt(_0x2d3b13(0x75,_0x175f09._0x576d2d,0x76,_0x175f09._0x245e7f))/0x3+-parseInt(_0x2d3b13(_0x175f09._0x11b0d0,_0x175f09._0x151dd1,0xa3,_0x175f09._0x5f0473))/0x4+-parseInt(_0x2d3b13(_0x175f09._0x522345,_0x175f09._0x59e48e,_0x175f09._0xdc750e,_0x175f09._0x429acb))/0x5*(parseInt(_0x2d3b13(0x9f,0x81,_0x175f09._0x11f202,0xb3))/0x6)+parseInt(_0x468577(_0x175f09._0x3c9bb5,_0x175f09._0x3171dd,_0x175f09._0x456dc5,_0x175f09._0x4498d2))/0x7*(-parseInt(_0x2d3b13(_0x175f09._0x19744a,0x9d,0xc3,_0x175f09._0x53bf82))/0x8)+-parseInt(_0x2d3b13(_0x175f09._0x4158f6,_0x175f09._0x482b74,0x97,0x96))/0x9+parseInt(_0x2d3b13(_0x175f09._0x2b007e,0x89,0xc4,_0x175f09._0x53db53))/0xa;if(_0x479d7d===_0x1dfa1b)break;else _0x2c1b15['push'](_0x2c1b15['shift']());}catch(_0x28714b){_0x2c1b15['push'](_0x2c1b15['shift']());}}}(_0x3b5f,0x3a921));function _0x582a1e(_0x1120ad,_0x23a217,_0x18e323,_0x4d5f56){return _0x1745(_0x1120ad-0xaa,_0x18e323);}function _0x1745(_0x4bfbe0,_0x4684c7){_0x4bfbe0=_0x4bfbe0-0x8e;const _0x3b5f9c=_0x3b5f();let _0x174582=_0x3b5f9c[_0x4bfbe0];if(_0x1745['tKtABl']===undefined){var _0x45b9b0=function(_0x2d465d){const _0x34957c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30bdac='',_0x55f09f='';for(let _0x560e72=0x0,_0x11acbc,_0x4e3e95,_0x394092=0x0;_0x4e3e95=_0x2d465d['charAt'](_0x394092++);~_0x4e3e95&&(_0x11acbc=_0x560e72%0x4?_0x11acbc*0x40+_0x4e3e95:_0x4e3e95,_0x560e72++%0x4)?_0x30bdac+=String['fromCharCode'](0xff&_0x11acbc>>(-0x2*_0x560e72&0x6)):0x0){_0x4e3e95=_0x34957c['indexOf'](_0x4e3e95);}for(let _0x351261=0x0,_0x557abd=_0x30bdac['length'];_0x351261<_0x557abd;_0x351261++){_0x55f09f+='%'+('00'+_0x30bdac['charCodeAt'](_0x351261)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x55f09f);};_0x1745['jUMbOI']=_0x45b9b0,_0x1745['XsEVRm']={},_0x1745['tKtABl']=!![];}const _0x374c4a=_0x3b5f9c[0x0],_0x43ff15=_0x4bfbe0+_0x374c4a,_0x4071c1=_0x1745['XsEVRm'][_0x43ff15];return!_0x4071c1?(_0x174582=_0x1745['jUMbOI'](_0x174582),_0x1745['XsEVRm'][_0x43ff15]=_0x174582):_0x174582=_0x4071c1,_0x174582;}function createTextBlock(_0x30bdac){const _0x2ad578={_0x3c4f84:0x280};function _0x442125(_0x4722a4,_0x3a7761,_0x21039c,_0x4bd75b){return _0x1745(_0x3a7761-_0x2ad578._0x3c4f84,_0x4722a4);}return{'type':_0x442125(0x30d,0x324,0x329,0x315),'text':_0x30bdac};}function normalizeTextBlock(_0x55f09f){const _0x30dd55={_0x2c59da:0xbf};function _0x801f87(_0x3ce6c0,_0x524614,_0x38c40b,_0x484f44){return _0x1745(_0x484f44- -0x146,_0x3ce6c0);}return createTextBlock(_0x55f09f[_0x801f87(-0x9c,-_0x30dd55._0x2c59da,-0x9a,-0xa2)]??'');}function normalizeContent(_0x560e72){const _0x34b264={_0x309115:0x78,_0x11659c:0x69,_0x19f50c:0x72},_0x3876ee={_0x4ef3c1:0x16e,_0x53d7a3:0x17f,_0x2e74b2:0x163,_0x23b2d3:0x148,_0x6b0c0b:0x1dd,_0x4542ba:0x1f9,_0x51930b:0x1de},_0x575713={_0x1a9190:0xb1};function _0x584cc0(_0x4180e2,_0x4df678,_0x1ed8bb,_0x4d8835){return _0x1745(_0x4d8835- -0x10c,_0x1ed8bb);}if(typeof _0x560e72===_0x584cc0(-0x77,-_0x34b264._0x309115,-_0x34b264._0x11659c,-0x7a))return[createTextBlock(_0x560e72)];if(!Array[_0x584cc0(-0x89,-_0x34b264._0x19f50c,-0x51,-0x6d)](_0x560e72))return[];function _0x82bb28(_0x100b1d,_0x27145f,_0x4246cb,_0x3ae386){return _0x1745(_0x27145f- -_0x575713._0x1a9190,_0x3ae386);}return _0x560e72['map'](_0x11acbc=>{const _0x3563e8={_0x195939:0x192,_0x17e13b:0xf6};if(_0x11acbc[_0x46530b(-_0x3876ee._0x4ef3c1,-_0x3876ee._0x53d7a3,-_0x3876ee._0x2e74b2,-_0x3876ee._0x23b2d3)]===_0x4fc6f4(-0x1ec,-_0x3876ee._0x6b0c0b,-_0x3876ee._0x4542ba,-_0x3876ee._0x51930b))return normalizeTextBlock(_0x11acbc);function _0x46530b(_0x458167,_0x3f7036,_0x317fb4,_0x593e22){return _0x82bb28(_0x458167-_0x3563e8._0x195939,_0x317fb4- -0x167,_0x317fb4-_0x3563e8._0x17e13b,_0x593e22);}function _0x4fc6f4(_0x360f91,_0x1afd12,_0x10c559,_0x2138fc){return _0x82bb28(_0x360f91-0x4,_0x2138fc- -0x1d1,_0x10c559-0x1d,_0x10c559);}return structuredClone(_0x11acbc);});}function normalizeSystem(_0x4e3e95=[]){const _0x3aa2f5={_0x3d5931:0x10a,_0x3d7dd9:0xf5};function _0x8f83d1(_0x321c8c,_0x53c948,_0x2e1b09,_0x374962){return _0x1745(_0x321c8c- -0x2da,_0x53c948);}function _0x2931aa(_0xeda7d0,_0x5145a9,_0xa96ad6,_0x355632){return _0x1745(_0xeda7d0-0x5c,_0xa96ad6);}return normalizeContent(_0x4e3e95)[_0x2931aa(0x101,_0x3aa2f5._0x3d5931,_0x3aa2f5._0x3d7dd9,0xf7)](_0x394092=>_0x394092[_0x8f83d1(-0x225,-0x213,-0x22e,-0x23e)]===_0x8f83d1(-0x236,-0x226,-0x247,-0x232));}function normalizeMessage(_0x351261){const _0x494779={_0x21b84a:0x2ee,_0x395c36:0x2d9,_0x3424f7:0x2dd,_0x21b5aa:0x305,_0x5b6fa9:0x2e9,_0x2432b5:0x302,_0xb2d6a:0x2de,_0x46a05a:0x2e8,_0x1cbbc8:0x2c3,_0x3e5fcd:0x2c0,_0x52779f:0x2b7,_0x4ed44b:0x2db};function _0x23978b(_0x139f24,_0x122b68,_0x28fcc9,_0x4bc255){return _0x1745(_0x122b68-0x33f,_0x4bc255);}function _0xe37a6a(_0x1d9eac,_0x1b622d,_0x14681d,_0x31e1a0){return _0x1745(_0x1d9eac- -0x380,_0x1b622d);}return{...typeof _0x351261['id']===_0xe37a6a(-_0x494779._0x21b84a,-_0x494779._0x395c36,-_0x494779._0x3424f7,-_0x494779._0x21b5aa)?{'id':_0x351261['id']}:{},'role':_0x351261[_0xe37a6a(-_0x494779._0x5b6fa9,-_0x494779._0x2432b5,-_0x494779._0xb2d6a,-0x2da)],'content':normalizeContent(_0x351261[_0xe37a6a(-0x2d4,-0x2c3,-_0x494779._0x46a05a,-0x2d2)]),..._0x351261[_0xe37a6a(-_0x494779._0x1cbbc8,-_0x494779._0x3e5fcd,-0x2d3,-0x2c0)]?{'providerState':structuredClone(_0x351261[_0xe37a6a(-_0x494779._0x1cbbc8,-_0x494779._0x52779f,-0x2bb,-_0x494779._0x4ed44b)])}:{}};}function compileRequest(_0x557abd){const _0x2a7f2c={_0x411888:0x407,_0x154810:0x3eb,_0x3abbc7:0x3e0,_0x2fe649:0x406,_0x518283:0x3ef,_0x52513f:0x3fd,_0x556194:0x3d7,_0x101f0a:0x400,_0xb34924:0x3ec,_0xba103b:0x40e,_0x2885f8:0x3e2,_0x3746db:0x23c,_0x1a9a03:0x20d,_0x44617d:0x217,_0x3f4f0e:0x21e,_0x20419b:0x21e,_0x3a5bcc:0x201,_0x2ff428:0x208,_0x2d0de9:0x3ce,_0x1ed7d7:0x3ea,_0x9d44d9:0x3e5,_0x1af5b9:0x40b,_0x9236aa:0x3e3},_0x4fc5e3={_0x1c203a:0x2cc};function _0x4fc72a(_0xbf5ee4,_0x56b150,_0x7c3c84,_0x268cfb){return _0x1745(_0x268cfb-0x34e,_0x7c3c84);}function _0x33c08b(_0x939d1a,_0xb5463f,_0x96d0cd,_0x57836f){return _0x1745(_0x57836f- -_0x4fc5e3._0x1c203a,_0xb5463f);}return{'model':_0x557abd[_0x4fc72a(_0x2a7f2c._0x411888,0x3d5,0x3f6,0x3f1)]??_0x4fc72a(_0x2a7f2c._0x154810,_0x2a7f2c._0x3abbc7,_0x2a7f2c._0x2fe649,_0x2a7f2c._0x518283),..._0x557abd[_0x4fc72a(0x3ea,_0x2a7f2c._0x52513f,_0x2a7f2c._0x556194,0x3ec)]!==void 0x0?{'max_tokens':_0x557abd[_0x4fc72a(0x400,_0x2a7f2c._0x101f0a,0x3e0,_0x2a7f2c._0xb34924)]}:{},..._0x557abd[_0x4fc72a(_0x2a7f2c._0xba103b,0x40e,_0x2a7f2c._0x2885f8,0x3fc)]?{'reasoning':structuredClone(_0x557abd[_0x33c08b(-_0x2a7f2c._0x3746db,-_0x2a7f2c._0x1a9a03,-_0x2a7f2c._0x44617d,-_0x2a7f2c._0x3f4f0e)])}:{},'system':normalizeSystem(_0x557abd[_0x33c08b(-_0x2a7f2c._0x20419b,-_0x2a7f2c._0x3a5bcc,-_0x2a7f2c._0x44617d,-_0x2a7f2c._0x2ff428)]),'messages':_0x557abd['messages'][_0x4fc72a(_0x2a7f2c._0x2d0de9,0x3f1,0x3e7,_0x2a7f2c._0x1ed7d7)](normalizeMessage),'tools':structuredClone(_0x557abd[_0x4fc72a(_0x2a7f2c._0x9d44d9,_0x2a7f2c._0x1af5b9,_0x2a7f2c._0x9236aa,0x3f4)]??[]),'metadata':{'session_id':_0x557abd['sessionId'],'turn_id':_0x557abd[_0x4fc72a(0x3da,0x3ee,0x3c9,0x3e3)]}};}function toChatRequest(_0x3fa6a2){const _0x54e8b={_0xd3d001:0x4f,_0x2f98de:0x3b,_0x18dbe8:0x45,_0x5959e7:0x27a,_0xc21992:0x25e,_0x11f2b0:0x56,_0x53bc91:0x285,_0x2d87b3:0x295,_0x4e0d00:0x5f,_0x4c7936:0x54,_0x57254c:0x4e,_0x476575:0x58,_0x381923:0x6f,_0x500f75:0x6e,_0x329032:0x2a7,_0x43ef8d:0x2b0,_0x2c3a80:0x281,_0x251079:0x3e,_0x67dcc5:0x38,_0x1cbbd4:0x4b};function _0x4ca7e4(_0x2b3344,_0x2cc5e7,_0x1e5caa,_0x5a002a){return _0x1745(_0x1e5caa- -0x58,_0x5a002a);}function _0x8e604d(_0x39f89a,_0x4b37f3,_0x36c72c,_0x2473cb){return _0x1745(_0x39f89a-0x1dc,_0x2473cb);}return{'model':_0x3fa6a2[_0x4ca7e4(0x63,0x4f,0x4b,_0x54e8b._0xd3d001)],..._0x3fa6a2[_0x4ca7e4(0x59,_0x54e8b._0x2f98de,0x46,_0x54e8b._0x18dbe8)]!==void 0x0?{'maxTokens':_0x3fa6a2[_0x8e604d(_0x54e8b._0x5959e7,0x264,_0x54e8b._0xc21992,0x271)]}:{},..._0x3fa6a2[_0x4ca7e4(0x5f,0x3c,_0x54e8b._0x11f2b0,0x5f)]?{'reasoning':structuredClone(_0x3fa6a2['reasoning'])}:{},'system':structuredClone(_0x3fa6a2[_0x8e604d(0x2a0,_0x54e8b._0x53bc91,0x2b5,0x2b2)]),'messages':structuredClone(_0x3fa6a2[_0x8e604d(0x286,0x268,0x295,_0x54e8b._0x2d87b3)]),'tools':structuredClone(_0x3fa6a2[_0x4ca7e4(_0x54e8b._0x4e0d00,_0x54e8b._0x4c7936,_0x54e8b._0x57254c,_0x54e8b._0x476575)]),'metadata':{'sessionId':_0x3fa6a2['metadata']['session_id'],'turnId':_0x3fa6a2[_0x4ca7e4(0x6d,_0x54e8b._0x381923,_0x54e8b._0x500f75,0x5e)][_0x8e604d(0x296,_0x54e8b._0x329032,_0x54e8b._0x43ef8d,_0x54e8b._0x2c3a80)]},..._0x3fa6a2[_0x4ca7e4(_0x54e8b._0x251079,0x3e,_0x54e8b._0x67dcc5,_0x54e8b._0x1cbbd4)]?{'outputFormat':structuredClone(_0x3fa6a2['outputFormat'])}:{}};}function toModelRequest(_0x2e0923){const _0x81da73={_0x2b77c1:0x2b7,_0x1f4d95:0x299,_0x54c202:0x2cc,_0x3da6c6:0x2d5,_0x4dd97b:0x2af,_0x7ef9fa:0x2b5,_0x552e27:0x2ae,_0x5b5c26:0x29b,_0xd5f9f6:0x2ad,_0x1e05b8:0x29c,_0x257958:0x289,_0x815875:0x26f,_0x1d9466:0x269};function _0x677869(_0x10223d,_0x4eda2e,_0x21406d,_0x4d8ddf){return _0x1745(_0x10223d-0x207,_0x4eda2e);}function _0x127d51(_0x3d74cc,_0x479867,_0x30ae20,_0x6ccb83){return _0x1745(_0x3d74cc-0x1f1,_0x30ae20);}return{'model':_0x2e0923['model'],..._0x2e0923[_0x677869(_0x81da73._0x2b77c1,_0x81da73._0x1f4d95,_0x81da73._0x54c202,_0x81da73._0x3da6c6)]!==void 0x0?{'max_tokens':_0x2e0923[_0x127d51(0x2a1,0x29b,_0x81da73._0x4dd97b,0x292)]}:{},..._0x2e0923[_0x677869(_0x81da73._0x7ef9fa,0x29b,_0x81da73._0x552e27,0x2a9)]?{'reasoning':structuredClone(_0x2e0923[_0x127d51(0x29f,0x28e,0x280,0x28e)])}:{},'system':structuredClone(_0x2e0923[_0x127d51(0x2b5,0x2b7,0x2a7,0x2b5)]),'messages':structuredClone(_0x2e0923[_0x127d51(_0x81da73._0x5b5c26,0x2b6,_0x81da73._0xd5f9f6,0x292)]),'tools':structuredClone(_0x2e0923['tools']),'metadata':{'session_id':_0x2e0923['metadata'][_0x127d51(0x28b,0x29a,0x28f,0x296)],'turn_id':_0x2e0923['metadata'][_0x677869(_0x81da73._0x1e05b8,0x2a7,_0x81da73._0x257958,0x2b9)]},..._0x2e0923[_0x127d51(0x281,_0x81da73._0x815875,0x29e,_0x81da73._0x1d9466)]?{'outputFormat':structuredClone(_0x2e0923['outputFormat'])}:{}};}function toProviderModelRequest(_0x378c63){const _0x1d14ce={_0x4d6ff6:0x442,_0x364e5d:0x443,_0x421ff8:0x44f,_0x6de8a9:0x467,_0x4c1213:0x43a,_0x51c0f0:0x446,_0x49c9cb:0x452,_0x4e5d48:0x446},_0x5afcf3={_0x293fc4:0x39f};function _0x305600(_0x47d1ff,_0xfac76d,_0x1e72c1,_0x1cd45c){return _0x1745(_0x47d1ff-_0x5afcf3._0x293fc4,_0xfac76d);}function _0x267aac(_0x310718,_0x5f3c9f,_0xd6b25e,_0x4356fb){return _0x1745(_0x5f3c9f-0x58,_0x310718);}return{'model':_0x378c63[_0x305600(_0x1d14ce._0x4d6ff6,_0x1d14ce._0x364e5d,0x45e,0x44e)],..._0x378c63[_0x305600(_0x1d14ce._0x421ff8,_0x1d14ce._0x6de8a9,_0x1d14ce._0x4c1213,0x46b)]!==void 0x0?{'max_tokens':_0x378c63[_0x305600(0x44f,0x444,_0x1d14ce._0x51c0f0,0x447)]}:{},'system':structuredClone(_0x378c63[_0x305600(0x463,0x44c,0x476,0x452)]),'messages':structuredClone(_0x378c63[_0x305600(0x449,0x450,_0x1d14ce._0x49c9cb,_0x1d14ce._0x4e5d48)]),'tools':structuredClone(_0x378c63['tools'])};}function toChatResponse(_0x5828ad){const _0x408595={_0x371c77:0x24a,_0x1e8163:0x46e,_0x4fde19:0x485,_0x9a3272:0x24b,_0x351935:0x23d,_0xb540c3:0x21c,_0x169245:0x478,_0x75517c:0x48c,_0x4dba38:0x218,_0x36c983:0x236,_0x46ea88:0x239,_0x33e83e:0x472,_0x406a64:0x48f,_0x683c15:0x48d,_0x2de048:0x45b,_0xd3cfea:0x46a,_0x5b6190:0x479},_0x5add2a={_0x35897a:0x3ad},_0x11be05={_0x31ed21:0x2ea};function _0x39238c(_0x27d588,_0x5897e5,_0x4949aa,_0x3c8797){return _0x1745(_0x4949aa- -_0x11be05._0x31ed21,_0x5897e5);}function _0x3eaf8e(_0x450527,_0x26741b,_0x4aba9a,_0x30ae7d){return _0x1745(_0x450527-_0x5add2a._0x35897a,_0x26741b);}return{'id':_0x5828ad['id'],'content':structuredClone(_0x5828ad['content']),'stopReason':_0x5828ad[_0x39238c(-0x20f,-0x244,-0x22c,-_0x408595._0x371c77)],'usage':{'inputTokens':_0x5828ad[_0x3eaf8e(0x478,_0x408595._0x1e8163,0x492,_0x408595._0x4fde19)][_0x39238c(-_0x408595._0x9a3272,-_0x408595._0x351935,-0x237,-_0x408595._0xb540c3)],'outputTokens':_0x5828ad['usage']['output_tokens'],..._0x5828ad[_0x3eaf8e(_0x408595._0x169245,0x45a,_0x408595._0x75517c,0x495)][_0x39238c(-_0x408595._0x4dba38,-_0x408595._0x36c983,-0x225,-_0x408595._0x46ea88)]!==void 0x0?{'reasoningTokens':_0x5828ad['usage'][_0x3eaf8e(_0x408595._0x33e83e,_0x408595._0x406a64,_0x408595._0x683c15,_0x408595._0x2de048)]}:{}},..._0x5828ad['providerState']?{'providerState':structuredClone(_0x5828ad[_0x3eaf8e(_0x408595._0xd3cfea,_0x408595._0x5b6190,_0x408595._0xd3cfea,0x467)])}:{}};}function toModelResponse(_0x125cd5){const _0x55ac3c={_0xd0470d:0x17,_0x322dbc:0x3,_0x150a8e:0x19,_0x11fc08:0x15,_0x5566c6:0x10,_0x5660e6:0xe,_0x103275:0x4,_0x2f70b9:0x23,_0x44b021:0x11,_0x208407:0x7,_0x3ace9b:0x12,_0x4bfa09:0xd,_0x53a79f:0x3a,_0x502044:0x6,_0x2697c6:0x20,_0x3610d4:0x38},_0x3f1d3f={_0x2a4040:0x9d},_0x40f2a3={_0x45d9c1:0xd9};function _0x4887bd(_0x3eeefe,_0x284fc3,_0x6e0891,_0x4c0f39){return _0x1745(_0x3eeefe- -_0x40f2a3._0x45d9c1,_0x4c0f39);}function _0x165ef2(_0x155e3e,_0x9d57d4,_0x5a9c44,_0x2ae2cc){return _0x1745(_0x9d57d4- -_0x3f1d3f._0x2a4040,_0x155e3e);}return{'id':_0x125cd5['id'],'type':_0x165ef2(-_0x55ac3c._0xd0470d,-0x9,-_0x55ac3c._0x322dbc,-0x15),'role':_0x165ef2(0x33,_0x55ac3c._0x150a8e,0x16,-0x2),'content':structuredClone(_0x125cd5['content']),'stop_reason':_0x125cd5[_0x4887bd(-0x2a,-0x23,-0x38,-0x47)],'stop_sequence':null,'usage':{'input_tokens':_0x125cd5[_0x4887bd(-0xe,-0x14,-_0x55ac3c._0x11fc08,-_0x55ac3c._0x5566c6)]['inputTokens'],'output_tokens':_0x125cd5[_0x4887bd(-_0x55ac3c._0x5660e6,_0x55ac3c._0x103275,0x4,-_0x55ac3c._0x2f70b9)]['outputTokens'],..._0x125cd5[_0x4887bd(-_0x55ac3c._0x5660e6,-_0x55ac3c._0x44b021,-0x9,-0x28)][_0x165ef2(_0x55ac3c._0x322dbc,-_0x55ac3c._0x208407,-0xc,-0x26)]!==void 0x0?{'reasoning_tokens':_0x125cd5[_0x4887bd(-0xe,-_0x55ac3c._0x3ace9b,_0x55ac3c._0x4bfa09,0x3)][_0x4887bd(-0x43,-0x58,-0x50,-_0x55ac3c._0x53a79f)]}:{}},..._0x125cd5[_0x165ef2(_0x55ac3c._0x502044,_0x55ac3c._0x2697c6,_0x55ac3c._0x3610d4,0x14)]?{'providerState':structuredClone(_0x125cd5['providerState'])}:{}};}function responseToAssistantMessage(_0x301636){const _0x20c731={_0x204ece:0x151,_0x3030f6:0x12f,_0x5ad3b1:0x13d,_0x4c8c29:0x60,_0xbb5342:0x6a};function _0x4e3200(_0x4c1f6b,_0x5b1234,_0x3ca5f4,_0x55ed41){return _0x1745(_0x3ca5f4- -0x127,_0x55ed41);}function _0x31d567(_0x5defbc,_0x4d985f,_0x1b1d7f,_0x247d1e){return _0x1745(_0x247d1e- -0x1fa,_0x5defbc);}return{'role':'assistant','content':normalizeContent(_0x301636[_0x31d567(-_0x20c731._0x204ece,-0x15d,-0x151,-0x14e)]),..._0x301636[_0x31d567(-_0x20c731._0x3030f6,-0x158,-0x12e,-_0x20c731._0x5ad3b1)]?{'providerState':structuredClone(_0x301636[_0x4e3200(-0x79,-_0x20c731._0x4c8c29,-_0x20c731._0xbb5342,-0x78)])}:{}};}function createReasoningMessage(_0x586892){const _0x20da9e={_0x4fe1d1:0x73,_0x274c59:0x79,_0x3f911a:0x92,_0x17361e:0x49,_0x11cbc5:0x5b,_0x3f010a:0x230,_0x1a115b:0x201,_0x404488:0x214},_0x447a7c={_0x939f7b:0x11e},_0x39e264={_0x393f72:0x3c8,_0x259172:0x3ba,_0x54dcdd:0x3ba,_0x34ed94:0x310,_0x2b4fb1:0x2fe,_0x1a29fa:0x3a3,_0x17cafa:0x3c2,_0x2e4cfa:0x314,_0x3d581d:0x34d},_0x57e90e=normalizeContent(_0x586892?.[_0x4ec964(-0x8b,-_0x20da9e._0x4fe1d1,-0x72,-0x77)])[_0x4ec964(-0x84,-0x8b,-_0x20da9e._0x274c59,-_0x20da9e._0x3f911a)](_0x3c5b0a=>{const _0x5811d6={_0x540b75:0x44},_0x3619d0={_0x3ac55c:0x196,_0x2afc64:0x42b,_0x4305a6:0x4};function _0x1a71e4(_0x5d6352,_0x3a65cf,_0x2e31bc,_0x37c6b1){return _0x4ec964(_0x5d6352-_0x3619d0._0x3ac55c,_0x2e31bc,_0x37c6b1-_0x3619d0._0x2afc64,_0x37c6b1-_0x3619d0._0x4305a6);}function _0x58c7ba(_0x243f0e,_0xf8e4ea,_0x452f8f,_0x11a714){return _0x4723f0(_0x243f0e-0xab,_0xf8e4ea-_0x5811d6._0x540b75,_0xf8e4ea,_0x11a714-0x53d);}return _0x3c5b0a[_0x1a71e4(0x3ab,0x3ba,0x3ce,0x3c2)]===_0x1a71e4(_0x39e264._0x393f72,0x3b0,_0x39e264._0x259172,_0x39e264._0x54dcdd)||_0x3c5b0a['type']===_0x58c7ba(0x31f,_0x39e264._0x34ed94,_0x39e264._0x2b4fb1,0x315)||_0x3c5b0a[_0x1a71e4(0x3e1,_0x39e264._0x1a29fa,0x3b6,_0x39e264._0x17cafa)]===_0x58c7ba(_0x39e264._0x2e4cfa,_0x39e264._0x3d581d,0x332,0x332);});if(_0x57e90e[_0x4ec964(-_0x20da9e._0x17361e,-0x47,-_0x20da9e._0x11cbc5,-0x77)]===0x0)return void 0x0;function _0x4ec964(_0x44ac22,_0x495970,_0x328481,_0x4a5e7b){return _0x1745(_0x328481- -_0x447a7c._0x939f7b,_0x495970);}function _0x4723f0(_0x2b4d58,_0x12fe61,_0x2e82d1,_0x1bc13b){return _0x1745(_0x1bc13b- -0x2ca,_0x2e82d1);}return{'role':_0x4723f0(-_0x20da9e._0x3f010a,-0x220,-_0x20da9e._0x1a115b,-_0x20da9e._0x404488),'content':_0x57e90e};}function createAssistantTextMessage(_0x5cbf8d){const _0x544e0a={_0x4c0498:0x349,_0xf1aeef:0x34a,_0x44ac84:0x33a,_0x1ebfd3:0x32d},_0x263b8d={_0x45117b:0x477,_0xdeb6b1:0x474};function _0x301c7f(_0xc690ab,_0xf4048a,_0x17e883,_0x427a23){return _0x1745(_0xf4048a-0x284,_0x17e883);}const _0x2d35fe=normalizeContent(_0x5cbf8d?.['content'])['filter'](_0x35e507=>{function _0xe35fbc(_0x504999,_0x6b2e4d,_0x20f7b0,_0x864496){return _0x1745(_0x6b2e4d-0x3c3,_0x504999);}return _0x35e507['type']===_0xe35fbc(_0x263b8d._0x45117b,0x467,0x45a,_0x263b8d._0xdeb6b1);});if(_0x2d35fe[_0x301c7f(0x347,0x347,_0x544e0a._0x4c0498,0x357)]===0x0)return void 0x0;function _0x3ed626(_0x136ac3,_0x13d5a7,_0x5bee8a,_0x3c680a){return _0x1745(_0x136ac3- -0x18b,_0x3c680a);}return{'role':_0x301c7f(_0x544e0a._0xf1aeef,_0x544e0a._0x44ac84,_0x544e0a._0x1ebfd3,0x34d),'content':_0x2d35fe};}function createToolUseMessage(_0x1e700e){const _0xb005bf={_0x224642:0x312,_0xba8a32:0x2b9,_0x124182:0x2fc},_0x3f27a7={_0x6ef0b5:0x32,_0x296397:0x80},_0x351f57={_0x4c542a:0x35e};function _0x382e4f(_0x101b9a,_0x1946d5,_0x4e707f,_0x32a4a7){return _0x1745(_0x1946d5- -_0x351f57._0x4c542a,_0x101b9a);}const _0xbf52da=normalizeContent(_0x1e700e?.[_0x3ec3a9(0x317,0x311,0x2fb,_0xb005bf._0x224642)])[_0x382e4f(-0x2be,-_0xb005bf._0xba8a32,-0x2ba,-0x2af)](_0x2afad1=>{const _0x3b5f1f={_0x3bbea2:0x77},_0x23d645={_0x592157:0x1d4,_0x3b6e5c:0x184};function _0x1559be(_0x56acc1,_0x449b05,_0xbf058,_0x2bd697){return _0x3ec3a9(_0x56acc1-_0x23d645._0x592157,_0x449b05-_0x23d645._0x3b6e5c,_0xbf058- -0x348,_0x449b05);}function _0x37c796(_0x21553b,_0x2730ca,_0x5d091c,_0x15bed4){return _0x382e4f(_0x2730ca,_0x21553b-0x288,_0x5d091c-0xeb,_0x15bed4-_0x3b5f1f._0x3bbea2);}return _0x2afad1[_0x37c796(-0x21,-_0x3f27a7._0x6ef0b5,-0x27,-0x3a)]===_0x1559be(-_0x3f27a7._0x296397,-0x6a,-0x61,-0x79);});function _0x3ec3a9(_0x28aea6,_0x5ccadc,_0x334621,_0x5d90be){return _0x1745(_0x334621-0x24f,_0x5d90be);}if(_0xbf52da['length']===0x0)return void 0x0;return{'role':_0x3ec3a9(_0xb005bf._0x124182,0x2e9,0x305,0x2f5),'content':_0xbf52da};}function getTextFromMessage(_0x27e74b){const _0x9871e1={_0x323737:0x2e1,_0x16d305:0x2d4,_0x5678fd:0x2ed,_0x1fc66e:0x2d7,_0x1349b0:0x2e0,_0x15876b:0x307,_0x31e93d:0x2d9,_0x24aadd:0x2f5},_0x52dafe={_0x5834d9:0x214},_0x773ef7={_0xcb6db9:0x241};function _0x1771db(_0x5240b0,_0x5119c9,_0x2d082e,_0x1004af){return _0x1745(_0x1004af-_0x773ef7._0xcb6db9,_0x2d082e);}function _0x5d2f04(_0x5d0c8c,_0xf9b64d,_0x2e1c67,_0x3400ea){return _0x1745(_0x2e1c67-_0x52dafe._0x5834d9,_0x3400ea);}return normalizeContent(_0x27e74b?.[_0x1771db(_0x9871e1._0x323737,_0x9871e1._0x16d305,0x2ea,_0x9871e1._0x5678fd)])[_0x1771db(_0x9871e1._0x1fc66e,_0x9871e1._0x1349b0,0x2f5,0x2e6)](_0x7c2564=>_0x7c2564[_0x5d2f04(0x2e2,0x2b7,0x2c9,0x2c1)]===_0x1771db(0x2ee,0x2d8,0x2d0,0x2e5))['map'](_0x47633c=>_0x47633c[_0x1771db(0x2ec,0x2ce,0x2ca,0x2e5)])[_0x1771db(_0x9871e1._0x15876b,0x2dd,_0x9871e1._0x31e93d,_0x9871e1._0x24aadd)]('\x0a');}function getReasoningTextFromMessage(_0x2531eb){const _0x2d3355={_0x1ffe08:0x1c8,_0x341d1c:0x2ac,_0x42e5f6:0x29a,_0x57a52b:0x28e},_0x594ae3={_0x2056eb:0x413,_0x312ee3:0x40b,_0x408a85:0x3fe,_0x566352:0x439,_0x3785ae:0x420,_0x57c38d:0x414,_0x1a54f1:0x438,_0x292e14:0x429,_0x303688:0x427,_0x5b9706:0x42d,_0x5f17e5:0x16e,_0x37ac60:0x160,_0x5d1b05:0x165,_0x1022df:0x15f,_0x50d65e:0x172,_0x1ae094:0x406,_0x2e223a:0x40e,_0x5d36f6:0x409,_0x5db386:0x41d,_0x3698c9:0x15e,_0x1f3702:0x420,_0x11c93f:0x406,_0x485e4e:0x145,_0xfc6d9f:0x15a,_0x5a3b9e:0x186,_0x48d501:0x176,_0x3934db:0x3f9,_0x5d280:0x413},_0x1865e7={_0x423f0f:0xc4,_0x44c3d4:0x129};function _0x2806f6(_0x2018fb,_0x142999,_0xcf358e,_0x4d1078){return _0x1745(_0x142999- -0x269,_0x4d1078);}function _0x5b97bb(_0x1292ac,_0x3ed619,_0x180555,_0x1bb9fd){return _0x1745(_0x180555-0x1e7,_0x1292ac);}return normalizeContent(_0x2531eb?.[_0x2806f6(-0x1cd,-0x1bd,-_0x2d3355._0x1ffe08,-0x1cc)])[_0x5b97bb(_0x2d3355._0x341d1c,_0x2d3355._0x42e5f6,_0x2d3355._0x57a52b,0x297)](_0x2318e4=>{function _0x44b40d(_0x461ad0,_0x1f906a,_0x577664,_0x418db5){return _0x2806f6(_0x461ad0-0xde,_0x418db5-0x5d2,_0x577664-0xd4,_0x1f906a);}function _0x4f6748(_0x382a5f,_0xed7cdc,_0x50fdfe,_0x4c9ca7){return _0x5b97bb(_0xed7cdc,_0xed7cdc-_0x1865e7._0x423f0f,_0x4c9ca7- -0x40a,_0x4c9ca7-_0x1865e7._0x44c3d4);}if(_0x2318e4[_0x44b40d(_0x594ae3._0x2056eb,0x41e,0x417,0x41e)]===_0x44b40d(0x42a,0x413,0x3fd,_0x594ae3._0x312ee3))return _0x2318e4['thinking'][_0x44b40d(_0x594ae3._0x408a85,0x415,0x423,0x406)]()[_0x44b40d(_0x594ae3._0x566352,_0x594ae3._0x3785ae,_0x594ae3._0x57c38d,0x42c)]>0x0?[_0x2318e4[_0x44b40d(_0x594ae3._0x1a54f1,0x424,0x42e,_0x594ae3._0x292e14)]]:[];if(_0x2318e4[_0x44b40d(0x420,_0x594ae3._0x303688,_0x594ae3._0x5b9706,0x41e)]==='anthropic_redacted_thinking')return['(redacted\x20reasoning)'];if(_0x2318e4[_0x4f6748(-0x170,-0x173,-0x189,-_0x594ae3._0x5f17e5)]!==_0x4f6748(-0x17b,-_0x594ae3._0x37ac60,-0x173,-0x164))return[];const _0x47b60a=_0x2318e4[_0x4f6748(-0x17e,-_0x594ae3._0x5d1b05,-_0x594ae3._0x1022df,-_0x594ae3._0x50d65e)][_0x4f6748(-0x168,-0x187,-0x169,-0x187)](_0x2cf400=>_0x2cf400[_0x44b40d(0x41d,0x410,0x3f5,0x40d)])[_0x44b40d(_0x594ae3._0x1ae094,0x41e,0x42a,_0x594ae3._0x2e223a)](_0x2877d3=>_0x2877d3['trim']()['length']>0x0)[_0x44b40d(_0x594ae3._0x5d36f6,0x432,_0x594ae3._0x5db386,_0x594ae3._0x5db386)]('\x0a\x0a');if(_0x47b60a[_0x4f6748(-_0x594ae3._0x3698c9,-0x165,-0x16f,-_0x594ae3._0x37ac60)]>0x0)return[_0x47b60a];if(_0x2318e4['text']&&_0x2318e4[_0x4f6748(-0x19d,-0x172,-0x199,-0x17f)][_0x44b40d(0x41f,0x422,_0x594ae3._0x1f3702,_0x594ae3._0x11c93f)]()[_0x4f6748(-0x165,-_0x594ae3._0x485e4e,-_0x594ae3._0xfc6d9f,-0x160)]>0x0)return[_0x2318e4[_0x4f6748(-0x18b,-_0x594ae3._0x5a3b9e,-_0x594ae3._0x48d501,-0x17f)]];return _0x2318e4[_0x44b40d(0x3ef,_0x594ae3._0x3934db,0x3fd,0x3fa)]?[_0x44b40d(0x42e,_0x594ae3._0x5d280,_0x594ae3._0x5db386,0x430)]:[];})['join']('\x0a\x0a');}function getToolUseBlocks(_0x30e2de){const _0x2fddf3={_0x430ab3:0x180,_0x37729c:0x189,_0x129efa:0x19f},_0x30d453={_0x3ee2d7:0x176};function _0x2d433c(_0x213eff,_0x464aee,_0x2d0b82,_0x4e2350){return _0x1745(_0x464aee- -0x225,_0x213eff);}function _0x5b8584(_0x3c910b,_0x4702a1,_0x4cc9d8,_0x42c58e){return _0x1745(_0x42c58e-_0x30d453._0x3ee2d7,_0x4702a1);}return normalizeContent(_0x30e2de?.['content'])[_0x2d433c(-0x16d,-_0x2fddf3._0x430ab3,-_0x2fddf3._0x37729c,-_0x2fddf3._0x129efa)](_0x1b4ae3=>_0x1b4ae3['type']===_0x2d433c(-0x1a0,-0x18d,-0x17f,-0x17a));}function _0x3b5f(){const _0x174cc8=['ywrK','Dg9VBf91C2vFAwq','mJCXodaZnM5LBLHMza','DxnHz2u','B3v0Chv0','mti2mJm3CKzSCM1w','B3v0Chv0rM9YBwf0','zw5JCNLWDgvKq29UDgvUDa','C3rYAw5N','y2fSBeLK','BwvZC2fNzq','DhvYBKLK','CMvHC29UAw5Nvg9Rzw5Z','CM9Szq','Dg9VBf91C2u','mKHPwhj2AW','C2vZC2LVBKLK','mJa3mta2qwTgrMXm','BwfW','DhjPBq','Bwf4x3rVA2vUCW','AxnbCNjHEq','DxnLCG','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','yw50AhjVCgLJx3rOAw5RAw5N','Bw9KzwW','Dgv4Da','zMLSDgvY','Dg9VBhm','zMXHDe1HCa','Dg9VBf9Yzxn1Bhq','ChvZAa','BwvZC2fNzxm','mtG2odeXnvf1wvfACW','y29UDgvUDa','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','CMvHC29UAw5N','C3rVCfjLyxnVBG','Bwf4vg9Rzw5Z','C3vTBwfYEq','AgfZ','Aw5WDxrFDg9Rzw5Z','AM9PBG','DhLWzq','yxnZAxn0yw50','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','n0zHquzrBq','nMz3tezyra','DhvYBL9Pza','mtC2otG4whnsrhHw','C3rHDhvZ','ChjVDMLKzxjtDgf0zq','C3rVCf9YzwfZB24','B3bLBMfPx3jLyxnVBMLUzW','DgHPBMTPBMC','mte1mJu2me1iu3jWAW','otm4odiYmhPHuvPPyG','BgvUz3rO','C3LZDgvT','CMvHC29UAw5Nx3rVA2vUCW','Bwv0ywrHDge','kgvUy3j5ChrLzcbYzwfZB25PBMCP'];_0x3b5f=function(){return _0x174cc8;};return _0x3b5f();}function getToolResultBlocks(_0x507450){const _0x58523c={_0x40739f:0xb7,_0x24d9ce:0xcd,_0x5b2bd5:0xb5,_0x37040f:0xbc};function _0x27877b(_0x43eda3,_0x1fc353,_0x376439,_0x2205aa){return _0x1745(_0x1fc353- -0x179,_0x43eda3);}function _0x29ee17(_0x45888c,_0x11f57d,_0x1e1d84,_0x1f5f96){return _0x1745(_0x11f57d-0x1a3,_0x45888c);}return normalizeContent(_0x507450?.[_0x27877b(-_0x58523c._0x40739f,-_0x58523c._0x24d9ce,-_0x58523c._0x5b2bd5,-_0x58523c._0x37040f)])['filter'](_0x249c30=>_0x249c30[_0x29ee17(0x274,0x258,0x245,0x244)]===_0x29ee17(0x252,0x24b,0x24d,0x248));}function createToolResultUserMessage(_0x383415){const _0x4ea76d={_0x45fca9:0x245,_0x3867be:0x244},_0x597a05={_0x451b1d:0x2b8,_0x5117d1:0x2d3,_0x82042e:0x2e3,_0x3629d9:0x2d7,_0x3127d6:0x19b,_0x2792bf:0x2cf,_0x4bce37:0x2dd,_0x11ec3e:0x2c0,_0x39091f:0x178,_0x404644:0x195,_0x3b5f07:0x2dd,_0x3d60cc:0x2bf};function _0x3bdd4c(_0x27c487,_0x348789,_0x1884a9,_0x28b50f){return _0x1745(_0x1884a9- -0x2e2,_0x28b50f);}return{'role':_0x3bdd4c(-_0x4ea76d._0x45fca9,-0x257,-0x242,-_0x4ea76d._0x3867be),'content':_0x383415['map'](_0x71e09c=>{const _0x37af84={_0x38cefb:0x56,_0x281b16:0x17b},_0x4a17b6={_0x45e6b6:0xa2};function _0xc5abdb(_0x10fa40,_0x2eb1ae,_0x5e2814,_0x2b45f9){return _0x3bdd4c(_0x10fa40-0x110,_0x2eb1ae-_0x4a17b6._0x45e6b6,_0x10fa40-0x3cc,_0x2b45f9);}function _0x701d7e(_0x20c54f,_0x463230,_0x1139fe,_0x494a93){return _0x3bdd4c(_0x20c54f-_0x37af84._0x38cefb,_0x463230-_0x37af84._0x281b16,_0x463230- -0x99,_0x20c54f);}return{'type':_0x701d7e(-_0x597a05._0x451b1d,-_0x597a05._0x5117d1,-_0x597a05._0x82042e,-_0x597a05._0x3629d9),'tool_use_id':_0x71e09c[_0xc5abdb(0x17d,0x17e,_0x597a05._0x3127d6,0x15f)],'content':_0x71e09c[_0x701d7e(-_0x597a05._0x3629d9,-_0x597a05._0x2792bf,-_0x597a05._0x4bce37,-_0x597a05._0x11ec3e)]??_0x71e09c[_0xc5abdb(_0x597a05._0x39091f,_0x597a05._0x404644,0x183,0x162)],'is_error':_0x71e09c[_0x701d7e(-_0x597a05._0x3b5f07,-_0x597a05._0x3d60cc,-0x2c1,-0x2b6)]==='error'};})};}var INTERRUPTED_TOOL_RESULT_TEXT=_0x582a1e(0x161,0x172,0x14a,0x15f);function synthesizeMissingToolResults(_0x220587){const _0xd5c4f0={_0x365049:0x29c,_0x435232:0x2ad,_0x310e8d:0x2a9,_0x1491ba:0x2b2,_0x4d1eba:0x28a,_0x7325b7:0x38c,_0x33e4c3:0x373,_0x3d0cc0:0x392,_0x2d088e:0x374},_0xf11be9={_0x1e5683:0x220,_0x5e8424:0x5a},_0x2c7afa={_0x2ee00a:0x13b,_0x3ff2cb:0x1bb,_0x2d637f:0xac},_0x456f5a=new Set();function _0x234226(_0x1b7577,_0x1b1a39,_0x142e2e,_0x15cc06){return _0x582a1e(_0x142e2e-_0x2c7afa._0x2ee00a,_0x1b1a39-_0x2c7afa._0x3ff2cb,_0x1b1a39,_0x15cc06-_0x2c7afa._0x2d637f);}for(const _0x59dab1 of _0x220587){for(const _0x3cd825 of getToolResultBlocks(_0x59dab1)){_0x456f5a[_0x234226(_0xd5c4f0._0x365049,0x2cc,_0xd5c4f0._0x435232,0x2ac)](_0x3cd825[_0x234226(_0xd5c4f0._0x310e8d,_0xd5c4f0._0x1491ba,0x2ae,0x29a)]);}}function _0x558d20(_0xf0b9f2,_0x3b1210,_0x5098fe,_0x27d196){return _0x582a1e(_0x5098fe-_0xf11be9._0x1e5683,_0x3b1210-_0xf11be9._0x5e8424,_0x27d196,_0x27d196-0x64);}const _0xa1711c=[];for(const _0x4e737b of _0x220587){_0xa1711c['push'](_0x4e737b);const _0x257c45=getToolUseBlocks(_0x4e737b)[_0x234226(0x26e,0x277,_0xd5c4f0._0x4d1eba,0x299)](_0xf72a1=>!_0x456f5a[_0x234226(0x2ac,0x28a,0x297,0x29d)](_0xf72a1['id']));if(_0x257c45['length']===0x0)continue;_0xa1711c[_0x558d20(_0xd5c4f0._0x7325b7,0x392,_0xd5c4f0._0x33e4c3,_0xd5c4f0._0x3d0cc0)]({'role':_0x558d20(_0xd5c4f0._0x2d088e,0x379,0x36a,0x34b),'content':_0x257c45['map'](_0x42ec12=>({'type':_0x234226(0x2a2,0x29e,0x28d,0x2a7),'tool_use_id':_0x42ec12['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0xd8030c of _0x257c45){_0x456f5a['add'](_0xd8030c['id']);}}return _0xa1711c;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
1
+ (function(_0x4ae637,_0x16369b){const _0x41bd2a={_0x162d61:0x305,_0x2e5c88:0x303,_0x4e9afe:0x2c2,_0x2139a4:0x2d6,_0x30b611:0x2af,_0x215c71:0x2ab,_0x3edfe5:0x300,_0x8f4e3:0x2f6,_0x3919f4:0x2dd,_0x27c0af:0x31a,_0x1e091a:0x312,_0x1a546b:0x2c9,_0x9426cf:0x2cf},_0x6a21c7={_0x45d076:0x18e};function _0x4784c2(_0x526693,_0x1f1022,_0x2cfd66,_0x52586f){return _0x1802(_0x1f1022-_0x6a21c7._0x45d076,_0x52586f);}function _0x3c63f4(_0x497631,_0x359bc6,_0x4ec1b5,_0x28d75d){return _0x1802(_0x4ec1b5-0x143,_0x497631);}const _0x13e78e=_0x4ae637();while(!![]){try{const _0x5842e9=-parseInt(_0x4784c2(0x31b,_0x41bd2a._0x162d61,_0x41bd2a._0x2e5c88,0x303))/0x1*(parseInt(_0x3c63f4(0x2d2,_0x41bd2a._0x4e9afe,0x2d3,_0x41bd2a._0x2139a4))/0x2)+-parseInt(_0x3c63f4(0x2b2,0x2b5,0x2b3,0x2ca))/0x3+parseInt(_0x3c63f4(_0x41bd2a._0x30b611,0x2a7,_0x41bd2a._0x215c71,0x2a1))/0x4*(parseInt(_0x4784c2(_0x41bd2a._0x3edfe5,0x2f1,_0x41bd2a._0x8f4e3,_0x41bd2a._0x3919f4))/0x5)+parseInt(_0x4784c2(_0x41bd2a._0x27c0af,_0x41bd2a._0x1e091a,0x323,0x31e))/0x6+parseInt(_0x3c63f4(0x2ba,0x2c8,_0x41bd2a._0x1a546b,0x2dc))/0x7+-parseInt(_0x3c63f4(_0x41bd2a._0x9426cf,0x2a8,0x2b9,0x2c0))/0x8+parseInt(_0x3c63f4(0x2c5,0x2d8,0x2cf,0x2e9))/0x9;if(_0x5842e9===_0x16369b)break;else _0x13e78e['push'](_0x13e78e['shift']());}catch(_0xd6746d){_0x13e78e['push'](_0x13e78e['shift']());}}}(_0x407a,0x9c7aa));function createTextBlock(_0x684900){const _0x545d02={_0x427864:0x14a,_0x34d82b:0x149};function _0x47d0ec(_0x28ced6,_0x1d3b75,_0xd8bbbb,_0x168ebe){return _0x1802(_0xd8bbbb- -0x2ae,_0x1d3b75);}return{'type':_0x47d0ec(-0x132,-_0x545d02._0x427864,-0x135,-_0x545d02._0x34d82b),'text':_0x684900};}function normalizeTextBlock(_0xf45cfb){return createTextBlock(_0xf45cfb['text']??'');}function normalizeContent(_0xc7f2f3){const _0x4b0808={_0x54ee21:0x16a,_0x1339b8:0x183,_0x2c5bd4:0x198,_0x588245:0x170,_0x1a8606:0x377,_0x190415:0x371},_0x245cda={_0x47d0d2:0x1e9},_0x16009f={_0x9b4687:0x210};function _0x2300f9(_0xaabf6d,_0x3fe305,_0x389caf,_0x22c3ad){return _0x1802(_0x3fe305-_0x16009f._0x9b4687,_0x22c3ad);}function _0x1f6111(_0x745ed2,_0x3497a6,_0x750e8a,_0x7780fe){return _0x1802(_0x3497a6-0xe,_0x745ed2);}if(typeof _0xc7f2f3===_0x1f6111(_0x4b0808._0x54ee21,_0x4b0808._0x1339b8,_0x4b0808._0x2c5bd4,_0x4b0808._0x588245))return[createTextBlock(_0xc7f2f3)];if(!Array[_0x2300f9(0x363,_0x4b0808._0x1a8606,0x37c,_0x4b0808._0x190415)](_0xc7f2f3))return[];return _0xc7f2f3['map'](_0x4e710b=>{const _0x330d56={_0x2bc3dc:0x92,_0x252114:0x9b},_0x5d004f={_0x8f7d77:0x19b,_0x4ffe35:0xa0};function _0x164d22(_0x11551d,_0x2a4254,_0x38ff49,_0x12837f){return _0x2300f9(_0x11551d-0x198,_0x38ff49- -_0x5d004f._0x8f7d77,_0x38ff49-_0x5d004f._0x4ffe35,_0x12837f);}if(_0x4e710b[_0x164d22(0x1d7,0x1ee,0x1f1,0x1e7)]===_0x164d22(0x1df,0x1fe,0x1ee,_0x245cda._0x47d0d2))return normalizeTextBlock(_0x4e710b);function _0x273bdf(_0x2f7741,_0x112ab4,_0x351314,_0x279f60){return _0x2300f9(_0x2f7741-_0x330d56._0x2bc3dc,_0x2f7741- -0x508,_0x351314-_0x330d56._0x252114,_0x279f60);}return structuredClone(_0x4e710b);});}function normalizeSystem(_0x47b1ef=[]){const _0x273a9b={_0x38b02c:0x3},_0x2362aa={_0x29711b:0x2a3};function _0x375943(_0xc5ea2,_0x59b07d,_0x8ebacb,_0x27ca04){return _0x1802(_0xc5ea2-_0x2362aa._0x29711b,_0x27ca04);}function _0x47c6f8(_0x4298b4,_0x1f7cba,_0x7d0a06,_0x3c1c56){return _0x1802(_0x3c1c56-_0x273a9b._0x38b02c,_0x4298b4);}return normalizeContent(_0x47b1ef)['filter'](_0x4f5d28=>_0x4f5d28[_0x375943(0x41f,0x415,0x40b,0x410)]===_0x375943(0x41c,0x41d,0x434,0x437));}function normalizeMessage(_0x15bf26){const _0x5f395d={_0x508e24:0x46f,_0x33e20f:0x466,_0x19292b:0x11d,_0x437b76:0x142,_0x4915a1:0x114},_0x425d3b={_0x26c2fa:0x2b0},_0x237bb5={_0x3b082b:0x2da};function _0x136031(_0x319a1f,_0x347998,_0x35ad42,_0x55f663){return _0x1802(_0x347998-_0x237bb5._0x3b082b,_0x35ad42);}function _0x36e565(_0x25861d,_0x42f2cd,_0x5f851e,_0x371465){return _0x1802(_0x5f851e- -_0x425d3b._0x26c2fa,_0x371465);}return{...typeof _0x15bf26['id']==='string'?{'id':_0x15bf26['id']}:{},'role':_0x15bf26[_0x136031(0x442,0x459,_0x5f395d._0x508e24,_0x5f395d._0x33e20f)],'content':normalizeContent(_0x15bf26[_0x36e565(-0x15b,-0x12a,-0x143,-0x153)]),..._0x15bf26[_0x36e565(-_0x5f395d._0x19292b,-_0x5f395d._0x437b76,-0x129,-_0x5f395d._0x4915a1)]?{'providerState':structuredClone(_0x15bf26[_0x36e565(-0x139,-0x111,-0x129,-0x13f)])}:{}};}function compileRequest(_0x81058f){const _0x56e78a={_0xd358a2:0xe8,_0x538180:0xf7,_0x51b424:0xff,_0x1bb144:0xef,_0x27158a:0xeb,_0x1b3337:0xd2,_0x2fa904:0xe7,_0x2df39c:0x1a4,_0x408904:0x19e,_0x3492cf:0x19d,_0x44f2fe:0x189,_0x575606:0x197,_0x317f2f:0x1b1,_0xf4e732:0x1a6,_0x58d5d8:0x1ac,_0x2d12a9:0x1aa,_0x4958d0:0x1af,_0x3e24d8:0xda,_0x8a0573:0xe6,_0x4aab2b:0x1a0,_0x131814:0xd0,_0x53d42f:0xe3,_0x4f3171:0xc2},_0x33a561={_0x2c4561:0x31b};function _0x139935(_0x5dcc8a,_0x395456,_0x283168,_0x58fcc5){return _0x1802(_0x395456- -_0x33a561._0x2c4561,_0x283168);}function _0x32f4e5(_0x52ca05,_0xc2e90e,_0x194054,_0x3e7ca8){return _0x1802(_0x52ca05- -0x263,_0xc2e90e);}return{'model':_0x81058f[_0x32f4e5(-_0x56e78a._0xd358a2,-_0x56e78a._0x538180,-_0x56e78a._0x538180,-_0x56e78a._0x51b424)]??'claude-sonnet-4-20250514',..._0x81058f[_0x32f4e5(-0xeb,-_0x56e78a._0x1bb144,-0xd6,-0xff)]!==void 0x0?{'max_tokens':_0x81058f[_0x32f4e5(-_0x56e78a._0x27158a,-_0x56e78a._0x1b3337,-0xdf,-0xf1)]}:{},..._0x81058f[_0x32f4e5(-0xe6,-0xe7,-_0x56e78a._0x2fa904,-0xf6)]?{'reasoning':structuredClone(_0x81058f[_0x139935(-_0x56e78a._0x2df39c,-_0x56e78a._0x408904,-_0x56e78a._0x3492cf,-0x185)])}:{},'system':normalizeSystem(_0x81058f[_0x139935(-0x187,-_0x56e78a._0x44f2fe,-_0x56e78a._0x44f2fe,-_0x56e78a._0x3492cf)]),'messages':_0x81058f[_0x139935(-_0x56e78a._0x575606,-_0x56e78a._0x317f2f,-0x1a3,-0x19b)][_0x139935(-_0x56e78a._0xf4e732,-_0x56e78a._0x58d5d8,-_0x56e78a._0x2d12a9,-_0x56e78a._0x4958d0)](normalizeMessage),'tools':structuredClone(_0x81058f[_0x32f4e5(-_0x56e78a._0x3e24d8,-0xd2,-_0x56e78a._0x8a0573,-_0x56e78a._0xd358a2)]??[]),'metadata':{'session_id':_0x81058f[_0x139935(-0x192,-0x19d,-0x19d,-_0x56e78a._0x4aab2b)],'turn_id':_0x81058f[_0x32f4e5(-_0x56e78a._0x131814,-_0x56e78a._0x53d42f,-_0x56e78a._0x4f3171,-0xe2)]}};}function toChatRequest(_0x440b45){const _0x1f6257={_0x213e27:0x3d6,_0x5b2f2b:0x3bc,_0x1aca56:0x3e3,_0x5cdfb6:0x3d7,_0x512244:0x3c9,_0x4e08e2:0x3c6,_0x85fffc:0x3c5,_0x1c3b3b:0x3ce,_0x134c9d:0x3bd,_0x3c937b:0x179,_0x3884e6:0x166,_0x4343f9:0x170,_0x4ce96e:0x15d,_0xa67266:0x188,_0x12ca52:0x15e,_0x559901:0x14a,_0x48024d:0x3df,_0x3abd74:0x3d2,_0x5e2d95:0x3e8,_0x30fe27:0x3a5,_0x152f1c:0x3bc,_0x536c9d:0x3bc,_0x2d109d:0x3af,_0x34a4b1:0x3f1},_0x2d88e1={_0x2a7b3f:0x251};function _0x4c2515(_0x4aae0,_0x4a5ab2,_0x547ff1,_0x2d1806){return _0x1802(_0x4a5ab2- -0x19,_0x4aae0);}function _0x277bcf(_0x5b3b98,_0x6ed34e,_0x4290ca,_0x251011){return _0x1802(_0x4290ca-_0x2d88e1._0x2a7b3f,_0x6ed34e);}return{'model':_0x440b45[_0x277bcf(_0x1f6257._0x213e27,_0x1f6257._0x5b2f2b,0x3cc,_0x1f6257._0x1aca56)],..._0x440b45[_0x277bcf(0x3b5,_0x1f6257._0x5cdfb6,_0x1f6257._0x512244,0x3c8)]!==void 0x0?{'maxTokens':_0x440b45[_0x277bcf(0x3db,0x3bf,_0x1f6257._0x512244,0x3db)]}:{},..._0x440b45[_0x277bcf(_0x1f6257._0x4e08e2,0x3c2,0x3ce,0x3cf)]?{'reasoning':structuredClone(_0x440b45[_0x277bcf(0x3c9,_0x1f6257._0x85fffc,_0x1f6257._0x1c3b3b,_0x1f6257._0x134c9d)])}:{},'system':structuredClone(_0x440b45[_0x4c2515(0x18c,_0x1f6257._0x3c937b,0x184,_0x1f6257._0x3884e6)]),'messages':structuredClone(_0x440b45['messages']),'tools':structuredClone(_0x440b45[_0x4c2515(0x15f,_0x1f6257._0x4343f9,_0x1f6257._0x4ce96e,_0x1f6257._0xa67266)]),'metadata':{'sessionId':_0x440b45[_0x4c2515(0x15e,0x152,_0x1f6257._0x12ca52,_0x1f6257._0x559901)][_0x277bcf(0x3c7,_0x1f6257._0x48024d,_0x1f6257._0x3abd74,_0x1f6257._0x5e2d95)],'turnId':_0x440b45[_0x277bcf(_0x1f6257._0x30fe27,_0x1f6257._0x152f1c,_0x1f6257._0x536c9d,_0x1f6257._0x2d109d)]['turn_id']},..._0x440b45['outputFormat']?{'outputFormat':structuredClone(_0x440b45[_0x277bcf(0x3c3,_0x1f6257._0x34a4b1,0x3db,0x3cc)])}:{}};}function toModelRequest(_0x19173b){const _0x21828e={_0xa15979:0x2ca,_0xe584cf:0x173,_0x2f95a1:0x193,_0x44dd19:0x1a5,_0x2b09a8:0x1a3,_0x7ed188:0x18d,_0x5f02b1:0x2c2,_0x562aa3:0x2c9};function _0x5cb40f(_0x35588a,_0x16c67a,_0x35a992,_0x522363){return _0x1802(_0x522363- -0x30b,_0x35a992);}function _0x42d517(_0x25c7d1,_0x50652a,_0x546cf7,_0x402b20){return _0x1802(_0x546cf7-0x157,_0x402b20);}return{'model':_0x19173b['model'],..._0x19173b['maxTokens']!==void 0x0?{'max_tokens':_0x19173b[_0x42d517(0x2aa,0x2a5,0x2bc,_0x21828e._0xa15979)]}:{},..._0x19173b['reasoning']?{'reasoning':structuredClone(_0x19173b['reasoning'])}:{},'system':structuredClone(_0x19173b['system']),'messages':structuredClone(_0x19173b['messages']),'tools':structuredClone(_0x19173b[_0x5cb40f(-0x174,-_0x21828e._0xe584cf,-_0x21828e._0x2f95a1,-0x182)]),'metadata':{'session_id':_0x19173b['metadata'][_0x5cb40f(-_0x21828e._0x44dd19,-_0x21828e._0x2b09a8,-0x188,-_0x21828e._0x7ed188)],'turn_id':_0x19173b[_0x42d517(0x2c8,0x2bf,_0x21828e._0x5f02b1,0x2d9)]['turnId']},..._0x19173b['outputFormat']?{'outputFormat':structuredClone(_0x19173b[_0x42d517(0x2e4,0x2d2,0x2e1,_0x21828e._0x562aa3)])}:{}};}function toProviderModelRequest(_0x11ad4b){const _0x599823={_0x21fb03:0x457,_0x51ce13:0x448,_0x51e621:0x455,_0x43365c:0x45e,_0xab2a34:0x45f,_0x86752a:0x461,_0x1b799c:0x441,_0x9ca0b1:0x43f},_0x4cb0a6={_0x20e7f4:0x75};function _0x1eb7f0(_0x528132,_0x33d1eb,_0x1c3a75,_0x1a87b6){return _0x1802(_0x1c3a75-0x2cd,_0x33d1eb);}function _0x1fb0ef(_0x1320e8,_0xcb6e9,_0x781308,_0x1e161a){return _0x1802(_0x1320e8-_0x4cb0a6._0x20e7f4,_0x1e161a);}return{'model':_0x11ad4b[_0x1eb7f0(_0x599823._0x21fb03,0x45a,_0x599823._0x51ce13,_0x599823._0x51e621)],..._0x11ad4b['maxTokens']!==void 0x0?{'max_tokens':_0x11ad4b[_0x1eb7f0(0x424,0x446,0x432,0x44d)]}:{},'system':structuredClone(_0x11ad4b[_0x1eb7f0(_0x599823._0x43365c,0x464,_0x599823._0xab2a34,_0x599823._0x86752a)]),'messages':structuredClone(_0x11ad4b['messages']),'tools':structuredClone(_0x11ad4b[_0x1eb7f0(0x463,_0x599823._0x1b799c,0x456,_0x599823._0x9ca0b1)])};}function toChatResponse(_0x58bf36){const _0x894507={_0x31383e:0x228,_0x5e25a0:0x214,_0x326958:0x240,_0x265639:0x253,_0x536b25:0x34e,_0xe1da6c:0x339,_0xd25cec:0x360,_0x12f684:0x35f,_0x2e0c07:0x32c,_0x4019a1:0x325,_0x28ebf8:0x32a},_0x4cf7a9={_0x34d57c:0x1ba};function _0x55e09d(_0x5d9bc9,_0x4d4321,_0x63cbab,_0x51cad7){return _0x1802(_0x5d9bc9-0xbb,_0x51cad7);}function _0x38626f(_0x141ae3,_0x30de53,_0x1ef8a2,_0x3e44ec){return _0x1802(_0x141ae3-_0x4cf7a9._0x34d57c,_0x30de53);}return{'id':_0x58bf36['id'],'content':structuredClone(_0x58bf36[_0x55e09d(_0x894507._0x31383e,0x232,_0x894507._0x5e25a0,_0x894507._0x326958)]),'stopReason':_0x58bf36[_0x38626f(0x323,0x331,0x335,0x30f)],'usage':{'inputTokens':_0x58bf36['usage']['input_tokens'],'outputTokens':_0x58bf36[_0x55e09d(0x249,0x247,_0x894507._0x265639,0x264)][_0x38626f(_0x894507._0x536b25,0x365,0x34e,_0x894507._0xe1da6c)],..._0x58bf36['usage']['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x58bf36[_0x38626f(0x348,_0x894507._0xd25cec,_0x894507._0x12f684,0x345)][_0x38626f(_0x894507._0x2e0c07,_0x894507._0x4019a1,0x329,0x339)]}:{}},..._0x58bf36[_0x38626f(0x341,_0x894507._0x28ebf8,0x329,0x346)]?{'providerState':structuredClone(_0x58bf36['providerState'])}:{}};}function toModelResponse(_0x10352a){const _0x110b74={_0x270a06:0x1b5,_0x259f79:0x1c2,_0x5aca4f:0x404,_0x323d9f:0x3f9,_0x662d0d:0x3ef,_0x49edd8:0x3f2,_0x14506a:0x1b0,_0x1a5122:0x1b9,_0xf924fd:0x1b4,_0x153b24:0x3f7,_0x4b77ae:0x3ea,_0x2c515b:0x3ef,_0x1d335d:0x3eb},_0x40bee5={_0x505be0:0x264};function _0x509bd6(_0x3066ef,_0x59e613,_0x4096c0,_0x330637){return _0x1802(_0x4096c0-_0x40bee5._0x505be0,_0x330637);}function _0x1ab8c0(_0x545333,_0x3c45fd,_0x25a8b9,_0x2e25dc){return _0x1802(_0x25a8b9- -0x336,_0x3c45fd);}return{'id':_0x10352a['id'],'type':'message','role':_0x1ab8c0(-0x1c6,-_0x110b74._0x270a06,-0x1c5,-_0x110b74._0x259f79),'content':structuredClone(_0x10352a['content']),'stop_reason':_0x10352a[_0x509bd6(_0x110b74._0x5aca4f,0x3f1,_0x110b74._0x323d9f,0x3e1)],'stop_sequence':null,'usage':{'input_tokens':_0x10352a[_0x509bd6(0x409,_0x110b74._0x662d0d,_0x110b74._0x49edd8,0x3d7)][_0x1ab8c0(-0x197,-_0x110b74._0x14506a,-0x1a5,-_0x110b74._0x1a5122)],'output_tokens':_0x10352a[_0x1ab8c0(-0x18f,-_0x110b74._0xf924fd,-0x1a8,-0x1a5)]['outputTokens'],..._0x10352a[_0x509bd6(0x3e5,0x3dc,0x3f2,_0x110b74._0x153b24)]['reasoningTokens']!==void 0x0?{'reasoning_tokens':_0x10352a['usage'][_0x509bd6(0x3e0,0x3de,0x3ef,_0x110b74._0x4b77ae)]}:{}},..._0x10352a[_0x509bd6(_0x110b74._0x2c515b,0x3e7,_0x110b74._0x1d335d,_0x110b74._0x49edd8)]?{'providerState':structuredClone(_0x10352a['providerState'])}:{}};}function responseToAssistantMessage(_0x84e2aa){const _0x3f8e64={_0xe8a3c9:0x253,_0xb3f10b:0x276,_0x4d81a8:0x254,_0x3e368e:0x264},_0x14e174={_0x4e4991:0x2e0};function _0x121933(_0x5e7239,_0x2b4699,_0x583e3c,_0x2b2e8b){return _0x1802(_0x583e3c- -_0x14e174._0x4e4991,_0x2b4699);}function _0xabe312(_0x345226,_0x52ad82,_0xc8a108,_0x428774){return _0x1802(_0x345226- -0x3d1,_0xc8a108);}return{'role':_0xabe312(-0x260,-_0x3f8e64._0xe8a3c9,-_0x3f8e64._0xb3f10b,-_0x3f8e64._0x4d81a8),'content':normalizeContent(_0x84e2aa[_0xabe312(-_0x3f8e64._0x3e368e,-0x26a,-0x256,-0x258)]),..._0x84e2aa['providerState']?{'providerState':structuredClone(_0x84e2aa['providerState'])}:{}};}function _0x407a(){const _0x39c090=['BwvZC2fNzxm','Bwv0ywrHDge','Dg9VBf9Yzxn1Bhq','y29UDgvUDa','AM9PBG','BwfW','mJG1mdu2mwzSrMLvBG','yxnZAxn0yw50','CMvHC29UAw5Nx3rVA2vUCW','ywrK','DxnLCG','C3rYAw5N','ntuZotK5mLfTsgrADG','ntHbrMTHENO','Bwf4x3rVA2vUCW','Dgv4Da','ChvZAa','Bw9KzwW','DhLWzq','CMvHC29UAw5N','C2vZC2LVBKLK','CM9Szq','kgvUy3j5ChrLzcbYzwfZB25PBMCP','C2vZC2LVBL9Pza','zMLSDgvY','yw50AhjVCgLJx3rOAw5RAw5N','mtGYmte4mgfiyuXsCW','BgvUz3rO','mty5otCZm0DcCuDjwG','ChjVDMLKzxjtDgf0zq','khjLzgfJDgvKihjLyxnVBMLUzYK','Dg9VBhm','B3v0Chv0rM9YBwf0','CMvHC29UAw5Nvg9Rzw5Z','mJeXmJqZmdvtqw1oBLu','C3rHDhvZ','DxnHz2u','B3bLBMfPx3jLyxnVBMLUzW','mJy5mtr3yxLKzKe','Aw5WDxruB2TLBNm','C3LZDgvT','DhvYBKLK','B3v0Chv0x3rVA2vUCW','C3rVCfjLyxnVBG','DgHPBMTPBMC','DhjPBq','Dg9VBf91C2u','mtq1z3Dqsgr1','B3v0Chv0','Bwf4vg9Rzw5Z','y2fSBeLK','AxnbCNjHEq','mJm1mZzkzvL5teq','C3rVCf9YzwfZB24'];_0x407a=function(){return _0x39c090;};return _0x407a();}function createReasoningMessage(_0x25c340){const _0x1361cc={_0x3d819d:0x256,_0x33ab36:0x25a,_0x2ee395:0x27c,_0x197dfe:0x251,_0x5cc4b8:0x247},_0x4f89d3={_0x30cfce:0x109,_0x2a9967:0x10e,_0x4feeee:0xf5,_0xc2ef01:0xf2,_0x207c91:0x105,_0x4dd0f2:0x104,_0x1f7a85:0x108,_0x25294b:0xf1,_0x4097d3:0xf0},_0xc81be=normalizeContent(_0x25c340?.['content'])[_0x5641f8(0x256,_0x1361cc._0x3d819d,0x262,_0x1361cc._0x33ab36)](_0x50300f=>{const _0x389980={_0x200063:0x11c,_0xfb6c24:0x360},_0x362d85={_0x11e80d:0x3a,_0x1708d4:0x4f};function _0x369b51(_0x5c674d,_0x58b98d,_0x37cea0,_0x14ec4a){return _0x5641f8(_0x5c674d-0xf7,_0x58b98d-_0x362d85._0x11e80d,_0x14ec4a-_0x362d85._0x1708d4,_0x37cea0);}function _0x4c384a(_0x3e344f,_0x37263c,_0x108aaf,_0x30e9ad){return _0x5641f8(_0x3e344f-_0x389980._0x200063,_0x37263c-0xfb,_0x37263c- -_0x389980._0xfb6c24,_0x30e9ad);}return _0x50300f[_0x4c384a(-_0x4f89d3._0x30cfce,-0x104,-_0x4f89d3._0x2a9967,-_0x4f89d3._0x4feeee)]==='anthropic_redacted_thinking'||_0x50300f[_0x4c384a(-0xf2,-0x104,-_0x4f89d3._0xc2ef01,-_0x4f89d3._0x207c91)]==='anthropic_thinking'||_0x50300f[_0x4c384a(-0x10c,-_0x4f89d3._0x4dd0f2,-_0x4f89d3._0x1f7a85,-0xfb)]===_0x4c384a(-0xf1,-_0x4f89d3._0x25294b,-0xeb,-_0x4f89d3._0x4097d3);});if(_0xc81be[_0x5641f8(0x270,_0x1361cc._0x2ee395,0x265,0x261)]===0x0)return void 0x0;function _0x5641f8(_0x3e3878,_0x27fc97,_0x2f23ba,_0x4d46a6){return _0x1802(_0x2f23ba-0xe0,_0x4d46a6);}function _0x4630f6(_0xec6c7a,_0x26b9ac,_0x301a98,_0x382360){return _0x1802(_0x301a98-0x3a6,_0xec6c7a);}return{'role':_0x5641f8(0x254,_0x1361cc._0x197dfe,0x251,_0x1361cc._0x5cc4b8),'content':_0xc81be};}function createAssistantTextMessage(_0xc099cb){const _0x128eeb={_0xaec2a7:0x2b4,_0x5b57fe:0x1b8,_0x200c62:0x2f0,_0x3c60de:0x2be,_0x4c6fbd:0x2c1,_0x3b5f66:0x2ab,_0x94eb94:0x2c5,_0x36ea19:0x2c3},_0x13dd3b={_0x1cd1e1:0x150},_0x299498={_0x39d005:0x25},_0x420902={_0x46f765:0x490},_0x555b0b={_0x230b0b:0x1c7},_0x14d7fe=normalizeContent(_0xc099cb?.[_0xe3326e(0x2bd,_0x128eeb._0xaec2a7,0x2b7,0x2c2)])[_0x4cc53b(0x1a7,_0x128eeb._0x5b57fe,0x19e,0x1a7)](_0x288d4a=>{function _0x2088b7(_0x2a7352,_0xf12b4f,_0x37161c,_0x41c7c7){return _0xe3326e(_0xf12b4f-_0x555b0b._0x230b0b,_0x37161c,_0x37161c-0x16d,_0x41c7c7-0x23);}return _0x288d4a['type']===_0x2088b7(0x495,_0x420902._0x46f765,0x47b,0x479);});function _0x4cc53b(_0x542b2d,_0x3576cc,_0x143d04,_0x1d2263){return _0x1802(_0x1d2263-_0x299498._0x39d005,_0x542b2d);}if(_0x14d7fe[_0xe3326e(0x2d5,_0x128eeb._0x200c62,0x2c6,_0x128eeb._0x3c60de)]===0x0)return void 0x0;function _0xe3326e(_0x5420c7,_0x2912b6,_0x572209,_0x15c5cd){return _0x1802(_0x5420c7-_0x13dd3b._0x1cd1e1,_0x2912b6);}return{'role':_0xe3326e(_0x128eeb._0x4c6fbd,_0x128eeb._0x3b5f66,_0x128eeb._0x94eb94,_0x128eeb._0x36ea19),'content':_0x14d7fe};}function createToolUseMessage(_0x1a6d1e){const _0x2df9c3={_0x442e9c:0x1a9,_0x304c9c:0x18b,_0x1afdca:0x19e,_0x1ef512:0x1b9,_0x33864f:0x196},_0x341a93={_0x220805:0x1e3,_0x7354c9:0x1d6},_0x532c09={_0xba5e8a:0x320};function _0xdb9c7e(_0x352415,_0x54f2a,_0x383f4d,_0x489afc){return _0x1802(_0x489afc- -0x58,_0x352415);}function _0x5ed70b(_0x438605,_0x1bc5c4,_0x14c8e6,_0x366e54){return _0x1802(_0x14c8e6- -_0x532c09._0xba5e8a,_0x438605);}const _0x1fa515=normalizeContent(_0x1a6d1e?.[_0x5ed70b(-_0x2df9c3._0x442e9c,-0x1c1,-0x1b3,-0x1b0)])[_0x5ed70b(-0x1ac,-_0x2df9c3._0x304c9c,-_0x2df9c3._0x1afdca,-0x1a0)](_0x9fe333=>{function _0x3bdd96(_0x11997e,_0x5df50b,_0xb5c4f9,_0x4e1608){return _0xdb9c7e(_0x5df50b,_0x5df50b-0x13f,_0xb5c4f9-0xa8,_0x4e1608-0xcc);}return _0x9fe333['type']===_0x3bdd96(0x1d2,0x1e3,_0x341a93._0x220805,_0x341a93._0x7354c9);});if(_0x1fa515['length']===0x0)return void 0x0;return{'role':_0x5ed70b(-0x1b3,-_0x2df9c3._0x1ef512,-0x1af,-_0x2df9c3._0x33864f),'content':_0x1fa515};}function _0x1802(_0x2b7780,_0x29be24){_0x2b7780=_0x2b7780-0x161;const _0x407ac9=_0x407a();let _0x18029d=_0x407ac9[_0x2b7780];if(_0x1802['HaODMh']===undefined){var _0x30a9fa=function(_0x394e70){const _0x44103b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x684900='',_0xf45cfb='';for(let _0xc7f2f3=0x0,_0x4e710b,_0x47b1ef,_0x4f5d28=0x0;_0x47b1ef=_0x394e70['charAt'](_0x4f5d28++);~_0x47b1ef&&(_0x4e710b=_0xc7f2f3%0x4?_0x4e710b*0x40+_0x47b1ef:_0x47b1ef,_0xc7f2f3++%0x4)?_0x684900+=String['fromCharCode'](0xff&_0x4e710b>>(-0x2*_0xc7f2f3&0x6)):0x0){_0x47b1ef=_0x44103b['indexOf'](_0x47b1ef);}for(let _0x15bf26=0x0,_0x81058f=_0x684900['length'];_0x15bf26<_0x81058f;_0x15bf26++){_0xf45cfb+='%'+('00'+_0x684900['charCodeAt'](_0x15bf26)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xf45cfb);};_0x1802['ysQYnu']=_0x30a9fa,_0x1802['ssoCuq']={},_0x1802['HaODMh']=!![];}const _0x374d0c=_0x407ac9[0x0],_0x1094c9=_0x2b7780+_0x374d0c,_0x131158=_0x1802['ssoCuq'][_0x1094c9];return!_0x131158?(_0x18029d=_0x1802['ysQYnu'](_0x18029d),_0x1802['ssoCuq'][_0x1094c9]=_0x18029d):_0x18029d=_0x131158,_0x18029d;}function getTextFromMessage(_0x4a6f9f){const _0x23e873={_0x5d7a67:0xa,_0x3a4a61:0x6,_0x114073:0x140,_0x5b09d5:0x158,_0x28cd4d:0x15e,_0x277a0f:0x164,_0x226cac:0x157,_0xe56507:0x4,_0xf628e3:0x1e};function _0x16a8f0(_0x56ceac,_0x49cdb2,_0x582620,_0x28ffab){return _0x1802(_0x49cdb2- -0x2cd,_0x582620);}function _0x57ba0c(_0x2253bb,_0x55845a,_0x37d697,_0x3a64f4){return _0x1802(_0x55845a- -0x163,_0x37d697);}return normalizeContent(_0x4a6f9f?.[_0x57ba0c(0x15,_0x23e873._0x5d7a67,0xc,-_0x23e873._0x3a4a61)])[_0x16a8f0(-0x145,-0x14b,-_0x23e873._0x114073,-0x166)](_0x223e05=>_0x223e05[_0x57ba0c(0x2c,0x19,0x2d,0x26)]===_0x16a8f0(-0x148,-0x154,-0x14b,-0x15f))[_0x16a8f0(-_0x23e873._0x5b09d5,-_0x23e873._0x28cd4d,-_0x23e873._0x277a0f,-_0x23e873._0x226cac)](_0x3c04b9=>_0x3c04b9[_0x16a8f0(-0x148,-0x154,-0x15a,-0x159)])[_0x57ba0c(-_0x23e873._0xe56507,0xb,0x18,_0x23e873._0xf628e3)]('\x0a');}function getReasoningTextFromMessage(_0x209a7a){const _0x233190={_0x49c40d:0x14d,_0x4e7ef3:0x12a},_0x1e3f51={_0xfca127:0x3cf,_0xa3c3a8:0x3b1,_0x15f843:0x3b4,_0x4bcdf7:0x1ac,_0x272441:0x1b8,_0x3ab0e9:0x1d8,_0x28e31a:0x3b7,_0x39d035:0x3c3,_0x25d14f:0x3d9,_0x284fec:0x1c8,_0x53e4bc:0x1bc,_0x56fdf4:0x3c2,_0x4b74d1:0x3c7,_0x424869:0x3bd,_0x56bc4a:0x1b1,_0x4868c2:0x3b7,_0x3edea4:0x1a5,_0x4a94b9:0x193,_0x43670e:0x196,_0x5a708e:0x1a7,_0x47931c:0x1c0,_0x556e77:0x1b2,_0x53f952:0x1a2,_0x44572b:0x3a9,_0x274004:0x3c5,_0x10993c:0x3d4,_0x517fc2:0x3dc,_0xcd0df3:0x3ce,_0xe59e20:0x3a1},_0x51a98b={_0x30a9bb:0x159},_0x35cb94={_0x321d6e:0x131,_0x38dc29:0x4f0,_0x4a9ceb:0x2f};function _0xfcb173(_0xa50b,_0x5db1dd,_0x3f48db,_0x1163ba){return _0x1802(_0x3f48db- -0x2b0,_0x5db1dd);}return normalizeContent(_0x209a7a?.[_0xfcb173(-0x151,-_0x233190._0x49c40d,-0x143,-_0x233190._0x4e7ef3)])['flatMap'](_0x197780=>{if(_0x197780[_0x4cee29(0x3bc,_0x1e3f51._0xfca127,_0x1e3f51._0xa3c3a8,_0x1e3f51._0x15f843)]===_0x786f4b(0x1b6,0x1bf,0x19c,_0x1e3f51._0x4bcdf7))return _0x197780[_0x786f4b(0x1b5,_0x1e3f51._0x272441,_0x1e3f51._0x3ab0e9,0x1bf)]['trim']()[_0x4cee29(0x3c5,_0x1e3f51._0x28e31a,_0x1e3f51._0x39d035,_0x1e3f51._0x25d14f)]>0x0?[_0x197780[_0x786f4b(_0x1e3f51._0x284fec,0x1c2,_0x1e3f51._0x53e4bc,0x1bf)]]:[];if(_0x197780[_0x4cee29(0x3bc,_0x1e3f51._0x56fdf4,_0x1e3f51._0x4b74d1,_0x1e3f51._0x424869)]==='anthropic_redacted_thinking')return[_0x786f4b(0x199,0x1b6,0x1c3,_0x1e3f51._0x56bc4a)];if(_0x197780['type']!==_0x4cee29(0x3cf,0x3e5,_0x1e3f51._0x4868c2,0x3de))return[];const _0x7cfd7=_0x197780['summary'][_0x786f4b(_0x1e3f51._0x3edea4,0x1a4,_0x1e3f51._0x4a94b9,0x198)](_0x16adb8=>_0x16adb8[_0x786f4b(0x1b5,0x189,0x191,0x1a2)])[_0x786f4b(_0x1e3f51._0x43670e,_0x1e3f51._0x5a708e,0x1a6,0x1ab)](_0x18c8d5=>_0x18c8d5[_0x4cee29(0x3a1,0x39b,0x3bb,0x39e)]()[_0x786f4b(0x194,0x1b5,0x1c8,0x1ae)]>0x0)['join']('\x0a\x0a');function _0x4cee29(_0x3f9f4b,_0x10459e,_0x4416b,_0xfef94){return _0xfcb173(_0x3f9f4b-_0x35cb94._0x321d6e,_0xfef94,_0x3f9f4b-_0x35cb94._0x38dc29,_0xfef94-_0x35cb94._0x4a9ceb);}function _0x786f4b(_0xf73929,_0x3eb4a3,_0x1debdc,_0x84b8b6){return _0xfcb173(_0xf73929-_0x51a98b._0x30a9bb,_0xf73929,_0x84b8b6-0x2d9,_0x84b8b6-0x1b0);}if(_0x7cfd7[_0x786f4b(0x1a4,0x1ad,_0x1e3f51._0x47931c,0x1ae)]>0x0)return[_0x7cfd7];if(_0x197780[_0x786f4b(_0x1e3f51._0x556e77,_0x1e3f51._0x53f952,0x1b7,_0x1e3f51._0x53f952)]&&_0x197780[_0x4cee29(0x3b9,0x3ce,_0x1e3f51._0x44572b,0x3b3)]['trim']()[_0x4cee29(_0x1e3f51._0x274004,_0x1e3f51._0x10993c,_0x1e3f51._0x517fc2,_0x1e3f51._0xcd0df3)]>0x0)return[_0x197780[_0x4cee29(0x3b9,_0x1e3f51._0xe59e20,0x3bb,0x3a5)]];return _0x197780['encryptedContent']?[_0x4cee29(0x3c0,_0x1e3f51._0xfca127,0x3c9,0x3cc)]:[];})['join']('\x0a\x0a');}function getToolUseBlocks(_0x92026c){const _0x3f94c2={_0x1cd4ab:0x2ce,_0x5db56b:0x2e7,_0x14227b:0x2d3},_0x26104d={_0xf816e0:0x14c};function _0x6301ca(_0x4c4880,_0x1d414c,_0x296421,_0x3de9cd){return _0x1802(_0x4c4880-_0x26104d._0xf816e0,_0x3de9cd);}function _0x4fe9e3(_0x5bfe26,_0x32da43,_0x406fc7,_0x5b75cf){return _0x1802(_0x5b75cf-0x341,_0x5bfe26);}return normalizeContent(_0x92026c?.['content'])[_0x6301ca(_0x3f94c2._0x1cd4ab,_0x3f94c2._0x5db56b,_0x3f94c2._0x14227b,0x2de)](_0xe62054=>_0xe62054['type']===_0x4fe9e3(0x4a7,0x49a,0x4a7,0x4a3));}function getToolResultBlocks(_0x6f87d2){const _0x140d2d={_0xdbf61d:0x4e8,_0xb7d119:0x4e5,_0x1c886a:0x4a8,_0x2e63d1:0x496},_0x34d8a9={_0x21f05b:0x37b};function _0x4e3d76(_0x33ab16,_0x3d64ee,_0x43fdf5,_0x380463){return _0x1802(_0x380463-0x315,_0x43fdf5);}function _0x221917(_0x1ddba3,_0x33529b,_0x47d9cb,_0xdf22c7){return _0x1802(_0x33529b-_0x34d8a9._0x21f05b,_0xdf22c7);}return normalizeContent(_0x6f87d2?.[_0x221917(0x4cf,_0x140d2d._0xdbf61d,0x4f1,_0x140d2d._0xb7d119)])[_0x4e3d76(_0x140d2d._0x1c886a,_0x140d2d._0x2e63d1,0x4a9,0x497)](_0x4f871c=>_0x4f871c[_0x4e3d76(0x4a7,0x4aa,0x480,0x491)]==='tool_result');}function createToolResultUserMessage(_0x3e96a8){const _0x45a91b={_0x5e8336:0x61,_0x386dab:0x72,_0x497e03:0x4d,_0x8e1cfd:0x60},_0x218b21={_0x3015b2:0x50,_0x337a40:0x64,_0x451499:0x461,_0x13680f:0x470,_0x4b86cc:0x4f,_0x54d447:0x48,_0xe55813:0x3c,_0x149cff:0x53,_0x1ade61:0x71,_0x16aa27:0x58,_0xd8429a:0x7c},_0x272834={_0x19abf2:0x4e},_0x219436={_0x30adc8:0x5d,_0x207eeb:0x15e,_0xe8c914:0x3e},_0x2ac007={_0x3f6094:0x15a},_0x1dab33={_0x595813:0x1d5};function _0x4397cb(_0x1e431e,_0x56e9da,_0x17c832,_0x32d5cd){return _0x1802(_0x1e431e- -_0x1dab33._0x595813,_0x32d5cd);}function _0x3ef31c(_0x1b5eaa,_0x4361bd,_0x112a98,_0x575a00){return _0x1802(_0x575a00- -_0x2ac007._0x3f6094,_0x1b5eaa);}return{'role':_0x4397cb(-_0x45a91b._0x5e8336,-0x5e,-0x5f,-_0x45a91b._0x386dab),'content':_0x3e96a8[_0x4397cb(-0x66,-_0x45a91b._0x497e03,-0x6c,-_0x45a91b._0x8e1cfd)](_0x3f4c75=>{function _0x48402e(_0x3823e2,_0x4cdcc8,_0x3421d0,_0x431df7){return _0x3ef31c(_0x3421d0,_0x4cdcc8-_0x219436._0x30adc8,_0x3421d0-_0x219436._0x207eeb,_0x3823e2-_0x219436._0xe8c914);}function _0x119fca(_0x5b5fb3,_0x2d8c28,_0x57cdb2,_0x3a78e8){return _0x3ef31c(_0x5b5fb3,_0x2d8c28-0x152,_0x57cdb2-_0x272834._0x19abf2,_0x3a78e8-0x46e);}return{'type':_0x48402e(_0x218b21._0x3015b2,_0x218b21._0x337a40,0x50,0x49),'tool_use_id':_0x3f4c75[_0x119fca(_0x218b21._0x451499,_0x218b21._0x13680f,0x479,0x47a)],'content':_0x3f4c75[_0x48402e(0x51,0x38,0x5c,_0x218b21._0x4b86cc)]??_0x3f4c75[_0x48402e(_0x218b21._0x54d447,_0x218b21._0xe55813,_0x218b21._0x149cff,0x37)],'is_error':_0x3f4c75[_0x48402e(_0x218b21._0x1ade61,_0x218b21._0x16aa27,_0x218b21._0xd8429a,0x8c)]==='error'};})};}var INTERRUPTED_TOOL_RESULT_TEXT='Tool\x20execution\x20was\x20interrupted\x20before\x20completion\x20and\x20produced\x20no\x20result.';function synthesizeMissingToolResults(_0x57aaaf){const _0x487571={_0x3a55dc:0xcd,_0x1ce632:0xa1,_0x4be68e:0xb0,_0x4d9c4d:0xbc,_0x29b29e:0xc4,_0x15584f:0x1,_0x42b7ca:0x11,_0x22157f:0xc9,_0x149964:0xe1,_0x22aae2:0xcf,_0x43bb22:0xc5,_0x491ce4:0xd2},_0x52816b={_0xb2012f:0x173},_0x5351ca=new Set();for(const _0x6624e6 of _0x57aaaf){for(const _0x1eaa86 of getToolResultBlocks(_0x6624e6)){_0x5351ca[_0x414379(-0xbb,-_0x487571._0x3a55dc,-0xcb,-0xd4)](_0x1eaa86['tool_use_id']);}}function _0x414379(_0x3209e2,_0x2a3840,_0x365574,_0x3ae93a){return _0x1802(_0x365574- -0x23e,_0x3209e2);}const _0x4d69df=[];function _0x2cd9d2(_0x5e3d51,_0x2a4c2b,_0x4244d8,_0x38d851){return _0x1802(_0x5e3d51- -_0x52816b._0xb2012f,_0x4244d8);}for(const _0x476247 of _0x57aaaf){_0x4d69df['push'](_0x476247);const _0x3d49d6=getToolUseBlocks(_0x476247)[_0x414379(-_0x487571._0x1ce632,-_0x487571._0x4be68e,-_0x487571._0x4d9c4d,-0xd0)](_0x4c3fff=>!_0x5351ca['has'](_0x4c3fff['id']));if(_0x3d49d6['length']===0x0)continue;_0x4d69df[_0x414379(-0xab,-0xc8,-_0x487571._0x29b29e,-0xd1)]({'role':_0x2cd9d2(_0x487571._0x15584f,-0x17,0xa,-_0x487571._0x42b7ca),'content':_0x3d49d6[_0x414379(-_0x487571._0x22157f,-_0x487571._0x149964,-_0x487571._0x22aae2,-0xbb)](_0x35d5dd=>({'type':_0x414379(-0xe9,-0xc3,-0xd2,-0xbf),'tool_use_id':_0x35d5dd['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x5785a3 of _0x3d49d6){_0x5351ca[_0x414379(-0xb7,-_0x487571._0x43bb22,-0xcb,-_0x487571._0x491ce4)](_0x5785a3['id']);}}return _0x4d69df;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
@@ -1 +1 @@
1
- (function(_0x3be327,_0x325340){const _0x3c8439={_0x7de393:0x4f7,_0x407640:0x4f0,_0x2436b0:0x4e6,_0x1889fd:0x4ef,_0x11002a:0x4ec,_0x8060a7:0x4e3,_0x3efb6e:0x4e4,_0x5ac7aa:0x4e2,_0x2f10fc:0x4d3,_0x37019e:0x4d7,_0x210cd0:0x4d7,_0x3e8ad5:0x4de,_0x441ec1:0x4c8,_0x416e42:0x4df,_0x27ccdb:0x4e4,_0x5a9c64:0x4ea,_0x579334:0x4ce,_0x1860d1:0x4c1,_0x51f677:0x4cc,_0x1c2420:0x4c3,_0x365b23:0x4c3,_0x55eb8a:0x4eb,_0xf37f64:0x4e1,_0x53c102:0x4e0,_0x537d06:0x4d4,_0x2278c6:0x4d6,_0x1d9da9:0x4cb};function _0x1b268e(_0x2b762f,_0x3d5825,_0x157da8,_0xc6e8df){return _0x52ef(_0x157da8-0x31f,_0xc6e8df);}function _0x7df694(_0x570dc9,_0x2ed798,_0x3f0f59,_0x4f827d){return _0x52ef(_0x570dc9-0x302,_0x2ed798);}const _0x1d3232=_0x3be327();while(!![]){try{const _0x44f34c=parseInt(_0x1b268e(_0x3c8439._0x7de393,_0x3c8439._0x407640,0x4f2,_0x3c8439._0x2436b0))/0x1*(-parseInt(_0x1b268e(_0x3c8439._0x1889fd,_0x3c8439._0x11002a,0x4e9,0x4f2))/0x2)+parseInt(_0x1b268e(_0x3c8439._0x8060a7,_0x3c8439._0x3efb6e,_0x3c8439._0x5ac7aa,0x4e4))/0x3*(-parseInt(_0x7df694(_0x3c8439._0x2f10fc,0x4db,_0x3c8439._0x37019e,_0x3c8439._0x210cd0))/0x4)+-parseInt(_0x1b268e(0x4dc,_0x3c8439._0x3e8ad5,0x4df,0x4df))/0x5*(-parseInt(_0x7df694(0x4c8,0x4c2,0x4bf,_0x3c8439._0x441ec1))/0x6)+parseInt(_0x1b268e(_0x3c8439._0x416e42,_0x3c8439._0x27ccdb,_0x3c8439._0x5a9c64,0x4e5))/0x7*(-parseInt(_0x7df694(0x4d1,_0x3c8439._0x579334,0x4c6,0x4c9))/0x8)+parseInt(_0x7df694(_0x3c8439._0x1860d1,_0x3c8439._0x51f677,_0x3c8439._0x1c2420,_0x3c8439._0x365b23))/0x9*(-parseInt(_0x1b268e(_0x3c8439._0x210cd0,_0x3c8439._0x55eb8a,_0x3c8439._0xf37f64,_0x3c8439._0x53c102))/0xa)+parseInt(_0x7df694(_0x3c8439._0x537d06,0x4d5,_0x3c8439._0x51f677,0x4cb))/0xb+parseInt(_0x7df694(0x4d0,_0x3c8439._0x2278c6,0x4ce,_0x3c8439._0x1d9da9))/0xc;if(_0x44f34c===_0x325340)break;else _0x1d3232['push'](_0x1d3232['shift']());}catch(_0x42accb){_0x1d3232['push'](_0x1d3232['shift']());}}}(_0x1ae1,0x7d923));import{toOpenAiResponsesRequest}from'../chunk-BLGBVFVX.js';import'../chunk-NYZR4XKO.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-YWQXXHHU.js';function _0x52ef(_0x53e304,_0x404030){_0x53e304=_0x53e304-0x1bc;const _0x1ae1f3=_0x1ae1();let _0x52efd6=_0x1ae1f3[_0x53e304];if(_0x52ef['EmIfYT']===undefined){var _0x2743b5=function(_0x4d29c8){const _0x113e48='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1ac915='',_0xee7f1b='';for(let _0x608356=0x0,_0x5e550f,_0x3aa2e6,_0x68cd51=0x0;_0x3aa2e6=_0x4d29c8['charAt'](_0x68cd51++);~_0x3aa2e6&&(_0x5e550f=_0x608356%0x4?_0x5e550f*0x40+_0x3aa2e6:_0x3aa2e6,_0x608356++%0x4)?_0x1ac915+=String['fromCharCode'](0xff&_0x5e550f>>(-0x2*_0x608356&0x6)):0x0){_0x3aa2e6=_0x113e48['indexOf'](_0x3aa2e6);}for(let _0x160211=0x0,_0x134222=_0x1ac915['length'];_0x160211<_0x134222;_0x160211++){_0xee7f1b+='%'+('00'+_0x1ac915['charCodeAt'](_0x160211)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xee7f1b);};_0x52ef['hUaXpI']=_0x2743b5,_0x52ef['VBDbLk']={},_0x52ef['EmIfYT']=!![];}const _0x1fb5a3=_0x1ae1f3[0x0],_0x320a96=_0x53e304+_0x1fb5a3,_0x184998=_0x52ef['VBDbLk'][_0x320a96];return!_0x184998?(_0x52efd6=_0x52ef['hUaXpI'](_0x52efd6),_0x52ef['VBDbLk'][_0x320a96]=_0x52efd6):_0x52efd6=_0x184998,_0x52efd6;}var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,([A-Za-z0-9+/\r\n]+={0,2})/g;function normalizeMediaType(_0x1ac915){const _0x361311={_0x1777fe:0x3a1,_0x1b6004:0x39f,_0x28bc11:0x36b,_0x9f4f70:0x36a,_0x3a7e41:0x373},_0xfdd7f0={_0x238b2b:0x1a1};function _0x4e84e4(_0x41f368,_0x3abd9a,_0x1a1bb8,_0x14bf58){return _0x52ef(_0x3abd9a-0x1e0,_0x41f368);}function _0x1c179a(_0x45b471,_0x15373b,_0x169c23,_0x35e0ae){return _0x52ef(_0x169c23-_0xfdd7f0._0x238b2b,_0x45b471);}return _0x1ac915===_0x4e84e4(0x39a,_0x361311._0x1777fe,_0x361311._0x1b6004,0x39f)?_0x1c179a(0x36c,_0x361311._0x28bc11,_0x361311._0x9f4f70,_0x361311._0x3a7e41):_0x1ac915;}function isValidBase64(_0xee7f1b){const _0x5b0ccb={_0x17856a:0x25e,_0x49c019:0x319,_0x340c95:0x310,_0x2f9b60:0x321,_0x4fc7bf:0x320,_0x4740e8:0x263,_0x11e8ca:0x261};function _0x4acf29(_0x422c73,_0x265332,_0x2d0d4d,_0x329a6b){return _0x52ef(_0x265332-0xa4,_0x329a6b);}function _0x316fc3(_0x2ff567,_0x2212d0,_0x88227a,_0x52c3a7){return _0x52ef(_0x2ff567-0x155,_0x2212d0);}if(_0xee7f1b[_0x4acf29(0x26f,0x268,_0x5b0ccb._0x17856a,0x262)]===0x0||_0xee7f1b[_0x316fc3(_0x5b0ccb._0x49c019,_0x5b0ccb._0x340c95,_0x5b0ccb._0x2f9b60,_0x5b0ccb._0x4fc7bf)]%0x4!==0x0)return![];return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x4acf29(0x257,0x261,_0x5b0ccb._0x4740e8,_0x5b0ccb._0x11e8ca)](_0xee7f1b);}function collectImageMatches(_0x608356){const _0x2d77b1={_0x445dc8:0x13d,_0x2d47c8:0x144,_0x57c89c:0x134},_0x2f6ae2={_0x387f36:0x20e,_0x58399d:0x211},_0xcf3b91={_0x5705b1:0xb,_0x555b39:0x111},_0x37a4a4={_0x1b42e9:0x93};function _0x7bdfd(_0x71d880,_0x586f10,_0x868837,_0x1b931d){return _0x52ef(_0x586f10- -0x321,_0x1b931d);}DATA_URI_REGEX[_0x103dde(_0x2d77b1._0x445dc8,0x13d,0x13f,_0x2d77b1._0x2d47c8)]=0x0;function _0x103dde(_0x583df7,_0x3af118,_0x434e33,_0x1d8280){return _0x52ef(_0x583df7- -_0x37a4a4._0x1b42e9,_0x1d8280);}return Array['from'](_0x608356[_0x103dde(_0x2d77b1._0x57c89c,0x13a,0x13f,0x13c)](DATA_URI_REGEX))['filter'](_0x5e550f=>{const _0x3aa2e6=(_0x5e550f[0x2]??'')[_0x4ffbc6(_0x2f6ae2._0x387f36,0x208,0x210,_0x2f6ae2._0x58399d)](/[\r\n]/g,'');function _0x4ffbc6(_0x299de4,_0x3e6f00,_0x27f7fc,_0x6f4508){return _0x103dde(_0x27f7fc-0xde,_0x3e6f00-_0xcf3b91._0x5705b1,_0x27f7fc-_0xcf3b91._0x555b39,_0x3e6f00);}return isValidBase64(_0x3aa2e6);});}function _0x1ae1(){const _0x89cd2f=['Bwf0y2HbBgW','C2XPy2u','Aw1Hz2uVANbLzW','mKX4r09ruW','ndaXmti4rujzBKfm','Dgv4Da','ChvZAa','mJi4nda4ndH5wMDnv3K','mZjKq3vYvNq','BgfZDeLUzgv4','mtzdDgrsu0C','mJyXmtCWog9vEMHfvG','ndq2mdG3zfDWzvv4','Aw1Hz2u','DgvZDa','Aw5KzxG','mJq0mZC2mw5QrhrxDq','mZvZBKLtD0e','Aw1Hz2uVANbN','mtb1vLbPyKi','nZaYntmXzNnkt21u','BgvUz3rO','CMvWBgfJzq','mJiWmZi2yKjPCeTh'];_0x1ae1=function(){return _0x89cd2f;};return _0x1ae1();}function hasPastedImages(_0x68cd51){function _0x4492e6(_0x19bd86,_0x3959a1,_0x73b485,_0x58d44b){return _0x52ef(_0x19bd86-0x359,_0x58d44b);}return collectImageMatches(_0x68cd51)[_0x4492e6(0x51d,0x511,0x518,0x527)]>0x0;}function contentFromPastedText(_0x160211){const _0x351f09={_0x41c18d:0x2ba,_0x538700:0x2be,_0x206403:0x52f,_0x484d20:0x2c4,_0x3d66d9:0x2d6,_0x415a9c:0x2cc,_0x74f054:0x2d0,_0x27fa83:0x537,_0x5d95f7:0x532,_0x5c1588:0x52d,_0x44dc04:0x530,_0x5e9186:0x535,_0x5d53bf:0x53a,_0x160144:0x2bc,_0xeb018f:0x2b4,_0x465263:0x531,_0x52b655:0x52e},_0x317b55={_0x14bb81:0x36d},_0x359212={_0x4efde9:0x100},_0x134222=collectImageMatches(_0x160211);function _0x43934b(_0x15255d,_0x3eb6e3,_0x136bf4,_0x241f2c){return _0x52ef(_0x136bf4-_0x359212._0x4efde9,_0x241f2c);}function _0x1c6e44(_0x3488c9,_0x347794,_0xe7ea0d,_0x58c55d){return _0x52ef(_0x58c55d-_0x317b55._0x14bb81,_0x347794);}const _0x430956=[];let _0x710b83=0x0;for(const _0x4be65e of _0x134222){const _0x5f1fd7=_0x4be65e[_0x43934b(_0x351f09._0x41c18d,0x2b2,_0x351f09._0x538700,0x2c5)]??0x0,[_0x430548,_0xba9711,_0x11eb95]=_0x4be65e;_0x5f1fd7>_0x710b83&&_0x430956[_0x1c6e44(0x53b,_0x351f09._0x206403,0x545,0x53a)]({'type':_0x43934b(_0x351f09._0x484d20,_0x351f09._0x3d66d9,_0x351f09._0x415a9c,_0x351f09._0x74f054),'text':_0x160211[_0x1c6e44(_0x351f09._0x27fa83,_0x351f09._0x5d95f7,_0x351f09._0x5c1588,0x535)](_0x710b83,_0x5f1fd7)}),_0x430956[_0x1c6e44(0x532,_0x351f09._0x44dc04,_0x351f09._0x5e9186,_0x351f09._0x5d53bf)]({'type':_0x43934b(0x2c4,0x2b7,_0x351f09._0x160144,_0x351f09._0xeb018f),'source':{'type':'base64','media_type':normalizeMediaType(_0xba9711),'data':_0x11eb95[_0x43934b(_0x351f09._0x74f054,0x2bd,0x2c5,0x2cb)](/[\r\n]/g,'')}}),_0x710b83=_0x5f1fd7+_0x430548[_0x1c6e44(0x535,0x53a,0x528,_0x351f09._0x465263)];}return _0x710b83<_0x160211[_0x1c6e44(0x53d,_0x351f09._0x52b655,0x52b,0x531)]&&_0x430956['push']({'type':'text','text':_0x160211[_0x1c6e44(0x534,0x53f,0x52b,0x535)](_0x710b83)}),_0x430956['length']>0x0?_0x430956:[{'type':'text','text':_0x160211}];}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};
1
+ function _0x2eaf(_0x3bb501,_0x1bb556){_0x3bb501=_0x3bb501-0x1ee;const _0x334ec4=_0x334e();let _0x2eaf7d=_0x334ec4[_0x3bb501];if(_0x2eaf['JjHBII']===undefined){var _0x431a75=function(_0x5294cc){const _0x4c1899='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x417b89='',_0x2ce4af='';for(let _0x2886a1=0x0,_0x5612bf,_0x3a5984,_0x1974ae=0x0;_0x3a5984=_0x5294cc['charAt'](_0x1974ae++);~_0x3a5984&&(_0x5612bf=_0x2886a1%0x4?_0x5612bf*0x40+_0x3a5984:_0x3a5984,_0x2886a1++%0x4)?_0x417b89+=String['fromCharCode'](0xff&_0x5612bf>>(-0x2*_0x2886a1&0x6)):0x0){_0x3a5984=_0x4c1899['indexOf'](_0x3a5984);}for(let _0x4c22bc=0x0,_0x34691e=_0x417b89['length'];_0x4c22bc<_0x34691e;_0x4c22bc++){_0x2ce4af+='%'+('00'+_0x417b89['charCodeAt'](_0x4c22bc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2ce4af);};_0x2eaf['TDIZNA']=_0x431a75,_0x2eaf['TBecjP']={},_0x2eaf['JjHBII']=!![];}const _0xf584da=_0x334ec4[0x0],_0xc14532=_0x3bb501+_0xf584da,_0x44e7cc=_0x2eaf['TBecjP'][_0xc14532];return!_0x44e7cc?(_0x2eaf7d=_0x2eaf['TDIZNA'](_0x2eaf7d),_0x2eaf['TBecjP'][_0xc14532]=_0x2eaf7d):_0x2eaf7d=_0x44e7cc,_0x2eaf7d;}(function(_0x55ad55,_0x40ed2d){const _0x15a985={_0x4884a6:0x483,_0x2249a6:0x484,_0x2475f9:0x576,_0x1a4bc6:0x573,_0x9d27a4:0x57a,_0x4903f7:0x57b,_0x167c46:0x575,_0xde83f0:0x577,_0x55f8a0:0x57c,_0x25d46d:0x56e,_0x6633bc:0x578,_0x3ed741:0x579,_0x36500b:0x578,_0x352469:0x578,_0xd74e8c:0x57b,_0x5e03f5:0x481,_0x3b7fd1:0x484,_0x1905a8:0x47e,_0x5af8a5:0x471,_0x352e71:0x470,_0x552b2c:0x57f,_0x5a74e4:0x587,_0xa53fc5:0x473,_0x5300c3:0x475},_0x337fac={_0x3ec159:0x285};function _0x741a9b(_0x27280c,_0x2d86f5,_0x2cec4c,_0x413a94){return _0x2eaf(_0x2d86f5-_0x337fac._0x3ec159,_0x2cec4c);}function _0xde4957(_0x289fc3,_0x24362b,_0x3c3136,_0x31e6fc){return _0x2eaf(_0x289fc3-0x37f,_0x31e6fc);}const _0x2a5d6c=_0x55ad55();while(!![]){try{const _0x22d799=parseInt(_0x741a9b(0x47e,_0x15a985._0x4884a6,_0x15a985._0x2249a6,0x479))/0x1*(parseInt(_0xde4957(_0x15a985._0x2475f9,0x56d,_0x15a985._0x1a4bc6,_0x15a985._0x9d27a4))/0x2)+parseInt(_0xde4957(_0x15a985._0x4903f7,_0x15a985._0x4903f7,_0x15a985._0x167c46,0x576))/0x3+-parseInt(_0xde4957(_0x15a985._0xde83f0,_0x15a985._0x55f8a0,_0x15a985._0x25d46d,0x579))/0x4*(-parseInt(_0xde4957(_0x15a985._0x6633bc,0x577,_0x15a985._0x3ed741,_0x15a985._0x36500b))/0x5)+parseInt(_0xde4957(0x57c,0x57a,_0x15a985._0x352469,_0x15a985._0xd74e8c))/0x6*(-parseInt(_0x741a9b(_0x15a985._0x5e03f5,_0x15a985._0x3b7fd1,0x486,0x488))/0x7)+parseInt(_0x741a9b(_0x15a985._0x1905a8,0x476,_0x15a985._0x5af8a5,_0x15a985._0x352e71))/0x8+-parseInt(_0x741a9b(0x481,0x47f,0x47d,0x476))/0x9*(parseInt(_0xde4957(0x581,_0x15a985._0x552b2c,_0x15a985._0x5a74e4,0x588))/0xa)+-parseInt(_0x741a9b(0x46b,_0x15a985._0xa53fc5,_0x15a985._0x5300c3,0x46e))/0xb;if(_0x22d799===_0x40ed2d)break;else _0x2a5d6c['push'](_0x2a5d6c['shift']());}catch(_0x43f503){_0x2a5d6c['push'](_0x2a5d6c['shift']());}}}(_0x334e,0x2f32e));import{toOpenAiResponsesRequest}from'../chunk-BLGBVFVX.js';import'../chunk-NYZR4XKO.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-YWQXXHHU.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,([A-Za-z0-9+/\r\n]+={0,2})/g;function normalizeMediaType(_0x417b89){return _0x417b89==='image/jpg'?'image/jpeg':_0x417b89;}function isValidBase64(_0x2ce4af){const _0x5b80c0={_0x5ca062:0x247,_0x5d389c:0x23e,_0x5b43b5:0x23a,_0x272b88:0x241},_0x488ad6={_0x4dda93:0x4b};function _0x2b2e95(_0x17f7dc,_0x2f24f5,_0xd2597b,_0x1bbeaa){return _0x2eaf(_0x2f24f5-0x267,_0x1bbeaa);}function _0x2d2c33(_0x3a26ea,_0x5e9f43,_0x24307c,_0xef318f){return _0x2eaf(_0x5e9f43-_0x488ad6._0x4dda93,_0x24307c);}if(_0x2ce4af[_0x2d2c33(_0x5b80c0._0x5ca062,_0x5b80c0._0x5d389c,_0x5b80c0._0x5b43b5,0x23a)]===0x0||_0x2ce4af['length']%0x4!==0x0)return![];return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x2d2c33(_0x5b80c0._0x5ca062,_0x5b80c0._0x272b88,0x241,0x23c)](_0x2ce4af);}function collectImageMatches(_0x2886a1){const _0x451bf4={_0x2713a4:0x2e2,_0x484033:0x2e0,_0x3bce9f:0x2e5,_0x3f59d1:0x2e3,_0xac102e:0x2e0,_0x4bf05b:0x101},_0x462afa={_0x598a5e:0x15},_0x31b832={_0x1e33bb:0xea};function _0x3eee11(_0x32719e,_0x1a70da,_0x34f127,_0x876535){return _0x2eaf(_0x1a70da- -0xf0,_0x876535);}DATA_URI_REGEX[_0x63dd8d(0x2df,_0x451bf4._0x2713a4,_0x451bf4._0x484033,0x2e3)]=0x0;function _0x63dd8d(_0x2a6f21,_0x3ecdab,_0x38a00d,_0x43ee47){return _0x2eaf(_0x2a6f21-_0x31b832._0x1e33bb,_0x38a00d);}return Array[_0x63dd8d(_0x451bf4._0x3bce9f,0x2e6,_0x451bf4._0x3f59d1,_0x451bf4._0xac102e)](_0x2886a1[_0x3eee11(0xfc,0xff,_0x451bf4._0x4bf05b,0x100)](DATA_URI_REGEX))['filter'](_0x5612bf=>{function _0x451db8(_0x33ee59,_0x5cc841,_0x4a1107,_0x459e8f){return _0x63dd8d(_0x33ee59- -0x173,_0x5cc841-_0x462afa._0x598a5e,_0x5cc841,_0x459e8f-0xe1);}const _0x3a5984=(_0x5612bf[0x2]??'')[_0x451db8(0x167,0x15f,0x163,0x162)](/[\r\n]/g,'');return isValidBase64(_0x3a5984);});}function hasPastedImages(_0x1974ae){const _0x4d0891={_0x448ae6:0x32f,_0x234673:0x325,_0x40cdfe:0x327};function _0x1e9cbb(_0x5dd855,_0x25aa54,_0x3e0e0b,_0x4b416a){return _0x2eaf(_0x25aa54-0x13c,_0x3e0e0b);}return collectImageMatches(_0x1974ae)[_0x1e9cbb(0x32e,_0x4d0891._0x448ae6,_0x4d0891._0x234673,_0x4d0891._0x40cdfe)]>0x0;}function contentFromPastedText(_0x4c22bc){const _0x2948d5={_0x2c4cb7:0x141,_0x5366cb:0x13c,_0x41e552:0x1c6,_0x22c77e:0x1ca,_0x32d3df:0x147,_0x175a65:0x14c,_0x2e7f40:0x14a,_0x5bed84:0x1db,_0x17663f:0x1e8,_0x260ea2:0x130,_0x47c281:0x142,_0x1094b1:0x1d8,_0x24707a:0x141,_0x4322e6:0x145,_0x2f2313:0x142,_0x50e391:0x14b,_0x39d8dd:0x1e5,_0x511e2b:0x1de},_0x34691e=collectImageMatches(_0x4c22bc),_0x391c1b=[];let _0x8d8e15=0x0;for(const _0x305830 of _0x34691e){const _0x4319a0=_0x305830[_0x1c9714(0x142,_0x2948d5._0x2c4cb7,0x141,_0x2948d5._0x5366cb)]??0x0,[_0x2e46e6,_0x56357d,_0x13745e]=_0x305830;_0x4319a0>_0x8d8e15&&_0x391c1b[_0x5b5b25(-_0x2948d5._0x41e552,-0x1d5,-_0x2948d5._0x22c77e,-0x1d0)]({'type':_0x1c9714(0x154,_0x2948d5._0x32d3df,_0x2948d5._0x175a65,_0x2948d5._0x2e7f40),'text':_0x4c22bc['slice'](_0x8d8e15,_0x4319a0)}),_0x391c1b['push']({'type':_0x5b5b25(-0x1e5,-_0x2948d5._0x5bed84,-_0x2948d5._0x17663f,-0x1dd),'source':{'type':'base64','media_type':normalizeMediaType(_0x56357d),'data':_0x13745e[_0x1c9714(0x138,_0x2948d5._0x260ea2,0x13f,0x13a)](/[\r\n]/g,'')}}),_0x8d8e15=_0x4319a0+_0x2e46e6[_0x1c9714(0x135,_0x2948d5._0x47c281,0x13c,0x13d)];}function _0x1c9714(_0x5c35ee,_0x476639,_0x3cd9d1,_0xf4033b){return _0x2eaf(_0xf4033b- -0xb6,_0x3cd9d1);}function _0x5b5b25(_0x5abfaf,_0x5547aa,_0x3a3ef9,_0x1536c1){return _0x2eaf(_0x1536c1- -0x3d1,_0x3a3ef9);}return _0x8d8e15<_0x4c22bc[_0x5b5b25(-_0x2948d5._0x1094b1,-0x1df,-0x1de,-0x1de)]&&_0x391c1b[_0x1c9714(_0x2948d5._0x24707a,_0x2948d5._0x4322e6,_0x2948d5._0x2f2313,_0x2948d5._0x50e391)]({'type':_0x1c9714(0x153,0x14a,_0x2948d5._0x50e391,0x14a),'text':_0x4c22bc['slice'](_0x8d8e15)}),_0x391c1b[_0x5b5b25(-0x1e1,-_0x2948d5._0x39d8dd,-0x1d9,-_0x2948d5._0x511e2b)]>0x0?_0x391c1b:[{'type':'text','text':_0x4c22bc}];}function _0x334e(){const _0x2dab49=['mtqWmJe4nhDlvNj1BW','Aw5KzxG','BgvUz3rO','Aw1Hz2u','BgfZDeLUzgv4','DgvZDa','mJe0tNPhvhjx','ndbQzvvYD1e','mZe2mZbRzvbhu2y','ouLPDu1KCG','zNjVBq','mti1nZmWrMz4yw9R','nJu4odb1DvHtB2y','mZu4m3flAg5Osq','mtq3BNjgDMDQ','Dgv4Da','ChvZAa','mtKZmdu3mfj4wwjvwG','nte1ndCXqujwyxrj','Bwf0y2HbBgW','CMvWBgfJzq'];_0x334e=function(){return _0x2dab49;};return _0x334e();}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};
@@ -1 +1 @@
1
- function _0x5c12(_0x58472f,_0xda4e33){_0x58472f=_0x58472f-0x1df;const _0x51a2b8=_0x51a2();let _0x5c1298=_0x51a2b8[_0x58472f];if(_0x5c12['KDCcyo']===undefined){var _0x151224=function(_0x547a4a){const _0x356980='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x13ff72='',_0x4273d7='';for(let _0x46bde4=0x0,_0x524bec,_0x30bcf5,_0x178ec1=0x0;_0x30bcf5=_0x547a4a['charAt'](_0x178ec1++);~_0x30bcf5&&(_0x524bec=_0x46bde4%0x4?_0x524bec*0x40+_0x30bcf5:_0x30bcf5,_0x46bde4++%0x4)?_0x13ff72+=String['fromCharCode'](0xff&_0x524bec>>(-0x2*_0x46bde4&0x6)):0x0){_0x30bcf5=_0x356980['indexOf'](_0x30bcf5);}for(let _0x4c1b75=0x0,_0x5cf8f6=_0x13ff72['length'];_0x4c1b75<_0x5cf8f6;_0x4c1b75++){_0x4273d7+='%'+('00'+_0x13ff72['charCodeAt'](_0x4c1b75)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4273d7);};_0x5c12['iEkFdp']=_0x151224,_0x5c12['pPUDfl']={},_0x5c12['KDCcyo']=!![];}const _0x4ee9a1=_0x51a2b8[0x0],_0x4dddad=_0x58472f+_0x4ee9a1,_0x4037d9=_0x5c12['pPUDfl'][_0x4dddad];return!_0x4037d9?(_0x5c1298=_0x5c12['iEkFdp'](_0x5c1298),_0x5c12['pPUDfl'][_0x4dddad]=_0x5c1298):_0x5c1298=_0x4037d9,_0x5c1298;}(function(_0xaaee16,_0x12dcac){const _0x5ee06={_0xc056e5:0x586,_0x3d01a7:0x584,_0x2bd86b:0x5a6,_0x3743a0:0x5a4,_0x1b2c5e:0x596,_0x47a8a1:0x58a,_0x29fc3f:0x5ba,_0x389d36:0x5c0,_0x5b1cbd:0x5c8,_0x351e0f:0x5b0,_0x3313a0:0x57b,_0x27b10f:0x59d,_0xc619dd:0x580,_0x1ecfc1:0x59a,_0xd9fea0:0x57f,_0x228409:0x2f,_0x83c1c9:0x25,_0x274091:0x50,_0x18fdaf:0x58f,_0x2e7f97:0x592,_0x39b461:0x583,_0x1cf487:0x59e};function _0x2be5da(_0x218ff2,_0x24896a,_0x28d554,_0x900d8b){return _0x5c12(_0x900d8b-0x395,_0x28d554);}const _0x27b8b6=_0xaaee16();function _0x25e0b6(_0x472555,_0x4b2f2f,_0x2a575b,_0x583d48){return _0x5c12(_0x2a575b- -0x254,_0x472555);}while(!![]){try{const _0x4571bd=-parseInt(_0x2be5da(0x594,0x56d,_0x5ee06._0xc056e5,_0x5ee06._0x3d01a7))/0x1+parseInt(_0x2be5da(_0x5ee06._0x2bd86b,_0x5ee06._0x3743a0,_0x5ee06._0x1b2c5e,_0x5ee06._0x47a8a1))/0x2*(-parseInt(_0x2be5da(_0x5ee06._0x29fc3f,_0x5ee06._0x389d36,_0x5ee06._0x5b1cbd,_0x5ee06._0x351e0f))/0x3)+parseInt(_0x2be5da(0x560,0x575,_0x5ee06._0x3313a0,0x574))/0x4*(parseInt(_0x2be5da(_0x5ee06._0x3d01a7,0x58c,_0x5ee06._0x3d01a7,_0x5ee06._0x27b10f))/0x5)+parseInt(_0x2be5da(_0x5ee06._0xc619dd,_0x5ee06._0x1ecfc1,_0x5ee06._0xd9fea0,0x581))/0x6+-parseInt(_0x25e0b6(-0x35,-0x5a,-0x4d,-0x34))/0x7*(-parseInt(_0x25e0b6(-_0x5ee06._0x228409,-0x49,-0x42,-0x5b))/0x8)+parseInt(_0x25e0b6(-0x69,-_0x5ee06._0x83c1c9,-0x47,-_0x5ee06._0x274091))/0x9+-parseInt(_0x2be5da(_0x5ee06._0x18fdaf,_0x5ee06._0x2e7f97,_0x5ee06._0x39b461,_0x5ee06._0x1cf487))/0xa;if(_0x4571bd===_0x12dcac)break;else _0x27b8b6['push'](_0x27b8b6['shift']());}catch(_0x526b9d){_0x27b8b6['push'](_0x27b8b6['shift']());}}}(_0x51a2,0x33e27));import{spawn}from'child_process';function _0x51a2(){const _0x1d652c=['qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','mZC3mZGWwerlB05h','A2LSBa','CgLWzq','zgvUEq','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','y29TBwfUza','ntC0t3z1Cvnm','CgfZCW','zxjYB3i','BgvUz3rO','ChvZAa','C3rHDhvZ','tM90AwzPy2f0Aw9U','BwfW','D3jPDgu','C3rKB3v0','Ag9VA3m','uhjLvg9VBfvZzq','BMfTzq','z2v0sg9VA3m','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','CNvU','ywXSB3C','CMvQzwn0','mJKZotq0n2XnD2v4yW','ntbAsKrfyLa','ndK1mtKWANPKAMXg','ywz0zxjuDxjUq29TCgXLDgu','C3rHDgu','ywz0zxjuB29SuMvZDwX0','mteXmJmXCLHetLvw','zgf0yq','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','xIG/oG','Ag9VA1nWzwnPzMLJt3v0Chv0','ogvQy0XOzG','rvbjueu','Ag9VAZPoB3rPzMLJyxrPB24','yMXVy2S','yMvMB3jLrMLUywXpDxrWDxq','zw5Kx3r1CM4','CgfYC2u','Dg9tDhjPBMC','DgLTzw91Da','mJu3n3H0reHltW','y2XVC2u','C2vZC2LVBKLK','DgvZDa','CMvHC29U','ug9ZDfrVB2XvC2u','Ag9VAZPtDg9W','DhjPBq','nZyXmZjlAhbfzNa','C3rKAw4','u0Lhs0Lmta','B3v0Chv0','Aw5WDxq','y29Kzq','y3DK','Dg9VBe5HBwu','AgfZsg9VA3m','BM93','Bwf0y2HLCG','B2jZzxj2zxi','u3rVCa','mtu4mda0nMPeq05tAW'];_0x51a2=function(){return _0x1d652c;};return _0x51a2();}var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x13ff72,_0x4273d7,_0x46bde4=DEFAULT_TIMEOUT_S,_0x524bec){const _0x385bed={_0x102be9:0x29,_0x394d98:0x2c},_0x309a1c={_0x1a6f51:0x1ac,_0x2428ec:0x1a3,_0x1230de:0x1c3,_0x108b0b:0x1ac,_0x5e37ce:0x1c2,_0x2db376:0x20e,_0x4a9b84:0x20b,_0x481e1f:0x1b9,_0xbe8936:0x1ba,_0x3161ed:0x1c9,_0x2dccf7:0x1ab,_0x5cf0de:0x1b5,_0x2f7481:0x1cf,_0x585c0e:0x209,_0x525d34:0x1e7,_0x4ee479:0x1b8,_0x4339d7:0x19c,_0x3abdf1:0x1a2,_0xef00c5:0x1d4,_0x591a31:0x209,_0x3748bd:0x1e7,_0x20b033:0x1d3,_0x392691:0x1ca,_0x40ed9d:0x1d4,_0x3a11a5:0x220},_0x27bfee={_0x2331dc:0xe2,_0x3a2f09:0xc9},_0x2d2cf3={_0x14c985:0x2c0,_0x1bf2e6:0x2a9,_0xae8677:0x2ee,_0x5798e9:0x1e7,_0x255a91:0x1d3,_0x2c1726:0x1df,_0x1a69f5:0x1db,_0x6d164c:0x1da,_0x108450:0x2e2,_0x431dad:0x2c0,_0x10d603:0x2d7,_0x282f05:0x2e6,_0x1efcdf:0x1c8,_0x378e26:0x1c9,_0x6fc4b1:0x1da,_0x4db78d:0x1cb,_0x280da5:0x1bc,_0x1b9d62:0x286},_0x357733={_0x2a9482:0x196,_0x4ab62e:0x19a,_0x558632:0x1b3,_0x3fb527:0x3bd,_0x2e4abc:0x3c0,_0x183ddf:0x3f1,_0x58f825:0x193,_0x2b5c31:0x18a,_0x275ec6:0x1b4,_0x2dbeea:0x194,_0x4e696f:0x1bf},_0x187046={_0x3bc149:0xa,_0x4d35bc:0x18};function _0x4cf15a(_0x399e6f,_0x5bb99e,_0x423657,_0x51fda5){return _0x5c12(_0x423657- -0x1cf,_0x399e6f);}const _0x30bcf5=Date[_0x4cf15a(0xf,_0x385bed._0x102be9,0x19,_0x385bed._0x394d98)]();return new Promise(_0x178ec1=>{const _0x17cd95={_0x20f74c:0x301},_0x14eb13={_0x424e78:0x7a,_0x18ab0e:0xde},_0x3256a6={_0x577683:0x1ce,_0x451fe0:0x1f8,_0x1cfbc7:0x1db,_0x4e6da4:0x370},_0x23a070={_0x3c129e:0x37a,_0x2edb57:0xc3,_0x4bdf79:0x89},_0xa7b1fa={_0x3f255d:0x1a5},_0x3adefd={_0x413118:0x28f,_0x322b71:0x2a5},_0x53b09c={_0x372c5b:0x4d},_0x4c1b75=spawn('sh',['-c',_0x13ff72],{'stdio':[_0x12dc94(_0x309a1c._0x1a6f51,_0x309a1c._0x2428ec,0x196,_0x309a1c._0x1230de),_0x12dc94(_0x309a1c._0x108b0b,_0x309a1c._0x5e37ce,0x1c3,0x1a5),'pipe'],'env':{...process['env'],'CLAUDE_PROJECT_DIR':_0x524bec??process[_0x266f13(0x1f6,0x1f5,_0x309a1c._0x2db376,_0x309a1c._0x4a9b84)]()}});let _0x5cf8f6='';function _0x12dc94(_0x4913bb,_0x4a23b5,_0x4841aa,_0x592d03){return _0x4cf15a(_0x4841aa,_0x4a23b5-0xf6,_0x4913bb-0x18a,_0x592d03-0x172);}let _0x54841d='';_0x4c1b75[_0x12dc94(_0x309a1c._0x481e1f,0x1a0,_0x309a1c._0xbe8936,0x1ab)]['on'](_0x12dc94(_0x309a1c._0x3161ed,0x1d4,_0x309a1c._0x2dccf7,0x1df),_0x1e1507=>{function _0x57c566(_0x3c7084,_0x156c73,_0x4a3782,_0x3da2e5){return _0x266f13(_0x3c7084-0x89,_0x156c73-0x9,_0x156c73-_0x53b09c._0x372c5b,_0x3da2e5);}_0x5cf8f6+=_0x1e1507[_0x57c566(0x284,_0x3adefd._0x413118,0x2a8,_0x3adefd._0x322b71)]();});function _0x266f13(_0x132039,_0x2ae31a,_0x3f0dfc,_0x42e8cc){return _0x4cf15a(_0x42e8cc,_0x2ae31a-_0xa7b1fa._0x3f255d,_0x3f0dfc-0x1f8,_0x42e8cc-0x29);}_0x4c1b75['stderr']['on']('data',_0x54efec=>{const _0x4c6f1a={_0x4c103c:0x1ca,_0xb9b549:0xdb};function _0x16834b(_0x5b26dd,_0x5bbb9d,_0x194235,_0xb92d8b){return _0x12dc94(_0x5bbb9d- -_0x4c6f1a._0x4c103c,_0x5bbb9d-0xf5,_0x5b26dd,_0xb92d8b-_0x4c6f1a._0xb9b549);}_0x54841d+=_0x54efec[_0x16834b(0x27,_0x187046._0x3bc149,-0x18,-_0x187046._0x4d35bc)]();}),_0x4c1b75[_0x12dc94(0x19b,_0x309a1c._0x5cf0de,0x189,0x186)]['on'](_0x12dc94(0x1b2,0x1b6,0x1ad,_0x309a1c._0x2f7481),_0x3b9e9b=>{const _0xf4757={_0x4792e8:0x1b1};function _0x17802b(_0x4b15b8,_0x103f3a,_0xe1d1c1,_0x13ce3b){return _0x12dc94(_0x13ce3b- -_0x23a070._0x3c129e,_0x103f3a-_0x23a070._0x2edb57,_0x4b15b8,_0x13ce3b-_0x23a070._0x4bdf79);}function _0x313ee3(_0x10b20e,_0xa99778,_0x117dcd,_0xfe87e6){return _0x12dc94(_0x117dcd-_0xf4757._0x4792e8,_0xa99778-0xf3,_0xfe87e6,_0xfe87e6-0x120);}if(_0x3b9e9b[_0x17802b(-_0x3256a6._0x577683,-0x1bb,-_0x3256a6._0x451fe0,-_0x3256a6._0x1cfbc7)]!==_0x313ee3(0x36b,_0x3256a6._0x4e6da4,0x37f,0x36e))throw _0x3b9e9b;}),_0x4c1b75[_0x266f13(0x1eb,0x20d,_0x309a1c._0x585c0e,_0x309a1c._0x525d34)][_0x12dc94(_0x309a1c._0x4ee479,_0x309a1c._0x4339d7,_0x309a1c._0x3abdf1,_0x309a1c._0xef00c5)](JSON['stringify'](_0x4273d7)),_0x4c1b75[_0x266f13(0x21f,0x227,_0x309a1c._0x591a31,_0x309a1c._0x3748bd)]['end']();const _0x5e713c=setTimeout(()=>{const _0x375b3c={_0x1e976a:0x221,_0xaa9580:0xaa},_0x2d1762={_0x42ba68:0x9a,_0x36fb3b:0xf0,_0x4e6b2a:0x3af};_0x4c1b75[_0x402409(-_0x357733._0x2a9482,-_0x357733._0x4ab62e,-0x179,-_0x357733._0x558632)](_0x2f750f(0x3d7,0x3b9,0x3a0,_0x357733._0x3fb527));function _0x402409(_0x43111b,_0x323adb,_0x16517a,_0xfd9528){return _0x266f13(_0x43111b-_0x2d1762._0x42ba68,_0x323adb-_0x2d1762._0x36fb3b,_0x43111b- -_0x2d1762._0x4e6b2a,_0x16517a);}function _0x2f750f(_0x3a750b,_0x4a2278,_0x1dec28,_0x338444){return _0x12dc94(_0x338444-_0x375b3c._0x1e976a,_0x4a2278-_0x375b3c._0xaa9580,_0x3a750b,_0x338444-0x12d);}_0x178ec1({'status':_0x2f750f(0x3d3,_0x357733._0x2e4abc,_0x357733._0x183ddf,0x3d3),'error':_0x402409(-_0x357733._0x58f825,-_0x357733._0x2b5c31,-_0x357733._0x275ec6,-_0x357733._0x2dbeea)+_0x46bde4+'s','duration_ms':Date[_0x402409(-0x19e,-_0x357733._0x275ec6,-0x1b4,-_0x357733._0x4e696f)]()-_0x30bcf5});},_0x46bde4*0x3e8);_0x4c1b75['on'](_0x12dc94(0x1d7,_0x309a1c._0x20b033,_0x309a1c._0x392691,_0x309a1c._0x40ed9d),_0x88ef16=>{const _0x409012={_0x29f491:0x1d4};clearTimeout(_0x5e713c);function _0x462bc1(_0x16a49f,_0xc1d4a9,_0x423dfd,_0x1a5660){return _0x12dc94(_0x16a49f-0x29,_0xc1d4a9-_0x14eb13._0x424e78,_0x423dfd,_0x1a5660-_0x14eb13._0x18ab0e);}const _0x403149=Date[_0x4c459b(0x2b2,0x28a,0x293,0x28d)]()-_0x30bcf5;if(_0x88ef16===0x2){_0x178ec1({'status':_0x4c459b(0x2ae,0x2cf,_0x2d2cf3._0x14c985,0x2bd),'output':{'decision':_0x4c459b(_0x2d2cf3._0x1bf2e6,0x2a0,_0x2d2cf3._0x14c985,0x29f),'reason':_0x54841d[_0x4c459b(_0x2d2cf3._0xae8677,0x2b3,0x2cd,0x2ba)]()||_0x462bc1(_0x2d2cf3._0x5798e9,_0x2d2cf3._0x255a91,0x1e9,_0x2d2cf3._0x2c1726)},'duration_ms':_0x403149});return;}if(_0x88ef16!==0x0){_0x178ec1({'status':_0x462bc1(_0x2d2cf3._0x1a69f5,0x1cf,_0x2d2cf3._0x6d164c,0x1f8),'error':'Hook\x20exited\x20with\x20code\x20'+_0x88ef16+(_0x54841d[_0x4c459b(_0x2d2cf3._0x108450,_0x2d2cf3._0x431dad,0x2cd,0x2e7)]()?':\x20'+_0x54841d['trim']():''),'duration_ms':_0x403149});return;}const _0x15431a=_0x5cf8f6[_0x4c459b(_0x2d2cf3._0x10d603,_0x2d2cf3._0x282f05,0x2cd,0x2cb)]();function _0x4c459b(_0x223c36,_0x5141fc,_0x318b5e,_0x1ca343){return _0x12dc94(_0x318b5e-0xf0,_0x5141fc-0x14f,_0x5141fc,_0x1ca343-_0x409012._0x29f491);}if(_0x15431a['length']===0x0){_0x178ec1({'status':_0x462bc1(_0x2d2cf3._0x6d164c,_0x2d2cf3._0x1efcdf,_0x2d2cf3._0x378e26,0x1cd),'duration_ms':_0x403149});return;}try{const _0xd63c4=JSON[_0x4c459b(0x2a7,0x2cc,0x2c3,0x2ac)](_0x15431a);_0x178ec1({'status':_0x462bc1(_0x2d2cf3._0x6fc4b1,_0x2d2cf3._0x4db78d,0x1d8,_0x2d2cf3._0x280da5),'output':_0xd63c4,'duration_ms':_0x403149});}catch{_0x178ec1({'status':_0x4c459b(_0x2d2cf3._0x1b9d62,0x2b3,0x2a1,0x2b2),'duration_ms':_0x403149});}}),_0x4c1b75['on'](_0x266f13(0x23b,0x23c,_0x309a1c._0x3a11a5,0x23f),_0x2faf91=>{clearTimeout(_0x5e713c);function _0x30324c(_0x54514e,_0x44eb23,_0x4a4e8b,_0x11e430){return _0x266f13(_0x54514e-0x1ab,_0x44eb23-0x6d,_0x44eb23- -_0x17cd95._0x20f74c,_0x54514e);}_0x178ec1({'status':_0x30324c(-_0x27bfee._0x2331dc,-0xe1,-_0x27bfee._0x3a2f09,-0xe7),'error':_0x2faf91['message'],'duration_ms':Date['now']()-_0x30bcf5});});});}function createHookExtensions(_0xe49da8,_0x4da69b,_0x539246={}){const _0x4c2279={_0x4f3a12:0x383,_0x286c8c:0x36f,_0x53ecee:0x368,_0x56c279:0x37c,_0x41335c:0x36f,_0x2d2f21:0x376,_0x36e0f1:0x365,_0x430767:0x30b,_0x21ccc5:0x32b,_0x5b3e0f:0x342,_0x280514:0x31b,_0x2b0a12:0x33a,_0x369d5d:0x384,_0x515779:0x3a4,_0x31a542:0x36f,_0x40df97:0x333,_0x36dac9:0x30e,_0x217c24:0x35c,_0x12812c:0x363,_0x37e195:0x373,_0x4e0228:0x353,_0x1d15b6:0x355,_0x7ddfa3:0x34d,_0x20e564:0x335,_0x48caf3:0x33e},_0x5eb1c4={_0x5b7747:0xdc,_0x528863:0x10e,_0x33704e:0xd5,_0x35368a:0xe0,_0x1c3220:0x3ee,_0x2e9d79:0x3f0},_0x492c14={_0x1d50c6:0xfd,_0x42dd1c:0xe3,_0x5218b3:0x3de,_0x53196e:0x3e5,_0x6690df:0x3c2,_0x2e969f:0x3f9,_0x217752:0x40a,_0x22d57c:0x40d,_0x1a4eb5:0x3ea,_0x548ef5:0x410,_0x28d59e:0x401},_0x2b2db2={_0x5181a4:0x90},_0x47cb52={_0x32b36f:0x12f,_0x1e7f72:0xd1},_0x410c2d={_0x1d9357:0x55b,_0x3006bc:0x53f,_0x4fb5da:0x4c,_0xc0ed5a:0x30,_0x2ff057:0x24,_0x341de9:0x25,_0x35f901:0xa,_0x3861d9:0x50e,_0x52ecb5:0x523,_0x21d11f:0x1d,_0x40693d:0x11,_0x326b5e:0x1a,_0x16f78c:0x1f,_0x14df28:0x1b,_0x1581bc:0x518,_0x26f93b:0x551,_0x28be26:0x510,_0x1a3c50:0x547,_0x7bace8:0x557},_0x53fec7={_0x4dd929:0x163},_0x13bd9e={_0x410463:0x141};function _0x3c7323(_0x13fdd7,_0x1e6bb1,_0x4500c6,_0x2f0388){return _0x5c12(_0x2f0388-_0x13bd9e._0x410463,_0x4500c6);}function _0x2aa48a(_0xf60a3a,_0xa07e10,_0x4452ca,_0x2fd3f5){return _0x5c12(_0xf60a3a-_0x53fec7._0x4dd929,_0x4452ca);}const _0x2838ef=[],{sessionId:_0x2be401,projectDir:_0x17fdf0}=_0x539246,_0x5d0fb9=_0xcdffa8=>_0xe49da8[_0x3c7323(0x309,0x30d,0x32c,0x328)]?_0xe49da8[_0x3c7323(0x319,0x30e,0x320,0x328)](_0xcdffa8):_0xe49da8[_0x2aa48a(0x365,0x374,0x36c,0x369)](_0xcdffa8)[_0x2aa48a(0x35b,0x339,0x37d,0x349)]>0x0;return _0x5d0fb9(_0x2aa48a(_0x4c2279._0x4f3a12,_0x4c2279._0x286c8c,0x367,0x39e))&&_0x2838ef[_0x2aa48a(0x35c,_0x4c2279._0x53ecee,_0x4c2279._0x56c279,0x347)]({'id':'hook:PostToolUse','stage':_0x2aa48a(_0x4c2279._0x41335c,_0x4c2279._0x2d2f21,0x360,_0x4c2279._0x36e0f1),'kind':_0x3c7323(_0x4c2279._0x430767,0x340,0x338,_0x4c2279._0x21ccc5),'order':0x0,'enabled':!![],'run':async(_0x2465c1,_0x1d7547)=>{const _0x4236a4={_0x3951b7:0x12},_0x408522={_0x5be2a7:0x24,_0xd933a5:0x1fc},_0x4399bc=_0xe49da8[_0xb179b0(_0x410c2d._0x1d9357,0x55a,0x524,_0x410c2d._0x3006bc)](_0x278059(0x31,_0x410c2d._0x4fb5da,0x4f,_0x410c2d._0xc0ed5a),_0x2465c1[_0x278059(-_0x410c2d._0x2ff057,-0x8,-_0x410c2d._0x341de9,-_0x410c2d._0x35f901)]);function _0xb179b0(_0x33acfd,_0x2eb659,_0x33ebc,_0x4af5c6){return _0x3c7323(_0x33acfd-0x91,_0x2eb659-_0x408522._0x5be2a7,_0x33acfd,_0x4af5c6-_0x408522._0xd933a5);}function _0x278059(_0x3afb8e,_0x2e1c8d,_0x364888,_0x34bf6c){return _0x3c7323(_0x3afb8e-0x16,_0x2e1c8d-_0x4236a4._0x3951b7,_0x2e1c8d,_0x34bf6c- -0x331);}for(const _0x44349d of _0x4399bc){const _0x1e26b5={'tool_name':_0x2465c1[_0xb179b0(0x53d,_0x410c2d._0x3861d9,0x50f,_0x410c2d._0x52ecb5)],'tool_input':void 0x0,'tool_output':_0x2465c1['output'],'tool_result_status':_0x2465c1[_0x278059(-0x14,_0x410c2d._0x21d11f,-_0x410c2d._0x40693d,_0x410c2d._0x35f901)],'session_id':_0x2be401??_0x1d7547[_0x278059(0x1e,_0x410c2d._0x326b5e,_0x410c2d._0x16f78c,_0x410c2d._0x14df28)]['sessionId']};await _0x4da69b(_0x44349d[_0xb179b0(_0x410c2d._0x1581bc,_0x410c2d._0x26f93b,_0x410c2d._0x28be26,0x531)],_0x1e26b5,_0x44349d[_0xb179b0(0x539,_0x410c2d._0x1a3c50,0x551,_0x410c2d._0x7bace8)],_0x17fdf0);}}}),_0x5d0fb9(_0x3c7323(_0x4c2279._0x5b3e0f,0x330,0x318,0x32c))&&_0x2838ef[_0x3c7323(0x33a,_0x4c2279._0x280514,0x34d,_0x4c2279._0x2b0a12)]({'id':_0x2aa48a(_0x4c2279._0x369d5d,0x378,_0x4c2279._0x515779,0x396),'stage':_0x2aa48a(0x379,0x37a,_0x4c2279._0x31a542,0x391),'kind':_0x3c7323(0x340,_0x4c2279._0x40df97,_0x4c2279._0x36dac9,0x32b),'order':0x0,'enabled':!![],'run':async(_0x3f1f6b,_0x509cbd)=>{function _0x275096(_0x41c94d,_0x4df258,_0x12ef9e,_0x3ac673){return _0x2aa48a(_0x12ef9e- -0x282,_0x4df258-_0x47cb52._0x32b36f,_0x4df258,_0x3ac673-_0x47cb52._0x1e7f72);}function _0x371b5f(_0x4a9816,_0x426867,_0x16173d,_0x5100a1){return _0x2aa48a(_0x4a9816-_0x2b2db2._0x5181a4,_0x426867-0xac,_0x16173d,_0x5100a1-0x19);}const _0x2f2dde=_0xe49da8[_0x275096(_0x492c14._0x1d50c6,0xd6,_0x492c14._0x42dd1c,0xe5)](_0x371b5f(_0x492c14._0x5218b3,_0x492c14._0x53196e,_0x492c14._0x6690df,_0x492c14._0x2e969f));for(const _0x30a423 of _0x2f2dde){const _0x4fc350={'stop_reason':_0x371b5f(_0x492c14._0x217752,_0x492c14._0x22d57c,0x3fe,_0x492c14._0x1a4eb5),'session_id':_0x2be401??_0x509cbd['state'][_0x371b5f(_0x492c14._0x548ef5,_0x492c14._0x28d59e,0x416,0x405)]};await _0x4da69b(_0x30a423[_0x371b5f(0x3e7,0x3c8,0x3f4,0x3dd)],_0x4fc350,_0x30a423['timeout'],_0x17fdf0);}}}),_0x5d0fb9(_0x2aa48a(0x35e,0x33c,0x33c,0x380))&&_0x2838ef[_0x2aa48a(_0x4c2279._0x217c24,_0x4c2279._0x12812c,0x343,_0x4c2279._0x37e195)]({'id':_0x3c7323(0x345,_0x4c2279._0x4e0228,0x358,_0x4c2279._0x1d15b6),'stage':_0x3c7323(_0x4c2279._0x4e0228,0x339,0x35f,0x34b),'kind':_0x2aa48a(_0x4c2279._0x7ddfa3,0x341,_0x4c2279._0x20e564,_0x4c2279._0x48caf3),'order':0x0,'enabled':!![],'run':async(_0x2aa3e3,_0x4007fb)=>{const _0x40f2c5={_0x310a0d:0x1d1};function _0x410d4a(_0x5da64c,_0x41b034,_0x161d91,_0x35b48e){return _0x2aa48a(_0x41b034-0x99,_0x41b034-0x192,_0x5da64c,_0x35b48e-_0x40f2c5._0x310a0d);}const _0x54fcf8=_0xe49da8[_0x3c0844(-_0x5eb1c4._0x5b7747,-0xfb,-0xfe,-_0x5eb1c4._0x528863)]('Notification');function _0x3c0844(_0x1abbd2,_0x11c097,_0x4d6e7d,_0x31945e){return _0x2aa48a(_0x11c097- -0x460,_0x11c097-0x104,_0x1abbd2,_0x31945e-0x81);}for(const _0x1bcfe7 of _0x54fcf8){const _0x5eb3b6={'message':'Agent\x20finished\x20responding','session_id':_0x2be401??_0x2aa3e3[_0x3c0844(-_0x5eb1c4._0x33704e,-_0x5eb1c4._0x35368a,-0xf2,-0xce)]};await _0x4da69b(_0x1bcfe7[_0x410d4a(_0x5eb1c4._0x1c3220,_0x5eb1c4._0x2e9d79,0x402,0x3d5)],_0x5eb3b6,_0x1bcfe7['timeout'],_0x17fdf0);}}}),_0x2838ef;}function createHookOnToolCallMiddleware(_0x231fbe,_0x1aad32,_0x13a7d5,_0xfb9e97={}){const _0x19c689={_0x49ecb6:0xe5,_0x35afa7:0xd5,_0x4ca89c:0xbb,_0x3171e8:0xc3,_0x1850fb:0xc2,_0x2079fb:0xef,_0x3527d9:0xda,_0x51f173:0x217,_0x48de49:0x1fa,_0x44cc67:0xeb,_0x52246b:0xc6,_0x2bfb13:0xb1,_0x378aa2:0xb0,_0x1641ea:0xf3,_0x1c4cde:0xfe,_0x12dd51:0x1bc,_0x4c2f15:0xd0,_0x5cd200:0xc8,_0x1b4dd1:0xe3,_0x5a9afe:0xf1,_0x5e02f7:0x1ce,_0x212f98:0x1c8,_0x25e9be:0x1d3,_0x4d919e:0x1cc,_0x2e8e5f:0xd9,_0xa069ae:0xc0,_0x4eada3:0xdd,_0x45a8ef:0x1dc,_0x422e52:0x1e3,_0x51a693:0x1b7,_0x1683f4:0x1da,_0xf8eb84:0x1df,_0x544bda:0x1e6,_0x2d76b9:0x1fc,_0x1dee1b:0x1c6,_0x268145:0x1c9,_0xe14d25:0x1b6,_0x3fa0d1:0x1e1,_0x5db4d3:0x1d7,_0x4e2ccd:0xf0,_0x20eec2:0x1b3,_0x47bee0:0x1b9,_0x4d8bbb:0xe8},{sessionId:_0x3040a2,projectDir:_0x557c56}=_0xfb9e97;return async(_0x5a5399,_0x5f24d0)=>{const _0x31bc4a=_0x231fbe[_0x187aa1(-0xd3,-_0x19c689._0x49ecb6,-0xd7,-0xf5)](_0x187aa1(-_0x19c689._0x35afa7,-_0x19c689._0x4ca89c,-0xc9,-_0x19c689._0x3171e8),_0x5a5399[_0x187aa1(-0xd4,-0xbd,-_0x19c689._0x1850fb,-0xb9)]);function _0x187aa1(_0x4a4da7,_0x3b1380,_0x3fa72e,_0x4a530e){return _0x5c12(_0x4a4da7- -0x2d5,_0x3fa72e);}for(const _0x240c5b of _0x31bc4a){const _0x67f88d={'tool_name':_0x5a5399[_0x187aa1(-0xd4,-_0x19c689._0x2079fb,-0xf2,-_0x19c689._0x3527d9)],'tool_input':_0x5a5399[_0x40c3a8(-0x1f2,-_0x19c689._0x51f173,-0x202,-_0x19c689._0x48de49)],'session_id':_0x3040a2},_0x5d2bd4=await _0x1aad32(_0x240c5b[_0x187aa1(-0xe1,-_0x19c689._0x44cc67,-_0x19c689._0x52246b,-0xe6)],_0x67f88d,_0x240c5b[_0x187aa1(-_0x19c689._0x4ca89c,-0xa4,-_0x19c689._0x2bfb13,-_0x19c689._0x378aa2)],_0x557c56),_0x2af446=_0x5d2bd4[_0x187aa1(-_0x19c689._0x1641ea,-_0x19c689._0x1c4cde,-0xf1,-0x10c)]?.[_0x40c3a8(-_0x19c689._0x12dd51,-0x1da,-0x1e1,-0x1cc)]?.['permissionDecision'];if(_0x2af446===_0x187aa1(-_0x19c689._0x4c2f15,-0xb7,-_0x19c689._0x3171e8,-0xc2))return{'action':_0x187aa1(-0xd1,-0xaf,-0xdc,-_0x19c689._0x5cd200)};if(_0x2af446===_0x187aa1(-_0x19c689._0x1b4dd1,-0xe1,-0xe5,-_0x19c689._0x5a9afe))return{'action':'reject','reason':_0x5d2bd4['output']?.[_0x40c3a8(-_0x19c689._0x5e02f7,-_0x19c689._0x212f98,-_0x19c689._0x25e9be,-_0x19c689._0x4d919e)]?.[_0x187aa1(-0xc6,-_0x19c689._0x2e8e5f,-_0x19c689._0xa069ae,-_0x19c689._0x4eada3)]||_0x40c3a8(-0x1ea,-0x1fd,-0x1e5,-0x1ef)+_0x5a5399['name']};if(_0x5d2bd4[_0x40c3a8(-0x1c4,-_0x19c689._0x45a8ef,-0x1cc,-_0x19c689._0x422e52)]===_0x40c3a8(-_0x19c689._0x51a693,-_0x19c689._0x1683f4,-_0x19c689._0xf8eb84,-_0x19c689._0x212f98)||_0x5d2bd4[_0x40c3a8(-_0x19c689._0x544bda,-_0x19c689._0x2d76b9,-0x201,-0x1fb)]?.['decision']===_0x40c3a8(-_0x19c689._0x1dee1b,-_0x19c689._0x268145,-_0x19c689._0xe14d25,-0x1c8))return{'action':_0x40c3a8(-_0x19c689._0x3fa0d1,-0x1b7,-0x1e2,-_0x19c689._0x5db4d3),'reason':_0x5d2bd4[_0x187aa1(-_0x19c689._0x1641ea,-0x111,-0x10a,-_0x19c689._0x4e2ccd)]?.[_0x40c3a8(-_0x19c689._0x20eec2,-0x1ad,-_0x19c689._0x47bee0,-0x1be)]||_0x187aa1(-_0x19c689._0x4d8bbb,-0xfa,-0xfb,-0x109)+_0x5a5399[_0x40c3a8(-0x1de,-0x1ef,-0x1f7,-0x1dc)]};}function _0x40c3a8(_0x4f0aaf,_0x4527b5,_0x51879b,_0x1cfa9a){return _0x5c12(_0x1cfa9a- -0x3dd,_0x4f0aaf);}return _0x13a7d5(_0x5a5399,_0x5f24d0);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x49afcc){const _0x1f1f37={_0x4380ba:0x16d,_0x439a1f:0x160,_0x572c34:0x171,_0x141c7f:0x153,_0x4cb6a6:0x189,_0xe27d7a:0x16c,_0x227e0e:0x161,_0x150838:0x176,_0x57cc2c:0x152,_0x7c7ae8:0x177,_0x300ba6:0x167,_0x442212:0x15c,_0x177f7d:0x16a,_0x4cf5c4:0x132,_0x392000:0x17b,_0x2274d4:0x16f,_0x49b8d2:0x186,_0x5c7a19:0x17d,_0x12fc99:0x14b,_0x27dae7:0x155,_0x286000:0x16d,_0x2665cd:0x186,_0x65103c:0x167},_0x5bfebc={_0x30ed7a:0x35a},_0x4d0f8b={_0x204267:0x366},_0x63dd08={_0x5914c2:0x4d2,_0x5c7fdd:0x4b8,_0x17e6ab:0x4e2},_0x1b3ab0={_0x32c62c:0x2cf};return{'hasHooks'(_0x4d4d51){function _0x386dd2(_0x30ab82,_0x54de2b,_0x523d28,_0x571c2f){return _0x5c12(_0x571c2f-_0x1b3ab0._0x32c62c,_0x523d28);}return(_0x49afcc[_0x4d4d51]?.[_0x386dd2(_0x63dd08._0x5914c2,_0x63dd08._0x5c7fdd,_0x63dd08._0x17e6ab,0x4c7)]??0x0)>0x0;},'getHooks'(_0x4942f9,_0x3d97a1){function _0x2d1678(_0x30eba7,_0x47f269,_0x34bcf7,_0x20b503){return _0x5c12(_0x20b503- -_0x4d0f8b._0x204267,_0x47f269);}const _0x4943e4=_0x49afcc[_0x4942f9];function _0x234178(_0x4039aa,_0x350e57,_0x118943,_0x1c712f){return _0x5c12(_0x350e57- -_0x5bfebc._0x30ed7a,_0x118943);}if(!_0x4943e4)return[];const _0x3b66e9=[];for(const _0x11d35d of _0x4943e4){if(!_0x11d35d[_0x234178(-0x18c,-0x171,-_0x1f1f37._0x4380ba,-_0x1f1f37._0x439a1f)]||_0x11d35d[_0x234178(-0x18c,-_0x1f1f37._0x572c34,-_0x1f1f37._0x141c7f,-_0x1f1f37._0x4cb6a6)]==='*'){_0x3b66e9[_0x234178(-_0x1f1f37._0xe27d7a,-_0x1f1f37._0x227e0e,-_0x1f1f37._0x150838,-_0x1f1f37._0x57cc2c)](..._0x11d35d[_0x2d1678(-0x167,-0x163,-_0x1f1f37._0x7c7ae8,-_0x1f1f37._0x300ba6)][_0x2d1678(-0x161,-_0x1f1f37._0x442212,-0x186,-_0x1f1f37._0x177f7d)](_0x45e737=>({'command':_0x45e737[_0x2d1678(-0x18b,-0x154,-0x176,-0x172)],'timeout':_0x45e737[_0x2d1678(-0x134,-0x16d,-0x143,-0x14c)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x3d97a1===void 0x0)continue;const _0x51f25c=new RegExp(_0x234178(-_0x1f1f37._0x4cf5c4,-0x14a,-0x14d,-0x133)+_0x11d35d[_0x2d1678(-_0x1f1f37._0x392000,-_0x1f1f37._0x2274d4,-_0x1f1f37._0x49b8d2,-_0x1f1f37._0x5c7a19)]+')$');_0x51f25c[_0x2d1678(-_0x1f1f37._0x12fc99,-0x12d,-_0x1f1f37._0x27dae7,-0x148)](_0x3d97a1)&&_0x3b66e9[_0x2d1678(-0x162,-0x16d,-0x185,-_0x1f1f37._0x286000)](..._0x11d35d[_0x2d1678(-_0x1f1f37._0x2665cd,-_0x1f1f37._0x2274d4,-0x162,-_0x1f1f37._0x65103c)]['map'](_0x3f486c=>({'command':_0x3f486c[_0x2d1678(-0x171,-0x191,-0x164,-0x172)],'timeout':_0x3f486c['timeout']??DEFAULT_TIMEOUT_S2})));}return _0x3b66e9;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};
1
+ function _0x5a7b(_0x13869d,_0x6402df){_0x13869d=_0x13869d-0x8b;const _0x30619c=_0x3061();let _0x5a7b9f=_0x30619c[_0x13869d];if(_0x5a7b['OTYmUL']===undefined){var _0x5a6ce9=function(_0x66afe5){const _0x8415d9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c922a='',_0x4c3a47='';for(let _0x31e350=0x0,_0x406df6,_0x585b8e,_0x2aa93e=0x0;_0x585b8e=_0x66afe5['charAt'](_0x2aa93e++);~_0x585b8e&&(_0x406df6=_0x31e350%0x4?_0x406df6*0x40+_0x585b8e:_0x585b8e,_0x31e350++%0x4)?_0x1c922a+=String['fromCharCode'](0xff&_0x406df6>>(-0x2*_0x31e350&0x6)):0x0){_0x585b8e=_0x8415d9['indexOf'](_0x585b8e);}for(let _0x4f3c8d=0x0,_0x3ad243=_0x1c922a['length'];_0x4f3c8d<_0x3ad243;_0x4f3c8d++){_0x4c3a47+='%'+('00'+_0x1c922a['charCodeAt'](_0x4f3c8d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c3a47);};_0x5a7b['HoKdMv']=_0x5a6ce9,_0x5a7b['gRQKKr']={},_0x5a7b['OTYmUL']=!![];}const _0x30bc6d=_0x30619c[0x0],_0x289240=_0x13869d+_0x30bc6d,_0x38d516=_0x5a7b['gRQKKr'][_0x289240];return!_0x38d516?(_0x5a7b9f=_0x5a7b['HoKdMv'](_0x5a7b9f),_0x5a7b['gRQKKr'][_0x289240]=_0x5a7b9f):_0x5a7b9f=_0x38d516,_0x5a7b9f;}(function(_0x28fa14,_0x33de40){const _0x39214c={_0x1b505d:0x1b3,_0x24bc96:0x1ab,_0x27f5e2:0x1a0,_0x305366:0x1b5,_0x204ba4:0x1a3,_0x2b9fb4:0x18a,_0x20cc16:0x1b8,_0x1bda89:0x145,_0x44b2c4:0x15e,_0x167b40:0x14a,_0x3cdf13:0x1a6,_0x9101e8:0x1b6,_0x11ffcd:0x155,_0xa72f0:0x123,_0x595803:0x16f,_0x5092c5:0x14a,_0x4bf2a9:0x121},_0x5f06e4={_0x20c0b6:0x108},_0x5395c2={_0x467587:0x92};function _0x7c8ef(_0x11c544,_0x5e1c30,_0x101e6c,_0x184048){return _0x5a7b(_0x101e6c-_0x5395c2._0x467587,_0x11c544);}function _0x5e5f3(_0x4dff7b,_0x2ea2cd,_0x12f7b2,_0x51f7d6){return _0x5a7b(_0x12f7b2-_0x5f06e4._0x20c0b6,_0x51f7d6);}const _0x348dc6=_0x28fa14();while(!![]){try{const _0x2c3ed0=-parseInt(_0x5e5f3(0x1aa,0x1b4,_0x39214c._0x1b505d,_0x39214c._0x24bc96))/0x1*(parseInt(_0x5e5f3(_0x39214c._0x27f5e2,_0x39214c._0x305366,_0x39214c._0x204ba4,_0x39214c._0x2b9fb4))/0x2)+-parseInt(_0x5e5f3(0x1d6,0x1d7,_0x39214c._0x20cc16,0x19c))/0x3+-parseInt(_0x7c8ef(_0x39214c._0x1bda89,0x162,_0x39214c._0x44b2c4,_0x39214c._0x167b40))/0x4*(parseInt(_0x5e5f3(0x196,0x1a0,_0x39214c._0x3cdf13,_0x39214c._0x9101e8))/0x5)+-parseInt(_0x7c8ef(0x162,0x151,0x145,_0x39214c._0x11ffcd))/0x6+-parseInt(_0x7c8ef(0x123,0x143,_0x39214c._0xa72f0,0x12f))/0x7+-parseInt(_0x7c8ef(_0x39214c._0x595803,_0x39214c._0x5092c5,0x153,0x134))/0x8*(parseInt(_0x7c8ef(_0x39214c._0x4bf2a9,0x11c,0x126,0x135))/0x9)+parseInt(_0x5e5f3(0x1af,0x18e,_0x39214c._0x24bc96,0x18e))/0xa;if(_0x2c3ed0===_0x33de40)break;else _0x348dc6['push'](_0x348dc6['shift']());}catch(_0x5501e1){_0x348dc6['push'](_0x348dc6['shift']());}}}(_0x3061,0x6fbc3));import{spawn}from'child_process';function _0x3061(){const _0x136c44=['mZC2mdy1oxrgveHjyG','B3v0Chv0','zw5Kx3r1CM4','uhjLvg9VBfvZzq','ug9ZDfrVB2XvC2u','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','CgLWzq','mtiWnJqYnK1ezvrRBW','BMfTzq','BwvZC2fNzq','mZiZnxr4Be9bsq','z2v0sg9VA3m','Bwf0y2HLCG','Ag9VA1nWzwnPzMLJt3v0Chv0','zw5K','ndiYmdG4mdbRwMvwshu','DgLTzw91Da','C3rHDhvZ','u0Lhs0Lmta','zxjYB3i','B2jZzxj2zxi','Ag9VAZPtDg9W','u3rVCa','mvbKyKzmua','tM90AwzPy2f0Aw9U','BwfW','ChvZAa','C3rHDgu','mte4otG1ng5is1bVEG','xIG/oG','C3rKAw4','mtqZnZmZnLjpthPTyq','C3rKzxjY','y2XVC2u','ywz0zxjuDxjUq29TCgXLDgu','CMvQzwn0','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','C3rKB3v0','DhjPBq','CgvYBwLZC2LVBKrLy2LZAw9U','BM93','y29Kzq','BgvUz3rO','sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','yMXVy2S','mtzhD3jdBvq','Dg9tDhjPBMC','DgvZDa','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','C2vZC2LVBKLK','y29TBwfUza','Aw5WDxq','zgvUEq','rvbjueu','zw52','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','ntuWofjPD3HSCq','y3DK','AgfZsg9VA3m','zgvJAxnPB24','zgf0yq','CNvU','Ag9VA3m','Dg9VBe5HBwu','ntu4mdqZnxr3z3vhrq','CgfZCW','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia'];_0x3061=function(){return _0x136c44;};return _0x3061();}var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x1c922a,_0x4c3a47,_0x31e350=DEFAULT_TIMEOUT_S,_0x406df6){const _0x4d86f3={_0x224752:0x3a1,_0x1e1b5c:0x38a,_0xfef642:0x12a,_0x5e25fb:0x133,_0x19cec7:0x13a,_0x273859:0x3d4,_0x297873:0x3d4,_0x3bc615:0xfd,_0x5ac80d:0x39f,_0x3149da:0x3c4,_0x31df81:0x3bd,_0x45e1db:0x394,_0x2ed41b:0x3ab,_0x62d3f1:0x39a,_0x4aee9c:0x3d9,_0xe2dd11:0x3ae,_0xee717e:0x3ab,_0x1248bb:0x3bd,_0x49e795:0x3aa,_0xda5403:0x3a9,_0x8b068a:0x107,_0x350316:0x125,_0x10406b:0x38e},_0x45184b={_0x597973:0x27c,_0x2f42d0:0x284,_0x230a20:0x28a,_0x405c3d:0x26d,_0x3da895:0x299,_0x575e1a:0x27d},_0x250dae={_0x5edfea:0x31d,_0x1d0d05:0x31d,_0xc7904a:0x328,_0x4c1e06:0x319,_0x577ca9:0x316,_0x3a7536:0x357,_0x2e885e:0x34e},_0xf86523={_0x26222f:0x21c,_0x1eed07:0x201},_0x3af9c6={_0x44a273:0x70},_0x585b8e=Date['now']();return new Promise(_0x2aa93e=>{const _0x221ad9={_0x51cc99:0x1f,_0x222259:0x3ac},_0x4317fa={_0x5e12c1:0xc8,_0x27533a:0x101,_0x1c6fbe:0x101,_0x3466c6:0x117,_0x9cd442:0x118,_0x553e8b:0xf5,_0x193464:0x10a,_0x54663b:0xae,_0x2f672f:0xd8,_0x1ad585:0xf9,_0x4ac746:0xf7,_0x1fb110:0xa9,_0x4ccbd6:0xc9,_0xdfbf94:0xb5,_0x10c514:0xbd,_0x2874b8:0x111,_0x1e67c8:0x135,_0x5d3435:0x11f,_0x57a86a:0x128,_0x2818ba:0x132},_0x2f35fc={_0x4951ad:0x151,_0x2a95b1:0x135},_0x3a0ac6={_0x280a54:0xe8,_0x925472:0xca,_0x14cdbb:0xb2,_0x106285:0xcf},_0x5ead96={_0x1b67ce:0x1,_0x2f2b3e:0xae},_0x311289={_0x263217:0x3a2,_0x3d5db6:0x387,_0x56a00b:0x3ab},_0x411260={_0x275b75:0x1c8};function _0x255eae(_0x2ed585,_0x422eae,_0x73d2d1,_0x5aa2f2){return _0x5a7b(_0x5aa2f2-_0x3af9c6._0x44a273,_0x422eae);}const _0x4f3c8d=spawn('sh',['-c',_0x1c922a],{'stdio':['pipe',_0x2ba8fc(_0x4d86f3._0x224752,_0x4d86f3._0x224752,_0x4d86f3._0x1e1b5c,0x3ab),_0x2ba8fc(0x3a1,0x395,0x37f,0x394)],'env':{...process[_0x255eae(_0x4d86f3._0xfef642,_0x4d86f3._0x5e25fb,0x155,_0x4d86f3._0x19cec7)],'CLAUDE_PROJECT_DIR':_0x406df6??process[_0x2ba8fc(_0x4d86f3._0x273859,0x3cf,0x3be,_0x4d86f3._0x297873)]()}});let _0x3ad243='',_0x3b886e='';_0x4f3c8d[_0x255eae(0x128,0x12d,0x13d,0x129)]['on'](_0x255eae(0x118,0xe5,0xeb,_0x4d86f3._0x3bc615),_0x32986b=>{function _0x49a23c(_0x3abef9,_0x49834b,_0x5b0dba,_0x557073){return _0x2ba8fc(_0x5b0dba- -_0x411260._0x275b75,_0x49834b-0x1b1,_0x49834b,_0x557073-0x1c7);}_0x3ad243+=_0x32986b[_0x49a23c(_0xf86523._0x26222f,0x1fc,_0xf86523._0x1eed07,0x1ee)]();}),_0x4f3c8d[_0x2ba8fc(0x3bb,_0x4d86f3._0x5ac80d,_0x4d86f3._0x3149da,_0x4d86f3._0x31df81)]['on'](_0x2ba8fc(_0x4d86f3._0x45e1db,0x391,_0x4d86f3._0x2ed41b,0x384),_0x37bcec=>{function _0x1268dc(_0x1a0e58,_0x2d81df,_0x3d8b13,_0x1c9879){return _0x255eae(_0x1a0e58-0xbc,_0x3d8b13,_0x3d8b13-0x1d7,_0x2d81df-0x270);}_0x3b886e+=_0x37bcec[_0x1268dc(0x3ae,_0x311289._0x263217,_0x311289._0x3d5db6,_0x311289._0x56a00b)]();});function _0x2ba8fc(_0x53fbd8,_0x3a55d4,_0x1cb645,_0x49068f){return _0x5a7b(_0x53fbd8-0x307,_0x1cb645);}_0x4f3c8d[_0x2ba8fc(0x3b9,_0x4d86f3._0x62d3f1,_0x4d86f3._0x4aee9c,0x3cd)]['on'](_0x2ba8fc(_0x4d86f3._0xe2dd11,_0x4d86f3._0xee717e,0x3a3,0x39a),_0x1a837b=>{const _0xaef96d={_0x2243c1:0xf1,_0x1a0aff:0x95,_0x2ab26e:0x1f4};function _0x4a5dbc(_0x18b51a,_0x31ccd7,_0x57994c,_0x374338){return _0x2ba8fc(_0x18b51a- -0x4a2,_0x31ccd7-_0x5ead96._0x1b67ce,_0x57994c,_0x374338-_0x5ead96._0x2f2b3e);}function _0x512cc6(_0x2f5a81,_0x155cd1,_0x30ec8b,_0x12ed50){return _0x255eae(_0x2f5a81-_0xaef96d._0x2243c1,_0x30ec8b,_0x30ec8b-_0xaef96d._0x1a0aff,_0x12ed50- -_0xaef96d._0x2ab26e);}if(_0x1a837b[_0x4a5dbc(-0xde,-_0x3a0ac6._0x280a54,-_0x3a0ac6._0x925472,-0xfb)]!==_0x4a5dbc(-0xd2,-0xd6,-_0x3a0ac6._0x14cdbb,-_0x3a0ac6._0x106285))throw _0x1a837b;}),_0x4f3c8d[_0x2ba8fc(0x3b9,_0x4d86f3._0x1248bb,_0x4d86f3._0x49e795,0x3a7)]['write'](JSON['stringify'](_0x4c3a47)),_0x4f3c8d['stdin'][_0x2ba8fc(_0x4d86f3._0xda5403,0x3c4,0x3c0,0x387)]();const _0x262e4d=setTimeout(()=>{function _0x492d06(_0x5b3255,_0x486930,_0x59450d,_0x53137b){return _0x255eae(_0x5b3255-0x15e,_0x5b3255,_0x59450d-0x42,_0x53137b-0x212);}_0x4f3c8d['kill'](_0x492d06(_0x250dae._0x5edfea,0x319,_0x250dae._0x1d0d05,_0x250dae._0xc7904a));function _0x29d2b8(_0xe682d0,_0x43ff7f,_0xd2ee11,_0x179dda){return _0x2ba8fc(_0x179dda- -0x8a,_0x43ff7f-0x1b,_0xd2ee11,_0x179dda-0xa9);}_0x2aa93e({'status':_0x29d2b8(_0x250dae._0x4c1e06,0x30c,_0x250dae._0x577ca9,0x324),'error':_0x492d06(_0x250dae._0x3a7536,0x358,_0x250dae._0x2e885e,0x34d)+_0x31e350+'s','duration_ms':Date['now']()-_0x585b8e});},_0x31e350*0x3e8);_0x4f3c8d['on'](_0x255eae(0x132,_0x4d86f3._0x8b068a,0x10f,_0x4d86f3._0x350316),_0x53b4e6=>{const _0x271344={_0x5a387f:0xed};function _0x561ac7(_0x3a2694,_0x2b44ce,_0x3acc9d,_0x3c1b7e){return _0x255eae(_0x3a2694-_0x271344._0x5a387f,_0x3c1b7e,_0x3acc9d-0x36,_0x2b44ce- -0x61);}clearTimeout(_0x262e4d);const _0x313e43=Date['now']()-_0x585b8e;if(_0x53b4e6===0x2){_0x2aa93e({'status':_0x2fcdad(-0xfe,-0xf2,-0x110,-0xf1),'output':{'decision':'block','reason':_0x3b886e[_0x561ac7(_0x4317fa._0x5e12c1,0xc9,0xba,0xdc)]()||_0x2fcdad(-_0x4317fa._0x27533a,-_0x4317fa._0x1c6fbe,-_0x4317fa._0x3466c6,-_0x4317fa._0x9cd442)},'duration_ms':_0x313e43});return;}if(_0x53b4e6!==0x0){_0x2aa93e({'status':_0x2fcdad(-0x105,-0xfc,-_0x4317fa._0x553e8b,-_0x4317fa._0x193464),'error':_0x561ac7(0xc5,0xce,_0x4317fa._0x54663b,0xb6)+_0x53b4e6+(_0x3b886e['trim']()?':\x20'+_0x3b886e[_0x2fcdad(-_0x4317fa._0x2f672f,-0xf1,-_0x4317fa._0x1ad585,-_0x4317fa._0x4ac746)]():''),'duration_ms':_0x313e43});return;}function _0x2fcdad(_0x3ba2d3,_0x4954c4,_0x561ca2,_0x20c14f){return _0x2ba8fc(_0x20c14f- -0x4b8,_0x4954c4-_0x2f35fc._0x4951ad,_0x561ca2,_0x20c14f-_0x2f35fc._0x2a95b1);}const _0x38c9e9=_0x3ad243[_0x561ac7(_0x4317fa._0x1fb110,_0x4317fa._0x4ccbd6,_0x4317fa._0x1fb110,0xe7)]();if(_0x38c9e9[_0x561ac7(0xd8,0xcd,_0x4317fa._0xdfbf94,_0x4317fa._0x10c514)]===0x0){_0x2aa93e({'status':_0x2fcdad(-_0x4317fa._0x2874b8,-0x106,-_0x4317fa._0x1e67c8,-_0x4317fa._0x5d3435),'duration_ms':_0x313e43});return;}try{const _0x186272=JSON['parse'](_0x38c9e9);_0x2aa93e({'status':'pass','output':_0x186272,'duration_ms':_0x313e43});}catch{_0x2aa93e({'status':_0x2fcdad(-_0x4317fa._0x57a86a,-0x131,-_0x4317fa._0x2818ba,-0x11f),'duration_ms':_0x313e43});}}),_0x4f3c8d['on'](_0x2ba8fc(_0x4d86f3._0xe2dd11,_0x4d86f3._0x10406b,0x38f,_0x4d86f3._0x3149da),_0x3ab4bd=>{const _0x2e05bb={_0x1f70ee:0x60,_0x397e82:0x8c};function _0x505af5(_0x2a485a,_0x40eb0f,_0x3bd468,_0x14d98b){return _0x255eae(_0x2a485a-0x13,_0x14d98b,_0x3bd468-_0x221ad9._0x51cc99,_0x2a485a- -_0x221ad9._0x222259);}function _0x5f7cb8(_0x297128,_0x441d40,_0x5a7cad,_0x449fd3){return _0x255eae(_0x297128-_0x2e05bb._0x1f70ee,_0x449fd3,_0x5a7cad-_0x2e05bb._0x397e82,_0x441d40-0x16d);}clearTimeout(_0x262e4d),_0x2aa93e({'status':_0x5f7cb8(_0x45184b._0x597973,_0x45184b._0x2f42d0,_0x45184b._0x230a20,0x26b),'error':_0x3ab4bd[_0x5f7cb8(0x26d,0x27a,_0x45184b._0x405c3d,0x293)],'duration_ms':Date[_0x5f7cb8(0x2ae,_0x45184b._0x3da895,0x2b3,_0x45184b._0x575e1a)]()-_0x585b8e});});});}function createHookExtensions(_0xcfb1fa,_0x227be8,_0x4dc36d={}){const _0x166aef={_0x3a7d09:0xf3,_0x44468e:0x100,_0x8e712:0xf6,_0x15ae76:0x114,_0x1319a2:0xb4,_0x2b0239:0xac,_0x50f685:0xb1,_0x46d4c0:0xbf,_0x400bc6:0x128,_0xa51c88:0x123,_0x1ba489:0x10c,_0x3c9d0d:0x143,_0x545799:0x130,_0x49b540:0xc4,_0xcbeabe:0xa5,_0xa34f93:0xbb,_0x300e19:0xae,_0x1bfc55:0x12f,_0xb4581:0x12b,_0x49d9fb:0x131},_0x1afff7={_0x2eaea7:0xc},_0x1653f8={_0x51a048:0x17f,_0x5c5ff6:0x43b,_0x12477c:0x440,_0x679811:0x424,_0x1e2122:0x411,_0x4c2c50:0x165,_0x4583e8:0x182,_0x387564:0x177,_0x3e9249:0x413,_0x9e672e:0x403,_0x1af3f6:0x41b},_0x56b648={_0x5c565b:0x1c2,_0x2a6f69:0x48,_0x49dcc8:0x2a7},_0x5f169f={_0x5f34a7:0xe5,_0x5a21fa:0xd6,_0x81d2d:0xf8,_0x3c08a3:0xef,_0xec677a:0x11a,_0x447b27:0x11c,_0x5028ad:0x106,_0x975cc5:0xf3},_0x14a3b9={_0x21bbf3:0x145,_0x5af8d7:0x89,_0x33f102:0x40a},_0x163cee={_0x31c537:0x2e6,_0x189d61:0x2dc,_0xf548e5:0x2b6,_0x35554f:0x2c2,_0x142adc:0x2cb,_0x3c32bf:0x2c4,_0x14c089:0x221,_0x470d47:0x229,_0x3d58c8:0x2c1,_0x2339dd:0x2bb},_0x9c48d7={_0x43d472:0xb5},_0x146bc5={_0x15f883:0x195},_0x24852f=[],{sessionId:_0x1347c4,projectDir:_0x3e8355}=_0x4dc36d,_0x5bfbcc=_0x10a0b2=>_0xcfb1fa[_0x5438cb(0xfa,0x104,0x11c,0x107)]?_0xcfb1fa['hasHooks'](_0x10a0b2):_0xcfb1fa[_0x1b6847(0xab,0x8c,0x9b,0xad)](_0x10a0b2)[_0x1b6847(0xca,0xbf,0xad,0xcc)]>0x0;_0x5bfbcc(_0x5438cb(_0x166aef._0x3a7d09,_0x166aef._0x44468e,_0x166aef._0x8e712,_0x166aef._0x15ae76))&&_0x24852f['push']({'id':'hook:PostToolUse','stage':'afterToolResult','kind':_0x1b6847(_0x166aef._0x1319a2,_0x166aef._0x2b0239,_0x166aef._0x50f685,_0x166aef._0x46d4c0),'order':0x0,'enabled':!![],'run':async(_0x85d112,_0x1b1298)=>{function _0x3dbbd5(_0x4f6e19,_0x242f62,_0x824c51,_0x958448){return _0x1b6847(_0x4f6e19-0x21a,_0x242f62-_0x146bc5._0x15f883,_0x824c51-0x1f3,_0x958448);}const _0x4b87e8=_0xcfb1fa[_0x3dbbd5(0x2c5,_0x163cee._0x31c537,0x2d5,0x2e1)](_0x3dbbd5(0x2be,0x2d5,_0x163cee._0x189d61,0x2c3),_0x85d112[_0x3dbbd5(_0x163cee._0xf548e5,0x2c4,_0x163cee._0x35554f,0x2a5)]);function _0x38bd98(_0x4e044e,_0x1c9e1d,_0x4565b9,_0x6bc3e2){return _0x5438cb(_0x4e044e-0x126,_0x1c9e1d-_0x9c48d7._0x43d472,_0x4e044e,_0x6bc3e2-0xe7);}for(const _0x45244f of _0x4b87e8){const _0x1dc9c8={'tool_name':_0x85d112['toolName'],'tool_input':void 0x0,'tool_output':_0x85d112['output'],'tool_result_status':_0x85d112[_0x3dbbd5(_0x163cee._0x142adc,_0x163cee._0x3c32bf,0x2ea,0x2af)],'session_id':_0x1347c4??_0x1b1298['state']['sessionId']};await _0x227be8(_0x45244f[_0x38bd98(0x23e,0x243,_0x163cee._0x14c089,_0x163cee._0x470d47)],_0x1dc9c8,_0x45244f[_0x3dbbd5(0x2ca,_0x163cee._0x3d58c8,_0x163cee._0xf548e5,_0x163cee._0x2339dd)],_0x3e8355);}}});_0x5bfbcc(_0x5438cb(_0x166aef._0x400bc6,_0x166aef._0xa51c88,_0x166aef._0x1ba489,0x126))&&_0x24852f[_0x5438cb(_0x166aef._0x3c9d0d,0x137,_0x166aef._0x545799,0x12a)]({'id':_0x1b6847(0xb5,0xa1,_0x166aef._0x49b540,_0x166aef._0xcbeabe),'stage':'beforeFinalOutput','kind':_0x1b6847(0xb4,_0x166aef._0xa34f93,0x96,_0x166aef._0x300e19),'order':0x0,'enabled':!![],'run':async(_0x5876cc,_0x5d1e81)=>{const _0x407286={_0x2970a2:0x24,_0x36f2f7:0x109};function _0x89c3fc(_0x25ac46,_0x48f955,_0x5a0e43,_0x573a7d){return _0x1b6847(_0x573a7d-0x34,_0x48f955-_0x407286._0x2970a2,_0x5a0e43-_0x407286._0x36f2f7,_0x25ac46);}function _0x343fb7(_0x20ad2b,_0x10ec8e,_0x459c17,_0x7feb96){return _0x5438cb(_0x20ad2b-_0x14a3b9._0x21bbf3,_0x10ec8e-_0x14a3b9._0x5af8d7,_0x7feb96,_0x10ec8e- -_0x14a3b9._0x33f102);}const _0x4f84eb=_0xcfb1fa['getHooks']('Stop');for(const _0x402107 of _0x4f84eb){const _0x4dd1f2={'stop_reason':_0x89c3fc(_0x5f169f._0x5f34a7,0xe3,0xf3,_0x5f169f._0x5a21fa),'session_id':_0x1347c4??_0x5d1e81[_0x89c3fc(0xdc,0x104,_0x5f169f._0x81d2d,_0x5f169f._0x3c08a3)]['sessionId']};await _0x227be8(_0x402107[_0x89c3fc(_0x5f169f._0xec677a,_0x5f169f._0x447b27,0x100,_0x5f169f._0x5028ad)],_0x4dd1f2,_0x402107[_0x89c3fc(_0x5f169f._0x5a21fa,0xf0,_0x5f169f._0x975cc5,0xe4)],_0x3e8355);}}});function _0x5438cb(_0x567622,_0x138701,_0x332c6c,_0x1e62cb){return _0x5a7b(_0x1e62cb-0x7c,_0x332c6c);}_0x5bfbcc(_0x5438cb(_0x166aef._0x1bfc55,_0x166aef._0xb4581,_0x166aef._0x49d9fb,0x128))&&_0x24852f['push']({'id':'hook:Notification','stage':_0x1b6847(0xc2,0xac,0xd3,0xb7),'kind':'observer','order':0x0,'enabled':!![],'run':async(_0x183ea6,_0x182172)=>{const _0x346692={_0x9d1905:0x353,_0x4fd84e:0x2f,_0xd2ee30:0x158};function _0x21c584(_0x5d2a0f,_0x479512,_0x469bd3,_0x414e3d){return _0x1b6847(_0x479512-_0x346692._0x9d1905,_0x479512-_0x346692._0x4fd84e,_0x469bd3-_0x346692._0xd2ee30,_0x469bd3);}const _0xaec22f=_0xcfb1fa[_0x16bc44(-0x18c,-0x1ab,-0x1a1,-0x199)](_0x16bc44(-_0x1653f8._0x51a048,-0x163,-0x188,-0x17b));function _0x16bc44(_0x5149db,_0x20ca5f,_0x2452d5,_0x14e324){return _0x5438cb(_0x5149db-_0x56b648._0x5c565b,_0x20ca5f-_0x56b648._0x2a6f69,_0x2452d5,_0x5149db- -_0x56b648._0x49dcc8);}for(const _0xd86917 of _0xaec22f){const _0x493e60={'message':_0x21c584(_0x1653f8._0x5c5ff6,0x423,_0x1653f8._0x12477c,_0x1653f8._0x679811),'session_id':_0x1347c4??_0x183ea6[_0x21c584(0x40b,0x424,0x42f,_0x1653f8._0x1e2122)]};await _0x227be8(_0xd86917[_0x16bc44(-_0x1653f8._0x4c2c50,-_0x1653f8._0x4583e8,-_0x1653f8._0x387564,-0x17d)],_0x493e60,_0xd86917[_0x21c584(_0x1653f8._0x3e9249,_0x1653f8._0x9e672e,0x422,_0x1653f8._0x1af3f6)],_0x3e8355);}}});function _0x1b6847(_0x4a1216,_0xce6564,_0x358bfe,_0x43d518){return _0x5a7b(_0x4a1216-_0x1afff7._0x2eaea7,_0x43d518);}return _0x24852f;}function createHookOnToolCallMiddleware(_0x430ade,_0x3bdd7c,_0x5772cb,_0x3634dc={}){const _0x4344eb={_0x343d27:0x451,_0x41b393:0x43b,_0x1db413:0x43a,_0x5b8a0e:0x3e2,_0x1f4c6a:0x3ee,_0x57483d:0x47e,_0x3ba9ff:0x469,_0x45f072:0x479,_0x21d2c:0x422,_0x567965:0x3f2,_0x18af8a:0x439,_0x4f5d5c:0x46a,_0x29c385:0x3c7,_0x49e1c2:0x460,_0xbc2791:0x401,_0x113e3c:0x3b7,_0x344be7:0x3e9,_0x2aa759:0x3bc,_0x352d70:0x45a,_0x5ef1f8:0x47a,_0x2109ed:0x3fd,_0x4a151e:0x3e7,_0x592149:0x3db,_0x2c56cd:0x3e7,_0x4c3394:0x3ea,_0x41c400:0x478,_0x5baad4:0x44e,_0x2fffa3:0x44f,_0x1f64bc:0x3f0,_0x31ecf6:0x3d4,_0x23ca24:0x3db,_0x37666d:0x3d5,_0x58ce8a:0x3e6,_0x459225:0x3d2,_0x43250c:0x3d8,_0x50f6fc:0x3b1,_0xfd3321:0x3c4,_0xabee20:0x46b,_0x2f34ae:0x472,_0x5338d6:0x46c,_0x127adb:0x44b,_0x176d9a:0x447,_0x4734d9:0x3d9,_0x206e6c:0x440},_0x4bb552={_0xefd284:0x3b2},{sessionId:_0x35e166,projectDir:_0x8e1a5d}=_0x3634dc;return async(_0x1067d2,_0x6d11c6)=>{const _0x1080c9=_0x430ade[_0x242fe9(0x471,0x447,0x464,_0x4344eb._0x343d27)](_0x242fe9(0x451,_0x4344eb._0x41b393,_0x4344eb._0x1db413,0x449),_0x1067d2['name']);function _0x432d77(_0x57675b,_0x393001,_0x5307d1,_0x15b082){return _0x5a7b(_0x57675b-0x346,_0x5307d1);}for(const _0x5ef346 of _0x1080c9){const _0x50a984={'tool_name':_0x1067d2[_0x432d77(_0x4344eb._0x5b8a0e,0x3e0,0x3e6,_0x4344eb._0x1f4c6a)],'tool_input':_0x1067d2[_0x242fe9(_0x4344eb._0x57483d,0x487,_0x4344eb._0x3ba9ff,_0x4344eb._0x45f072)],'session_id':_0x35e166},_0x5a277f=await _0x3bdd7c(_0x5ef346[_0x432d77(0x40c,_0x4344eb._0x21d2c,_0x4344eb._0x567965,0x41d)],_0x50a984,_0x5ef346[_0x242fe9(_0x4344eb._0x18af8a,_0x4344eb._0x4f5d5c,0x473,0x456)],_0x8e1a5d),_0x5339bb=_0x5a277f[_0x432d77(0x3db,0x3dc,0x3d1,_0x4344eb._0x29c385)]?.[_0x242fe9(0x44e,0x46f,_0x4344eb._0x49e1c2,0x453)]?.[_0x432d77(_0x4344eb._0xbc2791,0x407,0x417,0x3f4)];if(_0x5339bb==='allow')return{'action':_0x432d77(0x3d4,_0x4344eb._0x113e3c,_0x4344eb._0x344be7,_0x4344eb._0x2aa759)};if(_0x5339bb===_0x242fe9(_0x4344eb._0x352d70,0x490,0x490,_0x4344eb._0x5ef1f8))return{'action':_0x432d77(_0x4344eb._0x2109ed,0x3fe,0x40c,_0x4344eb._0x4a151e),'reason':_0x5a277f[_0x432d77(_0x4344eb._0x592149,0x3cc,_0x4344eb._0x2c56cd,_0x4344eb._0x4c3394)]?.[_0x432d77(0x3e7,0x3e4,0x3fd,0x3d0)]?.[_0x242fe9(_0x4344eb._0x41c400,_0x4344eb._0x5baad4,_0x4344eb._0x2fffa3,0x46a)]||'Permission\x20denied\x20for\x20'+_0x1067d2[_0x432d77(0x3e2,_0x4344eb._0x1f64bc,0x3f1,0x3de)]};if(_0x5a277f[_0x432d77(0x3eb,0x3ca,_0x4344eb._0x31ecf6,0x409)]==='block'||_0x5a277f[_0x432d77(_0x4344eb._0x23ca24,_0x4344eb._0x37666d,_0x4344eb._0x58ce8a,0x3bd)]?.[_0x432d77(_0x4344eb._0x459225,_0x4344eb._0x43250c,_0x4344eb._0x50f6fc,_0x4344eb._0xfd3321)]===_0x242fe9(0x451,_0x4344eb._0xabee20,0x46b,_0x4344eb._0x2f34ae))return{'action':_0x242fe9(0x488,_0x4344eb._0x5338d6,0x489,0x469),'reason':_0x5a277f[_0x242fe9(_0x4344eb._0x127adb,0x426,0x44f,_0x4344eb._0x176d9a)]?.['reason']||_0x432d77(_0x4344eb._0x4734d9,_0x4344eb._0xfd3321,0x3f5,0x3c9)+_0x1067d2[_0x242fe9(0x46e,0x435,_0x4344eb._0x206e6c,0x44e)]};}function _0x242fe9(_0x13e625,_0x1aad01,_0x37ad74,_0xaed18e){return _0x5a7b(_0xaed18e-_0x4bb552._0xefd284,_0x1aad01);}return _0x5772cb(_0x1067d2,_0x6d11c6);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x2feeb6){const _0x31bf0c={_0x2e2afc:0x33d,_0x8b9ebb:0x327,_0x1a2858:0x1e1,_0x39e9be:0x1bc,_0x5d28ce:0x1a5,_0x36cf6d:0x344,_0x2c4e7d:0x367,_0x111370:0x33e,_0x407667:0x34d,_0x4c1b02:0x30d,_0x19e18b:0x1d3,_0xe77e84:0x1d7,_0x13730a:0x1dd,_0x4c2ac8:0x1b6,_0x9aad7c:0x1e6};return{'hasHooks'(_0x483005){return(_0x2feeb6[_0x483005]?.['length']??0x0)>0x0;},'getHooks'(_0x1aa358,_0x671d67){const _0x4a7edb=_0x2feeb6[_0x1aa358];function _0x34a2af(_0x375923,_0x323bf9,_0x30b70c,_0x4f25d1){return _0x5a7b(_0x323bf9-0x29d,_0x30b70c);}if(!_0x4a7edb)return[];function _0x205e34(_0x548bca,_0x1bf855,_0x46b6f7,_0x5969e1){return _0x5a7b(_0x1bf855-0x126,_0x5969e1);}const _0x5140d3=[];for(const _0x1e9b29 of _0x4a7edb){if(!_0x1e9b29[_0x34a2af(0x321,_0x31bf0c._0x2e2afc,_0x31bf0c._0x8b9ebb,0x33a)]||_0x1e9b29[_0x205e34(_0x31bf0c._0x1a2858,0x1c6,_0x31bf0c._0x39e9be,_0x31bf0c._0x5d28ce)]==='*'){_0x5140d3[_0x34a2af(_0x31bf0c._0x36cf6d,0x34b,_0x31bf0c._0x2c4e7d,_0x31bf0c._0x111370)](..._0x1e9b29[_0x34a2af(0x30f,0x32c,_0x31bf0c._0x407667,_0x31bf0c._0x4c1b02)][_0x205e34(0x1c5,_0x31bf0c._0x19e18b,0x1e8,0x1d6)](_0x3c7ff8=>({'command':_0x3c7ff8[_0x34a2af(0x34c,0x363,0x37e,0x35c)],'timeout':_0x3c7ff8[_0x205e34(0x1b9,0x1ca,0x1c5,0x1c3)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x671d67===void 0x0)continue;const _0x225ce6=new RegExp(_0x205e34(0x1dd,_0x31bf0c._0xe77e84,_0x31bf0c._0x13730a,_0x31bf0c._0x4c2ac8)+_0x1e9b29[_0x34a2af(0x352,0x33d,0x327,0x34c)]+')$');_0x225ce6[_0x205e34(0x1c8,0x1e9,0x1d9,0x1f7)](_0x671d67)&&_0x5140d3['push'](..._0x1e9b29[_0x34a2af(0x348,0x32c,0x33b,0x331)][_0x205e34(0x1b9,0x1d3,0x1db,_0x31bf0c._0x9aad7c)](_0x387ae4=>({'command':_0x387ae4['command'],'timeout':_0x387ae4['timeout']??DEFAULT_TIMEOUT_S2})));}return _0x5140d3;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};
@@ -21,6 +21,7 @@ export interface ChatModelOptions extends Partial<BaseChatModelOptions> {
21
21
  export declare function providerFromSurface(surface: ChatModelSurface): string;
22
22
  export declare class ChatModel implements EngineChatModel {
23
23
  readonly model: string;
24
+ readonly modelIdentity: string;
24
25
  readonly maxTokens?: number;
25
26
  readonly surface: ChatModelSurface;
26
27
  readonly provider: string;