fix(init): allow fresh clones with JSONL to run bd init (bd-4h9)

Previously, bd init blocked when JSONL existed with issues but no database,
telling users to run 'bd doctor --fix'. But doctor --fix just ran bd migrate
which requires an existing database - creating a circular dependency.

Now:
- bd init allows fresh clones (JSONL exists, no database) to proceed
- bd init creates the database and imports from JSONL automatically
- bd doctor --fix runs bd init (not migrate) when there's no database

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-11-30 21:17:42 -08:00
parent d3dafcf76e
commit 3df138445a
3 changed files with 33 additions and 40 deletions

View File

@@ -94,3 +94,4 @@
{"id":"bd-tjn","ts":"2025-12-01T05:13:13.738456Z","by":"git-history-backfill","reason":"recovered from git history (pruned from manifest)"}
{"id":"bd-qvj","ts":"2025-12-01T05:13:13.743949Z","by":"git-history-backfill","reason":"recovered from git history (pruned from manifest)"}
{"id":"bd-clg","ts":"2025-12-01T05:13:13.748995Z","by":"git-history-backfill","reason":"recovered from git history (pruned from manifest)"}
{"id":"bd-4h9","ts":"2025-12-01T05:18:00.744362Z","by":"git-history-backfill","reason":"recovered from git history (pruned from manifest)"}