deepagents 1.12.0 → 1.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-B2Wfp1cf.d.cts → agent-DwU6Gs2-.d.cts} +61 -11
- package/dist/{agent-C_iR-pdx.d.ts → agent-pS9QvkWZ.d.ts} +61 -11
- package/dist/browser.cjs +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/{langsmith-CiiwzXI3.cjs → langsmith-D2d3Dwcc.cjs} +149 -57
- package/dist/langsmith-D2d3Dwcc.cjs.map +1 -0
- package/dist/{langsmith-hz83LfzA.js → langsmith-b3Dpu8rS.js} +144 -58
- package/dist/langsmith-b3Dpu8rS.js.map +1 -0
- package/dist/node.cjs +3 -2
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +3 -3
- package/dist/{src-BMn6YVTo.js → src-DMUJ51B3.js} +9 -4
- package/dist/src-DMUJ51B3.js.map +1 -0
- package/dist/{src-BMXphRFQ.cjs → src-Dkrvbmp1.cjs} +9 -4
- package/dist/src-Dkrvbmp1.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/langsmith-CiiwzXI3.cjs.map +0 -1
- package/dist/langsmith-hz83LfzA.js.map +0 -1
- package/dist/src-BMXphRFQ.cjs.map +0 -1
- package/dist/src-BMn6YVTo.js.map +0 -1
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
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,17 @@ 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>>>;
|
|
903
942
|
}, z.core.$strip>, {
|
|
904
943
|
pattern: string;
|
|
905
944
|
path: string;
|
|
906
945
|
glob: string | null;
|
|
946
|
+
max_count: number | null;
|
|
907
947
|
}, {
|
|
908
948
|
pattern: string;
|
|
909
949
|
path?: string | undefined;
|
|
910
950
|
glob?: string | null | undefined;
|
|
951
|
+
max_count?: number | null | undefined;
|
|
911
952
|
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | _langchain.DynamicStructuredTool<z.ZodObject<{
|
|
912
953
|
command: z.ZodString;
|
|
913
954
|
}, z.core.$strip>, {
|
|
@@ -1755,7 +1796,7 @@ declare class StateBackend implements BackendProtocolV2 {
|
|
|
1755
1796
|
* Search file contents for a literal text pattern.
|
|
1756
1797
|
* Binary files are skipped.
|
|
1757
1798
|
*/
|
|
1758
|
-
grep(pattern: string, path?: string, glob?: string | null): GrepResult;
|
|
1799
|
+
grep(pattern: string, path?: string, glob?: string | null, maxCount?: number | null): GrepResult;
|
|
1759
1800
|
/**
|
|
1760
1801
|
* Structured glob matching returning FileInfo objects.
|
|
1761
1802
|
*/
|
|
@@ -3219,7 +3260,7 @@ declare class StoreBackend implements BackendProtocolV2 {
|
|
|
3219
3260
|
* Search file contents for a literal text pattern.
|
|
3220
3261
|
* Binary files are skipped.
|
|
3221
3262
|
*/
|
|
3222
|
-
grep(pattern: string, path?: string, glob?: string | null): Promise<GrepResult>;
|
|
3263
|
+
grep(pattern: string, path?: string, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
|
|
3223
3264
|
/**
|
|
3224
3265
|
* Structured glob matching returning FileInfo objects.
|
|
3225
3266
|
*/
|
|
@@ -3325,9 +3366,11 @@ declare class FilesystemBackend implements BackendProtocolV2 {
|
|
|
3325
3366
|
* @param pattern - Literal string to search for (NOT regex).
|
|
3326
3367
|
* @param dirPath - Directory or file path to search in. Defaults to current directory.
|
|
3327
3368
|
* @param glob - Optional glob pattern to filter which files to search.
|
|
3369
|
+
* @param maxCount - Optional cap on the total number of matches returned.
|
|
3370
|
+
* When the cap is hit, results are flagged `truncated: true`.
|
|
3328
3371
|
* @returns List of GrepMatch dicts containing path, line number, and matched text.
|
|
3329
3372
|
*/
|
|
3330
|
-
grep(pattern: string, dirPath?: string, glob?: string | null): Promise<GrepResult>;
|
|
3373
|
+
grep(pattern: string, dirPath?: string, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
|
|
3331
3374
|
/**
|
|
3332
3375
|
* Search using ripgrep with fixed-string (literal) mode.
|
|
3333
3376
|
*
|
|
@@ -3442,8 +3485,12 @@ declare class CompositeBackend implements BackendProtocolV2 {
|
|
|
3442
3485
|
readRaw(filePath: string): Promise<ReadRawResult>;
|
|
3443
3486
|
/**
|
|
3444
3487
|
* Structured search results or error string for invalid input.
|
|
3488
|
+
*
|
|
3489
|
+
* @param maxCount - Optional total cap on returned matches across all routed
|
|
3490
|
+
* backends. When the cap is reached, remaining routes are
|
|
3491
|
+
* short-circuited and the result is flagged `truncated: true`.
|
|
3445
3492
|
*/
|
|
3446
|
-
grep(pattern: string, path?: string | null, glob?: string | null): Promise<GrepResult>;
|
|
3493
|
+
grep(pattern: string, path?: string | null, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
|
|
3447
3494
|
/**
|
|
3448
3495
|
* Structured glob matching returning FileInfo objects.
|
|
3449
3496
|
*/
|
|
@@ -3524,7 +3571,7 @@ declare class ContextHubBackend implements BackendProtocolV2 {
|
|
|
3524
3571
|
ls(path?: string): Promise<LsResult>;
|
|
3525
3572
|
read(filePath: string, offset?: number, limit?: number): Promise<ReadResult>;
|
|
3526
3573
|
readRaw(filePath: string): Promise<ReadRawResult>;
|
|
3527
|
-
grep(pattern: string, path?: string | null, glob?: string | null): Promise<GrepResult>;
|
|
3574
|
+
grep(pattern: string, path?: string | null, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
|
|
3528
3575
|
glob(pattern: string, _path?: string): Promise<GlobResult>;
|
|
3529
3576
|
write(filePath: string, content: string): Promise<WriteResult>;
|
|
3530
3577
|
edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
|
|
@@ -3777,7 +3824,7 @@ declare abstract class BaseSandbox implements SandboxBackendProtocolV2 {
|
|
|
3777
3824
|
* @param glob - Optional glob pattern to filter which files to search.
|
|
3778
3825
|
* @returns List of GrepMatch dicts containing path, line number, and matched text.
|
|
3779
3826
|
*/
|
|
3780
|
-
grep(pattern: string, path?: string, glob?: string | null): Promise<GrepResult>;
|
|
3827
|
+
grep(pattern: string, path?: string, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
|
|
3781
3828
|
/**
|
|
3782
3829
|
* Structured glob matching returning FileInfo objects.
|
|
3783
3830
|
*
|
|
@@ -4029,14 +4076,17 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4029
4076
|
pattern: import("zod").ZodString;
|
|
4030
4077
|
path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
4031
4078
|
glob: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
|
|
4079
|
+
max_count: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>>;
|
|
4032
4080
|
}, import("zod/v4/core").$strip>, {
|
|
4033
4081
|
pattern: string;
|
|
4034
4082
|
path: string;
|
|
4035
4083
|
glob: string | null;
|
|
4084
|
+
max_count: number | null;
|
|
4036
4085
|
}, {
|
|
4037
4086
|
pattern: string;
|
|
4038
4087
|
path?: string | undefined;
|
|
4039
4088
|
glob?: string | null | undefined;
|
|
4089
|
+
max_count?: number | null | undefined;
|
|
4040
4090
|
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4041
4091
|
command: import("zod").ZodString;
|
|
4042
4092
|
}, import("zod/v4/core").$strip>, {
|
|
@@ -4098,5 +4148,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4098
4148
|
}, import("zod/v4/core").$strip>>;
|
|
4099
4149
|
}, 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
4150
|
//#endregion
|
|
4101
|
-
export { createAsyncSubAgentMiddleware as $, BackendRuntime as $t, findProjectRoot as A,
|
|
4102
|
-
//# sourceMappingURL=agent-
|
|
4151
|
+
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 };
|
|
4152
|
+
//# sourceMappingURL=agent-DwU6Gs2-.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
|
-
/**
|
|
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
|
-
/**
|
|
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,17 @@ 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>>>;
|
|
903
942
|
}, z.core.$strip>, {
|
|
904
943
|
pattern: string;
|
|
905
944
|
path: string;
|
|
906
945
|
glob: string | null;
|
|
946
|
+
max_count: number | null;
|
|
907
947
|
}, {
|
|
908
948
|
pattern: string;
|
|
909
949
|
path?: string | undefined;
|
|
910
950
|
glob?: string | null | undefined;
|
|
951
|
+
max_count?: number | null | undefined;
|
|
911
952
|
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | _langchain.DynamicStructuredTool<z.ZodObject<{
|
|
912
953
|
command: z.ZodString;
|
|
913
954
|
}, z.core.$strip>, {
|
|
@@ -1755,7 +1796,7 @@ declare class StateBackend implements BackendProtocolV2 {
|
|
|
1755
1796
|
* Search file contents for a literal text pattern.
|
|
1756
1797
|
* Binary files are skipped.
|
|
1757
1798
|
*/
|
|
1758
|
-
grep(pattern: string, path?: string, glob?: string | null): GrepResult;
|
|
1799
|
+
grep(pattern: string, path?: string, glob?: string | null, maxCount?: number | null): GrepResult;
|
|
1759
1800
|
/**
|
|
1760
1801
|
* Structured glob matching returning FileInfo objects.
|
|
1761
1802
|
*/
|
|
@@ -3219,7 +3260,7 @@ declare class StoreBackend implements BackendProtocolV2 {
|
|
|
3219
3260
|
* Search file contents for a literal text pattern.
|
|
3220
3261
|
* Binary files are skipped.
|
|
3221
3262
|
*/
|
|
3222
|
-
grep(pattern: string, path?: string, glob?: string | null): Promise<GrepResult>;
|
|
3263
|
+
grep(pattern: string, path?: string, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
|
|
3223
3264
|
/**
|
|
3224
3265
|
* Structured glob matching returning FileInfo objects.
|
|
3225
3266
|
*/
|
|
@@ -3325,9 +3366,11 @@ declare class FilesystemBackend implements BackendProtocolV2 {
|
|
|
3325
3366
|
* @param pattern - Literal string to search for (NOT regex).
|
|
3326
3367
|
* @param dirPath - Directory or file path to search in. Defaults to current directory.
|
|
3327
3368
|
* @param glob - Optional glob pattern to filter which files to search.
|
|
3369
|
+
* @param maxCount - Optional cap on the total number of matches returned.
|
|
3370
|
+
* When the cap is hit, results are flagged `truncated: true`.
|
|
3328
3371
|
* @returns List of GrepMatch dicts containing path, line number, and matched text.
|
|
3329
3372
|
*/
|
|
3330
|
-
grep(pattern: string, dirPath?: string, glob?: string | null): Promise<GrepResult>;
|
|
3373
|
+
grep(pattern: string, dirPath?: string, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
|
|
3331
3374
|
/**
|
|
3332
3375
|
* Search using ripgrep with fixed-string (literal) mode.
|
|
3333
3376
|
*
|
|
@@ -3442,8 +3485,12 @@ declare class CompositeBackend implements BackendProtocolV2 {
|
|
|
3442
3485
|
readRaw(filePath: string): Promise<ReadRawResult>;
|
|
3443
3486
|
/**
|
|
3444
3487
|
* Structured search results or error string for invalid input.
|
|
3488
|
+
*
|
|
3489
|
+
* @param maxCount - Optional total cap on returned matches across all routed
|
|
3490
|
+
* backends. When the cap is reached, remaining routes are
|
|
3491
|
+
* short-circuited and the result is flagged `truncated: true`.
|
|
3445
3492
|
*/
|
|
3446
|
-
grep(pattern: string, path?: string | null, glob?: string | null): Promise<GrepResult>;
|
|
3493
|
+
grep(pattern: string, path?: string | null, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
|
|
3447
3494
|
/**
|
|
3448
3495
|
* Structured glob matching returning FileInfo objects.
|
|
3449
3496
|
*/
|
|
@@ -3524,7 +3571,7 @@ declare class ContextHubBackend implements BackendProtocolV2 {
|
|
|
3524
3571
|
ls(path?: string): Promise<LsResult>;
|
|
3525
3572
|
read(filePath: string, offset?: number, limit?: number): Promise<ReadResult>;
|
|
3526
3573
|
readRaw(filePath: string): Promise<ReadRawResult>;
|
|
3527
|
-
grep(pattern: string, path?: string | null, glob?: string | null): Promise<GrepResult>;
|
|
3574
|
+
grep(pattern: string, path?: string | null, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
|
|
3528
3575
|
glob(pattern: string, _path?: string): Promise<GlobResult>;
|
|
3529
3576
|
write(filePath: string, content: string): Promise<WriteResult>;
|
|
3530
3577
|
edit(filePath: string, oldString: string, newString: string, replaceAll?: boolean): Promise<EditResult>;
|
|
@@ -3777,7 +3824,7 @@ declare abstract class BaseSandbox implements SandboxBackendProtocolV2 {
|
|
|
3777
3824
|
* @param glob - Optional glob pattern to filter which files to search.
|
|
3778
3825
|
* @returns List of GrepMatch dicts containing path, line number, and matched text.
|
|
3779
3826
|
*/
|
|
3780
|
-
grep(pattern: string, path?: string, glob?: string | null): Promise<GrepResult>;
|
|
3827
|
+
grep(pattern: string, path?: string, glob?: string | null, maxCount?: number | null): Promise<GrepResult>;
|
|
3781
3828
|
/**
|
|
3782
3829
|
* Structured glob matching returning FileInfo objects.
|
|
3783
3830
|
*
|
|
@@ -4029,14 +4076,17 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4029
4076
|
pattern: import("zod").ZodString;
|
|
4030
4077
|
path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
4031
4078
|
glob: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
|
|
4079
|
+
max_count: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodNumber>>>;
|
|
4032
4080
|
}, import("zod/v4/core").$strip>, {
|
|
4033
4081
|
pattern: string;
|
|
4034
4082
|
path: string;
|
|
4035
4083
|
glob: string | null;
|
|
4084
|
+
max_count: number | null;
|
|
4036
4085
|
}, {
|
|
4037
4086
|
pattern: string;
|
|
4038
4087
|
path?: string | undefined;
|
|
4039
4088
|
glob?: string | null | undefined;
|
|
4089
|
+
max_count?: number | null | undefined;
|
|
4040
4090
|
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4041
4091
|
command: import("zod").ZodString;
|
|
4042
4092
|
}, import("zod/v4/core").$strip>, {
|
|
@@ -4098,5 +4148,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4098
4148
|
}, import("zod/v4/core").$strip>>;
|
|
4099
4149
|
}, 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
4150
|
//#endregion
|
|
4101
|
-
export { createAsyncSubAgentMiddleware as $, BackendRuntime as $t, findProjectRoot as A,
|
|
4102
|
-
//# sourceMappingURL=agent-
|
|
4151
|
+
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 };
|
|
4152
|
+
//# sourceMappingURL=agent-pS9QvkWZ.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-
|
|
2
|
+
const require_langsmith = require("./langsmith-D2d3Dwcc.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;
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as createAsyncSubAgentMiddleware, $t as BackendRuntime, An as
|
|
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-DwU6Gs2-.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
|
|
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-pS9QvkWZ.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
|
|
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-b3Dpu8rS.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-
|
|
3
|
-
const require_src = require("./src-
|
|
2
|
+
const require_langsmith = require("./langsmith-D2d3Dwcc.cjs");
|
|
3
|
+
const require_src = require("./src-Dkrvbmp1.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
|
|
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-DwU6Gs2-.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
|
|
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-pS9QvkWZ.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
|
|
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-
|
|
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-b3Dpu8rS.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-DMUJ51B3.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 };
|