Skip to main content

Module code_graph

Module code_graph 

Source
Expand description

The code graph an owner may publish to Cloud (Cloud plan v3 N1; C0 1.9 section 8).

By default Cloud knows a repo’s code only through the anchors of its facts. When the owner sets a project’s code_graph to full, the engine publishes the structure of its checkout: files and the symbols they define, which file contains which symbol, and which file imports which. Never source text, bodies or digests (a hash of a short body can be guessed back).

Every path follows the anchor path rules and passes the same admission as an anchor: a file the engine may not read for knowledge, or one it withholds, is not in the graph, nor are edges to it. The graph is sorted and bounded so the same checkout always gives the same document.

Structs§

CodeGraph
The exported graph; truncated when the checkout exceeds the limits.
Published
What a publish sent.

Functions§

export
The graph of index, keeping only files admit lets through. Every path and symbol name passes the outbound screen (connector rule: every outbound content item is screened); a path it refuses withholds the file, a name it refuses drops the symbol.
export_checkout
The graph of the checkout at root, through the same source admission as a fact’s anchors (a file that may not become knowledge is left out).
publish
Publish the code graph of the checkout at root for record (PUT replaces the stored one). Cloud takes it only when the repo’s owner set code_graph to full.