deepagents 1.10.8 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -107,6 +107,23 @@ const agent = createDeepAgent({
107
107
  });
108
108
  ```
109
109
 
110
+ A string is placed before the built-in Deep Agent prompt. For full control over
111
+ prompt assembly, provide a structured configuration:
112
+
113
+ ```typescript
114
+ const agent = createDeepAgent({
115
+ systemPrompt: {
116
+ prefix: "You are the support assistant for Acme.",
117
+ base: null, // Remove the built-in Deep Agent prompt.
118
+ suffix: "Follow Acme's escalation policy.",
119
+ },
120
+ });
121
+ ```
122
+
123
+ Structured prompts are assembled as `prefix` → `base` → `suffix`, followed by
124
+ any model-specific harness profile suffix. Omit `base` to retain the active
125
+ base prompt, or set it to `null` to remove the base entirely.
126
+
110
127
  See the [JavaScript Deep Agents docs](https://docs.langchain.com/oss/javascript/deepagents/overview) for full configuration options.
111
128
 
112
129
  ## LangGraph Native
@@ -93,6 +93,13 @@ interface BackendProtocolV1 {
93
93
  * @returns EditResult with error, path, filesUpdate, and occurrences
94
94
  */
95
95
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): MaybePromise<EditResult>;
96
+ /**
97
+ * Delete a single file.
98
+ *
99
+ * @param filePath - Absolute path to the file to delete
100
+ * @returns DeleteResult with path on success or error on failure
101
+ */
102
+ delete?(filePath: string): MaybePromise<DeleteResult>;
96
103
  /**
97
104
  * Upload multiple files.
98
105
  * Optional - backends that don't support file upload can omit this.
@@ -192,6 +199,14 @@ interface BackendProtocolV2 extends Omit<BackendProtocolV1, "read" | "readRaw" |
192
199
  * @returns GlobResult with list of FileInfo objects matching the pattern on success or error on failure
193
200
  */
194
201
  glob(pattern: string, path?: string): MaybePromise<GlobResult>;
202
+ /**
203
+ * Delete a single file.
204
+ * Optional - backends that don't support file deletion can omit this.
205
+ *
206
+ * @param filePath - Absolute path to the file to delete
207
+ * @returns DeleteResult with path on success or error on failure
208
+ */
209
+ delete?(filePath: string): MaybePromise<DeleteResult>;
195
210
  }
196
211
  /**
197
212
  * Protocol for sandboxed backends with isolated runtime.
@@ -385,6 +400,15 @@ interface EditResult {
385
400
  /** Metadata for the edit operation, attached to the ToolMessage */
386
401
  metadata?: Record<string, unknown>;
387
402
  }
403
+ /**
404
+ * Result from backend delete operations.
405
+ */
406
+ interface DeleteResult {
407
+ /** Error message on failure, undefined on success */
408
+ error?: string;
409
+ /** File path of deleted file, undefined on failure */
410
+ path?: string;
411
+ }
388
412
  /**
389
413
  * Result of code execution.
390
414
  * Simplified schema optimized for LLM consumption.
@@ -737,6 +761,11 @@ interface FilesystemPermission {
737
761
  * collisions with user-supplied tools at construction time.
738
762
  */
739
763
  declare const FILESYSTEM_TOOL_NAMES: readonly ["ls", "read_file", "write_file", "edit_file", "glob", "grep", "execute"];
764
+ /**
765
+ * Built-in filesystem tool names accepted by
766
+ * {@link createFilesystemMiddleware}'s `tools` allowlist.
767
+ */
768
+ type FsToolName = (typeof FILESYSTEM_TOOL_NAMES)[number];
740
769
  /**
741
770
  * Type for the files state record.
742
771
  */
@@ -751,10 +780,46 @@ type FilesRecordUpdate = Record<string, FileData | null>;
751
780
  interface FilesystemMiddlewareOptions {
752
781
  /** Backend instance or factory (default: StateBackend) */
753
782
  backend?: AnyBackendProtocol | BackendFactory;
754
- /** Optional custom system prompt override */
783
+ /**
784
+ * Optional filesystem-specific system prompt override.
785
+ *
786
+ * When omitted, the middleware generates a prompt that reflects the tools
787
+ * visible for the current model request. Supplying a custom prompt replaces
788
+ * that generated filesystem prompt entirely.
789
+ */
755
790
  systemPrompt?: string | null;
756
- /** Optional custom tool descriptions override */
757
- customToolDescriptions?: Record<string, string> | null;
791
+ /**
792
+ * Optional descriptions for built-in filesystem tools.
793
+ *
794
+ * Keys correspond to {@link FsToolName}. Descriptions for tools that are not
795
+ * enabled by the `tools` allowlist are ignored because those tools are not
796
+ * exposed to the model.
797
+ */
798
+ customToolDescriptions?: Partial<Record<FsToolName, string>> | null;
799
+ /**
800
+ * Allowlist of built-in filesystem tools to expose to the model.
801
+ *
802
+ * - `undefined`, `null`, and `"all"` preserve the default behavior: every
803
+ * filesystem tool is registered, subject to backend capability filtering.
804
+ * - Passing an array restricts the middleware to only those tool names.
805
+ * - `read_file` must be included in every explicit array because it is used
806
+ * by normal file-inspection flows and by large-result recovery guidance.
807
+ * - Backend capability checks still narrow the final visible tool set. For
808
+ * example, `execute` is removed when the resolved backend does not support
809
+ * command execution, even if it appears in this allowlist.
810
+ * - User-provided non-filesystem tools are not affected by this allowlist.
811
+ *
812
+ * The generated filesystem system prompt is based on the tools that remain
813
+ * visible after this allowlist and backend capability filtering are applied.
814
+ *
815
+ * @example Read/search-only filesystem access
816
+ * ```ts
817
+ * createFilesystemMiddleware({
818
+ * tools: ["read_file", "ls", "glob", "grep"],
819
+ * });
820
+ * ```
821
+ */
822
+ tools?: readonly FsToolName[] | "all" | null;
758
823
  /** Optional token limit before evicting a tool result to the filesystem (default: 20000 tokens, ~80KB) */
759
824
  toolTokenLimitBeforeEvict?: number | null;
760
825
  /** Optional token limit before evicting a HumanMessage to the filesystem (default: 50000 tokens, ~200KB) */
@@ -769,15 +834,42 @@ interface FilesystemMiddlewareOptions {
769
834
  * **Note on `execute`**: permissions are not enforced on `execute` because
770
835
  * shell commands can access any path regardless of path-based rules. Using
771
836
  * permissions with an execution-capable backend (one where `isSandboxBackend`
772
- * returns `true`) throws a `ConfigurationError` unless the backend is a
773
- * `CompositeBackend` and every permission path is scoped to a route prefix.
837
+ * returns `true`) throws a `ConfigurationError` unless either:
838
+ *
839
+ * - `execute` is disabled via `tools`, or
840
+ * - the backend is a `CompositeBackend` and every permission path is scoped to
841
+ * a route prefix.
774
842
  *
775
843
  * When omitted or empty, all filesystem operations are permitted.
776
844
  */
777
845
  permissions?: FilesystemPermission[];
778
846
  }
779
847
  /**
780
- * Create filesystem middleware with all tools and features.
848
+ * Create middleware that provides built-in filesystem tools and filesystem-aware
849
+ * prompt guidance.
850
+ *
851
+ * By default, the middleware registers every built-in filesystem tool listed in
852
+ * {@link FILESYSTEM_TOOL_NAMES}. Use {@link FilesystemMiddlewareOptions.tools}
853
+ * to narrow that set for read-only, search-only, or otherwise restricted
854
+ * agents. The allowlist only controls built-in filesystem tools; custom tools
855
+ * from the agent or other middleware are left untouched.
856
+ *
857
+ * The middleware also filters tools whose backend capabilities are unavailable
858
+ * at request time. In particular, `execute` is only visible when the resolved
859
+ * backend supports command execution. The filesystem prompt is generated from
860
+ * the final visible filesystem tools so the model is not instructed to call
861
+ * tools it cannot see.
862
+ *
863
+ * @param options Filesystem middleware configuration.
864
+ * @returns Agent middleware that contributes filesystem state, tools, prompt
865
+ * guidance, permission checks, and large-result eviction.
866
+ *
867
+ * @example Read-only filesystem middleware
868
+ * ```ts
869
+ * const middleware = createFilesystemMiddleware({
870
+ * tools: ["read_file", "ls", "glob", "grep"],
871
+ * });
872
+ * ```
781
873
  */
782
874
  declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOptions): AgentMiddleware<StateSchema<{
783
875
  files: ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
@@ -1584,7 +1676,8 @@ declare class StateBackend implements BackendProtocolV2 {
1584
1676
  * In legacy mode, this is a no-op — the caller uses `filesUpdate`
1585
1677
  * from the return value instead.
1586
1678
  *
1587
- * @param update - Map of file paths to their updated {@link FileData}
1679
+ * @param update - Map of file paths to their updated {@link FileData},
1680
+ * or null deletion markers.
1588
1681
  */
1589
1682
  private sendFilesUpdate;
1590
1683
  /**
@@ -1624,6 +1717,10 @@ declare class StateBackend implements BackendProtocolV2 {
1624
1717
  * Returns EditResult with filesUpdate and occurrences.
1625
1718
  */
1626
1719
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): EditResult;
1720
+ /**
1721
+ * Delete a file from state by sending a null deletion marker through Pregel.
1722
+ */
1723
+ delete(filePath: string): DeleteResult;
1627
1724
  /**
1628
1725
  * Search file contents for a literal text pattern.
1629
1726
  * Binary files are skipped.
@@ -2490,6 +2587,25 @@ type InferSubagentByName<T, TName extends string> = InferDeepAgentSubagents<T> e
2490
2587
  * ```
