deepagents 1.13.4 → 1.14.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.
@@ -1592,7 +1592,7 @@ interface SubAgent {
1592
1592
  * };
1593
1593
  * ```
1594
1594
  */
1595
- skills?: string[];
1595
+ skills?: readonly string[];
1596
1596
  /**
1597
1597
  * Structured output response format for the subagent.
1598
1598
  *
@@ -2069,8 +2069,61 @@ interface SkillsMiddlewareOptions {
2069
2069
  * ]
2070
2070
  * ```
2071
2071
  */
2072
- sources: string[];
2072
+ sources: readonly string[];
2073
2073
  }
2074
+ /**
2075
+ * Zod schema for a single skill metadata entry.
2076
+ */
2077
+ declare const SkillMetadataEntrySchema: z$1.ZodObject<{
2078
+ name: z$1.ZodString;
2079
+ description: z$1.ZodString;
2080
+ path: z$1.ZodString;
2081
+ license: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2082
+ compatibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2083
+ metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
2084
+ allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2085
+ module: z$1.ZodOptional<z$1.ZodString>;
2086
+ }, z$1.core.$strip>;
2087
+ /**
2088
+ * Type for a single skill metadata entry.
2089
+ */
2090
+ type SkillMetadataEntry = z$1.infer<typeof SkillMetadataEntrySchema>;
2091
+ /**
2092
+ * State value for a middleware's `skillsMetadata` field.
2093
+ *
2094
+ * A middleware can only read and write the fields declared on its own state
2095
+ * schema. A middleware that needs `skillsMetadata` — to inspect the skills
2096
+ * loaded for the thread, or to set the field to `null` and make the next model
2097
+ * call reload every source — declares it with this value.
2098
+ *
2099
+ * Treat the value as opaque: it is meant to be passed to `StateSchema`, and
2100
+ * its concrete type is an implementation detail that may change. To type an
2101
+ * individual entry, use {@link SkillMetadataEntry}.
2102
+ *
2103
+ * @example
2104
+ * ```typescript
2105
+ * import { createMiddleware } from "langchain";
2106
+ * import { StateSchema } from "@langchain/langgraph";
2107
+ * import { skillsMetadataValue } from "deepagents";
2108
+ *
2109
+ * const reloadEditedSkills = createMiddleware({
2110
+ * name: "ReloadEditedSkills",
2111
+ * stateSchema: new StateSchema({ skillsMetadata: skillsMetadataValue }),
2112
+ * afterAgent: (state) =>
2113
+ * agentEditedSkills(state) ? { skillsMetadata: null } : undefined,
2114
+ * });
2115
+ * ```
2116
+ */
2117
+ declare const skillsMetadataValue: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
2118
+ name: z$1.ZodString;
2119
+ description: z$1.ZodString;
2120
+ path: z$1.ZodString;
2121
+ license: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2122
+ compatibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2123
+ metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
2124
+ allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2125
+ module: z$1.ZodOptional<z$1.ZodString>;
2126
+ }, z$1.core.$strip>>>>;
2074
2127
  /**
2075
2128
  * Create backend-agnostic middleware for loading and exposing agent skills.
2076
2129
  *
@@ -2079,6 +2132,21 @@ interface SkillsMiddlewareOptions {
2079
2132
  * pattern: skill names and descriptions are shown in the prompt, but the agent
2080
2133
  * reads full SKILL.md content only when needed.
2081
2134
  *
2135
+ * Skills are loaded once per thread and stored in state. To pick up skills
2136
+ * added, edited, or deleted since then, set `skillsMetadata` to `null`; the
2137
+ * next model call reloads every source:
2138
+ *
2139
+ * ```ts
2140
+ * await agent.updateState(config, { skillsMetadata: null });
2141
+ * // or as part of the next run's input
2142
+ * await agent.invoke({ messages, skillsMetadata: null }, config);
2143
+ * ```
2144
+ *
2145
+ * Loading happens in `beforeModel`, so the reload is served by the next model
2146
+ * call rather than the next run. A middleware of your own can therefore
2147
+ * invalidate from any hook — including mid-run, from `afterModel` — and see
2148
+ * the fresh list on the following call. See {@link skillsMetadataValue}.
2149
+ *
2082
2150
  * @param options - Configuration options
2083
2151
  * @returns AgentMiddleware for skills loading and injection
2084
2152
  *
@@ -2091,27 +2159,26 @@ interface SkillsMiddlewareOptions {
2091
2159
  * ```
2092
2160
  */
2093
2161
  declare function createSkillsMiddleware(options: SkillsMiddlewareOptions): AgentMiddleware<StateSchema<{
2094
- skillsMetadata: ReducedValue<{
2095
- name: string;
2096
- description: string;
2097
- path: string;
2098
- license?: string | null | undefined;
2099
- compatibility?: string | null | undefined;
2100
- metadata?: Record<string, string> | undefined;
2101
- allowedTools?: string[] | undefined;
2102
- module?: string | undefined;
2103
- }[] | undefined, {
2104
- name: string;
2105
- description: string;
2106
- path: string;
2107
- license?: string | null | undefined;
2108
- compatibility?: string | null | undefined;
2109
- metadata?: Record<string, string> | undefined;
2110
- allowedTools?: string[] | undefined;
2111
- module?: string | undefined;
2112
- }[] | undefined>;
2113
- files: ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
2162
+ skillsMetadata: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
2163
+ name: z$1.ZodString;
2164
+ description: z$1.ZodString;
2165
+ path: z$1.ZodString;
2166
+ license: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2167
+ compatibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2168
+ metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
2169
+ allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2170
+ module: z$1.ZodOptional<z$1.ZodString>;
2171
+ }, z$1.core.$strip>>>>;
2172
+ files: import("@langchain/langgraph").ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
2114
2173
  }>, undefined, unknown, readonly (import("@langchain/core/tools").ServerTool | import("@langchain/core/tools").ClientTool)[], readonly []>;
2174
+ /**
2175
+ * The middleware value returned by {@link createSkillsMiddleware}.
2176
+ *
2177
+ * Exported so `createDeepAgent` can splice the skills state (`skillsMetadata`)
2178
+ * into an agent's inferred state when the `skills` option is present, without
2179
+ * the caller having to mount the middleware by hand.
2180
+ */
2181
+ type SkillsMiddleware = ReturnType<typeof createSkillsMiddleware>;
2115
2182
  //#endregion
