@nuvin/agent-core 0.0.0-rc.8 → 0.0.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/agent.d.ts +28 -0
- package/dist/agent/context-compactor.d.ts +8 -0
- package/dist/agent/extension-registry.d.ts +3 -0
- package/dist/agent/index.d.ts +8 -68
- package/dist/agent/index.js +1 -1
- package/dist/agent/messages-to-text.d.ts +3 -0
- package/dist/agent/metrics.d.ts +30 -0
- package/dist/agent/topic-reminder-extension.d.ts +32 -0
- package/dist/agent/turn-engine.d.ts +3 -0
- package/dist/chunk-FFIZ6TKW.js +1 -0
- package/dist/chunk-HRU363DY.js +1 -0
- package/dist/chunk-NHBKADBW.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/base64-image-content.d.ts +4 -0
- package/dist/formats/index.d.ts +4 -28
- package/dist/formats/index.js +1 -1
- package/dist/formats/message-format.d.ts +33 -0
- package/dist/formats/provider-adapters.d.ts +3 -0
- package/dist/hooks/executor.d.ts +3 -0
- package/dist/hooks/extensions.d.ts +28 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/registry.d.ts +8 -0
- package/dist/hooks/types.d.ts +40 -0
- package/dist/lsp/client.d.ts +11 -0
- package/dist/lsp/index.d.ts +24 -0
- package/dist/lsp/installer.d.ts +11 -0
- package/dist/lsp/language.d.ts +2 -0
- package/dist/lsp/server.d.ts +6 -0
- package/dist/lsp/types.d.ts +68 -0
- package/dist/models/anthropic-model.d.ts +27 -0
- package/dist/models/anthropic-surface.d.ts +5 -0
- package/dist/models/chat-model.d.ts +31 -0
- package/dist/models/github-model.d.ts +32 -0
- package/dist/models/http-transport.d.ts +10 -0
- package/dist/models/index.d.ts +16 -348
- package/dist/models/index.js +1 -1
- package/dist/models/mock-model.d.ts +15 -0
- package/dist/models/model-errors.d.ts +16 -0
- package/dist/models/model-limits.d.ts +7 -0
- package/dist/models/model-registry.d.ts +44 -0
- package/dist/models/model-surface-router.d.ts +19 -0
- package/dist/models/model-transports.d.ts +17 -0
- package/dist/models/openai-model.d.ts +67 -0
- package/dist/models/openai-surfaces.d.ts +74 -0
- package/dist/models/provider-adapter.d.ts +23 -0
- package/dist/models/provider-session.d.ts +16 -0
- package/dist/models/routed-model.d.ts +90 -0
- package/dist/shared/abort.d.ts +9 -0
- package/dist/shared/index.d.ts +5 -17
- package/dist/shared/index.js +1 -1
- package/dist/shared/reasoning-config.d.ts +5 -0
- package/dist/shared/turn-failed.d.ts +6 -0
- package/dist/{types-mpqTRf_e.d.ts → shared/types.d.ts} +186 -167
- package/dist/tools/ask-user-tool.d.ts +55 -0
- package/dist/tools/bash-tool.d.ts +63 -0
- package/dist/tools/command-tool.d.ts +23 -0
- package/dist/tools/file-edit-tool.d.ts +29 -0
- package/dist/tools/file-new-tool.d.ts +21 -0
- package/dist/tools/file-read-tool.d.ts +27 -0
- package/dist/tools/glob-tool.d.ts +26 -0
- package/dist/tools/grep-tool.d.ts +34 -0
- package/dist/tools/index.d.ts +28 -773
- package/dist/tools/index.js +1 -1
- package/dist/tools/internal-tool-runtime.d.ts +8 -0
- package/dist/tools/ls-tool.d.ts +20 -0
- package/dist/tools/lsp-tool.d.ts +36 -0
- package/dist/tools/mcp-oauth-provider.d.ts +11 -0
- package/dist/tools/mcp-server-manager.d.ts +43 -0
- package/dist/tools/mcp-tool-adapter.d.ts +47 -0
- package/dist/tools/mock-tool-runtime.d.ts +3 -0
- package/dist/tools/ripgrep.d.ts +20 -0
- package/dist/tools/runtime-manager-tools.d.ts +58 -0
- package/dist/tools/safe-fetch.d.ts +36 -0
- package/dist/tools/skill-tool.d.ts +33 -0
- package/dist/tools/todo-write-tool.d.ts +66 -0
- package/dist/tools/tool-output-offload.d.ts +12 -0
- package/dist/tools/tools.d.ts +24 -0
- package/dist/tools/update-topic-tool.d.ts +12 -0
- package/dist/tools/view-file-tool.d.ts +22 -0
- package/dist/tools/web-fetch-tool.d.ts +23 -0
- package/dist/tools/web-search-tool.d.ts +75 -0
- package/dist/tools/workspace-paths.d.ts +5 -0
- package/package.json +6 -2
- package/dist/chunk-4DNIDCX7.js +0 -1
- package/dist/chunk-G2FR4UGO.js +0 -1
- package/dist/chunk-KVFXQ7HW.js +0 -1
- package/dist/provider-adapters-BGVEzrOK.d.ts +0 -5
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare function createAskUserTool(): import("../shared/types.ts").ToolDefinition<{
|
|
2
|
+
answers: {};
|
|
3
|
+
questions: {
|
|
4
|
+
question: string;
|
|
5
|
+
topic: string;
|
|
6
|
+
options: {
|
|
7
|
+
label: string;
|
|
8
|
+
description: string;
|
|
9
|
+
}[];
|
|
10
|
+
multiSelect: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
}, import("../shared/types.ts").ToolOutputEnvelope, import("../shared/types.ts").ToolOutputEnvelope | undefined, {
|
|
13
|
+
type: "object";
|
|
14
|
+
properties: {
|
|
15
|
+
questions: {
|
|
16
|
+
type: "array";
|
|
17
|
+
items: {
|
|
18
|
+
type: "object";
|
|
19
|
+
properties: {
|
|
20
|
+
question: {
|
|
21
|
+
type: "string";
|
|
22
|
+
};
|
|
23
|
+
topic: {
|
|
24
|
+
type: "string";
|
|
25
|
+
};
|
|
26
|
+
options: {
|
|
27
|
+
type: "array";
|
|
28
|
+
items: {
|
|
29
|
+
type: "object";
|
|
30
|
+
properties: {
|
|
31
|
+
label: {
|
|
32
|
+
type: "string";
|
|
33
|
+
};
|
|
34
|
+
description: {
|
|
35
|
+
type: "string";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
required: string[];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
multiSelect: {
|
|
42
|
+
type: "boolean";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
required: string[];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
answers: {
|
|
49
|
+
type: "object";
|
|
50
|
+
properties: {};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
required: string[];
|
|
54
|
+
}>;
|
|
55
|
+
//# sourceMappingURL=ask-user-tool.d.ts.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export interface BashToolInput {
|
|
2
|
+
command: string;
|
|
3
|
+
cwd?: string;
|
|
4
|
+
timeoutMs?: number;
|
|
5
|
+
ignoreOutput?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface BashToolOptions {
|
|
8
|
+
allowedDirs?: readonly string[];
|
|
9
|
+
defaultCwd?: string;
|
|
10
|
+
defaultTimeoutMs?: number;
|
|
11
|
+
description?: string;
|
|
12
|
+
env?: NodeJS.ProcessEnv;
|
|
13
|
+
name?: string;
|
|
14
|
+
shellPath?: string;
|
|
15
|
+
stripAnsi?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function createBashTool(options?: BashToolOptions): import("../shared/types.ts").ToolDefinition<{
|
|
18
|
+
command: string;
|
|
19
|
+
timeoutMs?: number | undefined;
|
|
20
|
+
cwd?: string | undefined;
|
|
21
|
+
ignoreOutput?: boolean | undefined;
|
|
22
|
+
}, string, import("../shared/types.ts").ToolOutputEnvelope, {
|
|
23
|
+
type: "object";
|
|
24
|
+
properties: {
|
|
25
|
+
command: {
|
|
26
|
+
type: "string";
|
|
27
|
+
};
|
|
28
|
+
cwd: {
|
|
29
|
+
type: "string";
|
|
30
|
+
};
|
|
31
|
+
timeoutMs: {
|
|
32
|
+
type: "number";
|
|
33
|
+
};
|
|
34
|
+
ignoreOutput: {
|
|
35
|
+
type: "boolean";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
required: readonly ["command"];
|
|
39
|
+
}>;
|
|
40
|
+
export declare function createShellExecTool(options?: BashToolOptions): import("../shared/types.ts").ToolDefinition<{
|
|
41
|
+
command: string;
|
|
42
|
+
timeoutMs?: number | undefined;
|
|
43
|
+
cwd?: string | undefined;
|
|
44
|
+
ignoreOutput?: boolean | undefined;
|
|
45
|
+
}, string, import("../shared/types.ts").ToolOutputEnvelope, {
|
|
46
|
+
type: "object";
|
|
47
|
+
properties: {
|
|
48
|
+
command: {
|
|
49
|
+
type: "string";
|
|
50
|
+
};
|
|
51
|
+
cwd: {
|
|
52
|
+
type: "string";
|
|
53
|
+
};
|
|
54
|
+
timeoutMs: {
|
|
55
|
+
type: "number";
|
|
56
|
+
};
|
|
57
|
+
ignoreOutput: {
|
|
58
|
+
type: "boolean";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
required: readonly ["command"];
|
|
62
|
+
}>;
|
|
63
|
+
//# sourceMappingURL=bash-tool.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CommandDefinitionReference, SerializedCommandDefinition } from "@nuvin/config";
|
|
2
|
+
export type CommandReference = CommandDefinitionReference;
|
|
3
|
+
export type LoadedCommand = SerializedCommandDefinition;
|
|
4
|
+
export interface CommandToolOptions<TRef extends CommandReference = CommandReference> {
|
|
5
|
+
commands: TRef[];
|
|
6
|
+
loadCommand: (reference: TRef) => Promise<LoadedCommand>;
|
|
7
|
+
}
|
|
8
|
+
export declare function createInvokeCommandTool<TRef extends CommandReference>(options: CommandToolOptions<TRef>): import("../shared/types.ts").ToolDefinition<{
|
|
9
|
+
name: string;
|
|
10
|
+
args?: string | undefined;
|
|
11
|
+
}, import("../shared/types.ts").ToolOutputEnvelope, undefined, {
|
|
12
|
+
type: "object";
|
|
13
|
+
properties: {
|
|
14
|
+
name: {
|
|
15
|
+
type: "string";
|
|
16
|
+
};
|
|
17
|
+
args: {
|
|
18
|
+
type: "string";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
required: readonly ["name"];
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=command-tool.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface FileEditToolOptions {
|
|
2
|
+
allowedDirs?: readonly string[];
|
|
3
|
+
defaultCwd?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function createFileEditTool(options?: FileEditToolOptions): import("../shared/types.ts").ToolDefinition<{
|
|
7
|
+
filePath: string;
|
|
8
|
+
oldText: string;
|
|
9
|
+
newText: string;
|
|
10
|
+
dryRun?: boolean | undefined;
|
|
11
|
+
}, import("../shared/types.ts").ToolOutputEnvelope, undefined, {
|
|
12
|
+
type: "object";
|
|
13
|
+
properties: {
|
|
14
|
+
filePath: {
|
|
15
|
+
type: "string";
|
|
16
|
+
};
|
|
17
|
+
oldText: {
|
|
18
|
+
type: "string";
|
|
19
|
+
};
|
|
20
|
+
newText: {
|
|
21
|
+
type: "string";
|
|
22
|
+
};
|
|
23
|
+
dryRun: {
|
|
24
|
+
type: "boolean";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
required: readonly ["filePath", "oldText", "newText"];
|
|
28
|
+
}>;
|
|
29
|
+
//# sourceMappingURL=file-edit-tool.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface FileNewToolOptions {
|
|
2
|
+
allowedDirs?: readonly string[];
|
|
3
|
+
defaultCwd?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function createFileNewTool(options?: FileNewToolOptions): import("../shared/types.ts").ToolDefinition<{
|
|
7
|
+
content: string;
|
|
8
|
+
filePath: string;
|
|
9
|
+
}, import("../shared/types.ts").ToolOutputEnvelope, undefined, {
|
|
10
|
+
type: "object";
|
|
11
|
+
properties: {
|
|
12
|
+
filePath: {
|
|
13
|
+
type: "string";
|
|
14
|
+
};
|
|
15
|
+
content: {
|
|
16
|
+
type: "string";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
required: readonly ["filePath", "content"];
|
|
20
|
+
}>;
|
|
21
|
+
//# sourceMappingURL=file-new-tool.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface FileReadToolOptions {
|
|
2
|
+
allowedDirs?: readonly string[];
|
|
3
|
+
defaultCwd?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function createFileReadTool(options?: FileReadToolOptions): import("../shared/types.ts").ToolDefinition<{
|
|
7
|
+
path: string;
|
|
8
|
+
lineStart?: number | undefined;
|
|
9
|
+
lineEnd?: number | undefined;
|
|
10
|
+
}, import("../shared/types.ts").ToolOutputEnvelope, undefined, {
|
|
11
|
+
type: "object";
|
|
12
|
+
properties: {
|
|
13
|
+
path: {
|
|
14
|
+
type: "string";
|
|
15
|
+
};
|
|
16
|
+
lineStart: {
|
|
17
|
+
type: "number";
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
lineEnd: {
|
|
21
|
+
type: "number";
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
required: readonly ["path"];
|
|
26
|
+
}>;
|
|
27
|
+
//# sourceMappingURL=file-read-tool.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface GlobToolOptions {
|
|
2
|
+
allowedDirs?: readonly string[];
|
|
3
|
+
defaultCwd?: string;
|
|
4
|
+
limit?: number;
|
|
5
|
+
name?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function createGlobTool(options?: GlobToolOptions): import("../shared/types.ts").ToolDefinition<{
|
|
8
|
+
pattern: string;
|
|
9
|
+
path?: string | undefined;
|
|
10
|
+
limit?: number | undefined;
|
|
11
|
+
}, import("../shared/types.ts").ToolOutputEnvelope, undefined, {
|
|
12
|
+
type: "object";
|
|
13
|
+
properties: {
|
|
14
|
+
pattern: {
|
|
15
|
+
type: "string";
|
|
16
|
+
};
|
|
17
|
+
path: {
|
|
18
|
+
type: "string";
|
|
19
|
+
};
|
|
20
|
+
limit: {
|
|
21
|
+
type: "number";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
required: readonly ["pattern"];
|
|
25
|
+
}>;
|
|
26
|
+
//# sourceMappingURL=glob-tool.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface GrepToolOptions {
|
|
2
|
+
allowedDirs?: readonly string[];
|
|
3
|
+
defaultCwd?: string;
|
|
4
|
+
limit?: number;
|
|
5
|
+
name?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function createGrepTool(options?: GrepToolOptions): import("../shared/types.ts").ToolDefinition<{
|
|
8
|
+
pattern: string;
|
|
9
|
+
include?: string | undefined;
|
|
10
|
+
path?: string | undefined;
|
|
11
|
+
limit?: number | undefined;
|
|
12
|
+
context?: number | undefined;
|
|
13
|
+
}, import("../shared/types.ts").ToolOutputEnvelope, undefined, {
|
|
14
|
+
type: "object";
|
|
15
|
+
properties: {
|
|
16
|
+
pattern: {
|
|
17
|
+
type: "string";
|
|
18
|
+
};
|
|
19
|
+
path: {
|
|
20
|
+
type: "string";
|
|
21
|
+
};
|
|
22
|
+
include: {
|
|
23
|
+
type: "string";
|
|
24
|
+
};
|
|
25
|
+
limit: {
|
|
26
|
+
type: "number";
|
|
27
|
+
};
|
|
28
|
+
context: {
|
|
29
|
+
type: "number";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
required: readonly ["pattern"];
|
|
33
|
+
}>;
|
|
34
|
+
//# sourceMappingURL=grep-tool.d.ts.map
|