@nuvin/agent-core 0.2.0-rc.5 → 0.2.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.
@@ -1 +1 @@
1
- (function(_0x25cab3,_0x1f42ea){const _0x14a2a9={_0x2bb1db:0x38d,_0x502744:0x1f,_0x50e78f:0x19,_0x9b5a2a:0x1c,_0x3f93d5:0x1b,_0x174492:0x21,_0xd3573e:0xb,_0x442376:0x3,_0x3abdee:0x389,_0x26b90e:0x4,_0x5361be:0x9,_0xb2409b:0x6,_0x4712cc:0x39a,_0x372c83:0x15,_0x2d6b44:0x19,_0x5df508:0x397,_0x1e7783:0x38b,_0x215a75:0x24,_0x32b6c4:0x1d,_0x5918a8:0x398,_0x25ff60:0x3a2,_0x1b1b4b:0x39e},_0x17b679={_0x43a604:0x1f0},_0x52b0d1={_0x316cab:0x1b5};function _0x2f7435(_0x58df2c,_0x5e7da7,_0x4a2e9e,_0x394c6a){return _0x230d(_0x4a2e9e- -_0x52b0d1._0x316cab,_0x5e7da7);}function _0x12fd50(_0x2a4471,_0x527ef8,_0x198c09,_0x2cbe08){return _0x230d(_0x2a4471-_0x17b679._0x43a604,_0x527ef8);}const _0x3a06a4=_0x25cab3();while(!![]){try{const _0x12449f=parseInt(_0x12fd50(_0x14a2a9._0x2bb1db,0x389,0x38b,0x397))/0x1*(-parseInt(_0x2f7435(-_0x14a2a9._0x502744,-0xf,-0x16,-_0x14a2a9._0x50e78f))/0x2)+parseInt(_0x2f7435(-0x10,-_0x14a2a9._0x9b5a2a,-_0x14a2a9._0x3f93d5,-_0x14a2a9._0x174492))/0x3+-parseInt(_0x2f7435(-_0x14a2a9._0xd3573e,-_0x14a2a9._0xd3573e,-0xb,-_0x14a2a9._0x442376))/0x4+-parseInt(_0x12fd50(0x38e,0x393,0x38d,_0x14a2a9._0x3abdee))/0x5*(-parseInt(_0x2f7435(-_0x14a2a9._0x26b90e,-_0x14a2a9._0x5361be,-0xe,-_0x14a2a9._0xb2409b))/0x6)+-parseInt(_0x12fd50(0x396,_0x14a2a9._0x4712cc,0x38d,0x39d))/0x7+-parseInt(_0x2f7435(-0x22,-_0x14a2a9._0x372c83,-_0x14a2a9._0x2d6b44,-0x15))/0x8*(-parseInt(_0x12fd50(0x395,_0x14a2a9._0x5df508,_0x14a2a9._0x1e7783,0x394))/0x9)+parseInt(_0x2f7435(-_0x14a2a9._0x215a75,-_0x14a2a9._0x32b6c4,-0x1c,-0x23))/0xa*(parseInt(_0x12fd50(0x399,_0x14a2a9._0x5918a8,_0x14a2a9._0x25ff60,_0x14a2a9._0x1b1b4b))/0xb);if(_0x12449f===_0x1f42ea)break;else _0x3a06a4['push'](_0x3a06a4['shift']());}catch(_0x1a6eff){_0x3a06a4['push'](_0x3a06a4['shift']());}}}(_0x5ba7,0x512cf));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';function _0x5ba7(){const _0x20588a=['y2fUy2vSBgvK','mtm4odqZodDkEuTlCfy','mJq0nZG2nhfJvxL4va','AxngAw5PDgu','ywjVCNrLza','CMvTB3zLqwjVCNrmAxn0zw5LCG','mtblANHrqLy','otK4odq3zNvXDMDT','Aw5KzxHpzG','otzpCeP6qxK','odmYouXRD1jowG','mte4odm1s2HzBwnS','odrtu1rKufe','CMvQzwn0','CMvHC29U','CMvZB2X2zq','C2HPzNq','ChvZAa','mtq2odq0zg1WsKrt','mZK3ntG2meL6ELj3ra','mtHJDwjuAgS'];_0x5ba7=function(){return _0x20588a;};return _0x5ba7();}function _0x230d(_0x199377,_0x12f75b){_0x199377=_0x199377-0x199;const _0x5ba700=_0x5ba7();let _0x230dc2=_0x5ba700[_0x199377];if(_0x230d['PqFmce']===undefined){var _0x412054=function(_0x3b8819){const _0x3b45da='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5ba4a7='',_0x44c4c5='';for(let _0xf9b5b4=0x0,_0x4cf131,_0x111b2b,_0x3a88e3=0x0;_0x111b2b=_0x3b8819['charAt'](_0x3a88e3++);~_0x111b2b&&(_0x4cf131=_0xf9b5b4%0x4?_0x4cf131*0x40+_0x111b2b:_0x111b2b,_0xf9b5b4++%0x4)?_0x5ba4a7+=String['fromCharCode'](0xff&_0x4cf131>>(-0x2*_0xf9b5b4&0x6)):0x0){_0x111b2b=_0x3b45da['indexOf'](_0x111b2b);}for(let _0xb8353f=0x0,_0x5a0afd=_0x5ba4a7['length'];_0xb8353f<_0x5a0afd;_0xb8353f++){_0x44c4c5+='%'+('00'+_0x5ba4a7['charCodeAt'](_0xb8353f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x44c4c5);};_0x230d['ONEisO']=_0x412054,_0x230d['QNSNIr']={},_0x230d['PqFmce']=!![];}const _0x2cc334=_0x5ba700[0x0],_0x16421=_0x199377+_0x2cc334,_0x11be62=_0x230d['QNSNIr'][_0x16421];return!_0x11be62?(_0x230dc2=_0x230d['ONEisO'](_0x230dc2),_0x230d['QNSNIr'][_0x16421]=_0x230dc2):_0x230dc2=_0x11be62,_0x230dc2;}import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x5ba4a7){const _0x11f562={_0xc8fca:0x112,_0x4bfaec:0x113,_0x69b42:0x10f},_0x492015={_0x24756b:0x1b9,_0x50c879:0x1ad,_0x5054d7:0x240,_0x560be1:0x23a,_0x5555c4:0x23b,_0x275d0c:0x239},_0x1e38a3={_0x4172d5:0x110,_0x50d50e:0x10c,_0x533678:0x17f,_0x5449b1:0x178,_0x3a1569:0x115,_0x35e7fb:0x11b,_0x453fe0:0x17f,_0xd5e91:0x177,_0x503f2e:0x179,_0x7f77df:0x165,_0x122115:0x16e},_0x22a9d5={_0x58bc89:0x177},_0x49519f={_0x569fee:0x109};if(!Number[_0x28a953(0x111,_0x11f562._0xc8fca,_0x11f562._0x4bfaec,_0x11f562._0x69b42)](_0x5ba4a7)||!Number['isInteger'](_0x5ba4a7)||_0x5ba4a7<=0x0)throw new Error('maxConcurrency\x20must\x20be\x20a\x20finite\x20positive\x20integer');let _0x44c4c5=0x0;const _0xf9b5b4=[];function _0x28a953(_0x376fd9,_0x359728,_0x5ba059,_0x1adf59){return _0x230d(_0x376fd9- -0x9a,_0x5ba059);}const _0x4cf131=()=>{let _0x3a88e3=![];return()=>{if(_0x3a88e3)return;_0x3a88e3=!![],_0x44c4c5-=0x1,_0x111b2b();};},_0x111b2b=()=>{function _0x26d145(_0x192c16,_0x104149,_0x3bf0a1,_0x4e3f91){return _0x28a953(_0x192c16-0x7,_0x104149-0x1ef,_0x3bf0a1,_0x4e3f91-_0x49519f._0x569fee);}function _0x187906(_0x11b104,_0x45c2e9,_0x442402,_0x106fe1){return _0x28a953(_0x106fe1-0x66,_0x45c2e9-_0x22a9d5._0x58bc89,_0x11b104,_0x106fe1-0x137);}while(_0xf9b5b4['length']>0x0){const _0xb8353f=_0xf9b5b4[_0x26d145(_0x1e38a3._0x4172d5,0x110,0x115,_0x1e38a3._0x50d50e)]();if(!_0xb8353f||_0xb8353f[_0x187906(_0x1e38a3._0x533678,_0x1e38a3._0x5449b1,_0x1e38a3._0x5449b1,0x174)])continue;_0xb8353f[_0x26d145(_0x1e38a3._0x3a1569,_0x1e38a3._0x35e7fb,0x10d,0x115)]=!![],_0xb8353f[_0x187906(_0x1e38a3._0x453fe0,_0x1e38a3._0xd5e91,0x17a,_0x1e38a3._0x503f2e)](),_0x44c4c5+=0x1,_0xb8353f[_0x187906(0x16f,_0x1e38a3._0x7f77df,0x16b,_0x1e38a3._0x122115)](_0x4cf131());return;}};return{'acquire'(_0x5a0afd){const _0x2250fa={_0x1162bf:0x562,_0x361131:0x55e,_0x1bc93a:0x56a,_0x4af8f3:0x56b},_0x522417={_0x626dea:0x35d,_0x4accb3:0x359,_0x4a3b88:0x360,_0x40fb9f:0x358,_0xce9f42:0x364,_0x15ed93:0x355,_0x310768:0x355,_0x50692f:0x354,_0x413b82:0x35b},_0x5b10bc={_0x1544e0:0x2c},_0x3a97df={_0x5d2467:0xd0};function _0x2a0a61(_0x22bc32,_0x364633,_0x218b2f,_0x267fcc){return _0x28a953(_0x267fcc-0xad,_0x364633-0x134,_0x364633,_0x267fcc-0x28);}if(_0x5a0afd?.[_0x4d67a5(0x247,0x241,0x24f,0x24c)])return Promise[_0x2a0a61(0x1bd,_0x492015._0x24756b,_0x492015._0x50c879,0x1b3)](toAbortError(_0x5a0afd[_0x4d67a5(0x23c,_0x492015._0x5054d7,0x240,_0x492015._0x560be1)]));function _0x4d67a5(_0x53f85c,_0x2b08fa,_0x4732be,_0x593bc5){return _0x28a953(_0x53f85c-0x135,_0x2b08fa-_0x3a97df._0x5d2467,_0x4732be,_0x593bc5-0x96);}if(_0x44c4c5<_0x5ba4a7)return _0x44c4c5+=0x1,Promise[_0x4d67a5(0x23d,_0x492015._0x5555c4,0x23d,_0x492015._0x275d0c)](_0x4cf131());return new Promise((_0x50ce04,_0x28a186)=>{const _0x461778={_0x236788:0x322,_0x182324:0x109};function _0x233a91(_0x269155,_0x5a4942,_0x2ad50b,_0x13f40f){return _0x4d67a5(_0x5a4942-_0x461778._0x236788,_0x5a4942-_0x461778._0x182324,_0x13f40f,_0x13f40f-0x4a);}function _0x21de20(_0x3aab42,_0x38d2c5,_0xfaee88,_0x2c8957){return _0x4d67a5(_0x38d2c5- -0x360,_0x38d2c5-0x18f,_0x3aab42,_0x2c8957-_0x5b10bc._0x1544e0);}const _0x4077aa={'resolve':_0x50ce04,'reject':_0x28a186,'cancelled':![],'removeAbortListener':()=>{}};_0xf9b5b4[_0x233a91(_0x2250fa._0x1162bf,0x561,0x56a,_0x2250fa._0x361131)](_0x4077aa),_0x4077aa[_0x233a91(0x569,_0x2250fa._0x1bc93a,_0x2250fa._0x4af8f3,0x56a)]=addAbortListener(_0x5a0afd,()=>{const _0x4d3028={_0x3f818f:0x199,_0x5118e1:0x1f4};if(_0x4077aa[_0x4dc38c(_0x522417._0x626dea,_0x522417._0x4accb3,0x35e,_0x522417._0x4a3b88)])return;function _0x58a108(_0x5ac93e,_0x44a57e,_0x12f4f3,_0x496e24){return _0x233a91(_0x5ac93e-_0x4d3028._0x3f818f,_0x496e24- -_0x4d3028._0x5118e1,_0x12f4f3-0x9c,_0x44a57e);}_0x4077aa[_0x4dc38c(_0x522417._0x626dea,_0x522417._0x40fb9f,0x360,_0x522417._0xce9f42)]=!![],_0x4077aa['removeAbortListener']();const _0x3e8ddb=_0xf9b5b4[_0x4dc38c(0x350,0x350,_0x522417._0x15ed93,0x346)](_0x4077aa);function _0x4dc38c(_0x45bb45,_0x27e3de,_0x4d4e2d,_0x1a7713){return _0x21de20(_0x27e3de,_0x45bb45-0x47a,_0x4d4e2d-0x5c,_0x1a7713-0x5f);}if(_0x3e8ddb>=0x0)_0xf9b5b4['splice'](_0x3e8ddb,0x1);_0x4077aa[_0x4dc38c(_0x522417._0x310768,0x350,_0x522417._0x50692f,_0x522417._0x413b82)](toAbortError(_0x5a0afd?.['reason']));});});}};}export{OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
1
+ function _0x1439(){const _0x50b1b0=['mJG0nJa0vg1mA3Pt','BgvUz3rO','ndG0mJy5DvHpuwzU','Aw5KzxHpzG','mtaXndiZwevhrhLk','C3bSAwnL','mtm4otC5ogLqvfr4ta','mtiWntm5n0fMrMHbza','mJq5nJC1mfjwq0LArG','mMf3qMP5qq','ntK0m1fwAxP3DW','CMvTB3zLqwjVCNrmAxn0zw5LCG','ywjVCNrLza','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','CMvHC29U','mtiYnhLore5wEq','CMvZB2X2zq','C2HPzNq','nwvSyKHZuG','y2fUy2vSBgvK','CMvQzwn0','ChvZAa'];_0x1439=function(){return _0x50b1b0;};return _0x1439();}(function(_0x238424,_0x5e95e2){const _0x5bf322={_0x490744:0x2c,_0x599c79:0x34,_0xb22374:0x2b,_0x39f7a7:0x45,_0x510ca0:0x43,_0x2ca170:0x429,_0x5eddcc:0x428,_0x3f71ff:0x425,_0x1ddaf6:0x425,_0xa796e7:0x42c,_0x1a6427:0x427,_0x213e8e:0x44,_0x1158c5:0x46,_0x1e1287:0x3c,_0x3fba86:0x4a,_0x577747:0x41a,_0xff75b5:0x41b,_0x46553d:0x424,_0x23e50c:0x41c};function _0x3c937e(_0x1ed782,_0x2278f0,_0x393df6,_0x153139){return _0x304d(_0x393df6- -0x234,_0x2278f0);}const _0x5f60d9=_0x238424();function _0x2eb34f(_0x14d3eb,_0x5f0288,_0x1f2a62,_0x179d26){return _0x304d(_0x14d3eb-0x22d,_0x5f0288);}while(!![]){try{const _0x1e2a15=parseInt(_0x3c937e(-0x37,-_0x5bf322._0x490744,-_0x5bf322._0x599c79,-_0x5bf322._0xb22374))/0x1*(parseInt(_0x3c937e(-0x3c,-0x4e,-_0x5bf322._0x39f7a7,-_0x5bf322._0x510ca0))/0x2)+parseInt(_0x3c937e(-0x32,-0x2c,-0x36,-0x2c))/0x3+parseInt(_0x2eb34f(_0x5bf322._0x2ca170,_0x5bf322._0x5eddcc,0x421,_0x5bf322._0x3f71ff))/0x4*(parseInt(_0x2eb34f(_0x5bf322._0x1ddaf6,_0x5bf322._0xa796e7,0x41c,_0x5bf322._0x1a6427))/0x5)+-parseInt(_0x2eb34f(0x419,0x41f,0x417,0x410))/0x6+parseInt(_0x3c937e(-0x3b,-0x4f,-_0x5bf322._0x213e8e,-0x44))/0x7*(parseInt(_0x3c937e(-_0x5bf322._0x1158c5,-_0x5bf322._0x1e1287,-0x3f,-_0x5bf322._0x3fba86))/0x8)+parseInt(_0x2eb34f(_0x5bf322._0x577747,0x411,0x417,0x424))/0x9+-parseInt(_0x2eb34f(_0x5bf322._0xff75b5,0x422,_0x5bf322._0x46553d,_0x5bf322._0x23e50c))/0xa;if(_0x1e2a15===_0x5e95e2)break;else _0x5f60d9['push'](_0x5f60d9['shift']());}catch(_0x4bda82){_0x5f60d9['push'](_0x5f60d9['shift']());}}}(_0x1439,0x1c727));import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function _0x304d(_0x32ce05,_0x196c56){_0x32ce05=_0x32ce05-0x1ec;const _0x14393d=_0x1439();let _0x304dc5=_0x14393d[_0x32ce05];if(_0x304d['SMmRwK']===undefined){var _0x5e6f97=function(_0x12713d){const _0x5566f3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2a0cc5='',_0x48683e='';for(let _0x1410b4=0x0,_0x3e4806,_0x53c4ff,_0x9df3c2=0x0;_0x53c4ff=_0x12713d['charAt'](_0x9df3c2++);~_0x53c4ff&&(_0x3e4806=_0x1410b4%0x4?_0x3e4806*0x40+_0x53c4ff:_0x53c4ff,_0x1410b4++%0x4)?_0x2a0cc5+=String['fromCharCode'](0xff&_0x3e4806>>(-0x2*_0x1410b4&0x6)):0x0){_0x53c4ff=_0x5566f3['indexOf'](_0x53c4ff);}for(let _0x4e15cc=0x0,_0x53754e=_0x2a0cc5['length'];_0x4e15cc<_0x53754e;_0x4e15cc++){_0x48683e+='%'+('00'+_0x2a0cc5['charCodeAt'](_0x4e15cc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x48683e);};_0x304d['hnanVG']=_0x5e6f97,_0x304d['oUXBWD']={},_0x304d['SMmRwK']=!![];}const _0x40179c=_0x14393d[0x0],_0x1b1819=_0x32ce05+_0x40179c,_0x583211=_0x304d['oUXBWD'][_0x1b1819];return!_0x583211?(_0x304dc5=_0x304d['hnanVG'](_0x304dc5),_0x304d['oUXBWD'][_0x1b1819]=_0x304dc5):_0x304dc5=_0x583211,_0x304dc5;}function createAbortAwareSemaphore(_0x2a0cc5){const _0xc65bf={_0x16f8f2:0x47c,_0x36314d:0x488},_0x5cc3d7={_0x365d35:0x123,_0x38827c:0x134,_0x40b176:0x13b,_0x44a12f:0x128,_0x4bd0ee:0x135,_0x2fbba5:0x12b},_0xdf3d9a={_0xb1e133:0x138},_0x3581b9={_0x5c97a1:0xb3,_0x54d2e6:0x354},_0x4684cc={_0x163e60:0x5cf,_0x230b32:0x5d4,_0x569d84:0x5c7,_0x67774d:0x260,_0x86e88e:0x254,_0x447372:0x25b,_0x38ef81:0x5b6,_0x19aa6a:0x5c4,_0xa3f2f2:0x5cb},_0x5d1989={_0x531287:0xc3,_0x2412e0:0x5a,_0x344d03:0x22c};if(!Number['isFinite'](_0x2a0cc5)||!Number['isInteger'](_0x2a0cc5)||_0x2a0cc5<=0x0)throw new Error(_0x26b118(0x47e,_0xc65bf._0x16f8f2,0x481,_0xc65bf._0x36314d));let _0x48683e=0x0;const _0x1410b4=[];function _0x26b118(_0x49116a,_0xdb7e85,_0x29e416,_0x4acf6d){return _0x304d(_0x29e416-0x28e,_0x4acf6d);}const _0x3e4806=()=>{let _0x9df3c2=![];return()=>{if(_0x9df3c2)return;_0x9df3c2=!![],_0x48683e-=0x1,_0x53c4ff();};},_0x53c4ff=()=>{const _0x530a12={_0x1a2829:0x7f,_0x506ec9:0x183};function _0x3b367b(_0x4a3db1,_0x2bd337,_0xca8381,_0x3862b1){return _0x26b118(_0x4a3db1-_0x5d1989._0x531287,_0x2bd337-_0x5d1989._0x2412e0,_0x3862b1- -_0x5d1989._0x344d03,_0x2bd337);}function _0x36f85e(_0x294a56,_0x5c3d85,_0x3f58fc,_0x4aa91e){return _0x26b118(_0x294a56-_0x530a12._0x1a2829,_0x5c3d85-_0x530a12._0x506ec9,_0x294a56-0x140,_0x3f58fc);}while(_0x1410b4[_0x36f85e(0x5cb,_0x4684cc._0x163e60,_0x4684cc._0x230b32,0x5cd)]>0x0){const _0x4e15cc=_0x1410b4[_0x36f85e(0x5c5,0x5cc,0x5bc,0x5bd)]();if(!_0x4e15cc||_0x4e15cc[_0x36f85e(0x5c7,0x5bf,0x5c3,_0x4684cc._0x569d84)])continue;_0x4e15cc[_0x3b367b(0x252,_0x4684cc._0x67774d,_0x4684cc._0x86e88e,_0x4684cc._0x447372)]=!![],_0x4e15cc[_0x36f85e(0x5bf,0x5b5,_0x4684cc._0x38ef81,0x5c0)](),_0x48683e+=0x1,_0x4e15cc[_0x36f85e(_0x4684cc._0x19aa6a,0x5cc,_0x4684cc._0xa3f2f2,0x5c3)](_0x3e4806());return;}};return{'acquire'(_0x53754e){const _0x2a51a8={_0xbccf6e:0x388,_0x8b9e05:0x38a},_0x12d343={_0x353775:0xf0,_0x1b3ef6:0xe0,_0x1129a8:0xe8,_0x400544:0xda,_0x7b0b93:0xe2,_0x5861a9:0xe4,_0x3d1912:0xaf,_0xd8bfc7:0xaf,_0x10ab6e:0xac,_0x6e0fca:0xbb};function _0x62a416(_0x321ba0,_0x301343,_0x239225,_0x47afa5){return _0x26b118(_0x321ba0-_0x3581b9._0x5c97a1,_0x301343-0x1d3,_0x301343- -_0x3581b9._0x54d2e6,_0x47afa5);}if(_0x53754e?.[_0x62a416(0x127,0x12c,0x129,_0x5cc3d7._0x365d35)])return Promise[_0x62a416(0x13e,_0x5cc3d7._0x38827c,_0x5cc3d7._0x40b176,0x131)](toAbortError(_0x53754e[_0x62a416(_0x5cc3d7._0x44a12f,0x12e,_0x5cc3d7._0x4bd0ee,_0x5cc3d7._0x2fbba5)]));if(_0x48683e<_0x2a0cc5)return _0x48683e+=0x1,Promise['resolve'](_0x3e4806());function _0x36c727(_0xa0507f,_0x10d657,_0x4dc2fa,_0x3086ad){return _0x26b118(_0xa0507f-0x10c,_0x10d657-_0xdf3d9a._0xb1e133,_0x4dc2fa-0x4b,_0x10d657);}return new Promise((_0x17248a,_0x3266c0)=>{const _0x57ef0d={_0x2f176e:0x1ce,_0x581c4a:0x433,_0x5db2b2:0x90},_0x524309={_0x31ea6b:0x1af,_0x37cb1e:0x265,_0x1775ad:0x1c7},_0x570bfc={_0x41fc6b:0x14c},_0x2467d9={'resolve':_0x17248a,'reject':_0x3266c0,'cancelled':![],'removeAbortListener':()=>{}};function _0x5ae943(_0x57284a,_0x2c1bf2,_0x2fac07,_0x43c86d){return _0x36c727(_0x57284a-0xfd,_0x2fac07,_0x2c1bf2- -_0x570bfc._0x41fc6b,_0x43c86d-0x8);}function _0x170b20(_0x508243,_0x1f6cee,_0x22a681,_0x5a391e){return _0x62a416(_0x508243-_0x524309._0x31ea6b,_0x5a391e- -_0x524309._0x37cb1e,_0x22a681-_0x524309._0x1775ad,_0x22a681);}_0x1410b4[_0x5ae943(0x393,_0x2a51a8._0xbccf6e,_0x2a51a8._0x8b9e05,0x392)](_0x2467d9),_0x2467d9[_0x5ae943(0x389,0x37e,0x37d,0x386)]=addAbortListener(_0x53754e,()=>{function _0x141b68(_0x58df52,_0x555d93,_0x2a025a,_0x1172d8){return _0x5ae943(_0x58df52-_0x57ef0d._0x2f176e,_0x1172d8- -_0x57ef0d._0x581c4a,_0x58df52,_0x1172d8-_0x57ef0d._0x5db2b2);}function _0x2bb24f(_0x14a05d,_0x7da38c,_0x18fd25,_0x3c9b8a){return _0x170b20(_0x14a05d-0x10a,_0x7da38c-0x97,_0x14a05d,_0x3c9b8a-0x21a);}if(_0x2467d9['cancelled'])return;_0x2467d9[_0x2bb24f(_0x12d343._0x353775,_0x12d343._0x1b3ef6,0xe4,_0x12d343._0x1129a8)]=!![],_0x2467d9[_0x2bb24f(_0x12d343._0x400544,_0x12d343._0x7b0b93,0xe3,_0x12d343._0x1b3ef6)]();const _0x2ae04d=_0x1410b4[_0x2bb24f(0xf8,0xe7,_0x12d343._0x5861a9,0xee)](_0x2467d9);if(_0x2ae04d>=0x0)_0x1410b4[_0x141b68(-_0x12d343._0x3d1912,-0xaf,-0xab,-0xa5)](_0x2ae04d,0x1);_0x2467d9[_0x141b68(-_0x12d343._0xd8bfc7,-0xb7,-0xab,-_0x12d343._0x10ab6e)](toAbortError(_0x53754e?.[_0x141b68(-0xb5,-_0x12d343._0x6e0fca,-0xa8,-0xb2)]));});});}};}export{OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
@@ -668,10 +668,18 @@ export interface RunTurnDeps {
668
668
  }
669
669
  export type AgentInput = MessageInput | string;
670
670
  export type SteeringInputDrain = () => Promise<AgentInput[]>;
671
+ /** Immutable ownership metadata for the exact agent submission being sent. */
672
+ export type AgentSubmission = Readonly<{
673
+ origin: "user";
674
+ }> | Readonly<{
675
+ origin: "coordinator";
676
+ token: string;
677
+ }>;
671
678
  export interface AgentSendOptions {
672
679
  streaming?: boolean;
673
680
  signal?: AbortSignal;
674
681
  drainSteering?: SteeringInputDrain;
682
+ submission?: AgentSubmission;
675
683
  }
676
684
  export interface AgentOptions {
677
685
  sessionId?: string;
@@ -0,0 +1,15 @@
1
+ export interface ExactTextReplacement {
2
+ before: string;
3
+ after: string;
4
+ lineNumbers: {
5
+ oldStartLine: number;
6
+ oldEndLine: number;
7
+ newStartLine: number;
8
+ newEndLine: number;
9
+ oldLineCount: number;
10
+ newLineCount: number;
11
+ };
12
+ }
13
+ export declare function sha256Bytes(value: string | Uint8Array): string;
14
+ export declare function replaceFirstExact(before: string, oldText: string, newText: string): ExactTextReplacement | undefined;
15
+ //# sourceMappingURL=file-mutation.d.ts.map
@@ -0,0 +1,22 @@
1
+ import * as Ripgrep from "./ripgrep.ts";
2
+ export declare const GREP_DEFAULT_LIMIT = 100;
3
+ export declare const GREP_MAX_PATTERN_LENGTH = 1024;
4
+ export declare const GREP_MAX_SNIPPET_LENGTH = 2000;
5
+ export interface RegexSearchOptions {
6
+ cwd: string;
7
+ pattern: string;
8
+ files?: readonly string[];
9
+ glob?: string;
10
+ context?: number;
11
+ limit?: number;
12
+ }
13
+ export interface RegexSearchResult {
14
+ matches: Ripgrep.RipgrepMatch[];
15
+ matchCount: number;
16
+ fileCount: number;
17
+ truncated: boolean;
18
+ }
19
+ export declare function validateGrepPattern(pattern: string): void;
20
+ export declare function boundedGrepSnippet(line: string): string;
21
+ export declare function searchRegex(options: RegexSearchOptions): Promise<RegexSearchResult>;
22
+ //# sourceMappingURL=grep-engine.d.ts.map
@@ -8,8 +8,8 @@ export declare function createGrepTool(options?: GrepToolOptions): import("../sh
8
8
  pattern: string;
9
9
  include?: string | undefined;
10
10
  path?: string | undefined;
11
- limit?: number | undefined;
12
11
  context?: number | undefined;
12
+ limit?: number | undefined;
13
13
  }, import("../shared/types.ts").ToolOutputEnvelope, undefined, {
14
14
  type: "object";
15
15
  properties: {
@@ -5,9 +5,11 @@ export * from "./bash-output-tool.ts";
5
5
  export * from "./bash-tool.ts";
6
6
  export * from "./command-tool.ts";
7
7
  export * from "./file-edit-tool.ts";
8
+ export * from "./file-mutation.ts";
8
9
  export * from "./file-new-tool.ts";
9
10
  export * from "./file-read-tool.ts";
10
11
  export * from "./glob-tool.ts";
12
+ export * from "./grep-engine.ts";
11
13
  export * from "./grep-tool.ts";
12
14
  export * from "./internal-tool-runtime.ts";
13
15
  export * from "./kill-shell-tool.ts";