agents 0.12.4 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +8 -8
  2. package/dist/{agent-tool-types-CM_50fcV.d.ts → agent-tool-types-Dn9n-3SI.d.ts} +234 -85
  3. package/dist/agent-tool-types.d.ts +1 -1
  4. package/dist/{agent-tools-BylX6WXG.d.ts → agent-tools-B1ttU-pq.d.ts} +2 -2
  5. package/dist/agent-tools-BAdX1vdI.js.map +1 -1
  6. package/dist/agent-tools.d.ts +1 -1
  7. package/dist/agent-tools.js.map +1 -1
  8. package/dist/ai-chat-agent.js.map +1 -1
  9. package/dist/ai-chat-v5-migration.js.map +1 -1
  10. package/dist/ai-react.js.map +1 -1
  11. package/dist/ai-types.js.map +1 -1
  12. package/dist/browser/ai.js +1 -1
  13. package/dist/browser/ai.js.map +1 -1
  14. package/dist/browser/index.js +1 -1
  15. package/dist/browser/tanstack-ai.js +1 -1
  16. package/dist/browser/tanstack-ai.js.map +1 -1
  17. package/dist/chat/index.d.ts +2 -2
  18. package/dist/chat/index.js.map +1 -1
  19. package/dist/{classPrivateFieldGet2-CS51BNGR.js → classPrivateFieldGet2-Evpt0SEr.js} +5 -5
  20. package/dist/cli/index.js.map +1 -1
  21. package/dist/client-D1kFXo80.js.map +1 -1
  22. package/dist/client.d.ts +1 -1
  23. package/dist/client.js.map +1 -1
  24. package/dist/codemode/ai.js.map +1 -1
  25. package/dist/{compaction-helpers-bYvP1o2S.d.ts → compaction-helpers-DAe-xiVY.d.ts} +33 -15
  26. package/dist/compaction-helpers-DvcZnvQ1.js.map +1 -1
  27. package/dist/email.d.ts +1 -1
  28. package/dist/email.js.map +1 -1
  29. package/dist/experimental/memory/session/index.d.ts +247 -34
  30. package/dist/experimental/memory/session/index.js +540 -135
  31. package/dist/experimental/memory/session/index.js.map +1 -1
  32. package/dist/experimental/memory/utils/index.d.ts +1 -1
  33. package/dist/experimental/memory/utils/index.js.map +1 -1
  34. package/dist/experimental/webmcp.js.map +1 -1
  35. package/dist/index.d.ts +71 -57
  36. package/dist/index.js +583 -45
  37. package/dist/index.js.map +1 -1
  38. package/dist/internal_context.js.map +1 -1
  39. package/dist/mcp/client.d.ts +12 -12
  40. package/dist/mcp/do-oauth-client-provider.js.map +1 -1
  41. package/dist/mcp/index.d.ts +40 -40
  42. package/dist/mcp/index.js +21 -45
  43. package/dist/mcp/index.js.map +1 -1
  44. package/dist/mcp/x402.js.map +1 -1
  45. package/dist/observability/index.js.map +1 -1
  46. package/dist/react.d.ts +3 -3
  47. package/dist/react.js.map +1 -1
  48. package/dist/retries.js.map +1 -1
  49. package/dist/schedule.js.map +1 -1
  50. package/dist/serializable.d.ts +1 -1
  51. package/dist/{shared-DzJYHisH.js → shared-CiKaIK4h.js} +4 -5
  52. package/dist/{shared-DzJYHisH.js.map → shared-CiKaIK4h.js.map} +1 -1
  53. package/dist/sub-routing.d.ts +6 -6
  54. package/dist/sub-routing.js.map +1 -1
  55. package/dist/tool-output-truncation-CH-khbZ3.js.map +1 -1
  56. package/dist/types.js.map +1 -1
  57. package/dist/utils.js.map +1 -1
  58. package/dist/vite.js.map +1 -1
  59. package/dist/workflow-types.js.map +1 -1
  60. package/dist/workflows.d.ts +1 -1
  61. package/dist/workflows.js.map +1 -1
  62. package/package.json +6 -6
package/README.md CHANGED
@@ -110,7 +110,7 @@ State changes sync to all connected clients automatically. Call methods like the
110
110
  Core State sync · Routing · HTTP & WebSockets · @callable RPC · Sub-agents (facets)
