v1.1.0-alpha — FTS per-file delete hardening
ast-sgrep v1.1.0-alpha
Hybrid code search that understands intent — lexical FTS + AST graph + offline semantic ranking. Alpha quality; APIs may change.
Highlights
Fixed: FTS per-file delete performance and correctness
- Rowid-based FTS deletes: replace O(N²)
DELETE FROM lines_fts WHERE file_id=?with rowids collected fromlines, then chunked deletes onlines_trigram(external content) andlines_fts. - Missing
file_idindexes: add indexes onsymbols,callers,imports, andsemantic_chunksso ordinary per-file deletes stay linear. - Schema v5: existing databases pick up the new indexes via migration.
- Hardened row deletion path with targeted tests for stale-FTS correctness, per-table deletion, and linear re-upsert performance.
Install
git clone https://github.com/AdityaVG13/ast-sgrep
cd ast-sgrep
git checkout v1.1.0-alpha
cargo build --release -p ast-sgrep-cli
./target/release/asgrep --versionBinaries: asgrep / ast-sgrep. Also: asgrep-lsp, asgrep-mcp.
Not in this release
- crates.io packages
- Homebrew bottles / homebrew-core (formula stub under
packaging/homebrew/, SHA still placeholder until digest is filled) - Production stability guarantees