@nuvin/agent-core 0.3.0-rc.6 → 0.3.0-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,7 @@ export declare const NUVIN_PRICING_PRODUCTS: {
25
25
  readonly modelsDevProviderId: "openai";
26
26
  readonly chatCompletionsIncludeUsage: true;
27
27
  };
28
- readonly "openai-codex": {};
28
+ readonly codex: {};
29
29
  readonly "opencode-go": {
30
30
  readonly modelsDevProviderId: "opencode-go";
31
31
  };
@@ -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(_0x31e031,_0x3987e2){const _0x37d81e={_0x7bb21a:0x350,_0x1f31aa:0x340,_0x3277e1:0x34a,_0x2d6d32:0x35f,_0x1c130b:0x4a2,_0x3809d5:0x4aa,_0x5aaae7:0x4a4,_0x208c0b:0x4a6,_0x4c18b0:0x4ad,_0x34c095:0x4b4,_0x3cdaf8:0x4b0,_0x3f7e79:0x4bd,_0x2be9ce:0x356,_0x3c756c:0x345,_0x37be37:0x34f,_0x4f7292:0x35a,_0x3e4e91:0x359,_0x403d4c:0x35e,_0x261a3f:0x361,_0x2055f6:0x49d,_0x1dd9b7:0x4ab},_0x3d180f={_0x5a11a8:0x2ce},_0x2f5894={_0x512aa3:0x177},_0x363d66=_0x31e031();function _0x3b4603(_0xd100e8,_0x440221,_0x2f48f2,_0x3af478){return _0x2dbe(_0x3af478-_0x2f5894._0x512aa3,_0x2f48f2);}function _0x52fcd7(_0x1d4505,_0x43e14d,_0x4fef5e,_0x5c1a61){return _0x2dbe(_0x1d4505-_0x3d180f._0x5a11a8,_0x43e14d);}while(!![]){try{const _0x3598e6=-parseInt(_0x3b4603(_0x37d81e._0x7bb21a,_0x37d81e._0x1f31aa,0x34e,_0x37d81e._0x3277e1))/0x1*(parseInt(_0x3b4603(0x35a,_0x37d81e._0x3277e1,_0x37d81e._0x2d6d32,0x357))/0x2)+parseInt(_0x52fcd7(_0x37d81e._0x1c130b,0x4a3,0x4a1,0x499))/0x3+-parseInt(_0x52fcd7(0x4aa,0x4a7,_0x37d81e._0x3809d5,0x4af))/0x4*(-parseInt(_0x52fcd7(_0x37d81e._0x5aaae7,0x497,_0x37d81e._0x208c0b,_0x37d81e._0x4c18b0))/0x5)+parseInt(_0x3b4603(0x359,0x357,0x361,_0x37d81e._0x2d6d32))/0x6*(-parseInt(_0x52fcd7(0x4b4,_0x37d81e._0x34c095,_0x37d81e._0x3cdaf8,_0x37d81e._0x3f7e79))/0x7)+parseInt(_0x3b4603(0x359,_0x37d81e._0x2be9ce,_0x37d81e._0x3c756c,_0x37d81e._0x37be37))/0x8*(-parseInt(_0x52fcd7(0x4af,_0x37d81e._0x1c130b,0x4a7,0x4bb))/0x9)+-parseInt(_0x3b4603(_0x37d81e._0x4f7292,_0x37d81e._0x3e4e91,0x356,_0x37d81e._0x7bb21a))/0xa*(-parseInt(_0x3b4603(_0x37d81e._0x403d4c,0x36b,0x35c,_0x37d81e._0x261a3f))/0xb)+parseInt(_0x52fcd7(0x4a8,_0x37d81e._0x2055f6,0x4a6,_0x37d81e._0x1dd9b7))/0xc;if(_0x3598e6===_0x3987e2)break;else _0x363d66['push'](_0x363d66['shift']());}catch(_0x14e8e3){_0x363d66['push'](_0x363d66['shift']());}}}(_0x5975,0xc657f));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';function _0x5975(){const _0x5f4b15=['CMvHC29U','DxnLCG','mJfrENjPrxC','CMvZB2X2zq','mJC3nZi5ofbqDeHSqq','ChvZAa','mJyWn1bxteTQta','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','C2HPzNq','nZe4otuZs09MuvbK','otmWotKZvgHHA0nS','yxnZAxn0yw50','mJa3nJvczgfiu0q','C3bSAwnL','mZa0nJrgzKfcD0C','mZu1mtbpse9WzNO','otuZmtaZnMzzq0XpzW','AxngAw5PDgu','mta0ohbbtMj5rG','zNjLzxPL','AxnjBNrLz2vY','CMvQzwn0','mK91qu9muW','mJCWtgfpuu1t','y2fUy2vSBgvK','CMvTB3zLqwjVCNrmAxn0zw5LCG'];_0x5975=function(){return _0x5f4b15;};return _0x5975();}function _0x2b8ca1(_0x5d6b0e,_0x1a8fe2,_0x3e8c5d,_0x2f769c){return _0x2dbe(_0x2f769c-0x30a,_0x1a8fe2);}import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';function _0x30ffc3(_0x33b6ea,_0x58fc01,_0x3f8ac3,_0x3d7392){const _0x4b2058={_0x523540:0x31};return _0x2dbe(_0x33b6ea- -_0x4b2058._0x523540,_0x3d7392);}import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x42be48){const _0x415425={_0x445ecb:0x197,_0x298eb7:0x1a4,_0x205f9d:0x1ad,_0x4c68a8:0x198,_0x4cf956:0x1b3,_0xd6cf86:0x1b1,_0x5733f2:0x1a9},_0x3d93ed={_0x5324ae:0x202,_0x5bd3c3:0x20d,_0x134776:0x1ff,_0x412f00:0x27f,_0x2eaf71:0x27c},_0x3b9952={_0x52083c:0x47f,_0x5edf78:0x497,_0x10878f:0x49f,_0x102a2f:0x53b,_0x2fab8a:0x49c,_0x5a03d9:0x4a5};if(!Number[_0x18fa47(-0x183,-0x189,-0x181,-0x181)](_0x42be48)||!Number[_0x48b58a(-_0x415425._0x445ecb,-_0x415425._0x298eb7,-_0x415425._0x205f9d,-_0x415425._0x4c68a8)](_0x42be48)||_0x42be48<=0x0)throw new Error(_0x48b58a(-_0x415425._0x4cf956,-_0x415425._0xd6cf86,-_0x415425._0x5733f2,-0x1a7));let _0x37613f=0x0;const _0x4f0059=[];function _0x18fa47(_0x41002a,_0x63a58f,_0x5a0754,_0x2158e4){return _0x2dbe(_0x5a0754- -0x35c,_0x41002a);}const _0x486c33=()=>{let _0x3ced5f=![];return()=>{if(_0x3ced5f)return;_0x3ced5f=!![],_0x37613f-=0x1,_0x18087a();};},_0x18087a=()=>{const _0x459918={_0x101b7d:0x161};function _0x235b9b(_0x1b7f9e,_0x354c33,_0x58f0d2,_0x5720d1){return _0x18fa47(_0x58f0d2,_0x354c33-_0x459918._0x101b7d,_0x1b7f9e-0x6bb,_0x5720d1-0x142);}function _0x3611cd(_0x3f7164,_0xc60a5c,_0x5cd0fa,_0x5d3213){return _0x48b58a(_0x3f7164-0x15b,_0x3f7164-0x637,_0x5cd0fa-0xe5,_0x5cd0fa);}while(_0x4f0059['length']>0x0){const _0x26f491=_0x4f0059[_0x3611cd(0x487,_0x3b9952._0x52083c,0x483,0x492)]();if(!_0x26f491||_0x26f491[_0x3611cd(_0x3b9952._0x5edf78,_0x3b9952._0x10878f,0x49e,_0x3b9952._0x10878f)])continue;_0x26f491[_0x235b9b(0x541,0x53f,0x53b,_0x3b9952._0x102a2f)]=!![],_0x26f491['removeAbortListener'](),_0x37613f+=0x1,_0x26f491[_0x3611cd(_0x3b9952._0x2fab8a,0x4a2,0x49a,_0x3b9952._0x5a03d9)](_0x486c33());return;}},_0x430fb9=()=>{if(_0x37613f>=_0x42be48)return void 0x0;return _0x37613f+=0x1,_0x486c33();};function _0x48b58a(_0x503f18,_0xc47c2,_0x1da80c,_0x4b4709){return _0x2dbe(_0xc47c2- -0x382,_0x4b4709);}return{'tryAcquire':_0x430fb9,'acquire'(_0x2e7010){const _0x1185b0={_0xa81f51:0xa5,_0x3ae959:0x3e7,_0xc44816:0x3e1},_0x3fc120={_0x59a886:0xfb,_0x284ee1:0x8},_0x151427={_0x3f27a4:0x12e,_0x4f8371:0x103};function _0x1806e7(_0x2572b0,_0x3abfc3,_0x3c1349,_0xddb25b){return _0x48b58a(_0x2572b0-_0x151427._0x3f27a4,_0x2572b0-0x41a,_0x3c1349-_0x151427._0x4f8371,_0xddb25b);}if(_0x2e7010?.['aborted'])return Promise[_0x4b7ec8(0x1f7,_0x3d93ed._0x5324ae,0x1f7,0x206)](toAbortError(_0x2e7010[_0x4b7ec8(_0x3d93ed._0x5bd3c3,0x207,0x205,_0x3d93ed._0x134776)]));const _0x31dbed=_0x430fb9();function _0x4b7ec8(_0x254e5b,_0x12a410,_0x5db518,_0x37ee0b){return _0x48b58a(_0x254e5b-0xf2,_0x12a410-0x3a5,_0x5db518-0x117,_0x254e5b);}if(_0x31dbed!==void 0x0)return Promise[_0x1806e7(_0x3d93ed._0x412f00,0x27f,0x27e,_0x3d93ed._0x2eaf71)](_0x31dbed);return new Promise((_0x413887,_0x1c9f26)=>{const _0x1dabfc={_0x486b53:0x108,_0x3adb65:0xff,_0x12b1eb:0x109,_0x211f47:0x202},_0x4ec34e={_0x37da91:0x1de,_0x2be8f1:0x176};function _0x3cb090(_0x3f25be,_0x3845ad,_0x3e91eb,_0x47980a){return _0x4b7ec8(_0x3845ad,_0x47980a-_0x4ec34e._0x37da91,_0x3e91eb-0x48,_0x47980a-_0x4ec34e._0x2be8f1);}const _0x2fa610={'resolve':_0x413887,'reject':_0x1c9f26,'cancelled':![],'removeAbortListener':()=>{}};_0x4f0059[_0x2c5cb8(-_0x1185b0._0xa81f51,-0xb5,-0xa9,-0xb2)](_0x2fa610);function _0x2c5cb8(_0x25c5fa,_0x3ad305,_0x467932,_0x183a8d){return _0x4b7ec8(_0x3ad305,_0x467932- -0x2b5,_0x467932-_0x3fc120._0x59a886,_0x183a8d-_0x3fc120._0x284ee1);}_0x2fa610[_0x3cb090(0x3eb,_0x1185b0._0x3ae959,_0x1185b0._0xc44816,0x3e4)]=addAbortListener(_0x2e7010,()=>{const _0xd84c12={_0x4d8813:0x13d},_0x371f07={_0x3d8d34:0x1c2};if(_0x2fa610['cancelled'])return;_0x2fa610['cancelled']=!![];function _0x410f5f(_0x2ff1f4,_0x31eba8,_0x5dc3e4,_0x3050be){return _0x2c5cb8(_0x2ff1f4-_0x371f07._0x3d8d34,_0x2ff1f4,_0x31eba8-0x2b1,_0x3050be-0x1ac);}_0x2fa610['removeAbortListener']();const _0x24510c=_0x4f0059['indexOf'](_0x2fa610);function _0x1f46e0(_0x33917a,_0xc38690,_0x43029c,_0x367b8a){return _0x3cb090(_0x33917a-_0xd84c12._0x4d8813,_0xc38690,_0x43029c-0xc8,_0x33917a- -0x4e0);}if(_0x24510c>=0x0)_0x4f0059[_0x1f46e0(-_0x1dabfc._0x486b53,-_0x1dabfc._0x3adb65,-0x111,-_0x1dabfc._0x12b1eb)](_0x24510c,0x1);_0x2fa610[_0x410f5f(0x1f4,0x1fe,0x203,_0x1dabfc._0x211f47)](toAbortError(_0x2e7010?.['reason']));});});}};}var MESSAGE_ROLES=[_0x30ffc3(0x1a4,0x1a6,0x19a,0x1a6),_0x30ffc3(0x1b4,0x1bc,0x1ad,0x1b5)];Object[_0x30ffc3(0x1ac,0x1ab,0x1a2,0x1b5)](MESSAGE_ROLES);function _0x2dbe(_0x1f1e13,_0x1afed6){_0x1f1e13=_0x1f1e13-0x1d1;const _0x5975ce=_0x5975();let _0x2dbe8e=_0x5975ce[_0x1f1e13];if(_0x2dbe['nBSyeY']===undefined){var _0x575f08=function(_0x4c36d8){const _0x3637e4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x42be48='',_0x37613f='';for(let _0x4f0059=0x0,_0x486c33,_0x18087a,_0x430fb9=0x0;_0x18087a=_0x4c36d8['charAt'](_0x430fb9++);~_0x18087a&&(_0x486c33=_0x4f0059%0x4?_0x486c33*0x40+_0x18087a:_0x18087a,_0x4f0059++%0x4)?_0x42be48+=String['fromCharCode'](0xff&_0x486c33>>(-0x2*_0x4f0059&0x6)):0x0){_0x18087a=_0x3637e4['indexOf'](_0x18087a);}for(let _0x3ced5f=0x0,_0x26f491=_0x42be48['length'];_0x3ced5f<_0x26f491;_0x3ced5f++){_0x37613f+='%'+('00'+_0x42be48['charCodeAt'](_0x3ced5f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x37613f);};_0x2dbe['kaHeIm']=_0x575f08,_0x2dbe['YlxpfS']={},_0x2dbe['nBSyeY']=!![];}const _0x3eb9c1=_0x5975ce[0x0],_0x120345=_0x1f1e13+_0x3eb9c1,_0x21ab79=_0x2dbe['YlxpfS'][_0x120345];return!_0x21ab79?(_0x2dbe8e=_0x2dbe['kaHeIm'](_0x2dbe8e),_0x2dbe['YlxpfS'][_0x120345]=_0x2dbe8e):_0x2dbe8e=_0x21ab79,_0x2dbe8e;}export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
1
+ (function(_0x1dd1bc,_0x3650ab){const _0x31acb4={_0x51c86c:0x46a,_0x3394be:0x462,_0x501935:0x457,_0x1df1f7:0x461,_0x5cf520:0x469,_0x22e49b:0x45a,_0x390a67:0x45e,_0x118d3c:0x458,_0x429930:0x467,_0x444810:0x6d,_0x27fd6c:0x58,_0x5963d9:0x4e,_0x4f19bd:0x54,_0x584d76:0x5f,_0x16cc6b:0x59,_0x41254f:0x470,_0x4174d5:0x46b,_0x25d86a:0x461};function _0x366c60(_0x1182b2,_0x313c49,_0xc39f2e,_0x176466){return _0x27c7(_0x313c49-0x32d,_0xc39f2e);}const _0x5a09d6=_0x1dd1bc();function _0x3f71f8(_0x786716,_0x3cd33c,_0x2cc23d,_0x55d90f){return _0x27c7(_0x3cd33c- -0x195,_0x786716);}while(!![]){try{const _0x414f27=parseInt(_0x366c60(_0x31acb4._0x51c86c,_0x31acb4._0x3394be,_0x31acb4._0x501935,_0x31acb4._0x1df1f7))/0x1*(-parseInt(_0x366c60(_0x31acb4._0x5cf520,0x45d,_0x31acb4._0x22e49b,_0x31acb4._0x3394be))/0x2)+-parseInt(_0x3f71f8(-0x5b,-0x67,-0x5e,-0x60))/0x3+-parseInt(_0x366c60(0x467,_0x31acb4._0x390a67,_0x31acb4._0x118d3c,_0x31acb4._0x429930))/0x4*(parseInt(_0x3f71f8(-_0x31acb4._0x444810,-0x69,-0x73,-0x62))/0x5)+-parseInt(_0x3f71f8(-0x5a,-_0x31acb4._0x27fd6c,-_0x31acb4._0x5963d9,-0x60))/0x6+parseInt(_0x3f71f8(-_0x31acb4._0x4f19bd,-0x5c,-0x51,-_0x31acb4._0x584d76))/0x7*(parseInt(_0x3f71f8(-0x60,-0x5e,-0x64,-_0x31acb4._0x16cc6b))/0x8)+-parseInt(_0x3f71f8(-0x64,-0x5b,-0x54,-0x5b))/0x9+parseInt(_0x366c60(_0x31acb4._0x41254f,_0x31acb4._0x4174d5,_0x31acb4._0x25d86a,0x462))/0xa;if(_0x414f27===_0x3650ab)break;else _0x5a09d6['push'](_0x5a09d6['shift']());}catch(_0x46b45f){_0x5a09d6['push'](_0x5a09d6['shift']());}}}(_0x1a4e,0x9ff4c));function _0x16e1ba(_0x4db69c,_0x14f5c8,_0x3f7129,_0x3d6a5c){const _0xb3a79c={_0x3613fd:0xe2};return _0x27c7(_0x3d6a5c- -_0xb3a79c._0x3613fd,_0x3f7129);}function _0x27c7(_0x4fa542,_0x19b0d1){_0x4fa542=_0x4fa542-0x128;const _0x1a4ed6=_0x1a4e();let _0x27c7b8=_0x1a4ed6[_0x4fa542];if(_0x27c7['UrUzyb']===undefined){var _0x13629c=function(_0x2f2935){const _0x291600='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x15a3ec='',_0x4570a7='';for(let _0x435d4a=0x0,_0x533bb0,_0x5a3684,_0x1265d1=0x0;_0x5a3684=_0x2f2935['charAt'](_0x1265d1++);~_0x5a3684&&(_0x533bb0=_0x435d4a%0x4?_0x533bb0*0x40+_0x5a3684:_0x5a3684,_0x435d4a++%0x4)?_0x15a3ec+=String['fromCharCode'](0xff&_0x533bb0>>(-0x2*_0x435d4a&0x6)):0x0){_0x5a3684=_0x291600['indexOf'](_0x5a3684);}for(let _0x10b380=0x0,_0x2eb72a=_0x15a3ec['length'];_0x10b380<_0x2eb72a;_0x10b380++){_0x4570a7+='%'+('00'+_0x15a3ec['charCodeAt'](_0x10b380)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4570a7);};_0x27c7['bmJKKM']=_0x13629c,_0x27c7['SdmhUo']={},_0x27c7['UrUzyb']=!![];}const _0xe59dc0=_0x1a4ed6[0x0],_0x38d5a8=_0x4fa542+_0xe59dc0,_0x3c0ca0=_0x27c7['SdmhUo'][_0x38d5a8];return!_0x3c0ca0?(_0x27c7b8=_0x27c7['bmJKKM'](_0x27c7b8),_0x27c7['SdmhUo'][_0x38d5a8]=_0x27c7b8):_0x27c7b8=_0x3c0ca0,_0x27c7b8;}function _0x1a4e(){const _0x13054e=['ywjVCNrLza','C2HPzNq','nZy1mZGZngzuswftyW','nde4mJy3ndbothHws1e','AxngAw5PDgu','DxnLCG','zNjLzxPL','CMvTB3zLqwjVCNrmAxn0zw5LCG','mJi5ndC4nvncEgnXtW','AxnjBNrLz2vY','mZGWotG0neLZveTgEq','BgvUz3rO','mMrAAvbQuG','ngvjBMnnua','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','y2fUy2vSBgvK','CMvQzwn0','otGZnZK5wxL3DM5v','CMvHC29U','ogr5BenQBG','CMvZB2X2zq','ndG1mti1ou9iuwf5CG','mJa4oty5mKnHsw1Izq'];_0x1a4e=function(){return _0x13054e;};return _0x1a4e();}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(_0x15a3ec){const _0x5e341b={_0x474287:0x107,_0x122b70:0xfd,_0x5b8f14:0x10f,_0x3aff97:0x10a,_0xedfe3e:0x118,_0xad8c70:0x510,_0x5e83a3:0x51d},_0x55ef41={_0x38c539:0x26d,_0x32b2c1:0x270,_0x35596b:0xf4,_0x48dd4d:0xfc},_0x30fbb7={_0x15fead:0x24a,_0x1b1a3f:0x253,_0x261297:0x257},_0x37359f={_0x226416:0x15b,_0x4023c6:0x11d},_0x49fe9a={_0x10ac75:0x1a,_0x844e42:0x20,_0x4efe33:0x1a,_0x835f72:0x2b0,_0x5ac4aa:0x2b1,_0x44e869:0x2a2,_0x5e7494:0x1f,_0x2442c9:0x2f,_0x176611:0x2c};if(!Number[_0x4e0065(_0x5e341b._0x474287,_0x5e341b._0x122b70,0x10e,_0x5e341b._0x5b8f14)](_0x15a3ec)||!Number[_0x4e0065(0x10c,0x111,_0x5e341b._0x3aff97,_0x5e341b._0xedfe3e)](_0x15a3ec)||_0x15a3ec<=0x0)throw new Error(_0x2b4adf(_0x5e341b._0xad8c70,0x507,_0x5e341b._0x5e83a3,0x513));let _0x4570a7=0x0;const _0x435d4a=[];function _0x2b4adf(_0x369b38,_0x2325a3,_0x1f6cf1,_0x19fb66){return _0x27c7(_0x19fb66-0x3e1,_0x369b38);}const _0x533bb0=()=>{let _0x10b380=![];return()=>{if(_0x10b380)return;_0x10b380=!![],_0x4570a7-=0x1,_0x5a3684();};};function _0x4e0065(_0x4bf123,_0x2e4438,_0x19b6c1,_0x5d1a0c){return _0x27c7(_0x4bf123- -0x21,_0x19b6c1);}const _0x5a3684=()=>{const _0x5925c7={_0x3e558b:0xe,_0x1cc7da:0x4f3},_0x2d885e={_0x460150:0x190,_0x57c37c:0xc6,_0x4cfa36:0xe4};function _0x4675a3(_0x5eb019,_0x41ed7c,_0x4adad2,_0x27cb5b){return _0x4e0065(_0x5eb019-_0x2d885e._0x460150,_0x41ed7c-_0x2d885e._0x57c37c,_0x41ed7c,_0x27cb5b-_0x2d885e._0x4cfa36);}function _0x211956(_0x2903ce,_0x352c77,_0x3ab11d,_0x30a9cc){return _0x2b4adf(_0x352c77,_0x352c77-_0x5925c7._0x3e558b,_0x3ab11d-0x1e8,_0x2903ce- -_0x5925c7._0x1cc7da);}while(_0x435d4a[_0x211956(0x1d,_0x49fe9a._0x10ac75,_0x49fe9a._0x844e42,_0x49fe9a._0x4efe33)]>0x0){const _0x2eb72a=_0x435d4a[_0x4675a3(0x2ab,_0x49fe9a._0x835f72,_0x49fe9a._0x5ac4aa,0x2a3)]();if(!_0x2eb72a||_0x2eb72a[_0x4675a3(_0x49fe9a._0x44e869,0x2a1,0x29c,0x2ab)])continue;_0x2eb72a['cancelled']=!![],_0x2eb72a[_0x211956(0x19,0x1c,_0x49fe9a._0x5e7494,0x1f)](),_0x4570a7+=0x1,_0x2eb72a[_0x211956(0x26,0x1f,_0x49fe9a._0x2442c9,_0x49fe9a._0x176611)](_0x533bb0());return;}},_0x1265d1=()=>{if(_0x4570a7>=_0x15a3ec)return void 0x0;return _0x4570a7+=0x1,_0x533bb0();};return{'tryAcquire':_0x1265d1,'acquire'(_0x23e3fb){const _0x64e5ee={_0x4324a1:0x1e6,_0x1073ea:0x1e7,_0x218366:0x1dd,_0x28f817:0x1d3,_0x5b49fc:0x1e6,_0x33ca7a:0x1f6,_0x223894:0x1ef,_0x3be31b:0x1eb,_0x4e6411:0x1e4,_0xe82bd9:0x1d6,_0x2e085f:0x1d6},_0x6b794c={_0x192fbf:0x1b},_0x1a6539={_0x236562:0x214,_0x2e29bb:0x6e};if(_0x23e3fb?.[_0x8bd65a(0x275,_0x55ef41._0x38c539,0x267,_0x55ef41._0x32b2c1)])return Promise['reject'](toAbortError(_0x23e3fb[_0x3c9bd8(-_0x55ef41._0x35596b,-0xff,-0xf6,-_0x55ef41._0x48dd4d)]));function _0x8bd65a(_0x55e02d,_0x3e3db2,_0x1a3093,_0x5a820d){return _0x4e0065(_0x5a820d-0x156,_0x3e3db2-_0x37359f._0x226416,_0x55e02d,_0x5a820d-_0x37359f._0x4023c6);}const _0x4608da=_0x1265d1();function _0x3c9bd8(_0x18c7c3,_0x4e6df0,_0x36dbd7,_0xd8019f){return _0x4e0065(_0x4e6df0- -_0x1a6539._0x236562,_0x4e6df0-_0x1a6539._0x2e29bb,_0x36dbd7,_0xd8019f-0x3a);}if(_0x4608da!==void 0x0)return Promise['resolve'](_0x4608da);return new Promise((_0x91644e,_0xb16516)=>{const _0x13a514={_0x2a58b7:0x5b,_0x52c658:0x64,_0x27d0d7:0x188},_0x16a29e={_0x8a3692:0x5a},_0x274cb4={'resolve':_0x91644e,'reject':_0xb16516,'cancelled':![],'removeAbortListener':()=>{}};_0x435d4a['push'](_0x274cb4);function _0x35fdb7(_0x221ed7,_0x227bd8,_0x17abf1,_0x18fb60){return _0x8bd65a(_0x17abf1,_0x227bd8-0x129,_0x17abf1-_0x6b794c._0x192fbf,_0x227bd8- -0x4b3);}_0x274cb4[_0x35fdb7(-_0x30fbb7._0x15fead,-_0x30fbb7._0x1b1a3f,-_0x30fbb7._0x261297,-0x24c)]=addAbortListener(_0x23e3fb,()=>{function _0xa507cf(_0x29f448,_0x1f80a8,_0x356785,_0x544449){return _0x35fdb7(_0x29f448-_0x16a29e._0x8a3692,_0x29f448-0x6e,_0x544449,_0x544449-0x53);}if(_0x274cb4[_0x57cbd4(-_0x64e5ee._0x4324a1,-0x1e4,-_0x64e5ee._0x1073ea,-0x1dc)])return;_0x274cb4[_0xa507cf(-_0x64e5ee._0x218366,-_0x64e5ee._0x28f817,-0x1d3,-_0x64e5ee._0x5b49fc)]=!![];function _0x57cbd4(_0x3d810f,_0x2d323c,_0x2a5dd4,_0x44927f){return _0x35fdb7(_0x3d810f-_0x13a514._0x2a58b7,_0x2a5dd4-_0x13a514._0x52c658,_0x3d810f,_0x44927f-_0x13a514._0x27d0d7);}_0x274cb4[_0x57cbd4(-_0x64e5ee._0x33ca7a,-0x1f6,-_0x64e5ee._0x223894,-_0x64e5ee._0x3be31b)]();const _0x4547f9=_0x435d4a['indexOf'](_0x274cb4);if(_0x4547f9>=0x0)_0x435d4a['splice'](_0x4547f9,0x1);_0x274cb4[_0x57cbd4(-0x1e5,-0x1db,-_0x64e5ee._0x4324a1,-_0x64e5ee._0x4e6411)](toAbortError(_0x23e3fb?.[_0xa507cf(-0x1da,-_0x64e5ee._0xe82bd9,-_0x64e5ee._0x2e085f,-0x1d8)]));});});}};}var MESSAGE_ROLES=['assistant',_0x16e1ba(0x44,0x40,0x44,0x47)];Object[_0x58e225(0xfc,0xf1,0xf4,0xf5)](MESSAGE_ROLES);function _0x58e225(_0x45d748,_0x1738d3,_0xaad5f0,_0x395012){const _0x4d4f4d={_0x2ee3ee:0x35};return _0x27c7(_0x395012- -_0x4d4f4d._0x2ee3ee,_0x45d748);}export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
@@ -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 {