agents 0.0.0-cb5957e → 0.0.0-cccbd0f

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 (99) hide show
  1. package/README.md +5 -3
  2. package/dist/ai-chat-agent.d.ts +91 -20
  3. package/dist/ai-chat-agent.js +798 -644
  4. package/dist/ai-chat-agent.js.map +1 -1
  5. package/dist/ai-chat-v5-migration-BSiGZmYU.js +155 -0
  6. package/dist/ai-chat-v5-migration-BSiGZmYU.js.map +1 -0
  7. package/dist/ai-chat-v5-migration.d.ts +7 -4
  8. package/dist/ai-chat-v5-migration.js +3 -20
  9. package/dist/ai-react.d.ts +19 -24
  10. package/dist/ai-react.js +393 -349
  11. package/dist/ai-react.js.map +1 -1
  12. package/dist/ai-types-81H_-Uxh.d.ts +103 -0
  13. package/dist/ai-types-CrMqkwc_.js +24 -0
  14. package/dist/ai-types-CrMqkwc_.js.map +1 -0
  15. package/dist/ai-types.d.ts +6 -92
  16. package/dist/ai-types.js +3 -8
  17. package/dist/cli.d.ts +8 -0
  18. package/dist/cli.js +27 -0
  19. package/dist/cli.js.map +1 -0
  20. package/dist/client-B3SR12TQ.js +117 -0
  21. package/dist/client-B3SR12TQ.js.map +1 -0
  22. package/dist/client-BAQA84dr.d.ts +104 -0
  23. package/dist/client-BZ-xTxF5.js +901 -0
  24. package/dist/client-BZ-xTxF5.js.map +1 -0
  25. package/dist/client-ctTw3KHG.d.ts +1440 -0
  26. package/dist/client.d.ts +11 -92
  27. package/dist/client.js +4 -13
  28. package/dist/codemode/ai.d.ts +19 -17
  29. package/dist/codemode/ai.js +90 -5051
  30. package/dist/codemode/ai.js.map +1 -1
  31. package/dist/do-oauth-client-provider-Cs9QpXYp.js +93 -0
  32. package/dist/do-oauth-client-provider-Cs9QpXYp.js.map +1 -0
  33. package/dist/do-oauth-client-provider-UhQDpDb8.d.ts +134 -0
  34. package/dist/index-BUle9RiP.d.ts +58 -0
  35. package/dist/index-D2dnUH0r.d.ts +578 -0
  36. package/dist/index.d.ts +55 -542
  37. package/dist/index.js +7 -32
  38. package/dist/mcp/client.d.ts +4 -12
  39. package/dist/mcp/client.js +4 -10
  40. package/dist/mcp/do-oauth-client-provider.d.ts +2 -42
  41. package/dist/mcp/do-oauth-client-provider.js +3 -8
  42. package/dist/mcp/index.d.ts +190 -76
  43. package/dist/mcp/index.js +1428 -1080
  44. package/dist/mcp/index.js.map +1 -1
  45. package/dist/mcp/x402.d.ts +22 -27
  46. package/dist/mcp/x402.js +190 -3187
  47. package/dist/mcp/x402.js.map +1 -1
  48. package/dist/{mcp-BH1fJeiU.d.ts → mcp-BwPscEiF.d.ts} +6 -3
  49. package/dist/observability/index.d.ts +3 -34
  50. package/dist/observability/index.js +7 -12
  51. package/dist/react-B_ENAdCe.d.ts +113 -0
  52. package/dist/react.d.ts +10 -127
  53. package/dist/react.js +173 -200
  54. package/dist/react.js.map +1 -1
  55. package/dist/schedule.d.ts +13 -10
  56. package/dist/schedule.js +43 -33
  57. package/dist/schedule.js.map +1 -1
  58. package/dist/serializable-faDkMCai.d.ts +39 -0
  59. package/dist/serializable.d.ts +7 -32
  60. package/dist/serializable.js +1 -1
  61. package/dist/src-C6rC6ZpH.js +1248 -0
  62. package/dist/src-C6rC6ZpH.js.map +1 -0
  63. package/package.json +58 -32
  64. package/dist/_esm-LV5FJ3HK.js +0 -3922
  65. package/dist/_esm-LV5FJ3HK.js.map +0 -1
  66. package/dist/ai-chat-v5-migration.js.map +0 -1
  67. package/dist/ai-types.js.map +0 -1
  68. package/dist/ccip-CMBYN64O.js +0 -15
  69. package/dist/ccip-CMBYN64O.js.map +0 -1
  70. package/dist/chunk-254F4GDT.js +0 -1343
  71. package/dist/chunk-254F4GDT.js.map +0 -1
  72. package/dist/chunk-3OT2NNEW.js +0 -941
  73. package/dist/chunk-3OT2NNEW.js.map +0 -1
  74. package/dist/chunk-5Y6BEZDY.js +0 -276
  75. package/dist/chunk-5Y6BEZDY.js.map +0 -1
  76. package/dist/chunk-BER7KXUJ.js +0 -18
  77. package/dist/chunk-BER7KXUJ.js.map +0 -1
  78. package/dist/chunk-JJBFIGUC.js +0 -5202
  79. package/dist/chunk-JJBFIGUC.js.map +0 -1
  80. package/dist/chunk-PR4QN5HX.js +0 -43
  81. package/dist/chunk-PR4QN5HX.js.map +0 -1
  82. package/dist/chunk-QEVM4BVL.js +0 -116
  83. package/dist/chunk-QEVM4BVL.js.map +0 -1
  84. package/dist/chunk-TYAY6AU6.js +0 -159
  85. package/dist/chunk-TYAY6AU6.js.map +0 -1
  86. package/dist/chunk-UJVEAURM.js +0 -150
  87. package/dist/chunk-UJVEAURM.js.map +0 -1
  88. package/dist/chunk-Z44WASMA.js +0 -114
  89. package/dist/chunk-Z44WASMA.js.map +0 -1
  90. package/dist/client-DVoPb3-C.d.ts +0 -5120
  91. package/dist/client.js.map +0 -1
  92. package/dist/index.js.map +0 -1
  93. package/dist/mcp/client.js.map +0 -1
  94. package/dist/mcp/do-oauth-client-provider.js.map +0 -1
  95. package/dist/observability/index.js.map +0 -1
  96. package/dist/secp256k1-M22GZP2U.js +0 -2193
  97. package/dist/secp256k1-M22GZP2U.js.map +0 -1
  98. package/dist/serializable.js.map +0 -1
  99. package/src/index.ts +0 -2031
