@nuvin/agent-core 0.2.0-rc.9 → 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.
Files changed (75) hide show
  1. package/dist/VERSION +2 -2
  2. package/dist/agent/context-compactor.d.ts +1 -1
  3. package/dist/agent/index.js +1 -1
  4. package/dist/agent/summarize-transcript.d.ts +7 -0
  5. package/dist/chunk-D5IVWJHX.js +1 -1
  6. package/dist/chunk-FFIZ6TKW.js +1 -1
  7. package/dist/chunk-GAZGO6N7.js +1 -0
  8. package/dist/chunk-IUZALP6K.js +1 -1
  9. package/dist/chunk-KIIEBXJF.js +1 -0
  10. package/dist/chunk-LIE76IJA.js +1 -1
  11. package/dist/chunk-X7VAACWY.js +1 -1
  12. package/dist/chunk-YNOIG4FD.js +1 -1
  13. package/dist/formats/index.js +1 -1
  14. package/dist/hooks/index.js +1 -1
  15. package/dist/models/index.d.ts +1 -0
  16. package/dist/models/index.js +1 -1
  17. package/dist/shared/index.js +1 -1
  18. package/dist/shared/types.d.ts +11 -2
  19. package/dist/tools/{internal-tool-runtime.d.ts → core/internal-tool-runtime.d.ts} +1 -1
  20. package/dist/tools/core/mock-tool-runtime.d.ts +3 -0
  21. package/dist/tools/core/runtime-manager-tools.d.ts +132 -0
  22. package/dist/tools/{tool-output-offload.d.ts → core/tool-output-offload.d.ts} +1 -1
  23. package/dist/tools/{tools.d.ts → core/tools.d.ts} +1 -1
  24. package/dist/tools/file-editing/anchored-file-edit.d.ts +53 -0
  25. package/dist/tools/file-editing/anchored-file-errors.d.ts +5 -0
  26. package/dist/tools/file-editing/anchored-file-operations.d.ts +38 -0
  27. package/dist/tools/file-editing/anchored-file-read.d.ts +37 -0
  28. package/dist/tools/file-editing/atomic-file-write.d.ts +19 -0
  29. package/dist/tools/file-editing/file-edit-tool.d.ts +166 -0
  30. package/dist/tools/file-editing/file-mutation-coordinator.d.ts +13 -0
  31. package/dist/tools/{file-new-tool.d.ts → file-editing/file-new-tool.d.ts} +5 -2
  32. package/dist/tools/file-editing/file-observation-store.d.ts +40 -0
  33. package/dist/tools/{file-read-tool.d.ts → file-editing/file-read-tool.d.ts} +8 -2
  34. package/dist/tools/file-editing/file-snapshot.d.ts +16 -0
  35. package/dist/tools/file-editing/hashline-file-edit-adapter.d.ts +19 -0
  36. package/dist/tools/file-editing/structured-file-edit-adapter.d.ts +94 -0
  37. package/dist/tools/file-editing/workspace-paths.d.ts +20 -0
  38. package/dist/tools/index.d.ts +43 -34
  39. package/dist/tools/index.js +1 -1
  40. package/dist/tools/{mcp-connection-generation.d.ts → mcp/mcp-connection-generation.d.ts} +1 -1
  41. package/dist/tools/{mcp-tool-adapter.d.ts → mcp/mcp-tool-adapter.d.ts} +3 -3
  42. package/dist/tools/{glob-tool.d.ts → search/glob-tool.d.ts} +2 -2
  43. package/dist/tools/{grep-tool.d.ts → search/grep-tool.d.ts} +3 -3
  44. package/dist/tools/{ls-tool.d.ts → search/ls-tool.d.ts} +2 -2
  45. package/dist/tools/{view-file-tool.d.ts → search/view-file-tool.d.ts} +2 -2
  46. package/dist/tools/{ask-user-tool.d.ts → session/ask-user-tool.d.ts} +4 -4
  47. package/dist/tools/{lsp-tool.d.ts → session/lsp-tool.d.ts} +4 -4
  48. package/dist/tools/{skill-tool.d.ts → session/skill-tool.d.ts} +2 -2
  49. package/dist/tools/{todo-write-tool.d.ts → session/todo-write-tool.d.ts} +2 -2
  50. package/dist/tools/session/update-topic-tool.d.ts +12 -0
  51. package/dist/tools/{bash-output-tool.d.ts → shell/bash-output-tool.d.ts} +2 -2
  52. package/dist/tools/{bash-tool.d.ts → shell/bash-tool.d.ts} +7 -7
  53. package/dist/tools/{command-tool.d.ts → shell/command-tool.d.ts} +2 -2
  54. package/dist/tools/{kill-shell-tool.d.ts → shell/kill-shell-tool.d.ts} +2 -2
  55. package/dist/tools/{web-fetch-tool.d.ts → web/web-fetch-tool.d.ts} +2 -2
  56. package/dist/tools/{web-search-tool.d.ts → web/web-search-tool.d.ts} +2 -2
  57. package/package.json +3 -2
  58. package/dist/chunk-VYW6MSQ3.js +0 -1
  59. package/dist/tools/file-edit-tool.d.ts +0 -34
  60. package/dist/tools/mock-tool-runtime.d.ts +0 -3
  61. package/dist/tools/runtime-manager-tools.d.ts +0 -79
  62. package/dist/tools/update-topic-tool.d.ts +0 -12
  63. package/dist/tools/workspace-paths.d.ts +0 -5
  64. /package/dist/tools/{file-mutation.d.ts → file-editing/file-mutation.d.ts} +0 -0
  65. /package/dist/tools/{mcp-oauth-provider.d.ts → mcp/mcp-oauth-provider.d.ts} +0 -0
  66. /package/dist/tools/{mcp-safe-error-provenance.d.ts → mcp/mcp-safe-error-provenance.d.ts} +0 -0
  67. /package/dist/tools/{mcp-safe-error.d.ts → mcp/mcp-safe-error.d.ts} +0 -0
  68. /package/dist/tools/{mcp-server-manager.d.ts → mcp/mcp-server-manager.d.ts} +0 -0
  69. /package/dist/tools/{grep-engine.d.ts → search/grep-engine.d.ts} +0 -0
  70. /package/dist/tools/{ripgrep.d.ts → search/ripgrep.d.ts} +0 -0
  71. /package/dist/tools/{background-process-registry.d.ts → shell/background-process-registry.d.ts} +0 -0
  72. /package/dist/tools/{bash-internals.d.ts → shell/bash-internals.d.ts} +0 -0
  73. /package/dist/tools/{process-tree-termination.d.ts → shell/process-tree-termination.d.ts} +0 -0
  74. /package/dist/tools/{terminal-output-normalizer.d.ts → shell/terminal-output-normalizer.d.ts} +0 -0
  75. /package/dist/tools/{safe-fetch.d.ts → web/safe-fetch.d.ts} +0 -0
