@mastra/e2b 0.12.2-alpha.0 → 0.12.3-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.
@@ -1 +1 @@
1
- {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/code-mode/transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAuB,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAQrG;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,oBAAqB,YAAW,iBAAiB;IACtD,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAwMpF;CACF"}
1
+ {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/code-mode/transport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAuB,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAQrG;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,oBAAqB,YAAW,iBAAiB;IACtD,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAwMpF;CACF"}
package/dist/index.cjs CHANGED
@@ -2054,7 +2054,7 @@ var E2BCodeModeTransport = class {
2054
2054
  externalName: (0, _mastra_core_tools.sanitizeToolId)(toolId)
2055
2055
  }));
2056
2056
  const allowList = new Set(toolIds);
2057
- const suffix = (0, crypto.randomBytes)(4).toString("hex");
2057
+ const suffix = Buffer.from(globalThis.crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(4))).toString("hex");
2058
2058
  const dir = `${SANDBOX_TMP}/${suffix}`;
2059
2059
  const programPath = `${dir}/program-${suffix}.mjs`;
2060
2060
  const runnerPath = `${dir}/runner-${suffix}.mjs`;