deepagents 1.8.4 → 1.8.6
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/index.cjs +352 -217
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +176 -39
- package/dist/index.d.ts +176 -39
- package/dist/index.js +343 -205
- package/dist/index.js.map +1 -1
- package/package.json +6 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import * as zod_v30 from "zod/v3";
|
|
2
2
|
import * as langchain from "langchain";
|
|
3
|
-
import { AgentMiddleware, AgentMiddleware as AgentMiddleware$1, AgentTypeConfig, CreateAgentParams, HumanMessage, InferMiddlewareStates, InterruptOnConfig, ProviderStrategy, ReactAgent, ResponseFormat, ResponseFormatUndefined, StructuredTool, SystemMessage, ToolMessage, ToolStrategy } from "langchain";
|
|
3
|
+
import { AgentMiddleware, AgentMiddleware as AgentMiddleware$1, AgentTypeConfig, CreateAgentParams, HumanMessage, InferMiddlewareStates, InterruptOnConfig, ProviderStrategy, ReactAgent, ResponseFormat, ResponseFormatUndefined, Runtime, StructuredTool, SystemMessage, ToolMessage, ToolStrategy } from "langchain";
|
|
4
4
|
import * as _langchain_langgraph0 from "@langchain/langgraph";
|
|
5
5
|
import { AnnotationRoot, Command, ReducedValue, StateSchema } from "@langchain/langgraph";
|
|
6
6
|
import { z } from "zod/v4";
|
|
7
|
+
import * as _langchain_core_tools0 from "@langchain/core/tools";
|
|
8
|
+
import { ClientTool, ServerTool, StructuredTool as StructuredTool$1, ToolRuntime } from "@langchain/core/tools";
|
|
7
9
|
import { BaseCheckpointSaver, BaseStore } from "@langchain/langgraph-checkpoint";
|
|
8
10
|
import * as _messages from "@langchain/core/messages";
|
|
9
11
|
import * as zod from "zod";
|
|
10
12
|
import { z as z$1 } from "zod";
|
|
11
13
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
12
|
-
import * as _langchain_core_tools0 from "@langchain/core/tools";
|
|
13
|
-
import { ClientTool, ServerTool, StructuredTool as StructuredTool$1 } from "@langchain/core/tools";
|
|
14
14
|
import { BaseLanguageModel, LanguageModelLike } from "@langchain/core/language_models/base";
|
|
15
15
|
import { Runnable } from "@langchain/core/runnables";
|
|
16
16
|
import { BaseChatModel } from "@langchain/core/language_models/chat_models";
|
|
17
17
|
import { InteropZodObject } from "@langchain/core/utils/types";
|
|
18
|
+
import { CreateSandboxOptions, Sandbox } from "langsmith/experimental/sandbox";
|
|
18
19
|
|
|
19
20
|
//#region src/backends/protocol.d.ts
|
|
20
21
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -411,6 +412,8 @@ declare class SandboxError extends Error {
|
|
|
411
412
|
* Different contexts build this differently:
|
|
412
413
|
* - Tools: Extract state via getCurrentTaskInput(config)
|
|
413
414
|
* - Middleware: Use request.state directly
|
|
415
|
+
*
|
|
416
|
+
* @deprecated Use {@link BackendRuntime} instead.
|
|
414
417
|
*/
|
|
415
418
|
interface StateAndStore {
|
|
416
419
|
/** Current agent state with files, messages, etc. */
|
|
@@ -420,21 +423,36 @@ interface StateAndStore {
|
|
|
420
423
|
/** Optional assistant ID for per-assistant isolation in store */
|
|
421
424
|
assistantId?: string;
|
|
422
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* Agent {@link Runtime} with `state`
|
|
428
|
+
*/
|
|
429
|
+
interface BackendRuntime<StateT = unknown> extends Runtime {
|
|
430
|
+
/** Current agent state with files, messages, etc. */
|
|
431
|
+
state: StateT;
|
|
432
|
+
}
|
|
423
433
|
/**
|
|
424
434
|
* Factory function type for creating backend instances.
|
|
425
435
|
*
|
|
426
|
-
* Backends receive
|
|
427
|
-
* and
|
|
436
|
+
* Backends receive {@link BackendRuntime} which contains the current state
|
|
437
|
+
* and runtime information, extracted from the execution context.
|
|
428
438
|
*
|
|
429
439
|
* @example
|
|
430
440
|
* ```typescript
|
|
431
441
|
* // Using in middleware
|
|
432
442
|
* const middleware = createFilesystemMiddleware({
|
|
433
|
-
* backend: (
|
|
443
|
+
* backend: (runtime) => new StateBackend(runtime)
|
|
434
444
|
* });
|
|
435
445
|
* ```
|
|
436
446
|
*/
|
|
437
|
-
type BackendFactory = (
|
|
447
|
+
type BackendFactory = (runtime: BackendRuntime) => MaybePromise<BackendProtocol>;
|
|
448
|
+
/**
|
|
449
|
+
* Resolve a backend instance or await a {@link BackendFactory}.
|
|
450
|
+
*
|
|
451
|
+
* Accepts {@link BackendRuntime} or {@link ToolRuntime} — store typing differs
|
|
452
|
+
* between LangGraph checkpoint stores and core `ToolRuntime`; factories receive
|
|
453
|
+
* a value that is structurally compatible at runtime.
|
|
454
|
+
*/
|
|
455
|
+
declare function resolveBackend(backend: BackendProtocol | BackendFactory, runtime: BackendRuntime | ToolRuntime): Promise<BackendProtocol>;
|
|
438
456
|
//#endregion
|
|
439
457
|
//#region src/middleware/fs.d.ts
|
|
440
458
|
/**
|
|
@@ -754,11 +772,18 @@ declare function createSubAgentMiddleware(options: SubAgentMiddlewareOptions): A
|
|
|
754
772
|
//#endregion
|
|
755
773
|
//#region src/middleware/patch_tool_calls.d.ts
|
|
756
774
|
/**
|
|
757
|
-
* Create middleware that
|
|
775
|
+
* Create middleware that enforces strict tool call / tool response parity in
|
|
776
|
+
* the messages history.
|
|
758
777
|
*
|
|
759
|
-
*
|
|
760
|
-
*
|
|
761
|
-
*
|
|
778
|
+
* Two kinds of violations are repaired:
|
|
779
|
+
* 1. **Dangling tool_calls** — an AIMessage contains tool_calls with no
|
|
780
|
+
* matching ToolMessage responses. Synthetic cancellation ToolMessages are
|
|
781
|
+
* injected so every tool_call has a response.
|
|
782
|
+
* 2. **Orphaned ToolMessages** — a ToolMessage exists whose `tool_call_id`
|
|
783
|
+
* does not match any tool_call in a preceding AIMessage. These are removed.
|
|
784
|
+
*
|
|
785
|
+
* This is critical for providers like Google Gemini that reject requests with
|
|
786
|
+
* mismatched function call / function response counts (400 INVALID_ARGUMENT).
|
|
762
787
|
*
|
|
763
788
|
* This middleware patches in two places:
|
|
764
789
|
* 1. `beforeAgent`: Patches state at the start of the agent loop (handles most cases)
|
|
@@ -766,7 +791,7 @@ declare function createSubAgentMiddleware(options: SubAgentMiddlewareOptions): A
|
|
|
766
791
|
* edge cases like HITL rejection during graph resume where state updates from
|
|
767
792
|
* beforeAgent may not be applied in time)
|
|
768
793
|
*
|
|
769
|
-
* @returns AgentMiddleware that
|
|
794
|
+
* @returns AgentMiddleware that enforces tool call / response parity
|
|
770
795
|
*
|
|
771
796
|
* @example
|
|
772
797
|
* ```typescript
|
|
@@ -794,8 +819,8 @@ declare function createPatchToolCallsMiddleware(): AgentMiddleware<undefined, un
|
|
|
794
819
|
* for the middleware to apply via Command.
|
|
795
820
|
*/
|
|
796
821
|
declare class StateBackend implements BackendProtocol {
|
|
797
|
-
private
|
|
798
|
-
constructor(
|
|
822
|
+
private runtime;
|
|
823
|
+
constructor(runtime: BackendRuntime);
|
|
799
824
|
/**
|
|
800
825
|
* Get files from current state.
|
|
801
826
|
*/
|
|
@@ -1168,17 +1193,17 @@ interface StoreBackendOptions {
|
|
|
1168
1193
|
* Determines where files are stored in the LangGraph store, enabling
|
|
1169
1194
|
* user-scoped, org-scoped, or any custom isolation pattern.
|
|
1170
1195
|
*
|
|
1171
|
-
* If not provided, falls back to legacy behavior using assistantId from
|
|
1196
|
+
* If not provided, falls back to legacy behavior using assistantId from {@link BackendRuntime}.
|
|
1172
1197
|
*
|
|
1173
1198
|
* @example
|
|
1174
1199
|
* ```typescript
|
|
1175
1200
|
* // User-scoped storage
|
|
1176
|
-
* new StoreBackend(
|
|
1201
|
+
* new StoreBackend(runtime, {
|
|
1177
1202
|
* namespace: ["memories", orgId, userId, "filesystem"],
|
|
1178
1203
|
* });
|
|
1179
1204
|
*
|
|
1180
1205
|
* // Org-scoped storage
|
|
1181
|
-
* new StoreBackend(
|
|
1206
|
+
* new StoreBackend(runtime, {
|
|
1182
1207
|
* namespace: ["memories", orgId, "filesystem"],
|
|
1183
1208
|
* });
|
|
1184
1209
|
* ```
|
|
@@ -1787,6 +1812,98 @@ declare abstract class BaseSandbox implements SandboxBackendProtocol {
|
|
|
1787
1812
|
edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
|
|
1788
1813
|
}
|
|
1789
1814
|
//#endregion
|
|
1815
|
+
//#region src/backends/langsmith.d.ts
|
|
1816
|
+
/** Options for constructing a LangSmithSandbox from an existing Sandbox instance. */
|
|
1817
|
+
interface LangSmithSandboxOptions {
|
|
1818
|
+
/** An already-created LangSmith Sandbox instance to wrap. */
|
|
1819
|
+
sandbox: Sandbox;
|
|
1820
|
+
/**
|
|
1821
|
+
* Default command timeout in seconds.
|
|
1822
|
+
* @default 1800 (30 minutes)
|
|
1823
|
+
*/
|
|
1824
|
+
defaultTimeout?: number;
|
|
1825
|
+
}
|
|
1826
|
+
/** Options for the `LangSmithSandbox.create()` static factory. */
|
|
1827
|
+
interface LangSmithSandboxCreateOptions extends Omit<CreateSandboxOptions, "name" | "timeout" | "waitForReady"> {
|
|
1828
|
+
/**
|
|
1829
|
+
* Name of the LangSmith sandbox template to use.
|
|
1830
|
+
* @default "deepagents"
|
|
1831
|
+
*/
|
|
1832
|
+
templateName?: string;
|
|
1833
|
+
/**
|
|
1834
|
+
* LangSmith API key. Defaults to the `LANGSMITH_API_KEY` environment variable.
|
|
1835
|
+
*/
|
|
1836
|
+
apiKey?: string;
|
|
1837
|
+
/**
|
|
1838
|
+
* Default command timeout in seconds.
|
|
1839
|
+
* @default 1800 (30 minutes)
|
|
1840
|
+
*/
|
|
1841
|
+
defaultTimeout?: number;
|
|
1842
|
+
}
|
|
1843
|
+
/**
|
|
1844
|
+
* LangSmith Sandbox backend for deepagents.
|
|
1845
|
+
*
|
|
1846
|
+
* Extends `BaseSandbox` to provide command execution and file operations
|
|
1847
|
+
* via the LangSmith Sandbox API.
|
|
1848
|
+
*
|
|
1849
|
+
* Use the static `LangSmithSandbox.create()` factory for the simplest setup,
|
|
1850
|
+
* or construct directly with an existing `Sandbox` instance.
|
|
1851
|
+
*/
|
|
1852
|
+
declare class LangSmithSandbox extends BaseSandbox {
|
|
1853
|
+
#private;
|
|
1854
|
+
constructor(options: LangSmithSandboxOptions);
|
|
1855
|
+
/** Whether the sandbox is currently active. */
|
|
1856
|
+
get isRunning(): boolean;
|
|
1857
|
+
/** Return the LangSmith sandbox name as the unique identifier. */
|
|
1858
|
+
get id(): string;
|
|
1859
|
+
/**
|
|
1860
|
+
* Execute a shell command in the LangSmith sandbox.
|
|
1861
|
+
*
|
|
1862
|
+
* @param command - Shell command string to execute
|
|
1863
|
+
* @param options.timeout - Override timeout in seconds; 0 disables timeout
|
|
1864
|
+
*/
|
|
1865
|
+
execute(command: string, options?: {
|
|
1866
|
+
timeout?: number;
|
|
1867
|
+
}): Promise<ExecuteResponse>;
|
|
1868
|
+
/**
|
|
1869
|
+
* Download files from the sandbox using LangSmith's native file read API.
|
|
1870
|
+
* @param paths - List of file paths to download
|
|
1871
|
+
* @returns List of FileDownloadResponse objects, one per input path
|
|
1872
|
+
*/
|
|
1873
|
+
downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
|
|
1874
|
+
/**
|
|
1875
|
+
* Upload files to the sandbox using LangSmith's native file write API.
|
|
1876
|
+
* @param files - List of [path, content] tuples to upload
|
|
1877
|
+
* @returns List of FileUploadResponse objects, one per input file
|
|
1878
|
+
*/
|
|
1879
|
+
uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
|
|
1880
|
+
/**
|
|
1881
|
+
* Delete this sandbox and mark it as no longer running.
|
|
1882
|
+
*
|
|
1883
|
+
* After calling this, `isRunning` will be `false` and the sandbox
|
|
1884
|
+
* cannot be used again.
|
|
1885
|
+
*/
|
|
1886
|
+
close(): Promise<void>;
|
|
1887
|
+
/**
|
|
1888
|
+
* Create and return a new LangSmithSandbox in one step.
|
|
1889
|
+
*
|
|
1890
|
+
* This is the recommended way to create a sandbox — no need to import
|
|
1891
|
+
* anything from `langsmith/experimental/sandbox` directly.
|
|
1892
|
+
*
|
|
1893
|
+
* @example
|
|
1894
|
+
* ```typescript
|
|
1895
|
+
* const sandbox = await LangSmithSandbox.create({ templateName: "deepagents" });
|
|
1896
|
+
* try {
|
|
1897
|
+
* const agent = createDeepAgent({ model, backend: sandbox });
|
|
1898
|
+
* await agent.invoke({ messages: [...] });
|
|
1899
|
+
* } finally {
|
|
1900
|
+
* await sandbox.close();
|
|
1901
|
+
* }
|
|
1902
|
+
* ```
|
|
1903
|
+
*/
|
|
1904
|
+
static create(options?: LangSmithSandboxCreateOptions): Promise<LangSmithSandbox>;
|
|
1905
|
+
}
|
|
1906
|
+
//#endregion
|
|
1790
1907
|
//#region src/types.d.ts
|
|
1791
1908
|
type AnyAnnotationRoot = AnnotationRoot<any>;
|
|
1792
1909
|
interface TypedToolStrategy<T = unknown> extends Array<ToolStrategy<any>> {
|
|
@@ -2237,27 +2354,47 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
2237
2354
|
summaryMessage: zod.ZodCustom<_messages.HumanMessage<_messages.MessageStructure<_messages.MessageToolSet>>, _messages.HumanMessage<_messages.MessageStructure<_messages.MessageToolSet>>>;
|
|
2238
2355
|
filePath: zod.ZodNullable<zod.ZodString>;
|
|
2239
2356
|
}, zod_v4_core0.$strip>>;
|
|
2240
|
-
}, zod_v4_core0.$strip>, undefined, unknown, readonly (ClientTool | ServerTool)[]>, AgentMiddleware<undefined,
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2357
|
+
}, zod_v4_core0.$strip>, undefined, unknown, readonly (ClientTool | ServerTool)[]>, AgentMiddleware<undefined, undefined, unknown, readonly (ClientTool | ServerTool)[]>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents>>;
|
|
2358
|
+
//#endregion
|
|
2359
|
+
//#region src/errors.d.ts
|
|
2360
|
+
/**
|
|
2361
|
+
* Error codes for {@link ConfigurationError}.
|
|
2362
|
+
*
|
|
2363
|
+
* Each code represents a distinct misconfiguration that can be detected at
|
|
2364
|
+
* agent-construction time. Add new codes here as new validations are added.
|
|
2365
|
+
*/
|
|
2366
|
+
type ConfigurationErrorCode = "TOOL_NAME_COLLISION";
|
|
2367
|
+
declare const CONFIGURATION_ERROR_SYMBOL: unique symbol;
|
|
2368
|
+
/**
|
|
2369
|
+
* Thrown when `createDeepAgent` receives invalid configuration.
|
|
2370
|
+
*
|
|
2371
|
+
* Follows the same pattern as {@link SandboxError}: a human-readable
|
|
2372
|
+
* `message`, a structured `code` for programmatic handling, and a
|
|
2373
|
+
* static `isInstance` guard that works across realms.
|
|
2374
|
+
*
|
|
2375
|
+
* @example
|
|
2376
|
+
* ```typescript
|
|
2377
|
+
* try {
|
|
2378
|
+
* createDeepAgent({ tools: [myTool] });
|
|
2379
|
+
* } catch (error) {
|
|
2380
|
+
* if (ConfigurationError.isInstance(error)) {
|
|
2381
|
+
* switch (error.code) {
|
|
2382
|
+
* case "TOOL_NAME_COLLISION":
|
|
2383
|
+
* console.error("Rename your tool:", error.message);
|
|
2384
|
+
* break;
|
|
2385
|
+
* }
|
|
2386
|
+
* }
|
|
2387
|
+
* }
|
|
2388
|
+
* ```
|
|
2389
|
+
*/
|
|
2390
|
+
declare class ConfigurationError extends Error {
|
|
2391
|
+
readonly code: ConfigurationErrorCode;
|
|
2392
|
+
readonly cause?: Error | undefined;
|
|
2393
|
+
[CONFIGURATION_ERROR_SYMBOL]: true;
|
|
2394
|
+
readonly name: string;
|
|
2395
|
+
constructor(message: string, code: ConfigurationErrorCode, cause?: Error | undefined);
|
|
2396
|
+
static isInstance(error: unknown): error is ConfigurationError;
|
|
2397
|
+
}
|
|
2261
2398
|
//#endregion
|
|
2262
2399
|
//#region src/config.d.ts
|
|
2263
2400
|
/**
|
|
@@ -2464,5 +2601,5 @@ declare function parseSkillMetadata(skillMdPath: string, source: "user" | "proje
|
|
|
2464
2601
|
*/
|
|
2465
2602
|
declare function listSkills(options: ListSkillsOptions): SkillMetadata[];
|
|
2466
2603
|
//#endregion
|
|
2467
|
-
export { type AgentMemoryMiddlewareOptions, type BackendFactory, type BackendProtocol, BaseSandbox, type CompiledSubAgent, CompositeBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, FilesystemBackend, type FilesystemMiddlewareOptions, type FlattenSubAgentMiddleware, GENERAL_PURPOSE_SUBAGENT, type GrepMatch, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type ResolveDeepAgentTypeConfig, type SandboxBackendProtocol, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type Settings, type SettingsOptions, type SkillMetadata$1 as SkillMetadata, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SupportedResponseFormat, TASK_SYSTEM_PROMPT, type WriteResult, computeSummarizationDefaults, createAgentMemoryMiddleware, createDeepAgent, createFilesystemMiddleware, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, isSandboxBackend, listSkills, parseSkillMetadata };
|
|
2604
|
+
export { type AgentMemoryMiddlewareOptions, type BackendFactory, type BackendProtocol, type BackendRuntime, BaseSandbox, type CompiledSubAgent, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, FilesystemBackend, type FilesystemMiddlewareOptions, type FlattenSubAgentMiddleware, GENERAL_PURPOSE_SUBAGENT, type GrepMatch, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, LangSmithSandbox, type LangSmithSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type ResolveDeepAgentTypeConfig, type SandboxBackendProtocol, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type Settings, type SettingsOptions, type SkillMetadata$1 as SkillMetadata, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SupportedResponseFormat, TASK_SYSTEM_PROMPT, type WriteResult, computeSummarizationDefaults, createAgentMemoryMiddleware, createDeepAgent, createFilesystemMiddleware, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, isSandboxBackend, listSkills, parseSkillMetadata, resolveBackend };
|
|
2468
2605
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as langchain from "langchain";
|
|
2
|
-
import { AgentMiddleware, AgentMiddleware as AgentMiddleware$1, AgentTypeConfig, CreateAgentParams, HumanMessage, InferMiddlewareStates, InterruptOnConfig, ProviderStrategy, ReactAgent, ResponseFormat, ResponseFormatUndefined, StructuredTool, SystemMessage, ToolMessage, ToolStrategy } from "langchain";
|
|
2
|
+
import { AgentMiddleware, AgentMiddleware as AgentMiddleware$1, AgentTypeConfig, CreateAgentParams, HumanMessage, InferMiddlewareStates, InterruptOnConfig, ProviderStrategy, ReactAgent, ResponseFormat, ResponseFormatUndefined, Runtime, StructuredTool, SystemMessage, ToolMessage, ToolStrategy } from "langchain";
|
|
3
3
|
import { Runnable } from "@langchain/core/runnables";
|
|
4
4
|
import * as _langchain_langgraph0 from "@langchain/langgraph";
|
|
5
5
|
import { AnnotationRoot, Command, ReducedValue, StateSchema } from "@langchain/langgraph";
|
|
@@ -7,11 +7,12 @@ import { z } from "zod/v4";
|
|
|
7
7
|
import * as _messages from "@langchain/core/messages";
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { z as z$1 } from "zod";
|
|
10
|
+
import { CreateSandboxOptions, Sandbox } from "langsmith/experimental/sandbox";
|
|
10
11
|
import * as zod_v30 from "zod/v3";
|
|
12
|
+
import * as _langchain_core_tools0 from "@langchain/core/tools";
|
|
13
|
+
import { ClientTool, ServerTool, StructuredTool as StructuredTool$1, ToolRuntime } from "@langchain/core/tools";
|
|
11
14
|
import { BaseCheckpointSaver, BaseStore } from "@langchain/langgraph-checkpoint";
|
|
12
15
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
13
|
-
import * as _langchain_core_tools0 from "@langchain/core/tools";
|
|
14
|
-
import { ClientTool, ServerTool, StructuredTool as StructuredTool$1 } from "@langchain/core/tools";
|
|
15
16
|
import { BaseLanguageModel, LanguageModelLike } from "@langchain/core/language_models/base";
|
|
16
17
|
import { BaseChatModel } from "@langchain/core/language_models/chat_models";
|
|
17
18
|
import { InteropZodObject } from "@langchain/core/utils/types";
|
|
@@ -411,6 +412,8 @@ declare class SandboxError extends Error {
|
|
|
411
412
|
* Different contexts build this differently:
|
|
412
413
|
* - Tools: Extract state via getCurrentTaskInput(config)
|
|
413
414
|
* - Middleware: Use request.state directly
|
|
415
|
+
*
|
|
416
|
+
* @deprecated Use {@link BackendRuntime} instead.
|
|
414
417
|
*/
|
|
415
418
|
interface StateAndStore {
|
|
416
419
|
/** Current agent state with files, messages, etc. */
|
|
@@ -420,21 +423,36 @@ interface StateAndStore {
|
|
|
420
423
|
/** Optional assistant ID for per-assistant isolation in store */
|
|
421
424
|
assistantId?: string;
|
|
422
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* Agent {@link Runtime} with `state`
|
|
428
|
+
*/
|
|
429
|
+
interface BackendRuntime<StateT = unknown> extends Runtime {
|
|
430
|
+
/** Current agent state with files, messages, etc. */
|
|
431
|
+
state: StateT;
|
|
432
|
+
}
|
|
423
433
|
/**
|
|
424
434
|
* Factory function type for creating backend instances.
|
|
425
435
|
*
|
|
426
|
-
* Backends receive
|
|
427
|
-
* and
|
|
436
|
+
* Backends receive {@link BackendRuntime} which contains the current state
|
|
437
|
+
* and runtime information, extracted from the execution context.
|
|
428
438
|
*
|
|
429
439
|
* @example
|
|
430
440
|
* ```typescript
|
|
431
441
|
* // Using in middleware
|
|
432
442
|
* const middleware = createFilesystemMiddleware({
|
|
433
|
-
* backend: (
|
|
443
|
+
* backend: (runtime) => new StateBackend(runtime)
|
|
434
444
|
* });
|
|
435
445
|
* ```
|
|
436
446
|
*/
|
|
437
|
-
type BackendFactory = (
|
|
447
|
+
type BackendFactory = (runtime: BackendRuntime) => MaybePromise<BackendProtocol>;
|
|
448
|
+
/**
|
|
449
|
+
* Resolve a backend instance or await a {@link BackendFactory}.
|
|
450
|
+
*
|
|
451
|
+
* Accepts {@link BackendRuntime} or {@link ToolRuntime} — store typing differs
|
|
452
|
+
* between LangGraph checkpoint stores and core `ToolRuntime`; factories receive
|
|
453
|
+
* a value that is structurally compatible at runtime.
|
|
454
|
+
*/
|
|
455
|
+
declare function resolveBackend(backend: BackendProtocol | BackendFactory, runtime: BackendRuntime | ToolRuntime): Promise<BackendProtocol>;
|
|
438
456
|
//#endregion
|
|
439
457
|
//#region src/middleware/fs.d.ts
|
|
440
458
|
/**
|
|
@@ -754,11 +772,18 @@ declare function createSubAgentMiddleware(options: SubAgentMiddlewareOptions): A
|
|
|
754
772
|
//#endregion
|
|
755
773
|
//#region src/middleware/patch_tool_calls.d.ts
|
|
756
774
|
/**
|
|
757
|
-
* Create middleware that
|
|
775
|
+
* Create middleware that enforces strict tool call / tool response parity in
|
|
776
|
+
* the messages history.
|
|
758
777
|
*
|
|
759
|
-
*
|
|
760
|
-
*
|
|
761
|
-
*
|
|
778
|
+
* Two kinds of violations are repaired:
|
|
779
|
+
* 1. **Dangling tool_calls** — an AIMessage contains tool_calls with no
|
|
780
|
+
* matching ToolMessage responses. Synthetic cancellation ToolMessages are
|
|
781
|
+
* injected so every tool_call has a response.
|
|
782
|
+
* 2. **Orphaned ToolMessages** — a ToolMessage exists whose `tool_call_id`
|
|
783
|
+
* does not match any tool_call in a preceding AIMessage. These are removed.
|
|
784
|
+
*
|
|
785
|
+
* This is critical for providers like Google Gemini that reject requests with
|
|
786
|
+
* mismatched function call / function response counts (400 INVALID_ARGUMENT).
|
|
762
787
|
*
|
|
763
788
|
* This middleware patches in two places:
|
|
764
789
|
* 1. `beforeAgent`: Patches state at the start of the agent loop (handles most cases)
|
|
@@ -766,7 +791,7 @@ declare function createSubAgentMiddleware(options: SubAgentMiddlewareOptions): A
|
|
|
766
791
|
* edge cases like HITL rejection during graph resume where state updates from
|
|
767
792
|
* beforeAgent may not be applied in time)
|
|
768
793
|
*
|
|
769
|
-
* @returns AgentMiddleware that
|
|
794
|
+
* @returns AgentMiddleware that enforces tool call / response parity
|
|
770
795
|
*
|
|
771
796
|
* @example
|
|
772
797
|
* ```typescript
|
|
@@ -794,8 +819,8 @@ declare function createPatchToolCallsMiddleware(): AgentMiddleware<undefined, un
|
|
|
794
819
|
* for the middleware to apply via Command.
|
|
795
820
|
*/
|
|
796
821
|
declare class StateBackend implements BackendProtocol {
|
|
797
|
-
private
|
|
798
|
-
constructor(
|
|
822
|
+
private runtime;
|
|
823
|
+
constructor(runtime: BackendRuntime);
|
|
799
824
|
/**
|
|
800
825
|
* Get files from current state.
|
|
801
826
|
*/
|
|
@@ -1168,17 +1193,17 @@ interface StoreBackendOptions {
|
|
|
1168
1193
|
* Determines where files are stored in the LangGraph store, enabling
|
|
1169
1194
|
* user-scoped, org-scoped, or any custom isolation pattern.
|
|
1170
1195
|
*
|
|
1171
|
-
* If not provided, falls back to legacy behavior using assistantId from
|
|
1196
|
+
* If not provided, falls back to legacy behavior using assistantId from {@link BackendRuntime}.
|
|
1172
1197
|
*
|
|
1173
1198
|
* @example
|
|
1174
1199
|
* ```typescript
|
|
1175
1200
|
* // User-scoped storage
|
|
1176
|
-
* new StoreBackend(
|
|
1201
|
+
* new StoreBackend(runtime, {
|
|
1177
1202
|
* namespace: ["memories", orgId, userId, "filesystem"],
|
|
1178
1203
|
* });
|
|
1179
1204
|
*
|
|
1180
1205
|
* // Org-scoped storage
|
|
1181
|
-
* new StoreBackend(
|
|
1206
|
+
* new StoreBackend(runtime, {
|
|
1182
1207
|
* namespace: ["memories", orgId, "filesystem"],
|
|
1183
1208
|
* });
|
|
1184
1209
|
* ```
|
|
@@ -1787,6 +1812,98 @@ declare abstract class BaseSandbox implements SandboxBackendProtocol {
|
|
|
1787
1812
|
edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
|
|
1788
1813
|
}
|
|
1789
1814
|
//#endregion
|
|
1815
|
+
//#region src/backends/langsmith.d.ts
|
|
1816
|
+
/** Options for constructing a LangSmithSandbox from an existing Sandbox instance. */
|
|
1817
|
+
interface LangSmithSandboxOptions {
|
|
1818
|
+
/** An already-created LangSmith Sandbox instance to wrap. */
|
|
1819
|
+
sandbox: Sandbox;
|
|
1820
|
+
/**
|
|
1821
|
+
* Default command timeout in seconds.
|
|
1822
|
+
* @default 1800 (30 minutes)
|
|
1823
|
+
*/
|
|
1824
|
+
defaultTimeout?: number;
|
|
1825
|
+
}
|
|
1826
|
+
/** Options for the `LangSmithSandbox.create()` static factory. */
|
|
1827
|
+
interface LangSmithSandboxCreateOptions extends Omit<CreateSandboxOptions, "name" | "timeout" | "waitForReady"> {
|
|
1828
|
+
/**
|
|
1829
|
+
* Name of the LangSmith sandbox template to use.
|
|
1830
|
+
* @default "deepagents"
|
|
1831
|
+
*/
|
|
1832
|
+
templateName?: string;
|
|
1833
|
+
/**
|
|
1834
|
+
* LangSmith API key. Defaults to the `LANGSMITH_API_KEY` environment variable.
|
|
1835
|
+
*/
|
|
1836
|
+
apiKey?: string;
|
|
1837
|
+
/**
|
|
1838
|
+
* Default command timeout in seconds.
|
|
1839
|
+
* @default 1800 (30 minutes)
|
|
1840
|
+
*/
|
|
1841
|
+
defaultTimeout?: number;
|
|
1842
|
+
}
|
|
1843
|
+
/**
|
|
1844
|
+
* LangSmith Sandbox backend for deepagents.
|
|
1845
|
+
*
|
|
1846
|
+
* Extends `BaseSandbox` to provide command execution and file operations
|
|
1847
|
+
* via the LangSmith Sandbox API.
|
|
1848
|
+
*
|
|
1849
|
+
* Use the static `LangSmithSandbox.create()` factory for the simplest setup,
|
|
1850
|
+
* or construct directly with an existing `Sandbox` instance.
|
|
1851
|
+
*/
|
|
1852
|
+
declare class LangSmithSandbox extends BaseSandbox {
|
|
1853
|
+
#private;
|
|
1854
|
+
constructor(options: LangSmithSandboxOptions);
|
|
1855
|
+
/** Whether the sandbox is currently active. */
|
|
1856
|
+
get isRunning(): boolean;
|
|
1857
|
+
/** Return the LangSmith sandbox name as the unique identifier. */
|
|
1858
|
+
get id(): string;
|
|
1859
|
+
/**
|
|
1860
|
+
* Execute a shell command in the LangSmith sandbox.
|
|
1861
|
+
*
|
|
1862
|
+
* @param command - Shell command string to execute
|
|
1863
|
+
* @param options.timeout - Override timeout in seconds; 0 disables timeout
|
|
1864
|
+
*/
|
|
1865
|
+
execute(command: string, options?: {
|
|
1866
|
+
timeout?: number;
|
|
1867
|
+
}): Promise<ExecuteResponse>;
|
|
1868
|
+
/**
|
|
1869
|
+
* Download files from the sandbox using LangSmith's native file read API.
|
|
1870
|
+
* @param paths - List of file paths to download
|
|
1871
|
+
* @returns List of FileDownloadResponse objects, one per input path
|
|
1872
|
+
*/
|
|
1873
|
+
downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
|
|
1874
|
+
/**
|
|
1875
|
+
* Upload files to the sandbox using LangSmith's native file write API.
|
|
1876
|
+
* @param files - List of [path, content] tuples to upload
|
|
1877
|
+
* @returns List of FileUploadResponse objects, one per input file
|
|
1878
|
+
*/
|
|
1879
|
+
uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
|
|
1880
|
+
/**
|
|
1881
|
+
* Delete this sandbox and mark it as no longer running.
|
|
1882
|
+
*
|
|
1883
|
+
* After calling this, `isRunning` will be `false` and the sandbox
|
|
1884
|
+
* cannot be used again.
|
|
1885
|
+
*/
|
|
1886
|
+
close(): Promise<void>;
|
|
1887
|
+
/**
|
|
1888
|
+
* Create and return a new LangSmithSandbox in one step.
|
|
1889
|
+
*
|
|
1890
|
+
* This is the recommended way to create a sandbox — no need to import
|
|
1891
|
+
* anything from `langsmith/experimental/sandbox` directly.
|
|
1892
|
+
*
|
|
1893
|
+
* @example
|
|
1894
|
+
* ```typescript
|
|
1895
|
+
* const sandbox = await LangSmithSandbox.create({ templateName: "deepagents" });
|
|
1896
|
+
* try {
|
|
1897
|
+
* const agent = createDeepAgent({ model, backend: sandbox });
|
|
1898
|
+
* await agent.invoke({ messages: [...] });
|
|
1899
|
+
* } finally {
|
|
1900
|
+
* await sandbox.close();
|
|
1901
|
+
* }
|
|
1902
|
+
* ```
|
|
1903
|
+
*/
|
|
1904
|
+
static create(options?: LangSmithSandboxCreateOptions): Promise<LangSmithSandbox>;
|
|
1905
|
+
}
|
|
1906
|
+
//#endregion
|
|
1790
1907
|
//#region src/types.d.ts
|
|
1791
1908
|
type AnyAnnotationRoot = AnnotationRoot<any>;
|
|
1792
1909
|
interface TypedToolStrategy<T = unknown> extends Array<ToolStrategy<any>> {
|
|
@@ -2237,27 +2354,47 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
2237
2354
|
summaryMessage: zod.ZodCustom<_messages.HumanMessage<_messages.MessageStructure<_messages.MessageToolSet>>, _messages.HumanMessage<_messages.MessageStructure<_messages.MessageToolSet>>>;
|
|
2238
2355
|
filePath: zod.ZodNullable<zod.ZodString>;
|
|
2239
2356
|
}, zod_v4_core0.$strip>>;
|
|
2240
|
-
}, zod_v4_core0.$strip>, undefined, unknown, readonly (ClientTool | ServerTool)[]>, AgentMiddleware<undefined,
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2357
|
+
}, zod_v4_core0.$strip>, undefined, unknown, readonly (ClientTool | ServerTool)[]>, AgentMiddleware<undefined, undefined, unknown, readonly (ClientTool | ServerTool)[]>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents>>;
|
|
2358
|
+
//#endregion
|
|
2359
|
+
//#region src/errors.d.ts
|
|
2360
|
+
/**
|
|
2361
|
+
* Error codes for {@link ConfigurationError}.
|
|
2362
|
+
*
|
|
2363
|
+
* Each code represents a distinct misconfiguration that can be detected at
|
|
2364
|
+
* agent-construction time. Add new codes here as new validations are added.
|
|
2365
|
+
*/
|
|
2366
|
+
type ConfigurationErrorCode = "TOOL_NAME_COLLISION";
|
|
2367
|
+
declare const CONFIGURATION_ERROR_SYMBOL: unique symbol;
|
|
2368
|
+
/**
|
|
2369
|
+
* Thrown when `createDeepAgent` receives invalid configuration.
|
|
2370
|
+
*
|
|
2371
|
+
* Follows the same pattern as {@link SandboxError}: a human-readable
|
|
2372
|
+
* `message`, a structured `code` for programmatic handling, and a
|
|
2373
|
+
* static `isInstance` guard that works across realms.
|
|
2374
|
+
*
|
|
2375
|
+
* @example
|
|
2376
|
+
* ```typescript
|
|
2377
|
+
* try {
|
|
2378
|
+
* createDeepAgent({ tools: [myTool] });
|
|
2379
|
+
* } catch (error) {
|
|
2380
|
+
* if (ConfigurationError.isInstance(error)) {
|
|
2381
|
+
* switch (error.code) {
|
|
2382
|
+
* case "TOOL_NAME_COLLISION":
|
|
2383
|
+
* console.error("Rename your tool:", error.message);
|
|
2384
|
+
* break;
|
|
2385
|
+
* }
|
|
2386
|
+
* }
|
|
2387
|
+
* }
|
|
2388
|
+
* ```
|
|
2389
|
+
*/
|
|
2390
|
+
declare class ConfigurationError extends Error {
|
|
2391
|
+
readonly code: ConfigurationErrorCode;
|
|
2392
|
+
readonly cause?: Error | undefined;
|
|
2393
|
+
[CONFIGURATION_ERROR_SYMBOL]: true;
|
|
2394
|
+
readonly name: string;
|
|
2395
|
+
constructor(message: string, code: ConfigurationErrorCode, cause?: Error | undefined);
|
|
2396
|
+
static isInstance(error: unknown): error is ConfigurationError;
|
|
2397
|
+
}
|
|
2261
2398
|
//#endregion
|
|
2262
2399
|
//#region src/config.d.ts
|
|
2263
2400
|
/**
|
|
@@ -2464,5 +2601,5 @@ declare function parseSkillMetadata(skillMdPath: string, source: "user" | "proje
|
|
|
2464
2601
|
*/
|
|
2465
2602
|
declare function listSkills(options: ListSkillsOptions): SkillMetadata[];
|
|
2466
2603
|
//#endregion
|
|
2467
|
-
export { type AgentMemoryMiddlewareOptions, type BackendFactory, type BackendProtocol, BaseSandbox, type CompiledSubAgent, CompositeBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, FilesystemBackend, type FilesystemMiddlewareOptions, type FlattenSubAgentMiddleware, GENERAL_PURPOSE_SUBAGENT, type GrepMatch, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type ResolveDeepAgentTypeConfig, type SandboxBackendProtocol, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type Settings, type SettingsOptions, type SkillMetadata$1 as SkillMetadata, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SupportedResponseFormat, TASK_SYSTEM_PROMPT, type WriteResult, computeSummarizationDefaults, createAgentMemoryMiddleware, createDeepAgent, createFilesystemMiddleware, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, isSandboxBackend, listSkills, parseSkillMetadata };
|
|
2604
|
+
export { type AgentMemoryMiddlewareOptions, type BackendFactory, type BackendProtocol, type BackendRuntime, BaseSandbox, type CompiledSubAgent, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, FilesystemBackend, type FilesystemMiddlewareOptions, type FlattenSubAgentMiddleware, GENERAL_PURPOSE_SUBAGENT, type GrepMatch, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, LangSmithSandbox, type LangSmithSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type ResolveDeepAgentTypeConfig, type SandboxBackendProtocol, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type Settings, type SettingsOptions, type SkillMetadata$1 as SkillMetadata, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SupportedResponseFormat, TASK_SYSTEM_PROMPT, type WriteResult, computeSummarizationDefaults, createAgentMemoryMiddleware, createDeepAgent, createFilesystemMiddleware, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, isSandboxBackend, listSkills, parseSkillMetadata, resolveBackend };
|
|
2468
2605
|
//# sourceMappingURL=index.d.ts.map
|