deepagents 1.12.1 → 1.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -196,9 +196,11 @@ interface BackendProtocolV2 extends Omit<BackendProtocolV1, "read" | "readRaw" |
196
196
  * @param pattern - Literal text pattern to search for
197
197
  * @param path - Base path to search from (default: null)
198
198
  * @param glob - Optional glob pattern to filter files (e.g., "*.py")
199
+ * @param maxCount - Optional cap on the total number of matches returned.
200
+ * When the cap is hit, results are flagged `truncated: true`.
199
201
  * @returns GrepResult with matches on success or error on failure
200
202
  */
201
- grep(pattern: string, path?: string | null, glob?: string | null): MaybePromise<GrepResult>;
203
+ grep(pattern: string, path?: string | null, glob?: string | null, maxCount?: number | null): MaybePromise<GrepResult>;
202
204
  /**
203
205
  * Structured glob matching returning FileInfo objects.
204
206
  *
@@ -274,9 +276,28 @@ interface GrepMatch {
274
276
  interface GrepResult {
275
277
  /** Error message on failure, undefined on success */
276
278
  error?: string;
277
- /** Structured grep match entries, undefined on failure */
279
+ /**
280
+ * Structured grep match entries. Populated on success and, when the
281
+ * search was cut short, with whatever was found before stopping.
282
+ * Undefined only on a hard failure.
283
+ */
278
284
  matches?: GrepMatch[];
285
+ /**
286
+ * True when the search stopped early (e.g. hit a match-count cap) and
287
+ * `matches` is therefore incomplete but still valid.
288
+ */
289
+ truncated?: boolean;
279
290
  }
291
+ /**
292
+ * Enforce a match cap after a backend grep has completed.
293
+ *
294
+ * When `maxCount` is set and the result exceeds it, the matches are sliced
295
+ * to the cap and the result is flagged `truncated: true`.
296
+ */
297
+ declare function applyGrepMaxCount(params: {
298
+ result: GrepResult;
299
+ maxCount: number | null | undefined;
300
+ }): GrepResult;
280
301
  /**
281
302
  * Legacy file data format (v1).
282
303
  *
@@ -357,8 +378,17 @@ interface LsResult {
357
378
  interface GlobResult {
358
379
  /** Error message on failure, undefined on success */
359
380
  error?: string;
360
- /** List of FileInfo objects matching the pattern, undefined on failure */
381
+ /**
382
+ * List of FileInfo objects matching the pattern. Populated on success and,
383
+ * when the walk was cut short, with whatever was found before stopping.
384
+ * Undefined only on a hard failure.
385
+ */
361
386
  files?: FileInfo[];
387
+ /**
388
+ * True when the walk stopped early (e.g. hit a time or count limit) and
389
+ * `files` is therefore incomplete but still valid.
390
+ */
391
+ truncated?: boolean;
362
392
  }
363
393
  /**
364
394
  * Result from backend write operations.
@@ -853,6 +883,14 @@ interface FilesystemMiddlewareOptions {
853
883
  * When omitted or empty, all filesystem operations are permitted.
854
884
  */
855
885
  permissions?: FilesystemPermission[];
886
+ /**
887
+ * Default cap on the number of matches the grep tool returns (default: 1000).
888
+ *
889
+ * When the cap is hit, the returned matches are flagged as truncated and a
890
+ * note tells the model to narrow the search. A per-call `max_count` tool
891
+ * argument overrides this default. Set to `null` to disable the cap.
892
+ */
893
+ grepMaxCount?: number | null;
856
894
  }
857
895
  /**
858
896
  * Create middleware that provides built-in filesystem tools and optional custom
@@ -900,14 +938,24 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
900
938
  pattern: z.ZodString;
901
939
  path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
902
940
  glob: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
941
+ max_count: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
942
+ output_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
943
+ content: "content";
944
+ count: "count";
945
+ files_with_matches: "files_with_matches";
946
+ }>>>;
903
947
  }, z.core.$strip>, {
904
948
  pattern: string;
905
949
  path: string;
906
950
  glob: string | null;
951
+ max_count: number | null;
952
+ output_mode: "content" | "count" | "files_with_matches";
907
953
  }, {
908
954
  pattern: string;
909
955
  path?: string | undefined;
910
956
  glob?: string | null | undefined;
957
+ max_count?: number | null | undefined;
958
+ output_mode?: "content" | "count" | "files_with_matches" | undefined;
911
959
  }, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | _langchain.DynamicStructuredTool<z.ZodObject<{
912
960
  command: z.ZodString;
913
961
  }, z.core.$strip>, {
@@ -1755,7 +1803,7 @@ declare class StateBackend implements BackendProtocolV2 {
1755
1803
  * Search file contents for a literal text pattern.
1756
1804
  * Binary files are skipped.
1757
1805
  */
1758
- grep(pattern: string, path?: string, glob?: string | null): GrepResult;
1806
+ grep(pattern: string, path?: string, glob?: string | null, maxCount?: number | null): GrepResult;
1759
1807
  /**
1760
1808
  * Structured glob matching returning FileInfo objects.
1761
1809
  */
