@nuvin/agent-core 0.3.0-rc.7 → 0.3.0

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.
@@ -2,6 +2,7 @@ import type { ModelReasoningConfig } from "@nuvin/config";
2
2
  import type { ChatModelAuthScheme, ChatModelSurface } from "./chat-model.ts";
3
3
  export interface ModelProfile {
4
4
  contextWindow?: number;
5
+ maxContextWindow?: number;
5
6
  maxOutput?: number;
6
7
  reasoning?: ModelReasoningConfig;
7
8
  surface?: ChatModelSurface;
@@ -33,13 +34,14 @@ export interface ResolvedModelProfile {
33
34
  supportsModelFetch?: boolean;
34
35
  forceStreaming?: boolean;
35
36
  contextWindow?: number;
37
+ maxContextWindow?: number;
36
38
  maxOutput?: number;
37
39
  reasoning?: ModelReasoningConfig;
38
40
  }
39
41
  export declare const REASONING_METADATA_VERSIONS: {
40
42
  readonly anthropic: "2026-07-22";
41
43
  readonly openai: "2026-07-22";
42
- readonly codex: "0.145.0+25af12f7e61572b0bc18ddb1008be543b91519b0";
44
+ readonly codex: "0.153.4+3d2ee51ca2d5db578f328aa75e20aa22c0197c9a";
43
45
  };
44
46
  export declare function getProviderProfile(provider: string): ProviderProfile | undefined;
45
47
  export declare function getModelProfile(provider: string, model: string): ModelProfile | undefined;
@@ -1 +1 @@
1
- (function(_0x318656,_0x420737){const _0x1c1807={_0x182dd3:0xd8,_0x2fa0d4:0xdc,_0x330f7a:0xe7,_0x1ef587:0x1e4,_0x569085:0x1e9,_0x239d5e:0x1e0,_0xcdc5e:0xe5,_0x35ce16:0xd5,_0xe1f889:0xe1,_0x392b17:0x1c1,_0x1bacd5:0x1d7,_0x36107b:0x1d1,_0x387892:0x1d7,_0x589d37:0x1cd,_0x2da6f3:0x1c6,_0x159b67:0x1c9,_0x4b4560:0x1c5,_0xd64dc4:0xcb,_0x7ba0e7:0xcf,_0x49ca97:0x1cb,_0xa83a41:0x1d4,_0x18753c:0x1d2,_0x57e21b:0x1e1,_0x20fab4:0x1ce},_0x28e651={_0x3fdb62:0x34f},_0x13585d=_0x318656();function _0x4ef968(_0x493a1c,_0x50de9e,_0x4db737,_0x26a280){return _0x5ad8(_0x4db737- -0x256,_0x50de9e);}function _0x243d5a(_0x298ff9,_0xee0c9b,_0x12f040,_0x3636b8){return _0x5ad8(_0x12f040- -_0x28e651._0x3fdb62,_0x3636b8);}while(!![]){try{const _0x1e4250=parseInt(_0x4ef968(-_0x1c1807._0x182dd3,-_0x1c1807._0x2fa0d4,-0xe2,-_0x1c1807._0x330f7a))/0x1+-parseInt(_0x243d5a(-_0x1c1807._0x1ef587,-_0x1c1807._0x569085,-0x1df,-_0x1c1807._0x239d5e))/0x2*(parseInt(_0x4ef968(-_0x1c1807._0xcdc5e,-_0x1c1807._0x35ce16,-0xda,-_0x1c1807._0xe1f889))/0x3)+parseInt(_0x243d5a(-_0x1c1807._0x392b17,-_0x1c1807._0x1bacd5,-0x1ca,-0x1d3))/0x4*(parseInt(_0x243d5a(-0x1d7,-0x1db,-_0x1c1807._0x36107b,-_0x1c1807._0x387892))/0x5)+parseInt(_0x4ef968(-0xd8,-0xde,-0xd7,-0xcb))/0x6*(parseInt(_0x243d5a(-0x1df,-0x1cf,-0x1d6,-_0x1c1807._0x589d37))/0x7)+-parseInt(_0x243d5a(-_0x1c1807._0x2da6f3,-0x1d2,-_0x1c1807._0x159b67,-_0x1c1807._0x4b4560))/0x8*(parseInt(_0x4ef968(-0xc8,-_0x1c1807._0xd64dc4,-_0x1c1807._0x7ba0e7,-0xcc))/0x9)+parseInt(_0x243d5a(-_0x1c1807._0x49ca97,-_0x1c1807._0xa83a41,-0x1d7,-0x1d7))/0xa*(-parseInt(_0x243d5a(-0x1c9,-0x1da,-_0x1c1807._0x18753c,-0x1c9))/0xb)+parseInt(_0x243d5a(-0x1da,-_0x1c1807._0x57e21b,-0x1d9,-_0x1c1807._0x1bacd5))/0xc*(parseInt(_0x243d5a(-_0x1c1807._0x20fab4,-0x1c4,-0x1ce,-0x1d7))/0xd);if(_0x1e4250===_0x420737)break;else _0x13585d['push'](_0x13585d['shift']());}catch(_0x12a3bb){_0x13585d['push'](_0x13585d['shift']());}}}(_0x5740,0x4c94c));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';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(_0x5e7d23){const _0x2dfe3e={_0x5f3c73:0x2a1,_0x52ec39:0x2a8,_0x59016d:0x2a6,_0x1aee36:0x42e,_0x308f13:0x2aa,_0x591838:0x2a6,_0x2fbde8:0x2b6},_0x379144={_0x124b57:0x3bd,_0x5ce45a:0x3c2,_0x2da584:0x395,_0x392378:0x39a},_0x453b41={_0x173e24:0x38d,_0x56dccc:0x393,_0x4a4960:0x397,_0x2eaab5:0x384,_0x2cfadc:0x533,_0x15924e:0x535},_0x4dbc72={_0x247c53:0x279,_0x1c4083:0x272,_0x2fc553:0x26e,_0x2da8d5:0x26c,_0x149e2e:0x271,_0x36e909:0x27c,_0x27aec9:0x27a,_0x100b13:0x266},_0x1a5bcf={_0x4972a9:0x5b8,_0xe53908:0xa2};if(!Number[_0x25b810(_0x2dfe3e._0x5f3c73,_0x2dfe3e._0x52ec39,_0x2dfe3e._0x59016d,0x295)](_0x5e7d23)||!Number[_0xa716e1(0x43a,0x430,0x430,_0x2dfe3e._0x1aee36)](_0x5e7d23)||_0x5e7d23<=0x0)throw new Error(_0x25b810(_0x2dfe3e._0x308f13,_0x2dfe3e._0x5f3c73,_0x2dfe3e._0x591838,_0x2dfe3e._0x2fbde8));function _0x25b810(_0x55184d,_0x5b0758,_0x25f235,_0x2bda1f){return _0x5ad8(_0x55184d-0x126,_0x25f235);}let _0x1a8a63=0x0;function _0xa716e1(_0x4063b6,_0x2cf6c9,_0x1d7497,_0x8f1918){return _0x5ad8(_0x2cf6c9-0x2a8,_0x4063b6);}const _0x422811=[],_0x313b3c=()=>{let _0x3f591c=![];return()=>{if(_0x3f591c)return;_0x3f591c=!![],_0x1a8a63-=0x1,_0x4a7055();};},_0x4a7055=()=>{const _0x3c0d07={_0x4fa0f7:0x27,_0x1b336f:0x5d};function _0x54ad9a(_0x5e71f9,_0xc4c5b5,_0x375944,_0x554447){return _0xa716e1(_0xc4c5b5,_0x375944- -_0x1a5bcf._0x4972a9,_0x375944-_0x1a5bcf._0xe53908,_0x554447-0x16d);}function _0x489e19(_0x360b64,_0x35fe3d,_0x4d3a68,_0x3d0188){return _0x25b810(_0x35fe3d- -_0x3c0d07._0x4fa0f7,_0x35fe3d-_0x3c0d07._0x1b336f,_0x360b64,_0x3d0188-0x114);}while(_0x422811['length']>0x0){const _0x2ea082=_0x422811[_0x489e19(0x270,_0x4dbc72._0x247c53,0x270,0x27a)]();if(!_0x2ea082||_0x2ea082['cancelled'])continue;_0x2ea082[_0x489e19(_0x4dbc72._0x1c4083,0x272,_0x4dbc72._0x2fc553,_0x4dbc72._0x2da8d5)]=!![],_0x2ea082[_0x489e19(_0x4dbc72._0x149e2e,0x270,_0x4dbc72._0x36e909,_0x4dbc72._0x27aec9)](),_0x1a8a63+=0x1,_0x2ea082[_0x489e19(_0x4dbc72._0x100b13,0x26e,0x27b,0x264)](_0x313b3c());return;}},_0x41ff18=()=>{if(_0x1a8a63>=_0x5e7d23)return void 0x0;return _0x1a8a63+=0x1,_0x313b3c();};return{'tryAcquire':_0x41ff18,'acquire'(_0x18132b){const _0x1c2166={_0x589d4a:0xc8,_0x5ada3c:0x22},_0x594e31={_0x2a3475:0xf8,_0x51c8a6:0x8e,_0x12804f:0x159};if(_0x18132b?.[_0x47d0d0(0x3be,_0x379144._0x124b57,_0x379144._0x5ce45a,0x3c4)])return Promise[_0x1c7146(_0x379144._0x2da584,_0x379144._0x2da584,0x395,_0x379144._0x392378)](toAbortError(_0x18132b['reason']));function _0x1c7146(_0x30fc81,_0xa76722,_0x1aff90,_0x59fac4){return _0x25b810(_0x30fc81-_0x594e31._0x2a3475,_0xa76722-_0x594e31._0x51c8a6,_0xa76722,_0x59fac4-_0x594e31._0x12804f);}const _0x511455=_0x41ff18();if(_0x511455!==void 0x0)return Promise['resolve'](_0x511455);function _0x47d0d0(_0x284f5a,_0x2d7b56,_0x51a184,_0x2459d8){return _0xa716e1(_0x2459d8,_0x2d7b56- -0x6e,_0x51a184-0x1f3,_0x2459d8-0xf9);}return new Promise((_0x5527a3,_0x4f255f)=>{const _0x1f5067={_0x2e3593:0x27,_0x18b96a:0x26,_0x5bd2f8:0x2e,_0x41b896:0x2a,_0x5e996a:0x27,_0x3f83de:0x1e,_0x25affd:0x3af,_0x2d055f:0x3bc,_0x1d8b3a:0x3b0,_0x50a452:0x23},_0x3172a8={_0x5a0705:0x3b2,_0x3728b3:0x1da},_0x50fb1a={_0x562b26:0x19d,_0x581a87:0x107,_0x4de17d:0x12a},_0x1688bf={'resolve':_0x5527a3,'reject':_0x4f255f,'cancelled':![],'removeAbortListener':()=>{}};function _0x214fd7(_0x15baf7,_0x19fbb0,_0x28018f,_0xabcab9){return _0x47d0d0(_0x15baf7-_0x1c2166._0x589d4a,_0x15baf7- -_0x1c2166._0x5ada3c,_0x28018f-0x1c1,_0xabcab9);}_0x422811[_0x214fd7(_0x453b41._0x173e24,_0x453b41._0x56dccc,_0x453b41._0x4a4960,_0x453b41._0x2eaab5)](_0x1688bf);function _0x592226(_0xb1223c,_0x2bcadc,_0x18f8b3,_0x207593){return _0x1c7146(_0x2bcadc-_0x50fb1a._0x562b26,_0xb1223c,_0x18f8b3-_0x50fb1a._0x581a87,_0x207593-_0x50fb1a._0x4de17d);}_0x1688bf[_0x592226(_0x453b41._0x2cfadc,0x52c,_0x453b41._0x15924e,0x527)]=addAbortListener(_0x18132b,()=>{const _0x554304={_0xb1dad:0x18};function _0x3ab14b(_0x1a0d06,_0x22c5cc,_0x1d3c3f,_0x7238a6){return _0x214fd7(_0x1d3c3f-_0x554304._0xb1dad,_0x22c5cc-0x192,_0x1d3c3f-0x1ad,_0x7238a6);}if(_0x1688bf[_0x314434(-_0x1f5067._0x2e3593,-_0x1f5067._0x18b96a,-_0x1f5067._0x5bd2f8,-_0x1f5067._0x41b896)])return;_0x1688bf[_0x314434(-_0x1f5067._0x5e996a,-0x32,-_0x1f5067._0x3f83de,-0x1c)]=!![],_0x1688bf['removeAbortListener']();function _0x314434(_0x52d13a,_0x16bdff,_0x5c6089,_0x4888a7){return _0x214fd7(_0x52d13a- -_0x3172a8._0x5a0705,_0x16bdff-_0x3172a8._0x3728b3,_0x5c6089-0x14d,_0x16bdff);}const _0x26ea9e=_0x422811[_0x3ab14b(_0x1f5067._0x25affd,_0x1f5067._0x2d055f,0x3b2,_0x1f5067._0x1d8b3a)](_0x1688bf);if(_0x26ea9e>=0x0)_0x422811['splice'](_0x26ea9e,0x1);_0x1688bf[_0x314434(-_0x1f5067._0x50a452,-_0x1f5067._0x5e996a,-0x16,-0x27)](toAbortError(_0x18132b?.[_0x3ab14b(0x396,0x3ab,0x3a2,0x3a3)]));});});}};}var MESSAGE_ROLES=['assistant','user'];function _0x5ad8(_0x5d0f3b,_0x4a995d){_0x5d0f3b=_0x5d0f3b-0x16f;const _0x57409e=_0x5740();let _0x5ad824=_0x57409e[_0x5d0f3b];if(_0x5ad8['bILPDQ']===undefined){var _0x58372c=function(_0x248ff6){const _0x585e77='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e7d23='',_0x1a8a63='';for(let _0x422811=0x0,_0x313b3c,_0x4a7055,_0x41ff18=0x0;_0x4a7055=_0x248ff6['charAt'](_0x41ff18++);~_0x4a7055&&(_0x313b3c=_0x422811%0x4?_0x313b3c*0x40+_0x4a7055:_0x4a7055,_0x422811++%0x4)?_0x5e7d23+=String['fromCharCode'](0xff&_0x313b3c>>(-0x2*_0x422811&0x6)):0x0){_0x4a7055=_0x585e77['indexOf'](_0x4a7055);}for(let _0x3f591c=0x0,_0x2ea082=_0x5e7d23['length'];_0x3f591c<_0x2ea082;_0x3f591c++){_0x1a8a63+='%'+('00'+_0x5e7d23['charCodeAt'](_0x3f591c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a8a63);};_0x5ad8['cmNcoX']=_0x58372c,_0x5ad8['sFogPo']={},_0x5ad8['bILPDQ']=!![];}const _0x250be2=_0x57409e[0x0],_0x9fcc5=_0x5d0f3b+_0x250be2,_0xcb550f=_0x5ad8['sFogPo'][_0x9fcc5];return!_0xcb550f?(_0x5ad824=_0x5ad8['cmNcoX'](_0x5ad824),_0x5ad8['sFogPo'][_0x9fcc5]=_0x5ad824):_0x5ad824=_0xcb550f,_0x5ad824;}function _0x37c761(_0x4daf43,_0x49edc8,_0xd78c61,_0x1632da){return _0x5ad8(_0x4daf43- -0x303,_0xd78c61);}function _0x5740(){const _0x4a7987=['zNjLzxPL','mJCZzg1JC0HN','Aw5KzxHpzG','ywjVCNrLza','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','mti0y1HZEenZ','oti4og5yuNvrCq','mZC4owzRA1Htwq','AxnjBNrLz2vY','CMvZB2X2zq','mtjvAKzUzuW','CMvTB3zLqwjVCNrmAxn0zw5LCG','CMvHC29U','y2fUy2vSBgvK','ntmZmty5whzNsM5m','ChvZAa','mZq4ntqWChHIwMTI','CMvQzwn0','mJKWmZu5meDAz0fHDq','mtCYmMLwy3zIAq','C2HPzNq','AxngAw5PDgu','mtC1ndK3t0LfyNHN','mJjNrNnKvha','mJeWotvvtMDLvwm','mteYmJzTtKzwruG'];_0x5740=function(){return _0x4a7987;};return _0x5740();}Object[_0x37c761(-0x183,-0x184,-0x184,-0x17f)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
1
+ function _0x54f3(_0x44f0bd,_0x390733){_0x44f0bd=_0x44f0bd-0xab;const _0x1d3505=_0x1d35();let _0x54f356=_0x1d3505[_0x44f0bd];if(_0x54f3['ZxybFv']===undefined){var _0x1901ea=function(_0x426ee0){const _0x28ff1e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c2474='',_0x2fe15b='';for(let _0x30ecd0=0x0,_0x41d4a0,_0x157c50,_0x387256=0x0;_0x157c50=_0x426ee0['charAt'](_0x387256++);~_0x157c50&&(_0x41d4a0=_0x30ecd0%0x4?_0x41d4a0*0x40+_0x157c50:_0x157c50,_0x30ecd0++%0x4)?_0x1c2474+=String['fromCharCode'](0xff&_0x41d4a0>>(-0x2*_0x30ecd0&0x6)):0x0){_0x157c50=_0x28ff1e['indexOf'](_0x157c50);}for(let _0xb694b1=0x0,_0x4b713c=_0x1c2474['length'];_0xb694b1<_0x4b713c;_0xb694b1++){_0x2fe15b+='%'+('00'+_0x1c2474['charCodeAt'](_0xb694b1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2fe15b);};_0x54f3['OgnBuQ']=_0x1901ea,_0x54f3['RHkcNA']={},_0x54f3['ZxybFv']=!![];}const _0x52caab=_0x1d3505[0x0],_0xa3d3f6=_0x44f0bd+_0x52caab,_0x3e3b3c=_0x54f3['RHkcNA'][_0xa3d3f6];return!_0x3e3b3c?(_0x54f356=_0x54f3['OgnBuQ'](_0x54f356),_0x54f3['RHkcNA'][_0xa3d3f6]=_0x54f356):_0x54f356=_0x3e3b3c,_0x54f356;}(function(_0x56cdb9,_0x53acba){const _0x388994={_0x2c3121:0xfe,_0x43591f:0xe9,_0x4867ed:0xf4,_0x5ca272:0x130,_0x37bb74:0x129,_0x50e64c:0x10f,_0x3d1e6d:0x11c,_0x586f29:0x115,_0xbe9358:0x11b,_0x3cfbc3:0x11f,_0x237b21:0x117,_0x1abeaf:0x111,_0x5e4de9:0xec,_0x11293a:0x113,_0x281001:0x120,_0x4a05b2:0xfa,_0x230f21:0xed,_0x2678be:0xfc,_0x2630f9:0x102,_0x24ad95:0xfa,_0xf172df:0xf9,_0x142a4d:0xf5,_0x3b3dda:0x12f,_0x370c43:0x12b,_0xfcce65:0x11e},_0x2cdac8={_0x50807d:0x68};function _0x1fa3c4(_0x2330b1,_0x916525,_0x450ff9,_0x42a2cc){return _0x54f3(_0x42a2cc-_0x2cdac8._0x50807d,_0x2330b1);}const _0x5849ee=_0x56cdb9();function _0x867ca0(_0x2d5ade,_0xf71bf3,_0x51c2e2,_0x2c7964){return _0x54f3(_0x2c7964- -0x1a9,_0x2d5ade);}while(!![]){try{const _0xc7d1ad=parseInt(_0x867ca0(-_0x388994._0x2c3121,-0xfc,-_0x388994._0x43591f,-_0x388994._0x4867ed))/0x1+parseInt(_0x1fa3c4(_0x388994._0x5ca272,0x12f,_0x388994._0x37bb74,0x12a))/0x2*(parseInt(_0x1fa3c4(0x120,_0x388994._0x50e64c,0x112,_0x388994._0x3d1e6d))/0x3)+-parseInt(_0x1fa3c4(0x124,_0x388994._0x586f29,_0x388994._0xbe9358,_0x388994._0x3cfbc3))/0x4*(parseInt(_0x1fa3c4(_0x388994._0x237b21,0x10f,_0x388994._0x1abeaf,0x11b))/0x5)+-parseInt(_0x867ca0(-0xea,-0xe0,-0xf0,-_0x388994._0x5e4de9))/0x6+parseInt(_0x1fa3c4(0x127,_0x388994._0x11293a,0x11e,_0x388994._0x281001))/0x7*(-parseInt(_0x867ca0(-_0x388994._0x4a05b2,-_0x388994._0x230f21,-_0x388994._0x2678be,-0xf0))/0x8)+parseInt(_0x867ca0(-0x105,-_0x388994._0x2630f9,-_0x388994._0x24ad95,-_0x388994._0xf172df))/0x9*(parseInt(_0x867ca0(-_0x388994._0x142a4d,-0xf1,-0xef,-0xfb))/0xa)+parseInt(_0x1fa3c4(_0x388994._0x3b3dda,0x133,0x120,_0x388994._0x370c43))/0xb*(parseInt(_0x1fa3c4(0x12b,0x119,0x123,_0x388994._0xfcce65))/0xc);if(_0xc7d1ad===_0x53acba)break;else _0x5849ee['push'](_0x5849ee['shift']());}catch(_0x474ddc){_0x5849ee['push'](_0x5849ee['shift']());}}}(_0x1d35,0x733ec));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';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(_0x1c2474){const _0x5a2b51={_0x2e4a57:0x189,_0x1b040c:0x196,_0x48d34e:0x196,_0x3d0716:0x238,_0x3f4f80:0x243,_0x129e2f:0x234,_0x35cc3e:0x180,_0x31e65d:0x17a},_0x35a741={_0x4ddc08:0x3aa,_0x86beaa:0x3b6,_0x1af925:0x3a9,_0x4f30c8:0x3bf,_0x243a35:0x3ac,_0x5cd8f2:0x3ae,_0x528ea9:0xa1,_0x5366c6:0xa4,_0x3a1559:0x95},_0x4ed09b={_0x164b2c:0x147},_0x8bc980={_0x3c4406:0x171,_0x5e9408:0x7c,_0x5a3646:0x1c2},_0x144156={_0x3c23ab:0x38a,_0x30e51e:0x38a,_0x3d0089:0x388,_0x514f4f:0x3a1,_0x9df135:0x3a6,_0x209a5c:0x39c,_0x5e59cd:0x3a3,_0x132c4d:0x3a0,_0x2228ce:0x317,_0x5edc0a:0x30d},_0x217bf3={_0x35e00e:0xdf},_0x1083d6={_0x490dc3:0xcf};if(!Number[_0x516a0d(0x18f,_0x5a2b51._0x2e4a57,_0x5a2b51._0x1b040c,_0x5a2b51._0x48d34e)](_0x1c2474)||!Number[_0x3c9c3f(_0x5a2b51._0x3d0716,_0x5a2b51._0x3f4f80,_0x5a2b51._0x129e2f,0x239)](_0x1c2474)||_0x1c2474<=0x0)throw new Error(_0x516a0d(_0x5a2b51._0x35cc3e,_0x5a2b51._0x35cc3e,_0x5a2b51._0x31e65d,0x183));let _0x2fe15b=0x0;const _0x30ecd0=[];function _0x3c9c3f(_0x2903a9,_0x292e15,_0x21ef5a,_0x56e24d){return _0x54f3(_0x2903a9-0x189,_0x21ef5a);}function _0x516a0d(_0x69ee80,_0x534ca3,_0x3941b9,_0xd6752d){return _0x54f3(_0x534ca3-_0x1083d6._0x490dc3,_0x3941b9);}const _0x41d4a0=()=>{let _0xb694b1=![];return()=>{if(_0xb694b1)return;_0xb694b1=!![],_0x2fe15b-=0x1,_0x157c50();};},_0x157c50=()=>{const _0x4da4f1={_0x63eadf:0xd8};function _0x49fb86(_0x293e4d,_0xc842e7,_0x4ee68b,_0x5d6c4c){return _0x516a0d(_0x293e4d-_0x217bf3._0x35e00e,_0x5d6c4c-0x20e,_0x4ee68b,_0x5d6c4c-0xd6);}function _0x2bb72a(_0x138ccb,_0x2f5711,_0x25838b,_0x517245){return _0x3c9c3f(_0x2f5711-0xe2,_0x2f5711-_0x4da4f1._0x63eadf,_0x138ccb,_0x517245-0xb0);}while(_0x30ecd0['length']>0x0){const _0x4b713c=_0x30ecd0[_0x49fb86(0x385,_0x144156._0x3c23ab,_0x144156._0x30e51e,_0x144156._0x3d0089)]();if(!_0x4b713c||_0x4b713c[_0x49fb86(_0x144156._0x514f4f,0x3a0,_0x144156._0x9df135,_0x144156._0x209a5c)])continue;_0x4b713c[_0x49fb86(0x39d,0x390,0x3a9,0x39c)]=!![],_0x4b713c[_0x49fb86(_0x144156._0x5e59cd,_0x144156._0x132c4d,0x39c,0x398)](),_0x2fe15b+=0x1,_0x4b713c[_0x2bb72a(0x314,_0x144156._0x2228ce,_0x144156._0x5edc0a,0x30d)](_0x41d4a0());return;}},_0x387256=()=>{if(_0x2fe15b>=_0x1c2474)return void 0x0;return _0x2fe15b+=0x1,_0x41d4a0();};return{'tryAcquire':_0x387256,'acquire'(_0x16f18f){const _0x24c40f={_0xa7bb46:0xe9,_0x1ee00c:0xe3,_0x3aa1ad:0xec,_0x4af74e:0x465},_0x319d89={_0x134c07:0x185,_0x2a3599:0x80};if(_0x16f18f?.['aborted'])return Promise[_0x5696ee(_0x35a741._0x4ddc08,_0x35a741._0x86beaa,_0x35a741._0x1af925,_0x35a741._0x4f30c8)](toAbortError(_0x16f18f[_0x5696ee(0x3aa,_0x35a741._0x243a35,_0x35a741._0x5cd8f2,0x3a5)]));const _0x179a64=_0x387256();if(_0x179a64!==void 0x0)return Promise[_0x1de924(_0x35a741._0x528ea9,_0x35a741._0x5366c6,0xa3,_0x35a741._0x3a1559)](_0x179a64);function _0x5696ee(_0x1f172d,_0x257976,_0x5251b3,_0x5961cc){return _0x3c9c3f(_0x257976-_0x8bc980._0x3c4406,_0x257976-_0x8bc980._0x5e9408,_0x1f172d,_0x5961cc-_0x8bc980._0x5a3646);}function _0x1de924(_0x53a791,_0x47a7af,_0x169720,_0x2c3e1e){return _0x516a0d(_0x53a791-0x95,_0x53a791- -0xda,_0x2c3e1e,_0x2c3e1e-_0x4ed09b._0x164b2c);}return new Promise((_0x464225,_0x1a1de1)=>{const _0x366189={_0x786b04:0x1b5,_0x369cf4:0x1be,_0x353fef:0x1cb,_0x1b48ec:0x1c8,_0x37e29d:0x1b1,_0x526f86:0x1bc,_0x22ff1a:0x3ef,_0x597de5:0x3e4,_0x5c9f28:0x3fc,_0x417e1f:0x3eb,_0x288ca5:0x3ee,_0x220786:0x3f0,_0x26871c:0x3e5},_0x304142={_0x17b8dc:0x9f},_0x12ebca={_0x30f7d1:0xac};function _0x2193eb(_0x18c6f2,_0x330b59,_0x20e155,_0xb8e3ff){return _0x5696ee(_0x330b59,_0xb8e3ff-_0x12ebca._0x30f7d1,_0x20e155-0x98,_0xb8e3ff-0x3d);}const _0x30b443={'resolve':_0x464225,'reject':_0x1a1de1,'cancelled':![],'removeAbortListener':()=>{}};function _0x39c26e(_0x104dee,_0x46d2b1,_0x3f79a4,_0x2c9a13){return _0x1de924(_0x46d2b1- -_0x319d89._0x134c07,_0x46d2b1-0x191,_0x3f79a4-_0x319d89._0x2a3599,_0x3f79a4);}_0x30ecd0[_0x39c26e(-_0x24c40f._0xa7bb46,-_0x24c40f._0x1ee00c,-_0x24c40f._0x3aa1ad,-0xda)](_0x30b443),_0x30b443[_0x2193eb(0x469,_0x24c40f._0x4af74e,0x469,0x461)]=addAbortListener(_0x16f18f,()=>{const _0x533e8c={_0x9e255b:0x195,_0x1dcfdf:0x4c4};if(_0x30b443[_0x3781fd(-_0x366189._0x786b04,-_0x366189._0x369cf4,-_0x366189._0x353fef,-_0x366189._0x1b48ec)])return;_0x30b443[_0x3781fd(-0x1bf,-0x1be,-_0x366189._0x37e29d,-_0x366189._0x526f86)]=!![],_0x30b443[_0x5e1849(0x3e5,_0x366189._0x22ff1a,_0x366189._0x597de5,0x3f2)]();function _0x5e1849(_0xb6a921,_0x504c2a,_0xdb9ea,_0xd9bec){return _0x39c26e(_0xb6a921-_0x533e8c._0x9e255b,_0x504c2a-_0x533e8c._0x1dcfdf,_0xd9bec,_0xd9bec-0x1c0);}const _0x14626a=_0x30ecd0[_0x5e1849(0x3f9,0x3f2,_0x366189._0x5c9f28,_0x366189._0x417e1f)](_0x30b443);function _0x3781fd(_0x1e58e8,_0x32576c,_0x5c2ca7,_0x15174c){return _0x2193eb(_0x1e58e8-_0x304142._0x17b8dc,_0x15174c,_0x5c2ca7-0x1ce,_0x32576c- -0x623);}if(_0x14626a>=0x0)_0x30ecd0[_0x5e1849(0x3fd,0x3f4,0x3f8,_0x366189._0x288ca5)](_0x14626a,0x1);_0x30b443[_0x5e1849(0x3fc,_0x366189._0x220786,_0x366189._0x26871c,0x3ef)](toAbortError(_0x16f18f?.['reason']));});});}};}var MESSAGE_ROLES=[_0x2ce654(0x4d,0x49,0x4f,0x5b),_0x141f52(0x20c,0x211,0x20d,0x204)];function _0x141f52(_0xc53113,_0x3e1276,_0x4340c9,_0x524abf){return _0x54f3(_0x4340c9-0x14c,_0x524abf);}Object['freeze'](MESSAGE_ROLES);function _0x2ce654(_0x12416e,_0xd970c5,_0x2cc9ec,_0x13ac1e){return _0x54f3(_0x2cc9ec- -0x75,_0xd970c5);}export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};function _0x1d35(){const _0x400822=['CMvQzwn0','mJe3otG0mKTPEenTra','Aw5KzxHpzG','y2fUy2vSBgvK','C3bSAwnL','DxnLCG','mtmWotz2v3rwBgO','mJiZmJy3CM5juhfv','yxnZAxn0yw50','C2HPzNq','CMvZB2X2zq','ChvZAa','mZaYodeWqLjJANHr','AxnjBNrLz2vY','owPOqLn2sq','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','CMvHC29U','nJiZmda1z2Dpww5k','ndHfthPUuM0','mty3odCWA0HpEevI','otm2qwH1re1y','nhvizfP5tW','n0nxCK1Pyq','nZqWota2ng9ACKrbva','AxngAw5PDgu','CMvTB3zLqwjVCNrmAxn0zw5LCG'];_0x1d35=function(){return _0x400822;};return _0x1d35();}
@@ -322,6 +322,7 @@ export interface DoneChunk {
322
322
  export type ChatResponseChunk = AnthropicSignatureDeltaChunk | AnthropicThinkingDeltaChunk | ContentDeltaChunk | DoneChunk | OpenAiReasoningDeltaChunk | OpenAiReasoningSummaryDeltaChunk | ProviderStreamResetChunk | ProviderRetryChunk | ToolUseDeltaChunk;
323
323
  export interface ModelLimits {
324
324
  contextWindow?: number;
325
+ maxContextWindow?: number;
325
326
  maxOutput?: number;
326
327
  }
327
328
  export interface ModelInfo {