experimental-agent 0.2.1 → 0.3.0

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 (71) hide show
  1. package/README.md +55 -254
  2. package/dist/adapter-BigchkkI.d.mts +201 -0
  3. package/dist/adapter-BigchkkI.d.ts +201 -0
  4. package/dist/chunk-BFFNCESS.mjs +302 -0
  5. package/dist/chunk-C4VSUEY2.mjs +72 -0
  6. package/dist/chunk-DOD4MC5D.mjs +196 -0
  7. package/dist/chunk-ELWIUJUK.mjs +96 -0
  8. package/dist/chunk-GKASMIBR.mjs +50 -0
  9. package/dist/chunk-JO3JDCH5.mjs +107 -0
  10. package/dist/chunk-MSWINCCM.mjs +128 -0
  11. package/dist/chunk-RT72C52I.mjs +324 -0
  12. package/dist/chunk-ZUFJJYC4.mjs +150 -0
  13. package/dist/{handler-FRUPZ4LX.mjs → docker-QPCLWLYR.mjs} +3 -4
  14. package/dist/entry-BmQ8FO-5.d.ts +36 -0
  15. package/dist/entry-CZd9aAwn.d.mts +36 -0
  16. package/dist/index.d.mts +415 -18
  17. package/dist/index.d.ts +415 -18
  18. package/dist/index.js +3036 -5494
  19. package/dist/index.mjs +3264 -1142
  20. package/dist/lifecycle-workflow-steps.d.mts +5 -0
  21. package/dist/lifecycle-workflow-steps.d.ts +5 -0
  22. package/dist/lifecycle-workflow-steps.js +263 -0
  23. package/dist/lifecycle-workflow-steps.mjs +9 -0
  24. package/dist/lifecycle-workflow.d.mts +6 -6
  25. package/dist/lifecycle-workflow.d.ts +6 -6
  26. package/dist/lifecycle-workflow.js +192 -905
  27. package/dist/lifecycle-workflow.mjs +3 -1
  28. package/dist/local-KJ3BSIFJ.mjs +8 -0
  29. package/dist/next/loader.d.mts +1 -0
  30. package/dist/next/loader.d.ts +1 -0
  31. package/dist/next/loader.js +44 -18
  32. package/dist/next/loader.mjs +18 -13
  33. package/dist/next.js +32 -9
  34. package/dist/next.mjs +6 -4
  35. package/dist/{process-manager-JDUJDYGU.mjs → process-manager-WQHAIVRB.mjs} +1 -1
  36. package/dist/sandbox.d.mts +6 -0
  37. package/dist/sandbox.d.ts +6 -0
  38. package/dist/sandbox.js +1070 -0
  39. package/dist/sandbox.mjs +19 -0
  40. package/dist/steps-BnkRQKlc.d.ts +173 -0
  41. package/dist/steps-u-mGDbP_.d.mts +173 -0
  42. package/dist/storage.d.mts +11 -0
  43. package/dist/storage.d.ts +11 -0
  44. package/dist/storage.js +234 -0
  45. package/dist/storage.mjs +12 -0
  46. package/dist/vercel-QZ6INPMV.mjs +11 -0
  47. package/package.json +26 -5
  48. package/dist/agent-workflow.d.mts +0 -30
  49. package/dist/agent-workflow.d.ts +0 -30
  50. package/dist/agent-workflow.js +0 -5433
  51. package/dist/agent-workflow.mjs +0 -14
  52. package/dist/chunk-AML2VCQS.mjs +0 -1287
  53. package/dist/chunk-FQ67QZOI.mjs +0 -75
  54. package/dist/chunk-NO7RHGTH.mjs +0 -2367
  55. package/dist/chunk-NXDVNJRS.mjs +0 -106
  56. package/dist/chunk-OZZVS6L5.mjs +0 -139
  57. package/dist/chunk-QRWGDFFY.mjs +0 -75
  58. package/dist/chunk-SJVFFE5D.mjs +0 -402
  59. package/dist/chunk-TAXLUVIC.mjs +0 -1
  60. package/dist/chunk-TGNVXSMX.mjs +0 -399
  61. package/dist/chunk-YRYXN7W4.mjs +0 -48
  62. package/dist/chunk-ZIAHPXOJ.mjs +0 -595
  63. package/dist/client-BKA7XBGW.mjs +0 -15
  64. package/dist/client-CEeSFGva.d.mts +0 -2376
  65. package/dist/client-CEeSFGva.d.ts +0 -2376
  66. package/dist/docker-FB2MJTHJ.mjs +0 -12
  67. package/dist/local-fs-handlers-SYOCKTPN.mjs +0 -447
  68. package/dist/sandbox-UENKQV3T.mjs +0 -21
  69. package/dist/storage-LSDMRW73.mjs +0 -20
  70. package/dist/vercel-SD3JTECG.mjs +0 -20
  71. package/dist/vercel-sdk-I6A4MVAN.mjs +0 -8
@@ -0,0 +1,11 @@
1
+ import {
2
+ vercelSandbox
3
+ } from "./chunk-RT72C52I.mjs";
4
+ import "./chunk-GKASMIBR.mjs";
5
+ import "./chunk-JO3JDCH5.mjs";
6
+ import "./chunk-MSWINCCM.mjs";
7
+ import "./chunk-BJTO5JO5.mjs";
8
+ export {
9
+ vercelSandbox
10
+ };
11
+ //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFtdLAogICJzb3VyY2VzQ29udGVudCI6IFtdLAogICJtYXBwaW5ncyI6ICIiLAogICJuYW1lcyI6IFtdCn0K
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "experimental-agent",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -15,6 +15,16 @@
15
15
  "import": "./dist/index.mjs",
