@mastra/e2b 0.16.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.
|
@@ -103,16 +103,23 @@ export interface RepoTemplateOptions {
|
|
|
103
103
|
* credentials a setup command needs (registry tokens, private index
|
|
104
104
|
* URLs) so the build reaches the same state a runtime setup would.
|
|
105
105
|
*
|
|
106
|
-
*
|
|
107
|
-
* changes what setup installs changes the
|
|
108
|
-
* does. Rotating a value therefore forces a
|
|
109
|
-
* that rotate often in
|
|
110
|
-
* instead, which is
|
|
106
|
+
* Without {@link buildEnvRevision}, hashed into the template name (keys
|
|
107
|
+
* and values), because env that changes what setup installs changes the
|
|
108
|
+
* image just as the setup command does. Rotating a value therefore forces a
|
|
109
|
+
* rebuild — put credentials that rotate often in
|
|
110
|
+
* {@link RepoTemplateOptions.getRepositoryAccess} instead, which is
|
|
111
|
+
* excluded from identity. With a revision, the values stay out of the name.
|
|
111
112
|
*
|
|
112
113
|
* Values reach the template definition, so they must be short-lived or
|
|
113
114
|
* non-secret.
|
|
114
115
|
*/
|
|
115
116
|
buildEnv?: Record<string, string> | (() => Promise<Record<string, string>>);
|
|
117
|
+
/**
|
|
118
|
+
* Opaque id that changes whenever {@link buildEnv} changes. When set, the
|
|
119
|
+
* template name hashes the revision instead of the {@link buildEnv}
|
|
120
|
+
* values, so secrets never enter the name. Never derive it from the values.
|
|
121
|
+
*/
|
|
122
|
+
buildEnvRevision?: string;
|
|
116
123
|
/**
|
|
117
124
|
* vCPUs allocated to sandboxes created from this template. Resources are
|
|
118
125
|
* a property of the built template, not of an individual sandbox, so this
|
|
@@ -148,6 +155,8 @@ export interface RepoTemplateIdentity {
|
|
|
148
155
|
sha?: string;
|
|
149
156
|
setupCommand?: string | string[];
|
|
150
157
|
buildEnv?: Record<string, string>;
|
|
158
|
+
/** See {@link RepoTemplateOptions.buildEnvRevision}. */
|
|
159
|
+
buildEnvRevision?: string;
|
|
151
160
|
cpuCount?: number;
|
|
152
161
|
memoryMB?: number;
|
|
153
162
|
workingDirectory?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-template.d.ts","sourceRoot":"","sources":["../../src/utils/repo-template.ts"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,KAAK,CAAC;AAGzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AA4D/E;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,mEAAmE;IACnE,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE;QAAE,MAAM,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACrD;AAED,qDAAqD;AACrD,MAAM,WAAW,sBAAsB;IACrC;;;;;;OAMG;IACH,mBAAmB,EAAE,MAAM,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;IACjE,4GAA4G;IAC5G,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,mBAAmB,CAAC,EAAE,CAAC,MAAM,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;IAChF;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACjC;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1C;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC
|
|
1
|
+
{"version":3,"file":"repo-template.d.ts","sourceRoot":"","sources":["../../src/utils/repo-template.ts"],"names":[],"m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AM,CAAA;CAAE,CAAC,CA8EpD;AAYD,oDAAoD;AACpD,MAAM,WAAW,yBAAyB;IACxC,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,wEAAwE;IACxE,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC3B,sDAAsD;IACtD,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,mBAAmB,EAC5B,UAAU,CAAC,EAAE,cAAc,GAC1B,OAAO,CAAC,yBAAyB,CAAC,CAYpC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/e2b",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0-alpha.0",
|
|
4
4
|
"description": "E2B cloud sandbox provider for Mastra workspaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@internal/types-builder": "0.0.123",
|
|
36
36
|
"@internal/workspace": "0.0.20",
|
|
37
37
|
"@internal/workspace-test-utils": "0.0.92",
|
|
38
|
-
"@mastra/core": "1.
|
|
39
|
-
"@mastra/gcs": "0.3.
|
|
38
|
+
"@mastra/core": "1.83.0-alpha.7",
|
|
39
|
+
"@mastra/gcs": "0.3.6-alpha.0",
|
|
40
40
|
"@mastra/s3": "0.6.5"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|