deepagents 1.14.1 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,18 +4,18 @@ import * as _langgraph from "@langchain/langgraph";
4
4
  import { AnnotationRoot, AnyStateSchema, Command, ReducedValue, StateDefinitionInit, StateSchema, StreamTransformer } from "@langchain/langgraph";
5
5
  import { z } from "zod/v4";
6
6
  import * as _messages from "@langchain/core/messages";
7
- import { SystemMessage as SystemMessage$1 } from "@langchain/core/messages";
7
+ import { BaseMessage, SystemMessage as SystemMessage$1 } from "@langchain/core/messages";
8
8
  import * as z$2 from "zod";
9
9
  import { z as z$1 } from "zod";
10
+ import { Runnable } from "@langchain/core/runnables";
11
+ import { ClientTool, ServerTool, StructuredTool as StructuredTool$1 } from "@langchain/core/tools";
12
+ import { BaseLanguageModel, LanguageModelLike } from "@langchain/core/language_models/base";
13
+ import { InteropZodObject } from "@langchain/core/utils/types";
10
14
  import { Client } from "@langchain/langgraph-sdk";
11
15
  import { Client as Client$1 } from "langsmith";
12
16
  import { CaptureSnapshotOptions, CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, CreateSandboxOptions, Sandbox, Snapshot, Snapshot as LangSmithSnapshot, StartSandboxOptions, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
13
17
  import { BaseCheckpointSaver, BaseStore } from "@langchain/langgraph-checkpoint";
14
- import { ClientTool, ServerTool, StructuredTool as StructuredTool$1 } from "@langchain/core/tools";
15
- import { BaseLanguageModel, LanguageModelLike } from "@langchain/core/language_models/base";
16
- import { Runnable } from "@langchain/core/runnables";
17
18
  import { BaseChatModel } from "@langchain/core/language_models/chat_models";
18
- import { InteropZodObject } from "@langchain/core/utils/types";
19
19
  //#region src/backends/v1/protocol.d.ts
20
20
  /**
21
21
  * Protocol for pluggable memory backends (single, unified).
@@ -908,6 +908,12 @@ interface FilesystemMiddlewareOptions {
908
908
  * default. Applies to `ls`, `read_file`, `write_file`, `edit_file`,
909
909
  * `glob`, and `grep`.
910
910
  *
911
+ * Paths are canonicalized (`.` and empty segments dropped) before matching.
912
+ * With `FilesystemBackend` (or a `CompositeBackend` route to one), rules
913
+ * are also checked against the symlink-resolved target, and a deny on either
914
+ * form blocks the call — so allow rules must cover a symlink's target, not
915
+ * just the link.
916
+ *
911
917
  * **Note on `execute`**: permissions are not enforced on `execute` because
912
918
  * shell commands can access any path regardless of path-based rules. Using
913
919
  * permissions with an execution-capable backend (one where `isSandboxBackend`
@@ -928,6 +934,21 @@ interface FilesystemMiddlewareOptions {
928
934
  * argument overrides this default. Set to `null` to disable the cap.
929
935
  */
930
936
  grepMaxCount?: number | null;
937
+ /**
938
+ * Keep binary `read_file` content and inline `HumanMessage` media out of
939
+ * message history (default: `false`).
940
+ *
941
+ * Payloads are written to `/blobs` on the backend and state keeps a
942
+ * content-addressed reference instead; model requests are rehydrated from
943
+ * the backend. `HumanMessage` payloads added since the last model response
944
+ * are replaced starting at the next model call, so the original input
945
+ * write still lands in checkpoint history for that turn. Useful with
946
+ * sandbox backends. Has no effect when `/blobs` routes to a `StateBackend`,
947
+ * since that backend stores files as part of graph state — offloading
948
+ * there would just relocate the bytes to a different key within the same
949
+ * checkpoint, not out of it.
950
+ */
951
+ offloadBinaryContent?: boolean;
931
952
  }
932
953
  /**
933
954
  * Create middleware that provides built-in filesystem tools and optional custom
@@ -1008,12 +1029,12 @@ declare function createFilesystemMiddleware(options?: FilesystemMiddlewareOption
1008
1029
  offset: number;
1009
1030
  limit: number;
1010
1031
  }, unknown, {
1011
- type: string;
1012
- text: string;
1013
- }[] | {
1014
1032
  type: string;
1015
1033
  mimeType: string;
1016
1034
  data: string;
1035
+ }[] | {
1036
+ type: string;
1037
+ text: string;
1017
1038
  }[] | ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "read_file"> | _langchain.DynamicStructuredTool<z.ZodPreprocess<z.ZodObject<{
1018
1039
  file_path: z.ZodString;
1019
1040
  content: z.ZodString;
@@ -1088,7 +1109,7 @@ declare const EXECUTION_SYSTEM_PROMPT: string;
1088
1109
  * Each code represents a distinct misconfiguration that can be detected at
1089
1110
  * agent-construction time. Add new codes here as new validations are added.
1090
1111
  */
1091
- type ConfigurationErrorCode = "TOOL_NAME_COLLISION";
1112
+ type ConfigurationErrorCode = "TOOL_NAME_COLLISION" | "SKILL_TOOLS_DUPLICATE_NAME" | "SKILL_TOOLS_UNSUPPORTED_TYPE";
1092
1113
  declare const CONFIGURATION_ERROR_SYMBOL: unique symbol;
1093
1114
  /**
1094
1115
  * Thrown when `createDeepAgent` receives invalid configuration.
@@ -1583,6 +1604,10 @@ interface SubAgent {
1583
1604
  * Note: Custom subagents do NOT inherit skills from the main agent by default.
1584
1605
  * Only the general-purpose subagent inherits the main agent's skills.
1585
1606
  *
1607
+ * Not needed when you pass a `createSkillsMiddleware` in `middleware`, for
1608
+ * example to give the subagent skill `tools`: that middleware takes the
1609
+ * same slot on its own.
1610
+ *
1586
1611
  * @example
1587
1612
  * ```typescript
1588
1613
  * const researcher: SubAgent = {
@@ -1803,8 +1828,12 @@ declare function createPatchToolCallsMiddleware(): AgentMiddleware<undefined, un
1803
1828
  * for the middleware to apply via Command.
1804
1829
  */
1805
1830
  declare class StateBackend implements BackendProtocolV2 {
1831
+ /** Class identity discriminant for {@link StateBackend.isInstance}. */
1832
+ readonly backendKind: "state";
1806
1833
  private runtime;
1807
1834
  private fileFormat;
1835
+ /** Duck-typed so this survives the plain-object copies `adaptBackendProtocol` makes — a class check wouldn't. */
1836
+ static isInstance(backend: unknown): backend is StateBackend;
1808
1837
  constructor(options?: BackendOptions);
1809
1838
  /**
1810
1839
  * @deprecated Pass no `runtime` argument
@@ -2035,10 +2064,49 @@ interface SkillMetadata$1 {
2035
2064
  */
2036
2065
  module?: string;
2037
2066
  }
2067
+ /**
2068
+ * Return the skill tools that one `metadata.include_tools` name stands for.
2069
+ *
2070
+ * A resolver lets a skill list tools whose real names are only known at
2071
+ * runtime, such as generated MCP tool names, and lets one name stand for a
2072
+ * family of tools. It's called with the name and the agent's `runtime`, on
2073
+ * every model call while a read or pin of a skill listing that name stays in
2074
+ * context, and again before one of its tools runs. It may return the tools or
2075
+ * a promise of them.
2076
+ *
2077
+ * - Return the same tools for the same name within a thread, or the prompt
2078
+ * cache breaks: a change moves bytes at a position that has already been
2079
+ * sent.
2080
+ * - Keep it cheap, or cache, since it runs on every model call.
2081
+ * - One resolver serves every thread, so scope any cache by what the tools
2082
+ * depend on, usually something in `runtime.context`.
2083
+ * - Names are resolved concurrently, so cache the pending promise, not only
2084
+ * its result.
2085
+ * - Exceptions propagate out of the model call or tool call. To degrade
2086
+ * gracefully, catch inside the resolver and return `[]`.
2087
+ *
2088
+ * A name that exactly matches a tool already in the request is claimed by that
2089
+ * tool and never passed to the resolver.
2090
+ *
2091
+ * @example
2092
+ * ```typescript
2093
+ * // e.g. every tool on a Linear MCP connection, whatever their generated names
2094
+ * const resolveSkillTools: SkillToolResolver<{ workspaceId: string }> = async (
2095
+ * name,
2096
+ * runtime,
2097
+ * ) => (await toolsForWorkspace(runtime.context.workspaceId))[name] ?? [];
2098
+ *
2099
+ * createSkillsMiddleware({ backend, sources: ["/skills/"], tools: resolveSkillTools });
2100
+ * ```
2101
+ */
2102
+ type SkillToolResolver<TContext = unknown> = (name: string, runtime: Runtime<TContext>) => readonly ClientTool[] | Promise<readonly ClientTool[]>;
2038
2103
  /**
2039
2104
  * Options for the skills middleware.
2105
+ *
2106
+ * @typeParam TContext - The agent's context type, as a `tools` resolver
2107
+ * receives it on `runtime.context`.
2040
2108
  */
