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.
@@ -54,7 +54,8 @@ interface CreateSandboxOptions {
54
54
  image?: string;
55
55
  cpus?: number;
56
56
  memoryMb?: number;
57
- ephemeralDiskMb?: number;
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 { runCreateSandboxImageCli as $, ImageBuildOperationType as A, type ImageOptions as B, type CreatePtySessionOptions as C, type DaemonInfo as D, OutputMode as E, type PoolContainerInfo as F, ProcessStatus as G, type HealthResponse as H, Image as I, type SandboxImageSource as J, SandboxStatus as K, type ListDirectoryResponse as L, type SnapshotContentMode as M, type NetworkConfig as N, type OutputResponse as O, type ProcessInfo as P, SnapshotStatus as Q, type RunOptions as R, type SandboxOptions as S, StdinMode as T, type UpdateSandboxOptions as U, createSandboxImage as V, dockerfileContent as W, defaultRegisteredName as X, loadDockerfilePlan as Y, loadImagePlan as Z, logicalDockerfileLines as _, type CommandResult as a, type StartProcessOptions as b, type SendSignalResponse as c, type OutputEvent as d, type PtySessionInfo as e, type SandboxClientOptions as f, type CreateSandboxOptions as g, type CreateSandboxResponse as h, type SandboxInfo as i, type SandboxPortAccess as j, type SnapshotOptions as k, type CreateSnapshotResponse as l, type SnapshotInfo as m, type SnapshotAndWaitOptions as n, type CreatePoolOptions as o, type CreateSandboxPoolResponse as p, type SandboxPoolInfo as q, type UpdatePoolOptions as r, type CreateAndConnectOptions as s, type ContainerResourcesInfo as t, ContainerState as u, type CreateSandboxImageOptions as v, type DirectoryEntry as w, type DockerfileBuildPlan as x, type DockerfileInstruction as y, type ImageBuildOperation as z };
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
- ephemeralDiskMb?: number;
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 { runCreateSandboxImageCli as $, ImageBuildOperationType as A, type ImageOptions as B, type CreatePtySessionOptions as C, type DaemonInfo as D, OutputMode as E, type PoolContainerInfo as F, ProcessStatus as G, type HealthResponse as H, Image as I, type SandboxImageSource as J, SandboxStatus as K, type ListDirectoryResponse as L, type SnapshotContentMode as M, type NetworkConfig as N, type OutputResponse as O, type ProcessInfo as P, SnapshotStatus as Q, type RunOptions as R, type SandboxOptions as S, StdinMode as T, type UpdateSandboxOptions as U, createSandboxImage as V, dockerfileContent as W, defaultRegisteredName as X, loadDockerfilePlan as Y, loadImagePlan as Z, logicalDockerfileLines as _, type CommandResult as a, type StartProcessOptions as b, type SendSignalResponse as c, type OutputEvent as d, type PtySessionInfo as e, type SandboxClientOptions as f, type CreateSandboxOptions as g, type CreateSandboxResponse as h, type SandboxInfo as i, type SandboxPortAccess as j, type SnapshotOptions as k, type CreateSnapshotResponse as l, type SnapshotInfo as m, type SnapshotAndWaitOptions as n, type CreatePoolOptions as o, type CreateSandboxPoolResponse as p, type SandboxPoolInfo as q, type UpdatePoolOptions as r, type CreateAndConnectOptions as s, type ContainerResourcesInfo as t, ContainerState as u, type CreateSandboxImageOptions as v, type DirectoryEntry as w, type DockerfileBuildPlan as x, type DockerfileInstruction as y, type ImageBuildOperation as z };
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 };