@blaxel/core 0.3.12-preview.266 → 0.3.12
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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/drive/index.js +1 -5
- package/dist/cjs/sandbox/sandbox.js +9 -0
- package/dist/cjs/types/client/types.gen.d.ts +77 -50
- package/dist/cjs/types/drive/index.d.ts +3 -0
- package/dist/cjs/types/sandbox/sandbox.d.ts +8 -0
- package/dist/cjs/types/volume/index.d.ts +1 -0
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/drive/index.js +1 -5
- package/dist/cjs-browser/sandbox/sandbox.js +9 -0
- package/dist/cjs-browser/types/client/types.gen.d.ts +77 -50
- package/dist/cjs-browser/types/drive/index.d.ts +3 -0
- package/dist/cjs-browser/types/sandbox/sandbox.d.ts +8 -0
- package/dist/cjs-browser/types/volume/index.d.ts +1 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/drive/index.js +1 -5
- package/dist/esm/sandbox/sandbox.js +9 -0
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/drive/index.js +1 -5
- package/dist/esm-browser/sandbox/sandbox.js +9 -0
- package/package.json +1 -1
|
@@ -24,8 +24,8 @@ function missingCredentialsMessage() {
|
|
|
24
24
|
return "No Blaxel credentials found. Set the BL_API_KEY and BL_WORKSPACE environment variables, or run `bl login`.";
|
|
25
25
|
}
|
|
26
26
|
// Build info - these placeholders are replaced at build time by build:replace-imports
|
|
27
|
-
const BUILD_VERSION = "0.3.12
|
|
28
|
-
const BUILD_COMMIT = "
|
|
27
|
+
const BUILD_VERSION = "0.3.12";
|
|
28
|
+
const BUILD_COMMIT = "4b5045ad4c5d7510d577039bb63f662efbfbf689";
|
|
29
29
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
30
30
|
const BLAXEL_API_VERSION = "2026-04-28";
|
|
31
31
|
// Bun < 1.3.11 never sends connection-level WINDOW_UPDATE: the pooled h2
|
|
@@ -25,6 +25,7 @@ export class DriveInstance {
|
|
|
25
25
|
get displayName() {
|
|
26
26
|
return this.drive.metadata.displayName;
|
|
27
27
|
}
|
|
28
|
+
/** @deprecated Only legacy drives created with a size still report one. */
|
|
28
29
|
get size() {
|
|
29
30
|
return this.drive.spec.size;
|
|
30
31
|
}
|
|
@@ -50,7 +51,6 @@ export class DriveInstance {
|
|
|
50
51
|
labels: config.labels
|
|
51
52
|
},
|
|
52
53
|
spec: {
|
|
53
|
-
size: config.size,
|
|
54
54
|
region: config.region || settings.region,
|
|
55
55
|
permissions: config.permissions,
|
|
56
56
|
}
|
|
@@ -152,8 +152,6 @@ export class DriveInstance {
|
|
|
152
152
|
metadataUpdates.labels = updates.metadata.labels;
|
|
153
153
|
}
|
|
154
154
|
if (updates.spec) {
|
|
155
|
-
if (updates.spec.size !== undefined)
|
|
156
|
-
specUpdates.size = updates.spec.size;
|
|
157
155
|
if (updates.spec.region !== undefined)
|
|
158
156
|
specUpdates.region = updates.spec.region;
|
|
159
157
|
if (updates.spec.permissions !== undefined)
|
|
@@ -166,8 +164,6 @@ export class DriveInstance {
|
|
|
166
164
|
metadataUpdates.displayName = updates.displayName;
|
|
167
165
|
if (updates.labels !== undefined)
|
|
168
166
|
metadataUpdates.labels = updates.labels;
|
|
169
|
-
if (updates.size !== undefined)
|
|
170
|
-
specUpdates.size = updates.size;
|
|
171
167
|
if (updates.region !== undefined)
|
|
172
168
|
specUpdates.region = updates.region;
|
|
173
169
|
if (updates.permissions !== undefined)
|
|
@@ -86,6 +86,15 @@ export class SandboxInstance {
|
|
|
86
86
|
get lastUsedAt() {
|
|
87
87
|
return this.sandbox.lastUsedAt;
|
|
88
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* Infrastructure failures the compute plane recorded for this sandbox, oldest
|
|
91
|
+
* first. Entries with `fatal: true` are the ones that moved it to FAILED; the
|
|
92
|
+
* others (e.g. a microVM that exited and restarted) are informational. Only
|
|
93
|
+
* returned when a single sandbox is read, never in listings.
|
|
94
|
+
*/
|
|
95
|
+
get errors() {
|
|
96
|
+
return this.sandbox.errors ?? [];
|
|
97
|
+
}
|
|
89
98
|
get h2Domain() {
|
|
90
99
|
return this.sandbox.h2Domain ?? null;
|
|
91
100
|
}
|