2491
2588
  */
2492
2589
  type InferSubagentReactAgentType<TSubagent extends SubAgent | CompiledSubAgent> = TSubagent extends CompiledSubAgent ? TSubagent["runnable"] : TSubagent extends SubAgent ? ReactAgent<AgentTypeConfig<ResponseFormatUndefined, undefined, AnyAnnotationRoot, ExtractSubAgentMiddleware<TSubagent>, readonly []>> : never;
2590
+ /**
2591
+ * Structured system prompt configuration for {@link createDeepAgent}.
2592
+ *
2593
+ * Prompt parts are assembled in the order `prefix` → `base` → `suffix`,
2594
+ * followed by any model-specific harness profile suffix.
2595
+ */
2596
+ interface SystemPromptConfig {
2597
+ /** Content placed before the base prompt. */
2598
+ prefix?: string | SystemMessage | null;
2599
+ /**
2600
+ * Replacement for the active base prompt.
2601
+ *
2602
+ * Omit this field to retain the harness profile base or built-in base prompt.
2603
+ * Set it to `null` to omit the base prompt entirely.
2604
+ */
2605
+ base?: string | SystemMessage | null;
2606
+ /** Content placed after the base prompt and before any harness profile suffix. */
2607
+ suffix?: string | SystemMessage | null;
2608
+ }
2493
2609
  /**
2494
2610
  * Configuration parameters for creating a Deep Agent
2495
2611
  * Matches Python's create_deep_agent parameters
@@ -2507,8 +2623,14 @@ interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = Supp
2507
2623
  model?: BaseLanguageModel | string;
2508
2624
  /** Tools the agent should have access to */
2509
2625
  tools?: TTools | StructuredTool$1[];
2510
- /** Custom system prompt for the agent. This will be combined with the base agent prompt */
2511
- systemPrompt?: string | SystemMessage;
2626
+ /**
2627
+ * Custom system instructions for the agent.
2628
+ *
2629
+ * A string or {@link SystemMessage} is placed before the active base prompt.
2630
+ * For more control, provide a {@link SystemPromptConfig} to replace or remove
2631
+ * the base prompt and add content after it.
2632
+ */
2633
+ systemPrompt?: string | SystemMessage | SystemPromptConfig;
2512
2634
  /**
2513
2635
  * Optional schema for custom agent state. Allows you to define custom state properties
2514
2636
  * beyond built-in `messages`, `todos`, and `files`. These properties can be accessed
@@ -3077,6 +3199,13 @@ declare class StoreBackend implements BackendProtocolV2 {
3077
3199
  * Returns EditResult. External storage sets filesUpdate=null.
3078
3200
  */
