Refactor database integration to use bun:sqlite instead of better-sqlite3

- Updated import statements across multiple files to use bun:sqlite.
- Changed database query methods from `prepare` to `query` for consistency.
- Removed dependency on better-sqlite3 from package.json and adjusted package.json to specify bun as the engine.
- Modified hook installation process to eliminate unnecessary dependency installation.
- Updated migration scripts to align with bun:sqlite's API.
This commit is contained in:
Alex Newman
2025-10-15 15:03:43 -04:00
parent b5bfc029c3
commit 2663121d9f
14 changed files with 351 additions and 364 deletions
+1 -2
View File
@@ -30,7 +30,7 @@
},
"type": "module",
"engines": {
"node": ">=18.0.0"
"bun": ">=1.0.0"
},
"bin": {
"claude-mem": "./dist/claude-mem.min.js"
@@ -44,7 +44,6 @@
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.0",
"@clack/prompts": "^0.11.0",
"better-sqlite3": "^11.8.1",
"boxen": "^8.0.1",
"chalk": "^5.6.0",
"commander": "^14.0.0",