@mastra/e2b 0.16.1-alpha.1 → 0.17.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/factory-sandbox.d.ts.map +1 -1
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/sandbox/filesystem.d.ts +2 -2
- package/dist/sandbox/process-manager.d.ts +2 -2
- package/dist/utils/repo-template.d.ts +14 -5
- package/dist/utils/repo-template.d.ts.map +1 -1
- package/package.json +11 -11
- /package/dist/_types/{@internal_workspace@0.0.19 → @internal_workspace@0.0.20}/dist/commands-api-process-manager.d.ts +0 -0
- /package/dist/_types/{@internal_workspace@0.0.19 → @internal_workspace@0.0.20}/dist/file-commands.d.ts +0 -0
- /package/dist/_types/{@internal_workspace@0.0.19 → @internal_workspace@0.0.20}/dist/files-api-filesystem.d.ts +0 -0
- /package/dist/_types/{@internal_workspace@0.0.19 → @internal_workspace@0.0.20}/dist/index.d.ts +0 -0
- /package/dist/_types/{@internal_workspace@0.0.19 → @internal_workspace@0.0.20}/dist/repo-clone.d.ts +0 -0
- /package/dist/_types/{@internal_workspace@0.0.19 → @internal_workspace@0.0.20}/dist/setup-marker.d.ts +0 -0
- /package/dist/_types/{@internal_workspace@0.0.19 → @internal_workspace@0.0.20}/package.json +0 -0
package/dist/index.js
CHANGED
|
@@ -2314,10 +2314,11 @@ function repoTemplateName(identity) {
|
|
|
2314
2314
|
ALIAS_VERSION,
|
|
2315
2315
|
cloneUrl,
|
|
2316
2316
|
identity.setupCommand ?? null,
|
|
2317
|
-
identity.buildEnv ? Object.entries(identity.buildEnv).sort(([a], [b]) => a.localeCompare(b)) : null,
|
|
2317
|
+
identity.buildEnv && identity.buildEnvRevision === void 0 ? Object.entries(identity.buildEnv).sort(([a], [b]) => a.localeCompare(b)) : null,
|
|
2318
2318
|
identity.cpuCount ?? 2,
|
|
2319
2319
|
identity.memoryMB ?? 1024,
|
|
2320
2320
|
...identity.workingDirectory !== void 0 ? [identity.workingDirectory] : [],
|
|
2321
|
+
...identity.buildEnvRevision !== void 0 ? ["buildEnvRevision", identity.buildEnvRevision] : [],
|
|
2321
2322
|
...identity.repos ? [
|
|
2322
2323
|
"repos",
|
|
2323
2324
|
identity.repos.map((repo) => [normalizeCloneUrl(repo.cloneUrl), repo.setupCommand ?? null]),
|
|
@@ -2405,6 +2406,7 @@ async function resolveSpecAtHead(options) {
|
|
|
2405
2406
|
...first.sha ? { sha: first.sha } : {},
|
|
2406
2407
|
...normalizeSetupCommands(first.setupCommand).length > 0 ? { setupCommand: first.setupCommand } : {},
|
|
2407
2408
|
...buildEnv ? { buildEnv } : {},
|
|
2409
|
+
...options.buildEnvRevision !== void 0 ? { buildEnvRevision: options.buildEnvRevision } : {},
|
|
2408
2410
|
...options.cpuCount !== void 0 ? { cpuCount: options.cpuCount } : {},
|
|
2409
2411
|
...options.memoryMB !== void 0 ? { memoryMB: options.memoryMB } : {},
|
|
2410
2412
|
...options.workingDirectory !== void 0 ? { workingDirectory: trimTrailingSlashes(assertWorkingDirectory(options.workingDirectory)) } : {},
|
|
@@ -2814,9 +2816,13 @@ var E2BFactorySandbox = class extends FactorySandbox {
|
|
|
2814
2816
|
}
|
|
2815
2817
|
#templateOptions(ctx, settings) {
|
|
2816
2818
|
const { defaults } = this.#options;
|
|
2817
|
-
const { resolveHead: _resolveHead, ...rest } = ctx;
|
|
2819
|
+
const { resolveHead: _resolveHead, buildEnv, buildEnvRevision, ...rest } = ctx;
|
|
2818
2820
|
return {
|
|
2819
2821
|
...rest,
|
|
2822
|
+
...buildEnvRevision ? {
|
|
2823
|
+
buildEnvRevision,
|
|
2824
|
+
...buildEnv ? { buildEnv } : {}
|
|
2825
|
+
} : {},
|
|
2820
2826
|
cpuCount: settings.cpuCount ?? defaults?.cpuCount ?? DEFAULT_SETTINGS.cpuCount,
|
|
2821
2827
|
memoryMB: settings.memoryMb ?? defaults?.memoryMb ?? DEFAULT_SETTINGS.memoryMb
|
|
2822
2828
|
};
|