agents 0.0.0-4100b67 → 0.0.0-415bc49
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/README.md +255 -27
- package/dist/_esm-LV5FJ3HK.js +3922 -0
- package/dist/_esm-LV5FJ3HK.js.map +1 -0
- package/dist/ai-chat-agent.d.ts +14 -9
- package/dist/ai-chat-agent.js +482 -60
- package/dist/ai-chat-agent.js.map +1 -1
- package/dist/ai-chat-v5-migration.d.ts +152 -0
- package/dist/ai-chat-v5-migration.js +20 -0
- package/dist/ai-chat-v5-migration.js.map +1 -0
- package/dist/ai-react.d.ts +71 -72
- package/dist/ai-react.js +260 -107
- package/dist/ai-react.js.map +1 -1
- package/dist/ai-types.d.ts +37 -19
- package/dist/ai-types.js +7 -0
- package/dist/ccip-CMBYN64O.js +15 -0
- package/dist/ccip-CMBYN64O.js.map +1 -0
- package/dist/chunk-5Y6BEZDY.js +276 -0
- package/dist/chunk-5Y6BEZDY.js.map +1 -0
- package/dist/chunk-BER7KXUJ.js +18 -0
- package/dist/chunk-BER7KXUJ.js.map +1 -0
- package/dist/chunk-C7A6TT6J.js +1343 -0
- package/dist/chunk-C7A6TT6J.js.map +1 -0
- package/dist/chunk-JJBFIGUC.js +5202 -0
- package/dist/chunk-JJBFIGUC.js.map +1 -0
- package/dist/chunk-PR4QN5HX.js +43 -0
- package/dist/chunk-PR4QN5HX.js.map +1 -0
- package/dist/{chunk-QSGN3REV.js → chunk-QEVM4BVL.js} +10 -17
- package/dist/chunk-QEVM4BVL.js.map +1 -0
- package/dist/chunk-RML2RHKS.js +941 -0
- package/dist/chunk-RML2RHKS.js.map +1 -0
- package/dist/chunk-TYAY6AU6.js +159 -0
- package/dist/chunk-TYAY6AU6.js.map +1 -0
- package/dist/chunk-UJVEAURM.js +150 -0
- package/dist/chunk-UJVEAURM.js.map +1 -0
- package/dist/{chunk-BZXOAZUX.js → chunk-Z44WASMA.js} +14 -6
- package/dist/chunk-Z44WASMA.js.map +1 -0
- package/dist/client-DVoPb3-C.d.ts +5120 -0
- package/dist/client.d.ts +8 -2
- package/dist/client.js +3 -1
- package/dist/codemode/ai.d.ts +25 -0
- package/dist/codemode/ai.js +5109 -0
- package/dist/codemode/ai.js.map +1 -0
- package/dist/index.d.ts +204 -51
- package/dist/index.js +14 -4
- package/dist/mcp/client.d.ts +10 -781
- package/dist/mcp/client.js +2 -1
- package/dist/mcp/do-oauth-client-provider.d.ts +1 -0
- package/dist/mcp/do-oauth-client-provider.js +2 -1
- package/dist/mcp/index.d.ts +59 -64
- package/dist/mcp/index.js +957 -637
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/x402.d.ts +39 -0
- package/dist/mcp/x402.js +3195 -0
- package/dist/mcp/x402.js.map +1 -0
- package/dist/mcp-BH1fJeiU.d.ts +58 -0
- package/dist/observability/index.d.ts +34 -0
- package/dist/observability/index.js +12 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/react.d.ts +69 -43
- package/dist/react.js +121 -11
- package/dist/react.js.map +1 -1
- package/dist/schedule.d.ts +81 -7
- package/dist/schedule.js +21 -6
- package/dist/schedule.js.map +1 -1
- package/dist/secp256k1-M22GZP2U.js +2193 -0
- package/dist/secp256k1-M22GZP2U.js.map +1 -0
- package/dist/serializable.d.ts +32 -0
- package/dist/serializable.js +1 -0
- package/dist/serializable.js.map +1 -0
- package/package.json +98 -71
- package/src/index.ts +1010 -223
- package/dist/chunk-4ARKO5R4.js +0 -781
- package/dist/chunk-4ARKO5R4.js.map +0 -1
- package/dist/chunk-BZXOAZUX.js.map +0 -1
- package/dist/chunk-QSGN3REV.js.map +0 -1
- package/dist/chunk-Y67CHZBI.js +0 -464
- 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
|
@@ -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 };
|