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.
- 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 +351 -310
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +351 -310
- package/dist/index.js.map +1 -1
- package/dist/{sandbox-image-CUEKMhZ1.d.cts → sandbox-image-B8kFWVLi.d.cts} +2 -7
- package/dist/{sandbox-image-CUEKMhZ1.d.ts → sandbox-image-B8kFWVLi.d.ts} +2 -7
- package/dist/sandbox-image.cjs +351 -310
- 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 +351 -310
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|