111
111
  Clients React hook · Vanilla JS · Real-time state sync
112
112
  Channels WebSocket · HTTP · Email · (coming: SMS, Voice, Messengers)
113
- Background Queue · Scheduling · Workflows · Human-in-the-loop
113
+ Background Queue · Scheduling · Managed fibers · Workflows · Human-in-the-loop
114
114
  AI Chat agents · Agent tools · Tool calling · MCP servers & clients
115
115
  Platform Observability · Cross-domain auth · Resumable streams
116
116
  ```
@@ -380,7 +380,7 @@ Workflows provide:
380
380
  - **Long-running tasks** — run for days or weeks
381
381
  - **Progress tracking** — report status back to the agent
382
382
 
383
- See [Workflows](./docs/workflows.md) and [Human in the Loop](./docs/human-in-the-loop.md).
383
+ See [Workflows](../../docs/workflows.md) and [Human in the Loop](../../docs/human-in-the-loop.md).
384
384
 
385
385
  ---
386
386
 
@@ -511,12 +511,12 @@ export default {
511
511
 
512
512
  ## Learn More
513
513
 
514
- [Getting Started](./docs/getting-started.md) ·
515
- [State Management](./docs/state.md) ·
516
- [Scheduling](./docs/scheduling.md) ·
517
- [Callable Methods](./docs/callable-methods.md) ·
518
- [MCP Integration](./docs/mcp-client.md) ·
519
- [Full Documentation](./docs/index.md)
514
+ [Getting Started](../../docs/getting-started.md) ·
515
+ [State Management](../../docs/state.md) ·
516
+ [Scheduling](../../docs/scheduling.md) ·
517
+ [Callable Methods](../../docs/callable-methods.md) ·
518
+ [MCP Integration](../../docs/mcp-client.md) ·
519
+ [Full Documentation](../../docs/index.md)
520
520
 
521
521
  ---
522
522
 
@@ -441,10 +441,15 @@ declare abstract class McpAgent<
441
441
  extraInfo?: MessageExtraInfo
442
442
  ): Promise<Error | null>;
443
443
  /** Elicit user input with a message and schema */
444
- elicitInput(params: {
445
- message: string;
446
- requestedSchema: unknown;
447
- }): Promise<ElicitResult>;
444
+ elicitInput(
445
+ params: {
446
+ message: string;
447
+ requestedSchema: unknown;
448
+ },
449
+ options?: {
450
+ relatedRequestId?: RequestId;
451
+ }
452
+ ): Promise<ElicitResult>;
448
453
  /** Handle elicitation responses via in-memory resolver */
449
454
  private _handleElicitationResponse;
450
455
  /**
@@ -847,7 +852,7 @@ declare class MCPClientConnection {
847
852
  */
848
853
  getTransport(
849
854
  transportType: BaseTransportType
850
- ): RPCClientTransport | SSEClientTransport | StreamableHTTPClientTransport;
855
+ ): StreamableHTTPClientTransport | SSEClientTransport | RPCClientTransport;
851
856
  private tryConnect;
852
857
  private _capabilityErrorHandler;
853
858
  }
@@ -1820,19 +1825,85 @@ type ScheduleCriteria = {
1820
1825
  * and identity for durable execution.
1821
1826
  */
1822
1827
  type FiberContext = {
1823
- /** Unique identifier for this fiber execution. */ id: string /** Checkpoint data during execution. Synchronous SQLite write. */;
1828
+ /** Unique identifier for this fiber execution. */ id: string /** Cooperative cancellation signal for managed fiber callers. */;
1829
+ signal: AbortSignal /** Checkpoint data during execution. Synchronous SQLite write. */;
1824
1830
  stash(
1825
1831
  data: unknown
1826
- ): void /** Last checkpoint data (null on first run, populated on recovery re-invocation). */;
1832
+ ): void /** Currently null during execution; recovered snapshots are passed to onFiberRecovered(). */;
1827
1833
  snapshot: unknown | null;
1828
1834
  };
1835
+ type FiberStatus =
1836
+ | "pending"
1837
+ | "running"
1838
+ | "completed"
1839
+ | "aborted"
1840
+ | "interrupted"
1841
+ | "error";
1842
+ type StartFiberOptions = {
1843
+ fiberId?: string;
1844
+ idempotencyKey?: string;
1845
+ metadata?: Record<string, unknown>;
1846
+ waitForCompletion?: boolean;
1847
+ };
1848
+ type FiberInspection = {
1849
+ fiberId: string;
1850
+ name: string;
1851
+ idempotencyKey?: string;
1852
+ status: FiberStatus;
1853
+ snapshot?: unknown;
1854
+ error?: string;
1855
+ metadata?: Record<string, unknown>;
1856
+ createdAt: number;
1857
+ startedAt?: number;
1858
+ settledAt?: number;
1859
+ };
1860
+ type StartFiberResult = FiberInspection & {
1861
+ accepted: boolean;
1862
+ };
1863
+ type FiberRecoveryResult =
1864
+ | {
1865
+ status: "completed";
1866
+ snapshot?: unknown;
1867
+ metadata?: Record<string, unknown>;
1868
+ }
1869
+ | {
1870
+ status: "error";
1871
+ error?: unknown;
1872
+ snapshot?: unknown;
1873
+ }
1874
+ | {
1875
+ status: "aborted";
1876
+ reason?: string;
1877
+ snapshot?: unknown;
1878
+ }
1879
+ | {
1880
+ status: "interrupted";
1881
+ reason?: string;
1882
+ snapshot?: unknown;
1883
+ };
1884
+ type ListFibersOptions = {
1885
+ status?: FiberStatus | FiberStatus[];
1886
+ name?: string;
1887
+ limit?: number;
1888
+ };
1889
+ type DeleteFibersOptions = {
1890
+ status?: FiberStatus | FiberStatus[];
1891
+ settledBefore?: Date;
1892
+ limit?: number;
1893
+ };
1829
1894
  /**
1830
1895
  * Context passed to the `onFiberRecovered` hook when an interrupted
1831
1896
  * fiber is detected after DO restart.
1832
1897
  */
1833
1898
  type FiberRecoveryContext = {
1834
1899
  /** Fiber ID. */ id: string /** Name passed to `runFiber`. */;
1835
- name: string /** Last checkpoint data from `stash()`, or null if never stashed. */;
1900
+ name: string /** Status for managed fibers recovered through the retained ledger. */;
1901
+ status?: FiberStatus /** Idempotency key for managed fibers, if one was supplied. */;
1902
+ idempotencyKey?: string /** Metadata for managed fibers, if one was supplied. */;
1903
+ metadata?: Record<
1904
+ string,
1905
+ unknown
1906
+ > | null /** Last checkpoint data from `stash()`, or null if never stashed. */;
1836
1907
  snapshot: unknown | null;
1837
1908
  /**
1838
1909
  * Epoch milliseconds when the fiber row was inserted (when `runFiber`
@@ -2028,6 +2099,12 @@ declare class Agent<
2028
2099
  private _facetKeepAliveTokens;
2029
2100
  /** @internal In-memory set of fiber IDs running in this process. */
2030
2101
  private _runFiberActiveFibers;
2102
+ /** @internal In-memory abort controllers for managed running fibers. */
2103
+ private _managedFiberAbortControllers;
2104
+ /** @internal In-memory executions for callers that want to await accepted work. */
2105
+ private _managedFiberExecutions;
2106
+ /** @internal In-memory waiters for managed fibers reaching terminal ledger state. */
2107
+ private _managedFiberTerminalWaiters;
2031
2108
  /** @internal Prevents re-entrant recovery from overlapping alarm ticks. */
2032
2109
  private _runFiberRecoveryInProgress;
2033
2110
  private _ParentClass;
@@ -2710,6 +2787,33 @@ declare class Agent<
2710
2787
  * ```