3079
3201
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
3202
+ /**
3203
+ * Delete a file from the store.
3204
+ *
3205
+ * The file path is used as an exact store key. Wildcards are treated
3206
+ * literally and do not expand to multiple entries.
3207
+ */
3208
+ delete(filePath: string): Promise<DeleteResult>;
3080
3209
  /**
3081
3210
  * Search file contents for a literal text pattern.
3082
3211
  * Binary files are skipped.
@@ -3132,6 +3261,15 @@ declare class FilesystemBackend implements BackendProtocolV2 {
3132
3261
  * @throws Error if path traversal detected or path outside root
3133
3262
  */
3134
3263
  private resolvePath;
3264
+ /**
3265
+ * Resolve the concrete path to unlink for a virtual delete operation.
3266
+ *
3267
+ * Virtual-mode path containment is lexical in resolvePath(), so deleting via
3268
+ * that path could follow a symlinked parent outside the virtual root. Resolve
3269
+ * and validate the real parent, then unlink through that real parent path so a
3270
+ * replacement of the original lexical parent cannot redirect the unlink.
3271
+ */
3272
+ private resolveDeletePath;
3135
3273
  /**
3136
3274
  * List files and directories in the specified directory (non-recursive).
3137
3275
  *
@@ -3166,6 +3304,10 @@ declare class FilesystemBackend implements BackendProtocolV2 {
3166
3304
  * Returns EditResult. External storage sets filesUpdate=null.
3167
3305
  */
3168
3306
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
3307
+ /**
3308
+ * Delete a file from the filesystem.
3309
+ */
3310
+ delete(filePath: string): Promise<DeleteResult>;
3169
3311
  /**
3170
3312
  * Search for a literal text pattern in files.
3171
3313
  *
@@ -3315,6 +3457,10 @@ declare class CompositeBackend implements BackendProtocolV2 {
3315
3457
  * @returns EditResult with path, occurrences, or error
3316
3458
  */
3317
3459
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
3460
+ /**
3461
+ * Delete a file, routing to the appropriate backend.
3462
+ */
3463
+ delete(filePath: string): Promise<DeleteResult>;
3318
3464
  /**
3319
3465
  * Execute a command via the default backend.
3320
3466
  * Execution is not path-specific, so it always delegates to the default backend.
@@ -3373,6 +3519,7 @@ declare class ContextHubBackend implements BackendProtocolV2 {
3373
3519
  glob(pattern: string, _path?: string): Promise<GlobResult>;
3374
3520
  write(filePath: string, content: string): Promise<WriteResult>;
3375
3521
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
3522
+ delete(filePath: string): Promise<DeleteResult>;
3376
3523
  uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
3377
3524
  downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
3378
3525
  }
@@ -3653,6 +3800,12 @@ declare abstract class BaseSandbox implements SandboxBackendProtocolV2 {
3653
3800
  * reclaim buffers before the next large allocation is made.
3654
3801
  */
3655
3802
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
3803
+ /**
3804
+ * Delete a file from the sandbox via a server-side rm.
3805
+ *
3806
+ * Uses rm -f, so deleting a path that does not exist succeeds silently.
3807
+ */
3808
+ delete(filePath: string): Promise<DeleteResult>;
3656
3809
  }
3657
3810
  //#endregion
3658
3811
  //#region src/backends/langsmith.d.ts
@@ -3995,5 +4148,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
3995
4148
  }, import("zod/v4/core").$strip>>;
3996
4149
  }, import("zod/v4/core").$strip>, undefined, unknown, readonly (ClientTool | ServerTool)[], readonly []>, AgentMiddleware<undefined, undefined, unknown, readonly (ClientTool | ServerTool)[], readonly []>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents, TStreamTransformers>>;
3997
4150
  //#endregion
