withruntime 0.35.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.
- package/BLAXEL.md +207 -204
- package/COMPATIBILITY.md +367 -337
- package/DAYTONA.md +180 -173
- package/E2B.md +246 -230
- package/README.md +182 -142
- package/README.src.md +182 -142
- package/VERCEL.md +173 -168
- package/agent-platforms-inventory.json +387 -0
- package/dist/agents-cli.d.ts +7 -1
- package/dist/agents-cli.js +219 -2
- package/dist/ci-cli.d.ts +7 -1
- package/dist/ci-cli.js +25 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +16 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +4 -1
- package/dist/index.d.ts +3 -3
- package/dist/inngest/index.d.ts +96 -0
- package/dist/inngest/index.js +183 -0
- package/dist/jobs-code/cron.d.ts +12 -0
- package/dist/jobs-code/cron.js +93 -0
- package/dist/jobs-code/registry.d.ts +31 -0
- package/dist/jobs-code/registry.js +30 -0
- package/dist/jobs-code/runner.d.ts +1 -0
- package/dist/jobs-code/runner.js +74 -0
- package/dist/jobs-deploy.d.ts +22 -0
- package/dist/jobs-deploy.js +247 -0
- package/dist/jobs-import.d.ts +15 -0
- package/dist/jobs-import.js +231 -0
- package/dist/products/agents.d.ts +161 -1
- package/dist/products/agents.js +40 -0
- package/dist/products/ci.d.ts +19 -1
- package/dist/products/jobs.d.ts +77 -0
- package/dist/products/jobs.js +5 -0
- package/dist/transport.d.ts +5 -1
- package/dist/transport.js +7 -1
- package/dist/trigger/index.d.ts +202 -0
- package/dist/trigger/index.js +244 -0
- package/package.json +14 -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
|
-
|
|
5
|
-
the same client, so it gets that SDK's
|
|
6
|
-
Importing `withruntime` alone does not
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
|
38
|
-
|
|
39
|
-
kept
|
|
40
|
-
`autoDeleteInterval` minutes rounded up to whole days.
|
|
41
|
-
An `ephemeral` sandbox
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
it Daytona's own rule
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
`create
|
|
53
|
-
|
|
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
|
|
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-*`)
|
|
64
|
-
| `create({ image: "python:3.12" })` | Built once as a Runtime image from the registry reference
|
|
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
|
|
67
|
-
| `setLabels` (Python `set_labels`) | Replaces customer labels
|
|
68
|
-
| `networkBlockAll`, `networkAllowList`, `domainAllowList`, `outboundProxyUrl` | Runtime network rules (`internet: false`, or an `allow` list)
|
|
69
|
-
| `public: true`, `setPublic` (Python `set_public`) | `getPreviewLink(port)` shares the port publicly
|
|
70
|
-
| `language` | The language
|
|
71
|
-
| `daytona.get(idOrName)`, `daytona.list(query)` | `sandboxes.get`, or the newest live sandbox with that name
|
|
72
|
-
| `process.executeCommand(cmd, cwd, env, timeout)` | `exec` under bash with stderr joined to stdout, as Daytona's `result
|
|
73
|
-
| `process.codeRun(code, { argv, env })` | `python3 -c`, `node -e` or `bun -e
|
|
74
|
-
| `createSession`, `executeSessionCommand`, `getSessionCommandLogs` | One bash per session, kept running
|
|
75
|
-
| `sendSessionCommandInput`, `getSession`, `getSessionCommand`, `deleteSession` |
|
|
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
|
|
83
|
-
| `getUserHomeDir`, `getWorkDir`, `user` | `/workspace`, and `daytona
|
|
84
|
-
| `create({ user })` (Python `os_user`) | The user must exist in the image, as on Daytona. Commands, sessions and terminals run as
|
|
85
|
-
| `process.createPty`, `connectPty`, `listPtySessions`, `resizePtySession` | A shell started with a terminal
|
|
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
|
|
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
|
|
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.
|
|
94
|
-
`feature` names the gap
|
|
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`.
|
|
99
|
-
| GPUs, `spot`, `linkedSandbox`, `secrets`, `otelEndpointOverride` | Runtime runs Linux on CPUs. For `secrets`, a Runtime secret (`npx withruntime secrets set NAME --host <host>`)
|
|
100
|
-
| A `target` other than `us` (the client
|
|
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
|
|
103
|
-
| `computerUse.accessibility`, the desktop's processes one by one | Screenshots with the mouse and keyboard
|
|
104
|
-
| `keyboard.down` and `up`, `modifiers` on a click, drag or scroll | `keyboard.press(key, modifiers)
|
|
105
|
-
| `clicks` above 2 | One click, or two with `double
|
|
106
|
-
| `resize`, `recover` | Set labels and resources at create
|
|
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()
|
|
109
|
-
| `Image.pipInstallFromPyproject`, snapshot `resources` or `entrypoint` | `pipInstallFromRequirements
|
|
110
|
-
| `volume.create(name)` | Runtime volumes have a size: `runtime.volumes.create({ name, sizeMiB })`.
|
|
111
|
-
| `secret`, `warmPool` | A Runtime secret for credentials
|
|
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
|
|
116
|
-
and batches. A batch shares one deadline
|
|
117
|
-
|
|
118
|
-
|
|
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
|
|
126
|
-
- `autoArchiveInterval` is recorded only
|
|
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
|
-
|
|
132
|
-
`@daytona/toolbox-api-client` and `@daytona/analytics-api-client
|
|
133
|
-
0.225.0
|
|
134
|
-
registry's latest when checked. Every pinned file matched
|
|
135
|
-
`compatibility-lock.json
|
|
136
|
-
SHA-256 digest
|
|
137
|
-
Nothing was installed, imported or run. No declaration of
|
|
138
|
-
Python source of `daytona` changed
|
|
139
|
-
three API clients. The one API change is in
|
|
140
|
-
PyPI twins): `GpuType` gains `B200`.
|
|
141
|
-
|
|
142
|
-
| Upstream change | Drop-in disposition
|
|
143
|
-
| --------------- |
|
|
144
|
-
| `GpuType.B200` | Exported, with every other `GpuType`. A create
|
|
145
|
-
|
|
146
|
-
Two gaps near it
|
|
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
|
-
`
|
|
150
|
-
`
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
`Resources(
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
`
|
|
157
|
-
|
|
158
|
-
the
|
|
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
|
-
|
|
163
|
-
`@daytona/toolbox-api-client` and `@daytona/analytics-api-client
|
|
164
|
-
0.224.1
|
|
165
|
-
published between them, was also fetched
|
|
166
|
-
decoder change and the dependency floors below
|
|
167
|
-
with a new version
|
|
168
|
-
file matched the hash already in `compatibility-lock.json
|
|
169
|
-
matched its registry's SHA-512 integrity or SHA-256 digest
|
|
170
|
-
source is byte for byte its sdist's. Nothing was installed, imported or run.
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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
|
|
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.
|
|
180
|
-
| The output stream decoder finds
|
|
181
|
-
| Python `AsyncPtyHandle.wait()` shields its reader
|
|
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.
|
|
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
|
-
|
|
187
|
-
`region_id` is refused
|
|
188
|
-
against the new release,
|
|
189
|
-
|
|
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
|
-
|
|
194
|
-
`@daytona/toolbox-api-client` and `@daytona/analytics-api-client
|
|
195
|
-
0.223.1
|
|
196
|
-
its registry's latest when checked. Every pinned file matched
|
|
197
|
-
in `compatibility-lock.json
|
|
198
|
-
integrity or SHA-256 digest
|
|
199
|
-
sdist's. Nothing was installed, imported or run. The three API
|
|
200
|
-
only their version. `@daytona/sdk` changed `Sandbox` and `Process
|
|
201
|
-
CommonJS alike
|
|
202
|
-
|
|
203
|
-
| Upstream change
|
|
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`.
|
|
206
|
-
| `executeCommand` (Python `exec`) documents that commands run under zsh, bash or sh (zsh in Daytona's images)
|
|
207
|
-
| `getPreviewLink` and `getSignedPreviewUrl` (Python `create_signed_preview_url`) document the token header, the API key as a bearer token, and a longer expiry.
|
|
208
|
-
| `@daytona/sdk` requires `shell-quote` ^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
|
|
212
|
-
a public port is not shared again, and the refusal without credit
|
|
213
|
-
without this change. The oracle was not run against the new release,
|
|
214
|
-
|
|
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
|
|
219
|
-
against fakes of Runtime's SDKs
|
|
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
|
|
223
|
-
the import, against the real API. They refuse to start unless the free trial
|
|
224
|
-
|
|
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
|