agents 0.0.0-d72c6a2 → 0.0.0-d7a460e

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