agent-dag 1.33.69 → 1.33.71

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
@@ -79,7 +79,7 @@ const persist = flags.noPersist
79
79
 
80
80
  const { installHooks, writeDiscovery, removeDiscovery, hasCodexInstalled } =
81
81
  await import(pathToFileURL(join(PKG_ROOT, "src/server/installer.mjs")).href);
82
- const { startServer } =
82
+ const { startServer, hookToken } =
83
83
  await import(pathToFileURL(join(PKG_ROOT, "src/server/index.mjs")).href);
84
84
 
85
85
  // Codex hooks install when ~/.codex/ exists, unless --no-codex was passed.
@@ -328,7 +328,9 @@ if (RESPAWN) {
328
328
  else process.stdout.write("\n");
329
329
  }
330
330
 
331
- const discoveryFile = await writeDiscovery({ port: realPort, workspace });
331
+ // The token goes in with the port: it is what lets a hook tell this deck from
332
+ // whatever else may later be listening on the same number. See hookToken().
333
+ const discoveryFile = await writeDiscovery({ port: realPort, workspace, token: hookToken() });
332
334
 
333
335
  // Never on a respawn: the tab that asked for the restart is still open and
334
336
  // reconnecting on its own. A second one would be the deck talking over itself.