agents 0.11.3 → 0.11.4
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/dist/browser/ai.js +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/tanstack-ai.js +1 -1
- package/dist/{classPrivateFieldGet2-BVdP0e3Z.js → classPrivateFieldGet2-DAZNVUKb.js} +5 -5
- package/dist/{client-PEDsNnfY.js → client-B_xdiZbn.js} +4 -3
- package/dist/{client-PEDsNnfY.js.map → client-B_xdiZbn.js.map} +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +7 -7
- package/dist/client.js.map +1 -1
- package/dist/experimental/memory/session/index.js +3 -3
- package/dist/experimental/memory/session/index.js.map +1 -1
- package/dist/experimental/webmcp.d.ts +212 -0
- package/dist/experimental/webmcp.js +298 -0
- package/dist/experimental/webmcp.js.map +1 -0
- package/dist/{index-D49HdAiY.d.ts → index-D9qo_Inc.d.ts} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -16
- package/dist/index.js.map +1 -1
- package/dist/mcp/client.d.ts +1 -1
- package/dist/mcp/client.js +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +5 -5
- package/dist/mcp/index.js.map +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +8 -8
- package/dist/react.js.map +1 -1
- package/dist/{shared-BtPEbm_U.js → shared-BovR6hRc.js} +3 -3
- package/dist/{shared-BtPEbm_U.js.map → shared-BovR6hRc.js.map} +1 -1
- package/dist/workflows.d.ts +1 -1
- package/package.json +11 -4
package/dist/mcp/client.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { B as MCPConnectionResult, G as RegisterServerOptions, H as MCPOAuthCallbackResult, I as MCPClientManager, K as getNamespacedData, L as MCPClientManagerOptions, R as MCPClientOAuthCallbackConfig, U as MCPServerFilter, V as MCPDiscoverResult, W as MCPServerOptions, z as MCPClientOAuthResult } from "../index-
|
|
1
|
+
import { B as MCPConnectionResult, G as RegisterServerOptions, H as MCPOAuthCallbackResult, I as MCPClientManager, K as getNamespacedData, L as MCPClientManagerOptions, R as MCPClientOAuthCallbackConfig, U as MCPServerFilter, V as MCPDiscoverResult, W as MCPServerOptions, z as MCPClientOAuthResult } from "../index-D9qo_Inc.js";
|
|
2
2
|
export { MCPClientManager, MCPClientManagerOptions, MCPClientOAuthCallbackConfig, MCPClientOAuthResult, MCPConnectionResult, MCPDiscoverResult, MCPOAuthCallbackResult, MCPServerFilter, MCPServerOptions, RegisterServerOptions, getNamespacedData };
|
package/dist/mcp/client.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getNamespacedData, t as MCPClientManager } from "../client-
|
|
1
|
+
import { n as getNamespacedData, t as MCPClientManager } from "../client-B_xdiZbn.js";
|
|
2
2
|
export { MCPClientManager, getNamespacedData };
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ElicitRequestSchema, B as MCPConnectionResult, J as RPCClientTransportOptions, Q as ElicitRequest, R as MCPClientOAuthCallbackConfig, V as MCPDiscoverResult, W as MCPServerOptions, X as RPCServerTransportOptions, Y as RPCServerTransport, Z as RPC_DO_PREFIX, at as McpAuthContext, ct as WorkerTransport, dt as StreamableHTTPEdgeClientTransport, et as ElicitResult, ft as McpClientOptions, it as experimental_createMcpHandler, lt as WorkerTransportOptions, nt as CreateMcpHandlerOptions, ot as getMcpAuthContext, q as RPCClientTransport, rt as createMcpHandler, st as TransportState, tt as McpAgent, ut as SSEEdgeClientTransport, z as MCPClientOAuthResult } from "../index-
|
|
1
|
+
import { $ as ElicitRequestSchema, B as MCPConnectionResult, J as RPCClientTransportOptions, Q as ElicitRequest, R as MCPClientOAuthCallbackConfig, V as MCPDiscoverResult, W as MCPServerOptions, X as RPCServerTransportOptions, Y as RPCServerTransport, Z as RPC_DO_PREFIX, at as McpAuthContext, ct as WorkerTransport, dt as StreamableHTTPEdgeClientTransport, et as ElicitResult, ft as McpClientOptions, it as experimental_createMcpHandler, lt as WorkerTransportOptions, nt as CreateMcpHandlerOptions, ot as getMcpAuthContext, q as RPCClientTransport, rt as createMcpHandler, st as TransportState, tt as McpAgent, ut as SSEEdgeClientTransport, z as MCPClientOAuthResult } from "../index-D9qo_Inc.js";
|
|
2
2
|
export { CreateMcpHandlerOptions, ElicitRequest, ElicitRequestSchema, ElicitResult, MCPClientOAuthCallbackConfig, MCPClientOAuthResult, MCPConnectionResult, MCPDiscoverResult, MCPServerOptions, McpAgent, McpAuthContext, McpClientOptions, RPCClientTransport, RPCClientTransportOptions, RPCServerTransport, RPCServerTransportOptions, RPC_DO_PREFIX, SSEEdgeClientTransport, StreamableHTTPEdgeClientTransport, TransportState, WorkerTransport, WorkerTransportOptions, createMcpHandler, experimental_createMcpHandler, getMcpAuthContext };
|
package/dist/mcp/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { a as RPCServerTransport, i as RPCClientTransport, o as RPC_DO_PREFIX } from "../client-
|
|
1
|
+
import "../types.js";
|
|
2
|
+
import { a as RPCServerTransport, i as RPCClientTransport, o as RPC_DO_PREFIX } from "../client-B_xdiZbn.js";
|
|
3
3
|
import { Agent, getAgentByName, getCurrentAgent } from "../index.js";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
@@ -180,7 +180,7 @@ const createStreamingHttpHandler = (basePath, namespace, options = {}) => {
|
|
|
180
180
|
try {
|
|
181
181
|
const data = typeof event.data === "string" ? event.data : new TextDecoder().decode(event.data);
|
|
182
182
|
const message = JSON.parse(data);
|
|
183
|
-
if (message.type !==
|
|
183
|
+
if (message.type !== "cf_mcp_agent_event") return;
|
|
184
184
|
await writer.write(encoder.encode(message.event));
|
|
185
185
|
if (message.close) {
|
|
186
186
|
ws?.close();
|
|
@@ -276,7 +276,7 @@ const createStreamingHttpHandler = (basePath, namespace, options = {}) => {
|
|
|
276
276
|
async function onMessage(ev) {
|
|
277
277
|
const data = typeof ev.data === "string" ? ev.data : new TextDecoder().decode(ev.data);
|
|
278
278
|
const message = JSON.parse(data);
|
|
279
|
-
if (message.type !==
|
|
279
|
+
if (message.type !== "cf_mcp_agent_event") return;
|
|
280
280
|
await writer.write(encoder.encode(message.event));
|
|
281
281
|
}
|
|
282
282
|
onMessage(event).catch(console.error);
|
|
@@ -600,7 +600,7 @@ var StreamableHTTPServerTransport = class {
|
|
|
600
600
|
if (eventId) eventData += `id: ${eventId}\n`;
|
|
601
601
|
eventData += `data: ${JSON.stringify(message)}\n\n`;
|
|
602
602
|
return connection.send(JSON.stringify({
|
|
603
|
-
type:
|
|
603
|
+
type: "cf_mcp_agent_event",
|
|
604
604
|
event: eventData,
|
|
605
605
|
close
|
|
606
606
|
}));
|