Description
Build a persistent symbol index for projects using existing AST cross-file dependency extraction (v0.4, #114).
When cora index is run, it should:
- Parse source files using existing AST pipeline
- Extract function/class/method/variable/type declarations
- Build a symbol table with file location, kind, and metadata
- Store in local SQLite database (
.cora/index.db with FTS5 for full-text search)
- Support incremental re-index (only changed files)
Why
Foundation for code intelligence. Without a persistent index, there's nothing to query. This is the storage layer that cora explore, cora callers, cora impact, and cora affected will all build on.
Scope
- Leverage existing
src/ast.rs cross-file dependency extraction
- New
src/index.rs module for index building and storage
- SQLite schema with symbols table + FTS5 virtual table
- File fingerprinting (mtime + content hash) for incremental sync
Depends On
Strategy Ref
Code intelligence strategy #1 from competitive analysis.
Description
Build a persistent symbol index for projects using existing AST cross-file dependency extraction (v0.4, #114).
When
cora indexis run, it should:.cora/index.dbwith FTS5 for full-text search)Why
Foundation for code intelligence. Without a persistent index, there's nothing to query. This is the storage layer that
cora explore,cora callers,cora impact, andcora affectedwill all build on.Scope
src/ast.rscross-file dependency extractionsrc/index.rsmodule for index building and storageDepends On
Strategy Ref
Code intelligence strategy #1 from competitive analysis.