docs(move): reference upstream Move tooling

Document the compiler-first ingestion flow and link contributors to Aptos Core, MoveFlow 2.0.0, and the Move Book.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zwxxb 2026-07-17 14:58:09 +02:00
parent 30fdb059fd
commit a67ea56320

View file

@ -0,0 +1,40 @@
# Move compiler integration
This directory implements GitNexus's compiler-first ingestion for Move packages.
GitNexus discovers packages from `Move.toml`, communicates with `move-flow` over
MCP, and projects compiler facts into the standard GitNexus knowledge graph.
Declaration and semantic data come from the compiler-backed `facts` and
`call_graph` queries rather than raw-source parsing.
```text
Move package
-> move-flow MCP
-> compiler facts and call graph
-> GitNexus nodes and relationships
-> consistency validation
```
## Components
- `mcp-client.ts` owns the `move-flow mcp` process, JSON-RPC transport, and the
client contract consumed by ingestion.
- `compiler-facts.ts` defines the normalized compiler response shapes used by
downstream projections.
- `move-ingest.ts` implements the standalone ingestion phase, including package
discovery, compiler queries, and cross-package resolution.
- `facts-mapper.ts` maps compiler facts to deterministic GitNexus nodes and
relationships.
- `consistency.ts` validates the resulting graph and reports incomplete or
malformed compiler evidence.
## Upstream references
- [Aptos Core](https://github.com/aptos-labs/aptos-core) contains the upstream
Move compiler and runtime. MoveFlow releases are built from matching
`move-flow-v<version>` tags in this repository.
- [MoveFlow in Aptos AI](https://github.com/aptos-labs/aptos-ai) provides the
`move-flow` binary and MCP tools consumed by this integration. GitNexus
currently targets
[MoveFlow 2.0.0](https://github.com/aptos-labs/aptos-ai/releases/tag/move-flow-v2.0.0).
- [The Move Book](https://aptos-labs.github.io/move-book/) is the language
reference for Move concepts represented in the graph.