2711
2788
  */
2712
2789
  keepAliveWhile<T>(fn: () => Promise<T>): Promise<T>;
2790
+ private _isTerminalFiberStatus;
2791
+ private _notifyManagedFiberTerminal;
2792
+ private _waitForManagedFiberTerminal;
2793
+ private _normalizeFiberStatusFilter;
2794
+ private _parseFiberJsonObject;
2795
+ private _parseFiberSnapshot;
2796
+ private _fiberErrorMessage;
2797
+ private _stringifyFiberSnapshot;
2798
+ private _fiberRecoveryErrorMessage;
2799
+ private _applyManagedFiberRecoveryResult;
2800
+ private _settleManagedFiberExecution;
2801
+ private _parseFiberRecoverySnapshot;
2802
+ private _runFiberRecoveryHook;
2803
+ private _fiberInspectionFromRow;
2804
+ private _waitForManagedFiber;
2805
+ private _readFiber;
2806
+ private _readFiberByKey;
2807
+ private _listFiberRows;
2808
+ private _listFiberRowsByStatus;
2809
+ inspectFiber(fiberId: string): Promise<FiberInspection | null>;
2810
+ inspectFiberByKey(idempotencyKey: string): Promise<FiberInspection | null>;
2811
+ listFibers(options?: ListFibersOptions): Promise<FiberInspection[]>;
2812
+ cancelFiber(fiberId: string, reason?: string): Promise<boolean>;
2813
+ cancelFiberByKey(idempotencyKey: string, reason?: string): Promise<boolean>;
2814
+ resolveFiber(fiberId: string, result: FiberRecoveryResult): Promise<boolean>;
2815
+ deleteFibers(options?: DeleteFibersOptions): Promise<number>;
2816
+ private _listTerminalFiberRowsForDelete;
2713
2817
  /**
2714
2818
  * Run a function as a durable fiber. The fiber is registered in SQLite
2715
2819
  * before execution, checkpointable during execution via `ctx.stash()`,
@@ -2724,6 +2828,13 @@ declare class Agent<
2724
2828
  * @returns The return value of fn
2725
2829
  */
