agents 0.0.108 → 0.0.111

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.
@@ -1,3 +1,4 @@
1
+ import { env } from "cloudflare:workers";
1
2
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
2
3
  import {
3
4
  ServerCapabilities,
@@ -6,7 +7,7 @@ import {
6
7
  Resource
7
8
  } from "@modelcontextprotocol/sdk/types.js";
8
9
  import { Server, Connection, PartyServerOptions } from "partyserver";
9
- import { MCPClientManager } from "./mcp/client.js";
10
+ import { M as MCPClientManager } from "./client-DgyzBU_8.js";
10
11
  import { Message } from "ai";
11
12
 
12
13
  type BaseEvent<
@@ -217,7 +218,7 @@ declare function getCurrentAgent<
217
218
  * @template Env Environment type containing bindings
218
219
  * @template State State type to store within the Agent
219
220
  */
220
- declare class Agent<Env, State = unknown> extends Server<Env> {
221
+ declare class Agent<Env = typeof env, State = unknown> extends Server<Env> {
221
222
  private _state;
222
223
  private _ParentClass;
223
224
  mcp: MCPClientManager;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
+ import "cloudflare:workers";
1
2
  import "@modelcontextprotocol/sdk/client/index.js";
2
3
  import "@modelcontextprotocol/sdk/types.js";
3
4
  export { Connection, ConnectionContext, WSMessage } from "partyserver";
4
- import "./mcp/client.js";
5
+ import "./client-DgyzBU_8.js";
5
6
  export {
6
7
  A as Agent,
7
8
  a as AgentContext,
@@ -29,7 +30,7 @@ export {
29
30
  o as routeAgentEmail,
30
31
  r as routeAgentRequest,
31
32
  u as unstable_callable
32
- } from "./index-BIJvkfYt.js";
33
+ } from "./index-BCJclX6q.js";
33
34
  import "zod";
34
35
  import "@modelcontextprotocol/sdk/shared/protocol.js";
35
36
  import "ai";
package/dist/index.js CHANGED
@@ -9,8 +9,8 @@ import {
9
9
  routeAgentEmail,
10
10
  routeAgentRequest,
11
11
  unstable_callable
12
- } from "./chunk-Z2OUUKK4.js";
13
- import "./chunk-UNG3FXYX.js";
12
+ } from "./chunk-JXN5WZFQ.js";
13
+ import "./chunk-HY7ZLHJB.js";
14
14
  import "./chunk-PVQZBKN7.js";
15
15
  import "./chunk-KUH345EY.js";
16
16
  export {