agents 0.8.5 → 0.8.7

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 (40) hide show
  1. package/dist/client.d.ts +2 -2
  2. package/dist/compaction-helpers-BFTBIzpK.js +312 -0
  3. package/dist/compaction-helpers-BFTBIzpK.js.map +1 -0
  4. package/dist/compaction-helpers-DkJreaDR.d.ts +139 -0
  5. package/dist/{do-oauth-client-provider-D7F2Pw40.d.ts → do-oauth-client-provider-C2jurFjW.d.ts} +1 -1
  6. package/dist/{email-YAQhwwXb.d.ts → email-DwPlM0bQ.d.ts} +1 -1
  7. package/dist/email.d.ts +2 -2
  8. package/dist/experimental/forever.d.ts +1 -1
  9. package/dist/experimental/memory/session/index.d.ts +193 -203
  10. package/dist/experimental/memory/session/index.js +673 -294
  11. package/dist/experimental/memory/session/index.js.map +1 -1
  12. package/dist/experimental/memory/utils/index.d.ts +59 -0
  13. package/dist/experimental/memory/utils/index.js +69 -0
  14. package/dist/experimental/memory/utils/index.js.map +1 -0
  15. package/dist/{index-DynYigzs.d.ts → index-C-6EMK-E.d.ts} +11 -11
  16. package/dist/{index-OtkSCU2A.d.ts → index-Ua2Nfvbm.d.ts} +1 -1
  17. package/dist/index.d.ts +7 -5
  18. package/dist/index.js +1 -1
  19. package/dist/index.js.map +1 -1
  20. package/dist/{internal_context-DgcmHqS1.d.ts → internal_context-DT8RxmAN.d.ts} +1 -1
  21. package/dist/internal_context.d.ts +1 -1
  22. package/dist/mcp/client.d.ts +1 -1
  23. package/dist/mcp/do-oauth-client-provider.d.ts +1 -1
  24. package/dist/mcp/index.d.ts +1 -1
  25. package/dist/mcp/index.js +45 -3
  26. package/dist/mcp/index.js.map +1 -1
  27. package/dist/observability/index.d.ts +1 -1
  28. package/dist/react.d.ts +1 -1
  29. package/dist/{retries-JxhDYtYL.d.ts → retries-DXMQGhG3.d.ts} +1 -1
  30. package/dist/retries.d.ts +1 -1
  31. package/dist/{serializable-Ch19yA6_.d.ts → serializable-8Jt1B04R.d.ts} +1 -1
  32. package/dist/serializable.d.ts +1 -1
  33. package/dist/{types-2lHHE_uh.d.ts → types-C-m0II8i.d.ts} +3 -1
  34. package/dist/types.d.ts +1 -1
  35. package/dist/types.js +2 -0
  36. package/dist/types.js.map +1 -1
  37. package/dist/{workflow-types-BVKtSaA7.d.ts → workflow-types-CZNXKj_D.d.ts} +1 -1
  38. package/dist/workflow-types.d.ts +1 -1
  39. package/dist/workflows.d.ts +2 -2
  40. package/package.json +12 -7
@@ -1,2 +1,2 @@
1
- import { a as genericObservability, i as channels, n as Observability, o as subscribe, r as ObservabilityEvent, t as ChannelEventMap } from "../index-OtkSCU2A.js";
1
+ import { a as genericObservability, i as channels, n as Observability, o as subscribe, r as ObservabilityEvent, t as ChannelEventMap } from "../index-Ua2Nfvbm.js";
2
2
  export { ChannelEventMap, Observability, ObservabilityEvent, channels, genericObservability, subscribe };
package/dist/react.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { h as MCPServersState } from "./index-DynYigzs.js";
1
+ import { h as MCPServersState } from "./index-C-6EMK-E.js";
2
2
  import {
3
3
  AgentPromiseReturnType,
4
4
  AgentStub,
@@ -76,4 +76,4 @@ export {
76
76
  jitterBackoff as r,
77
77
  RetryOptions as t
78
78
  };
79
- //# sourceMappingURL=retries-JxhDYtYL.d.ts.map
79
+ //# sourceMappingURL=retries-DXMQGhG3.d.ts.map
package/dist/retries.d.ts CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  n as isErrorRetryable,
5
5
  r as jitterBackoff,
6
6
  t as RetryOptions
7
- } from "./retries-JxhDYtYL.js";
7
+ } from "./retries-DXMQGhG3.js";
8
8
  export {
9
9
  RetryOptions,
10
10
  isErrorRetryable,
@@ -128,4 +128,4 @@ export {
128
128
  SerializableReturnValue as r,
129
129
  Method as t
130
130
  };
131
- //# sourceMappingURL=serializable-Ch19yA6_.d.ts.map
131
+ //# sourceMappingURL=serializable-8Jt1B04R.d.ts.map
@@ -3,5 +3,5 @@ import {
3
3
  n as RPCMethod,
4
4
  r as SerializableReturnValue,
5
5
  t as Method
6
- } from "./serializable-Ch19yA6_.js";
6
+ } from "./serializable-8Jt1B04R.js";
7
7
  export { Method, RPCMethod, SerializableReturnValue, SerializableValue };
