withruntime 0.47.0 → 0.48.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/dist/products/observability.d.ts +1 -1
- package/dist/transport.d.ts +1 -1
- package/dist/transport.js +1 -1
- package/dist/types.d.ts +9 -0
- package/package.json +1 -1
|
@@ -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;
|
package/dist/transport.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RuntimeError } from "./errors.js";
|
|
2
|
-
export declare const VERSION = "0.
|
|
2
|
+
export declare const VERSION = "0.48.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.
|
|
4
|
+
export const VERSION = "0.48.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
|
@@ -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;
|