agents 0.2.9 → 0.2.11

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 (94) hide show
  1. package/dist/ai-chat-agent.d.ts +15 -18
  2. package/dist/ai-chat-agent.js +544 -656
  3. package/dist/ai-chat-agent.js.map +1 -1
  4. package/dist/ai-chat-v5-migration-gdyLiTd8.js +155 -0
  5. package/dist/ai-chat-v5-migration-gdyLiTd8.js.map +1 -0
  6. package/dist/ai-chat-v5-migration.d.ts +7 -4
  7. package/dist/ai-chat-v5-migration.js +3 -20
  8. package/dist/ai-react.d.ts +14 -24
  9. package/dist/ai-react.js +257 -343
  10. package/dist/ai-react.js.map +1 -1
  11. package/dist/ai-types-B0GBFDwi.js +20 -0
  12. package/dist/ai-types-B0GBFDwi.js.map +1 -0
  13. package/dist/ai-types-BWW4umHY.d.ts +95 -0
  14. package/dist/ai-types.d.ts +6 -92
  15. package/dist/ai-types.js +3 -8
  16. package/dist/client-C-u-lCFT.d.ts +5311 -0
  17. package/dist/client-CmMi85Sj.d.ts +104 -0
  18. package/dist/client-WbaRgKYN.js +788 -0
  19. package/dist/client-WbaRgKYN.js.map +1 -0
  20. package/dist/client-zS-OCVJA.js +117 -0
  21. package/dist/client-zS-OCVJA.js.map +1 -0
  22. package/dist/client.d.ts +11 -92
  23. package/dist/client.js +4 -13
  24. package/dist/codemode/ai.d.ts +19 -17
  25. package/dist/codemode/ai.js +90 -5139
  26. package/dist/codemode/ai.js.map +1 -1
  27. package/dist/do-oauth-client-provider-B2jr6UNq.js +93 -0
  28. package/dist/do-oauth-client-provider-B2jr6UNq.js.map +1 -0
  29. package/dist/do-oauth-client-provider-CCwGwnrA.d.ts +55 -0
  30. package/dist/index-DWcUTPtX.d.ts +558 -0
  31. package/dist/index-W4JUkafc.d.ts +54 -0
  32. package/dist/index.d.ts +55 -542
  33. package/dist/index.js +7 -32
  34. package/dist/mcp/client.d.ts +4 -12
  35. package/dist/mcp/client.js +3 -10
  36. package/dist/mcp/do-oauth-client-provider.d.ts +2 -42
  37. package/dist/mcp/do-oauth-client-provider.js +3 -8
  38. package/dist/mcp/index.d.ts +72 -76
  39. package/dist/mcp/index.js +830 -1082
  40. package/dist/mcp/index.js.map +1 -1
  41. package/dist/mcp/x402.d.ts +22 -27
  42. package/dist/mcp/x402.js +186 -3187
  43. package/dist/mcp/x402.js.map +1 -1
  44. package/dist/{mcp-BH1fJeiU.d.ts → mcp-BEwaCsxO.d.ts} +6 -3
  45. package/dist/observability/index.d.ts +3 -34
  46. package/dist/observability/index.js +7 -12
  47. package/dist/react-B8BT6PYZ.d.ts +113 -0
  48. package/dist/react.d.ts +10 -127
  49. package/dist/react.js +173 -200
  50. package/dist/react.js.map +1 -1
  51. package/dist/schedule.d.ts +13 -10
  52. package/dist/schedule.js +43 -33
  53. package/dist/schedule.js.map +1 -1
  54. package/dist/serializable-gtr9YMhp.d.ts +34 -0
  55. package/dist/serializable.d.ts +7 -32
  56. package/dist/serializable.js +1 -1
  57. package/dist/src-C9xZ0CrH.js +1179 -0
  58. package/dist/src-C9xZ0CrH.js.map +1 -0
  59. package/package.json +9 -3
  60. package/dist/_esm-LV5FJ3HK.js +0 -3922
  61. package/dist/_esm-LV5FJ3HK.js.map +0 -1
  62. package/dist/ai-chat-v5-migration.js.map +0 -1
  63. package/dist/ai-types.js.map +0 -1
  64. package/dist/ccip-CMBYN64O.js +0 -15
  65. package/dist/ccip-CMBYN64O.js.map +0 -1
  66. package/dist/chunk-5Y6BEZDY.js +0 -276
  67. package/dist/chunk-5Y6BEZDY.js.map +0 -1
  68. package/dist/chunk-BER7KXUJ.js +0 -18
  69. package/dist/chunk-BER7KXUJ.js.map +0 -1
  70. package/dist/chunk-C2OEBJZ2.js +0 -113
  71. package/dist/chunk-C2OEBJZ2.js.map +0 -1
  72. package/dist/chunk-JJBFIGUC.js +0 -5202
  73. package/dist/chunk-JJBFIGUC.js.map +0 -1
  74. package/dist/chunk-PR4QN5HX.js +0 -43
  75. package/dist/chunk-PR4QN5HX.js.map +0 -1
  76. package/dist/chunk-QEVM4BVL.js +0 -116
  77. package/dist/chunk-QEVM4BVL.js.map +0 -1
  78. package/dist/chunk-TYAY6AU6.js +0 -159
  79. package/dist/chunk-TYAY6AU6.js.map +0 -1
  80. package/dist/chunk-UJVEAURM.js +0 -150
  81. package/dist/chunk-UJVEAURM.js.map +0 -1
  82. package/dist/chunk-XGMKNUJA.js +0 -1343
  83. package/dist/chunk-XGMKNUJA.js.map +0 -1
  84. package/dist/chunk-ZMMHNOMZ.js +0 -942
  85. package/dist/chunk-ZMMHNOMZ.js.map +0 -1
  86. package/dist/client-C8tswVoM.d.ts +0 -5248
  87. package/dist/client.js.map +0 -1
  88. package/dist/index.js.map +0 -1
  89. package/dist/mcp/client.js.map +0 -1
  90. package/dist/mcp/do-oauth-client-provider.js.map +0 -1
  91. package/dist/observability/index.js.map +0 -1
  92. package/dist/secp256k1-M22GZP2U.js +0 -2193
  93. package/dist/secp256k1-M22GZP2U.js.map +0 -1
  94. package/dist/serializable.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,550 +1,63 @@
