tensorlake 0.5.9 → 0.5.11
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 +389 -330
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -9
- package/dist/index.d.ts +11 -9
- package/dist/index.js +389 -330
- package/dist/index.js.map +1 -1
- package/dist/{sandbox-image-BMDaNpZ2.d.cts → sandbox-image-B8kFWVLi.d.cts} +11 -7
- package/dist/{sandbox-image-BMDaNpZ2.d.ts → sandbox-image-B8kFWVLi.d.ts} +11 -7
- package/dist/sandbox-image.cjs +384 -325
- 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 +383 -325
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CreatePtySessionOptions, S as SandboxOptions, a as CreateAndConnectOptions, b as SandboxClientOptions, c as ConnectOptions, d as SnapshotInfo, e as SandboxInfo, f as SandboxStatus, U as UpdateSandboxOptions, g as SuspendResumeOptions, h as CheckpointOptions, R as RunOptions, i as CommandResult, j as StartProcessOptions, P as ProcessInfo, k as SendSignalResponse, O as OutputResponse, l as OutputEvent, L as ListDirectoryResponse, m as PtySessionInfo, H as HealthResponse, D as DaemonInfo, n as CreateSandboxOptions, o as CreateSandboxResponse, p as SandboxPortAccess, q as SnapshotOptions, r as CreateSnapshotResponse, s as SnapshotAndWaitOptions, t as CreatePoolOptions, u as CreateSandboxPoolResponse, v as SandboxPoolInfo, w as UpdatePoolOptions } from './sandbox-image-
|
|
2
|
-
export { x as CheckpointType, y as ContainerResourcesInfo, z as ContainerState, A as CreateSandboxImageOptions, B as DirectoryEntry, E as DockerfileBuildPlan, F as DockerfileInstruction, I as Image, G as ImageBuildOperation, J as ImageBuildOperationType, J as ImageBuildOperationTypeValue, K as ImageOptions, N as NetworkConfig, M as OutputMode, Q as PoolContainerInfo, T as ProcessStatus, V as SandboxImageSource, W as SnapshotStatus, X as SnapshotType, Y as
|
|
1
|
+
import { C as CreatePtySessionOptions, S as SandboxOptions, a as CreateAndConnectOptions, b as SandboxClientOptions, c as ConnectOptions, d as SnapshotInfo, e as SandboxInfo, f as SandboxStatus, U as UpdateSandboxOptions, g as SuspendResumeOptions, h as CheckpointOptions, R as RunOptions, i as CommandResult, j as StartProcessOptions, P as ProcessInfo, k as SendSignalResponse, O as OutputResponse, l as OutputEvent, L as ListDirectoryResponse, m as PtySessionInfo, H as HealthResponse, D as DaemonInfo, n as CreateSandboxOptions, o as CreateSandboxResponse, p as SandboxPortAccess, q as SnapshotOptions, r as CreateSnapshotResponse, s as SnapshotAndWaitOptions, t as CreatePoolOptions, u as CreateSandboxPoolResponse, v as SandboxPoolInfo, w as UpdatePoolOptions } from './sandbox-image-B8kFWVLi.cjs';
|
|
2
|
+
export { x as CheckpointType, y as ContainerResourcesInfo, z as ContainerState, A as CreateSandboxImageOptions, B as DirectoryEntry, E as DockerfileBuildPlan, F as DockerfileInstruction, I as Image, G as ImageBuildOperation, J as ImageBuildOperationType, J as ImageBuildOperationTypeValue, K as ImageOptions, N as NetworkConfig, M as OutputMode, Q as PoolContainerInfo, T as ProcessStatus, V as SandboxImageSource, W as SnapshotStatus, X as SnapshotType, Y as SnapshotWaitCondition, Z as StdinMode, _ as createSandboxImage, $ as dockerfileContent } from './sandbox-image-B8kFWVLi.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The return value of every SDK operation. Carries the W3C `trace_id` so callers
|
|
@@ -236,11 +236,10 @@ declare class Sandbox {
|
|
|
236
236
|
*/
|
|
237
237
|
resume(options?: SuspendResumeOptions): Promise<void>;
|
|
238
238
|
/**
|
|
239
|
-
* Create a
|
|
240
|
-
* be committed.
|
|
239
|
+
* Create a checkpoint of this sandbox and wait for it to be locally ready.
|
|
241
240
|
*
|
|
242
|
-
* By default blocks until the
|
|
243
|
-
*
|
|
241
|
+
* By default blocks until the checkpoint is resumable and returns
|
|
242
|
+
* `SnapshotInfo`. Pass `{ wait: false }` to fire-and-return
|
|
244
243
|
* (returns `undefined`).
|
|
245
244
|
*/
|
|
246
245
|
checkpoint(options?: CheckpointOptions): Promise<Traced<SnapshotInfo> | undefined>;
|
|
@@ -413,7 +412,8 @@ declare class SandboxClient {
|
|
|
413
412
|
*
|
|
414
413
|
* This call **returns immediately** with a `snapshotId` and `in_progress`
|
|
415
414
|
* status — the snapshot is created asynchronously. Poll `getSnapshot()` until
|
|
416
|
-
* `completed
|
|
415
|
+
* `local_ready`, `completed`, or `failed`, or use `snapshotAndWait()` to
|
|
416
|
+
* block automatically.
|
|
417
417
|
*
|
|
418
418
|
* @param options.snapshotType - `"filesystem"` for cold-boot snapshots (e.g. image builds).
|
|
419
419
|
* Omit to use the server default (`filesystem`).
|
|
@@ -426,9 +426,11 @@ declare class SandboxClient {
|
|
|
426
426
|
/** Delete a snapshot by ID. */
|
|
427
427
|
deleteSnapshot(snapshotId: string): Promise<void>;
|
|
428
428
|
/**
|
|
429
|
-
* Create a snapshot and block until it is
|
|
429
|
+
* Create a snapshot and block until it is locally ready.
|
|
430
430
|
*
|
|
431
|
-
* Combines `snapshot()` with polling `getSnapshot()` until `
|
|
431
|
+
* Combines `snapshot()` with polling `getSnapshot()` until `local_ready`
|
|
432
|
+
* or `completed`. Pass `{ waitUntil: "completed" }` when durable
|
|
433
|
+
* `snapshotUri` metadata is required.
|
|
432
434
|
* Prefer `sandbox.checkpoint()` on a `Sandbox` handle for the same behavior
|
|
433
435
|
* without managing the client separately.
|
|
434
436
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CreatePtySessionOptions, S as SandboxOptions, a as CreateAndConnectOptions, b as SandboxClientOptions, c as ConnectOptions, d as SnapshotInfo, e as SandboxInfo, f as SandboxStatus, U as UpdateSandboxOptions, g as SuspendResumeOptions, h as CheckpointOptions, R as RunOptions, i as CommandResult, j as StartProcessOptions, P as ProcessInfo, k as SendSignalResponse, O as OutputResponse, l as OutputEvent, L as ListDirectoryResponse, m as PtySessionInfo, H as HealthResponse, D as DaemonInfo, n as CreateSandboxOptions, o as CreateSandboxResponse, p as SandboxPortAccess, q as SnapshotOptions, r as CreateSnapshotResponse, s as SnapshotAndWaitOptions, t as CreatePoolOptions, u as CreateSandboxPoolResponse, v as SandboxPoolInfo, w as UpdatePoolOptions } from './sandbox-image-
|
|
2
|
-
export { x as CheckpointType, y as ContainerResourcesInfo, z as ContainerState, A as CreateSandboxImageOptions, B as DirectoryEntry, E as DockerfileBuildPlan, F as DockerfileInstruction, I as Image, G as ImageBuildOperation, J as ImageBuildOperationType, J as ImageBuildOperationTypeValue, K as ImageOptions, N as NetworkConfig, M as OutputMode, Q as PoolContainerInfo, T as ProcessStatus, V as SandboxImageSource, W as SnapshotStatus, X as SnapshotType, Y as
|
|
1
|
+
import { C as CreatePtySessionOptions, S as SandboxOptions, a as CreateAndConnectOptions, b as SandboxClientOptions, c as ConnectOptions, d as SnapshotInfo, e as SandboxInfo, f as SandboxStatus, U as UpdateSandboxOptions, g as SuspendResumeOptions, h as CheckpointOptions, R as RunOptions, i as CommandResult, j as StartProcessOptions, P as ProcessInfo, k as SendSignalResponse, O as OutputResponse, l as OutputEvent, L as ListDirectoryResponse, m as PtySessionInfo, H as HealthResponse, D as DaemonInfo, n as CreateSandboxOptions, o as CreateSandboxResponse, p as SandboxPortAccess, q as SnapshotOptions, r as CreateSnapshotResponse, s as SnapshotAndWaitOptions, t as CreatePoolOptions, u as CreateSandboxPoolResponse, v as SandboxPoolInfo, w as UpdatePoolOptions } from './sandbox-image-B8kFWVLi.js';
|
|
2
|
+
export { x as CheckpointType, y as ContainerResourcesInfo, z as ContainerState, A as CreateSandboxImageOptions, B as DirectoryEntry, E as DockerfileBuildPlan, F as DockerfileInstruction, I as Image, G as ImageBuildOperation, J as ImageBuildOperationType, J as ImageBuildOperationTypeValue, K as ImageOptions, N as NetworkConfig, M as OutputMode, Q as PoolContainerInfo, T as ProcessStatus, V as SandboxImageSource, W as SnapshotStatus, X as SnapshotType, Y as SnapshotWaitCondition, Z as StdinMode, _ as createSandboxImage, $ as dockerfileContent } from './sandbox-image-B8kFWVLi.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The return value of every SDK operation. Carries the W3C `trace_id` so callers
|
|
@@ -236,11 +236,10 @@ declare class Sandbox {
|
|
|
236
236
|
*/
|
|
237
237
|
resume(options?: SuspendResumeOptions): Promise<void>;
|
|
238
238
|
/**
|
|
239
|
-
* Create a
|
|
240
|
-
* be committed.
|
|
239
|
+
* Create a checkpoint of this sandbox and wait for it to be locally ready.
|
|
241
240
|
*
|
|
242
|
-
* By default blocks until the
|
|
243
|
-
*
|
|
241
|
+
* By default blocks until the checkpoint is resumable and returns
|
|
242
|
+
* `SnapshotInfo`. Pass `{ wait: false }` to fire-and-return
|
|
244
243
|
* (returns `undefined`).
|
|
245
244
|
*/
|
|
246
245
|
checkpoint(options?: CheckpointOptions): Promise<Traced<SnapshotInfo> | undefined>;
|
|
@@ -413,7 +412,8 @@ declare class SandboxClient {
|
|
|
413
412
|
*
|
|
414
413
|
* This call **returns immediately** with a `snapshotId` and `in_progress`
|
|
415
414
|
* status — the snapshot is created asynchronously. Poll `getSnapshot()` until
|
|
416
|
-
* `completed
|
|
415
|
+
* `local_ready`, `completed`, or `failed`, or use `snapshotAndWait()` to
|
|
416
|
+
* block automatically.
|
|
417
417
|
*
|
|
418
418
|
* @param options.snapshotType - `"filesystem"` for cold-boot snapshots (e.g. image builds).
|
|
419
419
|
* Omit to use the server default (`filesystem`).
|
|
@@ -426,9 +426,11 @@ declare class SandboxClient {
|
|
|
426
426
|
/** Delete a snapshot by ID. */
|
|
427
427
|
deleteSnapshot(snapshotId: string): Promise<void>;
|
|
428
428
|
/**
|
|
429
|
-
* Create a snapshot and block until it is
|
|
429
|
+
* Create a snapshot and block until it is locally ready.
|
|
430
430
|
*
|
|
431
|
-
* Combines `snapshot()` with polling `getSnapshot()` until `
|
|
431
|
+
* Combines `snapshot()` with polling `getSnapshot()` until `local_ready`
|
|
432
|
+
* or `completed`. Pass `{ waitUntil: "completed" }` when durable
|
|
433
|
+
* `snapshotUri` metadata is required.
|
|
432
434
|
* Prefer `sandbox.checkpoint()` on a `Sandbox` handle for the same behavior
|
|
433
435
|
* without managing the client separately.
|
|
434
436
|
*
|