tensorlake 0.4.49 → 0.5.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.
@@ -276,6 +276,22 @@ interface CreateAndConnectOptions extends CreateSandboxOptions {
276
276
  proxyUrl?: string;
277
277
  startupTimeout?: number;
278
278
  }
279
+ interface SuspendResumeOptions {
280
+ /** If false, fire-and-return without waiting for completion. Default: true. */
281
+ wait?: boolean;
282
+ /** Max seconds to wait when wait=true. Default: 300. */
283
+ timeout?: number;
284
+ /** Seconds between status polls when wait=true. Default: 1. */
285
+ pollInterval?: number;
286
+ }
287
+ interface CheckpointOptions extends SuspendResumeOptions {
288
+ contentMode?: SnapshotContentMode;
289
+ }
290
+ interface ConnectOptions {
291
+ sandboxId: string;
292
+ proxyUrl?: string;
293
+ routingHint?: string;
294
+ }
279
295
 
280
296
  declare const ImageBuildOperationType: {
281
297
  readonly ADD: "ADD";
@@ -313,6 +329,13 @@ declare class Image {
313
329
  env(key: string, value: string): this;
314
330
  run(commands: string | string[], options?: Record<string, string> | undefined): this;
315
331
  workdir(directory: string): this;
332
+ /**
333
+ * Build this image as a sandbox template and register it.
334
+ *
335
+ * Materializes the image in a build sandbox, snapshots the filesystem,
336
+ * and registers the snapshot as a named sandbox template.
337
+ */
338
+ build(options?: CreateSandboxImageOptions): Promise<Record<string, unknown>>;
316
339
  private _addOperation;
317
340
  }
318
341
  declare function dockerfileContent(image: Image): string;
@@ -336,6 +359,12 @@ interface CreateSandboxImageOptions {
336
359
  memoryMb?: number;
337
360
  isPublic?: boolean;
338
361
  contextDir?: string;
362
+ /**
363
+ * Print build progress to stderr. Ignored when an explicit `emit` is passed
364
+ * via `deps`. Defaults to false — `createSandboxImage` is silent by default
365
+ * when invoked programmatically (e.g. `Image.build()`).
366
+ */
367
+ verbose?: boolean;
339
368
  }
340
369
  type SandboxImageSource = string | Image;
341
370
  interface BuildContext {
@@ -395,4 +424,4 @@ declare function loadImagePlan(image: Image, options?: Pick<CreateSandboxImageOp
395
424
  declare function createSandboxImage(source: SandboxImageSource, options?: CreateSandboxImageOptions, deps?: CreateSandboxImageDeps): Promise<Record<string, unknown>>;
396
425
  declare function runCreateSandboxImageCli(argv?: string[]): Promise<void>;
397
426
 
398
- export { runCreateSandboxImageCli as $, ImageBuildOperationType as A, type ImageOptions as B, type CreatePtySessionOptions as C, type DaemonInfo as D, OutputMode as E, type PoolContainerInfo as F, ProcessStatus as G, type HealthResponse as H, Image as I, type SandboxImageSource as J, SandboxStatus as K, type ListDirectoryResponse as L, type SnapshotContentMode as M, type NetworkConfig as N, type OutputResponse as O, type ProcessInfo as P, SnapshotStatus as Q, type RunOptions as R, type SandboxOptions as S, StdinMode as T, type UpdateSandboxOptions as U, createSandboxImage as V, dockerfileContent as W, defaultRegisteredName as X, loadDockerfilePlan as Y, loadImagePlan as Z, logicalDockerfileLines as _, type CommandResult as a, type StartProcessOptions as b, type SendSignalResponse as c, type OutputEvent as d, type PtySessionInfo as e, type SandboxClientOptions as f, type CreateSandboxOptions as g, type CreateSandboxResponse as h, type SandboxInfo as i, type SandboxPortAccess as j, type SnapshotOptions as k, type CreateSnapshotResponse as l, type SnapshotInfo as m, type SnapshotAndWaitOptions as n, type CreatePoolOptions as o, type CreateSandboxPoolResponse as p, type SandboxPoolInfo as q, type UpdatePoolOptions as r, type CreateAndConnectOptions as s, type ContainerResourcesInfo as t, ContainerState as u, type CreateSandboxImageOptions as v, type DirectoryEntry as w, type DockerfileBuildPlan as x, type DockerfileInstruction as y, type ImageBuildOperation as z };
427
+ export { loadDockerfilePlan as $, type DockerfileBuildPlan as A, type DockerfileInstruction as B, type CreatePtySessionOptions as C, type DaemonInfo as D, type ImageBuildOperation as E, ImageBuildOperationType as F, type ImageOptions as G, type HealthResponse as H, Image as I, OutputMode as J, type PoolContainerInfo as K, type ListDirectoryResponse as L, ProcessStatus as M, type NetworkConfig as N, type OutputResponse as O, type ProcessInfo as P, type SandboxImageSource as Q, type RunOptions as R, type SandboxOptions as S, SandboxStatus as T, type UpdateSandboxOptions as U, type SnapshotContentMode as V, SnapshotStatus as W, StdinMode as X, createSandboxImage as Y, dockerfileContent as Z, defaultRegisteredName as _, type CreateAndConnectOptions as a, loadImagePlan as a0, logicalDockerfileLines as a1, runCreateSandboxImageCli as a2, type SandboxClientOptions as b, type ConnectOptions as c, type SnapshotInfo as d, type SuspendResumeOptions as e, type CheckpointOptions as f, type CommandResult as g, type StartProcessOptions as h, type SendSignalResponse as i, type OutputEvent as j, type PtySessionInfo as k, type CreateSandboxOptions as l, type CreateSandboxResponse as m, type SandboxInfo as n, type SandboxPortAccess as o, type SnapshotOptions as p, type CreateSnapshotResponse as q, type SnapshotAndWaitOptions as r, type CreatePoolOptions as s, type CreateSandboxPoolResponse as t, type SandboxPoolInfo as u, type UpdatePoolOptions as v, type ContainerResourcesInfo as w, ContainerState as x, type CreateSandboxImageOptions as y, type DirectoryEntry as z };
@@ -276,6 +276,22 @@ interface CreateAndConnectOptions extends CreateSandboxOptions {
276
276
  proxyUrl?: string;
277
277
  startupTimeout?: number;
278
278
  }
279
+ interface SuspendResumeOptions {
280
+ /** If false, fire-and-return without waiting for completion. Default: true. */
281
+ wait?: boolean;
282
+ /** Max seconds to wait when wait=true. Default: 300. */
283
+ timeout?: number;
284
+ /** Seconds between status polls when wait=true. Default: 1. */
285
+ pollInterval?: number;
286
+ }
287
+ interface CheckpointOptions extends SuspendResumeOptions {
288
+ contentMode?: SnapshotContentMode;
289
+ }
290
+ interface ConnectOptions {
291
+ sandboxId: string;
292
+ proxyUrl?: string;
293
+ routingHint?: string;
294
+ }
279
295
 
280
296
  declare const ImageBuildOperationType: {
281
297
  readonly ADD: "ADD";
@@ -313,6 +329,13 @@ declare class Image {
313
329
  env(key: string, value: string): this;
314
330
  run(commands: string | string[], options?: Record<string, string> | undefined): this;
315
331
  workdir(directory: string): this;
332
+ /**
333
+ * Build this image as a sandbox template and register it.
334
+ *
335
+ * Materializes the image in a build sandbox, snapshots the filesystem,
336
+ * and registers the snapshot as a named sandbox template.
337
+ */
338
+ build(options?: CreateSandboxImageOptions): Promise<Record<string, unknown>>;
316
339
  private _addOperation;
317
340
  }
318
341
  declare function dockerfileContent(image: Image): string;
@@ -336,6 +359,12 @@ interface CreateSandboxImageOptions {
336
359
  memoryMb?: number;
337
360
  isPublic?: boolean;
338
361
  contextDir?: string;
362
+ /**
363
+ * Print build progress to stderr. Ignored when an explicit `emit` is passed
364
+ * via `deps`. Defaults to false — `createSandboxImage` is silent by default
365
+ * when invoked programmatically (e.g. `Image.build()`).
366
+ */
367
+ verbose?: boolean;
339
368
  }
340
369
  type SandboxImageSource = string | Image;
341
370
  interface BuildContext {
@@ -395,4 +424,4 @@ declare function loadImagePlan(image: Image, options?: Pick<CreateSandboxImageOp
395
424
  declare function createSandboxImage(source: SandboxImageSource, options?: CreateSandboxImageOptions, deps?: CreateSandboxImageDeps): Promise<Record<string, unknown>>;
396
425
  declare function runCreateSandboxImageCli(argv?: string[]): Promise<void>;
397
426
 
398
- export { runCreateSandboxImageCli as $, ImageBuildOperationType as A, type ImageOptions as B, type CreatePtySessionOptions as C, type DaemonInfo as D, OutputMode as E, type PoolContainerInfo as F, ProcessStatus as G, type HealthResponse as H, Image as I, type SandboxImageSource as J, SandboxStatus as K, type ListDirectoryResponse as L, type SnapshotContentMode as M, type NetworkConfig as N, type OutputResponse as O, type ProcessInfo as P, SnapshotStatus as Q, type RunOptions as R, type SandboxOptions as S, StdinMode as T, type UpdateSandboxOptions as U, createSandboxImage as V, dockerfileContent as W, defaultRegisteredName as X, loadDockerfilePlan as Y, loadImagePlan as Z, logicalDockerfileLines as _, type CommandResult as a, type StartProcessOptions as b, type SendSignalResponse as c, type OutputEvent as d, type PtySessionInfo as e, type SandboxClientOptions as f, type CreateSandboxOptions as g, type CreateSandboxResponse as h, type SandboxInfo as i, type SandboxPortAccess as j, type SnapshotOptions as k, type CreateSnapshotResponse as l, type SnapshotInfo as m, type SnapshotAndWaitOptions as n, type CreatePoolOptions as o, type CreateSandboxPoolResponse as p, type SandboxPoolInfo as q, type UpdatePoolOptions as r, type CreateAndConnectOptions as s, type ContainerResourcesInfo as t, ContainerState as u, type CreateSandboxImageOptions as v, type DirectoryEntry as w, type DockerfileBuildPlan as x, type DockerfileInstruction as y, type ImageBuildOperation as z };
427
+ export { loadDockerfilePlan as $, type DockerfileBuildPlan as A, type DockerfileInstruction as B, type CreatePtySessionOptions as C, type DaemonInfo as D, type ImageBuildOperation as E, ImageBuildOperationType as F, type ImageOptions as G, type HealthResponse as H, Image as I, OutputMode as J, type PoolContainerInfo as K, type ListDirectoryResponse as L, ProcessStatus as M, type NetworkConfig as N, type OutputResponse as O, type ProcessInfo as P, type SandboxImageSource as Q, type RunOptions as R, type SandboxOptions as S, SandboxStatus as T, type UpdateSandboxOptions as U, type SnapshotContentMode as V, SnapshotStatus as W, StdinMode as X, createSandboxImage as Y, dockerfileContent as Z, defaultRegisteredName as _, type CreateAndConnectOptions as a, loadImagePlan as a0, logicalDockerfileLines as a1, runCreateSandboxImageCli as a2, type SandboxClientOptions as b, type ConnectOptions as c, type SnapshotInfo as d, type SuspendResumeOptions as e, type CheckpointOptions as f, type CommandResult as g, type StartProcessOptions as h, type SendSignalResponse as i, type OutputEvent as j, type PtySessionInfo as k, type CreateSandboxOptions as l, type CreateSandboxResponse as m, type SandboxInfo as n, type SandboxPortAccess as o, type SnapshotOptions as p, type CreateSnapshotResponse as q, type SnapshotAndWaitOptions as r, type CreatePoolOptions as s, type CreateSandboxPoolResponse as t, type SandboxPoolInfo as u, type UpdatePoolOptions as v, type ContainerResourcesInfo as w, ContainerState as x, type CreateSandboxImageOptions as y, type DirectoryEntry as z };