agents 0.0.0-e48e5f9 → 0.0.0-e75ec71

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 (76) hide show
  1. package/README.md +234 -6
  2. package/dist/ai-chat-agent.d.ts +20 -18
  3. package/dist/ai-chat-agent.js +532 -260
  4. package/dist/ai-chat-agent.js.map +1 -1
  5. package/dist/ai-chat-v5-migration-DBHGW4Hv.js +155 -0
  6. package/dist/ai-chat-v5-migration-DBHGW4Hv.js.map +1 -0
  7. package/dist/ai-chat-v5-migration.d.ts +155 -0
  8. package/dist/ai-chat-v5-migration.js +3 -0
  9. package/dist/ai-react.d.ts +73 -85
  10. package/dist/ai-react.js +261 -199
  11. package/dist/ai-react.js.map +1 -1
  12. package/dist/ai-types-B3aQaFv3.js +20 -0
  13. package/dist/ai-types-B3aQaFv3.js.map +1 -0
  14. package/dist/ai-types-D5YoPrBZ.d.ts +95 -0
  15. package/dist/ai-types.d.ts +6 -74
  16. package/dist/ai-types.js +3 -1
  17. package/dist/client-9Ld2_lnt.js +786 -0
  18. package/dist/client-9Ld2_lnt.js.map +1 -0
  19. package/dist/client-BfiZ3HQd.js +117 -0
  20. package/dist/client-BfiZ3HQd.js.map +1 -0
  21. package/dist/client-CbWe9FBd.d.ts +104 -0
  22. package/dist/client-CtM-Lpn3.d.ts +5314 -0
  23. package/dist/client.d.ts +11 -92
  24. package/dist/client.js +4 -11
  25. package/dist/codemode/ai.d.ts +27 -0
  26. package/dist/codemode/ai.js +151 -0
  27. package/dist/codemode/ai.js.map +1 -0
  28. package/dist/do-oauth-client-provider-CswoD5Lu.js +93 -0
  29. package/dist/do-oauth-client-provider-CswoD5Lu.js.map +1 -0
  30. package/dist/do-oauth-client-provider-DGc5pP0l.d.ts +55 -0
  31. package/dist/{index-BIJvkfYt.d.ts → index-DgMq4s2H.d.ts} +100 -154
  32. package/dist/index-DhJCaDWd.d.ts +58 -0
  33. package/dist/index.d.ts +69 -38
  34. package/dist/index.js +7 -28
  35. package/dist/mcp/client.d.ts +4 -1055
  36. package/dist/mcp/client.js +3 -9
  37. package/dist/mcp/do-oauth-client-provider.d.ts +2 -41
  38. package/dist/mcp/do-oauth-client-provider.js +3 -7
  39. package/dist/mcp/index.d.ts +150 -81
  40. package/dist/mcp/index.js +1338 -770
  41. package/dist/mcp/index.js.map +1 -1
  42. package/dist/mcp/x402.d.ts +34 -0
  43. package/dist/mcp/x402.js +194 -0
  44. package/dist/mcp/x402.js.map +1 -0
  45. package/dist/mcp-Dw5vDrY8.d.ts +61 -0
  46. package/dist/observability/index.d.ts +3 -12
  47. package/dist/observability/index.js +7 -10
  48. package/dist/react-Cr4RjXOP.d.ts +115 -0
  49. package/dist/react.d.ts +10 -119
  50. package/dist/react.js +183 -110
  51. package/dist/react.js.map +1 -1
  52. package/dist/schedule.d.ts +91 -14
  53. package/dist/schedule.js +46 -21
  54. package/dist/schedule.js.map +1 -1
  55. package/dist/serializable-CymX8ovI.d.ts +39 -0
  56. package/dist/serializable.d.ts +7 -32
  57. package/dist/serializable.js +1 -1
  58. package/dist/src-Dz0H9hSU.js +1200 -0
  59. package/dist/src-Dz0H9hSU.js.map +1 -0
  60. package/package.json +46 -12
  61. package/dist/ai-types.js.map +0 -1
  62. package/dist/chunk-5YIRLLUX.js +0 -1264
  63. package/dist/chunk-5YIRLLUX.js.map +0 -1
  64. package/dist/chunk-KUH345EY.js +0 -116
  65. package/dist/chunk-KUH345EY.js.map +0 -1
  66. package/dist/chunk-MW5BQ2FW.js +0 -469
  67. package/dist/chunk-MW5BQ2FW.js.map +0 -1
  68. package/dist/chunk-PVQZBKN7.js +0 -106
  69. package/dist/chunk-PVQZBKN7.js.map +0 -1
  70. package/dist/client.js.map +0 -1
  71. package/dist/index.js.map +0 -1
  72. package/dist/mcp/client.js.map +0 -1
  73. package/dist/mcp/do-oauth-client-provider.js.map +0 -1
  74. package/dist/observability/index.js.map +0 -1
  75. package/dist/serializable.js.map +0 -1
  76. package/src/index.ts +0 -1878
