@nuvin/agent-core 0.4.0-rc.7 → 0.4.0-rc.9

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.
@@ -41,7 +41,7 @@ export interface ResolvedModelProfile {
41
41
  export declare const REASONING_METADATA_VERSIONS: {
42
42
  readonly anthropic: "2026-07-22";
43
43
  readonly openai: "2026-07-22";
44
- readonly codex: "0.153.4+3d2ee51ca2d5db578f328aa75e20aa22c0197c9a";
44
+ readonly codex: "0.156.1+b412ff32c417f855c2b2d1581b77058eed87c84b";
45
45
  };
46
46
  export declare function getProviderProfile(provider: string): ProviderProfile | undefined;
47
47
  export declare function getModelProfile(provider: string, model: string): ModelProfile | undefined;
@@ -1 +1 @@
1
- function _0x20b8(){const _0x106d8d=['ywjVCNrLza','AxngAw5PDgu','zNjLzxPL','AxnjBNrLz2vY','y2fUy2vSBgvK','mtq4mtrwq1r1zgq','n01SvhDmvW','CMvHC29U','yxnZAxn0yw50','ntuZmduWt25fC3bS','CMvTB3zLqwjVCNrmAxn0zw5LCG','CMvQzwn0','nJm0mZyYmhHrsuj4wq','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','CMvZB2X2zq','mtfdAM9gsNO','ntGWodH0wMDbse8','mta3odm2odzqtMPwtKW','mtm0mw94ug5MBW','C2HPzNq','mJe2ntuYotbTCwr1vgK','mZa4nJe2nvjUwfDhBG','mtG5zLvuELDX'];_0x20b8=function(){return _0x106d8d;};return _0x20b8();}(function(_0x24ca1f,_0x226d4b){const _0x5b47d9={_0x369fd0:0x40c,_0x53d134:0x407,_0x18e19a:0x205,_0x4c4d21:0x215,_0x432d6a:0x20e,_0x593c46:0x407,_0x4ca38e:0x405,_0x437d5b:0x3fb,_0x224076:0x406,_0x4afefb:0x211,_0x2150a2:0x3f1,_0x5d3375:0x3ed,_0x56d370:0x3f9,_0x2392b2:0x3ff,_0x5aff02:0x3f6,_0xfe50ca:0x401,_0xca5b70:0x40d,_0x218fb7:0x213,_0x3022b7:0x214},_0x15ac56={_0x2d5d09:0x1ff};function _0xe9222d(_0x1eda21,_0xb77d66,_0x2b8375,_0x29b99a){return _0x502e(_0x2b8375-_0x15ac56._0x2d5d09,_0xb77d66);}const _0xd97d4f=_0x24ca1f();function _0x5b5123(_0x108b0e,_0x3438db,_0x2f38b0,_0x5418c3){return _0x502e(_0x2f38b0-0x15,_0x5418c3);}while(!![]){try{const _0x3cee52=-parseInt(_0xe9222d(_0x5b47d9._0x369fd0,0x40b,0x405,_0x5b47d9._0x53d134))/0x1*(-parseInt(_0x5b5123(_0x5b47d9._0x18e19a,0x201,0x20a,0x205))/0x2)+parseInt(_0x5b5123(_0x5b47d9._0x4c4d21,0x215,_0x5b47d9._0x432d6a,0x217))/0x3+parseInt(_0xe9222d(_0x5b47d9._0x593c46,_0x5b47d9._0x4ca38e,_0x5b47d9._0x437d5b,0x406))/0x4+parseInt(_0xe9222d(_0x5b47d9._0x224076,0x400,0x404,0x400))/0x5+parseInt(_0x5b5123(0x222,0x216,0x216,_0x5b47d9._0x4afefb))/0x6*(-parseInt(_0xe9222d(0x3ed,_0x5b47d9._0x2150a2,0x3f5,_0x5b47d9._0x5d3375))/0x7)+parseInt(_0xe9222d(_0x5b47d9._0x56d370,0x407,_0x5b47d9._0x2392b2,0x3fe))/0x8*(parseInt(_0xe9222d(_0x5b47d9._0x5aff02,0x3f5,_0x5b47d9._0xfe50ca,0x3f6))/0x9)+-parseInt(_0xe9222d(_0x5b47d9._0xca5b70,0x40c,0x403,0x408))/0xa*(parseInt(_0x5b5123(_0x5b47d9._0x218fb7,0x211,_0x5b47d9._0x3022b7,0x21c))/0xb);if(_0x3cee52===_0x226d4b)break;else _0xd97d4f['push'](_0xd97d4f['shift']());}catch(_0x5a7366){_0xd97d4f['push'](_0xd97d4f['shift']());}}}(_0x20b8,0xdd4fa));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';function _0x502e(_0x18ff33,_0x64d14d){_0x18ff33=_0x18ff33-0x1f1;const _0x20b809=_0x20b8();let _0x502e76=_0x20b809[_0x18ff33];if(_0x502e['KHdaVP']===undefined){var _0x4a5aac=function(_0x5d9fc9){const _0x45ce8b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x9fcd28='',_0x3478ac='';for(let _0x1093f4=0x0,_0x3a92c9,_0x1c9461,_0x26980c=0x0;_0x1c9461=_0x5d9fc9['charAt'](_0x26980c++);~_0x1c9461&&(_0x3a92c9=_0x1093f4%0x4?_0x3a92c9*0x40+_0x1c9461:_0x1c9461,_0x1093f4++%0x4)?_0x9fcd28+=String['fromCharCode'](0xff&_0x3a92c9>>(-0x2*_0x1093f4&0x6)):0x0){_0x1c9461=_0x45ce8b['indexOf'](_0x1c9461);}for(let _0x248f1a=0x0,_0x2c30ff=_0x9fcd28['length'];_0x248f1a<_0x2c30ff;_0x248f1a++){_0x3478ac+='%'+('00'+_0x9fcd28['charCodeAt'](_0x248f1a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3478ac);};_0x502e['cLINDU']=_0x4a5aac,_0x502e['getxVP']={},_0x502e['KHdaVP']=!![];}const _0x49270f=_0x20b809[0x0],_0x5bbd2e=_0x18ff33+_0x49270f,_0xff470d=_0x502e['getxVP'][_0x5bbd2e];return!_0xff470d?(_0x502e76=_0x502e['cLINDU'](_0x502e76),_0x502e['getxVP'][_0x5bbd2e]=_0x502e76):_0x502e76=_0xff470d,_0x502e76;}import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';function _0x48bf2a(_0x42ce6c,_0x50fd14,_0x3a15db,_0x42320b){return _0x502e(_0x42320b-0xe9,_0x42ce6c);}import{TurnFailedError,isAgentOnlyBashCompletion,isAgentOnlyCoordinatorNotice}from'../chunk-YTDATWXW.js';function _0xc538d6(_0x5e2c09,_0x41eb23,_0x337518,_0xa0dc87){const _0x5c1707={_0x5c88d1:0x24};return _0x502e(_0x337518- -_0x5c1707._0x5c88d1,_0x41eb23);}import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x9fcd28){const _0x4e9ef0={_0x3814ec:0x9a,_0x367dc8:0x91,_0x1319ff:0x85,_0x308a4c:0x366,_0x4054d6:0x35e,_0xdb3d21:0xa7},_0x4da3c1={_0x484c4e:0x34c,_0x522f9e:0x356,_0x1ece1b:0x344,_0x3e272f:0x350,_0x405606:0x9c,_0xd8b7df:0x94},_0x56f9bb={_0x515fb4:0x310,_0x2d7558:0x317},_0x4d8e0e={_0x328d0e:0x128,_0x145256:0x1ba,_0x5d19cb:0x2a9},_0x4528df={_0x3db4cf:0x220,_0x3721c7:0x213,_0x1db0f6:0x215,_0x12c255:0x48d,_0x43d16b:0x49e,_0x1a9cf9:0x208,_0x49bba3:0x49d,_0x38bc25:0x4a7,_0xbac8cb:0x4a4,_0x51357a:0x4a1,_0x222a05:0x49f};if(!Number[_0x30b25d(0x85,_0x4e9ef0._0x3814ec,_0x4e9ef0._0x367dc8,_0x4e9ef0._0x1319ff)](_0x9fcd28)||!Number[_0x4454f7(_0x4e9ef0._0x308a4c,0x364,_0x4e9ef0._0x4054d6,0x35a)](_0x9fcd28)||_0x9fcd28<=0x0)throw new Error(_0x30b25d(_0x4e9ef0._0xdb3d21,0x96,0x9d,_0x4e9ef0._0x3814ec));let _0x3478ac=0x0;const _0x1093f4=[];function _0x30b25d(_0x16403b,_0x17727c,_0x4356d5,_0x213710){return _0x502e(_0x4356d5- -0x160,_0x213710);}const _0x3a92c9=()=>{let _0x248f1a=![];return()=>{if(_0x248f1a)return;_0x248f1a=!![],_0x3478ac-=0x1,_0x1c9461();};};function _0x4454f7(_0x53ff40,_0x2abdb2,_0xc17a7d,_0x508eae){return _0x502e(_0x53ff40-0x173,_0x2abdb2);}const _0x1c9461=()=>{const _0x4c832c={_0x444196:0x130,_0x490f88:0x18a};function _0x4d709e(_0xaecfcd,_0x2c1802,_0x168d19,_0x338949){return _0x30b25d(_0xaecfcd-0x14d,_0x2c1802-0x18a,_0x338949-0x172,_0x168d19);}function _0x420aad(_0xf718aa,_0x13d2ce,_0x54d9f5,_0x239356){return _0x4454f7(_0xf718aa-_0x4c832c._0x444196,_0x13d2ce,_0x54d9f5-0x100,_0x239356-_0x4c832c._0x490f88);}while(_0x1093f4['length']>0x0){const _0x2c30ff=_0x1093f4[_0x4d709e(_0x4528df._0x3db4cf,_0x4528df._0x3721c7,0x214,_0x4528df._0x1db0f6)]();if(!_0x2c30ff||_0x2c30ff[_0x420aad(0x497,0x492,_0x4528df._0x12c255,_0x4528df._0x43d16b)])continue;_0x2c30ff[_0x4d709e(_0x4528df._0x1a9cf9,0x1ff,0x208,0x206)]=!![],_0x2c30ff[_0x420aad(_0x4528df._0x49bba3,_0x4528df._0x38bc25,_0x4528df._0xbac8cb,_0x4528df._0x51357a)](),_0x3478ac+=0x1,_0x2c30ff[_0x420aad(_0x4528df._0x51357a,_0x4528df._0x43d16b,0x497,_0x4528df._0x222a05)](_0x3a92c9());return;}},_0x26980c=()=>{if(_0x3478ac>=_0x9fcd28)return void 0x0;return _0x3478ac+=0x1,_0x3a92c9();};return{'tryAcquire':_0x26980c,'acquire'(_0x297369){const _0x397f8f={_0x58c22f:0x18a},_0x1ab84c={_0x39c316:0x12d,_0x3ed2c9:0x140};function _0x4838af(_0x1ea9ca,_0x169527,_0x4f91c8,_0x83bbf){return _0x30b25d(_0x1ea9ca-_0x4d8e0e._0x328d0e,_0x169527-_0x4d8e0e._0x145256,_0x83bbf-_0x4d8e0e._0x5d19cb,_0x4f91c8);}if(_0x297369?.[_0x4838af(_0x4da3c1._0x484c4e,_0x4da3c1._0x522f9e,_0x4da3c1._0x1ece1b,_0x4da3c1._0x3e272f)])return Promise['reject'](toAbortError(_0x297369['reason']));const _0x25d320=_0x26980c();if(_0x25d320!==void 0x0)return Promise[_0x45f843(-0x93,-_0x4da3c1._0x405606,-0x97,-_0x4da3c1._0xd8b7df)](_0x25d320);function _0x45f843(_0x3f0355,_0x46d97b,_0x2fef9f,_0x112d15){return _0x4454f7(_0x112d15- -0x405,_0x46d97b,_0x2fef9f-_0x1ab84c._0x39c316,_0x112d15-_0x1ab84c._0x3ed2c9);}return new Promise((_0x4ac6a0,_0x57ce09)=>{const _0x7678bd={_0x3b6f25:0x33d,_0x4d361d:0x34c,_0x2ad989:0x346,_0x1db77b:0x52b,_0x5c6893:0x535,_0x32a5e0:0x531,_0x5e8778:0x34c,_0x2a6b59:0x350,_0x357b33:0x34a,_0x2c459a:0x348},_0x31e1a1={_0x6a51b7:0x22d},_0x1b594e={_0xbb7e73:0x1e0},_0x2a8a6a={'resolve':_0x4ac6a0,'reject':_0x57ce09,'cancelled':![],'removeAbortListener':()=>{}};function _0x44b322(_0x759721,_0x1a578a,_0xa5b570,_0x5c4f4f){return _0x45f843(_0x759721-0x10f,_0x759721,_0xa5b570-_0x397f8f._0x58c22f,_0xa5b570-0x3a6);}_0x1093f4['push'](_0x2a8a6a),_0x2a8a6a[_0x44b322(_0x56f9bb._0x515fb4,_0x56f9bb._0x2d7558,0x30e,0x309)]=addAbortListener(_0x297369,()=>{function _0x5ef78b(_0x29c01c,_0xfa1d25,_0x5f0b65,_0x475f11){return _0x44b322(_0x5f0b65,_0xfa1d25-_0x1b594e._0xbb7e73,_0x475f11-0x3e,_0x475f11-0x1d);}function _0x4cb82b(_0x12ddff,_0x246e54,_0xb1b1f9,_0x50b484){return _0x44b322(_0x50b484,_0x246e54-0x47,_0x246e54-_0x31e1a1._0x6a51b7,_0x50b484-0xe4);}if(_0x2a8a6a[_0x5ef78b(_0x7678bd._0x3b6f25,_0x7678bd._0x4d361d,0x345,_0x7678bd._0x2ad989)])return;_0x2a8a6a[_0x4cb82b(_0x7678bd._0x1db77b,_0x7678bd._0x5c6893,0x53a,_0x7678bd._0x32a5e0)]=!![],_0x2a8a6a[_0x5ef78b(0x354,0x34a,0x343,_0x7678bd._0x5e8778)]();const _0x35501a=_0x1093f4['indexOf'](_0x2a8a6a);if(_0x35501a>=0x0)_0x1093f4['splice'](_0x35501a,0x1);_0x2a8a6a[_0x5ef78b(0x34e,_0x7678bd._0x2a6b59,0x356,0x34d)](toAbortError(_0x297369?.[_0x5ef78b(_0x7678bd._0x357b33,0x349,_0x7678bd._0x2c459a,0x349)]));});});}};}var MESSAGE_ROLES=[_0x48bf2a(0x2d6,0x2ea,0x2de,0x2e1),'user'];Object[_0x48bf2a(0x2d4,0x2d3,0x2d7,0x2db)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,isAgentOnlyBashCompletion,isAgentOnlyCoordinatorNotice,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
1
+ (function(_0x543187,_0x20cce7){const _0xf00720={_0x2f59d5:0x5,_0x26622b:0x3,_0x2403b9:0x6,_0x310356:0x4,_0x6c4865:0x9,_0x11a015:0x12,_0xe1e926:0x13,_0x3c7ec:0xf,_0x4759b2:0x7,_0x860d9b:0x4,_0x2647dd:0x8,_0x13de74:0x10,_0x28e1e2:0x10,_0x35ebda:0x3cc,_0x479d89:0x3e0,_0x1df278:0x27,_0xf025a7:0x18,_0x57f681:0x20,_0x3c8bf6:0x1b,_0x227653:0x16,_0x23fdd1:0x3e2,_0xb80887:0x3e5,_0x12ab9e:0x3ef,_0x345b22:0x3eb,_0x104652:0x17,_0x27e763:0x3e6,_0x9e3896:0x14,_0x23f08b:0x9},_0x5dd74f={_0x2258ef:0x24a};function _0x212eb6(_0x3612b7,_0x45d617,_0x49d637,_0x12f2cd){return _0x32e4(_0x49d637- -0x183,_0x3612b7);}const _0x4162b1=_0x543187();function _0xa36d5c(_0x5cee22,_0x382bd9,_0x9555c8,_0x40eeb7){return _0x32e4(_0x382bd9-_0x5dd74f._0x2258ef,_0x9555c8);}while(!![]){try{const _0x165d63=-parseInt(_0x212eb6(_0xf00720._0x2f59d5,-0x2,_0xf00720._0x26622b,0x9))/0x1*(-parseInt(_0x212eb6(-0x4,0x3,_0xf00720._0x2403b9,_0xf00720._0x310356))/0x2)+-parseInt(_0x212eb6(_0xf00720._0x6c4865,_0xf00720._0x11a015,0x14,_0xf00720._0xe1e926))/0x3+-parseInt(_0x212eb6(_0xf00720._0x3c7ec,_0xf00720._0x4759b2,_0xf00720._0x860d9b,-_0xf00720._0x2647dd))/0x4*(parseInt(_0x212eb6(0x14,_0xf00720._0x13de74,0xf,_0xf00720._0x28e1e2))/0x5)+parseInt(_0xa36d5c(_0xf00720._0x35ebda,0x3d4,_0xf00720._0x479d89,0x3db))/0x6*(parseInt(_0x212eb6(_0xf00720._0x1df278,_0xf00720._0xf025a7,0x1a,_0xf00720._0x57f681))/0x7)+parseInt(_0x212eb6(0x1e,_0xf00720._0x3c8bf6,0x17,_0xf00720._0x227653))/0x8*(-parseInt(_0xa36d5c(_0xf00720._0x23fdd1,_0xf00720._0xb80887,_0xf00720._0x12ab9e,_0xf00720._0x345b22))/0x9)+-parseInt(_0x212eb6(_0xf00720._0x11a015,_0xf00720._0x104652,0x1b,0x10))/0xa*(-parseInt(_0xa36d5c(0x3e6,_0xf00720._0x27e763,_0xf00720._0x345b22,0x3de))/0xb)+parseInt(_0x212eb6(_0xf00720._0x9e3896,0x12,_0xf00720._0x23f08b,-0x3))/0xc;if(_0x165d63===_0x20cce7)break;else _0x4162b1['push'](_0x4162b1['shift']());}catch(_0x5d295d){_0x4162b1['push'](_0x4162b1['shift']());}}}(_0x46fe,0x29186));function _0x32e4(_0x5339de,_0x3381cb){_0x5339de=_0x5339de-0x186;const _0x46fef7=_0x46fe();let _0x32e47d=_0x46fef7[_0x5339de];if(_0x32e4['wVfwDu']===undefined){var _0x279fdd=function(_0x2d20b3){const _0x7dbe23='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21c184='',_0x522cdb='';for(let _0x4e879c=0x0,_0x48f8c5,_0x6dc9e3,_0x5ad759=0x0;_0x6dc9e3=_0x2d20b3['charAt'](_0x5ad759++);~_0x6dc9e3&&(_0x48f8c5=_0x4e879c%0x4?_0x48f8c5*0x40+_0x6dc9e3:_0x6dc9e3,_0x4e879c++%0x4)?_0x21c184+=String['fromCharCode'](0xff&_0x48f8c5>>(-0x2*_0x4e879c&0x6)):0x0){_0x6dc9e3=_0x7dbe23['indexOf'](_0x6dc9e3);}for(let _0x500857=0x0,_0x1e0270=_0x21c184['length'];_0x500857<_0x1e0270;_0x500857++){_0x522cdb+='%'+('00'+_0x21c184['charCodeAt'](_0x500857)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x522cdb);};_0x32e4['RhAbtB']=_0x279fdd,_0x32e4['mlnsvg']={},_0x32e4['wVfwDu']=!![];}const _0x1cee47=_0x46fef7[0x0],_0x583f6e=_0x5339de+_0x1cee47,_0x1b2045=_0x32e4['mlnsvg'][_0x583f6e];return!_0x1b2045?(_0x32e47d=_0x32e4['RhAbtB'](_0x32e47d),_0x32e4['mlnsvg'][_0x583f6e]=_0x32e47d):_0x32e47d=_0x1b2045,_0x32e47d;}function _0x8bd1c4(_0x50d8da,_0x46bc99,_0x1ad446,_0x188c79){return _0x32e4(_0x46bc99-0x1ef,_0x188c79);}import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';function _0x243693(_0x446d39,_0xcb5fb5,_0x2797b7,_0x20bdef){const _0x2c6077={_0x458788:0x3a0};return _0x32e4(_0x446d39- -_0x2c6077._0x458788,_0x20bdef);}import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError,isAgentOnlyBashCompletion,isAgentOnlyCoordinatorNotice}from'../chunk-YTDATWXW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function _0x46fe(){const _0x22c522=['CMvTB3zLqwjVCNrmAxn0zw5LCG','AxngAw5PDgu','Aw5KzxHpzG','mZm2nJvovxDVDuK','CMvHC29U','ywjVCNrLza','ChvZAa','C3bSAwnL','otC5odq4A0LXEhLp','CMvQzwn0','yxnZAxn0yw50','mteXmdy0DxbwuNHz','mtGWrgLpu0fl','mZi1mZKYmwPIEMDwEq','odaZotC4wKjwy0Tu','mtbewLz5Efi','mxjxsMrJrq','ntz5yM9eyuW','zNjLzxPL','nJeZmdyWBfHQDwXR','nLbsA2DXEG','CMvZB2X2zq','mtC5nJaYoe5TAvDkBG','AxnjBNrLz2vY','y2fUy2vSBgvK'];_0x46fe=function(){return _0x22c522;};return _0x46fe();}function createAbortAwareSemaphore(_0x21c184){const _0x3334d9={_0x12af29:0x484,_0x9d25b1:0x48a,_0x5863f7:0x491,_0x2a5af0:0x47f,_0x4620be:0x48f,_0x1a08bb:0x492,_0x1c5b95:0x47f},_0x1c9581={_0xc61437:0x37,_0x155f78:0x456,_0x536d8e:0x44c,_0x1d4977:0x2e,_0x3696d6:0x3a},_0x4b5b1f={_0x4a3af1:0x5c,_0x462c7d:0xcc},_0x47ea03={_0x25d7f9:0x277,_0x373032:0x270,_0x40aee9:0x271,_0x4c9f1e:0x27d,_0x64d6d3:0x26d,_0x2dfce3:0x272,_0x9dfac0:0x268,_0x47b2de:0xf6,_0x4dff62:0xf9,_0x395e76:0x274,_0x2f663a:0x26e,_0x4d72ff:0x263},_0x504d0b={_0x33deb2:0x1b3},_0x351a14={_0x124279:0xf6},_0x14ee48={_0x182161:0x2fa};if(!Number[_0x16de41(_0x3334d9._0x12af29,_0x3334d9._0x9d25b1,_0x3334d9._0x5863f7,_0x3334d9._0x2a5af0)](_0x21c184)||!Number[_0x16de41(_0x3334d9._0x4620be,0x487,_0x3334d9._0x1a08bb,_0x3334d9._0x1c5b95)](_0x21c184)||_0x21c184<=0x0)throw new Error('maxConcurrency\x20must\x20be\x20a\x20finite\x20positive\x20integer');function _0x16de41(_0x43228b,_0x5c9887,_0x3a6bf8,_0x49c35c){return _0x32e4(_0x5c9887-_0x14ee48._0x182161,_0x3a6bf8);}let _0x522cdb=0x0;function _0x2cee80(_0x476732,_0x18e0d7,_0x448208,_0x372a86){return _0x32e4(_0x448208-0x2b2,_0x476732);}const _0x4e879c=[],_0x48f8c5=()=>{let _0x500857=![];return()=>{if(_0x500857)return;_0x500857=!![],_0x522cdb-=0x1,_0x6dc9e3();};},_0x6dc9e3=()=>{function _0xae5672(_0x5033dd,_0x195c31,_0xfed717,_0xd88f25){return _0x2cee80(_0x195c31,_0x195c31-0x87,_0x5033dd- -0x34d,_0xd88f25-_0x351a14._0x124279);}function _0x468388(_0x2efff6,_0x285671,_0x2fd81d,_0x5019b0){return _0x16de41(_0x2efff6-0x143,_0x2fd81d- -0x217,_0x2efff6,_0x5019b0-_0x504d0b._0x33deb2);}while(_0x4e879c['length']>0x0){const _0x1e0270=_0x4e879c['shift']();if(!_0x1e0270||_0x1e0270[_0x468388(_0x47ea03._0x25d7f9,_0x47ea03._0x373032,_0x47ea03._0x40aee9,_0x47ea03._0x4c9f1e)])continue;_0x1e0270[_0x468388(_0x47ea03._0x64d6d3,_0x47ea03._0x2dfce3,_0x47ea03._0x40aee9,_0x47ea03._0x9dfac0)]=!![],_0x1e0270[_0xae5672(0xf4,_0x47ea03._0x47b2de,_0x47ea03._0x4dff62,0xee)](),_0x522cdb+=0x1,_0x1e0270[_0x468388(_0x47ea03._0x395e76,0x26b,_0x47ea03._0x2f663a,_0x47ea03._0x4d72ff)](_0x48f8c5());return;}},_0x5ad759=()=>{if(_0x522cdb>=_0x21c184)return void 0x0;return _0x522cdb+=0x1,_0x48f8c5();};return{'tryAcquire':_0x5ad759,'acquire'(_0x2ffefd){const _0x1b6e0c={_0x2beee3:0x11,_0x8b13ea:0x5,_0x5e58c9:0x7,_0x1ec19f:0x13c,_0x19fb78:0x138,_0x767f9a:0x145},_0x5d7f34={_0x14932d:0x1cf,_0x14a760:0x1de,_0xae65a9:0x1d4,_0x2f1a4b:0x1df,_0x5f089e:0x1d8,_0x41dc4a:0x1d3,_0x59271c:0x1da,_0x26c2c8:0x1e0,_0x891dad:0x1d5,_0x3335a6:0x1d6},_0x51ae92={_0x575ae4:0x1a8,_0x418083:0x9f};if(_0x2ffefd?.[_0x38cb55(_0x1c9581._0xc61437,0x2a,0x33,0x30)])return Promise[_0x395cf1(0x461,_0x1c9581._0x155f78,_0x1c9581._0x536d8e,0x457)](toAbortError(_0x2ffefd['reason']));function _0x38cb55(_0x21091d,_0x41e325,_0x3aa35b,_0x118ebe){return _0x2cee80(_0x41e325,_0x41e325-_0x51ae92._0x575ae4,_0x21091d- -0x40f,_0x118ebe-_0x51ae92._0x418083);}const _0x33dd25=_0x5ad759();if(_0x33dd25!==void 0x0)return Promise[_0x38cb55(_0x1c9581._0x1d4977,_0x1c9581._0x3696d6,0x25,0x24)](_0x33dd25);function _0x395cf1(_0x3ee56f,_0x2ad921,_0xd9d87f,_0x3ccd9f){return _0x16de41(_0x3ee56f-_0x4b5b1f._0x4a3af1,_0x2ad921- -0x3c,_0x3ccd9f,_0x3ccd9f-_0x4b5b1f._0x462c7d);}return new Promise((_0x261c7a,_0x53b37b)=>{const _0x2a37a2={_0x335803:0x148,_0x41daab:0xca},_0x4ff18d={_0x4d473f:0x10a,_0x2e7f51:0x94},_0x50b226={_0x48e07a:0x27,_0x46e462:0xba,_0x2a14e1:0x134};function _0x247b1a(_0x3961f5,_0x5267b4,_0x583603,_0x26e6ee){return _0x38cb55(_0x3961f5- -_0x50b226._0x48e07a,_0x26e6ee,_0x583603-_0x50b226._0x46e462,_0x26e6ee-_0x50b226._0x2a14e1);}const _0x147443={'resolve':_0x261c7a,'reject':_0x53b37b,'cancelled':![],'removeAbortListener':()=>{}};_0x4e879c[_0x247b1a(_0x1b6e0c._0x2beee3,0xd,_0x1b6e0c._0x8b13ea,_0x1b6e0c._0x5e58c9)](_0x147443);function _0x137e81(_0x26d67d,_0x5ac085,_0x364abc,_0x4bec57){return _0x38cb55(_0x26d67d-_0x4ff18d._0x4d473f,_0x4bec57,_0x364abc-_0x4ff18d._0x2e7f51,_0x4bec57-0x162);}_0x147443[_0x137e81(_0x1b6e0c._0x1ec19f,_0x1b6e0c._0x19fb78,0x147,_0x1b6e0c._0x767f9a)]=addAbortListener(_0x2ffefd,()=>{const _0x1a7aa7={_0x5a7200:0x1c9};function _0x22e7f7(_0x47db9f,_0x1f0fe5,_0x11ae6f,_0x4370a4){return _0x137e81(_0x1f0fe5- -0x24b,_0x1f0fe5-_0x2a37a2._0x335803,_0x11ae6f-_0x2a37a2._0x41daab,_0x47db9f);}if(_0x147443[_0x32b838(0x1e0,0x1d3,_0x5d7f34._0x14932d,0x1d0)])return;function _0x32b838(_0xc7f4c2,_0x39d703,_0x5d54d3,_0x2e2fb9){return _0x247b1a(_0x39d703-_0x1a7aa7._0x5a7200,_0x39d703-0x81,_0x5d54d3-0xf2,_0x5d54d3);}_0x147443['cancelled']=!![],_0x147443[_0x32b838(_0x5d7f34._0x14a760,_0x5d7f34._0xae65a9,0x1cb,_0x5d7f34._0x2f1a4b)]();const _0x53fd8d=_0x4e879c[_0x32b838(0x1dc,0x1d6,_0x5d7f34._0x5f089e,0x1d7)](_0x147443);if(_0x53fd8d>=0x0)_0x4e879c[_0x32b838(0x1d0,0x1db,_0x5d7f34._0x41dc4a,_0x5d7f34._0x59271c)](_0x53fd8d,0x1);_0x147443[_0x32b838(0x1de,0x1dd,0x1d7,_0x5d7f34._0x26c2c8)](toAbortError(_0x2ffefd?.[_0x32b838(_0x5d7f34._0x59271c,0x1d8,_0x5d7f34._0x891dad,_0x5d7f34._0x3335a6)]));});});}};}var MESSAGE_ROLES=[_0x8bd1c4(0x388,0x388,0x391,0x392),'user'];Object[_0x8bd1c4(0x36d,0x377,0x372,0x370)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,isAgentOnlyBashCompletion,isAgentOnlyCoordinatorNotice,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
@@ -259,7 +259,14 @@ export interface PersistedModelCallMetricsV1 {
259
259
  modelTimeMs: number;
260
260
  completesRequest: boolean;
261
261
  }
262
- export type PersistedModelCallMetrics = PersistedModelCallMetricsV1;
262
+ export interface PersistedModelCallMetricsV2 {
263
+ version: 2;
264
+ usage: ChatResponseUsage;
265
+ modelTimeMs: number;
266
+ completesRequest: boolean;
267
+ timeToFirstOutputMs?: number;
268
+ }
269
+ export type PersistedModelCallMetrics = PersistedModelCallMetricsV1 | PersistedModelCallMetricsV2;
263
270
  export interface ChatResponse {
264
271
  id: string;
265
272
  content: AssistantContentBlock[];
@@ -320,6 +327,24 @@ export interface DoneChunk {
320
327
  response: ChatResponse;
321
328
  }
322
329
  export type ChatResponseChunk = AnthropicSignatureDeltaChunk | AnthropicThinkingDeltaChunk | ContentDeltaChunk | DoneChunk | OpenAiReasoningDeltaChunk | OpenAiReasoningSummaryDeltaChunk | ProviderStreamResetChunk | ProviderRetryChunk | ToolUseDeltaChunk;
330
+ export type LiveModelRequestMetrics = Readonly<{
331
+ requestId: string;
332
+ attempt: number;
333
+ state: "waiting" | "retrying" | "streaming";
334
+ estimatedOutputTokensPerSecond?: number;
335
+ timeToFirstOutputMs?: number;
336
+ }>;
337
+ export type CompletedModelRequestTiming = Readonly<{
338
+ requestId: string;
339
+ modelTimeMs: number;
340
+ timeToFirstOutputMs?: number;
341
+ }>;
342
+ export interface ModelRequestMeasurement {
343
+ observe(chunk: ChatResponseChunk): void;
344
+ snapshot(): LiveModelRequestMetrics | undefined;
345
+ finish(): CompletedModelRequestTiming;
346
+ cancel(): void;
347
+ }
323
348
  export interface ModelLimits {
324
349
  contextWindow?: number;
325
350
  maxContextWindow?: number;
@@ -586,6 +611,8 @@ export interface AgentModelRequestEvent {
586
611
  }
587
612
  export interface AgentModelResponseEvent {
588
613
  type: "model_response";
614
+ requestId?: string;
615
+ timeToFirstOutputMs?: number;
589
616
  /** Exact provider/model-call duration measured by the turn engine. */
590
617
  modelTimeMs?: number;
591
618
  response: ChatResponse;
@@ -774,6 +801,7 @@ export interface ExtensionRegistry {
774
801
  runObservers<S extends Stage>(stage: S, payload: PayloadByStage[S], ctx: ExtensionContext): Promise<void>;
775
802
  }
776
803
  export interface RunTurnDeps {
804
+ startModelRequestMeasurement?: (requestId: string) => ModelRequestMeasurement;
777
805
  registry: ExtensionRegistry;
778
806
  chatModel: EngineChatModel;
779
807
  toolRuntime: ToolRuntime;
@@ -97,6 +97,8 @@ export type DelegatedRoutingMetadata = {
97
97
  export type DelegatedAgentResolution = {
98
98
  options: AgentOptions;
99
99
  routing?: DelegatedRoutingMetadata;
100
+ constructionNotices?: readonly string[];
101
+ isConstructionNoticeCurrent?: () => boolean;
100
102
  };
101
103
  export declare class DelegatedResolutionError extends Error {
102
104
  readonly requestedModelTier: ModelTier;