tensorlake 0.4.49 → 0.5.0
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 +4503 -4038
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +185 -8
- package/dist/index.d.ts +185 -8
- package/dist/index.js +4519 -4045
- package/dist/index.js.map +1 -1
- package/dist/{sandbox-image-BQ6fJT92.d.cts → sandbox-image-CMJ_FOOV.d.cts} +30 -1
- package/dist/{sandbox-image-BQ6fJT92.d.ts → sandbox-image-CMJ_FOOV.d.ts} +30 -1
- package/dist/sandbox-image.cjs +3323 -2930
- 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 +3215 -2815
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +1 -1
|
@@ -276,6 +276,22 @@ interface CreateAndConnectOptions extends CreateSandboxOptions {
|
|
|
276
276
|
proxyUrl?: string;
|
|
277
277
|
startupTimeout?: number;
|
|
278
278
|
}
|
|
279
|
+
interface SuspendResumeOptions {
|
|
280
|
+
/** If false, fire-and-return without waiting for completion. Default: true. */
|
|
281
|
+
wait?: boolean;
|
|
282
|
+
/** Max seconds to wait when wait=true. Default: 300. */
|
|
283
|
+
timeout?: number;
|
|
284
|
+
/** Seconds between status polls when wait=true. Default: 1. */
|
|
285
|
+
pollInterval?: number;
|
|
286
|
+
}
|
|
287
|
+
interface CheckpointOptions extends SuspendResumeOptions {
|
|
288
|
+
contentMode?: SnapshotContentMode;
|
|
289
|
+
}
|
|
290
|
+
interface ConnectOptions {
|
|
291
|
+
sandboxId: string;
|
|
292
|
+
proxyUrl?: string;
|
|
293
|
+
routingHint?: string;
|
|
294
|
+
}
|
|
279
295
|
|
|
280
296
|
declare const ImageBuildOperationType: {
|
|
281
297
|
readonly ADD: "ADD";
|
|
@@ -313,6 +329,13 @@ declare class Image {
|
|
|
313
329
|
env(key: string, value: string): this;
|
|
314
330
|
run(commands: string | string[], options?: Record<string, string> | undefined): this;
|
|
315
331
|
workdir(directory: string): this;
|
|
332
|
+
/**
|
|
333
|
+
* Build this image as a sandbox template and register it.
|
|
334
|
+
*
|
|
335
|
+
* Materializes the image in a build sandbox, snapshots the filesystem,
|
|
336
|
+
* and registers the snapshot as a named sandbox template.
|
|
337
|
+
*/
|
|
338
|
+
build(options?: CreateSandboxImageOptions): Promise<Record<string, unknown>>;
|
|
316
339
|
private _addOperation;
|
|
317
340
|
}
|
|
318
341
|
declare function dockerfileContent(image: Image): string;
|
|
@@ -336,6 +359,12 @@ interface CreateSandboxImageOptions {
|
|
|
336
359
|
memoryMb?: number;
|
|
337
360
|
isPublic?: boolean;
|
|
338
361
|
contextDir?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Print build progress to stderr. Ignored when an explicit `emit` is passed
|
|
364
|
+
* via `deps`. Defaults to false — `createSandboxImage` is silent by default
|
|
365
|
+
* when invoked programmatically (e.g. `Image.build()`).
|
|
366
|
+
*/
|
|
367
|
+
verbose?: boolean;
|
|
339
368
|
}
|
|
340
369
|
type SandboxImageSource = string | Image;
|
|
341
370
|
interface BuildContext {
|
|
@@ -395,4 +424,4 @@ declare function loadImagePlan(image: Image, options?: Pick<CreateSandboxImageOp
|
|
|
395
424
|
declare function createSandboxImage(source: SandboxImageSource, options?: CreateSandboxImageOptions, deps?: CreateSandboxImageDeps): Promise<Record<string, unknown>>;
|
|
396
425
|
declare function runCreateSandboxImageCli(argv?: string[]): Promise<void>;
|
|
397
426
|
|
|
398
|
-
export {
|
|
427
|
+
export { loadDockerfilePlan as $, type DockerfileBuildPlan as A, type DockerfileInstruction as B, type CreatePtySessionOptions as C, type DaemonInfo as D, type ImageBuildOperation as E, ImageBuildOperationType as F, type ImageOptions as G, type HealthResponse as H, Image as I, OutputMode as J, type PoolContainerInfo as K, type ListDirectoryResponse as L, ProcessStatus as M, type NetworkConfig as N, type OutputResponse as O, type ProcessInfo as P, type SandboxImageSource as Q, type RunOptions as R, type SandboxOptions as S, SandboxStatus 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, type SuspendResumeOptions as e, type CheckpointOptions as f, type CommandResult as g, type StartProcessOptions as h, type SendSignalResponse as i, type OutputEvent as j, type PtySessionInfo as k, type CreateSandboxOptions as l, type CreateSandboxResponse as m, type SandboxInfo as n, type SandboxPortAccess as o, type SnapshotOptions as p, type CreateSnapshotResponse as q, type SnapshotAndWaitOptions as r, type CreatePoolOptions as s, type CreateSandboxPoolResponse as t, type SandboxPoolInfo as u, type UpdatePoolOptions as v, type ContainerResourcesInfo as w, ContainerState as x, type CreateSandboxImageOptions as y, type DirectoryEntry as z };
|
|
@@ -276,6 +276,22 @@ interface CreateAndConnectOptions extends CreateSandboxOptions {
|
|
|
276
276
|
proxyUrl?: string;
|
|
277
277
|
startupTimeout?: number;
|
|
278
278
|
}
|
|
279
|
+
interface SuspendResumeOptions {
|
|
280
|
+
/** If false, fire-and-return without waiting for completion. Default: true. */
|
|
281
|
+
wait?: boolean;
|
|
282
|
+
/** Max seconds to wait when wait=true. Default: 300. */
|
|
283
|
+
timeout?: number;
|
|
284
|
+
/** Seconds between status polls when wait=true. Default: 1. */
|
|
285
|
+
pollInterval?: number;
|
|
286
|
+
}
|
|
287
|
+
interface CheckpointOptions extends SuspendResumeOptions {
|
|
288
|
+
contentMode?: SnapshotContentMode;
|
|
289
|
+
}
|
|
290
|
+
interface ConnectOptions {
|
|
291
|
+
sandboxId: string;
|
|
292
|
+
proxyUrl?: string;
|
|
293
|
+
routingHint?: string;
|
|
294
|
+
}
|
|
279
295
|
|
|
280
296
|
declare const ImageBuildOperationType: {
|
|
281
297
|
readonly ADD: "ADD";
|
|
@@ -313,6 +329,13 @@ declare class Image {
|
|
|
313
329
|
env(key: string, value: string): this;
|
|
314
330
|
run(commands: string | string[], options?: Record<string, string> | undefined): this;
|
|
315
331
|
workdir(directory: string): this;
|
|
332
|
+
/**
|
|
333
|
+
* Build this image as a sandbox template and register it.
|
|
334
|
+
*
|
|
335
|
+
* Materializes the image in a build sandbox, snapshots the filesystem,
|
|
336
|
+
* and registers the snapshot as a named sandbox template.
|
|
337
|
+
*/
|
|
338
|
+
build(options?: CreateSandboxImageOptions): Promise<Record<string, unknown>>;
|
|
316
339
|
private _addOperation;
|
|
317
340
|
}
|
|
318
341
|
declare function dockerfileContent(image: Image): string;
|
|
@@ -336,6 +359,12 @@ interface CreateSandboxImageOptions {
|
|
|
336
359
|
memoryMb?: number;
|
|
337
360
|
isPublic?: boolean;
|
|
338
361
|
contextDir?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Print build progress to stderr. Ignored when an explicit `emit` is passed
|
|
364
|
+
* via `deps`. Defaults to false — `createSandboxImage` is silent by default
|
|
365
|
+
* when invoked programmatically (e.g. `Image.build()`).
|
|
366
|
+
*/
|
|
367
|
+
verbose?: boolean;
|
|
339
368
|
}
|
|
340
369
|
type SandboxImageSource = string | Image;
|
|
341
370
|
interface BuildContext {
|
|
@@ -395,4 +424,4 @@ declare function loadImagePlan(image: Image, options?: Pick<CreateSandboxImageOp
|
|
|
395
424
|
declare function createSandboxImage(source: SandboxImageSource, options?: CreateSandboxImageOptions, deps?: CreateSandboxImageDeps): Promise<Record<string, unknown>>;
|
|
396
425
|
declare function runCreateSandboxImageCli(argv?: string[]): Promise<void>;
|
|
397
426
|
|
|
398
|
-
export {
|
|
427
|
+
export { loadDockerfilePlan as $, type DockerfileBuildPlan as A, type DockerfileInstruction as B, type CreatePtySessionOptions as C, type DaemonInfo as D, type ImageBuildOperation as E, ImageBuildOperationType as F, type ImageOptions as G, type HealthResponse as H, Image as I, OutputMode as J, type PoolContainerInfo as K, type ListDirectoryResponse as L, ProcessStatus as M, type NetworkConfig as N, type OutputResponse as O, type ProcessInfo as P, type SandboxImageSource as Q, type RunOptions as R, type SandboxOptions as S, SandboxStatus 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, type SuspendResumeOptions as e, type CheckpointOptions as f, type CommandResult as g, type StartProcessOptions as h, type SendSignalResponse as i, type OutputEvent as j, type PtySessionInfo as k, type CreateSandboxOptions as l, type CreateSandboxResponse as m, type SandboxInfo as n, type SandboxPortAccess as o, type SnapshotOptions as p, type CreateSnapshotResponse as q, type SnapshotAndWaitOptions as r, type CreatePoolOptions as s, type CreateSandboxPoolResponse as t, type SandboxPoolInfo as u, type UpdatePoolOptions as v, type ContainerResourcesInfo as w, ContainerState as x, type CreateSandboxImageOptions as y, type DirectoryEntry as z };
|