tensorlake 0.4.49 → 0.4.50

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.
@@ -313,6 +313,13 @@ declare class Image {
313
313
  env(key: string, value: string): this;
314
314
  run(commands: string | string[], options?: Record<string, string> | undefined): this;
315
315
  workdir(directory: string): this;
316
+ /**
317
+ * Build this image as a sandbox template and register it.
318
+ *
319
+ * Materializes the image in a build sandbox, snapshots the filesystem,
320
+ * and registers the snapshot as a named sandbox template.
321
+ */
322
+ build(options?: CreateSandboxImageOptions): Promise<Record<string, unknown>>;
316
323
  private _addOperation;
317
324
  }
318
325
  declare function dockerfileContent(image: Image): string;
@@ -336,6 +343,12 @@ interface CreateSandboxImageOptions {
336
343
  memoryMb?: number;
337
344
  isPublic?: boolean;
338
345
  contextDir?: string;
346
+ /**
347
+ * Print build progress to stderr. Ignored when an explicit `emit` is passed
348
+ * via `deps`. Defaults to false — `createSandboxImage` is silent by default
349
+ * when invoked programmatically (e.g. `Image.build()`).
350
+ */
351
+ verbose?: boolean;
339
352
  }
340
353
  type SandboxImageSource = string | Image;
341
354
  interface BuildContext {
@@ -313,6 +313,13 @@ declare class Image {
313
313
  env(key: string, value: string): this;
314
314
  run(commands: string | string[], options?: Record<string, string> | undefined): this;
315
315
  workdir(directory: string): this;
316
+ /**
317
+ * Build this image as a sandbox template and register it.
318
+ *
319
+ * Materializes the image in a build sandbox, snapshots the filesystem,
320
+ * and registers the snapshot as a named sandbox template.
321
+ */
322
+ build(options?: CreateSandboxImageOptions): Promise<Record<string, unknown>>;
316
323
  private _addOperation;
317
324
  }
318
325
  declare function dockerfileContent(image: Image): string;
@@ -336,6 +343,12 @@ interface CreateSandboxImageOptions {
336
343
  memoryMb?: number;
337
344
  isPublic?: boolean;
338
345
  contextDir?: string;
346
+ /**
347
+ * Print build progress to stderr. Ignored when an explicit `emit` is passed
348
+ * via `deps`. Defaults to false — `createSandboxImage` is silent by default
349
+ * when invoked programmatically (e.g. `Image.build()`).
350
+ */
351
+ verbose?: boolean;
339
352
  }
340
353
  type SandboxImageSource = string | Image;
341
354
  interface BuildContext {