@nuvin/agent-core 0.2.0-rc.11 → 0.2.0-rc.13

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 _0x21f6(_0x3bea76,_0x3e0418){_0x3bea76=_0x3bea76-0x19d;const _0x85ebce=_0x85eb();let _0x21f642=_0x85ebce[_0x3bea76];if(_0x21f6['hYrEOG']===undefined){var _0x48126a=function(_0x395bd2){const _0x4d625d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x159f2e='',_0x42344f='';for(let _0x5e384a=0x0,_0x5e0fe8,_0x3d87be,_0x2815a9=0x0;_0x3d87be=_0x395bd2['charAt'](_0x2815a9++);~_0x3d87be&&(_0x5e0fe8=_0x5e384a%0x4?_0x5e0fe8*0x40+_0x3d87be:_0x3d87be,_0x5e384a++%0x4)?_0x159f2e+=String['fromCharCode'](0xff&_0x5e0fe8>>(-0x2*_0x5e384a&0x6)):0x0){_0x3d87be=_0x4d625d['indexOf'](_0x3d87be);}for(let _0x1390ad=0x0,_0xacb231=_0x159f2e['length'];_0x1390ad<_0xacb231;_0x1390ad++){_0x42344f+='%'+('00'+_0x159f2e['charCodeAt'](_0x1390ad)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x42344f);};_0x21f6['YLFJWV']=_0x48126a,_0x21f6['QIGThW']={},_0x21f6['hYrEOG']=!![];}const _0x34bc75=_0x85ebce[0x0],_0x35aae3=_0x3bea76+_0x34bc75,_0x313f1f=_0x21f6['QIGThW'][_0x35aae3];return!_0x313f1f?(_0x21f642=_0x21f6['YLFJWV'](_0x21f642),_0x21f6['QIGThW'][_0x35aae3]=_0x21f642):_0x21f642=_0x313f1f,_0x21f642;}(function(_0x2bfd99,_0x15717c){const _0x2da93b={_0x54e9ce:0xe4,_0x365578:0xdc,_0x1e3d40:0xca,_0x4b6685:0xcf,_0x203ef1:0xcd,_0x40c126:0x42c,_0x2c39ab:0x418,_0x26293d:0x425,_0x104a07:0x42a,_0x4bb110:0x429,_0x3fc6bc:0x424,_0x338cb0:0x413,_0x28e0d3:0x412,_0x59f92f:0xd5,_0x50e32f:0xdd,_0x14de79:0x417},_0x264a7c={_0x10e0b1:0xd8},_0x2625b6={_0x1f13c6:0x26f};function _0x26eaa7(_0x4e8fc7,_0xe9230d,_0x36c1e2,_0x3643c1){return _0x21f6(_0x3643c1-_0x2625b6._0x1f13c6,_0x4e8fc7);}const _0x40ceea=_0x2bfd99();function _0x19cced(_0x3e0e2c,_0x53e49c,_0x384124,_0x335c20){return _0x21f6(_0x335c20- -_0x264a7c._0x10e0b1,_0x384124);}while(!![]){try{const _0x5479a1=parseInt(_0x19cced(0xc2,0xcb,0xce,0xc7))/0x1*(-parseInt(_0x19cced(_0x2da93b._0x54e9ce,0xe7,0xde,_0x2da93b._0x365578))/0x2)+-parseInt(_0x19cced(_0x2da93b._0x1e3d40,_0x2da93b._0x4b6685,0xc8,0xd2))/0x3+-parseInt(_0x19cced(0xd2,_0x2da93b._0x203ef1,0xcc,0xd7))/0x4*(-parseInt(_0x19cced(0xcf,0xc6,0xc5,0xcd))/0x5)+-parseInt(_0x26eaa7(_0x2da93b._0x40c126,_0x2da93b._0x2c39ab,_0x2da93b._0x26293d,0x421))/0x6*(parseInt(_0x26eaa7(_0x2da93b._0x104a07,_0x2da93b._0x4bb110,0x42f,_0x2da93b._0x3fc6bc))/0x7)+-parseInt(_0x19cced(0xc8,0xc6,0xd3,_0x2da93b._0x1e3d40))/0x8+-parseInt(_0x26eaa7(0x418,0x413,_0x2da93b._0x338cb0,_0x2da93b._0x28e0d3))/0x9*(parseInt(_0x26eaa7(0x417,0x423,0x41c,0x41a))/0xa)+-parseInt(_0x19cced(_0x2da93b._0x59f92f,0xe7,_0x2da93b._0x50e32f,0xdb))/0xb*(-parseInt(_0x26eaa7(0x419,0x40f,_0x2da93b._0x14de79,0x415))/0xc);if(_0x5479a1===_0x15717c)break;else _0x40ceea['push'](_0x40ceea['shift']());}catch(_0x41314e){_0x40ceea['push'](_0x40ceea['shift']());}}}(_0x85eb,0x2ccf2));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';function _0x85eb(){const _0x27065e=['mMPWCfHhua','mZC4ntGXDfrfwKDz','AxngAw5PDgu','Aw5KzxHpzG','mta5mdC3serRuNLq','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','CMvTB3zLqwjVCNrmAxn0zw5LCG','odG5mZKYBhrmwePz','mZyWqMnXDKfs','y2fUy2vSBgvK','nxPjALn4yW','ndmWnJHqEeHkqKK','ywjVCNrLza','AxnjBNrLz2vY','C2HPzNq','ndiYmZeWy1vgyxPo','mJC4nZbxquviChq','CMvZB2X2zq','ChvZAa','BgvUz3rO','mZmXmty0wvHdsgXQ','CMvQzwn0','CMvHC29U','mJr5AMLms1G','mJqYmhjHALfKrW'];_0x85eb=function(){return _0x27065e;};return _0x85eb();}import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x159f2e){const _0x5116df={_0x52bd9e:0x513,_0x4640d5:0x50b,_0x20d093:0x51c,_0x142810:0x318,_0x5467e3:0x306,_0x42ee64:0x307,_0x1d7c65:0x305,_0x18c0ec:0x305},_0xad800b={_0x1f896e:0x69,_0x1e59df:0xe1,_0x528fe3:0xeb,_0x1ae8b9:0xea,_0x541020:0xe6},_0x557b18={_0x1a549b:0x1f4,_0x2ff18e:0x1ef,_0x4c5876:0x107,_0x9426e:0x109,_0xb6d125:0x106},_0x5cbccd={_0x36cbd8:0x441},_0x433fd0={_0x5f01d7:0xa8,_0x1ce750:0x1ea,_0xe665d6:0x1f6,_0x15f5c3:0x1f3,_0x2413cd:0x1f0,_0x3ac0e3:0x95,_0x1fb895:0x9a,_0x568824:0x8a,_0x47117c:0x1ed,_0x47113f:0x1ec},_0x23491b={_0x521549:0x181,_0x107090:0x274,_0xbb772a:0x42},_0x4e652c={_0x277ebb:0x165};if(!Number[_0x310b87(_0x5116df._0x52bd9e,_0x5116df._0x52bd9e,_0x5116df._0x4640d5,_0x5116df._0x20d093)](_0x159f2e)||!Number[_0x319ca3(0x319,_0x5116df._0x142810,0x30d,_0x5116df._0x5467e3)](_0x159f2e)||_0x159f2e<=0x0)throw new Error(_0x319ca3(_0x5116df._0x42ee64,0x309,_0x5116df._0x1d7c65,_0x5116df._0x18c0ec));let _0x42344f=0x0;const _0x5e384a=[];function _0x310b87(_0x1e573b,_0x310c5f,_0x13b431,_0x175478){return _0x21f6(_0x1e573b-0x376,_0x175478);}function _0x319ca3(_0x52cd38,_0x20544b,_0x533fbe,_0x5ad669){return _0x21f6(_0x533fbe-_0x4e652c._0x277ebb,_0x20544b);}const _0x5e0fe8=()=>{let _0x2815a9=![];return()=>{if(_0x2815a9)return;_0x2815a9=!![],_0x42344f-=0x1,_0x3d87be();};},_0x3d87be=()=>{const _0x1fae54={_0x1cd051:0x335,_0x20a516:0x1bd};function _0x2eeead(_0x3d1572,_0x36be8d,_0x261d40,_0x33f1b1){return _0x310b87(_0x3d1572- -_0x1fae54._0x1cd051,_0x36be8d-_0x1fae54._0x20a516,_0x261d40-0x89,_0x33f1b1);}function _0x59251e(_0x19010e,_0x5567c5,_0x1d9acd,_0x3e694a){return _0x319ca3(_0x19010e-_0x23491b._0x521549,_0x5567c5,_0x19010e- -_0x23491b._0x107090,_0x3e694a-_0x23491b._0xbb772a);}while(_0x5e384a[_0x59251e(0x9f,0x98,_0x433fd0._0x5f01d7,0x97)]>0x0){const _0x1390ad=_0x5e384a[_0x2eeead(_0x433fd0._0x1ce750,_0x433fd0._0xe665d6,0x1f5,_0x433fd0._0x15f5c3)]();if(!_0x1390ad||_0x1390ad[_0x2eeead(0x1e5,_0x433fd0._0x2413cd,_0x433fd0._0x1ce750,0x1dc)])continue;_0x1390ad[_0x59251e(_0x433fd0._0x3ac0e3,_0x433fd0._0x1fb895,_0x433fd0._0x568824,0x8c)]=!![],_0x1390ad[_0x2eeead(0x1e2,0x1de,0x1db,_0x433fd0._0x47117c)](),_0x42344f+=0x1,_0x1390ad[_0x2eeead(_0x433fd0._0x47117c,_0x433fd0._0x47113f,0x1ed,0x1e8)](_0x5e0fe8());return;}};return{'acquire'(_0xacb231){const _0x174f16={_0x114af4:0xb0,_0x159a75:0xa6,_0x33c0f9:0x223,_0x94854f:0x227,_0x4f4d38:0xbd,_0x514e2e:0xc9},_0x52235d={_0x59002a:0x170,_0x16c4de:0x12f},_0x590b8b={_0x2d1889:0x4b4,_0x330ba4:0xb6};function _0x35638(_0x15ee00,_0x276d9a,_0x409435,_0x5f5b25){return _0x310b87(_0x15ee00- -_0x5cbccd._0x36cbd8,_0x276d9a-0x4f,_0x409435-0x152,_0x409435);}if(_0xacb231?.[_0x5cc8bc(0x5d,_0xad800b._0x1f896e,0x67,0x65)])return Promise[_0x35638(0xe5,0xef,_0xad800b._0x1e59df,_0xad800b._0x528fe3)](toAbortError(_0xacb231['reason']));function _0x5cc8bc(_0x37cd80,_0x44916c,_0x5ea631,_0x26d780){return _0x310b87(_0x44916c- -_0x590b8b._0x2d1889,_0x44916c-_0x590b8b._0x330ba4,_0x5ea631-0x11a,_0x26d780);}if(_0x42344f<_0x159f2e)return _0x42344f+=0x1,Promise[_0x35638(0xe1,_0xad800b._0x1e59df,_0xad800b._0x1ae8b9,_0xad800b._0x541020)](_0x5e0fe8());return new Promise((_0x3d4735,_0x279b0b)=>{const _0xcf2c92={_0x19dd82:0xd5,_0x5718d0:0x180};function _0x55ff3c(_0x40d500,_0x1aaaf3,_0x1e535b,_0x5aa2c0){return _0x5cc8bc(_0x40d500-_0xcf2c92._0x19dd82,_0x5aa2c0-_0xcf2c92._0x5718d0,_0x1e535b-0x34,_0x1aaaf3);}const _0x279ab1={'resolve':_0x3d4735,'reject':_0x279b0b,'cancelled':![],'removeAbortListener':()=>{}};_0x5e384a[_0x55ff3c(0x1e2,_0x557b18._0x1a549b,0x1f9,_0x557b18._0x2ff18e)](_0x279ab1);function _0x2aae1a(_0x1aeb8c,_0x4a80a0,_0x40abdd,_0x257aa7){return _0x35638(_0x1aeb8c-0x35,_0x4a80a0-_0x52235d._0x59002a,_0x40abdd,_0x257aa7-_0x52235d._0x16c4de);}_0x279ab1[_0x2aae1a(0x10b,_0x557b18._0x4c5876,_0x557b18._0x9426e,_0x557b18._0xb6d125)]=addAbortListener(_0xacb231,()=>{const _0x18f9a5={_0x332c3b:0x11d,_0x91f1f7:0x134},_0x2916df={_0x18b137:0x136};if(_0x279ab1[_0x3c7486(_0x174f16._0x114af4,_0x174f16._0x159a75,0xbb,0xa7)])return;_0x279ab1[_0x540950(0x233,0x22d,0x22b,_0x174f16._0x33c0f9)]=!![];function _0x3c7486(_0x4929f8,_0x40020f,_0x3edc1f,_0x41a978){return _0x55ff3c(_0x4929f8-0x141,_0x3edc1f,_0x3edc1f-0xf0,_0x4929f8- -_0x2916df._0x18b137);}function _0x540950(_0x52f145,_0x546201,_0x396388,_0x5e0790){return _0x2aae1a(_0x396388-_0x18f9a5._0x332c3b,_0x546201-_0x18f9a5._0x91f1f7,_0x5e0790,_0x5e0790-_0x18f9a5._0x91f1f7);}_0x279ab1['removeAbortListener']();const _0x1e7b56=_0x5e384a[_0x540950(0x21c,_0x174f16._0x94854f,0x225,_0x174f16._0x94854f)](_0x279ab1);if(_0x1e7b56>=0x0)_0x5e384a['splice'](_0x1e7b56,0x1);_0x279ab1['reject'](toAbortError(_0xacb231?.[_0x3c7486(_0x174f16._0x4f4d38,0xc4,_0x174f16._0x514e2e,0xb2)]));});});}};}export{OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
1
+ (function(_0x471d08,_0xb70432){const _0x2c7a1d={_0x23e542:0x465,_0x924ae5:0x45b,_0x5e024d:0x452,_0x1a8145:0x453,_0x70513b:0x9f,_0x308895:0x91,_0x2d677a:0x9d,_0x2ea4a4:0x91,_0x3416e9:0x8e,_0x30557c:0x9f,_0x23e27e:0x95,_0x277adc:0x8d,_0x5dcbd8:0x463,_0x3e65f3:0x457,_0xde10b4:0x9d,_0x5946ab:0x45c,_0x96da6f:0x450,_0x2e3ca6:0x44e},_0x454bb4={_0x507b7a:0x26d},_0x2229e9={_0x264e32:0x27d};function _0x161b68(_0x354f3d,_0x2c8f76,_0x206443,_0x40b1ba){return _0x539e(_0x40b1ba- -_0x2229e9._0x264e32,_0x206443);}function _0xb19516(_0x33e37a,_0x5caea7,_0x2a7321,_0x5f63db){return _0x539e(_0x33e37a-_0x454bb4._0x507b7a,_0x5caea7);}const _0x1d8c70=_0x471d08();while(!![]){try{const _0x3fdbed=parseInt(_0xb19516(0x45d,0x461,_0x2c7a1d._0x23e542,_0x2c7a1d._0x924ae5))/0x1*(-parseInt(_0xb19516(0x44a,_0x2c7a1d._0x5e024d,_0x2c7a1d._0x1a8145,0x43f))/0x2)+-parseInt(_0x161b68(-_0x2c7a1d._0x70513b,-0xa2,-0x94,-0x9f))/0x3*(-parseInt(_0x161b68(-_0x2c7a1d._0x308895,-0xa2,-_0x2c7a1d._0x2d677a,-0x98))/0x4)+parseInt(_0x161b68(-_0x2c7a1d._0x2ea4a4,-_0x2c7a1d._0x3416e9,-0x93,-0x96))/0x5+parseInt(_0x161b68(-0x93,-_0x2c7a1d._0x30557c,-0x8f,-0x99))/0x6+-parseInt(_0x161b68(-_0x2c7a1d._0x23e27e,-_0x2c7a1d._0x277adc,-_0x2c7a1d._0x2d677a,-0x94))/0x7+-parseInt(_0xb19516(0x45a,_0x2c7a1d._0x5dcbd8,0x453,_0x2c7a1d._0x3e65f3))/0x8*(parseInt(_0x161b68(-0x9a,-0xa5,-0xa7,-_0x2c7a1d._0xde10b4))/0x9)+-parseInt(_0xb19516(_0x2c7a1d._0x5946ab,0x454,0x45e,0x465))/0xa*(-parseInt(_0xb19516(_0x2c7a1d._0x96da6f,0x459,0x459,_0x2c7a1d._0x2e3ca6))/0xb);if(_0x3fdbed===_0xb70432)break;else _0x1d8c70['push'](_0x1d8c70['shift']());}catch(_0x7c7411){_0x1d8c70['push'](_0x1d8c70['shift']());}}}(_0x3cca,0x48548));function _0x539e(_0xf8c62c,_0x56a472){_0xf8c62c=_0xf8c62c-0x1dc;const _0x3cca3e=_0x3cca();let _0x539ee1=_0x3cca3e[_0xf8c62c];if(_0x539e['KkndTQ']===undefined){var _0x21291a=function(_0x13a61f){const _0x3f078f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x15de8d='',_0x581a9d='';for(let _0x1d7050=0x0,_0x5afd4e,_0x2a4c0e,_0x1de006=0x0;_0x2a4c0e=_0x13a61f['charAt'](_0x1de006++);~_0x2a4c0e&&(_0x5afd4e=_0x1d7050%0x4?_0x5afd4e*0x40+_0x2a4c0e:_0x2a4c0e,_0x1d7050++%0x4)?_0x15de8d+=String['fromCharCode'](0xff&_0x5afd4e>>(-0x2*_0x1d7050&0x6)):0x0){_0x2a4c0e=_0x3f078f['indexOf'](_0x2a4c0e);}for(let _0x60b626=0x0,_0x392c80=_0x15de8d['length'];_0x60b626<_0x392c80;_0x60b626++){_0x581a9d+='%'+('00'+_0x15de8d['charCodeAt'](_0x60b626)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x581a9d);};_0x539e['gQsjoD']=_0x21291a,_0x539e['NHToEu']={},_0x539e['KkndTQ']=!![];}const _0x25e5d1=_0x3cca3e[0x0],_0x454358=_0xf8c62c+_0x25e5d1,_0xf72993=_0x539e['NHToEu'][_0x454358];return!_0xf72993?(_0x539ee1=_0x539e['gQsjoD'](_0x539ee1),_0x539e['NHToEu'][_0x454358]=_0x539ee1):_0x539ee1=_0xf72993,_0x539ee1;}import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';function _0x3cca(){const _0x49e4da=['AxngAw5PDgu','mJG4mJa2ohDYzez6uW','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','CMvQzwn0','BgvUz3rO','mti4weP3EvzM','CMvTB3zLqwjVCNrmAxn0zw5LCG','mJe5ntGYmhHZwvnACa','mZuZrxDtu0n1','C3bSAwnL','y2fUy2vSBgvK','mtC3ohLZALrmza','nteZmdLPCu1pvgm','ywjVCNrLza','mtC4nduYsgfsv3zg','CMvHC29U','CMvZB2X2zq','mZnMCvDZDxm','odu2ntu0rfL6C3fc','nfPyy1fQvG','ChvZAa','mJyWmJiYnxHOBefvAa'];_0x3cca=function(){return _0x49e4da;};return _0x3cca();}import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x15de8d){const _0x6dec0={_0x40150e:0x543,_0x156cf1:0x551,_0x32885b:0x548,_0x3674dd:0x35,_0x42c4e8:0x30,_0x469e7a:0x34},_0x1c3e0b={_0xc0ca26:0x415,_0x2a266b:0x410,_0x1ecbf1:0x40b,_0xe65580:0x1d7,_0x374adf:0x1d5,_0x10124a:0x40e},_0x37939f={_0x1e0cd4:0x66},_0x2c0e03={_0x49ceb0:0x11e,_0x58c365:0xff,_0x3bc200:0x365},_0x319c51={_0x4a101b:0x440,_0x1ff362:0x42c,_0x2d9eb5:0xa2,_0x45f9c8:0x9d,_0x21788d:0x436},_0x4ffa7e={_0x1b4421:0x96,_0x3518c1:0xce},_0x5e5548={_0x456903:0x360};function _0x552ee1(_0x4300a4,_0x2f956f,_0x7f099f,_0x2d83ac){return _0x539e(_0x2d83ac-_0x5e5548._0x456903,_0x4300a4);}if(!Number[_0x552ee1(0x542,_0x6dec0._0x40150e,_0x6dec0._0x156cf1,_0x6dec0._0x32885b)](_0x15de8d)||!Number['isInteger'](_0x15de8d)||_0x15de8d<=0x0)throw new Error(_0x29b867(0x2f,_0x6dec0._0x3674dd,_0x6dec0._0x42c4e8,_0x6dec0._0x469e7a));let _0x581a9d=0x0;const _0x1d7050=[];function _0x29b867(_0x39d4ac,_0x58c9e3,_0x16b20e,_0x2f5f3a){return _0x539e(_0x2f5f3a- -0x1b6,_0x39d4ac);}const _0x5afd4e=()=>{let _0x1de006=![];return()=>{if(_0x1de006)return;_0x1de006=!![],_0x581a9d-=0x1,_0x2a4c0e();};},_0x2a4c0e=()=>{const _0x49b61e={_0x1e3954:0x136};function _0x449c4a(_0x70a07d,_0x2b6a22,_0x368613,_0xea42bd){return _0x29b867(_0x368613,_0x2b6a22-0x64,_0x368613-_0x4ffa7e._0x1b4421,_0xea42bd- -_0x4ffa7e._0x3518c1);}function _0x947edd(_0x48e9ca,_0x271d5e,_0x48d420,_0x159da6){return _0x552ee1(_0x48d420,_0x271d5e-0x113,_0x48d420-_0x49b61e._0x1e3954,_0x48e9ca- -0x110);}while(_0x1d7050[_0x947edd(0x43c,0x436,0x432,_0x319c51._0x4a101b)]>0x0){const _0x60b626=_0x1d7050['shift']();if(!_0x60b626||_0x60b626[_0x947edd(_0x319c51._0x1ff362,0x425,0x428,0x433)])continue;_0x60b626[_0x449c4a(-_0x319c51._0x2d9eb5,-0xa3,-_0x319c51._0x45f9c8,-0xa8)]=!![],_0x60b626[_0x947edd(0x43e,0x440,0x438,_0x319c51._0x21788d)](),_0x581a9d+=0x1,_0x60b626['resolve'](_0x5afd4e());return;}};return{'acquire'(_0x392c80){const _0x100286={_0x4800e0:0x125},_0x43b8ed={_0x27d18c:0x82,_0x4da010:0x7f,_0x24eb16:0x7e,_0x2d647c:0x7e,_0x590880:0x7b,_0x356ae3:0x58,_0x19c054:0x5e,_0xdab0f8:0x56,_0x3e4fe1:0x65,_0xe0949b:0x6f,_0x51316:0x70,_0x3e8e78:0x78};if(_0x392c80?.[_0xddd572(_0x1c3e0b._0xc0ca26,0x416,_0x1c3e0b._0x2a266b,_0x1c3e0b._0x1ecbf1)])return Promise['reject'](toAbortError(_0x392c80[_0x57b129(_0x1c3e0b._0xe65580,_0x1c3e0b._0x374adf,0x1dc,0x1d1)]));if(_0x581a9d<_0x15de8d)return _0x581a9d+=0x1,Promise[_0xddd572(0x405,0x414,0x411,_0x1c3e0b._0x10124a)](_0x5afd4e());function _0x57b129(_0x4e0069,_0x395d17,_0x1cd4e5,_0x37a812){return _0x552ee1(_0x37a812,_0x395d17-_0x2c0e03._0x49ceb0,_0x1cd4e5-_0x2c0e03._0x58c365,_0x1cd4e5- -_0x2c0e03._0x3bc200);}function _0xddd572(_0x4e0dd9,_0x4cc4c6,_0x33b28a,_0x212f7a){return _0x552ee1(_0x33b28a,_0x4cc4c6-_0x37939f._0x1e0cd4,_0x33b28a-0xa7,_0x212f7a- -0x134);}return new Promise((_0x4903d4,_0x2eb7e3)=>{const _0x2590b3={_0x2de9ea:0x1b4,_0x502e2b:0xa2},_0xe1973c={_0x47549a:0xb7},_0x5e15c1={'resolve':_0x4903d4,'reject':_0x2eb7e3,'cancelled':![],'removeAbortListener':()=>{}};function _0x39fd17(_0x3d90a4,_0x33fa4f,_0x4f21b2,_0x218f94){return _0x57b129(_0x3d90a4-0x11b,_0x33fa4f-0x4f,_0x4f21b2- -_0xe1973c._0x47549a,_0x218f94);}_0x1d7050[_0x39fd17(_0x100286._0x4800e0,0x12e,0x12a,0x129)](_0x5e15c1),_0x5e15c1['removeAbortListener']=addAbortListener(_0x392c80,()=>{if(_0x5e15c1[_0x573d90(_0x43b8ed._0x27d18c,_0x43b8ed._0x4da010,_0x43b8ed._0x24eb16,0x78)])return;_0x5e15c1[_0x573d90(0x77,0x7f,_0x43b8ed._0x2d647c,_0x43b8ed._0x590880)]=!![],_0x5e15c1[_0x51dbee(-0x62,-_0x43b8ed._0x356ae3,-_0x43b8ed._0x19c054,-0x5b)]();function _0x573d90(_0x2a091f,_0x1c370f,_0x1a11e4,_0x4b1bf6){return _0x39fd17(_0x2a091f-_0x2590b3._0x2de9ea,_0x1c370f-0x1a9,_0x1a11e4- -_0x2590b3._0x502e2b,_0x1c370f);}const _0x471d80=_0x1d7050['indexOf'](_0x5e15c1);if(_0x471d80>=0x0)_0x1d7050[_0x51dbee(-0x5f,-_0x43b8ed._0xdab0f8,-0x69,-0x59)](_0x471d80,0x1);function _0x51dbee(_0x2fc720,_0x3d131d,_0x55ce87,_0x430caa){return _0x39fd17(_0x2fc720-0xfc,_0x3d131d-0x1b6,_0x2fc720- -0x194,_0x55ce87);}_0x5e15c1[_0x51dbee(-_0x43b8ed._0x3e4fe1,-_0x43b8ed._0xe0949b,-0x5b,-0x65)](toAbortError(_0x392c80?.[_0x51dbee(-0x6f,-_0x43b8ed._0x51316,-_0x43b8ed._0x3e8e78,-0x6c)]));});});}};}export{OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
@@ -1,14 +1,46 @@
1
1
  import { Agent } from "../../agent/agent.ts";
2
2
  import type { AbortAwareSemaphore } from "../../shared/abort-aware-semaphore.ts";
3
3
  import type { AgentDefinitionFactoryContext, AgentOptions } from "../../shared/types.ts";
4
+ export declare const MODEL_TIERS: readonly ["fast", "balanced", "powerful"];
5
+ export type ModelTier = (typeof MODEL_TIERS)[number];
4
6
  export interface DelegatedAgentFactoryContext extends AgentDefinitionFactoryContext {
5
7
  parentSessionId: string;
6
8
  runId: string;
7
9
  signal: AbortSignal;
10
+ modelTier?: ModelTier;
8
11
  }
9
- export type DelegatedAgentDefinition = AgentOptions | ((ctx: DelegatedAgentFactoryContext) => AgentOptions | Promise<AgentOptions>);
12
+ export type DelegatedRoutingMetadata = {
13
+ requestedModelTier: ModelTier;
14
+ agentModelSet?: string;
15
+ resolvedModelIdentity: string;
16
+ };
17
+ export type DelegatedAgentResolution = {
18
+ options: AgentOptions;
19
+ routing?: DelegatedRoutingMetadata;
20
+ };
21
+ export declare class DelegatedResolutionError extends Error {
22
+ readonly requestedModelTier: ModelTier;
23
+ readonly agentModelSet?: string;
24
+ readonly selector?: string;
25
+ constructor(message: string, metadata: {
26
+ requestedModelTier: ModelTier;
27
+ agentModelSet?: string;
28
+ selector?: string;
29
+ }, options?: ErrorOptions);
30
+ }
31
+ type DelegatedAgentFactoryResult = AgentOptions | DelegatedAgentResolution;
32
+ export type DelegatedRunOutcome = Readonly<{
33
+ status: "completed" | "failed" | "aborted";
34
+ errorMessage?: string;
35
+ }>;
36
+ export interface DelegatedRunLifecycleHooks {
37
+ start(agent: Agent, context: DelegatedAgentFactoryContext): Promise<void>;
38
+ finish(context: DelegatedAgentFactoryContext, outcome: DelegatedRunOutcome): Promise<void>;
39
+ }
40
+ export type DelegatedAgentDefinition = AgentOptions | ((ctx: DelegatedAgentFactoryContext) => DelegatedAgentFactoryResult | Promise<DelegatedAgentFactoryResult>);
10
41
  export interface CreateDelegationToolsOptions {
11
42
  agents?: Record<string, DelegatedAgentDefinition>;
43
+ lifecycle?: DelegatedRunLifecycleHooks;
12
44
  semaphore?: AbortAwareSemaphore;
13
45
  /** Register an active child for shared tool refresh; returns its cleanup callback. */
14
46
  registerActiveAgent?: (agent: Agent, context: DelegatedAgentFactoryContext) => () => void;
@@ -28,12 +60,13 @@ export interface CreateDelegationToolsOptions {
28
60
  */
29
61
  releaseAgentResources?: (context: DelegatedAgentFactoryContext) => void;
30
62
  }
31
- export declare function resolveDelegatedAgentOptions(definition: DelegatedAgentDefinition, ctx: DelegatedAgentFactoryContext): Promise<AgentOptions>;
63
+ export declare function resolveDelegatedAgentOptions(definition: DelegatedAgentDefinition, ctx: DelegatedAgentFactoryContext): Promise<DelegatedAgentResolution>;
32
64
  export declare function createAssignTaskTool(options: CreateDelegationToolsOptions): import("../../shared/types.ts").ToolDefinition<{
33
65
  description: string;
34
66
  agentId: string;
35
67
  nickname: string;
36
68
  task: string;
69
+ modelTier: "fast" | "balanced" | "powerful";
37
70
  }, import("../../shared/types.ts").ToolOutputEnvelope, import("../../shared/types.ts").ToolOutputEnvelope, {
38
71
  type: "object";
39
72
  properties: {
@@ -53,6 +86,11 @@ export declare function createAssignTaskTool(options: CreateDelegationToolsOptio
53
86
  type: "string";
54
87
  description: string;
55
88
  };
89
+ modelTier: {
90
+ type: "string";
91
+ enum: ("fast" | "balanced" | "powerful")[];
92
+ description: string;
93
+ };
56
94
  };
57
95
  required: string[];
58
96
  }>;
@@ -62,6 +100,7 @@ export declare function createDelegationTools(options: CreateDelegationToolsOpti
62
100
  agentId: string;
63
101
  nickname: string;
64
102
  task: string;
103
+ modelTier: "fast" | "balanced" | "powerful";
65
104
  }, import("../../shared/types.ts").ToolOutputEnvelope, import("../../shared/types.ts").ToolOutputEnvelope, {
66
105
  type: "object";
67
106
  properties: {
@@ -81,7 +120,13 @@ export declare function createDelegationTools(options: CreateDelegationToolsOpti
81
120
  type: "string";
82
121
  description: string;
83
122
  };
123
+ modelTier: {
124
+ type: "string";
125
+ enum: ("fast" | "balanced" | "powerful")[];
126
+ description: string;
127
+ };
84
128
  };
85
129
  required: string[];
86
130
  }>[];
131
+ export {};
87
132
  //# sourceMappingURL=runtime-manager-tools.d.ts.map