package/dist/client.d.ts CHANGED
@@ -1,98 +1,17 @@
1
+ import "./serializable-faDkMCai.js";
1
2
  import {
2
- PartySocketOptions,
3
- PartyFetchOptions,
4
- PartySocket
5
- } from "partysocket";
6
- import { SerializableReturnValue, SerializableValue } from "./serializable.js";
7
-
8
- /**
9
- * Options for creating an AgentClient
10
- */
11
- type AgentClientOptions<State = unknown> = Omit<
12
- PartySocketOptions,
13
- "party" | "room"
14
- > & {
15
- /** Name of the agent to connect to */
16
- agent: string;
17
- /** Name of the specific Agent instance */
18
- name?: string;
19
- /** Called when the Agent's state is updated */
20
- onStateUpdate?: (state: State, source: "server" | "client") => void;
21
- };
22
- /**
23
- * Options for streaming RPC calls
24
- */
25
- type StreamOptions = {
26
- /** Called when a chunk of data is received */
27
- onChunk?: (chunk: unknown) => void;
28
- /** Called when the stream ends */
29
- onDone?: (finalChunk: unknown) => void;
30
- /** Called when an error occurs */
31
- onError?: (error: string) => void;
32
- };
33
- /**
34
- * Options for the agentFetch function
35
- */
36
- type AgentClientFetchOptions = Omit<PartyFetchOptions, "party" | "room"> & {
37
- /** Name of the agent to connect to */
38
- agent: string;
39
- /** Name of the specific Agent instance */
40
- name?: string;
41
- };
42
- /**
43
- * Convert a camelCase string to a kebab-case string
44
- * @param str The string to convert
45
- * @returns The kebab-case string
46
- */
47
- declare function camelCaseToKebabCase(str: string): string;
48
- /**
49
- * WebSocket client for connecting to an Agent
50
- */
51
- declare class AgentClient<State = unknown> extends PartySocket {
52
- /**
53
- * @deprecated Use agentFetch instead
54
- */
55
- static fetch(_opts: PartyFetchOptions): Promise<Response>;
56
- agent: string;
57
- name: string;
58
- private options;
59
- private _pendingCalls;
60
- constructor(options: AgentClientOptions<State>);
61
- setState(state: State): void;
62
- /**
63
- * Call a method on the Agent
64
- * @param method Name of the method to call
65
- * @param args Arguments to pass to the method
66
- * @param streamOptions Options for handling streaming responses
67
- * @returns Promise that resolves with the method's return value
68
- */
69
- call<T extends SerializableReturnValue>(
70
- method: string,
71
- args?: SerializableValue[],
72
- streamOptions?: StreamOptions
73
- ): Promise<T>;
74
- call<T = unknown>(
75
- method: string,
76
- args?: unknown[],
77
- streamOptions?: StreamOptions
78
- ): Promise<T>;
79
- }
80
- /**
81
- * Make an HTTP request to an Agent
82
- * @param opts Connection options
83
- * @param init Request initialization options
84
- * @returns Promise resolving to a Response
85
- */
86
- declare function agentFetch(
87
- opts: AgentClientFetchOptions,
88
- init?: RequestInit
89
- ): Promise<Response>;
90
-
3
+ a as agentFetch,
4
+ i as StreamOptions,
5
+ n as AgentClientFetchOptions,
6
+ o as camelCaseToKebabCase,
7
+ r as AgentClientOptions,
8
+ t as AgentClient
9
+ } from "./client-BAQA84dr.js";
91
10
  export {
92
11
  AgentClient,
93
- type AgentClientFetchOptions,
94
- type AgentClientOptions,
95
- type StreamOptions,
12
+ AgentClientFetchOptions,
13
+ AgentClientOptions,
14
+ StreamOptions,
96
15
  agentFetch,
97
16
  camelCaseToKebabCase
98
17
  };
