tensorlake 0.4.42 → 0.4.43

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.
@@ -1 +1 @@
1
- export { u as CreateSandboxImageOptions, w as DockerfileBuildPlan, x as DockerfileInstruction, G as SandboxImageSource, Q as createSandboxImage, V as defaultRegisteredName, W as loadDockerfilePlan, X as loadImagePlan, Y as logicalDockerfileLines, Z as runCreateSandboxImageCli } from './sandbox-image-DKPhc4Lv.cjs';
1
+ export { v as CreateSandboxImageOptions, x as DockerfileBuildPlan, y as DockerfileInstruction, J as SandboxImageSource, V as createSandboxImage, X as defaultRegisteredName, Y as loadDockerfilePlan, Z as loadImagePlan, _ as logicalDockerfileLines, $ as runCreateSandboxImageCli } from './sandbox-image-Dr9SQaCc.cjs';
@@ -1 +1 @@
1
- export { u as CreateSandboxImageOptions, w as DockerfileBuildPlan, x as DockerfileInstruction, G as SandboxImageSource, Q as createSandboxImage, V as defaultRegisteredName, W as loadDockerfilePlan, X as loadImagePlan, Y as logicalDockerfileLines, Z as runCreateSandboxImageCli } from './sandbox-image-DKPhc4Lv.js';
1
+ export { v as CreateSandboxImageOptions, x as DockerfileBuildPlan, y as DockerfileInstruction, J as SandboxImageSource, V as createSandboxImage, X as defaultRegisteredName, Y as loadDockerfilePlan, Z as loadImagePlan, _ as logicalDockerfileLines, $ as runCreateSandboxImageCli } from './sandbox-image-Dr9SQaCc.js';
@@ -1094,10 +1094,12 @@ var SandboxClient = class _SandboxClient {
1094
1094
  return fromSnakeKeys(raw, "sandboxId");
1095
1095
  }
1096
1096
  // --- Snapshots ---
1097
- async snapshot(sandboxId) {
1097
+ async snapshot(sandboxId, options) {
1098
+ const requestOptions = options?.contentMode != null ? { body: { snapshot_content_mode: options.contentMode } } : void 0;
1098
1099
  const raw = await this.http.requestJson(
1099
1100
  "POST",
1100
- this.path(`sandboxes/${sandboxId}/snapshot`)
1101
+ this.path(`sandboxes/${sandboxId}/snapshot`),
1102
+ requestOptions
1101
1103
  );
1102
1104
  return fromSnakeKeys(raw, "snapshotId");
1103
1105
  }
@@ -1126,7 +1128,9 @@ var SandboxClient = class _SandboxClient {
1126
1128
  async snapshotAndWait(sandboxId, options) {
1127
1129
  const timeout = options?.timeout ?? 300;
1128
1130
  const pollInterval = options?.pollInterval ?? 1;
1129
- const result = await this.snapshot(sandboxId);
1131
+ const result = await this.snapshot(sandboxId, {
1132
+ contentMode: options?.contentMode
1133
+ });
1130
1134
  const deadline = Date.now() + timeout * 1e3;
1131
1135
  while (Date.now() < deadline) {
1132
1136
  const info = await this.getSnapshot(result.snapshotId);
@@ -1988,7 +1992,9 @@ async function createSandboxImage(source, options = {}, deps = {}) {
1988
1992
  });
1989
1993
  await executeDockerfilePlan(sandbox, plan, emit, sleep4);
1990
1994
  emit({ type: "status", message: "Creating snapshot..." });
1991
- const snapshot = await client.snapshotAndWait(sandbox.sandboxId);
1995
+ const snapshot = await client.snapshotAndWait(sandbox.sandboxId, {
1996
+ contentMode: "filesystem_only"
1997
+ });
1992
1998
  emit({
1993
1999
  type: "snapshot_created",
1994
2000
  snapshot_id: snapshot.snapshotId,