Bootstrap spy-code Rust workspace (M0–M3)#1
Merged
Conversation
…r, GraphQL, CLI) Agent-Logs-Url: https://github.com/Psyborgs-git/spy-code/sessions/09128563-9986-4bf9-9548-bbedf1a904ea Co-authored-by: Psyborgs-git <49641518+Psyborgs-git@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Psyborgs-git
April 12, 2026 06:26
View session
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.
Implements the
spy-codelibrary from scratch per the design docs — a GraphQL-style codebase compiler that parses source via tree-sitter, stores a function/class/constant graph in SQLite, and exposes it via GraphQL over CLI.Crates added (
crates/)spy-core—NodeId(dir:file:class:symbol),Node,Edge,Signature,Param,Language,EdgeKind,NodeKind,Resolvertrait, config types (serde,deny_unknown_fields)spy-storage— SQLite schema (nodes,edges_calls/imports/references,files,index_meta), FTS5 virtual table with insert/update/delete sync triggers, full CRUD viarusqlite(bundled)spy-parser— tree-sitterFileContext(parsed tree + raw source bytes + path)spy-resolvers— Rust resolver: extractsfunction_item,struct_item,enum_item,trait_item,impl_itemmethods,const_item,static_item;///doc comments; call/import/reference edges with confidence scoringspy-indexer— two-pass incremental indexing (pass 1: nodes →ProjectScope; pass 2: edges); blake3 content-hash gate skips unchanged filesspy-graph— fullasync-graphql7 schema (Node,Edge,Signature,SearchResult,IndexStats, allQueryresolvers); axum 0.8 HTTP transportspy-cli—clapbinary:init,index,query,get,search,callers,callees,stats,serve --httpspy-git/spy-mcp— stubs (M4/M8 scope)