feat(KB-310): migrate storage layer to SQLite with WAL mode and auto-migration

- Add SQLite database foundation with WAL mode, transactions, and JSON column helpers
- Implement auto-migration system from legacy file-based storage with .bak backup strategy
- Migrate TaskStore to SQLite with full test coverage (256 tests)
- Migrate AutomationStore to SQLite with full test coverage (48 tests)
- Add SQLite Storage Architecture documentation to AGENTS.md
- Include changeset for patch release
This commit is contained in:
gsxdsm
2026-03-31 13:04:34 -07:00
parent 210328000c
commit 129a365049
12 changed files with 2673 additions and 237 deletions

View File

@@ -0,0 +1,9 @@
---
"@dustinbyrne/kb": minor
---
Migrate storage from file-based JSON to SQLite (hybrid with files for blobs)
- Improved performance for large task counts via SQLite queries
- Better concurrent access support (WAL mode)
- Seamless auto-migration from legacy file-based data
- Zero breaking changes to store APIs