2041
- interface SkillsMiddlewareOptions {
2109
+ interface SkillsMiddlewareOptions<TContext = unknown> {
2042
2110
  /**
2043
2111
  * Backend instance or factory function for file operations.
2044
2112
  * Use a factory for StateBackend since it requires runtime state.
@@ -2071,6 +2139,18 @@ interface SkillsMiddlewareOptions {
2071
2139
  * ```
2072
2140
  */
2073
2141
  sources: readonly string[];
2142
+ /**
2143
+ * Tools the model sees only after a skill that lists them in its `SKILL.md`
2144
+ * frontmatter, as a space-separated `metadata.include_tools`, is read or
2145
+ * pinned.
2146
+ *
2147
+ * Pass an array of tools, or a {@link SkillToolResolver} that looks up the
2148
+ * tools one `include_tools` name stands for when a skill is read or pinned.
2149
+ * Unlike other middleware's tools, these are never registered with the
2150
+ * agent: see {@link createSkillsMiddleware} for how they are disclosed and
2151
+ * gated.
2152
+ */
2153
+ tools?: readonly ClientTool[] | SkillToolResolver<TContext>;
2074
2154
  }
2075
2155
  /**
2076
2156
  * Zod schema for a single skill metadata entry.
@@ -2125,6 +2205,39 @@ declare const skillsMetadataValue: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<
2125
2205
  allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2126
2206
  module: z$1.ZodOptional<z$1.ZodString>;
2127
2207
  }, z$1.core.$strip>>>>;
2208
+ /**
2209
+ * State value for a middleware's `pinnedSkills` field: the names of skills to
2210
+ * pin.
2211
+ *
2212
+ * The next time the skills middleware's `beforeModel` runs, before a model
2213
+ * call, each named skill's `SKILL.md`, without its frontmatter, is appended to
2214
+ * the conversation as its own `HumanMessage`, in the order named. The message
2215
+ * is a snapshot: editing the file later doesn't change it, and naming the
2216
+ * skill again appends a new copy.
2217
+ *
2218
+ * Names only, matched exactly against the loaded skills. A name that isn't
2219
+ * loaded, or whose `SKILL.md` can't be read, is skipped without an error. The
2220
+ * key is cleared once consumed, so a later run pins nothing unless it names
2221
+ * skills again. Writes in the same step add up, so parallel tool calls can
2222
+ * each pin skills by returning a `Command`.
2223
+ *
2224
+ * Like {@link skillsMetadataValue}, treat the value as opaque. A middleware
2225
+ * declares it on its state schema to set `pinnedSkills` from its own hooks.
2226
+ *
2227
+ * @example
2228
+ * ```typescript
2229
+ * import { createMiddleware } from "langchain";
2230
+ * import { StateSchema } from "@langchain/langgraph";
2231
+ * import { pinnedSkillsValue } from "deepagents";
2232
+ *
2233
+ * const routeSkills = createMiddleware({
2234
+ * name: "RouteSkills",
2235
+ * stateSchema: new StateSchema({ pinnedSkills: pinnedSkillsValue }),
2236
+ * beforeAgent: (state) => ({ pinnedSkills: skillsFor(state.messages) }),
2237
+ * });
2238
+ * ```
2239
+ */
2240
+ declare const pinnedSkillsValue: ReducedValue<string[], string[] | undefined>;
2128
2241
  /**
2129
2242
  * Create backend-agnostic middleware for loading and exposing agent skills.
2130
2243
  *
@@ -2148,8 +2261,62 @@ declare const skillsMetadataValue: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<
2148
2261
  * invalidate from any hook — including mid-run, from `afterModel` — and see
2149
2262
  * the fresh list on the following call. See {@link skillsMetadataValue}.
2150
2263
  *
2264
+ * To guarantee the model gets a skill's instructions, for example when the
2265
+ * user names it, pass its name in `pinnedSkills`. Before the next model call,
2266
+ * each named skill's `SKILL.md`, without its frontmatter, is appended to the
2267
+ * conversation as its own `HumanMessage`, with `additional_kwargs.lc_source`
2268
+ * set to `"pinned_skill"` and the skill's `name`, `path` and `description`
2269
+ * under `additional_kwargs.skill`:
2270
+ *
2271
+ * ```ts
2272
+ * await agent.invoke(
2273
+ * {
2274
+ * messages: [new HumanMessage("/write-tests /house-style for auth.py")],
2275
+ * pinnedSkills: ["write-tests", "house-style"],
2276
+ * },
2277
+ * config,
2278
+ * );
2279
+ * ```
2280
+ *
2281
+ * Pins resolve against the skills loaded for the thread, so reset
2282
+ * `skillsMetadata` in the same input to pin a skill added since. See
2283
+ * {@link pinnedSkillsValue}.
2284
+ *
2285
+ * ## Skill tools
2286
+ *
2287
+ * A skill can list the tools its instructions use, separated by spaces, under
2288
+ * `metadata.include_tools` in its `SKILL.md` frontmatter:
2289
+ *
2290
+ * ```yaml
2291
+ * metadata:
2292
+ * include_tools: create_customer_request list_customer_requests
2293
+ * ```
2294
+ *
2295
+ * Pass those tools as `tools`, either as an array or as a
2296
+ * {@link SkillToolResolver} that looks them up by name when a skill is read
2297
+ * or pinned, so one name can stand for a family of tools whose real names are
2298
+ * only known at runtime. The model sees a skill tool only after it reads, with
2299
+ * `read_file`, a skill that lists it, or the skill is pinned, and only while
2300
+ * that read or pin stays in the conversation it is sent; compaction that drops
2301
+ * the read or pin withdraws the tool.
2302
+ * Until then, calling the tool fails with the standard invalid-tool error and
2303
+ * the tool doesn't run. This controls what is in the model's context; it is
2304
+ * not a security boundary, since the model can read any `SKILL.md` at any
2305
+ * time.
2306
+ *
2307
+ * `include_tools` can also name a tool passed to the agent rather than to this
2308
+ * middleware. That tool wins over a skill tool of the same name. If it is
2309
+ * deferred (`extras: { defer_loading: true }`), reading or pinning the skill
2310
+ * discloses it early, and it stays deferred and searchable; if it is bound,
2311
+ * nothing changes.
2312
+ *
2313
+ *
2151
2314
  * @param options - Configuration options
2152
2315
  * @returns AgentMiddleware for skills loading and injection
2316
+ * @throws {ConfigurationError} If `tools` is neither an array nor a
2317
+ * function (`SKILL_TOOLS_UNSUPPORTED_TYPE`), an entry isn't a client tool
2318
+ * (`SKILL_TOOLS_UNSUPPORTED_TYPE`), or two entries share a name
2319
+ * (`SKILL_TOOLS_DUPLICATE_NAME`).
2153
2320
  *
2154
2321
  * @example
2155
2322
  * ```typescript
@@ -2159,7 +2326,7 @@ declare const skillsMetadataValue: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<
2159
2326
  * });
2160
2327
  * ```
2161
2328
  */
2162
- declare function createSkillsMiddleware(options: SkillsMiddlewareOptions): AgentMiddleware<StateSchema<{
2329
+ declare function createSkillsMiddleware<TContext = unknown>(options: SkillsMiddlewareOptions<TContext>): AgentMiddleware<StateSchema<{
2163
2330
  skillsMetadata: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
2164
2331
  name: z$1.ZodString;
2165
2332
  description: z$1.ZodString;
@@ -2170,8 +2337,16 @@ declare function createSkillsMiddleware(options: SkillsMiddlewareOptions): Agent
2170
2337
  allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2171
2338
  module: z$1.ZodOptional<z$1.ZodString>;
2172
2339
  }, z$1.core.$strip>>>>;
2173
- files: import("@langchain/langgraph").ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
2174
- }>, undefined, unknown, readonly (import("@langchain/core/tools").ServerTool | import("@langchain/core/tools").ClientTool)[], readonly []>;
2340
+ pinnedSkills: ReducedValue<string[], string[] | undefined>;
2341
+ files: ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
2342
+ /**
2343
+ * The skill tools disclosed to the latest model call, each mapped to the
2344
+ * include name that produced it, for the tool-time gate. Written on every
2345
+ * model call of a skills middleware with skill tools. The last write wins,
2346
+ * so a model call retried within one step can write it again.
2347
+ */
2348
+ _skillToolsDisclosed: ReducedValue<Record<string, string> | undefined, Record<string, string> | undefined>;
2349
+ }>, undefined, unknown, readonly (ServerTool | ClientTool)[], readonly []>;
2175
2350
  /**
2176
2351
  * The middleware value returned by {@link createSkillsMiddleware}.
2177
2352
  *
@@ -2529,6 +2704,40 @@ declare function createAsyncSubAgentMiddleware(options: AsyncSubAgentMiddlewareO
2529
2704
  statusFilter?: string | null | undefined;
2530
2705
  }, string | Command<unknown, Record<string, unknown>, string>, unknown, "list_async_tasks">)[], readonly []>;
2531
2706
  //#endregion
2707
+ //#region src/middleware/unsupportedContent.d.ts
2708
+ /** Content block types `read_file` may emit that require multimodal model support. */
2709
+ declare const MULTIMODAL_BLOCK_TYPES: ReadonlySet<string>;
2710
+ type Profile = Record<string, unknown>;
2711
+ type Block = Record<string, unknown> & {
2712
+ type: string;
2713
+ };
2714
+ /**
2715
+ * Whether the model accepts a multimodal block.
2716
+ *
2717
+ * Missing profile fields default to supported, since profile coverage is
2718
+ * incomplete — except `file` blocks, where a missing `fileMimeTypes`
2719
+ * defaults to unsupported (see `fileBlockSupported`).
2720
+ */
2721
+ declare function multimodalBlockSupported(block: Block, profile: Profile, inToolMessage: boolean): boolean;
2722
+ /**
2723
+ * Without this, a request carrying content the model can't accept (e.g. a
2724
+ * `.zip` file sent to a model without file support) fails with a
2725
+ * non-retryable 400, and since the content stays in history, every later
2726
+ * turn fails the same way. Only the request is changed; messages in state
2727
+ * are left untouched, so switching to a model that accepts the content
2728
+ * sends it again.
2729
+ */
2730
+ declare function scrubUnsupportedMultimodalContent(messages: readonly BaseMessage[], model: unknown): BaseMessage[];
2731
+ /**
2732
+ * Support is read from `model.profile` (see
2733
+ * https://docs.langchain.com/oss/javascript/langchain/models#model-profiles).
2734
+ *
2735
+ * Place this middleware last in the agent's `middleware` list, so that if
2736
+ * some other middleware changes `request.model`, this one sees the model
2737
+ * that will actually receive the request.
2738
+ */
2739
+ declare function createUnsupportedContentMiddleware(): import("langchain").AgentMiddleware<undefined, undefined, unknown, readonly (import("@langchain/core/tools").ServerTool | import("@langchain/core/tools").ClientTool)[], readonly []>;
2740
+ //#endregion
2532
2741
  //#region src/types.d.ts