@@ -2108,8 +2156,8 @@ interface SummarizationMiddlewareOptions {
2108
2156
  */
2109
2157
  summaryPrompt?: string;
2110
2158
  /**
2111
- * Max tokens to include when generating summary.
2112
- * Defaults to 4000.
2159
+ * Max tokens to include when generating a summary.
2160
+ * If omitted, the complete selected conversation is provided to the summarizer.
2113
2161
  */
2114
2162
  trimTokensToSummarize?: number;
2115
2163
  /**
@@ -3219,7 +3267,7 @@ declare class StoreBackend implements BackendProtocolV2 {
3219
3267
  * Search file contents for a literal text pattern.
3220
3268
  * Binary files are skipped.
3221
3269
  */
3222
- grep(pattern: string, path?: string, glob?: string | null): Promise<GrepResult>;
3270
+ grep(pattern: string, path?: string, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
3223
3271
  /**
3224
3272
  * Structured glob matching returning FileInfo objects.
3225
3273
  */
@@ -3325,9 +3373,11 @@ declare class FilesystemBackend implements BackendProtocolV2 {
3325
3373
  * @param pattern - Literal string to search for (NOT regex).
3326
3374
  * @param dirPath - Directory or file path to search in. Defaults to current directory.
3327
3375
  * @param glob - Optional glob pattern to filter which files to search.
3376
+ * @param maxCount - Optional cap on the total number of matches returned.
3377
+ * When the cap is hit, results are flagged `truncated: true`.
3328
3378
  * @returns List of GrepMatch dicts containing path, line number, and matched text.
3329
3379
  */
3330
- grep(pattern: string, dirPath?: string, glob?: string | null): Promise<GrepResult>;
3380
+ grep(pattern: string, dirPath?: string, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
3331
3381
  /**
3332
3382
  * Search using ripgrep with fixed-string (literal) mode.
3333
3383
  *
@@ -3442,8 +3492,12 @@ declare class CompositeBackend implements BackendProtocolV2 {
3442
3492
  readRaw(filePath: string): Promise<ReadRawResult>;
3443
3493
  /**
3444
3494
  * Structured search results or error string for invalid input.
3495
+ *
3496
+ * @param maxCount - Optional total cap on returned matches across all routed
3497
+ * backends. When the cap is reached, remaining routes are
3498
+ * short-circuited and the result is flagged `truncated: true`.
3445
3499
  */
3446
- grep(pattern: string, path?: string | null, glob?: string | null): Promise<GrepResult>;
3500
+ grep(pattern: string, path?: string | null, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
3447
3501
  /**
3448
3502
  * Structured glob matching returning FileInfo objects.
3449
3503
  */
@@ -3524,7 +3578,7 @@ declare class ContextHubBackend implements BackendProtocolV2 {
3524
3578
  ls(path?: string): Promise<LsResult>;
3525
3579
  read(filePath: string, offset?: number, limit?: number): Promise<ReadResult>;
3526
3580
  readRaw(filePath: string): Promise<ReadRawResult>;
3527
- grep(pattern: string, path?: string | null, glob?: string | null): Promise<GrepResult>;
3581
+ grep(pattern: string, path?: string | null, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
3528
3582
  glob(pattern: string, _path?: string): Promise<GlobResult>;
3529
3583
  write(filePath: string, content: string): Promise<WriteResult>;
3530
3584
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
@@ -3777,7 +3831,7 @@ declare abstract class BaseSandbox implements SandboxBackendProtocolV2 {
3777
3831
  * @param glob - Optional glob pattern to filter which files to search.
3778
3832
  * @returns List of GrepMatch dicts containing path, line number, and matched text.
3779
3833
  */
3780
- grep(pattern: string, path?: string, glob?: string | null): Promise<GrepResult>;
3834
+ grep(pattern: string, path?: string, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
3781
3835
  /**
3782
3836
  * Structured glob matching returning FileInfo objects.
3783
3837
  *
@@ -4029,14 +4083,24 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
4029
4083
  pattern: import("zod").ZodString;
4030
4084
  path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
4031
4085
  glob: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
4086
+ max_count: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>>;
4087
+ output_mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
4088
+ content: "content";
4089
+ count: "count";
4090
+ files_with_matches: "files_with_matches";
4091
+ }>>>;
4032
4092
  }, import("zod/v4/core").$strip>, {
4033
4093
  pattern: string;
4034
4094
  path: string;
4035
4095
  glob: string | null;
4096
+ max_count: number | null;
4097
+ output_mode: "content" | "count" | "files_with_matches";
4036
4098
  }, {
4037
4099
  pattern: string;
4038
4100
  path?: string | undefined;
4039
4101
  glob?: string | null | undefined;
4102
+ max_count?: number | null | undefined;
4103
+ output_mode?: "content" | "count" | "files_with_matches" | undefined;
4040
4104
  }, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
4041
4105
  command: import("zod").ZodString;
4042
4106
  }, import("zod/v4/core").$strip>, {
@@ -4098,5 +4162,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
4098
4162
  }, import("zod/v4/core").$strip>>;
4099
4163
  }, import("zod/v4/core").$strip>, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>, AgentMiddleware<undefined, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents, TStreamTransformers>>;
4100
4164
  //#endregion
4101
- export { createAsyncSubAgentMiddleware as $, BackendRuntime as $t, findProjectRoot as A, BackendProtocolV1 as An, serializeProfile as At, InferDeepAgentSubagents as B, BASE_AGENT_PROMPT as Bt, parseSkillMetadata as C, StateAndStore as Cn, createSubAgentMiddleware as Ct, Settings as D, resolveBackend as Dn, generalPurposeSubagentConfigSchema as Dt, filesValue as E, isSandboxProtocol as En, HarnessProfileConfigData as Et, DeepAgent as F, HarnessProfileOptions as Ft, InferSubagentReactAgentType as G, FsToolName as Gt, InferStructuredResponse as H, SystemPromptConfig as Ht, DeepAgentTypeConfig as I, REQUIRED_MIDDLEWARE_NAMES as It, SupportedResponseFormat as J, FilesystemPermission as Jt, MergedDeepAgentState as K, createFilesystemMiddleware as Kt, DefaultDeepAgentTypeConfig as L, ConfigurationError as Lt, SubagentRunStream$1 as M, createHarnessProfile as Mt, AnySubAgent as N, GeneralPurposeSubagentConfig as Nt, SettingsOptions as O, BackendProtocolV2 as On, harnessProfileConfigSchema as Ot, CreateDeepAgentParams as P, HarnessProfile as Pt, AsyncTaskStatus as Q, BackendProtocol as Qt, ExtractSubAgentMiddleware as R, ConfigurationErrorCode as Rt, listSkills as S, SandboxListResponse as Sn, createSubAgent as St, createAgentMemoryMiddleware as T, isSandboxBackend as Tn, registerHarnessProfile as Tt, InferSubAgentMiddlewareStates as U, TASK_SYSTEM_PROMPT as Ut, InferDeepAgentType as V, EXECUTION_SYSTEM_PROMPT as Vt, InferSubagentByName as W, FilesystemMiddlewareOptions as Wt, AsyncSubAgentMiddlewareOptions as X, AnyBackendProtocol as Xt, AsyncSubAgent as Y, PermissionMode as Yt, AsyncTask as Z, BackendFactory as Zt, StoreBackendContext as _, SandboxError as _n, DEFAULT_SUBAGENT_PROMPT as _t, adaptBackendProtocol as a, FileInfo as an, MAX_SKILL_DESCRIPTION_LENGTH as at, ListSkillsOptions as b, SandboxInfo as bn, SubAgent as bt, LangSmithSandboxCreateOptions as c, GlobResult as cn, SkillMetadata$1 as ct, LocalShellBackend as d, LsResult as dn, MemoryMiddlewareOptions as dt, DeleteResult as en, isAsyncSubAgent as et, LocalShellBackendOptions as f, MaybePromise as fn, createMemoryMiddleware as ft, StoreBackend as g, SandboxDeleteOptions as gn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as gt, FilesystemBackend as h, SandboxBackendProtocol as hn, CompiledSubAgent as ht, LangSmithStartSandboxOptions as i, FileDownloadResponse as in, createCompletionCallbackMiddleware as it, DeepAgentRunStream as j, SandboxBackendProtocolV1 as jn, EMPTY_HARNESS_PROFILE as jt, createSettings as k, SandboxBackendProtocolV2 as kn, parseHarnessProfileConfig as kt, LangSmithSandboxOptions as l, GrepMatch as ln, SkillsMiddlewareOptions as lt, CompositeBackend as m, ReadResult as mn, createPatchToolCallsMiddleware as mt, LangSmithCaptureSnapshotOptions as n, ExecuteResponse as nn, createSummarizationMiddleware as nt, adaptSandboxProtocol as o, FileOperationError as on, MAX_SKILL_FILE_SIZE as ot, ContextHubBackend as p, ReadRawResult as pn, StateBackend as pt, ResolveDeepAgentTypeConfig as q, FilesystemOperation as qt, LangSmithSnapshot as r, FileData as rn, CompletionCallbackOptions as rt, LangSmithSandbox as s, FileUploadResponse as sn, MAX_SKILL_NAME_LENGTH as st, createDeepAgent as t, EditResult as tn, computeSummarizationDefaults as tt, BaseSandbox as u, GrepResult as un, createSkillsMiddleware as ut, StoreBackendNamespaceFactory as v, SandboxErrorCode as vn, GENERAL_PURPOSE_SUBAGENT as vt, AgentMemoryMiddlewareOptions as w, WriteResult as wn, getHarnessProfile as wt, SkillMetadata as x, SandboxListOptions as xn, SubAgentMiddlewareOptions as xt, StoreBackendOptions as y, SandboxGetOrCreateOptions as yn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as yt, FlattenSubAgentMiddleware as z, ASYNC_TASK_SYSTEM_PROMPT as zt };
4102
- //# sourceMappingURL=agent-B2Wfp1cf.d.cts.map
4165
+ export { createAsyncSubAgentMiddleware as $, BackendRuntime as $t, findProjectRoot as A, SandboxBackendProtocolV2 as An, serializeProfile as At, InferDeepAgentSubagents as B, BASE_AGENT_PROMPT as Bt, parseSkillMetadata as C, StateAndStore as Cn, createSubAgentMiddleware as Ct, Settings as D, isSandboxProtocol as Dn, generalPurposeSubagentConfigSchema as Dt, filesValue as E, isSandboxBackend as En, HarnessProfileConfigData as Et, DeepAgent as F, HarnessProfileOptions as Ft, InferSubagentReactAgentType as G, FsToolName as Gt, InferStructuredResponse as H, SystemPromptConfig as Ht, DeepAgentTypeConfig as I, REQUIRED_MIDDLEWARE_NAMES as It, SupportedResponseFormat as J, FilesystemPermission as Jt, MergedDeepAgentState as K, createFilesystemMiddleware as Kt, DefaultDeepAgentTypeConfig as L, ConfigurationError as Lt, SubagentRunStream$1 as M, SandboxBackendProtocolV1 as Mn, createHarnessProfile as Mt, AnySubAgent as N, GeneralPurposeSubagentConfig as Nt, SettingsOptions as O, resolveBackend as On, harnessProfileConfigSchema as Ot, CreateDeepAgentParams as P, HarnessProfile as Pt, AsyncTaskStatus as Q, BackendProtocol as Qt, ExtractSubAgentMiddleware as R, ConfigurationErrorCode as Rt, listSkills as S, SandboxListResponse as Sn, createSubAgent as St, createAgentMemoryMiddleware as T, applyGrepMaxCount as Tn, registerHarnessProfile as Tt, InferSubAgentMiddlewareStates as U, TASK_SYSTEM_PROMPT as Ut, InferDeepAgentType as V, EXECUTION_SYSTEM_PROMPT as Vt, InferSubagentByName as W, FilesystemMiddlewareOptions as Wt, AsyncSubAgentMiddlewareOptions as X, AnyBackendProtocol as Xt, AsyncSubAgent as Y, PermissionMode as Yt, AsyncTask as Z, BackendFactory as Zt, StoreBackendContext as _, SandboxError as _n, DEFAULT_SUBAGENT_PROMPT as _t, adaptBackendProtocol as a, FileInfo as an, MAX_SKILL_DESCRIPTION_LENGTH as at, ListSkillsOptions as b, SandboxInfo as bn, SubAgent as bt, LangSmithSandboxCreateOptions as c, GlobResult as cn, SkillMetadata$1 as ct, LocalShellBackend as d, LsResult as dn, MemoryMiddlewareOptions as dt, DeleteResult as en, isAsyncSubAgent as et, LocalShellBackendOptions as f, MaybePromise as fn, createMemoryMiddleware as ft, StoreBackend as g, SandboxDeleteOptions as gn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as gt, FilesystemBackend as h, SandboxBackendProtocol as hn, CompiledSubAgent as ht, LangSmithStartSandboxOptions as i, FileDownloadResponse as in, createCompletionCallbackMiddleware as it, DeepAgentRunStream as j, BackendProtocolV1 as jn, EMPTY_HARNESS_PROFILE as jt, createSettings as k, BackendProtocolV2 as kn, parseHarnessProfileConfig as kt, LangSmithSandboxOptions as l, GrepMatch as ln, SkillsMiddlewareOptions as lt, CompositeBackend as m, ReadResult as mn, createPatchToolCallsMiddleware as mt, LangSmithCaptureSnapshotOptions as n, ExecuteResponse as nn, createSummarizationMiddleware as nt, adaptSandboxProtocol as o, FileOperationError as on, MAX_SKILL_FILE_SIZE as ot, ContextHubBackend as p, ReadRawResult as pn, StateBackend as pt, ResolveDeepAgentTypeConfig as q, FilesystemOperation as qt, LangSmithSnapshot as r, FileData as rn, CompletionCallbackOptions as rt, LangSmithSandbox as s, FileUploadResponse as sn, MAX_SKILL_NAME_LENGTH as st, createDeepAgent as t, EditResult as tn, computeSummarizationDefaults as tt, BaseSandbox as u, GrepResult as un, createSkillsMiddleware as ut, StoreBackendNamespaceFactory as v, SandboxErrorCode as vn, GENERAL_PURPOSE_SUBAGENT as vt, AgentMemoryMiddlewareOptions as w, WriteResult as wn, getHarnessProfile as wt, SkillMetadata as x, SandboxListOptions as xn, SubAgentMiddlewareOptions as xt, StoreBackendOptions as y, SandboxGetOrCreateOptions as yn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as yt, FlattenSubAgentMiddleware as z, ASYNC_TASK_SYSTEM_PROMPT as zt };
4166
+ //# sourceMappingURL=agent-CKQ2LDaJ.d.cts.map
@@ -196,9 +196,11 @@ interface BackendProtocolV2 extends Omit<BackendProtocolV1, "read" | "readRaw" |
196
196
  * @param pattern - Literal text pattern to search for
197
197
  * @param path - Base path to search from (default: null)
198
198
  * @param glob - Optional glob pattern to filter files (e.g., "*.py")
199
+ * @param maxCount - Optional cap on the total number of matches returned.
200
+ * When the cap is hit, results are flagged `truncated: true`.
199
201
  * @returns GrepResult with matches on success or error on failure
200
202
  */
201
- grep(pattern: string, path?: string | null, glob?: string | null): MaybePromise<GrepResult>;
203
+ grep(pattern: string, path?: string | null, glob?: string | null, maxCount?: number | null): MaybePromise<GrepResult>;
202
204
  /**
203
205
  * Structured glob matching returning FileInfo objects.
204
206
  *
@@ -274,9 +276,28 @@ interface GrepMatch {
274
276
  interface GrepResult {
275
277
  /** Error message on failure, undefined on success */
276
278
  error?: string;
277
- /** Structured grep match entries, undefined on failure */
279
+ /**
280
+ * Structured grep match entries. Populated on success and, when the
281
+ * search was cut short, with whatever was found before stopping.
282
+ * Undefined only on a hard failure.
283
+ */
278
284
  matches?: GrepMatch[];
285
+ /**
286
+ * True when the search stopped early (e.g. hit a match-count cap) and
287
+ * `matches` is therefore incomplete but still valid.
288
+ */
289
+ truncated?: boolean;
279
290
  }
291
+ /**
292
+ * Enforce a match cap after a backend grep has completed.
293
+ *
294
+ * When `maxCount` is set and the result exceeds it, the matches are sliced
295
+ * to the cap and the result is flagged `truncated: true`.
296
+ */
297
+ declare function applyGrepMaxCount(params: {
298
+ result: GrepResult;
299
+ maxCount: number | null | undefined;
300
+ }): GrepResult;
280
301
  /**
281
302
  * Legacy file data format (v1).
282
303
  *
@@ -357,8 +378,17 @@ interface LsResult {
357
378
  interface GlobResult {
358
379
  /** Error message on failure, undefined on success */
359
380
  error?: string;
360
- /** List of FileInfo objects matching the pattern, undefined on failure */
381
+ /**
382
+ * List of FileInfo objects matching the pattern. Populated on success and,
383
+ * when the walk was cut short, with whatever was found before stopping.
384
+ * Undefined only on a hard failure.
385
+ */
361
386
  files?: FileInfo[];
387
+ /**
388
+ * True when the walk stopped early (e.g. hit a time or count limit) and
389
+ * `files` is therefore incomplete but still valid.
390
+ */
391
+ truncated?: boolean;
362
392
  }
363
393
  /**
364
394
  * Result from backend write operations.
@@ -853,6 +883,14 @@ interface FilesystemMiddlewareOptions {
853
883
  * When omitted or empty, all filesystem operations are permitted.
854
884
  */
855
885
  permissions?: FilesystemPermission[];
886
+ /**
887
+ * Default cap on the number of matches the grep tool returns (default: 1000).
888
+ *
889
+ * When the cap is hit, the returned matches are flagged as truncated and a
890
+ * note tells the model to narrow the search. A per-call `max_count` tool
891
+ * argument overrides this default. Set to `null` to disable the cap.
892
+ */
893
+ grepMaxCount?: number | null;
856
894
  }
857
895
  /**
858
896
  * Create middleware that provides built-in filesystem tools and optional custom
@@ -900,14 +938,24 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
900
938
  pattern: z.ZodString;
901
939
  path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
902
940
  glob: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
941
+ max_count: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
942
+ output_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
943
+ content: "content";
944
+ count: "count";
945
+ files_with_matches: "files_with_matches";
946
+ }>>>;
903
947
  }, z.core.$strip>, {
904
948
  pattern: string;
905
949
  path: string;
906
950
  glob: string | null;
951
+ max_count: number | null;
952
+ output_mode: "content" | "count" | "files_with_matches";
907
953
  }, {
908
954
  pattern: string;
909
955
  path?: string | undefined;
910
956
  glob?: string | null | undefined;
957
+ max_count?: number | null | undefined;
958
+ output_mode?: "content" | "count" | "files_with_matches" | undefined;
911
959
  }, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | _langchain.DynamicStructuredTool<z.ZodObject<{
912
960
  command: z.ZodString;
913
961
  }, z.core.$strip>, {
@@ -1755,7 +1803,7 @@ declare class StateBackend implements BackendProtocolV2 {
1755
1803
  * Search file contents for a literal text pattern.
1756
1804
  * Binary files are skipped.
1757
1805
  */
1758
- grep(pattern: string, path?: string, glob?: string | null): GrepResult;
1806
+ grep(pattern: string, path?: string, glob?: string | null, maxCount?: number | null): GrepResult;
1759
1807
  /**
1760
1808
  * Structured glob matching returning FileInfo objects.
1761
1809
  */
@@ -2108,8 +2156,8 @@ interface SummarizationMiddlewareOptions {
2108
2156
  */
2109
2157
  summaryPrompt?: string;
2110
2158
  /**
2111
- * Max tokens to include when generating summary.
2112
- * Defaults to 4000.
2159
+ * Max tokens to include when generating a summary.
2160
+ * If omitted, the complete selected conversation is provided to the summarizer.
2113
2161
  */
2114
2162
  trimTokensToSummarize?: number;
2115
2163
  /**
@@ -3219,7 +3267,7 @@ declare class StoreBackend implements BackendProtocolV2 {
3219
3267
  * Search file contents for a literal text pattern.
3220
3268
  * Binary files are skipped.
3221
3269
  */
3222
- grep(pattern: string, path?: string, glob?: string | null): Promise<GrepResult>;
3270
+ grep(pattern: string, path?: string, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
3223
3271
  /**
3224
3272
  * Structured glob matching returning FileInfo objects.
3225
3273
  */
@@ -3325,9 +3373,11 @@ declare class FilesystemBackend implements BackendProtocolV2 {
3325
3373
  * @param pattern - Literal string to search for (NOT regex).
3326
3374
  * @param dirPath - Directory or file path to search in. Defaults to current directory.
3327
3375
  * @param glob - Optional glob pattern to filter which files to search.
3376
+ * @param maxCount - Optional cap on the total number of matches returned.
3377
+ * When the cap is hit, results are flagged `truncated: true`.
3328
3378
  * @returns List of GrepMatch dicts containing path, line number, and matched text.
3329
3379
  */
3330
- grep(pattern: string, dirPath?: string, glob?: string | null): Promise<GrepResult>;
3380
+ grep(pattern: string, dirPath?: string, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
3331
3381
  /**
3332
3382
  * Search using ripgrep with fixed-string (literal) mode.
3333
3383
  *
@@ -3442,8 +3492,12 @@ declare class CompositeBackend implements BackendProtocolV2 {
3442
3492
  readRaw(filePath: string): Promise<ReadRawResult>;
3443
3493
  /**
3444
3494
  * Structured search results or error string for invalid input.
3495
+ *
3496
+ * @param maxCount - Optional total cap on returned matches across all routed
3497
+ * backends. When the cap is reached, remaining routes are
3498
+ * short-circuited and the result is flagged `truncated: true`.
3445
3499
  */
3446
- grep(pattern: string, path?: string | null, glob?: string | null): Promise<GrepResult>;
3500
+ grep(pattern: string, path?: string | null, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
3447
3501
  /**
3448
3502
  * Structured glob matching returning FileInfo objects.
3449
3503
  */
@@ -3524,7 +3578,7 @@ declare class ContextHubBackend implements BackendProtocolV2 {
3524
3578
  ls(path?: string): Promise<LsResult>;
3525
3579
  read(filePath: string, offset?: number, limit?: number): Promise<ReadResult>;
3526
3580
  readRaw(filePath: string): Promise<ReadRawResult>;
3527
- grep(pattern: string, path?: string | null, glob?: string | null): Promise<GrepResult>;
3581
+ grep(pattern: string, path?: string | null, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
3528
3582
  glob(pattern: string, _path?: string): Promise<GlobResult>;
3529
3583
  write(filePath: string, content: string): Promise<WriteResult>;
3530
3584
  edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
@@ -3777,7 +3831,7 @@ declare abstract class BaseSandbox implements SandboxBackendProtocolV2 {
3777
3831
  * @param glob - Optional glob pattern to filter which files to search.
3778
3832
  * @returns List of GrepMatch dicts containing path, line number, and matched text.
3779
3833
  */
3780
- grep(pattern: string, path?: string, glob?: string | null): Promise<GrepResult>;
3834
+ grep(pattern: string, path?: string, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
3781
3835
  /**
3782
3836
  * Structured glob matching returning FileInfo objects.
3783
3837
  *
@@ -4029,14 +4083,24 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
4029
4083
  pattern: import("zod").ZodString;
4030
4084
  path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
4031
4085
  glob: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
4086
+ max_count: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>>;
4087
+ output_mode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
4088
+ content: "content";
4089
+ count: "count";
4090
+ files_with_matches: "files_with_matches";
4091
+ }>>>;
4032
4092
  }, import("zod/v4/core").$strip>, {
4033
4093
  pattern: string;
4034
4094
  path: string;
4035
4095
  glob: string | null;
4096
+ max_count: number | null;
4097
+ output_mode: "content" | "count" | "files_with_matches";
4036
4098
  }, {
4037
4099
  pattern: string;
4038
4100
  path?: string | undefined;
4039
4101
  glob?: string | null | undefined;
4102
+ max_count?: number | null | undefined;
4103
+ output_mode?: "content" | "count" | "files_with_matches" | undefined;
4040
4104
  }, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
4041
4105
  command: import("zod").ZodString;
4042
4106
  }, import("zod/v4/core").$strip>, {
@@ -4098,5 +4162,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
4098
4162
  }, import("zod/v4/core").$strip>>;
4099
4163
  }, import("zod/v4/core").$strip>, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>, AgentMiddleware<undefined, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents, TStreamTransformers>>;
4100
4164
  //#endregion
4101
- export { createAsyncSubAgentMiddleware as $, BackendRuntime as $t, findProjectRoot as A, BackendProtocolV1 as An, serializeProfile as At, InferDeepAgentSubagents as B, BASE_AGENT_PROMPT as Bt, parseSkillMetadata as C, StateAndStore as Cn, createSubAgentMiddleware as Ct, Settings as D, resolveBackend as Dn, generalPurposeSubagentConfigSchema as Dt, filesValue as E, isSandboxProtocol as En, HarnessProfileConfigData as Et, DeepAgent as F, HarnessProfileOptions as Ft, InferSubagentReactAgentType as G, FsToolName as Gt, InferStructuredResponse as H, SystemPromptConfig as Ht, DeepAgentTypeConfig as I, REQUIRED_MIDDLEWARE_NAMES as It, SupportedResponseFormat as J, FilesystemPermission as Jt, MergedDeepAgentState as K, createFilesystemMiddleware as Kt, DefaultDeepAgentTypeConfig as L, ConfigurationError as Lt, SubagentRunStream$1 as M, createHarnessProfile as Mt, AnySubAgent as N, GeneralPurposeSubagentConfig as Nt, SettingsOptions as O, BackendProtocolV2 as On, harnessProfileConfigSchema as Ot, CreateDeepAgentParams as P, HarnessProfile as Pt, AsyncTaskStatus as Q, BackendProtocol as Qt, ExtractSubAgentMiddleware as R, ConfigurationErrorCode as Rt, listSkills as S, SandboxListResponse as Sn, createSubAgent as St, createAgentMemoryMiddleware as T, isSandboxBackend as Tn, registerHarnessProfile as Tt, InferSubAgentMiddlewareStates as U, TASK_SYSTEM_PROMPT as Ut, InferDeepAgentType as V, EXECUTION_SYSTEM_PROMPT as Vt, InferSubagentByName as W, FilesystemMiddlewareOptions as Wt, AsyncSubAgentMiddlewareOptions as X, AnyBackendProtocol as Xt, AsyncSubAgent as Y, PermissionMode as Yt, AsyncTask as Z, BackendFactory as Zt, StoreBackendContext as _, SandboxError as _n, DEFAULT_SUBAGENT_PROMPT as _t, adaptBackendProtocol as a, FileInfo as an, MAX_SKILL_DESCRIPTION_LENGTH as at, ListSkillsOptions as b, SandboxInfo as bn, SubAgent as bt, LangSmithSandboxCreateOptions as c, GlobResult as cn, SkillMetadata$1 as ct, LocalShellBackend as d, LsResult as dn, MemoryMiddlewareOptions as dt, DeleteResult as en, isAsyncSubAgent as et, LocalShellBackendOptions as f, MaybePromise as fn, createMemoryMiddleware as ft, StoreBackend as g, SandboxDeleteOptions as gn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as gt, FilesystemBackend as h, SandboxBackendProtocol as hn, CompiledSubAgent as ht, LangSmithStartSandboxOptions as i, FileDownloadResponse as in, createCompletionCallbackMiddleware as it, DeepAgentRunStream as j, SandboxBackendProtocolV1 as jn, EMPTY_HARNESS_PROFILE as jt, createSettings as k, SandboxBackendProtocolV2 as kn, parseHarnessProfileConfig as kt, LangSmithSandboxOptions as l, GrepMatch as ln, SkillsMiddlewareOptions as lt, CompositeBackend as m, ReadResult as mn, createPatchToolCallsMiddleware as mt, LangSmithCaptureSnapshotOptions as n, ExecuteResponse as nn, createSummarizationMiddleware as nt, adaptSandboxProtocol as o, FileOperationError as on, MAX_SKILL_FILE_SIZE as ot, ContextHubBackend as p, ReadRawResult as pn, StateBackend as pt, ResolveDeepAgentTypeConfig as q, FilesystemOperation as qt, LangSmithSnapshot as r, FileData as rn, CompletionCallbackOptions as rt, LangSmithSandbox as s, FileUploadResponse as sn, MAX_SKILL_NAME_LENGTH as st, createDeepAgent as t, EditResult as tn, computeSummarizationDefaults as tt, BaseSandbox as u, GrepResult as un, createSkillsMiddleware as ut, StoreBackendNamespaceFactory as v, SandboxErrorCode as vn, GENERAL_PURPOSE_SUBAGENT as vt, AgentMemoryMiddlewareOptions as w, WriteResult as wn, getHarnessProfile as wt, SkillMetadata as x, SandboxListOptions as xn, SubAgentMiddlewareOptions as xt, StoreBackendOptions as y, SandboxGetOrCreateOptions as yn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as yt, FlattenSubAgentMiddleware as z, ASYNC_TASK_SYSTEM_PROMPT as zt };
4102
- //# sourceMappingURL=agent-C_iR-pdx.d.ts.map
4165
+ export { createAsyncSubAgentMiddleware as $, BackendRuntime as $t, findProjectRoot as A, SandboxBackendProtocolV2 as An, serializeProfile as At, InferDeepAgentSubagents as B, BASE_AGENT_PROMPT as Bt, parseSkillMetadata as C, StateAndStore as Cn, createSubAgentMiddleware as Ct, Settings as D, isSandboxProtocol as Dn, generalPurposeSubagentConfigSchema as Dt, filesValue as E, isSandboxBackend as En, HarnessProfileConfigData as Et, DeepAgent as F, HarnessProfileOptions as Ft, InferSubagentReactAgentType as G, FsToolName as Gt, InferStructuredResponse as H, SystemPromptConfig as Ht, DeepAgentTypeConfig as I, REQUIRED_MIDDLEWARE_NAMES as It, SupportedResponseFormat as J, FilesystemPermission as Jt, MergedDeepAgentState as K, createFilesystemMiddleware as Kt, DefaultDeepAgentTypeConfig as L, ConfigurationError as Lt, SubagentRunStream$1 as M, SandboxBackendProtocolV1 as Mn, createHarnessProfile as Mt, AnySubAgent as N, GeneralPurposeSubagentConfig as Nt, SettingsOptions as O, resolveBackend as On, harnessProfileConfigSchema as Ot, CreateDeepAgentParams as P, HarnessProfile as Pt, AsyncTaskStatus as Q, BackendProtocol as Qt, ExtractSubAgentMiddleware as R, ConfigurationErrorCode as Rt, listSkills as S, SandboxListResponse as Sn, createSubAgent as St, createAgentMemoryMiddleware as T, applyGrepMaxCount as Tn, registerHarnessProfile as Tt, InferSubAgentMiddlewareStates as U, TASK_SYSTEM_PROMPT as Ut, InferDeepAgentType as V, EXECUTION_SYSTEM_PROMPT as Vt, InferSubagentByName as W, FilesystemMiddlewareOptions as Wt, AsyncSubAgentMiddlewareOptions as X, AnyBackendProtocol as Xt, AsyncSubAgent as Y, PermissionMode as Yt, AsyncTask as Z, BackendFactory as Zt, StoreBackendContext as _, SandboxError as _n, DEFAULT_SUBAGENT_PROMPT as _t, adaptBackendProtocol as a, FileInfo as an, MAX_SKILL_DESCRIPTION_LENGTH as at, ListSkillsOptions as b, SandboxInfo as bn, SubAgent as bt, LangSmithSandboxCreateOptions as c, GlobResult as cn, SkillMetadata$1 as ct, LocalShellBackend as d, LsResult as dn, MemoryMiddlewareOptions as dt, DeleteResult as en, isAsyncSubAgent as et, LocalShellBackendOptions as f, MaybePromise as fn, createMemoryMiddleware as ft, StoreBackend as g, SandboxDeleteOptions as gn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as gt, FilesystemBackend as h, SandboxBackendProtocol as hn, CompiledSubAgent as ht, LangSmithStartSandboxOptions as i, FileDownloadResponse as in, createCompletionCallbackMiddleware as it, DeepAgentRunStream as j, BackendProtocolV1 as jn, EMPTY_HARNESS_PROFILE as jt, createSettings as k, BackendProtocolV2 as kn, parseHarnessProfileConfig as kt, LangSmithSandboxOptions as l, GrepMatch as ln, SkillsMiddlewareOptions as lt, CompositeBackend as m, ReadResult as mn, createPatchToolCallsMiddleware as mt, LangSmithCaptureSnapshotOptions as n, ExecuteResponse as nn, createSummarizationMiddleware as nt, adaptSandboxProtocol as o, FileOperationError as on, MAX_SKILL_FILE_SIZE as ot, ContextHubBackend as p, ReadRawResult as pn, StateBackend as pt, ResolveDeepAgentTypeConfig as q, FilesystemOperation as qt, LangSmithSnapshot as r, FileData as rn, CompletionCallbackOptions as rt, LangSmithSandbox as s, FileUploadResponse as sn, MAX_SKILL_NAME_LENGTH as st, createDeepAgent as t, EditResult as tn, computeSummarizationDefaults as tt, BaseSandbox as u, GrepResult as un, createSkillsMiddleware as ut, StoreBackendNamespaceFactory as v, SandboxErrorCode as vn, GENERAL_PURPOSE_SUBAGENT as vt, AgentMemoryMiddlewareOptions as w, WriteResult as wn, getHarnessProfile as wt, SkillMetadata as x, SandboxListOptions as xn, SubAgentMiddlewareOptions as xt, StoreBackendOptions as y, SandboxGetOrCreateOptions as yn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as yt, FlattenSubAgentMiddleware as z, ASYNC_TASK_SYSTEM_PROMPT as zt };
4166
+ //# sourceMappingURL=agent-JA9TGZlt.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-DdOXam6Z.cjs");
2
+ const require_langsmith = require("./langsmith-Bjhs2iT_.cjs");
3
3
  exports.ASYNC_TASK_SYSTEM_PROMPT = require_langsmith.ASYNC_TASK_SYSTEM_PROMPT;
4
4
  exports.BASE_AGENT_PROMPT = require_langsmith.BASE_AGENT_PROMPT;
5
5
  exports.BaseSandbox = require_langsmith.BaseSandbox;
@@ -1,3 +1,3 @@
1
- import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, An as BackendProtocolV1, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, Cn as StateAndStore, Ct as createSubAgentMiddleware, Dn as resolveBackend, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxProtocol, Et as HarnessProfileConfigData, F as DeepAgent, Ft as HarnessProfileOptions, G as InferSubagentReactAgentType, Gt as FsToolName, H as InferStructuredResponse, Ht as SystemPromptConfig, I as DeepAgentTypeConfig, It as REQUIRED_MIDDLEWARE_NAMES, J as SupportedResponseFormat, Jt as FilesystemPermission, K as MergedDeepAgentState, Kt as createFilesystemMiddleware, L as DefaultDeepAgentTypeConfig, Lt as ConfigurationError, M as SubagentRunStream, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, On as BackendProtocolV2, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, Sn as SandboxListResponse, Tn as isSandboxBackend, Tt as registerHarnessProfile, U as InferSubAgentMiddlewareStates, Ut as TASK_SYSTEM_PROMPT, V as InferDeepAgentType, Vt as EXECUTION_SYSTEM_PROMPT, W as InferSubagentByName, Wt as FilesystemMiddlewareOptions, X as AsyncSubAgentMiddlewareOptions, Xt as AnyBackendProtocol, Y as AsyncSubAgent, Yt as PermissionMode, Z as AsyncTask, Zt as BackendFactory, _ as StoreBackendContext, _n as SandboxError, _t as DEFAULT_SUBAGENT_PROMPT, a as adaptBackendProtocol, an as FileInfo, at as MAX_SKILL_DESCRIPTION_LENGTH, bn as SandboxInfo, bt as SubAgent, c as LangSmithSandboxCreateOptions, cn as GlobResult, ct as SkillMetadata, dn as LsResult, dt as MemoryMiddlewareOptions, en as DeleteResult, et as isAsyncSubAgent, fn as MaybePromise, ft as createMemoryMiddleware, g as StoreBackend, gn as SandboxDeleteOptions, gt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, hn as SandboxBackendProtocol, ht as CompiledSubAgent, in as FileDownloadResponse, it as createCompletionCallbackMiddleware, j as DeepAgentRunStream, jn as SandboxBackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, kn as SandboxBackendProtocolV2, kt as parseHarnessProfileConfig, l as LangSmithSandboxOptions, ln as GrepMatch, lt as SkillsMiddlewareOptions, m as CompositeBackend, mn as ReadResult, mt as createPatchToolCallsMiddleware, nn as ExecuteResponse, nt as createSummarizationMiddleware, o as adaptSandboxProtocol, on as FileOperationError, ot as MAX_SKILL_FILE_SIZE, p as ContextHubBackend, pn as ReadRawResult, pt as StateBackend, q as ResolveDeepAgentTypeConfig, qt as FilesystemOperation, rn as FileData, rt as CompletionCallbackOptions, s as LangSmithSandbox, sn as FileUploadResponse, st as MAX_SKILL_NAME_LENGTH, t as createDeepAgent, tn as EditResult, tt as computeSummarizationDefaults, u as BaseSandbox, un as GrepResult, ut as createSkillsMiddleware, v as StoreBackendNamespaceFactory, vn as SandboxErrorCode, vt as GENERAL_PURPOSE_SUBAGENT, wn as WriteResult, wt as getHarnessProfile, xn as SandboxListOptions, xt as SubAgentMiddlewareOptions, y as StoreBackendOptions, yn as SandboxGetOrCreateOptions, z as FlattenSubAgentMiddleware, zt as ASYNC_TASK_SYSTEM_PROMPT } from "./agent-B2Wfp1cf.cjs";
1
+ import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, An as SandboxBackendProtocolV2, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, Cn as StateAndStore, Ct as createSubAgentMiddleware, Dn as isSandboxProtocol, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxBackend, Et as HarnessProfileConfigData, F as DeepAgent, Ft as HarnessProfileOptions, G as InferSubagentReactAgentType, Gt as FsToolName, H as InferStructuredResponse, Ht as SystemPromptConfig, I as DeepAgentTypeConfig, It as REQUIRED_MIDDLEWARE_NAMES, J as SupportedResponseFormat, Jt as FilesystemPermission, K as MergedDeepAgentState, Kt as createFilesystemMiddleware, L as DefaultDeepAgentTypeConfig, Lt as ConfigurationError, M as SubagentRunStream, Mn as SandboxBackendProtocolV1, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, On as resolveBackend, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, Sn as SandboxListResponse, Tt as registerHarnessProfile, U as InferSubAgentMiddlewareStates, Ut as TASK_SYSTEM_PROMPT, V as InferDeepAgentType, Vt as EXECUTION_SYSTEM_PROMPT, W as InferSubagentByName, Wt as FilesystemMiddlewareOptions, X as AsyncSubAgentMiddlewareOptions, Xt as AnyBackendProtocol, Y as AsyncSubAgent, Yt as PermissionMode, Z as AsyncTask, Zt as BackendFactory, _ as StoreBackendContext, _n as SandboxError, _t as DEFAULT_SUBAGENT_PROMPT, a as adaptBackendProtocol, an as FileInfo, at as MAX_SKILL_DESCRIPTION_LENGTH, bn as SandboxInfo, bt as SubAgent, c as LangSmithSandboxCreateOptions, cn as GlobResult, ct as SkillMetadata, dn as LsResult, dt as MemoryMiddlewareOptions, en as DeleteResult, et as isAsyncSubAgent, fn as MaybePromise, ft as createMemoryMiddleware, g as StoreBackend, gn as SandboxDeleteOptions, gt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, hn as SandboxBackendProtocol, ht as CompiledSubAgent, in as FileDownloadResponse, it as createCompletionCallbackMiddleware, j as DeepAgentRunStream, jn as BackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, kn as BackendProtocolV2, kt as parseHarnessProfileConfig, l as LangSmithSandboxOptions, ln as GrepMatch, lt as SkillsMiddlewareOptions, m as CompositeBackend, mn as ReadResult, mt as createPatchToolCallsMiddleware, nn as ExecuteResponse, nt as createSummarizationMiddleware, o as adaptSandboxProtocol, on as FileOperationError, ot as MAX_SKILL_FILE_SIZE, p as ContextHubBackend, pn as ReadRawResult, pt as StateBackend, q as ResolveDeepAgentTypeConfig, qt as FilesystemOperation, rn as FileData, rt as CompletionCallbackOptions, s as LangSmithSandbox, sn as FileUploadResponse, st as MAX_SKILL_NAME_LENGTH, t as createDeepAgent, tn as EditResult, tt as computeSummarizationDefaults, u as BaseSandbox, un as GrepResult, ut as createSkillsMiddleware, v as StoreBackendNamespaceFactory, vn as SandboxErrorCode, vt as GENERAL_PURPOSE_SUBAGENT, wn as WriteResult, wt as getHarnessProfile, xn as SandboxListOptions, xt as SubAgentMiddlewareOptions, y as StoreBackendOptions, yn as SandboxGetOrCreateOptions, z as FlattenSubAgentMiddleware, zt as ASYNC_TASK_SYSTEM_PROMPT } from "./agent-CKQ2LDaJ.cjs";
2
2
  import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
3
3
  export { ASYNC_TASK_SYSTEM_PROMPT, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type SkillMetadata, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, registerHarnessProfile, resolveBackend, serializeProfile };
package/dist/browser.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, An as BackendProtocolV1, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, Cn as StateAndStore, Ct as createSubAgentMiddleware, Dn as resolveBackend, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxProtocol, Et as HarnessProfileConfigData, F as DeepAgent, Ft as HarnessProfileOptions, G as InferSubagentReactAgentType, Gt as FsToolName, H as InferStructuredResponse, Ht as SystemPromptConfig, I as DeepAgentTypeConfig, It as REQUIRED_MIDDLEWARE_NAMES, J as SupportedResponseFormat, Jt as FilesystemPermission, K as MergedDeepAgentState, Kt as createFilesystemMiddleware, L as DefaultDeepAgentTypeConfig, Lt as ConfigurationError, M as SubagentRunStream, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, On as BackendProtocolV2, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, Sn as SandboxListResponse, Tn as isSandboxBackend, Tt as registerHarnessProfile, U as InferSubAgentMiddlewareStates, Ut as TASK_SYSTEM_PROMPT, V as InferDeepAgentType, Vt as EXECUTION_SYSTEM_PROMPT, W as InferSubagentByName, Wt as FilesystemMiddlewareOptions, X as AsyncSubAgentMiddlewareOptions, Xt as AnyBackendProtocol, Y as AsyncSubAgent, Yt as PermissionMode, Z as AsyncTask, Zt as BackendFactory, _ as StoreBackendContext, _n as SandboxError, _t as DEFAULT_SUBAGENT_PROMPT, a as adaptBackendProtocol, an as FileInfo, at as MAX_SKILL_DESCRIPTION_LENGTH, bn as SandboxInfo, bt as SubAgent, c as LangSmithSandboxCreateOptions, cn as GlobResult, ct as SkillMetadata, dn as LsResult, dt as MemoryMiddlewareOptions, en as DeleteResult, et as isAsyncSubAgent, fn as MaybePromise, ft as createMemoryMiddleware, g as StoreBackend, gn as SandboxDeleteOptions, gt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, hn as SandboxBackendProtocol, ht as CompiledSubAgent, in as FileDownloadResponse, it as createCompletionCallbackMiddleware, j as DeepAgentRunStream, jn as SandboxBackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, kn as SandboxBackendProtocolV2, kt as parseHarnessProfileConfig, l as LangSmithSandboxOptions, ln as GrepMatch, lt as SkillsMiddlewareOptions, m as CompositeBackend, mn as ReadResult, mt as createPatchToolCallsMiddleware, nn as ExecuteResponse, nt as createSummarizationMiddleware, o as adaptSandboxProtocol, on as FileOperationError, ot as MAX_SKILL_FILE_SIZE, p as ContextHubBackend, pn as ReadRawResult, pt as StateBackend, q as ResolveDeepAgentTypeConfig, qt as FilesystemOperation, rn as FileData, rt as CompletionCallbackOptions, s as LangSmithSandbox, sn as FileUploadResponse, st as MAX_SKILL_NAME_LENGTH, t as createDeepAgent, tn as EditResult, tt as computeSummarizationDefaults, u as BaseSandbox, un as GrepResult, ut as createSkillsMiddleware, v as StoreBackendNamespaceFactory, vn as SandboxErrorCode, vt as GENERAL_PURPOSE_SUBAGENT, wn as WriteResult, wt as getHarnessProfile, xn as SandboxListOptions, xt as SubAgentMiddlewareOptions, y as StoreBackendOptions, yn as SandboxGetOrCreateOptions, z as FlattenSubAgentMiddleware, zt as ASYNC_TASK_SYSTEM_PROMPT } from "./agent-C_iR-pdx.js";
1
+ import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, An as SandboxBackendProtocolV2, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, Cn as StateAndStore, Ct as createSubAgentMiddleware, Dn as isSandboxProtocol, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxBackend, Et as HarnessProfileConfigData, F as DeepAgent, Ft as HarnessProfileOptions, G as InferSubagentReactAgentType, Gt as FsToolName, H as InferStructuredResponse, Ht as SystemPromptConfig, I as DeepAgentTypeConfig, It as REQUIRED_MIDDLEWARE_NAMES, J as SupportedResponseFormat, Jt as FilesystemPermission, K as MergedDeepAgentState, Kt as createFilesystemMiddleware, L as DefaultDeepAgentTypeConfig, Lt as ConfigurationError, M as SubagentRunStream, Mn as SandboxBackendProtocolV1, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, On as resolveBackend, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, Sn as SandboxListResponse, Tt as registerHarnessProfile, U as InferSubAgentMiddlewareStates, Ut as TASK_SYSTEM_PROMPT, V as InferDeepAgentType, Vt as EXECUTION_SYSTEM_PROMPT, W as InferSubagentByName, Wt as FilesystemMiddlewareOptions, X as AsyncSubAgentMiddlewareOptions, Xt as AnyBackendProtocol, Y as AsyncSubAgent, Yt as PermissionMode, Z as AsyncTask, Zt as BackendFactory, _ as StoreBackendContext, _n as SandboxError, _t as DEFAULT_SUBAGENT_PROMPT, a as adaptBackendProtocol, an as FileInfo, at as MAX_SKILL_DESCRIPTION_LENGTH, bn as SandboxInfo, bt as SubAgent, c as LangSmithSandboxCreateOptions, cn as GlobResult, ct as SkillMetadata, dn as LsResult, dt as MemoryMiddlewareOptions, en as DeleteResult, et as isAsyncSubAgent, fn as MaybePromise, ft as createMemoryMiddleware, g as StoreBackend, gn as SandboxDeleteOptions, gt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, hn as SandboxBackendProtocol, ht as CompiledSubAgent, in as FileDownloadResponse, it as createCompletionCallbackMiddleware, j as DeepAgentRunStream, jn as BackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, kn as BackendProtocolV2, kt as parseHarnessProfileConfig, l as LangSmithSandboxOptions, ln as GrepMatch, lt as SkillsMiddlewareOptions, m as CompositeBackend, mn as ReadResult, mt as createPatchToolCallsMiddleware, nn as ExecuteResponse, nt as createSummarizationMiddleware, o as adaptSandboxProtocol, on as FileOperationError, ot as MAX_SKILL_FILE_SIZE, p as ContextHubBackend, pn as ReadRawResult, pt as StateBackend, q as ResolveDeepAgentTypeConfig, qt as FilesystemOperation, rn as FileData, rt as CompletionCallbackOptions, s as LangSmithSandbox, sn as FileUploadResponse, st as MAX_SKILL_NAME_LENGTH, t as createDeepAgent, tn as EditResult, tt as computeSummarizationDefaults, u as BaseSandbox, un as GrepResult, ut as createSkillsMiddleware, v as StoreBackendNamespaceFactory, vn as SandboxErrorCode, vt as GENERAL_PURPOSE_SUBAGENT, wn as WriteResult, wt as getHarnessProfile, xn as SandboxListOptions, xt as SubAgentMiddlewareOptions, y as StoreBackendOptions, yn as SandboxGetOrCreateOptions, z as FlattenSubAgentMiddleware, zt as ASYNC_TASK_SYSTEM_PROMPT } from "./agent-JA9TGZlt.js";
2
2
  import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
3
3
  export { ASYNC_TASK_SYSTEM_PROMPT, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, type SandboxDeleteOptions, SandboxError, type SandboxErrorCode, type SandboxGetOrCreateOptions, type SandboxInfo, type SandboxListOptions, type SandboxListResponse, type SkillMetadata, type SkillsMiddlewareOptions, type StateAndStore, StateBackend, StoreBackend, type StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, registerHarnessProfile, resolveBackend, serializeProfile };
package/dist/browser.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as filesValue, B as StateBackend, C as createSummarizationMiddleware, D as MAX_SKILL_NAME_LENGTH, E as MAX_SKILL_FILE_SIZE, G as adaptBackendProtocol, H as isSandboxBackend, K as adaptSandboxProtocol, L as createSubAgentMiddleware, M as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, N as DEFAULT_SUBAGENT_PROMPT, O as createSkillsMiddleware, P as GENERAL_PURPOSE_SUBAGENT, R as createFilesystemMiddleware, S as computeSummarizationDefaults, T as MAX_SKILL_DESCRIPTION_LENGTH, U as isSandboxProtocol, V as SandboxError, W as resolveBackend, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as createAsyncSubAgentMiddleware, c as TASK_SYSTEM_PROMPT, d as registerHarnessProfile, f as generalPurposeSubagentConfigSchema, g as EMPTY_HARNESS_PROFILE, h as serializeProfile, i as StoreBackend, j as createPatchToolCallsMiddleware, k as createMemoryMiddleware, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as createCompletionCallbackMiddleware, x as isAsyncSubAgent, y as ConfigurationError, z as CompositeBackend } from "./langsmith-DgbmWtWj.js";
1
+ import { A as filesValue, B as StateBackend, C as createSummarizationMiddleware, D as MAX_SKILL_NAME_LENGTH, E as MAX_SKILL_FILE_SIZE, G as resolveBackend, K as adaptBackendProtocol, L as createSubAgentMiddleware, M as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, N as DEFAULT_SUBAGENT_PROMPT, O as createSkillsMiddleware, P as GENERAL_PURPOSE_SUBAGENT, R as createFilesystemMiddleware, S as computeSummarizationDefaults, T as MAX_SKILL_DESCRIPTION_LENGTH, U as isSandboxBackend, V as SandboxError, W as isSandboxProtocol, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as createAsyncSubAgentMiddleware, c as TASK_SYSTEM_PROMPT, d as registerHarnessProfile, f as generalPurposeSubagentConfigSchema, g as EMPTY_HARNESS_PROFILE, h as serializeProfile, i as StoreBackend, j as createPatchToolCallsMiddleware, k as createMemoryMiddleware, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, q as adaptSandboxProtocol, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as createCompletionCallbackMiddleware, x as isAsyncSubAgent, y as ConfigurationError, z as CompositeBackend } from "./langsmith-CUTUAjHo.js";
2
2
  export { ASYNC_TASK_SYSTEM_PROMPT, BASE_AGENT_PROMPT, BaseSandbox, CompositeBackend, ConfigurationError, ContextHubBackend, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, GENERAL_PURPOSE_SUBAGENT, LangSmithSandbox, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, REQUIRED_MIDDLEWARE_NAMES, SandboxError, StateBackend, StoreBackend, TASK_SYSTEM_PROMPT, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSkillsMiddleware, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, parseHarnessProfileConfig, registerHarnessProfile, resolveBackend, serializeProfile };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_langsmith = require("./langsmith-DdOXam6Z.cjs");
3
- const require_src = require("./src-BApYUljI.cjs");
2
+ const require_langsmith = require("./langsmith-Bjhs2iT_.cjs");
3
+ const require_src = require("./src-Dc8werER.cjs");
4
4
  exports.ASYNC_TASK_SYSTEM_PROMPT = require_langsmith.ASYNC_TASK_SYSTEM_PROMPT;
5
5
  exports.BASE_AGENT_PROMPT = require_langsmith.BASE_AGENT_PROMPT;
6
6
  exports.BaseSandbox = require_langsmith.BaseSandbox;
@@ -26,6 +26,7 @@ exports.StoreBackend = require_langsmith.StoreBackend;
26
26
  exports.TASK_SYSTEM_PROMPT = require_langsmith.TASK_SYSTEM_PROMPT;
27
27
  exports.adaptBackendProtocol = require_langsmith.adaptBackendProtocol;
28
28
  exports.adaptSandboxProtocol = require_langsmith.adaptSandboxProtocol;
29
+ exports.applyGrepMaxCount = require_langsmith.applyGrepMaxCount;
29
30
  exports.computeSummarizationDefaults = require_langsmith.computeSummarizationDefaults;
30
31
  exports.createAgentMemoryMiddleware = require_src.createAgentMemoryMiddleware;
31
32
  exports.createAsyncSubAgentMiddleware = require_langsmith.createAsyncSubAgentMiddleware;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, A as findProjectRoot, An as BackendProtocolV1, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, C as parseSkillMetadata, Cn as StateAndStore, Ct as createSubAgentMiddleware, D as Settings, Dn as resolveBackend, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxProtocol, Et as HarnessProfileConfigData, F as DeepAgent, Ft as HarnessProfileOptions, G as InferSubagentReactAgentType, Gt as FsToolName, H as InferStructuredResponse, Ht as SystemPromptConfig, I as DeepAgentTypeConfig, It as REQUIRED_MIDDLEWARE_NAMES, J as SupportedResponseFormat, Jt as FilesystemPermission, K as MergedDeepAgentState, Kt as createFilesystemMiddleware, L as DefaultDeepAgentTypeConfig, Lt as ConfigurationError, M as SubagentRunStream, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, O as SettingsOptions, On as BackendProtocolV2, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, S as listSkills, Sn as SandboxListResponse, St as createSubAgent, T as createAgentMemoryMiddleware, Tn as isSandboxBackend, Tt as registerHarnessProfile, U as InferSubAgentMiddlewareStates, Ut as TASK_SYSTEM_PROMPT, V as InferDeepAgentType, Vt as EXECUTION_SYSTEM_PROMPT, W as InferSubagentByName, Wt as FilesystemMiddlewareOptions, X as AsyncSubAgentMiddlewareOptions, Xt as AnyBackendProtocol, Y as AsyncSubAgent, Yt as PermissionMode, Z as AsyncTask, Zt as BackendFactory, _ as StoreBackendContext, _n as SandboxError, _t as DEFAULT_SUBAGENT_PROMPT, a as adaptBackendProtocol, an as FileInfo, at as MAX_SKILL_DESCRIPTION_LENGTH, b as ListSkillsOptions, bn as SandboxInfo, bt as SubAgent, c as LangSmithSandboxCreateOptions, cn as GlobResult, ct as SkillMetadata$1, d as LocalShellBackend, dn as LsResult, dt as MemoryMiddlewareOptions, en as DeleteResult, et as isAsyncSubAgent, f as LocalShellBackendOptions, fn as MaybePromise, ft as createMemoryMiddleware, g as StoreBackend, gn as SandboxDeleteOptions, gt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, h as FilesystemBackend, hn as SandboxBackendProtocol, ht as CompiledSubAgent, i as LangSmithStartSandboxOptions, in as FileDownloadResponse, it as createCompletionCallbackMiddleware, j as DeepAgentRunStream, jn as SandboxBackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, k as createSettings, kn as SandboxBackendProtocolV2, kt as parseHarnessProfileConfig, l as LangSmithSandboxOptions, ln as GrepMatch, lt as SkillsMiddlewareOptions, m as CompositeBackend, mn as ReadResult, mt as createPatchToolCallsMiddleware, n as LangSmithCaptureSnapshotOptions, nn as ExecuteResponse, nt as createSummarizationMiddleware, o as adaptSandboxProtocol, on as FileOperationError, ot as MAX_SKILL_FILE_SIZE, p as ContextHubBackend, pn as ReadRawResult, pt as StateBackend, q as ResolveDeepAgentTypeConfig, qt as FilesystemOperation, r as LangSmithSnapshot, rn as FileData, rt as CompletionCallbackOptions, s as LangSmithSandbox, sn as FileUploadResponse, st as MAX_SKILL_NAME_LENGTH, t as createDeepAgent, tn as EditResult, tt as computeSummarizationDefaults, u as BaseSandbox, un as GrepResult, ut as createSkillsMiddleware, v as StoreBackendNamespaceFactory, vn as SandboxErrorCode, vt as GENERAL_PURPOSE_SUBAGENT, w as AgentMemoryMiddlewareOptions, wn as WriteResult, wt as getHarnessProfile, x as SkillMetadata, xn as SandboxListOptions, xt as SubAgentMiddlewareOptions, y as StoreBackendOptions, yn as SandboxGetOrCreateOptions, yt as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, z as FlattenSubAgentMiddleware, zt as ASYNC_TASK_SYSTEM_PROMPT } from "./agent-B2Wfp1cf.cjs";
2
- export { ASYNC_TASK_SYSTEM_PROMPT, type AgentMemoryMiddlewareOptions, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, FilesystemBackend, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, 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 StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgent, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, parseHarnessProfileConfig, parseSkillMetadata, registerHarnessProfile, resolveBackend, serializeProfile };
1
+ import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, A as findProjectRoot, An as SandboxBackendProtocolV2, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, C as parseSkillMetadata, Cn as StateAndStore, Ct as createSubAgentMiddleware, D as Settings, Dn as isSandboxProtocol, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxBackend, Et as HarnessProfileConfigData, F as DeepAgent, Ft as HarnessProfileOptions, G as InferSubagentReactAgentType, Gt as FsToolName, H as InferStructuredResponse, Ht as SystemPromptConfig, I as DeepAgentTypeConfig, It as REQUIRED_MIDDLEWARE_NAMES, J as SupportedResponseFormat, Jt as FilesystemPermission, K as MergedDeepAgentState, Kt as createFilesystemMiddleware, L as DefaultDeepAgentTypeConfig, Lt as ConfigurationError, M as SubagentRunStream, Mn as SandboxBackendProtocolV1, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, O as SettingsOptions, On as resolveBackend, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, S as listSkills, Sn as SandboxListResponse, St as createSubAgent, T as createAgentMemoryMiddleware, Tn as applyGrepMaxCount, Tt as registerHarnessProfile, U as InferSubAgentMiddlewareStates, Ut as TASK_SYSTEM_PROMPT, V as InferDeepAgentType, Vt as EXECUTION_SYSTEM_PROMPT, W as InferSubagentByName, Wt as FilesystemMiddlewareOptions, X as AsyncSubAgentMiddlewareOptions, Xt as AnyBackendProtocol, Y as AsyncSubAgent, Yt as PermissionMode, Z as AsyncTask, Zt as BackendFactory, _ as StoreBackendContext, _n as SandboxError, _t as DEFAULT_SUBAGENT_PROMPT, a as adaptBackendProtocol, an as FileInfo, at as MAX_SKILL_DESCRIPTION_LENGTH, b as ListSkillsOptions, bn as SandboxInfo, bt as SubAgent, c as LangSmithSandboxCreateOptions, cn as GlobResult, ct as SkillMetadata$1, d as LocalShellBackend, dn as LsResult, dt as MemoryMiddlewareOptions, en as DeleteResult, et as isAsyncSubAgent, f as LocalShellBackendOptions, fn as MaybePromise, ft as createMemoryMiddleware, g as StoreBackend, gn as SandboxDeleteOptions, gt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, h as FilesystemBackend, hn as SandboxBackendProtocol, ht as CompiledSubAgent, i as LangSmithStartSandboxOptions, in as FileDownloadResponse, it as createCompletionCallbackMiddleware, j as DeepAgentRunStream, jn as BackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, k as createSettings, kn as BackendProtocolV2, kt as parseHarnessProfileConfig, l as LangSmithSandboxOptions, ln as GrepMatch, lt as SkillsMiddlewareOptions, m as CompositeBackend, mn as ReadResult, mt as createPatchToolCallsMiddleware, n as LangSmithCaptureSnapshotOptions, nn as ExecuteResponse, nt as createSummarizationMiddleware, o as adaptSandboxProtocol, on as FileOperationError, ot as MAX_SKILL_FILE_SIZE, p as ContextHubBackend, pn as ReadRawResult, pt as StateBackend, q as ResolveDeepAgentTypeConfig, qt as FilesystemOperation, r as LangSmithSnapshot, rn as FileData, rt as CompletionCallbackOptions, s as LangSmithSandbox, sn as FileUploadResponse, st as MAX_SKILL_NAME_LENGTH, t as createDeepAgent, tn as EditResult, tt as computeSummarizationDefaults, u as BaseSandbox, un as GrepResult, ut as createSkillsMiddleware, v as StoreBackendNamespaceFactory, vn as SandboxErrorCode, vt as GENERAL_PURPOSE_SUBAGENT, w as AgentMemoryMiddlewareOptions, wn as WriteResult, wt as getHarnessProfile, x as SkillMetadata, xn as SandboxListOptions, xt as SubAgentMiddlewareOptions, y as StoreBackendOptions, yn as SandboxGetOrCreateOptions, yt as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, z as FlattenSubAgentMiddleware, zt as ASYNC_TASK_SYSTEM_PROMPT } from "./agent-CKQ2LDaJ.cjs";
2
+ export { ASYNC_TASK_SYSTEM_PROMPT, type AgentMemoryMiddlewareOptions, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, FilesystemBackend, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, 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 StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, applyGrepMaxCount, computeSummarizationDefaults, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgent, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, parseHarnessProfileConfig, parseSkillMetadata, registerHarnessProfile, resolveBackend, serializeProfile };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, A as findProjectRoot, An as BackendProtocolV1, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, C as parseSkillMetadata, Cn as StateAndStore, Ct as createSubAgentMiddleware, D as Settings, Dn as resolveBackend, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxProtocol, Et as HarnessProfileConfigData, F as DeepAgent, Ft as HarnessProfileOptions, G as InferSubagentReactAgentType, Gt as FsToolName, H as InferStructuredResponse, Ht as SystemPromptConfig, I as DeepAgentTypeConfig, It as REQUIRED_MIDDLEWARE_NAMES, J as SupportedResponseFormat, Jt as FilesystemPermission, K as MergedDeepAgentState, Kt as createFilesystemMiddleware, L as DefaultDeepAgentTypeConfig, Lt as ConfigurationError, M as SubagentRunStream, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, O as SettingsOptions, On as BackendProtocolV2, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, S as listSkills, Sn as SandboxListResponse, St as createSubAgent, T as createAgentMemoryMiddleware, Tn as isSandboxBackend, Tt as registerHarnessProfile, U as InferSubAgentMiddlewareStates, Ut as TASK_SYSTEM_PROMPT, V as InferDeepAgentType, Vt as EXECUTION_SYSTEM_PROMPT, W as InferSubagentByName, Wt as FilesystemMiddlewareOptions, X as AsyncSubAgentMiddlewareOptions, Xt as AnyBackendProtocol, Y as AsyncSubAgent, Yt as PermissionMode, Z as AsyncTask, Zt as BackendFactory, _ as StoreBackendContext, _n as SandboxError, _t as DEFAULT_SUBAGENT_PROMPT, a as adaptBackendProtocol, an as FileInfo, at as MAX_SKILL_DESCRIPTION_LENGTH, b as ListSkillsOptions, bn as SandboxInfo, bt as SubAgent, c as LangSmithSandboxCreateOptions, cn as GlobResult, ct as SkillMetadata$1, d as LocalShellBackend, dn as LsResult, dt as MemoryMiddlewareOptions, en as DeleteResult, et as isAsyncSubAgent, f as LocalShellBackendOptions, fn as MaybePromise, ft as createMemoryMiddleware, g as StoreBackend, gn as SandboxDeleteOptions, gt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, h as FilesystemBackend, hn as SandboxBackendProtocol, ht as CompiledSubAgent, i as LangSmithStartSandboxOptions, in as FileDownloadResponse, it as createCompletionCallbackMiddleware, j as DeepAgentRunStream, jn as SandboxBackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, k as createSettings, kn as SandboxBackendProtocolV2, kt as parseHarnessProfileConfig, l as LangSmithSandboxOptions, ln as GrepMatch, lt as SkillsMiddlewareOptions, m as CompositeBackend, mn as ReadResult, mt as createPatchToolCallsMiddleware, n as LangSmithCaptureSnapshotOptions, nn as ExecuteResponse, nt as createSummarizationMiddleware, o as adaptSandboxProtocol, on as FileOperationError, ot as MAX_SKILL_FILE_SIZE, p as ContextHubBackend, pn as ReadRawResult, pt as StateBackend, q as ResolveDeepAgentTypeConfig, qt as FilesystemOperation, r as LangSmithSnapshot, rn as FileData, rt as CompletionCallbackOptions, s as LangSmithSandbox, sn as FileUploadResponse, st as MAX_SKILL_NAME_LENGTH, t as createDeepAgent, tn as EditResult, tt as computeSummarizationDefaults, u as BaseSandbox, un as GrepResult, ut as createSkillsMiddleware, v as StoreBackendNamespaceFactory, vn as SandboxErrorCode, vt as GENERAL_PURPOSE_SUBAGENT, w as AgentMemoryMiddlewareOptions, wn as WriteResult, wt as getHarnessProfile, x as SkillMetadata, xn as SandboxListOptions, xt as SubAgentMiddlewareOptions, y as StoreBackendOptions, yn as SandboxGetOrCreateOptions, yt as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, z as FlattenSubAgentMiddleware, zt as ASYNC_TASK_SYSTEM_PROMPT } from "./agent-C_iR-pdx.js";
2
- export { ASYNC_TASK_SYSTEM_PROMPT, type AgentMemoryMiddlewareOptions, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, FilesystemBackend, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, 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 StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgent, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, parseHarnessProfileConfig, parseSkillMetadata, registerHarnessProfile, resolveBackend, serializeProfile };
1
+ import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, A as findProjectRoot, An as SandboxBackendProtocolV2, At as serializeProfile, B as InferDeepAgentSubagents, Bt as BASE_AGENT_PROMPT, C as parseSkillMetadata, Cn as StateAndStore, Ct as createSubAgentMiddleware, D as Settings, Dn as isSandboxProtocol, Dt as generalPurposeSubagentConfigSchema, E as filesValue, En as isSandboxBackend, Et as HarnessProfileConfigData, F as DeepAgent, Ft as HarnessProfileOptions, G as InferSubagentReactAgentType, Gt as FsToolName, H as InferStructuredResponse, Ht as SystemPromptConfig, I as DeepAgentTypeConfig, It as REQUIRED_MIDDLEWARE_NAMES, J as SupportedResponseFormat, Jt as FilesystemPermission, K as MergedDeepAgentState, Kt as createFilesystemMiddleware, L as DefaultDeepAgentTypeConfig, Lt as ConfigurationError, M as SubagentRunStream, Mn as SandboxBackendProtocolV1, Mt as createHarnessProfile, N as AnySubAgent, Nt as GeneralPurposeSubagentConfig, O as SettingsOptions, On as resolveBackend, Ot as harnessProfileConfigSchema, P as CreateDeepAgentParams, Pt as HarnessProfile, Q as AsyncTaskStatus, Qt as BackendProtocol, R as ExtractSubAgentMiddleware, Rt as ConfigurationErrorCode, S as listSkills, Sn as SandboxListResponse, St as createSubAgent, T as createAgentMemoryMiddleware, Tn as applyGrepMaxCount, Tt as registerHarnessProfile, U as InferSubAgentMiddlewareStates, Ut as TASK_SYSTEM_PROMPT, V as InferDeepAgentType, Vt as EXECUTION_SYSTEM_PROMPT, W as InferSubagentByName, Wt as FilesystemMiddlewareOptions, X as AsyncSubAgentMiddlewareOptions, Xt as AnyBackendProtocol, Y as AsyncSubAgent, Yt as PermissionMode, Z as AsyncTask, Zt as BackendFactory, _ as StoreBackendContext, _n as SandboxError, _t as DEFAULT_SUBAGENT_PROMPT, a as adaptBackendProtocol, an as FileInfo, at as MAX_SKILL_DESCRIPTION_LENGTH, b as ListSkillsOptions, bn as SandboxInfo, bt as SubAgent, c as LangSmithSandboxCreateOptions, cn as GlobResult, ct as SkillMetadata$1, d as LocalShellBackend, dn as LsResult, dt as MemoryMiddlewareOptions, en as DeleteResult, et as isAsyncSubAgent, f as LocalShellBackendOptions, fn as MaybePromise, ft as createMemoryMiddleware, g as StoreBackend, gn as SandboxDeleteOptions, gt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, h as FilesystemBackend, hn as SandboxBackendProtocol, ht as CompiledSubAgent, i as LangSmithStartSandboxOptions, in as FileDownloadResponse, it as createCompletionCallbackMiddleware, j as DeepAgentRunStream, jn as BackendProtocolV1, jt as EMPTY_HARNESS_PROFILE, k as createSettings, kn as BackendProtocolV2, kt as parseHarnessProfileConfig, l as LangSmithSandboxOptions, ln as GrepMatch, lt as SkillsMiddlewareOptions, m as CompositeBackend, mn as ReadResult, mt as createPatchToolCallsMiddleware, n as LangSmithCaptureSnapshotOptions, nn as ExecuteResponse, nt as createSummarizationMiddleware, o as adaptSandboxProtocol, on as FileOperationError, ot as MAX_SKILL_FILE_SIZE, p as ContextHubBackend, pn as ReadRawResult, pt as StateBackend, q as ResolveDeepAgentTypeConfig, qt as FilesystemOperation, r as LangSmithSnapshot, rn as FileData, rt as CompletionCallbackOptions, s as LangSmithSandbox, sn as FileUploadResponse, st as MAX_SKILL_NAME_LENGTH, t as createDeepAgent, tn as EditResult, tt as computeSummarizationDefaults, u as BaseSandbox, un as GrepResult, ut as createSkillsMiddleware, v as StoreBackendNamespaceFactory, vn as SandboxErrorCode, vt as GENERAL_PURPOSE_SUBAGENT, w as AgentMemoryMiddlewareOptions, wn as WriteResult, wt as getHarnessProfile, x as SkillMetadata, xn as SandboxListOptions, xt as SubAgentMiddlewareOptions, y as StoreBackendOptions, yn as SandboxGetOrCreateOptions, yt as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, z as FlattenSubAgentMiddleware, zt as ASYNC_TASK_SYSTEM_PROMPT } from "./agent-JA9TGZlt.js";
2
+ export { ASYNC_TASK_SYSTEM_PROMPT, type AgentMemoryMiddlewareOptions, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, BASE_AGENT_PROMPT, type BackendFactory, type BackendProtocol, type BackendProtocolV1, type BackendProtocolV2, type BackendRuntime, BaseSandbox, type CompiledSubAgent, type CompletionCallbackOptions, CompositeBackend, ConfigurationError, type ConfigurationErrorCode, ContextHubBackend, type CreateDeepAgentParams, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, type DeepAgent, type DeepAgentRunStream, type DeepAgentTypeConfig, type DefaultDeepAgentTypeConfig, type DeleteResult, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, type EditResult, type ExecuteResponse, type ExtractSubAgentMiddleware, type FileData, type FileDownloadResponse, type FileInfo, type FileOperationError, type FileUploadResponse, FilesystemBackend, type FilesystemMiddlewareOptions, type FilesystemOperation, type FilesystemPermission, type FlattenSubAgentMiddleware, type FsToolName, GENERAL_PURPOSE_SUBAGENT, type GeneralPurposeSubagentConfig, type GlobResult, type GrepMatch, type GrepResult, type HarnessProfile, type HarnessProfileConfigData, type HarnessProfileOptions, type InferDeepAgentSubagents, type InferDeepAgentType, type InferStructuredResponse, type InferSubAgentMiddlewareStates, type InferSubagentByName, type InferSubagentReactAgentType, type LangSmithCaptureSnapshotOptions, LangSmithSandbox, type LangSmithSandboxCreateOptions, type LangSmithSandboxOptions, type LangSmithSnapshot, type LangSmithStartSandboxOptions, type ListSkillsOptions, type SkillMetadata as LoaderSkillMetadata, LocalShellBackend, type LocalShellBackendOptions, type LsResult, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, type MaybePromise, type MemoryMiddlewareOptions, type MergedDeepAgentState, type PermissionMode, REQUIRED_MIDDLEWARE_NAMES, type ReadRawResult, type ReadResult, type ResolveDeepAgentTypeConfig, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, type SandboxBackendProtocol, type SandboxBackendProtocolV1, type SandboxBackendProtocolV2, 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 StoreBackendContext, type StoreBackendNamespaceFactory, type StoreBackendOptions, type SubAgent, type SubAgentMiddlewareOptions, type SubagentRunStream, type SupportedResponseFormat, type SystemPromptConfig, TASK_SYSTEM_PROMPT, type WriteResult, adaptBackendProtocol, adaptSandboxProtocol, applyGrepMaxCount, computeSummarizationDefaults, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgent, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, parseHarnessProfileConfig, parseSkillMetadata, registerHarnessProfile, resolveBackend, serializeProfile };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { A as filesValue, B as StateBackend, C as createSummarizationMiddleware, D as MAX_SKILL_NAME_LENGTH, E as MAX_SKILL_FILE_SIZE, F as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, G as adaptBackendProtocol, H as isSandboxBackend, I as createSubAgent, K as adaptSandboxProtocol, L as createSubAgentMiddleware, M as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, N as DEFAULT_SUBAGENT_PROMPT, O as createSkillsMiddleware, P as GENERAL_PURPOSE_SUBAGENT, R as createFilesystemMiddleware, S as computeSummarizationDefaults, T as MAX_SKILL_DESCRIPTION_LENGTH, U as isSandboxProtocol, V as SandboxError, W as resolveBackend, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as createAsyncSubAgentMiddleware, c as TASK_SYSTEM_PROMPT, d as registerHarnessProfile, f as generalPurposeSubagentConfigSchema, g as EMPTY_HARNESS_PROFILE, h as serializeProfile, i as StoreBackend, j as createPatchToolCallsMiddleware, k as createMemoryMiddleware, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as createCompletionCallbackMiddleware, x as isAsyncSubAgent, y as ConfigurationError, z as CompositeBackend } from "./langsmith-DgbmWtWj.js";
2
- import { a as createAgentMemoryMiddleware, i as parseSkillMetadata, n as FilesystemBackend, o as createSettings, r as listSkills, s as findProjectRoot, t as LocalShellBackend } from "./src-DeCEf6Ie.js";
3
- export { ASYNC_TASK_SYSTEM_PROMPT, BASE_AGENT_PROMPT, BaseSandbox, CompositeBackend, ConfigurationError, ContextHubBackend, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, FilesystemBackend, GENERAL_PURPOSE_SUBAGENT, LangSmithSandbox, LocalShellBackend, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, REQUIRED_MIDDLEWARE_NAMES, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, SandboxError, StateBackend, StoreBackend, TASK_SYSTEM_PROMPT, adaptBackendProtocol, adaptSandboxProtocol, computeSummarizationDefaults, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgent, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, parseHarnessProfileConfig, parseSkillMetadata, registerHarnessProfile, resolveBackend, serializeProfile };
1
+ import { A as filesValue, B as StateBackend, C as createSummarizationMiddleware, D as MAX_SKILL_NAME_LENGTH, E as MAX_SKILL_FILE_SIZE, F as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, G as resolveBackend, H as applyGrepMaxCount, I as createSubAgent, K as adaptBackendProtocol, L as createSubAgentMiddleware, M as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, N as DEFAULT_SUBAGENT_PROMPT, O as createSkillsMiddleware, P as GENERAL_PURPOSE_SUBAGENT, R as createFilesystemMiddleware, S as computeSummarizationDefaults, T as MAX_SKILL_DESCRIPTION_LENGTH, U as isSandboxBackend, V as SandboxError, W as isSandboxProtocol, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as createAsyncSubAgentMiddleware, c as TASK_SYSTEM_PROMPT, d as registerHarnessProfile, f as generalPurposeSubagentConfigSchema, g as EMPTY_HARNESS_PROFILE, h as serializeProfile, i as StoreBackend, j as createPatchToolCallsMiddleware, k as createMemoryMiddleware, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, q as adaptSandboxProtocol, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as createCompletionCallbackMiddleware, x as isAsyncSubAgent, y as ConfigurationError, z as CompositeBackend } from "./langsmith-CUTUAjHo.js";
2
+ import { a as createAgentMemoryMiddleware, i as parseSkillMetadata, n as FilesystemBackend, o as createSettings, r as listSkills, s as findProjectRoot, t as LocalShellBackend } from "./src-Dr5XWqq_.js";
3
+ export { ASYNC_TASK_SYSTEM_PROMPT, BASE_AGENT_PROMPT, BaseSandbox, CompositeBackend, ConfigurationError, ContextHubBackend, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, EMPTY_HARNESS_PROFILE, EXECUTION_SYSTEM_PROMPT, FilesystemBackend, GENERAL_PURPOSE_SUBAGENT, LangSmithSandbox, LocalShellBackend, MAX_SKILL_DESCRIPTION_LENGTH, MAX_SKILL_FILE_SIZE, MAX_SKILL_NAME_LENGTH, REQUIRED_MIDDLEWARE_NAMES, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, SandboxError, StateBackend, StoreBackend, TASK_SYSTEM_PROMPT, adaptBackendProtocol, adaptSandboxProtocol, applyGrepMaxCount, computeSummarizationDefaults, createAgentMemoryMiddleware, createAsyncSubAgentMiddleware, createCompletionCallbackMiddleware, createDeepAgent, createFilesystemMiddleware, createHarnessProfile, createMemoryMiddleware, createPatchToolCallsMiddleware, createSettings, createSkillsMiddleware, createSubAgent, createSubAgentMiddleware, createSummarizationMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, parseHarnessProfileConfig, parseSkillMetadata, registerHarnessProfile, resolveBackend, serializeProfile };