beads/internal/compact
opal cb1e355511 refactor(rpc): fix leaky abstraction - remove direct sqlite imports (bd-oslm)
The RPC layer was directly importing storage/sqlite and doing type
assertions to *sqlite.SQLiteStorage, which broke abstraction and
prevented Dolt backend from using certain features.

Changes:
- Add CompactableStorage and BatchDeleter interfaces to storage package
- Move CompactionCandidate and DeleteIssuesResult types to internal/types
- Update RPC handlers to use interface type assertions instead of concrete types
- Update compact package to accept interface instead of concrete type
- Remove unnecessary type assertions where methods exist on Storage interface

This enables Dolt (and future backends) to implement optional features
like compaction and batch delete through proper interface extension.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Executed-By: beads/opal
Rig: beads
Role: polecat
2026-01-26 20:28:27 -08:00
..
compactor.go refactor(rpc): fix leaky abstraction - remove direct sqlite imports (bd-oslm) 2026-01-26 20:28:27 -08:00
compactor_test.go Fix test compilation errors: add context.Background() to sqlite.New() calls 2025-11-21 14:57:18 -05:00
compactor_unit_test.go test: expand compact and ui coverage 2025-12-29 16:01:11 -08:00
git.go feat(context): centralize RepoContext API for git operations (#1102) 2026-01-15 07:55:08 -08:00
git_test.go test: expand routing and compact coverage 2025-12-29 14:18:33 -08:00
haiku.go bd sync: 2025-12-23 23:38:57 2025-12-24 00:06:41 -08:00
haiku_test.go test: expand compact and ui coverage 2025-12-29 16:01:11 -08:00