@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 { DAYTONA_DEFAULT_SNAPSHOT } from "../descriptors/daytona.js";
12
12
  import { archilRunFolder, archilSettings } from "./archil.js";
13
13
  import { dialOnlyFromServer } from "./dial-only.js";
14
14
  import { buildDriftDaemon, DRIFT_VERSION } from "./drift-daemon.js";
15
+ import { kindFrom } from "./kind.js";
15
16
  /** The Archil disk's settings for the mount cases, by name (COMPUTER_ARCHIL_*: all five, or none). */
16
17
  export { ARCHIL_ENV } from "./archil.js";
17
18
  /** The environment this module reads, by name, each for the option its comment names. */
@@ -41,6 +42,8 @@ export const DAYTONA_ENV = {
41
42
  archilEgress: "COMPUTER_DAYTONA_ARCHIL_EGRESS",
42
43
  /** connect: exec (default) or dial, which needs the public server's process (dialKit). */
43
44
  connect: "COMPUTER_DAYTONA_CONNECT",
45
+ /** kind: linux (default) or desktop, which create() takes on dial alone. */
46
+ kind: "COMPUTER_DAYTONA_KIND",
44
47
  };
45
48
  /** The names this module reads, under the conformance modules' common name (ConformanceModule.ENV). */
46
49
  export const ENV = DAYTONA_ENV;