@@ -1,87 +1,28 @@
1
+ import {
2
+ a as MCPConnectionState,
3
+ t as MCPClientManager,
4
+ u as TransportType
5
+ } from "./client-CtM-Lpn3.js";
6
+ import { t as Observability } from "./index-DhJCaDWd.js";
7
+ import { n as MessageType } from "./ai-types-D5YoPrBZ.js";
8
+ import {
9
+ Connection,
10
+ Connection as Connection$1,
11
+ ConnectionContext,
12
+ PartyServerOptions,
13
+ Server,
14
+ WSMessage
15
+ } from "partyserver";
1
16
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
2
17
  import {
3
- ServerCapabilities,
4
- Tool,
5
18
  Prompt,
6
- Resource
19
+ Resource,
20
+ ServerCapabilities,
21
+ Tool
7
22
  } from "@modelcontextprotocol/sdk/types.js";
8
- import { Server, Connection, PartyServerOptions } from "partyserver";
9
- import { MCPClientManager } from "./mcp/client.js";
10
- import { Message } from "ai";
23
+ import { env } from "cloudflare:workers";
11
24
 
12
- type BaseEvent<
13
- T extends string,
14
- Payload extends Record<string, unknown> = {}
15
- > = {
16
- type: T;
17
- /**
18
- * The unique identifier for the event
19
- */
20
- id: string;
21
- /**
22
- * The message to display in the logs for this event, should the implementation choose to display
23
- * a human-readable message.
24
- */
25
- displayMessage: string;
26
- /**
27
- * The payload of the event
28
- */
29
- payload: Payload;
30
- /**
31
- * The timestamp of the event in milliseconds since epoch
32
- */
33
- timestamp: number;
34
- };
35
- /**
36
- * The type of events that can be emitted by an Agent
37
- */
38
- type ObservabilityEvent =
39
- | BaseEvent<
40
- "state:update",
41
- {
42
- state: unknown;
43
- previousState: unknown;
44
- }
45
- >
46
- | BaseEvent<
47
- "rpc",
48
- {
49
- method: string;
50
- args: unknown[];
51
- streaming?: boolean;
52
- success: boolean;
53
- }
54
- >
55
- | BaseEvent<
56
- "message:request" | "message:response",
57
- {
58
- message: Message[];
59
- }
60
- >
61
- | BaseEvent<"message:clear">
62
- | BaseEvent<
63
- "schedule:create" | "schedule:execute" | "schedule:cancel",
64
- Schedule<unknown>
65
- >
66
- | BaseEvent<"destroy">
67
- | BaseEvent<
68
- "connect",
69
- {
70
- connectionId: string;
71
- }
72
- >;
73
- interface Observability {
74
- /**
75
- * Emit an event for the Agent's observability implementation to handle.
76
- * @param event - The event to emit
77
- * @param ctx - The execution context of the invocation
78
- */
79
- emit(event: ObservabilityEvent, ctx: DurableObjectState): void;
80
- }
81
- /**
82
- * A generic observability implementation that logs events to the console.
83
- */
84
- declare const genericObservability: Observability;
25
+ //#region src/index.d.ts
85
26
 
