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.
- package/README.md +55 -254
- package/dist/adapter-BigchkkI.d.mts +201 -0
- package/dist/adapter-BigchkkI.d.ts +201 -0
- package/dist/chunk-BFFNCESS.mjs +302 -0
- package/dist/chunk-C4VSUEY2.mjs +72 -0
- package/dist/chunk-DOD4MC5D.mjs +196 -0
- package/dist/chunk-ELWIUJUK.mjs +96 -0
- package/dist/chunk-GKASMIBR.mjs +50 -0
- package/dist/chunk-JO3JDCH5.mjs +107 -0
- package/dist/chunk-MSWINCCM.mjs +128 -0
- package/dist/chunk-RT72C52I.mjs +324 -0
- package/dist/chunk-ZUFJJYC4.mjs +150 -0
- package/dist/{handler-FRUPZ4LX.mjs → docker-QPCLWLYR.mjs} +3 -4
- package/dist/entry-BmQ8FO-5.d.ts +36 -0
- package/dist/entry-CZd9aAwn.d.mts +36 -0
- package/dist/index.d.mts +415 -18
- package/dist/index.d.ts +415 -18
- package/dist/index.js +3036 -5494
- package/dist/index.mjs +3264 -1142
- package/dist/lifecycle-workflow-steps.d.mts +5 -0
- package/dist/lifecycle-workflow-steps.d.ts +5 -0
- package/dist/lifecycle-workflow-steps.js +263 -0
- package/dist/lifecycle-workflow-steps.mjs +9 -0
- package/dist/lifecycle-workflow.d.mts +6 -6
- package/dist/lifecycle-workflow.d.ts +6 -6
- package/dist/lifecycle-workflow.js +192 -905
- package/dist/lifecycle-workflow.mjs +3 -1
- package/dist/local-KJ3BSIFJ.mjs +8 -0
- package/dist/next/loader.d.mts +1 -0
- package/dist/next/loader.d.ts +1 -0
- package/dist/next/loader.js +44 -18
- package/dist/next/loader.mjs +18 -13
- package/dist/next.js +32 -9
- package/dist/next.mjs +6 -4
- package/dist/{process-manager-JDUJDYGU.mjs → process-manager-WQHAIVRB.mjs} +1 -1
- package/dist/sandbox.d.mts +6 -0
- package/dist/sandbox.d.ts +6 -0
- package/dist/sandbox.js +1070 -0
- package/dist/sandbox.mjs +19 -0
- package/dist/steps-BnkRQKlc.d.ts +173 -0
- package/dist/steps-u-mGDbP_.d.mts +173 -0
- package/dist/storage.d.mts +11 -0
- package/dist/storage.d.ts +11 -0
- package/dist/storage.js +234 -0
- package/dist/storage.mjs +12 -0
- package/dist/vercel-QZ6INPMV.mjs +11 -0
- package/package.json +26 -5
- package/dist/agent-workflow.d.mts +0 -30
- package/dist/agent-workflow.d.ts +0 -30
- package/dist/agent-workflow.js +0 -5433
- package/dist/agent-workflow.mjs +0 -14
- package/dist/chunk-AML2VCQS.mjs +0 -1287
- package/dist/chunk-FQ67QZOI.mjs +0 -75
- package/dist/chunk-NO7RHGTH.mjs +0 -2367
- package/dist/chunk-NXDVNJRS.mjs +0 -106
- package/dist/chunk-OZZVS6L5.mjs +0 -139
- package/dist/chunk-QRWGDFFY.mjs +0 -75
- package/dist/chunk-SJVFFE5D.mjs +0 -402
- package/dist/chunk-TAXLUVIC.mjs +0 -1
- package/dist/chunk-TGNVXSMX.mjs +0 -399
- package/dist/chunk-YRYXN7W4.mjs +0 -48
- package/dist/chunk-ZIAHPXOJ.mjs +0 -595
- package/dist/client-BKA7XBGW.mjs +0 -15
- package/dist/client-CEeSFGva.d.mts +0 -2376
- package/dist/client-CEeSFGva.d.ts +0 -2376
- package/dist/docker-FB2MJTHJ.mjs +0 -12
- package/dist/local-fs-handlers-SYOCKTPN.mjs +0 -447
- package/dist/sandbox-UENKQV3T.mjs +0 -21
- package/dist/storage-LSDMRW73.mjs +0 -20
- package/dist/vercel-SD3JTECG.mjs +0 -20
- 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.
|
|
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.
|
|
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 };
|
package/dist/agent-workflow.d.ts
DELETED
|
@@ -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 };
|