@mastra/e2b 0.11.0 → 0.12.0-alpha.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { MastraSandbox, ProcessHandle, SandboxNotReadyError, SandboxProcessManager, UnsupportedStdinCloseError } from "@mastra/core/workspace";
1
+ import { MastraSandbox, ProcessHandle, SandboxNotReadyError, SandboxProcessManager, UnsupportedStdinCloseError, assertModesUnsupported } from "@mastra/core/workspace";
2
2
  import { Sandbox, Template } from "e2b";
3
3
  import { createHash, randomBytes } from "crypto";
4
4
  import { execFile } from "child_process";
@@ -945,8 +945,12 @@ var E2BSandbox = class E2BSandbox extends MastraSandbox {
945
945
  }
946
946
  /**
947
947
  * Bulk-write files into the sandbox filesystem via the SDK's native upload.
948
+ *
949
+ * Per-file permission modes are not supported; an explicit `mode` is
950
+ * rejected rather than silently discarded.
948
951
  */
949
952
  async writeFiles(files) {
953
+ assertModesUnsupported(files, "E2B");
950
954
  await this.ensureRunning();
951
955
  await this.e2b.files.write(files.map((f) => ({
952
956
  path: f.path,