@blaxel/core 0.3.25-preview.306 → 0.3.25

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.
@@ -30,8 +30,8 @@ function missingCredentialsMessage() {
30
30
  return "No Blaxel credentials found. Set the BL_API_KEY and BL_WORKSPACE environment variables, or run `bl login`.";
31
31
  }
32
32
  // Build info - these placeholders are replaced at build time by build:replace-imports
33
- const BUILD_VERSION = "0.3.25-preview.306";
34
- const BUILD_COMMIT = "a12f4f5f86967d77d3176dfab134ab800d3fe2f5";
33
+ const BUILD_VERSION = "0.3.25";
34
+ const BUILD_COMMIT = "fb45a5005d56241cc56b832f6a624248e8e34f9f";
35
35
  const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
36
36
  const BLAXEL_API_VERSION = "2026-09-22";
37
37
  // Bun < 1.3.11 never sends connection-level WINDOW_UPDATE: the pooled h2
@@ -318,6 +318,7 @@ class SandboxInstance {
318
318
  ...(options.prefix !== undefined ? { prefix: options.prefix } : {}),
319
319
  ...(options.snapshotId !== undefined ? { snapshotId: options.snapshotId } : {}),
320
320
  ...(options.envs !== undefined ? { envs: options.envs } : {}),
321
+ ...(options.lifecycle !== undefined ? { lifecycle: options.lifecycle } : {}),
321
322
  },
322
323
  throwOnError: true,
323
324
  });
@@ -36,6 +36,12 @@ export type SandboxForkOptions = {
36
36
  * one it does not is added, and every other variable of the source is kept.
37
37
  */
38
38
  envs?: Env[];
39
+ /**
40
+ * Lifecycle the fork runs with, replacing the source's. When omitted, a
41
+ * sandbox fork keeps the source's lifecycle and its runtime ttl and expires.
42
+ * Only valid when targetType is "sandbox".
43
+ */
44
+ lifecycle?: SandboxLifecycle;
39
45
  };
40
46
  /** How long to wait for an archive, or its restore, to finish. */
41
47
  export type SandboxArchiveOptions = {