withruntime 0.34.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/BLAXEL.md +207 -204
  2. package/COMPATIBILITY.md +367 -337
  3. package/DAYTONA.md +180 -173
  4. package/E2B.md +246 -230
  5. package/README.md +182 -142
  6. package/README.src.md +182 -142
  7. package/VERCEL.md +173 -168
  8. package/agent-platforms-inventory.json +387 -0
  9. package/dist/agents-cli.d.ts +7 -1
  10. package/dist/agents-cli.js +219 -2
  11. package/dist/ci-cli.d.ts +7 -1
  12. package/dist/ci-cli.js +25 -1
  13. package/dist/cli-words.js +1 -0
  14. package/dist/cli.d.ts +1 -1
  15. package/dist/cli.js +25 -3
  16. package/dist/errors.d.ts +1 -1
  17. package/dist/errors.js +4 -1
  18. package/dist/functions/index.d.ts +10 -0
  19. package/dist/functions/index.js +11 -0
  20. package/dist/index.d.ts +3 -3
  21. package/dist/inngest/index.d.ts +96 -0
  22. package/dist/inngest/index.js +183 -0
  23. package/dist/jobs-code/cron.d.ts +12 -0
  24. package/dist/jobs-code/cron.js +93 -0
  25. package/dist/jobs-code/registry.d.ts +31 -0
  26. package/dist/jobs-code/registry.js +30 -0
  27. package/dist/jobs-code/runner.d.ts +1 -0
  28. package/dist/jobs-code/runner.js +74 -0
  29. package/dist/jobs-deploy.d.ts +22 -0
  30. package/dist/jobs-deploy.js +247 -0
  31. package/dist/jobs-import.d.ts +15 -0
  32. package/dist/jobs-import.js +231 -0
  33. package/dist/products/agents.d.ts +161 -1
  34. package/dist/products/agents.js +40 -0
  35. package/dist/products/ci.d.ts +19 -1
  36. package/dist/products/functions.d.ts +2 -0
  37. package/dist/products/functions.js +5 -0
  38. package/dist/products/index.d.ts +2 -0
  39. package/dist/products/index.js +3 -0
  40. package/dist/products/jobs.d.ts +77 -0
  41. package/dist/products/jobs.js +5 -0
  42. package/dist/transport.d.ts +5 -1
  43. package/dist/transport.js +7 -1
  44. package/dist/trigger/index.d.ts +202 -0
  45. package/dist/trigger/index.js +244 -0
  46. package/dist/types.d.ts +15 -3
  47. package/package.json +19 -3
package/DAYTONA.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # Code written for Daytona, on Runtime
2
2
 
