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

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.
@@ -6,4 +6,16 @@ export declare function isAgentOnlyBashCompletion(value: unknown): value is Reco
6
6
  presentation?: never;
7
7
  noticeRole?: never;
8
8
  };
9
+ /**
10
+ * Trusted agent-only coordinator notices — both `bash-completion` and
11
+ * `background-work-stopped` stay out of the user transcript under the same
12
+ * negative checks (no report/presentation/noticeRole fields).
13
+ */
14
+ export declare function isAgentOnlyCoordinatorNotice(value: unknown): value is Record<string, unknown> & {
15
+ deliveryKind: "bash-completion" | "background-work-stopped";
16
+ transcriptVisibility: "agent-only";
17
+ subagentReport?: never;
18
+ presentation?: never;
19
+ noticeRole?: never;
20
+ };
9
21
  //# sourceMappingURL=bash-completion-visibility.d.ts.map
@@ -1 +1 @@
1
- (function(_0x169b96,_0x13b112){const _0x1d54dc={_0x5e1a01:0x268,_0x3acfb1:0x38f,_0x5b0a93:0x38d,_0x180229:0x393,_0x5d3f7f:0x395,_0x46c6ac:0x38b,_0x29ff0e:0x277,_0x5ceb49:0x388,_0x7c4c37:0x27f,_0x517071:0x279,_0x22155d:0x286,_0x1d0006:0x396,_0x1f4052:0x399,_0x3e2b8e:0x38c,_0x36ab60:0x382,_0x34b94a:0x38a},_0x5291dd={_0x2bd7f2:0x1f6},_0x1e8c9f=_0x169b96();function _0x5e3e34(_0x301751,_0x5aa74a,_0x350bcf,_0x338519){return _0x5c27(_0x5aa74a-_0x5291dd._0x2bd7f2,_0x350bcf);}function _0x1629c7(_0x535f20,_0x3996b5,_0x56831a,_0x564dfa){return _0x5c27(_0x56831a-0x315,_0x535f20);}while(!![]){try{const _0x10a492=parseInt(_0x5e3e34(_0x1d54dc._0x5e1a01,0x26c,0x26e,0x275))/0x1*(parseInt(_0x1629c7(0x381,_0x1d54dc._0x3acfb1,_0x1d54dc._0x5b0a93,0x387))/0x2)+-parseInt(_0x1629c7(_0x1d54dc._0x180229,0x396,0x38f,_0x1d54dc._0x5d3f7f))/0x3+parseInt(_0x1629c7(0x38a,0x390,0x389,_0x1d54dc._0x46c6ac))/0x4*(parseInt(_0x5e3e34(_0x1d54dc._0x29ff0e,0x278,0x26c,0x284))/0x5)+-parseInt(_0x1629c7(0x380,0x386,_0x1d54dc._0x5ceb49,0x389))/0x6+-parseInt(_0x5e3e34(0x284,_0x1d54dc._0x7c4c37,_0x1d54dc._0x517071,_0x1d54dc._0x22155d))/0x7*(-parseInt(_0x1629c7(0x39d,0x396,0x39d,0x39d))/0x8)+parseInt(_0x1629c7(0x39e,0x393,_0x1d54dc._0x1d0006,_0x1d54dc._0x1f4052))/0x9*(parseInt(_0x1629c7(0x38a,0x383,_0x1d54dc._0x3e2b8e,0x388))/0xa)+-parseInt(_0x1629c7(0x380,_0x1d54dc._0x36ab60,_0x1d54dc._0x34b94a,0x394))/0xb;if(_0x10a492===_0x13b112)break;else _0x1e8c9f['push'](_0x1e8c9f['shift']());}catch(_0x20d1d8){_0x1e8c9f['push'](_0x1e8c9f['shift']());}}}(_0x3909,0x73720));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError,isAgentOnlyBashCompletion}from'../chunk-CVOXBVKH.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function _0x2dd593(_0x4f6b0c,_0x5e1b09,_0x317e7c,_0x1f99f1){return _0x5c27(_0x4f6b0c- -0x2e6,_0x317e7c);}function createAbortAwareSemaphore(_0x3b227f){const _0x728ba2={_0x1938dc:0xb1,_0x4d3ac3:0xad,_0x445f36:0xa7,_0x5919d3:0x9e},_0x5bfa73={_0x106105:0x33b,_0x45d9e9:0x341,_0x4c7758:0x353,_0x394db8:0x34d,_0x2d1323:0x34b},_0x301657={_0x305aa5:0x29b},_0x448c1a={_0x5f267e:0x2dd,_0x504af5:0x2c6,_0x1d9f19:0x2c8},_0x256c03={_0x5859fa:0xe8},_0x458d48={_0x4ffbc8:0x1fc};if(!Number['isFinite'](_0x3b227f)||!Number[_0x342de5(-_0x728ba2._0x1938dc,-_0x728ba2._0x4d3ac3,-0xa1,-0xb1)](_0x3b227f)||_0x3b227f<=0x0)throw new Error(_0x342de5(-0xaf,-_0x728ba2._0x445f36,-_0x728ba2._0x5919d3,-0xa3));function _0x3f78dd(_0x1bc655,_0x19fe45,_0x7c37fe,_0x1083c4){return _0x5c27(_0x19fe45- -0x152,_0x7c37fe);}let _0x4b45f9=0x0;const _0x356364=[],_0x2f6e8f=()=>{let _0x574c63=![];return()=>{if(_0x574c63)return;_0x574c63=!![],_0x4b45f9-=0x1,_0x1944f7();};},_0x1944f7=()=>{function _0x2c6669(_0x18217d,_0x44bba7,_0x338c85,_0x1eb84d){return _0x3f78dd(_0x18217d-0x18d,_0x18217d- -_0x458d48._0x4ffbc8,_0x44bba7,_0x1eb84d-0x1a);}function _0x510e6f(_0x4a2d9f,_0x5b58ed,_0x94a52b,_0x5ae127){return _0x342de5(_0x4a2d9f,_0x94a52b-0x30a,_0x94a52b-0x1b2,_0x5ae127-_0x256c03._0x5859fa);}while(_0x356364['length']>0x0){const _0x584e51=_0x356364['shift']();if(!_0x584e51||_0x584e51['cancelled'])continue;_0x584e51[_0x2c6669(-0x2d1,-_0x448c1a._0x5f267e,-0x2c5,-0x2cf)]=!![],_0x584e51[_0x2c6669(-0x2cb,-0x2c3,-0x2c8,-_0x448c1a._0x504af5)](),_0x4b45f9+=0x1,_0x584e51[_0x2c6669(-0x2c7,-0x2c3,-0x2bd,-_0x448c1a._0x1d9f19)](_0x2f6e8f());return;}},_0xd29110=()=>{if(_0x4b45f9>=_0x3b227f)return void 0x0;return _0x4b45f9+=0x1,_0x2f6e8f();};function _0x342de5(_0x7c333,_0x3ba36e,_0x3b74bd,_0x36147f){return _0x5c27(_0x3ba36e- -0x12c,_0x7c333);}return{'tryAcquire':_0xd29110,'acquire'(_0x5a3b45){const _0x4a6acb={_0xea1958:0x1a5,_0x172bd5:0x2b1,_0x5c4f3b:0x2c3,_0x897d5c:0x2b7},_0x172b41={_0x25303a:0x190,_0x2b647d:0x14c,_0x592a33:0xb4},_0x131710={_0xd9206:0x7e,_0x1f6639:0x10f};if(_0x5a3b45?.[_0x40bf7f(-_0x5bfa73._0x106105,-_0x5bfa73._0x45d9e9,-0x345,-0x33b)])return Promise[_0x40bf7f(-0x340,-0x349,-_0x5bfa73._0x4c7758,-_0x5bfa73._0x394db8)](toAbortError(_0x5a3b45[_0x40bf7f(-0x33f,-_0x5bfa73._0x2d1323,-_0x5bfa73._0x2d1323,-0x341)]));const _0x21bb98=_0xd29110();function _0x520896(_0x15c576,_0x4808c2,_0x2ace4e,_0xad0948){return _0x342de5(_0xad0948,_0x15c576- -_0x131710._0xd9206,_0x2ace4e-_0x131710._0x1f6639,_0xad0948-0xa5);}function _0x40bf7f(_0x1a8450,_0x5cd245,_0x5282cf,_0x4ce148){return _0x342de5(_0x5282cf,_0x5cd245- -_0x301657._0x305aa5,_0x5282cf-0x10f,_0x4ce148-0x170);}if(_0x21bb98!==void 0x0)return Promise['resolve'](_0x21bb98);return new Promise((_0x3554f1,_0xc0138)=>{const _0x11072d={_0x1e6dc5:0x299,_0x276881:0x296,_0x3062e9:0x295,_0x501579:0x29d,_0x10cef9:0x2a1,_0x11ec8f:0x3c4,_0x284d86:0x3bf,_0x54fbd8:0x3c7,_0x5035a1:0x299,_0x42f361:0x29e,_0x37251e:0x2a2},_0x2bd6ac={_0x5a81e4:0x167,_0x5070a2:0x4f3,_0x28f4f5:0x112};function _0xf0aa29(_0x55c962,_0x5681b2,_0x3bb614,_0x1d2ff4){return _0x40bf7f(_0x55c962-_0x2bd6ac._0x5a81e4,_0x3bb614-_0x2bd6ac._0x5070a2,_0x1d2ff4,_0x1d2ff4-_0x2bd6ac._0x28f4f5);}const _0x18594c={'resolve':_0x3554f1,'reject':_0xc0138,'cancelled':![],'removeAbortListener':()=>{}};function _0x42d96e(_0x5a3a60,_0x303241,_0x27d878,_0xdb4374){return _0x520896(_0xdb4374- -_0x172b41._0x25303a,_0x303241-_0x172b41._0x2b647d,_0x27d878-_0x172b41._0x592a33,_0x5a3a60);}_0x356364[_0xf0aa29(0x19b,0x1aa,_0x4a6acb._0xea1958,0x1b0)](_0x18594c),_0x18594c[_0x42d96e(-_0x4a6acb._0x172bd5,-_0x4a6acb._0x5c4f3b,-0x2bc,-_0x4a6acb._0x897d5c)]=addAbortListener(_0x5a3b45,()=>{const _0x2ea8e4={_0xdb09f0:0x108,_0xaaa7e:0xee},_0x476368={_0x376b56:0x34,_0x39293c:0x686};function _0x5b33ea(_0x4e2c9c,_0x44cffa,_0x3853c3,_0x167ddc){return _0x42d96e(_0x4e2c9c,_0x44cffa-0x7b,_0x3853c3-_0x476368._0x376b56,_0x167ddc-_0x476368._0x39293c);}if(_0x18594c['cancelled'])return;_0x18594c[_0x44166c(0x293,0x297,_0x11072d._0x1e6dc5,_0x11072d._0x276881)]=!![];function _0x44166c(_0x5260e9,_0x3446c4,_0x337590,_0x5f1276){return _0xf0aa29(_0x5260e9-_0x2ea8e4._0xdb09f0,_0x3446c4-0x1e4,_0x3446c4-_0x2ea8e4._0xaaa7e,_0x5f1276);}_0x18594c[_0x44166c(_0x11072d._0x3062e9,_0x11072d._0x501579,0x29b,_0x11072d._0x10cef9)]();const _0x366add=_0x356364[_0x5b33ea(_0x11072d._0x11ec8f,0x3d2,_0x11072d._0x284d86,_0x11072d._0x54fbd8)](_0x18594c);if(_0x366add>=0x0)_0x356364[_0x44166c(_0x11072d._0x5035a1,_0x11072d._0x42f361,_0x11072d._0x37251e,0x2a7)](_0x366add,0x1);_0x18594c['reject'](toAbortError(_0x5a3b45?.['reason']));});});}};}function _0x5c27(_0x528d4a,_0x5f2e5e){_0x528d4a=_0x528d4a-0x72;const _0x39090b=_0x3909();let _0x5c270e=_0x39090b[_0x528d4a];if(_0x5c27['jHtIlH']===undefined){var _0x55ea58=function(_0x120960){const _0x430a5b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b227f='',_0x4b45f9='';for(let _0x356364=0x0,_0x2f6e8f,_0x1944f7,_0xd29110=0x0;_0x1944f7=_0x120960['charAt'](_0xd29110++);~_0x1944f7&&(_0x2f6e8f=_0x356364%0x4?_0x2f6e8f*0x40+_0x1944f7:_0x1944f7,_0x356364++%0x4)?_0x3b227f+=String['fromCharCode'](0xff&_0x2f6e8f>>(-0x2*_0x356364&0x6)):0x0){_0x1944f7=_0x430a5b['indexOf'](_0x1944f7);}for(let _0x574c63=0x0,_0x584e51=_0x3b227f['length'];_0x574c63<_0x584e51;_0x574c63++){_0x4b45f9+='%'+('00'+_0x3b227f['charCodeAt'](_0x574c63)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4b45f9);};_0x5c27['iMTMog']=_0x55ea58,_0x5c27['vRtHoR']={},_0x5c27['jHtIlH']=!![];}const _0x12abcf=_0x39090b[0x0],_0x5dfaf1=_0x528d4a+_0x12abcf,_0x276f05=_0x5c27['vRtHoR'][_0x5dfaf1];return!_0x276f05?(_0x5c270e=_0x5c27['iMTMog'](_0x5c270e),_0x5c27['vRtHoR'][_0x5dfaf1]=_0x5c270e):_0x5c270e=_0x276f05,_0x5c270e;}function _0x36b578(_0x611e33,_0x3e5801,_0x36ee7a,_0x2995b1){return _0x5c27(_0x3e5801-0x201,_0x2995b1);}var MESSAGE_ROLES=[_0x2dd593(-0x266,-0x264,-0x272,-0x263),'user'];Object[_0x2dd593(-0x274,-0x274,-0x26a,-0x275)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,isAgentOnlyBashCompletion,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};function _0x3909(){const _0x1b615e=['AxnjBNrLz2vY','yxnZAxn0yw50','mJG3mtqWnwjfywTuuW','mZKXmdKWEwzzs2XP','CMvTB3zLqwjVCNrmAxn0zw5LCG','C3bSAwnL','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','ywjVCNrLza','CMvZB2X2zq','mtq0sePNsNLg','mtC3nZKZDxjxruTx','zNjLzxPL','otK1odK4uerotfbU','mZj4uePHrhu','nZG1odi5me5VBgPsBq','m2T4AMXbvW','mtb5B1zjy28','mti4otK4CLPwAwX0','ChvZAa','nZi2nJKZzwPzwgTw','Aw5KzxHpzG','CMvHC29U','y2fUy2vSBgvK','CMvQzwn0'];_0x3909=function(){return _0x1b615e;};return _0x3909();}
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};
@@ -446,6 +446,8 @@ export type TurnMessageMeta = {
446
446
  reasoningCompletedAt?: number;
447
447
  /** Marks a canonical user-role append submitted by a trusted runtime source. */
448
448
  submissionOrigin?: "coordinator" | "agent";
449
+ /** ms epoch when this user message was queued as a mid-turn steer. */
450
+ steeredAt?: number;
449
451
  /** Canonical sender ID for an agent-origin user-role append. */
450
452
  senderAgentId?: string;
451
453
  /** Trusted structured metadata for a coordinator-authored subagent report. */
@@ -464,7 +466,7 @@ export type TurnMessageMeta = {
464
466
  transcriptVisibility?: never;
465
467
  } | {
466
468
  submissionOrigin: "coordinator";
467
- deliveryKind: "bash-completion";
469
+ deliveryKind: "bash-completion" | "background-work-stopped";
468
470
  transcriptVisibility: "agent-only";
469
471
  senderAgentId?: never;
470
472
  subagentReport?: never;
@@ -801,6 +803,12 @@ export type AgentSubmission = Readonly<{
801
803
  deliveryKind: "bash-completion";
802
804
  transcriptVisibility: "agent-only";
803
805
  subagentReport?: never;
806
+ }> | Readonly<{
807
+ origin: "coordinator";
808
+ token: string;
809
+ deliveryKind: "background-work-stopped";
810
+ transcriptVisibility: "agent-only";
811
+ subagentReport?: never;
804
812
  }> | Readonly<{
805
813
  origin: "agent";
806
814
  senderAgentId: string;
@@ -810,10 +818,14 @@ export type AgentSubmission = Readonly<{
810
818
  export type TurnSteeringInput = MessageInput | Readonly<{
811
819
  input: MessageInput;
812
820
  submission: AgentSubmission;
821
+ /** ms epoch when the steer was queued; carried into persisted meta. */
822
+ steeredAt?: number;
813
823
  }>;
814
824
  export type SteeringInput = AgentInput | Readonly<{
815
825
  input: AgentInput;
816
826
  submission: AgentSubmission;
827
+ /** ms epoch when the steer was queued; carried into persisted meta. */
828
+ steeredAt?: number;
817
829
  }>;
818
830
  export type SteeringInputDrain = () => Promise<SteeringInput[]>;
819
831
  export interface AgentSendOptions {