3998
- export { createAsyncSubAgentMiddleware as $, FileInfo as $t, findProjectRoot as A, parseHarnessProfileConfig as At, InferDeepAgentSubagents as B, FilesystemMiddlewareOptions as Bt, parseSkillMetadata as C, SandboxBackendProtocolV2 as Cn, createSubAgent as Ct, Settings as D, HarnessProfileConfigData as Dt, filesValue as E, registerHarnessProfile as Et, DeepAgent as F, HarnessProfile as Ft, InferSubagentReactAgentType as G, AnyBackendProtocol as Gt, InferStructuredResponse as H, FilesystemOperation as Ht, DeepAgentTypeConfig as I, HarnessProfileOptions as It, SupportedResponseFormat as J, BackendRuntime as Jt, MergedDeepAgentState as K, BackendFactory as Kt, DefaultDeepAgentTypeConfig as L, REQUIRED_MIDDLEWARE_NAMES as Lt, SubagentRunStream$1 as M, EMPTY_HARNESS_PROFILE as Mt, AnySubAgent as N, createHarnessProfile as Nt, SettingsOptions as O, generalPurposeSubagentConfigSchema as Ot, CreateDeepAgentParams as P, GeneralPurposeSubagentConfig as Pt, AsyncTaskStatus as Q, FileDownloadResponse as Qt, ExtractSubAgentMiddleware as R, ConfigurationError as Rt, listSkills as S, BackendProtocolV2 as Sn, TASK_SYSTEM_PROMPT as St, createAgentMemoryMiddleware as T, SandboxBackendProtocolV1 as Tn, getHarnessProfile as Tt, InferSubAgentMiddlewareStates as U, FilesystemPermission as Ut, InferDeepAgentType as V, createFilesystemMiddleware as Vt, InferSubagentByName as W, PermissionMode as Wt, AsyncSubAgentMiddlewareOptions as X, ExecuteResponse as Xt, AsyncSubAgent as Y, EditResult as Yt, AsyncTask as Z, FileData as Zt, StoreBackendContext as _, StateAndStore as _n, DEFAULT_SUBAGENT_PROMPT as _t, adaptBackendProtocol as a, LsResult as an, MAX_SKILL_DESCRIPTION_LENGTH as at, ListSkillsOptions as b, isSandboxProtocol as bn, SubAgent as bt, LangSmithSandboxCreateOptions as c, ReadResult as cn, SkillMetadata$1 as ct, LocalShellBackend as d, SandboxError as dn, MemoryMiddlewareOptions as dt, FileOperationError as en, isAsyncSubAgent as et, LocalShellBackendOptions as f, SandboxErrorCode as fn, createMemoryMiddleware as ft, StoreBackend as g, SandboxListResponse as gn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as gt, FilesystemBackend as h, SandboxListOptions as hn, CompiledSubAgent as ht, LangSmithStartSandboxOptions as i, GrepResult as in, createCompletionCallbackMiddleware as it, DeepAgentRunStream as j, serializeProfile as jt, createSettings as k, harnessProfileConfigSchema as kt, LangSmithSandboxOptions as l, SandboxBackendProtocol as ln, SkillsMiddlewareOptions as lt, CompositeBackend as m, SandboxInfo as mn, createPatchToolCallsMiddleware as mt, LangSmithCaptureSnapshotOptions as n, GlobResult as nn, createSummarizationMiddleware as nt, adaptSandboxProtocol as o, MaybePromise as on, MAX_SKILL_FILE_SIZE as ot, ContextHubBackend as p, SandboxGetOrCreateOptions as pn, StateBackend as pt, ResolveDeepAgentTypeConfig as q, BackendProtocol as qt, LangSmithSnapshot as r, GrepMatch as rn, CompletionCallbackOptions as rt, LangSmithSandbox as s, ReadRawResult as sn, MAX_SKILL_NAME_LENGTH as st, createDeepAgent as t, FileUploadResponse as tn, computeSummarizationDefaults as tt, BaseSandbox as u, SandboxDeleteOptions as un, createSkillsMiddleware as ut, StoreBackendNamespaceFactory as v, WriteResult as vn, GENERAL_PURPOSE_SUBAGENT as vt, AgentMemoryMiddlewareOptions as w, BackendProtocolV1 as wn, createSubAgentMiddleware as wt, SkillMetadata as x, resolveBackend as xn, SubAgentMiddlewareOptions as xt, StoreBackendOptions as y, isSandboxBackend as yn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as yt, FlattenSubAgentMiddleware as z, ConfigurationErrorCode as zt };
3999
- //# sourceMappingURL=agent-DsjC63Eg.d.cts.map
4151
+ export { AsyncTaskStatus as $, ExecuteResponse as $t, findProjectRoot as A, harnessProfileConfigSchema as At, InferDeepAgentSubagents as B, ConfigurationErrorCode as Bt, parseSkillMetadata as C, isSandboxProtocol as Cn, TASK_SYSTEM_PROMPT as Ct, Settings as D, BackendProtocolV1 as Dn, registerHarnessProfile as Dt, filesValue as E, SandboxBackendProtocolV2 as En, getHarnessProfile as Et, DeepAgent as F, GeneralPurposeSubagentConfig as Ft, InferSubagentReactAgentType as G, FilesystemPermission as Gt, InferStructuredResponse as H, FsToolName as Ht, DeepAgentTypeConfig as I, HarnessProfile as It, SupportedResponseFormat as J, BackendFactory as Jt, MergedDeepAgentState as K, PermissionMode as Kt, DefaultDeepAgentTypeConfig as L, HarnessProfileOptions as Lt, SubagentRunStream$1 as M, serializeProfile as Mt, AnySubAgent as N, EMPTY_HARNESS_PROFILE as Nt, SettingsOptions as O, SandboxBackendProtocolV1 as On, HarnessProfileConfigData as Ot, CreateDeepAgentParams as P, createHarnessProfile as Pt, AsyncTask as Q, EditResult as Qt, ExtractSubAgentMiddleware as R, REQUIRED_MIDDLEWARE_NAMES as Rt, listSkills as S, isSandboxBackend as Sn, SubAgentMiddlewareOptions as St, createAgentMemoryMiddleware as T, BackendProtocolV2 as Tn, createSubAgentMiddleware as Tt, InferSubAgentMiddlewareStates as U, createFilesystemMiddleware as Ut, InferDeepAgentType as V, FilesystemMiddlewareOptions as Vt, InferSubagentByName as W, FilesystemOperation as Wt, AsyncSubAgent as X, BackendRuntime as Xt, SystemPromptConfig as Y, BackendProtocol as Yt, AsyncSubAgentMiddlewareOptions as Z, DeleteResult as Zt, StoreBackendContext as _, SandboxInfo as _n, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as _t, adaptBackendProtocol as a, GlobResult as an, createCompletionCallbackMiddleware as at, ListSkillsOptions as b, StateAndStore as bn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as bt, LangSmithSandboxCreateOptions as c, LsResult as cn, MAX_SKILL_NAME_LENGTH as ct, LocalShellBackend as d, ReadResult as dn, createSkillsMiddleware as dt, FileData as en, createAsyncSubAgentMiddleware as et, LocalShellBackendOptions as f, SandboxBackendProtocol as fn, MemoryMiddlewareOptions as ft, StoreBackend as g, SandboxGetOrCreateOptions as gn, CompiledSubAgent as gt, FilesystemBackend as h, SandboxErrorCode as hn, createPatchToolCallsMiddleware as ht, LangSmithStartSandboxOptions as i, FileUploadResponse as in, CompletionCallbackOptions as it, DeepAgentRunStream as j, parseHarnessProfileConfig as jt, createSettings as k, generalPurposeSubagentConfigSchema as kt, LangSmithSandboxOptions as l, MaybePromise as ln, SkillMetadata$1 as lt, CompositeBackend as m, SandboxError as mn, StateBackend as mt, LangSmithCaptureSnapshotOptions as n, FileInfo as nn, computeSummarizationDefaults as nt, adaptSandboxProtocol as o, GrepMatch as on, MAX_SKILL_DESCRIPTION_LENGTH as ot, ContextHubBackend as p, SandboxDeleteOptions as pn, createMemoryMiddleware as pt, ResolveDeepAgentTypeConfig as q, AnyBackendProtocol as qt, LangSmithSnapshot as r, FileOperationError as rn, createSummarizationMiddleware as rt, LangSmithSandbox as s, GrepResult as sn, MAX_SKILL_FILE_SIZE as st, createDeepAgent as t, FileDownloadResponse as tn, isAsyncSubAgent as tt, BaseSandbox as u, ReadRawResult as un, SkillsMiddlewareOptions as ut, StoreBackendNamespaceFactory as v, SandboxListOptions as vn, DEFAULT_SUBAGENT_PROMPT as vt, AgentMemoryMiddlewareOptions as w, resolveBackend as wn, createSubAgent as wt, SkillMetadata as x, WriteResult as xn, SubAgent as xt, StoreBackendOptions as y, SandboxListResponse as yn, GENERAL_PURPOSE_SUBAGENT as yt, FlattenSubAgentMiddleware as z, ConfigurationError as zt };
4152
+ //# sourceMappingURL=agent-CBuaNmw7.d.cts.map
@@ -94,6 +94,13 @@ interface BackendProtocolV1 {
94
94
  * @returns EditResult with error, path, filesUpdate, and occurrences
95
95
  */
96
96
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): MaybePromise<EditResult>;
97
+ /**
98
+ * Delete a single file.
99
+ *
100
+ * @param filePath - Absolute path to the file to delete
101
+ * @returns DeleteResult with path on success or error on failure
102
+ */
103
+ delete?(filePath: string): MaybePromise<DeleteResult>;
97
104
  /**
98
105
  * Upload multiple files.
99
106
  * Optional - backends that don't support file upload can omit this.
@@ -193,6 +200,14 @@ interface BackendProtocolV2 extends Omit<BackendProtocolV1, "read" | "readRaw" |
193
200
  * @returns GlobResult with list of FileInfo objects matching the pattern on success or error on failure
194
201
  */
