@parcha/agentrun-computer 0.1.0-beta.46 → 0.1.0-beta.48

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 (59) hide show
  1. package/README.md +96 -21
  2. package/dist/attach.d.ts +23 -5
  3. package/dist/attach.js +83 -20
  4. package/dist/computerd-linux-amd64 +0 -0
  5. package/dist/computerd-linux-arm64 +0 -0
  6. package/dist/computerd.json +2 -2
  7. package/dist/conformance/agent37.js +2 -2
  8. package/dist/conformance/boxd.js +2 -3
  9. package/dist/conformance/cli.js +1 -1
  10. package/dist/conformance/cloudflare.d.ts +2 -0
  11. package/dist/conformance/cloudflare.js +4 -0
  12. package/dist/conformance/daytona.d.ts +4 -0
  13. package/dist/conformance/daytona.js +5 -0
  14. package/dist/conformance/e2b.js +2 -3
  15. package/dist/conformance/fixture.js +1 -1
  16. package/dist/conformance/fly.d.ts +4 -0
  17. package/dist/conformance/fly.js +4 -0
  18. package/dist/conformance/kind.d.ts +8 -1
  19. package/dist/conformance/kind.js +6 -1
  20. package/dist/conformance/modal.d.ts +4 -0
  21. package/dist/conformance/modal.js +5 -1
  22. package/dist/conformance/report.js +1 -1
  23. package/dist/conformance/runner.js +1 -1
  24. package/dist/conformance/smolcloud.d.ts +47 -0
  25. package/dist/conformance/smolcloud.js +73 -0
  26. package/dist/conformance/sweep.js +1 -1
  27. package/dist/conformance/types.d.ts +8 -3
  28. package/dist/daytona.d.ts +1 -1
  29. package/dist/daytona.js +8 -5
  30. package/dist/descriptor.d.ts +22 -3
  31. package/dist/descriptor.js +31 -2
  32. package/dist/descriptors/cloudflare.js +1 -1
  33. package/dist/descriptors/daytona.d.ts +7 -0
  34. package/dist/descriptors/daytona.js +11 -3
  35. package/dist/descriptors/fly.js +1 -1
  36. package/dist/descriptors/index.d.ts +19 -1
  37. package/dist/descriptors/index.js +3 -2
  38. package/dist/descriptors/smolcloud.d.ts +18 -0
  39. package/dist/descriptors/smolcloud.js +21 -0
  40. package/dist/desktop.d.ts +18 -11
  41. package/dist/desktop.js +53 -15
  42. package/dist/hosted/provider.js +16 -29
  43. package/dist/hosted/rest.d.ts +2 -0
  44. package/dist/hosted/rest.js +1 -1
  45. package/dist/hosted/scripts.d.ts +7 -5
  46. package/dist/hosted/scripts.js +29 -16
  47. package/dist/hosted/values.d.ts +0 -2
  48. package/dist/hosted/values.js +0 -2
  49. package/dist/index.d.ts +3 -2
  50. package/dist/index.js +4 -3
  51. package/dist/kinds.d.ts +11 -71
  52. package/dist/kinds.js +2 -9
  53. package/dist/modal.js +5 -4
  54. package/dist/protocol.d.ts +14 -0
  55. package/dist/setting-kinds.d.ts +19 -0
  56. package/dist/setting-kinds.js +9 -0
  57. package/dist/smolcloud.d.ts +21 -0
  58. package/dist/smolcloud.js +254 -0
  59. package/package.json +7 -2
@@ -12,6 +12,7 @@ import { MODAL } from "./modal.js";
12
12
  import { MORPH } from "./morph.js";
13
13
  import { ORGO } from "./orgo.js";
14
14
  import { PHONE_HARNESS } from "./phone-harness.js";
