@blaxel/core 0.2.93 → 0.2.94
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/sandbox/sandbox.js +2 -2
- package/dist/cjs/types/sandbox/sandbox.d.ts +2 -2
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/sandbox/sandbox.js +2 -2
- package/dist/cjs-browser/types/sandbox/sandbox.d.ts +2 -2
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/sandbox/sandbox.js +2 -2
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/sandbox/sandbox.js +2 -2
- package/package.json +1 -1
|
@@ -28,8 +28,8 @@ function missingCredentialsMessage() {
|
|
|
28
28
|
return "No Blaxel credentials found. Set the BL_API_KEY and BL_WORKSPACE environment variables, or run `bl login`.";
|
|
29
29
|
}
|
|
30
30
|
// Build info - these placeholders are replaced at build time by build:replace-imports
|
|
31
|
-
const BUILD_VERSION = "0.2.
|
|
32
|
-
const BUILD_COMMIT = "
|
|
31
|
+
const BUILD_VERSION = "0.2.94";
|
|
32
|
+
const BUILD_COMMIT = "7433c5d03d9ae424bb1a6e8447a31c85d340a62d";
|
|
33
33
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
34
34
|
const BLAXEL_API_VERSION = "2026-04-16";
|
|
35
35
|
// Cache for config.yaml tracking value
|
|
@@ -344,7 +344,7 @@ class SandboxInstance {
|
|
|
344
344
|
}
|
|
345
345
|
static async updateTtl(sandboxName, ttl) {
|
|
346
346
|
const sandbox = await SandboxInstance.get(sandboxName);
|
|
347
|
-
const body = { ...sandbox.sandbox, spec: { ...sandbox.spec, runtime: { ...sandbox.spec.runtime, ttl } } };
|
|
347
|
+
const body = { ...sandbox.sandbox, spec: { ...sandbox.spec, runtime: { ...sandbox.spec.runtime, ttl: ttl === '' ? null : ttl ?? null } } };
|
|
348
348
|
const { data } = await (0, index_js_1.updateSandbox)({
|
|
349
349
|
path: { sandboxName },
|
|
350
350
|
body,
|
|
@@ -355,7 +355,7 @@ class SandboxInstance {
|
|
|
355
355
|
}
|
|
356
356
|
static async updateLifecycle(sandboxName, lifecycle) {
|
|
357
357
|
const sandbox = await SandboxInstance.get(sandboxName);
|
|
358
|
-
const body = { ...sandbox.sandbox, spec: { ...sandbox.spec, lifecycle } };
|
|
358
|
+
const body = { ...sandbox.sandbox, spec: { ...sandbox.spec, lifecycle: lifecycle ?? null } };
|
|
359
359
|
const { data } = await (0, index_js_1.updateSandbox)({
|
|
360
360
|
path: { sandboxName },
|
|
361
361
|
body,
|
|
@@ -58,8 +58,8 @@ export declare class SandboxInstance {
|
|
|
58
58
|
static delete(sandboxName: string): Promise<SandboxModel>;
|
|
59
59
|
delete(): Promise<SandboxModel>;
|
|
60
60
|
static updateMetadata(sandboxName: string, metadata: SandboxUpdateMetadata): Promise<SandboxInstance>;
|
|
61
|
-
static updateTtl(sandboxName: string, ttl: string): Promise<SandboxInstance>;
|
|
62
|
-
static updateLifecycle(sandboxName: string, lifecycle: SandboxLifecycle): Promise<SandboxInstance>;
|
|
61
|
+
static updateTtl(sandboxName: string, ttl: string | null): Promise<SandboxInstance>;
|
|
62
|
+
static updateLifecycle(sandboxName: string, lifecycle: SandboxLifecycle | null): Promise<SandboxInstance>;
|
|
63
63
|
static updateNetwork(sandboxName: string, network: SandboxUpdateNetwork): Promise<SandboxInstance>;
|
|
64
64
|
static createIfNotExists(sandbox: SandboxModel | SandboxCreateConfiguration): Promise<SandboxInstance>;
|
|
65
65
|
private static waitWhileSandboxDying;
|