Code intelligence
Owns project-scoped committed TypeScript/TSX graphs: parsing, declaration search, signature inspection, bounded relationship traversal, indexing status, and explicit opt-in Git hooks. Code bodies are read from actual source, not stored in the graph. No model or remote API is required.
AI/JSON CLI tools expose only search, inspect, expand, and project status. Parsing and hook controls remain explicit app commands/settings and commit-hook services. External follow-ups are read-only; missing target indexes retain source locations without offering a parse tool. Queries do not refresh indexes.
Compiler context and graph ownership
Compilation retains project-local eligible TS/TSX files and committed .d.ts
ambient declarations selected by the effective tsconfig, including ambient
declarations outside the selected project that are not reached through imports.
Unimported non-declaration .ts/.tsx files outside the project and gitignored
sibling directories are not treated as compiler roots. External ambient roots and
imported dependencies use the same snapshot reader, dirty-input guards, and
manifest tracking. Imported ignored generated dependencies and installed packages
remain resolution inputs.
Only project-local Git-eligible sources become fully indexed files/declarations; external symbols remain minimal references. A project still needs at least one eligible local tsconfig root. Analyzer version 6 rebuilds older manifests on the next successful parse.
Source map
project.ts— Canonical project boundaries relative to the active core workspace.snapshot.ts— Git source/config snapshots, environment inputs, lookup manifests, and dirty-input/revision guards.analyzer.ts— TypeScript configuration/aliases, scoped programs, diagnostics, compact declarations, direct IIFE/call edges, unresolved callback categories, relationships, and bounded source evidence.schemas.ts— Typed tools/results and structured diagnostics.store.ts— Namespaced SQLite/FTS storage and generation-checked atomic graph replacement.queries.ts— Ranked search, pagination, bounded traversal, freshness, and external follow-ups.service.ts— Deterministic parse/query lifecycle shared by command and AI surfaces.attempts.ts— Latest indexing outcomes independent of successful snapshots, including diagnostic failures and stale-completion protection.projects.ts— Workspace project/status listing and compact timeline rendering.hooks.ts— Explicit hook preview/install/status/remove, repository-local delegation, ownership checks, and automation metadata.hook-runner.ts— Post-commit parser invocation, nested-hook handling, locking, Git-local environment clearing, and last-run state.render.ts— Compact text and optional full JSON from the same validated results, callable IDs, follow-ups, and continuation markers.
Commands live in commands/code/definition.ts relative to the plugin root.
See the Memory overview, Markdown module,
and design/progress record.