15
+ import { SMOLCLOUD } from "./smolcloud.js";
15
16
  export declare const DESCRIPTORS: readonly [{
16
17
  readonly id: "docker";
17
18
  readonly label: "Docker";
@@ -464,8 +465,25 @@ export declare const DESCRIPTORS: readonly [{
464
465
  };
465
466
  readonly prepareImage: true;
466
467
  readonly load: () => Promise<typeof import("../boxd.js")>;
468
+ }, {
469
+ readonly id: "smolcloud";
470
+ readonly label: "smol cloud";
471
+ readonly keys: readonly [{
472
+ readonly name: "SMOLCLOUD_API_KEY";
473
+ readonly option: "apiKey";
474
+ readonly required: true;
475
+ }];
476
+ readonly metered: true;
477
+ readonly mounts: readonly [];
478
+ readonly unmounted: {
479
+ readonly sync: "smol cloud binds each machine's own storage disk at /workspace, and a synced folder can be held only where nothing is mounted there";
480
+ };
481
+ readonly network: readonly ["none", "open", "allow"];
482
+ readonly capabilities: readonly [import("../kinds.js").KindCapabilities];
483
+ readonly prepareImage: true;
484
+ readonly load: () => Promise<typeof import("../smolcloud.js")>;
467
485
  }];
468
- export { AGENT37, BOXD, BROWSERBASE, CLOUDFLARE, DAYTONA, DOCKER, E2B, FLY, KERNEL, LOCAL, MODAL, MORPH, ORGO, PHONE_HARNESS };
486
+ export { AGENT37, BOXD, BROWSERBASE, CLOUDFLARE, DAYTONA, DOCKER, E2B, FLY, KERNEL, LOCAL, MODAL, MORPH, ORGO, PHONE_HARNESS, SMOLCLOUD };
469
487
  export { AGENT37_BASE_TEMPLATE } from "./agent37.js";
470
488
  export { BOXD_DEFAULT_IMAGE } from "./boxd.js";
471
489
  export { DAYTONA_DEFAULT_SNAPSHOT, DAYTONA_GPU_SNAPSHOT, type DaytonaGpuSnapshot, daytonaGpu, daytonaGpuSnapshot } from "./daytona.js";
@@ -14,8 +14,9 @@ import { MODAL } from "./modal.js";
14
14
  import { MORPH } from "./morph.js";
15
15
  import { ORGO } from "./orgo.js";
16
16
  import { PHONE_HARNESS } from "./phone-harness.js";
17
- export const DESCRIPTORS = [DOCKER, DAYTONA, MODAL, E2B, AGENT37, MORPH, CLOUDFLARE, FLY, ORGO, PHONE_HARNESS, BROWSERBASE, KERNEL, LOCAL, BOXD];
18
- export { AGENT37, BOXD, BROWSERBASE, CLOUDFLARE, DAYTONA, DOCKER, E2B, FLY, KERNEL, LOCAL, MODAL, MORPH, ORGO, PHONE_HARNESS };
17
+ import { SMOLCLOUD } from "./smolcloud.js";
18
+ export const DESCRIPTORS = [DOCKER, DAYTONA, MODAL, E2B, AGENT37, MORPH, CLOUDFLARE, FLY, ORGO, PHONE_HARNESS, BROWSERBASE, KERNEL, LOCAL, BOXD, SMOLCLOUD];
19
+ export { AGENT37, BOXD, BROWSERBASE, CLOUDFLARE, DAYTONA, DOCKER, E2B, FLY, KERNEL, LOCAL, MODAL, MORPH, ORGO, PHONE_HARNESS, SMOLCLOUD };
19
20
  export { AGENT37_BASE_TEMPLATE } from "./agent37.js";
20
21
  export { BOXD_DEFAULT_IMAGE } from "./boxd.js";
21
22
  export { DAYTONA_DEFAULT_SNAPSHOT, DAYTONA_GPU_SNAPSHOT, daytonaGpu, daytonaGpuSnapshot } from "./daytona.js";
@@ -0,0 +1,18 @@
1
+ export declare const SMOLCLOUD: {
2
+ readonly id: "smolcloud";
3
+ readonly label: "smol cloud";
4
+ readonly keys: readonly [{
5
+ readonly name: "SMOLCLOUD_API_KEY";
6
+ readonly option: "apiKey";
7
+ readonly required: true;
8
+ }];
9
+ readonly metered: true;
10
+ readonly mounts: readonly [];
11
+ readonly unmounted: {
12
+ readonly sync: "smol cloud binds each machine's own storage disk at /workspace, and a synced folder can be held only where nothing is mounted there";
13
+ };
14
+ readonly network: readonly ["none", "open", "allow"];
15
+ readonly capabilities: readonly [import("../kinds.js").KindCapabilities];
16
+ readonly prepareImage: true;
17
+ readonly load: () => Promise<typeof import("../smolcloud.js")>;
18
+ };
@@ -0,0 +1,21 @@
1
+ // smol cloud's descriptor: a Linux sandbox on a smol cloud machine (a microVM booted from an OCI image), started from
2
+ // our box image, the public registry tag its prepareImage() answers (box-image.ts), which smol cloud pulls at create. No
3
+ // mount yet: smol cloud binds the machine's own storage disk at /workspace, and the adapter holds a synced folder only
4
+ // where nothing is mounted there, so the run's folder can't be a synced folder on smol cloud.
5
+ import { defineProvider } from "../descriptor.js";
6
+ import { SANDBOX } from "./shared.js";
7
+ export const SMOLCLOUD = defineProvider({
8
+ id: "smolcloud",
9
+ label: "smol cloud",
10
+ keys: [{ name: "SMOLCLOUD_API_KEY", option: "apiKey", required: true }],
11
+ metered: true,
12
+ mounts: [],
13
+ unmounted: { sync: "smol cloud binds each machine's own storage disk at /workspace, and a synced folder can be held only where nothing is mounted there" },
14
+ // All three are ours: root in the guest makes a network namespace, so init's fence holds none and its egress proxy
15
+ // open and a list (hosted/network.ts).
16
+ network: ["none", "open", "allow"],
17
+ capabilities: [SANDBOX],
18
+ // No default image: every computer starts from the box image its prepareImage() answers, unless its spec names one.
19
+ prepareImage: true,
20
+ load: () => import("../smolcloud.js"),
21
+ });
package/dist/desktop.d.ts CHANGED
@@ -11,15 +11,21 @@ export interface DesktopOptions {
11
11
  /** The groups a desktop declares besides exec, files and processes: apps is computerd's, from the desktop's .desktop files. */
12
12
  export declare const DESKTOP_GROUPS: readonly ["screen", "input.pointer", "input.keys", "apps"];
13
13
  /**
14
- * The window manager a host's desktops run where its facts say so (HostFacts.windowManager: E2B's and Agent37's), once
15
- * the display answers: it frames, stacks and focuses the windows apps.launch opens. xfwm4, which both images have, with
16
- * no compositor and no session manager. It reads its settings from xfconfd over a session bus, and exits at once
17
- * without one ("Xfconf could not be initialized"). So it runs in a session bus of its own (dbus-run-session, WINDOW_MANAGER_BUS, written to a file of
18
- * its own under /tmp), in a user namespace (the same uid) and a network namespace of its own: a program of the
19
- * computer's user reaches no socket of that bus, unless it joins those namespaces (nsenter), as the same uid may
20
- * ptrace xfwm4. xfwm4 reaches the display as any program does, by its path. First, xsetroot paints the screen behind
21
- * every window one slate colour, so a desktop with no window open is not a black screen a person reads as broken; a
22
- * paint that fails starts xfwm4 all the same.
14
+ * The window manager a host's desktops run where its facts say so (HostFacts.windowManager: E2B's, Fly's, Cloudflare's,
15
+ * Modal's, Agent37's and Daytona's), once the display answers: it frames, stacks and focuses the windows apps.launch
16
+ * opens. xfwm4, which the box image has, with no compositor and no session manager. It reads its settings from xfconfd
17
+ * over a session bus, and exits at once without one ("Xfconf could not be initialized"). So it runs in a session bus of
18
+ * its own (dbus-run-session, WINDOW_MANAGER_BUS, written to a file of its own under /tmp), in a network namespace of its
19
+ * own: a program of the computer's user reaches no socket of that bus, unless it joins that namespace (nsenter), as the
20
+ * same uid may ptrace xfwm4. xfwm4 reaches the display as any program does, by its path. First, xsetroot paints the
21
+ * screen behind every window one slate colour, so a desktop with no window open is not a black screen a person reads as
22
+ * broken; a paint that fails starts xfwm4 all the same.
23
+ *
24
+ * computerd starts it itself (init --window-manager), as root makes the network namespace and then becomes the
25
+ * computer's user, so no user namespace is needed there: the user can make neither on some hosts (Daytona's sandboxes,
26
+ * under AppArmor's restrict_unprivileged_userns). This argv is create's own start, through process.start as the
27
+ * computer's user, for a computerd whose hello says nothing of one: the user makes the network namespace inside a user
28
+ * namespace (the same uid) of its own.
23
29
  */
24
30
  export declare const WINDOW_MANAGER: readonly string[];
25
31
  /** The desktop options with their defaults, or a throw in words. */
@@ -27,8 +33,9 @@ export declare function desktopOf({ display, server, timeoutMs }: DesktopOptions
27
33
  /**
28
34
  * Starts the desktop's X server through the daemon (process.start) and waits until hello declares the display: the
29
35
  * server ending first, or the bound passing, is a failure in words, with the server's own last words, as the vendor's
30
- * (code vendor, vendor the provider's id). version is the client's, sent with each hello. windowManager: the host's
31
- * desktops run WINDOW_MANAGER (HostFacts.windowManager), started once the display answers.
36
+ * (code vendor, vendor the provider's id). version is the client's, sent with each hello. Once the display answers, a
37
+ * hello with windowManager (computerd was asked to start it) is waited on until the manager runs; else, with
38
+ * windowManager (the host's desktops run one, HostFacts.windowManager), create starts WINDOW_MANAGER itself.
32
39
  */
33
40
  export declare function startDisplay(client: ComputerClient, desktop: Required<DesktopOptions>, { version, vendor, signal, windowManager }: {
34
41
  version: string;
package/dist/desktop.js CHANGED
@@ -1,8 +1,10 @@
1
1
  // A desktop on an X server computerd starts itself: the provider gives init DISPLAY, then starts the X server through
2
2
  // the daemon with process.start, as any program, so the server is in init's process table and ends with the computer.
3
3
  // The daemon reaches the display once it answers, and hello declares screen, input.pointer, input.keys and apps from then
4
- // on (hello re-checks the display on each call). A window manager, when the desktop has one, starts next, the same way.
5
- // Docker's desktops, E2B's and Agent37's start the display this way.
4
+ // on (hello re-checks the display on each call). A window manager, when the desktop has one, comes next: computerd starts
5
+ // it itself when init was asked to (init --window-manager; hello's windowManager says how it goes), and create starts
6
+ // it the same way as the server, through process.start, for a computerd that says nothing of one.
7
+ // Docker's desktops, E2B's, Agent37's and Daytona's start the display this way.
6
8
  import { setTimeout as sleep } from "node:timers/promises";
7
9
  import { fail, ok, vendorFail } from "./result.js";
8
10
  /** The groups a desktop declares besides exec, files and processes: apps is computerd's, from the desktop's .desktop files. */
@@ -25,15 +27,21 @@ const WINDOW_MANAGER_BUS = `<busconfig>
25
27
  </policy>
26
28
  </busconfig>`;
27
29
  /**
28
- * The window manager a host's desktops run where its facts say so (HostFacts.windowManager: E2B's and Agent37's), once
29
- * the display answers: it frames, stacks and focuses the windows apps.launch opens. xfwm4, which both images have, with
30
- * no compositor and no session manager. It reads its settings from xfconfd over a session bus, and exits at once
31
- * without one ("Xfconf could not be initialized"). So it runs in a session bus of its own (dbus-run-session, WINDOW_MANAGER_BUS, written to a file of
32
- * its own under /tmp), in a user namespace (the same uid) and a network namespace of its own: a program of the
33
- * computer's user reaches no socket of that bus, unless it joins those namespaces (nsenter), as the same uid may
34
- * ptrace xfwm4. xfwm4 reaches the display as any program does, by its path. First, xsetroot paints the screen behind
35
- * every window one slate colour, so a desktop with no window open is not a black screen a person reads as broken; a
36
- * paint that fails starts xfwm4 all the same.
30
+ * The window manager a host's desktops run where its facts say so (HostFacts.windowManager: E2B's, Fly's, Cloudflare's,
31
+ * Modal's, Agent37's and Daytona's), once the display answers: it frames, stacks and focuses the windows apps.launch
32
+ * opens. xfwm4, which the box image has, with no compositor and no session manager. It reads its settings from xfconfd
33
+ * over a session bus, and exits at once without one ("Xfconf could not be initialized"). So it runs in a session bus of
34
+ * its own (dbus-run-session, WINDOW_MANAGER_BUS, written to a file of its own under /tmp), in a network namespace of its
35
+ * own: a program of the computer's user reaches no socket of that bus, unless it joins that namespace (nsenter), as the
36
+ * same uid may ptrace xfwm4. xfwm4 reaches the display as any program does, by its path. First, xsetroot paints the
37
+ * screen behind every window one slate colour, so a desktop with no window open is not a black screen a person reads as
38
+ * broken; a paint that fails starts xfwm4 all the same.
39
+ *
40
+ * computerd starts it itself (init --window-manager), as root makes the network namespace and then becomes the
41
+ * computer's user, so no user namespace is needed there: the user can make neither on some hosts (Daytona's sandboxes,
42
+ * under AppArmor's restrict_unprivileged_userns). This argv is create's own start, through process.start as the
43
+ * computer's user, for a computerd whose hello says nothing of one: the user makes the network namespace inside a user
44
+ * namespace (the same uid) of its own.
37
45
  */
38
46
  export const WINDOW_MANAGER = [
39
47
  "unshare",
@@ -76,8 +84,9 @@ export function desktopOf({ display = ":0", server, timeoutMs = 30_000 }) {
76
84
  /**
77
85
  * Starts the desktop's X server through the daemon (process.start) and waits until hello declares the display: the
78
86
  * server ending first, or the bound passing, is a failure in words, with the server's own last words, as the vendor's
79
- * (code vendor, vendor the provider's id). version is the client's, sent with each hello. windowManager: the host's
80
- * desktops run WINDOW_MANAGER (HostFacts.windowManager), started once the display answers.
87
+ * (code vendor, vendor the provider's id). version is the client's, sent with each hello. Once the display answers, a
88
+ * hello with windowManager (computerd was asked to start it) is waited on until the manager runs; else, with
89
+ * windowManager (the host's desktops run one, HostFacts.windowManager), create starts WINDOW_MANAGER itself.
81
90
  */
82
91
  export async function startDisplay(client, desktop, { version, vendor, signal, windowManager = false }) {
83
92
  const server = desktop.server.join(" ");
@@ -96,8 +105,11 @@ export async function startDisplay(client, desktop, { version, vendor, signal, w
96
105
  const hello = await client.call("hello", { client: `@parcha/agentrun-computer ${version}` }, { signal: either });
97
106
  if (!hello.ok)
98
107
  return timedOut() ? late() : hello;
99
- if (Array.isArray(hello.value.groups) && hello.value.groups.includes("screen"))
108
+ if (Array.isArray(hello.value.groups) && hello.value.groups.includes("screen")) {
109
+ if (hello.value.windowManager)
110
+ return await awaitWindowManager(client, desktop, { version, vendor, caller: signal });
100
111
  return windowManager ? await startWindowManager(client, desktop, vendor, signal) : ok(undefined);
112
+ }
101
113
  const waited = await client.call("process.wait", { id, timeoutMs: 0 }, { signal: either });
102
114
  if (waited.ok && !waited.value.running) {
103
115
  const read = await client.call("process.read", { id, stream: "stderr", offset: 0 }, { signal: either });
@@ -115,7 +127,33 @@ export async function startDisplay(client, desktop, { version, vendor, signal, w
115
127
  }
116
128
  }
117
129
  /**
118
- * Starts WINDOW_MANAGER on the display that answers. A manager that cannot start, or ends
130
+ * Waits on the window manager computerd starts itself (hello's windowManager, init --window-manager) until hello says it
131
+ * runs: one that ended fails create in computerd's words, its last lines among them. The bound is WM_BOUND_MS, as for a
132
+ * manager create starts. The caller's abort still ends it.
133
+ */
134
+ async function awaitWindowManager(client, desktop, { version, vendor, caller }) {
135
+ const bound = AbortSignal.timeout(WM_BOUND_MS);
136
+ const signal = caller ? AbortSignal.any([caller, bound]) : bound;
137
+ const stopped = () => caller?.aborted
138
+ ? fail("aborted", "create was aborted while the window manager started")
139
+ : fail("timeout", `the window manager computerd starts did not run on ${desktop.display} within ${WM_BOUND_MS / 1000} s`);
140
+ for (;;) {
141
+ const hello = await client.call("hello", { client: `@parcha/agentrun-computer ${version}` }, { signal });
142
+ if (!hello.ok)
143
+ return signal.aborted ? stopped() : fail(hello.error.code, `hello, while the window manager computerd starts came up on ${desktop.display}: ${hello.error.message}`);
144
+ const fact = hello.value.windowManager;
145
+ if (fact?.state === "running")
146
+ return ok(undefined);
147
+ if (fact?.state === "ended")
148
+ return vendorFail(vendor, fact.why ?? `the window manager computerd starts ended on ${desktop.display}`);
149
+ await sleep(DISPLAY_POLL_MS, undefined, { signal }).catch(() => undefined);
150
+ if (signal.aborted)
151
+ return stopped();
152
+ }
153
+ }
154
+ /**
155
+ * Starts WINDOW_MANAGER on the display that answers, for a computerd that starts none (its hello has no
156
+ * windowManager). A manager that cannot start, or ends
119
157
  * within WM_SETTLE_MS (xfwm4 with no session bus, or no display it may open), fails create with its last words. It has
120
158
  * its own bound, WM_BOUND_MS, not what is left of the display's: a display that came up late still gets its manager's
121
159
  * full second. The caller's abort still ends it.
@@ -13,8 +13,8 @@ import { fileURLToPath } from "node:url";
13
13
  import { isDeepStrictEqual } from "node:util";
14
14
  import { ATTACH_PATH, DAEMON_PATH } from "../attach.js";
15
15
  import { CreateRequests, endedWords, otherSpecWords, readBackDiffer } from "../create-requests.js";
16
- import { syncs } from "../descriptor.js";
17
- import { DESKTOP_GROUPS, desktopOf, startDisplay } from "../desktop.js";
16
+ import { mountsOf, syncs } from "../descriptor.js";
17
+ import { desktopOf, startDisplay } from "../desktop.js";
18
18
  import { COMPUTER_LABEL, DAEMON_IN_COMPUTER, DEADLINE_LABEL, helloDrift, probeNetworkDrift, probeNotes, probeReportOf, show, WORK } from "../drift.js";
19
19
  import { BACKSTOP_MARGIN_MS } from "../host.js";
20
20
  import { readOwnNetwork, TOOL_USER } from "../isolation.js";
@@ -45,8 +45,6 @@ const USER = /^(\d+):(\d+)$/;
45
45
  /** A spec's user, where the host takes one: a uid, or uid:gid, in numbers (a uid alone is its own gid). */
46
46
  const SPEC_USER = /^(\d+)(?::(\d+))?$/;
47
47
  const MAX_ID = 4_294_967_294;
48
- /** The calls of a desktop's display (DESKTOP_GROUPS): screen, input, apps and ui. */
49
- const DISPLAY_METHOD = /^(screen|input|apps|ui)\./;
50
48
  const DEFAULTS = {
51
49
  requestMs: 30_000,
52
50
  createMs: 120_000,
@@ -181,6 +179,8 @@ export class HostedProvider {
181
179
  #extending = new Map();
182
180
  /** A dial host's server: what its machines reach, and what holds their tokens and sockets. */
183
181
  #dial;
182
+ /** The host's descriptor's mounts as its machines reach this server (mountsOf): a dial host's take no Archil mount. */
183
+ #mounts;
184
184
  constructor(host, options) {
185
185
  const { kind = "linux", desktop = {}, maxLifetimeMs = host.facts.maxLifetimeMs, daemonPath = hostedDaemonPath(host.facts.arch), daemonUser = TOOL_USER, timeouts = {}, probeTargets = DEFAULT_PROBE_TARGETS, onNote, archilEgress, } = options;
186
186
  const { id, label, capabilities } = host.descriptor;
@@ -228,6 +228,8 @@ export class HostedProvider {
228
228
  this.#timeouts = merged;
229
229
  this.#probeTargets = [...probeTargets];
230
230
  this.#dial = host.facts.connect === "dial" ? options.dial : undefined;
231
+ // The descriptor's keyed mounts are the host's already (Daytona's): no key is read here.
232
+ this.#mounts = mountsOf(host.descriptor, () => false, host.facts.connect === "dial");
231
233
  // Extend only where the end can follow it: the host moves its timer or its deadline label.
232
234
  if (host.extend)
233
235
  this.extend = (ref, ttlMs, context) => this.#extendSerial(ref, ttlMs, context?.signal);
@@ -252,7 +254,7 @@ export class HostedProvider {
252
254
  release: ["delete"],
253
255
  // A synced folder is derived for this configuration alone (descriptor.ts syncs), whatever the descriptor's list
254
256
  // says: a dial machine takes one too, its /workspace made by the box image's agentrun-dial.
255
- mount: [...descriptor.mounts.filter((kind) => kind !== "sync" && !(this.#dialing && kind === "archil")), ...(syncs(descriptor, this.#configuration) ? ["sync"] : [])],
257
+ mount: [...this.#mounts.mounts.filter((kind) => kind !== "sync"), ...(syncs(descriptor, this.#configuration) ? ["sync"] : [])],
256
258
  vendorAgentPorts: [...facts.vendorAgentPorts],
257
259
  ...(gpu === undefined ? {} : { gpu: structuredClone(gpu) }),
258
260
  ...(facts.user === undefined ? {} : { user: [...facts.user] }),
@@ -267,9 +269,7 @@ export class HostedProvider {
267
269
  const label = this.#label;
268
270
  // An Archil mount's own rules hold only where the provider takes one; elsewhere checkMount's refusal says why alone.
269
271
  const archil = mount?.kind === "archil" && (capabilities.mount ?? []).includes("archil");
270
- // A machine that dials takes no Archil mount yet: its helper's steps run as root through exec, which it has none of.
271
- const unmounted = this.#dialing ? { ...this.host.descriptor.unmounted, archil: `${label}'s machines dial this server, and a machine that dials takes no Archil mount yet` } : this.host.descriptor.unmounted;
272
- refusals.push(...checkMount(mount, capabilities.mount ?? [], unmounted), ...(archil ? archilRefusals(given) : []));
272
+ refusals.push(...checkMount(mount, capabilities.mount ?? [], this.#mounts.unmounted), ...(archil ? archilRefusals(given) : []));
273
273
  // A synced folder reads back under the run's claim epoch, as an Archil mount does: nothing in the computer holds one.
274
274
  if (mount?.kind === "sync" && (capabilities.mount ?? []).includes("sync")) {
275
275
  const epoch = epochOf(typeof labels === "object" && labels !== null ? labels : undefined);
@@ -685,6 +685,8 @@ export class HostedProvider {
685
685
  return this.#fail("refused", `labels: ${stored.problem}`);
686
686
  const archil = spec.mount?.kind === "archil";
687
687
  const user = this.#userOf(spec);
688
+ // A desktop whose host runs a window manager has computerd start it (init --window-manager).
689
+ const windowManager = this.#desktop !== undefined && this.host.facts.windowManager === true;
688
690
  const commands = hostedCommands({
689
691
  staging: `${STAGING}${randomBytes(8).toString("hex")}`,
690
692
  deadline,
@@ -701,10 +703,11 @@ export class HostedProvider {
701
703
  network: formOf(spec.network),
702
704
  // A synced folder's /workspace, the computer's user's, made by install before init.
703
705
  workspace: spec.mount?.kind === "sync",
706
+ windowManager,
704
707
  });
705
708
  const backstopAt = new Date(now + this.#maxLifetimeMs + BACKSTOP_MARGIN_MS).toISOString();
706
709
  const run = spec.labels?.[RUN_LABEL];
707
- const boot = this.#dialing ? await this.#boot(name, backstopAt, { deadline, user, maxDeadline, network: formOf(spec.network) }, sha256, typeof run === "string" ? run : undefined) : undefined;
710
+ const boot = this.#dialing ? await this.#boot(name, backstopAt, { deadline, user, maxDeadline, network: formOf(spec.network), windowManager }, sha256, typeof run === "string" ? run : undefined) : undefined;
708
711
  if (boot !== undefined && !boot.ok)
709
712
  return boot;
710
713
  const request = {
@@ -1222,13 +1225,9 @@ export class HostedProvider {
1222
1225
  }
1223
1226
  /** The live view: screen.watch on a connection of the watch's own (daemonWatch); a linux computer has no screen. */
1224
1227
  watch(ref, handlers, options) {
1225
- return daemonWatch({ connect: (one) => this.#connect(one, "screen.watch") }, ref, handlers, options);
1228
+ return daemonWatch(this, ref, handlers, options);
1226
1229
  }
1227
- connect(ref) {
1228
- return this.#connect(ref);
1229
- }
1230
- /** connect; `watching`, a watch's: a dial desktop whose display isn't up yet refuses it in words, as its client does. */
1231
- async #connect(ref, watching) {
1230
+ async connect(ref) {
1232
1231
  const problem = this.#refProblem(ref);
1233
1232
  if (problem)
1234
1233
  return this.#fail("invalid", problem);
@@ -1244,20 +1243,8 @@ export class HostedProvider {
1244
1243
  if (!opened.ok)
1245
1244
  return opened;
1246
1245
  const { kind, groups } = this.capabilities();
1247
- // A dial desktop says linux until its display answers (attach.ts helloMismatch), and until a hello says desktop it is
1248
- // a linux computer: its screen, input, apps and ui calls are refused here in words, never sent.
1249
- const dark = this.#dialing && kind === "desktop" && opened.value.hello?.kind === "linux";
1250
- const expected = dark ? { kind: "linux", groups: groups.filter((group) => !DESKTOP_GROUPS.includes(group)) } : { kind, groups };
1251
- const drifted = helloDrift(opened.value.hello, { version: VERSION, ...expected, arch: this.host.facts.arch, fence: true });
1252
- const notUp = (method) => this.#fail("unsupported", `${ref.name}'s display isn't up yet: ${method} was not sent, and it is a linux computer until its daemon's hello says desktop`);
1253
- if (drifted.length === 0 && dark && watching) {
1254
- await opened.value.close();
1255
- return notUp(watching);
1256
- }
1257
- if (drifted.length === 0 && dark) {
1258
- const client = opened.value.client;
1259
- return ok({ ...opened.value, client: { call: (method, params, options) => (DISPLAY_METHOD.test(method) ? Promise.resolve(notUp(method)) : client.call(method, params, options)), close: () => client.close() } });
1260
- }
1246
+ // A desktop whose display is down says linux (an X server that died): drift, on dial as on exec.
1247
+ const drifted = helloDrift(opened.value.hello, { version: VERSION, kind, groups, arch: this.host.facts.arch, fence: true });
1261
1248
  // An Archil computer's client syncs the run's folder after every call that may change it, before it answers. A synced
1262
1249
  // folder's sync is its runner's (the sink is serve's), which wraps the client itself.
1263
1250
  if (drifted.length === 0)
@@ -11,6 +11,8 @@ export interface RestAnswer {
11
11
  export interface RestInit {
12
12
  json?: unknown;
13
13
  form?: FormData;
14
+ /** A body sent as it is (a file's bytes). */
15
+ bytes?: Uint8Array<ArrayBuffer>;
14
16
  timeoutMs?: number;
15
17
  /**
16
18
  * true: send again on no answer, 429 and 5xx (only for a call that may run twice). A function: send again only on an
@@ -65,7 +65,7 @@ export function rest(options) {
65
65
  const response = await fetcher(url, {
66
66
  method,
67
67
  headers,
68
- body: init.json === undefined ? init.form : JSON.stringify(init.json),
68
+ body: init.json === undefined ? (init.bytes ?? init.form) : JSON.stringify(init.json),
69
69
  redirect: "error",
70
70
  signal: signal ? AbortSignal.any([signal, timeout.signal]) : timeout.signal,
71
71
  });
@@ -47,7 +47,7 @@ export interface HostedCommands {
47
47
  * the patterns a child's sockets command closes (default SESSION_BUSES); rootOnly the paths its root-only command takes
48
48
  * others' write off (default none). With workspace, install makes WORKSPACE the user's, 0700: a synced folder's.
49
49
  */
50
- export declare function hostedCommands({ staging, deadline, user, display, maxDeadline, atomic, waitS, gate, sha256, nonce, sockets, rootOnly, network, workspace, }?: ChildCommandOptions & {
50
+ export declare function hostedCommands({ staging, deadline, user, display, maxDeadline, atomic, waitS, gate, sha256, nonce, sockets, rootOnly, network, workspace, windowManager, }?: ChildCommandOptions & {
51
51
  atomic?: boolean;
52
52
  waitS?: number;
53
53
  gate?: string;
@@ -70,19 +70,21 @@ export interface ChildCommandOptions {
70
70
  maxDeadline?: string;
71
71
  /** The network form init's egress proxy serves (./network.ts networkFormOf): open, or allow: and a list; none, no proxy. */
72
72
  network?: string;
73
+ /** Init starts the desktop's window manager on the display (--window-manager): a desktop whose host runs one. */
74
+ windowManager?: boolean;
73
75
  }
74
76
  /**
75
77
  * init's flags, as start and a pid1 entrypoint give them: the deadline, the user, --own-network, and the most
76
- * deadline.extend may move it to and the network form where given. A dial machine's AGENTRUN_INIT_ARGS, space-separated:
77
- * no value holds a space.
78
+ * deadline.extend may move it to, the network form and --window-manager where given. A dial machine's
79
+ * AGENTRUN_INIT_ARGS, space-separated: no value holds a space.
78
80
  */
79
- export declare function initFlags({ deadline, user, maxDeadline, network }: Omit<ChildCommandOptions, "staging" | "display">): string[];
81
+ export declare function initFlags({ deadline, user, maxDeadline, network, windowManager }: Omit<ChildCommandOptions, "staging" | "display">): string[];
80
82
  /**
81
83
  * The three shell commands a child-daemon provider sends into a computer, exactly: install (the upload moved into place,
82
84
  * its sha256 printed), init (long-lived) and stdio (one per connection). Each is one string for a shell, `sh -c` with
83
85
  * every argument quoted.
84
86
  */
85
- export declare function childCommands({ staging, deadline, user, display, maxDeadline, network }?: ChildCommandOptions): {
87
+ export declare function childCommands({ staging, deadline, user, display, maxDeadline, network, windowManager }?: ChildCommandOptions): {
86
88
  install: string;
87
89
  init: string;
88
90
  stdio: string;
@@ -67,15 +67,17 @@ export function installerOf(output) {
67
67
  * them at the deadline. A display, when given, is init's DISPLAY, the X display its screen and input methods drive; a
68
68
  * maximum, when given, is the most deadline.extend may move the deadline to; a network form, when given (open, or
69
69
  * allow: and a list), has init start the egress proxy that serves it before it leaves the machine's network
70
- * (./network.ts). */
70
+ * (./network.ts); a ninth argument, when not empty, has init start the desktop's window manager on the display
71
+ * (--window-manager). */
71
72
  const INIT_SCRIPT = [
72
73
  "# agentrun-computer: init",
73
- // The display is v, not x: held() assigns x, and runs before the exec that reads it. The network form is n.
74
- "d=$1; t=$2; w=$3; h=$4; r=$5; v=${6-}; m=${7-}; n=${8-}",
74
+ // The display is v, not x: held() assigns x, and runs before the exec that reads it. The network form is n, the
75
+ // window manager g.
76
+ "d=$1; t=$2; w=$3; h=$4; r=$5; v=${6-}; m=${7-}; n=${8-}; g=${9-}",
75
77
  HELD,
76
78
  'held "$d" >&2 || exit 6',
77
79
  ROOT,
78
- `exec $p env -i PATH=${PATH} HOME="$h" AGENTRUN_COMPUTERD_SOCKET="$r/computerd.sock" \${v:+DISPLAY="$v"} sh -c 'cd "$HOME" && exec "$@"' sh "$d" init --deadline "$t" --user "$w" --own-network \${m:+--max-deadline "$m"} \${n:+--network "$n"}`,
80
+ `exec $p env -i PATH=${PATH} HOME="$h" AGENTRUN_COMPUTERD_SOCKET="$r/computerd.sock" \${v:+DISPLAY="$v"} sh -c 'cd "$HOME" && exec "$@"' sh "$d" init --deadline "$t" --user "$w" --own-network \${m:+--max-deadline "$m"} \${n:+--network "$n"} \${g:+--window-manager}`,
79
81
  ].join("\n");
80
82
  /** The bridge one connection runs: stdin and stdout to init's socket. As root, to reach a socket in a directory that is
81
83
  * the daemon's user's alone; it only carries bytes, and the command's user is root or has passwordless sudo already.
@@ -193,9 +195,9 @@ export const ARCHIL_GATE = `${DAEMON_IN_COMPUTER.slice(0, DAEMON_IN_COMPUTER.las
193
195
  * the patterns a child's sockets command closes (default SESSION_BUSES); rootOnly the paths its root-only command takes
194
196
  * others' write off (default none). With workspace, install makes WORKSPACE the user's, 0700: a synced folder's.
195
197
  */
196
- export function hostedCommands({ staging = "", deadline = "", user = TOOL_USER, display = "", maxDeadline = "", atomic = false, waitS = 600, gate, sha256 = "", nonce = "", sockets = SESSION_BUSES, rootOnly = [], network = "", workspace = false, } = {}) {
197
- const init = initScriptArgs({ deadline, user, display, maxDeadline, network });
198
- const initArgs = ["init", ...initFlags({ deadline, user, maxDeadline, network })];
198
+ export function hostedCommands({ staging = "", deadline = "", user = TOOL_USER, display = "", maxDeadline = "", atomic = false, waitS = 600, gate, sha256 = "", nonce = "", sockets = SESSION_BUSES, rootOnly = [], network = "", workspace = false, windowManager = false, } = {}) {
199
+ const init = initScriptArgs({ deadline, user, display, maxDeadline, network, windowManager });
200
+ const initArgs = ["init", ...initFlags({ deadline, user, maxDeadline, network, windowManager })];
199
201
  const atomicArgs = atomic ? ["1", sha256, nonce] : workspace ? ["", "", ""] : [];
200
202
  return {
201
203
  install: argvOf(INSTALL_SCRIPT, [staging, DAEMON_IN_COMPUTER, WORK, SOCKET_DIR, ...atomicArgs, ...(workspace ? [WORKSPACE, user] : [])]),
@@ -209,17 +211,28 @@ export function hostedCommands({ staging = "", deadline = "", user = TOOL_USER,
209
211
  }
210
212
  /**
211
213
  * init's flags, as start and a pid1 entrypoint give them: the deadline, the user, --own-network, and the most
212
- * deadline.extend may move it to and the network form where given. A dial machine's AGENTRUN_INIT_ARGS, space-separated:
213
- * no value holds a space.
214
+ * deadline.extend may move it to, the network form and --window-manager where given. A dial machine's
215
+ * AGENTRUN_INIT_ARGS, space-separated: no value holds a space.
214
216
  */
215
- export function initFlags({ deadline = "", user = TOOL_USER, maxDeadline = "", network = "" }) {
216
- return ["--deadline", deadline, "--user", user, "--own-network", ...(maxDeadline === "" ? [] : ["--max-deadline", maxDeadline]), ...(network === "" ? [] : ["--network", network])];
217
+ export function initFlags({ deadline = "", user = TOOL_USER, maxDeadline = "", network = "", windowManager = false }) {
218
+ return [
219
+ "--deadline",
220
+ deadline,
221
+ "--user",
222
+ user,
223
+ "--own-network",
224
+ ...(maxDeadline === "" ? [] : ["--max-deadline", maxDeadline]),
225
+ ...(network === "" ? [] : ["--network", network]),
226
+ ...(windowManager ? ["--window-manager"] : []),
227
+ ];
217
228
  }
218
229
  /** The init script's arguments: the daemon, the deadline, the user, home and the socket's folder, then the display, the
219
- * maximum and the network form, each empty when not given, where any of them is. */
220
- function initScriptArgs({ deadline = "", user = TOOL_USER, display = "", maxDeadline = "", network = "" }) {
230
+ * maximum, the network form and the window manager ("1"), each empty when not given, where any of them is. */
231
+ function initScriptArgs({ deadline = "", user = TOOL_USER, display = "", maxDeadline = "", network = "", windowManager = false }) {
221
232
  const init = [DAEMON_IN_COMPUTER, deadline, user, WORK, SOCKET_DIR];
222
- if (network !== "")
233
+ if (windowManager)
234
+ init.push(display, maxDeadline, network, "1");
235
+ else if (network !== "")
223
236
  init.push(display, maxDeadline, network);
224
237
  else if (display !== "" || maxDeadline !== "")
225
238
  init.push(display, maxDeadline);
@@ -230,8 +243,8 @@ function initScriptArgs({ deadline = "", user = TOOL_USER, display = "", maxDead
230
243
  * its sha256 printed), init (long-lived) and stdio (one per connection). Each is one string for a shell, `sh -c` with
231
244
  * every argument quoted.
232
245
  */
233
- export function childCommands({ staging = "", deadline = "", user = TOOL_USER, display = "", maxDeadline = "", network = "" } = {}) {
234
- const init = initScriptArgs({ deadline, user, display, maxDeadline, network });
246
+ export function childCommands({ staging = "", deadline = "", user = TOOL_USER, display = "", maxDeadline = "", network = "", windowManager = false } = {}) {
247
+ const init = initScriptArgs({ deadline, user, display, maxDeadline, network, windowManager });
235
248
  return {
236
249
  install: shellCommand(INSTALL_SCRIPT, [staging, DAEMON_IN_COMPUTER, WORK, SOCKET_DIR]),
237
250
  init: shellCommand(INIT_SCRIPT, init),
@@ -3,8 +3,6 @@ import type { ComputerSpec, Refusal } from "../provider.js";
3
3
  /** A host name, as a vendor's domain option is one: DNS labels and a top-level name of letters. */
4
4
  export declare const DOMAIN: RegExp;
5
5
  export declare const isWhole: (value: unknown) => value is number;
6
- /** Why a provider of both makes no desktop on exec (label: "Modal"): its desktop is the box image's, started over the dial. */
7
- export declare const execDesktopRefusal: (label: string, image: string) => string;
8
6
  /** A vendor whose computer has its image's size: a spec's cpus or memoryMb, refused in words (computer: "an E2B computer"). */
9
7
  export declare function sizeRefusals(spec: Partial<ComputerSpec>, computer: string, image: string): Refusal[];
10
8
  /** A time the vendor reports: a Date, an ISO string, or a whole number of ms (or seconds); undefined when it is none of them. */
@@ -4,8 +4,6 @@ import { deflateRawSync, inflateRawSync } from "node:zlib";
4
4
  /** A host name, as a vendor's domain option is one: DNS labels and a top-level name of letters. */
5
5
  export const DOMAIN = /^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/;
6
6
  export const isWhole = (value) => typeof value === "number" && Number.isSafeInteger(value);
7
- /** Why a provider of both makes no desktop on exec (label: "Modal"): its desktop is the box image's, started over the dial. */
8
- export const execDesktopRefusal = (label, image) => `a ${label} desktop is made on connect "dial" alone, from ${image}, its X server started over the socket its machine dials: connect "exec" makes kind linux`;
9
7
  /** A vendor whose computer has its image's size: a spec's cpus or memoryMb, refused in words (computer: "an E2B computer"). */
10
8
  export function sizeRefusals(spec, computer, image) {
11
9
  return ["cpus", "memoryMb"].filter((field) => spec[field] !== undefined).map((field) => ({ field, message: `${computer} has the size of its ${image}: name a ${image} of the size you need, not ${field}` }));
package/dist/index.d.ts CHANGED
@@ -26,7 +26,8 @@ export { EPOCH_LABEL, epochOf, epochProblem, IDLE_TTL_LABEL, OWNER_LABEL, OWNER_
26
26
  export { waitUntil, type WaitOptions } from "./wait.js";
27
27
  export { type BuiltinProviderId, type ConformanceModule, descriptorOf, isProviderId, type ProviderEnv, providerFor, type ProviderId, providerIds, type ProviderModule, providerModule, type ProviderOptions, providers, } from "./providers.js";
28
28
  export { connectOf, type DescriptorKey, type DescriptorSetting, defineProvider, descriptorProblems, type HostCommand, mountsOf, type ParkedConfiguration, type ProviderDescriptor } from "./descriptor.js";
29
- export { AGENT37, AGENT37_BASE_TEMPLATE, BOXD, BOXD_DEFAULT_IMAGE, BROWSER_IMAGE, BROWSERBASE, DAYTONA, DAYTONA_DEFAULT_SNAPSHOT, DAYTONA_GPU_SNAPSHOT, type DaytonaGpuSnapshot, DESCRIPTORS, daytonaGpu, daytonaGpuSnapshot, DOCKER, E2B, KERNEL, LOCAL, MODAL, MORPH, ORGO, ORGO_BASE_IMAGE, PHONE_GROUPS, PHONE_HARNESS, PHONE_IMAGE, } from "./descriptors/index.js";
29
+ export { AGENT37, AGENT37_BASE_TEMPLATE, BOXD, BOXD_DEFAULT_IMAGE, BROWSER_IMAGE, BROWSERBASE, DAYTONA, DAYTONA_DEFAULT_SNAPSHOT, DAYTONA_GPU_SNAPSHOT, type DaytonaGpuSnapshot, DESCRIPTORS, daytonaGpu, daytonaGpuSnapshot, DOCKER, E2B, KERNEL, LOCAL, MODAL, MORPH, ORGO, ORGO_BASE_IMAGE, PHONE_GROUPS, PHONE_HARNESS, PHONE_IMAGE, SMOLCLOUD, } from "./descriptors/index.js";
30
30
  export type { PhoneLedger, PhoneLedgerEntry } from "./phone-harness.js";
31
- export { type ComputerSettingKind, configurationOf, entryOf, imagesOf, type KindCapabilities, kindOf, kindServed, type ProviderEntry, PROVIDERS, SETTING_KIND_NAMES, SETTING_KINDS, type SettingKindSpec, serves, servingRefusals, type TestConnection, type TestConnectionOptions, } from "./kinds.js";
31
+ export { configurationOf, entryOf, imagesOf, type KindCapabilities, kindOf, kindServed, type ProviderEntry, PROVIDERS, serves, servingRefusals, type TestConnection, type TestConnectionOptions, } from "./kinds.js";
32
+ export { type ComputerSettingKind, SETTING_KIND_NAMES, SETTING_KINDS, type SettingKindSpec } from "./setting-kinds.js";
32
33
  export * from "./conformance/index.js";
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ export { createActionMapper, daemonWatch, redactWords, ScreenWatchError, toActio
14
14
  export { HostedProvider, hostedDaemonPath } from "./hosted/provider.js";
15
15
  // The provider classes and their option types are not here: each provider loads by its id through the registry
16
16
  // (providerFor), or from its own subpath (@parcha/agentrun-computer/docker, /daytona, /modal, /e2b, /agent37, /morph, /orgo,
17
- // /phone-harness, /browserbase, /kernel, /local: each the provider file's name).
17
+ // /phone-harness, /browserbase, /kernel, /local, /smolcloud: each the provider file's name).
18
18
  export { VOLUME_SUBPATH_ENGINE } from "./docker/volume.js";
19
19
  export { DEFAULT_DOCKER_IMAGE, DOCKER_BASE, DOCKER_RECIPE, DOCKER_RECIPE_HAS, ensureImage, IMAGE_REPOSITORY, IMAGE_TIMEOUT_MS, imageSourceProblem, RECIPE_LABEL, recipeHash, recipeTag, } from "./docker/image.js";
20
20
  export { EGRESS_IMAGE, EGRESS_LABEL, EGRESS_MOUNT, EGRESS_SOCKET } from "./docker/egress.js";
@@ -30,6 +30,7 @@ export { EPOCH_LABEL, epochOf, epochProblem, IDLE_TTL_LABEL, OWNER_LABEL, OWNER_
30
30
  export { waitUntil } from "./wait.js";
31
31
  export { descriptorOf, isProviderId, providerFor, providerIds, providerModule, providers, } from "./providers.js";
32
32
  export { connectOf, defineProvider, descriptorProblems, mountsOf } from "./descriptor.js";
33
- export { AGENT37, AGENT37_BASE_TEMPLATE, BOXD, BOXD_DEFAULT_IMAGE, BROWSER_IMAGE, BROWSERBASE, DAYTONA, DAYTONA_DEFAULT_SNAPSHOT, DAYTONA_GPU_SNAPSHOT, DESCRIPTORS, daytonaGpu, daytonaGpuSnapshot, DOCKER, E2B, KERNEL, LOCAL, MODAL, MORPH, ORGO, ORGO_BASE_IMAGE, PHONE_GROUPS, PHONE_HARNESS, PHONE_IMAGE, } from "./descriptors/index.js";
34
- export { configurationOf, entryOf, imagesOf, kindOf, kindServed, PROVIDERS, SETTING_KIND_NAMES, SETTING_KINDS, serves, servingRefusals, } from "./kinds.js";
33
+ export { AGENT37, AGENT37_BASE_TEMPLATE, BOXD, BOXD_DEFAULT_IMAGE, BROWSER_IMAGE, BROWSERBASE, DAYTONA, DAYTONA_DEFAULT_SNAPSHOT, DAYTONA_GPU_SNAPSHOT, DESCRIPTORS, daytonaGpu, daytonaGpuSnapshot, DOCKER, E2B, KERNEL, LOCAL, MODAL, MORPH, ORGO, ORGO_BASE_IMAGE, PHONE_GROUPS, PHONE_HARNESS, PHONE_IMAGE, SMOLCLOUD, } from "./descriptors/index.js";
34
+ export { configurationOf, entryOf, imagesOf, kindOf, kindServed, PROVIDERS, serves, servingRefusals, } from "./kinds.js";
35
+ export { SETTING_KIND_NAMES, SETTING_KINDS } from "./setting-kinds.js";
35
36
  export * from "./conformance/index.js";