2726
2830
  runFiber<T>(name: string, fn: (ctx: FiberContext) => Promise<T>): Promise<T>;
2831
+ startFiber(
2832
+ name: string,
2833
+ fn: (ctx: FiberContext) => Promise<void>,
2834
+ options?: StartFiberOptions
2835
+ ): Promise<StartFiberResult>;
2836
+ private _executeManagedFiber;
2837
+ private _runFiberInternal;
2727
2838
  /**
2728
2839
  * Checkpoint data for the currently executing fiber.
2729
2840
  * Uses AsyncLocalStorage to identify the correct fiber,
@@ -2741,7 +2852,9 @@ declare class Agent<
2741
2852
  *
2742
2853
  * Default: logs a warning.
2743
2854
  */
2744
- onFiberRecovered(_ctx: FiberRecoveryContext): Promise<void>;
2855
+ onFiberRecovered(
2856
+ _ctx: FiberRecoveryContext
2857
+ ): Promise<void | FiberRecoveryResult>;
2745
2858
  /**
2746
2859
  * Override point for subclasses to handle internal (framework) fibers
2747
2860
  * before the user's recovery hook fires. Return `true` if handled.
@@ -2980,6 +3093,23 @@ declare class Agent<
2980
3093
  method: string,
2981
3094
  args: unknown[]
2982
3095
  ): Promise<unknown>;
3096
+ /**
3097
+ * Bridge method used by `parentAgent()` when the requested parent is
3098
+ * itself a facet (and therefore has no top-level env namespace).
3099
+ * The root receives the full root-first target path, then each hop
3100
+ * delegates to the next facet using that facet's own `ctx.facets`.
3101
+ *
3102
+ * @internal
3103
+ */
3104
+ _cf_invokeSubAgentPath(
3105
+ path: ReadonlyArray<{
3106
+ className: string;
3107
+ name: string;
3108
+ }>,
3109
+ method: string,
3110
+ args: unknown[]
3111
+ ): Promise<unknown>;
3112
+ private _cf_invokeStubMethod;
2983
3113
  /**
2984
3114
  * Initialize this agent as a facet in a single RPC.
2985
3115
  *
@@ -3000,11 +3130,11 @@ declare class Agent<
3000
3130
  *
3001
3131
  * The facet's name (and `this.name` getter) is handled entirely by
3002
3132
  * partyserver via `ctx.id.name`, which is populated because the
3003
- * parent passed an explicit `id: parentNs.idFromName(name)` to
3133
+ * parent passed an explicit named Durable Object id to
3004
3134
  * `ctx.facets.get()` — see {@link _cf_resolveSubAgent}. No
3005
3135
  * `setName()` call or `__ps_name` storage write is needed; the
3006
- * facet's name survives cold wake automatically because the
3007
- * factory re-runs and `idFromName` is deterministic.
3136
+ * facet's name survives cold wake automatically because the factory
3137
+ * re-runs and `idFromName` is deterministic.
3008
3138
  *
3009
3139
  * @internal Called by {@link subAgent}.
3010
3140
  */
