@mastra/e2b 0.8.2 → 0.9.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 } from "@mastra/core/workspace";
1
+ import { MastraSandbox, ProcessHandle, SandboxNotReadyError, SandboxProcessManager, UnsupportedStdinCloseError } from "@mastra/core/workspace";
2
2
  import { Sandbox, Template } from "e2b";
3
3
  import { createHash, randomBytes } from "crypto";
4
4
  import { FRAME_PREFIX, buildProgramModule, buildRunner, sanitizeToolId } from "@mastra/core/tools";
@@ -505,6 +505,9 @@ var E2BProcessHandle = class extends ProcessHandle {
505
505
  if (this.exitCode !== void 0) throw new Error(`Process ${this.pid} has already exited with code ${this.exitCode}`);
506
506
  await this._sandbox.commands.sendStdin(this._e2bHandle.pid, data);
507
507
  }
508
+ async closeStdin() {
509
+ throw new UnsupportedStdinCloseError("E2B SDK does not expose a way to close stdin for a running command");
510
+ }
508
511
  };
509
512
  /**
510
513
  * E2B implementation of SandboxProcessManager.