feat: Add persistent SQLite storage and searchable learnings#1
feat: Add persistent SQLite storage and searchable learnings#1
Conversation
- Add SQLite database with FTS5 full-text search at ~/.pro-workflow/data.db - Implement stateless store factory pattern for database operations - Add BM25-powered search for learnings with prefix matching and phrase search - Update hooks to use database: session-start, session-end, quality-gate, prompt-submit - Add new commands: /learn, /search, /list for database operations - Track session analytics: edit count, corrections, prompts - Add TypeScript source with better-sqlite3 dependency - Graceful fallback to file-based storage when database unavailable - Bump version to 1.1.0
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Fix session update logic with proper fallback tracking - Change INSERT OR REPLACE to INSERT OR IGNORE for sessions - Add GitHub Actions workflows and Dependabot config
Summary
~/.pro-workflow/data.db/learn,/search,/listNew Features
Persistent Storage
Learnings now survive reboots, stored in
~/.pro-workflow/data.dbFull-Text Search
Session Analytics
Track edits, corrections, and prompts per session
New Commands
/learn/search <query>/listFiles Changed
src/db/- Database initialization, store factory, schemasrc/search/fts.ts- BM25 search helperscommands/learn.md,search.md,list.mdpackage.jsonwith better-sqlite3 dependencyTest plan
npm install && npm run build~/.pro-workflow/data.db