@mastra/e2b 0.5.0 → 0.5.1-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/CHANGELOG.md +9 -0
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/sandbox/mounts/s3.d.ts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/e2b
|
|
2
2
|
|
|
3
|
+
## 0.5.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed S3 mount race condition when mounting multiple S3 filesystems concurrently. Each mount now uses a unique per-path credentials file, preventing credentials from being overwritten mid-mount. Also added validation that rejects partial credential pairs with a clear error message. ([#14950](https://github.com/mastra-ai/mastra/pull/14950))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`3ffb8b7`](https://github.com/mastra-ai/mastra/commit/3ffb8b720e90f5e6977129ec1f6707d43c2bebe0), [`5ea76a7`](https://github.com/mastra-ai/mastra/commit/5ea76a723d966c72da9aa3ab30ae20276e049765), [`6445560`](https://github.com/mastra-ai/mastra/commit/6445560327045d20b239585fc63fed72e9ce36ec), [`a2ba369`](https://github.com/mastra-ai/mastra/commit/a2ba369e796dfab610f41c6875965b488272fa55), [`ae51e81`](https://github.com/mastra-ai/mastra/commit/ae51e818825582d42500338dfc1929a082eff0ba), [`6f304ef`](https://github.com/mastra-ai/mastra/commit/6f304ef319e99725e884bdb8d3193c001b6e5964)]:
|
|
10
|
+
- @mastra/core@1.50.0-alpha.1
|
|
11
|
+
|
|
3
12
|
## 0.5.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -101,7 +101,12 @@ Error details: ${installResult.stderr || installResult.stdout}`
|
|
|
101
101
|
}
|
|
102
102
|
const idResult = await sandbox.commands.run("id -u && id -g");
|
|
103
103
|
const [uid, gid] = idResult.stdout.trim().split("\n");
|
|
104
|
-
const
|
|
104
|
+
const hasAccessKey = !!config.accessKeyId;
|
|
105
|
+
const hasSecretKey = !!config.secretAccessKey;
|
|
106
|
+
if (hasAccessKey !== hasSecretKey) {
|
|
107
|
+
throw new Error("Both accessKeyId and secretAccessKey must be provided together.");
|
|
108
|
+
}
|
|
109
|
+
const hasCredentials = hasAccessKey && hasSecretKey;
|
|
105
110
|
const mountHash = crypto.createHash("md5").update(mountPath).digest("hex").slice(0, 8);
|
|
106
111
|
const credentialsPath = `/tmp/.passwd-s3fs-${mountHash}`;
|
|
107
112
|
if (!hasCredentials && config.endpoint) {
|