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/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-BMDaNpZ2.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 StdinMode, Z as createSandboxImage, _ as dockerfileContent } from './sandbox-image-BMDaNpZ2.cjs';
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 snapshot of this sandbox's filesystem and wait for it to
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 snapshot artifact is ready and returns
243
- * the completed `SnapshotInfo`. Pass `{ wait: false }` to fire-and-return
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` or `failed`, or use `snapshotAndWait()` to block automatically.
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 committed.
429
+ * Create a snapshot and block until it is locally ready.
430
430
  *
431
- * Combines `snapshot()` with polling `getSnapshot()` until `completed`.
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-BMDaNpZ2.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 StdinMode, Z as createSandboxImage, _ as dockerfileContent } from './sandbox-image-BMDaNpZ2.js';
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 snapshot of this sandbox's filesystem and wait for it to
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 snapshot artifact is ready and returns
243
- * the completed `SnapshotInfo`. Pass `{ wait: false }` to fire-and-return
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` or `failed`, or use `snapshotAndWait()` to block automatically.
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 committed.
429
+ * Create a snapshot and block until it is locally ready.
430
430
  *
431
- * Combines `snapshot()` with polling `getSnapshot()` until `completed`.
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
  *