tensorlake 0.5.10 → 0.5.13
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 +391 -310
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +391 -310
- package/dist/index.js.map +1 -1
- package/dist/{sandbox-image-CUEKMhZ1.d.cts → sandbox-image-BepgJl5u.d.cts} +20 -8
- package/dist/{sandbox-image-CUEKMhZ1.d.ts → sandbox-image-BepgJl5u.d.ts} +20 -8
- package/dist/sandbox-image.cjs +391 -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 +391 -310
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +1 -1
|
@@ -121,6 +121,23 @@ interface SandboxPortAccess {
|
|
|
121
121
|
exposedPorts: number[];
|
|
122
122
|
sandboxUrl?: string;
|
|
123
123
|
}
|
|
124
|
+
/** Sandbox information plus the archival timestamp. */
|
|
125
|
+
interface ArchivedSandboxInfo extends SandboxInfo {
|
|
126
|
+
archivedAt: Date;
|
|
127
|
+
}
|
|
128
|
+
/** Pagination params for `listArchivedSandboxes`. */
|
|
129
|
+
interface ListArchivedSandboxesOptions {
|
|
130
|
+
limit?: number;
|
|
131
|
+
/** Base64-encoded pagination cursor returned by a prior call. */
|
|
132
|
+
cursor?: string;
|
|
133
|
+
/** Pagination direction. */
|
|
134
|
+
direction?: "forward" | "backward";
|
|
135
|
+
}
|
|
136
|
+
interface ListArchivedSandboxesResponse {
|
|
137
|
+
sandboxes: ArchivedSandboxInfo[];
|
|
138
|
+
prevCursor?: string;
|
|
139
|
+
nextCursor?: string;
|
|
140
|
+
}
|
|
124
141
|
interface CreateSnapshotResponse {
|
|
125
142
|
snapshotId: string;
|
|
126
143
|
status: SnapshotStatus;
|
|
@@ -382,6 +399,7 @@ interface CreateSandboxImageOptions {
|
|
|
382
399
|
cpus?: number;
|
|
383
400
|
memoryMb?: number;
|
|
384
401
|
diskMb?: number;
|
|
402
|
+
builderDiskMb?: number;
|
|
385
403
|
isPublic?: boolean;
|
|
386
404
|
contextDir?: string;
|
|
387
405
|
/**
|
|
@@ -418,6 +436,7 @@ interface BuildSandbox {
|
|
|
418
436
|
getStderr(pid: number): Promise<OutputResponse>;
|
|
419
437
|
getProcess(pid: number): Promise<ProcessInfo>;
|
|
420
438
|
writeFile(path: string, content: Uint8Array): Promise<void>;
|
|
439
|
+
readFile(path: string): Promise<Uint8Array>;
|
|
421
440
|
terminate(): Promise<void>;
|
|
422
441
|
}
|
|
423
442
|
interface BuildClient {
|
|
@@ -427,18 +446,11 @@ interface BuildClient {
|
|
|
427
446
|
memoryMb?: number;
|
|
428
447
|
diskMb?: number;
|
|
429
448
|
}): Promise<BuildSandbox>;
|
|
430
|
-
snapshotAndWait(sandboxId: string, options?: {
|
|
431
|
-
timeout?: number;
|
|
432
|
-
pollInterval?: number;
|
|
433
|
-
snapshotType?: SnapshotType;
|
|
434
|
-
waitUntil?: SnapshotWaitCondition;
|
|
435
|
-
}): Promise<SnapshotInfo>;
|
|
436
449
|
close(): void;
|
|
437
450
|
}
|
|
438
451
|
interface CreateSandboxImageDeps {
|
|
439
452
|
emit?: (event: Record<string, unknown>) => void;
|
|
440
453
|
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
454
|
sleep?: (ms: number) => Promise<void>;
|
|
443
455
|
}
|
|
444
456
|
declare function defaultRegisteredName(dockerfilePath: string): string;
|
|
@@ -452,4 +464,4 @@ declare function registerImage(context: BuildContext, name: string, dockerfile:
|
|
|
452
464
|
declare function createSandboxImage(source: SandboxImageSource, options?: CreateSandboxImageOptions, deps?: CreateSandboxImageDeps): Promise<Record<string, unknown>>;
|
|
453
465
|
declare function runCreateSandboxImageCli(argv?: string[]): Promise<void>;
|
|
454
466
|
|
|
455
|
-
export {
|
|
467
|
+
export { type SnapshotWaitCondition as $, type ArchivedSandboxInfo as A, type ContainerResourcesInfo as B, type CreatePtySessionOptions as C, type DaemonInfo as D, ContainerState as E, type CreateSandboxImageOptions as F, type DirectoryEntry as G, type HealthResponse as H, type DockerfileBuildPlan as I, type DockerfileInstruction as J, Image as K, type ListDirectoryResponse as L, type ImageBuildOperation as M, ImageBuildOperationType as N, type OutputResponse as O, type ProcessInfo as P, type ImageOptions as Q, type RunOptions as R, type SandboxOptions as S, type NetworkConfig as T, type UpdateSandboxOptions as U, OutputMode as V, type PoolContainerInfo as W, ProcessStatus as X, type SandboxImageSource as Y, SnapshotStatus as Z, type SnapshotType as _, type CreateAndConnectOptions as a, StdinMode as a0, createSandboxImage as a1, dockerfileContent as a2, type BuildContext as a3, defaultRegisteredName as a4, loadDockerfilePlan as a5, loadImagePlan as a6, logicalDockerfileLines as a7, registerImage as a8, runCreateSandboxImageCli as a9, type SandboxClientOptions as b, type ConnectOptions as c, type SnapshotInfo as d, type SandboxInfo as e, SandboxStatus as f, type SuspendResumeOptions as g, type CheckpointOptions as h, type CommandResult as i, type StartProcessOptions as j, type SendSignalResponse as k, type OutputEvent as l, type PtySessionInfo as m, type CreateSandboxOptions as n, type CreateSandboxResponse as o, type ListArchivedSandboxesOptions as p, type ListArchivedSandboxesResponse as q, type SandboxPortAccess as r, type SnapshotOptions as s, type CreateSnapshotResponse as t, type SnapshotAndWaitOptions as u, type CreatePoolOptions as v, type CreateSandboxPoolResponse as w, type SandboxPoolInfo as x, type UpdatePoolOptions as y, type CheckpointType as z };
|
|
@@ -121,6 +121,23 @@ interface SandboxPortAccess {
|
|
|
121
121
|
exposedPorts: number[];
|
|
122
122
|
sandboxUrl?: string;
|
|
123
123
|
}
|
|
124
|
+
/** Sandbox information plus the archival timestamp. */
|
|
125
|
+
interface ArchivedSandboxInfo extends SandboxInfo {
|
|
126
|
+
archivedAt: Date;
|
|
127
|
+
}
|
|
128
|
+
/** Pagination params for `listArchivedSandboxes`. */
|
|
129
|
+
interface ListArchivedSandboxesOptions {
|
|
130
|
+
limit?: number;
|
|
131
|
+
/** Base64-encoded pagination cursor returned by a prior call. */
|
|
132
|
+
cursor?: string;
|
|
133
|
+
/** Pagination direction. */
|
|
134
|
+
direction?: "forward" | "backward";
|
|
135
|
+
}
|
|
136
|
+
interface ListArchivedSandboxesResponse {
|
|
137
|
+
sandboxes: ArchivedSandboxInfo[];
|
|
138
|
+
prevCursor?: string;
|
|
139
|
+
nextCursor?: string;
|
|
140
|
+
}
|
|
124
141
|
interface CreateSnapshotResponse {
|
|
125
142
|
snapshotId: string;
|
|
126
143
|
status: SnapshotStatus;
|
|
@@ -382,6 +399,7 @@ interface CreateSandboxImageOptions {
|
|
|
382
399
|
cpus?: number;
|
|
383
400
|
memoryMb?: number;
|
|
384
401
|
diskMb?: number;
|
|
402
|
+
builderDiskMb?: number;
|
|
385
403
|
isPublic?: boolean;
|
|
386
404
|
contextDir?: string;
|
|
387
405
|
/**
|
|
@@ -418,6 +436,7 @@ interface BuildSandbox {
|
|
|
418
436
|
getStderr(pid: number): Promise<OutputResponse>;
|
|
419
437
|
getProcess(pid: number): Promise<ProcessInfo>;
|
|
420
438
|
writeFile(path: string, content: Uint8Array): Promise<void>;
|
|
439
|
+
readFile(path: string): Promise<Uint8Array>;
|
|
421
440
|
terminate(): Promise<void>;
|
|
422
441
|
}
|
|
423
442
|
interface BuildClient {
|
|
@@ -427,18 +446,11 @@ interface BuildClient {
|
|
|
427
446
|
memoryMb?: number;
|
|
428
447
|
diskMb?: number;
|
|
429
448
|
}): Promise<BuildSandbox>;
|
|
430
|
-
snapshotAndWait(sandboxId: string, options?: {
|
|
431
|
-
timeout?: number;
|
|
432
|
-
pollInterval?: number;
|
|
433
|
-
snapshotType?: SnapshotType;
|
|
434
|
-
waitUntil?: SnapshotWaitCondition;
|
|
435
|
-
}): Promise<SnapshotInfo>;
|
|
436
449
|
close(): void;
|
|
437
450
|
}
|
|
438
451
|
interface CreateSandboxImageDeps {
|
|
439
452
|
emit?: (event: Record<string, unknown>) => void;
|
|
440
453
|
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
454
|
sleep?: (ms: number) => Promise<void>;
|
|
443
455
|
}
|
|
444
456
|
declare function defaultRegisteredName(dockerfilePath: string): string;
|
|
@@ -452,4 +464,4 @@ declare function registerImage(context: BuildContext, name: string, dockerfile:
|
|
|
452
464
|
declare function createSandboxImage(source: SandboxImageSource, options?: CreateSandboxImageOptions, deps?: CreateSandboxImageDeps): Promise<Record<string, unknown>>;
|
|
453
465
|
declare function runCreateSandboxImageCli(argv?: string[]): Promise<void>;
|
|
454
466
|
|
|
455
|
-
export {
|
|
467
|
+
export { type SnapshotWaitCondition as $, type ArchivedSandboxInfo as A, type ContainerResourcesInfo as B, type CreatePtySessionOptions as C, type DaemonInfo as D, ContainerState as E, type CreateSandboxImageOptions as F, type DirectoryEntry as G, type HealthResponse as H, type DockerfileBuildPlan as I, type DockerfileInstruction as J, Image as K, type ListDirectoryResponse as L, type ImageBuildOperation as M, ImageBuildOperationType as N, type OutputResponse as O, type ProcessInfo as P, type ImageOptions as Q, type RunOptions as R, type SandboxOptions as S, type NetworkConfig as T, type UpdateSandboxOptions as U, OutputMode as V, type PoolContainerInfo as W, ProcessStatus as X, type SandboxImageSource as Y, SnapshotStatus as Z, type SnapshotType as _, type CreateAndConnectOptions as a, StdinMode as a0, createSandboxImage as a1, dockerfileContent as a2, type BuildContext as a3, defaultRegisteredName as a4, loadDockerfilePlan as a5, loadImagePlan as a6, logicalDockerfileLines as a7, registerImage as a8, runCreateSandboxImageCli as a9, type SandboxClientOptions as b, type ConnectOptions as c, type SnapshotInfo as d, type SandboxInfo as e, SandboxStatus as f, type SuspendResumeOptions as g, type CheckpointOptions as h, type CommandResult as i, type StartProcessOptions as j, type SendSignalResponse as k, type OutputEvent as l, type PtySessionInfo as m, type CreateSandboxOptions as n, type CreateSandboxResponse as o, type ListArchivedSandboxesOptions as p, type ListArchivedSandboxesResponse as q, type SandboxPortAccess as r, type SnapshotOptions as s, type CreateSnapshotResponse as t, type SnapshotAndWaitOptions as u, type CreatePoolOptions as v, type CreateSandboxPoolResponse as w, type SandboxPoolInfo as x, type UpdatePoolOptions as y, type CheckpointType as z };
|