@blaxel/core 0.2.93 → 0.2.94-preview.193

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.
@@ -22,8 +22,8 @@ function missingCredentialsMessage() {
22
22
  return "No Blaxel credentials found. Set the BL_API_KEY and BL_WORKSPACE environment variables, or run `bl login`.";
23
23
  }
24
24
  // Build info - these placeholders are replaced at build time by build:replace-imports
25
- const BUILD_VERSION = "0.2.93";
26
- const BUILD_COMMIT = "4533be458ecf975dd86214dda3bf9a64b34ed64f";
25
+ const BUILD_VERSION = "0.2.94-preview.193";
26
+ const BUILD_COMMIT = "7433c5d03d9ae424bb1a6e8447a31c85d340a62d";
27
27
  const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
28
28
  const BLAXEL_API_VERSION = "2026-04-16";
29
29
  // Cache for config.yaml tracking value
@@ -308,7 +308,7 @@ export class SandboxInstance {
308
308
  }
309
309
  static async updateTtl(sandboxName, ttl) {
310
310
  const sandbox = await SandboxInstance.get(sandboxName);
311
- const body = { ...sandbox.sandbox, spec: { ...sandbox.spec, runtime: { ...sandbox.spec.runtime, ttl } } };
311
+ const body = { ...sandbox.sandbox, spec: { ...sandbox.spec, runtime: { ...sandbox.spec.runtime, ttl: ttl === '' ? null : ttl ?? null } } };
312
312
  const { data } = await updateSandbox({
313
313
  path: { sandboxName },
314
314
  body,
@@ -319,7 +319,7 @@ export class SandboxInstance {
319
319
  }
320
320
  static async updateLifecycle(sandboxName, lifecycle) {
321
321
  const sandbox = await SandboxInstance.get(sandboxName);
322
- const body = { ...sandbox.sandbox, spec: { ...sandbox.spec, lifecycle } };
322
+ const body = { ...sandbox.sandbox, spec: { ...sandbox.spec, lifecycle: lifecycle ?? null } };
323
323
  const { data } = await updateSandbox({
324
324
  path: { sandboxName },
325
325
  body,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/core",
3
- "version": "0.2.93",
3
+ "version": "0.2.94-preview.193",
4
4
  "description": "Blaxel Core SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",