withruntime 0.49.0 → 0.50.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.
@@ -1,5 +1,5 @@
1
1
  import { RuntimeError } from "./errors.js";
2
- export declare const VERSION = "0.49.0";
2
+ export declare const VERSION = "0.50.0";
3
3
  export declare const DEFAULT_BASE_URL = "https://api.withruntime.com";
4
4
  /** Runtime's API as code inside a Runtime sandbox reaches it: the sandbox's
5
5
  * own host sends each request on to DEFAULT_BASE_URL over HTTPS. The API runs
package/dist/transport.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ConnectionError, DELIBERATE, errorFor, NOTHING_RAN, RuntimeError, WAITS_FOR_ROOM, } from "./errors.js";
2
2
  import { describeRoute, envFetch, openWebSocket, untrustedCertificate } from "./proxy.js";
3
3
  import { warningText } from "./product-renames.js";
4
- export const VERSION = "0.49.0";
4
+ export const VERSION = "0.50.0";
5
5
  export const DEFAULT_BASE_URL = "https://api.withruntime.com";
6
6
  /** Runtime's API as code inside a Runtime sandbox reaches it: the sandbox's
7
7
  * own host sends each request on to DEFAULT_BASE_URL over HTTPS. The API runs
package/dist/types.d.ts CHANGED
@@ -38,6 +38,9 @@ export type SandboxInfo = {
38
38
  /** Runs until stopped while credit lasts, never paused for idleness or a
39
39
  * time limit, and its disk is kept after a stop. */
40
40
  persistent?: boolean;
41
+ /** Runtime may delete it once it has been paused or stopped for 15 minutes
42
+ * and its server needs the disk. Absent from APIs before 30 October 2026. */
43
+ evictable?: boolean;
41
44
  /** The last exec, file, terminal, desktop or preview request, to within a minute. */
42
45
  lastActiveAt?: string | null;
43
46
  /** What happens when its time limit, credit or a spending limit ends it. */
@@ -198,6 +201,11 @@ export type CreateSandbox = {
198
201
  * snapshot is kept, so a `snapshot` with `spreadFrom` naming its server also
199
202
  * answers `no_capacity`. */
200
203
  spreadFrom?: string[];
204
+ /** When true, Runtime may delete the sandbox once it has been paused or
205
+ * stopped for at least 15 minutes and its server needs the disk, the one
206
+ * idle longest first; a running one is never deleted for it. For work you
207
+ * can recreate, such as build caches and CI machines. Default false. */
208
+ evictable?: boolean;
201
209
  /** Up to four volumes: read-write ("rw", one sandbox at a time) or a
202
210
  * read-only "snapshot" copy. */
203
211
  volumes?: {
@@ -536,6 +544,9 @@ export type SandboxSettings = {
536
544
  * seconds; null the default again. A running one is renewed by it within
537
545
  * seconds. */
538
546
  leaseSeconds?: number | null;
547
+ /** True lets Runtime delete it once it has been paused or stopped for 15
548
+ * minutes and its server needs the disk; false keeps it. */
549
+ evictable?: boolean;
539
550
  /** Keep it running until you stop it, while credit lasts, and keep its disk
540
551
  * after a stop. Paid only. */
541
552
  persistent?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "withruntime",
3
- "version": "0.49.0",
3
+ "version": "0.50.0",
4
4
  "license": "Apache-2.0",
5
5
  "mcpName": "com.withruntime/runtime",
6
6
  "type": "module",