@@ -8,8 +8,10 @@ declare enum MessageType {
8
8
  CF_AGENT_STATE = "cf_agent_state",
9
9
  CF_AGENT_STATE_ERROR = "cf_agent_state_error",
10
10
  CF_AGENT_IDENTITY = "cf_agent_identity",
11
+ CF_AGENT_SESSION = "cf_agent_session",
12
+ CF_AGENT_SESSION_ERROR = "cf_agent_session_error",
11
13
  RPC = "rpc"
12
14
  }
13
15
  //#endregion
14
16
  export { MessageType as t };
15
- //# sourceMappingURL=types-2lHHE_uh.d.ts.map
17
+ //# sourceMappingURL=types-C-m0II8i.d.ts.map
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as MessageType } from "./types-2lHHE_uh.js";
1
+ import { t as MessageType } from "./types-C-m0II8i.js";
2
2
  export { MessageType };
package/dist/types.js CHANGED
@@ -8,6 +8,8 @@ let MessageType = /* @__PURE__ */ function(MessageType) {
8
8
  MessageType["CF_AGENT_STATE"] = "cf_agent_state";
9
9
  MessageType["CF_AGENT_STATE_ERROR"] = "cf_agent_state_error";
10
10
  MessageType["CF_AGENT_IDENTITY"] = "cf_agent_identity";
11
+ MessageType["CF_AGENT_SESSION"] = "cf_agent_session";
12
+ MessageType["CF_AGENT_SESSION_ERROR"] = "cf_agent_session_error";
11
13
  MessageType["RPC"] = "rpc";
12
14
  return MessageType;
13
15
  }({});
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../src/types.ts"],"sourcesContent":["/**\n * Enum for message types to improve type safety and maintainability\n */\nexport enum MessageType {\n CF_AGENT_MCP_SERVERS = \"cf_agent_mcp_servers\",\n CF_MCP_AGENT_EVENT = \"cf_mcp_agent_event\",\n CF_AGENT_STATE = \"cf_agent_state\",\n CF_AGENT_STATE_ERROR = \"cf_agent_state_error\",\n CF_AGENT_IDENTITY = \"cf_agent_identity\",\n RPC = \"rpc\"\n}\n"],"mappings":";;;;AAGA,IAAY,cAAL,yBAAA,aAAA;AACL,aAAA,0BAAA;AACA,aAAA,wBAAA;AACA,aAAA,oBAAA;AACA,aAAA,0BAAA;AACA,aAAA,uBAAA;AACA,aAAA,SAAA;;KACD"}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../src/types.ts"],"sourcesContent":["/**\n * Enum for message types to improve type safety and maintainability\n */\nexport enum MessageType {\n CF_AGENT_MCP_SERVERS = \"cf_agent_mcp_servers\",\n CF_MCP_AGENT_EVENT = \"cf_mcp_agent_event\",\n CF_AGENT_STATE = \"cf_agent_state\",\n CF_AGENT_STATE_ERROR = \"cf_agent_state_error\",\n CF_AGENT_IDENTITY = \"cf_agent_identity\",\n CF_AGENT_SESSION = \"cf_agent_session\",\n CF_AGENT_SESSION_ERROR = \"cf_agent_session_error\",\n RPC = \"rpc\"\n}\n"],"mappings":";;;;AAGA,IAAY,cAAL,yBAAA,aAAA;AACL,aAAA,0BAAA;AACA,aAAA,wBAAA;AACA,aAAA,oBAAA;AACA,aAAA,0BAAA;AACA,aAAA,uBAAA;AACA,aAAA,sBAAA;AACA,aAAA,4BAAA;AACA,aAAA,SAAA;;KACD"}
@@ -257,4 +257,4 @@ export {
257
257
  WorkflowStatus as x,
258
258
  WorkflowQueryCriteria as y
259
259
  };
