@mastra/platform-workspace 1.5.0-alpha.0 → 1.5.0-alpha.1
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 +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/sandbox.d.ts.map +1 -1
- package/package.json +4 -5
- package/CHANGELOG.md +0 -826
package/dist/index.cjs
CHANGED
|
@@ -1812,9 +1812,10 @@ var PlatformSandbox = class PlatformSandbox extends _mastra_core_workspace.Mastr
|
|
|
1812
1812
|
}
|
|
1813
1813
|
lastLease = lease;
|
|
1814
1814
|
attemptsMade = attempt + 1;
|
|
1815
|
+
const leaseCwd = options?.cwd ?? this.workingDirectory;
|
|
1815
1816
|
const execOptions = {
|
|
1816
1817
|
command: fullCommand,
|
|
1817
|
-
...
|
|
1818
|
+
...leaseCwd !== void 0 && { cwd: leaseCwd },
|
|
1818
1819
|
...filteredEnv !== void 0 && { env: filteredEnv },
|
|
1819
1820
|
...effectiveTimeout != null && effectiveTimeout > 0 && { timeoutMs: effectiveTimeout },
|
|
1820
1821
|
...this._webSocketFactory && { webSocketFactory: this._webSocketFactory }
|
|
@@ -1851,9 +1852,10 @@ var PlatformSandbox = class PlatformSandbox extends _mastra_core_workspace.Mastr
|
|
|
1851
1852
|
*/
|
|
1852
1853
|
async _tryExecViaPrivateNetwork(instanceUrl, fullCommand, effectiveTimeout, options) {
|
|
1853
1854
|
const filteredEnv = this._execEnv(options);
|
|
1855
|
+
const privateNetCwd = options?.cwd ?? this.workingDirectory;
|
|
1854
1856
|
const execOptions = {
|
|
1855
1857
|
command: fullCommand,
|
|
1856
|
-
...
|
|
1858
|
+
...privateNetCwd !== void 0 && { cwd: privateNetCwd },
|
|
1857
1859
|
...filteredEnv !== void 0 && { env: filteredEnv },
|
|
1858
1860
|
...effectiveTimeout != null && effectiveTimeout > 0 && { timeoutMs: effectiveTimeout },
|
|
1859
1861
|
...this._privateNetFetch && { fetch: this._privateNetFetch }
|