agents 0.0.0-04d925e → 0.0.0-06b2ab0

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 (77) hide show
  1. package/README.md +255 -27
  2. package/dist/_esm-LV5FJ3HK.js +3922 -0
  3. package/dist/_esm-LV5FJ3HK.js.map +1 -0
  4. package/dist/ai-chat-agent.d.ts +14 -9
  5. package/dist/ai-chat-agent.js +482 -60
  6. package/dist/ai-chat-agent.js.map +1 -1
  7. package/dist/ai-chat-v5-migration.d.ts +152 -0
  8. package/dist/ai-chat-v5-migration.js +20 -0
  9. package/dist/ai-chat-v5-migration.js.map +1 -0
  10. package/dist/ai-react.d.ts +71 -72
  11. package/dist/ai-react.js +260 -107
  12. package/dist/ai-react.js.map +1 -1
  13. package/dist/ai-types.d.ts +37 -19
  14. package/dist/ai-types.js +7 -0
  15. package/dist/ccip-CMBYN64O.js +15 -0
  16. package/dist/ccip-CMBYN64O.js.map +1 -0
  17. package/dist/chunk-5Y6BEZDY.js +276 -0
  18. package/dist/chunk-5Y6BEZDY.js.map +1 -0
  19. package/dist/chunk-BER7KXUJ.js +18 -0
  20. package/dist/chunk-BER7KXUJ.js.map +1 -0
  21. package/dist/{chunk-BZXOAZUX.js → chunk-C2OEBJZ2.js} +17 -10
  22. package/dist/chunk-C2OEBJZ2.js.map +1 -0
  23. package/dist/chunk-JJBFIGUC.js +5202 -0
  24. package/dist/chunk-JJBFIGUC.js.map +1 -0
  25. package/dist/chunk-PR4QN5HX.js +43 -0
  26. package/dist/chunk-PR4QN5HX.js.map +1 -0
  27. package/dist/{chunk-QSGN3REV.js → chunk-QEVM4BVL.js} +10 -17
  28. package/dist/chunk-QEVM4BVL.js.map +1 -0
  29. package/dist/chunk-TYAY6AU6.js +159 -0
  30. package/dist/chunk-TYAY6AU6.js.map +1 -0
  31. package/dist/chunk-UJVEAURM.js +150 -0
  32. package/dist/chunk-UJVEAURM.js.map +1 -0
  33. package/dist/chunk-XGMKNUJA.js +1343 -0
  34. package/dist/chunk-XGMKNUJA.js.map +1 -0
  35. package/dist/chunk-ZMMHNOMZ.js +942 -0
  36. package/dist/chunk-ZMMHNOMZ.js.map +1 -0
  37. package/dist/client-DVoPb3-C.d.ts +5120 -0
  38. package/dist/client.d.ts +8 -2
  39. package/dist/client.js +3 -1
  40. package/dist/codemode/ai.d.ts +25 -0
  41. package/dist/codemode/ai.js +5200 -0
  42. package/dist/codemode/ai.js.map +1 -0
  43. package/dist/index.d.ts +208 -51
  44. package/dist/index.js +14 -4
  45. package/dist/mcp/client.d.ts +10 -781
  46. package/dist/mcp/client.js +2 -1
  47. package/dist/mcp/do-oauth-client-provider.d.ts +1 -0
  48. package/dist/mcp/do-oauth-client-provider.js +2 -1
  49. package/dist/mcp/index.d.ts +59 -64
  50. package/dist/mcp/index.js +957 -637
  51. package/dist/mcp/index.js.map +1 -1
  52. package/dist/mcp/x402.d.ts +39 -0
  53. package/dist/mcp/x402.js +3195 -0
  54. package/dist/mcp/x402.js.map +1 -0
  55. package/dist/mcp-BH1fJeiU.d.ts +58 -0
  56. package/dist/observability/index.d.ts +34 -0
  57. package/dist/observability/index.js +12 -0
  58. package/dist/observability/index.js.map +1 -0
  59. package/dist/react.d.ts +89 -15
  60. package/dist/react.js +121 -11
  61. package/dist/react.js.map +1 -1
  62. package/dist/schedule.d.ts +81 -7
  63. package/dist/schedule.js +21 -6
  64. package/dist/schedule.js.map +1 -1
  65. package/dist/secp256k1-M22GZP2U.js +2193 -0
  66. package/dist/secp256k1-M22GZP2U.js.map +1 -0
  67. package/dist/serializable.d.ts +32 -0
  68. package/dist/serializable.js +1 -0
  69. package/dist/serializable.js.map +1 -0
  70. package/package.json +98 -70
  71. package/src/index.ts +1014 -226
  72. package/dist/chunk-BZXOAZUX.js.map +0 -1
  73. package/dist/chunk-QSGN3REV.js.map +0 -1
  74. package/dist/chunk-RIYR6FR6.js +0 -777
  75. package/dist/chunk-RIYR6FR6.js.map +0 -1
  76. package/dist/chunk-Y67CHZBI.js +0 -464
  77. package/dist/chunk-Y67CHZBI.js.map +0 -1
package/dist/client.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  PartySocketOptions,
3
3
  PartyFetchOptions,
4
- PartySocket,
4
+ PartySocket
5
5
  } from "partysocket";
6
+ import { SerializableReturnValue, SerializableValue } from "./serializable.js";
6
7
 
7
8
  /**
8
9
  * Options for creating an AgentClient
@@ -65,6 +66,11 @@ declare class AgentClient<State = unknown> extends PartySocket {
65
66
  * @param streamOptions Options for handling streaming responses
66
67
  * @returns Promise that resolves with the method's return value
67
68
  */
69
+ call<T extends SerializableReturnValue>(
70
+ method: string,
71
+ args?: SerializableValue[],
72
+ streamOptions?: StreamOptions
73
+ ): Promise<T>;
68
74
  call<T = unknown>(
69
75
  method: string,
70
76
  args?: unknown[],
@@ -88,5 +94,5 @@ export {
88
94
  type AgentClientOptions,
89
95
  type StreamOptions,
90
96
  agentFetch,
91
- camelCaseToKebabCase,
97
+ camelCaseToKebabCase
92
98
  };
package/dist/client.js CHANGED
@@ -2,7 +2,9 @@ import {
2
2
  AgentClient,
3
3
  agentFetch,
4
4
  camelCaseToKebabCase
5
- } from "./chunk-QSGN3REV.js";
5
+ } from "./chunk-QEVM4BVL.js";
6
+ import "./chunk-BER7KXUJ.js";
7
+ import "./chunk-PR4QN5HX.js";
6
8
  export {
7
9
  AgentClient,
8
10
  agentFetch,
@@ -0,0 +1,25 @@
1
+ import { ToolSet } from 'ai';
2
+ import { WorkerEntrypoint } from 'cloudflare:workers';
3
+
4
+ declare class CodeModeProxy extends WorkerEntrypoint<Cloudflare.Env, {
5
+ binding: string;
6
+ name: string;
7
+ callback: string;
8
+ }> {
9
+ callFunction(options: {
10
+ functionName: string;
11
+ args: unknown[];
12
+ }): Promise<any>;
13
+ }
14
+ declare function experimental_codemode(options: {
15
+ tools: ToolSet;
16
+ prompt: string;
17
+ globalOutbound: Fetcher;
18
+ loader: WorkerLoader;
19
+ proxy: Fetcher<CodeModeProxy>;
20
+ }): Promise<{
21
+ prompt: string;
22
+ tools: ToolSet;
23
+ }>;
24
+
25
+ export { CodeModeProxy, experimental_codemode };