195
202
  glob(pattern: string, path?: string): MaybePromise<GlobResult>;
203
+ /**
204
+ * Delete a single file.
205
+ * Optional - backends that don't support file deletion can omit this.
206
+ *
207
+ * @param filePath - Absolute path to the file to delete
208
+ * @returns DeleteResult with path on success or error on failure
209
+ */
210
+ delete?(filePath: string): MaybePromise<DeleteResult>;
196
211
  }
197
212
  /**
198
213
  * Protocol for sandboxed backends with isolated runtime.
@@ -386,6 +401,15 @@ interface EditResult {
386
401
  /** Metadata for the edit operation, attached to the ToolMessage */
387
402
  metadata?: Record<string, unknown>;
388
403
  }
404
+ /**
405
+ * Result from backend delete operations.
406
+ */
407
+ interface DeleteResult {
408
+ /** Error message on failure, undefined on success */
409
+ error?: string;
410
+ /** File path of deleted file, undefined on failure */
411
+ path?: string;
412
+ }
389
413
  /**
390
414
  * Result of code execution.
391
415
  * Simplified schema optimized for LLM consumption.
@@ -738,6 +762,11 @@ interface FilesystemPermission {
738
762
  * collisions with user-supplied tools at construction time.
739
763
  */
740
764
  declare const FILESYSTEM_TOOL_NAMES: readonly ["ls", "read_file", "write_file", "edit_file", "glob", "grep", "execute"];
765
+ /**
766
+ * Built-in filesystem tool names accepted by
767
+ * {@link createFilesystemMiddleware}'s `tools` allowlist.
768
+ */
769
+ type FsToolName = (typeof FILESYSTEM_TOOL_NAMES)[number];
741
770
  /**
742
771
  * Type for the files state record.
743
772
  */
@@ -752,10 +781,46 @@ type FilesRecordUpdate = Record<string, FileData | null>;
752
781
  interface FilesystemMiddlewareOptions {
753
782
  /** Backend instance or factory (default: StateBackend) */
754
783
  backend?: AnyBackendProtocol | BackendFactory;
755
- /** Optional custom system prompt override */
784
+ /**
785
+ * Optional filesystem-specific system prompt override.
786
+ *
787
+ * When omitted, the middleware generates a prompt that reflects the tools
788
+ * visible for the current model request. Supplying a custom prompt replaces
789
+ * that generated filesystem prompt entirely.
790
+ */
756
791
  systemPrompt?: string | null;
757
- /** Optional custom tool descriptions override */
758
- customToolDescriptions?: Record<string, string> | null;
792
+ /**
793
+ * Optional descriptions for built-in filesystem tools.
794
+ *
795
+ * Keys correspond to {@link FsToolName}. Descriptions for tools that are not
796
+ * enabled by the `tools` allowlist are ignored because those tools are not
797
+ * exposed to the model.
798
+ */
799
+ customToolDescriptions?: Partial<Record<FsToolName, string>> | null;
800
+ /**
801
+ * Allowlist of built-in filesystem tools to expose to the model.
802
+ *
803
+ * - `undefined`, `null`, and `"all"` preserve the default behavior: every
804
+ * filesystem tool is registered, subject to backend capability filtering.
805
+ * - Passing an array restricts the middleware to only those tool names.
806
+ * - `read_file` must be included in every explicit array because it is used
807
+ * by normal file-inspection flows and by large-result recovery guidance.
808
+ * - Backend capability checks still narrow the final visible tool set. For
809
+ * example, `execute` is removed when the resolved backend does not support
810
+ * command execution, even if it appears in this allowlist.
811
+ * - User-provided non-filesystem tools are not affected by this allowlist.
812
+ *
813
+ * The generated filesystem system prompt is based on the tools that remain
814
+ * visible after this allowlist and backend capability filtering are applied.
815
+ *
816
+ * @example Read/search-only filesystem access
817
+ * ```ts
818
+ * createFilesystemMiddleware({
819
+ * tools: ["read_file", "ls", "glob", "grep"],
820
+ * });
821
+ * ```
822
+ */
823
+ tools?: readonly FsToolName[] | "all" | null;
759
824
  /** Optional token limit before evicting a tool result to the filesystem (default: 20000 tokens, ~80KB) */
760
825
  toolTokenLimitBeforeEvict?: number | null;
761
826
  /** Optional token limit before evicting a HumanMessage to the filesystem (default: 50000 tokens, ~200KB) */
@@ -770,15 +835,42 @@ interface FilesystemMiddlewareOptions {
770
835
  * **Note on `execute`**: permissions are not enforced on `execute` because
771
836
  * shell commands can access any path regardless of path-based rules. Using
772
837
  * permissions with an execution-capable backend (one where `isSandboxBackend`
773
- * returns `true`) throws a `ConfigurationError` unless the backend is a
774
- * `CompositeBackend` and every permission path is scoped to a route prefix.
838
+ * returns `true`) throws a `ConfigurationError` unless either:
839
+ *
840
+ * - `execute` is disabled via `tools`, or
841
+ * - the backend is a `CompositeBackend` and every permission path is scoped to
842
+ * a route prefix.
775
843
  *
776
844
  * When omitted or empty, all filesystem operations are permitted.
777
845
  */
778
846
  permissions?: FilesystemPermission[];
779
847
  }
