Commit Graph

855 Commits

Author SHA1 Message Date
Steve Yegge 75a118b47c bd sync: 2025-10-31 19:21:40 2025-10-31 19:21:40 -07:00
Steve Yegge 45504dde91 bd sync: 2025-10-31 19:10:08 2025-10-31 19:10:08 -07:00
Steve Yegge 4fbff148f0 bd sync: 2025-10-31 18:27:27 2025-10-31 18:27:27 -07:00
Steve Yegge 19c1c1570d bd sync: 2025-10-31 18:05:57 2025-10-31 18:06:05 -07:00
Steve Yegge 5b342ff827 bd sync: apply rename detection from import 2025-10-31 17:56:47 -07:00
Steve Yegge c2f7019786 bd sync: 2025-10-31 17:56:46 2025-10-31 17:56:47 -07:00
Steve Yegge ddc04eb6f9 bd sync: 2025-10-31 17:54:26 2025-10-31 17:54:26 -07:00
Steve Yegge 48fdb3ee9c bd sync: 2025-10-31 17:54:06 2025-10-31 17:54:06 -07:00
Steve Yegge cbd0bf0b53 bd sync: 2025-10-31 17:54:01 2025-10-31 17:54:01 -07:00
Steve Yegge 29f77b2220 bd sync: 2025-10-31 17:53:48 2025-10-31 17:53:49 -07:00
Steve Yegge a60ae8d2de bd sync: 2025-10-31 17:51:09 2025-10-31 17:51:09 -07:00
Steve Yegge dd959d09cd bd sync: 2025-10-31 17:47:46 2025-10-31 17:47:46 -07:00
Steve Yegge 7eb315bbe0 bd sync: 2025-10-31 17:41:02 2025-10-31 17:41:04 -07:00
Steve Yegge d5483574fd Rebuild DB from JSONL after corruption cleanup
- Database had 72 duplicate issues from incomplete migration
- Sequential IDs (no content_hash) mixed with hash IDs
- Removed corrupt DB, rebuilt from JSONL (source of truth)
- 225 → 153 issues (duplicates eliminated)
- Updated config.json version to 0.20.1
2025-10-31 17:15:55 -07:00
Steve Yegge a1b1b5b559 bd sync: 2025-10-31 17:15:49 2025-10-31 17:15:49 -07:00
Steve Yegge 33565f10db bd sync: 2025-10-31 15:12:13 2025-10-31 15:12:13 -07:00
Steve Yegge c070a9e7d4 bd sync: 2025-10-31 14:36:24 2025-10-31 14:36:24 -07:00
Steve Yegge b2b0373d08 bd sync: 2025-10-31 14:36:12 2025-10-31 14:36:12 -07:00
Steve Yegge b9b1b162d1 bd sync: 2025-10-31 14:24:43 2025-10-31 14:24:43 -07:00
Steve Yegge 6dc768797e Update issues: close bd-a5e2bd80 epic and children 2025-10-31 13:51:22 -07:00
Steve Yegge 415f2e8206 bd sync: 2025-10-31 12:32:54 2025-10-31 12:32:54 -07:00
Steve Yegge 0c908f1fd5 bd sync: 2025-10-31 12:22:35 2025-10-31 12:22:35 -07:00
Steve Yegge 75b8e23c14 bd sync: apply rename detection from import 2025-10-31 12:00:44 -07:00
Steve Yegge f0858bbf38 bd sync: 2025-10-31 12:00:43 2025-10-31 12:00:43 -07:00
Steve Yegge 1e99b251a6 bd sync: 2025-10-31 12:00:10 2025-10-31 12:00:10 -07:00
Steve Yegge 053edadf14 bd sync: apply rename detection from import 2025-10-31 10:43:25 -07:00
Steve Yegge 042e4a1799 bd sync: 2025-10-31 10:43:24 2025-10-31 10:43:24 -07:00
Steve Yegge 95b424035c bd sync: 2025-10-31 01:58:36 2025-10-31 01:58:36 -07:00
Steve Yegge 9225114c0b Fix tests after --resolve-collisions removal
Remove obsolete test file and update remaining tests to not use the
removed --resolve-collisions flag. Hash-based IDs make collision
resolution unnecessary.

Changes:
- Delete internal/rpc/server_autoimport_test.go (obsolete)
- Remove --resolve-collisions from beads_nway_test.go
- Remove --resolve-collisions from beads_twoclone_test.go
- Remove --resolve-collisions from cmd/bd/sync.go

All tests now pass.
2025-10-31 01:25:05 -07:00
Steve Yegge 0725c33fcc Remove vestigial --resolve-collisions flag
Hash-based IDs make collision resolution unnecessary. The flag was
already non-functional (handleCollisions returns error on collision
regardless of flag value).

Removed:
- --resolve-collisions flag from bd import
- ResolveCollisions field from ImportOptions and importer.Options
- All references in daemon, auto-import, and tests
- Updated error messages to reflect hash IDs don't collide

All import tests pass.

Amp-Thread-ID: https://ampcode.com/threads/T-47dfa0cc-bb71-4467-ac86-f0966a7c5d58
Co-authored-by: Amp <amp@ampcode.com>
2025-10-31 01:07:42 -07:00
Steve Yegge b0f6630d0d bd sync: 2025-10-31 00:48:50 2025-10-31 00:48:50 -07:00
Steve Yegge 4e9f6e131c bd sync: 2025-10-31 00:19:27 2025-10-31 00:19:27 -07:00
Steve Yegge 613f0dfff4 removed obsolete/wrong database file 2025-10-30 22:47:49 -07:00
Steve Yegge 892c22145f bd sync: 2025-10-30 22:30:33 2025-10-30 22:30:33 -07:00
Steve Yegge 4a21005a31 bd sync: 2025-10-30 22:24:33 2025-10-30 22:24:33 -07:00
Steve Yegge e441a5c04c bd sync: 2025-10-30 22:17:47 2025-10-30 22:17:47 -07:00
Steve Yegge 016fc155f3 bd sync: 2025-10-30 21:58:53 2025-10-30 21:58:53 -07:00
Steve Yegge 0f7ed1bdb4 bd sync: 2025-10-30 21:51:32 2025-10-30 21:51:32 -07:00
Steve Yegge fb48d681a1 bd sync: 2025-10-30 21:40:44 2025-10-30 21:40:44 -07:00
Steve Yegge b0de8d54c2 bd sync: 2025-10-30 20:24:57 2025-10-30 20:24:57 -07:00
Steve Yegge ca81df93f0 bd sync: 2025-10-30 20:02:40 2025-10-30 20:02:40 -07:00
Steve Yegge 71fc67f4e3 bd sync: 2025-10-30 19:57:06 2025-10-30 19:57:06 -07:00
Steve Yegge b8c5ca8330 bd sync: 2025-10-30 19:56:03 2025-10-30 19:56:03 -07:00
Steve Yegge 9ab3ffe6f9 bd sync: 2025-10-30 19:53:13 2025-10-30 19:53:13 -07:00
Steve Yegge 11c26d5af8 Add substring ID matching for all bd commands
- Enhanced ResolvePartialID to handle:
  - Bare hashes: 07b8c8 → bd-07b8c8
  - Prefix without hyphen: bd07b8c8 → bd-07b8c8
  - Full IDs: bd-07b8c8 (unchanged)
  - Substring matching: 07b → finds bd-07b8c8

- Added RPC support:
  - New OpResolveID operation
  - handleResolveID server handler
  - ResolveID client method

- Updated all commands to resolve IDs:
  - show, update, close, reopen
  - dep (add, remove, tree)
  - label (add, remove, list)

- Works in both daemon and direct modes

Fixes bd-0591c3
2025-10-30 19:20:50 -07:00
Steve Yegge 185c734d75 bd sync: 2025-10-30 19:14:20 2025-10-30 19:14:20 -07:00
Steve Yegge 13fcccb14d bd sync: 2025-10-30 18:37:06 2025-10-30 18:37:06 -07:00
Steve Yegge cd7bdb301d Generate 6-char hash IDs with progressive 7/8-char fallback on collision (bd-7c87cf24)
- Changed generateHashID to start with 6 chars (3 bytes), expand to 7/8 on collision
- Updated both CreateIssue and CreateIssues (batch) to use progressive length fallback
- Updated tests to accept 9-11 char IDs (bd- + 6-8 hex chars)
- All new issues now generate with shorter, more readable IDs
- Existing 8-char IDs preserved (no migration needed)

Amp-Thread-ID: https://ampcode.com/threads/T-8a6058af-9f42-4bff-be02-8c8bce41eeb5
Co-authored-by: Amp <amp@ampcode.com>
2025-10-30 18:16:24 -07:00
Steve Yegge ba4ad179e0 bd sync: 2025-10-30 17:52:49 2025-10-30 17:52:49 -07:00
Steve Yegge 91cc129b47 bd sync: 2025-10-30 17:47:18 2025-10-30 17:47:18 -07:00