deepagents 1.11.0 → 1.11.1
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-CBuaNmw7.d.cts → agent-B2XFuA-E.d.cts} +9 -9
- package/dist/{agent-D0AY-3B9.d.ts → agent-k6GiDPCY.d.ts} +9 -9
- 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 +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{langsmith-C7Ok9lF-.js → langsmith-DVh4u6Za.js} +47 -14
- package/dist/langsmith-DVh4u6Za.js.map +1 -0
- package/dist/{langsmith-DDhVumyX.cjs → langsmith-DhbsxI45.cjs} +47 -14
- package/dist/langsmith-DhbsxI45.cjs.map +1 -0
- package/dist/node.cjs +2 -2
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +2 -2
- package/dist/{src-CokGewqt.js → src-Cqag72HH.js} +2 -2
- package/dist/{src-CokGewqt.js.map → src-Cqag72HH.js.map} +1 -1
- package/dist/{src-CmBhLWZw.cjs → src-DtpWpNrN.cjs} +2 -2
- package/dist/{src-CmBhLWZw.cjs.map → src-DtpWpNrN.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/langsmith-C7Ok9lF-.js.map +0 -1
- package/dist/langsmith-DDhVumyX.cjs.map +0 -1
|
@@ -879,7 +879,7 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
879
879
|
path: string;
|
|
880
880
|
}, {
|
|
881
881
|
path?: string | undefined;
|
|
882
|
-
}, string
|
|
882
|
+
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "ls"> | _langchain.DynamicStructuredTool<z.ZodPreprocess<z.ZodObject<{
|
|
883
883
|
file_path: z.ZodString;
|
|
884
884
|
offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
885
885
|
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -887,7 +887,7 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
887
887
|
file_path: string;
|
|
888
888
|
offset: number;
|
|
889
889
|
limit: number;
|
|
890
|
-
}, unknown, {
|
|
890
|
+
}, unknown, ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>> | {
|
|
891
891
|
type: string;
|
|
892
892
|
text: string;
|
|
893
893
|
}[] | {
|
|
@@ -925,7 +925,7 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
925
925
|
}, {
|
|
926
926
|
pattern: string;
|
|
927
927
|
path?: string | undefined;
|
|
928
|
-
}, string
|
|
928
|
+
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "glob"> | _langchain.DynamicStructuredTool<z.ZodObject<{
|
|
929
929
|
pattern: z.ZodString;
|
|
930
930
|
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
931
931
|
glob: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -937,7 +937,7 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
937
937
|
pattern: string;
|
|
938
938
|
path?: string | undefined;
|
|
939
939
|
glob?: string | null | undefined;
|
|
940
|
-
}, string
|
|
940
|
+
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | _langchain.DynamicStructuredTool<z.ZodObject<{
|
|
941
941
|
command: z.ZodString;
|
|
942
942
|
}, z.core.$strip>, {
|
|
943
943
|
command: string;
|
|
@@ -4066,7 +4066,7 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4066
4066
|
path: string;
|
|
4067
4067
|
}, {
|
|
4068
4068
|
path?: string | undefined;
|
|
4069
|
-
}, string
|
|
4069
|
+
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "ls"> | import("langchain").DynamicStructuredTool<import("zod").ZodPreprocess<import("zod").ZodObject<{
|
|
4070
4070
|
file_path: import("zod").ZodString;
|
|
4071
4071
|
offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
4072
4072
|
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
@@ -4074,7 +4074,7 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4074
4074
|
file_path: string;
|
|
4075
4075
|
offset: number;
|
|
4076
4076
|
limit: number;
|
|
4077
|
-
}, unknown, {
|
|
4077
|
+
}, unknown, _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>> | {
|
|
4078
4078
|
type: string;
|
|
4079
4079
|
text: string;
|
|
4080
4080
|
}[] | {
|
|
@@ -4112,7 +4112,7 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4112
4112
|
}, {
|
|
4113
4113
|
pattern: string;
|
|
4114
4114
|
path?: string | undefined;
|
|
4115
|
-
}, string
|
|
4115
|
+
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "glob"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4116
4116
|
pattern: import("zod").ZodString;
|
|
4117
4117
|
path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
4118
4118
|
glob: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
|
|
@@ -4124,7 +4124,7 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4124
4124
|
pattern: string;
|
|
4125
4125
|
path?: string | undefined;
|
|
4126
4126
|
glob?: string | null | undefined;
|
|
4127
|
-
}, string
|
|
4127
|
+
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4128
4128
|
command: import("zod").ZodString;
|
|
4129
4129
|
}, import("zod/v4/core").$strip>, {
|
|
4130
4130
|
command: string;
|
|
@@ -4149,4 +4149,4 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4149
4149
|
}, import("zod/v4/core").$strip>, undefined, unknown, readonly (ClientTool | ServerTool)[], readonly []>, AgentMiddleware<undefined, undefined, unknown, readonly (ClientTool | ServerTool)[], readonly []>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents, TStreamTransformers>>;
|
|
4150
4150
|
//#endregion
|
|
4151
4151
|
export { AsyncTaskStatus as $, ExecuteResponse as $t, findProjectRoot as A, harnessProfileConfigSchema as At, InferDeepAgentSubagents as B, ConfigurationErrorCode as Bt, parseSkillMetadata as C, isSandboxProtocol as Cn, TASK_SYSTEM_PROMPT as Ct, Settings as D, BackendProtocolV1 as Dn, registerHarnessProfile as Dt, filesValue as E, SandboxBackendProtocolV2 as En, getHarnessProfile as Et, DeepAgent as F, GeneralPurposeSubagentConfig as Ft, InferSubagentReactAgentType as G, FilesystemPermission as Gt, InferStructuredResponse as H, FsToolName as Ht, DeepAgentTypeConfig as I, HarnessProfile as It, SupportedResponseFormat as J, BackendFactory as Jt, MergedDeepAgentState as K, PermissionMode as Kt, DefaultDeepAgentTypeConfig as L, HarnessProfileOptions as Lt, SubagentRunStream$1 as M, serializeProfile as Mt, AnySubAgent as N, EMPTY_HARNESS_PROFILE as Nt, SettingsOptions as O, SandboxBackendProtocolV1 as On, HarnessProfileConfigData as Ot, CreateDeepAgentParams as P, createHarnessProfile as Pt, AsyncTask as Q, EditResult as Qt, ExtractSubAgentMiddleware as R, REQUIRED_MIDDLEWARE_NAMES as Rt, listSkills as S, isSandboxBackend as Sn, SubAgentMiddlewareOptions as St, createAgentMemoryMiddleware as T, BackendProtocolV2 as Tn, createSubAgentMiddleware as Tt, InferSubAgentMiddlewareStates as U, createFilesystemMiddleware as Ut, InferDeepAgentType as V, FilesystemMiddlewareOptions as Vt, InferSubagentByName as W, FilesystemOperation as Wt, AsyncSubAgent as X, BackendRuntime as Xt, SystemPromptConfig as Y, BackendProtocol as Yt, AsyncSubAgentMiddlewareOptions as Z, DeleteResult as Zt, StoreBackendContext as _, SandboxInfo as _n, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as _t, adaptBackendProtocol as a, GlobResult as an, createCompletionCallbackMiddleware as at, ListSkillsOptions as b, StateAndStore as bn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as bt, LangSmithSandboxCreateOptions as c, LsResult as cn, MAX_SKILL_NAME_LENGTH as ct, LocalShellBackend as d, ReadResult as dn, createSkillsMiddleware as dt, FileData as en, createAsyncSubAgentMiddleware as et, LocalShellBackendOptions as f, SandboxBackendProtocol as fn, MemoryMiddlewareOptions as ft, StoreBackend as g, SandboxGetOrCreateOptions as gn, CompiledSubAgent as gt, FilesystemBackend as h, SandboxErrorCode as hn, createPatchToolCallsMiddleware as ht, LangSmithStartSandboxOptions as i, FileUploadResponse as in, CompletionCallbackOptions as it, DeepAgentRunStream as j, parseHarnessProfileConfig as jt, createSettings as k, generalPurposeSubagentConfigSchema as kt, LangSmithSandboxOptions as l, MaybePromise as ln, SkillMetadata$1 as lt, CompositeBackend as m, SandboxError as mn, StateBackend as mt, LangSmithCaptureSnapshotOptions as n, FileInfo as nn, computeSummarizationDefaults as nt, adaptSandboxProtocol as o, GrepMatch as on, MAX_SKILL_DESCRIPTION_LENGTH as ot, ContextHubBackend as p, SandboxDeleteOptions as pn, createMemoryMiddleware as pt, ResolveDeepAgentTypeConfig as q, AnyBackendProtocol as qt, LangSmithSnapshot as r, FileOperationError as rn, createSummarizationMiddleware as rt, LangSmithSandbox as s, GrepResult as sn, MAX_SKILL_FILE_SIZE as st, createDeepAgent as t, FileDownloadResponse as tn, isAsyncSubAgent as tt, BaseSandbox as u, ReadRawResult as un, SkillsMiddlewareOptions as ut, StoreBackendNamespaceFactory as v, SandboxListOptions as vn, DEFAULT_SUBAGENT_PROMPT as vt, AgentMemoryMiddlewareOptions as w, resolveBackend as wn, createSubAgent as wt, SkillMetadata as x, WriteResult as xn, SubAgent as xt, StoreBackendOptions as y, SandboxListResponse as yn, GENERAL_PURPOSE_SUBAGENT as yt, FlattenSubAgentMiddleware as z, ConfigurationError as zt };
|
|
4152
|
-
//# sourceMappingURL=agent-
|
|
4152
|
+
//# sourceMappingURL=agent-B2XFuA-E.d.cts.map
|
|
@@ -880,7 +880,7 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
880
880
|
path: string;
|
|
881
881
|
}, {
|
|
882
882
|
path?: string | undefined;
|
|
883
|
-
}, string
|
|
883
|
+
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "ls"> | _langchain.DynamicStructuredTool<z.ZodPreprocess<z.ZodObject<{
|
|
884
884
|
file_path: z.ZodString;
|
|
885
885
|
offset: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
886
886
|
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
@@ -888,7 +888,7 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
888
888
|
file_path: string;
|
|
889
889
|
offset: number;
|
|
890
890
|
limit: number;
|
|
891
|
-
}, unknown, {
|
|
891
|
+
}, unknown, ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>> | {
|
|
892
892
|
type: string;
|
|
893
893
|
text: string;
|
|
894
894
|
}[] | {
|
|
@@ -926,7 +926,7 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
926
926
|
}, {
|
|
927
927
|
pattern: string;
|
|
928
928
|
path?: string | undefined;
|
|
929
|
-
}, string
|
|
929
|
+
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "glob"> | _langchain.DynamicStructuredTool<z.ZodObject<{
|
|
930
930
|
pattern: z.ZodString;
|
|
931
931
|
path: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
932
932
|
glob: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -938,7 +938,7 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
|
|
|
938
938
|
pattern: string;
|
|
939
939
|
path?: string | undefined;
|
|
940
940
|
glob?: string | null | undefined;
|
|
941
|
-
}, string
|
|
941
|
+
}, string | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | _langchain.DynamicStructuredTool<z.ZodObject<{
|
|
942
942
|
command: z.ZodString;
|
|
943
943
|
}, z.core.$strip>, {
|
|
944
944
|
command: string;
|
|
@@ -4067,7 +4067,7 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4067
4067
|
path: string;
|
|
4068
4068
|
}, {
|
|
4069
4069
|
path?: string | undefined;
|
|
4070
|
-
}, string
|
|
4070
|
+
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "ls"> | import("langchain").DynamicStructuredTool<import("zod").ZodPreprocess<import("zod").ZodObject<{
|
|
4071
4071
|
file_path: import("zod").ZodString;
|
|
4072
4072
|
offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
4073
4073
|
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
@@ -4075,7 +4075,7 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4075
4075
|
file_path: string;
|
|
4076
4076
|
offset: number;
|
|
4077
4077
|
limit: number;
|
|
4078
|
-
}, unknown, {
|
|
4078
|
+
}, unknown, _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>> | {
|
|
4079
4079
|
type: string;
|
|
4080
4080
|
text: string;
|
|
4081
4081
|
}[] | {
|
|
@@ -4113,7 +4113,7 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4113
4113
|
}, {
|
|
4114
4114
|
pattern: string;
|
|
4115
4115
|
path?: string | undefined;
|
|
4116
|
-
}, string
|
|
4116
|
+
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "glob"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4117
4117
|
pattern: import("zod").ZodString;
|
|
4118
4118
|
path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
4119
4119
|
glob: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>>;
|
|
@@ -4125,7 +4125,7 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4125
4125
|
pattern: string;
|
|
4126
4126
|
path?: string | undefined;
|
|
4127
4127
|
glob?: string | null | undefined;
|
|
4128
|
-
}, string
|
|
4128
|
+
}, string | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "grep"> | import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
|
|
4129
4129
|
command: import("zod").ZodString;
|
|
4130
4130
|
}, import("zod/v4/core").$strip>, {
|
|
4131
4131
|
command: string;
|
|
@@ -4150,4 +4150,4 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
|
|
|
4150
4150
|
}, import("zod/v4/core").$strip>, undefined, unknown, readonly (ClientTool | ServerTool)[], readonly []>, AgentMiddleware<undefined, undefined, unknown, readonly (ClientTool | ServerTool)[], readonly []>, ...TMiddleware, ...FlattenSubAgentMiddleware<TSubagents>], TTools, TSubagents, TStreamTransformers>>;
|
|
4151
4151
|
//#endregion
|
|
4152
4152
|
export { AsyncTaskStatus as $, ExecuteResponse as $t, findProjectRoot as A, harnessProfileConfigSchema as At, InferDeepAgentSubagents as B, ConfigurationErrorCode as Bt, parseSkillMetadata as C, isSandboxProtocol as Cn, TASK_SYSTEM_PROMPT as Ct, Settings as D, BackendProtocolV1 as Dn, registerHarnessProfile as Dt, filesValue as E, SandboxBackendProtocolV2 as En, getHarnessProfile as Et, DeepAgent as F, GeneralPurposeSubagentConfig as Ft, InferSubagentReactAgentType as G, FilesystemPermission as Gt, InferStructuredResponse as H, FsToolName as Ht, DeepAgentTypeConfig as I, HarnessProfile as It, SupportedResponseFormat as J, BackendFactory as Jt, MergedDeepAgentState as K, PermissionMode as Kt, DefaultDeepAgentTypeConfig as L, HarnessProfileOptions as Lt, SubagentRunStream$1 as M, serializeProfile as Mt, AnySubAgent as N, EMPTY_HARNESS_PROFILE as Nt, SettingsOptions as O, SandboxBackendProtocolV1 as On, HarnessProfileConfigData as Ot, CreateDeepAgentParams as P, createHarnessProfile as Pt, AsyncTask as Q, EditResult as Qt, ExtractSubAgentMiddleware as R, REQUIRED_MIDDLEWARE_NAMES as Rt, listSkills as S, isSandboxBackend as Sn, SubAgentMiddlewareOptions as St, createAgentMemoryMiddleware as T, BackendProtocolV2 as Tn, createSubAgentMiddleware as Tt, InferSubAgentMiddlewareStates as U, createFilesystemMiddleware as Ut, InferDeepAgentType as V, FilesystemMiddlewareOptions as Vt, InferSubagentByName as W, FilesystemOperation as Wt, AsyncSubAgent as X, BackendRuntime as Xt, SystemPromptConfig as Y, BackendProtocol as Yt, AsyncSubAgentMiddlewareOptions as Z, DeleteResult as Zt, StoreBackendContext as _, SandboxInfo as _n, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as _t, adaptBackendProtocol as a, GlobResult as an, createCompletionCallbackMiddleware as at, ListSkillsOptions as b, StateAndStore as bn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as bt, LangSmithSandboxCreateOptions as c, LsResult as cn, MAX_SKILL_NAME_LENGTH as ct, LocalShellBackend as d, ReadResult as dn, createSkillsMiddleware as dt, FileData as en, createAsyncSubAgentMiddleware as et, LocalShellBackendOptions as f, SandboxBackendProtocol as fn, MemoryMiddlewareOptions as ft, StoreBackend as g, SandboxGetOrCreateOptions as gn, CompiledSubAgent as gt, FilesystemBackend as h, SandboxErrorCode as hn, createPatchToolCallsMiddleware as ht, LangSmithStartSandboxOptions as i, FileUploadResponse as in, CompletionCallbackOptions as it, DeepAgentRunStream as j, parseHarnessProfileConfig as jt, createSettings as k, generalPurposeSubagentConfigSchema as kt, LangSmithSandboxOptions as l, MaybePromise as ln, SkillMetadata$1 as lt, CompositeBackend as m, SandboxError as mn, StateBackend as mt, LangSmithCaptureSnapshotOptions as n, FileInfo as nn, computeSummarizationDefaults as nt, adaptSandboxProtocol as o, GrepMatch as on, MAX_SKILL_DESCRIPTION_LENGTH as ot, ContextHubBackend as p, SandboxDeleteOptions as pn, createMemoryMiddleware as pt, ResolveDeepAgentTypeConfig as q, AnyBackendProtocol as qt, LangSmithSnapshot as r, FileOperationError as rn, createSummarizationMiddleware as rt, LangSmithSandbox as s, GrepResult as sn, MAX_SKILL_FILE_SIZE as st, createDeepAgent as t, FileDownloadResponse as tn, isAsyncSubAgent as tt, BaseSandbox as u, ReadRawResult as un, SkillsMiddlewareOptions as ut, StoreBackendNamespaceFactory as v, SandboxListOptions as vn, DEFAULT_SUBAGENT_PROMPT as vt, AgentMemoryMiddlewareOptions as w, resolveBackend as wn, createSubAgent as wt, SkillMetadata as x, WriteResult as xn, SubAgent as xt, StoreBackendOptions as y, SandboxListResponse as yn, GENERAL_PURPOSE_SUBAGENT as yt, FlattenSubAgentMiddleware as z, ConfigurationError as zt };
|
|
4153
|
-
//# sourceMappingURL=agent-
|
|
4153
|
+
//# sourceMappingURL=agent-k6GiDPCY.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-DhbsxI45.cjs");
|
|
3
3
|
exports.BaseSandbox = require_langsmith.BaseSandbox;
|
|
4
4
|
exports.CompositeBackend = require_langsmith.CompositeBackend;
|
|
5
5
|
exports.ConfigurationError = require_langsmith.ConfigurationError;
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as AsyncTaskStatus, $t as ExecuteResponse, At as harnessProfileConfigSchema, B as InferDeepAgentSubagents, Bt as ConfigurationErrorCode, Cn as isSandboxProtocol, Ct as TASK_SYSTEM_PROMPT, Dn as BackendProtocolV1, Dt as registerHarnessProfile, E as filesValue, En as SandboxBackendProtocolV2, Et as getHarnessProfile, F as DeepAgent, Ft as GeneralPurposeSubagentConfig, G as InferSubagentReactAgentType, Gt as FilesystemPermission, H as InferStructuredResponse, Ht as FsToolName, I as DeepAgentTypeConfig, It as HarnessProfile, J as SupportedResponseFormat, Jt as BackendFactory, K as MergedDeepAgentState, Kt as PermissionMode, L as DefaultDeepAgentTypeConfig, Lt as HarnessProfileOptions, M as SubagentRunStream, Mt as serializeProfile, N as AnySubAgent, Nt as EMPTY_HARNESS_PROFILE, On as SandboxBackendProtocolV1, Ot as HarnessProfileConfigData, P as CreateDeepAgentParams, Pt as createHarnessProfile, Q as AsyncTask, Qt as EditResult, R as ExtractSubAgentMiddleware, Rt as REQUIRED_MIDDLEWARE_NAMES, Sn as isSandboxBackend, St as SubAgentMiddlewareOptions, Tn as BackendProtocolV2, Tt as createSubAgentMiddleware, U as InferSubAgentMiddlewareStates, Ut as createFilesystemMiddleware, V as InferDeepAgentType, Vt as FilesystemMiddlewareOptions, W as InferSubagentByName, Wt as FilesystemOperation, X as AsyncSubAgent, Xt as BackendRuntime, Y as SystemPromptConfig, Yt as BackendProtocol, Z as AsyncSubAgentMiddlewareOptions, Zt as DeleteResult, _ as StoreBackendContext, _n as SandboxInfo, _t as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, a as adaptBackendProtocol, an as GlobResult, at as createCompletionCallbackMiddleware, bn as StateAndStore, c as LangSmithSandboxCreateOptions, cn as LsResult, ct as MAX_SKILL_NAME_LENGTH, dn as ReadResult, dt as createSkillsMiddleware, en as FileData, et as createAsyncSubAgentMiddleware, fn as SandboxBackendProtocol, ft as MemoryMiddlewareOptions, g as StoreBackend, gn as SandboxGetOrCreateOptions, gt as CompiledSubAgent, hn as SandboxErrorCode, ht as createPatchToolCallsMiddleware, in as FileUploadResponse, it as CompletionCallbackOptions, j as DeepAgentRunStream, jt as parseHarnessProfileConfig, kt as generalPurposeSubagentConfigSchema, l as LangSmithSandboxOptions, ln as MaybePromise, lt as SkillMetadata, m as CompositeBackend, mn as SandboxError, mt as StateBackend, nn as FileInfo, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as GrepMatch, ot as MAX_SKILL_DESCRIPTION_LENGTH, p as ContextHubBackend, pn as SandboxDeleteOptions, pt as createMemoryMiddleware, q as ResolveDeepAgentTypeConfig, qt as AnyBackendProtocol, rn as FileOperationError, rt as createSummarizationMiddleware, s as LangSmithSandbox, sn as GrepResult, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as FileDownloadResponse, tt as isAsyncSubAgent, u as BaseSandbox, un as ReadRawResult, ut as SkillsMiddlewareOptions, v as StoreBackendNamespaceFactory, vn as SandboxListOptions, vt as DEFAULT_SUBAGENT_PROMPT, wn as resolveBackend, xn as WriteResult, xt as SubAgent, y as StoreBackendOptions, yn as SandboxListResponse, yt as GENERAL_PURPOSE_SUBAGENT, z as FlattenSubAgentMiddleware, zt as ConfigurationError } from "./agent-
|
|
1
|
+
import { $ as AsyncTaskStatus, $t as ExecuteResponse, At as harnessProfileConfigSchema, B as InferDeepAgentSubagents, Bt as ConfigurationErrorCode, Cn as isSandboxProtocol, Ct as TASK_SYSTEM_PROMPT, Dn as BackendProtocolV1, Dt as registerHarnessProfile, E as filesValue, En as SandboxBackendProtocolV2, Et as getHarnessProfile, F as DeepAgent, Ft as GeneralPurposeSubagentConfig, G as InferSubagentReactAgentType, Gt as FilesystemPermission, H as InferStructuredResponse, Ht as FsToolName, I as DeepAgentTypeConfig, It as HarnessProfile, J as SupportedResponseFormat, Jt as BackendFactory, K as MergedDeepAgentState, Kt as PermissionMode, L as DefaultDeepAgentTypeConfig, Lt as HarnessProfileOptions, M as SubagentRunStream, Mt as serializeProfile, N as AnySubAgent, Nt as EMPTY_HARNESS_PROFILE, On as SandboxBackendProtocolV1, Ot as HarnessProfileConfigData, P as CreateDeepAgentParams, Pt as createHarnessProfile, Q as AsyncTask, Qt as EditResult, R as ExtractSubAgentMiddleware, Rt as REQUIRED_MIDDLEWARE_NAMES, Sn as isSandboxBackend, St as SubAgentMiddlewareOptions, Tn as BackendProtocolV2, Tt as createSubAgentMiddleware, U as InferSubAgentMiddlewareStates, Ut as createFilesystemMiddleware, V as InferDeepAgentType, Vt as FilesystemMiddlewareOptions, W as InferSubagentByName, Wt as FilesystemOperation, X as AsyncSubAgent, Xt as BackendRuntime, Y as SystemPromptConfig, Yt as BackendProtocol, Z as AsyncSubAgentMiddlewareOptions, Zt as DeleteResult, _ as StoreBackendContext, _n as SandboxInfo, _t as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, a as adaptBackendProtocol, an as GlobResult, at as createCompletionCallbackMiddleware, bn as StateAndStore, c as LangSmithSandboxCreateOptions, cn as LsResult, ct as MAX_SKILL_NAME_LENGTH, dn as ReadResult, dt as createSkillsMiddleware, en as FileData, et as createAsyncSubAgentMiddleware, fn as SandboxBackendProtocol, ft as MemoryMiddlewareOptions, g as StoreBackend, gn as SandboxGetOrCreateOptions, gt as CompiledSubAgent, hn as SandboxErrorCode, ht as createPatchToolCallsMiddleware, in as FileUploadResponse, it as CompletionCallbackOptions, j as DeepAgentRunStream, jt as parseHarnessProfileConfig, kt as generalPurposeSubagentConfigSchema, l as LangSmithSandboxOptions, ln as MaybePromise, lt as SkillMetadata, m as CompositeBackend, mn as SandboxError, mt as StateBackend, nn as FileInfo, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as GrepMatch, ot as MAX_SKILL_DESCRIPTION_LENGTH, p as ContextHubBackend, pn as SandboxDeleteOptions, pt as createMemoryMiddleware, q as ResolveDeepAgentTypeConfig, qt as AnyBackendProtocol, rn as FileOperationError, rt as createSummarizationMiddleware, s as LangSmithSandbox, sn as GrepResult, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as FileDownloadResponse, tt as isAsyncSubAgent, u as BaseSandbox, un as ReadRawResult, ut as SkillsMiddlewareOptions, v as StoreBackendNamespaceFactory, vn as SandboxListOptions, vt as DEFAULT_SUBAGENT_PROMPT, wn as resolveBackend, xn as WriteResult, xt as SubAgent, y as StoreBackendOptions, yn as SandboxListResponse, yt as GENERAL_PURPOSE_SUBAGENT, z as FlattenSubAgentMiddleware, zt as ConfigurationError } from "./agent-B2XFuA-E.cjs";
|
|
2
2
|
import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
|
|
3
3
|
export { type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, 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, 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 AsyncTaskStatus, $t as ExecuteResponse, At as harnessProfileConfigSchema, B as InferDeepAgentSubagents, Bt as ConfigurationErrorCode, Cn as isSandboxProtocol, Ct as TASK_SYSTEM_PROMPT, Dn as BackendProtocolV1, Dt as registerHarnessProfile, E as filesValue, En as SandboxBackendProtocolV2, Et as getHarnessProfile, F as DeepAgent, Ft as GeneralPurposeSubagentConfig, G as InferSubagentReactAgentType, Gt as FilesystemPermission, H as InferStructuredResponse, Ht as FsToolName, I as DeepAgentTypeConfig, It as HarnessProfile, J as SupportedResponseFormat, Jt as BackendFactory, K as MergedDeepAgentState, Kt as PermissionMode, L as DefaultDeepAgentTypeConfig, Lt as HarnessProfileOptions, M as SubagentRunStream, Mt as serializeProfile, N as AnySubAgent, Nt as EMPTY_HARNESS_PROFILE, On as SandboxBackendProtocolV1, Ot as HarnessProfileConfigData, P as CreateDeepAgentParams, Pt as createHarnessProfile, Q as AsyncTask, Qt as EditResult, R as ExtractSubAgentMiddleware, Rt as REQUIRED_MIDDLEWARE_NAMES, Sn as isSandboxBackend, St as SubAgentMiddlewareOptions, Tn as BackendProtocolV2, Tt as createSubAgentMiddleware, U as InferSubAgentMiddlewareStates, Ut as createFilesystemMiddleware, V as InferDeepAgentType, Vt as FilesystemMiddlewareOptions, W as InferSubagentByName, Wt as FilesystemOperation, X as AsyncSubAgent, Xt as BackendRuntime, Y as SystemPromptConfig, Yt as BackendProtocol, Z as AsyncSubAgentMiddlewareOptions, Zt as DeleteResult, _ as StoreBackendContext, _n as SandboxInfo, _t as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, a as adaptBackendProtocol, an as GlobResult, at as createCompletionCallbackMiddleware, bn as StateAndStore, c as LangSmithSandboxCreateOptions, cn as LsResult, ct as MAX_SKILL_NAME_LENGTH, dn as ReadResult, dt as createSkillsMiddleware, en as FileData, et as createAsyncSubAgentMiddleware, fn as SandboxBackendProtocol, ft as MemoryMiddlewareOptions, g as StoreBackend, gn as SandboxGetOrCreateOptions, gt as CompiledSubAgent, hn as SandboxErrorCode, ht as createPatchToolCallsMiddleware, in as FileUploadResponse, it as CompletionCallbackOptions, j as DeepAgentRunStream, jt as parseHarnessProfileConfig, kt as generalPurposeSubagentConfigSchema, l as LangSmithSandboxOptions, ln as MaybePromise, lt as SkillMetadata, m as CompositeBackend, mn as SandboxError, mt as StateBackend, nn as FileInfo, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as GrepMatch, ot as MAX_SKILL_DESCRIPTION_LENGTH, p as ContextHubBackend, pn as SandboxDeleteOptions, pt as createMemoryMiddleware, q as ResolveDeepAgentTypeConfig, qt as AnyBackendProtocol, rn as FileOperationError, rt as createSummarizationMiddleware, s as LangSmithSandbox, sn as GrepResult, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as FileDownloadResponse, tt as isAsyncSubAgent, u as BaseSandbox, un as ReadRawResult, ut as SkillsMiddlewareOptions, v as StoreBackendNamespaceFactory, vn as SandboxListOptions, vt as DEFAULT_SUBAGENT_PROMPT, wn as resolveBackend, xn as WriteResult, xt as SubAgent, y as StoreBackendOptions, yn as SandboxListResponse, yt as GENERAL_PURPOSE_SUBAGENT, z as FlattenSubAgentMiddleware, zt as ConfigurationError } from "./agent-
|
|
1
|
+
import { $ as AsyncTaskStatus, $t as ExecuteResponse, At as harnessProfileConfigSchema, B as InferDeepAgentSubagents, Bt as ConfigurationErrorCode, Cn as isSandboxProtocol, Ct as TASK_SYSTEM_PROMPT, Dn as BackendProtocolV1, Dt as registerHarnessProfile, E as filesValue, En as SandboxBackendProtocolV2, Et as getHarnessProfile, F as DeepAgent, Ft as GeneralPurposeSubagentConfig, G as InferSubagentReactAgentType, Gt as FilesystemPermission, H as InferStructuredResponse, Ht as FsToolName, I as DeepAgentTypeConfig, It as HarnessProfile, J as SupportedResponseFormat, Jt as BackendFactory, K as MergedDeepAgentState, Kt as PermissionMode, L as DefaultDeepAgentTypeConfig, Lt as HarnessProfileOptions, M as SubagentRunStream, Mt as serializeProfile, N as AnySubAgent, Nt as EMPTY_HARNESS_PROFILE, On as SandboxBackendProtocolV1, Ot as HarnessProfileConfigData, P as CreateDeepAgentParams, Pt as createHarnessProfile, Q as AsyncTask, Qt as EditResult, R as ExtractSubAgentMiddleware, Rt as REQUIRED_MIDDLEWARE_NAMES, Sn as isSandboxBackend, St as SubAgentMiddlewareOptions, Tn as BackendProtocolV2, Tt as createSubAgentMiddleware, U as InferSubAgentMiddlewareStates, Ut as createFilesystemMiddleware, V as InferDeepAgentType, Vt as FilesystemMiddlewareOptions, W as InferSubagentByName, Wt as FilesystemOperation, X as AsyncSubAgent, Xt as BackendRuntime, Y as SystemPromptConfig, Yt as BackendProtocol, Z as AsyncSubAgentMiddlewareOptions, Zt as DeleteResult, _ as StoreBackendContext, _n as SandboxInfo, _t as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, a as adaptBackendProtocol, an as GlobResult, at as createCompletionCallbackMiddleware, bn as StateAndStore, c as LangSmithSandboxCreateOptions, cn as LsResult, ct as MAX_SKILL_NAME_LENGTH, dn as ReadResult, dt as createSkillsMiddleware, en as FileData, et as createAsyncSubAgentMiddleware, fn as SandboxBackendProtocol, ft as MemoryMiddlewareOptions, g as StoreBackend, gn as SandboxGetOrCreateOptions, gt as CompiledSubAgent, hn as SandboxErrorCode, ht as createPatchToolCallsMiddleware, in as FileUploadResponse, it as CompletionCallbackOptions, j as DeepAgentRunStream, jt as parseHarnessProfileConfig, kt as generalPurposeSubagentConfigSchema, l as LangSmithSandboxOptions, ln as MaybePromise, lt as SkillMetadata, m as CompositeBackend, mn as SandboxError, mt as StateBackend, nn as FileInfo, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as GrepMatch, ot as MAX_SKILL_DESCRIPTION_LENGTH, p as ContextHubBackend, pn as SandboxDeleteOptions, pt as createMemoryMiddleware, q as ResolveDeepAgentTypeConfig, qt as AnyBackendProtocol, rn as FileOperationError, rt as createSummarizationMiddleware, s as LangSmithSandbox, sn as GrepResult, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as FileDownloadResponse, tt as isAsyncSubAgent, u as BaseSandbox, un as ReadRawResult, ut as SkillsMiddlewareOptions, v as StoreBackendNamespaceFactory, vn as SandboxListOptions, vt as DEFAULT_SUBAGENT_PROMPT, wn as resolveBackend, xn as WriteResult, xt as SubAgent, y as StoreBackendOptions, yn as SandboxListResponse, yt as GENERAL_PURPOSE_SUBAGENT, z as FlattenSubAgentMiddleware, zt as ConfigurationError } from "./agent-k6GiDPCY.js";
|
|
2
2
|
import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
|
|
3
3
|
export { type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, 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, 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 GENERAL_PURPOSE_SUBAGENT, B as isSandboxProtocol, C as MAX_SKILL_NAME_LENGTH, D as createPatchToolCallsMiddleware, E as filesValue, F as createFilesystemMiddleware, H as adaptBackendProtocol, I as CompositeBackend, L as StateBackend, M as TASK_SYSTEM_PROMPT, O as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, P as createSubAgentMiddleware, R as SandboxError, S as MAX_SKILL_FILE_SIZE, T as createMemoryMiddleware, U as adaptSandboxProtocol, V as resolveBackend, _ as isAsyncSubAgent, a as createDeepAgent, b as createCompletionCallbackMiddleware, c as generalPurposeSubagentConfigSchema, d as serializeProfile, f as EMPTY_HARNESS_PROFILE, g as createAsyncSubAgentMiddleware, h as ConfigurationError, i as StoreBackend, k as DEFAULT_SUBAGENT_PROMPT, l as harnessProfileConfigSchema, m as REQUIRED_MIDDLEWARE_NAMES, n as BaseSandbox, o as getHarnessProfile, p as createHarnessProfile, r as ContextHubBackend, s as registerHarnessProfile, t as LangSmithSandbox, u as parseHarnessProfileConfig, v as computeSummarizationDefaults, w as createSkillsMiddleware, x as MAX_SKILL_DESCRIPTION_LENGTH, y as createSummarizationMiddleware, z as isSandboxBackend } from "./langsmith-
|
|
1
|
+
import { A as GENERAL_PURPOSE_SUBAGENT, B as isSandboxProtocol, C as MAX_SKILL_NAME_LENGTH, D as createPatchToolCallsMiddleware, E as filesValue, F as createFilesystemMiddleware, H as adaptBackendProtocol, I as CompositeBackend, L as StateBackend, M as TASK_SYSTEM_PROMPT, O as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, P as createSubAgentMiddleware, R as SandboxError, S as MAX_SKILL_FILE_SIZE, T as createMemoryMiddleware, U as adaptSandboxProtocol, V as resolveBackend, _ as isAsyncSubAgent, a as createDeepAgent, b as createCompletionCallbackMiddleware, c as generalPurposeSubagentConfigSchema, d as serializeProfile, f as EMPTY_HARNESS_PROFILE, g as createAsyncSubAgentMiddleware, h as ConfigurationError, i as StoreBackend, k as DEFAULT_SUBAGENT_PROMPT, l as harnessProfileConfigSchema, m as REQUIRED_MIDDLEWARE_NAMES, n as BaseSandbox, o as getHarnessProfile, p as createHarnessProfile, r as ContextHubBackend, s as registerHarnessProfile, t as LangSmithSandbox, u as parseHarnessProfileConfig, v as computeSummarizationDefaults, w as createSkillsMiddleware, x as MAX_SKILL_DESCRIPTION_LENGTH, y as createSummarizationMiddleware, z as isSandboxBackend } from "./langsmith-DVh4u6Za.js";
|
|
2
2
|
export { BaseSandbox, CompositeBackend, ConfigurationError, ContextHubBackend, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, EMPTY_HARNESS_PROFILE, 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-DhbsxI45.cjs");
|
|
3
|
+
const require_src = require("./src-DtpWpNrN.cjs");
|
|
4
4
|
exports.BaseSandbox = require_langsmith.BaseSandbox;
|
|
5
5
|
exports.CompositeBackend = require_langsmith.CompositeBackend;
|
|
6
6
|
exports.ConfigurationError = require_langsmith.ConfigurationError;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as AsyncTaskStatus, $t as ExecuteResponse, A as findProjectRoot, At as harnessProfileConfigSchema, B as InferDeepAgentSubagents, Bt as ConfigurationErrorCode, C as parseSkillMetadata, Cn as isSandboxProtocol, Ct as TASK_SYSTEM_PROMPT, D as Settings, Dn as BackendProtocolV1, Dt as registerHarnessProfile, E as filesValue, En as SandboxBackendProtocolV2, Et as getHarnessProfile, F as DeepAgent, Ft as GeneralPurposeSubagentConfig, G as InferSubagentReactAgentType, Gt as FilesystemPermission, H as InferStructuredResponse, Ht as FsToolName, I as DeepAgentTypeConfig, It as HarnessProfile, J as SupportedResponseFormat, Jt as BackendFactory, K as MergedDeepAgentState, Kt as PermissionMode, L as DefaultDeepAgentTypeConfig, Lt as HarnessProfileOptions, M as SubagentRunStream, Mt as serializeProfile, N as AnySubAgent, Nt as EMPTY_HARNESS_PROFILE, O as SettingsOptions, On as SandboxBackendProtocolV1, Ot as HarnessProfileConfigData, P as CreateDeepAgentParams, Pt as createHarnessProfile, Q as AsyncTask, Qt as EditResult, R as ExtractSubAgentMiddleware, Rt as REQUIRED_MIDDLEWARE_NAMES, S as listSkills, Sn as isSandboxBackend, St as SubAgentMiddlewareOptions, T as createAgentMemoryMiddleware, Tn as BackendProtocolV2, Tt as createSubAgentMiddleware, U as InferSubAgentMiddlewareStates, Ut as createFilesystemMiddleware, V as InferDeepAgentType, Vt as FilesystemMiddlewareOptions, W as InferSubagentByName, Wt as FilesystemOperation, X as AsyncSubAgent, Xt as BackendRuntime, Y as SystemPromptConfig, Yt as BackendProtocol, Z as AsyncSubAgentMiddlewareOptions, Zt as DeleteResult, _ as StoreBackendContext, _n as SandboxInfo, _t as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, a as adaptBackendProtocol, an as GlobResult, at as createCompletionCallbackMiddleware, b as ListSkillsOptions, bn as StateAndStore, bt as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, c as LangSmithSandboxCreateOptions, cn as LsResult, ct as MAX_SKILL_NAME_LENGTH, d as LocalShellBackend, dn as ReadResult, dt as createSkillsMiddleware, en as FileData, et as createAsyncSubAgentMiddleware, f as LocalShellBackendOptions, fn as SandboxBackendProtocol, ft as MemoryMiddlewareOptions, g as StoreBackend, gn as SandboxGetOrCreateOptions, gt as CompiledSubAgent, h as FilesystemBackend, hn as SandboxErrorCode, ht as createPatchToolCallsMiddleware, i as LangSmithStartSandboxOptions, in as FileUploadResponse, it as CompletionCallbackOptions, j as DeepAgentRunStream, jt as parseHarnessProfileConfig, k as createSettings, kt as generalPurposeSubagentConfigSchema, l as LangSmithSandboxOptions, ln as MaybePromise, lt as SkillMetadata$1, m as CompositeBackend, mn as SandboxError, mt as StateBackend, n as LangSmithCaptureSnapshotOptions, nn as FileInfo, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as GrepMatch, ot as MAX_SKILL_DESCRIPTION_LENGTH, p as ContextHubBackend, pn as SandboxDeleteOptions, pt as createMemoryMiddleware, q as ResolveDeepAgentTypeConfig, qt as AnyBackendProtocol, r as LangSmithSnapshot, rn as FileOperationError, rt as createSummarizationMiddleware, s as LangSmithSandbox, sn as GrepResult, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as FileDownloadResponse, tt as isAsyncSubAgent, u as BaseSandbox, un as ReadRawResult, ut as SkillsMiddlewareOptions, v as StoreBackendNamespaceFactory, vn as SandboxListOptions, vt as DEFAULT_SUBAGENT_PROMPT, w as AgentMemoryMiddlewareOptions, wn as resolveBackend, wt as createSubAgent, x as SkillMetadata, xn as WriteResult, xt as SubAgent, y as StoreBackendOptions, yn as SandboxListResponse, yt as GENERAL_PURPOSE_SUBAGENT, z as FlattenSubAgentMiddleware, zt as ConfigurationError } from "./agent-
|
|
1
|
+
import { $ as AsyncTaskStatus, $t as ExecuteResponse, A as findProjectRoot, At as harnessProfileConfigSchema, B as InferDeepAgentSubagents, Bt as ConfigurationErrorCode, C as parseSkillMetadata, Cn as isSandboxProtocol, Ct as TASK_SYSTEM_PROMPT, D as Settings, Dn as BackendProtocolV1, Dt as registerHarnessProfile, E as filesValue, En as SandboxBackendProtocolV2, Et as getHarnessProfile, F as DeepAgent, Ft as GeneralPurposeSubagentConfig, G as InferSubagentReactAgentType, Gt as FilesystemPermission, H as InferStructuredResponse, Ht as FsToolName, I as DeepAgentTypeConfig, It as HarnessProfile, J as SupportedResponseFormat, Jt as BackendFactory, K as MergedDeepAgentState, Kt as PermissionMode, L as DefaultDeepAgentTypeConfig, Lt as HarnessProfileOptions, M as SubagentRunStream, Mt as serializeProfile, N as AnySubAgent, Nt as EMPTY_HARNESS_PROFILE, O as SettingsOptions, On as SandboxBackendProtocolV1, Ot as HarnessProfileConfigData, P as CreateDeepAgentParams, Pt as createHarnessProfile, Q as AsyncTask, Qt as EditResult, R as ExtractSubAgentMiddleware, Rt as REQUIRED_MIDDLEWARE_NAMES, S as listSkills, Sn as isSandboxBackend, St as SubAgentMiddlewareOptions, T as createAgentMemoryMiddleware, Tn as BackendProtocolV2, Tt as createSubAgentMiddleware, U as InferSubAgentMiddlewareStates, Ut as createFilesystemMiddleware, V as InferDeepAgentType, Vt as FilesystemMiddlewareOptions, W as InferSubagentByName, Wt as FilesystemOperation, X as AsyncSubAgent, Xt as BackendRuntime, Y as SystemPromptConfig, Yt as BackendProtocol, Z as AsyncSubAgentMiddlewareOptions, Zt as DeleteResult, _ as StoreBackendContext, _n as SandboxInfo, _t as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, a as adaptBackendProtocol, an as GlobResult, at as createCompletionCallbackMiddleware, b as ListSkillsOptions, bn as StateAndStore, bt as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, c as LangSmithSandboxCreateOptions, cn as LsResult, ct as MAX_SKILL_NAME_LENGTH, d as LocalShellBackend, dn as ReadResult, dt as createSkillsMiddleware, en as FileData, et as createAsyncSubAgentMiddleware, f as LocalShellBackendOptions, fn as SandboxBackendProtocol, ft as MemoryMiddlewareOptions, g as StoreBackend, gn as SandboxGetOrCreateOptions, gt as CompiledSubAgent, h as FilesystemBackend, hn as SandboxErrorCode, ht as createPatchToolCallsMiddleware, i as LangSmithStartSandboxOptions, in as FileUploadResponse, it as CompletionCallbackOptions, j as DeepAgentRunStream, jt as parseHarnessProfileConfig, k as createSettings, kt as generalPurposeSubagentConfigSchema, l as LangSmithSandboxOptions, ln as MaybePromise, lt as SkillMetadata$1, m as CompositeBackend, mn as SandboxError, mt as StateBackend, n as LangSmithCaptureSnapshotOptions, nn as FileInfo, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as GrepMatch, ot as MAX_SKILL_DESCRIPTION_LENGTH, p as ContextHubBackend, pn as SandboxDeleteOptions, pt as createMemoryMiddleware, q as ResolveDeepAgentTypeConfig, qt as AnyBackendProtocol, r as LangSmithSnapshot, rn as FileOperationError, rt as createSummarizationMiddleware, s as LangSmithSandbox, sn as GrepResult, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as FileDownloadResponse, tt as isAsyncSubAgent, u as BaseSandbox, un as ReadRawResult, ut as SkillsMiddlewareOptions, v as StoreBackendNamespaceFactory, vn as SandboxListOptions, vt as DEFAULT_SUBAGENT_PROMPT, w as AgentMemoryMiddlewareOptions, wn as resolveBackend, wt as createSubAgent, x as SkillMetadata, xn as WriteResult, xt as SubAgent, y as StoreBackendOptions, yn as SandboxListResponse, yt as GENERAL_PURPOSE_SUBAGENT, z as FlattenSubAgentMiddleware, zt as ConfigurationError } from "./agent-B2XFuA-E.cjs";
|
|
2
2
|
export { type AgentMemoryMiddlewareOptions, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, 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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as AsyncTaskStatus, $t as ExecuteResponse, A as findProjectRoot, At as harnessProfileConfigSchema, B as InferDeepAgentSubagents, Bt as ConfigurationErrorCode, C as parseSkillMetadata, Cn as isSandboxProtocol, Ct as TASK_SYSTEM_PROMPT, D as Settings, Dn as BackendProtocolV1, Dt as registerHarnessProfile, E as filesValue, En as SandboxBackendProtocolV2, Et as getHarnessProfile, F as DeepAgent, Ft as GeneralPurposeSubagentConfig, G as InferSubagentReactAgentType, Gt as FilesystemPermission, H as InferStructuredResponse, Ht as FsToolName, I as DeepAgentTypeConfig, It as HarnessProfile, J as SupportedResponseFormat, Jt as BackendFactory, K as MergedDeepAgentState, Kt as PermissionMode, L as DefaultDeepAgentTypeConfig, Lt as HarnessProfileOptions, M as SubagentRunStream, Mt as serializeProfile, N as AnySubAgent, Nt as EMPTY_HARNESS_PROFILE, O as SettingsOptions, On as SandboxBackendProtocolV1, Ot as HarnessProfileConfigData, P as CreateDeepAgentParams, Pt as createHarnessProfile, Q as AsyncTask, Qt as EditResult, R as ExtractSubAgentMiddleware, Rt as REQUIRED_MIDDLEWARE_NAMES, S as listSkills, Sn as isSandboxBackend, St as SubAgentMiddlewareOptions, T as createAgentMemoryMiddleware, Tn as BackendProtocolV2, Tt as createSubAgentMiddleware, U as InferSubAgentMiddlewareStates, Ut as createFilesystemMiddleware, V as InferDeepAgentType, Vt as FilesystemMiddlewareOptions, W as InferSubagentByName, Wt as FilesystemOperation, X as AsyncSubAgent, Xt as BackendRuntime, Y as SystemPromptConfig, Yt as BackendProtocol, Z as AsyncSubAgentMiddlewareOptions, Zt as DeleteResult, _ as StoreBackendContext, _n as SandboxInfo, _t as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, a as adaptBackendProtocol, an as GlobResult, at as createCompletionCallbackMiddleware, b as ListSkillsOptions, bn as StateAndStore, bt as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, c as LangSmithSandboxCreateOptions, cn as LsResult, ct as MAX_SKILL_NAME_LENGTH, d as LocalShellBackend, dn as ReadResult, dt as createSkillsMiddleware, en as FileData, et as createAsyncSubAgentMiddleware, f as LocalShellBackendOptions, fn as SandboxBackendProtocol, ft as MemoryMiddlewareOptions, g as StoreBackend, gn as SandboxGetOrCreateOptions, gt as CompiledSubAgent, h as FilesystemBackend, hn as SandboxErrorCode, ht as createPatchToolCallsMiddleware, i as LangSmithStartSandboxOptions, in as FileUploadResponse, it as CompletionCallbackOptions, j as DeepAgentRunStream, jt as parseHarnessProfileConfig, k as createSettings, kt as generalPurposeSubagentConfigSchema, l as LangSmithSandboxOptions, ln as MaybePromise, lt as SkillMetadata$1, m as CompositeBackend, mn as SandboxError, mt as StateBackend, n as LangSmithCaptureSnapshotOptions, nn as FileInfo, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as GrepMatch, ot as MAX_SKILL_DESCRIPTION_LENGTH, p as ContextHubBackend, pn as SandboxDeleteOptions, pt as createMemoryMiddleware, q as ResolveDeepAgentTypeConfig, qt as AnyBackendProtocol, r as LangSmithSnapshot, rn as FileOperationError, rt as createSummarizationMiddleware, s as LangSmithSandbox, sn as GrepResult, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as FileDownloadResponse, tt as isAsyncSubAgent, u as BaseSandbox, un as ReadRawResult, ut as SkillsMiddlewareOptions, v as StoreBackendNamespaceFactory, vn as SandboxListOptions, vt as DEFAULT_SUBAGENT_PROMPT, w as AgentMemoryMiddlewareOptions, wn as resolveBackend, wt as createSubAgent, x as SkillMetadata, xn as WriteResult, xt as SubAgent, y as StoreBackendOptions, yn as SandboxListResponse, yt as GENERAL_PURPOSE_SUBAGENT, z as FlattenSubAgentMiddleware, zt as ConfigurationError } from "./agent-
|
|
1
|
+
import { $ as AsyncTaskStatus, $t as ExecuteResponse, A as findProjectRoot, At as harnessProfileConfigSchema, B as InferDeepAgentSubagents, Bt as ConfigurationErrorCode, C as parseSkillMetadata, Cn as isSandboxProtocol, Ct as TASK_SYSTEM_PROMPT, D as Settings, Dn as BackendProtocolV1, Dt as registerHarnessProfile, E as filesValue, En as SandboxBackendProtocolV2, Et as getHarnessProfile, F as DeepAgent, Ft as GeneralPurposeSubagentConfig, G as InferSubagentReactAgentType, Gt as FilesystemPermission, H as InferStructuredResponse, Ht as FsToolName, I as DeepAgentTypeConfig, It as HarnessProfile, J as SupportedResponseFormat, Jt as BackendFactory, K as MergedDeepAgentState, Kt as PermissionMode, L as DefaultDeepAgentTypeConfig, Lt as HarnessProfileOptions, M as SubagentRunStream, Mt as serializeProfile, N as AnySubAgent, Nt as EMPTY_HARNESS_PROFILE, O as SettingsOptions, On as SandboxBackendProtocolV1, Ot as HarnessProfileConfigData, P as CreateDeepAgentParams, Pt as createHarnessProfile, Q as AsyncTask, Qt as EditResult, R as ExtractSubAgentMiddleware, Rt as REQUIRED_MIDDLEWARE_NAMES, S as listSkills, Sn as isSandboxBackend, St as SubAgentMiddlewareOptions, T as createAgentMemoryMiddleware, Tn as BackendProtocolV2, Tt as createSubAgentMiddleware, U as InferSubAgentMiddlewareStates, Ut as createFilesystemMiddleware, V as InferDeepAgentType, Vt as FilesystemMiddlewareOptions, W as InferSubagentByName, Wt as FilesystemOperation, X as AsyncSubAgent, Xt as BackendRuntime, Y as SystemPromptConfig, Yt as BackendProtocol, Z as AsyncSubAgentMiddlewareOptions, Zt as DeleteResult, _ as StoreBackendContext, _n as SandboxInfo, _t as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, a as adaptBackendProtocol, an as GlobResult, at as createCompletionCallbackMiddleware, b as ListSkillsOptions, bn as StateAndStore, bt as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, c as LangSmithSandboxCreateOptions, cn as LsResult, ct as MAX_SKILL_NAME_LENGTH, d as LocalShellBackend, dn as ReadResult, dt as createSkillsMiddleware, en as FileData, et as createAsyncSubAgentMiddleware, f as LocalShellBackendOptions, fn as SandboxBackendProtocol, ft as MemoryMiddlewareOptions, g as StoreBackend, gn as SandboxGetOrCreateOptions, gt as CompiledSubAgent, h as FilesystemBackend, hn as SandboxErrorCode, ht as createPatchToolCallsMiddleware, i as LangSmithStartSandboxOptions, in as FileUploadResponse, it as CompletionCallbackOptions, j as DeepAgentRunStream, jt as parseHarnessProfileConfig, k as createSettings, kt as generalPurposeSubagentConfigSchema, l as LangSmithSandboxOptions, ln as MaybePromise, lt as SkillMetadata$1, m as CompositeBackend, mn as SandboxError, mt as StateBackend, n as LangSmithCaptureSnapshotOptions, nn as FileInfo, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as GrepMatch, ot as MAX_SKILL_DESCRIPTION_LENGTH, p as ContextHubBackend, pn as SandboxDeleteOptions, pt as createMemoryMiddleware, q as ResolveDeepAgentTypeConfig, qt as AnyBackendProtocol, r as LangSmithSnapshot, rn as FileOperationError, rt as createSummarizationMiddleware, s as LangSmithSandbox, sn as GrepResult, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as FileDownloadResponse, tt as isAsyncSubAgent, u as BaseSandbox, un as ReadRawResult, ut as SkillsMiddlewareOptions, v as StoreBackendNamespaceFactory, vn as SandboxListOptions, vt as DEFAULT_SUBAGENT_PROMPT, w as AgentMemoryMiddlewareOptions, wn as resolveBackend, wt as createSubAgent, x as SkillMetadata, xn as WriteResult, xt as SubAgent, y as StoreBackendOptions, yn as SandboxListResponse, yt as GENERAL_PURPOSE_SUBAGENT, z as FlattenSubAgentMiddleware, zt as ConfigurationError } from "./agent-k6GiDPCY.js";
|
|
2
2
|
export { type AgentMemoryMiddlewareOptions, type AnyBackendProtocol, type AnySubAgent, type AsyncSubAgent, type AsyncSubAgentMiddlewareOptions, type AsyncTask, type AsyncTaskStatus, 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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as GENERAL_PURPOSE_SUBAGENT, B as isSandboxProtocol, C as MAX_SKILL_NAME_LENGTH, D as createPatchToolCallsMiddleware, E as filesValue, F as createFilesystemMiddleware, H as adaptBackendProtocol, I as CompositeBackend, L as StateBackend, M as TASK_SYSTEM_PROMPT, N as createSubAgent, O as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, P as createSubAgentMiddleware, R as SandboxError, S as MAX_SKILL_FILE_SIZE, T as createMemoryMiddleware, U as adaptSandboxProtocol, V as resolveBackend, _ as isAsyncSubAgent, a as createDeepAgent, b as createCompletionCallbackMiddleware, c as generalPurposeSubagentConfigSchema, d as serializeProfile, f as EMPTY_HARNESS_PROFILE, g as createAsyncSubAgentMiddleware, h as ConfigurationError, i as StoreBackend, j as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, k as DEFAULT_SUBAGENT_PROMPT, l as harnessProfileConfigSchema, m as REQUIRED_MIDDLEWARE_NAMES, n as BaseSandbox, o as getHarnessProfile, p as createHarnessProfile, r as ContextHubBackend, s as registerHarnessProfile, t as LangSmithSandbox, u as parseHarnessProfileConfig, v as computeSummarizationDefaults, w as createSkillsMiddleware, x as MAX_SKILL_DESCRIPTION_LENGTH, y as createSummarizationMiddleware, z as isSandboxBackend } from "./langsmith-
|
|
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-
|
|
1
|
+
import { A as GENERAL_PURPOSE_SUBAGENT, B as isSandboxProtocol, C as MAX_SKILL_NAME_LENGTH, D as createPatchToolCallsMiddleware, E as filesValue, F as createFilesystemMiddleware, H as adaptBackendProtocol, I as CompositeBackend, L as StateBackend, M as TASK_SYSTEM_PROMPT, N as createSubAgent, O as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, P as createSubAgentMiddleware, R as SandboxError, S as MAX_SKILL_FILE_SIZE, T as createMemoryMiddleware, U as adaptSandboxProtocol, V as resolveBackend, _ as isAsyncSubAgent, a as createDeepAgent, b as createCompletionCallbackMiddleware, c as generalPurposeSubagentConfigSchema, d as serializeProfile, f as EMPTY_HARNESS_PROFILE, g as createAsyncSubAgentMiddleware, h as ConfigurationError, i as StoreBackend, j as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, k as DEFAULT_SUBAGENT_PROMPT, l as harnessProfileConfigSchema, m as REQUIRED_MIDDLEWARE_NAMES, n as BaseSandbox, o as getHarnessProfile, p as createHarnessProfile, r as ContextHubBackend, s as registerHarnessProfile, t as LangSmithSandbox, u as parseHarnessProfileConfig, v as computeSummarizationDefaults, w as createSkillsMiddleware, x as MAX_SKILL_DESCRIPTION_LENGTH, y as createSummarizationMiddleware, z as isSandboxBackend } from "./langsmith-DVh4u6Za.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-Cqag72HH.js";
|
|
3
3
|
export { BaseSandbox, CompositeBackend, ConfigurationError, ContextHubBackend, DEFAULT_GENERAL_PURPOSE_DESCRIPTION, DEFAULT_SUBAGENT_PROMPT, EMPTY_HARNESS_PROFILE, 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 };
|
|
@@ -1502,19 +1502,46 @@ const FilesystemStateSchema = new StateSchema({ files: new ReducedValue(z.record
|
|
|
1502
1502
|
inputSchema: z.record(z.string(), FileDataSchema.nullable()).optional(),
|
|
1503
1503
|
reducer: fileDataReducer
|
|
1504
1504
|
}) });
|
|
1505
|
+
/** Extract a message string from an unknown thrown value without `instanceof`. */
|
|
1506
|
+
function getErrorMessage$1(error) {
|
|
1507
|
+
if (typeof error === "object" && error !== null && "message" in error && typeof error.message === "string") return error.message;
|
|
1508
|
+
return String(error);
|
|
1509
|
+
}
|
|
1505
1510
|
/**
|
|
1506
|
-
*
|
|
1511
|
+
* Check whether `path` is permitted under `rules` for `operation`, returning an
|
|
1512
|
+
* error string to surface to the model (or `undefined` when allowed).
|
|
1507
1513
|
*
|
|
1508
|
-
*
|
|
1509
|
-
*
|
|
1510
|
-
*
|
|
1514
|
+
* Never throws: an invalid path (non-absolute, or containing `..` or `~`) or a
|
|
1515
|
+
* denied path is a recoverable tool error, not a fatal run-ending one. Such
|
|
1516
|
+
* paths are rejected, never normalized, so they cannot bypass a deny rule or
|
|
1517
|
+
* reach the backend.
|
|
1511
1518
|
*
|
|
1512
1519
|
* @internal
|
|
1513
1520
|
*/
|
|
1514
|
-
function
|
|
1521
|
+
function checkPermission(rules, operation, path) {
|
|
1515
1522
|
if (rules.length === 0) return;
|
|
1516
|
-
|
|
1517
|
-
|
|
1523
|
+
let canonical;
|
|
1524
|
+
try {
|
|
1525
|
+
canonical = validatePath(path);
|
|
1526
|
+
} catch (error) {
|
|
1527
|
+
return `Error: ${getErrorMessage$1(error)}`;
|
|
1528
|
+
}
|
|
1529
|
+
if (decidePathAccess(rules, operation, canonical) === "deny") return `Error: permission denied for ${operation} on ${canonical}`;
|
|
1530
|
+
}
|
|
1531
|
+
/**
|
|
1532
|
+
* Build an error {@link ToolMessage} for a rejected or denied path. Returning a
|
|
1533
|
+
* bare string would be wrapped as a `status: "success"` message whose content
|
|
1534
|
+
* merely starts with "Error:"; marking `status: "error"` reports the failure
|
|
1535
|
+
* accurately so callers and the model can distinguish a real failure from a
|
|
1536
|
+
* successful result.
|
|
1537
|
+
*/
|
|
1538
|
+
function toolError(runtime, toolName, message) {
|
|
1539
|
+
return new ToolMessage({
|
|
1540
|
+
content: message,
|
|
1541
|
+
name: toolName,
|
|
1542
|
+
tool_call_id: runtime.toolCall?.id,
|
|
1543
|
+
status: "error"
|
|
1544
|
+
});
|
|
1518
1545
|
}
|
|
1519
1546
|
/**
|
|
1520
1547
|
* Filter a list of filesystem entries to those the rules permit.
|
|
@@ -1685,7 +1712,8 @@ const EXECUTION_SYSTEM_PROMPT = context`
|
|
|
1685
1712
|
function createLsTool(backend, options) {
|
|
1686
1713
|
const { customDescription, permissions } = options;
|
|
1687
1714
|
return tool(async (input, runtime) => {
|
|
1688
|
-
|
|
1715
|
+
const permissionError = checkPermission(permissions, "read", input.path ?? "/");
|
|
1716
|
+
if (permissionError !== void 0) return toolError(runtime, "ls", permissionError);
|
|
1689
1717
|
const resolvedBackend = await resolveBackend(backend, runtime);
|
|
1690
1718
|
const path = input.path || "/";
|
|
1691
1719
|
const lsResult = await resolvedBackend.ls(path);
|
|
@@ -1713,7 +1741,8 @@ function createLsTool(backend, options) {
|
|
|
1713
1741
|
function createReadFileTool(backend, options) {
|
|
1714
1742
|
const { customDescription, toolTokenLimitBeforeEvict, permissions } = options;
|
|
1715
1743
|
return tool(async (input, runtime) => {
|
|
1716
|
-
|
|
1744
|
+
const permissionError = checkPermission(permissions, "read", input.file_path);
|
|
1745
|
+
if (permissionError !== void 0) return toolError(runtime, "read_file", permissionError);
|
|
1717
1746
|
const resolvedBackend = await resolveBackend(backend, runtime);
|
|
1718
1747
|
const { file_path, offset = 0, limit = 100 } = input;
|
|
1719
1748
|
const readResult = await resolvedBackend.read(file_path, offset, limit);
|
|
@@ -1790,7 +1819,8 @@ function createReadFileTool(backend, options) {
|
|
|
1790
1819
|
function createWriteFileTool(backend, options) {
|
|
1791
1820
|
const { customDescription, permissions } = options;
|
|
1792
1821
|
return tool(async (input, runtime) => {
|
|
1793
|
-
|
|
1822
|
+
const permissionError = checkPermission(permissions, "write", input.file_path);
|
|
1823
|
+
if (permissionError !== void 0) return toolError(runtime, "write_file", permissionError);
|
|
1794
1824
|
const resolvedBackend = await resolveBackend(backend, runtime);
|
|
1795
1825
|
const { file_path, content } = input;
|
|
1796
1826
|
const result = await resolvedBackend.write(file_path, content);
|
|
@@ -1821,7 +1851,8 @@ function createWriteFileTool(backend, options) {
|
|
|
1821
1851
|
function createEditFileTool(backend, options) {
|
|
1822
1852
|
const { customDescription, permissions } = options;
|
|
1823
1853
|
return tool(async (input, runtime) => {
|
|
1824
|
-
|
|
1854
|
+
const permissionError = checkPermission(permissions, "write", input.file_path);
|
|
1855
|
+
if (permissionError !== void 0) return toolError(runtime, "edit_file", permissionError);
|
|
1825
1856
|
const resolvedBackend = await resolveBackend(backend, runtime);
|
|
1826
1857
|
const { file_path, old_string, new_string, replace_all = false } = input;
|
|
1827
1858
|
const result = await resolvedBackend.edit(file_path, old_string, new_string, replace_all);
|
|
@@ -1854,7 +1885,8 @@ function createEditFileTool(backend, options) {
|
|
|
1854
1885
|
function createGlobTool(backend, options) {
|
|
1855
1886
|
const { customDescription, permissions } = options;
|
|
1856
1887
|
return tool(async (input, runtime) => {
|
|
1857
|
-
|
|
1888
|
+
const permissionError = checkPermission(permissions, "read", input.path ?? "/");
|
|
1889
|
+
if (permissionError !== void 0) return toolError(runtime, "glob", permissionError);
|
|
1858
1890
|
const resolvedBackend = await resolveBackend(backend, runtime);
|
|
1859
1891
|
const { pattern, path = "/" } = input;
|
|
1860
1892
|
const globResult = await resolvedBackend.glob(pattern, path);
|
|
@@ -1879,7 +1911,8 @@ function createGlobTool(backend, options) {
|
|
|
1879
1911
|
function createGrepTool(backend, options) {
|
|
1880
1912
|
const { customDescription, permissions } = options;
|
|
1881
1913
|
return tool(async (input, runtime) => {
|
|
1882
|
-
|
|
1914
|
+
const permissionError = checkPermission(permissions, "read", input.path ?? "/");
|
|
1915
|
+
if (permissionError !== void 0) return toolError(runtime, "grep", permissionError);
|
|
1883
1916
|
const resolvedBackend = await resolveBackend(backend, runtime);
|
|
1884
1917
|
const { pattern, path = "/", glob = null } = input;
|
|
1885
1918
|
const result = await resolvedBackend.grep(pattern, path, glob);
|
|
@@ -7562,4 +7595,4 @@ var LangSmithSandbox = class LangSmithSandbox extends BaseSandbox {
|
|
|
7562
7595
|
//#endregion
|
|
7563
7596
|
export { GENERAL_PURPOSE_SUBAGENT as A, isSandboxProtocol as B, MAX_SKILL_NAME_LENGTH as C, createPatchToolCallsMiddleware as D, filesValue as E, createFilesystemMiddleware as F, getMimeType as G, adaptBackendProtocol as H, CompositeBackend as I, isTextMimeType as K, StateBackend as L, TASK_SYSTEM_PROMPT as M, createSubAgent as N, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as O, createSubAgentMiddleware as P, SandboxError as R, MAX_SKILL_FILE_SIZE as S, createMemoryMiddleware as T, adaptSandboxProtocol as U, resolveBackend as V, checkEmptyContent as W, isAsyncSubAgent as _, createDeepAgent as a, createCompletionCallbackMiddleware as b, generalPurposeSubagentConfigSchema as c, serializeProfile as d, EMPTY_HARNESS_PROFILE as f, createAsyncSubAgentMiddleware as g, ConfigurationError as h, StoreBackend as i, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as j, DEFAULT_SUBAGENT_PROMPT as k, harnessProfileConfigSchema as l, REQUIRED_MIDDLEWARE_NAMES as m, BaseSandbox as n, getHarnessProfile as o, createHarnessProfile as p, performStringReplacement as q, ContextHubBackend as r, registerHarnessProfile as s, LangSmithSandbox as t, parseHarnessProfileConfig as u, computeSummarizationDefaults as v, createSkillsMiddleware as w, MAX_SKILL_DESCRIPTION_LENGTH as x, createSummarizationMiddleware as y, isSandboxBackend as z };
|
|
7564
7597
|
|
|
7565
|
-
//# sourceMappingURL=langsmith-
|
|
7598
|
+
//# sourceMappingURL=langsmith-DVh4u6Za.js.map
|