780
848
  /**
781
- * Create filesystem middleware with all tools and features.
849
+ * Create middleware that provides built-in filesystem tools and filesystem-aware
850
+ * prompt guidance.
851
+ *
852
+ * By default, the middleware registers every built-in filesystem tool listed in
853
+ * {@link FILESYSTEM_TOOL_NAMES}. Use {@link FilesystemMiddlewareOptions.tools}
854
+ * to narrow that set for read-only, search-only, or otherwise restricted
855
+ * agents. The allowlist only controls built-in filesystem tools; custom tools
856
+ * from the agent or other middleware are left untouched.
857
+ *
858
+ * The middleware also filters tools whose backend capabilities are unavailable
859
+ * at request time. In particular, `execute` is only visible when the resolved
860
+ * backend supports command execution. The filesystem prompt is generated from
861
+ * the final visible filesystem tools so the model is not instructed to call
862
+ * tools it cannot see.
863
+ *
864
+ * @param options Filesystem middleware configuration.
865
+ * @returns Agent middleware that contributes filesystem state, tools, prompt
866
+ * guidance, permission checks, and large-result eviction.
867
+ *
868
+ * @example Read-only filesystem middleware
869
+ * ```ts
870
+ * const middleware = createFilesystemMiddleware({
871
+ * tools: ["read_file", "ls", "glob", "grep"],
872
+ * });
873
+ * ```
782
874
  */
783
875
  declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOptions): AgentMiddleware<StateSchema<{
784
876
  files: ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
@@ -1585,7 +1677,8 @@ declare class StateBackend implements BackendProtocolV2 {
1585
1677
  * In legacy mode, this is a no-op — the caller uses `filesUpdate`
1586
1678
  * from the return value instead.
1587
1679
  *
1588
- * @param update - Map of file paths to their updated {@link FileData}
1680
+ * @param update - Map of file paths to their updated {@link FileData},
1681
+ * or null deletion markers.
1589
1682
  */
1590
1683
  private sendFilesUpdate;
1591
1684
  /**
@@ -1625,6 +1718,10 @@ declare class StateBackend implements BackendProtocolV2 {
1625
1718
  * Returns EditResult with filesUpdate and occurrences.
1626
1719
  */
1627
1720
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): EditResult;
1721
+ /**
1722
+ * Delete a file from state by sending a null deletion marker through Pregel.
1723
+ */
1724
+ delete(filePath: string): DeleteResult;
1628
1725
  /**
1629
1726
  * Search file contents for a literal text pattern.
1630
1727
  * Binary files are skipped.
@@ -2491,6 +2588,25 @@ type InferSubagentByName<T, TName extends string> = InferDeepAgentSubagents<T> e
2491
2588
  * ```
2492
2589
  */
2493
2590
  type InferSubagentReactAgentType<TSubagent extends SubAgent | CompiledSubAgent> = TSubagent extends CompiledSubAgent ? TSubagent["runnable"] : TSubagent extends SubAgent ? ReactAgent<AgentTypeConfig<ResponseFormatUndefined, undefined, AnyAnnotationRoot, ExtractSubAgentMiddleware<TSubagent>, readonly []>> : never;
2591
+ /**
2592
+ * Structured system prompt configuration for {@link createDeepAgent}.
2593
+ *
2594
+ * Prompt parts are assembled in the order `prefix` → `base` → `suffix`,
2595
+ * followed by any model-specific harness profile suffix.
2596
+ */
2597
+ interface SystemPromptConfig {
2598
+ /** Content placed before the base prompt. */
2599
+ prefix?: string | SystemMessage | null;
2600
+ /**
2601
+ * Replacement for the active base prompt.
2602
+ *
2603
+ * Omit this field to retain the harness profile base or built-in base prompt.
2604
+ * Set it to `null` to omit the base prompt entirely.
2605
+ */
2606
+ base?: string | SystemMessage | null;
2607
+ /** Content placed after the base prompt and before any harness profile suffix. */
2608
+ suffix?: string | SystemMessage | null;
2609
+ }
2494
2610
  /**
2495
2611
  * Configuration parameters for creating a Deep Agent
2496
2612
  * Matches Python's create_deep_agent parameters
@@ -2508,8 +2624,14 @@ interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = Supp
2508
2624
  model?: BaseLanguageModel | string;
2509
2625
  /** Tools the agent should have access to */
2510
2626
  tools?: TTools | StructuredTool$1[];
2511
- /** Custom system prompt for the agent. This will be combined with the base agent prompt */
2512
- systemPrompt?: string | SystemMessage;
2627
+ /**
2628
+ * Custom system instructions for the agent.
2629
+ *
2630
+ * A string or {@link SystemMessage} is placed before the active base prompt.
2631
+ * For more control, provide a {@link SystemPromptConfig} to replace or remove
2632
+ * the base prompt and add content after it.
2633
+ */
2634
+ systemPrompt?: string | SystemMessage | SystemPromptConfig;
2513
2635
  /**
2514
2636
  * Optional schema for custom agent state. Allows you to define custom state properties
2515
2637
  * beyond built-in `messages`, `todos`, and `files`. These properties can be accessed
@@ -3078,6 +3200,13 @@ declare class StoreBackend implements BackendProtocolV2 {
3078
3200
  * Returns EditResult. External storage sets filesUpdate=null.
3079
3201
  */
3080
3202
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
3203
+ /**
3204
+ * Delete a file from the store.
3205
+ *
3206
+ * The file path is used as an exact store key. Wildcards are treated
3207
+ * literally and do not expand to multiple entries.
3208
+ */
3209
+ delete(filePath: string): Promise<DeleteResult>;
3081
3210
  /**
3082
3211
  * Search file contents for a literal text pattern.
3083
3212
  * Binary files are skipped.
@@ -3133,6 +3262,15 @@ declare class FilesystemBackend implements BackendProtocolV2 {
3133
3262
  * @throws Error if path traversal detected or path outside root
3134
3263
  */
3135
3264
  private resolvePath;
3265
+ /**
3266
+ * Resolve the concrete path to unlink for a virtual delete operation.
3267
+ *
3268
+ * Virtual-mode path containment is lexical in resolvePath(), so deleting via
3269
+ * that path could follow a symlinked parent outside the virtual root. Resolve
3270
+ * and validate the real parent, then unlink through that real parent path so a
3271
+ * replacement of the original lexical parent cannot redirect the unlink.
3272
+ */
3273
+ private resolveDeletePath;
3136
3274
  /**
3137
3275
  * List files and directories in the specified directory (non-recursive).
3138
3276
  *
@@ -3167,6 +3305,10 @@ declare class FilesystemBackend implements BackendProtocolV2 {
3167
3305
  * Returns EditResult. External storage sets filesUpdate=null.
3168
3306
  */
3169
3307
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
3308
+ /**
3309
+ * Delete a file from the filesystem.
3310
+ */
3311
+ delete(filePath: string): Promise<DeleteResult>;
3170
3312
  /**
3171
3313
  * Search for a literal text pattern in files.
3172
3314
  *
@@ -3316,6 +3458,10 @@ declare class CompositeBackend implements BackendProtocolV2 {
3316
3458
  * @returns EditResult with path, occurrences, or error
3317
3459
  */
3318
3460
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
3461
+ /**
3462
+ * Delete a file, routing to the appropriate backend.
3463
+ */
3464
+ delete(filePath: string): Promise<DeleteResult>;
3319
3465
  /**
3320
3466
  * Execute a command via the default backend.
3321
3467
  * Execution is not path-specific, so it always delegates to the default backend.
@@ -3374,6 +3520,7 @@ declare class ContextHubBackend implements BackendProtocolV2 {
3374
3520
  glob(pattern: string, _path?: string): Promise<GlobResult>;
3375
3521
  write(filePath: string, content: string): Promise<WriteResult>;
3376
3522
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
3523
+ delete(filePath: string): Promise<DeleteResult>;
3377
3524
  uploadFiles(files: Array<[string, Uint8Array]>): Promise<FileUploadResponse[]>;
3378
3525
  downloadFiles(paths: string[]): Promise<FileDownloadResponse[]>;
3379
3526
  }
@@ -3654,6 +3801,12 @@ declare abstract class BaseSandbox implements SandboxBackendProtocolV2 {
3654
3801
  * reclaim buffers before the next large allocation is made.
3655
3802
  */
3656
3803
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
3804
+ /**
3805
+ * Delete a file from the sandbox via a server-side rm.
3806
+ *
3807
+ * Uses rm -f, so deleting a path that does not exist succeeds silently.
3808
+ */
3809
+ delete(filePath: string): Promise<DeleteResult>;
3657
3810
  }
