agents 0.0.0-feef082 → 0.0.0-ff431ff

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