86
27
  /**
87
28
  * RPC request message from client
@@ -96,14 +37,14 @@ type RPCRequest = {
96
37
  * State update message from client
97
38
  */
98
39
  type StateUpdateMessage = {
99
- type: "cf_agent_state";
40
+ type: MessageType.CF_AGENT_STATE;
100
41
  state: unknown;
101
42
  };
102
43
  /**
103
44
  * RPC response message to client
104
45
  */
105
46
  type RPCResponse = {
106
- type: "rpc";
47
+ type: MessageType.RPC;
107
48
  id: string;
108
49
  } & (
109
50
  | {
@@ -134,15 +75,21 @@ type CallableMetadata = {
134
75
  * Decorator that marks a method as callable by clients
135
76
  * @param metadata Optional metadata about the callable method
136
77
  */
137
- declare function unstable_callable(
78
+ declare function callable(
138
79
  metadata?: CallableMetadata
139
80
  ): <This, Args extends unknown[], Return>(
140
81
  target: (this: This, ...args: Args) => Return,
141
82
  context: ClassMethodDecoratorContext
142
83
  ) => (this: This, ...args: Args) => Return;
143
- type QueueItem<T = string> = {
84
+ /**
85
+ * Decorator that marks a method as callable by clients
86
+ * @deprecated this has been renamed to callable, and unstable_callable will be removed in the next major version
87
+ * @param metadata Optional metadata about the callable method
88
+ */
89
+ declare const unstable_callable: (metadata?: CallableMetadata) => void;
90
+ type QueueItem<T$1 = string> = {
144
91
  id: string;
145
- payload: T;
92
+ payload: T$1;
146
93
  callback: keyof Agent<unknown>;
147
94
  created_at: number;
148
95
  };
@@ -150,13 +97,13 @@ type QueueItem<T = string> = {
150
97
  * Represents a scheduled task within an Agent
151
98
  * @template T Type of the payload data
152
99
  */
153
- type Schedule<T = string> = {
100
+ type Schedule<T$1 = string> = {
154
101
  /** Unique identifier for the schedule */
155
102
  id: string;
156
103
  /** Name of the method to be called */
157
104
  callback: string;
158
105
  /** Data to be passed to the callback */
159
- payload: T;
106
+ payload: T$1;
160
107
  } & (
161
108
  | {
162
109
  /** Type of schedule for one-time execution at a specific time */
@@ -185,7 +132,7 @@ type Schedule<T = string> = {
185
132
  * MCP Server state update message from server -> Client
186
133
  */
187
134
  type MCPServerMessage = {
188
- type: "cf_agent_mcp_servers";
135
+ type: MessageType.CF_AGENT_MCP_SERVERS;
189
136
  mcp: MCPServersState;
190
137
  };
191
138
  type MCPServersState = {
@@ -200,14 +147,14 @@ type MCPServer = {
200
147
  name: string;
201
148
  server_url: string;
202
149
  auth_url: string | null;
203
- state: "authenticating" | "connecting" | "ready" | "discovering" | "failed";
150
+ state: MCPConnectionState;
204
151
  instructions: string | null;
205
152
  capabilities: ServerCapabilities | null;
206
153
  };
207
154
  declare function getCurrentAgent<
208
- T extends Agent<unknown, unknown> = Agent<unknown, unknown>
155
+ T$1 extends Agent<unknown, unknown> = Agent<unknown, unknown>
209
156
  >(): {
210
- agent: T | undefined;
157
+ agent: T$1 | undefined;
211
158
  connection: Connection | undefined;
212
159
  request: Request | undefined;
213
160
  email: AgentEmail | undefined;
@@ -217,10 +164,16 @@ declare function getCurrentAgent<
217
164
  * @template Env Environment type containing bindings
218
165
  * @template State State type to store within the Agent
219
166
  */
220
- declare class Agent<Env, State = unknown> extends Server<Env> {
167
+ declare class Agent<
168
+ Env = typeof env,
169
+ State = unknown,
170
+ Props extends Record<string, unknown> = Record<string, unknown>
171
+ > extends Server<Env, Props> {
221
172
  private _state;
173
+ private _disposables;
174
+ private _mcpStateRestored;
222
175
  private _ParentClass;
223
- mcp: MCPClientManager;
176
+ readonly mcp: MCPClientManager;
224
177
  /**
225
178
  * Initial state for the Agent
226
179
  * Override to provide default state values
@@ -394,58 +347,44 @@ declare class Agent<Env, State = unknown> extends Server<Env> {
394
347
  * @returns A map of method names to their metadata
395
348
  */
396
349
  private _isCallable;
350
+ private _ensureMcpStateRestored;
397
351
  /**
398
352
  * Connect to a new MCP Server
399
353
  *
354
+ * @param serverName Name of the MCP server
400
355
  * @param url MCP Server SSE URL
401
- * @param callbackHost Base host for the agent, used for the redirect URI.
356
+ * @param callbackHost Base host for the agent, used for the redirect URI. If not provided, will be derived from the current request.
402
357
  * @param agentsPrefix agents routing prefix if not using `agents`
403
- * @param options MCP client and transport (header) options
358
+ * @param options MCP client and transport options
404
359
  * @returns authUrl
405
360
  */
406
361
  addMcpServer(
407
362
  serverName: string,
408
363
  url: string,
409
- callbackHost: string,
364
+ callbackHost?: string,
410
365
  agentsPrefix?: string,
411
366
  options?: {
412
367
  client?: ConstructorParameters<typeof Client>[1];
413
- transport?: {
414
- headers: HeadersInit;
415
- };
416
- }
417
- ): Promise<{
418
- id: string;
419
- authUrl: string | undefined;
420
- }>;
421
- _connectToMcpServerInternal(
422
- _serverName: string,
423
- url: string,
424
- callbackUrl: string,
425
- options?: {
426
- client?: ConstructorParameters<typeof Client>[1];
427
- /**
428
- * We don't expose the normal set of transport options because:
429
- * 1) we can't serialize things like the auth provider or a fetch function into the DB for reconnection purposes
430
- * 2) We probably want these options to be agnostic to the transport type (SSE vs Streamable)
431
- *
432
- * This has the limitation that you can't override fetch, but I think headers should handle nearly all cases needed (i.e. non-standard bearer auth).
433
- */
434
368
  transport?: {
435
369
  headers?: HeadersInit;
370
+ type?: TransportType;
436
371
  };
437
- },
438
- reconnect?: {
439
- id: string;
440
- oauthClientId?: string;
441
372
  }
442
373
  ): Promise<{
443
374
  id: string;
444
375
  authUrl: string | undefined;
445
- clientId: string | undefined;
446
376
  }>;
377
+ private _connectToMcpServerInternal;
447
378
  removeMcpServer(id: string): Promise<void>;
448
379
  getMcpServers(): MCPServersState;
380
+ private broadcastMcpServers;
381
+ /**
382
+ * Handle OAuth callback response using MCPClientManager configuration
383
+ * @param result OAuth callback result
384
+ * @param request The original request (needed for base URL)
385
+ * @returns Response for the OAuth callback
386
+ */
387
+ private handleOAuthCallbackResponse;
449
388
  }
450
389
  /**
451
390
  * Namespace for creating Agent instances
@@ -553,14 +492,19 @@ type EmailSendOptions = {
553
492
  * @param options Options for Agent creation
554
493
  * @returns Promise resolving to an Agent instance stub
555
494
  */
556
- declare function getAgentByName<Env, T extends Agent<Env>>(
557
- namespace: AgentNamespace<T>,
495
+ declare function getAgentByName<
496
+ Env,
497
+ T$1 extends Agent<Env>,
498
+ Props extends Record<string, unknown> = Record<string, unknown>
499
+ >(
500
+ namespace: AgentNamespace<T$1>,
558
501
  name: string,
559
502
  options?: {
560
503
  jurisdiction?: DurableObjectJurisdiction;
561
504
  locationHint?: DurableObjectLocationHint;
505
+ props?: Props;
562
506
  }
563
- ): Promise<DurableObjectStub<T>>;
507
+ ): Promise<DurableObjectStub<T$1>>;
564
508
  /**
565
509
  * A wrapper for streaming responses in callable methods
566
510
  */
@@ -580,35 +524,37 @@ declare class StreamingResponse {
580
524
  */
581
525
  end(finalChunk?: unknown): void;
582
526
  }
583
-
527
+ //#endregion
584
528
  export {
585
- Agent as A,
586
- type CallableMetadata as C,
587
- type EmailResolver as E,
588
- type MCPServersState as M,
589
- type ObservabilityEvent as O,
590
- type QueueItem as Q,
591
- type RPCRequest as R,
592
- type StateUpdateMessage as S,
593
- type AgentContext as a,
594
- type Observability as b,
595
- type RPCResponse as c,
596
- type Schedule as d,
597
- type MCPServerMessage as e,
598
- type MCPServer as f,
599
- genericObservability as g,
600
- getCurrentAgent as h,
601
- type AgentNamespace as i,
602
- type AgentOptions as j,
603
- createHeaderBasedEmailResolver as k,
604
- createAddressBasedEmailResolver as l,
605
- createCatchAllEmailResolver as m,
606
- type EmailRoutingOptions as n,
607
- routeAgentEmail as o,
608
- type AgentEmail as p,
609
- type EmailSendOptions as q,
610
- routeAgentRequest as r,
611
- getAgentByName as s,
612
- StreamingResponse as t,
613
- unstable_callable as u
529
+ unstable_callable as A,
530
+ createAddressBasedEmailResolver as C,
531
+ getCurrentAgent as D,
532
+ getAgentByName as E,
533
+ routeAgentEmail as O,
534
+ callable as S,
535
+ createHeaderBasedEmailResolver as T,
536
+ RPCResponse as _,
537
+ AgentOptions as a,
538
+ StreamingResponse as b,
539
+ ConnectionContext as c,
540
+ EmailSendOptions as d,
541
+ MCPServer as f,
542
+ RPCRequest as g,
543
+ QueueItem as h,
544
+ AgentNamespace as i,
545
+ routeAgentRequest as k,
546
+ EmailResolver as l,
547
+ MCPServersState as m,
548
+ AgentContext as n,
549
+ CallableMetadata as o,
550
+ MCPServerMessage as p,
551
+ AgentEmail as r,
552
+ Connection$1 as s,
553
+ Agent as t,
554
+ EmailRoutingOptions as u,
555
+ Schedule as v,
556
+ createCatchAllEmailResolver as w,
557
+ WSMessage as x,
558
+ StateUpdateMessage as y
614
559
  };
560
+ //# sourceMappingURL=index-DgMq4s2H.d.ts.map
@@ -0,0 +1,58 @@
1
+ import { n as BaseEvent, t as MCPObservabilityEvent } from "./mcp-Dw5vDrY8.js";
2
+
3
+ //#region src/observability/agent.d.ts
4
+
5
+ /**
6
+ * Agent-specific observability events
7
+ * These track the lifecycle and operations of an Agent
8
+ */
9
+ type AgentObservabilityEvent =
10
+ | BaseEvent<"state:update", {}>
11
+ | BaseEvent<
12
+ "rpc",
13
+ {
14
+ method: string;
15
+ streaming?: boolean;
16
+ }
17
+ >
18
+ | BaseEvent<"message:request" | "message:response", {}>
19
+ | BaseEvent<"message:clear">
20
+ | BaseEvent<
21
+ "schedule:create" | "schedule:execute" | "schedule:cancel",
22
+ {
23
+ callback: string;
24
+ id: string;
25
+ }
26
+ >
27
+ | BaseEvent<"destroy">
28
+ | BaseEvent<
29
+ "connect",
30
+ {
31
+ connectionId: string;
32
+ }
33
+ >;
34
+ //#endregion
35
+ //#region src/observability/index.d.ts
36
+ /**
37
+ * Union of all observability event types from different domains
38
+ */
39
+ type ObservabilityEvent = AgentObservabilityEvent | MCPObservabilityEvent;
40
+ interface Observability {
41
+ /**
42
+ * Emit an event for the Agent's observability implementation to handle.
43
+ * @param event - The event to emit
44
+ * @param ctx - The execution context of the invocation (optional)
45
+ */
46
+ emit(event: ObservabilityEvent, ctx?: DurableObjectState): void;
47
+ }
48
+ /**
49
+ * A generic observability implementation that logs events to the console.
50
+ */
51
+ declare const genericObservability: Observability;
52
+ //#endregion
53
+ export {
54
+ ObservabilityEvent as n,
55
+ genericObservability as r,
56
+ Observability as t
57
+ };
58
+ //# sourceMappingURL=index-DhJCaDWd.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,39 +1,70 @@
1
- import "@modelcontextprotocol/sdk/client/index.js";
2
- import "@modelcontextprotocol/sdk/types.js";
3
- export { Connection, ConnectionContext, WSMessage } from "partyserver";
4
- import "./mcp/client.js";
5
- export {
6
- A as Agent,
7
- a as AgentContext,
8
- p as AgentEmail,
9
- i as AgentNamespace,
10
- j as AgentOptions,
11
- C as CallableMetadata,
12
- E as EmailResolver,
13
- n as EmailRoutingOptions,
14
- q as EmailSendOptions,
1
+ import { u as TransportType } from "./client-CtM-Lpn3.js";
2
+ import "./mcp-Dw5vDrY8.js";
3
+ import "./do-oauth-client-provider-DGc5pP0l.js";
4
+ import "./index-DhJCaDWd.js";
5
+ import "./ai-types-D5YoPrBZ.js";
6
+ import {
7
+ A as unstable_callable,
8
+ C as createAddressBasedEmailResolver,
9
+ D as getCurrentAgent,
10
+ E as getAgentByName,
11
+ O as routeAgentEmail,
12
+ S as callable,
13
+ T as createHeaderBasedEmailResolver,
14
+ _ as RPCResponse,
15
+ a as AgentOptions,
16
+ b as StreamingResponse,
17
+ c as ConnectionContext,
18
+ d as EmailSendOptions,
15
19
  f as MCPServer,
16
- e as MCPServerMessage,
17
- M as MCPServersState,
18
- Q as QueueItem,
19
- R as RPCRequest,
20
- c as RPCResponse,
21
- d as Schedule,
22
- S as StateUpdateMessage,
23
- t as StreamingResponse,
24
- l as createAddressBasedEmailResolver,
25
- m as createCatchAllEmailResolver,
26
- k as createHeaderBasedEmailResolver,
27
- s as getAgentByName,
28
- h as getCurrentAgent,
29
- o as routeAgentEmail,
30
- r as routeAgentRequest,
31
- u as unstable_callable
32
- } from "./index-BIJvkfYt.js";
33
- import "zod";
34
- import "@modelcontextprotocol/sdk/client/sse.js";
35
- import "@modelcontextprotocol/sdk/shared/protocol.js";
36
- import "ai";
37
- import "./mcp/do-oauth-client-provider.js";
38
- import "@modelcontextprotocol/sdk/client/auth.js";
39
- import "@modelcontextprotocol/sdk/shared/auth.js";
20
+ g as RPCRequest,
21
+ h as QueueItem,
22
+ i as AgentNamespace,
23
+ k as routeAgentRequest,
24
+ l as EmailResolver,
25
+ m as MCPServersState,
26
+ n as AgentContext,
27
+ o as CallableMetadata,
28
+ p as MCPServerMessage,
29
+ r as AgentEmail,
30
+ s as Connection,
31
+ t as Agent,
32
+ u as EmailRoutingOptions,
33
+ v as Schedule,
34
+ w as createCatchAllEmailResolver,
35
+ x as WSMessage,
36
+ y as StateUpdateMessage
37
+ } from "./index-DgMq4s2H.js";
38
+ export {
39
+ Agent,
40
+ AgentContext,
41
+ AgentEmail,
42
+ AgentNamespace,
43
+ AgentOptions,
44
+ CallableMetadata,
45
+ Connection,
46
+ ConnectionContext,
47
+ EmailResolver,
48
+ EmailRoutingOptions,
49
+ EmailSendOptions,
50
+ MCPServer,
51
+ MCPServerMessage,
52
+ MCPServersState,
53
+ QueueItem,
54
+ RPCRequest,
55
+ RPCResponse,
56
+ Schedule,
57
+ StateUpdateMessage,
58
+ StreamingResponse,
59
+ TransportType,
60
+ WSMessage,
61
+ callable,
62
+ createAddressBasedEmailResolver,
63
+ createCatchAllEmailResolver,
64
+ createHeaderBasedEmailResolver,
65
+ getAgentByName,
66
+ getCurrentAgent,
67
+ routeAgentEmail,
68
+ routeAgentRequest,
69
+ unstable_callable
70
+ };
package/dist/index.js CHANGED
@@ -1,28 +1,7 @@
1
- import {
2
- Agent,
3
- StreamingResponse,
4
- createAddressBasedEmailResolver,
5
- createCatchAllEmailResolver,
6
- createHeaderBasedEmailResolver,
7
- getAgentByName,
8
- getCurrentAgent,
9
- routeAgentEmail,
10
- routeAgentRequest,
11
- unstable_callable
12
- } from "./chunk-5YIRLLUX.js";
13
- import "./chunk-MW5BQ2FW.js";
14
- import "./chunk-PVQZBKN7.js";
15
- import "./chunk-KUH345EY.js";
16
- export {
17
- Agent,
18
- StreamingResponse,
19
- createAddressBasedEmailResolver,
20
- createCatchAllEmailResolver,
21
- createHeaderBasedEmailResolver,
22
- getAgentByName,
23
- getCurrentAgent,
24
- routeAgentEmail,
25
- routeAgentRequest,
26
- unstable_callable
27
- };
28
- //# sourceMappingURL=index.js.map
1
+ import "./ai-types-B3aQaFv3.js";
2
+ import "./client-BfiZ3HQd.js";
3
+ import "./client-9Ld2_lnt.js";
4
+ import "./do-oauth-client-provider-CswoD5Lu.js";
5
+ import { a as createCatchAllEmailResolver, c as getCurrentAgent, d as unstable_callable, i as createAddressBasedEmailResolver, l as routeAgentEmail, n as StreamingResponse, o as createHeaderBasedEmailResolver, r as callable, s as getAgentByName, t as Agent, u as routeAgentRequest } from "./src-Dz0H9hSU.js";
6
+
7
+ export { Agent, StreamingResponse, callable, createAddressBasedEmailResolver, createCatchAllEmailResolver, createHeaderBasedEmailResolver, getAgentByName, getCurrentAgent, routeAgentEmail, routeAgentRequest, unstable_callable };