2116
2183
  //#region src/middleware/completion_callback.d.ts
2117
2184
  /**
@@ -2746,6 +2813,22 @@ type InferSubagentByName<T, TName extends string> = InferDeepAgentSubagents<T> e
2746
2813
  * ```
2747
2814
  */
2748
2815
  type InferSubagentReactAgentType<TSubagent extends SubAgent | CompiledSubAgent> = TSubagent extends CompiledSubAgent ? TSubagent["runnable"] : TSubagent extends SubAgent ? ReactAgent<AgentTypeConfig<ResponseFormatUndefined, undefined, AnyAnnotationRoot, ExtractSubAgentMiddleware<TSubagent>, readonly []>> : never;
2816
+ /**
2817
+ * Middleware that `createDeepAgent` mounts only when the corresponding option
2818
+ * is passed, expressed at the type level so the agent's state reflects it.
2819
+ *
2820
+ * `skills` mounts `SkillsMiddleware`, which contributes `skillsMetadata` to
2821
+ * state. Callers therefore get `skillsMetadata` on `invoke`/`updateState`
2822
+ * purely from `skills: [...]`, with no need to mount the middleware manually.
2823
+ *
2824
+ * Mirrors the runtime condition `skills != null && skills.length > 0`: an
2825
+ * omitted option or an empty literal (`skills: []`) mounts nothing and
2826
+ * contributes no state. A non-literal `string[]` has no statically known
2827
+ * length, so it is treated as mounting the middleware.
2828
+ *
2829
+ * @typeParam TSkills - The `skills` option as passed (or `undefined` if omitted)
2830
+ */
2831
+ type InferOptionalMiddleware<TSkills extends readonly string[] | undefined> = [TSkills] extends [undefined] ? readonly [] : [TSkills] extends [readonly []] ? readonly [] : readonly [SkillsMiddleware];
2749
2832
  /**
2750
2833
  * Configuration parameters for creating a Deep Agent
2751
2834
  * Matches Python's create_deep_agent parameters
@@ -2757,8 +2840,9 @@ type InferSubagentReactAgentType<TSubagent extends SubAgent | CompiledSubAgent>
2757
2840
  * @typeParam TTools - The tools array type
2758
2841
  * @typeParam TStreamTransformers - Custom stream transformer factories
2759
2842
  * @typeParam TStateSchema - The custom state schema type
2843
+ * @typeParam TSkills - The `skills` option, used to infer skills-middleware state
2760
2844
  */
