@mastra/e2b 0.11.0-alpha.0 → 0.11.0-alpha.2
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 +33 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +33 -14
- package/dist/index.js.map +1 -1
- package/dist/utils/repo-template.d.ts +12 -5
- package/dist/utils/repo-template.d.ts.map +1 -1
- package/package.json +5 -6
- package/CHANGELOG.md +0 -1047
|
@@ -43,11 +43,10 @@ export interface RepoTemplateOptions {
|
|
|
43
43
|
*/
|
|
44
44
|
getRepositoryAccess: (() => Promise<RepositoryAccess | undefined>) | undefined;
|
|
45
45
|
/**
|
|
46
|
-
* Setup command run inside the checkout
|
|
47
|
-
*
|
|
48
|
-
* command produces a new template.
|
|
46
|
+
* Setup command(s) run inside the checkout and hashed into the template name.
|
|
47
|
+
* Array entries run as separate cached build steps.
|
|
49
48
|
*/
|
|
50
|
-
setupCommand?: string;
|
|
49
|
+
setupCommand?: string | string[];
|
|
51
50
|
/**
|
|
52
51
|
* Extra environment for the build, available to every build step
|
|
53
52
|
* including {@link RepoTemplateOptions.setupCommand}. Use it for the
|
|
@@ -78,6 +77,13 @@ export interface RepoTemplateOptions {
|
|
|
78
77
|
* Defaults to the SDK default (1024).
|
|
79
78
|
*/
|
|
80
79
|
memoryMB?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Absolute parent for the checkout. Created by the build user, so its parent
|
|
82
|
+
* must already be writable by that user. Becomes the build cwd, the runtime
|
|
83
|
+
* cwd, and part of template identity; the repo lands at `<workingDirectory>/<repo>`.
|
|
84
|
+
* Omit to use the base image's working directory for all of the above.
|
|
85
|
+
*/
|
|
86
|
+
workingDirectory?: string;
|
|
81
87
|
}
|
|
82
88
|
/**
|
|
83
89
|
* Identity inputs for a repo template, already resolved. Separate from
|
|
@@ -90,10 +96,11 @@ export interface RepoTemplateIdentity {
|
|
|
90
96
|
cloneUrl: string;
|
|
91
97
|
/** Resolved head sha. Becomes the template's tag. */
|
|
92
98
|
sha?: string;
|
|
93
|
-
setupCommand?: string;
|
|
99
|
+
setupCommand?: string | string[];
|
|
94
100
|
buildEnv?: Record<string, string>;
|
|
95
101
|
cpuCount?: number;
|
|
96
102
|
memoryMB?: number;
|
|
103
|
+
workingDirectory?: string;
|
|
97
104
|
}
|
|
98
105
|
/**
|
|
99
106
|
* Compute the deterministic template ref for a set of repo template inputs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-template.d.ts","sourceRoot":"","sources":["../../src/utils/repo-template.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,KAAK,CAAC;AAGzD,OAAO,KAAK,EAAE,yBAAyB,EAAqB,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,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,mBAAmB,EAAE,CAAC,MAAM,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;IAC/E
|
|
1
|
+
{"version":3,"file":"repo-template.d.ts","sourceRoot":"","sources":["../../src/utils/repo-template.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,KAAK,CAAC;AAGzD,OAAO,KAAK,EAAE,yBAAyB,EAAqB,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;QAA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ACxC,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.11.0-alpha.
|
|
3
|
+
"version": "0.11.0-alpha.2",
|
|
4
4
|
"description": "E2B cloud sandbox provider for Mastra workspaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,17 +34,16 @@
|
|
|
34
34
|
"vitest": "4.1.10",
|
|
35
35
|
"@internal/types-builder": "0.0.104",
|
|
36
36
|
"@internal/workspace-test-utils": "0.0.73",
|
|
37
|
-
"@mastra/core": "1.
|
|
38
|
-
"@mastra/s3": "0.6.
|
|
39
|
-
"@mastra/gcs": "0.3.
|
|
37
|
+
"@mastra/core": "1.64.0-alpha.4",
|
|
38
|
+
"@mastra/s3": "0.6.2-alpha.0",
|
|
39
|
+
"@mastra/gcs": "0.3.3-alpha.0",
|
|
40
40
|
"@internal/lint": "0.0.129"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@mastra/core": ">=1.55.0-0 <2.0.0-0"
|
|
44
44
|
},
|
|
45
45
|
"files": [
|
|
46
|
-
"dist"
|
|
47
|
-
"CHANGELOG.md"
|
|
46
|
+
"dist"
|
|
48
47
|
],
|
|
49
48
|
"homepage": "https://mastra.ai",
|
|
50
49
|
"repository": {
|