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 |
||
|---|---|---|
| .. | ||
| compactor.go | ||
| compactor_test.go | ||
| compactor_unit_test.go | ||
| git.go | ||
| git_test.go | ||
| haiku.go | ||
| haiku_test.go | ||