@mastra/daytona 0.7.1 → 0.8.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/CHANGELOG.md +22 -0
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/sandbox/process-manager.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Daytona, DaytonaNotFoundError, SandboxState } from "@daytonaio/sdk";
|
|
2
|
-
import { MastraSandbox, ProcessHandle, SandboxNotReadyError, SandboxProcessManager } from "@mastra/core/workspace";
|
|
2
|
+
import { MastraSandbox, ProcessHandle, SandboxNotReadyError, SandboxProcessManager, UnsupportedStdinCloseError } from "@mastra/core/workspace";
|
|
3
3
|
import { createHash } from "crypto";
|
|
4
4
|
//#region src/utils/compact.ts
|
|
5
5
|
/**
|
|
@@ -512,6 +512,9 @@ var DaytonaProcessHandle = class extends ProcessHandle {
|
|
|
512
512
|
if (this._exitCode !== void 0) throw new Error(`Process ${this.pid} has already exited with code ${this._exitCode}`);
|
|
513
513
|
await this._sandbox.process.sendSessionCommandInput(this.pid, this._cmdId, data);
|
|
514
514
|
}
|
|
515
|
+
async closeStdin() {
|
|
516
|
+
throw new UnsupportedStdinCloseError("Daytona SDK does not expose a way to close stdin for a running process");
|
|
517
|
+
}
|
|
515
518
|
};
|
|
516
519
|
/**
|
|
517
520
|
* Daytona implementation of SandboxProcessManager.
|