You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLI additions from the residual audit (source already staged pre-session):
- rebuild-index --confirm: wipes .code-graph/index.db + WAL/SHM then
re-runs full index. Destructive-op guard refuses degenerate project_root.
- callgraph/refs/search fuzzy auto-resolve mirrors MCP resolve_fuzzy_name
(unique promote, ambiguous list with node_id/start_line).
- ast-search --json now emits {results,count} envelope (MCP parity).
- trace --json emits single-object envelope even on no-match.
- refs --node-id envelope matches MCP find_references shape.
- health-check --json adds embedding_coverage_pct / embedding_status /
model_available; search_mode gated on model availability.
- search/ast-search --limit clamp(1,100).
Doc correction from the 12-tool UX audit:
- claude-plugin/templates/plugin_code_graph_mcp.md "进阶 5" reworded.
The v0.10.0 claim "hidden but callable by name" only holds for clients
invoking tools/call with a literal name (raw JSON-RPC, MCP SDKs, CLI).
Claude Code derives its callable set from tools/list — ToolSearch returns
No matching deferred tools found, direct invocation errors with
"No such tool available". Table now leads with CLI column for Claude Code
users; raw MCP name-call retained for SDK/scripts. Auto-refreshes to
previously-adopted projects on next SessionStart (v0.11.0 feature).
- src/mcp/tools.rs doc comment spells out the same.
New e2e tests (5):
- test_cli_rebuild_index_requires_confirm
- test_cli_rebuild_index_with_confirm_rebuilds
- test_cli_refs_node_id_envelope
- test_cli_trace_json_single_object_envelope_on_empty
- test_cli_ast_search_json_envelope
Also: src/storage/queries.rs NameCandidate derives Clone (needed by
CLI fuzzy-resolve's Ambiguous(Vec<NameCandidate>) branch).
Known limitation (unchanged, workaround available):
- incremental-index can drop call edges when the callee function is newly
added in the same diff batch and the caller's file is processed before
the callee's node is inserted. rebuild-index --confirm rewrites the
graph correctly. Root-cause fix (two-phase edge resolution in
src/parser/relations.rs) deferred to a follow-up.
Tests: cargo test --lib --no-default-features 215/215; cli_e2e 55/55.
Clippy: clean on --all-targets -- -D warnings (1.95 parity).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments