@computesdk/sandbox0 1.0.13 → 1.0.14

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 } from "@computesdk/provider";
22477
+ import { defineProvider, resolveVolumeRef, 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;
@@ -22890,7 +22890,7 @@ var _provider = defineProvider({
22890
22890
  volume: {
22891
22891
  create: async (config, options) => {
22892
22892
  const client = createClient(config);
22893
- const volume = await client.volumes.create({});
22893
+ const volume = await client.volumes.create({ backend: "s0fs", accessMode: "RWO" });
22894
22894
  return { id: volume.id, native: volume };
22895
22895
  },
22896
22896
  get: async (config, id) => {
@@ -22909,7 +22909,7 @@ var _provider = defineProvider({
22909
22909
  },
22910
22910
  delete: async (config, id) => {
22911
22911
  const client = createClient(config);
22912
- await client.volumes.delete(id, { force: true });
22912
+ await withVolumeSettle(() => client.volumes.delete(id, { force: true }));
22913
22913
  }
22914
22914
  }
22915
22915
  }