feat: add Compass VS Code code intelligence extension#33
Draft
forhappy wants to merge 8 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the first-party Compass VS Code extension and the versioned CLI/view-model contracts it uses.
Motivation
Compass users need to understand current architecture and codebase evolution without leaving the editor or learning every CLI invocation. The CLI remains the authoritative local engine while the extension provides purpose-built graph, call, query, history, and diff workflows. The extension requires a separately installed Compass CLI and never bundles a platform binary.
The compatibility gate also prevents the raw
graphify export <format>usage failure that occurs when an oldercompassbinary is first onPATHand does not supportexport viewer-json.Verification
The completed branch was verified with:
Results: Rust workspace tests and strict Clippy passed; 15 JS unit tests, 10 Chromium checks, and the real VS Code activation test passed; the production dependency audit reported zero vulnerabilities; deterministic asset and VSIX smoke checks passed. The branch Compass CLI advertised every extension contract and updated the repository graph successfully.
Compatibility and documentation
New versioned contracts include
compass.viewer.graph/1,compass.program.call_graph/1,compass.viewer.callflow/1,compass.history.timeline/1,compass.history.change_counts/1,compass.history.viewer_graph/1, andcompass.ide.progress/1.New machine-readable surfaces are exposed through
compass capabilities,compass export viewer-json,compass export callflow-json,compass program call-graph,compass history timeline,compass history change-counts, and historical viewer export. Existing human output remains unchanged unless--events jsonlis explicitly selected. Graphify compatibility behavior remains isolated.Documentation is included in
docs/guides/vscode.mdand the extension README, changelog, and security policy.Checklist