@mastra/e2b 0.4.1 → 0.5.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/CHANGELOG.md +15 -0
- package/dist/index.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/sandbox/index.d.ts +4 -0
- package/dist/sandbox/index.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -573,6 +573,7 @@ var E2BSandbox = class extends MastraSandbox {
|
|
|
573
573
|
templateSpec;
|
|
574
574
|
env;
|
|
575
575
|
metadata;
|
|
576
|
+
network;
|
|
576
577
|
connectionOpts;
|
|
577
578
|
_instructionsOverride;
|
|
578
579
|
/** Resolved template ID after building (if needed) */
|
|
@@ -590,6 +591,7 @@ var E2BSandbox = class extends MastraSandbox {
|
|
|
590
591
|
this.templateSpec = options.template;
|
|
591
592
|
this.env = options.env ?? {};
|
|
592
593
|
this.metadata = options.metadata ?? {};
|
|
594
|
+
this.network = options.network;
|
|
593
595
|
this.connectionOpts = {
|
|
594
596
|
...options.domain && { domain: options.domain },
|
|
595
597
|
...options.apiUrl && { apiUrl: options.apiUrl },
|
|
@@ -671,6 +673,7 @@ var E2BSandbox = class extends MastraSandbox {
|
|
|
671
673
|
...this.metadata,
|
|
672
674
|
"mastra-sandbox-id": this.id
|
|
673
675
|
},
|
|
676
|
+
...this.network && { network: this.network },
|
|
674
677
|
timeoutMs: this.timeout
|
|
675
678
|
});
|
|
676
679
|
} catch (createError) {
|
|
@@ -687,6 +690,7 @@ var E2BSandbox = class extends MastraSandbox {
|
|
|
687
690
|
...this.metadata,
|
|
688
691
|
"mastra-sandbox-id": this.id
|
|
689
692
|
},
|
|
693
|
+
...this.network && { network: this.network },
|
|
690
694
|
timeoutMs: this.timeout
|
|
691
695
|
});
|
|
692
696
|
} else {
|