tensorlake 0.5.10 → 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.
@@ -382,6 +382,7 @@ interface CreateSandboxImageOptions {
382
382
  cpus?: number;
383
383
  memoryMb?: number;
384
384
  diskMb?: number;
385
+ builderDiskMb?: number;
385
386
  isPublic?: boolean;
386
387
  contextDir?: string;
387
388
  /**
@@ -418,6 +419,7 @@ interface BuildSandbox {
418
419
  getStderr(pid: number): Promise<OutputResponse>;
419
420
  getProcess(pid: number): Promise<ProcessInfo>;
420
421
  writeFile(path: string, content: Uint8Array): Promise<void>;
422
+ readFile(path: string): Promise<Uint8Array>;
421
423
  terminate(): Promise<void>;
422
424
  }
423
425
  interface BuildClient {
@@ -427,18 +429,11 @@ interface BuildClient {
427
429
  memoryMb?: number;
428
430
  diskMb?: number;
429
431
  }): Promise<BuildSandbox>;
430
- snapshotAndWait(sandboxId: string, options?: {
431
- timeout?: number;
432
- pollInterval?: number;
433
- snapshotType?: SnapshotType;
434
- waitUntil?: SnapshotWaitCondition;
435
- }): Promise<SnapshotInfo>;
436
432
  close(): void;
437
433
  }
438
434
  interface CreateSandboxImageDeps {
439
435
  emit?: (event: Record<string, unknown>) => void;
440
436
  createClient?: (context: BuildContext) => BuildClient;
441
- registerImage?: (context: BuildContext, name: string, dockerfile: string, snapshotId: string, snapshotSandboxId: string, snapshotUri: string, snapshotSizeBytes: number, rootfsDiskBytes: number, isPublic: boolean, snapshotFormatVersion?: string) => Promise<Record<string, unknown>>;
442
437
  sleep?: (ms: number) => Promise<void>;
443
438
  }
444
439
  declare function defaultRegisteredName(dockerfilePath: string): string;
@@ -382,6 +382,7 @@ interface CreateSandboxImageOptions {
382
382
  cpus?: number;
383
383
  memoryMb?: number;
384
384
  diskMb?: number;
385
+ builderDiskMb?: number;
385
386
  isPublic?: boolean;
386
387
  contextDir?: string;
387
388
  /**
@@ -418,6 +419,7 @@ interface BuildSandbox {
418
419
  getStderr(pid: number): Promise<OutputResponse>;
419
420
  getProcess(pid: number): Promise<ProcessInfo>;
420
421
  writeFile(path: string, content: Uint8Array): Promise<void>;
422
+ readFile(path: string): Promise<Uint8Array>;
421
423
  terminate(): Promise<void>;
422
424
  }
423
425
  interface BuildClient {
@@ -427,18 +429,11 @@ interface BuildClient {
427
429
  memoryMb?: number;
428
430
  diskMb?: number;
429
431
  }): Promise<BuildSandbox>;
430
- snapshotAndWait(sandboxId: string, options?: {
431
- timeout?: number;
432
- pollInterval?: number;
433
- snapshotType?: SnapshotType;
434
- waitUntil?: SnapshotWaitCondition;
435
- }): Promise<SnapshotInfo>;
436
432
  close(): void;
437
433
  }
438
434
  interface CreateSandboxImageDeps {
439
435
  emit?: (event: Record<string, unknown>) => void;
440
436
  createClient?: (context: BuildContext) => BuildClient;
441
- registerImage?: (context: BuildContext, name: string, dockerfile: string, snapshotId: string, snapshotSandboxId: string, snapshotUri: string, snapshotSizeBytes: number, rootfsDiskBytes: number, isPublic: boolean, snapshotFormatVersion?: string) => Promise<Record<string, unknown>>;
442
437
  sleep?: (ms: number) => Promise<void>;
443
438
  }
444
439
  declare function defaultRegisteredName(dockerfilePath: string): string;