@@ -1,34 +0,0 @@
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
- description?: string | undefined;
11
- dryRun?: boolean | undefined;
12
- }, import("../shared/types.ts").ToolOutputEnvelope, undefined, {
13
- type: "object";
14
- properties: {
15
- filePath: {
16
- type: "string";
17
- };
18
- description: {
19
- type: "string";
20
- description: string;
21
- };
22
- oldText: {
23
- type: "string";
24
- };
25
- newText: {
26
- type: "string";
27
- };
28
- dryRun: {
29
- type: "boolean";
30
- };
31
- };
32
- required: readonly ["filePath", "oldText", "newText"];
33
- }>;
34
- //# sourceMappingURL=file-edit-tool.d.ts.map
@@ -1,3 +0,0 @@
1
- import type { ToolRuntime } from "../shared/types.ts";
2
- export declare function createMockToolRuntime(): ToolRuntime;
3
- //# sourceMappingURL=mock-tool-runtime.d.ts.map
@@ -1,79 +0,0 @@
1
- import { Agent } from "../agent/agent.ts";
2
- import type { AbortAwareSemaphore } from "../shared/abort-aware-semaphore.ts";
3
- import type { AgentDefinitionFactoryContext, AgentOptions } from "../shared/types.ts";
4
- export interface DelegatedAgentFactoryContext extends AgentDefinitionFactoryContext {
5
- parentSessionId: string;
6
- runId: string;
7
- signal: AbortSignal;
8
- }
9
- export type DelegatedAgentDefinition = AgentOptions | ((ctx: DelegatedAgentFactoryContext) => AgentOptions | Promise<AgentOptions>);
10
- export interface CreateDelegationToolsOptions {
11
- agents?: Record<string, DelegatedAgentDefinition>;
12
- semaphore?: AbortAwareSemaphore;
13
- /** Register an active child for shared tool refresh; returns its cleanup callback. */
14
- registerActiveAgent?: (agent: Agent, context: DelegatedAgentFactoryContext) => () => void;
15
- registerActiveRun?: (entry: {
16
- runId: string;
17
- abortController: AbortController;
18
- completion: Promise<void>;
19
- }) => () => void;
20
- /** Render a resolved child prompt immediately before constructing its Agent. */
21
- renderSystemPrompt?: (systemPrompt: string) => string;
22
- }
23
- export declare function resolveDelegatedAgentOptions(definition: DelegatedAgentDefinition, ctx: DelegatedAgentFactoryContext): Promise<AgentOptions>;
24
- export declare function createAssignTaskTool(options: CreateDelegationToolsOptions): import("../shared/types.ts").ToolDefinition<{
25
- description: string;
26
- task: string;
27
- agentId: string;
28
- nickname: string;
29
- }, import("../shared/types.ts").ToolOutputEnvelope, import("../shared/types.ts").ToolOutputEnvelope, {
30
- type: "object";
31
- properties: {
32
- agentId: {
33
- type: "string";
34
- description: string;
35
- };
36
- description: {
37
- type: "string";
38
- description: string;
39
- };
40
- nickname: {
41
- type: "string";
42
- description: string;
43
- };
44
- task: {
45
- type: "string";
46
- description: string;
47
- };
48
- };
49
- required: string[];
50
- }>;
51
- export declare const createDelegateToAgentTool: typeof createAssignTaskTool;
52
- export declare function createDelegationTools(options: CreateDelegationToolsOptions): import("../shared/types.ts").ToolDefinition<{
53
- description: string;
54
- task: string;
55
- agentId: string;
56
- nickname: string;
57
- }, import("../shared/types.ts").ToolOutputEnvelope, import("../shared/types.ts").ToolOutputEnvelope, {
58
- type: "object";
59
- properties: {
60
- agentId: {
61
- type: "string";
62
- description: string;
63
- };
64
- description: {
65
- type: "string";
66
- description: string;
67
- };
68
- nickname: {
69
- type: "string";
70
- description: string;
71
- };
72
- task: {
73
- type: "string";
74
- description: string;
75
- };
76
- };
77
- required: string[];
78
- }>[];
79
- //# sourceMappingURL=runtime-manager-tools.d.ts.map
@@ -1,12 +0,0 @@
1
- export declare function createUpdateTopicTool(): import("../shared/types.ts").ToolDefinition<{
2
- topic: string;
3
- }, import("../shared/types.ts").ToolOutputEnvelope, undefined, {
4
- readonly type: "object";
5
- readonly properties: {
6
- readonly topic: {
7
- readonly type: "string";
8
- };
9
- };
10
- readonly required: readonly ["topic"];
11
- }>;
12
- //# sourceMappingURL=update-topic-tool.d.ts.map
@@ -1,5 +0,0 @@
1
- export declare function resolveWorkspacePath(rootDir: string, inputPath: string): string;
2
- export declare function resolveAllowedPath(rootDir: string, allowedDirs: readonly string[], inputPath: string): string;
3
- export declare function assertWorkspaceFile(filePath: string): Promise<void>;
4
- export declare function isProbablyBinary(buffer: Buffer): boolean;
5
- //# sourceMappingURL=workspace-paths.d.ts.map