@nuvin/agent-core 0.2.0 → 0.2.1-rc.0
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.
- package/dist/VERSION +2 -2
- package/dist/agent/context-compactor.d.ts +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/agent/summarize-transcript.d.ts +7 -0
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-GAZGO6N7.js +1 -1
- package/dist/chunk-IUZALP6K.js +1 -1
- package/dist/chunk-KIIEBXJF.js +1 -1
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/tools/file-editing/file-edit-tool.d.ts +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/search/grep-tool.d.ts +1 -1
- package/dist/tools/session/lsp-tool.d.ts +1 -1
- package/dist/tools/shell/bash-tool.d.ts +2 -2
- package/package.json +1 -1
package/dist/shared/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45ee2c,_0x40c871){const _0x5787e5={_0x4536e3:0x93,_0x57d7fa:0x8c,_0x1bda82:0x8e,_0x3eb329:0x132,_0x1d04e4:0x137,_0x56194c:0x123,_0x27cd4c:0x128,_0x2a069d:0x8b,_0x1b164e:0x81,_0x33be00:0xa4,_0x66b051:0xa0,_0x2fed76:0x93,_0x7c9b45:0x8a,_0xdbc76f:0x93,_0x39853a:0x8c,_0x4f8226:0x97,_0x68a4ae:0x9c,_0x3c5458:0x9e},_0x17fc51={_0x4d698d:0x269},_0x5d8e3c={_0x37004b:0xac};function _0x1dde13(_0xbec3da,_0x185a74,_0x263664,_0x193858){return _0x45b9(_0xbec3da- -_0x5d8e3c._0x37004b,_0x185a74);}function _0x45b28a(_0x114e2b,_0x20ffb6,_0x2932de,_0xd83d18){return _0x45b9(_0x2932de- -_0x17fc51._0x4d698d,_0x20ffb6);}const _0x3c3366=_0x45ee2c();while(!![]){try{const _0x1843be=parseInt(_0x1dde13(0x91,0x89,_0x5787e5._0x4536e3,_0x5787e5._0x57d7fa))/0x1+parseInt(_0x1dde13(_0x5787e5._0x1bda82,0x89,0x99,0x8d))/0x2*(-parseInt(_0x45b28a(-_0x5787e5._0x3eb329,-_0x5787e5._0x1d04e4,-0x133,-_0x5787e5._0x3eb329))/0x3)+-parseInt(_0x45b28a(-0x131,-_0x5787e5._0x56194c,-0x128,-_0x5787e5._0x27cd4c))/0x4*(-parseInt(_0x1dde13(0x90,0x89,0x86,0x9a))/0x5)+-parseInt(_0x1dde13(_0x5787e5._0x2a069d,0x80,0x94,_0x5787e5._0x1b164e))/0x6*(-parseInt(_0x1dde13(0x9a,_0x5787e5._0x33be00,_0x5787e5._0x66b051,0x94))/0x7)+-parseInt(_0x1dde13(_0x5787e5._0x2fed76,_0x5787e5._0x7c9b45,_0x5787e5._0xdbc76f,_0x5787e5._0x39853a))/0x8+parseInt(_0x1dde13(_0x5787e5._0x4f8226,0x90,0x8e,_0x5787e5._0x68a4ae))/0x9+parseInt(_0x1dde13(_0x5787e5._0x3c5458,0xa8,0x99,0xa6))/0xa;if(_0x1843be===_0x40c871)break;else _0x3c3366['push'](_0x3c3366['shift']());}catch(_0x2661d5){_0x3c3366['push'](_0x3c3366['shift']());}}}(_0x49bd,0xde725));function _0x45b9(_0x32c384,_0x248ca0){_0x32c384=_0x32c384-0x136;const _0x49bdba=_0x49bd();let _0x45b960=_0x49bdba[_0x32c384];if(_0x45b9['WdirdP']===undefined){var _0x2a8a68=function(_0x49e0fe){const _0x2879b9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4a1b31='',_0x1a1107='';for(let _0xde12c8=0x0,_0x3b64e7,_0x2c3105,_0xbeacd6=0x0;_0x2c3105=_0x49e0fe['charAt'](_0xbeacd6++);~_0x2c3105&&(_0x3b64e7=_0xde12c8%0x4?_0x3b64e7*0x40+_0x2c3105:_0x2c3105,_0xde12c8++%0x4)?_0x4a1b31+=String['fromCharCode'](0xff&_0x3b64e7>>(-0x2*_0xde12c8&0x6)):0x0){_0x2c3105=_0x2879b9['indexOf'](_0x2c3105);}for(let _0x494aa5=0x0,_0x2c301d=_0x4a1b31['length'];_0x494aa5<_0x2c301d;_0x494aa5++){_0x1a1107+='%'+('00'+_0x4a1b31['charCodeAt'](_0x494aa5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a1107);};_0x45b9['QgDxsL']=_0x2a8a68,_0x45b9['lKHgWv']={},_0x45b9['WdirdP']=!![];}const _0x2f7590=_0x49bdba[0x0],_0x7ebe5e=_0x32c384+_0x2f7590,_0x100735=_0x45b9['lKHgWv'][_0x7ebe5e];return!_0x100735?(_0x45b960=_0x45b9['QgDxsL'](_0x45b960),_0x45b9['lKHgWv'][_0x7ebe5e]=_0x45b960):_0x45b960=_0x100735,_0x45b960;}import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';function _0x49bd(){const _0x327a77=['C2HPzNq','AxnjBNrLz2vY','mtmZwg1LqvDR','CMvZB2X2zq','Aw5KzxHpzG','CMvTB3zLqwjVCNrmAxn0zw5LCG','mZC0nZuXme9iBLnnua','m213wxrzuq','mta3mdy0wwfJDu96','ChvZAa','ywjVCNrLza','mZi3mdGWmKzvCgD1yW','y2fUy2vSBgvK','ndyYmdiXnuTfzMP0yW','mte4nti5nfviBxvkvW','BgvUz3rO','odmWmdu5mNfqAwroBG','AxngAw5PDgu','ngrvu3vNDq','CMvQzwn0','nJG0odKYoejzDKDLCq'];_0x49bd=function(){return _0x327a77;};return _0x49bd();}import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x4a1b31){const _0x40444d={_0x2c805f:0x502,_0x7bc66b:0x513,_0x2af3aa:0x506},_0x493f79={_0x41f167:0x3be,_0x302994:0x3c9,_0x5569d9:0x3c7,_0x168c48:0x3c6,_0x2db78c:0x3cc,_0x125ae7:0xc2,_0x3520c2:0xc9},_0x15e0d4={_0x148207:0xcc,_0x1116e0:0xc2,_0x3cda7b:0xe7,_0x529653:0xe9},_0x27f0dc={_0x2a8b3f:0x19e},_0x171f50={_0x27e865:0xcd,_0x3805f9:0x13f,_0x253852:0x162},_0x1d5b4e={_0x15184d:0x4f8,_0x641dee:0x500,_0x1182f4:0x187,_0x2704ff:0x4f6,_0x3085d2:0x4f9,_0x2d0f99:0x4fb,_0xe7a7ac:0x190,_0x46fbfe:0x18b},_0x8d33af={_0x5f4ed1:0x1cb},_0x479896={_0x11f54f:0x6b};function _0x44e6ff(_0x28b4b5,_0x2f7c4d,_0x211416,_0xa731e2){return _0x45b9(_0x2f7c4d-0x3c4,_0xa731e2);}if(!Number[_0x44e6ff(0x505,0x504,_0x40444d._0x2c805f,0x507)](_0x4a1b31)||!Number[_0x44e6ff(0x500,0x509,_0x40444d._0x7bc66b,_0x40444d._0x2af3aa)](_0x4a1b31)||_0x4a1b31<=0x0)throw new Error('maxConcurrency\x20must\x20be\x20a\x20finite\x20positive\x20integer');let _0x1a1107=0x0;function _0x2bc48c(_0x32d2f7,_0x1b1f47,_0x446000,_0x2b35e0){return _0x45b9(_0x32d2f7- -_0x479896._0x11f54f,_0x2b35e0);}const _0xde12c8=[],_0x3b64e7=()=>{let _0xbeacd6=![];return()=>{if(_0xbeacd6)return;_0xbeacd6=!![],_0x1a1107-=0x1,_0x2c3105();};},_0x2c3105=()=>{const _0x1359b4={_0x5b6982:0x17};function _0x490b2d(_0x209afe,_0x1cc439,_0x5803eb,_0x40fd22){return _0x2bc48c(_0x40fd22-0x42b,_0x1cc439-0x17a,_0x5803eb-_0x8d33af._0x5f4ed1,_0x209afe);}function _0x6c419a(_0x4147c0,_0x18e50c,_0x4d1b9e,_0x3da0ed){return _0x2bc48c(_0x4147c0-0xb4,_0x18e50c-_0x1359b4._0x5b6982,_0x4d1b9e-0x105,_0x3da0ed);}while(_0xde12c8[_0x490b2d(_0x1d5b4e._0x15184d,0x4f4,_0x1d5b4e._0x641dee,0x4fe)]>0x0){const _0x494aa5=_0xde12c8[_0x6c419a(0x18d,0x183,0x187,_0x1d5b4e._0x1182f4)]();if(!_0x494aa5||_0x494aa5[_0x490b2d(_0x1d5b4e._0x2704ff,0x4f2,0x500,0x4fb)])continue;_0x494aa5[_0x490b2d(_0x1d5b4e._0x3085d2,0x4fa,0x500,_0x1d5b4e._0x2d0f99)]=!![],_0x494aa5[_0x490b2d(0x50b,0x506,0x50f,0x509)](),_0x1a1107+=0x1,_0x494aa5[_0x6c419a(_0x1d5b4e._0xe7a7ac,0x18e,_0x1d5b4e._0x46fbfe,0x198)](_0x3b64e7());return;}};return{'acquire'(_0x2c301d){const _0x455c96={_0x15d7b7:0x495,_0x33100b:0x217,_0x1d622d:0x216},_0x36604c={_0x322b6b:0x3d,_0x297e65:0x130},_0x677503={_0x65a3fa:0x4b7};if(_0x2c301d?.[_0x445250(_0x493f79._0x41f167,0x3c3,0x3be,_0x493f79._0x302994)])return Promise[_0x445250(_0x493f79._0x5569d9,_0x493f79._0x41f167,_0x493f79._0x168c48,_0x493f79._0x2db78c)](toAbortError(_0x2c301d['reason']));function _0x445250(_0x3e754e,_0x1a5b2b,_0x530812,_0x2916cd){return _0x44e6ff(_0x3e754e-_0x171f50._0x27e865,_0x3e754e- -_0x171f50._0x3805f9,_0x530812-_0x171f50._0x253852,_0x2916cd);}if(_0x1a1107<_0x4a1b31)return _0x1a1107+=0x1,Promise[_0xfa9804(-_0x493f79._0x125ae7,-0xc8,-0xcb,-_0x493f79._0x3520c2)](_0x3b64e7());function _0xfa9804(_0x5a0de3,_0x286817,_0x26bc8b,_0xe2ee70){return _0x2bc48c(_0x5a0de3- -_0x27f0dc._0x2a8b3f,_0x286817-0x29,_0x26bc8b-0x12,_0x286817);}return new Promise((_0x41fe12,_0x394117)=>{const _0x1a4d48={_0x28f29c:0xda,_0x11adcd:0x132};function _0x3ecf42(_0xbe13be,_0x1c098f,_0x2c3af9,_0x5df8d2){return _0x445250(_0x5df8d2- -_0x677503._0x65a3fa,_0x1c098f-0x83,_0x2c3af9-0x1c9,_0xbe13be);}const _0x492f92={'resolve':_0x41fe12,'reject':_0x394117,'cancelled':![],'removeAbortListener':()=>{}};_0xde12c8[_0x27c5c3(0xc8,_0x15e0d4._0x148207,_0x15e0d4._0x1116e0,0xc8)](_0x492f92);function _0x27c5c3(_0x1c7ec7,_0x251861,_0x30a465,_0x536a4c){return _0xfa9804(_0x30a465-0x193,_0x536a4c,_0x30a465-_0x36604c._0x322b6b,_0x536a4c-_0x36604c._0x297e65);}_0x492f92[_0x3ecf42(-_0x15e0d4._0x3cda7b,-0xe0,-0xe6,-_0x15e0d4._0x529653)]=addAbortListener(_0x2c301d,()=>{const _0x2a5a01={_0x40bc70:0x307};function _0x4eed55(_0x1a47f9,_0x2d3574,_0x2772b9,_0x2e828b){return _0x3ecf42(_0x2e828b,_0x2d3574-0xd,_0x2772b9-0x9c,_0x1a47f9-_0x2a5a01._0x40bc70);}if(_0x492f92['cancelled'])return;_0x492f92['cancelled']=!![];function _0x4b8201(_0x17a98e,_0x423ef4,_0x2e9c2c,_0x45d7e8){return _0x27c5c3(_0x17a98e-_0x1a4d48._0x28f29c,_0x423ef4-_0x1a4d48._0x11adcd,_0x423ef4-0x3c7,_0x2e9c2c);}_0x492f92['removeAbortListener']();const _0x98f06c=_0xde12c8[_0x4b8201(0x4a0,0x499,_0x455c96._0x15d7b7,0x498)](_0x492f92);if(_0x98f06c>=0x0)_0xde12c8['splice'](_0x98f06c,0x1);_0x492f92[_0x4eed55(_0x455c96._0x33100b,0x210,0x215,_0x455c96._0x1d622d)](toAbortError(_0x2c301d?.['reason']));});});}};}export{OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
|
|
@@ -11,8 +11,8 @@ export interface FileEditToolOptions {
|
|
|
11
11
|
outputBudgetBytes?: number;
|
|
12
12
|
}
|
|
13
13
|
export declare function createFileEditTool(options?: FileEditToolOptions): import("../../shared/types.ts").ToolDefinition<{
|
|
14
|
-
tag: string;
|
|
15
14
|
filePath: string;
|
|
15
|
+
tag: string;
|
|
16
16
|
operations: ({
|
|
17
17
|
content: string;
|
|
18
18
|
operation: "replace";
|