@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.js CHANGED
@@ -1788,9 +1788,10 @@ var PlatformSandbox = class PlatformSandbox extends MastraSandbox {
1788
1788
  }
1789
1789
  lastLease = lease;
1790
1790
  attemptsMade = attempt + 1;
1791
+ const leaseCwd = options?.cwd ?? this.workingDirectory;
1791
1792
  const execOptions = {
1792
1793
  command: fullCommand,
1793
- ...options?.cwd !== void 0 && { cwd: options.cwd },
1794
+ ...leaseCwd !== void 0 && { cwd: leaseCwd },
1794
1795
  ...filteredEnv !== void 0 && { env: filteredEnv },
1795
1796
  ...effectiveTimeout != null && effectiveTimeout > 0 && { timeoutMs: effectiveTimeout },
1796
1797
  ...this._webSocketFactory && { webSocketFactory: this._webSocketFactory }
@@ -1827,9 +1828,10 @@ var PlatformSandbox = class PlatformSandbox extends MastraSandbox {
1827
1828
  */
1828
1829
  async _tryExecViaPrivateNetwork(instanceUrl, fullCommand, effectiveTimeout, options) {
1829
1830
  const filteredEnv = this._execEnv(options);
1831
+ const privateNetCwd = options?.cwd ?? this.workingDirectory;
1830
1832
  const execOptions = {
1831
1833
  command: fullCommand,
1832
- ...options?.cwd !== void 0 && { cwd: options.cwd },
1834
+ ...privateNetCwd !== void 0 && { cwd: privateNetCwd },
1833
1835
  ...filteredEnv !== void 0 && { env: filteredEnv },
1834
1836
  ...effectiveTimeout != null && effectiveTimeout > 0 && { timeoutMs: effectiveTimeout },
1835
1837
  ...this._privateNetFetch && { fetch: this._privateNetFetch }