@mongodb-js/agent-engine-runner-shared 0.11.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/CHANGELOG.md +55 -0
- package/LICENSE.md +201 -0
- package/README.md +29 -0
- package/dist/agent_config.d.ts +167 -0
- package/dist/agent_config.d.ts.map +1 -0
- package/dist/agent_config.js +544 -0
- package/dist/call_interrupted.d.ts +12 -0
- package/dist/call_interrupted.d.ts.map +1 -0
- package/dist/call_interrupted.js +11 -0
- package/dist/checkpoint_workspace.d.ts +25 -0
- package/dist/checkpoint_workspace.d.ts.map +1 -0
- package/dist/checkpoint_workspace.js +44 -0
- package/dist/context.d.ts +235 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +322 -0
- package/dist/db_config.d.ts +28 -0
- package/dist/db_config.d.ts.map +1 -0
- package/dist/db_config.js +66 -0
- package/dist/db_naming.d.ts +54 -0
- package/dist/db_naming.d.ts.map +1 -0
- package/dist/db_naming.js +94 -0
- package/dist/error_reporting.d.ts +67 -0
- package/dist/error_reporting.d.ts.map +1 -0
- package/dist/error_reporting.js +311 -0
- package/dist/generated/workflow/v1/activity_pb.d.ts +342 -0
- package/dist/generated/workflow/v1/activity_pb.d.ts.map +1 -0
- package/dist/generated/workflow/v1/activity_pb.js +115 -0
- package/dist/generated/workflow/v1/common_pb.d.ts +184 -0
- package/dist/generated/workflow/v1/common_pb.d.ts.map +1 -0
- package/dist/generated/workflow/v1/common_pb.js +86 -0
- package/dist/generated/workflow/v1/runtime_pb.d.ts +200 -0
- package/dist/generated/workflow/v1/runtime_pb.d.ts.map +1 -0
- package/dist/generated/workflow/v1/runtime_pb.js +40 -0
- package/dist/generated/workflow/v1/state_pb.d.ts +254 -0
- package/dist/generated/workflow/v1/state_pb.d.ts.map +1 -0
- package/dist/generated/workflow/v1/state_pb.js +68 -0
- package/dist/guardrails_evaluator/core.d.ts +23 -0
- package/dist/guardrails_evaluator/core.d.ts.map +1 -0
- package/dist/guardrails_evaluator/core.js +122 -0
- package/dist/guardrails_evaluator/index.d.ts +10 -0
- package/dist/guardrails_evaluator/index.d.ts.map +1 -0
- package/dist/guardrails_evaluator/index.js +11 -0
- package/dist/guardrails_evaluator/regex.d.ts +20 -0
- package/dist/guardrails_evaluator/regex.d.ts.map +1 -0
- package/dist/guardrails_evaluator/regex.js +233 -0
- package/dist/hooks.d.ts +109 -0
- package/dist/hooks.d.ts.map +1 -0
- package/dist/hooks.js +216 -0
- package/dist/http_path.d.ts +18 -0
- package/dist/http_path.d.ts.map +1 -0
- package/dist/http_path.js +53 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +41 -0
- package/dist/launcher.d.ts +130 -0
- package/dist/launcher.d.ts.map +1 -0
- package/dist/launcher.js +325 -0
- package/dist/logger.d.ts +96 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +204 -0
- package/dist/mcp_oauth.d.ts +51 -0
- package/dist/mcp_oauth.d.ts.map +1 -0
- package/dist/mcp_oauth.js +389 -0
- package/dist/mcp_oauth_secret.d.ts +21 -0
- package/dist/mcp_oauth_secret.d.ts.map +1 -0
- package/dist/mcp_oauth_secret.js +122 -0
- package/dist/mcp_tools.d.ts +71 -0
- package/dist/mcp_tools.d.ts.map +1 -0
- package/dist/mcp_tools.js +301 -0
- package/dist/memory_appbound.d.ts +42 -0
- package/dist/memory_appbound.d.ts.map +1 -0
- package/dist/memory_appbound.js +159 -0
- package/dist/memory_writer.d.ts +49 -0
- package/dist/memory_writer.d.ts.map +1 -0
- package/dist/memory_writer.js +171 -0
- package/dist/metrics.d.ts +84 -0
- package/dist/metrics.d.ts.map +1 -0
- package/dist/metrics.js +205 -0
- package/dist/models.d.ts +1458 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +1726 -0
- package/dist/node_logger.d.ts +43 -0
- package/dist/node_logger.d.ts.map +1 -0
- package/dist/node_logger.js +158 -0
- package/dist/owner_callback.d.ts +16 -0
- package/dist/owner_callback.d.ts.map +1 -0
- package/dist/owner_callback.js +40 -0
- package/dist/progress.d.ts +57 -0
- package/dist/progress.d.ts.map +1 -0
- package/dist/progress.js +140 -0
- package/dist/runtime.d.ts +131 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +351 -0
- package/dist/secure_llm_proxy.d.ts +115 -0
- package/dist/secure_llm_proxy.d.ts.map +1 -0
- package/dist/secure_llm_proxy.js +922 -0
- package/dist/secure_wrapper.d.ts +332 -0
- package/dist/secure_wrapper.d.ts.map +1 -0
- package/dist/secure_wrapper.js +1249 -0
- package/dist/server/aer.d.ts +61 -0
- package/dist/server/aer.d.ts.map +1 -0
- package/dist/server/aer.js +1124 -0
- package/dist/server/auth.d.ts +56 -0
- package/dist/server/auth.d.ts.map +1 -0
- package/dist/server/auth.js +132 -0
- package/dist/server/base.d.ts +104 -0
- package/dist/server/base.d.ts.map +1 -0
- package/dist/server/base.js +150 -0
- package/dist/server/callInterrupt.d.ts +49 -0
- package/dist/server/callInterrupt.d.ts.map +1 -0
- package/dist/server/callInterrupt.js +68 -0
- package/dist/server/callback_delivery.d.ts +14 -0
- package/dist/server/callback_delivery.d.ts.map +1 -0
- package/dist/server/callback_delivery.js +141 -0
- package/dist/server/chunk_types.d.ts +50 -0
- package/dist/server/chunk_types.d.ts.map +1 -0
- package/dist/server/chunk_types.js +62 -0
- package/dist/server/cors.d.ts +52 -0
- package/dist/server/cors.d.ts.map +1 -0
- package/dist/server/cors.js +107 -0
- package/dist/server/drain.d.ts +169 -0
- package/dist/server/drain.d.ts.map +1 -0
- package/dist/server/drain.js +455 -0
- package/dist/server/function.d.ts +77 -0
- package/dist/server/function.d.ts.map +1 -0
- package/dist/server/function.js +337 -0
- package/dist/server/http_retry.d.ts +37 -0
- package/dist/server/http_retry.d.ts.map +1 -0
- package/dist/server/http_retry.js +157 -0
- package/dist/server/index.d.ts +7 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +5 -0
- package/dist/server/metadata.d.ts +50 -0
- package/dist/server/metadata.d.ts.map +1 -0
- package/dist/server/metadata.js +193 -0
- package/dist/server/oe_url.d.ts +36 -0
- package/dist/server/oe_url.d.ts.map +1 -0
- package/dist/server/oe_url.js +50 -0
- package/dist/server/owner_url.d.ts +35 -0
- package/dist/server/owner_url.d.ts.map +1 -0
- package/dist/server/owner_url.js +146 -0
- package/dist/server/query.d.ts +42 -0
- package/dist/server/query.d.ts.map +1 -0
- package/dist/server/query.js +28 -0
- package/dist/server/tool.d.ts +138 -0
- package/dist/server/tool.d.ts.map +1 -0
- package/dist/server/tool.js +1017 -0
- package/dist/span_names.d.ts +21 -0
- package/dist/span_names.d.ts.map +1 -0
- package/dist/span_names.js +31 -0
- package/dist/structured_logging/constants.d.ts +17 -0
- package/dist/structured_logging/constants.d.ts.map +1 -0
- package/dist/structured_logging/constants.js +71 -0
- package/dist/structured_logging/env.d.ts +18 -0
- package/dist/structured_logging/env.d.ts.map +1 -0
- package/dist/structured_logging/env.js +39 -0
- package/dist/structured_logging/install.d.ts +56 -0
- package/dist/structured_logging/install.d.ts.map +1 -0
- package/dist/structured_logging/install.js +107 -0
- package/dist/structured_logging/layout.d.ts +9 -0
- package/dist/structured_logging/layout.d.ts.map +1 -0
- package/dist/structured_logging/layout.js +144 -0
- package/dist/structured_logging/serialize.d.ts +27 -0
- package/dist/structured_logging/serialize.d.ts.map +1 -0
- package/dist/structured_logging/serialize.js +61 -0
- package/dist/structured_logging/stdio_capture.d.ts +59 -0
- package/dist/structured_logging/stdio_capture.d.ts.map +1 -0
- package/dist/structured_logging/stdio_capture.js +164 -0
- package/dist/structured_logging/uncaught.d.ts +14 -0
- package/dist/structured_logging/uncaught.d.ts.map +1 -0
- package/dist/structured_logging/uncaught.js +58 -0
- package/dist/structured_logging.d.ts +48 -0
- package/dist/structured_logging.d.ts.map +1 -0
- package/dist/structured_logging.js +47 -0
- package/dist/tls_client.d.ts +61 -0
- package/dist/tls_client.d.ts.map +1 -0
- package/dist/tls_client.js +298 -0
- package/dist/tool_api_error.d.ts +62 -0
- package/dist/tool_api_error.d.ts.map +1 -0
- package/dist/tool_api_error.js +399 -0
- package/dist/tool_memory_ownership.d.ts +10 -0
- package/dist/tool_memory_ownership.d.ts.map +1 -0
- package/dist/tool_memory_ownership.js +36 -0
- package/dist/toolpod_handlers.d.ts +126 -0
- package/dist/toolpod_handlers.d.ts.map +1 -0
- package/dist/toolpod_handlers.js +1016 -0
- package/dist/tracing/exporters.d.ts +51 -0
- package/dist/tracing/exporters.d.ts.map +1 -0
- package/dist/tracing/exporters.js +327 -0
- package/dist/tracing/index.d.ts +3 -0
- package/dist/tracing/index.d.ts.map +1 -0
- package/dist/tracing/index.js +2 -0
- package/dist/tracing/setup.d.ts +76 -0
- package/dist/tracing/setup.d.ts.map +1 -0
- package/dist/tracing/setup.js +436 -0
- package/dist/utils.d.ts +204 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +867 -0
- package/dist/workflow/activity.d.ts +71 -0
- package/dist/workflow/activity.d.ts.map +1 -0
- package/dist/workflow/activity.js +357 -0
- package/dist/workflow/attempt.d.ts +12 -0
- package/dist/workflow/attempt.d.ts.map +1 -0
- package/dist/workflow/attempt.js +96 -0
- package/dist/workflow/client.d.ts +46 -0
- package/dist/workflow/client.d.ts.map +1 -0
- package/dist/workflow/client.js +299 -0
- package/dist/workflow/context.d.ts +37 -0
- package/dist/workflow/context.d.ts.map +1 -0
- package/dist/workflow/context.js +350 -0
- package/dist/workflow/heartbeat.d.ts +15 -0
- package/dist/workflow/heartbeat.d.ts.map +1 -0
- package/dist/workflow/heartbeat.js +78 -0
- package/dist/workflow/index.d.ts +14 -0
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/index.js +10 -0
- package/dist/workflow/memory.d.ts +17 -0
- package/dist/workflow/memory.d.ts.map +1 -0
- package/dist/workflow/memory.js +184 -0
- package/package.json +73 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/** Durable activity synchronization with short-term Memory. */
|
|
2
|
+
import { create } from "@bufbuild/protobuf";
|
|
3
|
+
import { LLMResponse } from "@mongodb-js/agent-engine-sdk";
|
|
4
|
+
import { ActivityMemoryCommandSchema, MemoryWriteSchema, } from "../generated/workflow/v1/activity_pb.js";
|
|
5
|
+
import { getLogger } from "../logger.js";
|
|
6
|
+
import { normalizeContent } from "../utils.js";
|
|
7
|
+
import { CALL_INTERRUPTED_ARTIFACT_KEY } from "../call_interrupted.js";
|
|
8
|
+
const logger = getLogger("agent_engine_runner_shared.workflow.memory");
|
|
9
|
+
const encoder = new TextEncoder();
|
|
10
|
+
/** JSON-serialize a plain tool result, degrading to String on failure. */
|
|
11
|
+
function safeJsonContent(result) {
|
|
12
|
+
try {
|
|
13
|
+
return JSON.stringify(result) ?? String(result);
|
|
14
|
+
}
|
|
15
|
+
catch {
|
|
16
|
+
return String(result);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export function validateDurableMemoryIdentity(identity, userId) {
|
|
20
|
+
const scope = identity?.tenantScope;
|
|
21
|
+
if (!userId ||
|
|
22
|
+
!identity?.executionId ||
|
|
23
|
+
!identity.sessionId ||
|
|
24
|
+
!scope?.orgId ||
|
|
25
|
+
!scope.projectId ||
|
|
26
|
+
!scope.workspaceId) {
|
|
27
|
+
throw new Error("durable Memory identity is incomplete");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
class DurableMemoryProjection {
|
|
31
|
+
executionId;
|
|
32
|
+
activityId;
|
|
33
|
+
sessionId;
|
|
34
|
+
orgId;
|
|
35
|
+
projectId;
|
|
36
|
+
workspaceId;
|
|
37
|
+
userId;
|
|
38
|
+
constructor(executionId, activityId, sessionId, orgId, projectId, workspaceId, userId) {
|
|
39
|
+
this.executionId = executionId;
|
|
40
|
+
this.activityId = activityId;
|
|
41
|
+
this.sessionId = sessionId;
|
|
42
|
+
this.orgId = orgId;
|
|
43
|
+
this.projectId = projectId;
|
|
44
|
+
this.workspaceId = workspaceId;
|
|
45
|
+
this.userId = userId;
|
|
46
|
+
}
|
|
47
|
+
static fromActivity(context, userId) {
|
|
48
|
+
validateDurableMemoryIdentity(context.workflowIdentity, userId);
|
|
49
|
+
if (!context.activityId || !context.workflowIdentity || !userId) {
|
|
50
|
+
throw new Error("durable Memory identity is incomplete");
|
|
51
|
+
}
|
|
52
|
+
const scope = context.workflowIdentity.tenantScope;
|
|
53
|
+
if (!scope)
|
|
54
|
+
throw new Error("durable Memory identity is incomplete");
|
|
55
|
+
return new DurableMemoryProjection(context.workflowIdentity.executionId, context.activityId, context.workflowIdentity.sessionId, scope.orgId, scope.projectId, scope.workspaceId, userId);
|
|
56
|
+
}
|
|
57
|
+
userInput(content) {
|
|
58
|
+
const id = `workflow:${this.executionId}:input`;
|
|
59
|
+
return this.write(id, {
|
|
60
|
+
...this.turnIdentity(id),
|
|
61
|
+
role: "user",
|
|
62
|
+
content,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
assistant(content, toolCalls) {
|
|
66
|
+
const id = `workflow:${this.executionId}:${this.activityId}:assistant:0`;
|
|
67
|
+
return this.write(id, {
|
|
68
|
+
...this.turnIdentity(id),
|
|
69
|
+
role: "assistant",
|
|
70
|
+
content,
|
|
71
|
+
...(toolCalls === null ? {} : { tool_calls: toolCalls }),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
tool(content, toolCallId, toolName) {
|
|
75
|
+
const id = `workflow:${this.executionId}:${this.activityId}:tool:0`;
|
|
76
|
+
return this.write(id, {
|
|
77
|
+
...this.turnIdentity(id),
|
|
78
|
+
role: "tool",
|
|
79
|
+
content,
|
|
80
|
+
tool_call_id: toolCallId,
|
|
81
|
+
tool_name: toolName,
|
|
82
|
+
is_error: false,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
turnIdentity(id) {
|
|
86
|
+
return {
|
|
87
|
+
session_id: this.sessionId,
|
|
88
|
+
org_id: this.orgId,
|
|
89
|
+
user_id: this.userId,
|
|
90
|
+
project_id: this.projectId,
|
|
91
|
+
agent_id: this.workspaceId,
|
|
92
|
+
idempotency_key: id,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
write(id, payload) {
|
|
96
|
+
return create(MemoryWriteSchema, {
|
|
97
|
+
id,
|
|
98
|
+
payloadJson: encoder.encode(JSON.stringify(payload)),
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
/** Own durable Memory projection, delivery, and pending user input. */
|
|
103
|
+
export class DurableMemoryState {
|
|
104
|
+
pendingUserMessage;
|
|
105
|
+
synchronization = Promise.resolve();
|
|
106
|
+
constructor(pendingUserMessage = null) {
|
|
107
|
+
this.pendingUserMessage = pendingUserMessage;
|
|
108
|
+
}
|
|
109
|
+
synchronizeLlm(client, context, result, userId) {
|
|
110
|
+
const projection = DurableMemoryProjection.fromActivity(context, userId);
|
|
111
|
+
const writes = [];
|
|
112
|
+
try {
|
|
113
|
+
if (typeof result !== "object" ||
|
|
114
|
+
result === null ||
|
|
115
|
+
Array.isArray(result)) {
|
|
116
|
+
throw new Error("LLM result must be an object");
|
|
117
|
+
}
|
|
118
|
+
const response = LLMResponse.fromRaw(result);
|
|
119
|
+
const toolCalls = response.toolCalls?.map((toolCall) => {
|
|
120
|
+
const args = toolCall.args ?? {};
|
|
121
|
+
if (typeof args !== "string" &&
|
|
122
|
+
(typeof args !== "object" || args === null || Array.isArray(args))) {
|
|
123
|
+
throw new Error("tool-call arguments must be an object or string");
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
id: toolCall.id ?? "",
|
|
127
|
+
name: toolCall.name ?? "",
|
|
128
|
+
arguments: args,
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
if (!response.content && !toolCalls?.length) {
|
|
132
|
+
throw new Error("assistant result has no content or tool calls");
|
|
133
|
+
}
|
|
134
|
+
writes.push(projection.assistant(response.content, toolCalls ?? null));
|
|
135
|
+
}
|
|
136
|
+
catch {
|
|
137
|
+
logger.warn({ activity_id: context.activityId }, "Skipping incompatible durable Memory LLM result");
|
|
138
|
+
}
|
|
139
|
+
return this.synchronize(client, context, projection, writes);
|
|
140
|
+
}
|
|
141
|
+
synchronizeTool(client, context, result, userId, toolCallId, toolName) {
|
|
142
|
+
const projection = DurableMemoryProjection.fromActivity(context, userId);
|
|
143
|
+
const writes = [];
|
|
144
|
+
const interrupted = typeof result === "object" &&
|
|
145
|
+
result !== null &&
|
|
146
|
+
!Array.isArray(result) &&
|
|
147
|
+
Object.keys(result).length === 1 &&
|
|
148
|
+
result[CALL_INTERRUPTED_ARTIFACT_KEY] ===
|
|
149
|
+
true;
|
|
150
|
+
if (!interrupted) {
|
|
151
|
+
// Plain structured results must survive as JSON (mirroring the
|
|
152
|
+
// ToolMessage path): normalizeContent would reduce objects to
|
|
153
|
+
// "[object Object]" and mangle arrays (multimodal concatenation),
|
|
154
|
+
// losing the result Memory must preserve.
|
|
155
|
+
const content = typeof result === "object" && result !== null
|
|
156
|
+
? safeJsonContent(result)
|
|
157
|
+
: normalizeContent(result);
|
|
158
|
+
if (toolCallId && content) {
|
|
159
|
+
writes.push(projection.tool(content, toolCallId, toolName));
|
|
160
|
+
}
|
|
161
|
+
else if (toolCallId) {
|
|
162
|
+
logger.warn({ activity_id: context.activityId }, "Skipping incompatible durable Memory tool result");
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return this.synchronize(client, context, projection, writes);
|
|
166
|
+
}
|
|
167
|
+
synchronize(client, context, projection, resultWrites) {
|
|
168
|
+
const operation = this.synchronization.then(async () => {
|
|
169
|
+
const writes = this.pendingUserMessage === null
|
|
170
|
+
? resultWrites
|
|
171
|
+
: [projection.userInput(this.pendingUserMessage), ...resultWrites];
|
|
172
|
+
await client.ensureMemoryWritten(create(ActivityMemoryCommandSchema, {
|
|
173
|
+
workflowIdentity: context.workflowIdentity,
|
|
174
|
+
activityId: context.activityId,
|
|
175
|
+
attemptId: context.attemptId,
|
|
176
|
+
fencingToken: context.fencingToken,
|
|
177
|
+
memoryWrites: writes,
|
|
178
|
+
}));
|
|
179
|
+
this.pendingUserMessage = null;
|
|
180
|
+
});
|
|
181
|
+
this.synchronization = operation.catch(() => { });
|
|
182
|
+
return operation;
|
|
183
|
+
}
|
|
184
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mongodb-js/agent-engine-runner-shared",
|
|
3
|
+
"version": "0.11.3",
|
|
4
|
+
"description": "Runner SDK - Framework-agnostic agent runtime (TypeScript)",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/10gen/agentic-platform.git",
|
|
9
|
+
"directory": "client-libraries/packages/javascript/packages/agent-engine-runner-shared"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"packageManager": "npm@11.14.1",
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=24",
|
|
15
|
+
"npm": ">=11.10.0"
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"import": "./dist/index.js",
|
|
22
|
+
"types": "./dist/index.d.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md",
|
|
28
|
+
"CHANGELOG.md",
|
|
29
|
+
"LICENSE.md"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsc --project tsconfig.build.json",
|
|
33
|
+
"typecheck": "tsc --project tsconfig.build.json --noEmit",
|
|
34
|
+
"test": "vitest run",
|
|
35
|
+
"test:watch": "vitest",
|
|
36
|
+
"lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\""
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@bufbuild/protobuf": "2.12.1",
|
|
40
|
+
"@fastify/cors": "^10.0.0",
|
|
41
|
+
"@mongodb-js/agent-engine-sdk-memory": "0.11.3",
|
|
42
|
+
"@mongodb-js/agent-engine-sdk": "0.11.3",
|
|
43
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
44
|
+
"@opentelemetry/api": "^1.9.1",
|
|
45
|
+
"@opentelemetry/core": "^2.0.0",
|
|
46
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.205.0",
|
|
47
|
+
"@opentelemetry/resources": "^2.0.0",
|
|
48
|
+
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
49
|
+
"eventsource-parser": "^3.0.0",
|
|
50
|
+
"fastify": "^5.0.0",
|
|
51
|
+
"js-yaml": "^4.1.0",
|
|
52
|
+
"log4js": "^6.9.1",
|
|
53
|
+
"mongodb": "^6.0.0",
|
|
54
|
+
"proper-lockfile": "^4.1.2",
|
|
55
|
+
"undici": "^6.0.0",
|
|
56
|
+
"zod": "^4.4.3"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@bufbuild/protoc-gen-es": "2.12.1",
|
|
60
|
+
"@eslint/js": "^10.0.1",
|
|
61
|
+
"@sentry/node": "^8.55.0",
|
|
62
|
+
"@types/js-yaml": "^4.0.9",
|
|
63
|
+
"@types/node": "^22.0.0",
|
|
64
|
+
"@types/proper-lockfile": "^4.1.4",
|
|
65
|
+
"eslint": "^10.4.0",
|
|
66
|
+
"typescript": "^5.5.0",
|
|
67
|
+
"typescript-eslint": "^8.59.3",
|
|
68
|
+
"vitest": "^4.1.6"
|
|
69
|
+
},
|
|
70
|
+
"publishConfig": {
|
|
71
|
+
"registry": "https://registry.npmjs.org"
|
|
72
|
+
}
|
|
73
|
+
}
|