episoda 0.2.105 → 0.2.107

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
@@ -3790,7 +3790,13 @@ var WorktreeManager = class _WorktreeManager {
3790
3790
  }
3791
3791
  };
3792
3792
  function getEpisodaRoot() {
3793
- return process.env.EPISODA_ROOT || path3.join(require("os").homedir(), "episoda");
3793
+ if (process.env.EPISODA_ROOT) {
3794
+ return process.env.EPISODA_ROOT;
3795
+ }
3796
+ if (process.env.EPISODA_MODE === "cloud") {
3797
+ return process.env.HOME || "/home/episoda";
3798
+ }
3799
+ return path3.join(require("os").homedir(), "episoda");
3794
3800
  }
3795
3801
  function getProjectPath(workspaceSlug, projectSlug) {
3796
3802
  return path3.join(getEpisodaRoot(), workspaceSlug, projectSlug);