@librechat/agents 4.2.10 → 4.2.11

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 (261) hide show
  1. package/dist/cjs/runtime/admission.cjs +135 -0
  2. package/dist/cjs/runtime/admission.cjs.map +1 -0
  3. package/dist/cjs/runtime/checkpoint.cjs +40 -0
  4. package/dist/cjs/runtime/checkpoint.cjs.map +1 -0
  5. package/dist/cjs/runtime/client.cjs +435 -0
  6. package/dist/cjs/runtime/client.cjs.map +1 -0
  7. package/dist/cjs/runtime/files.cjs +301 -0
  8. package/dist/cjs/runtime/files.cjs.map +1 -0
  9. package/dist/cjs/runtime/hostTools.cjs +165 -0
  10. package/dist/cjs/runtime/hostTools.cjs.map +1 -0
  11. package/dist/cjs/runtime/index.cjs +11 -0
  12. package/dist/cjs/runtime/model.cjs +303 -0
  13. package/dist/cjs/runtime/model.cjs.map +1 -0
  14. package/dist/cjs/runtime/peer.cjs +209 -0
  15. package/dist/cjs/runtime/peer.cjs.map +1 -0
  16. package/dist/cjs/runtime/policy.cjs +77 -0
  17. package/dist/cjs/runtime/policy.cjs.map +1 -0
  18. package/dist/cjs/runtime/recovery/client.cjs +172 -0
  19. package/dist/cjs/runtime/recovery/client.cjs.map +1 -0
  20. package/dist/cjs/runtime/recovery/log.cjs +47 -0
  21. package/dist/cjs/runtime/recovery/log.cjs.map +1 -0
  22. package/dist/cjs/runtime/recovery/redis.cjs +239 -0
  23. package/dist/cjs/runtime/recovery/redis.cjs.map +1 -0
  24. package/dist/cjs/runtime/recovery/server.cjs +190 -0
  25. package/dist/cjs/runtime/recovery/server.cjs.map +1 -0
  26. package/dist/cjs/runtime/recovery/socket.cjs +298 -0
  27. package/dist/cjs/runtime/recovery/socket.cjs.map +1 -0
  28. package/dist/cjs/runtime/resume.cjs +115 -0
  29. package/dist/cjs/runtime/resume.cjs.map +1 -0
  30. package/dist/cjs/runtime/sealed.cjs +107 -0
  31. package/dist/cjs/runtime/sealed.cjs.map +1 -0
  32. package/dist/cjs/runtime/server.cjs +415 -0
  33. package/dist/cjs/runtime/server.cjs.map +1 -0
  34. package/dist/cjs/runtime/snapshot.cjs +61 -0
  35. package/dist/cjs/runtime/snapshot.cjs.map +1 -0
  36. package/dist/cjs/runtime/types.cjs +20 -0
  37. package/dist/cjs/runtime/types.cjs.map +1 -0
  38. package/dist/cjs/runtime/wire.cjs +84 -0
  39. package/dist/cjs/runtime/wire.cjs.map +1 -0
  40. package/dist/esm/runtime/admission.mjs +133 -0
  41. package/dist/esm/runtime/admission.mjs.map +1 -0
  42. package/dist/esm/runtime/checkpoint.mjs +39 -0
  43. package/dist/esm/runtime/checkpoint.mjs.map +1 -0
  44. package/dist/esm/runtime/client.mjs +432 -0
  45. package/dist/esm/runtime/client.mjs.map +1 -0
  46. package/dist/esm/runtime/files.mjs +299 -0
  47. package/dist/esm/runtime/files.mjs.map +1 -0
  48. package/dist/esm/runtime/hostTools.mjs +164 -0
  49. package/dist/esm/runtime/hostTools.mjs.map +1 -0
  50. package/dist/esm/runtime/index.mjs +5 -0
  51. package/dist/esm/runtime/model.mjs +301 -0
  52. package/dist/esm/runtime/model.mjs.map +1 -0
  53. package/dist/esm/runtime/peer.mjs +209 -0
  54. package/dist/esm/runtime/peer.mjs.map +1 -0
  55. package/dist/esm/runtime/policy.mjs +75 -0
  56. package/dist/esm/runtime/policy.mjs.map +1 -0
  57. package/dist/esm/runtime/recovery/client.mjs +172 -0
  58. package/dist/esm/runtime/recovery/client.mjs.map +1 -0
  59. package/dist/esm/runtime/recovery/log.mjs +46 -0
  60. package/dist/esm/runtime/recovery/log.mjs.map +1 -0
  61. package/dist/esm/runtime/recovery/redis.mjs +239 -0
  62. package/dist/esm/runtime/recovery/redis.mjs.map +1 -0
  63. package/dist/esm/runtime/recovery/server.mjs +189 -0
  64. package/dist/esm/runtime/recovery/server.mjs.map +1 -0
  65. package/dist/esm/runtime/recovery/socket.mjs +297 -0
  66. package/dist/esm/runtime/recovery/socket.mjs.map +1 -0
  67. package/dist/esm/runtime/resume.mjs +111 -0
  68. package/dist/esm/runtime/resume.mjs.map +1 -0
  69. package/dist/esm/runtime/sealed.mjs +106 -0
  70. package/dist/esm/runtime/sealed.mjs.map +1 -0
  71. package/dist/esm/runtime/server.mjs +413 -0
  72. package/dist/esm/runtime/server.mjs.map +1 -0
  73. package/dist/esm/runtime/snapshot.mjs +60 -0
  74. package/dist/esm/runtime/snapshot.mjs.map +1 -0
  75. package/dist/esm/runtime/types.mjs +19 -0
  76. package/dist/esm/runtime/types.mjs.map +1 -0
  77. package/dist/esm/runtime/wire.mjs +80 -0
  78. package/dist/esm/runtime/wire.mjs.map +1 -0
  79. package/dist/types/agents/AgentContext.d.ts +4 -4
  80. package/dist/types/agents/projection.d.ts +1 -1
  81. package/dist/types/events.d.ts +2 -2
  82. package/dist/types/graphs/Graph.d.ts +13 -13
  83. package/dist/types/graphs/MultiAgentGraph.d.ts +2 -2
  84. package/dist/types/graphs/acceptedModelResponse.d.ts +1 -1
  85. package/dist/types/graphs/createGraph.d.ts +4 -4
  86. package/dist/types/graphs/graphFactory.d.ts +1 -1
  87. package/dist/types/graphs/handoff.d.ts +1 -1
  88. package/dist/types/harness/index.d.ts +2 -2
  89. package/dist/types/harness/model.d.ts +3 -3
  90. package/dist/types/harness/providerText.d.ts +2 -2
  91. package/dist/types/hitl/approvalReview.d.ts +1 -1
  92. package/dist/types/hitl/askUserQuestion.d.ts +1 -1
  93. package/dist/types/hitl/askUserQuestions.d.ts +1 -1
  94. package/dist/types/hitl/askUserQuestionsInterrupt.d.ts +1 -1
  95. package/dist/types/hooks/types.d.ts +2 -2
  96. package/dist/types/instrumentation.d.ts +1 -1
  97. package/dist/types/langfuse.d.ts +3 -3
  98. package/dist/types/langfuseConfig.d.ts +2 -2
  99. package/dist/types/langfuseRuntimeContext.d.ts +1 -1
  100. package/dist/types/langfuseRuntimeScope.d.ts +2 -2
  101. package/dist/types/langfuseSpanRegistry.d.ts +1 -1
  102. package/dist/types/langfuseToolOutputTracing.d.ts +3 -3
  103. package/dist/types/llm/anthropic/index.d.ts +1 -1
  104. package/dist/types/llm/bedrock/index.d.ts +1 -1
  105. package/dist/types/llm/bedrock/toolCache.d.ts +2 -2
  106. package/dist/types/llm/contextOverflowRecovery.d.ts +2 -2
  107. package/dist/types/llm/contextPressureMeter.d.ts +2 -2
  108. package/dist/types/llm/google/index.d.ts +1 -1
  109. package/dist/types/llm/init.d.ts +1 -1
  110. package/dist/types/llm/invoke.d.ts +9 -9
  111. package/dist/types/llm/mistral/index.d.ts +1 -1
  112. package/dist/types/llm/openai/index.d.ts +2 -2
  113. package/dist/types/llm/openrouter/index.d.ts +2 -2
  114. package/dist/types/llm/openrouter/toolCache.d.ts +2 -2
  115. package/dist/types/llm/prepareProviderRequest.d.ts +3 -3
  116. package/dist/types/llm/promptCacheTools.d.ts +1 -1
  117. package/dist/types/llm/providerRegistry.d.ts +1 -1
  118. package/dist/types/llm/providerTextBoundary.d.ts +2 -2
  119. package/dist/types/llm/providerTextControls.d.ts +1 -1
  120. package/dist/types/llm/providers.d.ts +2 -2
  121. package/dist/types/llm/request.d.ts +1 -1
  122. package/dist/types/llm/stream/chunkAdapters.d.ts +1 -1
  123. package/dist/types/llm/streamLimits.d.ts +1 -1
  124. package/dist/types/llm/truncation.d.ts +1 -1
  125. package/dist/types/llm/vertexai/index.d.ts +1 -1
  126. package/dist/types/messages/alternation.d.ts +1 -1
  127. package/dist/types/messages/anthropicToolCache.d.ts +2 -2
  128. package/dist/types/messages/assistantPhase.d.ts +3 -3
  129. package/dist/types/messages/budget.d.ts +1 -1
  130. package/dist/types/messages/cache.d.ts +1 -1
  131. package/dist/types/messages/contextPruning.d.ts +2 -2
  132. package/dist/types/messages/core.d.ts +1 -1
  133. package/dist/types/messages/fading.d.ts +1 -1
  134. package/dist/types/messages/format.d.ts +2 -2
  135. package/dist/types/messages/ids.d.ts +2 -2
  136. package/dist/types/messages/injected.d.ts +1 -1
  137. package/dist/types/messages/langchain.d.ts +1 -1
  138. package/dist/types/messages/prune.d.ts +4 -4
  139. package/dist/types/messages/recency.d.ts +1 -1
  140. package/dist/types/messages/toolResultTypes.d.ts +1 -1
  141. package/dist/types/openai/arguments.d.ts +1 -1
  142. package/dist/types/openai/index.d.ts +1 -1
  143. package/dist/types/openai/toolProjection.d.ts +1 -1
  144. package/dist/types/prompts/activityLabel.d.ts +2 -2
  145. package/dist/types/prompts/reasoningLabel.d.ts +1 -1
  146. package/dist/types/rerank/search.d.ts +1 -1
  147. package/dist/types/responses/index.d.ts +1 -1
  148. package/dist/types/run.d.ts +3 -3
  149. package/dist/types/runtime/admission.d.ts +30 -0
  150. package/dist/types/runtime/checkpoint.d.ts +14 -0
  151. package/dist/types/runtime/client.d.ts +12 -0
  152. package/dist/types/runtime/files.d.ts +75 -0
  153. package/dist/types/runtime/hostTools.d.ts +22 -0
  154. package/dist/types/runtime/identity.d.ts +2 -0
  155. package/dist/types/runtime/index.d.ts +12 -0
  156. package/dist/types/runtime/model.d.ts +42 -0
  157. package/dist/types/runtime/peer.d.ts +55 -0
  158. package/dist/types/runtime/policy.d.ts +43 -0
  159. package/dist/types/runtime/recovery/client.d.ts +12 -0
  160. package/dist/types/runtime/recovery/journal.d.ts +62 -0
  161. package/dist/types/runtime/recovery/log.d.ts +9 -0
  162. package/dist/types/runtime/recovery/redis.d.ts +17 -0
  163. package/dist/types/runtime/recovery/server.d.ts +37 -0
  164. package/dist/types/runtime/recovery/socket.d.ts +72 -0
  165. package/dist/types/runtime/resume.d.ts +66 -0
  166. package/dist/types/runtime/sealed.d.ts +19 -0
  167. package/dist/types/runtime/server.d.ts +21 -0
  168. package/dist/types/runtime/snapshot.d.ts +12 -0
  169. package/dist/types/runtime/types.d.ts +125 -0
  170. package/dist/types/runtime/wire.d.ts +3 -0
  171. package/dist/types/session/handlers.d.ts +1 -1
  172. package/dist/types/session/types.d.ts +1 -1
  173. package/dist/types/stream.d.ts +3 -3
  174. package/dist/types/summarization/index.d.ts +1 -1
  175. package/dist/types/summarization/input.d.ts +1 -1
  176. package/dist/types/summarization/node.d.ts +6 -6
  177. package/dist/types/summarization/retry.d.ts +2 -2
  178. package/dist/types/summarization/semanticIndex.d.ts +2 -2
  179. package/dist/types/summarization/toolBudget.d.ts +1 -1
  180. package/dist/types/summarization/usage.d.ts +1 -1
  181. package/dist/types/tools/ArtifactDelivery.d.ts +1 -1
  182. package/dist/types/tools/ArtifactTruncation.d.ts +1 -1
  183. package/dist/types/tools/BashExecutor.d.ts +2 -2
  184. package/dist/types/tools/BashProgrammaticToolCalling.d.ts +2 -2
  185. package/dist/types/tools/CallerCapabilities.d.ts +1 -1
  186. package/dist/types/tools/CodeExecutor.d.ts +4 -4
  187. package/dist/types/tools/CodeSessionFileSummary.d.ts +1 -1
  188. package/dist/types/tools/ProgrammaticCallerPolicy.d.ts +1 -1
  189. package/dist/types/tools/ProgrammaticToolCalling.d.ts +2 -2
  190. package/dist/types/tools/ReadFile.d.ts +1 -1
  191. package/dist/types/tools/SkillTool.d.ts +1 -1
  192. package/dist/types/tools/SubagentTool.d.ts +3 -3
  193. package/dist/types/tools/ToolNode.d.ts +5 -5
  194. package/dist/types/tools/ToolSearch.d.ts +2 -2
  195. package/dist/types/tools/cloudflare/CloudflareBridgeRuntime.d.ts +1 -1
  196. package/dist/types/tools/cloudflare/CloudflareProgrammaticToolCalling.d.ts +1 -1
  197. package/dist/types/tools/cloudflare/CloudflareSandboxExecutionEngine.d.ts +2 -2
  198. package/dist/types/tools/cloudflare/CloudflareSandboxTools.d.ts +1 -1
  199. package/dist/types/tools/diagnostics.d.ts +1 -1
  200. package/dist/types/tools/eagerEventExecution.d.ts +1 -1
  201. package/dist/types/tools/handlers.d.ts +3 -3
  202. package/dist/types/tools/intentArg.d.ts +1 -1
  203. package/dist/types/tools/local/CompileCheckTool.d.ts +2 -2
  204. package/dist/types/tools/local/FileCheckpointer.d.ts +1 -1
  205. package/dist/types/tools/local/LocalCodingTools.d.ts +2 -2
  206. package/dist/types/tools/local/LocalExecutionEngine.d.ts +1 -1
  207. package/dist/types/tools/local/LocalExecutionTools.d.ts +1 -1
  208. package/dist/types/tools/local/LocalProgrammaticToolCalling.d.ts +1 -1
  209. package/dist/types/tools/local/bashAst.d.ts +1 -1
  210. package/dist/types/tools/local/resolveLocalExecutionTools.d.ts +1 -1
  211. package/dist/types/tools/local/syntaxCheck.d.ts +1 -1
  212. package/dist/types/tools/ptcTimeout.d.ts +1 -1
  213. package/dist/types/tools/runStepResume.d.ts +1 -1
  214. package/dist/types/tools/schema.d.ts +1 -1
  215. package/dist/types/tools/search/anthropic.d.ts +1 -1
  216. package/dist/types/tools/skillCatalog.d.ts +1 -1
  217. package/dist/types/tools/subagent/InMemorySubagentTaskStore.d.ts +1 -1
  218. package/dist/types/tools/subagent/SubagentExecutor.d.ts +5 -5
  219. package/dist/types/tools/subagent/SubagentReplay.d.ts +3 -3
  220. package/dist/types/tools/subagent/childGraphConfig.d.ts +2 -2
  221. package/dist/types/tools/subagent/diagnostics.d.ts +2 -2
  222. package/dist/types/tools/subagent/hostArgs.d.ts +2 -2
  223. package/dist/types/tools/toolBatchReplay.d.ts +3 -3
  224. package/dist/types/types/activityLabel.d.ts +2 -2
  225. package/dist/types/types/graph.d.ts +10 -10
  226. package/dist/types/types/llm.d.ts +9 -9
  227. package/dist/types/types/reasoningLabel.d.ts +1 -1
  228. package/dist/types/types/run.d.ts +8 -8
  229. package/dist/types/types/stream.d.ts +5 -5
  230. package/dist/types/types/summarize.d.ts +2 -2
  231. package/dist/types/types/tools.d.ts +8 -8
  232. package/dist/types/utils/errors.d.ts +1 -1
  233. package/dist/types/utils/events.d.ts +3 -3
  234. package/dist/types/utils/handlers.d.ts +3 -3
  235. package/dist/types/utils/llm.d.ts +2 -2
  236. package/dist/types/utils/llmConfig.d.ts +1 -1
  237. package/dist/types/utils/title.d.ts +1 -1
  238. package/dist/types/utils/toolSessions.d.ts +1 -1
  239. package/package.json +22 -3
  240. package/src/runtime/admission.ts +224 -0
  241. package/src/runtime/checkpoint.ts +66 -0
  242. package/src/runtime/client.ts +674 -0
  243. package/src/runtime/files.ts +503 -0
  244. package/src/runtime/hostTools.ts +243 -0
  245. package/src/runtime/identity.ts +3 -0
  246. package/src/runtime/index.ts +33 -0
  247. package/src/runtime/model.ts +452 -0
  248. package/src/runtime/peer.ts +262 -0
  249. package/src/runtime/policy.ts +150 -0
  250. package/src/runtime/recovery/client.ts +232 -0
  251. package/src/runtime/recovery/journal.ts +88 -0
  252. package/src/runtime/recovery/log.ts +70 -0
  253. package/src/runtime/recovery/redis.ts +342 -0
  254. package/src/runtime/recovery/server.ts +280 -0
  255. package/src/runtime/recovery/socket.ts +422 -0
  256. package/src/runtime/resume.ts +268 -0
  257. package/src/runtime/sealed.ts +144 -0
  258. package/src/runtime/server.ts +653 -0
  259. package/src/runtime/snapshot.ts +87 -0
  260. package/src/runtime/types.ts +184 -0
  261. package/src/runtime/wire.ts +96 -0
