@computesdk/sandbox0 1.0.15 → 1.0.17

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.mjs CHANGED
@@ -22474,7 +22474,7 @@ var SandboxRuntimeMetricName2 = models.SandboxRuntimeMetricName;
22474
22474
  var SandboxRuntimeMetricStatistic2 = models.SandboxRuntimeMetricStatistic;
22475
22475
 
22476
22476
  // src/index.ts
22477
- import { defineProvider, resolveVolumeRef, withVolumeSettle } from "@computesdk/provider";
22477
+ import { defineProvider, resolveVolumeRef, isUnifiedVolumeMounts, withVolumeSettle } from "@computesdk/provider";
22478
22478
  var observations = /* @__PURE__ */ new WeakMap();
22479
22479
  function env(name) {
22480
22480
  return typeof process !== "undefined" ? process.env?.[name] : void 0;
@@ -22542,7 +22542,7 @@ function buildClaimOptions(config, options) {
22542
22542
  ...Object.keys(sandboxConfig).length > 0 ? { config: sandboxConfig } : {},
22543
22543
  ...options?.snapshotId ? { snapshotId: options.snapshotId } : {},
22544
22544
  // Unified mounts → claim's [{sandboxvolumeId, mountPoint}] wire shape.
22545
- ...Array.isArray(options?.volumes) && options.volumes.length > 0 ? {
22545
+ ...isUnifiedVolumeMounts(options?.volumes) ? {
22546
22546
  mounts: options.volumes.map((m) => {
22547
22547
  const ref = resolveVolumeRef(m.volume);
22548
22548
  const sandboxvolumeId = ref.id ?? ref.name;