@nuvin/agent-core 0.4.0-rc.4 → 0.4.0-rc.6

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(_0x10c448,_0x533e85){const _0xbb9bdf={_0x5cef5c:0x4a9,_0x58943c:0x4af,_0x46d330:0x4bb,_0x5ddf1e:0x136,_0x3eb789:0x138,_0x4692e4:0x4a3,_0x397bd3:0x12e,_0x1397ab:0x157,_0x3ed419:0x4ab,_0x4a2db1:0x4be,_0x1be353:0x4bd,_0x568f0e:0x13c,_0x58fb01:0x149,_0x31eb6a:0x12a,_0x3bce6d:0x135,_0x8e006d:0x134,_0x2121c3:0x12c,_0x2e9c42:0x130,_0x187162:0x140,_0x4069e9:0x137},_0xee2169={_0x3fedfa:0x2a0};function _0x2ac6ef(_0xe4e48,_0x5c177e,_0x205e4c,_0x11f9fc){return _0x1a59(_0x5c177e-0x34c,_0xe4e48);}const _0x1d1aa8=_0x10c448();function _0x168d8b(_0x26c967,_0x558090,_0x232c0b,_0x5cb9ae){return _0x1a59(_0x5cb9ae- -_0xee2169._0x3fedfa,_0x232c0b);}while(!![]){try{const _0x7736a3=-parseInt(_0x2ac6ef(_0xbb9bdf._0x5cef5c,_0xbb9bdf._0x58943c,0x4af,_0xbb9bdf._0x46d330))/0x1*(parseInt(_0x168d8b(-_0xbb9bdf._0x5ddf1e,-0x143,-0x143,-_0xbb9bdf._0x3eb789))/0x2)+parseInt(_0x2ac6ef(0x4b4,0x4b3,_0xbb9bdf._0x46d330,_0xbb9bdf._0x5cef5c))/0x3*(-parseInt(_0x2ac6ef(0x4b7,0x4ac,0x4a8,_0xbb9bdf._0x4692e4))/0x4)+parseInt(_0x168d8b(-0x12a,-0x132,-0x138,-_0xbb9bdf._0x397bd3))/0x5+-parseInt(_0x168d8b(-0x142,-_0xbb9bdf._0x1397ab,-0x158,-0x14a))/0x6*(parseInt(_0x2ac6ef(0x4a1,0x4b0,0x4b1,_0xbb9bdf._0x3ed419))/0x7)+parseInt(_0x2ac6ef(_0xbb9bdf._0x4a2db1,0x4b8,_0xbb9bdf._0x1be353,0x4ae))/0x8*(-parseInt(_0x168d8b(-0x14b,-0x153,-_0xbb9bdf._0x568f0e,-_0xbb9bdf._0x58fb01))/0x9)+-parseInt(_0x168d8b(-0x12d,-_0xbb9bdf._0x31eb6a,-0x140,-_0xbb9bdf._0x3bce6d))/0xa+-parseInt(_0x168d8b(-_0xbb9bdf._0x8e006d,-_0xbb9bdf._0x2121c3,-0x135,-_0xbb9bdf._0x2e9c42))/0xb*(-parseInt(_0x168d8b(-_0xbb9bdf._0x187162,-0x137,-0x12b,-_0xbb9bdf._0x4069e9))/0xc);if(_0x7736a3===_0x533e85)break;else _0x1d1aa8['push'](_0x1d1aa8['shift']());}catch(_0x3cf4ec){_0x1d1aa8['push'](_0x1d1aa8['shift']());}}}(_0x1544,0xd4851));function _0x1a59(_0x30fb99,_0x2b0408){_0x30fb99=_0x30fb99-0x156;const _0x154425=_0x1544();let _0x1a5948=_0x154425[_0x30fb99];if(_0x1a59['PkOVpJ']===undefined){var _0xd23503=function(_0xb1f983){const _0x44a7d8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27a97a='',_0x4ded0b='';for(let _0x161b35=0x0,_0x2f3f1b,_0x2c909d,_0x4b1f36=0x0;_0x2c909d=_0xb1f983['charAt'](_0x4b1f36++);~_0x2c909d&&(_0x2f3f1b=_0x161b35%0x4?_0x2f3f1b*0x40+_0x2c909d:_0x2c909d,_0x161b35++%0x4)?_0x27a97a+=String['fromCharCode'](0xff&_0x2f3f1b>>(-0x2*_0x161b35&0x6)):0x0){_0x2c909d=_0x44a7d8['indexOf'](_0x2c909d);}for(let _0x220894=0x0,_0x1c1098=_0x27a97a['length'];_0x220894<_0x1c1098;_0x220894++){_0x4ded0b+='%'+('00'+_0x27a97a['charCodeAt'](_0x220894)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4ded0b);};_0x1a59['vGklfN']=_0xd23503,_0x1a59['QedsVJ']={},_0x1a59['PkOVpJ']=!![];}const _0x3b149c=_0x154425[0x0],_0x36c920=_0x30fb99+_0x3b149c,_0x299380=_0x1a59['QedsVJ'][_0x36c920];return!_0x299380?(_0x1a5948=_0x1a59['vGklfN'](_0x1a5948),_0x1a59['QedsVJ'][_0x36c920]=_0x1a5948):_0x1a5948=_0x299380,_0x1a5948;}import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';function _0x5c3365(_0x28e29c,_0x144907,_0x3142ca,_0x36a2f6){return _0x1a59(_0x28e29c- -0x107,_0x36a2f6);}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 createAbortAwareSemaphore(_0x27a97a){const _0x56b548={_0xf84e44:0xa5,_0x462764:0xaa,_0x19379e:0x3dc,_0x434d06:0x3e7,_0x14d871:0x3df,_0x5d5aca:0x3f0},_0x3d0202={_0x4b7377:0x13d,_0x25936e:0x2a1,_0x109a25:0x2b0,_0x3219c8:0x2c2,_0x5c2f2d:0x2b4,_0x4a1d83:0x2a9,_0x5c5d9c:0x2ab},_0x2839b7={_0x267328:0x431,_0x45fe8f:0x424,_0x2bec5c:0x446,_0x592fb1:0x438,_0x5b7ac0:0x4f4,_0x52b358:0x434,_0x1bfe14:0x428,_0x7e0cc:0x427,_0x36cc98:0x4f8,_0x5af935:0x4f5,_0x4ce817:0x4f2},_0x489d84={_0x27ea23:0x18f};function _0x1a0cf1(_0xbad1d8,_0xf32e7b,_0x582d9e,_0x4d7805){return _0x1a59(_0x582d9e-0x285,_0x4d7805);}function _0x3bb41f(_0x4428c5,_0x12db8b,_0x1b0cb2,_0x296a41){return _0x1a59(_0x1b0cb2- -0xc3,_0x4428c5);}if(!Number[_0x3bb41f(0xa2,_0x56b548._0xf84e44,_0x56b548._0x462764,0x9d)](_0x27a97a)||!Number[_0x1a0cf1(0x3f1,_0x56b548._0x19379e,_0x56b548._0x434d06,_0x56b548._0x14d871)](_0x27a97a)||_0x27a97a<=0x0)throw new Error(_0x1a0cf1(0x3e7,0x400,0x3f6,_0x56b548._0x5d5aca));let _0x4ded0b=0x0;const _0x161b35=[],_0x2f3f1b=()=>{let _0x220894=![];return()=>{if(_0x220894)return;_0x220894=!![],_0x4ded0b-=0x1,_0x2c909d();};},_0x2c909d=()=>{const _0x33ecd0={_0x354193:0xff};function _0x27b9da(_0x261b07,_0x59c30c,_0x2b9451,_0x45b304){return _0x3bb41f(_0x2b9451,_0x59c30c-_0x489d84._0x27ea23,_0x59c30c-0x45f,_0x45b304-0x168);}function _0x10bd21(_0x3e1c90,_0x2de2b1,_0x268b74,_0x4422e0){return _0x1a0cf1(_0x3e1c90-0x1e6,_0x2de2b1-_0x33ecd0._0x354193,_0x268b74-0x44,_0x2de2b1);}while(_0x161b35[_0x10bd21(_0x2839b7._0x267328,0x428,_0x2839b7._0x45fe8f,0x430)]>0x0){const _0x1c1098=_0x161b35[_0x10bd21(0x42a,_0x2839b7._0x2bec5c,_0x2839b7._0x592fb1,0x42a)]();if(!_0x1c1098||_0x1c1098[_0x27b9da(0x4ea,_0x2839b7._0x5b7ac0,0x4f8,0x4ff)])continue;_0x1c1098['cancelled']=!![],_0x1c1098[_0x10bd21(_0x2839b7._0x52b358,0x42b,_0x2839b7._0x1bfe14,_0x2839b7._0x7e0cc)](),_0x4ded0b+=0x1,_0x1c1098[_0x27b9da(0x500,_0x2839b7._0x36cc98,_0x2839b7._0x5af935,_0x2839b7._0x4ce817)](_0x2f3f1b());return;}},_0x4b1f36=()=>{if(_0x4ded0b>=_0x27a97a)return void 0x0;return _0x4ded0b+=0x1,_0x2f3f1b();};return{'tryAcquire':_0x4b1f36,'acquire'(_0x5351d7){const _0x9fe4e1={_0x3e9c16:0x31f,_0x44f97e:0x322,_0x4459de:0x32b,_0x539681:0x12f},_0x5d7d39={_0x321471:0x36b,_0xd80c51:0x37d,_0xdbfa05:0x370,_0x207e63:0x366,_0x4eb261:0x37a,_0x5cef29:0x37d,_0x825c41:0x377,_0x3bbb30:0x50d,_0x535d6d:0x513,_0x15fdab:0x51b,_0x2b6366:0x502,_0x9703ee:0x50b,_0xb01025:0x513,_0xa04b3c:0x512},_0x420c07={_0xc793b6:0xdb,_0x2cedd1:0x126,_0x25ab53:0x72},_0xe06652={_0x49c80a:0x8,_0x3bd571:0x1b7,_0xa44c27:0xb8},_0xbcaf0f={_0x5ed28a:0x1a,_0x102a56:0xf5,_0x34a1eb:0x136},_0x129dd4={_0x5e3026:0xb3,_0x47f2fe:0x51b};function _0x505cb0(_0x2196bb,_0x25a287,_0x316673,_0x539389){return _0x1a0cf1(_0x2196bb-_0x129dd4._0x5e3026,_0x25a287-0x100,_0x2196bb- -_0x129dd4._0x47f2fe,_0x539389);}if(_0x5351d7?.[_0x505cb0(-0x130,-0x12f,-0x125,-_0x3d0202._0x4b7377)])return Promise[_0x2bad5c(_0x3d0202._0x25936e,_0x3d0202._0x109a25,0x2a9,0x2ac)](toAbortError(_0x5351d7[_0x2bad5c(_0x3d0202._0x3219c8,0x2ae,0x2b1,0x2b4)]));function _0x2bad5c(_0x159fa6,_0x5d3b97,_0x52f822,_0x3f683d){return _0x1a0cf1(_0x159fa6-_0xbcaf0f._0x5ed28a,_0x5d3b97-_0xbcaf0f._0x102a56,_0x3f683d- -_0xbcaf0f._0x34a1eb,_0x159fa6);}const _0x4b3f20=_0x4b1f36();if(_0x4b3f20!==void 0x0)return Promise[_0x2bad5c(0x2a8,_0x3d0202._0x5c2f2d,_0x3d0202._0x4a1d83,_0x3d0202._0x5c5d9c)](_0x4b3f20);return new Promise((_0x1559c0,_0x10251c)=>{function _0x203e9f(_0x2c2fef,_0x436787,_0x359651,_0x500de9){return _0x505cb0(_0x500de9-_0xe06652._0x49c80a,_0x436787-_0xe06652._0x3bd571,_0x359651-_0xe06652._0xa44c27,_0x436787);}const _0x3c9972={'resolve':_0x1559c0,'reject':_0x10251c,'cancelled':![],'removeAbortListener':()=>{}};function _0x56515c(_0x2932a9,_0x39ae3d,_0x56dd0f,_0x20f65f){return _0x2bad5c(_0x56dd0f,_0x39ae3d-_0x420c07._0xc793b6,_0x56dd0f-_0x420c07._0x2cedd1,_0x39ae3d-_0x420c07._0x25ab53);}_0x161b35[_0x56515c(_0x9fe4e1._0x3e9c16,_0x9fe4e1._0x44f97e,_0x9fe4e1._0x4459de,0x317)](_0x3c9972),_0x3c9972[_0x203e9f(-0x129,-0x12c,-0x136,-_0x9fe4e1._0x539681)]=addAbortListener(_0x5351d7,()=>{const _0x2f9c1f={_0x3295f1:0x38},_0x14ccce={_0x145710:0x57};if(_0x3c9972[_0x3d4cec(_0x5d7d39._0x321471,_0x5d7d39._0xd80c51,0x365,_0x5d7d39._0xdbfa05)])return;_0x3c9972[_0x3d4cec(_0x5d7d39._0x207e63,_0x5d7d39._0x4eb261,_0x5d7d39._0x321471,0x370)]=!![],_0x3c9972[_0x3d4cec(0x37e,0x368,_0x5d7d39._0x5cef29,_0x5d7d39._0x825c41)]();const _0x50f3cd=_0x161b35[_0x19aca5(_0x5d7d39._0x3bbb30,_0x5d7d39._0x535d6d,0x515,_0x5d7d39._0x15fdab)](_0x3c9972);function _0x3d4cec(_0x6035e3,_0x15a41e,_0x441141,_0x56b3b8){return _0x56515c(_0x6035e3-0x43,_0x56b3b8-_0x14ccce._0x145710,_0x15a41e,_0x56b3b8-0x36);}if(_0x50f3cd>=0x0)_0x161b35[_0x19aca5(_0x5d7d39._0x2b6366,0x512,0x4ff,_0x5d7d39._0x9703ee)](_0x50f3cd,0x1);function _0x19aca5(_0x5a381f,_0x426833,_0x1dc11a,_0x30c740){return _0x56515c(_0x5a381f-_0x2f9c1f._0x3295f1,_0x30c740-0x1ec,_0x1dc11a,_0x30c740-0xa4);}_0x3c9972['reject'](toAbortError(_0x5351d7?.[_0x19aca5(_0x5d7d39._0xb01025,0x50d,0x50d,_0x5d7d39._0xa04b3c)]));});});}};}function _0x318f86(_0x563319,_0x10ccd9,_0x3035a6,_0x2f7feb){const _0x359b28={_0x91402f:0x385};return _0x1a59(_0x2f7feb-_0x359b28._0x91402f,_0x10ccd9);}var MESSAGE_ROLES=[_0x318f86(0x4ec,0x4e3,0x4e9,0x4df),_0x318f86(0x4db,0x4d6,0x4eb,0x4de)];Object[_0x318f86(0x4f5,0x4ed,0x4e1,0x4ef)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,isAgentOnlyBashCompletion,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};function _0x1544(){const _0x45829c=['yxnZAxn0yw50','BgvUz3rO','CMvZB2X2zq','CMvQzwn0','C3bSAwnL','CMvTB3zLqwjVCNrmAxn0zw5LCG','ogDlrKPpyW','ChvZAa','AxnjBNrLz2vY','odq5nu1lAurSqW','mtG2ota3rKnxzxjm','CMvHC29U','ywjVCNrLza','ndm3odiZtK9xq0XY','mJKWCKDjvxH1','nJu2nZGYogzeyxHStW','zNjLzxPL','mtm1nJaWotbWBgvTrhG','nJqWodGYneDswM1RCG','AxngAw5PDgu','Aw5KzxHpzG','C2HPzNq','odHlAvryrK4','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','nZeZodu5mfzbtfDWBW','mtaYrKDWzgfI','mtHgu0LlsKu','y2fUy2vSBgvK','DxnLCG'];_0x1544=function(){return _0x45829c;};return _0x1544();}
1
+ (function(_0x3feb7c,_0x5af8fb){const _0x1dcb8f={_0x2260b0:0x40,_0xfab7dd:0x45,_0xb77dca:0x41,_0x55e36e:0x37f,_0xaad825:0x38b,_0x533a87:0x3d,_0x24886a:0x57,_0x374760:0x4f,_0x35d9b1:0x50,_0x3e38e1:0x373,_0x54e4d8:0x372,_0x35a459:0x366,_0x35eac2:0x373,_0x2602ee:0x53,_0x5e1a5a:0x49,_0x3e9f6a:0x387,_0x224134:0x381,_0x3f298b:0x376,_0x4fab09:0x37a},_0x1910a2={_0x4adcf2:0x212};function _0xe345c(_0x12f28a,_0x219a27,_0x23b612,_0x572e28){return _0xbdbe(_0x219a27- -_0x1910a2._0x4adcf2,_0x12f28a);}const _0x2aa96c=_0x3feb7c();function _0x21cb93(_0x2ef945,_0x38f01c,_0x1cde95,_0x5407a9){return _0xbdbe(_0x2ef945-0x1ac,_0x1cde95);}while(!![]){try{const _0x540334=parseInt(_0xe345c(-0x5f,-0x57,-0x5d,-0x54))/0x1*(parseInt(_0xe345c(-_0x1dcb8f._0x2260b0,-_0x1dcb8f._0xfab7dd,-_0x1dcb8f._0xb77dca,-0x47))/0x2)+-parseInt(_0x21cb93(0x380,_0x1dcb8f._0x55e36e,_0x1dcb8f._0xaad825,0x373))/0x3+-parseInt(_0xe345c(-0x4d,-0x41,-_0x1dcb8f._0x533a87,-0x3c))/0x4+-parseInt(_0xe345c(-_0x1dcb8f._0x24886a,-_0x1dcb8f._0x374760,-0x5b,-_0x1dcb8f._0x35d9b1))/0x5+-parseInt(_0x21cb93(_0x1dcb8f._0x3e38e1,_0x1dcb8f._0x54e4d8,0x37e,_0x1dcb8f._0x35a459))/0x6+parseInt(_0x21cb93(0x36d,_0x1dcb8f._0x3e38e1,0x369,_0x1dcb8f._0x35eac2))/0x7*(-parseInt(_0xe345c(-0x5c,-_0x1dcb8f._0x2602ee,-_0x1dcb8f._0x5e1a5a,-0x4a))/0x8)+-parseInt(_0x21cb93(0x37f,_0x1dcb8f._0x3e9f6a,_0x1dcb8f._0x224134,0x383))/0x9*(-parseInt(_0x21cb93(_0x1dcb8f._0x3f298b,0x37b,0x36b,_0x1dcb8f._0x4fab09))/0xa);if(_0x540334===_0x5af8fb)break;else _0x2aa96c['push'](_0x2aa96c['shift']());}catch(_0x3d5916){_0x2aa96c['push'](_0x2aa96c['shift']());}}}(_0x8f95,0x852eb));function _0x3ec613(_0xf6e414,_0x2beba6,_0xeff0eb,_0x26e744){return _0xbdbe(_0x2beba6- -0x4b,_0xf6e414);}import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';function _0x8f95(){const _0x4e653b=['ndK1nJyWDMvmqKHm','DxnLCG','AxngAw5PDgu','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','nJiZmJa1nLLmD2XMwq','ywjVCNrLza','CMvHC29U','mte2ntu3nJbhugPVvMq','ChvZAa','BgvUz3rO','ntuZmdjVBu9TrLq','CMvTB3zLqwjVCNrmAxn0zw5LCG','CMvQzwn0','AxnjBNrLz2vY','nJK0mJaWrhDMuhLz','yxnZAxn0yw50','mtHltencswu','mJmXmZi3m1fHy2Lnwa','mJL2vwLLuwS','Aw5KzxHpzG','C3bSAwnL','y2fUy2vSBgvK','oez6Euj4Aa','zNjLzxPL','mZuZntq2owD2CNruEG','CMvZB2X2zq'];_0x8f95=function(){return _0x4e653b;};return _0x8f95();}import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError,isAgentOnlyBashCompletion,isAgentOnlyCoordinatorNotice}from'../chunk-YTDATWXW.js';function _0x198175(_0x1c26e2,_0x574814,_0x324895,_0x2d5043){const _0x46c0dc={_0x16b2f9:0xd9};return _0xbdbe(_0x1c26e2-_0x46c0dc._0x16b2f9,_0x2d5043);}import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function _0xbdbe(_0x51a191,_0x28291b){_0x51a191=_0x51a191-0x1bb;const _0x8f9573=_0x8f95();let _0xbdbeaf=_0x8f9573[_0x51a191];if(_0xbdbe['quqXFi']===undefined){var _0x4b5ffc=function(_0x554c59){const _0x2039a8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x24c35b='',_0x4c24c1='';for(let _0x119e05=0x0,_0x55e2f4,_0x29bf33,_0x2488ba=0x0;_0x29bf33=_0x554c59['charAt'](_0x2488ba++);~_0x29bf33&&(_0x55e2f4=_0x119e05%0x4?_0x55e2f4*0x40+_0x29bf33:_0x29bf33,_0x119e05++%0x4)?_0x24c35b+=String['fromCharCode'](0xff&_0x55e2f4>>(-0x2*_0x119e05&0x6)):0x0){_0x29bf33=_0x2039a8['indexOf'](_0x29bf33);}for(let _0x15c9af=0x0,_0x2bcbfa=_0x24c35b['length'];_0x15c9af<_0x2bcbfa;_0x15c9af++){_0x4c24c1+='%'+('00'+_0x24c35b['charCodeAt'](_0x15c9af)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c24c1);};_0xbdbe['vwzVFt']=_0x4b5ffc,_0xbdbe['rxnqQA']={},_0xbdbe['quqXFi']=!![];}const _0x5f2830=_0x8f9573[0x0],_0x188414=_0x51a191+_0x5f2830,_0x5674a2=_0xbdbe['rxnqQA'][_0x188414];return!_0x5674a2?(_0xbdbeaf=_0xbdbe['vwzVFt'](_0xbdbeaf),_0xbdbe['rxnqQA'][_0x188414]=_0xbdbeaf):_0xbdbeaf=_0x5674a2,_0xbdbeaf;}function createAbortAwareSemaphore(_0x24c35b){const _0x20befe={_0x1cac52:0x111,_0x51b7fa:0x108,_0x2cac59:0x107},_0xdc9538={_0x12f026:0x85,_0x3cf440:0x90,_0x426e42:0x84,_0x4816c9:0x106,_0x47187e:0x10b},_0x9b5c65={_0x79705c:0x50,_0xc3768c:0x2},_0x122c86={_0x3810ab:0x18d,_0x303cea:0x10d,_0x1d0898:0x18e},_0x4f5179={_0x4faae6:0x20b,_0x401f77:0x216,_0x1c0fe3:0x20c,_0x2f3a6f:0x21a,_0x55cc23:0x212,_0x629e90:0x20e,_0x1bee49:0x20d,_0x211a94:0x1fd,_0x495dc6:0x201,_0x545e0d:0x1ff,_0x5183c5:0x212},_0x381c2c={_0x2fc219:0x93},_0x5404d3={_0x587f29:0x245};function _0x2e5ab6(_0x48d844,_0x34c2e3,_0x1e4ac9,_0x221bdb){return _0xbdbe(_0x1e4ac9-_0x5404d3._0x587f29,_0x221bdb);}function _0x55cec6(_0x33b415,_0x2199dc,_0x5d59d2,_0x4299d8){return _0xbdbe(_0x4299d8- -0x2cd,_0x2199dc);}if(!Number[_0x55cec6(-0x114,-0x10f,-0xfd,-0x108)](_0x24c35b)||!Number[_0x55cec6(-0xfa,-0x104,-0x106,-0xfd)](_0x24c35b)||_0x24c35b<=0x0)throw new Error(_0x55cec6(-_0x20befe._0x1cac52,-0x10a,-_0x20befe._0x51b7fa,-_0x20befe._0x2cac59));let _0x4c24c1=0x0;const _0x119e05=[],_0x55e2f4=()=>{let _0x15c9af=![];return()=>{if(_0x15c9af)return;_0x15c9af=!![],_0x4c24c1-=0x1,_0x29bf33();};},_0x29bf33=()=>{const _0x114e0d={_0x8c1883:0x9f};function _0x513359(_0x11e80e,_0x3c41ac,_0x47571b,_0x44ac00){return _0x55cec6(_0x11e80e-0x32,_0x3c41ac,_0x47571b-_0x381c2c._0x2fc219,_0x44ac00- -0x10b);}function _0x5b72b3(_0x207b5d,_0xca61f1,_0x134499,_0x52f5a8){return _0x55cec6(_0x207b5d-_0x114e0d._0x8c1883,_0x52f5a8,_0x134499-0x1b7,_0x207b5d- -0xfe);}while(_0x119e05[_0x513359(-0x213,-_0x4f5179._0x4faae6,-_0x4f5179._0x401f77,-_0x4f5179._0x1c0fe3)]>0x0){const _0x2bcbfa=_0x119e05['shift']();if(!_0x2bcbfa||_0x2bcbfa[_0x513359(-_0x4f5179._0x2f3a6f,-_0x4f5179._0x55cc23,-_0x4f5179._0x629e90,-0x21a)])continue;_0x2bcbfa[_0x5b72b3(-_0x4f5179._0x1bee49,-0x209,-0x218,-0x206)]=!![],_0x2bcbfa[_0x5b72b3(-_0x4f5179._0x211a94,-0x1f2,-_0x4f5179._0x495dc6,-_0x4f5179._0x545e0d)](),_0x4c24c1+=0x1,_0x2bcbfa[_0x513359(-0x214,-_0x4f5179._0x5183c5,-0x21c,-0x216)](_0x55e2f4());return;}},_0x2488ba=()=>{if(_0x4c24c1>=_0x24c35b)return void 0x0;return _0x4c24c1+=0x1,_0x55e2f4();};return{'tryAcquire':_0x2488ba,'acquire'(_0x3711f8){const _0x39f913={_0x33270b:0x161,_0x1e624b:0x16e,_0xc18b90:0x159,_0x5d0888:0x174,_0x3948de:0x16f,_0x18c710:0x161},_0x3c39cb={_0x434235:0xc5,_0xaa34a7:0xd0,_0x370453:0xc7,_0x4afec4:0xc3,_0x3e0874:0xbf,_0xa1e569:0xe4,_0x256a2d:0x4b8,_0x47a654:0x4ba,_0x3947a4:0x4ae,_0xe6e205:0xc0,_0x5c782b:0xce,_0x33f096:0xb9,_0x134942:0x4c8,_0x4566bb:0x4b7,_0x718cdb:0xd2},_0x482ef1={_0x9ea0fc:0x10,_0x40c2d2:0x100};if(_0x3711f8?.[_0x5bf04f(_0xdc9538._0x12f026,0x89,0x92,0x85)])return Promise[_0x5bf04f(0x92,_0xdc9538._0x3cf440,0x8f,_0xdc9538._0x426e42)](toAbortError(_0x3711f8[_0x57ffa8(-0x108,-0x102,-_0xdc9538._0x4816c9,-_0xdc9538._0x47187e)]));const _0x3e875c=_0x2488ba();function _0x5bf04f(_0x3d059f,_0x2271a7,_0x50e72f,_0x10299c){return _0x55cec6(_0x3d059f-_0x122c86._0x3810ab,_0x50e72f,_0x50e72f-_0x122c86._0x303cea,_0x2271a7-_0x122c86._0x1d0898);}function _0x57ffa8(_0x1f0bd4,_0x41d85a,_0x459d9c,_0x26f2f5){return _0x55cec6(_0x1f0bd4-0x27,_0x1f0bd4,_0x459d9c-_0x9b5c65._0x79705c,_0x41d85a-_0x9b5c65._0xc3768c);}if(_0x3e875c!==void 0x0)return Promise['resolve'](_0x3e875c);return new Promise((_0x2b1d45,_0x2e93b8)=>{const _0xc7713e={_0x32e55e:0xd9};function _0x50ea0a(_0xbe79a5,_0x3c13a4,_0x112af,_0x28c284){return _0x57ffa8(_0x28c284,_0x112af- -_0x482ef1._0x9ea0fc,_0x112af-_0x482ef1._0x40c2d2,_0x28c284-0x61);}const _0x47e0af={'resolve':_0x2b1d45,'reject':_0x2e93b8,'cancelled':![],'removeAbortListener':()=>{}};_0x119e05[_0x398d59(_0x39f913._0x33270b,_0x39f913._0x1e624b,0x165,_0x39f913._0xc18b90)](_0x47e0af);function _0x398d59(_0x40b0b7,_0x2d13b0,_0x13525d,_0x3a390e){return _0x5bf04f(_0x40b0b7-0x44,_0x13525d-_0xc7713e._0x32e55e,_0x3a390e,_0x3a390e-0x17);}_0x47e0af[_0x398d59(_0x39f913._0x5d0888,_0x39f913._0x3948de,0x168,_0x39f913._0x18c710)]=addAbortListener(_0x3711f8,()=>{const _0x1cf2ef={_0xe13979:0x46,_0x5c2890:0x96,_0x1f7d7a:0x5cd},_0x313803={_0x41706a:0x81,_0x5cd2f7:0x91};if(_0x47e0af[_0x3a1b52(_0x3c39cb._0x434235,_0x3c39cb._0xaa34a7,_0x3c39cb._0x370453,_0x3c39cb._0x4afec4)])return;_0x47e0af[_0x3a1b52(0xd3,_0x3c39cb._0x3e0874,0xc7,0xc0)]=!![],_0x47e0af[_0x3a1b52(_0x3c39cb._0xa1e569,0xd1,0xd7,0xd2)]();function _0x3a1b52(_0x35c0bd,_0x275daf,_0x59462d,_0x4580a1){return _0x398d59(_0x35c0bd-_0x313803._0x41706a,_0x275daf-0x101,_0x59462d- -_0x313803._0x5cd2f7,_0x275daf);}const _0x31f570=_0x119e05[_0x3d2bef(_0x3c39cb._0x256a2d,_0x3c39cb._0x47a654,_0x3c39cb._0x3947a4,0x4ad)](_0x47e0af);function _0x3d2bef(_0x55dca1,_0x4559ca,_0x3ddcdc,_0x5a5997){return _0x50ea0a(_0x55dca1-_0x1cf2ef._0xe13979,_0x4559ca-_0x1cf2ef._0x5c2890,_0x3ddcdc-_0x1cf2ef._0x1f7d7a,_0x4559ca);}if(_0x31f570>=0x0)_0x119e05[_0x3a1b52(_0x3c39cb._0xe6e205,_0x3c39cb._0x5c782b,0xc6,_0x3c39cb._0x33f096)](_0x31f570,0x1);_0x47e0af[_0x3d2bef(_0x3c39cb._0x134942,_0x3c39cb._0x4566bb,0x4c1,0x4c2)](toAbortError(_0x3711f8?.[_0x3a1b52(0xdd,0xd6,_0x3c39cb._0x718cdb,0xc6)]));});});}};}var MESSAGE_ROLES=[_0x3ec613(0x181,0x187,0x17d,0x18e),_0x3ec613(0x172,0x179,0x16c,0x17c)];Object[_0x198175(0x299,0x2a1,0x29f,0x2a5)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,isAgentOnlyBashCompletion,isAgentOnlyCoordinatorNotice,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
@@ -464,7 +464,7 @@ export type TurnMessageMeta = {
464
464
  transcriptVisibility?: never;
465
465
  } | {
466
466
  submissionOrigin: "coordinator";
467
- deliveryKind: "bash-completion";
467
+ deliveryKind: "bash-completion" | "background-work-stopped";
468
468
  transcriptVisibility: "agent-only";
469
469
  senderAgentId?: never;
470
470
  subagentReport?: never;
@@ -801,6 +801,12 @@ export type AgentSubmission = Readonly<{
801
801
  deliveryKind: "bash-completion";
802
802
  transcriptVisibility: "agent-only";
803
803
  subagentReport?: never;
804
+ }> | Readonly<{
805
+ origin: "coordinator";
806
+ token: string;
807
+ deliveryKind: "background-work-stopped";
808
+ transcriptVisibility: "agent-only";
809
+ subagentReport?: never;
804
810
  }> | Readonly<{
805
811
  origin: "agent";
806
812
  senderAgentId: string;