@@ -1,4 +1,4 @@
1
- import type * as t from '@/types';
1
+ import type * as t from '../../types/index.js';
2
2
  export type BashAstFinding = {
3
3
  code: string;
4
4
  message: string;
@@ -1,4 +1,4 @@
1
- import type * as t from '@/types';
1
+ import type * as t from '../../types/index.js';
2
2
  type ResolveLocalToolsResult = {
3
3
  toolMap: t.ToolMap;
4
4
  directToolNames: Set<string>;
@@ -15,7 +15,7 @@
15
15
  * is slow and per-file syntax (without type info) misses most TS
16
16
  * errors anyway. Use the project-level `compile_check` tool for that.
17
17
  */
18
- import type * as t from '@/types';
18
+ import type * as t from '../../types/index.js';
19
19
  export type SyntaxCheckOutcome = {
20
20
  ok: true;
21
21
  } | {
@@ -1,4 +1,4 @@
1
- import type { JsonSchemaType } from '@/types';
1
+ import type { JsonSchemaType } from '../types/index.js';
2
2
  export declare const DEFAULT_CODE_API_RUN_TIMEOUT_MS = 15000;
3
3
  export declare const MIN_CODE_API_RUN_TIMEOUT_MS = 1000;
4
4
  export declare const MAX_CODE_API_RUN_TIMEOUT_SCHEMA_MS = 300000;
@@ -1,4 +1,4 @@
1
- import type { RunStepResumeState } from '@/types';
1
+ import type { RunStepResumeState } from '../types/index.js';
2
2
  export declare function isRunStepResumeState(value: unknown): value is RunStepResumeState;
3
3
  export declare function attachRunStepResumeState(payload: unknown, state: RunStepResumeState): object;
4
4
  export declare function getRunStepResumeState(payload: unknown): RunStepResumeState | undefined;
@@ -1,5 +1,5 @@
1
1
  import { type StructuredToolInterface } from '@langchain/core/tools';
2
- import type { LCTool } from '@/types';
2
+ import type { LCTool } from '../types/index.js';
3
3
  /**
4
4
  * Creates a schema-only tool for LLM binding in event-driven mode.
5
5
  * These tools have valid schemas for the LLM to understand but should
@@ -1,4 +1,4 @@
1
- import type { AnthropicTextBlockParam, AnthropicWebSearchResultBlockParam } from '@/llm/anthropic/types';
1
+ import type { AnthropicTextBlockParam, AnthropicWebSearchResultBlockParam } from '../../llm/anthropic/types.js';
2
2
  import type { SearchResultData } from './types';
3
3
  /**
4
4
  * Coerces Anthropic web search results to the SearchResultData format
@@ -1,4 +1,4 @@
1
- import type { SkillCatalogEntry } from '@/types';
1
+ import type { SkillCatalogEntry } from '../types/index.js';
2
2
  export type SkillCatalogOptions = {
3
3
  /** Total context window in tokens. Default: 200_000 */
4
4
  contextWindowTokens?: number;
@@ -1,4 +1,4 @@
1
- import type { SubagentTaskClaim, SubagentTaskControlCommand, SubagentTaskControlReceipt, SubagentTaskControlResult, SubagentTaskSnapshot, SubagentTaskStartRequest, SubagentTaskStartResult, SubagentTaskStore } from '@/types';
1
+ import type { SubagentTaskClaim, SubagentTaskControlCommand, SubagentTaskControlReceipt, SubagentTaskControlResult, SubagentTaskSnapshot, SubagentTaskStartRequest, SubagentTaskStartResult, SubagentTaskStore } from '../../types/index.js';
2
2
  export interface InMemorySubagentTaskStoreOptions {
3
3
  completedTtlMs?: number;
4
4
  maxControlMessageChars?: number;
@@ -1,13 +1,13 @@
1
1
  import { BaseMessage } from '@langchain/core/messages';
2
2
  import type { RunnableConfig } from '@langchain/core/runnables';
3
3
  import type { ToolCall } from '@langchain/core/messages/tool';
4
- import type { MultiAgentGraphState, HumanInTheLoopConfig, StandardGraphInput, ExecutableSubagentConfigEntry, SubagentExecutionContext, SubagentContextAdapter, SubagentContextResult, SubagentTaskConfig, SubagentTaskRuntime, SubagentHostArgs, SubagentUsageSink, TokenCounter } from '@/types';
4
+ import type { MultiAgentGraphState, HumanInTheLoopConfig, StandardGraphInput, ExecutableSubagentConfigEntry, SubagentExecutionContext, SubagentContextAdapter, SubagentContextResult, SubagentTaskConfig, SubagentTaskRuntime, SubagentHostArgs, SubagentUsageSink, TokenCounter } from '../../types/index.js';
5
5
  import type { SubagentResolutionPhase, SubagentResolutionCause, SubagentHostArgumentFailure, SubagentResolutionFailureHandler } from './diagnostics';
6
6
  import type { SubagentResumeManifest, SettledSubagentToolOutput } from './SubagentReplay';
7
- import type { GraphFactory } from '@/graphs/graphFactory';
8
- import type { StandardGraph } from '@/graphs/Graph';
9
- import { HookRegistry } from '@/hooks';
10
- import { HandlerRegistry } from '@/events';
7
+ import type { GraphFactory } from '../../graphs/graphFactory.js';
8
+ import type { StandardGraph } from '../../graphs/Graph.js';
9
+ import { HookRegistry } from '../../hooks/index.js';
10
+ import { HandlerRegistry } from '../../events.js';
11
11
  export { buildChildInputs, isGraphSubagentConfig, normalizeSubagentConfigs, normalizeSubagentConfigEntries, resolveSubagentConfigs, resolveSubagentConfigEntries, } from './childGraphConfig';
12
12
  export declare const DEFAULT_SUBAGENT_DESCRIPTION = "No task description provided";
13
13
  export type SubagentExecuteParams = {
@@ -1,8 +1,8 @@
1
1
  import type { ToolCall, ToolMessage } from '@langchain/core/messages/tool';
2
2
  import type { RunnableConfig } from '@langchain/core/runnables';
3
- import type { FadingTier, FadingTiers, RunStepResumeState, RunInterruptResult, ToolSessionContext } from '@/types';
4
- import type { ToolOutputReferenceState } from '@/tools/toolOutputReferences';
5
- import type { ToolApprovalReplaySnapshot } from '@/hooks';
3
+ import type { FadingTier, FadingTiers, RunStepResumeState, RunInterruptResult, ToolSessionContext } from '../../types/index.js';
4
+ import type { ToolOutputReferenceState } from '../toolOutputReferences.js';
5
+ import type { ToolApprovalReplaySnapshot } from '../../hooks/index.js';
6
6
  export declare const SUBAGENT_RESUME_MANIFEST_CONFIG_KEY = "__librechat_subagent_resume_manifest";
7
7
  export declare const SUBAGENT_RESUME_ATTEMPT_CONFIG_KEY = "__librechat_subagent_resume_attempt";
8
8
  export declare const SUBAGENT_PARENT_BATCH_CONFIG_KEY = "__librechat_subagent_parent_batch";
@@ -1,5 +1,5 @@
1
- import type { AgentInputs, ExecutableSubagentConfig, ExecutableSubagentConfigEntry, GraphEdge, GraphSubagentConfig, ResolvedSubagentConfig, ResolvedSubagentConfigEntry, SubagentConfig, SubagentConfigEntry } from '@/types';
2
- import type { AgentContext } from '@/agents/AgentContext';
1
+ import type { AgentInputs, ExecutableSubagentConfig, ExecutableSubagentConfigEntry, GraphEdge, GraphSubagentConfig, ResolvedSubagentConfig, ResolvedSubagentConfigEntry, SubagentConfig, SubagentConfigEntry } from '../../types/index.js';
2
+ import type { AgentContext } from '../../agents/AgentContext.js';
3
3
  type ChildGraphPlanBase = {
4
4
  subjectAgentId: string;
5
5
  checkpointNodeId: string;
@@ -1,6 +1,6 @@
1
- import type { SubagentHostArgs } from '@/types/graph';
1
+ import type { SubagentHostArgs } from '../../types/graph.js';
2
2
  import { SubagentSettlementBindingError, SubagentDefinitionBindingError, SubagentInvocationBindingError, SubagentExecutionInvalidatedError } from './SubagentExecutionRegistry';
3
- import { describeCodeApiError } from '@/tools/diagnostics';
3
+ import { describeCodeApiError } from '../diagnostics.js';
4
4
  /** Which step of child start-up failed: execution identity, then host config resolution. */
5
5
  export type SubagentResolutionPhase = 'identity' | 'config';
6
6
  /** Why a host resolver refused a declared host argument value. */
@@ -1,5 +1,5 @@
1
- import type { SubagentHostArgs, SubagentHostArgSpec, SubagentHostArgSpecs } from '@/types/graph';
2
- import type { JsonSchemaType } from '@/types/tools';
1
+ import type { SubagentHostArgs, SubagentHostArgSpec, SubagentHostArgSpecs } from '../../types/graph.js';
2
+ import type { JsonSchemaType } from '../../types/tools.js';
3
3
  /**
4
4
  * Feature probe: `self` subagent configs may declare `hostArgs` together with
5
5
  * `resolveAgentInputs` and a `configId`. Calls that pass host arguments are
@@ -2,9 +2,9 @@ import { Command } from '@langchain/langgraph';
2
2
  import type { RunnableConfig } from '@langchain/core/runnables';
3
3
  import type { BaseMessage } from '@langchain/core/messages';
4
4
  import type { Interrupt } from '@langchain/langgraph';
5
- import type { SubagentToolNodeResumeState } from '@/tools/subagent/SubagentReplay';
6
- import type { ToolOutputReferenceState } from '@/tools/toolOutputReferences';
7
- import type { ToolApprovalReviewEvidence } from '@/hitl/approvalReview';
5
+ import type { SubagentToolNodeResumeState } from './subagent/SubagentReplay.js';
6
+ import type { ToolOutputReferenceState } from './toolOutputReferences.js';
7
+ import type { ToolApprovalReviewEvidence } from '../hitl/approvalReview.js';
8
8
  export declare const TOOL_BATCH_REPLAY_KEY = "__librechat_tool_batch_replay";
9
9
  export declare const TOOL_REPLAY_CONFIGS_KEY = "__librechat_tool_replay_configs";
10
10
  export declare const TOOL_PENDING_APPROVAL_KEY = "__librechat_tool_pending_approval";
@@ -1,6 +1,6 @@
1
1
  import type { RunnableConfig } from '@langchain/core/runnables';
2
- import type { AssistantTextPhase } from '@/types/assistantPhase';
3
- import type { ClientOptions, ProviderName } from '@/types/llm';
2
+ import type { AssistantTextPhase } from './assistantPhase.js';
3
+ import type { ClientOptions, ProviderName } from './llm.js';
4
4
  /** One tool call's contribution to the label payload (host-assembled). */
5
5
  export type ActivityLabelToolEntry = {
6
6
  toolName: string;
@@ -1,19 +1,19 @@
1
- import type { ProviderTextProtection } from '@/protection/providerText';
1
+ import type { ProviderTextProtection } from '../protection/providerText.js';
2
2
  import type { BaseMessage, AIMessageChunk, SystemMessage, UsageMetadata } from '@langchain/core/messages';
3
3
  import type { BindToolsInput } from '@langchain/core/language_models/chat_models';
4
4
  import type { START, StateGraph, StateGraphArgs } from '@langchain/langgraph';
5
5
  import type { RunnableConfig, Runnable } from '@langchain/core/runnables';
6
6
  import type { ChatGenerationChunk } from '@langchain/core/outputs';
7
7
  import type { GoogleAIToolType } from '@langchain/google-common';
8
- import type { RunStep, ModelResponseEvent, ModelToolsClaimedEvent, RunStepDeltaEvent, RunStepResumeState, RunStepClosedEvent, ToolCallsDispatchedEvent, MessageDeltaEvent, ReasoningDeltaEvent } from '@/types/stream';
9
- import type { SummarizationNodeInput, SummarizeCompleteEvent, CompactionSemanticIndex, SummarizationConfig, SummarizeStartEvent, SummarizeDeltaEvent } from '@/types/summarize';
10
- import type { ToolMap, ToolSessionMap, ToolEndEvent, GenericTool, LCTool, ToolExecutionConfig, ToolExecuteBatchRequest } from '@/types/tools';
11
- import type { TokenCounter, StreamLimits, StreamPreemption, TokenBudgetBreakdown } from '@/types/run';
12
- import type { SubagentResolutionFailureHandler } from '@/tools/subagent/diagnostics';
13
- import type { SubagentTaskConfig } from '@/types/subagentTasks';
14
- import type { StandardGraph, MultiAgentGraph } from '@/graphs';
15
- import type { ProviderClientOptionsConfig } from '@/types/llm';
16
- import type { Callback, GraphNodeKeys } from '@/common';
8
+ import type { RunStep, ModelResponseEvent, ModelToolsClaimedEvent, RunStepDeltaEvent, RunStepResumeState, RunStepClosedEvent, ToolCallsDispatchedEvent, MessageDeltaEvent, ReasoningDeltaEvent } from './stream.js';
9
+ import type { SummarizationNodeInput, SummarizeCompleteEvent, CompactionSemanticIndex, SummarizationConfig, SummarizeStartEvent, SummarizeDeltaEvent } from './summarize.js';
10
+ import type { ToolMap, ToolSessionMap, ToolEndEvent, GenericTool, LCTool, ToolExecutionConfig, ToolExecuteBatchRequest } from './tools.js';
11
+ import type { TokenCounter, StreamLimits, StreamPreemption, TokenBudgetBreakdown } from './run.js';
12
+ import type { SubagentResolutionFailureHandler } from '../tools/subagent/diagnostics.js';
13
+ import type { SubagentTaskConfig } from './subagentTasks.js';
14
+ import type { StandardGraph, MultiAgentGraph } from '../graphs/index.js';
15
+ import type { ProviderClientOptionsConfig } from './llm.js';
16
+ import type { Callback, GraphNodeKeys } from '../common/index.js';
17
17
  /** Interface for bound model with stream and invoke methods */
18
18
  export interface ChatModel {
19
19
  stream?: (messages: BaseMessage[], config?: RunnableConfig) => Promise<AsyncIterable<AIMessageChunk>>;
@@ -13,15 +13,15 @@ import type { Runnable } from '@langchain/core/runnables';
13
13
  import type { OpenAI as OpenAIClient } from 'openai';
14
14
  import type { ChatXAIInput } from '@langchain/xai';
15
15
  import type { CustomProviderOptionsMap } from '../provider-registration';
16
- import type { ChatOpenRouterCallOptions } from '@/llm/openrouter';
17
- import type { PromptCacheTtl } from '@/messages/cache';
18
- import { AzureChatOpenAI, ChatDeepSeek, ChatMoonshot, ChatOpenAI, ChatXAI } from '@/llm/openai';
19
- import { CustomChatGoogleGenerativeAI } from '@/llm/google';
20
- import { CustomChatBedrockConverse } from '@/llm/bedrock';
21
- import { CustomAnthropic } from '@/llm/anthropic';
22
- import { ChatOpenRouter } from '@/llm/openrouter';
23
- import { ChatVertexAI } from '@/llm/vertexai';
24
- import { Providers } from '@/common';
16
+ import type { ChatOpenRouterCallOptions } from '../llm/openrouter/index.js';
17
+ import type { PromptCacheTtl } from '../messages/cache.js';
18
+ import { AzureChatOpenAI, ChatDeepSeek, ChatMoonshot, ChatOpenAI, ChatXAI } from '../llm/openai/index.js';
19
+ import { CustomChatGoogleGenerativeAI } from '../llm/google/index.js';
20
+ import { CustomChatBedrockConverse } from '../llm/bedrock/index.js';
21
+ import { CustomAnthropic } from '../llm/anthropic/index.js';
22
+ import { ChatOpenRouter } from '../llm/openrouter/index.js';
23
+ import { ChatVertexAI } from '../llm/vertexai/index.js';
24
+ import { Providers } from '../common/index.js';
25
25
  export type AzureClientOptions = Partial<OpenAIChatInput> & Partial<AzureOpenAIInput> & {
26
26
  openAIApiKey?: string;
27
27
  openAIApiVersion?: string;
@@ -1,6 +1,6 @@
1
1
  import type { RunnableConfig } from '@langchain/core/runnables';
2
2
  import type { UsageMetadata } from '@langchain/core/messages';
3
- import type { ClientOptions, ProviderName } from '@/types/llm';
3
+ import type { ClientOptions, ProviderName } from './llm.js';
4
4
  /** Lifecycle state of the visible reasoning snapshot being labeled. */
5
5
  export type ReasoningLabelStatus = 'streaming' | 'complete';
6
6
  /** Result of one reasoning-label revision. */
@@ -3,14 +3,14 @@ import type { RunnableConfig } from '@langchain/core/runnables';
3
3
  import type { BaseMessage } from '@langchain/core/messages';
4
4
  import type { StructuredTool } from '@langchain/core/tools';
5
5
  import type * as z from 'zod';
6
- import type { ToolSessionMap, ToolExecutionConfig, ToolOutputReferencesConfig, EagerEventToolExecutionConfig } from '@/types/tools';
7
- import type { SubagentTaskConfig } from '@/types/subagentTasks';
8
- import type { HumanInTheLoopConfig } from '@/types/hitl';
9
- import type { HookRegistry } from '@/hooks';
10
- import type * as s from '@/types/stream';
11
- import type * as e from '@/common/enum';
12
- import type * as g from '@/types/graph';
13
- import type * as l from '@/types/llm';
6
+ import type { ToolSessionMap, ToolExecutionConfig, ToolOutputReferencesConfig, EagerEventToolExecutionConfig } from './tools.js';
7
+ import type { SubagentTaskConfig } from './subagentTasks.js';
8
+ import type { HumanInTheLoopConfig } from './hitl.js';
9
+ import type { HookRegistry } from '../hooks/index.js';
10
+ import type * as s from './stream.js';
11
+ import type * as e from '../common/enum.js';
12
+ import type * as g from './graph.js';
13
+ import type * as l from './llm.js';
14
14
  export type ZodObjectAny = z.ZodObject;
15
15
  export type BaseGraphConfig = {
16
16
  llmConfig: l.LLMConfig;
@@ -3,11 +3,11 @@ import type { ToolCall, ToolCallChunk } from '@langchain/core/messages/tool';
3
3
  import type { LLMResult, Generation } from '@langchain/core/outputs';
4
4
  import type { Command } from '@langchain/langgraph';
5
5
  import type Anthropic from '@anthropic-ai/sdk';
6
- import type { AnthropicContentBlock } from '@/llm/anthropic/types';
7
- import type { AssistantTextPhase } from '@/types/assistantPhase';
8
- import type { SummarizeCompleteEvent } from '@/types/summarize';
9
- import type { ToolEndEvent } from '@/types/tools';
10
- import { StepTypes, ContentTypes, GraphEvents } from '@/common/enum';
6
+ import type { AnthropicContentBlock } from '../llm/anthropic/types.js';
7
+ import type { AssistantTextPhase } from './assistantPhase.js';
8
+ import type { SummarizeCompleteEvent } from './summarize.js';
9
+ import type { ToolEndEvent } from './tools.js';
10
+ import { StepTypes, ContentTypes, GraphEvents } from '../common/enum.js';
11
11
  /** One accepted model result, detached from execution state before host dispatch.
12
12
  * Provider chunks, failed attempts and UI run-step events are not this contract. */
13
13
  export interface ModelResponseEvent {
@@ -1,6 +1,6 @@
1
1
  import type { UsageMetadata, BaseMessage } from '@langchain/core/messages';
2
- import type { ProviderName, ContextBudgetMode } from '@/types/llm';
3
- import type { SummaryContentBlock } from '@/types/stream';
2
+ import type { ProviderName, ContextBudgetMode } from './llm.js';
3
+ import type { SummaryContentBlock } from './stream.js';
4
4
  export type SummarizationTrigger = {
5
5
  type: 'token_ratio' | 'remaining_tokens' | 'messages_to_refine' | (string & {});
6
6
  value: number;
@@ -2,13 +2,13 @@ import type { RunnableConfig, RunnableToolLike } from '@langchain/core/runnables
2
2
  import type { StructuredToolInterface } from '@langchain/core/tools';
3
3
  import type { ToolCall } from '@langchain/core/messages/tool';
4
4
  import type { MessageContentComplex, RunStepResumeState, ToolErrorData } from './stream';
5
- import type { ToolOutputReferenceRegistry } from '@/tools/toolOutputReferences';
5
+ import type { ToolOutputReferenceRegistry } from '../tools/toolOutputReferences.js';
6
6
  import type { LangfuseConfig, SubagentExecutionContext } from './graph';
7
- import type { PreparedSubagents } from '@/tools/preparedSubagents';
8
- import type { RunBreakerScope } from '@/llm/streamLimits';
9
- import type { HandoffRouting } from '@/graphs/handoff';
7
+ import type { PreparedSubagents } from '../tools/preparedSubagents.js';
8
+ import type { RunBreakerScope } from '../llm/streamLimits.js';
9
+ import type { HandoffRouting } from '../graphs/handoff.js';
10
10
  import type { HumanInTheLoopConfig } from './hitl';
11
- import type { HookRegistry } from '@/hooks';
11
+ import type { HookRegistry } from '../hooks/index.js';
12
12
  /** Replacement type for `import type { ToolCall } from '@langchain/core/messages/tool'` in order to have stringified args typed */
13
13
  export type CustomToolCall = {
14
14
  name: string;
@@ -819,7 +819,7 @@ export interface ExecutionWorld {
819
819
  /** Launches a process inside this world's filesystem namespace. */
820
820
  readonly spawn: LocalSpawn;
821
821
  /** Reads and writes the same namespace observed by `spawn`. */
822
- readonly fs: Readonly<import('@/tools/local/workspaceFS').WorkspaceFS>;
822
+ readonly fs: Readonly<import('../tools/local/workspaceFS.js').WorkspaceFS>;
823
823
  /** Whether the world already enforces a sandbox boundary. */
824
824
  readonly sandboxed: boolean;
825
825
  }
@@ -836,7 +836,7 @@ export interface ExecutionWorld {
836
836
  * relying on validation alone.
837
837
  */
838
838
  export type LocalExecConfig = {
839
- -readonly [Key in keyof ExecutionWorld]?: Key extends 'fs' ? import('@/tools/local/workspaceFS').WorkspaceFS : ExecutionWorld[Key];
839
+ -readonly [Key in keyof ExecutionWorld]?: Key extends 'fs' ? import('../tools/local/workspaceFS.js').WorkspaceFS : ExecutionWorld[Key];
840
840
  };
841
841
  export type LocalExecutionConfig = {
842
842
  /**
@@ -1175,7 +1175,7 @@ export type ProgrammaticCache = {
1175
1175
  hookContext?: ProgrammaticHookContext;
1176
1176
  };
1177
1177
  export type ProgrammaticHookContext = {
1178
- registry: import('@/hooks').HookRegistry | undefined;
1178
+ registry: import('../hooks/index.js').HookRegistry | undefined;
1179
1179
  /** A detached HITL child must never execute an inner tool if its policy hook fails. */
1180
1180
  failClosedOnHookError?: boolean;
1181
1181
  runId: string;
@@ -1,4 +1,4 @@
1
- import type { ProviderName } from '@/types';
1
+ import type { ProviderName } from '../types/index.js';
2
2
  /**
3
3
  * Why the request was rejected. Both kinds are fixed by shrinking the
4
4
  * prompt, which is what makes them recoverable; they are distinguished
@@ -1,7 +1,7 @@
1
1
  import type { RunnableConfig } from '@langchain/core/runnables';
2
- import type { ToolCallsDispatchedEvent } from '@/types/stream';
3
- import type { ToolExecuteBatchRequest } from '@/types/tools';
4
- import type { AgentLogEvent } from '@/types/graph';
2
+ import type { ToolCallsDispatchedEvent } from '../types/stream.js';
3
+ import type { ToolExecuteBatchRequest } from '../types/tools.js';
4
+ import type { AgentLogEvent } from '../types/graph.js';
5
5
  /**
6
6
  * Safely dispatches a custom event and properly awaits it to avoid
7
7
  * race conditions where events are dispatched after run cleanup.
@@ -14,9 +14,9 @@
14
14
  * });
15
15
  * ```
16
16
  */
17
- import type * as t from '@/types';
18
- import { createContentAggregator } from '@/stream';
19
- import { GraphEvents } from '@/common';
17
+ import type * as t from '../types/index.js';
18
+ import { createContentAggregator } from '../stream.js';
19
+ import { GraphEvents } from '../common/index.js';
20
20
  interface HandlerCallbacks {
21
21
  onRunStep?: (event: GraphEvents.ON_RUN_STEP, data: t.StreamEventData) => void;
22
22
  onRunStepCompleted?: (event: GraphEvents.ON_RUN_STEP_COMPLETED, data: t.StreamEventData) => void;
@@ -1,4 +1,4 @@
1
- import type { ProviderName } from '@/types';
1
+ import type { ProviderName } from '../types/index.js';
2
2
  /** Walks the constructor chain for LangChain's `lc_name` serialization ids.
3
3
  * Constructor identity is unusable across lazily loaded module formats — the
4
4
  * CJS and ESM builds carry distinct classes — so guards match on the ids the
@@ -8,7 +8,7 @@ export declare function constructorChainHasLcName(model: unknown, names: Readonl
8
8
  * `ChatOpenAI`/`AzureChatOpenAI`: only those classes declare the
9
9
  * `LibreChatOpenAI`/`LibreChatAzureOpenAI` ids, their subclasses keep them in
10
10
  * the chain, and upstream `@langchain/openai` classes never carry them. */
11
- export declare function isLibreChatOpenAIModel(model: unknown): model is import('@/llm/openai').ChatOpenAI | import('@/llm/openai').AzureChatOpenAI;
11
+ export declare function isLibreChatOpenAIModel(model: unknown): model is import('../llm/openai/index.js').ChatOpenAI | import('../llm/openai/index.js').AzureChatOpenAI;
12
12
  export declare function isOpenAILike(provider?: ProviderName): boolean;
13
13
  export declare function isGoogleLike(provider?: ProviderName): boolean;
14
14
  /** Returns true for native Anthropic or Bedrock running a Claude model. */
@@ -1,3 +1,3 @@
1
- import type * as t from '@/types';
1
+ import type * as t from '../types/index.js';
2
2
  export declare const llmConfigs: Record<string, t.BuiltInLLMConfig | undefined>;
3
3
  export declare function getLLMConfig(provider: string): t.BuiltInLLMConfig;
@@ -1,4 +1,4 @@
1
1
  import type { Runnable } from '@langchain/core/runnables';
2
- import type * as t from '@/types';
2
+ import type * as t from '../types/index.js';
3
3
  export declare const createTitleRunnable: (model: t.ChatModelInstance, _titlePrompt?: string) => Promise<Runnable>;
4
4
  export declare const createCompletionTitleRunnable: (model: t.ChatModelInstance, titlePrompt?: string) => Promise<Runnable>;
@@ -1,4 +1,4 @@
1
- import type * as t from '@/types';
1
+ import type * as t from '../types/index.js';
2
2
  type CodeSessionAgent = Pick<t.AgentInputs, 'codeSessionKey' | 'initialSessions'>;
3
3
  /**
4
4
  * Seeds a top-level graph while preserving the legacy run-wide session map.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@librechat/agents",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "reova": {
5
5
  "enabled": true,
6
6
  "endpoint": "https://telemetry.reo.dev/data"
@@ -128,6 +128,11 @@
128
128
  "types": "./dist/types/llm/openrouter/index.d.ts",
129
129
  "import": "./dist/esm/llm/openrouter/index.mjs",
130
130
  "require": "./dist/cjs/llm/openrouter/index.cjs"
131
+ },
132
+ "./runtime": {
133
+ "types": "./dist/types/runtime/index.d.ts",
134
+ "import": "./dist/esm/runtime/index.mjs",
135
+ "require": "./dist/cjs/runtime/index.cjs"
131
136
  }
132
137
  },
133
138
  "typesVersions": {
@@ -176,6 +181,9 @@
176
181
  ],
177
182
  "llm/openrouter": [
178
183
  "./dist/types/llm/openrouter/index.d.ts"
184
+ ],
185
+ "runtime": [
186
+ "dist/types/runtime/index.d.ts"
179
187
  ]
180
188
  }
181
189
  },
@@ -213,7 +221,7 @@
213
221
  "scripts": {
214
222
  "prepare": "node husky-setup.js",
215
223
  "prepublishOnly": "npm run build",
216
- "build": "tsdown && tsc -p tsconfig.build.json",
224
+ "build": "tsdown && npm run build:types",
217
225
  "build:dev": "tsdown",
218
226
  "typecheck": "node scripts/typecheck.ts",
219
227
  "test:typecheck": "node --test scripts/typecheck.test.ts",
@@ -303,7 +311,9 @@
303
311
  "format": "prettier --write .",
304
312
  "audit": "npm audit --omit=dev",
305
313
  "label:eval": "tsx -r dotenv/config ./src/scripts/activity-labels/run.ts",
306
- "label:rescore": "node ./src/scripts/activity-labels/rescore.cjs"
314
+ "label:rescore": "node ./src/scripts/activity-labels/rescore.cjs",
315
+ "test:runtime-package": "node --test config/runtime-package.test.mjs",
316
+ "build:types": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json"
307
317
  },
308
318
  "overrides": {
309
319
  "@langchain/openai": "$@langchain/openai",
@@ -344,9 +354,13 @@
344
354
  "@langfuse/langchain": "^5.10.1",
345
355
  "@langfuse/otel": "^5.10.1",
346
356
  "@langfuse/tracing": "^5.10.1",
357
+ "@opentelemetry/api": "^1.9.0",
347
358
  "@opentelemetry/context-async-hooks": "^2.9.0",
359
+ "@opentelemetry/exporter-trace-otlp-http": "0.220.0",
360
+ "@opentelemetry/otlp-exporter-base": "0.220.0",
348
361
  "@opentelemetry/sdk-node": "^0.220.0",
349
362
  "@types/diff": "^7.0.2",
363
+ "@types/ws": "^8.18.1",
350
364
  "ai-tokenizer": "^1.0.6",
351
365
  "axios": "^1.20.0",
352
366
  "cheerio": "^1.2.0",
@@ -354,6 +368,8 @@
354
368
  "dotenv": "^16.4.7",
355
369
  "eventsource-parser": "^3.1.1",
356
370
  "https-proxy-agent": "^7.0.6",
371
+ "jsonwebtoken": "^9.0.0",
372
+ "lodash": "^4.17.23",
357
373
  "mathjs": "^15.2.0",
358
374
  "nanoid": "^3.3.18",
359
375
  "okapibm25": "^1.4.1",
@@ -361,6 +377,7 @@
361
377
  "reova": "^0.4.1",
362
378
  "socks-proxy-agent": "^8.0.5",
363
379
  "uuid": "^11.1.1",
380
+ "ws": "^8.21.0",
364
381
  "zod": "4.6.7",
365
382
  "zod-to-json-schema": "3.25.2"
366
383
  },
@@ -379,6 +396,8 @@
379
396
  "@langchain/langgraph-checkpoint-mongodb": "^1.4.1",
380
397
  "@swc/core": "^1.6.13",
381
398
  "@types/jest": "^30.0.0",
399
+ "@types/jsonwebtoken": "^9.0.0",
400
+ "@types/lodash": "^4.17.0",
382
401
  "@types/node": "^24.13.1",
383
402
  "@types/node-fetch": "^2.6.13",
384
403
  "@types/yargs-parser": "^21.0.3",