agent-dag 1.29.2 → 1.30.0

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/agent-dag.js CHANGED
@@ -176,6 +176,19 @@ if (wantCodex) {
176
176
  // the command for THIS machine, picked from what is already on it.
177
177
  if (cs.hint) process.stdout.write(` ${C.dim}${cs.hint}${C.reset}\n`);
178
178
  }
179
+
180
+ // A working claude-swap with an empty store still leaves the panel useless,
181
+ // so the account already signed in is registered once. Bounded inside
182
+ // seedFirstAccount: empty store only, once ever, never with NO_INSTALL set.
183
+ if (cs.state === "present" || cs.state === "installed" || cs.state === "upgrading") {
184
+ const { seedFirstAccount } = await import(pathToFileURL(join(PKG_ROOT, "src/server/claude-accounts.mjs")).href);
185
+ const seed = await seedFirstAccount().catch(() => ({ state: "failed" }));
186
+ if (seed.state === "added") {
187
+ process.stdout.write(` ${C.green}✓${C.reset} accounts ${C.dim}registered the signed-in account (cswap add)${C.reset}\n`);
188
+ } else if (seed.state === "failed" || seed.state === "nothing-to-add") {
189
+ process.stdout.write(` ${C.dim} accounts panel empty — sign in to Claude Code, then run cswap add${C.reset}\n`);
190
+ }
191
+ }
179
192
  }
180
193
 
181
194
  // ccusage backs the usage-history modal. Primed here rather than on first