2761
- interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>, TMiddleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[], TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined> {
2845
+ interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>, TMiddleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[], TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined, TSkills extends readonly string[] | undefined = readonly string[] | undefined> {
2762
2846
  /** The model to use (model name string or LanguageModelLike instance). Defaults to claude-sonnet-4-5-20250929 */
2763
2847
  model?: BaseLanguageModel | string;
2764
2848
  /**
@@ -2867,7 +2951,7 @@ interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = Supp
2867
2951
  * });
2868
2952
  * ```
2869
2953
  */
2870
- skills?: string[];
2954
+ skills?: TSkills;
2871
2955
  /**
2872
2956
  * Filesystem permission rules for this agent.
2873
2957
  *
@@ -4282,7 +4366,7 @@ declare function adaptSandboxProtocol(sandbox: AnySandboxProtocol): SandboxBacke
4282
4366
  * // result.research and result.author are properly typed as strings
4283
4367
  * ```
4284
4368
  */
4285
- declare function createDeepAgent<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends InteropZodObject = InteropZodObject, const TMiddleware extends readonly AgentMiddleware[] = readonly [], const TSubagents extends readonly AnySubAgent[] = readonly [], const TTools extends readonly (ClientTool | ServerTool)[] = readonly [], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined>(params?: CreateDeepAgentParams<TResponse, ContextSchema, TMiddleware, TSubagents, TTools, TStreamTransformers, TStateSchema>): DeepAgent<DeepAgentTypeConfig<InferStructuredResponse<TResponse>, TStateSchema, ContextSchema, readonly [AgentMiddleware<_langgraph.StateSchema<{
4369
+ declare function createDeepAgent<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends InteropZodObject = InteropZodObject, const TMiddleware extends readonly AgentMiddleware[] = readonly [], const TSubagents extends readonly AnySubAgent[] = readonly [], const TTools extends readonly (ClientTool | ServerTool)[] = readonly [], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined, const TSkills extends readonly string[] | undefined = undefined>(params?: CreateDeepAgentParams<TResponse, ContextSchema, TMiddleware, TSubagents, TTools, TStreamTransformers, TStateSchema, TSkills>): DeepAgent<DeepAgentTypeConfig<InferStructuredResponse<TResponse>, TStateSchema, ContextSchema, readonly [...InferOptionalMiddleware<TSkills>, AgentMiddleware<_langgraph.StateSchema<{
4286
4370
  files: _langgraph.ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
4287
4371
  }>, undefined, unknown, (import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
4288
4372
  path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
@@ -4389,5 +4473,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
4389
4473
  }, import("zod/v4/core").$strip>>;
4390
4474
  }, 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>>;
4391
4475
  //#endregion
4392
- export { AsyncTaskStatus as $, BackendFactory as $t, createSettings as A, resolveBackend as An, harnessProfileConfigSchema as At, FlattenSubAgentMiddleware as B, ConfigurationErrorCode as Bt, listSkills as C, SandboxListOptions as Cn, SubAgentMiddlewareOptions as Ct, filesValue as D, applyGrepMaxCount as Dn, registerHarnessProfile as Dt, createAgentMemoryMiddleware as E, WriteResult as En, getHarnessProfile as Et, CreateDeepAgentParams as F, GeneralPurposeSubagentConfig as Ft, InferSubagentByName as G, TASK_SYSTEM_PROMPT as Gt, InferDeepAgentType as H, BASE_AGENT_PROMPT as Ht, DeepAgent as I, HarnessProfile as It, ResolveDeepAgentTypeConfig as J, createFilesystemMiddleware as Jt, InferSubagentReactAgentType as K, FilesystemMiddlewareOptions as Kt, DeepAgentTypeConfig as L, HarnessProfileOptions as Lt, DeepAgentRunStream as M, SandboxBackendProtocolV2 as Mn, serializeProfile as Mt, SubagentRunStream$1 as N, BackendProtocolV1 as Nn, EMPTY_HARNESS_PROFILE as Nt, Settings as O, isSandboxBackend as On, HarnessProfileConfigData as Ot, AnySubAgent as P, SandboxBackendProtocolV1 as Pn, createHarnessProfile as Pt, AsyncTask as Q, AnyBackendProtocol as Qt, DefaultDeepAgentTypeConfig as R, REQUIRED_MIDDLEWARE_NAMES as Rt, SkillMetadata as S, SandboxInfo as Sn, SubAgent as St, AgentMemoryMiddlewareOptions as T, StateAndStore as Tn, createSubAgentMiddleware as Tt, InferStructuredResponse as U, EXECUTION_SYSTEM_PROMPT as Ut, InferDeepAgentSubagents as V, ASYNC_TASK_SYSTEM_PROMPT as Vt, InferSubAgentMiddlewareStates as W, SystemPromptConfig as Wt, AsyncSubAgent as X, FilesystemPermission as Xt, SupportedResponseFormat as Y, FilesystemOperation as Yt, AsyncSubAgentMiddlewareOptions as Z, PermissionMode as Zt, StoreBackend as _, SandboxBackendProtocol as _n, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as _t, adaptBackendProtocol as a, FileData as an, createCompletionCallbackMiddleware as at, StoreBackendOptions as b, SandboxErrorCode as bn, GENERAL_PURPOSE_SUBAGENT as bt, LangSmithSandbox as c, FileOperationError as cn, MAX_SKILL_NAME_LENGTH as ct, BaseSandbox as d, GrepMatch as dn, createSkillsMiddleware as dt, BackendProtocol as en, createAsyncSubAgentMiddleware as et, LocalShellBackend as f, GrepResult as fn, MemoryMiddlewareOptions as ft, FilesystemBackend as g, ReadResult as gn, CompiledSubAgent as gt, CompositeBackend as h, ReadRawResult as hn, createPatchToolCallsMiddleware as ht, LangSmithStartSandboxOptions as i, ExecuteResponse as in, CompletionCallbackOptions as it, findProjectRoot as j, BackendProtocolV2 as jn, parseHarnessProfileConfig as jt, SettingsOptions as k, isSandboxProtocol as kn, generalPurposeSubagentConfigSchema as kt, LangSmithSandboxCreateOptions as l, FileUploadResponse as ln, SkillMetadata$1 as lt, ContextHubBackend as m, MaybePromise as mn, StateBackend as mt, LangSmithCaptureSnapshotOptions as n, DeleteResult as nn, computeSummarizationDefaults as nt, adaptSandboxProtocol as o, FileDownloadResponse as on, MAX_SKILL_DESCRIPTION_LENGTH as ot, LocalShellBackendOptions as p, LsResult as pn, createMemoryMiddleware as pt, MergedDeepAgentState as q, FsToolName as qt, LangSmithSnapshot as r, EditResult as rn, createSummarizationMiddleware as rt, normalizeReadPagination as s, FileInfo as sn, MAX_SKILL_FILE_SIZE as st, createDeepAgent as t, BackendRuntime as tn, isAsyncSubAgent as tt, LangSmithSandboxOptions as u, GlobResult as un, SkillsMiddlewareOptions as ut, StoreBackendContext as v, SandboxDeleteOptions as vn, DEFAULT_SUBAGENT_PROMPT as vt, parseSkillMetadata as w, SandboxListResponse as wn, createSubAgent as wt, ListSkillsOptions as x, SandboxGetOrCreateOptions as xn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as xt, StoreBackendNamespaceFactory as y, SandboxError as yn, ForkedSubAgent as yt, ExtractSubAgentMiddleware as z, ConfigurationError as zt };
4393
- //# sourceMappingURL=agent-D7nWARfg.d.cts.map
4476
+ 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 };
4477
+ //# sourceMappingURL=agent-CrQgOsbl.d.cts.map
@@ -1593,7 +1593,7 @@ interface SubAgent {
1593
1593
  * };
1594
1594
  * ```
1595
1595
  */
1596
- skills?: string[];
1596
+ skills?: readonly string[];
1597
1597
  /**
1598
1598
  * Structured output response format for the subagent.
1599
1599
  *
@@ -2070,8 +2070,61 @@ interface SkillsMiddlewareOptions {
2070
2070
  * ]
2071
2071
  * ```
2072
2072
  */
2073
- sources: string[];
2073
+ sources: readonly string[];
2074
2074
  }
2075
+ /**
2076
+ * Zod schema for a single skill metadata entry.
2077
+ */
2078
+ declare const SkillMetadataEntrySchema: z$1.ZodObject<{
2079
+ name: z$1.ZodString;
2080
+ description: z$1.ZodString;
2081
+ path: z$1.ZodString;
2082
+ license: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2083
+ compatibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2084
+ metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
2085
+ allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2086
+ module: z$1.ZodOptional<z$1.ZodString>;
2087
+ }, z$1.core.$strip>;
2088
+ /**
2089
+ * Type for a single skill metadata entry.
2090
+ */
2091
+ type SkillMetadataEntry = z$1.infer<typeof SkillMetadataEntrySchema>;
2092
+ /**
2093
+ * State value for a middleware's `skillsMetadata` field.
2094
+ *
2095
+ * A middleware can only read and write the fields declared on its own state
2096
+ * schema. A middleware that needs `skillsMetadata` — to inspect the skills
2097
+ * loaded for the thread, or to set the field to `null` and make the next model
2098
+ * call reload every source — declares it with this value.
2099
+ *
2100
+ * Treat the value as opaque: it is meant to be passed to `StateSchema`, and
2101
+ * its concrete type is an implementation detail that may change. To type an
2102
+ * individual entry, use {@link SkillMetadataEntry}.
2103
+ *
2104
+ * @example
2105
+ * ```typescript
2106
+ * import { createMiddleware } from "langchain";
2107
+ * import { StateSchema } from "@langchain/langgraph";
2108
+ * import { skillsMetadataValue } from "deepagents";
2109
+ *
2110
+ * const reloadEditedSkills = createMiddleware({
2111
+ * name: "ReloadEditedSkills",
2112
+ * stateSchema: new StateSchema({ skillsMetadata: skillsMetadataValue }),
2113
+ * afterAgent: (state) =>
2114
+ * agentEditedSkills(state) ? { skillsMetadata: null } : undefined,
2115
+ * });
2116
+ * ```
2117
+ */
2118
+ declare const skillsMetadataValue: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
2119
+ name: z$1.ZodString;
2120
+ description: z$1.ZodString;
2121
+ path: z$1.ZodString;
2122
+ license: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2123
+ compatibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2124
+ metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
2125
+ allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2126
+ module: z$1.ZodOptional<z$1.ZodString>;
2127
+ }, z$1.core.$strip>>>>;
2075
2128
  /**
2076
2129
  * Create backend-agnostic middleware for loading and exposing agent skills.
2077
2130
  *
@@ -2080,6 +2133,21 @@ interface SkillsMiddlewareOptions {
2080
2133
  * pattern: skill names and descriptions are shown in the prompt, but the agent
2081
2134
  * reads full SKILL.md content only when needed.
2082
2135
  *
2136
+ * Skills are loaded once per thread and stored in state. To pick up skills
2137
+ * added, edited, or deleted since then, set `skillsMetadata` to `null`; the
2138
+ * next model call reloads every source:
2139
+ *
2140
+ * ```ts
2141
+ * await agent.updateState(config, { skillsMetadata: null });
2142
+ * // or as part of the next run's input
2143
+ * await agent.invoke({ messages, skillsMetadata: null }, config);
2144
+ * ```
2145
+ *
2146
+ * Loading happens in `beforeModel`, so the reload is served by the next model
2147
+ * call rather than the next run. A middleware of your own can therefore
2148
+ * invalidate from any hook — including mid-run, from `afterModel` — and see
2149
+ * the fresh list on the following call. See {@link skillsMetadataValue}.
2150
+ *
2083
2151
  * @param options - Configuration options
2084
2152
  * @returns AgentMiddleware for skills loading and injection
2085
2153
  *
@@ -2092,27 +2160,26 @@ interface SkillsMiddlewareOptions {
2092
2160
  * ```
2093
2161
  */
2094
2162
  declare function createSkillsMiddleware(options: SkillsMiddlewareOptions): AgentMiddleware<StateSchema<{
2095
- skillsMetadata: ReducedValue<{
2096
- name: string;
2097
- description: string;
2098
- path: string;
2099
- license?: string | null | undefined;
2100
- compatibility?: string | null | undefined;
2101
- metadata?: Record<string, string> | undefined;
2102
- allowedTools?: string[] | undefined;
2103
- module?: string | undefined;
2104
- }[] | undefined, {
2105
- name: string;
2106
- description: string;
2107
- path: string;
2108
- license?: string | null | undefined;
2109
- compatibility?: string | null | undefined;
2110
- metadata?: Record<string, string> | undefined;
2111
- allowedTools?: string[] | undefined;
2112
- module?: string | undefined;
2113
- }[] | undefined>;
2114
- files: ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
2163
+ skillsMetadata: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodObject<{
2164
+ name: z$1.ZodString;
2165
+ description: z$1.ZodString;
2166
+ path: z$1.ZodString;
2167
+ license: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2168
+ compatibility: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
2169
+ metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
2170
+ allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2171
+ module: z$1.ZodOptional<z$1.ZodString>;
2172
+ }, z$1.core.$strip>>>>;
2173
+ files: import("@langchain/langgraph").ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
2115
2174
  }>, undefined, unknown, readonly (import("@langchain/core/tools").ServerTool | import("@langchain/core/tools").ClientTool)[], readonly []>;
2175
+ /**
2176
+ * The middleware value returned by {@link createSkillsMiddleware}.
2177
+ *
2178
+ * Exported so `createDeepAgent` can splice the skills state (`skillsMetadata`)
2179
+ * into an agent's inferred state when the `skills` option is present, without
2180
+ * the caller having to mount the middleware by hand.
2181
+ */
2182
+ type SkillsMiddleware = ReturnType<typeof createSkillsMiddleware>;
2116
2183
  //#endregion
2117
2184
  //#region src/middleware/completion_callback.d.ts
2118
2185
  /**
@@ -2747,6 +2814,22 @@ type InferSubagentByName<T, TName extends string> = InferDeepAgentSubagents<T> e
2747
2814
  * ```
2748
2815
  */
2749
2816
  type InferSubagentReactAgentType<TSubagent extends SubAgent | CompiledSubAgent> = TSubagent extends CompiledSubAgent ? TSubagent["runnable"] : TSubagent extends SubAgent ? ReactAgent<AgentTypeConfig<ResponseFormatUndefined, undefined, AnyAnnotationRoot, ExtractSubAgentMiddleware<TSubagent>, readonly []>> : never;
2817
+ /**
2818
+ * Middleware that `createDeepAgent` mounts only when the corresponding option
2819
+ * is passed, expressed at the type level so the agent's state reflects it.
2820
+ *
2821
+ * `skills` mounts `SkillsMiddleware`, which contributes `skillsMetadata` to
2822
+ * state. Callers therefore get `skillsMetadata` on `invoke`/`updateState`
2823
+ * purely from `skills: [...]`, with no need to mount the middleware manually.
2824
+ *
2825
+ * Mirrors the runtime condition `skills != null && skills.length > 0`: an
2826
+ * omitted option or an empty literal (`skills: []`) mounts nothing and
2827
+ * contributes no state. A non-literal `string[]` has no statically known
2828
+ * length, so it is treated as mounting the middleware.
2829
+ *
2830
+ * @typeParam TSkills - The `skills` option as passed (or `undefined` if omitted)
2831
+ */
2832
+ type InferOptionalMiddleware<TSkills extends readonly string[] | undefined> = [TSkills] extends [undefined] ? readonly [] : [TSkills] extends [readonly []] ? readonly [] : readonly [SkillsMiddleware];
2750
2833
  /**
2751
2834
  * Configuration parameters for creating a Deep Agent
2752
2835
  * Matches Python's create_deep_agent parameters
@@ -2758,8 +2841,9 @@ type InferSubagentReactAgentType<TSubagent extends SubAgent | CompiledSubAgent>
2758
2841
  * @typeParam TTools - The tools array type
2759
2842
  * @typeParam TStreamTransformers - Custom stream transformer factories
2760
2843
  * @typeParam TStateSchema - The custom state schema type
2844
+ * @typeParam TSkills - The `skills` option, used to infer skills-middleware state
2761
2845
  */
2762
- interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>, TMiddleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[], TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined> {
2846
+ interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends AnnotationRoot<any> | InteropZodObject = AnnotationRoot<any>, TMiddleware extends readonly AgentMiddleware[] = readonly AgentMiddleware[], TSubagents extends readonly AnySubAgent[] = readonly AnySubAgent[], TTools extends readonly (ClientTool | ServerTool)[] = readonly (ClientTool | ServerTool)[], TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined, TSkills extends readonly string[] | undefined = readonly string[] | undefined> {
2763
2847
  /** The model to use (model name string or LanguageModelLike instance). Defaults to claude-sonnet-4-5-20250929 */
2764
2848
  model?: BaseLanguageModel | string;
2765
2849
  /**
@@ -2868,7 +2952,7 @@ interface CreateDeepAgentParams<TResponse extends SupportedResponseFormat = Supp
2868
2952
  * });
2869
2953
  * ```
2870
2954
  */
2871
- skills?: string[];
2955
+ skills?: TSkills;
2872
2956
  /**
2873
2957
  * Filesystem permission rules for this agent.
2874
2958
  *
@@ -4283,7 +4367,7 @@ declare function adaptSandboxProtocol(sandbox: AnySandboxProtocol): SandboxBacke
4283
4367
  * // result.research and result.author are properly typed as strings
4284
4368
  * ```
4285
4369
  */
4286
- declare function createDeepAgent<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends InteropZodObject = InteropZodObject, const TMiddleware extends readonly AgentMiddleware[] = readonly [], const TSubagents extends readonly AnySubAgent[] = readonly [], const TTools extends readonly (ClientTool | ServerTool)[] = readonly [], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined>(params?: CreateDeepAgentParams<TResponse, ContextSchema, TMiddleware, TSubagents, TTools, TStreamTransformers, TStateSchema>): DeepAgent<DeepAgentTypeConfig<InferStructuredResponse<TResponse>, TStateSchema, ContextSchema, readonly [AgentMiddleware<_langgraph.StateSchema<{
4370
+ declare function createDeepAgent<TResponse extends SupportedResponseFormat = SupportedResponseFormat, ContextSchema extends InteropZodObject = InteropZodObject, const TMiddleware extends readonly AgentMiddleware[] = readonly [], const TSubagents extends readonly AnySubAgent[] = readonly [], const TTools extends readonly (ClientTool | ServerTool)[] = readonly [], const TStreamTransformers extends ReadonlyArray<() => StreamTransformer<any>> = readonly [], TStateSchema extends AnyStateSchema | InteropZodObject | undefined = undefined, const TSkills extends readonly string[] | undefined = undefined>(params?: CreateDeepAgentParams<TResponse, ContextSchema, TMiddleware, TSubagents, TTools, TStreamTransformers, TStateSchema, TSkills>): DeepAgent<DeepAgentTypeConfig<InferStructuredResponse<TResponse>, TStateSchema, ContextSchema, readonly [...InferOptionalMiddleware<TSkills>, AgentMiddleware<_langgraph.StateSchema<{
4287
4371
  files: _langgraph.ReducedValue<FilesRecord | undefined, FilesRecordUpdate | undefined>;
4288
4372
  }>, undefined, unknown, (import("langchain").DynamicStructuredTool<import("zod").ZodObject<{
4289
4373
  path: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
@@ -4390,5 +4474,5 @@ declare function createDeepAgent<TResponse extends SupportedResponseFormat = Sup
4390
4474
  }, import("zod/v4/core").$strip>>;
4391
4475
  }, 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>>;
4392
4476
  //#endregion
4393
- export { AsyncTaskStatus as $, BackendFactory as $t, createSettings as A, resolveBackend as An, harnessProfileConfigSchema as At, FlattenSubAgentMiddleware as B, ConfigurationErrorCode as Bt, listSkills as C, SandboxListOptions as Cn, SubAgentMiddlewareOptions as Ct, filesValue as D, applyGrepMaxCount as Dn, registerHarnessProfile as Dt, createAgentMemoryMiddleware as E, WriteResult as En, getHarnessProfile as Et, CreateDeepAgentParams as F, GeneralPurposeSubagentConfig as Ft, InferSubagentByName as G, TASK_SYSTEM_PROMPT as Gt, InferDeepAgentType as H, BASE_AGENT_PROMPT as Ht, DeepAgent as I, HarnessProfile as It, ResolveDeepAgentTypeConfig as J, createFilesystemMiddleware as Jt, InferSubagentReactAgentType as K, FilesystemMiddlewareOptions as Kt, DeepAgentTypeConfig as L, HarnessProfileOptions as Lt, DeepAgentRunStream as M, SandboxBackendProtocolV2 as Mn, serializeProfile as Mt, SubagentRunStream$1 as N, BackendProtocolV1 as Nn, EMPTY_HARNESS_PROFILE as Nt, Settings as O, isSandboxBackend as On, HarnessProfileConfigData as Ot, AnySubAgent as P, SandboxBackendProtocolV1 as Pn, createHarnessProfile as Pt, AsyncTask as Q, AnyBackendProtocol as Qt, DefaultDeepAgentTypeConfig as R, REQUIRED_MIDDLEWARE_NAMES as Rt, SkillMetadata as S, SandboxInfo as Sn, SubAgent as St, AgentMemoryMiddlewareOptions as T, StateAndStore as Tn, createSubAgentMiddleware as Tt, InferStructuredResponse as U, EXECUTION_SYSTEM_PROMPT as Ut, InferDeepAgentSubagents as V, ASYNC_TASK_SYSTEM_PROMPT as Vt, InferSubAgentMiddlewareStates as W, SystemPromptConfig as Wt, AsyncSubAgent as X, FilesystemPermission as Xt, SupportedResponseFormat as Y, FilesystemOperation as Yt, AsyncSubAgentMiddlewareOptions as Z, PermissionMode as Zt, StoreBackend as _, SandboxBackendProtocol as _n, DEFAULT_GENERAL_PURPOSE_DESCRIPTION as _t, adaptBackendProtocol as a, FileData as an, createCompletionCallbackMiddleware as at, StoreBackendOptions as b, SandboxErrorCode as bn, GENERAL_PURPOSE_SUBAGENT as bt, LangSmithSandbox as c, FileOperationError as cn, MAX_SKILL_NAME_LENGTH as ct, BaseSandbox as d, GrepMatch as dn, createSkillsMiddleware as dt, BackendProtocol as en, createAsyncSubAgentMiddleware as et, LocalShellBackend as f, GrepResult as fn, MemoryMiddlewareOptions as ft, FilesystemBackend as g, ReadResult as gn, CompiledSubAgent as gt, CompositeBackend as h, ReadRawResult as hn, createPatchToolCallsMiddleware as ht, LangSmithStartSandboxOptions as i, ExecuteResponse as in, CompletionCallbackOptions as it, findProjectRoot as j, BackendProtocolV2 as jn, parseHarnessProfileConfig as jt, SettingsOptions as k, isSandboxProtocol as kn, generalPurposeSubagentConfigSchema as kt, LangSmithSandboxCreateOptions as l, FileUploadResponse as ln, SkillMetadata$1 as lt, ContextHubBackend as m, MaybePromise as mn, StateBackend as mt, LangSmithCaptureSnapshotOptions as n, DeleteResult as nn, computeSummarizationDefaults as nt, adaptSandboxProtocol as o, FileDownloadResponse as on, MAX_SKILL_DESCRIPTION_LENGTH as ot, LocalShellBackendOptions as p, LsResult as pn, createMemoryMiddleware as pt, MergedDeepAgentState as q, FsToolName as qt, LangSmithSnapshot as r, EditResult as rn, createSummarizationMiddleware as rt, normalizeReadPagination as s, FileInfo as sn, MAX_SKILL_FILE_SIZE as st, createDeepAgent as t, BackendRuntime as tn, isAsyncSubAgent as tt, LangSmithSandboxOptions as u, GlobResult as un, SkillsMiddlewareOptions as ut, StoreBackendContext as v, SandboxDeleteOptions as vn, DEFAULT_SUBAGENT_PROMPT as vt, parseSkillMetadata as w, SandboxListResponse as wn, createSubAgent as wt, ListSkillsOptions as x, SandboxGetOrCreateOptions as xn, SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY as xt, StoreBackendNamespaceFactory as y, SandboxError as yn, ForkedSubAgent as yt, ExtractSubAgentMiddleware as z, ConfigurationError as zt };
4394
- //# sourceMappingURL=agent-CVBXKZAu.d.ts.map
4477
+ 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 };
4478
+ //# sourceMappingURL=agent-DGkf2K7U.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-yA3yhBRa.cjs");
2
+ const require_langsmith = require("./langsmith-C9zNPKIz.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;
@@ -44,3 +44,4 @@ exports.parseHarnessProfileConfig = require_langsmith.parseHarnessProfileConfig;
44
44
  exports.registerHarnessProfile = require_langsmith.registerHarnessProfile;
45
45
  exports.resolveBackend = require_langsmith.resolveBackend;
46
46
  exports.serializeProfile = require_langsmith.serializeProfile;
47
+ exports.skillsMetadataValue = require_langsmith.skillsMetadataValue;
@@ -1,3 +1,3 @@
1
- import { $ as AsyncTaskStatus, $t as BackendFactory, An as resolveBackend, At as harnessProfileConfigSchema, B as FlattenSubAgentMiddleware, Bt as ConfigurationErrorCode, Cn as SandboxListOptions, Ct as SubAgentMiddlewareOptions, D as filesValue, Dt as registerHarnessProfile, En as WriteResult, Et as getHarnessProfile, F as CreateDeepAgentParams, Ft as GeneralPurposeSubagentConfig, G as InferSubagentByName, Gt as TASK_SYSTEM_PROMPT, H as InferDeepAgentType, Ht as BASE_AGENT_PROMPT, I as DeepAgent, It as HarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as createFilesystemMiddleware, K as InferSubagentReactAgentType, Kt as FilesystemMiddlewareOptions, L as DeepAgentTypeConfig, Lt as HarnessProfileOptions, M as DeepAgentRunStream, Mn as SandboxBackendProtocolV2, Mt as serializeProfile, N as SubagentRunStream, Nn as BackendProtocolV1, Nt as EMPTY_HARNESS_PROFILE, On as isSandboxBackend, Ot as HarnessProfileConfigData, P as AnySubAgent, Pn as SandboxBackendProtocolV1, Pt as createHarnessProfile, Q as AsyncTask, Qt as AnyBackendProtocol, R as DefaultDeepAgentTypeConfig, Rt as REQUIRED_MIDDLEWARE_NAMES, Sn as SandboxInfo, St as SubAgent, Tn as StateAndStore, Tt as createSubAgentMiddleware, U as InferStructuredResponse, Ut as EXECUTION_SYSTEM_PROMPT, V as InferDeepAgentSubagents, Vt as ASYNC_TASK_SYSTEM_PROMPT, W as InferSubAgentMiddlewareStates, Wt as SystemPromptConfig, X as AsyncSubAgent, Xt as FilesystemPermission, Y as SupportedResponseFormat, Yt as FilesystemOperation, Z as AsyncSubAgentMiddlewareOptions, Zt as PermissionMode, _ as StoreBackend, _n as SandboxBackendProtocol, _t as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, a as adaptBackendProtocol, an as FileData, at as createCompletionCallbackMiddleware, b as StoreBackendOptions, bn as SandboxErrorCode, bt as GENERAL_PURPOSE_SUBAGENT, c as LangSmithSandbox, cn as FileOperationError, ct as MAX_SKILL_NAME_LENGTH, d as BaseSandbox, dn as GrepMatch, dt as createSkillsMiddleware, en as BackendProtocol, et as createAsyncSubAgentMiddleware, fn as GrepResult, ft as MemoryMiddlewareOptions, gn as ReadResult, gt as CompiledSubAgent, h as CompositeBackend, hn as ReadRawResult, ht as createPatchToolCallsMiddleware, in as ExecuteResponse, it as CompletionCallbackOptions, jn as BackendProtocolV2, jt as parseHarnessProfileConfig, kn as isSandboxProtocol, kt as generalPurposeSubagentConfigSchema, l as LangSmithSandboxCreateOptions, ln as FileUploadResponse, lt as SkillMetadata, m as ContextHubBackend, mn as MaybePromise, mt as StateBackend, nn as DeleteResult, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as FileDownloadResponse, ot as MAX_SKILL_DESCRIPTION_LENGTH, pn as LsResult, pt as createMemoryMiddleware, q as MergedDeepAgentState, qt as FsToolName, rn as EditResult, rt as createSummarizationMiddleware, sn as FileInfo, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as BackendRuntime, tt as isAsyncSubAgent, u as LangSmithSandboxOptions, un as GlobResult, ut as SkillsMiddlewareOptions, v as StoreBackendContext, vn as SandboxDeleteOptions, vt as DEFAULT_SUBAGENT_PROMPT, wn as SandboxListResponse, xn as SandboxGetOrCreateOptions, y as StoreBackendNamespaceFactory, yn as SandboxError, yt as ForkedSubAgent, z as ExtractSubAgentMiddleware, zt as ConfigurationError } from "./agent-D7nWARfg.cjs";
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-CrQgOsbl.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 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 };
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 };
package/dist/browser.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as AsyncTaskStatus, $t as BackendFactory, An as resolveBackend, At as harnessProfileConfigSchema, B as FlattenSubAgentMiddleware, Bt as ConfigurationErrorCode, Cn as SandboxListOptions, Ct as SubAgentMiddlewareOptions, D as filesValue, Dt as registerHarnessProfile, En as WriteResult, Et as getHarnessProfile, F as CreateDeepAgentParams, Ft as GeneralPurposeSubagentConfig, G as InferSubagentByName, Gt as TASK_SYSTEM_PROMPT, H as InferDeepAgentType, Ht as BASE_AGENT_PROMPT, I as DeepAgent, It as HarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as createFilesystemMiddleware, K as InferSubagentReactAgentType, Kt as FilesystemMiddlewareOptions, L as DeepAgentTypeConfig, Lt as HarnessProfileOptions, M as DeepAgentRunStream, Mn as SandboxBackendProtocolV2, Mt as serializeProfile, N as SubagentRunStream, Nn as BackendProtocolV1, Nt as EMPTY_HARNESS_PROFILE, On as isSandboxBackend, Ot as HarnessProfileConfigData, P as AnySubAgent, Pn as SandboxBackendProtocolV1, Pt as createHarnessProfile, Q as AsyncTask, Qt as AnyBackendProtocol, R as DefaultDeepAgentTypeConfig, Rt as REQUIRED_MIDDLEWARE_NAMES, Sn as SandboxInfo, St as SubAgent, Tn as StateAndStore, Tt as createSubAgentMiddleware, U as InferStructuredResponse, Ut as EXECUTION_SYSTEM_PROMPT, V as InferDeepAgentSubagents, Vt as ASYNC_TASK_SYSTEM_PROMPT, W as InferSubAgentMiddlewareStates, Wt as SystemPromptConfig, X as AsyncSubAgent, Xt as FilesystemPermission, Y as SupportedResponseFormat, Yt as FilesystemOperation, Z as AsyncSubAgentMiddlewareOptions, Zt as PermissionMode, _ as StoreBackend, _n as SandboxBackendProtocol, _t as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, a as adaptBackendProtocol, an as FileData, at as createCompletionCallbackMiddleware, b as StoreBackendOptions, bn as SandboxErrorCode, bt as GENERAL_PURPOSE_SUBAGENT, c as LangSmithSandbox, cn as FileOperationError, ct as MAX_SKILL_NAME_LENGTH, d as BaseSandbox, dn as GrepMatch, dt as createSkillsMiddleware, en as BackendProtocol, et as createAsyncSubAgentMiddleware, fn as GrepResult, ft as MemoryMiddlewareOptions, gn as ReadResult, gt as CompiledSubAgent, h as CompositeBackend, hn as ReadRawResult, ht as createPatchToolCallsMiddleware, in as ExecuteResponse, it as CompletionCallbackOptions, jn as BackendProtocolV2, jt as parseHarnessProfileConfig, kn as isSandboxProtocol, kt as generalPurposeSubagentConfigSchema, l as LangSmithSandboxCreateOptions, ln as FileUploadResponse, lt as SkillMetadata, m as ContextHubBackend, mn as MaybePromise, mt as StateBackend, nn as DeleteResult, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as FileDownloadResponse, ot as MAX_SKILL_DESCRIPTION_LENGTH, pn as LsResult, pt as createMemoryMiddleware, q as MergedDeepAgentState, qt as FsToolName, rn as EditResult, rt as createSummarizationMiddleware, sn as FileInfo, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as BackendRuntime, tt as isAsyncSubAgent, u as LangSmithSandboxOptions, un as GlobResult, ut as SkillsMiddlewareOptions, v as StoreBackendContext, vn as SandboxDeleteOptions, vt as DEFAULT_SUBAGENT_PROMPT, wn as SandboxListResponse, xn as SandboxGetOrCreateOptions, y as StoreBackendNamespaceFactory, yn as SandboxError, yt as ForkedSubAgent, z as ExtractSubAgentMiddleware, zt as ConfigurationError } from "./agent-CVBXKZAu.js";
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-DGkf2K7U.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 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 };
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 };
package/dist/browser.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, B as StateBackend, C as MAX_SKILL_DESCRIPTION_LENGTH, D as createMemoryMiddleware, E as createSkillsMiddleware, F as createSubAgentMiddleware, G as resolveBackend, I as computeSummarizationDefaults, K as adaptBackendProtocol, L as createSummarizationMiddleware, M as GENERAL_PURPOSE_SUBAGENT, O as filesValue, R as createFilesystemMiddleware, S as createCompletionCallbackMiddleware, T as MAX_SKILL_NAME_LENGTH, U as isSandboxBackend, V as SandboxError, W as isSandboxProtocol, _ as createHarnessProfile, a as ASYNC_TASK_SYSTEM_PROMPT, b as createAsyncSubAgentMiddleware, c as TASK_SYSTEM_PROMPT, d as registerHarnessProfile, f as generalPurposeSubagentConfigSchema, g as EMPTY_HARNESS_PROFILE, h as serializeProfile, i as StoreBackend, j as DEFAULT_SUBAGENT_PROMPT, k as createPatchToolCallsMiddleware, l as createDeepAgent, m as parseHarnessProfileConfig, n as BaseSandbox, o as BASE_AGENT_PROMPT, p as harnessProfileConfigSchema, q as adaptSandboxProtocol, r as ContextHubBackend, s as EXECUTION_SYSTEM_PROMPT, t as LangSmithSandbox, u as getHarnessProfile, v as REQUIRED_MIDDLEWARE_NAMES, w as MAX_SKILL_FILE_SIZE, x as isAsyncSubAgent, y as ConfigurationError, z as CompositeBackend } from "./langsmith-BAO_h4J6.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 };
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-3LzYb-m7.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 };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_langsmith = require("./langsmith-yA3yhBRa.cjs");
3
- const require_src = require("./src-D_XxmEak.cjs");
2
+ const require_langsmith = require("./langsmith-C9zNPKIz.cjs");
3
+ const require_src = require("./src-Nhlq1O0Y.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;
@@ -56,3 +56,4 @@ exports.parseSkillMetadata = require_src.parseSkillMetadata;
56
56
  exports.registerHarnessProfile = require_langsmith.registerHarnessProfile;
57
57
  exports.resolveBackend = require_langsmith.resolveBackend;
58
58
  exports.serializeProfile = require_langsmith.serializeProfile;
59
+ exports.skillsMetadataValue = require_langsmith.skillsMetadataValue;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as AsyncTaskStatus, $t as BackendFactory, A as createSettings, An as resolveBackend, At as harnessProfileConfigSchema, B as FlattenSubAgentMiddleware, Bt as ConfigurationErrorCode, C as listSkills, Cn as SandboxListOptions, Ct as SubAgentMiddlewareOptions, D as filesValue, Dn as applyGrepMaxCount, Dt as registerHarnessProfile, E as createAgentMemoryMiddleware, En as WriteResult, Et as getHarnessProfile, F as CreateDeepAgentParams, Ft as GeneralPurposeSubagentConfig, G as InferSubagentByName, Gt as TASK_SYSTEM_PROMPT, H as InferDeepAgentType, Ht as BASE_AGENT_PROMPT, I as DeepAgent, It as HarnessProfile, J as ResolveDeepAgentTypeConfig, Jt as createFilesystemMiddleware, K as InferSubagentReactAgentType, Kt as FilesystemMiddlewareOptions, L as DeepAgentTypeConfig, Lt as HarnessProfileOptions, M as DeepAgentRunStream, Mn as SandboxBackendProtocolV2, Mt as serializeProfile, N as SubagentRunStream, Nn as BackendProtocolV1, Nt as EMPTY_HARNESS_PROFILE, O as Settings, On as isSandboxBackend, Ot as HarnessProfileConfigData, P as AnySubAgent, Pn as SandboxBackendProtocolV1, Pt as createHarnessProfile, Q as AsyncTask, Qt as AnyBackendProtocol, R as DefaultDeepAgentTypeConfig, Rt as REQUIRED_MIDDLEWARE_NAMES, S as SkillMetadata, Sn as SandboxInfo, St as SubAgent, T as AgentMemoryMiddlewareOptions, Tn as StateAndStore, Tt as createSubAgentMiddleware, U as InferStructuredResponse, Ut as EXECUTION_SYSTEM_PROMPT, V as InferDeepAgentSubagents, Vt as ASYNC_TASK_SYSTEM_PROMPT, W as InferSubAgentMiddlewareStates, Wt as SystemPromptConfig, X as AsyncSubAgent, Xt as FilesystemPermission, Y as SupportedResponseFormat, Yt as FilesystemOperation, Z as AsyncSubAgentMiddlewareOptions, Zt as PermissionMode, _ as StoreBackend, _n as SandboxBackendProtocol, _t as DEFAULT_GENERAL_PURPOSE_DESCRIPTION, a as adaptBackendProtocol, an as FileData, at as createCompletionCallbackMiddleware, b as StoreBackendOptions, bn as SandboxErrorCode, bt as GENERAL_PURPOSE_SUBAGENT, c as LangSmithSandbox, cn as FileOperationError, ct as MAX_SKILL_NAME_LENGTH, d as BaseSandbox, dn as GrepMatch, dt as createSkillsMiddleware, en as BackendProtocol, et as createAsyncSubAgentMiddleware, f as LocalShellBackend, fn as GrepResult, ft as MemoryMiddlewareOptions, g as FilesystemBackend, gn as ReadResult, gt as CompiledSubAgent, h as CompositeBackend, hn as ReadRawResult, ht as createPatchToolCallsMiddleware, i as LangSmithStartSandboxOptions, in as ExecuteResponse, it as CompletionCallbackOptions, j as findProjectRoot, jn as BackendProtocolV2, jt as parseHarnessProfileConfig, k as SettingsOptions, kn as isSandboxProtocol, kt as generalPurposeSubagentConfigSchema, l as LangSmithSandboxCreateOptions, ln as FileUploadResponse, lt as SkillMetadata$1, m as ContextHubBackend, mn as MaybePromise, mt as StateBackend, n as LangSmithCaptureSnapshotOptions, nn as DeleteResult, nt as computeSummarizationDefaults, o as adaptSandboxProtocol, on as FileDownloadResponse, ot as MAX_SKILL_DESCRIPTION_LENGTH, p as LocalShellBackendOptions, pn as LsResult, pt as createMemoryMiddleware, q as MergedDeepAgentState, qt as FsToolName, r as LangSmithSnapshot, rn as EditResult, rt as createSummarizationMiddleware, s as normalizeReadPagination, sn as FileInfo, st as MAX_SKILL_FILE_SIZE, t as createDeepAgent, tn as BackendRuntime, tt as isAsyncSubAgent, u as LangSmithSandboxOptions, un as GlobResult, ut as SkillsMiddlewareOptions, v as StoreBackendContext, vn as SandboxDeleteOptions, vt as DEFAULT_SUBAGENT_PROMPT, w as parseSkillMetadata, wn as SandboxListResponse, wt as createSubAgent, x as ListSkillsOptions, xn as SandboxGetOrCreateOptions, xt as SUBAGENT_RESPONSE_FORMAT_CONFIG_KEY, y as StoreBackendNamespaceFactory, yn as SandboxError, yt as ForkedSubAgent, z as ExtractSubAgentMiddleware, zt as ConfigurationError } from "./agent-D7nWARfg.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 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 };
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-CrQgOsbl.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 };