3
- Supported sandbox calls from [Daytona](https://www.daytona.io)'s SDK keep
4
- their call shapes on Runtime Cloud after changing the import. It is part of Runtime's SDK (`withruntime`), built on
5
- the same client, so it gets that SDK's retries, idempotency keys and errors.
6
- Importing `withruntime` alone does not load it.
3
+ Supported sandbox calls from [Daytona](https://www.daytona.io)'s SDK keep their
4
+ call shapes on Runtime Cloud after you change the import. This is part of
5
+ Runtime's SDK (`withruntime`). It uses the same client, so it gets that SDK's
6
+ retries, idempotency keys and errors. Importing `withruntime` alone does not
7
+ load it.
7
8
 
8
9
  ```ts no-run
9
10
  import { Daytona } from "withruntime/daytona"; // was: from "@daytona/sdk" or "@daytonaio/sdk"
@@ -16,212 +17,218 @@ from withruntime.daytona import Daytona # was: from daytona import Daytona
16
17
  from withruntime.daytona import AsyncDaytona # was: from daytona import AsyncDaytona
17
18
  ```
18
19
 
19
- The mapping was written against `@daytona/sdk` 0.220.0 and `daytona` 0.220.0
20
- on PyPI, and checked against `@daytona/sdk` and `daytona` 0.225.0 on
21
- 18 October 2026 (below, "0.225.0"). The exact releases and artifact hashes
22
- are kept in `compatibility-lock.json`.
20
+ The mapping was written against `@daytona/sdk` 0.220.0 and `daytona` 0.220.0 on
21
+ PyPI. It was checked against `@daytona/sdk` and `daytona` 0.225.0 on 18 October
22
+ 2026 (below, "0.225.0"). The exact releases and artifact hashes are kept in
23
+ `compatibility-lock.json`.
23
24
 
24
25
  ## Keys
25
26
 
26
- The package uses, in order: a Runtime key (`rtcloud_...`) passed as `apiKey`,
27
- `RUNTIME_API_KEY`, a Runtime key left in `DAYTONA_API_KEY`, and the key
28
- `npx withruntime login` saved on this machine. A Daytona key is never sent
29
- anywhere. If one is passed as `apiKey` and `RUNTIME_API_KEY` is not set, the
30
- constructor throws `DaytonaAuthenticationError`. `apiUrl` is ignored: the
31
- package talks only to Runtime.
27
+ The package uses these keys, in this order:
28
+
29
+ 1. A Runtime key (`rtcloud_...`) passed as `apiKey`.
30
+ 2. `RUNTIME_API_KEY`.
31
+ 3. A Runtime key left in `DAYTONA_API_KEY`.
32
+ 4. The key that `npx withruntime login` saved on this machine.
33
+
34
+ A Daytona key is never sent anywhere. If one is passed as `apiKey` and
35
+ `RUNTIME_API_KEY` is not set, the constructor throws `DaytonaAuthenticationError`.
36
+ `apiUrl` is ignored. The package talks only to Runtime.
32
37
 
33
38
  ## What a sandbox gets
34
39
 
35
- - **Machine:** Daytona's default, 1 vCPU, 1 GiB memory and 3 GiB disk.
36
- `resources: { cpu, memory, disk }` (GiB) sets another.
37
- - **Stopping:** `stop()` pauses the sandbox, keeping its files and its memory,
38
- and `start()` carries on with processes still running. A stopped sandbox is
39
- kept for Runtime's retention: 30 days on credit, 7 on the trial, or
40
- `autoDeleteInterval` minutes rounded up to whole days. `delete()` ends it.
41
- An `ephemeral` sandbox (or `autoDeleteInterval: 0`) ends on `stop()`.
42
- - **Auto-stop:** `autoStopInterval` minutes (default 15; `0` never) is the
43
- sandbox's idle pause: it pauses after that long with nothing happening in
44
- it, counted by the sandbox itself, so a long command is never paused for
45
- want of calls. It has no time limit. `ttlMinutes` gives it one, and with
46
- it Daytona's own rule: the sandbox pauses after `autoStopInterval` minutes
47
- without a call through the adapter, each call moving the limit on, and ends
48
- at the deadline.
49
- - **Funding:** left to Runtime, as `withruntime`'s own `create()` does: the free
50
- trial while the account has trial time, then prepaid credit. Pass
51
- `withruntime: { create: { funding: "trial" } }` to `new Daytona(...)` or to
52
- `create` (Python: `runtime_create={"funding": "trial"}`) to use only the
53
- trial.
40
+ - **Machine:** Daytona's default, 1 vCPU, 1 GiB of memory and a 3 GiB disk.
41
+ `resources: { cpu, memory, disk }` (in GiB) sets another size.
42
+ - **Stopping:** `stop()` pauses the sandbox. It keeps the files, the memory and
43
+ the running processes. `start()` resumes it, and the processes keep running. A
44
+ stopped sandbox is kept under Runtime's retention. That is 30 days on credit, 7
45
+ days on the trial, or `autoDeleteInterval` minutes, rounded up to whole days.
46
+ `delete()` ends it. An `ephemeral` sandbox, or one with `autoDeleteInterval: 0`,
47
+ ends on `stop()`.
48
+ - **Auto-stop:** `autoStopInterval` sets the idle time in minutes. The default is 15. `0` means never. This is the sandbox's idle pause. The sandbox pauses after
49
+ that much time with nothing happening in it. The sandbox counts that time
50
+ itself, so a long command is never paused because it made no calls. The sandbox
51
+ has no time limit. Set `ttlMinutes` to give it one. Then Daytona's own rule
52
+ applies: the sandbox pauses after `autoStopInterval` minutes without a call
53
+ through the adapter. Each call moves the limit on. The sandbox ends at the
54
+ deadline.
55
+ - **Funding:** left to Runtime, as `withruntime`'s own `create()` does. The free
56
+ trial is used while the account has trial time. After that, prepaid credit is
57
+ used. To use only the trial, pass `withruntime: { create: { funding: "trial" } }`
58
+ to `new Daytona(...)` or to `create`. In Python, pass
59
+ `runtime_create={"funding": "trial"}`.
54
60
  - **Anything else Runtime offers:** `withruntime: { create: { ... } }` sends
55
61
  Runtime's create fields as they are. `sandbox.withruntime` is the Runtime
56
- sandbox underneath, with previews, network rules, snapshots, the desktop and
62
+ sandbox underneath. It has previews, network rules, snapshots, the desktop and
57
63
  terminals.
58
64
 
59
65
  ## Mapping
60
66
 
61
- | Daytona | On Runtime |
62
- | ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
63
- | `daytona.create()`, `create({ snapshot })` | `sandboxes.create`. Daytona's own snapshots (`daytona-*`) are Runtime's stock image. Any other name is a ready Runtime image of that name, then a Runtime snapshot of that name. |
64
- | `create({ image: "python:3.12" })` | Built once as a Runtime image from the registry reference (named after it), then reused. `onSnapshotCreateLogs` receives the build log. |
65
- | `create({ image: Image.debianSlim(...).pipInstall(...)... })` | The Dockerfile Daytona's `Image` stands for, with its local files, built as a Runtime image named after its content and reused. |
66
- | `resources`, `envVars`, `labels`, `name`, `volumes` | `vcpu`, `memoryMiB`, `diskMiB`; environment given to every command; labels; name; Runtime volumes by id or by name. |
67
- | `setLabels` (Python `set_labels`) | Replaces customer labels while preserving the language and Runtime compatibility labels; reconnects retain the language. |
68
- | `networkBlockAll`, `networkAllowList`, `domainAllowList`, `outboundProxyUrl` | Runtime network rules (`internet: false`, or an `allow` list); the proxy as `HTTP_PROXY` and `HTTPS_PROXY` for commands. |
69
- | `public: true`, `setPublic` (Python `set_public`) | `getPreviewLink(port)` shares the port publicly; without it, privately with a token. `setPublic` turns every port already shared public or private at once, at the same address. |
70
- | `language` | The language of `codeRun`, kept in Daytona's `code-toolbox-language` label so a sandbox found later keeps it. |
71
- | `daytona.get(idOrName)`, `daytona.list(query)` | `sandboxes.get`, or the newest live sandbox with that name; `sandboxes.list` by labels and states, then Daytona's other filters (`id` and `name` prefixes, CPU, memory, disk, dates), `sort` and `order` here. Awaiting `list()` gives the older `{ items, total }` shape. |
72
- | `process.executeCommand(cmd, cwd, env, timeout)` | `exec` under bash with stderr joined to stdout, as Daytona's `result`, streamed so the whole output comes back. A non-zero exit is a result. Past `timeout` (seconds): `DaytonaProcessExecutionTimeoutError`. |
73
- | `process.codeRun(code, { argv, env })` | `python3 -c`, `node -e` or `bun -e` by the sandbox's language. `artifacts.charts` is always empty. |
74
- | `createSession`, `executeSessionCommand`, `getSessionCommandLogs` | One bash per session, kept running: directory, variables and functions carry from one command to the next. `runAsync` returns at once; logs stream to callbacks. |
75
- | `sendSessionCommandInput`, `getSession`, `getSessionCommand`, `deleteSession` | Input to the session's shell, which the running command reads; the commands sent through this object; killing the shell. |
76
- | `fs.uploadFile(s)`, `downloadFile(s)`, `listFiles`, `getFileDetails` | Runtime's files API. Relative paths resolve from `/workspace`. `owner` and `group` are always `""`. |
77
- | `fs.createFolder`, `deleteFile`, `moveFiles`, `setFilePermissions` | `mkdir -m`, `files.remove`, `files.rename`, `chmod` and `sudo chown`. |
78
- | `fs.findFiles`, `searchFiles`, `replaceInFiles` | `grep -rn`, a files glob, and a read and write of each file. |
79
- | `git.clone`, `status`, `add`, `commit`, `push`, `pull`, branches | The sandbox's git. Credentials reach git through the environment, never the command line. |
80
- | `codeInterpreter.runCode`, contexts | Runtime's Python interpreter. The sandbox's `envVars` reach code through a context made once for them. |
81
- | `start`, `stop`, `pause`, `archive`, `delete`, `fork`, `createSnapshot` | `wake`, `pause` (or `stop` when ephemeral), `pause`, `pause`, `stop`, Runtime's fork with memory, a Runtime snapshot with that name. |
82
- | `getPreviewLink(port)` | A Runtime preview. Send its token as `x-runtime-preview-token`; Daytona's header is `x-daytona-preview-token`. |
83
- | `getUserHomeDir`, `getWorkDir`, `user` | `/workspace`, and `daytona`, so `/home/daytona` (linked to `/workspace` the first time something names it) works. |
84
- | `create({ user })` (Python `os_user`) | The user must exist in the image, as on Daytona. Commands, sessions and terminals run as it through `sudo`; files written through `fs` are given to it. It joins the owner's group, so both can share `/workspace`. |
85
- | `process.createPty`, `connectPty`, `listPtySessions`, `resizePtySession` | A shell started with a terminal, which outlives the connection: `disconnect()` leaves it running, `connectPty` attaches again with what it printed so far, `killPtySession` ends it. |
86
- | `computerUse.mouse`, `keyboard`, `screenshot`, `display`, `recording` | Runtime's desktop. `start()` installs it the first time, which takes a minute or two. Key names are Daytona's or xdotool's. `mouse.down` and `up` hold and release a button; `scroll` goes up, down, left or right. |
87
- | `daytona.snapshot.create`, `get`, `list`, `delete` | Runtime images built, found, listed and deleted by name. |
88
- | `daytona.volume.get`, `list`, `delete` | Runtime volumes by name. |
89
- | Error classes | Daytona's names and parents, by HTTP status. Each also carries Runtime's `code`, `hint` and `requestId`, with the original error as `cause`. |
67
+ | Daytona | On Runtime |
68
+ | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
69
+ | `daytona.create()`, `create({ snapshot })` | `sandboxes.create`. Daytona's own snapshots (`daytona-*`) map to Runtime's stock image. Any other name is a ready Runtime image with that name, or else a Runtime snapshot with that name. |
70
+ | `create({ image: "python:3.12" })` | Built once as a Runtime image, from the registry reference. The image is named after that reference and reused. `onSnapshotCreateLogs` receives the build log. |
71
+ | `create({ image: Image.debianSlim(...).pipInstall(...)... })` | The Dockerfile that Daytona's `Image` stands for, with its local files, built as a Runtime image. The image is named after its content and reused. |
72
+ | `resources`, `envVars`, `labels`, `name`, `volumes` | `vcpu`, `memoryMiB` and `diskMiB`. Environment is given to every command. Labels, name, and Runtime volumes by ID or by name. |
73
+ | `setLabels` (Python `set_labels`) | Replaces the customer labels. It keeps the language and Runtime compatibility labels. Reconnects keep the language. |
74
+ | `networkBlockAll`, `networkAllowList`, `domainAllowList`, `outboundProxyUrl` | Runtime network rules (`internet: false`, or an `allow` list). The proxy is set as `HTTP_PROXY` and `HTTPS_PROXY` for commands. |
75
+ | `public: true`, `setPublic` (Python `set_public`) | `getPreviewLink(port)` shares the port publicly. Without `public`, the port is shared privately, with a token. `setPublic` changes every port that is already shared, to public or private, at the same address. |
76
+ | `language` | The language used by `codeRun`. It is kept in Daytona's `code-toolbox-language` label, so a sandbox found later keeps it. |
77
+ | `daytona.get(idOrName)`, `daytona.list(query)` | `sandboxes.get`, or the newest live sandbox with that name. `sandboxes.list` filters by labels and states. Daytona's other filters (`id` and `name` prefixes, CPU, memory, disk, dates) apply, and `sort` and `order` are set here. Awaiting `list()` gives the older `{ items, total }` shape. |
78
+ | `process.executeCommand(cmd, cwd, env, timeout)` | `exec` under bash, with stderr joined to stdout, as Daytona's `result`. The output streams, so the full output comes back. A non-zero exit code is a result, not an error. Past `timeout` (in seconds), it throws `DaytonaProcessExecutionTimeoutError`. |
79
+ | `process.codeRun(code, { argv, env })` | Runs `python3 -c`, `node -e` or `bun -e`, based on the sandbox's language. `artifacts.charts` is always empty. |
80
+ | `createSession`, `executeSessionCommand`, `getSessionCommandLogs` | One bash per session, kept running. The directory, variables and functions carry over from one command to the next. `runAsync` returns immediately. Logs stream to callbacks. |
81
+ | `sendSessionCommandInput`, `getSession`, `getSessionCommand`, `deleteSession` | Sends input to the session's shell, which the running command reads. Lists the commands sent through this object. Kills the shell. |
82
+ | `fs.uploadFile(s)`, `downloadFile(s)`, `listFiles`, `getFileDetails` | Runtime's files API. Relative paths resolve from `/workspace`. `owner` and `group` are always `""`. |
83
+ | `fs.createFolder`, `deleteFile`, `moveFiles`, `setFilePermissions` | `mkdir -m`, `files.remove`, `files.rename`, `chmod` and `sudo chown`. |
84
+ | `fs.findFiles`, `searchFiles`, `replaceInFiles` | `grep -rn`, a files glob, and a read and write of each file. |
85
+ | `git.clone`, `status`, `add`, `commit`, `push`, `pull`, branches | The sandbox's git. Credentials reach git through the environment, never on the command line. |
86
+ | `codeInterpreter.runCode`, contexts | Runtime's Python interpreter. The sandbox's `envVars` reach the code through a context that is made once for them. |
87
+ | `start`, `stop`, `pause`, `archive`, `delete`, `fork`, `createSnapshot` | `wake`, then `pause` (or `stop` when ephemeral), then `pause`, `pause`, `stop`, Runtime's fork with memory, and a Runtime snapshot with that name. |
88
+ | `getPreviewLink(port)` | A Runtime preview. Send its token as `x-runtime-preview-token`. Daytona's header is `x-daytona-preview-token`. |
89
+ | `getUserHomeDir`, `getWorkDir`, `user` | `/workspace`, and `daytona`. So `/home/daytona` works, and it is linked to `/workspace` the first time something names it. |
90
+ | `create({ user })` (Python `os_user`) | The user must exist in the image, as on Daytona. Commands, sessions and terminals run as that user through `sudo`. Files written through `fs` are given to that user. The user joins the owner's group, so both can share `/workspace`. |
91
+ | `process.createPty`, `connectPty`, `listPtySessions`, `resizePtySession` | A shell started with a terminal. It keeps running after the connection closes. `disconnect()` leaves it running. `connectPty` attaches again, with the output printed so far. `killPtySession` ends it. |
92
+ | `computerUse.mouse`, `keyboard`, `screenshot`, `display`, `recording` | Runtime's desktop. `start()` installs it the first time, which takes a minute or two. Key names are Daytona's or xdotool's. `mouse.down` and `up` hold and release a button. `scroll` goes up, down, left or right. |
93
+ | `daytona.snapshot.create`, `get`, `list`, `delete` | Runtime images, built, found, listed and deleted by name. |
94
+ | `daytona.volume.get`, `list`, `delete` | Runtime volumes, by name. |
95
+ | Error classes | Daytona's names and parent classes, chosen by HTTP status. Each error also carries Runtime's `code`, `hint` and `requestId`. The original error is the `cause`. |
90
96
 
91
97
  ## Gaps
92
98
 
93
- Each of these throws `NotSupportedError` before anything happens. Its
94
- `feature` names the gap and its `alternative` says what to use.
95
-
96
- | Daytona | Use instead |
97
- | --------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
98
- | A snapshot name with no Runtime image or snapshot | `daytona.snapshot.create({ name, image })` here, or `npx withruntime images build`. This throws `DaytonaNotFoundError`. |
99
- | GPUs, `spot`, `linkedSandbox`, `secrets`, `otelEndpointOverride` | Runtime runs Linux on CPUs. For `secrets`, a Runtime secret (`npx withruntime secrets set NAME --host <host>`): the sandbox sees a placeholder. For telemetry, `runtime.otel.create()`. |
100
- | A `target` other than `us` (the client's or a create's), `jwtToken` | Runtime runs in one US region and signs in with keys. |
101
- | The entrypoint session, language servers | Sessions with `runAsync`. |
102
- | Screenshots of a region, with the cursor, scaled, or as WebP | The whole screen as PNG or JPEG; crop and scale it yourself. |
103
- | `computerUse.accessibility`, the desktop's processes one by one | Screenshots with the mouse and keyboard; `computerUse.getStatus()`, `stop()` and `start()`. |
104
- | `keyboard.down` and `up`, `modifiers` on a click, drag or scroll | `keyboard.press(key, modifiers)` or `keyboard.hotkey("ctrl+shift+t")`: the keys pressed together at once. |
105
- | `clicks` above 2 | One click, or two with `double`; to select a line, click once and press shift+End. |
106
- | `resize`, `recover` | Set labels and resources at create; create a new sandbox. |
107
- | Signed preview URLs, signed upload and download URLs, SSH access | `getPreviewLink`, `fs.uploadFile` and `downloadFile`, `npx withruntime sandboxes ssh <id>`. |
108
- | `getMetrics` | `sandbox.withruntime.metrics()`: its CPU and memory over time. |
109
- | `Image.pipInstallFromPyproject`, snapshot `resources` or `entrypoint` | `pipInstallFromRequirements`; resources at create; a session after create. |
110
- | `volume.create(name)` | Runtime volumes have a size: `runtime.volumes.create({ name, sizeMiB })`. |
111
- | `secret`, `warmPool` | A Runtime secret for credentials; Runtime starts from warm templates already. |
112
- | `runCode(code, { envs })` | `envVars` at create, or `os.environ` in the code. |
113
- | Listing by `isPublic`, `snapshots` or `autoDestroyAt` | Filter by a label you set at create. |
114
-
115
- File download timeouts are seconds, including buffer and local-path overloads
116
- and batches. A batch shares one deadline and stops starting later files once
117
- it expires. JavaScript `downloadFileStream(path, { timeout, signal })` also
118
- bounds and cancels the stream. An incomplete local download is never published
119
- as the completed file.
99
+ Each of these throws `NotSupportedError` before anything happens. The error's
100
+ `feature` names the gap. Its `alternative` says what to use.
101
+
102
+ | Daytona | Use instead |
103
+ | --------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
104
+ | A snapshot name with no Runtime image or snapshot | `daytona.snapshot.create({ name, image })` here, or `npx withruntime images build`. Without one of these, this throws `DaytonaNotFoundError`. |
105
+ | GPUs, `spot`, `linkedSandbox`, `secrets`, `otelEndpointOverride` | Runtime runs Linux on CPUs. For `secrets`, use a Runtime secret (`npx withruntime secrets set NAME --host <host>`). The sandbox sees a placeholder. For telemetry, use `runtime.otel.create()`. |
106
+ | A `target` other than `us` (on the client or on a create), `jwtToken` | Runtime runs in one US region, and signs in with keys. |
107
+ | The entrypoint session, language servers | Sessions with `runAsync`. |
108
+ | Screenshots of a region, with the cursor, scaled, or as WebP | The whole screen, as PNG or JPEG. Crop and scale it yourself. |
109
+ | `computerUse.accessibility`, the desktop's processes one by one | Screenshots with the mouse and keyboard. Use `computerUse.getStatus()`, `stop()` and `start()`. |
110
+ | `keyboard.down` and `up`, `modifiers` on a click, drag or scroll | `keyboard.press(key, modifiers)`, or `keyboard.hotkey("ctrl+shift+t")`. The keys are pressed together at once. |
111
+ | `clicks` above 2 | One click, or two with `double`. To select a line, click once and press shift+End. |
112
+ | `resize`, `recover` | Set labels and resources at create time. Or create a new sandbox. |
113
+ | Signed preview URLs, signed upload and download URLs, SSH access | `getPreviewLink`, `fs.uploadFile` and `downloadFile`, or `npx withruntime sandboxes ssh <id>`. |
114
+ | `getMetrics` | `sandbox.withruntime.metrics()`, which gives CPU and memory over time. |
115
+ | `Image.pipInstallFromPyproject`, snapshot `resources` or `entrypoint` | `pipInstallFromRequirements`. Resources at create time. A session after create. |
116
+ | `volume.create(name)` | Runtime volumes have a size: `runtime.volumes.create({ name, sizeMiB })`. |
117
+ | `secret`, `warmPool` | A Runtime secret for credentials. Runtime starts from warm templates already. |
118
+ | `runCode(code, { envs })` | `envVars` at create time, or `os.environ` in the code. |
119
+ | Listing by `isPublic`, `snapshots` or `autoDestroyAt` | Filter by a label that you set at create time. |
120
+
121
+ File download timeouts are in seconds. This includes buffer and local-path
122
+ overloads, and batches. A batch shares one deadline. It stops starting later
123
+ files once the deadline passes. JavaScript's `downloadFileStream(path, { timeout, signal })`
124
+ also limits and cancels the stream. An incomplete local download is never
125
+ published as the completed file.
120
126
 
121
127
  Some differences are not refusals:
122
128
 
123
- - A session runs one command at a time. A command sent while another runs
124
- waits for it, as it would typed into a shell. Sessions made by another
125
- client are found by name, but only their output from then on is known.
126
- - `autoArchiveInterval` is recorded only: Runtime has no archive tier.
127
- - Runtime's stock image is Ubuntu 24.04 with Python 3.12, Node.js 24 and Bun.
129
+ - A session runs one command at a time. A command sent while another one runs
130
+ waits for it, as it would if typed into a shell. Sessions made by another
131
+ client are found by name. But only their output from then on is known.
132
+ - `autoArchiveInterval` is recorded only. Runtime has no archive tier.
133
+ - Runtime's stock image is Ubuntu 24.04, with Python 3.12, Node.js 24 and Bun.
128
134
 
129
135
  ## 0.225.0, 18 October 2026
130
136
 
131
- Reviewed the published npm tarballs for `@daytona/sdk`, `@daytona/api-client`,
132
- `@daytona/toolbox-api-client` and `@daytona/analytics-api-client` 0.224.1 →
133
- 0.225.0, and the PyPI wheel and sdist for `daytona` 0.224.1 → 0.225.0, each its
134
- registry's latest when checked. Every pinned file matched the hash already in
135
- `compatibility-lock.json`, every new file its registry's SHA-512 integrity or
136
- SHA-256 digest, and the wheel's Python source is byte for byte its sdist's.
137
- Nothing was installed, imported or run. No declaration of `@daytona/sdk` and no
138
- Python source of `daytona` changed: only versions and the exact pins on the
139
- three API clients. The one API change is in `@daytona/api-client` (and its
140
- PyPI twins): `GpuType` gains `B200`.
141
-
142
- | Upstream change | Drop-in disposition |
143
- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
144
- | `GpuType.B200` | Exported, with every other `GpuType`. A create naming any GPU type is refused (`NotSupportedError`, "Runtime runs sandboxes on CPUs") before anything is made. |
145
-
146
- Two gaps near it are closed with the review. `@daytona/sdk` re-exports
137
+ We reviewed the published npm tarballs for `@daytona/sdk`, `@daytona/api-client`,
138
+ `@daytona/toolbox-api-client` and `@daytona/analytics-api-client`, from 0.224.1 to
139
+ 0.225.0. We also reviewed the PyPI wheel and sdist for `daytona`, from 0.224.1 to
140
+ 0.225.0. Each was its registry's latest when checked. Every pinned file matched
141
+ the hash already in `compatibility-lock.json`. Every new file matched its
142
+ registry's SHA-512 integrity or SHA-256 digest. The wheel's Python source is byte
143
+ for byte its sdist's. Nothing was installed, imported or run. No declaration of
144
+ `@daytona/sdk` changed, and no Python source of `daytona` changed. Only versions
145
+ and the exact pins on the three API clients changed. The one API change is in
146
+ `@daytona/api-client` (and its PyPI twins): `GpuType` gains `B200`.
147
+
148
+ | Upstream change | Drop-in disposition |
149
+ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
150
+ | `GpuType.B200` | Exported, with every other `GpuType`. A create that names any GPU type is refused (`NotSupportedError`, "Runtime runs sandboxes on CPUs") before anything is made. |
151
+
152
+ Two gaps near it were closed in this review. `@daytona/sdk` re-exports
147
153
  `GpuType`, `SnapshotState`, `SandboxListSortField`, `SandboxListSortDirection`,
148
- `SandboxClass`, `ListSecretsPaginatedSortEnum` and
149
- `ListSecretsPaginatedOrderEnum`, and `daytona` exports `GpuType`,
150
- `SandboxClass`, `SandboxListSortField` and `SandboxListSortDirection`; the
151
- drop-ins exported none of them, so code importing one failed. They are exported
152
- now with upstream's values, and the sort enums drive `list`. Python refused
153
- `Resources(gpu=...)` but made a CPU sandbox for `Resources(gpu_type=...)`
154
- alone, which Daytona sends as a GPU request; it is refused now, as in
155
- TypeScript. `tests/daytona/daytona-0-225-0.test.ts` and
156
- `sdks/python/tests/test_daytona_0_225_0.py` fail without this change. The
157
- oracle was not run against the new release, since it executes Daytona's code;
158
- the provider remains marked `partial`.
154
+ `SandboxClass`, `ListSecretsPaginatedSortEnum` and `ListSecretsPaginatedOrderEnum`.
155
+ `daytona` exports `GpuType`, `SandboxClass`, `SandboxListSortField` and
156
+ `SandboxListSortDirection`. The drop-ins exported none of them, so code that
157
+ imported one failed. They are exported now, with upstream's values, and the sort
158
+ enums drive `list`. Python refused `Resources(gpu=...)`, but it made a CPU sandbox
159
+ for `Resources(gpu_type=...)` alone. Daytona sends that as a GPU request. Python
160
+ now refuses it, as TypeScript does.
161
+
162
+ `tests/daytona/daytona-0-225-0.test.ts` and
163
+ `sdks/python/tests/test_daytona_0_225_0.py` fail without this change. The oracle
164
+ was not run against the new release, because it runs Daytona's code. The
165
+ provider stays marked `partial`.
159
166
 
160
167
  ## 0.224.1, 15 October 2026
161
168
 
162
- Reviewed the published npm tarballs for `@daytona/sdk`, `@daytona/api-client`,
163
- `@daytona/toolbox-api-client` and `@daytona/analytics-api-client` 0.223.1 →
164
- 0.224.1, and the PyPI wheel and sdist for `daytona` 0.223.1 → 0.224.1 (0.224.0,
165
- published between them, was also fetched: on npm, 0.224.1 adds only the stream
166
- decoder change and the dependency floors below; on PyPI it is the same source
167
- with a new version). Each was its registry's latest when checked. Every pinned
168
- file matched the hash already in `compatibility-lock.json`, and every new file
169
- matched its registry's SHA-512 integrity or SHA-256 digest; the wheel's Python
170
- source is byte for byte its sdist's. Nothing was installed, imported or run.
171
- The three API clients changed only their version. `@daytona/sdk` changed
172
- `Daytona` (create params and the client's `target` docs), `Snapshot` (docs),
173
- and its output stream decoder, ESM and CommonJS alike; `daytona` changed the
174
- same, sync and async, plus the async PTY handle.
175
-
176
- | Upstream change | Drop-in disposition |
177
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
178
- | `daytona.create({ target })` (Python `target` on `CreateSandboxFromSnapshotParams` and `CreateSandboxFromImageParams`) picks the region for that create, over the client's `target`. | Followed, in both languages. `"us"` or none creates the sandbox in Runtime's one region; any other is refused with the same `NotSupportedError` as a client `target`, before anything is built or made. Before, TypeScript dropped it without a word and Python raised `TypeError`. |
179
- | The client's `target` (and `DAYTONA_TARGET`) and a snapshot's `regionId` (Python `region_id`) are documented as the default region, overridden per call. | Documentation only; the client's `target` is checked as before. TypeScript already refused a snapshot `regionId`; Python accepted `region_id` and dropped it, and now refuses it the same way (`""` still means the default). |
180
- | The output stream decoder finds an stdout or stderr marker that ends exactly at the end of a message, which it held back before, and buffers in linear time. | Not applicable: the drop-in takes output from Runtime's exec, which keeps stdout and stderr apart, and never parses Daytona's markers. |
181
- | Python `AsyncPtyHandle.wait()` shields its reader, so cancelling a caller's wait (for example `asyncio.wait_for`) leaves the PTY connected. | Already so: the drop-in's `wait()` awaits `asyncio.shield` of its reader task. |
182
- | `@daytona/sdk` requires `ws` exactly 8.22.0 (was ^8.22.0), `@aws-sdk/client-s3` and `lib-storage` ^3.1146.0 and `shell-quote` ^1.12.0. | The oracle's `bun.lock` moves with them (ws stays 8.22.0). |
169
+ We reviewed the published npm tarballs for `@daytona/sdk`, `@daytona/api-client`,
170
+ `@daytona/toolbox-api-client` and `@daytona/analytics-api-client`, from 0.223.1 to
171
+ 0.224.1. We also reviewed the PyPI wheel and sdist for `daytona`, from 0.223.1 to
172
+ 0.224.1. 0.224.0, published between them, was also fetched. On npm, 0.224.1 adds
173
+ only the stream decoder change and the dependency floors below. On PyPI, it is the
174
+ same source with a new version. Each was its registry's latest when checked. Every
175
+ pinned file matched the hash already in `compatibility-lock.json`. Every new file
176
+ matched its registry's SHA-512 integrity or SHA-256 digest. The wheel's Python
177
+ source is byte for byte its sdist's. Nothing was installed, imported or run. The
178
+ three API clients changed only their version. `@daytona/sdk` changed `Daytona`
179
+ (create parameters and the client's `target` docs), `Snapshot` (docs), and its
180
+ output stream decoder, in ESM and CommonJS alike. `daytona` changed the same
181
+ things, in sync and async, plus the async PTY handle.
182
+
183
+ | Upstream change | Drop-in disposition |
184
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
185
+ | `daytona.create({ target })` (Python `target` on `CreateSandboxFromSnapshotParams` and `CreateSandboxFromImageParams`) picks the region for that create, over the client's `target`. | Followed, in both languages. `"us"` or none creates the sandbox in Runtime's one region. Any other value is refused with the same `NotSupportedError` as a client `target`, before anything is built or made. Before, TypeScript dropped it without a word, and Python raised `TypeError`. |
186
+ | The client's `target` (and `DAYTONA_TARGET`), and a snapshot's `regionId` (Python `region_id`), are documented as the default region, overridden per call. | Documentation only. The client's `target` is checked as before. TypeScript already refused a snapshot `regionId`. Python accepted `region_id` and dropped it. Python now refuses it the same way. `""` still means the default. |
187
+ | The output stream decoder finds a stdout or stderr marker that ends exactly at the end of a message. It used to hold that marker back. It now buffers in linear time. | Not applicable. The drop-in takes output from Runtime's exec, which keeps stdout and stderr apart. It never parses Daytona's markers. |
188
+ | Python `AsyncPtyHandle.wait()` shields its reader. So cancelling a caller's wait (for example, with `asyncio.wait_for`) leaves the PTY connected. | Already so. The drop-in's `wait()` awaits `asyncio.shield` of its reader task. |
189
+ | `@daytona/sdk` requires `ws` exactly 8.22.0 (it was ^8.22.0), `@aws-sdk/client-s3` and `lib-storage` ^3.1146.0, and `shell-quote` ^1.12.0. | The oracle's `bun.lock` moves with them. `ws` stays at 8.22.0. |
183
190
 
184
191
  `tests/daytona/daytona-0-224-1.test.ts` and
185
- `sdks/python/tests/test_daytona_0_224_1.py` check a create's `target` both
186
- ways, that it overrides the client's, and (Python) that a snapshot's
187
- `region_id` is refused; they fail without this change. The oracle was not run
188
- against the new release, since it executes Daytona's code; the provider
189
- remains marked `partial`.
192
+ `sdks/python/tests/test_daytona_0_224_1.py` check a create's `target` both ways.
193
+ They check that it overrides the client's `target`. In Python, they also check
194
+ that a snapshot's `region_id` is refused. They fail without this change. The
195
+ oracle was not run against the new release, because it runs Daytona's code. The
196
+ provider stays marked `partial`.
190
197
 
191
198
  ## 0.223.1, 9 October 2026
192
199
 
193
- Reviewed the published npm tarballs for `@daytona/sdk`, `@daytona/api-client`,
194
- `@daytona/toolbox-api-client` and `@daytona/analytics-api-client` 0.223.0 →
195
- 0.223.1, and the PyPI wheel and sdist for `daytona` 0.223.0 → 0.223.1. Each was
196
- its registry's latest when checked. Every pinned file matched the hash already
197
- in `compatibility-lock.json`, and every new file matched its registry's SHA-512
198
- integrity or SHA-256 digest; each wheel's Python source is byte for byte its
199
- sdist's. Nothing was installed, imported or run. The three API clients changed
200
- only their version. `@daytona/sdk` changed `Sandbox` and `Process` (ESM and
201
- CommonJS alike), and `daytona` the same two modules, sync and async.
202
-
203
- | Upstream change | Drop-in disposition |
204
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
205
- | `sandbox.setPublic(isPublic)` (Python `set_public(public, request_timeout=None)`) makes the sandbox's preview URLs public or private, and sets `sandbox.public`. | Followed, in both languages. Every port already shared whose visibility differs is shared again with the new one, at the same address, and later `getPreviewLink` calls use it. Without credit Runtime refuses a public share (`public_preview_not_allowed`) and `public` is unchanged. |
206
- | `executeCommand` (Python `exec`) documents that commands run under zsh, bash or sh (zsh in Daytona's images), how to start a server in the background, and that `nproc` may report the host's CPUs. | Documentation only. The drop-in keeps running commands under bash, which is what Daytona's quoting advice is for; a sandbox's `nproc` reports its own vCPUs. |
207
- | `getPreviewLink` and `getSignedPreviewUrl` (Python `create_signed_preview_url`) document the token header, the API key as a bearer token, and a longer expiry. | Documentation only. A Runtime private preview takes its token as `x-runtime-preview-token`; signed preview URLs stay refused, as above. |
208
- | `@daytona/sdk` requires `shell-quote` ^1.11.0, was ^1.8.2. | The oracle's `bun.lock` already resolved 1.11.0. |
200
+ We reviewed the published npm tarballs for `@daytona/sdk`, `@daytona/api-client`,
201
+ `@daytona/toolbox-api-client` and `@daytona/analytics-api-client`, from 0.223.0 to
202
+ 0.223.1. We also reviewed the PyPI wheel and sdist for `daytona`, from 0.223.0 to
203
+ 0.223.1. Each was its registry's latest when checked. Every pinned file matched
204
+ the hash already in `compatibility-lock.json`. Every new file matched its
205
+ registry's SHA-512 integrity or SHA-256 digest. Each wheel's Python source is byte
206
+ for byte its sdist's. Nothing was installed, imported or run. The three API
207
+ clients changed only their version. `@daytona/sdk` changed `Sandbox` and `Process`,
208
+ in ESM and CommonJS alike. `daytona` changed the same two modules, in sync and async.
209
+
210
+ | Upstream change | Drop-in disposition |
211
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
212
+ | `sandbox.setPublic(isPublic)` (Python `set_public(public, request_timeout=None)`) makes the sandbox's preview URLs public or private, and sets `sandbox.public`. | Followed, in both languages. Every port that is already shared, and whose visibility differs, is shared again with the new visibility, at the same address. Later `getPreviewLink` calls use it. Without credit, Runtime refuses a public share (`public_preview_not_allowed`), and `public` does not change. |
213
+ | `executeCommand` (Python `exec`) documents that commands run under zsh, bash or sh (zsh in Daytona's images). It also explains how to start a server in the background, and that `nproc` may report the host's CPUs. | Documentation only. The drop-in keeps running commands under bash, which is what Daytona's quoting advice is written for. A sandbox's `nproc` reports its own vCPUs. |
214
+ | `getPreviewLink` and `getSignedPreviewUrl` (Python `create_signed_preview_url`) document the token header, the API key as a bearer token, and a longer expiry. | Documentation only. A Runtime private preview takes its token as `x-runtime-preview-token`. Signed preview URLs stay refused, as above. |
215
+ | `@daytona/sdk` requires `shell-quote` ^1.11.0. It was ^1.8.2. | The oracle's `bun.lock` already resolved 1.11.0. |
209
216
 
210
217
  `tests/daytona/daytona-0-223-1.test.ts` and
211
- `sdks/python/tests/test_daytona_0_223_1.py` check `setPublic` both ways, that
212
- a public port is not shared again, and the refusal without credit; they fail
213
- without this change. The oracle was not run against the new release, since it
214
- executes Daytona's code; the provider remains marked `partial`.
218
+ `sdks/python/tests/test_daytona_0_223_1.py` check `setPublic` both ways. They
219
+ check that a public port is not shared again, and the refusal without credit.
220
+ They fail without this change. The oracle was not run against the new release,
221
+ because it runs Daytona's code. The provider stays marked `partial`.
215
222
 
216
223
  ## Tests
217
224
 
218
- `bun run test` in `packages/cloud-sdk` runs the unit tests of both languages
219
- against fakes of Runtime's SDKs: `tests/daytona` here and
225
+ `bun run test` in `packages/cloud-sdk` runs the unit tests for both languages,
226
+ against fakes of Runtime's SDKs. The tests are `tests/daytona` here and
220
227
  `sdks/python/tests/test_daytona.py`.
221
228
 
222
- The end-to-end tests run Daytona's quickstart and guides, unmodified but for
223
- the import, against the real API. They refuse to start unless the free trial
224
- has an hour left, create one sandbox per language and end it. They are not part
229
+ The end-to-end tests run Daytona's quickstart and guides, unmodified except for
230
+ the import, against the real API. They refuse to start unless the free trial has
231
+ an hour left. They create one sandbox per language, and end it. They are not part
225
232
  of `bun run test`.
226
233
 
227
234
  ```bash no-run