tensorlake 0.4.50 → 0.5.1
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 +388 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +210 -12
- package/dist/index.d.ts +210 -12
- package/dist/index.js +388 -49
- package/dist/index.js.map +1 -1
- package/dist/{sandbox-image-C79FXqQk.d.cts → sandbox-image-CEGsGg4V.d.cts} +22 -2
- package/dist/{sandbox-image-C79FXqQk.d.ts → sandbox-image-CEGsGg4V.d.ts} +22 -2
- package/dist/sandbox-image.cjs +375 -36
- 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 +380 -36
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +1 -1
|
@@ -54,7 +54,8 @@ interface CreateSandboxOptions {
|
|
|
54
54
|
image?: string;
|
|
55
55
|
cpus?: number;
|
|
56
56
|
memoryMb?: number;
|
|
57
|
-
|
|
57
|
+
/** Root disk size in megabytes. When omitted, the server uses its default disk size. */
|
|
58
|
+
diskMb?: number;
|
|
58
59
|
secretNames?: string[];
|
|
59
60
|
timeoutSecs?: number;
|
|
60
61
|
entrypoint?: string[];
|
|
@@ -77,6 +78,7 @@ interface CreateSandboxResponse {
|
|
|
77
78
|
sandboxId: string;
|
|
78
79
|
status: SandboxStatus;
|
|
79
80
|
routingHint?: string;
|
|
81
|
+
name?: string | null;
|
|
80
82
|
}
|
|
81
83
|
interface SandboxInfo {
|
|
82
84
|
sandboxId: string;
|
|
@@ -276,6 +278,22 @@ interface CreateAndConnectOptions extends CreateSandboxOptions {
|
|
|
276
278
|
proxyUrl?: string;
|
|
277
279
|
startupTimeout?: number;
|
|
278
280
|
}
|
|
281
|
+
interface SuspendResumeOptions {
|
|
282
|
+
/** If false, fire-and-return without waiting for completion. Default: true. */
|
|
283
|
+
wait?: boolean;
|
|
284
|
+
/** Max seconds to wait when wait=true. Default: 300. */
|
|
285
|
+
timeout?: number;
|
|
286
|
+
/** Seconds between status polls when wait=true. Default: 1. */
|
|
287
|
+
pollInterval?: number;
|
|
288
|
+
}
|
|
289
|
+
interface CheckpointOptions extends SuspendResumeOptions {
|
|
290
|
+
contentMode?: SnapshotContentMode;
|
|
291
|
+
}
|
|
292
|
+
interface ConnectOptions {
|
|
293
|
+
sandboxId: string;
|
|
294
|
+
proxyUrl?: string;
|
|
295
|
+
routingHint?: string;
|
|
296
|
+
}
|
|
279
297
|
|
|
280
298
|
declare const ImageBuildOperationType: {
|
|
281
299
|
readonly ADD: "ADD";
|
|
@@ -341,6 +359,7 @@ interface CreateSandboxImageOptions {
|
|
|
341
359
|
registeredName?: string;
|
|
342
360
|
cpus?: number;
|
|
343
361
|
memoryMb?: number;
|
|
362
|
+
diskMb?: number;
|
|
344
363
|
isPublic?: boolean;
|
|
345
364
|
contextDir?: string;
|
|
346
365
|
/**
|
|
@@ -384,6 +403,7 @@ interface BuildClient {
|
|
|
384
403
|
image?: string;
|
|
385
404
|
cpus?: number;
|
|
386
405
|
memoryMb?: number;
|
|
406
|
+
diskMb?: number;
|
|
387
407
|
}): Promise<BuildSandbox>;
|
|
388
408
|
snapshotAndWait(sandboxId: string, options?: {
|
|
389
409
|
timeout?: number;
|
|
@@ -408,4 +428,4 @@ declare function loadImagePlan(image: Image, options?: Pick<CreateSandboxImageOp
|
|
|
408
428
|
declare function createSandboxImage(source: SandboxImageSource, options?: CreateSandboxImageOptions, deps?: CreateSandboxImageDeps): Promise<Record<string, unknown>>;
|
|
409
429
|
declare function runCreateSandboxImageCli(argv?: string[]): Promise<void>;
|
|
410
430
|
|
|
411
|
-
export {
|
|
431
|
+
export { loadDockerfilePlan as $, type DirectoryEntry as A, type DockerfileBuildPlan as B, type CreatePtySessionOptions as C, type DaemonInfo as D, type DockerfileInstruction as E, type ImageBuildOperation as F, ImageBuildOperationType as G, type HealthResponse as H, Image as I, type ImageOptions as J, OutputMode as K, type ListDirectoryResponse as L, type PoolContainerInfo as M, type NetworkConfig as N, type OutputResponse as O, type ProcessInfo as P, ProcessStatus as Q, type RunOptions as R, type SandboxOptions as S, type SandboxImageSource 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, SandboxStatus as e, type SandboxInfo 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 SandboxPortAccess as p, type SnapshotOptions as q, type CreateSnapshotResponse as r, type SnapshotAndWaitOptions as s, type CreatePoolOptions as t, type CreateSandboxPoolResponse as u, type SandboxPoolInfo as v, type UpdatePoolOptions as w, type ContainerResourcesInfo as x, ContainerState as y, type CreateSandboxImageOptions as z };
|
|
@@ -54,7 +54,8 @@ interface CreateSandboxOptions {
|
|
|
54
54
|
image?: string;
|
|
55
55
|
cpus?: number;
|
|
56
56
|
memoryMb?: number;
|
|
57
|
-
|
|
57
|
+
/** Root disk size in megabytes. When omitted, the server uses its default disk size. */
|
|
58
|
+
diskMb?: number;
|
|
58
59
|
secretNames?: string[];
|
|
59
60
|
timeoutSecs?: number;
|
|
60
61
|
entrypoint?: string[];
|
|
@@ -77,6 +78,7 @@ interface CreateSandboxResponse {
|
|
|
77
78
|
sandboxId: string;
|
|
78
79
|
status: SandboxStatus;
|
|
79
80
|
routingHint?: string;
|
|
81
|
+
name?: string | null;
|
|
80
82
|
}
|
|
81
83
|
interface SandboxInfo {
|
|
82
84
|
sandboxId: string;
|
|
@@ -276,6 +278,22 @@ interface CreateAndConnectOptions extends CreateSandboxOptions {
|
|
|
276
278
|
proxyUrl?: string;
|
|
277
279
|
startupTimeout?: number;
|
|
278
280
|
}
|
|
281
|
+
interface SuspendResumeOptions {
|
|
282
|
+
/** If false, fire-and-return without waiting for completion. Default: true. */
|
|
283
|
+
wait?: boolean;
|
|
284
|
+
/** Max seconds to wait when wait=true. Default: 300. */
|
|
285
|
+
timeout?: number;
|
|
286
|
+
/** Seconds between status polls when wait=true. Default: 1. */
|
|
287
|
+
pollInterval?: number;
|
|
288
|
+
}
|
|
289
|
+
interface CheckpointOptions extends SuspendResumeOptions {
|
|
290
|
+
contentMode?: SnapshotContentMode;
|
|
291
|
+
}
|
|
292
|
+
interface ConnectOptions {
|
|
293
|
+
sandboxId: string;
|
|
294
|
+
proxyUrl?: string;
|
|
295
|
+
routingHint?: string;
|
|
296
|
+
}
|
|
279
297
|
|
|
280
298
|
declare const ImageBuildOperationType: {
|
|
281
299
|
readonly ADD: "ADD";
|
|
@@ -341,6 +359,7 @@ interface CreateSandboxImageOptions {
|
|
|
341
359
|
registeredName?: string;
|
|
342
360
|
cpus?: number;
|
|
343
361
|
memoryMb?: number;
|
|
362
|
+
diskMb?: number;
|
|
344
363
|
isPublic?: boolean;
|
|
345
364
|
contextDir?: string;
|
|
346
365
|
/**
|
|
@@ -384,6 +403,7 @@ interface BuildClient {
|
|
|
384
403
|
image?: string;
|
|
385
404
|
cpus?: number;
|
|
386
405
|
memoryMb?: number;
|
|
406
|
+
diskMb?: number;
|
|
387
407
|
}): Promise<BuildSandbox>;
|
|
388
408
|
snapshotAndWait(sandboxId: string, options?: {
|
|
389
409
|
timeout?: number;
|
|
@@ -408,4 +428,4 @@ declare function loadImagePlan(image: Image, options?: Pick<CreateSandboxImageOp
|
|
|
408
428
|
declare function createSandboxImage(source: SandboxImageSource, options?: CreateSandboxImageOptions, deps?: CreateSandboxImageDeps): Promise<Record<string, unknown>>;
|
|
409
429
|
declare function runCreateSandboxImageCli(argv?: string[]): Promise<void>;
|
|
410
430
|
|
|
411
|
-
export {
|
|
431
|
+
export { loadDockerfilePlan as $, type DirectoryEntry as A, type DockerfileBuildPlan as B, type CreatePtySessionOptions as C, type DaemonInfo as D, type DockerfileInstruction as E, type ImageBuildOperation as F, ImageBuildOperationType as G, type HealthResponse as H, Image as I, type ImageOptions as J, OutputMode as K, type ListDirectoryResponse as L, type PoolContainerInfo as M, type NetworkConfig as N, type OutputResponse as O, type ProcessInfo as P, ProcessStatus as Q, type RunOptions as R, type SandboxOptions as S, type SandboxImageSource 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, SandboxStatus as e, type SandboxInfo 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 SandboxPortAccess as p, type SnapshotOptions as q, type CreateSnapshotResponse as r, type SnapshotAndWaitOptions as s, type CreatePoolOptions as t, type CreateSandboxPoolResponse as u, type SandboxPoolInfo as v, type UpdatePoolOptions as w, type ContainerResourcesInfo as x, ContainerState as y, type CreateSandboxImageOptions as z };
|