@blaxel/core 0.2.86-preview.161 → 0.2.86-preview.164
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 +11 -0
- package/dist/cjs/types/sandbox/sandbox.d.ts +2 -1
- package/dist/cjs/types/sandbox/types.d.ts +3 -0
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/sandbox/sandbox.js +11 -0
- package/dist/cjs-browser/types/sandbox/sandbox.d.ts +2 -1
- package/dist/cjs-browser/types/sandbox/types.d.ts +3 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/sandbox/sandbox.js +11 -0
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/sandbox/sandbox.js +11 -0
- package/package.json +1 -1
|
@@ -5,8 +5,8 @@ import { authentication } from "../authentication/index.js";
|
|
|
5
5
|
import { env } from "../common/env.js";
|
|
6
6
|
import { fs, os, path } from "../common/node.js";
|
|
7
7
|
// Build info - these placeholders are replaced at build time by build:replace-imports
|
|
8
|
-
const BUILD_VERSION = "0.2.86-preview.
|
|
9
|
-
const BUILD_COMMIT = "
|
|
8
|
+
const BUILD_VERSION = "0.2.86-preview.164";
|
|
9
|
+
const BUILD_COMMIT = "d9d635adf523ed2bcc4fb6edf77c00eeff759ea0";
|
|
10
10
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
11
11
|
const BLAXEL_API_VERSION = "2026-04-16";
|
|
12
12
|
// Cache for config.yaml tracking value
|
|
@@ -273,6 +273,17 @@ export class SandboxInstance {
|
|
|
273
273
|
const instance = new SandboxInstance(data);
|
|
274
274
|
return SandboxInstance.attachH2Session(instance);
|
|
275
275
|
}
|
|
276
|
+
static async updateNetwork(sandboxName, network) {
|
|
277
|
+
const sandbox = await SandboxInstance.get(sandboxName);
|
|
278
|
+
const body = { ...sandbox.sandbox, spec: { ...sandbox.spec, network: network.network } };
|
|
279
|
+
const { data } = await updateSandbox({
|
|
280
|
+
path: { sandboxName },
|
|
281
|
+
body,
|
|
282
|
+
throwOnError: true,
|
|
283
|
+
});
|
|
284
|
+
const instance = new SandboxInstance(data);
|
|
285
|
+
return SandboxInstance.attachH2Session(instance);
|
|
286
|
+
}
|
|
276
287
|
static async createIfNotExists(sandbox) {
|
|
277
288
|
const ATTEMPTS = 3;
|
|
278
289
|
for (let i = 0; i < ATTEMPTS; ++i) {
|