agents 0.28.0 → 0.29.0
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/{agent-routing-QDcchcQP.d.ts → agent-routing-CDbpVjYq.d.ts} +18 -8
- package/dist/agent-routing.d.ts +1 -1
- package/dist/agent-tool-types.d.ts +1 -1
- package/dist/{agent-tools-DHL2XI7u.d.ts → agent-tools-C8DH8Yii.d.ts} +2 -2
- package/dist/agent-tools.d.ts +1 -1
- package/dist/{ai-ahruGw7e.d.ts → ai-iXw0uOGj.d.ts} +3 -3
- package/dist/{ai-sdk-Bdsf6mSA.js → ai-sdk-DRPh2rRa.js} +218 -132
- package/dist/ai-sdk-DRPh2rRa.js.map +1 -0
- package/dist/browser/ai.d.ts +1 -1
- package/dist/browser/ai.js +2 -2
- package/dist/browser/index.d.ts +8 -8
- package/dist/browser/index.js +3 -3
- package/dist/browser/tools/ai-sdk.d.ts +2 -2
- package/dist/browser/tools/ai-sdk.js +1 -1
- package/dist/browser/tools/pi.d.ts +1 -1
- package/dist/browser/tools/pi.js +3 -3
- package/dist/browser/tools/pi.js.map +1 -1
- package/dist/browser/tools/tanstack-ai.d.ts +2 -2
- package/dist/browser/tools/tanstack-ai.js +1 -1
- package/dist/{browser-CEdNlsaD.js → browser-DccPw_wW.js} +130 -79
- package/dist/browser-DccPw_wW.js.map +1 -0
- package/dist/{browser-D30VlpcA.d.ts → browser-DlXhSAdf.d.ts} +41 -37
- package/dist/{browser-tool-4iomavs_.js → browser-tool-B1mhifin.js} +3 -3
- package/dist/{browser-tool-4iomavs_.js.map → browser-tool-B1mhifin.js.map} +1 -1
- package/dist/{browser-tool-vtrPOV8e.d.ts → browser-tool-Cxjk5sgG.d.ts} +2 -2
- package/dist/chat/index.d.ts +143 -71
- package/dist/chat/index.js +269 -110
- package/dist/chat/index.js.map +1 -1
- package/dist/chat-sdk/index.d.ts +1 -1
- package/dist/chat-sdk/index.js +1 -1
- package/dist/cli.js +33 -33
- package/dist/{client-BGIQKJhX.d.ts → client-C27CtRZr.d.ts} +2 -2
- package/dist/client.d.ts +1 -1
- package/dist/{connector-DEXzVoaY.d.ts → connector-20DJ6p4k.d.ts} +2 -2
- package/dist/{connector-CtZylXdk.js → connector-DAXBOIIi.js} +2 -2
- package/dist/{connector-CtZylXdk.js.map → connector-DAXBOIIi.js.map} +1 -1
- package/dist/experimental/channels/web/index.js +1 -1
- package/dist/{handler-stateless-VvrWSAVA.js → handler-stateless-Bly_nSH3.js} +12 -3
- package/dist/handler-stateless-Bly_nSH3.js.map +1 -0
- package/dist/harness/container/index.js +1 -1
- package/dist/harness/container/index.js.map +1 -1
- package/dist/harness/opencode/index.d.ts +182 -6
- package/dist/harness/opencode/index.js +354 -23
- package/dist/harness/opencode/index.js.map +1 -1
- package/dist/harness/pi/index.d.ts +13 -5
- package/dist/harness/pi/index.js +8 -214
- package/dist/harness/pi/index.js.map +1 -1
- package/dist/{images-Ce9SCu3X.js → images-xaDv2Fqe.js} +662 -152
- package/dist/images-xaDv2Fqe.js.map +1 -0
- package/dist/index-DCxk3OSJ.d.ts +378 -0
- package/dist/{index-kbSUIer3.d.ts → index-iv9FTXX9.d.ts} +80 -112
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{input-schema-D2QAtHZH.js → input-schema-B0Etuo-o.js} +2 -2
- package/dist/{input-schema-D2QAtHZH.js.map → input-schema-B0Etuo-o.js.map} +1 -1
- package/dist/lifecycle/index.js +1 -1
- package/dist/{lifecycle-DGorpAmA.js → lifecycle-ClT4DmF2.js} +11 -3
- package/dist/lifecycle-ClT4DmF2.js.map +1 -0
- package/dist/mcp/client/index.d.ts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +17 -3
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/server/index.js +1 -1
- package/dist/models/ai-sdk/index.d.ts +31 -326
- package/dist/models/ai-sdk/index.js +1 -1
- package/dist/models/opencode/index.d.ts +25 -13
- package/dist/models/opencode/index.js +16 -11
- package/dist/models/opencode/index.js.map +1 -1
- package/dist/models/pi-ai/index.d.ts +17 -13
- package/dist/models/pi-ai/index.js +89 -36
- package/dist/models/pi-ai/index.js.map +1 -1
- package/dist/react.d.ts +2 -2
- package/dist/routing/index.d.ts +1 -1
- package/dist/serializable.d.ts +1 -1
- package/dist/{session-store-DoPY12xM.d.ts → session-store-_IK6dV-w.d.ts} +14 -2
- package/dist/{session-store-Do4xkDcf.js → session-store-yvwq1f9x.js} +55 -2
- package/dist/session-store-yvwq1f9x.js.map +1 -0
- package/dist/{settings-C45hDliX.js → settings-Dk2il2Hf.js} +10 -4
- package/dist/settings-Dk2il2Hf.js.map +1 -0
- package/dist/skills/index.d.ts +22 -28
- package/dist/skills/index.js +183 -143
- package/dist/skills/index.js.map +1 -1
- package/dist/{src-CQxJFv4l.js → src-6lr7MtM_.js} +3 -3
- package/dist/src-6lr7MtM_.js.map +1 -0
- package/dist/sub-routing.d.ts +1 -1
- package/dist/{tool-cQRkwSZZ.js → tool-DkT_DJBm.js} +2 -2
- package/dist/tool-DkT_DJBm.js.map +1 -0
- package/dist/transport-CPh7YGiw.d.ts +623 -0
- package/dist/voice/index.d.ts +1 -1
- package/dist/web/fetch/tools/pi.js +2 -2
- package/dist/web/fetch/tools/pi.js.map +1 -1
- package/dist/web/search/index.js +1 -1
- package/dist/web/search/tools/ai-sdk.js +2 -2
- package/dist/web/search/tools/pi.js +3 -3
- package/dist/web/search/tools/pi.js.map +1 -1
- package/dist/web/search/tools/tanstack-ai.js +2 -2
- package/dist/websockets/index.js +1 -1
- package/dist/{websockets-C3zy8YR0.js → websockets-CqxnntmE.js} +2 -2
- package/dist/{websockets-C3zy8YR0.js.map → websockets-CqxnntmE.js.map} +1 -1
- package/dist/workflow-types.d.ts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.js +1 -1
- package/docs/browse-the-web.md +1 -1
- package/docs/chat-agents.md +19 -18
- package/docs/harnesses/pi.md +47 -18
- package/docs/mcp-client.md +1 -1
- package/docs/mcp-servers.md +1 -1
- package/docs/models-pi-ai.md +70 -17
- package/docs/models.md +219 -152
- package/package.json +14 -14
- package/dist/ai-sdk-Bdsf6mSA.js.map +0 -1
- package/dist/browser-CEdNlsaD.js.map +0 -1
- package/dist/handler-stateless-VvrWSAVA.js.map +0 -1
- package/dist/images-Ce9SCu3X.js.map +0 -1
- package/dist/lifecycle-DGorpAmA.js.map +0 -1
- package/dist/session-store-Do4xkDcf.js.map +0 -1
- package/dist/settings-C45hDliX.js.map +0 -1
- package/dist/settings-NgGwF7Qt.d.ts +0 -331
- package/dist/src-CQxJFv4l.js.map +0 -1
- package/dist/tool-cQRkwSZZ.js.map +0 -1
- package/dist/transport-k2mFrtL8.d.ts +0 -200
|
@@ -1320,6 +1320,17 @@ declare abstract class McpAgent<
|
|
|
1320
1320
|
abstract init(): Promise<void>;
|
|
1321
1321
|
setInitializeRequest(initializeRequest: JSONRPCMessage$1): Promise<void>;
|
|
1322
1322
|
getInitializeRequest(): Promise<JSONRPCMessage$1 | undefined>;
|
|
1323
|
+
/**
|
|
1324
|
+
* End a streamable HTTP session (`DELETE`). Teardown is deferred to the
|
|
1325
|
+
* agent's alarm (#1625), so the stored initialize request is cleared too:
|
|
1326
|
+
* every route treats a session without one as unknown, which makes requests
|
|
1327
|
+
* carrying the terminated session ID get 404 as the spec requires. Teardown
|
|
1328
|
+
* is scheduled first, so a failure part-way leaves a session the client can
|
|
1329
|
+
* `DELETE` again rather than one that is never cleaned up.
|
|
1330
|
+
*
|
|
1331
|
+
* @internal
|
|
1332
|
+
*/
|
|
1333
|
+
_cf_terminateSession(): Promise<void>;
|
|
1323
1334
|
/**
|
|
1324
1335
|
* Storage key prefix for the `streamId -> requestIds` mapping used
|
|
1325
1336
|
* to support POST stream resumption across WebSocket reconnects.
|
|
@@ -4481,13 +4492,12 @@ interface AgentStaticOptions {
|
|
|
4481
4492
|
* reset (the isolate exceeded its 128 MB limit) before the alarm-boundary
|
|
4482
4493
|
* circuit breaker stops the platform's auto-retry loop and seals the looping
|
|
4483
4494
|
* recovery work (#1825). Default: 3. Set to `0` to seal on the first such
|
|
4484
|
-
* reset.
|
|
4485
|
-
*
|
|
4486
|
-
*
|
|
4487
|
-
*
|
|
4488
|
-
*
|
|
4489
|
-
*
|
|
4490
|
-
* could not.
|
|
4495
|
+
* reset. The strike counter is written after the reset, so it only advances
|
|
4496
|
+
* when that isolate's storage still accepts writes, for example when the
|
|
4497
|
+
* reset error came from another isolate such as D1. A Durable Object's own
|
|
4498
|
+
* memory-limit reset rejects every later storage call in that invocation, so
|
|
4499
|
+
* chat recovery does not rely on this counter: it counts each interrupted
|
|
4500
|
+
* attempt in the next isolate (`chatRecovery.maxInterruptedAttempts`, #2613).
|
|
4491
4501
|
*/
|
|
4492
4502
|
maxAlarmMemoryLimitStrikes?: number;
|
|
4493
4503
|
}
|
|
@@ -7035,4 +7045,4 @@ export {
|
|
|
7035
7045
|
AgentToolEventState as z,
|
|
7036
7046
|
MCPClientOAuthResult as zt
|
|
7037
7047
|
};
|
|
7038
|
-
//# sourceMappingURL=agent-routing-
|
|
7048
|
+
//# sourceMappingURL=agent-routing-CDbpVjYq.d.ts.map
|
package/dist/agent-routing.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
W as AgentToolProgress,
|
|
5
5
|
Z as AgentToolStoredChunk,
|
|
6
6
|
z as AgentToolEventState
|
|
7
|
-
} from "./agent-routing-
|
|
7
|
+
} from "./agent-routing-CDbpVjYq.js";
|
|
8
8
|
|
|
9
9
|
//#region src/chat/agent-tools.d.ts
|
|
10
10
|
type AgentToolProgressEmitResult = "emitted" | "coalesced" | "inactive";
|
|
@@ -144,4 +144,4 @@ export {
|
|
|
144
144
|
interceptAgentToolBroadcast as s,
|
|
145
145
|
AgentToolBroadcastHooks as t
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=agent-tools-
|
|
147
|
+
//# sourceMappingURL=agent-tools-C8DH8Yii.d.ts.map
|
package/dist/agent-tools.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
rt as RunAgentToolResult,
|
|
21
21
|
tt as DetachedRunAgentToolResult,
|
|
22
22
|
z as AgentToolEventState
|
|
23
|
-
} from "./agent-routing-
|
|
23
|
+
} from "./agent-routing-CDbpVjYq.js";
|
|
24
24
|
import { FlexibleSchema, InferSchema, Tool } from "ai";
|
|
25
25
|
|
|
26
26
|
//#region src/agent-tools.d.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
d as BrowserBinding,
|
|
3
3
|
n as BrowserSessionStore
|
|
4
|
-
} from "./session-store-
|
|
4
|
+
} from "./session-store-_IK6dV-w.js";
|
|
5
5
|
import {
|
|
6
6
|
l as QuickActionBinding,
|
|
7
7
|
r as BrowserConnectorSessionOptions,
|
|
8
8
|
t as BrowserConnector,
|
|
9
9
|
u as QuickActionCommonOptions
|
|
10
|
-
} from "./connector-
|
|
10
|
+
} from "./connector-20DJ6p4k.js";
|
|
11
11
|
import { ToolSet } from "ai";
|
|
12
12
|
import { CodemodeRuntimeHandle } from "@cloudflare/codemode";
|
|
13
13
|
|
|
@@ -236,4 +236,4 @@ export {
|
|
|
236
236
|
createQuickActionTools as s,
|
|
237
237
|
BrowserRuntime as t
|
|
238
238
|
};
|
|
239
|
-
//# sourceMappingURL=ai-
|
|
239
|
+
//# sourceMappingURL=ai-iXw0uOGj.d.ts.map
|