@@ -3045,26 +3175,33 @@ declare class Agent<
3045
3175
  name: string;
3046
3176
  }>;
3047
3177
  /**
3048
- * Resolve a typed RPC stub for this facet's **immediate** parent
3178
+ * Resolve a typed parent stub for this facet's **immediate** parent
3049
3179
  * agent.
3050
3180
  *
3051
3181
  * Symmetric with `subAgent(Cls, name)`: while `subAgent` opens a
3052
3182
  * stub from parent to child, `parentAgent` opens one from child
3053
3183
  * to parent. Pass the direct parent's class reference — the
3054
3184
  * framework verifies it matches the last entry of
3055
- * `this.parentPath` at runtime, then looks up `env[Cls.name]` to
3056
- * find the namespace binding.
3185
+ * `this.parentPath` at runtime. If the parent is a top-level
3186
+ * Durable Object, the framework returns the normal namespace stub.
3187
+ * If the parent is itself a facet, the framework returns a bridge
3188
+ * proxy that routes method calls through the root/supervisor and
3189
+ * then down the recorded facet path.
3057
3190
  *
3058
3191
  * `this.parentPath` is root-first, so the direct parent is the
3059
3192
  * **last** entry: `this.parentPath.at(-1)`. For grandparents and
3060
3193
  * further ancestors, iterate `this.parentPath` and use
3061
3194
  * `getAgentByName(env.X, this.parentPath[i].name)` directly.
3062
3195
  *
3063
- * Assumes the standard "binding name matches class name" convention.
3064
- * If your `wrangler.jsonc` binds the parent under a different name
3065
- * (e.g. `{ class_name: "Inbox", name: "MY_INBOX" }`), call
3066
- * `getAgentByName(env.MY_INBOX, this.parentPath.at(-1)!.name)`
3067
- * directly instead.
3196
+ * For top-level parents, the framework first checks `env[Cls.name]`,
3197
+ * then falls back to the Worker `exports` object. This supports
3198
+ * custom binding names as long as the parent class is exported under
3199
+ * its class name.
3200
+ *
3201
+ * Facet-parent stubs route normal HTTP `.fetch()` calls through the
3202
+ * same root bridge as RPC methods. WebSocket upgrade requests are
3203
+ * not supported yet because WebSocket handles cannot be serialized
3204
+ * over RPC.
3068
3205
  *
3069
3206
  * @experimental The API surface may change before stabilizing.
3070
3207
  *
@@ -3072,7 +3209,8 @@ declare class Agent<
3072
3209
  * @throws If `Cls.name` doesn't match the recorded direct-parent
3073
3210
  * class (guards against accidentally reaching the wrong
3074
3211
  * DO, especially in nested Root → Mid → Leaf chains).
3075
- * @throws If no env binding named `Cls.name` is found.
3212
+ * @throws If no namespace is found for a top-level parent, or no
3213
+ * root namespace is available for a facet parent bridge.
3076
3214
  *
3077
3215
  * @example
3078
3216
  * ```ts
@@ -3088,6 +3226,10 @@ declare class Agent<
3088
3226
  parentAgent<T extends Agent>(
3089
3227
  cls: SubAgentClass<T>
3090
3228
  ): Promise<DurableObjectStub<T>>;
3229
+ private _cf_getTopLevelNamespaceByClassName;
3230
+ private _cf_asDurableObjectNamespace;
3231
+ private _cf_parentAgentFacetProxy;
3232
+ private _cf_isWebSocketUpgradeRequest;
3091
3233
  /**
3092
3234
  * Get or create a named sub-agent — a child Durable Object (facet)
3093
3235
  * with its own isolated SQLite storage running on the same machine.
@@ -3997,95 +4139,102 @@ type AgentToolEventState = {
3997
4139
  };
3998
4140
  //#endregion
3999
4141
  export {
4000
- unstable_callable as $,
4001
- FiberContext as A,
4002
- McpClientOptions as At,
4003
- ScheduleCriteria as B,
4142
+ SubAgentStub as $,
4143
+ EmailSendBinding as A,
4144
+ McpAuthContext as At,
4145
+ QueueItem as B,
4146
+ SubAgentPathMatch as Bt,
4004
4147
  AgentStaticOptions as C,
4005
- McpAuthContext as Ct,
4148
+ ElicitRequest$1 as Ct,
4006
4149
  DEFAULT_AGENT_STATIC_OPTIONS as D,
4007
- WorkerTransportOptions as Dt,
4150
+ CreateMcpHandlerOptions as Dt,
4008
4151
  ConnectionContext$1 as E,
4009
- WorkerTransport as Et,
4010
- QueueItem as F,
4011
- parseSubAgentPath as Ft,
4012
- SubAgentClass as G,
4013
- SqlError as H,
4014
- RPCRequest as I,
4015
- routeSubAgentRequest as It,
4016
- callable as J,
4017
- SubAgentStub as K,
4018
- RPCResponse as L,
4019
- MCPServer as M,
4020
- SUB_PREFIX as Mt,
4021
- MCPServerMessage as N,
4022
- SubAgentPathMatch as Nt,
4023
- EmailRoutingOptions as O,
4024
- SSEEdgeClientTransport as Ot,
4025
- MCPServersState as P,
4026
- getSubAgentByName as Pt,
4027
- routeAgentRequest as Q,
4028
- RoutingRetryOptions as R,
4152
+ McpAgent as Et,
4153
+ FiberStatus as F,
4154
+ SSEEdgeClientTransport as Ft,
4155
+ ScheduleCriteria as G,
4156
+ RPCResponse as H,
4157
+ parseSubAgentPath as Ht,
4158
+ ListFibersOptions as I,
4159
+ StreamableHTTPEdgeClientTransport as It,
4160
+ StartFiberOptions as J,
4161
+ SendEmailOptions as K,
4162
+ MCPServer as L,
4163
+ McpClientOptions as Lt,
4164
+ FiberInspection as M,
4165
+ TransportState as Mt,
4166
+ FiberRecoveryContext as N,
4167
+ WorkerTransport as Nt,
4168
+ DeleteFibersOptions as O,
4169
+ createMcpHandler as Ot,
4170
+ FiberRecoveryResult as P,
4171
+ WorkerTransportOptions as Pt,
4172
+ SubAgentClass as Q,
4173
+ MCPServerMessage as R,
4174
+ TransportType as Rt,
4029
4175
  AgentOptions as S,
4030
- experimental_createMcpHandler as St,
4176
+ RPC_DO_PREFIX as St,
4031
4177
  Connection$1 as T,
4032
- TransportState as Tt,
4033
- StateUpdateMessage as U,
4034
- SendEmailOptions as V,
4035
- StreamingResponse as W,
4036
- getCurrentAgent as X,
4037
- getAgentByName as Y,
4038
- routeAgentEmail as Z,
4178
+ ElicitResult$1 as Tt,
4179
+ RoutingRetryOptions as U,
4180
+ routeSubAgentRequest as Ut,
4181
+ RPCRequest as V,
4182
+ getSubAgentByName as Vt,
4183
+ Schedule as W,
4184
+ StateUpdateMessage as X,
4185
+ StartFiberResult as Y,
4186
+ StreamingResponse as Z,
4039
4187
  AddRpcMcpServerOptions as _,
4040
- ElicitRequestSchema$1 as _t,
4188
+ getNamespacedData as _t,
4041
4189
  AgentToolEventState as a,
4042
- MCPDiscoverResult as at,
4190
+ routeAgentRequest as at,
4043
4191
  AgentGetOptions as b,
4044
- CreateMcpHandlerOptions as bt,
4192
+ RPCServerTransport as bt,
4045
4193
  AgentToolRunInspection as c,
4046
- MCPServerOptions as ct,
4194
+ MCPClientManagerOptions as ct,
4047
4195
  AgentToolStoredChunk as d,
4048
- RPCClientTransport as dt,
4049
- MCPClientManager as et,
4196
+ MCPConnectionResult as dt,
4197
+ WSMessage$1 as et,
4050
4198
  AgentToolTerminalStatus as f,
4051
- RPCClientTransportOptions as ft,
4199
+ MCPDiscoverResult as ft,
4052
4200
  AddMcpServerOptions as g,
4053
- ElicitRequest$1 as gt,
4201
+ RegisterServerOptions as gt,
4054
4202
  RunAgentToolResult as h,
4055
- RPC_DO_PREFIX as ht,
4203
+ MCPServerOptions as ht,
4056
4204
  AgentToolEventMessage as i,
4057
- MCPConnectionResult as it,
4058
- FiberRecoveryContext as j,
4059
- TransportType as jt,
4060
- EmailSendBinding as k,
4061
- StreamableHTTPEdgeClientTransport as kt,
4205
+ routeAgentEmail as it,
4206
+ FiberContext as j,
4207
+ getMcpAuthContext as jt,
4208
+ EmailRoutingOptions as k,
4209
+ experimental_createMcpHandler as kt,
4062
4210
  AgentToolRunState as l,
4063
- RegisterServerOptions as lt,
4211
+ MCPClientOAuthCallbackConfig as lt,
4064
4212
  RunAgentToolOptions as m,
4065
- RPCServerTransportOptions as mt,
4213
+ MCPServerFilter as mt,
4066
4214
  AgentToolDisplayMetadata as n,
4067
- MCPClientOAuthCallbackConfig as nt,
4215
+ getAgentByName as nt,
4068
4216
  AgentToolLifecycleResult as o,
4069
- MCPOAuthCallbackResult as ot,
4217
+ unstable_callable as ot,
4070
4218
  ChatCapableAgentClass as p,
4071
- RPCServerTransport as pt,
4072
- WSMessage$1 as q,
4219
+ MCPOAuthCallbackResult as pt,
4220
+ SqlError as q,
4073
4221
  AgentToolEvent as r,
4074
- MCPClientOAuthResult as rt,
4222
+ getCurrentAgent as rt,
4075
4223
  AgentToolRunInfo as s,
4076
- MCPServerFilter as st,
4224
+ MCPClientManager as st,
4077
4225
  AgentToolChildAdapter as t,
4078
- MCPClientManagerOptions as tt,
4226
+ callable as tt,
4079
4227
  AgentToolRunStatus as u,
4080
- getNamespacedData as ut,
4228
+ MCPClientOAuthResult as ut,
4081
4229
  Agent as v,
4082
- ElicitResult$1 as vt,
4230
+ RPCClientTransport as vt,
4083
4231
  CallableMetadata as w,
4084
- getMcpAuthContext as wt,
4232
+ ElicitRequestSchema$1 as wt,
4085
4233
  AgentNamespace as x,
4086
- createMcpHandler as xt,
4234
+ RPCServerTransportOptions as xt,
4087
4235
  AgentContext as y,
4088
- McpAgent as yt,
4089
- Schedule as z
4236
+ RPCClientTransportOptions as yt,
4237
+ MCPServersState as z,
4238
+ SUB_PREFIX as zt
4090
4239
  };
4091
- //# sourceMappingURL=agent-tool-types-CM_50fcV.d.ts.map
4240
+ //# sourceMappingURL=agent-tool-types-Dn9n-3SI.d.ts.map
@@ -14,7 +14,7 @@ import {
14
14
  s as AgentToolRunInfo,
15
15
  t as AgentToolChildAdapter,
16
16
  u as AgentToolRunStatus
17
- } from "./agent-tool-types-CM_50fcV.js";
17
+ } from "./agent-tool-types-Dn9n-3SI.js";
18
18
  export {
19
19
  AgentToolChildAdapter,
20
20
  AgentToolDisplayMetadata,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  a as AgentToolEventState,
3
3
  i as AgentToolEventMessage
4
- } from "./agent-tool-types-CM_50fcV.js";
4
+ } from "./agent-tool-types-Dn9n-3SI.js";
5
5
 
6
6
  //#region src/chat/agent-tools.d.ts
7
7
  declare function createAgentToolEventState(): AgentToolEventState;
@@ -11,4 +11,4 @@ declare function applyAgentToolEvent(
11
11
  ): AgentToolEventState;
12
12
  //#endregion
13
13
  export { createAgentToolEventState as n, applyAgentToolEvent as t };
14
- //# sourceMappingURL=agent-tools-BylX6WXG.d.ts.map
14
+ //# sourceMappingURL=agent-tools-B1ttU-pq.d.ts.map