@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.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/sandbox/sandbox.js +5 -5
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/sandbox/sandbox.js +5 -5
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/sandbox/sandbox.js +5 -5
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/sandbox/sandbox.js +5 -5
- package/package.json +1 -1
|
@@ -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.3.
|
|
26
|
-
const BUILD_COMMIT = "
|
|
25
|
+
const BUILD_VERSION = "0.3.3-preview.219";
|
|
26
|
+
const BUILD_COMMIT = "5bb620b84748d321cde1d41e252eb5681cca991d";
|
|
27
27
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
28
28
|
const BLAXEL_API_VERSION = "2026-04-28";
|
|
29
29
|
// Cache for config.yaml tracking value
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { v4 as uuidv4 } from "uuid";
|
|
2
1
|
import { createSandbox, deleteSandbox, getSandbox, getSandboxByExternalId, listSandboxes, updateSandbox } from "../client/index.js";
|
|
3
2
|
import { logger } from "../common/logger.js";
|
|
4
3
|
import { backoffDelayMs } from "../common/transient-retry.js";
|
|
@@ -135,7 +134,9 @@ export class SandboxInstance {
|
|
|
135
134
|
return this;
|
|
136
135
|
}
|
|
137
136
|
static async create(sandbox, { safe = false, createIfNotExist = false } = {}) {
|
|
138
|
-
|
|
137
|
+
// No client-side default name: when the caller omits a name we send the
|
|
138
|
+
// creation without metadata.name so the server can assign one and unnamed
|
|
139
|
+
// creations become eligible for warm sandbox pools (ENG-3931).
|
|
139
140
|
const defaultImage = `blaxel/base-image:latest`;
|
|
140
141
|
const defaultMemory = 4096;
|
|
141
142
|
// Handle SandboxCreateConfiguration or simple dict with name/image/memory/ports/envs/volumes keys
|
|
@@ -153,8 +154,6 @@ export class SandboxInstance {
|
|
|
153
154
|
'extraArgs' in sandbox) {
|
|
154
155
|
if (!sandbox)
|
|
155
156
|
sandbox = {};
|
|
156
|
-
if (!sandbox.name)
|
|
157
|
-
sandbox.name = defaultName;
|
|
158
157
|
if (!sandbox.image)
|
|
159
158
|
sandbox.image = defaultImage;
|
|
160
159
|
if (!sandbox.memory)
|
|
@@ -200,7 +199,8 @@ export class SandboxInstance {
|
|
|
200
199
|
}
|
|
201
200
|
sandbox = sandbox;
|
|
202
201
|
if (!sandbox.metadata) {
|
|
203
|
-
|
|
202
|
+
// Leave name unset so the server assigns one (ENG-3931).
|
|
203
|
+
sandbox.metadata = {};
|
|
204
204
|
}
|
|
205
205
|
if (!sandbox.spec) {
|
|
206
206
|
sandbox.spec = { runtime: { image: defaultImage, memory: defaultMemory } };
|