@blaxel/core 0.3.22-preview.295 → 0.3.22-preview.297
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 +9 -2
- package/dist/cjs/types/client/types.gen.d.ts +2 -2
- package/dist/cjs/types/sandbox/sandbox.d.ts +13 -5
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/sandbox/sandbox.js +9 -2
- package/dist/cjs-browser/types/client/types.gen.d.ts +2 -2
- package/dist/cjs-browser/types/sandbox/sandbox.d.ts +13 -5
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/sandbox/sandbox.js +9 -2
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/sandbox/sandbox.js +9 -2
- 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.22-preview.
|
|
34
|
-
const BUILD_COMMIT = "
|
|
33
|
+
const BUILD_VERSION = "0.3.22-preview.297";
|
|
34
|
+
const BUILD_COMMIT = "a8db9db09b9cc600365c17dd7b2a347aeef8ecf9";
|
|
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
|
|
@@ -253,8 +253,15 @@ class SandboxInstance {
|
|
|
253
253
|
/**
|
|
254
254
|
* Fork this sandbox into a new sandbox or application.
|
|
255
255
|
*
|
|
256
|
-
*
|
|
257
|
-
* snapshot
|
|
256
|
+
* Forking into a sandbox copies the source sandbox's live state straight into
|
|
257
|
+
* the fork: no snapshot is taken, persisted, or left behind, and the returned
|
|
258
|
+
* `snapshotId` is empty.
|
|
259
|
+
*
|
|
260
|
+
* Pass `snapshotId` to fork from an existing snapshot instead of the source's
|
|
261
|
+
* live state (create a sandbox from a snapshot). Forking into an application
|
|
262
|
+
* (`targetType: "application"`) still goes through a snapshot, which is
|
|
263
|
+
* recorded because the application revision references it. In both of those
|
|
264
|
+
* cases the response carries the snapshot the fork came from.
|
|
258
265
|
*
|
|
259
266
|
* @param targetName - Name of the sandbox/application to create.
|
|
260
267
|
* @param options - Fork options (target type, port, traffic, snapshot, ...).
|
|
@@ -3720,7 +3720,7 @@ export type SandboxForkRequest = {
|
|
|
3720
3720
|
*/
|
|
3721
3721
|
prefix?: string;
|
|
3722
3722
|
/**
|
|
3723
|
-
* Snapshot ID to fork from. When set, the application revision references
|
|
3723
|
+
* Snapshot ID to fork from. When set, the fork is created from that existing snapshot (and an application revision references it). When omitted, a fork to a sandbox copies the source sandbox's live state directly and no snapshot is persisted; a fork to an application still takes a snapshot, since its revision references one.
|
|
3724
3724
|
*/
|
|
3725
3725
|
snapshotId?: string;
|
|
3726
3726
|
/**
|
|
@@ -3745,7 +3745,7 @@ export type SandboxForkResponse = {
|
|
|
3745
3745
|
*/
|
|
3746
3746
|
name?: string;
|
|
3747
3747
|
/**
|
|
3748
|
-
* The snapshot ID the fork was created from
|
|
3748
|
+
* The snapshot ID the fork was created from. Set only when the fork went through a snapshot, meaning an explicit snapshotId was supplied or the fork target is an application. Empty when the fork copied the source sandbox's live state directly.
|
|
3749
3749
|
*/
|
|
3750
3750
|
snapshotId?: string;
|
|
3751
3751
|
/**
|
|
@@ -24,9 +24,10 @@ export type SandboxForkOptions = {
|
|
|
24
24
|
/** URL prefix for the application fork. */
|
|
25
25
|
prefix?: string;
|
|
26
26
|
/**
|
|
27
|
-
* Snapshot ID to fork from. When set, the fork is created from this
|
|
28
|
-
*
|
|
29
|
-
* sandbox
|
|
27
|
+
* Snapshot ID to fork from. When set, the fork is created from this existing
|
|
28
|
+
* snapshot — this is how you create a sandbox from a snapshot. When omitted,
|
|
29
|
+
* a sandbox fork copies the source sandbox's live state directly, without
|
|
30
|
+
* persisting a snapshot in between.
|
|
30
31
|
*/
|
|
31
32
|
snapshotId?: string;
|
|
32
33
|
/**
|
|
@@ -123,8 +124,15 @@ export declare class SandboxInstance {
|
|
|
123
124
|
/**
|
|
124
125
|
* Fork this sandbox into a new sandbox or application.
|
|
125
126
|
*
|
|
126
|
-
*
|
|
127
|
-
* snapshot
|
|
127
|
+
* Forking into a sandbox copies the source sandbox's live state straight into
|
|
128
|
+
* the fork: no snapshot is taken, persisted, or left behind, and the returned
|
|
129
|
+
* `snapshotId` is empty.
|
|
130
|
+
*
|
|
131
|
+
* Pass `snapshotId` to fork from an existing snapshot instead of the source's
|
|
132
|
+
* live state (create a sandbox from a snapshot). Forking into an application
|
|
133
|
+
* (`targetType: "application"`) still goes through a snapshot, which is
|
|
134
|
+
* recorded because the application revision references it. In both of those
|
|
135
|
+
* cases the response carries the snapshot the fork came from.
|
|
128
136
|
*
|
|
129
137
|
* @param targetName - Name of the sandbox/application to create.
|
|
130
138
|
* @param options - Fork options (target type, port, traffic, snapshot, ...).
|