Commit 0f892db
Implement end-to-end MVP: CLI init → index → MCP tools
This commit completes the core MVP implementation:
**Core Storage Layer (@codebrain/core)**
- Add SQLite schema with signals, documents, scopes tables
- Implement SQLiteStorage class with SignalStore, DocumentStore, ScopeStore
- Full-text search via FTS5 virtual tables with sync triggers
- Add better-sqlite3 dependency for synchronous SQLite access
**CLI (@codebrain/cli)**
- Add config-loader.ts with jiti for TypeScript config loading
- Implement `codebrain init` command (creates .codebrain, config, database)
- Implement `codebrain index` command (indexes Claude Code conversations)
- Implement `codebrain status` command (shows database statistics)
- Implement `codebrain search/context/export` commands
- Auto-detect Claude Code project paths
**MCP Server (@codebrain/mcp-server)**
- Wire all tool handlers to use SQLiteStorage
- Implement codebrain_search, codebrain_context, codebrain_validate
- Implement codebrain_record, codebrain_status tools
**Verified:**
- Build passes (all 5 packages)
- TypeScript check passes
- ESLint passes
- CLI commands work: init, index, status
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent f6706d0 commit 0f892db
12 files changed
Lines changed: 2227 additions & 198 deletions
File tree
- packages
- cli
- src
- core
- src
- mcp-server/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments