@decocms/sandbox-controller 0.7.2 → 0.8.0

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/index.d.ts CHANGED
@@ -3752,6 +3752,11 @@ declare class FreestyleSandboxProvider implements SandboxProvider {
3752
3752
  * A snapshot of a VM with both images already pulled, so a sandbox boots in
3753
3753
  * seconds instead of pulling ~2GB. One per image pair; built on first use.
3754
3754
  */
3755
+ /**
3756
+ * Build this image's base snapshot now, so the first sandbox after an image
3757
+ * bump boots from it instead of waiting on the pull. Never throws.
3758
+ */
3759
+ warm(): Promise<void>;
3755
3760
  private baseSnapshot;
3756
3761
  private snapshotExists;
3757
3762
  private run;
package/dist/index.js CHANGED
@@ -6759,7 +6759,7 @@ var Freestyle = class {
6759
6759
  // ../sandbox/package.json
6760
6760
  var package_default = {
6761
6761
  name: "@decocms/sandbox",
6762
- version: "1.80.4",
6762
+ version: "1.83.0",
6763
6763
  private: true,
6764
6764
  type: "module",
6765
6765
  description: "Sandbox runtime for isolated Studio tool execution",
@@ -6937,6 +6937,15 @@ var FreestyleSandboxProvider = class {
6937
6937
  * A snapshot of a VM with both images already pulled, so a sandbox boots in
6938
6938
  * seconds instead of pulling ~2GB. One per image pair; built on first use.
6939
6939
  */
6940
+ /**
6941
+ * Build this image's base snapshot now, so the first sandbox after an image
6942
+ * bump boots from it instead of waiting on the pull. Never throws.
6943
+ */
6944
+ async warm() {
6945
+ await this.baseSnapshot().catch(
6946
+ (err) => console.warn(`[${LOG_LABEL2}] base snapshot warm failed: ${errMsg2(err)}`)
6947
+ );
6948
+ }
6940
6949
  baseSnapshot() {
6941
6950
  const { image, sidecarImage } = this;
6942
6951
  const slug = `studio-sandbox-${createHash3("sha256").update(`${image}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/sandbox-controller",
3
- "version": "0.7.2",
3
+ "version": "0.8.0",
4
4
  "description": "Runs Studio agent sandboxes on Kubernetes, and serves them to a remote Studio.",
5
5
  "repository": {
6
6
  "type": "git",