1
- import { env } from "cloudflare:workers";
2
- import { Client } from "@modelcontextprotocol/sdk/client/index.js";
1
+ import { TransportType } from "./client-C-u-lCFT.js";
2
+ import "./mcp-BEwaCsxO.js";
3
+ import "./do-oauth-client-provider-CCwGwnrA.js";
4
+ import "./index-W4JUkafc.js";
5
+ import "./ai-types-BWW4umHY.js";
3
6
  import {
4
- ServerCapabilities,
5
- Tool,
6
- Prompt,
7
- Resource
8
- } from "@modelcontextprotocol/sdk/types.js";
9
- import { Server, Connection, PartyServerOptions } from "partyserver";
10
- export { Connection, ConnectionContext, WSMessage } from "partyserver";
11
- import {
12
- e as MCPClientManager,
13
- T as TransportType,
14
- f as MCPConnectionState
15
- } from "./client-C8tswVoM.js";
16
- import { Observability } from "./observability/index.js";
17
- import { MessageType } from "./ai-types.js";
18
- import "zod";
19
- import "@modelcontextprotocol/sdk/shared/protocol.js";
20
- import "ai";
21
- import "./mcp-BH1fJeiU.js";
22
- import "@modelcontextprotocol/sdk/client/sse.js";
23
- import "@modelcontextprotocol/sdk/client/streamableHttp.js";
24
- import "./mcp/do-oauth-client-provider.js";
25
- import "@modelcontextprotocol/sdk/client/auth.js";
26
- import "@modelcontextprotocol/sdk/shared/auth.js";
27
-
28
- /**
29
- * RPC request message from client
30
- */
31
- type RPCRequest = {
32
- type: "rpc";
33
- id: string;
34
- method: string;
35
- args: unknown[];
36
- };
37
- /**
38
- * State update message from client
39
- */
40
- type StateUpdateMessage = {
41
- type: MessageType.CF_AGENT_STATE;
42
- state: unknown;
43
- };
44
- /**
45
- * RPC response message to client
46
- */
47
- type RPCResponse = {
48
- type: MessageType.RPC;
49
- id: string;
50
- } & (
51
- | {
52
- success: true;
53
- result: unknown;
54
- done?: false;
55
- }
56
- | {
57
- success: true;
58
- result: unknown;
59
- done: true;
60
- }
61
- | {
62
- success: false;
63
- error: string;
64
- }
65
- );
66
- /**
67
- * Metadata for a callable method
68
- */
69
- type CallableMetadata = {
70
- /** Optional description of what the method does */
71
- description?: string;
72
- /** Whether the method supports streaming responses */
73
- streaming?: boolean;
74
- };
75
- /**
76
- * Decorator that marks a method as callable by clients
77
- * @param metadata Optional metadata about the callable method
78
- */
79
- declare function callable(
80
- metadata?: CallableMetadata
81
- ): <This, Args extends unknown[], Return>(
82
- target: (this: This, ...args: Args) => Return,
83
- context: ClassMethodDecoratorContext
84
- ) => (this: This, ...args: Args) => Return;
85
- /**
86
- * Decorator that marks a method as callable by clients
87
- * @deprecated this has been renamed to callable, and unstable_callable will be removed in the next major version
88
- * @param metadata Optional metadata about the callable method
89
- */
90
- declare const unstable_callable: (metadata?: CallableMetadata) => void;
91
- type QueueItem<T = string> = {
92
- id: string;
93
- payload: T;
94
- callback: keyof Agent<unknown>;
95
- created_at: number;
96
- };
97
- /**
98
- * Represents a scheduled task within an Agent
99
- * @template T Type of the payload data
100
- */
101
- type Schedule<T = string> = {
102
- /** Unique identifier for the schedule */
103
- id: string;
104
- /** Name of the method to be called */
105
- callback: string;
106
- /** Data to be passed to the callback */
107
- payload: T;
108
- } & (
109
- | {
110
- /** Type of schedule for one-time execution at a specific time */
111
- type: "scheduled";
112
- /** Timestamp when the task should execute */
113
- time: number;
114
- }
115
- | {
116
- /** Type of schedule for delayed execution */
117
- type: "delayed";
118
- /** Timestamp when the task should execute */
119
- time: number;
120
- /** Number of seconds to delay execution */
121
- delayInSeconds: number;
122
- }
123
- | {
124
- /** Type of schedule for recurring execution based on cron expression */
125
- type: "cron";
126
- /** Timestamp for the next execution */
127
- time: number;
128
- /** Cron expression defining the schedule */
129
- cron: string;
130
- }
131
- );
132
-
133
- /**
134
- * MCP Server state update message from server -> Client
135
- */
136
- type MCPServerMessage = {
137
- type: MessageType.CF_AGENT_MCP_SERVERS;
138
- mcp: MCPServersState;
139
- };
140
- type MCPServersState = {
141
- servers: {
142
- [id: string]: MCPServer;
143
- };
144
- tools: Tool[];
145
- prompts: Prompt[];
146
- resources: Resource[];
147
- };
148
- type MCPServer = {
149
- name: string;
150
- server_url: string;
151
- auth_url: string | null;
152
- state: MCPConnectionState;
153
- instructions: string | null;
154
- capabilities: ServerCapabilities | null;
155
- };
156
- declare function getCurrentAgent<
157
- T extends Agent<unknown, unknown> = Agent<unknown, unknown>
158
- >(): {
159
- agent: T | undefined;
160
- connection: Connection | undefined;
161
- request: Request | undefined;
162
- email: AgentEmail | undefined;
163
- };
164
- /**
165
- * Base class for creating Agent implementations
166
- * @template Env Environment type containing bindings
167
- * @template State State type to store within the Agent
168
- */
169
- declare class Agent<
170
- Env = typeof env,
171
- State = unknown,
172
- Props extends Record<string, unknown> = Record<string, unknown>
173
- > extends Server<Env, Props> {
174
- private _state;
175
- private _disposables;
176
- private _ParentClass;
177
- readonly mcp: MCPClientManager;
178
- /**
179
- * Initial state for the Agent
180
- * Override to provide default state values
181
- */
182
- initialState: State;
183
- /**
184
- * Current state of the Agent
185
- */
186
- get state(): State;
187
- /**
188
- * Agent configuration options
189
- */
190
- static options: {
191
- /** Whether the Agent should hibernate when inactive */
192
- hibernate: boolean;
193
- };
194
- /**
195
- * The observability implementation to use for the Agent
196
- */
197
- observability?: Observability;
198
- /**
199
- * Execute SQL queries against the Agent's database
200
- * @template T Type of the returned rows
201
- * @param strings SQL query template strings
202
- * @param values Values to be inserted into the query
203
- * @returns Array of query results
204
- */
205
- sql<T = Record<string, string | number | boolean | null>>(
206
- strings: TemplateStringsArray,
207
- ...values: (string | number | boolean | null)[]
208
- ): T[];
209
- constructor(ctx: AgentContext, env: Env);
210
- private _setStateInternal;
211
- /**
212
- * Update the Agent's state
213
- * @param state New state to set
214
- */
215
- setState(state: State): void;
216
- /**
217
- * Called when the Agent's state is updated
218
- * @param state Updated state
219
- * @param source Source of the state update ("server" or a client connection)
220
- */
221
- onStateUpdate(state: State | undefined, source: Connection | "server"): void;
222
- /**
223
- * Called when the Agent receives an email via routeAgentEmail()
224
- * Override this method to handle incoming emails
225
- * @param email Email message to process
226
- */
227
- _onEmail(email: AgentEmail): Promise<void>;
228
- /**
229
- * Reply to an email
230
- * @param email The email to reply to
231
- * @param options Options for the reply
232
- * @returns void
233
- */
234
- replyToEmail(
235
- email: AgentEmail,
236
- options: {
237
- fromName: string;
238
- subject?: string | undefined;
239
- body: string;
240
- contentType?: string;
241
- headers?: Record<string, string>;
242
- }
243
- ): Promise<void>;
244
- private _tryCatch;
245
- /**
246
- * Automatically wrap custom methods with agent context
247
- * This ensures getCurrentAgent() works in all custom methods without decorators
248
- */
249
- private _autoWrapCustomMethods;
250
- onError(connection: Connection, error: unknown): void | Promise<void>;
251
- onError(error: unknown): void | Promise<void>;
252
- /**
253
- * Render content (not implemented in base class)
254
- */
255
- render(): void;
256
- /**
257
- * Queue a task to be executed in the future
258
- * @param payload Payload to pass to the callback
259
- * @param callback Name of the method to call
260
- * @returns The ID of the queued task
261
- */
262
- queue<T = unknown>(callback: keyof this, payload: T): Promise<string>;
263
- private _flushingQueue;
264
- private _flushQueue;
265
- /**
266
- * Dequeue a task by ID
267
- * @param id ID of the task to dequeue
268
- */
269
- dequeue(id: string): Promise<void>;
270
- /**
271
- * Dequeue all tasks
272
- */
273
- dequeueAll(): Promise<void>;
274
- /**
275
- * Dequeue all tasks by callback
276
- * @param callback Name of the callback to dequeue
277
- */
278
- dequeueAllByCallback(callback: string): Promise<void>;
279
- /**
280
- * Get a queued task by ID
281
- * @param id ID of the task to get
282
- * @returns The task or undefined if not found
283
- */
284
- getQueue(id: string): Promise<QueueItem<string> | undefined>;
285
- /**
286
- * Get all queues by key and value
287
- * @param key Key to filter by
288
- * @param value Value to filter by
289
- * @returns Array of matching QueueItem objects
290
- */
291
- getQueues(key: string, value: string): Promise<QueueItem<string>[]>;
292
- /**
293
- * Schedule a task to be executed in the future
294
- * @template T Type of the payload data
295
- * @param when When to execute the task (Date, seconds delay, or cron expression)
296
- * @param callback Name of the method to call
297
- * @param payload Data to pass to the callback
298
- * @returns Schedule object representing the scheduled task
299
- */
300
- schedule<T = string>(
301
- when: Date | string | number,
302
- callback: keyof this,
303
- payload?: T
304
- ): Promise<Schedule<T>>;
305
- /**
306
- * Get a scheduled task by ID
307
- * @template T Type of the payload data
308
- * @param id ID of the scheduled task
309
- * @returns The Schedule object or undefined if not found
310
- */
311
- getSchedule<T = string>(id: string): Promise<Schedule<T> | undefined>;
312
- /**
313
- * Get scheduled tasks matching the given criteria
314
- * @template T Type of the payload data
315
- * @param criteria Criteria to filter schedules
316
- * @returns Array of matching Schedule objects
317
- */
318
- getSchedules<T = string>(criteria?: {
319
- id?: string;
320
- type?: "scheduled" | "delayed" | "cron";
321
- timeRange?: {
322
- start?: Date;
323
- end?: Date;
324
- };
325
- }): Schedule<T>[];
326
- /**
327
- * Cancel a scheduled task
328
- * @param id ID of the task to cancel
329
- * @returns true if the task was cancelled, false otherwise
330
- */
331
- cancelSchedule(id: string): Promise<boolean>;
332
- private _scheduleNextAlarm;
333
- /**
334
- * Method called when an alarm fires.
335
- * Executes any scheduled tasks that are due.
336
- *
337
- * @remarks
338
- * To schedule a task, please use the `this.schedule` method instead.
339
- * See {@link https://developers.cloudflare.com/agents/api-reference/schedule-tasks/}
340
- */
341
- readonly alarm: () => Promise<void>;
342
- /**
343
- * Destroy the Agent, removing all state and scheduled tasks
344
- */
345
- destroy(): Promise<void>;
346
- /**
347
- * Get all methods marked as callable on this Agent
348
- * @returns A map of method names to their metadata
349
- */
350
- private _isCallable;
351
- /**
352
- * Connect to a new MCP Server
353
- *
354
- * @param serverName Name of the MCP server
355
- * @param url MCP Server SSE URL
356
- * @param callbackHost Base host for the agent, used for the redirect URI. If not provided, will be derived from the current request.
357
- * @param agentsPrefix agents routing prefix if not using `agents`
358
- * @param options MCP client and transport options
359
- * @returns authUrl
360
- */
361
- addMcpServer(
362
- serverName: string,
363
- url: string,
364
- callbackHost?: string,
365
- agentsPrefix?: string,
366
- options?: {
367
- client?: ConstructorParameters<typeof Client>[1];
368
- transport?: {
369
- headers?: HeadersInit;
370
- type?: TransportType;
371
- };
372
- }
373
- ): Promise<{
374
- id: string;
375
- authUrl: string | undefined;
376
- }>;
377
- private _connectToMcpServerInternal;
378
- removeMcpServer(id: string): Promise<void>;
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;
388
- }
389
- /**
390
- * Namespace for creating Agent instances
391
- * @template Agentic Type of the Agent class
392
- */
393
- type AgentNamespace<Agentic extends Agent<unknown>> =
394
- DurableObjectNamespace<Agentic>;
395
- /**
396
- * Agent's durable context
397
- */
398
- type AgentContext = DurableObjectState;
399
- /**
400
- * Configuration options for Agent routing
401
- */
402
- type AgentOptions<Env> = PartyServerOptions<Env> & {
403
- /**
404
- * Whether to enable CORS for the Agent
405
- */
406
- cors?: boolean | HeadersInit | undefined;
407
- };
408
- /**
409
- * Route a request to the appropriate Agent
410
- * @param request Request to route
411
- * @param env Environment containing Agent bindings
412
- * @param options Routing options
413
- * @returns Response from the Agent or undefined if no route matched
414
- */
415
- declare function routeAgentRequest<Env>(
416
- request: Request,
417
- env: Env,
418
- options?: AgentOptions<Env>
419
- ): Promise<Response | null>;
420
- type EmailResolver<Env> = (
421
- email: ForwardableEmailMessage,
422
- env: Env
423
- ) => Promise<{
424
- agentName: string;
425
- agentId: string;
426
- } | null>;
427
- /**
428
- * Create a resolver that uses the message-id header to determine the agent to route the email to
429
- * @returns A function that resolves the agent to route the email to
430
- */
431
- declare function createHeaderBasedEmailResolver<Env>(): EmailResolver<Env>;
432
- /**
433
- * Create a resolver that uses the email address to determine the agent to route the email to
434
- * @param defaultAgentName The default agent name to use if the email address does not contain a sub-address
435
- * @returns A function that resolves the agent to route the email to
436
- */
437
- declare function createAddressBasedEmailResolver<Env>(
438
- defaultAgentName: string
439
- ): EmailResolver<Env>;
440
- /**
441
- * Create a resolver that uses the agentName and agentId to determine the agent to route the email to
442
- * @param agentName The name of the agent to route the email to
443
- * @param agentId The id of the agent to route the email to
444
- * @returns A function that resolves the agent to route the email to
445
- */
446
- declare function createCatchAllEmailResolver<Env>(
447
- agentName: string,
448
- agentId: string
449
- ): EmailResolver<Env>;
450
- type EmailRoutingOptions<Env> = AgentOptions<Env> & {
451
- resolver: EmailResolver<Env>;
452
- };
453
- /**
454
- * Route an email to the appropriate Agent
455
- * @param email The email to route
456
- * @param env The environment containing the Agent bindings
457
- * @param options The options for routing the email
458
- * @returns A promise that resolves when the email has been routed
459
- */
460
- declare function routeAgentEmail<Env>(
461
- email: ForwardableEmailMessage,
462
- env: Env,
463
- options: EmailRoutingOptions<Env>
464
- ): Promise<void>;
465
- type AgentEmail = {
466
- from: string;
467
- to: string;
468
- getRaw: () => Promise<Uint8Array>;
469
- headers: Headers;
470
- rawSize: number;
471
- setReject: (reason: string) => void;
472
- forward: (rcptTo: string, headers?: Headers) => Promise<void>;
473
- reply: (options: { from: string; to: string; raw: string }) => Promise<void>;
474
- };
475
- type EmailSendOptions = {
476
- to: string;
477
- subject: string;
478
- body: string;
479
- contentType?: string;
480
- headers?: Record<string, string>;
481
- includeRoutingHeaders?: boolean;
482
- agentName?: string;
483
- agentId?: string;
484
- domain?: string;
485
- };
486
- /**
487
- * Get or create an Agent by name
488
- * @template Env Environment type containing bindings
489
- * @template T Type of the Agent class
490
- * @param namespace Agent namespace
491
- * @param name Name of the Agent instance
492
- * @param options Options for Agent creation
493
- * @returns Promise resolving to an Agent instance stub
494
- */
495
- declare function getAgentByName<
496
- Env,
497
- T extends Agent<Env>,
498
- Props extends Record<string, unknown> = Record<string, unknown>
499
- >(
500
- namespace: AgentNamespace<T>,
501
- name: string,
502
- options?: {
503
- jurisdiction?: DurableObjectJurisdiction;
504
- locationHint?: DurableObjectLocationHint;
505
- props?: Props;
506
- }
507
- ): Promise<DurableObjectStub<T>>;
508
- /**
509
- * A wrapper for streaming responses in callable methods
510
- */
511
- declare class StreamingResponse {
512
- private _connection;
513
- private _id;
514
- private _closed;
515
- constructor(connection: Connection, id: string);
516
- /**
517
- * Send a chunk of data to the client
518
- * @param chunk The data to send
519
- */
520
- send(chunk: unknown): void;
521
- /**
522
- * End the stream and send the final chunk (if any)
523
- * @param finalChunk Optional final chunk of data to send
524
- */
525
- end(finalChunk?: unknown): void;
526
- }
527
-
7
+ Agent,
8
+ AgentContext,
9
+ AgentEmail,
10
+ AgentNamespace,
11
+ AgentOptions,
12
+ CallableMetadata,
13
+ Connection,
14
+ ConnectionContext,
15
+ EmailResolver,
16
+ EmailRoutingOptions,
17
+ EmailSendOptions,
18
+ MCPServer,
19
+ MCPServerMessage,
20
+ MCPServersState,
21
+ QueueItem,
22
+ RPCRequest,
23
+ RPCResponse,
24
+ Schedule,
25
+ StateUpdateMessage,
26
+ StreamingResponse,
27
+ WSMessage,
28
+ callable,
29
+ createAddressBasedEmailResolver,
30
+ createCatchAllEmailResolver,
31
+ createHeaderBasedEmailResolver,
32
+ getAgentByName,
33
+ getCurrentAgent,
34
+ routeAgentEmail,
35
+ routeAgentRequest,
36
+ unstable_callable
37
+ } from "./index-DWcUTPtX.js";
528
38
  export {
529
39
  Agent,
530
- type AgentContext,
531
- type AgentEmail,
532
- type AgentNamespace,
533
- type AgentOptions,
534
- type CallableMetadata,
535
- type EmailResolver,
536
- type EmailRoutingOptions,
537
- type EmailSendOptions,
538
- type MCPServer,
539
- type MCPServerMessage,
540
- type MCPServersState,
541
- type QueueItem,
542
- type RPCRequest,
543
- type RPCResponse,
544
- type Schedule,
545
- type StateUpdateMessage,
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,
546
58
  StreamingResponse,
547
59
  TransportType,
60
+ WSMessage,
548
61
  callable,
549
62
  createAddressBasedEmailResolver,
550
63
  createCatchAllEmailResolver,
package/dist/index.js CHANGED
@@ -1,32 +1,7 @@
1
- import {
2
- Agent,
3
- StreamingResponse,
4
- callable,
5
- createAddressBasedEmailResolver,
6
- createCatchAllEmailResolver,
7
- createHeaderBasedEmailResolver,
8
- getAgentByName,
9
- getCurrentAgent,
10
- routeAgentEmail,
11
- routeAgentRequest,
12
- unstable_callable
13
- } from "./chunk-XGMKNUJA.js";
14
- import "./chunk-ZMMHNOMZ.js";
15
- import "./chunk-C2OEBJZ2.js";
16
- import "./chunk-QEVM4BVL.js";
17
- import "./chunk-BER7KXUJ.js";
18
- import "./chunk-PR4QN5HX.js";
19
- export {
20
- Agent,
21
- StreamingResponse,
22
- callable,
23
- createAddressBasedEmailResolver,
24
- createCatchAllEmailResolver,
25
- createHeaderBasedEmailResolver,
26
- getAgentByName,
27
- getCurrentAgent,
28
- routeAgentEmail,
29
- routeAgentRequest,
30
- unstable_callable
31
- };
32
- //# sourceMappingURL=index.js.map
1
+ import "./client-WbaRgKYN.js";
2
+ import "./ai-types-B0GBFDwi.js";
3
+ import "./client-zS-OCVJA.js";
4
+ import "./do-oauth-client-provider-B2jr6UNq.js";
5
+ import { Agent, StreamingResponse, callable, createAddressBasedEmailResolver, createCatchAllEmailResolver, createHeaderBasedEmailResolver, getAgentByName, getCurrentAgent, routeAgentEmail, routeAgentRequest, unstable_callable } from "./src-C9xZ0CrH.js";
6
+
7
+ export { Agent, StreamingResponse, callable, createAddressBasedEmailResolver, createCatchAllEmailResolver, createHeaderBasedEmailResolver, getAgentByName, getCurrentAgent, routeAgentEmail, routeAgentRequest, unstable_callable };
@@ -1,12 +1,4 @@
1
- import 'zod';
2
- import '@modelcontextprotocol/sdk/client/index.js';
3
- import '@modelcontextprotocol/sdk/shared/protocol.js';
4
- import '@modelcontextprotocol/sdk/types.js';
5
- import 'ai';
6
- export { e as MCPClientManager, d as MCPClientOAuthCallbackConfig, c as MCPClientOAuthResult, g as getNamespacedData } from '../client-C8tswVoM.js';
7
- import '../mcp-BH1fJeiU.js';
8
- import '@modelcontextprotocol/sdk/client/sse.js';
9
- import '@modelcontextprotocol/sdk/client/streamableHttp.js';
10
- import './do-oauth-client-provider.js';
11
- import '@modelcontextprotocol/sdk/client/auth.js';
12
- import '@modelcontextprotocol/sdk/shared/auth.js';
1
+ import { MCPClientManager, MCPClientOAuthCallbackConfig, MCPClientOAuthResult, getNamespacedData } from "../client-C-u-lCFT.js";
2
+ import "../mcp-BEwaCsxO.js";
3
+ import "../do-oauth-client-provider-CCwGwnrA.js";
4
+ export { MCPClientManager, MCPClientOAuthCallbackConfig, MCPClientOAuthResult, getNamespacedData };
@@ -1,10 +1,3 @@
1
- import {
2
- MCPClientManager,
3
- getNamespacedData
4
- } from "../chunk-ZMMHNOMZ.js";
5
- import "../chunk-PR4QN5HX.js";
6
- export {
7
- MCPClientManager,
8
- getNamespacedData
9
- };
10
- //# sourceMappingURL=client.js.map
1
+ import { MCPClientManager, getNamespacedData } from "../client-WbaRgKYN.js";
2
+
3
+ export { MCPClientManager, getNamespacedData };