16
16
  "require": "./dist/index.js"
17
17
  },
18
+ "./storage": {
19
+ "types": "./dist/storage.d.ts",
20
+ "import": "./dist/storage.mjs",
21
+ "require": "./dist/storage.js"
22
+ },
23
+ "./sandbox": {
24
+ "types": "./dist/sandbox.d.ts",
25
+ "import": "./dist/sandbox.mjs",
26
+ "require": "./dist/sandbox.js"
27
+ },
18
28
  "./next": {
19
29
  "types": "./dist/next.d.ts",
20
30
  "import": "./dist/next.mjs",
@@ -29,15 +39,26 @@
29
39
  "types": "./dist/client.d.ts",
30
40
  "import": "./dist/client.mjs",
31
41
  "require": "./dist/client.js"
42
+ },
43
+ "./lifecycle-workflow": {
44
+ "types": "./dist/lifecycle-workflow.d.ts",
45
+ "import": "./dist/lifecycle-workflow.mjs",
46
+ "require": "./dist/lifecycle-workflow.js"
47
+ },
48
+ "./lifecycle-workflow-steps": {
49
+ "types": "./dist/lifecycle-workflow-steps.d.ts",
50
+ "import": "./dist/lifecycle-workflow-steps.mjs",
51
+ "require": "./dist/lifecycle-workflow-steps.js"
32
52
  }
33
53
  },
34
54
  "dependencies": {
35
55
  "@swc/core": "^1.10.0",
36
56
  "@vercel/oidc": "^3.1.0",
57
+ "@vercel/sandbox": "1.7.1",
58
+ "@workflow/serde": "4.1.0-beta.2",
37
59
  "better-all": "^0.0.5",
38
- "errore": "^0.8.2",
60
+ "errore": "^0.14.0",
39
61
  "fast-deep-equal": "^3.1.3",
40
- "@vercel/sandbox": "1.7.1",
41
62
  "ulid": "^3.0.2",
42
63
  "zod": "^4.3.6"
43
64
  },
@@ -48,11 +69,11 @@
48
69
  "tsup": "^8.0.2",
49
70
  "typescript": "5.5.4",
50
71
  "vitest": "^3.0.0",
72
+ "workflow": "4.1.0-beta.60",
51
73
  "@agent/tsconfig": "0.0.0"
52
74
  },
53
75
  "peerDependencies": {
54
- "ai": "^6.0.0",
55
- "workflow": "*"
76
+ "ai": "^6.0.0"
56
77
  },
57
78
  "publishConfig": {
58
79
  "access": "public"
@@ -1,30 +0,0 @@
1
- import * as workflow from 'workflow';
2
- import { w as StorageConfig, h as RpcPayload, i as RpcResult } from './client-CEeSFGva.mjs';
3
- import 'errore';
4
- import 'ai';
5
- import 'zod';
6
- import '@vercel/sandbox';
7
-
8
- type AgentInput = {
9
- sessionId: string;
10
- storageConfig: StorageConfig;
11
- rpc: (params: RpcPayload) => Promise<RpcResult>;
12
- };
13
- type AgentMessageInput = {
14
- assistantMessageId: string;
15
- hookToken: string;
16
- createdAt: number;
17
- context: Record<string, unknown>;
18
- };
19
- type ApprovalResponse = {
20
- approved: boolean;
21
- reason?: string;
22
- };
23
- declare const agentMessageHook: workflow.TypedHook<AgentMessageInput, AgentMessageInput>;
24
- declare const approvalHook: workflow.TypedHook<ApprovalResponse, ApprovalResponse>;
25
- declare function agentWorkflow({ input, event, }: {
26
- input: AgentInput;
27
- event: AgentMessageInput;
28
- }): Promise<void>;
29
-
30
- export { type AgentInput, type AgentMessageInput, type ApprovalResponse, agentMessageHook, agentWorkflow, approvalHook };
@@ -1,30 +0,0 @@
1
- import * as workflow from 'workflow';
2
- import { w as StorageConfig, h as RpcPayload, i as RpcResult } from './client-CEeSFGva.js';
3
- import 'errore';
4
- import 'ai';
5
- import 'zod';
6
- import '@vercel/sandbox';
7
-
8
- type AgentInput = {
9
- sessionId: string;
10
- storageConfig: StorageConfig;
11
- rpc: (params: RpcPayload) => Promise<RpcResult>;
12
- };
13
- type AgentMessageInput = {
14
- assistantMessageId: string;
15
- hookToken: string;
16
- createdAt: number;
17
- context: Record<string, unknown>;
18
- };
19
- type ApprovalResponse = {
20
- approved: boolean;
21
- reason?: string;
22
- };
23
- declare const agentMessageHook: workflow.TypedHook<AgentMessageInput, AgentMessageInput>;
24
- declare const approvalHook: workflow.TypedHook<ApprovalResponse, ApprovalResponse>;
25
- declare function agentWorkflow({ input, event, }: {
26
- input: AgentInput;
27
- event: AgentMessageInput;
28
- }): Promise<void>;
29
-
30
- export { type AgentInput, type AgentMessageInput, type ApprovalResponse, agentMessageHook, agentWorkflow, approvalHook };