@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 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
- ...options?.cwd !== void 0 && { cwd: options.cwd },
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
- ...options?.cwd !== void 0 && { cwd: options.cwd },
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 }