@blaxel/core 0.3.2 → 0.3.3-preview.219

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.
@@ -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.3.2";
32
- const BUILD_COMMIT = "d07823bec5680a134edd0e04ce5ecffa6cc96435";
31
+ const BUILD_VERSION = "0.3.3-preview.219";
32
+ const BUILD_COMMIT = "5bb620b84748d321cde1d41e252eb5681cca991d";
33
33
  const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
34
34
  const BLAXEL_API_VERSION = "2026-04-28";
35
35
  // Cache for config.yaml tracking value
@@ -34,7 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.SandboxInstance = void 0;
37
- const uuid_1 = require("uuid");
38
37
  const index_js_1 = require("../client/index.js");
39
38
  const logger_js_1 = require("../common/logger.js");
40
39
  const transient_retry_js_1 = require("../common/transient-retry.js");
@@ -171,7 +170,9 @@ class SandboxInstance {
171
170
  return this;
172
171
  }
173
172
  static async create(sandbox, { safe = false, createIfNotExist = false } = {}) {
174
- const defaultName = `sandbox-${(0, uuid_1.v4)().replace(/-/g, '').substring(0, 8)}`;
173
+ // No client-side default name: when the caller omits a name we send the
174
+ // creation without metadata.name so the server can assign one and unnamed
175
+ // creations become eligible for warm sandbox pools (ENG-3931).
175
176
  const defaultImage = `blaxel/base-image:latest`;
176
177
  const defaultMemory = 4096;
177
178
  // Handle SandboxCreateConfiguration or simple dict with name/image/memory/ports/envs/volumes keys
@@ -189,8 +190,6 @@ class SandboxInstance {
189
190
  'extraArgs' in sandbox) {
190
191
  if (!sandbox)
191
192
  sandbox = {};
192
- if (!sandbox.name)
193
- sandbox.name = defaultName;
194
193
  if (!sandbox.image)
195
194
  sandbox.image = defaultImage;
196
195
  if (!sandbox.memory)
@@ -236,7 +235,8 @@ class SandboxInstance {
236
235
  }
237
236
  sandbox = sandbox;
238
237
  if (!sandbox.metadata) {
239
- sandbox.metadata = { name: defaultName };
238
+ // Leave name unset so the server assigns one (ENG-3931).
239
+ sandbox.metadata = {};
240
240
  }
241
241
  if (!sandbox.spec) {
242
242
  sandbox.spec = { runtime: { image: defaultImage, memory: defaultMemory } };