agents 0.7.4 → 0.7.5
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/ai-chat-agent.js +3 -4
- package/dist/ai-chat-agent.js.map +1 -1
- package/dist/ai-chat-v5-migration.js +3 -4
- package/dist/ai-chat-v5-migration.js.map +1 -1
- package/dist/ai-react.js +3 -4
- package/dist/ai-react.js.map +1 -1
- package/dist/ai-types.js +1 -2
- package/dist/ai-types.js.map +1 -1
- package/dist/cli/index.js +2 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/client-CgXIwdcc.js +1442 -0
- package/dist/client-CgXIwdcc.js.map +1 -0
- package/dist/client.js +1 -2
- package/dist/client.js.map +1 -1
- package/dist/codemode/ai.js +2 -2
- package/dist/do-oauth-client-provider-C2jurFjW.d.ts +78 -0
- package/dist/email-U_MG7UET.d.ts +157 -0
- package/dist/email.d.ts +16 -146
- package/dist/email.js +2 -2
- package/dist/email.js.map +1 -1
- package/dist/experimental/forever.d.ts +26 -71
- package/dist/experimental/forever.js +1 -2
- package/dist/experimental/forever.js.map +1 -1
- package/dist/experimental/memory/session/index.js +3 -12
- package/dist/experimental/memory/session/index.js.map +1 -1
- package/dist/experimental/sub-agent.js +1 -2
- package/dist/experimental/sub-agent.js.map +1 -1
- package/dist/experimental/workspace.d.ts +273 -0
- package/dist/experimental/workspace.js +1263 -0
- package/dist/experimental/workspace.js.map +1 -0
- package/dist/index-BS_jL8MI.d.ts +492 -0
- package/dist/index-p1XLNvwQ.d.ts +2719 -0
- package/dist/index.d.ts +45 -1320
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/internal_context-DgcmHqS1.d.ts +37 -0
- package/dist/internal_context.d.ts +5 -32
- package/dist/internal_context.js +1 -2
- package/dist/internal_context.js.map +1 -1
- package/dist/mcp/client.d.ts +2 -575
- package/dist/mcp/client.js +1 -847
- package/dist/mcp/do-oauth-client-provider.d.ts +2 -61
- package/dist/mcp/do-oauth-client-provider.js +1 -2
- package/dist/mcp/do-oauth-client-provider.js.map +1 -1
- package/dist/mcp/index.d.ts +2 -95
- package/dist/mcp/index.js +2 -9
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/x402.js +1 -2
- package/dist/mcp/x402.js.map +1 -1
- package/dist/observability/index.d.ts +2 -93
- package/dist/observability/index.js +4 -3
- package/dist/observability/index.js.map +1 -1
- package/dist/react.d.ts +1 -2
- package/dist/react.js +1 -2
- package/dist/react.js.map +1 -1
- package/dist/retries-DXMQGhG3.d.ts +79 -0
- package/dist/retries.d.ts +7 -72
- package/dist/retries.js +1 -1
- package/dist/retries.js.map +1 -1
- package/dist/schedule.js +1 -2
- package/dist/schedule.js.map +1 -1
- package/dist/serializable.js +1 -1
- package/dist/types-BB1plA51.d.ts +15 -0
- package/dist/types.d.ts +1 -14
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/workflow-types-CZNXKj_D.d.ts +260 -0
- package/dist/workflow-types.d.ts +23 -235
- package/dist/workflow-types.js +1 -1
- package/dist/workflow-types.js.map +1 -1
- package/dist/workflows.d.ts +22 -23
- package/dist/workflows.js +5 -6
- package/dist/workflows.js.map +1 -1
- package/package.json +15 -5
- package/dist/agent-eZnMHidZ.d.ts +0 -273
- package/dist/client-connection-D3Wcd6Q6.js +0 -603
- package/dist/client-connection-D3Wcd6Q6.js.map +0 -1
- package/dist/client-storage-BPjfP_is.d.ts +0 -604
- package/dist/mcp/client.js.map +0 -1
package/dist/ai-chat-agent.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export * from "@cloudflare/ai-chat"
|
|
2
|
-
|
|
1
|
+
export * from "@cloudflare/ai-chat";
|
|
3
2
|
//#region src/ai-chat-agent.ts
|
|
4
3
|
console.log("All the AI Chat related modules are now in @cloudflare/ai-chat. This module is deprecated and will be removed in the next major version.");
|
|
5
|
-
|
|
6
4
|
//#endregion
|
|
7
|
-
export {
|
|
5
|
+
export {};
|
|
6
|
+
|
|
8
7
|
//# sourceMappingURL=ai-chat-agent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-chat-agent.js","names":[],"sources":["../src/ai-chat-agent.ts"],"sourcesContent":["export * from \"@cloudflare/ai-chat\";\n\nconsole.log(\n \"All the AI Chat related modules are now in @cloudflare/ai-chat. This module is deprecated and will be removed in the next major version.\"\n);\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-chat-agent.js","names":[],"sources":["../src/ai-chat-agent.ts"],"sourcesContent":["export * from \"@cloudflare/ai-chat\";\n\nconsole.log(\n \"All the AI Chat related modules are now in @cloudflare/ai-chat. This module is deprecated and will be removed in the next major version.\"\n);\n"],"mappings":";;AAEA,QAAQ,IACN,2IACD"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export * from "@cloudflare/ai-chat/ai-chat-v5-migration"
|
|
2
|
-
|
|
1
|
+
export * from "@cloudflare/ai-chat/ai-chat-v5-migration";
|
|
3
2
|
//#region src/ai-chat-v5-migration.ts
|
|
4
3
|
console.log("All the AI Chat related modules are now in @cloudflare/ai-chat. This module is deprecated and will be removed in the next major version.");
|
|
5
|
-
|
|
6
4
|
//#endregion
|
|
7
|
-
export {
|
|
5
|
+
export {};
|
|
6
|
+
|
|
8
7
|
//# sourceMappingURL=ai-chat-v5-migration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-chat-v5-migration.js","names":[],"sources":["../src/ai-chat-v5-migration.ts"],"sourcesContent":["export * from \"@cloudflare/ai-chat/ai-chat-v5-migration\";\n\nconsole.log(\n \"All the AI Chat related modules are now in @cloudflare/ai-chat. This module is deprecated and will be removed in the next major version.\"\n);\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-chat-v5-migration.js","names":[],"sources":["../src/ai-chat-v5-migration.ts"],"sourcesContent":["export * from \"@cloudflare/ai-chat/ai-chat-v5-migration\";\n\nconsole.log(\n \"All the AI Chat related modules are now in @cloudflare/ai-chat. This module is deprecated and will be removed in the next major version.\"\n);\n"],"mappings":";;AAEA,QAAQ,IACN,2IACD"}
|
package/dist/ai-react.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export * from "@cloudflare/ai-chat/react"
|
|
2
|
-
|
|
1
|
+
export * from "@cloudflare/ai-chat/react";
|
|
3
2
|
//#region src/ai-react.tsx
|
|
4
3
|
console.log("All the AI Chat related modules are now in @cloudflare/ai-chat. This module is deprecated and will be removed in the next major version.");
|
|
5
|
-
|
|
6
4
|
//#endregion
|
|
7
|
-
export {
|
|
5
|
+
export {};
|
|
6
|
+
|
|
8
7
|
//# sourceMappingURL=ai-react.js.map
|
package/dist/ai-react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-react.js","names":[],"sources":["../src/ai-react.tsx"],"sourcesContent":["export * from \"@cloudflare/ai-chat/react\";\n\nconsole.log(\n \"All the AI Chat related modules are now in @cloudflare/ai-chat. This module is deprecated and will be removed in the next major version.\"\n);\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-react.js","names":[],"sources":["../src/ai-react.tsx"],"sourcesContent":["export * from \"@cloudflare/ai-chat/react\";\n\nconsole.log(\n \"All the AI Chat related modules are now in @cloudflare/ai-chat. This module is deprecated and will be removed in the next major version.\"\n);\n"],"mappings":";;AAEA,QAAQ,IACN,2IACD"}
|
package/dist/ai-types.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { MessageType as MessageType$2 } from "./types.js";
|
|
2
2
|
import { MessageType as MessageType$1 } from "@cloudflare/ai-chat/types";
|
|
3
|
-
|
|
4
3
|
//#region src/ai-types.ts
|
|
5
4
|
const MessageType = {
|
|
6
5
|
...MessageType$1,
|
|
7
6
|
...MessageType$2
|
|
8
7
|
};
|
|
9
8
|
console.log("All the AI Chat related modules are now in @cloudflare/ai-chat. This module is deprecated and will be removed in the next major version.");
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
10
|
export { MessageType };
|
|
11
|
+
|
|
13
12
|
//# sourceMappingURL=ai-types.js.map
|
package/dist/ai-types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-types.js","names":["AiChatMessageType","AgentsMessageType"],"sources":["../src/ai-types.ts"],"sourcesContent":["import { MessageType as AgentsMessageType } from \"./types\";\nimport {\n MessageType as AiChatMessageType,\n type IncomingMessage,\n type OutgoingMessage\n} from \"@cloudflare/ai-chat/types\";\n\nexport type { IncomingMessage, OutgoingMessage };\nexport const MessageType = {\n ...AiChatMessageType,\n ...AgentsMessageType\n};\n\nconsole.log(\n \"All the AI Chat related modules are now in @cloudflare/ai-chat. This module is deprecated and will be removed in the next major version.\"\n);\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai-types.js","names":["AiChatMessageType","AgentsMessageType"],"sources":["../src/ai-types.ts"],"sourcesContent":["import { MessageType as AgentsMessageType } from \"./types\";\nimport {\n MessageType as AiChatMessageType,\n type IncomingMessage,\n type OutgoingMessage\n} from \"@cloudflare/ai-chat/types\";\n\nexport type { IncomingMessage, OutgoingMessage };\nexport const MessageType = {\n ...AiChatMessageType,\n ...AgentsMessageType\n};\n\nconsole.log(\n \"All the AI Chat related modules are now in @cloudflare/ai-chat. This module is deprecated and will be removed in the next major version.\"\n);\n"],"mappings":";;;AAQA,MAAa,cAAc;CACzB,GAAGA;CACH,GAAGC;CACJ;AAED,QAAQ,IACN,2IACD"}
|
package/dist/cli/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import yargs from "yargs";
|
|
3
3
|
import { hideBin } from "yargs/helpers";
|
|
4
|
-
|
|
5
4
|
//#region src/cli/create.ts
|
|
6
5
|
function createCli(argv = process.argv) {
|
|
7
6
|
return yargs(hideBin(argv)).scriptName("agents").usage("$0 <command> [options]").command(["init", "create"], "Initialize an agents project", (cmd) => cmd, async () => {
|
|
@@ -18,11 +17,10 @@ function createCli(argv = process.argv) {
|
|
|
18
17
|
process.exit(0);
|
|
19
18
|
}).demandCommand(1, "Please provide a command").strict().help();
|
|
20
19
|
}
|
|
21
|
-
|
|
22
20
|
//#endregion
|
|
23
21
|
//#region src/cli/index.ts
|
|
24
22
|
createCli().parse();
|
|
25
|
-
|
|
26
23
|
//#endregion
|
|
27
|
-
export {
|
|
24
|
+
export {};
|
|
25
|
+
|
|
28
26
|
//# sourceMappingURL=index.js.map
|
package/dist/cli/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/cli/create.ts","../../src/cli/index.ts"],"sourcesContent":["import yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\n\nexport function createCli(argv = process.argv) {\n return yargs(hideBin(argv))\n .scriptName(\"agents\")\n .usage(\"$0 <command> [options]\")\n .command(\n [\"init\", \"create\"],\n \"Initialize an agents project\",\n (cmd) => cmd,\n async () => {\n console.log(\"agents init: not implemented yet\");\n process.exit(0);\n }\n )\n .command(\n \"dev\",\n \"Start development server\",\n (cmd) => cmd,\n async () => {\n console.log(\"agents dev: not implemented yet\");\n process.exit(0);\n }\n )\n .command(\n \"deploy\",\n \"Deploy agents to Cloudflare\",\n (cmd) => cmd,\n async () => {\n console.log(\"agents deploy: not implemented yet\");\n process.exit(0);\n }\n )\n .command(\n \"mcp\",\n \"The agents mcp server\",\n (cmd) => cmd,\n async () => {\n console.log(\"agents mcp: not implemented yet\");\n process.exit(0);\n }\n )\n .demandCommand(1, \"Please provide a command\")\n .strict()\n .help();\n}\n","#!/usr/bin/env node\n\nimport { createCli } from \"./create\";\n\nvoid createCli().parse();\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/cli/create.ts","../../src/cli/index.ts"],"sourcesContent":["import yargs from \"yargs\";\nimport { hideBin } from \"yargs/helpers\";\n\nexport function createCli(argv = process.argv) {\n return yargs(hideBin(argv))\n .scriptName(\"agents\")\n .usage(\"$0 <command> [options]\")\n .command(\n [\"init\", \"create\"],\n \"Initialize an agents project\",\n (cmd) => cmd,\n async () => {\n console.log(\"agents init: not implemented yet\");\n process.exit(0);\n }\n )\n .command(\n \"dev\",\n \"Start development server\",\n (cmd) => cmd,\n async () => {\n console.log(\"agents dev: not implemented yet\");\n process.exit(0);\n }\n )\n .command(\n \"deploy\",\n \"Deploy agents to Cloudflare\",\n (cmd) => cmd,\n async () => {\n console.log(\"agents deploy: not implemented yet\");\n process.exit(0);\n }\n )\n .command(\n \"mcp\",\n \"The agents mcp server\",\n (cmd) => cmd,\n async () => {\n console.log(\"agents mcp: not implemented yet\");\n process.exit(0);\n }\n )\n .demandCommand(1, \"Please provide a command\")\n .strict()\n .help();\n}\n","#!/usr/bin/env node\n\nimport { createCli } from \"./create\";\n\nvoid createCli().parse();\n"],"mappings":";;;;AAGA,SAAgB,UAAU,OAAO,QAAQ,MAAM;AAC7C,QAAO,MAAM,QAAQ,KAAK,CAAC,CACxB,WAAW,SAAS,CACpB,MAAM,yBAAyB,CAC/B,QACC,CAAC,QAAQ,SAAS,EAClB,iCACC,QAAQ,KACT,YAAY;AACV,UAAQ,IAAI,mCAAmC;AAC/C,UAAQ,KAAK,EAAE;GAElB,CACA,QACC,OACA,6BACC,QAAQ,KACT,YAAY;AACV,UAAQ,IAAI,kCAAkC;AAC9C,UAAQ,KAAK,EAAE;GAElB,CACA,QACC,UACA,gCACC,QAAQ,KACT,YAAY;AACV,UAAQ,IAAI,qCAAqC;AACjD,UAAQ,KAAK,EAAE;GAElB,CACA,QACC,OACA,0BACC,QAAQ,KACT,YAAY;AACV,UAAQ,IAAI,kCAAkC;AAC9C,UAAQ,KAAK,EAAE;GAElB,CACA,cAAc,GAAG,2BAA2B,CAC5C,QAAQ,CACR,MAAM;;;;ACzCN,WAAW,CAAC,OAAO"}
|