2533
2742
  type AnyAnnotationRoot = AnnotationRoot<any>;
2534
2743
  /**
@@ -3494,6 +3703,15 @@ declare class FilesystemBackend implements BackendProtocolV2 {
3494
3703
  * delete(), which may target a symlink itself without following it.
3495
3704
  */
3496
3705
  private assertRealPathWithinRoot;
3706
+ /**
3707
+ * Resolve `key` to the path an operation would actually touch, following
3708
+ * symlinks in every existing segment (including dangling ones). Missing
3709
+ * trailing segments are kept as given.
3710
+ *
3711
+ * Paths inside the root keep the root's configured form. In virtual mode the
3712
+ * result is a virtual path, and a target outside the root throws.
3713
+ */
3714
+ private resolveRealPath;
3497
3715
  /**
3498
3716
  * Resolve the concrete path to unlink for a virtual delete operation.
3499
3717
  */
@@ -3611,7 +3829,7 @@ declare class CompositeBackend implements BackendProtocolV2 {
3611
3829
  constructor(defaultBackend: AnyBackendProtocol, routes: Record<string, AnyBackendProtocol>);
3612
3830
  /** Delegates to default backend's id if it is a sandbox, otherwise empty string. */
3613
3831
  get id(): string;
3614
- /** Route prefixes registered on this backend (e.g. `["/workspace"]`). */
3832
+ /** Route prefixes registered on this backend, normalized to a trailing slash (e.g. `["/workspace/"]`). */
3615
3833
  get routePrefixes(): string[];
3616
3834
  /**
3617
3835
  * Type guard — returns true if `backend` is a {@link CompositeBackend}.
@@ -3620,6 +3838,16 @@ declare class CompositeBackend implements BackendProtocolV2 {
3620
3838
  * where `instanceof` may fail.
3621
3839
  */
3622
3840
  static isInstance(backend: unknown): backend is CompositeBackend;
3841
+ /**
3842
+ * Returns the backend for `path`, with the matched prefix stripped (`/foo` → `/`).
3843
+ * Routes match on path-segment boundaries: `/foo` matches `/foo/bar` but not `/foobar`.
3844
+ */
3845
+ resolveBackendForPath(path: string): [BackendProtocolV2, string];
3846
+ /**
3847
+ * Resolve symlinks via the backend that owns `path`, re-adding the route
3848
+ * prefix. Returns `path` unchanged when that backend has no realpath hook.
3849
+ */
3850
+ private resolveRealPath;
3623
3851
  /**
3624
3852
  * Determine which backend handles this key and strip prefix.
3625
3853
  *
@@ -4424,12 +4652,12 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
4424
4652
  offset: number;
4425
4653
  limit: number;
4426
4654
  }, unknown, {
4427
- type: string;
4428
- text: string;
4429
- }[] | {
4430
4655
  type: string;
4431
4656
  mimeType: string;
4432
4657
  data: string;
4658
+ }[] | {
4659
+ type: string;
4660
+ text: string;
4433
4661
  }[] | _messages.ToolMessage<_messages.MessageStructure<_messages.MessageToolSet>>, unknown, "read_file"> | import("langchain").DynamicStructuredTool<import("zod").ZodPreprocess<import("zod").ZodObject<{
4434
4662
  file_path: import("zod").ZodString;
4435
4663
  content: import("zod").ZodString;
@@ -4477,5 +4705,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
4477
4705
  }, import("zod/v4/core").$strip>>;
4478
4706
  }, 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>>;
4479
4707
  //#endregion
4480
- export { AsyncTaskStatus as $, PermissionMode as $t, createSettings as A, isSandboxBackend as An, HarnessProfileConfigData as At, FlattenSubAgentMiddleware as B, REQUIRED_MIDDLEWARE_NAMES as Bt, listSkills as C, SandboxGetOrCreateOptions as Cn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as Ct, filesValue as D, StateAndStore as Dn, createSubAgentMiddleware as Dt, createAgentMemoryMiddleware as E, SandboxListResponse as En, createSubAgent as Et, CreateDeepAgentParams as F, BackendProtocolV1 as Fn, EMPTY_HARNESS_PROFILE as Ft, InferSubagentByName as G, EXECUTION_SYSTEM_PROMPT as Gt, InferDeepAgentType as H, ConfigurationErrorCode as Ht, DeepAgent as I, SandboxBackendProtocolV1 as In, createHarnessProfile as It, ResolveDeepAgentTypeConfig as J, FilesystemMiddlewareOptions as Jt, InferSubagentReactAgentType as K, SystemPromptConfig as Kt, DeepAgentTypeConfig as L, GeneralPurposeSubagentConfig as Lt, DeepAgentRunStream as M, resolveBackend as Mn, harnessProfileConfigSchema as Mt, SubagentRunStream$1 as N, BackendProtocolV2 as Nn, parseHarnessProfileConfig as Nt, Settings as O, WriteResult as On, getHarnessProfile as Ot, AnySubAgent as P, SandboxBackendProtocolV2 as Pn, serializeProfile as Pt, AsyncTask as Q, FilesystemPermission as Qt, DefaultDeepAgentTypeConfig as R, HarnessProfile as Rt, SkillMetadata as S, SandboxErrorCode as Sn, GENERAL_PURPOSE_SUBAGENT as St, AgentMemoryMiddlewareOptions as T, SandboxListOptions as Tn, SubAgentMiddlewareOptions as Tt, InferStructuredResponse as U, ASYNC_TASK_SYSTEM_PROMPT as Ut, InferDeepAgentSubagents as V, ConfigurationError as Vt, InferSubAgentMiddlewareStates as W, BASE_AGENT_PROMPT as Wt, AsyncSubAgent as X, createFilesystemMiddleware as Xt, SupportedResponseFormat as Y, FsToolName as Yt, AsyncSubAgentMiddlewareOptions as Z, FilesystemOperation as Zt, StoreBackend as _, ReadRawResult as _n, createPatchToolCallsMiddleware as _t, adaptBackendProtocol as a, EditResult as an, createCompletionCallbackMiddleware as at, StoreBackendOptions as b, SandboxDeleteOptions as bn, DEFAULT_SUBAGENT_PROMPT as bt, LangSmithSandbox as c, FileDownloadResponse as cn, MAX_SKILL_NAME_LENGTH as ct, BaseSandbox as d, FileUploadResponse as dn, SkillsMiddlewareOptions as dt, AnyBackendProtocol as en, createAsyncSubAgentMiddleware as et, LocalShellBackend as f, GlobResult as fn, createSkillsMiddleware as ft, FilesystemBackend as g, MaybePromise as gn, StateBackend as gt, CompositeBackend as h, LsResult as hn, createMemoryMiddleware as ht, LangSmithStartSandboxOptions as i, DeleteResult as in, CompletionCallbackOptions as it, findProjectRoot as j, isSandboxProtocol as jn, generalPurposeSubagentConfigSchema as jt, SettingsOptions as k, applyGrepMaxCount as kn, registerHarnessProfile as kt, LangSmithSandboxCreateOptions as l, FileInfo as ln, SkillMetadata$1 as lt, ContextHubBackend as m, GrepResult as mn, MemoryMiddlewareOptions as mt, LangSmithCaptureSnapshotOptions as n, BackendProtocol as nn, computeSummarizationDefaults as nt, adaptSandboxProtocol as o, ExecuteResponse as on, MAX_SKILL_DESCRIPTION_LENGTH as ot, LocalShellBackendOptions as p, GrepMatch as pn, skillsMetadataValue as pt, MergedDeepAgentState as q, TASK_SYSTEM_PROMPT as qt, LangSmithSnapshot as r, BackendRuntime as rn, createSummarizationMiddleware as rt, normalizeReadPagination as s, FileData as sn, MAX_SKILL_FILE_SIZE as st, createDeepAgent as t, BackendFactory as tn, isAsyncSubAgent as tt, LangSmithSandboxOptions as u, FileOperationError as un, SkillMetadataEntry as ut, StoreBackendContext as v, ReadResult as vn, CompiledSubAgent as vt, parseSkillMetadata as w, SandboxInfo as wn, SubAgent as wt, ListSkillsOptions as x, SandboxError as xn, ForkedSubAgent as xt, StoreBackendNamespaceFactory as y, SandboxBackendProtocol as yn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as yt, ExtractSubAgentMiddleware as z, HarnessProfileOptions as zt };
4481
- //# sourceMappingURL=agent-CxEdojMv.d.ts.map
4708
+ export { scrubUnsupportedMultimodalContent as $, TASK_SYSTEM_PROMPT as $t, createSettings as A, SandboxInfo as An, SubAgent as At, FlattenSubAgentMiddleware as B, SandboxBackendProtocolV2 as Bn, serializeProfile as Bt, listSkills as C, ReadRawResult as Cn, createPatchToolCallsMiddleware as Ct, filesValue as D, SandboxError as Dn, ForkedSubAgent as Dt, createAgentMemoryMiddleware as E, SandboxDeleteOptions as En, DEFAULT_SUBAGENT_PROMPT as Et, CreateDeepAgentParams as F, applyGrepMaxCount as Fn, registerHarnessProfile as Ft, InferSubagentByName as G, HarnessProfileOptions as Gt, InferDeepAgentType as H, SandboxBackendProtocolV1 as Hn, createHarnessProfile as Ht, DeepAgent as I, isSandboxBackend as In, HarnessProfileConfigData as It, ResolveDeepAgentTypeConfig as J, ConfigurationErrorCode as Jt, InferSubagentReactAgentType as K, REQUIRED_MIDDLEWARE_NAMES as Kt, DeepAgentTypeConfig as L, isSandboxProtocol as Ln, generalPurposeSubagentConfigSchema as Lt, DeepAgentRunStream as M, SandboxListResponse as Mn, createSubAgent as Mt, SubagentRunStream$1 as N, StateAndStore as Nn, createSubAgentMiddleware as Nt, Settings as O, SandboxErrorCode as On, GENERAL_PURPOSE_SUBAGENT as Ot, AnySubAgent as P, WriteResult as Pn, getHarnessProfile as Pt, multimodalBlockSupported as Q, SystemPromptConfig as Qt, DefaultDeepAgentTypeConfig as R, resolveBackend as Rn, harnessProfileConfigSchema as Rt, SkillMetadata as S, MaybePromise as Sn, StateBackend as St, AgentMemoryMiddlewareOptions as T, SandboxBackendProtocol as Tn, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as Tt, InferStructuredResponse as U, GeneralPurposeSubagentConfig as Ut, InferDeepAgentSubagents as V, BackendProtocolV1 as Vn, EMPTY_HARNESS_PROFILE as Vt, InferSubAgentMiddlewareStates as W, HarnessProfile as Wt, MULTIMODAL_BLOCK_TYPES as X, BASE_AGENT_PROMPT as Xt, SupportedResponseFormat as Y, ASYNC_TASK_SYSTEM_PROMPT as Yt, createUnsupportedContentMiddleware as Z, EXECUTION_SYSTEM_PROMPT as Zt, StoreBackend as _, FileUploadResponse as _n, createSkillsMiddleware as _t, adaptBackendProtocol as a, PermissionMode as an, isAsyncSubAgent as at, StoreBackendOptions as b, GrepResult as bn, MemoryMiddlewareOptions as bt, LangSmithSandbox as c, BackendProtocol as cn, CompletionCallbackOptions as ct, BaseSandbox as d, EditResult as dn, MAX_SKILL_FILE_SIZE as dt, FilesystemMiddlewareOptions as en, AsyncSubAgent as et, LocalShellBackend as f, ExecuteResponse as fn, MAX_SKILL_NAME_LENGTH as ft, FilesystemBackend as g, FileOperationError as gn, SkillsMiddlewareOptions as gt, CompositeBackend as h, FileInfo as hn, SkillToolResolver as ht, LangSmithStartSandboxOptions as i, FilesystemPermission as in, createAsyncSubAgentMiddleware as it, findProjectRoot as j, SandboxListOptions as jn, SubAgentMiddlewareOptions as jt, SettingsOptions as k, SandboxGetOrCreateOptions as kn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as kt, LangSmithSandboxCreateOptions as l, BackendRuntime as ln, createCompletionCallbackMiddleware as lt, ContextHubBackend as m, FileDownloadResponse as mn, SkillMetadataEntry as mt, LangSmithCaptureSnapshotOptions as n, createFilesystemMiddleware as nn, AsyncTask as nt, adaptSandboxProtocol as o, AnyBackendProtocol as on, computeSummarizationDefaults as ot, LocalShellBackendOptions as p, FileData as pn, SkillMetadata$1 as pt, MergedDeepAgentState as q, ConfigurationError as qt, LangSmithSnapshot as r, FilesystemOperation as rn, AsyncTaskStatus as rt, normalizeReadPagination as s, BackendFactory as sn, createSummarizationMiddleware as st, createDeepAgent as t, FsToolName as tn, AsyncSubAgentMiddlewareOptions as tt, LangSmithSandboxOptions as u, DeleteResult as un, MAX_SKILL_DESCRIPTION_LENGTH as ut, StoreBackendContext as v, GlobResult as vn, pinnedSkillsValue as vt, parseSkillMetadata as w, ReadResult as wn, CompiledSubAgent as wt, ListSkillsOptions as x, LsResult as xn, createMemoryMiddleware as xt, StoreBackendNamespaceFactory as y, GrepMatch as yn, skillsMetadataValue as yt, ExtractSubAgentMiddleware as z, BackendProtocolV2 as zn, parseHarnessProfileConfig as zt };
4709
+ //# sourceMappingURL=agent-rhzpV1Ew.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-Bhg_Q4ZO.cjs");
2
+ const require_langsmith = require("./langsmith-DMOexB11.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;
@@ -41,6 +41,7 @@ exports.isAsyncSubAgent = require_langsmith.isAsyncSubAgent;
41
41
  exports.isSandboxBackend = require_langsmith.isSandboxBackend;
42
42
  exports.isSandboxProtocol = require_langsmith.isSandboxProtocol;
43
43
  exports.parseHarnessProfileConfig = require_langsmith.parseHarnessProfileConfig;
44
+ exports.pinnedSkillsValue = require_langsmith.pinnedSkillsValue;
44
45
  exports.registerHarnessProfile = require_langsmith.registerHarnessProfile;
45
46
  exports.resolveBackend = require_langsmith.resolveBackend;
46
47
  exports.serializeProfile = require_langsmith.serializeProfile;
@@ -1,3 +1,3 @@
1
- import { $ as AsyncTaskStatus, $t as PermissionMode, An as isSandboxBackend, At as HarnessProfileConfigData, B as FlattenSubAgentMiddleware, Bt as REQUIRED_MIDDLEWARE_NAMES, Cn as SandboxGetOrCreateOptions, D as filesValue, Dn as StateAndStore, Dt as createSubAgentMiddleware, En as SandboxListResponse, F as CreateDeepAgentParams, Fn as BackendProtocolV1, Ft as EMPTY_HARNESS_PROFILE, G as InferSubagentByName, Gt as EXECUTION_SYSTEM_PROMPT, H as InferDeepAgentType, Ht as ConfigurationErrorCode, I as DeepAgent, In as SandboxBackendProtocolV1, It as createHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as FilesystemMiddlewareOptions, K as InferSubagentReactAgentType, Kt as SystemPromptConfig, L as DeepAgentTypeConfig, Lt as GeneralPurposeSubagentConfig, M as DeepAgentRunStream, Mn as resolveBackend, Mt as harnessProfileConfigSchema, N as SubagentRunStream, Nn as BackendProtocolV2, Nt as parseHarnessProfileConfig, On as WriteResult, Ot as getHarnessProfile, P as AnySubAgent, Pn as SandboxBackendProtocolV2, Pt as serializeProfile, Q as AsyncTask, Qt as FilesystemPermission, R as DefaultDeepAgentTypeConfig, Rt as HarnessProfile, Sn as SandboxErrorCode, St as GENERAL_PURPOSE_SUBAGENT, Tn as SandboxListOptions, Tt as SubAgentMiddlewareOptions, U as InferStructuredResponse, Ut as ASYNC_TASK_SYSTEM_PROMPT, V as InferDeepAgentSubagents, Vt as ConfigurationError, W as InferSubAgentMiddlewareStates, Wt as BASE_AGENT_PROMPT, X as AsyncSubAgent, Xt as createFilesystemMiddleware, Y as SupportedResponseFormat, Yt as FsToolName, Z as AsyncSubAgentMiddlewareOptions, Zt as FilesystemOperation, _ as StoreBackend, _n as ReadRawResult, _t as createPatchToolCallsMiddleware, a as adaptBackendProtocol, an as EditResult, at as createCompletionCallbackMiddleware, b as StoreBackendOptions, bn as SandboxDeleteOptions, bt as DEFAULT_SUBAGENT_PROMPT, c as LangSmithSandbox, cn as FileDownloadResponse, ct as MAX_SKILL_NAME_LENGTH, d as BaseSandbox, dn as FileUploadResponse, dt as SkillsMiddlewareOptions, en as AnyBackendProtocol, et as createAsyncSubAgentMiddleware, fn as GlobResult, ft as createSkillsMiddleware, gn as MaybePromise, gt as StateBackend, h as CompositeBackend, hn as LsResult, ht as createMemoryMiddleware, in as DeleteResult, it as CompletionCallbackOptions, jn as isSandboxProtocol, jt as generalPurposeSubagentConfigSchema, kt as registerHarnessProfile, l as LangSmithSandboxCreateOptions, ln as FileInfo, lt as SkillMetadata, m as ContextHubBackend, mn as GrepResult, mt as MemoryMiddlewareOptions, nn as BackendProtocol, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as ExecuteResponse, ot as MAX_SKILL_DESCRIPTION_LENGTH, pn as GrepMatch, pt as skillsMetadataValue, q as MergedDeepAgentState, qt as TASK_SYSTEM_PROMPT, rn as BackendRuntime, rt as createSummarizationMiddleware, sn as FileData, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as BackendFactory, tt as isAsyncSubAgent, u as LangSmithSandboxOptions, un as FileOperationError, ut as SkillMetadataEntry, v as StoreBackendContext, vn as ReadResult, vt as CompiledSubAgent, wn as SandboxInfo, wt as SubAgent, xn as SandboxError, xt as ForkedSubAgent, y as StoreBackendNamespaceFactory, yn as SandboxBackendProtocol, yt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, z as ExtractSubAgentMiddleware, zt as HarnessProfileOptions } from "./agent-B05mw_iK.cjs";
1
+ import { $t as TASK_SYSTEM_PROMPT, An as SandboxInfo, At as SubAgent, B as FlattenSubAgentMiddleware, Bn as SandboxBackendProtocolV2, Bt as serializeProfile, Cn as ReadRawResult, Ct as createPatchToolCallsMiddleware, D as filesValue, Dn as SandboxError, Dt as ForkedSubAgent, En as SandboxDeleteOptions, Et as DEFAULT_SUBAGENT_PROMPT, F as CreateDeepAgentParams, Ft as registerHarnessProfile, G as InferSubagentByName, Gt as HarnessProfileOptions, H as InferDeepAgentType, Hn as SandboxBackendProtocolV1, Ht as createHarnessProfile, I as DeepAgent, In as isSandboxBackend, It as HarnessProfileConfigData, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationErrorCode, K as InferSubagentReactAgentType, Kt as REQUIRED_MIDDLEWARE_NAMES, L as DeepAgentTypeConfig, Ln as isSandboxProtocol, Lt as generalPurposeSubagentConfigSchema, M as DeepAgentRunStream, Mn as SandboxListResponse, N as SubagentRunStream, Nn as StateAndStore, Nt as createSubAgentMiddleware, On as SandboxErrorCode, Ot as GENERAL_PURPOSE_SUBAGENT, P as AnySubAgent, Pn as WriteResult, Pt as getHarnessProfile, Qt as SystemPromptConfig, R as DefaultDeepAgentTypeConfig, Rn as resolveBackend, Rt as harnessProfileConfigSchema, Sn as MaybePromise, St as StateBackend, Tn as SandboxBackendProtocol, Tt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, U as InferStructuredResponse, Ut as GeneralPurposeSubagentConfig, V as InferDeepAgentSubagents, Vn as BackendProtocolV1, Vt as EMPTY_HARNESS_PROFILE, W as InferSubAgentMiddlewareStates, Wt as HarnessProfile, Xt as BASE_AGENT_PROMPT, Y as SupportedResponseFormat, Yt as ASYNC_TASK_SYSTEM_PROMPT, Zt as EXECUTION_SYSTEM_PROMPT, _ as StoreBackend, _n as FileUploadResponse, _t as createSkillsMiddleware, a as adaptBackendProtocol, an as PermissionMode, at as isAsyncSubAgent, b as StoreBackendOptions, bn as GrepResult, bt as MemoryMiddlewareOptions, c as LangSmithSandbox, cn as BackendProtocol, ct as CompletionCallbackOptions, d as BaseSandbox, dn as EditResult, dt as MAX_SKILL_FILE_SIZE, en as FilesystemMiddlewareOptions, et as AsyncSubAgent, fn as ExecuteResponse, ft as MAX_SKILL_NAME_LENGTH, gn as FileOperationError, gt as SkillsMiddlewareOptions, h as CompositeBackend, hn as FileInfo, ht as SkillToolResolver, in as FilesystemPermission, it as createAsyncSubAgentMiddleware, jn as SandboxListOptions, jt as SubAgentMiddlewareOptions, kn as SandboxGetOrCreateOptions, l as LangSmithSandboxCreateOptions, ln as BackendRuntime, lt as createCompletionCallbackMiddleware, m as ContextHubBackend, mn as FileDownloadResponse, mt as SkillMetadataEntry, nn as createFilesystemMiddleware, nt as AsyncTask, o as adaptSandboxProtocol, on as AnyBackendProtocol, ot as computeSummarizationDefaults, pn as FileData, pt as SkillMetadata, q as MergedDeepAgentState, qt as ConfigurationError, rn as FilesystemOperation, rt as AsyncTaskStatus, sn as BackendFactory, st as createSummarizationMiddleware, t as createDeepAgent, tn as FsToolName, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as DeleteResult, ut as MAX_SKILL_DESCRIPTION_LENGTH, v as StoreBackendContext, vn as GlobResult, vt as pinnedSkillsValue, wn as ReadResult, wt as CompiledSubAgent, xn as LsResult, xt as createMemoryMiddleware, y as StoreBackendNamespaceFactory, yn as GrepMatch, yt as skillsMetadataValue, z as ExtractSubAgentMiddleware, zn as BackendProtocolV2, zt as parseHarnessProfileConfig } from "./agent-FG1QOMBi.cjs";
2
2
  import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
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 ForkedSubAgent, 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 SkillMetadataEntry, 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, skillsMetadataValue };
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 ForkedSubAgent, 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 SkillMetadataEntry, type SkillToolResolver, 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, pinnedSkillsValue, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
package/dist/browser.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as AsyncTaskStatus, $t as PermissionMode, An as isSandboxBackend, At as HarnessProfileConfigData, B as FlattenSubAgentMiddleware, Bt as REQUIRED_MIDDLEWARE_NAMES, Cn as SandboxGetOrCreateOptions, D as filesValue, Dn as StateAndStore, Dt as createSubAgentMiddleware, En as SandboxListResponse, F as CreateDeepAgentParams, Fn as BackendProtocolV1, Ft as EMPTY_HARNESS_PROFILE, G as InferSubagentByName, Gt as EXECUTION_SYSTEM_PROMPT, H as InferDeepAgentType, Ht as ConfigurationErrorCode, I as DeepAgent, In as SandboxBackendProtocolV1, It as createHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as FilesystemMiddlewareOptions, K as InferSubagentReactAgentType, Kt as SystemPromptConfig, L as DeepAgentTypeConfig, Lt as GeneralPurposeSubagentConfig, M as DeepAgentRunStream, Mn as resolveBackend, Mt as harnessProfileConfigSchema, N as SubagentRunStream, Nn as BackendProtocolV2, Nt as parseHarnessProfileConfig, On as WriteResult, Ot as getHarnessProfile, P as AnySubAgent, Pn as SandboxBackendProtocolV2, Pt as serializeProfile, Q as AsyncTask, Qt as FilesystemPermission, R as DefaultDeepAgentTypeConfig, Rt as HarnessProfile, Sn as SandboxErrorCode, St as GENERAL_PURPOSE_SUBAGENT, Tn as SandboxListOptions, Tt as SubAgentMiddlewareOptions, U as InferStructuredResponse, Ut as ASYNC_TASK_SYSTEM_PROMPT, V as InferDeepAgentSubagents, Vt as ConfigurationError, W as InferSubAgentMiddlewareStates, Wt as BASE_AGENT_PROMPT, X as AsyncSubAgent, Xt as createFilesystemMiddleware, Y as SupportedResponseFormat, Yt as FsToolName, Z as AsyncSubAgentMiddlewareOptions, Zt as FilesystemOperation, _ as StoreBackend, _n as ReadRawResult, _t as createPatchToolCallsMiddleware, a as adaptBackendProtocol, an as EditResult, at as createCompletionCallbackMiddleware, b as StoreBackendOptions, bn as SandboxDeleteOptions, bt as DEFAULT_SUBAGENT_PROMPT, c as LangSmithSandbox, cn as FileDownloadResponse, ct as MAX_SKILL_NAME_LENGTH, d as BaseSandbox, dn as FileUploadResponse, dt as SkillsMiddlewareOptions, en as AnyBackendProtocol, et as createAsyncSubAgentMiddleware, fn as GlobResult, ft as createSkillsMiddleware, gn as MaybePromise, gt as StateBackend, h as CompositeBackend, hn as LsResult, ht as createMemoryMiddleware, in as DeleteResult, it as CompletionCallbackOptions, jn as isSandboxProtocol, jt as generalPurposeSubagentConfigSchema, kt as registerHarnessProfile, l as LangSmithSandboxCreateOptions, ln as FileInfo, lt as SkillMetadata, m as ContextHubBackend, mn as GrepResult, mt as MemoryMiddlewareOptions, nn as BackendProtocol, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as ExecuteResponse, ot as MAX_SKILL_DESCRIPTION_LENGTH, pn as GrepMatch, pt as skillsMetadataValue, q as MergedDeepAgentState, qt as TASK_SYSTEM_PROMPT, rn as BackendRuntime, rt as createSummarizationMiddleware, sn as FileData, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as BackendFactory, tt as isAsyncSubAgent, u as LangSmithSandboxOptions, un as FileOperationError, ut as SkillMetadataEntry, v as StoreBackendContext, vn as ReadResult, vt as CompiledSubAgent, wn as SandboxInfo, wt as SubAgent, xn as SandboxError, xt as ForkedSubAgent, y as StoreBackendNamespaceFactory, yn as SandboxBackendProtocol, yt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, z as ExtractSubAgentMiddleware, zt as HarnessProfileOptions } from "./agent-CxEdojMv.js";
1
+ import { $t as TASK_SYSTEM_PROMPT, An as SandboxInfo, At as SubAgent, B as FlattenSubAgentMiddleware, Bn as SandboxBackendProtocolV2, Bt as serializeProfile, Cn as ReadRawResult, Ct as createPatchToolCallsMiddleware, D as filesValue, Dn as SandboxError, Dt as ForkedSubAgent, En as SandboxDeleteOptions, Et as DEFAULT_SUBAGENT_PROMPT, F as CreateDeepAgentParams, Ft as registerHarnessProfile, G as InferSubagentByName, Gt as HarnessProfileOptions, H as InferDeepAgentType, Hn as SandboxBackendProtocolV1, Ht as createHarnessProfile, I as DeepAgent, In as isSandboxBackend, It as HarnessProfileConfigData, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationErrorCode, K as InferSubagentReactAgentType, Kt as REQUIRED_MIDDLEWARE_NAMES, L as DeepAgentTypeConfig, Ln as isSandboxProtocol, Lt as generalPurposeSubagentConfigSchema, M as DeepAgentRunStream, Mn as SandboxListResponse, N as SubagentRunStream, Nn as StateAndStore, Nt as createSubAgentMiddleware, On as SandboxErrorCode, Ot as GENERAL_PURPOSE_SUBAGENT, P as AnySubAgent, Pn as WriteResult, Pt as getHarnessProfile, Qt as SystemPromptConfig, R as DefaultDeepAgentTypeConfig, Rn as resolveBackend, Rt as harnessProfileConfigSchema, Sn as MaybePromise, St as StateBackend, Tn as SandboxBackendProtocol, Tt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, U as InferStructuredResponse, Ut as GeneralPurposeSubagentConfig, V as InferDeepAgentSubagents, Vn as BackendProtocolV1, Vt as EMPTY_HARNESS_PROFILE, W as InferSubAgentMiddlewareStates, Wt as HarnessProfile, Xt as BASE_AGENT_PROMPT, Y as SupportedResponseFormat, Yt as ASYNC_TASK_SYSTEM_PROMPT, Zt as EXECUTION_SYSTEM_PROMPT, _ as StoreBackend, _n as FileUploadResponse, _t as createSkillsMiddleware, a as adaptBackendProtocol, an as PermissionMode, at as isAsyncSubAgent, b as StoreBackendOptions, bn as GrepResult, bt as MemoryMiddlewareOptions, c as LangSmithSandbox, cn as BackendProtocol, ct as CompletionCallbackOptions, d as BaseSandbox, dn as EditResult, dt as MAX_SKILL_FILE_SIZE, en as FilesystemMiddlewareOptions, et as AsyncSubAgent, fn as ExecuteResponse, ft as MAX_SKILL_NAME_LENGTH, gn as FileOperationError, gt as SkillsMiddlewareOptions, h as CompositeBackend, hn as FileInfo, ht as SkillToolResolver, in as FilesystemPermission, it as createAsyncSubAgentMiddleware, jn as SandboxListOptions, jt as SubAgentMiddlewareOptions, kn as SandboxGetOrCreateOptions, l as LangSmithSandboxCreateOptions, ln as BackendRuntime, lt as createCompletionCallbackMiddleware, m as ContextHubBackend, mn as FileDownloadResponse, mt as SkillMetadataEntry, nn as createFilesystemMiddleware, nt as AsyncTask, o as adaptSandboxProtocol, on as AnyBackendProtocol, ot as computeSummarizationDefaults, pn as FileData, pt as SkillMetadata, q as MergedDeepAgentState, qt as ConfigurationError, rn as FilesystemOperation, rt as AsyncTaskStatus, sn as BackendFactory, st as createSummarizationMiddleware, t as createDeepAgent, tn as FsToolName, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as DeleteResult, ut as MAX_SKILL_DESCRIPTION_LENGTH, v as StoreBackendContext, vn as GlobResult, vt as pinnedSkillsValue, wn as ReadResult, wt as CompiledSubAgent, xn as LsResult, xt as createMemoryMiddleware, y as StoreBackendNamespaceFactory, yn as GrepMatch, yt as skillsMetadataValue, z as ExtractSubAgentMiddleware, zn as BackendProtocolV2, zt as parseHarnessProfileConfig } from "./agent-rhzpV1Ew.js";
2
2
  import { CaptureSnapshotOptions as LangSmithCaptureSnapshotOptions, Snapshot as LangSmithSnapshot, StartSandboxOptions as LangSmithStartSandboxOptions } from "langsmith/experimental/sandbox";
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 ForkedSubAgent, 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 SkillMetadataEntry, 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, skillsMetadataValue };
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 ForkedSubAgent, 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 SkillMetadataEntry, type SkillToolResolver, 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, pinnedSkillsValue, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
package/dist/browser.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as createPatchToolCallsMiddleware, B as CompositeBackend, C as MAX_SKILL_DESCRIPTION_LENGTH, D as skillsMetadataValue, E as createSkillsMiddleware, G as isSandboxProtocol, H as SandboxError, I as createSubAgentMiddleware, J as adaptSandboxProtocol, K as resolveBackend, L as computeSummarizationDefaults, M as DEFAULT_SUBAGENT_PROMPT, N as GENERAL_PURPOSE_SUBAGENT, O as createMemoryMiddleware, R as createSummarizationMiddleware, S as createCompletionCallbackMiddleware, T as MAX_SKILL_NAME_LENGTH, V as StateBackend, W as isSandboxBackend, _ 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 DEFAULT_GENERAL_PURPOSE_DESCRIPTION, k as filesValue, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, q as adaptBackendProtocol, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as MAX_SKILL_FILE_SIZE, x as isAsyncSubAgent, y as ConfigurationError, z as createFilesystemMiddleware } from "./langsmith-Bgi_Ta-k.js";
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, skillsMetadataValue };
1
+ import { $ as adaptSandboxProtocol, A as filesValue, B as createFilesystemMiddleware, C as MAX_SKILL_FILE_SIZE, D as skillsMetadataValue, E as pinnedSkillsValue, K as StateBackend, L as createSubAgentMiddleware, M as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, N as DEFAULT_SUBAGENT_PROMPT, O as ConfigurationError, P as GENERAL_PURPOSE_SUBAGENT, Q as adaptBackendProtocol, R as computeSummarizationDefaults, S as MAX_SKILL_DESCRIPTION_LENGTH, T as createSkillsMiddleware, V as CompositeBackend, X as isSandboxProtocol, Y as isSandboxBackend, Z as resolveBackend, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as isAsyncSubAgent, 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 SandboxError, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as MAX_SKILL_NAME_LENGTH, x as createCompletionCallbackMiddleware, y as createAsyncSubAgentMiddleware, z as createSummarizationMiddleware } from "./langsmith-v_uskil7.js";
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, pinnedSkillsValue, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_langsmith = require("./langsmith-Bhg_Q4ZO.cjs");
3
- const require_src = require("./src-CB_Eac87.cjs");
2
+ const require_langsmith = require("./langsmith-DMOexB11.cjs");
3
+ const require_src = require("./src-L1errMkM.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;
@@ -18,6 +18,7 @@ exports.LocalShellBackend = require_src.LocalShellBackend;
18
18
  exports.MAX_SKILL_DESCRIPTION_LENGTH = require_langsmith.MAX_SKILL_DESCRIPTION_LENGTH;
19
19
  exports.MAX_SKILL_FILE_SIZE = require_langsmith.MAX_SKILL_FILE_SIZE;
20
20
  exports.MAX_SKILL_NAME_LENGTH = require_langsmith.MAX_SKILL_NAME_LENGTH;
21
+ exports.MULTIMODAL_BLOCK_TYPES = require_langsmith.MULTIMODAL_BLOCK_TYPES;
21
22
  exports.REQUIRED_MIDDLEWARE_NAMES = require_langsmith.REQUIRED_MIDDLEWARE_NAMES;
22
23
  exports.SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY = require_langsmith.SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY;
23
24
  exports.SandboxError = require_langsmith.SandboxError;
@@ -41,6 +42,7 @@ exports.createSkillsMiddleware = require_langsmith.createSkillsMiddleware;
41
42
  exports.createSubAgent = require_langsmith.createSubAgent;
42
43
  exports.createSubAgentMiddleware = require_langsmith.createSubAgentMiddleware;
43
44
  exports.createSummarizationMiddleware = require_langsmith.createSummarizationMiddleware;
45
+ exports.createUnsupportedContentMiddleware = require_langsmith.createUnsupportedContentMiddleware;
44
46
  exports.filesValue = require_langsmith.filesValue;
45
47
  exports.findProjectRoot = require_src.findProjectRoot;
46
48
  exports.generalPurposeSubagentConfigSchema = require_langsmith.generalPurposeSubagentConfigSchema;
@@ -50,10 +52,13 @@ exports.isAsyncSubAgent = require_langsmith.isAsyncSubAgent;
50
52
  exports.isSandboxBackend = require_langsmith.isSandboxBackend;
51
53
  exports.isSandboxProtocol = require_langsmith.isSandboxProtocol;
52
54
  exports.listSkills = require_src.listSkills;
55
+ exports.multimodalBlockSupported = require_langsmith.multimodalBlockSupported;
53
56
  exports.normalizeReadPagination = require_langsmith.normalizeReadPagination;
54
57
  exports.parseHarnessProfileConfig = require_langsmith.parseHarnessProfileConfig;
55
58
  exports.parseSkillMetadata = require_src.parseSkillMetadata;
59
+ exports.pinnedSkillsValue = require_langsmith.pinnedSkillsValue;
56
60
  exports.registerHarnessProfile = require_langsmith.registerHarnessProfile;
57
61
  exports.resolveBackend = require_langsmith.resolveBackend;
62
+ exports.scrubUnsupportedMultimodalContent = require_langsmith.scrubUnsupportedMultimodalContent;
58
63
  exports.serializeProfile = require_langsmith.serializeProfile;
59
64
  exports.skillsMetadataValue = require_langsmith.skillsMetadataValue;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as AsyncTaskStatus, $t as PermissionMode, A as createSettings, An as isSandboxBackend, At as HarnessProfileConfigData, B as FlattenSubAgentMiddleware, Bt as REQUIRED_MIDDLEWARE_NAMES, C as listSkills, Cn as SandboxGetOrCreateOptions, Ct as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, D as filesValue, Dn as StateAndStore, Dt as createSubAgentMiddleware, E as createAgentMemoryMiddleware, En as SandboxListResponse, Et as createSubAgent, F as CreateDeepAgentParams, Fn as BackendProtocolV1, Ft as EMPTY_HARNESS_PROFILE, G as InferSubagentByName, Gt as EXECUTION_SYSTEM_PROMPT, H as InferDeepAgentType, Ht as ConfigurationErrorCode, I as DeepAgent, In as SandboxBackendProtocolV1, It as createHarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as FilesystemMiddlewareOptions, K as InferSubagentReactAgentType, Kt as SystemPromptConfig, L as DeepAgentTypeConfig, Lt as GeneralPurposeSubagentConfig, M as DeepAgentRunStream, Mn as resolveBackend, Mt as harnessProfileConfigSchema, N as SubagentRunStream, Nn as BackendProtocolV2, Nt as parseHarnessProfileConfig, O as Settings, On as WriteResult, Ot as getHarnessProfile, P as AnySubAgent, Pn as SandboxBackendProtocolV2, Pt as serializeProfile, Q as AsyncTask, Qt as FilesystemPermission, R as DefaultDeepAgentTypeConfig, Rt as HarnessProfile, S as SkillMetadata, Sn as SandboxErrorCode, St as GENERAL_PURPOSE_SUBAGENT, T as AgentMemoryMiddlewareOptions, Tn as SandboxListOptions, Tt as SubAgentMiddlewareOptions, U as InferStructuredResponse, Ut as ASYNC_TASK_SYSTEM_PROMPT, V as InferDeepAgentSubagents, Vt as ConfigurationError, W as InferSubAgentMiddlewareStates, Wt as BASE_AGENT_PROMPT, X as AsyncSubAgent, Xt as createFilesystemMiddleware, Y as SupportedResponseFormat, Yt as FsToolName, Z as AsyncSubAgentMiddlewareOptions, Zt as FilesystemOperation, _ as StoreBackend, _n as ReadRawResult, _t as createPatchToolCallsMiddleware, a as adaptBackendProtocol, an as EditResult, at as createCompletionCallbackMiddleware, b as StoreBackendOptions, bn as SandboxDeleteOptions, bt as DEFAULT_SUBAGENT_PROMPT, c as LangSmithSandbox, cn as FileDownloadResponse, ct as MAX_SKILL_NAME_LENGTH, d as BaseSandbox, dn as FileUploadResponse, dt as SkillsMiddlewareOptions, en as AnyBackendProtocol, et as createAsyncSubAgentMiddleware, f as LocalShellBackend, fn as GlobResult, ft as createSkillsMiddleware, g as FilesystemBackend, gn as MaybePromise, gt as StateBackend, h as CompositeBackend, hn as LsResult, ht as createMemoryMiddleware, i as LangSmithStartSandboxOptions, in as DeleteResult, it as CompletionCallbackOptions, j as findProjectRoot, jn as isSandboxProtocol, jt as generalPurposeSubagentConfigSchema, k as SettingsOptions, kn as applyGrepMaxCount, kt as registerHarnessProfile, l as LangSmithSandboxCreateOptions, ln as FileInfo, lt as SkillMetadata$1, m as ContextHubBackend, mn as GrepResult, mt as MemoryMiddlewareOptions, n as LangSmithCaptureSnapshotOptions, nn as BackendProtocol, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as ExecuteResponse, ot as MAX_SKILL_DESCRIPTION_LENGTH, p as LocalShellBackendOptions, pn as GrepMatch, pt as skillsMetadataValue, q as MergedDeepAgentState, qt as TASK_SYSTEM_PROMPT, r as LangSmithSnapshot, rn as BackendRuntime, rt as createSummarizationMiddleware, s as normalizeReadPagination, sn as FileData, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as BackendFactory, tt as isAsyncSubAgent, u as LangSmithSandboxOptions, un as FileOperationError, ut as SkillMetadataEntry, v as StoreBackendContext, vn as ReadResult, vt as CompiledSubAgent, w as parseSkillMetadata, wn as SandboxInfo, wt as SubAgent, x as ListSkillsOptions, xn as SandboxError, xt as ForkedSubAgent, y as StoreBackendNamespaceFactory, yn as SandboxBackendProtocol, yt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, z as ExtractSubAgentMiddleware, zt as HarnessProfileOptions } from "./agent-B05mw_iK.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 ForkedSubAgent, 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 SkillMetadataEntry, 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, normalizeReadPagination, parseHarnessProfileConfig, parseSkillMetadata, registerHarnessProfile, resolveBackend, serializeProfile, skillsMetadataValue };
1
+ import { $ as scrubUnsupportedMultimodalContent, $t as TASK_SYSTEM_PROMPT, A as createSettings, An as SandboxInfo, At as SubAgent, B as FlattenSubAgentMiddleware, Bn as SandboxBackendProtocolV2, Bt as serializeProfile, C as listSkills, Cn as ReadRawResult, Ct as createPatchToolCallsMiddleware, D as filesValue, Dn as SandboxError, Dt as ForkedSubAgent, E as createAgentMemoryMiddleware, En as SandboxDeleteOptions, Et as DEFAULT_SUBAGENT_PROMPT, F as CreateDeepAgentParams, Fn as applyGrepMaxCount, Ft as registerHarnessProfile, G as InferSubagentByName, Gt as HarnessProfileOptions, H as InferDeepAgentType, Hn as SandboxBackendProtocolV1, Ht as createHarnessProfile, I as DeepAgent, In as isSandboxBackend, It as HarnessProfileConfigData, J as ResolveDeepAgentTypeConfig, Jt as ConfigurationErrorCode, K as InferSubagentReactAgentType, Kt as REQUIRED_MIDDLEWARE_NAMES, L as DeepAgentTypeConfig, Ln as isSandboxProtocol, Lt as generalPurposeSubagentConfigSchema, M as DeepAgentRunStream, Mn as SandboxListResponse, Mt as createSubAgent, N as SubagentRunStream, Nn as StateAndStore, Nt as createSubAgentMiddleware, O as Settings, On as SandboxErrorCode, Ot as GENERAL_PURPOSE_SUBAGENT, P as AnySubAgent, Pn as WriteResult, Pt as getHarnessProfile, Q as multimodalBlockSupported, Qt as SystemPromptConfig, R as DefaultDeepAgentTypeConfig, Rn as resolveBackend, Rt as harnessProfileConfigSchema, S as SkillMetadata, Sn as MaybePromise, St as StateBackend, T as AgentMemoryMiddlewareOptions, Tn as SandboxBackendProtocol, Tt as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, U as InferStructuredResponse, Ut as GeneralPurposeSubagentConfig, V as InferDeepAgentSubagents, Vn as BackendProtocolV1, Vt as EMPTY_HARNESS_PROFILE, W as InferSubAgentMiddlewareStates, Wt as HarnessProfile, X as MULTIMODAL_BLOCK_TYPES, Xt as BASE_AGENT_PROMPT, Y as SupportedResponseFormat, Yt as ASYNC_TASK_SYSTEM_PROMPT, Z as createUnsupportedContentMiddleware, Zt as EXECUTION_SYSTEM_PROMPT, _ as StoreBackend, _n as FileUploadResponse, _t as createSkillsMiddleware, a as adaptBackendProtocol, an as PermissionMode, at as isAsyncSubAgent, b as StoreBackendOptions, bn as GrepResult, bt as MemoryMiddlewareOptions, c as LangSmithSandbox, cn as BackendProtocol, ct as CompletionCallbackOptions, d as BaseSandbox, dn as EditResult, dt as MAX_SKILL_FILE_SIZE, en as FilesystemMiddlewareOptions, et as AsyncSubAgent, f as LocalShellBackend, fn as ExecuteResponse, ft as MAX_SKILL_NAME_LENGTH, g as FilesystemBackend, gn as FileOperationError, gt as SkillsMiddlewareOptions, h as CompositeBackend, hn as FileInfo, ht as SkillToolResolver, i as LangSmithStartSandboxOptions, in as FilesystemPermission, it as createAsyncSubAgentMiddleware, j as findProjectRoot, jn as SandboxListOptions, jt as SubAgentMiddlewareOptions, k as SettingsOptions, kn as SandboxGetOrCreateOptions, kt as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, l as LangSmithSandboxCreateOptions, ln as BackendRuntime, lt as createCompletionCallbackMiddleware, m as ContextHubBackend, mn as FileDownloadResponse, mt as SkillMetadataEntry, n as LangSmithCaptureSnapshotOptions, nn as createFilesystemMiddleware, nt as AsyncTask, o as adaptSandboxProtocol, on as AnyBackendProtocol, ot as computeSummarizationDefaults, p as LocalShellBackendOptions, pn as FileData, pt as SkillMetadata$1, q as MergedDeepAgentState, qt as ConfigurationError, r as LangSmithSnapshot, rn as FilesystemOperation, rt as AsyncTaskStatus, s as normalizeReadPagination, sn as BackendFactory, st as createSummarizationMiddleware, t as createDeepAgent, tn as FsToolName, tt as AsyncSubAgentMiddlewareOptions, u as LangSmithSandboxOptions, un as DeleteResult, ut as MAX_SKILL_DESCRIPTION_LENGTH, v as StoreBackendContext, vn as GlobResult, vt as pinnedSkillsValue, w as parseSkillMetadata, wn as ReadResult, wt as CompiledSubAgent, x as ListSkillsOptions, xn as LsResult, xt as createMemoryMiddleware, y as StoreBackendNamespaceFactory, yn as GrepMatch, yt as skillsMetadataValue, z as ExtractSubAgentMiddleware, zn as BackendProtocolV2, zt as parseHarnessProfileConfig } from "./agent-FG1QOMBi.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 ForkedSubAgent, 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, MULTIMODAL_BLOCK_TYPES, 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 SkillMetadataEntry, type SkillToolResolver, 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, createUnsupportedContentMiddleware, filesValue, findProjectRoot, generalPurposeSubagentConfigSchema, getHarnessProfile, harnessProfileConfigSchema, isAsyncSubAgent, isSandboxBackend, isSandboxProtocol, listSkills, multimodalBlockSupported, normalizeReadPagination, parseHarnessProfileConfig, parseSkillMetadata, pinnedSkillsValue, registerHarnessProfile, resolveBackend, scrubUnsupportedMultimodalContent, serializeProfile, skillsMetadataValue };