package/dist/client.js CHANGED
@@ -1,13 +1,4 @@
1
- import {
2
- AgentClient,
3
- agentFetch,
4
- camelCaseToKebabCase
5
- } from "./chunk-QEVM4BVL.js";
6
- import "./chunk-BER7KXUJ.js";
7
- import "./chunk-PR4QN5HX.js";
8
- export {
9
- AgentClient,
10
- agentFetch,
11
- camelCaseToKebabCase
12
- };
13
- //# sourceMappingURL=client.js.map
1
+ import "./ai-types-CrMqkwc_.js";
2
+ import { n as agentFetch, r as camelCaseToKebabCase, t as AgentClient } from "./client-B3SR12TQ.js";
3
+
4
+ export { AgentClient, agentFetch, camelCaseToKebabCase };
@@ -1,25 +1,27 @@
1
- import { ToolSet } from 'ai';
2
- import { WorkerEntrypoint } from 'cloudflare:workers';
1
+ import { ToolSet } from "ai";
2
+ import { WorkerEntrypoint } from "cloudflare:workers";
3
3
 
4
+ //#region src/codemode/ai.d.ts
4
5
  declare class CodeModeProxy extends WorkerEntrypoint<Cloudflare.Env, {
5
- binding: string;
6
- name: string;
7
- callback: string;
6
+ binding: string;
7
+ name: string;
8
+ callback: string;
8
9
  }> {
9
- callFunction(options: {
10
- functionName: string;
11
- args: unknown[];
12
- }): Promise<any>;
10
+ callFunction(options: {
11
+ functionName: string;
12
+ args: unknown[];
13
+ }): Promise<any>;
13
14
  }
14
15
  declare function experimental_codemode(options: {
15
- tools: ToolSet;
16
- prompt: string;
17
- globalOutbound: Fetcher;
18
- loader: WorkerLoader;
19
- proxy: Fetcher<CodeModeProxy>;
16
+ tools: ToolSet;
17
+ prompt: string;
18
+ globalOutbound: Fetcher;
19
+ loader: WorkerLoader;
20
+ proxy: Fetcher<CodeModeProxy>;
20
21
  }): Promise<{
21
- prompt: string;
22
- tools: ToolSet;
22
+ prompt: string;
23
+ tools: ToolSet;
23
24
  }>;
24
-
25
+ //#endregion
25
26
  export { CodeModeProxy, experimental_codemode };
27
+ //# sourceMappingURL=ai.d.ts.map