withruntime 0.47.0 → 0.48.1

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/dist/errors.js CHANGED
@@ -52,6 +52,9 @@ export const WAITS_FOR_ROOM = new Set([
52
52
  // A volume whose last sandbox is stopping: free once the stop lets go of
53
53
  // its disk, up to about a minute (measured 50 to 60 s, 6 October 2026).
54
54
  "volume_releasing",
55
+ // A paused sandbox moving to another server: its wake goes once its pause
56
+ // is copied, a minute or two.
57
+ "sandbox_moving",
55
58
  ]);
56
59
  export class RuntimeError extends Error {
57
60
  code;
@@ -50,7 +50,7 @@ export type SandboxMetrics = {
50
50
  latest: MetricPoint | null;
51
51
  points: MetricPoint[];
52
52
  };
53
- export type WebhookEventType = "sandbox.created" | "sandbox.running" | "sandbox.paused" | "sandbox.woken" | "sandbox.stopped" | "sandbox.start_failed" | "sandbox.wake_failed" | "sandbox.host_unreachable" | "sandbox.host_reachable" | "sandbox.recovered" | "sandbox.recovery_failed" | "sandbox.files.changed" | "sandbox.out_of_memory" | "sandbox.oom_kill" | "sandbox.secret_not_applied" | "sandbox.network.limited" | "snapshot.ready" | "snapshot.failed" | "snapshot.deleted" | "volume.ready" | "volume.failed" | "volume.deleted" | "volume.recovered" | "egress_secret.created" | "egress_secret.updated" | "egress_secret.deleted" | "upstream_proxy.set" | "upstream_proxy.removed" | "credit.low" | "credit.empty" | "job.run.failed" | "job.recovered";
53
+ export type WebhookEventType = "sandbox.created" | "sandbox.running" | "sandbox.paused" | "sandbox.woken" | "sandbox.stopped" | "sandbox.start_failed" | "sandbox.wake_failed" | "sandbox.host_unreachable" | "sandbox.host_reachable" | "sandbox.unreachable" | "sandbox.reachable" | "sandbox.recovered" | "sandbox.recovery_failed" | "sandbox.files.changed" | "sandbox.out_of_memory" | "sandbox.oom_kill" | "sandbox.secret_not_applied" | "sandbox.network.limited" | "snapshot.ready" | "snapshot.failed" | "snapshot.deleted" | "volume.ready" | "volume.failed" | "volume.deleted" | "volume.recovered" | "egress_secret.created" | "egress_secret.updated" | "egress_secret.deleted" | "upstream_proxy.set" | "upstream_proxy.removed" | "credit.low" | "credit.empty" | "job.run.failed" | "job.recovered";
54
54
  /** An event as /v1/events lists it and a webhook delivers it. */
55
55
  export type RuntimeEvent = {
56
56
  id: string;
@@ -1,5 +1,5 @@
1
1
  import { RuntimeError } from "./errors.js";
2
- export declare const VERSION = "0.47.0";
2
+ export declare const VERSION = "0.48.1";
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.47.0";
4
+ export const VERSION = "0.48.1";
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
@@ -58,6 +58,15 @@ export type SandboxInfo = {
58
58
  * (its `timeoutSeconds` ran out). A server before 4 October 2026 sent
59
59
  * `lease_expired` for `time_limit`. */
60
60
  stopReason: string | null;
61
+ /** Present only while it is running and does not respond: since when, and
62
+ * why. `agent_not_answering` and `host_quarantined` clear on a restart;
63
+ * `disk_stalled` clears when its server finishes the write. The events
64
+ * `sandbox.unreachable` and `sandbox.reachable` mark its start and end.
65
+ * Absent from older servers. */
66
+ unreachable?: {
67
+ since: string;
68
+ reason: "agent_not_answering" | "disk_stalled" | "host_quarantined";
69
+ };
61
70
  pausedAt: string | null;
62
71
  pausedExpiresAt: string | null;
63
72
  chargedMicros: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "withruntime",
3
- "version": "0.47.0",
3
+ "version": "0.48.1",
4
4
  "license": "Apache-2.0",
5
5
  "mcpName": "com.withruntime/runtime",
6
6
  "type": "module",