@parcha/agentrun-computer 0.1.0-beta.33 → 0.1.0-beta.35

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 (112) hide show
  1. package/README.md +308 -36
  2. package/dist/browser.d.ts +13 -14
  3. package/dist/browser.js +22 -17
  4. package/dist/browserbase.d.ts +3 -3
  5. package/dist/browserbase.js +16 -11
  6. package/dist/child.d.ts +2 -0
  7. package/dist/child.js +13 -2
  8. package/dist/chrome.d.ts +73 -0
  9. package/dist/chrome.js +224 -0
  10. package/dist/computerd-linux-amd64 +0 -0
  11. package/dist/computerd-linux-arm64 +0 -0
  12. package/dist/conformance/browserbase.js +1 -1
  13. package/dist/conformance/cases/gpu.d.ts +2 -0
  14. package/dist/conformance/cases/gpu.js +108 -0
  15. package/dist/conformance/cases/health.js +83 -3
  16. package/dist/conformance/cases/index.js +2 -0
  17. package/dist/conformance/cases/mount.d.ts +8 -1
  18. package/dist/conformance/cases/mount.js +4 -3
  19. package/dist/conformance/cases/provider.js +92 -3
  20. package/dist/conformance/cli.js +46 -7
  21. package/dist/conformance/daytona.js +2 -1
  22. package/dist/conformance/e2b.js +2 -1
  23. package/dist/conformance/fixture.js +24 -2
  24. package/dist/conformance/kernel.js +1 -1
  25. package/dist/conformance/kind.js +2 -1
  26. package/dist/conformance/local-chrome.d.ts +30 -0
  27. package/dist/conformance/local-chrome.js +36 -0
  28. package/dist/conformance/orgo.d.ts +11 -5
  29. package/dist/conformance/orgo.js +37 -8
  30. package/dist/conformance/phone-harness.js +2 -1
  31. package/dist/conformance/report.js +13 -7
  32. package/dist/conformance/runner.js +68 -18
  33. package/dist/conformance/types.d.ts +78 -18
  34. package/dist/conformance/types.js +10 -0
  35. package/dist/conformance/windows-fixture.d.ts +1 -0
  36. package/dist/conformance/windows-fixture.js +37 -0
  37. package/dist/daytona.d.ts +4 -6
  38. package/dist/daytona.js +97 -52
  39. package/dist/descriptor.d.ts +94 -0
  40. package/dist/descriptor.js +81 -0
  41. package/dist/descriptors/browserbase.d.ts +24 -0
  42. package/dist/descriptors/browserbase.js +18 -0
  43. package/dist/descriptors/daytona.d.ts +62 -0
  44. package/dist/descriptors/daytona.js +49 -0
  45. package/dist/descriptors/docker.d.ts +12 -0
  46. package/dist/descriptors/docker.js +17 -0
  47. package/dist/descriptors/e2b.d.ts +22 -0
  48. package/dist/descriptors/e2b.js +19 -0
  49. package/dist/descriptors/index.d.ts +229 -0
  50. package/dist/descriptors/index.js +19 -0
  51. package/dist/descriptors/kernel.d.ts +20 -0
  52. package/dist/descriptors/kernel.js +15 -0
  53. package/dist/descriptors/local-chrome.d.ts +17 -0
  54. package/dist/descriptors/local-chrome.js +21 -0
  55. package/dist/descriptors/modal.d.ts +50 -0
  56. package/dist/descriptors/modal.js +38 -0
  57. package/dist/descriptors/orgo.d.ts +88 -0
  58. package/dist/descriptors/orgo.js +44 -0
  59. package/dist/descriptors/phone-harness.d.ts +28 -0
  60. package/dist/descriptors/phone-harness.js +20 -0
  61. package/dist/descriptors/shared.d.ts +7 -0
  62. package/dist/descriptors/shared.js +6 -0
  63. package/dist/desktop.d.ts +4 -4
  64. package/dist/desktop.js +4 -4
  65. package/dist/docker/egress.d.ts +1 -1
  66. package/dist/docker/image.js +17 -15
  67. package/dist/docker/inspect.d.ts +147 -0
  68. package/dist/docker/inspect.js +335 -0
  69. package/dist/docker.d.ts +6 -4
  70. package/dist/docker.js +53 -41
  71. package/dist/drift.d.ts +6 -146
  72. package/dist/drift.js +14 -334
  73. package/dist/e2b.d.ts +2 -6
  74. package/dist/e2b.js +19 -22
  75. package/dist/index.d.ts +9 -10
  76. package/dist/index.js +14 -10
  77. package/dist/isolation.d.ts +0 -2
  78. package/dist/isolation.js +2 -18
  79. package/dist/janitor.d.ts +18 -1
  80. package/dist/janitor.js +67 -19
  81. package/dist/kernel.d.ts +3 -3
  82. package/dist/kernel.js +19 -14
  83. package/dist/kinds.d.ts +56 -30
  84. package/dist/kinds.js +19 -97
  85. package/dist/labels.d.ts +18 -0
  86. package/dist/labels.js +65 -2
  87. package/dist/local-chrome.d.ts +86 -0
  88. package/dist/local-chrome.js +475 -0
  89. package/dist/local-supervisor.d.ts +51 -0
  90. package/dist/local-supervisor.js +221 -0
  91. package/dist/modal.d.ts +15 -7
  92. package/dist/modal.js +83 -39
  93. package/dist/mount-archil.js +4 -4
  94. package/dist/orgo-channel.js +16 -13
  95. package/dist/orgo-desktop.d.ts +153 -0
  96. package/dist/orgo-desktop.js +1614 -0
  97. package/dist/orgo-names.d.ts +52 -0
  98. package/dist/orgo-names.js +84 -0
  99. package/dist/orgo.d.ts +18 -13
  100. package/dist/orgo.js +54 -128
  101. package/dist/phone-harness.d.ts +4 -8
  102. package/dist/phone-harness.js +48 -46
  103. package/dist/protocol.d.ts +20 -0
  104. package/dist/protocol.js +9 -0
  105. package/dist/provider.d.ts +151 -10
  106. package/dist/provider.js +70 -0
  107. package/dist/providers.d.ts +22 -17
  108. package/dist/providers.js +14 -16
  109. package/dist/result.d.ts +11 -1
  110. package/dist/result.js +11 -0
  111. package/dist/test-connection.js +2 -2
  112. package/package.json +42 -2
