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.
- package/README.md +1 -0
- package/dist/ai-chat-agent.d.ts +3 -2
- package/dist/ai-chat-agent.js +2 -2
- package/dist/ai-react.d.ts +3 -2
- package/dist/{chunk-UNG3FXYX.js → chunk-HY7ZLHJB.js} +93 -20
- package/dist/chunk-HY7ZLHJB.js.map +1 -0
- package/dist/{chunk-Z2OUUKK4.js → chunk-JXN5WZFQ.js} +36 -19
- package/dist/chunk-JXN5WZFQ.js.map +1 -0
- package/dist/client-DgyzBU_8.d.ts +4601 -0
- package/dist/{index-BIJvkfYt.d.ts → index-BCJclX6q.d.ts} +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -2
- package/dist/mcp/client.d.ts +9 -1052
- package/dist/mcp/client.js +1 -1
- package/dist/mcp/index.d.ts +33 -28
- package/dist/mcp/index.js +169 -12
- package/dist/mcp/index.js.map +1 -1
- package/dist/observability/index.d.ts +3 -2
- package/dist/observability/index.js +2 -2
- package/dist/react.d.ts +3 -2
- package/dist/schedule.d.ts +4 -4
- package/package.json +8 -5
- package/src/index.ts +42 -19
- package/dist/chunk-UNG3FXYX.js.map +0 -1
- package/dist/chunk-Z2OUUKK4.js.map +0 -1
|
@@ -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 "./
|
|
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 "./
|
|
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-
|
|
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-
|
|
13
|
-
import "./chunk-
|
|
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 {
|