Skip to content

Commit e647ddf

Browse files
committed
chore(release): prepare v0.3.0
Why: - Cut the v0.3.0 release with minified JS fast-skip (ENGINE_VERSION = 15), CLI/MCP session deduplication, compact/budgeted output controls, transparent CLI auto-sync, multi-symbol queries, and tail_idx dynamic-dispatch hints. What: - Bump [workspace.package] version in Cargo.toml (and workspace entries in Cargo.lock) from 0.2.0 to 0.3.0 while leaving vendored cg-kernel untouched. - Cut section 0.3.0 (2026-11-23) in CHANGELOG.md.
1 parent 6f5745d commit e647ddf

3 files changed

Lines changed: 50 additions & 11 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,44 @@
22

33
## Unreleased
44

5+
## 0.3.0 — 2026-11-23
6+
7+
### Context efficiency, minified-bundle skipping, transparent sync, and dynamic-dispatch hints (`ENGINE_VERSION = 15`)
8+
9+
- **Minified / compiled JS bundle fast-skip (`cg-scan`, `cg-extract`)**:
10+
- Skip Tree-sitter AST extraction for minified and compiled JS bundles (`*.min.[cm]?js`,
11+
webpack runtimes, Closure/Emscripten bundles such as `draco_encoder.js` and `ammo.wasm.js`),
12+
retaining them as `GENERATED` file nodes so `status`, `files`, and `node <file>` remain intact.
13+
- String/template/comment-aware JS syntax scanner in `cg_scan::generated::is_minified_content`
14+
prevents false positives on hand-written modules embedding large numeric lookup tables
15+
(e.g. `RectAreaLightUniformsLib.js`), base64 data URIs, or minified CSS/HTML template literals.
16+
- Real-world impact on `mrdoob/three.js` (1,291 files, `--release`): full indexing drops from
17+
`1,273 ms` to `405 ms` (**3.1× faster**; extraction `1,124 ms → 295 ms`), peak RSS drops from
18+
`631 MB` to `245 MB` (**-61%**), and index size shrinks from `23.0 MB` to `15.4 MB` (**-33%**).
19+
- **Session-persistent deduplication & compact/budgeted output (`cg-query`, `cg-mcp`, `cgr`)**:
20+
- Upgrade `explore::History` to a serializable 32-call sliding window with interval coalescing,
21+
exact interval subtraction for merged source windows, rendered-range dedup in focused
22+
one-symbol `explore`, and section-end-offset tracking so truncated bodies are never cached.
23+
- Add CLI `--session <ID>` / `CGR_SESSION` persistence under `.cgr/sessions/` with per-session
24+
advisory locking + reload-merge (`History::save_merged`) for parallel CLI calls, plus
25+
`--no-dedup` opt-out.
26+
- Add `--compact` (`compact` in MCP `explore`) for low-context call-flow + blast-radius +
27+
symbol outlines without dumping source bodies (never poisons dedup history), and `--max-chars`
28+
(`maxChars` in MCP `explore` and `node`) with strict cap enforcement including oversized single lines.
29+
- **Transparent auto-sync, multi-symbol queries, and CLI cleanups (`cg-sync`, `cgr`)**:
30+
- Add global `--sync` / `--no-sync` flags and `CGR_AUTO_SYNC=1` across all query commands with
31+
bounded `SyncOptions::lock_timeout` graceful fallback so edits no longer require a separate sync turn.
32+
- Support multiple symbols/targets in a single mmap open on `cgr callers`, `cgr callees`,
33+
`cgr impact`, `cgr implementations`, and `cgr node`.
34+
- Expose reference resolution counts and `resolvedRate` under `refs` in `cgr status --json`,
35+
and remove duplicate `measure_changes` in `status` and redundant `Project::open` in `node`.
36+
- **Calibrated dynamic-dispatch / ambiguity hints via on-disk `tail_idx` (`cg-store`, `cg-query`)**:
37+
- Add $O(\log R)$ `View::unresolved_refs_by_tail` and `View::unresolved_refs_from` with
38+
`UnresolvedScope` (`CallLike` vs `Dependency`) and order-independent top-K base+delta parity.
39+
- Surface concise unresolved / ambiguous / dynamic-receiver candidate sites on zero-result
40+
`callers`, `callees`, `impact`, and focused one-symbol `explore` responses without adding
41+
false-positive graph edges.
42+
543
## 0.2.0 — 2026-11-22
644

745
### Vue/Svelte SFC support and deep Rust/Kotlin/Python inference (`ENGINE_VERSION = 14`)

‎Cargo.lock‎

Lines changed: 11 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ members = [
1515
]
1616

1717
[workspace.package]
18-
version = "0.2.0"
18+
version = "0.3.0"
1919
edition = "2021"
2020
license = "MIT"
2121
repository = "https://github.com/NianJiuZst/CodeGraph-Rust"

0 commit comments

Comments
 (0)