@blaxel/core 0.3.18-preview.281 → 0.3.18
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 +1 -0
- package/dist/cjs/types/client/types.gen.d.ts +4 -0
- package/dist/cjs/types/sandbox/sandbox.d.ts +7 -1
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/sandbox/sandbox.js +1 -0
- package/dist/cjs-browser/types/client/types.gen.d.ts +4 -0
- package/dist/cjs-browser/types/sandbox/sandbox.d.ts +7 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/sandbox/sandbox.js +1 -0
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/sandbox/sandbox.js +1 -0
- package/package.json +1 -1
|
@@ -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.18
|
|
34
|
-
const BUILD_COMMIT = "
|
|
33
|
+
const BUILD_VERSION = "0.3.18";
|
|
34
|
+
const BUILD_COMMIT = "57fc469276ceec702626782b675333c68e6bce4d";
|
|
35
35
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
36
36
|
const BLAXEL_API_VERSION = "2026-04-28";
|
|
37
37
|
// Bun < 1.3.11 never sends connection-level WINDOW_UPDATE: the pooled h2
|
|
@@ -261,6 +261,7 @@ class SandboxInstance {
|
|
|
261
261
|
...(options.customDomain !== undefined ? { customDomain: options.customDomain } : {}),
|
|
262
262
|
...(options.prefix !== undefined ? { prefix: options.prefix } : {}),
|
|
263
263
|
...(options.snapshotId !== undefined ? { snapshotId: options.snapshotId } : {}),
|
|
264
|
+
...(options.envs !== undefined ? { envs: options.envs } : {}),
|
|
264
265
|
},
|
|
265
266
|
throwOnError: true,
|
|
266
267
|
});
|
|
@@ -3707,6 +3707,10 @@ export type SandboxForkRequest = {
|
|
|
3707
3707
|
* Custom domain for the application
|
|
3708
3708
|
*/
|
|
3709
3709
|
customDomain?: string;
|
|
3710
|
+
/**
|
|
3711
|
+
* Environment variables the fork runs with, on top of the ones the source has. A variable the source already carries takes this value in the fork, one it does not is added, and every other variable of the source is kept.
|
|
3712
|
+
*/
|
|
3713
|
+
envs?: Array<Env>;
|
|
3710
3714
|
/**
|
|
3711
3715
|
* Port to expose from the sandbox
|
|
3712
3716
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type http2 from "http2";
|
|
2
|
-
import { type ListSandboxesData, type SandboxForkResponse, type SandboxLifecycle, type Sandbox as SandboxModel, type SandboxRestoreResponse, type SandboxSnapshot, type SandboxSnapshots } from "../client/index.js";
|
|
2
|
+
import { type Env, type ListSandboxesData, type SandboxForkResponse, type SandboxLifecycle, type Sandbox as SandboxModel, type SandboxRestoreResponse, type SandboxSnapshot, type SandboxSnapshots } from "../client/index.js";
|
|
3
3
|
import { SandboxCodegen } from "./codegen/index.js";
|
|
4
4
|
import { SandboxDrive } from "./drive/index.js";
|
|
5
5
|
import { SandboxFileSystem } from "./filesystem/index.js";
|
|
@@ -28,6 +28,12 @@ export type SandboxForkOptions = {
|
|
|
28
28
|
* sandbox from a snapshot.
|
|
29
29
|
*/
|
|
30
30
|
snapshotId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Environment variables the fork runs with, on top of the ones the source
|
|
33
|
+
* has: a variable the source already carries takes this value in the fork,
|
|
34
|
+
* one it does not is added, and every other variable of the source is kept.
|
|
35
|
+
*/
|
|
36
|
+
envs?: Env[];
|
|
31
37
|
};
|
|
32
38
|
/** How long to wait for an archive, or its restore, to finish. */
|
|
33
39
|
export type SandboxArchiveOptions = {
|