@parcha/agentrun-computer 0.1.0-beta.34 → 0.1.0-beta.36
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 +251 -46
- package/box/Dockerfile +3 -1
- package/box/agentrun-archil +59 -7
- package/box/build-daytona.py +20 -4
- package/dist/browser.d.ts +73 -23
- package/dist/browser.js +141 -17
- package/dist/browserbase.d.ts +48 -25
- package/dist/browserbase.js +176 -29
- package/dist/chrome.d.ts +3 -4
- package/dist/chrome.js +6 -11
- package/dist/computerd-linux-amd64 +0 -0
- package/dist/computerd-linux-arm64 +0 -0
- package/dist/conformance/browserbase.js +1 -1
- package/dist/conformance/cases/provider.js +78 -3
- package/dist/conformance/daytona.d.ts +4 -0
- package/dist/conformance/daytona.js +7 -1
- package/dist/conformance/e2b.js +2 -1
- package/dist/conformance/fixture.js +24 -2
- package/dist/conformance/kernel.js +1 -1
- package/dist/conformance/kind.js +2 -1
- package/dist/conformance/{local.d.ts → local-chrome.d.ts} +7 -7
- package/dist/conformance/{local.js → local-chrome.js} +11 -11
- package/dist/conformance/orgo.d.ts +11 -5
- package/dist/conformance/orgo.js +37 -8
- package/dist/conformance/phone-harness.js +2 -1
- package/dist/conformance/report.js +3 -2
- package/dist/conformance/runner.js +25 -7
- package/dist/conformance/types.d.ts +21 -8
- package/dist/conformance/types.js +10 -0
- package/dist/conformance/windows-fixture.d.ts +1 -0
- package/dist/conformance/windows-fixture.js +37 -0
- package/dist/daytona.d.ts +16 -35
- package/dist/daytona.js +87 -95
- package/dist/descriptor.d.ts +116 -0
- package/dist/descriptor.js +92 -0
- package/dist/descriptors/browserbase.d.ts +25 -0
- package/dist/descriptors/browserbase.js +20 -0
- package/dist/descriptors/daytona.d.ts +83 -0
- package/dist/descriptors/daytona.js +81 -0
- package/dist/descriptors/docker.d.ts +12 -0
- package/dist/descriptors/docker.js +17 -0
- package/dist/descriptors/e2b.d.ts +22 -0
- package/dist/descriptors/e2b.js +19 -0
- package/dist/descriptors/index.d.ts +256 -0
- package/dist/descriptors/index.js +19 -0
- package/dist/descriptors/kernel.d.ts +21 -0
- package/dist/descriptors/kernel.js +17 -0
- package/dist/descriptors/local-chrome.d.ts +17 -0
- package/dist/descriptors/local-chrome.js +21 -0
- package/dist/descriptors/modal.d.ts +54 -0
- package/dist/descriptors/modal.js +48 -0
- package/dist/descriptors/orgo.d.ts +99 -0
- package/dist/descriptors/orgo.js +49 -0
- package/dist/descriptors/phone-harness.d.ts +33 -0
- package/dist/descriptors/phone-harness.js +23 -0
- package/dist/descriptors/shared.d.ts +7 -0
- package/dist/descriptors/shared.js +6 -0
- package/dist/desktop.d.ts +4 -4
- package/dist/desktop.js +4 -4
- package/dist/docker/egress.d.ts +5 -4
- package/dist/docker/egress.js +7 -6
- package/dist/docker/image.js +17 -15
- package/dist/docker/inspect.d.ts +147 -0
- package/dist/docker/inspect.js +335 -0
- package/dist/docker.d.ts +6 -6
- package/dist/docker.js +53 -47
- package/dist/drift.d.ts +3 -145
- package/dist/drift.js +5 -334
- package/dist/e2b.d.ts +2 -8
- package/dist/e2b.js +17 -23
- package/dist/index.d.ts +9 -12
- package/dist/index.js +14 -12
- package/dist/isolation.js +2 -2
- package/dist/janitor.d.ts +20 -2
- package/dist/janitor.js +67 -19
- package/dist/kernel.d.ts +19 -29
- package/dist/kernel.js +110 -32
- package/dist/kinds.d.ts +59 -34
- package/dist/kinds.js +19 -117
- package/dist/labels.d.ts +20 -0
- package/dist/labels.js +62 -1
- package/dist/{local.d.ts → local-chrome.d.ts} +8 -9
- package/dist/{local.js → local-chrome.js} +26 -19
- package/dist/local-supervisor.d.ts +3 -3
- package/dist/local-supervisor.js +3 -3
- package/dist/modal.d.ts +6 -25
- package/dist/modal.js +86 -88
- package/dist/mount-archil.d.ts +25 -3
- package/dist/mount-archil.js +43 -12
- package/dist/orgo-channel.js +16 -13
- package/dist/orgo-desktop.d.ts +162 -0
- package/dist/orgo-desktop.js +1856 -0
- package/dist/orgo-names.d.ts +178 -0
- package/dist/orgo-names.js +287 -0
- package/dist/orgo.d.ts +34 -20
- package/dist/orgo.js +424 -173
- package/dist/phone-harness.d.ts +7 -12
- package/dist/phone-harness.js +70 -54
- package/dist/protocol.d.ts +5 -0
- package/dist/provider.d.ts +153 -10
- package/dist/provider.js +48 -1
- package/dist/providers.d.ts +23 -24
- package/dist/providers.js +14 -17
- package/dist/result.d.ts +11 -1
- package/dist/result.js +11 -0
- package/dist/test-connection.js +2 -2
- package/package.json +42 -2
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { BROWSERBASE } from "./browserbase.js";
|
|
2
|
+
import { DAYTONA } from "./daytona.js";
|
|
3
|
+
import { DOCKER } from "./docker.js";
|
|
4
|
+
import { E2B } from "./e2b.js";
|
|
5
|
+
import { KERNEL } from "./kernel.js";
|
|
6
|
+
import { LOCAL } from "./local-chrome.js";
|
|
7
|
+
import { MODAL } from "./modal.js";
|
|
8
|
+
import { ORGO } from "./orgo.js";
|
|
9
|
+
import { PHONE_HARNESS } from "./phone-harness.js";
|
|
10
|
+
export declare const DESCRIPTORS: readonly [{
|
|
11
|
+
readonly id: "docker";
|
|
12
|
+
readonly label: "Docker";
|
|
13
|
+
readonly keys: readonly [];
|
|
14
|
+
readonly metered: false;
|
|
15
|
+
readonly mounts: readonly ["bind"];
|
|
16
|
+
readonly network: readonly ["none", "open", "allow"];
|
|
17
|
+
readonly capabilities: readonly [import("../kinds.js").KindCapabilities, import("../kinds.js").KindCapabilities];
|
|
18
|
+
readonly prepareImage: true;
|
|
19
|
+
readonly local: true;
|
|
20
|
+
readonly load: () => Promise<typeof import("../docker.js")>;
|
|
21
|
+
}, {
|
|
22
|
+
readonly id: "daytona";
|
|
23
|
+
readonly label: "Daytona";
|
|
24
|
+
readonly keys: readonly [{
|
|
25
|
+
readonly name: "DAYTONA_API_KEY";
|
|
26
|
+
readonly option: "apiKey";
|
|
27
|
+
readonly required: true;
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "DAYTONA_API_URL";
|
|
30
|
+
readonly option: "apiUrl";
|
|
31
|
+
readonly required: false;
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "DAYTONA_TARGET";
|
|
34
|
+
readonly option: "target";
|
|
35
|
+
readonly required: false;
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "DAYTONA_ARCHIL_EGRESS";
|
|
38
|
+
readonly option: "archilEgress";
|
|
39
|
+
readonly required: false;
|
|
40
|
+
}];
|
|
41
|
+
readonly metered: true;
|
|
42
|
+
readonly mounts: readonly ["archil"];
|
|
43
|
+
readonly network: readonly ["none"];
|
|
44
|
+
readonly capabilities: readonly [{
|
|
45
|
+
readonly gpu: Readonly<import("../provider.js").GpuCapability>;
|
|
46
|
+
readonly kind: import("../protocol.js").ComputerKind;
|
|
47
|
+
readonly groups: import("../protocol.js").Group[];
|
|
48
|
+
readonly persistence?: {
|
|
49
|
+
keepsState: true;
|
|
50
|
+
resume: boolean;
|
|
51
|
+
};
|
|
52
|
+
readonly image?: string;
|
|
53
|
+
readonly options?: Readonly<Record<string, unknown>>;
|
|
54
|
+
}];
|
|
55
|
+
readonly defaultImage: {
|
|
56
|
+
readonly sandbox: "default";
|
|
57
|
+
};
|
|
58
|
+
readonly imageEnv: "AGENTRUN_DAYTONA_SNAPSHOT";
|
|
59
|
+
readonly load: () => Promise<typeof import("../daytona.js")>;
|
|
60
|
+
}, {
|
|
61
|
+
readonly id: "modal";
|
|
62
|
+
readonly label: "Modal";
|
|
63
|
+
readonly keys: readonly [{
|
|
64
|
+
readonly name: "MODAL_TOKEN_ID";
|
|
65
|
+
readonly option: "tokenId";
|
|
66
|
+
readonly required: true;
|
|
67
|
+
}, {
|
|
68
|
+
readonly name: "MODAL_TOKEN_SECRET";
|
|
69
|
+
readonly option: "tokenSecret";
|
|
70
|
+
readonly required: true;
|
|
71
|
+
}];
|
|
72
|
+
readonly settings: readonly [{
|
|
73
|
+
readonly name: "modalApp";
|
|
74
|
+
readonly option: "app";
|
|
75
|
+
readonly default: "agentrun";
|
|
76
|
+
}];
|
|
77
|
+
readonly metered: true;
|
|
78
|
+
readonly mounts: readonly ["archil"];
|
|
79
|
+
readonly network: readonly ["none"];
|
|
80
|
+
readonly capabilities: readonly [{
|
|
81
|
+
readonly gpu: Readonly<import("../provider.js").GpuCapability>;
|
|
82
|
+
readonly kind: import("../protocol.js").ComputerKind;
|
|
83
|
+
readonly groups: import("../protocol.js").Group[];
|
|
84
|
+
readonly persistence?: {
|
|
85
|
+
keepsState: true;
|
|
86
|
+
resume: boolean;
|
|
87
|
+
};
|
|
88
|
+
readonly image?: string;
|
|
89
|
+
readonly options?: Readonly<Record<string, unknown>>;
|
|
90
|
+
}];
|
|
91
|
+
readonly defaultImage: {
|
|
92
|
+
readonly sandbox: "debian:bookworm-slim";
|
|
93
|
+
};
|
|
94
|
+
readonly load: () => Promise<typeof import("../modal.js")>;
|
|
95
|
+
}, {
|
|
96
|
+
readonly id: "e2b";
|
|
97
|
+
readonly label: "E2B";
|
|
98
|
+
readonly keys: readonly [{
|
|
99
|
+
readonly name: "E2B_API_KEY";
|
|
100
|
+
readonly option: "apiKey";
|
|
101
|
+
readonly required: true;
|
|
102
|
+
}];
|
|
103
|
+
readonly metered: true;
|
|
104
|
+
readonly mounts: readonly ["archil"];
|
|
105
|
+
readonly network: readonly ["none"];
|
|
106
|
+
readonly capabilities: readonly [import("../kinds.js").KindCapabilities, import("../kinds.js").KindCapabilities];
|
|
107
|
+
readonly defaultImage: {
|
|
108
|
+
readonly sandbox: "base";
|
|
109
|
+
readonly desktop: "desktop";
|
|
110
|
+
};
|
|
111
|
+
readonly load: () => Promise<typeof import("../e2b.js")>;
|
|
112
|
+
}, {
|
|
113
|
+
readonly id: "orgo";
|
|
114
|
+
readonly label: "Orgo";
|
|
115
|
+
readonly keys: readonly [{
|
|
116
|
+
readonly name: "ORGO_API_KEY";
|
|
117
|
+
readonly option: "apiKey";
|
|
118
|
+
readonly required: true;
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "ORGO_WORKSPACE_ID";
|
|
121
|
+
readonly option: "workspaceId";
|
|
122
|
+
readonly required: true;
|
|
123
|
+
}];
|
|
124
|
+
readonly metered: true;
|
|
125
|
+
readonly mounts: readonly [];
|
|
126
|
+
readonly network: readonly ["none"];
|
|
127
|
+
readonly capabilities: readonly [{
|
|
128
|
+
readonly image: "linux";
|
|
129
|
+
readonly options: {};
|
|
130
|
+
readonly persistence: {
|
|
131
|
+
readonly keepsState: true;
|
|
132
|
+
readonly resume: true;
|
|
133
|
+
};
|
|
134
|
+
readonly kind: import("../protocol.js").ComputerKind;
|
|
135
|
+
readonly groups: import("../protocol.js").Group[];
|
|
136
|
+
readonly gpu?: import("../provider.js").GpuCapability;
|
|
137
|
+
}];
|
|
138
|
+
readonly parked: readonly [{
|
|
139
|
+
readonly kind: "desktop";
|
|
140
|
+
readonly groups: import("../protocol.js").Group[];
|
|
141
|
+
readonly image: "windows";
|
|
142
|
+
readonly options: {
|
|
143
|
+
readonly os: "windows";
|
|
144
|
+
};
|
|
145
|
+
readonly why: "Orgo's Windows desktops are parked for now: Orgo offers Linux desktops";
|
|
146
|
+
}, {
|
|
147
|
+
readonly kind: "desktop";
|
|
148
|
+
readonly groups: import("../protocol.js").Group[];
|
|
149
|
+
readonly image: "macos";
|
|
150
|
+
readonly options: {
|
|
151
|
+
readonly os: "macos";
|
|
152
|
+
};
|
|
153
|
+
readonly why: "Orgo's macOS desktops are parked for now: Orgo offers Linux desktops";
|
|
154
|
+
}];
|
|
155
|
+
readonly ledger: {
|
|
156
|
+
readonly option: "ledger";
|
|
157
|
+
};
|
|
158
|
+
readonly defaultImage: {
|
|
159
|
+
readonly desktop: "linux";
|
|
160
|
+
};
|
|
161
|
+
readonly load: () => Promise<typeof import("../orgo.js")>;
|
|
162
|
+
}, {
|
|
163
|
+
readonly id: "phone-harness";
|
|
164
|
+
readonly label: "Phone harness";
|
|
165
|
+
readonly keys: readonly [{
|
|
166
|
+
readonly name: "PHONE_HARNESS_API_KEY";
|
|
167
|
+
readonly option: "apiKey";
|
|
168
|
+
readonly required: true;
|
|
169
|
+
}];
|
|
170
|
+
readonly metered: true;
|
|
171
|
+
readonly mounts: readonly [];
|
|
172
|
+
readonly network: readonly ["open"];
|
|
173
|
+
readonly capabilities: readonly [{
|
|
174
|
+
readonly kind: "android";
|
|
175
|
+
readonly groups: import("../protocol.js").Group[];
|
|
176
|
+
}];
|
|
177
|
+
readonly defaultImage: {
|
|
178
|
+
readonly phone: "android";
|
|
179
|
+
};
|
|
180
|
+
readonly ledger: {
|
|
181
|
+
readonly option: "ledger";
|
|
182
|
+
};
|
|
183
|
+
readonly hostCommand: {
|
|
184
|
+
readonly command: "adb";
|
|
185
|
+
readonly from: "Android platform-tools";
|
|
186
|
+
readonly builds: readonly ["linux-x64", "darwin-x64", "darwin-arm64", "win32-x64"];
|
|
187
|
+
};
|
|
188
|
+
readonly load: () => Promise<typeof import("../phone-harness.js")>;
|
|
189
|
+
}, {
|
|
190
|
+
readonly id: "browserbase";
|
|
191
|
+
readonly label: "Browserbase";
|
|
192
|
+
readonly keys: readonly [{
|
|
193
|
+
readonly name: "BROWSERBASE_API_KEY";
|
|
194
|
+
readonly option: "apiKey";
|
|
195
|
+
readonly required: true;
|
|
196
|
+
}, {
|
|
197
|
+
readonly name: "BROWSERBASE_PROJECT_ID";
|
|
198
|
+
readonly option: "projectId";
|
|
199
|
+
readonly required: true;
|
|
200
|
+
}];
|
|
201
|
+
readonly metered: true;
|
|
202
|
+
readonly mounts: readonly [];
|
|
203
|
+
readonly network: readonly ["open"];
|
|
204
|
+
readonly hostEnv: readonly ["BROWSERBASE_BASE_URL", "BROWSERBASE_CONNECT_BASE_URL"];
|
|
205
|
+
readonly capabilities: readonly [{
|
|
206
|
+
readonly kind: "browser";
|
|
207
|
+
readonly groups: ["cdp", "stream"];
|
|
208
|
+
}];
|
|
209
|
+
readonly defaultImage: {
|
|
210
|
+
readonly browser: "chromium";
|
|
211
|
+
};
|
|
212
|
+
readonly load: () => Promise<typeof import("../browserbase.js")>;
|
|
213
|
+
}, {
|
|
214
|
+
readonly id: "kernel";
|
|
215
|
+
readonly label: "Kernel";
|
|
216
|
+
readonly keys: readonly [{
|
|
217
|
+
readonly name: "KERNEL_API_KEY";
|
|
218
|
+
readonly option: "apiKey";
|
|
219
|
+
readonly required: true;
|
|
220
|
+
}];
|
|
221
|
+
readonly metered: true;
|
|
222
|
+
readonly mounts: readonly [];
|
|
223
|
+
readonly network: readonly ["open"];
|
|
224
|
+
readonly hostEnv: readonly ["KERNEL_BASE_URL"];
|
|
225
|
+
readonly capabilities: readonly [{
|
|
226
|
+
readonly kind: "browser";
|
|
227
|
+
readonly groups: ["cdp", "stream"];
|
|
228
|
+
}];
|
|
229
|
+
readonly defaultImage: {
|
|
230
|
+
readonly browser: "chromium";
|
|
231
|
+
};
|
|
232
|
+
readonly load: () => Promise<typeof import("../kernel.js")>;
|
|
233
|
+
}, {
|
|
234
|
+
readonly id: "local-chrome";
|
|
235
|
+
readonly label: "Local Chrome";
|
|
236
|
+
readonly keys: readonly [];
|
|
237
|
+
readonly metered: false;
|
|
238
|
+
readonly mounts: readonly [];
|
|
239
|
+
readonly network: readonly ["open", "allow"];
|
|
240
|
+
readonly capabilities: readonly [{
|
|
241
|
+
readonly kind: "browser";
|
|
242
|
+
readonly groups: ["cdp"];
|
|
243
|
+
}];
|
|
244
|
+
readonly defaultImage: {
|
|
245
|
+
readonly browser: "chromium";
|
|
246
|
+
};
|
|
247
|
+
readonly hostEnv: readonly ["PI_BROWSER_CHROME", "CHROME_PATH", "PATH"];
|
|
248
|
+
readonly load: () => Promise<typeof import("../local-chrome.js")>;
|
|
249
|
+
}];
|
|
250
|
+
export { BROWSERBASE, DAYTONA, DOCKER, E2B, KERNEL, LOCAL, MODAL, ORGO, PHONE_HARNESS };
|
|
251
|
+
export { DAYTONA_DEFAULT_SNAPSHOT, DAYTONA_GPU_SNAPSHOT, type DaytonaGpuSnapshot, daytonaGpu, daytonaGpuSnapshot } from "./daytona.js";
|
|
252
|
+
export { E2B_BASE_TEMPLATE, E2B_DESKTOP_TEMPLATE } from "./e2b.js";
|
|
253
|
+
export { MODAL_DEFAULT_IMAGE } from "./modal.js";
|
|
254
|
+
export { ORGO_BASE_IMAGE } from "./orgo.js";
|
|
255
|
+
export { PHONE_GROUPS, PHONE_IMAGE } from "./phone-harness.js";
|
|
256
|
+
export { BROWSER_IMAGE, LINUX_DESKTOP, SANDBOX } from "./shared.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Every built-in provider's descriptor, in the order Settings shows them. Importing this loads descriptors (data) alone:
|
|
2
|
+
// each provider module loads only when its descriptor's load() is called.
|
|
3
|
+
import { BROWSERBASE } from "./browserbase.js";
|
|
4
|
+
import { DAYTONA } from "./daytona.js";
|
|
5
|
+
import { DOCKER } from "./docker.js";
|
|
6
|
+
import { E2B } from "./e2b.js";
|
|
7
|
+
import { KERNEL } from "./kernel.js";
|
|
8
|
+
import { LOCAL } from "./local-chrome.js";
|
|
9
|
+
import { MODAL } from "./modal.js";
|
|
10
|
+
import { ORGO } from "./orgo.js";
|
|
11
|
+
import { PHONE_HARNESS } from "./phone-harness.js";
|
|
12
|
+
export const DESCRIPTORS = [DOCKER, DAYTONA, MODAL, E2B, ORGO, PHONE_HARNESS, BROWSERBASE, KERNEL, LOCAL];
|
|
13
|
+
export { BROWSERBASE, DAYTONA, DOCKER, E2B, KERNEL, LOCAL, MODAL, ORGO, PHONE_HARNESS };
|
|
14
|
+
export { DAYTONA_DEFAULT_SNAPSHOT, DAYTONA_GPU_SNAPSHOT, daytonaGpu, daytonaGpuSnapshot } from "./daytona.js";
|
|
15
|
+
export { E2B_BASE_TEMPLATE, E2B_DESKTOP_TEMPLATE } from "./e2b.js";
|
|
16
|
+
export { MODAL_DEFAULT_IMAGE } from "./modal.js";
|
|
17
|
+
export { ORGO_BASE_IMAGE } from "./orgo.js";
|
|
18
|
+
export { PHONE_GROUPS, PHONE_IMAGE } from "./phone-harness.js";
|
|
19
|
+
export { BROWSER_IMAGE, LINUX_DESKTOP, SANDBOX } from "./shared.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const KERNEL: {
|
|
2
|
+
readonly id: "kernel";
|
|
3
|
+
readonly label: "Kernel";
|
|
4
|
+
readonly keys: readonly [{
|
|
5
|
+
readonly name: "KERNEL_API_KEY";
|
|
6
|
+
readonly option: "apiKey";
|
|
7
|
+
readonly required: true;
|
|
8
|
+
}];
|
|
9
|
+
readonly metered: true;
|
|
10
|
+
readonly mounts: readonly [];
|
|
11
|
+
readonly network: readonly ["open"];
|
|
12
|
+
readonly hostEnv: readonly ["KERNEL_BASE_URL"];
|
|
13
|
+
readonly capabilities: readonly [{
|
|
14
|
+
readonly kind: "browser";
|
|
15
|
+
readonly groups: ["cdp", "stream"];
|
|
16
|
+
}];
|
|
17
|
+
readonly defaultImage: {
|
|
18
|
+
readonly browser: "chromium";
|
|
19
|
+
};
|
|
20
|
+
readonly load: () => Promise<typeof import("../kernel.js")>;
|
|
21
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Kernel's descriptor: a cloud Chromium over CDP, with its live view.
|
|
2
|
+
import { defineProvider } from "../descriptor.js";
|
|
3
|
+
import { BROWSER_IMAGE } from "./shared.js";
|
|
4
|
+
export const KERNEL = defineProvider({
|
|
5
|
+
id: "kernel",
|
|
6
|
+
label: "Kernel",
|
|
7
|
+
keys: [{ name: "KERNEL_API_KEY", option: "apiKey", required: true }],
|
|
8
|
+
metered: true,
|
|
9
|
+
mounts: [],
|
|
10
|
+
// Kernel's own network, open: it cannot be closed or narrowed.
|
|
11
|
+
network: ["open"],
|
|
12
|
+
// A server behind a gateway that fronts Kernel's API names it here.
|
|
13
|
+
hostEnv: ["KERNEL_BASE_URL"],
|
|
14
|
+
capabilities: [{ kind: "browser", groups: ["cdp", "stream"] }],
|
|
15
|
+
defaultImage: { browser: BROWSER_IMAGE },
|
|
16
|
+
load: () => import("../kernel.js"),
|
|
17
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const LOCAL: {
|
|
2
|
+
readonly id: "local-chrome";
|
|
3
|
+
readonly label: "Local Chrome";
|
|
4
|
+
readonly keys: readonly [];
|
|
5
|
+
readonly metered: false;
|
|
6
|
+
readonly mounts: readonly [];
|
|
7
|
+
readonly network: readonly ["open", "allow"];
|
|
8
|
+
readonly capabilities: readonly [{
|
|
9
|
+
readonly kind: "browser";
|
|
10
|
+
readonly groups: ["cdp"];
|
|
11
|
+
}];
|
|
12
|
+
readonly defaultImage: {
|
|
13
|
+
readonly browser: "chromium";
|
|
14
|
+
};
|
|
15
|
+
readonly hostEnv: readonly ["PI_BROWSER_CHROME", "CHROME_PATH", "PATH"];
|
|
16
|
+
readonly load: () => Promise<typeof import("../local-chrome.js")>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Local Chrome's descriptor: this machine's Chrome, a browser computer with no key and nothing billed, on public
|
|
2
|
+
// addresses through its egress proxy, every one or only a list's. No live view: a person watching runs it headed. Its id is local-chrome, a token
|
|
3
|
+
// nothing else in the code base uses (a folder mode, a region and an API tag are all "local").
|
|
4
|
+
import { defineProvider } from "../descriptor.js";
|
|
5
|
+
import { BROWSER_IMAGE } from "./shared.js";
|
|
6
|
+
export const LOCAL = defineProvider({
|
|
7
|
+
id: "local-chrome",
|
|
8
|
+
label: "Local Chrome",
|
|
9
|
+
keys: [],
|
|
10
|
+
metered: false,
|
|
11
|
+
mounts: [],
|
|
12
|
+
// Through its egress proxy: public addresses ("open"), or only the hosts of a list ("allow"), public ones still. It
|
|
13
|
+
// cannot have none: a browser with no network has nothing to do.
|
|
14
|
+
network: ["open", "allow"],
|
|
15
|
+
capabilities: [{ kind: "browser", groups: ["cdp"] }],
|
|
16
|
+
defaultImage: { browser: BROWSER_IMAGE },
|
|
17
|
+
// Where it finds this machine's Chrome (chrome.ts CHROME_ENV, then PATH): the server's own values of these, and no
|
|
18
|
+
// other. Written out, so reading the descriptor loads no provider code (kinds.test holds the two lists together).
|
|
19
|
+
hostEnv: ["PI_BROWSER_CHROME", "CHROME_PATH", "PATH"],
|
|
20
|
+
load: () => import("../local-chrome.js"),
|
|
21
|
+
});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { GpuCapability } from "../provider.js";
|
|
2
|
+
/** The image a Modal computer starts from when its setting names none. */
|
|
3
|
+
export declare const MODAL_DEFAULT_IMAGE = "debian:bookworm-slim";
|
|
4
|
+
/**
|
|
5
|
+
* The GPU types Modal takes, by its own names (guide/gpu, 11-10): "A100" is the 40 GB one, "A100-40GB" its explicit
|
|
6
|
+
* name. Its "H100!" and "B200+" variants (no upgrade to an H200; a B200 or B300) are not offered: what a computer gets
|
|
7
|
+
* should be what it asked for.
|
|
8
|
+
*/
|
|
9
|
+
export declare const MODAL_GPU_TYPES: readonly ["T4", "L4", "A10", "L40S", "A100", "A100-40GB", "A100-80GB", "RTX-PRO-6000", "H100", "H200", "B200", "B300"];
|
|
10
|
+
/** The most GPUs Modal gives one container: 8 (guide/gpu; an A10 container takes at most 4, which Modal refuses in words past). */
|
|
11
|
+
export declare const MODAL_GPU_MAX = 8;
|
|
12
|
+
/**
|
|
13
|
+
* The GPUs Modal offers, as capabilities().gpu and its configuration declare them: on gVisor, Modal's one GPU runtime;
|
|
14
|
+
* preemptible, as Modal may end a GPU container to free capacity; no mount yet, the Archil client's FUSE mount not
|
|
15
|
+
* being proven on gVisor; and the loopback fence made inside a user namespace, as gVisor's root may not make a network
|
|
16
|
+
* namespace itself (a live probe, 11-11: unshare -n refused, unshare -Urn allowed).
|
|
17
|
+
*/
|
|
18
|
+
export declare const MODAL_GPU: Readonly<GpuCapability>;
|
|
19
|
+
export declare const MODAL: {
|
|
20
|
+
readonly id: "modal";
|
|
21
|
+
readonly label: "Modal";
|
|
22
|
+
readonly keys: readonly [{
|
|
23
|
+
readonly name: "MODAL_TOKEN_ID";
|
|
24
|
+
readonly option: "tokenId";
|
|
25
|
+
readonly required: true;
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "MODAL_TOKEN_SECRET";
|
|
28
|
+
readonly option: "tokenSecret";
|
|
29
|
+
readonly required: true;
|
|
30
|
+
}];
|
|
31
|
+
readonly settings: readonly [{
|
|
32
|
+
readonly name: "modalApp";
|
|
33
|
+
readonly option: "app";
|
|
34
|
+
readonly default: "agentrun";
|
|
35
|
+
}];
|
|
36
|
+
readonly metered: true;
|
|
37
|
+
readonly mounts: readonly ["archil"];
|
|
38
|
+
readonly network: readonly ["none"];
|
|
39
|
+
readonly capabilities: readonly [{
|
|
40
|
+
readonly gpu: Readonly<GpuCapability>;
|
|
41
|
+
readonly kind: import("../protocol.js").ComputerKind;
|
|
42
|
+
readonly groups: import("../protocol.js").Group[];
|
|
43
|
+
readonly persistence?: {
|
|
44
|
+
keepsState: true;
|
|
45
|
+
resume: boolean;
|
|
46
|
+
};
|
|
47
|
+
readonly image?: string;
|
|
48
|
+
readonly options?: Readonly<Record<string, unknown>>;
|
|
49
|
+
}];
|
|
50
|
+
readonly defaultImage: {
|
|
51
|
+
readonly sandbox: "debian:bookworm-slim";
|
|
52
|
+
};
|
|
53
|
+
readonly load: () => Promise<typeof import("../modal.js")>;
|
|
54
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Modal's descriptor: a sandbox in a Modal app, the run's folder on an Archil disk, with GPUs when asked.
|
|
2
|
+
import { defineProvider } from "../descriptor.js";
|
|
3
|
+
import { SANDBOX } from "./shared.js";
|
|
4
|
+
/** The image a Modal computer starts from when its setting names none. */
|
|
5
|
+
export const MODAL_DEFAULT_IMAGE = "debian:bookworm-slim";
|
|
6
|
+
/**
|
|
7
|
+
* The GPU types Modal takes, by its own names (guide/gpu, 11-10): "A100" is the 40 GB one, "A100-40GB" its explicit
|
|
8
|
+
* name. Its "H100!" and "B200+" variants (no upgrade to an H200; a B200 or B300) are not offered: what a computer gets
|
|
9
|
+
* should be what it asked for.
|
|
10
|
+
*/
|
|
11
|
+
export const MODAL_GPU_TYPES = ["T4", "L4", "A10", "L40S", "A100", "A100-40GB", "A100-80GB", "RTX-PRO-6000", "H100", "H200", "B200", "B300"];
|
|
12
|
+
/** The most GPUs Modal gives one container: 8 (guide/gpu; an A10 container takes at most 4, which Modal refuses in words past). */
|
|
13
|
+
export const MODAL_GPU_MAX = 8;
|
|
14
|
+
/**
|
|
15
|
+
* The GPUs Modal offers, as capabilities().gpu and its configuration declare them: on gVisor, Modal's one GPU runtime;
|
|
16
|
+
* preemptible, as Modal may end a GPU container to free capacity; no mount yet, the Archil client's FUSE mount not
|
|
17
|
+
* being proven on gVisor; and the loopback fence made inside a user namespace, as gVisor's root may not make a network
|
|
18
|
+
* namespace itself (a live probe, 11-11: unshare -n refused, unshare -Urn allowed).
|
|
19
|
+
*/
|
|
20
|
+
export const MODAL_GPU = Object.freeze({
|
|
21
|
+
types: [...MODAL_GPU_TYPES],
|
|
22
|
+
max: MODAL_GPU_MAX,
|
|
23
|
+
isolation: "gvisor",
|
|
24
|
+
preemptible: true,
|
|
25
|
+
mounts: [],
|
|
26
|
+
// Its gVisor runtime gives /dev/fuse (modal-6, 11-11: a character device 10:229 that opens), but Archil's FUSE mount
|
|
27
|
+
// under gVisor is not proven safe for the Archil client.
|
|
28
|
+
unmounted: Object.freeze({ why: "Archil's FUSE mount isn't proven on Modal's gVisor runtime (#2279)", yet: true }),
|
|
29
|
+
fence: "userns-netns",
|
|
30
|
+
});
|
|
31
|
+
export const MODAL = defineProvider({
|
|
32
|
+
id: "modal",
|
|
33
|
+
label: "Modal",
|
|
34
|
+
keys: [
|
|
35
|
+
{ name: "MODAL_TOKEN_ID", option: "tokenId", required: true },
|
|
36
|
+
{ name: "MODAL_TOKEN_SECRET", option: "tokenSecret", required: true },
|
|
37
|
+
],
|
|
38
|
+
// The Modal app its computers live in: the server's own when its settings name none.
|
|
39
|
+
settings: [{ name: "modalApp", option: "app", default: "agentrun" }],
|
|
40
|
+
metered: true,
|
|
41
|
+
mounts: ["archil"],
|
|
42
|
+
// None: its programs run in a network of their own (isolation.ts OWN_NETWORK_ONLY).
|
|
43
|
+
network: ["none"],
|
|
44
|
+
// A linux computer, with GPUs when asked.
|
|
45
|
+
capabilities: [{ ...SANDBOX, gpu: MODAL_GPU }],
|
|
46
|
+
defaultImage: { sandbox: MODAL_DEFAULT_IMAGE },
|
|
47
|
+
load: () => import("../modal.js"),
|
|
48
|
+
});
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { Group } from "../protocol.js";
|
|
2
|
+
/** Orgo's Linux image: a desktop computer when its setting names none. */
|
|
3
|
+
export declare const ORGO_BASE_IMAGE = "linux";
|
|
4
|
+
/** The image a spec names for an Orgo Windows desktop (Windows Server 2019, Orgo's own). */
|
|
5
|
+
export declare const ORGO_WINDOWS_IMAGE = "windows";
|
|
6
|
+
/** The image a spec names for an Orgo macOS desktop. */
|
|
7
|
+
export declare const ORGO_MACOS_IMAGE = "macos";
|
|
8
|
+
/** What a Windows desktop offers: PowerShell for exec and files, and the screen, the pointer and the keys. */
|
|
9
|
+
export declare const WINDOWS_GROUPS: readonly Group[];
|
|
10
|
+
/** What a macOS desktop offers: the shell for exec, and the screen, the pointer and the keys. */
|
|
11
|
+
export declare const MACOS_GROUPS: readonly Group[];
|
|
12
|
+
/**
|
|
13
|
+
* Orgo's offered configuration, naming the image an agent's setting selects it by and the create() options that build
|
|
14
|
+
* it (KindCapabilities; serve passes the options to providerFor beside the keys'): the Linux desktop with computerd.
|
|
15
|
+
*
|
|
16
|
+
* Windows and macOS are parked (ORGO_PARKED): create({ os }) still builds them, for the conformance suite and their
|
|
17
|
+
* tests, but no agent's setting selects one, and a setting that names one is refused in words saying so.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ORGO_CONFIGURATIONS: readonly [{
|
|
20
|
+
readonly image: "linux";
|
|
21
|
+
readonly options: {};
|
|
22
|
+
readonly persistence: {
|
|
23
|
+
readonly keepsState: true;
|
|
24
|
+
readonly resume: true;
|
|
25
|
+
};
|
|
26
|
+
readonly kind: import("../protocol.js").ComputerKind;
|
|
27
|
+
readonly groups: Group[];
|
|
28
|
+
readonly gpu?: import("../provider.js").GpuCapability;
|
|
29
|
+
}];
|
|
30
|
+
/** Orgo's desktops not offered yet, each as its module builds it (create()'s os), and why, in the words a setting naming
|
|
31
|
+
* one is refused in. */
|
|
32
|
+
export declare const ORGO_PARKED: readonly [{
|
|
33
|
+
readonly kind: "desktop";
|
|
34
|
+
readonly groups: Group[];
|
|
35
|
+
readonly image: "windows";
|
|
36
|
+
readonly options: {
|
|
37
|
+
readonly os: "windows";
|
|
38
|
+
};
|
|
39
|
+
readonly why: "Orgo's Windows desktops are parked for now: Orgo offers Linux desktops";
|
|
40
|
+
}, {
|
|
41
|
+
readonly kind: "desktop";
|
|
42
|
+
readonly groups: Group[];
|
|
43
|
+
readonly image: "macos";
|
|
44
|
+
readonly options: {
|
|
45
|
+
readonly os: "macos";
|
|
46
|
+
};
|
|
47
|
+
readonly why: "Orgo's macOS desktops are parked for now: Orgo offers Linux desktops";
|
|
48
|
+
}];
|
|
49
|
+
export declare const ORGO: {
|
|
50
|
+
readonly id: "orgo";
|
|
51
|
+
readonly label: "Orgo";
|
|
52
|
+
readonly keys: readonly [{
|
|
53
|
+
readonly name: "ORGO_API_KEY";
|
|
54
|
+
readonly option: "apiKey";
|
|
55
|
+
readonly required: true;
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "ORGO_WORKSPACE_ID";
|
|
58
|
+
readonly option: "workspaceId";
|
|
59
|
+
readonly required: true;
|
|
60
|
+
}];
|
|
61
|
+
readonly metered: true;
|
|
62
|
+
readonly mounts: readonly [];
|
|
63
|
+
readonly network: readonly ["none"];
|
|
64
|
+
readonly capabilities: readonly [{
|
|
65
|
+
readonly image: "linux";
|
|
66
|
+
readonly options: {};
|
|
67
|
+
readonly persistence: {
|
|
68
|
+
readonly keepsState: true;
|
|
69
|
+
readonly resume: true;
|
|
70
|
+
};
|
|
71
|
+
readonly kind: import("../protocol.js").ComputerKind;
|
|
72
|
+
readonly groups: Group[];
|
|
73
|
+
readonly gpu?: import("../provider.js").GpuCapability;
|
|
74
|
+
}];
|
|
75
|
+
readonly parked: readonly [{
|
|
76
|
+
readonly kind: "desktop";
|
|
77
|
+
readonly groups: Group[];
|
|
78
|
+
readonly image: "windows";
|
|
79
|
+
readonly options: {
|
|
80
|
+
readonly os: "windows";
|
|
81
|
+
};
|
|
82
|
+
readonly why: "Orgo's Windows desktops are parked for now: Orgo offers Linux desktops";
|
|
83
|
+
}, {
|
|
84
|
+
readonly kind: "desktop";
|
|
85
|
+
readonly groups: Group[];
|
|
86
|
+
readonly image: "macos";
|
|
87
|
+
readonly options: {
|
|
88
|
+
readonly os: "macos";
|
|
89
|
+
};
|
|
90
|
+
readonly why: "Orgo's macOS desktops are parked for now: Orgo offers Linux desktops";
|
|
91
|
+
}];
|
|
92
|
+
readonly ledger: {
|
|
93
|
+
readonly option: "ledger";
|
|
94
|
+
};
|
|
95
|
+
readonly defaultImage: {
|
|
96
|
+
readonly desktop: "linux";
|
|
97
|
+
};
|
|
98
|
+
readonly load: () => Promise<typeof import("../orgo.js")>;
|
|
99
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { defineProvider } from "../descriptor.js";
|
|
2
|
+
import { LINUX_DESKTOP } from "./shared.js";
|
|
3
|
+
/** Orgo's Linux image: a desktop computer when its setting names none. */
|
|
4
|
+
export const ORGO_BASE_IMAGE = "linux";
|
|
5
|
+
/** The image a spec names for an Orgo Windows desktop (Windows Server 2019, Orgo's own). */
|
|
6
|
+
export const ORGO_WINDOWS_IMAGE = "windows";
|
|
7
|
+
/** The image a spec names for an Orgo macOS desktop. */
|
|
8
|
+
export const ORGO_MACOS_IMAGE = "macos";
|
|
9
|
+
/** What a Windows desktop offers: PowerShell for exec and files, and the screen, the pointer and the keys. */
|
|
10
|
+
export const WINDOWS_GROUPS = ["exec", "files", "screen", "input.pointer", "input.keys"];
|
|
11
|
+
/** What a macOS desktop offers: the shell for exec, and the screen, the pointer and the keys. */
|
|
12
|
+
export const MACOS_GROUPS = ["exec", "screen", "input.pointer", "input.keys"];
|
|
13
|
+
/**
|
|
14
|
+
* Orgo's offered configuration, naming the image an agent's setting selects it by and the create() options that build
|
|
15
|
+
* it (KindCapabilities; serve passes the options to providerFor beside the keys'): the Linux desktop with computerd.
|
|
16
|
+
*
|
|
17
|
+
* Windows and macOS are parked (ORGO_PARKED): create({ os }) still builds them, for the conformance suite and their
|
|
18
|
+
* tests, but no agent's setting selects one, and a setting that names one is refused in words saying so.
|
|
19
|
+
*/
|
|
20
|
+
export const ORGO_CONFIGURATIONS = [
|
|
21
|
+
// Orgo's suspend keeps a Linux desktop's memory and disk: an agent's own computer resumes where it was.
|
|
22
|
+
{ ...LINUX_DESKTOP, image: ORGO_BASE_IMAGE, options: {}, persistence: { keepsState: true, resume: true } },
|
|
23
|
+
];
|
|
24
|
+
/** Orgo's desktops not offered yet, each as its module builds it (create()'s os), and why, in the words a setting naming
|
|
25
|
+
* one is refused in. */
|
|
26
|
+
export const ORGO_PARKED = [
|
|
27
|
+
{ kind: "desktop", groups: [...WINDOWS_GROUPS], image: ORGO_WINDOWS_IMAGE, options: { os: "windows" }, why: "Orgo's Windows desktops are parked for now: Orgo offers Linux desktops" },
|
|
28
|
+
{ kind: "desktop", groups: [...MACOS_GROUPS], image: ORGO_MACOS_IMAGE, options: { os: "macos" }, why: "Orgo's macOS desktops are parked for now: Orgo offers Linux desktops" },
|
|
29
|
+
];
|
|
30
|
+
export const ORGO = defineProvider({
|
|
31
|
+
id: "orgo",
|
|
32
|
+
label: "Orgo",
|
|
33
|
+
// The workspace this server's computers live in: every Orgo provider is built in one, and lists only it.
|
|
34
|
+
keys: [
|
|
35
|
+
{ name: "ORGO_API_KEY", option: "apiKey", required: true },
|
|
36
|
+
{ name: "ORGO_WORKSPACE_ID", option: "workspaceId", required: true },
|
|
37
|
+
],
|
|
38
|
+
metered: true,
|
|
39
|
+
// None yet: an Archil mount needs an Orgo template that bakes the helper.
|
|
40
|
+
mounts: [],
|
|
41
|
+
// The Linux desktop's: none (computerd holds its programs to loopback).
|
|
42
|
+
network: ["none"],
|
|
43
|
+
capabilities: ORGO_CONFIGURATIONS,
|
|
44
|
+
parked: ORGO_PARKED,
|
|
45
|
+
// An agent's own computers' labels: Orgo holds none, and a detached computer is never woken to read its labels file.
|
|
46
|
+
ledger: { option: "ledger" },
|
|
47
|
+
defaultImage: { desktop: ORGO_BASE_IMAGE },
|
|
48
|
+
load: () => import("../orgo.js"),
|
|
49
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Group } from "../protocol.js";
|
|
2
|
+
/** The groups a phone harness phone offers. */
|
|
3
|
+
export declare const PHONE_GROUPS: readonly Group[];
|
|
4
|
+
/** The phone harness's Android: a phone computer when its setting names no image. */
|
|
5
|
+
export declare const PHONE_IMAGE = "android";
|
|
6
|
+
export declare const PHONE_HARNESS: {
|
|
7
|
+
readonly id: "phone-harness";
|
|
8
|
+
readonly label: "Phone harness";
|
|
9
|
+
readonly keys: readonly [{
|
|
10
|
+
readonly name: "PHONE_HARNESS_API_KEY";
|
|
11
|
+
readonly option: "apiKey";
|
|
12
|
+
readonly required: true;
|
|
13
|
+
}];
|
|
14
|
+
readonly metered: true;
|
|
15
|
+
readonly mounts: readonly [];
|
|
16
|
+
readonly network: readonly ["open"];
|
|
17
|
+
readonly capabilities: readonly [{
|
|
18
|
+
readonly kind: "android";
|
|
19
|
+
readonly groups: Group[];
|
|
20
|
+
}];
|
|
21
|
+
readonly defaultImage: {
|
|
22
|
+
readonly phone: "android";
|
|
23
|
+
};
|
|
24
|
+
readonly ledger: {
|
|
25
|
+
readonly option: "ledger";
|
|
26
|
+
};
|
|
27
|
+
readonly hostCommand: {
|
|
28
|
+
readonly command: "adb";
|
|
29
|
+
readonly from: "Android platform-tools";
|
|
30
|
+
readonly builds: readonly ["linux-x64", "darwin-x64", "darwin-arm64", "win32-x64"];
|
|
31
|
+
};
|
|
32
|
+
readonly load: () => Promise<typeof import("../phone-harness.js")>;
|
|
33
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// The phone harness's descriptor: a cloud Android over adb, its sessions in a ledger the server keeps.
|
|
2
|
+
import { defineProvider } from "../descriptor.js";
|
|
3
|
+
/** The groups a phone harness phone offers. */
|
|
4
|
+
export const PHONE_GROUPS = ["screen", "input.touch", "input.keys", "apps", "apps.ui_tree"];
|
|
5
|
+
/** The phone harness's Android: a phone computer when its setting names no image. */
|
|
6
|
+
export const PHONE_IMAGE = "android";
|
|
7
|
+
export const PHONE_HARNESS = defineProvider({
|
|
8
|
+
id: "phone-harness",
|
|
9
|
+
label: "Phone harness",
|
|
10
|
+
keys: [{ name: "PHONE_HARNESS_API_KEY", option: "apiKey", required: true }],
|
|
11
|
+
metered: true,
|
|
12
|
+
mounts: [],
|
|
13
|
+
// The vendor's own network, open: it cannot be closed or narrowed.
|
|
14
|
+
network: ["open"],
|
|
15
|
+
capabilities: [{ kind: "android", groups: [...PHONE_GROUPS] }],
|
|
16
|
+
defaultImage: { phone: PHONE_IMAGE },
|
|
17
|
+
// The phones it rents, by session: the server's store backs this ledger, so a phone is never lost across restarts.
|
|
18
|
+
ledger: { option: "ledger" },
|
|
19
|
+
// The phone is driven by adb from the server's machine (the module's adb option, adb on PATH by default). Google
|
|
20
|
+
// builds platform-tools for x86-64 Linux, macOS and x86-64 Windows alone.
|
|
21
|
+
hostCommand: { command: "adb", from: "Android platform-tools", builds: ["linux-x64", "darwin-x64", "darwin-arm64", "win32-x64"] },
|
|
22
|
+
load: () => import("../phone-harness.js"),
|
|
23
|
+
});
|