@mastra/daytona 0.11.1 → 0.11.2-alpha.1

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.cjs CHANGED
@@ -155,7 +155,7 @@ async function mountS3(mountPath, config, ctx) {
155
155
  const [uid, gid] = idResult.stdout.trim().split("\n");
156
156
  const validUidGid = uid && gid && /^\d+$/.test(uid) && /^\d+$/.test(gid);
157
157
  if (!validUidGid) logger.warn(`${LOG_PREFIX} Unexpected uid/gid format: "${idResult.stdout.trim()}" — mounted files will be owned by root`);
158
- const credentialsDirectory = `${s3CredentialsPrefix(mountPath)}${(0, crypto.randomUUID)()}`;
158
+ const credentialsDirectory = `${s3CredentialsPrefix(mountPath)}${globalThis.crypto.randomUUID()}`;
159
159
  const credentialsPath = `${credentialsDirectory}/credentials`;
160
160
  await run("sudo chmod a+rw /dev/fuse 2>/dev/null || true; sudo bash -c 'grep -q \"^user_allow_other\" /etc/fuse.conf 2>/dev/null || echo \"user_allow_other\" >> /etc/fuse.conf' 2>/dev/null || true");
161
161
  let credentialsCreated = false;
@@ -183,6 +183,7 @@ async function mountS3(mountPath, config, ctx) {
183
183
  const endpoint = config.endpoint.replace(/\/$/, "");
184
184
  mountOptions.push(`url=${shellQuote(endpoint)}`, "use_path_request_style", "sigv4", "nomultipart");
185
185
  }
186
+ mountOptions.push(`endpoint=${shellQuote(config.region)}`);
186
187
  if (config.readOnly) {
187
188
  mountOptions.push("ro");
188
189
  logger.debug(`${LOG_PREFIX} Mounting as read-only`);
@@ -191,6 +192,7 @@ async function mountS3(mountPath, config, ctx) {
191
192
  if (config.prefix) {
192
193
  const normalizedPrefix = validatePrefix(config.prefix);
193
194
  bucketArg = `${config.bucket}:/${normalizedPrefix}`;
195
+ mountOptions.push("compat_dir");
194
196
  }
195
197
  const mountCmd = `${config.sessionToken ? `. ${shellQuote(credentialsPath)} && ` : ""}s3fs ${shellQuote(bucketArg)} ${quotedMountPath} -o ${mountOptions.join(" -o ")}`;
196
198
  logger.debug(`${LOG_PREFIX} Mounting S3:`, hasCredentials ? mountCmd.replace(credentialsPath, "***") : mountCmd);