@@ -0,0 +1,18 @@
1
+ // Browserbase'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 BROWSERBASE = defineProvider({
5
+ id: "browserbase",
6
+ label: "Browserbase",
7
+ keys: [
8
+ { name: "BROWSERBASE_API_KEY", option: "apiKey", required: true },
9
+ { name: "BROWSERBASE_PROJECT_ID", option: "projectId", required: true },
10
+ ],
11
+ metered: true,
12
+ mounts: [],
13
+ // Browserbase's own network, open: it cannot be closed or narrowed.
14
+ network: ["open"],
15
+ capabilities: [{ kind: "browser", groups: ["cdp", "stream"] }],
16
+ defaultImage: { browser: BROWSER_IMAGE },
17
+ load: () => import("../browserbase.js"),
18
+ });
@@ -0,0 +1,62 @@
1
+ import type { GpuCapability } from "../provider.js";
2
+ /** The image a Daytona computer starts from when its spec names "default": Daytona's own default snapshot. */
3
+ export declare const DAYTONA_DEFAULT_SNAPSHOT = "default";
4
+ /** The one region Daytona runs a GPU sandbox in, whatever the provider's target. */
5
+ export declare const DAYTONA_GPU_REGION = "earth";
6
+ /**
7
+ * The snapshot every GPU sandbox is made from: Daytona's general GPU snapshot, its default sandbox image (user daytona,
8
+ * passwordless sudo) with the CUDA toolkit, as Daytona's dashboard makes one (GET /snapshots/daytona-gpu, 11-11). A GPU
9
+ * spec names it, or "default"; no other snapshot is proven to give a GPU computer, so check() refuses one.
10
+ */
11
+ export declare const DAYTONA_GPU_SNAPSHOT = "daytona-gpu";
12
+ /**
13
+ * The GPU a snapshot gives every sandbox made from it. A Daytona snapshot carries its own resources, GPUs among them: a
14
+ * create that names a snapshot sends none (Daytona answers 400 "Cannot specify Sandbox resources when using a
15
+ * snapshot", live 11-11), so a GPU computer's type and count are its snapshot's, and the read-back is held to them.
16
+ */
17
+ export interface DaytonaSnapshotGpu {
18
+ type: string;
19
+ count: number;
20
+ }
21
+ /** daytona-gpu's GPU, as GET /snapshots/daytona-gpu declares it (gpu 1, gpuType H100; 11-11). */
22
+ export declare const DAYTONA_GPU_SNAPSHOT_GPU: Readonly<DaytonaSnapshotGpu>;
23
+ /**
24
+ * The GPUs Daytona offers, as capabilities().gpu and its configuration declare them: the GPU of its GPU snapshot,
25
+ * daytona-gpu, alone (another type needs a snapshot of its own), with its limits on a GPU sandbox: its stop deletes it
26
+ * (no pause, no snapshot: nothing is kept), it runs in region earth, it has the snapshot's 16 vCPUs, 100 GiB of memory
27
+ * and 400 GiB of disk, it may be preempted (daytona.io/pricing lists its GPUs as "Preemptible GPU prices", 11-10), and
28
+ * it takes no mount: daytona-gpu's user is daytona, not root, and it has no Archil client, so an Archil mount is refused
29
+ * in words.
30
+ */
31
+ export declare const DAYTONA_GPU: Readonly<GpuCapability>;
32
+ export declare const DAYTONA: {
33
+ readonly id: "daytona";
34
+ readonly label: "Daytona";
35
+ readonly keys: readonly [{
36
+ readonly name: "DAYTONA_API_KEY";
37
+ readonly option: "apiKey";
38
+ readonly required: true;
39
+ }, {
40
+ readonly name: "DAYTONA_API_URL";
41
+ readonly option: "apiUrl";
42
+ readonly required: false;
43
+ }, {
44
+ readonly name: "DAYTONA_TARGET";
45
+ readonly option: "target";
46
+ readonly required: false;
47
+ }];
48
+ readonly metered: true;
49
+ readonly mounts: readonly ["archil"];
50
+ readonly network: readonly ["none"];
51
+ readonly capabilities: readonly [{
52
+ readonly gpu: Readonly<GpuCapability>;
53
+ readonly kind: import("../protocol.js").ComputerKind;
54
+ readonly groups: import("../protocol.js").Group[];
55
+ readonly image?: string;
56
+ readonly options?: Readonly<Record<string, unknown>>;
57
+ }];
58
+ readonly defaultImage: {
59
+ readonly sandbox: "default";
60
+ };
61
+ readonly load: () => Promise<typeof import("../daytona.js")>;
62
+ };
@@ -0,0 +1,49 @@
1
+ // Daytona's descriptor: a sandbox on Daytona's cloud, 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 Daytona computer starts from when its spec names "default": Daytona's own default snapshot. */
5
+ export const DAYTONA_DEFAULT_SNAPSHOT = "default";
6
+ /** The one region Daytona runs a GPU sandbox in, whatever the provider's target. */
7
+ export const DAYTONA_GPU_REGION = "earth";
8
+ /**
9
+ * The snapshot every GPU sandbox is made from: Daytona's general GPU snapshot, its default sandbox image (user daytona,
10
+ * passwordless sudo) with the CUDA toolkit, as Daytona's dashboard makes one (GET /snapshots/daytona-gpu, 11-11). A GPU
11
+ * spec names it, or "default"; no other snapshot is proven to give a GPU computer, so check() refuses one.
12
+ */
13
+ export const DAYTONA_GPU_SNAPSHOT = "daytona-gpu";
14
+ /** daytona-gpu's GPU, as GET /snapshots/daytona-gpu declares it (gpu 1, gpuType H100; 11-11). */
15
+ export const DAYTONA_GPU_SNAPSHOT_GPU = Object.freeze({ type: "H100", count: 1 });
16
+ /**
17
+ * The GPUs Daytona offers, as capabilities().gpu and its configuration declare them: the GPU of its GPU snapshot,
18
+ * daytona-gpu, alone (another type needs a snapshot of its own), with its limits on a GPU sandbox: its stop deletes it
19
+ * (no pause, no snapshot: nothing is kept), it runs in region earth, it has the snapshot's 16 vCPUs, 100 GiB of memory
20
+ * and 400 GiB of disk, it may be preempted (daytona.io/pricing lists its GPUs as "Preemptible GPU prices", 11-10), and
21
+ * it takes no mount: daytona-gpu's user is daytona, not root, and it has no Archil client, so an Archil mount is refused
22
+ * in words.
23
+ */
24
+ export const DAYTONA_GPU = Object.freeze({
25
+ types: [DAYTONA_GPU_SNAPSHOT_GPU.type],
26
+ max: DAYTONA_GPU_SNAPSHOT_GPU.count,
27
+ preemptible: true,
28
+ stopDeletes: true,
29
+ region: DAYTONA_GPU_REGION,
30
+ perGpu: { cpus: 16, memoryMb: 100 * 1024, diskMb: 400 * 1024 },
31
+ mounts: [],
32
+ });
33
+ export const DAYTONA = defineProvider({
34
+ id: "daytona",
35
+ label: "Daytona",
36
+ keys: [
37
+ { name: "DAYTONA_API_KEY", option: "apiKey", required: true },
38
+ { name: "DAYTONA_API_URL", option: "apiUrl", required: false },
39
+ { name: "DAYTONA_TARGET", option: "target", required: false },
40
+ ],
41
+ metered: true,
42
+ mounts: ["archil"],
43
+ // None: its programs run in a network of their own (isolation.ts OWN_NETWORK_ONLY).
44
+ network: ["none"],
45
+ // A linux computer, with GPUs when asked.
46
+ capabilities: [{ ...SANDBOX, gpu: DAYTONA_GPU }],
47
+ defaultImage: { sandbox: DAYTONA_DEFAULT_SNAPSHOT },
48
+ load: () => import("../daytona.js"),
49
+ });
@@ -0,0 +1,12 @@
1
+ export declare const DOCKER: {
2
+ readonly id: "docker";
3
+ readonly label: "Docker";
4
+ readonly keys: readonly [];
5
+ readonly metered: false;
6
+ readonly mounts: readonly ["bind"];
7
+ readonly network: readonly ["none", "open", "allow"];
8
+ readonly capabilities: readonly [import("../kinds.js").KindCapabilities, import("../kinds.js").KindCapabilities];
9
+ readonly prepareImage: true;
10
+ readonly local: true;
11
+ readonly load: () => Promise<typeof import("../docker.js")>;
12
+ };
@@ -0,0 +1,17 @@
1
+ // Docker's descriptor: computers on this machine's Docker, a sandbox or a desktop; no key, no meter.
2
+ import { defineProvider } from "../descriptor.js";
3
+ import { LINUX_DESKTOP, SANDBOX } from "./shared.js";
4
+ export const DOCKER = defineProvider({
5
+ id: "docker",
6
+ label: "Docker",
7
+ keys: [],
8
+ metered: false,
9
+ mounts: ["bind"],
10
+ // None, open, or an allowlist through the server's egress proxy.
11
+ network: ["none", "open", "allow"],
12
+ capabilities: [SANDBOX, LINUX_DESKTOP],
13
+ // No default image: the server makes one from the provider's recipe (prepareImage) before the first create.
14
+ prepareImage: true,
15
+ local: true,
16
+ load: () => import("../docker.js"),
17
+ });
@@ -0,0 +1,22 @@
1
+ /** E2B Desktop's template: a desktop computer when its setting names no image. */
2
+ export declare const E2B_DESKTOP_TEMPLATE = "desktop";
3
+ /** E2B's base template: a sandbox when its setting names no image. */
4
+ export declare const E2B_BASE_TEMPLATE = "base";
5
+ export declare const E2B: {
6
+ readonly id: "e2b";
7
+ readonly label: "E2B";
8
+ readonly keys: readonly [{
9
+ readonly name: "E2B_API_KEY";
10
+ readonly option: "apiKey";
11
+ readonly required: true;
12
+ }];
13
+ readonly metered: true;
14
+ readonly mounts: readonly ["archil"];
15
+ readonly network: readonly ["none"];
16
+ readonly capabilities: readonly [import("../kinds.js").KindCapabilities, import("../kinds.js").KindCapabilities];
17
+ readonly defaultImage: {
18
+ readonly sandbox: "base";
19
+ readonly desktop: "desktop";
20
+ };
21
+ readonly load: () => Promise<typeof import("../e2b.js")>;
22
+ };
@@ -0,0 +1,19 @@
1
+ // E2B's descriptor: a sandbox (the base template) or a desktop (E2B Desktop), the run's folder on an Archil disk.
2
+ import { defineProvider } from "../descriptor.js";
3
+ import { LINUX_DESKTOP, SANDBOX } from "./shared.js";
4
+ /** E2B Desktop's template: a desktop computer when its setting names no image. */
5
+ export const E2B_DESKTOP_TEMPLATE = "desktop";
6
+ /** E2B's base template: a sandbox when its setting names no image. */
7
+ export const E2B_BASE_TEMPLATE = "base";
8
+ export const E2B = defineProvider({
9
+ id: "e2b",
10
+ label: "E2B",
11
+ keys: [{ name: "E2B_API_KEY", option: "apiKey", required: true }],
12
+ metered: true,
13
+ mounts: ["archil"],
14
+ // None: its programs run in a network of their own (isolation.ts OWN_NETWORK_ONLY).
15
+ network: ["none"],
16
+ capabilities: [SANDBOX, LINUX_DESKTOP],
17
+ defaultImage: { sandbox: E2B_BASE_TEMPLATE, desktop: E2B_DESKTOP_TEMPLATE },
18
+ load: () => import("../e2b.js"),
19
+ });
@@ -0,0 +1,229 @@
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 metered: true;
38
+ readonly mounts: readonly ["archil"];
39
+ readonly network: readonly ["none"];
40
+ readonly capabilities: readonly [{
41
+ readonly gpu: Readonly<import("../provider.js").GpuCapability>;
42
+ readonly kind: import("../protocol.js").ComputerKind;
43
+ readonly groups: import("../protocol.js").Group[];
44
+ readonly image?: string;
45
+ readonly options?: Readonly<Record<string, unknown>>;
46
+ }];
47
+ readonly defaultImage: {
48
+ readonly sandbox: "default";
49
+ };
50
+ readonly load: () => Promise<typeof import("../daytona.js")>;
51
+ }, {
52
+ readonly id: "modal";
53
+ readonly label: "Modal";
54
+ readonly keys: readonly [{
55
+ readonly name: "MODAL_TOKEN_ID";
56
+ readonly option: "tokenId";
57
+ readonly required: true;
58
+ }, {
59
+ readonly name: "MODAL_TOKEN_SECRET";
60
+ readonly option: "tokenSecret";
61
+ readonly required: true;
62
+ }];
63
+ readonly settings: readonly [{
64
+ readonly name: "modalApp";
65
+ readonly option: "app";
66
+ readonly default: "agentrun";
67
+ }];
68
+ readonly metered: true;
69
+ readonly mounts: readonly ["archil"];
70
+ readonly network: readonly ["none"];
71
+ readonly capabilities: readonly [{
72
+ readonly gpu: Readonly<import("../provider.js").GpuCapability>;
73
+ readonly kind: import("../protocol.js").ComputerKind;
74
+ readonly groups: import("../protocol.js").Group[];
75
+ readonly image?: string;
76
+ readonly options?: Readonly<Record<string, unknown>>;
77
+ }];
78
+ readonly defaultImage: {
79
+ readonly sandbox: "debian:bookworm-slim";
80
+ };
81
+ readonly load: () => Promise<typeof import("../modal.js")>;
82
+ }, {
83
+ readonly id: "e2b";
84
+ readonly label: "E2B";
85
+ readonly keys: readonly [{
86
+ readonly name: "E2B_API_KEY";
87
+ readonly option: "apiKey";
88
+ readonly required: true;
89
+ }];
90
+ readonly metered: true;
91
+ readonly mounts: readonly ["archil"];
92
+ readonly network: readonly ["none"];
93
+ readonly capabilities: readonly [import("../kinds.js").KindCapabilities, import("../kinds.js").KindCapabilities];
94
+ readonly defaultImage: {
95
+ readonly sandbox: "base";
96
+ readonly desktop: "desktop";
97
+ };
98
+ readonly load: () => Promise<typeof import("../e2b.js")>;
99
+ }, {
100
+ readonly id: "orgo";
101
+ readonly label: "Orgo";
102
+ readonly keys: readonly [{
103
+ readonly name: "ORGO_API_KEY";
104
+ readonly option: "apiKey";
105
+ readonly required: true;
106
+ }, {
107
+ readonly name: "ORGO_WORKSPACE_ID";
108
+ readonly option: "workspaceId";
109
+ readonly required: true;
110
+ }];
111
+ readonly metered: true;
112
+ readonly mounts: readonly [];
113
+ readonly network: readonly ["none"];
114
+ readonly capabilities: readonly [{
115
+ readonly image: "linux";
116
+ readonly options: {};
117
+ readonly kind: import("../protocol.js").ComputerKind;
118
+ readonly groups: import("../protocol.js").Group[];
119
+ readonly gpu?: import("../provider.js").GpuCapability;
120
+ }];
121
+ readonly parked: readonly [{
122
+ readonly kind: "desktop";
123
+ readonly groups: import("../protocol.js").Group[];
124
+ readonly image: "windows";
125
+ readonly options: {
126
+ readonly os: "windows";
127
+ };
128
+ readonly why: "Orgo's Windows desktops are parked for now: Orgo offers Linux desktops";
129
+ }, {
130
+ readonly kind: "desktop";
131
+ readonly groups: import("../protocol.js").Group[];
132
+ readonly image: "macos";
133
+ readonly options: {
134
+ readonly os: "macos";
135
+ };
136
+ readonly why: "Orgo's macOS desktops are parked for now: Orgo offers Linux desktops";
137
+ }];
138
+ readonly defaultImage: {
139
+ readonly desktop: "linux";
140
+ };
141
+ readonly load: () => Promise<typeof import("../orgo.js")>;
142
+ }, {
143
+ readonly id: "phone-harness";
144
+ readonly label: "Phone harness";
145
+ readonly keys: readonly [{
146
+ readonly name: "PHONE_HARNESS_API_KEY";
147
+ readonly option: "apiKey";
148
+ readonly required: true;
149
+ }];
150
+ readonly metered: true;
151
+ readonly mounts: readonly [];
152
+ readonly network: readonly ["open"];
153
+ readonly capabilities: readonly [{
154
+ readonly kind: "android";
155
+ readonly groups: import("../protocol.js").Group[];
156
+ }];
157
+ readonly defaultImage: {
158
+ readonly phone: "android";
159
+ };
160
+ readonly ledger: {
161
+ readonly option: "ledger";
162
+ };
163
+ readonly load: () => Promise<typeof import("../phone-harness.js")>;
164
+ }, {
165
+ readonly id: "browserbase";
166
+ readonly label: "Browserbase";
167
+ readonly keys: readonly [{
168
+ readonly name: "BROWSERBASE_API_KEY";
169
+ readonly option: "apiKey";
170
+ readonly required: true;
171
+ }, {
172
+ readonly name: "BROWSERBASE_PROJECT_ID";
173
+ readonly option: "projectId";
174
+ readonly required: true;
175
+ }];
176
+ readonly metered: true;
177
+ readonly mounts: readonly [];
178
+ readonly network: readonly ["open"];
179
+ readonly capabilities: readonly [{
180
+ readonly kind: "browser";
181
+ readonly groups: ["cdp", "stream"];
182
+ }];
183
+ readonly defaultImage: {
184
+ readonly browser: "chromium";
185
+ };
186
+ readonly load: () => Promise<typeof import("../browserbase.js")>;
187
+ }, {
188
+ readonly id: "kernel";
189
+ readonly label: "Kernel";
190
+ readonly keys: readonly [{
191
+ readonly name: "KERNEL_API_KEY";
192
+ readonly option: "apiKey";
193
+ readonly required: true;
194
+ }];
195
+ readonly metered: true;
196
+ readonly mounts: readonly [];
197
+ readonly network: readonly ["open"];
198
+ readonly capabilities: readonly [{
199
+ readonly kind: "browser";
200
+ readonly groups: ["cdp", "stream"];
201
+ }];
202
+ readonly defaultImage: {
203
+ readonly browser: "chromium";
204
+ };
205
+ readonly load: () => Promise<typeof import("../kernel.js")>;
206
+ }, {
207
+ readonly id: "local-chrome";
208
+ readonly label: "Local Chrome";
209
+ readonly keys: readonly [];
210
+ readonly metered: false;
211
+ readonly mounts: readonly [];
212
+ readonly network: readonly ["open", "allow"];
213
+ readonly capabilities: readonly [{
214
+ readonly kind: "browser";
215
+ readonly groups: ["cdp"];
216
+ }];
217
+ readonly defaultImage: {
218
+ readonly browser: "chromium";
219
+ };
220
+ readonly hostEnv: readonly ["PI_BROWSER_CHROME", "CHROME_PATH", "PATH"];
221
+ readonly load: () => Promise<typeof import("../local-chrome.js")>;
222
+ }];
223
+ export { BROWSERBASE, DAYTONA, DOCKER, E2B, KERNEL, LOCAL, MODAL, ORGO, PHONE_HARNESS };
224
+ export { DAYTONA_DEFAULT_SNAPSHOT, DAYTONA_GPU_SNAPSHOT } from "./daytona.js";
225
+ export { E2B_BASE_TEMPLATE, E2B_DESKTOP_TEMPLATE } from "./e2b.js";
226
+ export { MODAL_DEFAULT_IMAGE } from "./modal.js";
227
+ export { ORGO_BASE_IMAGE } from "./orgo.js";
228
+ export { PHONE_GROUPS, PHONE_IMAGE } from "./phone-harness.js";
229
+ 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 } 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,20 @@
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 capabilities: readonly [{
13
+ readonly kind: "browser";
14
+ readonly groups: ["cdp", "stream"];
15
+ }];
16
+ readonly defaultImage: {
17
+ readonly browser: "chromium";
18
+ };
19
+ readonly load: () => Promise<typeof import("../kernel.js")>;
20
+ };
@@ -0,0 +1,15 @@
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
+ capabilities: [{ kind: "browser", groups: ["cdp", "stream"] }],
13
+ defaultImage: { browser: BROWSER_IMAGE },
14
+ load: () => import("../kernel.js"),
15
+ });
@@ -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,50 @@
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 image?: string;
44
+ readonly options?: Readonly<Record<string, unknown>>;
45
+ }];
46
+ readonly defaultImage: {
47
+ readonly sandbox: "debian:bookworm-slim";
48
+ };
49
+ readonly load: () => Promise<typeof import("../modal.js")>;
50
+ };
@@ -0,0 +1,38 @@
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({ types: [...MODAL_GPU_TYPES], max: MODAL_GPU_MAX, isolation: "gvisor", preemptible: true, mounts: [], fence: "userns-netns" });
21
+ export const MODAL = defineProvider({
22
+ id: "modal",
23
+ label: "Modal",
24
+ keys: [
25
+ { name: "MODAL_TOKEN_ID", option: "tokenId", required: true },
26
+ { name: "MODAL_TOKEN_SECRET", option: "tokenSecret", required: true },
27
+ ],
28
+ // The Modal app its computers live in: the server's own when its settings name none.
29
+ settings: [{ name: "modalApp", option: "app", default: "agentrun" }],
30
+ metered: true,
31
+ mounts: ["archil"],
32
+ // None: its programs run in a network of their own (isolation.ts OWN_NETWORK_ONLY).
33
+ network: ["none"],
34
+ // A linux computer, with GPUs when asked.
35
+ capabilities: [{ ...SANDBOX, gpu: MODAL_GPU }],
36
+ defaultImage: { sandbox: MODAL_DEFAULT_IMAGE },
37
+ load: () => import("../modal.js"),
38
+ });