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.
- package/dist/bin/darwin-arm64/tensorlake +0 -0
- package/dist/bin/darwin-arm64/tl +0 -0
- package/dist/bin/linux-x64/tensorlake +0 -0
- package/dist/bin/linux-x64/tl +0 -0
- package/dist/bin/win32-x64/tensorlake.exe +0 -0
- package/dist/bin/win32-x64/tl.exe +0 -0
- package/dist/index.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/{sandbox-image-DKPhc4Lv.d.cts → sandbox-image-Dr9SQaCc.d.cts} +22 -2
- package/dist/{sandbox-image-DKPhc4Lv.d.ts → sandbox-image-Dr9SQaCc.d.ts} +22 -2
- package/dist/sandbox-image.cjs +10 -4
- package/dist/sandbox-image.cjs.map +1 -1
- package/dist/sandbox-image.d.cts +1 -1
- package/dist/sandbox-image.d.ts +1 -1
- package/dist/sandbox-image.js +10 -4
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +1 -1
package/dist/sandbox-image.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
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';
|
package/dist/sandbox-image.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
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';
|
package/dist/sandbox-image.js
CHANGED
|
@@ -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,
|