tensorlake 0.5.130 → 0.5.131

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/index.d.cts CHANGED
@@ -210,10 +210,10 @@ declare enum ContainerState {
210
210
  interface ContainerResourcesInfo {
211
211
  cpus: number;
212
212
  memoryMb: number;
213
- ephemeralDiskMb: number;
213
+ diskMb: number;
214
214
  }
215
215
  /** GPU models supported by the sandbox scheduler. */
216
- type GpuModel = "A100-40GB" | "A100-80GB" | "H100" | "T4" | "A6000" | "A10";
216
+ type GpuModel = "A100-40GB" | "A100-80GB" | "H100" | "T4" | "A6000" | "RTX-PRO-6000" | "L40" | "A10";
217
217
  /** A homogeneous GPU allocation for a sandbox. */
218
218
  interface GpuRequest {
219
219
  count: number;
@@ -484,7 +484,8 @@ interface CreatePoolOptions {
484
484
  image: string;
485
485
  cpus?: number;
486
486
  memoryMb?: number;
487
- ephemeralDiskMb?: number;
487
+ /** Root disk size in megabytes. Omit to use the registered image's size. */
488
+ diskMb?: number;
488
489
  timeoutSecs?: number;
489
490
  entrypoint?: string[];
490
491
  maxContainers?: number;
@@ -503,7 +504,8 @@ interface UpdatePoolOptions {
503
504
  image: string;
504
505
  cpus?: number;
505
506
  memoryMb?: number;
506
- ephemeralDiskMb?: number;
507
+ /** Root disk size in megabytes. Omit to use the registered image's size. */
508
+ diskMb?: number;
507
509
  timeoutSecs?: number;
508
510
  entrypoint?: string[];
509
511
  maxContainers?: number;
@@ -1349,7 +1351,10 @@ declare class SandboxClient {
1349
1351
  * network policy, set it to replace the policy, or pass `null` to remove the
1350
1352
  * policy entirely. On a change the service recycles the pool's unclaimed
1351
1353
  * warm containers onto the new policy, while containers already claimed by
1352
- * sandboxes keep the policy they booted with.
1354
+ * sandboxes keep the policy they booted with. CPU, memory, disk, image, and
1355
+ * entrypoint changes likewise recycle unclaimed warm containers
1356
+ * asynchronously. If suitable capacity is unavailable, stale warm
1357
+ * containers are not used as a fallback.
1353
1358
  */
1354
1359
  updatePool(poolId: string, options: UpdatePoolOptions): Promise<SandboxPoolInfo>;
1355
1360
  /** Delete a sandbox pool. Fails if the pool has active containers. */
package/dist/index.d.ts CHANGED
@@ -210,10 +210,10 @@ declare enum ContainerState {
210
210
  interface ContainerResourcesInfo {
211
211
  cpus: number;
212
212
  memoryMb: number;
213
- ephemeralDiskMb: number;
213
+ diskMb: number;
214
214
  }
215
215
  /** GPU models supported by the sandbox scheduler. */
216
- type GpuModel = "A100-40GB" | "A100-80GB" | "H100" | "T4" | "A6000" | "A10";
216
+ type GpuModel = "A100-40GB" | "A100-80GB" | "H100" | "T4" | "A6000" | "RTX-PRO-6000" | "L40" | "A10";
217
217
  /** A homogeneous GPU allocation for a sandbox. */
218
218
  interface GpuRequest {
219
219
  count: number;
@@ -484,7 +484,8 @@ interface CreatePoolOptions {
484
484
  image: string;
485
485
  cpus?: number;
486
486
  memoryMb?: number;
487
- ephemeralDiskMb?: number;
487
+ /** Root disk size in megabytes. Omit to use the registered image's size. */
488
+ diskMb?: number;
488
489
  timeoutSecs?: number;
489
490
  entrypoint?: string[];
490
491
  maxContainers?: number;
@@ -503,7 +504,8 @@ interface UpdatePoolOptions {
503
504
  image: string;
504
505
  cpus?: number;
505
506
  memoryMb?: number;
506
- ephemeralDiskMb?: number;
507
+ /** Root disk size in megabytes. Omit to use the registered image's size. */
508
+ diskMb?: number;
507
509
  timeoutSecs?: number;
508
510
  entrypoint?: string[];
509
511
  maxContainers?: number;
@@ -1349,7 +1351,10 @@ declare class SandboxClient {
1349
1351
  * network policy, set it to replace the policy, or pass `null` to remove the
1350
1352
  * policy entirely. On a change the service recycles the pool's unclaimed
1351
1353
  * warm containers onto the new policy, while containers already claimed by
1352
- * sandboxes keep the policy they booted with.
1354
+ * sandboxes keep the policy they booted with. CPU, memory, disk, image, and
1355
+ * entrypoint changes likewise recycle unclaimed warm containers
1356
+ * asynchronously. If suitable capacity is unavailable, stale warm
1357
+ * containers are not used as a fallback.
1353
1358
  */
1354
1359
  updatePool(poolId: string, options: UpdatePoolOptions): Promise<SandboxPoolInfo>;
1355
1360
  /** Delete a sandbox pool. Fails if the pool has active containers. */
package/dist/index.js CHANGED
@@ -46,7 +46,7 @@ var init_defaults = __esm({
46
46
  "src/defaults.ts"() {
47
47
  "use strict";
48
48
  init_esm_shims();
49
- SDK_VERSION = "0.5.130";
49
+ SDK_VERSION = "0.5.131";
50
50
  API_URL = process.env.TENSORLAKE_API_URL ?? "https://api.tensorlake.ai";
51
51
  API_KEY = process.env.TENSORLAKE_API_KEY ?? void 0;
52
52
  NAMESPACE = process.env.INDEXIFY_NAMESPACE ?? "default";
@@ -472,7 +472,7 @@ var init_native_worker_client = __esm({
472
472
  }
473
473
  };
474
474
  runtimeKey = /* @__PURE__ */ Symbol.for(
475
- `tensorlake.native.worker.${false ? "source" : "0.5.130"}.v1`
475
+ `tensorlake.native.worker.${false ? "source" : "0.5.131"}.v1`
476
476
  );
477
477
  runtimes = globalThis;
478
478
  }
@@ -4584,6 +4584,8 @@ var init_client = __esm({
4584
4584
  "H100",
4585
4585
  "T4",
4586
4586
  "A6000",
4587
+ "RTX-PRO-6000",
4588
+ "L40",
4587
4589
  "A10"
4588
4590
  ]);
4589
4591
  SandboxClient = class _SandboxClient {
@@ -5075,7 +5077,7 @@ var init_client = __esm({
5075
5077
  resources: {
5076
5078
  cpus: options.cpus ?? 1,
5077
5079
  memory_mb: options.memoryMb ?? 1024,
5078
- ephemeral_disk_mb: options.ephemeralDiskMb ?? 1024
5080
+ ...options.diskMb != null ? { disk_mb: options.diskMb } : {}
5079
5081
  },
5080
5082
  timeout_secs: options.timeoutSecs ?? 0
5081
5083
  };
@@ -5112,7 +5114,10 @@ var init_client = __esm({
5112
5114
  * network policy, set it to replace the policy, or pass `null` to remove the
5113
5115
  * policy entirely. On a change the service recycles the pool's unclaimed
5114
5116
  * warm containers onto the new policy, while containers already claimed by
5115
- * sandboxes keep the policy they booted with.
5117
+ * sandboxes keep the policy they booted with. CPU, memory, disk, image, and
5118
+ * entrypoint changes likewise recycle unclaimed warm containers
5119
+ * asynchronously. If suitable capacity is unavailable, stale warm
5120
+ * containers are not used as a fallback.
5116
5121
  */
5117
5122
  async updatePool(poolId, options) {
5118
5123
  const body = {
@@ -5120,7 +5125,7 @@ var init_client = __esm({
5120
5125
  resources: {
5121
5126
  cpus: options.cpus ?? 1,
5122
5127
  memory_mb: options.memoryMb ?? 1024,
5123
- ephemeral_disk_mb: options.ephemeralDiskMb ?? 1024
5128
+ ...options.diskMb != null ? { disk_mb: options.diskMb } : {}
5124
5129
  },
5125
5130
  timeout_secs: options.timeoutSecs ?? 0
5126
5131
  };