@nuvin/agent-core 0.3.1-rc.1 → 0.4.0-rc.3

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.
@@ -0,0 +1,9 @@
1
+ /** Trusted visibility is independent of display-only command presentation. */
2
+ export declare function isAgentOnlyBashCompletion(value: unknown): value is Record<string, unknown> & {
3
+ deliveryKind: "bash-completion";
4
+ transcriptVisibility: "agent-only";
5
+ subagentReport?: never;
6
+ presentation?: never;
7
+ noticeRole?: never;
8
+ };
9
+ //# sourceMappingURL=bash-completion-visibility.d.ts.map
@@ -1,5 +1,6 @@
1
1
  export * from "./abort.ts";
2
2
  export * from "./abort-aware-semaphore.ts";
3
+ export * from "./bash-completion-visibility.ts";
3
4
  export * from "./model-identity.ts";
4
5
  export * from "./reasoning-config.ts";
5
6
  export * from "./turn-failed.ts";
@@ -1 +1 @@
1
- function _0xa12d(){const _0x54fca8=['CMvTB3zLqwjVCNrmAxn0zw5LCG','ndm2mdu2wMzMt1n4','mtf3qLzdCxy','mZa4zermtvPl','ndbOrMfmEei','AxnjBNrLz2vY','zNjLzxPL','nZu1nfnXyLfzDa','mZuZmdG5mfD4BM9XsG','odiZntG1A3ziANjW','CMvQzwn0','Aw5KzxHpzG','DxnLCG','yxnZAxn0yw50','CMvZB2X2zq','ChvZAa','nZi5oty5nLfgv1b3sG','mtC5mtHks2XTuxC','CMvHC29U','y2fUy2vSBgvK','C3bSAwnL','mtHot05Hz3q','mtqYodqYCuL5BvHQ','mtbvz05kBe4','BgvUz3rO','AxngAw5PDgu'];_0xa12d=function(){return _0x54fca8;};return _0xa12d();}function _0x4e78(_0x5a20d2,_0x1715ee){_0x5a20d2=_0x5a20d2-0xf2;const _0xa12d51=_0xa12d();let _0x4e784f=_0xa12d51[_0x5a20d2];if(_0x4e78['xCRZap']===undefined){var _0x598005=function(_0xeecf60){const _0x33a269='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x47bd5c='',_0x5e854c='';for(let _0xd80262=0x0,_0x435b21,_0x5a2b6c,_0x4e3b13=0x0;_0x5a2b6c=_0xeecf60['charAt'](_0x4e3b13++);~_0x5a2b6c&&(_0x435b21=_0xd80262%0x4?_0x435b21*0x40+_0x5a2b6c:_0x5a2b6c,_0xd80262++%0x4)?_0x47bd5c+=String['fromCharCode'](0xff&_0x435b21>>(-0x2*_0xd80262&0x6)):0x0){_0x5a2b6c=_0x33a269['indexOf'](_0x5a2b6c);}for(let _0x41cb21=0x0,_0x2fbd1f=_0x47bd5c['length'];_0x41cb21<_0x2fbd1f;_0x41cb21++){_0x5e854c+='%'+('00'+_0x47bd5c['charCodeAt'](_0x41cb21)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5e854c);};_0x4e78['MzZhBT']=_0x598005,_0x4e78['xOyAfl']={},_0x4e78['xCRZap']=!![];}const _0x133e0e=_0xa12d51[0x0],_0x20a0a5=_0x5a20d2+_0x133e0e,_0x4eabef=_0x4e78['xOyAfl'][_0x20a0a5];return!_0x4eabef?(_0x4e784f=_0x4e78['MzZhBT'](_0x4e784f),_0x4e78['xOyAfl'][_0x20a0a5]=_0x4e784f):_0x4e784f=_0x4eabef,_0x4e784f;}(function(_0x294d11,_0x2ef005){const _0x1667c7={_0x54e868:0x87,_0x343269:0x86,_0x5bd13b:0x483,_0x5e657f:0x488,_0x2886eb:0x84,_0x30d989:0x79,_0x543a64:0x7c,_0x15638c:0x8a,_0x2c64d7:0x88,_0x2b2bfe:0x75,_0x459be1:0x7b,_0xf8cec4:0x491,_0x20737d:0x48c,_0x3ed4d0:0x484,_0x407f33:0x484,_0x5c0cc9:0x478,_0x195248:0x47f,_0x16e7dc:0x8f},_0x5ce733={_0x543381:0x388};function _0x42275a(_0x55c1d0,_0x1d818f,_0x42d00e,_0x3baf8c){return _0x4e78(_0x55c1d0-_0x5ce733._0x543381,_0x3baf8c);}function _0xf03c4e(_0x3e0110,_0x967b53,_0x3cb235,_0x57f01a){return _0x4e78(_0x57f01a- -0x7e,_0x967b53);}const _0x594c1a=_0x294d11();while(!![]){try{const _0x3e9c1a=parseInt(_0xf03c4e(0x8e,0x81,0x7d,_0x1667c7._0x54e868))/0x1*(parseInt(_0xf03c4e(_0x1667c7._0x343269,0x94,0x97,0x8d))/0x2)+-parseInt(_0x42275a(_0x1667c7._0x5bd13b,0x490,0x477,_0x1667c7._0x5e657f))/0x3*(-parseInt(_0xf03c4e(_0x1667c7._0x2886eb,0x79,0x86,_0x1667c7._0x30d989))/0x4)+-parseInt(_0xf03c4e(_0x1667c7._0x543a64,0x6d,0x70,0x7a))/0x5*(-parseInt(_0xf03c4e(_0x1667c7._0x15638c,_0x1667c7._0x2c64d7,0x90,0x8c))/0x6)+-parseInt(_0xf03c4e(0x82,0x8b,0x78,0x7f))/0x7+-parseInt(_0xf03c4e(_0x1667c7._0x2b2bfe,_0x1667c7._0x459be1,_0x1667c7._0x2b2bfe,0x77))/0x8*(parseInt(_0x42275a(_0x1667c7._0xf8cec4,0x49d,_0x1667c7._0x20737d,_0x1667c7._0x5e657f))/0x9)+-parseInt(_0x42275a(_0x1667c7._0x3ed4d0,0x486,_0x1667c7._0x407f33,_0x1667c7._0x5c0cc9))/0xa*(parseInt(_0x42275a(0x47e,0x47b,_0x1667c7._0x195248,_0x1667c7._0x407f33))/0xb)+parseInt(_0xf03c4e(_0x1667c7._0x16e7dc,0x85,0x7f,0x86))/0xc;if(_0x3e9c1a===_0x2ef005)break;else _0x594c1a['push'](_0x594c1a['shift']());}catch(_0x5df5e0){_0x594c1a['push'](_0x594c1a['shift']());}}}(_0xa12d,0x7aad2));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';function _0xbf1129(_0x3419ca,_0x309262,_0x4d3fb3,_0xb2043f){return _0x4e78(_0x309262-0x8a,_0x4d3fb3);}import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';function _0x3f6966(_0x126bfb,_0x525326,_0x5883e1,_0x34fae9){return _0x4e78(_0x126bfb- -0x188,_0x34fae9);}import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x47bd5c){const _0x27625a={_0x1f5a48:0x80,_0x2b0140:0x79,_0xe8a8b2:0x76,_0x45647d:0x49},_0x1a83a3={_0x1d80e8:0xcf,_0x7fce0c:0x464,_0x54a214:0x46d,_0x247785:0x46b},_0x4af9d3={_0x3690dd:0x14a,_0x1fe2fc:0x14d,_0x5e3cce:0x97,_0x3db07b:0x97},_0x56ea1e={_0x1eb0ae:0x144,_0x482fd8:0x21},_0x5a082d={_0x1485ab:0x44},_0x4fd506={_0x56bf61:0xbf,_0x3177e5:0xb2,_0xe507c3:0xc9,_0x2e623f:0xde,_0x3e9c4b:0xe5,_0x4b4b88:0xe0,_0x228807:0xe6,_0x536959:0xf2},_0x5b838e={_0x349b9:0x10d,_0x1591bb:0x15c};function _0xadd2ea(_0x4f7eed,_0x2cc0a9,_0x138366,_0x3360a3){return _0x4e78(_0x4f7eed- -0x140,_0x2cc0a9);}if(!Number[_0x1d48d5(-_0x27625a._0x1f5a48,-_0x27625a._0x2b0140,-_0x27625a._0xe8a8b2,-0x89)](_0x47bd5c)||!Number[_0xadd2ea(-0x47,-0x3b,-_0x27625a._0x45647d,-0x40)](_0x47bd5c)||_0x47bd5c<=0x0)throw new Error('maxConcurrency\x20must\x20be\x20a\x20finite\x20positive\x20integer');let _0x5e854c=0x0;const _0xd80262=[],_0x435b21=()=>{let _0x41cb21=![];return()=>{if(_0x41cb21)return;_0x41cb21=!![],_0x5e854c-=0x1,_0x5a2b6c();};},_0x5a2b6c=()=>{const _0x17712b={_0x1bf50a:0x1a};function _0x44bc96(_0x35a7fb,_0x3a183a,_0x25a700,_0x3ca05b){return _0xadd2ea(_0x3a183a-_0x5b838e._0x349b9,_0x25a700,_0x25a700-_0x5b838e._0x1591bb,_0x3ca05b-0x52);}function _0x2f728a(_0x43c5eb,_0x2b4e1f,_0x324e5e,_0x4c7e18){return _0x1d48d5(_0x4c7e18- -0x7a,_0x43c5eb,_0x324e5e-_0x17712b._0x1bf50a,_0x4c7e18-0x5b);}while(_0xd80262[_0x44bc96(0xb7,_0x4fd506._0x56bf61,_0x4fd506._0x3177e5,_0x4fd506._0xe507c3)]>0x0){const _0x2fbd1f=_0xd80262['shift']();if(!_0x2fbd1f||_0x2fbd1f['cancelled'])continue;_0x2fbd1f[_0x2f728a(-_0x4fd506._0x2e623f,-_0x4fd506._0x3e9c4b,-_0x4fd506._0x4b4b88,-_0x4fd506._0x228807)]=!![],_0x2fbd1f['removeAbortListener'](),_0x5e854c+=0x1,_0x2fbd1f[_0x2f728a(-_0x4fd506._0x228807,-_0x4fd506._0x536959,-0xde,-0xeb)](_0x435b21());return;}},_0x4e3b13=()=>{if(_0x5e854c>=_0x47bd5c)return void 0x0;return _0x5e854c+=0x1,_0x435b21();};function _0x1d48d5(_0x4bd75c,_0x3c3f96,_0x48cd1d,_0x14dd08){return _0x4e78(_0x4bd75c- -0x173,_0x3c3f96);}return{'tryAcquire':_0x4e3b13,'acquire'(_0x5f0201){const _0x4d691f={_0x33650a:0x114,_0x7355e9:0x114,_0x547150:0x11f,_0x59a10a:0x114,_0x8eb392:0x238,_0x41d07d:0x23d,_0xa4fcff:0x249,_0x197be0:0x254,_0x58cd85:0x10b,_0x5c32c4:0x10f};function _0x57e623(_0x2d461d,_0x5cf904,_0x23533b,_0x211645){return _0x1d48d5(_0x211645-0x4dc,_0x23533b,_0x23533b-_0x5a082d._0x1485ab,_0x211645-0x68);}if(_0x5f0201?.['aborted'])return Promise[_0x53455e(0xc3,0xd3,_0x1a83a3._0x1d80e8,0xc4)](toAbortError(_0x5f0201[_0x53455e(0xe0,0xdc,0xd7,0xcb)]));const _0x41a01d=_0x4e3b13();if(_0x41a01d!==void 0x0)return Promise[_0x57e623(0x478,_0x1a83a3._0x7fce0c,_0x1a83a3._0x54a214,_0x1a83a3._0x247785)](_0x41a01d);function _0x53455e(_0x40d5c1,_0x57d5c8,_0x4309ab,_0x2a157e){return _0x1d48d5(_0x4309ab-_0x56ea1e._0x1eb0ae,_0x40d5c1,_0x4309ab-0x2,_0x2a157e-_0x56ea1e._0x482fd8);}return new Promise((_0x4c50a8,_0x3b9af3)=>{const _0x1846af={_0x7a6022:0xac,_0xf1ef57:0xf7},_0x252cf1={_0xe9151:0x35},_0x5d07e1={_0x3d09a1:0x21,_0x391d08:0x1b},_0x3d87fc={_0x21c33d:0x1c1},_0x3c2929={'resolve':_0x4c50a8,'reject':_0x3b9af3,'cancelled':![],'removeAbortListener':()=>{}};_0xd80262[_0x2daf52(-_0x4af9d3._0x3690dd,-_0x4af9d3._0x1fe2fc,-0x14d,-0x144)](_0x3c2929);function _0x40efae(_0x1d4070,_0x3a60d8,_0x25493f,_0x51a330){return _0x53455e(_0x3a60d8,_0x3a60d8-_0x3d87fc._0x21c33d,_0x25493f- -0x166,_0x51a330-0xa);}function _0x2daf52(_0x3fdd68,_0xb617b5,_0x33115a,_0x4d805e){return _0x53455e(_0x3fdd68,_0xb617b5-_0x5d07e1._0x3d09a1,_0x33115a- -0x221,_0x4d805e-_0x5d07e1._0x391d08);}_0x3c2929[_0x40efae(-_0x4af9d3._0x5e3cce,-_0x4af9d3._0x3db07b,-0xa1,-0xa1)]=addAbortListener(_0x5f0201,()=>{if(_0x3c2929[_0x413687(-0x23f,-0x240,-0x238,-0x238)])return;_0x3c2929[_0x53de73(-0x10b,-_0x4d691f._0x33650a,-_0x4d691f._0x7355e9,-0x110)]=!![];function _0x53de73(_0x31b28f,_0x50cffe,_0x12f483,_0x570bb5){return _0x2daf52(_0x570bb5,_0x50cffe-0x2e,_0x50cffe-_0x252cf1._0xe9151,_0x570bb5-0x1a2);}_0x3c2929['removeAbortListener']();const _0x33286d=_0xd80262[_0x53de73(-0x11b,-0x11c,-_0x4d691f._0x547150,-_0x4d691f._0x59a10a)](_0x3c2929);function _0x413687(_0x5ee2bf,_0x1937b5,_0xbaae2e,_0x130e42){return _0x2daf52(_0xbaae2e,_0x1937b5-_0x1846af._0x7a6022,_0x1937b5- -_0x1846af._0xf1ef57,_0x130e42-0x18a);}if(_0x33286d>=0x0)_0xd80262[_0x413687(-_0x4d691f._0x8eb392,-0x23f,-0x23a,-0x234)](_0x33286d,0x1);_0x3c2929[_0x413687(-_0x4d691f._0x41d07d,-_0x4d691f._0xa4fcff,-_0x4d691f._0x197be0,-0x24a)](toAbortError(_0x5f0201?.[_0x53de73(-0x112,-0x115,-_0x4d691f._0x58cd85,-_0x4d691f._0x5c32c4)]));});});}};}var MESSAGE_ROLES=[_0x3f6966(-0x87,-0x7a,-0x87,-0x7f),_0xbf1129(0x197,0x18a,0x185,0x185)];Object[_0x3f6966(-0x8e,-0x97,-0x90,-0x91)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
1
+ function _0x48d7c7(_0x514a53,_0x407323,_0x5151fb,_0x46489d){return _0xc294(_0x46489d-0x296,_0x514a53);}(function(_0x41be1e,_0x599626){const _0x24851f={_0x389447:0x2,_0x170bcb:0xb,_0x105a71:0x18,_0x1e9ed1:0x5,_0x14303a:0xc,_0x7ee229:0xbd,_0x36d20e:0xbf,_0x2a3e9b:0xcc,_0x4562b0:0xbc,_0x1441ab:0x9,_0x44fd76:0x8,_0x51b627:0x5,_0x127385:0x1,_0x207293:0x4,_0x3eb501:0xf,_0x288eec:0xbb,_0x20106f:0xb2,_0x5592e4:0x2,_0x33dbd0:0x10},_0x5632b6={_0x32e1f3:0x9d},_0x49afc6={_0x294481:0x16a};function _0xf3ae52(_0x3a622b,_0x130cc3,_0x31ad2e,_0x494186){return _0xc294(_0x3a622b- -_0x49afc6._0x294481,_0x494186);}const _0x71d41=_0x41be1e();function _0x4d279a(_0x331550,_0x6af4c3,_0xceaabc,_0xf4a248){return _0xc294(_0xceaabc- -_0x5632b6._0x32e1f3,_0x6af4c3);}while(!![]){try{const _0x7920c7=parseInt(_0x4d279a(_0x24851f._0x389447,-0x5,0x3,0xf))/0x1*(-parseInt(_0x4d279a(0x12,_0x24851f._0x170bcb,0xf,_0x24851f._0x105a71))/0x2)+parseInt(_0x4d279a(-_0x24851f._0x1e9ed1,_0x24851f._0x14303a,0x8,0xf))/0x3+parseInt(_0xf3ae52(-_0x24851f._0x7ee229,-0xc6,-_0x24851f._0x36d20e,-0xb1))/0x4*(-parseInt(_0xf3ae52(-_0x24851f._0x2a3e9b,-0xd3,-_0x24851f._0x2a3e9b,-0xca))/0x5)+-parseInt(_0xf3ae52(-0xbc,-_0x24851f._0x4562b0,-0xb2,-_0x24851f._0x36d20e))/0x6*(-parseInt(_0x4d279a(_0x24851f._0x1441ab,-0x1,_0x24851f._0x1e9ed1,-_0x24851f._0x44fd76))/0x7)+-parseInt(_0x4d279a(_0x24851f._0x51b627,_0x24851f._0x127385,_0x24851f._0x207293,_0x24851f._0x3eb501))/0x8+-parseInt(_0xf3ae52(-0xb4,-_0x24851f._0x288eec,-0xac,-_0x24851f._0x20106f))/0x9*(parseInt(_0xf3ae52(-0xb6,-0xb0,-_0x24851f._0x4562b0,-0xb8))/0xa)+parseInt(_0x4d279a(0x0,-_0x24851f._0x5592e4,0x2,_0x24851f._0x33dbd0))/0xb;if(_0x7920c7===_0x599626)break;else _0x71d41['push'](_0x71d41['shift']());}catch(_0x305549){_0x71d41['push'](_0x71d41['shift']());}}}(_0x5e62,0x298b1));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError,isAgentOnlyBashCompletion}from'../chunk-CVOXBVKH.js';function _0x318eb4(_0x533b96,_0xc77572,_0x38d5bf,_0x41c058){const _0x571d08={_0x29c85a:0x308};return _0xc294(_0x38d5bf-_0x571d08._0x29c85a,_0xc77572);}function _0x5e62(){const _0x2bb267=['mtbSzgvlBM8','AxnjBNrLz2vY','mtKXmtKZm2XpvNPnyW','DxnLCG','CMvQzwn0','mtbVv3feu3m','nJaZodmYou9Wrw9WCW','mJGXntuYzePmEMLV','mJyXmZu0nffiquzZCa','mtC5ntqYm05OAMPNyq','Aw5KzxHpzG','AxngAw5PDgu','mtaXmty2ovnArMXhEa','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','CMvTB3zLqwjVCNrmAxn0zw5LCG','y2fUy2vSBgvK','yxnZAxn0yw50','C3bSAwnL','ywjVCNrLza','mLDOB2fPua','mZaZnJe2D1biwgLR','nKzrr1PVzq','CMvHC29U','zNjLzxPL','BgvUz3rO','CMvZB2X2zq','C2HPzNq'];_0x5e62=function(){return _0x2bb267;};return _0x5e62();}import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x4b1d9e){const _0x10599e={_0x54d9f1:0x2b5,_0x18666a:0x2b7,_0x2007a5:0x2bd,_0x40a482:0x297,_0x34e6c4:0x2b4,_0xe7043d:0x2a6,_0x59a3d0:0x2b4},_0x304339={_0x22bdec:0x202,_0x4219cb:0x1f7,_0x560c83:0x208,_0x324bd2:0x20f,_0x4fff01:0x202,_0x2a975a:0x206,_0x4b733b:0x20b,_0x3e96f1:0x208,_0x5313fc:0x20c,_0x50938f:0x3b2,_0x280fc7:0x3a9},_0x49f313={_0xef7fdc:0x1a8,_0x476d04:0xd6,_0x154e46:0xd3},_0x5733f6={_0x116981:0x156,_0x41760b:0x6e,_0x2c962f:0xd9},_0x4221db={_0x31325d:0x359},_0x16ed76={_0x1b0994:0x18a,_0x439c22:0x19e,_0x5a214b:0x192,_0x264056:0x1a9,_0x2585c2:0x1aa,_0x4bbe83:0x1ab,_0x201384:0x1a4,_0x36c2c5:0x1a7,_0x4faea0:0x190,_0x58a3a0:0x196,_0x54126c:0x18e};if(!Number[_0x1c2a21(-_0x10599e._0x54d9f1,-_0x10599e._0x18666a,-0x2ab,-_0x10599e._0x2007a5)](_0x4b1d9e)||!Number[_0x1c2a21(-0x2a4,-0x2a9,-_0x10599e._0x40a482,-0x29b)](_0x4b1d9e)||_0x4b1d9e<=0x0)throw new Error(_0x1c2a21(-0x2b3,-_0x10599e._0x34e6c4,-_0x10599e._0xe7043d,-_0x10599e._0x59a3d0));let _0x178b3f=0x0;function _0x38cc07(_0x5bfdd7,_0x3ee967,_0x2f8a01,_0x4a8761){return _0xc294(_0x4a8761-0x230,_0x2f8a01);}const _0x5d2013=[],_0x699a58=()=>{let _0x4c7ea1=![];return()=>{if(_0x4c7ea1)return;_0x4c7ea1=!![],_0x178b3f-=0x1,_0x53480d();};},_0x53480d=()=>{function _0x2aa5e7(_0x47db0b,_0x23ce68,_0x543119,_0x2984a4){return _0x1c2a21(_0x23ce68-0x45b,_0x23ce68-0x184,_0x47db0b,_0x2984a4-0x1dc);}function _0x5c6c7f(_0x659310,_0x1d1ec2,_0x5c60d1,_0x1a3009){return _0x38cc07(_0x659310-0xc5,_0x1d1ec2-0x46,_0x1a3009,_0x5c60d1- -0x475);}while(_0x5d2013[_0x5c6c7f(-_0x16ed76._0x1b0994,-0x191,-0x194,-0x190)]>0x0){const _0x28468a=_0x5d2013[_0x5c6c7f(-_0x16ed76._0x439c22,-0x186,-_0x16ed76._0x5a214b,-0x19f)]();if(!_0x28468a||_0x28468a[_0x2aa5e7(0x1ac,0x1aa,0x19d,0x1b5)])continue;_0x28468a[_0x2aa5e7(_0x16ed76._0x264056,_0x16ed76._0x2585c2,_0x16ed76._0x4bbe83,_0x16ed76._0x201384)]=!![],_0x28468a[_0x5c6c7f(-_0x16ed76._0x36c2c5,-_0x16ed76._0x264056,-0x19e,-0x198)](),_0x178b3f+=0x1,_0x28468a[_0x5c6c7f(-_0x16ed76._0x4faea0,-_0x16ed76._0x58a3a0,-0x193,-_0x16ed76._0x54126c)](_0x699a58());return;}};function _0x1c2a21(_0x3c831a,_0x1860b3,_0x12dcf3,_0x48d5b6){return _0xc294(_0x3c831a- -_0x4221db._0x31325d,_0x12dcf3);}const _0x214c7b=()=>{if(_0x178b3f>=_0x4b1d9e)return void 0x0;return _0x178b3f+=0x1,_0x699a58();};return{'tryAcquire':_0x214c7b,'acquire'(_0x20566e){const _0x131a20={_0x3f6319:0x179,_0x14b288:0x171,_0x1f3b25:0x495,_0x5a1617:0x48b,_0x2a79fa:0x485,_0x141f74:0x167,_0x19e87d:0x172,_0x197c9b:0x179,_0x159895:0x186,_0x145be3:0x17c};function _0x50e507(_0x26b268,_0x503b86,_0x274281,_0xc5e4f2){return _0x38cc07(_0x26b268-_0x5733f6._0x116981,_0x503b86-_0x5733f6._0x41760b,_0x503b86,_0x26b268- -_0x5733f6._0x2c962f);}function _0x5835ed(_0x2ae4e3,_0x28d211,_0x4f3ae9,_0x42838d){return _0x38cc07(_0x2ae4e3-_0x49f313._0xef7fdc,_0x28d211-_0x49f313._0x476d04,_0x2ae4e3,_0x28d211-_0x49f313._0x154e46);}if(_0x20566e?.[_0x50e507(_0x304339._0x22bdec,_0x304339._0x4219cb,_0x304339._0x560c83,0x1fb)])return Promise[_0x50e507(_0x304339._0x324bd2,_0x304339._0x4fff01,0x21c,0x218)](toAbortError(_0x20566e[_0x50e507(_0x304339._0x2a975a,_0x304339._0x4b733b,_0x304339._0x3e96f1,_0x304339._0x5313fc)]));const _0x191313=_0x214c7b();if(_0x191313!==void 0x0)return Promise[_0x5835ed(0x3bf,0x3b5,_0x304339._0x50938f,_0x304339._0x280fc7)](_0x191313);return new Promise((_0x350daa,_0x1e3941)=>{const _0x2d4fe1={'resolve':_0x350daa,'reject':_0x1e3941,'cancelled':![],'removeAbortListener':()=>{}};_0x5d2013['push'](_0x2d4fe1),_0x2d4fe1['removeAbortListener']=addAbortListener(_0x20566e,()=>{if(_0x2d4fe1['cancelled'])return;_0x2d4fe1['cancelled']=!![];function _0x2d9f28(_0x33dd6c,_0x5ca8d2,_0x37ffb9,_0x7e8763){return _0xc294(_0x37ffb9-0x3e8,_0x7e8763);}function _0x344fbf(_0x4b4495,_0x448e0b,_0x5dbc3a,_0x4eba0f){return _0xc294(_0x5dbc3a-0xc8,_0x448e0b);}_0x2d4fe1[_0x344fbf(0x170,_0x131a20._0x3f6319,0x16f,_0x131a20._0x14b288)]();const _0x2f30cd=_0x5d2013[_0x2d9f28(_0x131a20._0x1f3b25,_0x131a20._0x5a1617,_0x131a20._0x5a1617,_0x131a20._0x2a79fa)](_0x2d4fe1);if(_0x2f30cd>=0x0)_0x5d2013[_0x344fbf(_0x131a20._0x141f74,0x17c,_0x131a20._0x19e87d,0x16a)](_0x2f30cd,0x1);_0x2d4fe1[_0x344fbf(_0x131a20._0x197c9b,_0x131a20._0x159895,0x180,_0x131a20._0x145be3)](toAbortError(_0x20566e?.['reason']));});});}};}var MESSAGE_ROLES=[_0x48d7c7(0x33e,0x333,0x338,0x33f),_0x48d7c7(0x348,0x34e,0x344,0x34d)];function _0xc294(_0x397aa8,_0x3917f0){_0x397aa8=_0x397aa8-0x9e;const _0x5e625a=_0x5e62();let _0xc294fb=_0x5e625a[_0x397aa8];if(_0xc294['rKHjMb']===undefined){var _0x2b71e0=function(_0x24a857){const _0x71de4a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b1d9e='',_0x178b3f='';for(let _0x5d2013=0x0,_0x699a58,_0x53480d,_0x214c7b=0x0;_0x53480d=_0x24a857['charAt'](_0x214c7b++);~_0x53480d&&(_0x699a58=_0x5d2013%0x4?_0x699a58*0x40+_0x53480d:_0x53480d,_0x5d2013++%0x4)?_0x4b1d9e+=String['fromCharCode'](0xff&_0x699a58>>(-0x2*_0x5d2013&0x6)):0x0){_0x53480d=_0x71de4a['indexOf'](_0x53480d);}for(let _0x4c7ea1=0x0,_0x28468a=_0x4b1d9e['length'];_0x4c7ea1<_0x28468a;_0x4c7ea1++){_0x178b3f+='%'+('00'+_0x4b1d9e['charCodeAt'](_0x4c7ea1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x178b3f);};_0xc294['brxaYS']=_0x2b71e0,_0xc294['PjaeyH']={},_0xc294['rKHjMb']=!![];}const _0x195ff9=_0x5e625a[0x0],_0x1d5291=_0x397aa8+_0x195ff9,_0x37c14c=_0xc294['PjaeyH'][_0x1d5291];return!_0x37c14c?(_0xc294fb=_0xc294['brxaYS'](_0xc294fb),_0xc294['PjaeyH'][_0x1d5291]=_0xc294fb):_0xc294fb=_0x37c14c,_0xc294fb;}Object[_0x48d7c7(0x34a,0x33d,0x342,0x346)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,isAgentOnlyBashCompletion,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
@@ -431,7 +431,7 @@ export interface ChatModel {
431
431
  export interface ModelExecutionOptions {
432
432
  signal?: AbortSignal;
433
433
  }
434
- export interface TurnMessageMeta {
434
+ export type TurnMessageMeta = {
435
435
  provider?: string;
436
436
  model?: string;
437
437
  modelIdentity?: string;
@@ -459,7 +459,18 @@ export interface TurnMessageMeta {
459
459
  presentation?: "command-echo" | "command-notice";
460
460
  /** Notice row kind for presentation === "command-notice". */
461
461
  noticeRole?: "info" | "warning" | "error";
462
- }
462
+ } & ({
463
+ deliveryKind?: never;
464
+ transcriptVisibility?: never;
465
+ } | {
466
+ submissionOrigin: "coordinator";
467
+ deliveryKind: "bash-completion";
468
+ transcriptVisibility: "agent-only";
469
+ senderAgentId?: never;
470
+ subagentReport?: never;
471
+ presentation?: never;
472
+ noticeRole?: never;
473
+ });
463
474
  export interface EngineChatModel {
464
475
  model: string;
465
476
  modelIdentity: string;
@@ -505,6 +516,8 @@ export interface AgentEventContext {
505
516
  turnId: string;
506
517
  state: TurnState;
507
518
  executionScope: ToolExecutionScope;
519
+ /** Internal execution cancellation, when this event originates from a tool. */
520
+ signal?: AbortSignal;
508
521
  }
509
522
  export type AskUserOption = {
510
523
  label: string;
@@ -634,7 +647,19 @@ export interface AgentProviderStreamResetEvent {
634
647
  assistantMessageId: string;
635
648
  reasoningMessageId: string;
636
649
  }
637
- export type AgentLifecycleEvent = AgentAssistantChunkEvent | AgentAssistantMessageEvent | AgentFinalMessageEvent | AgentModelRequestEvent | AgentModelResponseEvent | AgentProviderRetryEvent | AgentProviderStreamResetEvent | AgentReasoningChunkEvent | AgentReasoningMessageEvent | AgentToolCallEvent | AgentToolUseChunkEvent | AgentToolUseMessageEvent | AgentToolResultEvent | AgentToolResultMessageEvent | AgentTurnCompleteEvent | AgentUserMessageEvent;
650
+ export type DelegatedModelIdentity = Readonly<{
651
+ runId: string;
652
+ /** 1-based delegated lifecycle order, not Agent.turnIndex or event time. */
653
+ turnNumber: number;
654
+ /** Absent only for the existing implicit synchronous/legacy first turn. */
655
+ turnId?: string;
656
+ modelIdentity: string;
657
+ }>;
658
+ export type AgentDelegatedModelResolvedEvent = DelegatedModelIdentity & Readonly<{
659
+ type: "delegated_model_resolved";
660
+ parentToolCallId: string;
661
+ }>;
662
+ export type AgentLifecycleEvent = AgentAssistantChunkEvent | AgentAssistantMessageEvent | AgentDelegatedModelResolvedEvent | AgentFinalMessageEvent | AgentModelRequestEvent | AgentModelResponseEvent | AgentProviderRetryEvent | AgentProviderStreamResetEvent | AgentReasoningChunkEvent | AgentReasoningMessageEvent | AgentToolCallEvent | AgentToolUseChunkEvent | AgentToolUseMessageEvent | AgentToolResultEvent | AgentToolResultMessageEvent | AgentTurnCompleteEvent | AgentUserMessageEvent;
638
663
  export type AgentEvent = AgentLifecycleEvent | ToolRuntimeEvent;
639
664
  export type ToolRuntimeDispatchDecision = {
640
665
  action: "reject";
@@ -761,15 +786,26 @@ export type AgentInput = MessageInput | string;
761
786
  /** Immutable ownership metadata for the exact agent submission being sent. */
762
787
  export type AgentSubmission = Readonly<{
763
788
  origin: "user";
789
+ deliveryKind?: never;
790
+ transcriptVisibility?: never;
764
791
  }> | Readonly<{
765
792
  origin: "coordinator";
766
793
  token: string;
767
794
  /** Trusted delegated report delivery whose provider text must remain verbatim. */
768
795
  deliveryKind?: "subagent-report";
796
+ transcriptVisibility?: never;
769
797
  subagentReport?: SubagentReportMeta;
798
+ }> | Readonly<{
799
+ origin: "coordinator";
800
+ token: string;
801
+ deliveryKind: "bash-completion";
802
+ transcriptVisibility: "agent-only";
803
+ subagentReport?: never;
770
804
  }> | Readonly<{
771
805
  origin: "agent";
772
806
  senderAgentId: string;
807
+ deliveryKind?: never;
808
+ transcriptVisibility?: never;
773
809
  }>;
774
810
  export type TurnSteeringInput = MessageInput | Readonly<{
775
811
  input: MessageInput;
@@ -1,6 +1,6 @@
1
1
  import { Agent } from "../../agent/agent.ts";
2
2
  import type { AbortAwareSemaphore } from "../../shared/abort-aware-semaphore.ts";
3
- import type { AgentDefinitionFactoryContext, AgentOptions } from "../../shared/types.ts";
3
+ import type { AgentDefinitionFactoryContext, AgentOptions, DelegatedModelIdentity, ModelUsageTotals } from "../../shared/types.ts";
4
4
  export declare const MODEL_TIERS: readonly ["fast", "balanced", "powerful"];
5
5
  export type ModelTier = (typeof MODEL_TIERS)[number];
6
6
  export type BackgroundAssignmentState = "started" | "queued";
@@ -13,6 +13,10 @@ export type BackgroundAssignmentRequest = Readonly<{
13
13
  parentSessionId: string;
14
14
  parentToolCallId: string;
15
15
  requestedModelTier?: ModelTier;
16
+ /** Short user-facing summary of the delegated work (AssignTask `description`). */
17
+ description?: string;
18
+ /** Optional short display name for the run (AssignTask `nickname`). */
19
+ nickname?: string;
16
20
  }>;
17
21
  export type BackgroundMessageRequest = Readonly<{
18
22
  runId: string;
@@ -49,10 +53,33 @@ export type BackgroundStopResult = Readonly<{
49
53
  agentId: string;
50
54
  state: "idle" | "stopping";
51
55
  }> | BackgroundDelegationRejection;
56
+ export type DelegatedRunState = "idle" | "queued" | "running" | "closing";
57
+ /** Snapshot of one live delegated conversation, as reported by ListAgents. */
58
+ export type DelegatedRunSummary = Readonly<{
59
+ runId: string;
60
+ agentId: string;
61
+ state: DelegatedRunState;
62
+ /** Set when state is "idle": the conversation is quiesced, awaiting SendMessage. */
63
+ waitingFor?: "steering";
64
+ task?: string;
65
+ description?: string;
66
+ nickname?: string;
67
+ requestedModelTier?: ModelTier;
68
+ childSessionId: string;
69
+ usage: ModelUsageTotals;
70
+ }>;
71
+ export type BackgroundListRequest = Readonly<{
72
+ parentSessionId: string;
73
+ runId?: string;
74
+ }>;
75
+ export type BackgroundListResult = Readonly<{
76
+ runs: readonly DelegatedRunSummary[];
77
+ }>;
52
78
  export interface BackgroundDelegationCapability {
53
79
  assign(request: BackgroundAssignmentRequest): Promise<BackgroundAssignmentResult>;
54
80
  sendMessage(request: BackgroundMessageRequest): Promise<BackgroundMessageResult>;
55
81
  stopAgent(request: BackgroundStopRequest): Promise<BackgroundStopResult>;
82
+ list(request: BackgroundListRequest): Promise<BackgroundListResult>;
56
83
  }
57
84
  export interface DelegatedAgentFactoryContext extends AgentDefinitionFactoryContext {
58
85
  parentSessionId: string;
@@ -88,6 +115,7 @@ export type DelegatedRunOutcome = Readonly<{
88
115
  }>;
89
116
  export interface DelegatedRunLifecycleHooks {
90
117
  start(agent: Agent, context: DelegatedAgentFactoryContext): Promise<void>;
118
+ modelResolved?(context: DelegatedAgentFactoryContext, model: DelegatedModelIdentity): Promise<void>;
91
119
  finish(context: DelegatedAgentFactoryContext, outcome: DelegatedRunOutcome): Promise<void>;
92
120
  }
93
121
  export type DelegatedAgentDefinition = AgentOptions | ((ctx: DelegatedAgentFactoryContext) => DelegatedAgentFactoryResult | Promise<DelegatedAgentFactoryResult>);
@@ -117,6 +145,13 @@ export interface CreateDelegationToolsOptions {
117
145
  export declare function isValidDelegatedRunId(value: unknown): value is string;
118
146
  export declare function createDelegatedRunId(): string;
119
147
  export declare function resolveDelegatedAgentOptions(definition: DelegatedAgentDefinition, ctx: DelegatedAgentFactoryContext): Promise<DelegatedAgentResolution>;
148
+ /**
149
+ * Canonical accepted-assignment output. This exact text is persisted in
150
+ * transcripts and re-validated verbatim by the runtime's transcript projection
151
+ * (transcript-message-projection.ts), so the grammar lives here, not in the
152
+ * consumer.
153
+ */
154
+ export declare function formatBackgroundAssignmentOutput(runId: string, state: BackgroundAssignmentState): string;
120
155
  export declare function createAssignTaskTool(options: CreateDelegationToolsOptions): import("../../shared/types.ts").ToolDefinition<{
121
156
  description: string;
122
157
  agentId: string;
@@ -186,6 +221,18 @@ export declare function createStopAgentTool(background: BackgroundDelegationCapa
186
221
  required: string[];
187
222
  additionalProperties: false;
188
223
  }>;
224
+ export declare function createListAgentsTool(background: BackgroundDelegationCapability): import("../../shared/types.ts").ToolDefinition<{
225
+ runId: string;
226
+ }, never, import("../../shared/types.ts").ToolOutputEnvelope, {
227
+ type: "object";
228
+ properties: {
229
+ runId: {
230
+ type: "string";
231
+ description: string;
232
+ };
233
+ };
234
+ additionalProperties: false;
235
+ }>;
189
236
  export declare const createDelegateToAgentTool: typeof createAssignTaskTool;
190
237
  export declare function createDelegationTools(options: CreateDelegationToolsOptions): (import("../../shared/types.ts").ToolDefinition<{
191
238
  description: string;
@@ -229,7 +276,6 @@ export declare function createDelegationTools(options: CreateDelegationToolsOpti
229
276
  description: string;
230
277
  };
231
278
  };
232
- required: string[];
233
279
  additionalProperties: false;
234
280
  }>)[];
235
281
  export {};
@@ -0,0 +1,13 @@
1
+ import type { FileHandle } from "node:fs/promises";
2
+ import type { ToolOutputEnvelope } from "../../shared/types.ts";
3
+ /** Reads only the fstat byte snapshot of an already authorized descriptor.
4
+ * Memory is one 64 KiB read/decoder chunk plus a response-budget-sized prefix.
5
+ * A clipped line cannot be resumed with line pagination; only later lines can.
6
+ */
7
+ export declare function readBashArtifactText(input: Readonly<{
8
+ file: FileHandle;
9
+ lineStart?: number;
10
+ lineEnd?: number;
11
+ maxBytes: number;
12
+ }>): Promise<ToolOutputEnvelope>;
13
+ //# sourceMappingURL=bash-artifact-read.d.ts.map
@@ -8,6 +8,7 @@ export interface FileReadToolOptions {
8
8
  mode?: FileEditMode;
9
9
  observations?: FileObservationStore;
10
10
  outputBudgetBytes?: number;
11
+ bashArtifactSessionsRoot?: string;
11
12
  }
12
13
  export declare function createFileReadTool(options?: FileReadToolOptions): import("../../shared/types.ts").ToolDefinition<{
13
14
  path: string;
@@ -37,7 +37,7 @@ export * from "./session/skill-tool.ts";
37
37
  export * from "./session/todo-write-tool.ts";
38
38
  export * from "./shell/background-bash-controller.ts";
39
39
  export * from "./shell/background-bash-process.ts";
40
- export * from "./shell/bash-output-tool.ts";
40
+ export * from "./shell/bash-artifact.ts";
41
41
  export * from "./shell/bash-tool.ts";
42
42
  export * from "./shell/command-tool.ts";
43
43
  export * from "./shell/kill-shell-tool.ts";