episoda 0.2.111 → 0.2.112

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.
@@ -2815,7 +2815,7 @@ var require_package = __commonJS({
2815
2815
  "package.json"(exports2, module2) {
2816
2816
  module2.exports = {
2817
2817
  name: "episoda",
2818
- version: "0.2.110",
2818
+ version: "0.2.111",
2819
2819
  description: "CLI tool for Episoda local development workflow orchestration",
2820
2820
  main: "dist/index.js",
2821
2821
  types: "dist/index.d.ts",
@@ -10626,19 +10626,14 @@ var Daemon = class _Daemon {
10626
10626
  }
10627
10627
  } else if (cmd.sessionContext === "project_root") {
10628
10628
  if (cmd.workspaceSlug && cmd.projectSlug) {
10629
- const resolvedProjectPath = path24.join(
10630
- process.env.HOME || projectPath,
10631
- "episoda",
10632
- cmd.workspaceSlug,
10633
- cmd.projectSlug
10634
- );
10629
+ const resolvedProjectPath = getProjectPath(cmd.workspaceSlug, cmd.projectSlug);
10635
10630
  if (resolvedProjectPath !== projectPath) {
10636
10631
  try {
10637
10632
  await fs23.promises.access(resolvedProjectPath);
10638
10633
  agentWorkingDir = resolvedProjectPath;
10639
- console.log(`[Daemon] EP1227: Agent for ${cmd.moduleUid || "project"} in resolved project path: ${agentWorkingDir}`);
10634
+ console.log(`[Daemon] EP1230: Agent for ${cmd.moduleUid || "project"} in resolved project path: ${agentWorkingDir}`);
10640
10635
  } catch {
10641
- console.log(`[Daemon] EP1227: Resolved project path not found, using projectPath: ${projectPath}`);
10636
+ console.log(`[Daemon] EP1230: Resolved project path not found, using projectPath: ${projectPath}`);
10642
10637
  }
10643
10638
  }
10644
10639
  } else {
@@ -11345,14 +11340,14 @@ var Daemon = class _Daemon {
11345
11340
  await tunnelManager.initialize();
11346
11341
  const moduleStatuses = [];
11347
11342
  const expectedModuleUids = new Set(modules.map((m) => m.uid));
11348
- for (const module2 of modules) {
11349
- const moduleUid = module2.uid;
11343
+ for (const mod of modules) {
11344
+ const moduleUid = mod.uid;
11350
11345
  const worktree = await getWorktreeInfoForModule(moduleUid);
11351
11346
  const tunnelRunning = tunnelManager.hasTunnel(moduleUid);
11352
11347
  const tunnelInfo = tunnelManager.getTunnel(moduleUid);
11353
11348
  const status = {
11354
11349
  moduleUid,
11355
- moduleState: module2.state,
11350
+ moduleState: mod.state,
11356
11351
  worktreeExists: worktree?.exists || false,
11357
11352
  worktreePath: worktree?.path,
11358
11353
  tunnelRunning,
@@ -11702,9 +11697,9 @@ var Daemon = class _Daemon {
11702
11697
  if (response.ok) {
11703
11698
  const data = await response.json();
11704
11699
  if (data.modules && Array.isArray(data.modules)) {
11705
- for (const module2 of data.modules) {
11706
- if (module2.uid) {
11707
- activeModuleUids.push(module2.uid);
11700
+ for (const mod of data.modules) {
11701
+ if (mod.uid) {
11702
+ activeModuleUids.push(mod.uid);
11708
11703
  }
11709
11704
  }
11710
11705
  }