@@ -92,6 +95,8 @@ export const conformanceNotes = [
92
95
  function optionsOf({ env = process.env, fetch, webSocket, timeouts, onNote, dial, daemonPath }) {
93
96
  return {
94
97
  ...settingsFromEnv(env),
98
+ // create() refuses any other kind, and desktop without dial, in words.
99
+ ...kindFrom(env, DAYTONA_ENV.kind),
95
100
  ...(daemonPath === undefined ? {} : { daemonPath }),
96
101
  autoStopMinutes: CONFORMANCE_AUTO_STOP_MINUTES,
97
102
  autoDeleteMinutes: CONFORMANCE_AUTO_DELETE_MINUTES,
@@ -20,6 +20,7 @@ import { create } from "../e2b.js";
20
20
  import { archilRunFolder, archilSettings } from "./archil.js";
21
21
  import { dialOnlyFromServer } from "./dial-only.js";
22
22
  import { buildDriftDaemon, DRIFT_VERSION } from "./drift-daemon.js";
23
+ import { kindFrom } from "./kind.js";
23
24
  /** The Archil disk's settings for the mount cases, by name (COMPUTER_ARCHIL_*: all five, or none). */
24
25
  export { ARCHIL_ENV } from "./archil.js";
25
26
  /** The environment this module reads, by name, each for the option its comment names, the live switch and the run's template. */
@@ -60,7 +61,6 @@ export function settingsFromEnv(env = process.env) {
60
61
  throw new Error(`${E2B_ENV.maxLifetimeMs} is a whole number of milliseconds, such as 3600000 (Hobby) or 86400000 (Pro)`);
61
62
  const domain = env[E2B_ENV.domain] || undefined;
62
63
  const daemonPath = env[E2B_ENV.daemon] || undefined;
63
- const kind = env[E2B_ENV.kind] || undefined;
64
64
  const daemonUser = env[E2B_ENV.user] || undefined;
65
65
  const connect = env[E2B_ENV.connect] || undefined;
66
66
  return {
@@ -69,8 +69,7 @@ export function settingsFromEnv(env = process.env) {
69
69
  ...(connect === undefined ? {} : { connect: connect }),
70
70
  ...(domain === undefined ? {} : { domain }),
71
71
  ...(daemonPath === undefined ? {} : { daemonPath }),
72
- // create() refuses any other kind in words.
73
- ...(kind === undefined ? {} : { kind: kind }),
72
+ ...kindFrom(env, E2B_ENV.kind),
74
73
  ...(lifetime === undefined ? {} : { maxLifetimeMs: Number(lifetime) }),
75
74
  ...(daemonUser === undefined ? {} : { daemonUser }),
76
75
  };
@@ -1,6 +1,6 @@
1
1
  // The model-free fixtures the screen, input, touch and apps cases check effects with. A fixture is an app that logs
2
2
  // every input event it gets as one JSON line in a file the case reads over files. On a desktop it is computerd-fixture,
3
- // a test-only static binary: a 200x200 override-redirect window at (0, 0) in four known colors, which grabs focus. On
3
+ // a static binary the server's image carries for dial conformance: a 200x200 override-redirect window at (0, 0) in four known colors, which grabs focus. On
4
4
  // Android it is a small APK that logs touches and its own launch to its files directory and shows a button with a fixed
5
5
  // id. This file is their contract: the binary and the APK come with the PRs that first run them. On a Windows desktop it
6
6
  // is a PowerShell script this package carries (windows-fixture.ts), the same window, started detached with Start-Process.
@@ -9,6 +9,8 @@ export declare const FLY_ENV: {
9
9
  readonly token: "COMPUTER_FLY_API_TOKEN";
10
10
  /** app, required: the Fly app the run's machines live in. */
11
11
  readonly app: "COMPUTER_FLY_APP";
12
+ /** kind: linux (default) or desktop, which needs the public server's process (dialKit). */
13
+ readonly kind: "COMPUTER_FLY_KIND";
12
14
  };
13
15
  /** The names this module reads, under the conformance modules' common name (ConformanceModule.ENV). */
14
16
  export declare const ENV: {
@@ -16,6 +18,8 @@ export declare const ENV: {
16
18
  readonly token: "COMPUTER_FLY_API_TOKEN";
17
19
  /** app, required: the Fly app the run's machines live in. */
18
20
  readonly app: "COMPUTER_FLY_APP";
21
+ /** kind: linux (default) or desktop, which needs the public server's process (dialKit). */
22
+ readonly kind: "COMPUTER_FLY_KIND";
19
23
  };
20
24
  /** The longest lifetime a computer of a run may ask for: init's deadline and the janitor end each machine by then. */
21
25
  export declare const CONFORMANCE_MAX_LIFETIME_MS: number;
@@ -1,11 +1,14 @@
1
1
  import { boxImageRef } from "../box-image.js";
2
2
  import { create } from "../fly.js";
3
+ import { kindFrom } from "./kind.js";
3
4
  /** The environment this module reads, by name, each for the option its comment names. */
4
5
  export const FLY_ENV = {
5
6
  /** apiToken, required: a Fly API token that may make machines in the app. */
6
7
  token: "COMPUTER_FLY_API_TOKEN",
7
8
  /** app, required: the Fly app the run's machines live in. */
8
9
  app: "COMPUTER_FLY_APP",
10
+ /** kind: linux (default) or desktop, which needs the public server's process (dialKit). */
11
+ kind: "COMPUTER_FLY_KIND",
9
12
  };
10
13
  /** The names this module reads, under the conformance modules' common name (ConformanceModule.ENV). */
11
14
  export const ENV = FLY_ENV;
@@ -23,6 +26,7 @@ export function settingsFromEnv(env = process.env) {
23
26
  export function createProvider({ env = process.env, dial, daemonPath, fetch, onNote } = {}) {
24
27
  return create({
25
28
  ...settingsFromEnv(env),
29
+ ...kindFrom(env, FLY_ENV.kind),
26
30
  ...(dial ? { dial } : {}),
27
31
  ...(daemonPath === undefined ? {} : { daemonPath }),
28
32
  ...(fetch ? { fetch } : {}),
@@ -1,4 +1,5 @@
1
- import { type ComputerSettingKind, type KindCapabilities } from "../kinds.js";
1
+ import { type KindCapabilities } from "../kinds.js";
2
+ import { type ComputerSettingKind } from "../setting-kinds.js";
2
3
  import type { Case, ConformanceReport } from "./types.js";
3
4
  /** A kind's verdict: pass, or fail with why, in words. */
4
5
  export interface KindVerdict {
@@ -6,6 +7,12 @@ export interface KindVerdict {
6
7
  verdict: "pass" | "fail";
7
8
  reasons: string[];
8
9
  }
10
+ /** A hosted provider module's kind from its env variable `name` (COMPUTER_<VENDOR>_KIND), as create() options: none
11
+ * when it is unset or empty (the provider's default), else what it says, which create() refuses in words unless it is
12
+ * desktop or linux. */
13
+ export declare const kindFrom: (env: Record<string, string | undefined>, name: string) => {
14
+ kind?: "desktop" | "linux";
15
+ };
9
16
  /** Why a run cannot be by this kind, in words; undefined when it can. Kind none is no computer. */
10
17
  export declare function kindRunProblem(kind: ComputerSettingKind): string | undefined;
11
18
  /**
@@ -1,10 +1,15 @@
1
1
  // Conformance by kind: the cases a setting kind runs, and whether a provider passes it. One table with the registry
2
2
  // (src/kinds.ts): a kind's cases are those whose protocol groups it requires or allows, and a provider passes the kind
3
3
  // only when it serves it and every case of each required group passes, at least one of them.
4
- import { SETTING_KIND_NAMES, SETTING_KINDS, servingRefusals } from "../kinds.js";
4
+ import { servingRefusals } from "../kinds.js";
5
+ import { SETTING_KIND_NAMES, SETTING_KINDS } from "../setting-kinds.js";
5
6
  import { GROUPS } from "../protocol.js";
6
7
  import { casesFor } from "./cases/index.js";
7
8
  const groupsOf = (c) => c.needs.filter((need) => GROUPS.includes(need));
9
+ /** A hosted provider module's kind from its env variable `name` (COMPUTER_<VENDOR>_KIND), as create() options: none
10
+ * when it is unset or empty (the provider's default), else what it says, which create() refuses in words unless it is
11
+ * desktop or linux. */
12
+ export const kindFrom = (env, name) => (env[name] ? { kind: env[name] } : {});
8
13
  /** Why a run cannot be by this kind, in words; undefined when it can. Kind none is no computer. */
9
14
  export function kindRunProblem(kind) {
10
15
  const spec = Object.hasOwn(SETTING_KINDS, kind) ? SETTING_KINDS[kind] : undefined;
@@ -18,6 +18,8 @@ export declare const MODAL_ENV: {
18
18
  readonly serverUrl: "COMPUTER_MODAL_SERVER_URL";
19
19
  /** connect: exec (default) or dial, which needs the public server's process (dialKit). */
20
20
  readonly connect: "COMPUTER_MODAL_CONNECT";
21
+ /** kind: linux (default) or desktop, which create() takes on dial alone. */
22
+ readonly kind: "COMPUTER_MODAL_KIND";
21
23
  };
22
24
  /** The names this module reads, under the conformance modules' common name (ConformanceModule.ENV). */
23
25
  export declare const ENV: {
@@ -31,6 +33,8 @@ export declare const ENV: {
31
33
  readonly serverUrl: "COMPUTER_MODAL_SERVER_URL";
32
34
  /** connect: exec (default) or dial, which needs the public server's process (dialKit). */
33
35
  readonly connect: "COMPUTER_MODAL_CONNECT";
36
+ /** kind: linux (default) or desktop, which create() takes on dial alone. */
37
+ readonly kind: "COMPUTER_MODAL_KIND";
34
38
  };
35
39
  /** What this module reads from the environment: the token, the app, and the server when set. */
36
40
  export type ModalSettings = Pick<ModalCreateOptions, "tokenId" | "tokenSecret" | "app" | "serverUrl" | "connect">;
@@ -21,6 +21,7 @@ import { create, MODAL_DEFAULT_SERVER_URL } from "../modal.js";
21
21
  import { archilRunFolder, archilSettings } from "./archil.js";
22
22
  import { dialOnlyFromServer } from "./dial-only.js";
23
23
  import { buildDriftDaemon, DRIFT_VERSION } from "./drift-daemon.js";
24
+ import { kindFrom } from "./kind.js";
24
25
  /** The Archil disk's settings for the mount cases, by name (COMPUTER_ARCHIL_*: all five, or none). */
25
26
  export { ARCHIL_ENV } from "./archil.js";
26
27
  /** The environment this module reads, by name, each for the option its comment names, and the live switch. */
@@ -35,6 +36,8 @@ export const MODAL_ENV = {
35
36
  serverUrl: "COMPUTER_MODAL_SERVER_URL",
36
37
  /** connect: exec (default) or dial, which needs the public server's process (dialKit). */
37
38
  connect: "COMPUTER_MODAL_CONNECT",
39
+ /** kind: linux (default) or desktop, which create() takes on dial alone. */
40
+ kind: "COMPUTER_MODAL_KIND",
38
41
  };
39
42
  /** The names this module reads, under the conformance modules' common name (ConformanceModule.ENV). */
40
43
  export const ENV = MODAL_ENV;
@@ -69,7 +72,8 @@ function live(env) {
69
72
  /** The provider the CLI runs; throws in words without the live switch, or when a setting is missing or wrong. */
70
73
  export async function createProvider({ env = process.env, ModalClient, daemonPath, onNote, dial } = {}) {
71
74
  live(env);
72
- return create({ ...settingsFromEnv(env), ...(daemonPath === undefined ? {} : { daemonPath }), ...(ModalClient ? { ModalClient } : {}), ...(onNote ? { onNote } : {}), ...(dial ? { dial } : {}), maxLifetimeMs: CONFORMANCE_MAX_LIFETIME_MS });
75
+ // create() refuses desktop without dial in words.
76
+ return create({ ...settingsFromEnv(env), ...kindFrom(env, MODAL_ENV.kind), ...(daemonPath === undefined ? {} : { daemonPath }), ...(ModalClient ? { ModalClient } : {}), ...(onNote ? { onNote } : {}), ...(dial ? { dial } : {}), maxLifetimeMs: CONFORMANCE_MAX_LIFETIME_MS });
73
77
  }
74
78
  /**
75
79
  * The image every computer of the run starts from: on dial the box image, since only it holds agentrun-dial; on exec
@@ -59,7 +59,7 @@ export function formatReport(report) {
59
59
  }
60
60
  // Each computer's daemon, named with its role: computers of one run may answer differently (a GPU computer's fence).
61
61
  for (const daemon of daemons)
62
- lines.push(`daemon ${daemon.computer} (${daemon.role}): ${said(daemon)}${daemon.fence === undefined ? "" : ` · fence ${daemon.fence}`}`);
62
+ lines.push(`daemon ${daemon.computer} (${daemon.role}): ${said(daemon)}${daemon.fence === undefined ? "" : ` · fence ${daemon.fence}`}${daemon.windowManager === undefined ? "" : ` · window manager ${daemon.windowManager.state}${daemon.windowManager.why ? `: ${daemon.windowManager.why}` : ""}`}`);
63
63
  for (const note of report.notes ?? [])
64
64
  lines.push(`note: ${note}`);
65
65
  for (const { computer, role, note } of report.computerNotes ?? [])
@@ -280,7 +280,7 @@ export async function runConformance(provider, options) {
280
280
  const sawHello = (computer, hello, role) => {
281
281
  if (report.daemons.some((daemon) => daemon.computer === computer))
282
282
  return;
283
- report.daemons.push({ computer, role: roles.get(computer) ?? role, version: hello.version, os: hello.os, arch: hello.arch, ...(hello.fence === undefined ? {} : { fence: hello.fence }) });
283
+ report.daemons.push({ computer, role: roles.get(computer) ?? role, version: hello.version, os: hello.os, arch: hello.arch, ...(hello.fence === undefined ? {} : { fence: hello.fence }), ...(hello.windowManager === undefined ? {} : { windowManager: hello.windowManager }) });
284
284
  };
285
285
  /**
286
286
  * The run's shared computer, made the first time a case needs it or the daemon's hello, and again after it made way
@@ -0,0 +1,47 @@
1
+ import type { MachineHost } from "../host.js";
2
+ import { type SmolcloudProvider, type SmolcloudProviderOptions } from "../smolcloud.js";
3
+ /** The environment this module reads, by name, each for the option its comment names, the live switch and the run's image. */
4
+ export declare const SMOLCLOUD_ENV: {
5
+ readonly live: "AGENTRUN_COMPUTER_LIVE_SMOLCLOUD";
6
+ /** apiKey, required: the smol cloud API key. */
7
+ readonly key: "COMPUTER_SMOLCLOUD_API_KEY";
8
+ /** apiUrl: the REST API; default https://api.smolmachines.com. */
9
+ readonly apiUrl: "COMPUTER_SMOLCLOUD_API_URL";
10
+ /** The OCI image every computer of the run starts from; default the box image (boxImageRef). */
11
+ readonly image: "COMPUTER_SMOLCLOUD_IMAGE";
12
+ };
13
+ /** The names this module reads, under the conformance modules' common name (ConformanceModule.ENV). */
14
+ export declare const ENV: {
15
+ readonly live: "AGENTRUN_COMPUTER_LIVE_SMOLCLOUD";
16
+ /** apiKey, required: the smol cloud API key. */
17
+ readonly key: "COMPUTER_SMOLCLOUD_API_KEY";
18
+ /** apiUrl: the REST API; default https://api.smolmachines.com. */
19
+ readonly apiUrl: "COMPUTER_SMOLCLOUD_API_URL";
20
+ /** The OCI image every computer of the run starts from; default the box image (boxImageRef). */
21
+ readonly image: "COMPUTER_SMOLCLOUD_IMAGE";
22
+ };
23
+ /** The provider's options this module reads from env; throws in words without the key, never echoing it. */
24
+ export declare function settingsFromEnv(env?: Record<string, string | undefined>): Pick<SmolcloudProviderOptions, "apiKey" | "apiUrl">;
25
+ /** The longest lifetime a computer of a run may ask for. */
26
+ export declare const CONFORMANCE_MAX_LIFETIME_MS: number;
27
+ /** For the run's report: what this configuration means for the suite. */
28
+ export declare const conformanceNotes: string[];
29
+ export interface SmolcloudModuleOptions extends Pick<SmolcloudProviderOptions, "fetch" | "daemonPath" | "timeouts"> {
30
+ /** Where the settings are read; default process.env. */
31
+ env?: Record<string, string | undefined>;
32
+ /** Builds this package's daemon for linux/amd64 stamped with version, and gives its path; default go build. */
33
+ buildDaemon?: (version: string) => Promise<string>;
34
+ }
35
+ /** The provider the CLI runs; throws in words without the live switch or the key. */
36
+ export declare function createProvider(options?: SmolcloudModuleOptions): Promise<SmolcloudProvider>;
37
+ /** The same provider uploading a daemon that reports version <version>-drift, for the drift.version case. */
38
+ export declare function createDriftedProvider(options?: SmolcloudModuleOptions): Promise<SmolcloudProvider>;
39
+ /** The image every computer of the run starts from: COMPUTER_SMOLCLOUD_IMAGE, else the box image prepareImage() answers. */
40
+ export declare function conformanceImage({ env }?: Pick<SmolcloudModuleOptions, "env">): Promise<string>;
41
+ /**
42
+ * The smol cloud host the live sweep (sweep.ts) lists and deletes through, from the same settings; it needs no live
43
+ * switch, since the sweep makes nothing, and it calls nothing until the sweep does.
44
+ */
45
+ export declare function createHost(options?: Pick<SmolcloudModuleOptions, "env" | "fetch">): Promise<MachineHost>;
46
+ /** Where the sweep lists, in words: the key's account, the key named by its sha256 prefix alone. */
47
+ export declare function sweepScope({ env }?: Pick<SmolcloudModuleOptions, "env">): string;
@@ -0,0 +1,73 @@
1
+ // smol cloud for the conformance CLI: `npm run conformance -w @parcha/agentrun-computer -- --provider smolcloud`. It
2
+ // makes real machines, which bill until deleted, so it runs only with AGENTRUN_COMPUTER_LIVE_SMOLCLOUD=1 and your own
3
+ // key, under COMPUTER_SMOLCLOUD_API_KEY. The provider reads no environment: this module reads its own COMPUTER_SMOLCLOUD_*
4
+ // names (never SMOLCLOUD_API_KEY, which may hold another account's key) and passes each to create() as its option. The
5
+ // live sweep (sweep.ts, --provider smolcloud) reads the same names through createHost, which needs no live switch: it
6
+ // makes nothing. Every computer of a run has a deadline of at most 30 minutes, and smol cloud's delete timer is set
7
+ // 5 minutes past it.
8
+ import { createHash } from "node:crypto";
9
+ import { boxImageRef } from "../box-image.js";
10
+ import { create } from "../smolcloud.js";
11
+ import { buildDriftDaemon, DRIFT_VERSION } from "./drift-daemon.js";
12
+ /** The environment this module reads, by name, each for the option its comment names, the live switch and the run's image. */
13
+ export const SMOLCLOUD_ENV = {
14
+ live: "AGENTRUN_COMPUTER_LIVE_SMOLCLOUD",
15
+ /** apiKey, required: the smol cloud API key. */
16
+ key: "COMPUTER_SMOLCLOUD_API_KEY",
17
+ /** apiUrl: the REST API; default https://api.smolmachines.com. */
18
+ apiUrl: "COMPUTER_SMOLCLOUD_API_URL",
19
+ /** The OCI image every computer of the run starts from; default the box image (boxImageRef). */
20
+ image: "COMPUTER_SMOLCLOUD_IMAGE",
21
+ };
22
+ /** The names this module reads, under the conformance modules' common name (ConformanceModule.ENV). */
23
+ export const ENV = SMOLCLOUD_ENV;
24
+ /** The provider's options this module reads from env; throws in words without the key, never echoing it. */
25
+ export function settingsFromEnv(env = process.env) {
26
+ const apiKey = env[SMOLCLOUD_ENV.key];
27
+ if (apiKey === undefined || apiKey === "")
28
+ throw new Error(`set ${SMOLCLOUD_ENV.key} to a smol cloud API key: the conformance module reads it there and nowhere else, never from SMOLCLOUD_API_KEY`);
29
+ const apiUrl = env[SMOLCLOUD_ENV.apiUrl] || undefined;
30
+ return { apiKey, ...(apiUrl === undefined ? {} : { apiUrl }) };
31
+ }
32
+ /** The longest lifetime a computer of a run may ask for. */
33
+ export const CONFORMANCE_MAX_LIFETIME_MS = 30 * 60_000;
34
+ /** For the run's report: what this configuration means for the suite. */
35
+ export const conformanceNotes = [
36
+ "smolcloud: every computer is a smol cloud machine (a microVM on an amd64 node) with its idle stop off and its delete timer at the adapter's backstop; the daemon is a child of a resumable interactive exec, its stdio the exec's long-polled output and numbered stdin frames; lifetime is the janitor's, by the deadline label, capped at 30 minutes for the run. Network none, open and a list are init's. No mount (smol cloud binds its storage disk at /workspace) and no desktop.",
37
+ ];
38
+ function live(env) {
39
+ if (env[SMOLCLOUD_ENV.live] !== "1")
40
+ throw new Error(`the smol cloud conformance module makes real machines, which bill until deleted: set ${SMOLCLOUD_ENV.live}=1, with your own key, to run it`);
41
+ }
42
+ /** The test doubles a caller hands in, each only when given. */
43
+ const doubles = ({ fetch, daemonPath, timeouts }) => ({ ...(fetch ? { fetch } : {}), ...(daemonPath ? { daemonPath } : {}), ...(timeouts ? { timeouts } : {}) });
44
+ /** The provider the CLI runs; throws in words without the live switch or the key. */
45
+ export async function createProvider(options = {}) {
46
+ const { env = process.env } = options;
47
+ live(env);
48
+ return create({ ...settingsFromEnv(env), ...doubles(options), maxLifetimeMs: CONFORMANCE_MAX_LIFETIME_MS });
49
+ }
50
+ /** The same provider uploading a daemon that reports version <version>-drift, for the drift.version case. */
51
+ export async function createDriftedProvider(options = {}) {
52
+ const { env = process.env, buildDaemon = (version) => buildDriftDaemon("amd64", version) } = options;
53
+ live(env);
54
+ const settings = settingsFromEnv(env);
55
+ return create({ ...settings, ...doubles(options), daemonPath: await buildDaemon(DRIFT_VERSION), maxLifetimeMs: CONFORMANCE_MAX_LIFETIME_MS });
56
+ }
57
+ /** The image every computer of the run starts from: COMPUTER_SMOLCLOUD_IMAGE, else the box image prepareImage() answers. */
58
+ export async function conformanceImage({ env = process.env } = {}) {
59
+ return env[SMOLCLOUD_ENV.image] || boxImageRef();
60
+ }
61
+ /**
62
+ * The smol cloud host the live sweep (sweep.ts) lists and deletes through, from the same settings; it needs no live
63
+ * switch, since the sweep makes nothing, and it calls nothing until the sweep does.
64
+ */
65
+ export async function createHost(options = {}) {
66
+ return (await create({ ...settingsFromEnv(options.env ?? process.env), ...doubles(options) })).host;
67
+ }
68
+ /** Where the sweep lists, in words: the key's account, the key named by its sha256 prefix alone. */
69
+ export function sweepScope({ env = process.env } = {}) {
70
+ const { apiKey, apiUrl } = settingsFromEnv(env);
71
+ const key = createHash("sha256").update(apiKey, "utf8").digest("hex").slice(0, 12);
72
+ return `the smol cloud account of the key sha256:${key} at ${apiUrl ?? "https://api.smolmachines.com"}`;
73
+ }
@@ -56,7 +56,7 @@ export async function sweepMachines(host, { labels = {}, before = new Set(), wai
56
56
  return ok({ swept: fresh.length, gone: fresh.length - stillThere.length, stillThere, leftAlone });
57
57
  }
58
58
  const USAGE = `usage: node packages/computer/dist/conformance/sweep.js --provider <id> --before <file> | --after <file>
59
- --provider <id> a provider on the shared machine-host adapter (e2b, agent37, morph, daytona, boxd)
59
+ --provider <id> a provider on the shared machine-host adapter (e2b, agent37, morph, daytona, boxd, smolcloud)
60
60
  --before <file> record the id of every machine the vendor lists with ${COMPUTER_LABEL}=1 into <file>
61
61
  --after <file> delete every machine listed with ${COMPUTER_LABEL}=1 and ${RUN_LABEL} whose id is not in <file>, read
62
62
  each back until the vendor no longer has it (up to 60 s each), and print
@@ -1,8 +1,9 @@
1
1
  import type { MountKind, MountSpec } from "../mount.js";
2
- import type { ComputerClient, ComputerKind, ComputerOs, DaemonMethod, DaemonMethods, ExecRunParams, Group, HelloResult, NetworkFence } from "../protocol.js";
2
+ import type { ComputerClient, ComputerKind, ComputerOs, DaemonMethod, DaemonMethods, ExecRunParams, Group, HelloResult, NetworkFence, WindowManagerFact } from "../protocol.js";
3
3
  import type { ComputerConnection, ComputerProvider, ComputerRef, ComputerSpec, DaemonMode, GpuSpec } from "../provider.js";
4
4
  import type { ComputerError, ComputerErrorCode, Result } from "../result.js";
5
- import type { ComputerSettingKind, KindCapabilities } from "../kinds.js";
5
+ import type { KindCapabilities } from "../kinds.js";
6
+ import type { ComputerSettingKind } from "../setting-kinds.js";
6
7
  import type { CdpDialer, CdpSocket } from "./cdp.js";
7
8
  import type { StartedFixture } from "./fixture.js";
8
9
  import type { KindVerdict } from "./kind.js";
@@ -259,7 +260,10 @@ export type ComputerRole = string;
259
260
  export interface CreatedNote extends ComputerNote {
260
261
  role: ComputerRole;
261
262
  }
262
- /** What one computer's first hello said: the computer, its role, and the fence when it names one. */
263
+ /**
264
+ * What one computer's first hello said: the computer, its role, the fence when it names one, and the window manager
265
+ * computerd started when it says one (a live run's evidence that computerd, not create, started it).
266
+ */
263
267
  export interface ComputerDaemon {
264
268
  computer: string;
265
269
  role: ComputerRole;
@@ -267,6 +271,7 @@ export interface ComputerDaemon {
267
271
  os: string;
268
272
  arch: string;
269
273
  fence?: NetworkFence;
274
+ windowManager?: WindowManagerFact;
270
275
  }
271
276
  /**
272
277
  * The server a dial host's machines reach (MachineHost facts.connect "dial"), as the run stands it up: its machine
package/dist/daytona.d.ts CHANGED
@@ -19,7 +19,7 @@ export type DaytonaTimeouts = HostedTimeouts & {
19
19
  };
20
20
  /**
21
21
  * The Daytona provider's options: the key and Daytona's own settings, then the shared adapter's (HostedOptions), kind
22
- * among them: a desktop on connect dial alone.
22
+ * among them: a desktop on connect dial alone (kindRefusal, with DAYTONA_DIAL_DESKTOP's why).
23
23
  */
24
24
  export interface DaytonaProviderOptions extends Omit<HostedOptions, "desktop" | "maxLifetimeMs" | "timeouts"> {
25
25
  /** The Daytona API key. The caller passes it; this provider never reads the environment and never puts it in a computer. */
package/dist/daytona.js CHANGED
@@ -7,8 +7,8 @@
7
7
  // the computer is the shared machine-host adapter's (./hosted/provider.ts). Every Daytona fact used here is cited in the
8
8
  // README's Daytona section.
9
9
  import { randomBytes } from "node:crypto";
10
- import { connectOf, mountsOf } from "./descriptor.js";
11
- import { DAYTONA, DAYTONA_DEFAULT_SNAPSHOT, DAYTONA_GPU, DAYTONA_GPU_REGION, DAYTONA_GPU_SNAPSHOT, daytonaGpuSnapshot } from "./descriptors/daytona.js";
10
+ import { connectOf, kindRefusal, mountsOf } from "./descriptor.js";
11
+ import { DAYTONA, DAYTONA_DEFAULT_SNAPSHOT, DAYTONA_DIAL_DESKTOP, DAYTONA_GPU, DAYTONA_GPU_REGION, DAYTONA_GPU_SNAPSHOT, daytonaGpuSnapshot } from "./descriptors/daytona.js";
12
12
  import { COMPUTER_LABEL } from "./drift.js";
13
13
  import { HostError } from "./host.js";
14
14
  import { framedExec } from "./hosted/framed-exec.js";
@@ -16,7 +16,7 @@ import { HostedProvider, timeoutsOf } from "./hosted/provider.js";
16
16
  import { boundOf, orThrow, pause as sleep } from "./hosted/process.js";
17
17
  import { allPages, jsonOf, rest } from "./hosted/rest.js";
18
18
  import { shellLine } from "./hosted/scripts.js";
19
- import { dateOf, execDesktopRefusal, isWhole, sizeRefusals } from "./hosted/values.js";
19
+ import { dateOf, isWhole, sizeRefusals } from "./hosted/values.js";
20
20
  import { MAX_LINE_BYTES } from "./protocol.js";
21
21
  import { checkGpu } from "./provider.js";
22
22
  import { ok, vendorFail } from "./result.js";
@@ -143,6 +143,8 @@ class DaytonaHost {
143
143
  arch: options.arch,
144
144
  vendorAgentPorts: [TOOLBOX_PORT],
145
145
  // A snapshot of box/Dockerfile has xfwm4 (box/install.sh's desktop step), for a desktop (connect dial alone).
146
+ // computerd starts it as root makes its network namespace: the tool user can make none here (Sysbox, with
147
+ // kernel.apparmor_restrict_unprivileged_userns=1, measured 11-19).
146
148
  windowManager: true,
147
149
  ...(options.connect === "dial" ? { connect: options.connect } : {}),
148
150
  };
@@ -515,8 +517,9 @@ export class DaytonaProvider extends HostedProvider {
515
517
  constructor(options) {
516
518
  const { apiKey, apiUrl = DEFAULT_API_URL, arch = "amd64", sandboxClass = "container", target, gpuSnapshot, autoStopMinutes = 0, autoDeleteMinutes, connect, fetch: fetcher, webSocket, pause, timeouts = {}, ...hosted } = options ?? {};
517
519
  const via = connectOf(DAYTONA, { connect });
518
- if (hosted.kind === "desktop" && via === "exec")
519
- throw new Error(execDesktopRefusal("Daytona", "a snapshot of box/Dockerfile"));
520
+ const refused = kindRefusal(DAYTONA, { kind: hosted.kind, connect: via });
521
+ if (refused !== undefined)
522
+ throw new Error(hosted.kind === "desktop" ? `${refused}: ${DAYTONA_DIAL_DESKTOP}` : refused);
520
523
  if (typeof apiKey !== "string" || apiKey === "")
521
524
  throw new Error("options.apiKey, the Daytona API key, is required: the provider reads no environment, so the caller passes it");
522
525
  const base = new URL(apiUrl);
@@ -1,7 +1,8 @@
1
- import type { ComputerSettingKind, KindCapabilities } from "./kinds.js";
1
+ import type { KindCapabilities } from "./kinds.js";
2
2
  import type { MountKind, Unmounted } from "./mount.js";
3
3
  import type { NetworkForm } from "./provider.js";
4
4
  import type { ProviderModule } from "./providers.js";
5
+ import { type ComputerSettingKind } from "./setting-kinds.js";
5
6
  /** One key a provider takes in Settings: its serve-side name, the create() option it fills, and whether it is needed. */
6
7
  export interface DescriptorKey {
7
8
  /** The name Settings stores it under and shows (DAYTONA_API_KEY); never a value. */
@@ -90,6 +91,12 @@ export interface ProviderDescriptor<Module extends ProviderModule = ProviderModu
90
91
  * options that build it (KindCapabilities).
91
92
  */
92
93
  readonly capabilities: readonly KindCapabilities[];
94
+ /**
95
+ * Setting kinds its capabilities don't serve though a caller would ask it for one, each with why, in words: serve
96
+ * refuses a setting of that kind on it with these words in place of servingRefusals' (Daytona's desktop: the window
97
+ * manager can't start in its sandboxes).
98
+ */
99
+ readonly unserved?: Readonly<Partial<Record<ComputerSettingKind, string>>>;
93
100
  /**
94
101
  * The image a computer of each setting kind starts from when its setting names none. A kind with no entry has no
95
102
  * default, and the caller refuses the setting in words (Docker's sandbox: the server builds its image, prepareImage).
@@ -159,6 +166,17 @@ export declare function descriptorProblems(value: unknown): string[];
159
166
  export declare function connectOf(descriptor: Pick<ProviderDescriptor, "label" | "connect">, options?: {
160
167
  readonly connect?: unknown;
161
168
  }): "exec" | "dial";
169
+ /**
170
+ * Why a provider made for machine kind `kind` over `connect` (connectOf's answer) gives no such computer, by its
171
+ * descriptor alone; undefined when it gives one, or `kind` is none of its configurations' (create() judges that). Its
172
+ * unserved words for the setting kind `kind` is: "<label> gives no <kind> computer: <why>". Else, where each configuration
173
+ * of `kind` names a connect of its own in its options and none is `connect`: the connect that makes one. A provider's
174
+ * constructor throws these words, so a kind rule is said once, in the descriptor.
175
+ */
176
+ export declare function kindRefusal(descriptor: Pick<ProviderDescriptor, "label" | "capabilities" | "unserved">, { kind, connect }: {
177
+ readonly kind?: string;
178
+ readonly connect: "exec" | "dial";
179
+ }): string | undefined;
162
180
  /**
163
181
  * Whether a configuration takes a synced folder: its groups have exec and files (all the runner reads and writes the
164
182
  * folder through), and its descriptor binds no host folder (a bind is the folder itself) nor says why it takes none
@@ -171,9 +189,10 @@ export declare function derivedMounts(descriptor: Pick<ProviderDescriptor, "moun
171
189
  * The mount kinds a provider's computers take, and why not the others, with the keys `set` says the operator has set: its
172
190
  * derived mounts, and each kind of its mountsWith whose key is set, which leaves its unmounted. What a provider made with
173
191
  * those keys declares (capabilities().mount), and what a server reads to know whether that provider can mount a run's
174
- * folder.
192
+ * folder. With `dial`, its machines dial the server (connectOf's "dial"), and it takes no Archil mount: the helper's
193
+ * steps run as root through exec, which a machine that dials has none of.
175
194
  */
176
- export declare function mountsOf(descriptor: Pick<ProviderDescriptor, "mounts" | "unmounted" | "mountsWith" | "capabilities">, set: (name: string) => boolean): {
195
+ export declare function mountsOf(descriptor: Pick<ProviderDescriptor, "label" | "mounts" | "unmounted" | "mountsWith" | "capabilities">, set: (name: string) => boolean, dial?: boolean): {
177
196
  mounts: MountKind[];
178
197
  unmounted: Unmounted;
179
198
  };
@@ -1,3 +1,4 @@
1
+ import { SETTING_KIND_NAMES, SETTING_KINDS } from "./setting-kinds.js";
1
2
  const ID = /^[a-z0-9][a-z0-9-]*$/;
2
3
  /**
3
4
  * A descriptor, checked: its id's shape, its keys' and settings' names and options unique and non-empty, and one
@@ -10,6 +11,8 @@ export function defineProvider(descriptor) {
10
11
  throw new Error(`the provider descriptor ${JSON.stringify(descriptor?.id)}: ${problems.join("; ")}`);
11
12
  return descriptor;
12
13
  }
14
+ /** The setting kinds a descriptor's unserved may name: every one but none. */
15
+ const UNSERVABLE = SETTING_KIND_NAMES.filter((kind) => kind !== "none");
13
16
  /** What is wrong with a value offered as a descriptor, in words; none when it is one. */
14
17
  export function descriptorProblems(value) {
15
18
  if (typeof value !== "object" || value === null)
@@ -41,6 +44,8 @@ export function descriptorProblems(value) {
41
44
  else if (entries.some(([kind]) => typeof d.unmounted?.[kind] !== "string"))
42
45
  problems.push("each kind of mountsWith is in unmounted too, with why while its key is unset");
43
46
  }
47
+ if (d.unserved !== undefined && (typeof d.unserved !== "object" || d.unserved === null || Array.isArray(d.unserved) || Object.entries(d.unserved).some(([kind, why]) => !UNSERVABLE.includes(kind) || typeof why !== "string" || why.trim() === "")))
48
+ problems.push(`unserved maps setting kinds (${UNSERVABLE.join(", ")}) to why, in words`);
44
49
  if (!Array.isArray(d.network) || d.network.length === 0 || d.network.some((form) => form !== "none" && form !== "open" && form !== "allow"))
45
50
  problems.push("network is not a list of the network forms its computers make (none, open, allow)");
46
51
  if (!Array.isArray(d.capabilities) || d.capabilities.length === 0)
@@ -126,6 +131,25 @@ export function connectOf(descriptor, options = {}) {
126
131
  return connect ?? "exec";
127
132
  throw new Error(`connect is how ${descriptor.label} reaches its machines, "exec" (the default) or "dial", not ${JSON.stringify(connect)}`);
128
133
  }
134
+ /**
135
+ * Why a provider made for machine kind `kind` over `connect` (connectOf's answer) gives no such computer, by its
136
+ * descriptor alone; undefined when it gives one, or `kind` is none of its configurations' (create() judges that). Its
137
+ * unserved words for the setting kind `kind` is: "<label> gives no <kind> computer: <why>". Else, where each configuration
138
+ * of `kind` names a connect of its own in its options and none is `connect`: the connect that makes one. A provider's
139
+ * constructor throws these words, so a kind rule is said once, in the descriptor.
140
+ */
141
+ export function kindRefusal(descriptor, { kind, connect }) {
142
+ if (kind === undefined)
143
+ return undefined;
144
+ const setting = SETTING_KIND_NAMES.find((name) => SETTING_KINDS[name].machineKinds.includes(kind));
145
+ const why = setting === undefined ? undefined : descriptor.unserved?.[setting];
146
+ if (why !== undefined)
147
+ return `${descriptor.label} gives no ${setting} computer: ${why}`;
148
+ const connects = descriptor.capabilities.filter((one) => one.kind === kind).map((one) => one.options?.connect);
149
+ if (connects.length === 0 || connects.some((one) => one === undefined || one === connect))
150
+ return undefined;
151
+ return `${descriptor.label} gives a ${kind} computer on connect ${[...new Set(connects)].map((one) => JSON.stringify(one)).join(" or ")} alone, not ${JSON.stringify(connect)}`;
152
+ }
129
153
  /**
130
154
  * Whether a configuration takes a synced folder: its groups have exec and files (all the runner reads and writes the
131
155
  * folder through), and its descriptor binds no host folder (a bind is the folder itself) nor says why it takes none
@@ -143,11 +167,16 @@ export function derivedMounts(descriptor) {
143
167
  * The mount kinds a provider's computers take, and why not the others, with the keys `set` says the operator has set: its
144
168
  * derived mounts, and each kind of its mountsWith whose key is set, which leaves its unmounted. What a provider made with
145
169
  * those keys declares (capabilities().mount), and what a server reads to know whether that provider can mount a run's
146
- * folder.
170
+ * folder. With `dial`, its machines dial the server (connectOf's "dial"), and it takes no Archil mount: the helper's
171
+ * steps run as root through exec, which a machine that dials has none of.
147
172
  */
148
- export function mountsOf(descriptor, set) {
173
+ export function mountsOf(descriptor, set, dial = false) {
149
174
  const taken = Object.entries(descriptor.mountsWith ?? {}).flatMap(([kind, key]) => (typeof key === "string" && set(key) ? [kind] : []));
150
175
  const unmounted = Object.fromEntries(Object.entries(descriptor.unmounted ?? {}).filter(([kind]) => !taken.includes(kind)));
151
176
  const mounts = [...descriptor.mounts, ...taken.filter((kind) => !descriptor.mounts.includes(kind))];
177
+ if (dial) {
178
+ const archil = `${descriptor.label}'s machines dial this server, and a machine that dials takes no Archil mount`;
179
+ return { mounts: derivedMounts({ ...descriptor, mounts: mounts.filter((kind) => kind !== "archil") }), unmounted: { ...unmounted, archil } };
180
+ }
152
181
  return { mounts: derivedMounts({ ...descriptor, mounts }), unmounted };
153
182
  }
@@ -17,7 +17,7 @@ export const CLOUDFLARE = defineProvider({
17
17
  metered: true,
18
18
  // Its containers dial the server: Cloudflare has no REST call that reaches into one.
19
19
  connect: "dial",
20
- // None: a machine that dials takes no Archil mount yet (its helper's root steps run through exec, which it has none of).
20
+ // None: a machine that dials takes no Archil mount (mountsOf).
21
21
  mounts: [],
22
22
  // None: its programs run in init's network of their own, their loopback alone (isolation.ts). Open and a list: their
23
23
  // one way out is init's egress proxy (hosted/network.ts). The container itself always reaches out (enableInternet): it
@@ -1,4 +1,11 @@
1
1
  import type { GpuCapability } from "../provider.js";
2
+ /**
3
+ * Why a Daytona desktop is made on connect dial alone: its X server and window manager come from a snapshot of
4
+ * box/Dockerfile, whose sandbox boots agentrun-dial and dials the server, the path a live run proves; no desktop has run
5
+ * on exec, where init is a command started through the toolbox's session. The provider's constructor refuses kind
6
+ * desktop on exec in these words, after kindRefusal's.
7
+ */
8
+ export declare const DAYTONA_DIAL_DESKTOP = "a desktop's sandbox boots from a snapshot of box/Dockerfile and dials this server, and none has run through the toolbox's session commands, so connect \"exec\" makes kind linux";
2
9
  /** The key that turns on a Daytona computer's Archil mount: the operator's Archil egress relay (archilEgress). */
3
10
  export declare const DAYTONA_ARCHIL_EGRESS = "DAYTONA_ARCHIL_EGRESS";
4
11
  /** Why a Daytona computer made with no Archil egress takes no Archil mount: check() refuses one in these words. */
@@ -2,6 +2,13 @@
2
2
  // the operator gives an Archil egress relay (a self-hosted Daytona target), never on Daytona's hosted cloud.
3
3
  import { defineProvider } from "../descriptor.js";
4
4
  import { LINUX_DESKTOP, SANDBOX } from "./shared.js";
5
+ /**
6
+ * Why a Daytona desktop is made on connect dial alone: its X server and window manager come from a snapshot of
7
+ * box/Dockerfile, whose sandbox boots agentrun-dial and dials the server, the path a live run proves; no desktop has run
8
+ * on exec, where init is a command started through the toolbox's session. The provider's constructor refuses kind
9
+ * desktop on exec in these words, after kindRefusal's.
10
+ */
11
+ export const DAYTONA_DIAL_DESKTOP = "a desktop's sandbox boots from a snapshot of box/Dockerfile and dials this server, and none has run through the toolbox's session commands, so connect \"exec\" makes kind linux";
5
12
  /** The key that turns on a Daytona computer's Archil mount: the operator's Archil egress relay (archilEgress). */
6
13
  export const DAYTONA_ARCHIL_EGRESS = "DAYTONA_ARCHIL_EGRESS";
7
14
  /** Why a Daytona computer made with no Archil egress takes no Archil mount: check() refuses one in these words. */
@@ -91,9 +98,10 @@ export const DAYTONA = defineProvider({
91
98
  // alone (hosted/network.ts).
92
99
  network: ["none", "open", "allow"],
93
100
  // A linux computer, with GPUs when asked; or, on connect dial alone, a desktop with none: a snapshot of box/Dockerfile's
94
- // X server and xfwm4, started through computerd over the socket the sandbox dialed, at the snapshot's 2 CPUs and 4 GiB
95
- // (box/build-daytona.py). The desktop's configuration selects dial itself, whatever daytonaConnect says: a provider on
96
- // connect exec refuses kind desktop when it is made.
101
+ // X server, started through computerd over the socket the sandbox dialed, and xfwm4, which computerd starts itself
102
+ // (init --window-manager), at the snapshot's 2 CPUs and 4 GiB (box/build-daytona.py). The desktop's configuration
103
+ // selects dial itself, whatever daytonaConnect says: a provider on connect exec refuses kind desktop when it is made
104
+ // (DAYTONA_DIAL_DESKTOP).
97
105
  capabilities: [{ ...SANDBOX, gpu: DAYTONA_GPU }, { ...LINUX_DESKTOP, options: { kind: "desktop", connect: "dial" } }],
98
106
  defaultImage: { sandbox: DAYTONA_DEFAULT_SNAPSHOT },
99
107
  // The operator's own snapshot for every Daytona computer, named here; the default snapshot stands while unset. A
@@ -16,7 +16,7 @@ export const FLY = defineProvider({
16
16
  metered: true,
17
17
  // Its machines dial the server: Fly's exec answers only once the command ends, so nothing reaches into one.
18
18
  connect: "dial",
19
- // None: a machine that dials takes no Archil mount yet (its helper's root steps run through exec, which it has none of).
19
+ // None: a machine that dials takes no Archil mount (mountsOf).
20
20
  mounts: [],
21
21
  // None: its programs run in init's network of their own, their loopback alone (isolation.ts). Open and a list: their
22
22
  // one way out is init's egress proxy, which reaches the public internet alone, and with a list its hosts alone