agent-dag 3.8.4 → 3.8.6

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/bin/deck.js CHANGED
@@ -164,14 +164,18 @@ const openBrowser = flags.noOpen !== true;
164
164
  // config dir rather than assuming ~/.claude — see src/server/claude-dir.mjs.
165
165
  const { claudeConfigDir, hasClaudeInstalled } =
166
166
  await import(pathToFileURL(join(PKG_ROOT, "src/server/claude-dir.mjs")).href);
167
- // Resolved here rather than left as typed: the discovery file publishes this
168
- // path so the hook can tell which decks share one log and elect a single
167
+ // CANONICALISED here rather than left as typed: the discovery file publishes
168
+ // this path so the hook can tell which decks share one log and elect a single
169
169
  // writer for it, and two spellings of one file would read as two files.
170
- // startServer resolves it the same way, from this same process, so the two
171
- // always name the same file.
170
+ // startServer takes the value from here, so the two always name the same file.
171
+ //
172
+ // `resolve` alone was not enough and #793 is what that cost — see
173
+ // canonicalLogPath, which owns the rule and explains it beside the election it
174
+ // serves.
175
+ const { canonicalLogPath } = await import(pathToFileURL(join(PKG_ROOT, "src/server/log-writer.mjs")).href);
172
176
  const persist = flags.noPersist
173
177
  ? null
174
- : resolve(flags.history ?? join(claudeConfigDir(), "agent-dag", "events.jsonl"));
178
+ : canonicalLogPath(flags.history ?? join(claudeConfigDir(), "agent-dag", "events.jsonl"));
175
179
 
176
180
  const { installHooks, keepDiscovery, removeDiscovery, hasCodexInstalled } =
177
181
  await import(pathToFileURL(join(PKG_ROOT, "src/server/installer.mjs")).href);