3658
3811
  //#endregion
3659
3812
  //#region src/backends/langsmith.d.ts
@@ -3996,5 +4149,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
3996
4149
  }, import("zod/v4/core").$strip>>;
3997
4150
  }, import("zod/v4/core").$strip>, undefined, unknown, readonly (ClientTool | ServerTool)[], readonly []>, AgentMiddleware<undefined, undefined, unknown, readonly (ClientTool | ServerTool)[], readonly []>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents, TStreamTransformers>>;
3998
4151
  //#endregion
3999
- export { createAsyncSubAgentMiddleware as $, FileInfo as $t, findProjectRoot as A, parseHarnessProfileConfig as At, InferDeepAgentSubagents as B, FilesystemMiddlewareOptions as Bt, parseSkillMetadata as C, SandboxBackendProtocolV2 as Cn, createSubAgent as Ct, Settings as D, HarnessProfileConfigData as Dt, filesValue as E, registerHarnessProfile as Et, DeepAgent as F, HarnessProfile as Ft, InferSubagentReactAgentType as G, AnyBackendProtocol as Gt, InferStructuredResponse as H, FilesystemOperation as Ht, DeepAgentTypeConfig as I, HarnessProfileOptions as It, SupportedResponseFormat as J, BackendRuntime as Jt, MergedDeepAgentState as K, BackendFactory as Kt, DefaultDeepAgentTypeConfig as L, REQUIRED_MIDDLEWARE_NAMES as Lt, SubagentRunStream$1 as M, EMPTY_HARNESS_PROFILE as Mt, AnySubAgent as N, createHarnessProfile as Nt, SettingsOptions as O, generalPurposeSubagentConfigSchema as Ot, CreateDeepAgentParams as P, GeneralPurposeSubagentConfig as Pt, AsyncTaskStatus as Q, FileDownloadResponse as Qt, ExtractSubAgentMiddleware as R, ConfigurationError as Rt, listSkills as S, BackendProtocolV2 as Sn, TASK_SYSTEM_PROMPT as St, createAgentMemoryMiddleware as T, SandboxBackendProtocolV1 as Tn, getHarnessProfile as Tt, InferSubAgentMiddlewareStates as U, FilesystemPermission as Ut, InferDeepAgentType as V, createFilesystemMiddleware as Vt, InferSubagentByName as W, PermissionMode as Wt, AsyncSubAgentMiddlewareOptions as X, ExecuteResponse as Xt, AsyncSubAgent as Y, EditResult as Yt, AsyncTask as Z, FileData as Zt, StoreBackendContext as _, StateAndStore as _n, DEFAULT_SUBAGENT_PROMPT as _t, adaptBackendProtocol as a, LsResult as an, MAX_SKILL_DESCRIPTION_LENGTH as at, ListSkillsOptions as b, isSandboxProtocol as bn, SubAgent as bt, LangSmithSandboxCreateOptions as c, ReadResult as cn, SkillMetadata$1 as ct, LocalShellBackend as d, SandboxError as dn, MemoryMiddlewareOptions as dt, FileOperationError as en, isAsyncSubAgent as et, LocalShellBackendOptions as f, SandboxErrorCode as fn, createMemoryMiddleware as ft, StoreBackend as g, SandboxListResponse as gn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as gt, FilesystemBackend as h, SandboxListOptions as hn, CompiledSubAgent as ht, LangSmithStartSandboxOptions as i, GrepResult as in, createCompletionCallbackMiddleware as it, DeepAgentRunStream as j, serializeProfile as jt, createSettings as k, harnessProfileConfigSchema as kt, LangSmithSandboxOptions as l, SandboxBackendProtocol as ln, SkillsMiddlewareOptions as lt, CompositeBackend as m, SandboxInfo as mn, createPatchToolCallsMiddleware as mt, LangSmithCaptureSnapshotOptions as n, GlobResult as nn, createSummarizationMiddleware as nt, adaptSandboxProtocol as o, MaybePromise as on, MAX_SKILL_FILE_SIZE as ot, ContextHubBackend as p, SandboxGetOrCreateOptions as pn, StateBackend as pt, ResolveDeepAgentTypeConfig as q, BackendProtocol as qt, LangSmithSnapshot as r, GrepMatch as rn, CompletionCallbackOptions as rt, LangSmithSandbox as s, ReadRawResult as sn, MAX_SKILL_NAME_LENGTH as st, createDeepAgent as t, FileUploadResponse as tn, computeSummarizationDefaults as tt, BaseSandbox as u, SandboxDeleteOptions as un, createSkillsMiddleware as ut, StoreBackendNamespaceFactory as v, WriteResult as vn, GENERAL_PURPOSE_SUBAGENT as vt, AgentMemoryMiddlewareOptions as w, BackendProtocolV1 as wn, createSubAgentMiddleware as wt, SkillMetadata as x, resolveBackend as xn, SubAgentMiddlewareOptions as xt, StoreBackendOptions as y, isSandboxBackend as yn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as yt, FlattenSubAgentMiddleware as z, ConfigurationErrorCode as zt };
4000
- //# sourceMappingURL=agent-DgVtHOV7.d.ts.map
4152
+ export { AsyncTaskStatus as $, ExecuteResponse as $t, findProjectRoot as A, harnessProfileConfigSchema as At, InferDeepAgentSubagents as B, ConfigurationErrorCode as Bt, parseSkillMetadata as C, isSandboxProtocol as Cn, TASK_SYSTEM_PROMPT as Ct, Settings as D, BackendProtocolV1 as Dn, registerHarnessProfile as Dt, filesValue as E, SandboxBackendProtocolV2 as En, getHarnessProfile as Et, DeepAgent as F, GeneralPurposeSubagentConfig as Ft, InferSubagentReactAgentType as G, FilesystemPermission as Gt, InferStructuredResponse as H, FsToolName as Ht, DeepAgentTypeConfig as I, HarnessProfile as It, SupportedResponseFormat as J, BackendFactory as Jt, MergedDeepAgentState as K, PermissionMode as Kt, DefaultDeepAgentTypeConfig as L, HarnessProfileOptions as Lt, SubagentRunStream$1 as M, serializeProfile as Mt, AnySubAgent as N, EMPTY_HARNESS_PROFILE as Nt, SettingsOptions as O, SandboxBackendProtocolV1 as On, HarnessProfileConfigData as Ot, CreateDeepAgentParams as P, createHarnessProfile as Pt, AsyncTask as Q, EditResult as Qt, ExtractSubAgentMiddleware as R, REQUIRED_MIDDLEWARE_NAMES as Rt, listSkills as S, isSandboxBackend as Sn, SubAgentMiddlewareOptions as St, createAgentMemoryMiddleware as T, BackendProtocolV2 as Tn, createSubAgentMiddleware as Tt, InferSubAgentMiddlewareStates as U, createFilesystemMiddleware as Ut, InferDeepAgentType as V, FilesystemMiddlewareOptions as Vt, InferSubagentByName as W, FilesystemOperation as Wt, AsyncSubAgent as X, BackendRuntime as Xt, SystemPromptConfig as Y, BackendProtocol as Yt, AsyncSubAgentMiddlewareOptions as Z, DeleteResult as Zt, StoreBackendContext as _, SandboxInfo as _n, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as _t, adaptBackendProtocol as a, GlobResult as an, createCompletionCallbackMiddleware as at, ListSkillsOptions as b, StateAndStore as bn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as bt, LangSmithSandboxCreateOptions as c, LsResult as cn, MAX_SKILL_NAME_LENGTH as ct, LocalShellBackend as d, ReadResult as dn, createSkillsMiddleware as dt, FileData as en, createAsyncSubAgentMiddleware as et, LocalShellBackendOptions as f, SandboxBackendProtocol as fn, MemoryMiddlewareOptions as ft, StoreBackend as g, SandboxGetOrCreateOptions as gn, CompiledSubAgent as gt, FilesystemBackend as h, SandboxErrorCode as hn, createPatchToolCallsMiddleware as ht, LangSmithStartSandboxOptions as i, FileUploadResponse as in, CompletionCallbackOptions as it, DeepAgentRunStream as j, parseHarnessProfileConfig as jt, createSettings as k, generalPurposeSubagentConfigSchema as kt, LangSmithSandboxOptions as l, MaybePromise as ln, SkillMetadata$1 as lt, CompositeBackend as m, SandboxError as mn, StateBackend as mt, LangSmithCaptureSnapshotOptions as n, FileInfo as nn, computeSummarizationDefaults as nt, adaptSandboxProtocol as o, GrepMatch as on, MAX_SKILL_DESCRIPTION_LENGTH as ot, ContextHubBackend as p, SandboxDeleteOptions as pn, createMemoryMiddleware as pt, ResolveDeepAgentTypeConfig as q, AnyBackendProtocol as qt, LangSmithSnapshot as r, FileOperationError as rn, createSummarizationMiddleware as rt, LangSmithSandbox as s, GrepResult as sn, MAX_SKILL_FILE_SIZE as st, createDeepAgent as t, FileDownloadResponse as tn, isAsyncSubAgent as tt, BaseSandbox as u, ReadRawResult as un, SkillsMiddlewareOptions as ut, StoreBackendNamespaceFactory as v, SandboxListOptions as vn, DEFAULT_SUBAGENT_PROMPT as vt, AgentMemoryMiddlewareOptions as w, resolveBackend as wn, createSubAgent as wt, SkillMetadata as x, WriteResult as xn, SubAgent as xt, StoreBackendOptions as y, SandboxListResponse as yn, GENERAL_PURPOSE_SUBAGENT as yt, FlattenSubAgentMiddleware as z, ConfigurationError as zt };
4153
+ //# sourceMappingURL=agent-D0AY-3B9.d.ts.map
package/dist/browser.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_langsmith = require("./langsmith-CiAeUke2.cjs");
2
+ const require_langsmith = require("./langsmith-DDhVumyX.cjs");
3
3
  exports.BaseSandbox = require_langsmith.BaseSandbox;
4
4
  exports.CompositeBackend = require_langsmith.CompositeBackend;
5
5
  exports.ConfigurationError = require_langsmith.ConfigurationError;