260
- //# sourceMappingURL=workflow-types-BVKtSaA7.d.ts.map
260
+ //# sourceMappingURL=workflow-types-CZNXKj_D.d.ts.map
@@ -21,7 +21,7 @@ import {
21
21
  v as WorkflowProgressCallback,
22
22
  x as WorkflowStatus,
23
23
  y as WorkflowQueryCriteria
24
- } from "./workflow-types-BVKtSaA7.js";
24
+ } from "./workflow-types-CZNXKj_D.js";
25
25
  export {
26
26
  AgentWorkflowEvent,
27
27
  AgentWorkflowInternalParams,
@@ -1,4 +1,4 @@
1
- import { r as Agent } from "./index-DynYigzs.js";
1
+ import { r as Agent } from "./index-C-6EMK-E.js";
2
2
  import {
3
3
  S as WorkflowTrackingRow,
4
4
  _ as WorkflowPage,
@@ -20,7 +20,7 @@ import {
20
20
  v as WorkflowProgressCallback,
21
21
  x as WorkflowStatus,
22
22
  y as WorkflowQueryCriteria
23
- } from "./workflow-types-BVKtSaA7.js";
23
+ } from "./workflow-types-CZNXKj_D.js";
24
24
  import { WorkflowEntrypoint } from "cloudflare:workers";
25
25
 
26
26
  //#region src/workflows.d.ts
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "durable objects"
10
10
  ],
11
11
  "type": "module",
12
- "version": "0.8.5",
12
+ "version": "0.8.7",
13
13
  "license": "MIT",
14
14
  "repository": {
15
15
  "directory": "packages/agents",
@@ -26,27 +26,27 @@
26
26
  "dependencies": {
27
27
  "@babel/plugin-proposal-decorators": "^7.29.0",
28
28
  "@cfworker/json-schema": "^4.1.1",
29
- "@modelcontextprotocol/sdk": "1.26.0",
29
+ "@modelcontextprotocol/sdk": "1.28.0",
30
30
  "@rolldown/plugin-babel": "^0.2.2",
31
31
  "cron-schedule": "^6.0.0",
32
32
  "json-schema": "^0.4.0",
33
33
  "json-schema-to-typescript": "^15.0.4",
34
34
  "mimetext": "^3.0.28",
35
35
  "nanoid": "^5.1.7",
36
- "partyserver": "^0.4.0",
36
+ "partyserver": "^0.4.1",
37
37
  "partysocket": "1.1.16",
38
38
  "picomatch": "^4.0.4",
39
39
  "yargs": "^18.0.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@ai-sdk/openai": "^3.0.48",
43
- "@ai-sdk/react": "^3.0.140",
43
+ "@ai-sdk/react": "^3.0.143",
44
44
  "@cloudflare/workers-oauth-provider": "^0.3.1",
45
45
  "@types/react": "^19.2.14",
46
46
  "@types/yargs": "^17.0.35",
47
47
  "@x402/core": "^2.8.0",
48
48
  "@x402/evm": "^2.8.0",
49
- "ai": "^6.0.138",
49
+ "ai": "^6.0.141",
50
50
  "react": "^19.2.4",
51
51
  "vitest-browser-react": "^2.1.0",
52
52
  "zod": "^4.3.6"
@@ -54,8 +54,8 @@
54
54
  "peerDependencies": {
55
55
  "@ai-sdk/openai": "^3.0.0",
56
56
  "@ai-sdk/react": "^3.0.0",
57
- "@cloudflare/ai-chat": "^0.2.5",
58
- "@cloudflare/codemode": "^0.3.1",
57
+ "@cloudflare/ai-chat": "^0.2.6",
58
+ "@cloudflare/codemode": "^0.3.2",
59
59
  "@x402/core": "^2.0.0",
60
60
  "@x402/evm": "^2.0.0",
61
61
  "ai": "^6.0.0",
@@ -157,6 +157,11 @@
157
157
  "import": "./dist/experimental/memory/session/index.js",
158
158
  "require": "./dist/experimental/memory/session/index.js"
159
159
  },
160
+ "./experimental/memory/utils": {
161
+ "types": "./dist/experimental/memory/utils/index.d.ts",
162
+ "import": "./dist/experimental/memory/utils/index.js",
163
+ "require": "./dist/experimental/memory/utils/index.js"
164
+ },
160
165
  "./x402": {
161
166
  "types": "./dist/mcp/x402.d.ts",
162
167
  "import": "./dist/mcp/x402.js",