episoda 0.2.110 → 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.
|
|
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",
|
|
@@ -10625,7 +10625,20 @@ var Daemon = class _Daemon {
|
|
|
10625
10625
|
console.log(`[Daemon] EP1205: Worktree requested but not found for ${cmd.moduleUid}, using project root`);
|
|
10626
10626
|
}
|
|
10627
10627
|
} else if (cmd.sessionContext === "project_root") {
|
|
10628
|
-
|
|
10628
|
+
if (cmd.workspaceSlug && cmd.projectSlug) {
|
|
10629
|
+
const resolvedProjectPath = getProjectPath(cmd.workspaceSlug, cmd.projectSlug);
|
|
10630
|
+
if (resolvedProjectPath !== projectPath) {
|
|
10631
|
+
try {
|
|
10632
|
+
await fs23.promises.access(resolvedProjectPath);
|
|
10633
|
+
agentWorkingDir = resolvedProjectPath;
|
|
10634
|
+
console.log(`[Daemon] EP1230: Agent for ${cmd.moduleUid || "project"} in resolved project path: ${agentWorkingDir}`);
|
|
10635
|
+
} catch {
|
|
10636
|
+
console.log(`[Daemon] EP1230: Resolved project path not found, using projectPath: ${projectPath}`);
|
|
10637
|
+
}
|
|
10638
|
+
}
|
|
10639
|
+
} else {
|
|
10640
|
+
console.log(`[Daemon] EP1205: Agent for ${cmd.moduleUid || "project"} in project root (sessionContext=project_root)`);
|
|
10641
|
+
}
|
|
10629
10642
|
} else {
|
|
10630
10643
|
if (cmd.moduleUid) {
|
|
10631
10644
|
const worktreeInfo = await getWorktreeInfoForModule(cmd.moduleUid);
|
|
@@ -11327,14 +11340,14 @@ var Daemon = class _Daemon {
|
|
|
11327
11340
|
await tunnelManager.initialize();
|
|
11328
11341
|
const moduleStatuses = [];
|
|
11329
11342
|
const expectedModuleUids = new Set(modules.map((m) => m.uid));
|
|
11330
|
-
for (const
|
|
11331
|
-
const moduleUid =
|
|
11343
|
+
for (const mod of modules) {
|
|
11344
|
+
const moduleUid = mod.uid;
|
|
11332
11345
|
const worktree = await getWorktreeInfoForModule(moduleUid);
|
|
11333
11346
|
const tunnelRunning = tunnelManager.hasTunnel(moduleUid);
|
|
11334
11347
|
const tunnelInfo = tunnelManager.getTunnel(moduleUid);
|
|
11335
11348
|
const status = {
|
|
11336
11349
|
moduleUid,
|
|
11337
|
-
moduleState:
|
|
11350
|
+
moduleState: mod.state,
|
|
11338
11351
|
worktreeExists: worktree?.exists || false,
|
|
11339
11352
|
worktreePath: worktree?.path,
|
|
11340
11353
|
tunnelRunning,
|
|
@@ -11684,9 +11697,9 @@ var Daemon = class _Daemon {
|
|
|
11684
11697
|
if (response.ok) {
|
|
11685
11698
|
const data = await response.json();
|
|
11686
11699
|
if (data.modules && Array.isArray(data.modules)) {
|
|
11687
|
-
for (const
|
|
11688
|
-
if (
|
|
11689
|
-
activeModuleUids.push(
|
|
11700
|
+
for (const mod of data.modules) {
|
|
11701
|
+
if (mod.uid) {
|
|
11702
|
+
activeModuleUids.push(mod.uid);
|
|
11690
11703
|
}
|
|
11691
11704
|
}
|
|
11692
11705
|
}
|