@nuvin/agent-core 0.1.0-rc.2 → 0.1.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.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-FKZ3QQWZ.js +1 -0
- package/dist/chunk-NHBKADBW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.js +1 -1
- package/dist/chunk-X7VAACWY.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/shared/types.d.ts +1 -0
- package/dist/tools/ask-user-tool.d.ts +1 -1
- package/dist/tools/bash-tool.d.ts +13 -2
- package/dist/tools/file-edit-tool.d.ts +5 -0
- package/dist/tools/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-55OPA5TR.js +0 -1
package/dist/shared/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x450f(){var _0x5324fc=['mtmYodC2ndb3sezHqK8','mJu4odqWofbqsKvwCa','nduZmZbmt01Lvg4','m0TnthnpDa','mtHjAKL3Ewu','mJyYnJC0mgnNC2fKwa','nZu4oti4uNDnwMDt','nZaZmdzTEwTMEuC','nJq3mZq4ohP6rxPcCW','ntq1yNPovgHg'];_0x450f=function(){return _0x5324fc;};return _0x450f();}function _0x167c(_0x3f90a7,_0x1d49e6){_0x3f90a7=_0x3f90a7-0x121;var _0x450f16=_0x450f();var _0x167c29=_0x450f16[_0x3f90a7];if(_0x167c['HEtrnv']===undefined){var _0x46c286=function(_0x3f0ec5){var _0x3714d2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x378824='',_0x33b79f='';for(var _0x512352=0x0,_0x4868d6,_0x4f25f0,_0x530489=0x0;_0x4f25f0=_0x3f0ec5['charAt'](_0x530489++);~_0x4f25f0&&(_0x4868d6=_0x512352%0x4?_0x4868d6*0x40+_0x4f25f0:_0x4f25f0,_0x512352++%0x4)?_0x378824+=String['fromCharCode'](0xff&_0x4868d6>>(-0x2*_0x512352&0x6)):0x0){_0x4f25f0=_0x3714d2['indexOf'](_0x4f25f0);}for(var _0x2c1079=0x0,_0x32fbd6=_0x378824['length'];_0x2c1079<_0x32fbd6;_0x2c1079++){_0x33b79f+='%'+('00'+_0x378824['charCodeAt'](_0x2c1079)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x33b79f);};_0x167c['ZNDQou']=_0x46c286,_0x167c['kbjwSF']={},_0x167c['HEtrnv']=!![];}var _0x2ad8f7=_0x450f16[0x0],_0x2b90e0=_0x3f90a7+_0x2ad8f7,_0x3c0cfe=_0x167c['kbjwSF'][_0x2b90e0];return!_0x3c0cfe?(_0x167c29=_0x167c['ZNDQou'](_0x167c29),_0x167c['kbjwSF'][_0x2b90e0]=_0x167c29):_0x167c29=_0x3c0cfe,_0x167c29;}(function(_0x27c9a7,_0x2adcea){var _0x1d6f43={_0x41adad:0x127,_0xa0e473:0x125,_0x2c8950:0x80,_0x2141b0:0x81,_0x14e89d:0x122,_0xd65568:0x77,_0x336918:0x126,_0x20f76b:0x12f,_0x256bea:0x7b,_0x5b1e43:0x12c,_0x55330a:0x12d,_0x3ea36e:0x124,_0x2cb25f:0x126,_0x58926f:0x11f,_0x3f4b76:0x7d,_0x211db1:0x82,_0x25fb39:0x79,_0x5b0dba:0x75},_0x45335a={_0x4a227e:0x24d},_0x36cb7f=_0x27c9a7();function _0x465725(_0x3d7d8f,_0x3ab830,_0x35a989,_0x4a2aa3){return _0x167c(_0x3d7d8f- -_0x45335a._0x4a227e,_0x3ab830);}function _0x3c24b9(_0x2849d0,_0x1fbeb5,_0x30d2f7,_0x1a7133){return _0x167c(_0x2849d0- -0xaa,_0x1a7133);}while(!![]){try{var _0x293736=parseInt(_0x465725(-_0x1d6f43._0x41adad,-0x129,-_0x1d6f43._0xa0e473,-0x127))/0x1*(parseInt(_0x3c24b9(0x80,0x7c,_0x1d6f43._0x2c8950,_0x1d6f43._0x2141b0))/0x2)+parseInt(_0x465725(-_0x1d6f43._0xa0e473,-0x12a,-0x12a,-_0x1d6f43._0x14e89d))/0x3+parseInt(_0x3c24b9(0x7a,_0x1d6f43._0xd65568,0x7a,0x7e))/0x4+-parseInt(_0x465725(-0x12b,-_0x1d6f43._0x336918,-0x129,-_0x1d6f43._0x20f76b))/0x5*(-parseInt(_0x3c24b9(0x7b,0x79,0x7b,_0x1d6f43._0x256bea))/0x6)+parseInt(_0x465725(-_0x1d6f43._0x5b1e43,-0x12f,-_0x1d6f43._0x55330a,-0x12c))/0x7+-parseInt(_0x465725(-_0x1d6f43._0x3ea36e,-_0x1d6f43._0x41adad,-_0x1d6f43._0x2cb25f,-_0x1d6f43._0x58926f))/0x8+parseInt(_0x3c24b9(_0x1d6f43._0x3f4b76,_0x1d6f43._0x211db1,0x7e,0x7d))/0x9*(-parseInt(_0x3c24b9(_0x1d6f43._0x25fb39,0x77,0x77,_0x1d6f43._0x5b0dba))/0xa);if(_0x293736===_0x2adcea)break;else _0x36cb7f['push'](_0x36cb7f['shift']());}catch(_0x50d441){_0x36cb7f['push'](_0x36cb7f['shift']());}}}(_0x450f,0x9859a));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';export{OperationAbortedError,TurnFailedError,addAbortListener,isAbortError,mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
|
package/dist/shared/types.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type JsonValue = JsonObject | JsonPrimitive | JsonValue[];
|
|
|
6
6
|
export type JsonSchemaType = "array" | "boolean" | "number" | "object" | "string";
|
|
7
7
|
export interface JsonSchemaString {
|
|
8
8
|
type: "string";
|
|
9
|
+
description?: string;
|
|
9
10
|
}
|
|
10
11
|
export interface JsonSchemaNumber {
|
|
11
12
|
type: "number";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BackgroundProcessRegistry } from "./background-process-registry.ts";
|
|
2
2
|
export interface BashToolInput {
|
|
3
3
|
command: string;
|
|
4
|
+
description: string;
|
|
4
5
|
cwd?: string;
|
|
5
6
|
timeoutMs?: number;
|
|
6
7
|
ignoreOutput?: boolean;
|
|
@@ -19,6 +20,7 @@ export interface BashToolOptions {
|
|
|
19
20
|
backgroundRegistry?: BackgroundProcessRegistry;
|
|
20
21
|
}
|
|
21
22
|
export declare function createBashTool(options?: BashToolOptions): import("../shared/types.ts").ToolDefinition<{
|
|
23
|
+
description: string;
|
|
22
24
|
command: string;
|
|
23
25
|
timeoutMs?: number | undefined;
|
|
24
26
|
cwd?: string | undefined;
|
|
@@ -30,6 +32,10 @@ export declare function createBashTool(options?: BashToolOptions): import("../sh
|
|
|
30
32
|
command: {
|
|
31
33
|
type: "string";
|
|
32
34
|
};
|
|
35
|
+
description: {
|
|
36
|
+
type: "string";
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
33
39
|
cwd: {
|
|
34
40
|
type: "string";
|
|
35
41
|
};
|
|
@@ -43,9 +49,10 @@ export declare function createBashTool(options?: BashToolOptions): import("../sh
|
|
|
43
49
|
type: "boolean";
|
|
44
50
|
};
|
|
45
51
|
};
|
|
46
|
-
required: readonly ["command"];
|
|
52
|
+
required: readonly ["command", "description"];
|
|
47
53
|
}>;
|
|
48
54
|
export declare function createShellExecTool(options?: BashToolOptions): import("../shared/types.ts").ToolDefinition<{
|
|
55
|
+
description: string;
|
|
49
56
|
command: string;
|
|
50
57
|
timeoutMs?: number | undefined;
|
|
51
58
|
cwd?: string | undefined;
|
|
@@ -57,6 +64,10 @@ export declare function createShellExecTool(options?: BashToolOptions): import("
|
|
|
57
64
|
command: {
|
|
58
65
|
type: "string";
|
|
59
66
|
};
|
|
67
|
+
description: {
|
|
68
|
+
type: "string";
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
60
71
|
cwd: {
|
|
61
72
|
type: "string";
|
|
62
73
|
};
|
|
@@ -70,6 +81,6 @@ export declare function createShellExecTool(options?: BashToolOptions): import("
|
|
|
70
81
|
type: "boolean";
|
|
71
82
|
};
|
|
72
83
|
};
|
|
73
|
-
required: readonly ["command"];
|
|
84
|
+
required: readonly ["command", "description"];
|
|
74
85
|
}>;
|
|
75
86
|
//# sourceMappingURL=bash-tool.d.ts.map
|
|
@@ -7,6 +7,7 @@ export declare function createFileEditTool(options?: FileEditToolOptions): impor
|
|
|
7
7
|
filePath: string;
|
|
8
8
|
oldText: string;
|
|
9
9
|
newText: string;
|
|
10
|
+
description?: string | undefined;
|
|
10
11
|
dryRun?: boolean | undefined;
|
|
11
12
|
}, import("../shared/types.ts").ToolOutputEnvelope, undefined, {
|
|
12
13
|
type: "object";
|
|
@@ -14,6 +15,10 @@ export declare function createFileEditTool(options?: FileEditToolOptions): impor
|
|
|
14
15
|
filePath: {
|
|
15
16
|
type: "string";
|
|
16
17
|
};
|
|
18
|
+
description: {
|
|
19
|
+
type: "string";
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
17
22
|
oldText: {
|
|
18
23
|
type: "string";
|
|
19
24
|
};
|