internal/

directory
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0

Directories

Path Synopsis
acquire
fs
Package fs is the acquisition layer's front door: it decides which files in a repository are worth indexing and fingerprints them.
Package fs is the acquisition layer's front door: it decides which files in a repository are worth indexing and fingerprints them.
git
Package git acquires repository metadata for the GraphLume indexer.
Package git acquires repository metadata for the GraphLume indexer.
Package analyze turns one parsed file into API and database facts.
Package analyze turns one parsed file into API and database facts.
api
Package api extracts HTTP endpoints from source: the routes a service exposes, and the handler behind each one.
Package api extracts HTTP endpoints from source: the routes a service exposes, and the handler behind each one.
cluster
Package cluster partitions a code graph into communities.
Package cluster partitions a code graph into communities.
config
Package config finds configuration keys: what a service can be configured with, and which code reads each setting.
Package config finds configuration keys: what a service can be configured with, and which code reads each setting.
db
Package db extracts database facts from source: which tables exist, and which code reads or writes them.
Package db extracts database facts from source: which tables exist, and which code reads or writes them.
deps
Package deps reads dependency manifests: what a project declares it needs.
Package deps reads dependency manifests: what a project declares it needs.
events
Package events extracts event bus bindings from source: the topics and queues a service publishes to (EdgePublishes) or consumes from (EdgeConsumes).
Package events extracts event bus bindings from source: the topics and queues a service publishes to (EdgePublishes) or consumes from (EdgeConsumes).
infra
Package infra reads deployment manifests: what the code RUNS AS.
Package infra reads deployment manifests: what the code RUNS AS.
licenses
Package licenses finds the licence of a dependency from what is already on this machine, and says where it found it.
Package licenses finds the licence of a dependency from what is already on this machine, and says where it found it.
metrics
Package metrics computes structural properties of a code graph.
Package metrics computes structural properties of a code graph.
Package arch is the declared architecture: which paths belong to which component, and which dependencies between components are permitted.
Package arch is the declared architecture: which paths belong to which component, and which dependencies between components are permitted.
adr
Package adr finds and reads Architecture Decision Records: the markdown files a team keeps to record why a structural choice was made.
Package adr finds and reads Architecture Decision Records: the markdown files a team keeps to record why a structural choice was made.
Package autorun records the outcome of the last automatic re-index: the background pass a git hook starts with `graphlume auto-index`.
Package autorun records the outcome of the last automatic re-index: the background pass a git hook starts with `graphlume auto-index`.
Package bench measures whether the context engine retrieved the right code.
Package bench measures whether the context engine retrieved the right code.
Package capability holds GraphLume's query-layer capabilities: the questions an agent actually asks of an indexed repository.
Package capability holds GraphLume's query-layer capabilities: the questions an agent actually asks of an indexed repository.
architecture
Package architecture answers "does the code match the architecture we said we had?" — ArchMind from the product spec.
Package architecture answers "does the code match the architecture we said we had?" — ArchMind from the product spec.
captest
Package captest builds in-memory fixtures for the capability packages' tests.
Package captest builds in-memory fixtures for the capability packages' tests.
communities
Package communities groups a repository's files by how they refer to each other, and reports the groups.
Package communities groups a repository's files by how they refer to each other, and reports the groups.
deadcode
Package deadcode reports definitions nothing in the index points at, and says how far each one can be trusted as actually unused.
Package deadcode reports definitions nothing in the index points at, and says how far each one can be trusted as actually unused.
hotspots
Package hotspots ranks files by how often they change against how much code they hold, and reports which files change together without a static edge between them.
Package hotspots ranks files by how often they change against how much code they hold, and reports which files change together without a static edge between them.
impact
Package impact answers "what breaks if I change this?" over the shared code knowledge graph.
Package impact answers "what breaks if I change this?" over the shared code knowledge graph.
knowledge
Package knowledge reports where the recent work on a directory was done by so few people that losing one of them loses most of what is known about it.
Package knowledge reports where the recent work on a directory was done by so few people that losing one of them loses most of what is known about it.
move
Package move plans the move of one top-level Go declaration from one file to another file of the same package.
Package move plans the move of one top-level Go declaration from one file to another file of the same package.
ownership
Package ownership answers "who has context on the code a change here reaches" by joining git history to a blast radius.
Package ownership answers "who has context on the code a change here reaches" by joining git history to a blast radius.
rename
Package rename decides where a rename must edit and whether it may.
Package rename decides where a rename must edit and whether it may.
runtime
Package runtime correlates observed traces with the indexed graph.
Package runtime correlates observed traces with the indexed graph.
supplychain
Package supplychain answers two questions about a project's declared dependencies: what are they, written in a form other tools consume (a CycloneDX SBOM), and — given advisories the user supplies — which of them fall in an affected range, and does the indexed code actually use them.
Package supplychain answers two questions about a project's declared dependencies: what are they, written in a form other tools consume (a CycloneDX SBOM), and — given advisories the user supplies — which of them fall in an affected range, and does the indexed code actually use them.
testgap
Package testgap joins the two questions the other capabilities answer separately: "what does changing this reach" and "what covers that".
Package testgap joins the two questions the other capabilities answer separately: "what does changing this reach" and "what covers that".
tests
Package tests answers "which tests cover this?" over the shared code knowledge graph.
Package tests answers "which tests cover this?" over the shared code knowledge graph.
Package cli assembles GraphLume's command-line interface.
Package cli assembles GraphLume's command-line interface.
Package compile turns an informal request plus an assembled context pack into an explicit TASK CONTRACT: the brief an AI coding agent should be handed instead of a one-line ask.
Package compile turns an informal request plus an assembled context pack into an explicit TASK CONTRACT: the brief an AI coding agent should be handed instead of a one-line ask.
Package config loads GraphLume settings from two distinct trust domains.
Package config loads GraphLume settings from two distinct trust domains.
Package context assembles the minimum sufficient engineering context for a plain-English task.
Package context assembles the minimum sufficient engineering context for a plain-English task.
Package diffgraph compares two committed index runs and reports what CHANGED ABOUT THE CODE'S FACTS, not about its lines.
Package diffgraph compares two committed index runs and reports what CHANGED ABOUT THE CODE'S FACTS, not about its lines.
Package docs turns the indexed graph into a document a person can read, and does it deterministically enough to commit the result.
Package docs turns the indexed graph into a document a person can read, and does it deterministically enough to commit the result.
Package edit rewrites identifiers in source files under one project root.
Package edit rewrites identifiers in source files under one project root.
Package errs adds machine-checkable failure kinds to GraphLume's errors.
Package errs adds machine-checkable failure kinds to GraphLume's errors.
Package export writes a code graph out in interchange formats.
Package export writes a code graph out in interchange formats.
Package graph answers "what is reachable from here" over the code knowledge graph, under bounds the caller sets and the results honestly declare.
Package graph answers "what is reachable from here" over the code knowledge graph, under bounds the caller sets and the results honestly declare.
Package indexer orchestrates compiler-backed SCIP indexers: it decides which ones apply to a repository, whether the machine can run them, installs them when the user has authorised that, runs them, and hands the resulting .scip files to internal/resolve/scip.
Package indexer orchestrates compiler-backed SCIP indexers: it decides which ones apply to a repository, whether the machine can run them, installs them when the user has authorised that, runs them, and hands the resulting .scip files to internal/resolve/scip.
Package langdetect decides which grammar reads a file.
Package langdetect decides which grammar reads a file.
Package mcp serves GraphLume's knowledge graph to AI coding agents over the Model Context Protocol.
Package mcp serves GraphLume's knowledge graph to AI coding agents over the Model Context Protocol.
Package multirepo federates a READ-ONLY view across several existing index databases and reports the edges that cross between them.
Package multirepo federates a READ-ONLY view across several existing index databases and reports the edges that cross between them.
Package observe provides structured logging and telemetry setup.
Package observe provides structured logging and telemetry setup.
Package parse turns source files into symbols and unresolved references.
Package parse turns source files into symbols and unresolved references.
Package pipeline wires discovery and parsing into an indexing run.
Package pipeline wires discovery and parsing into an indexing run.
Package policy is the declarative half of policy-as-code: the `policy:` block of .graphlume.yml, its validation, and the catalogue of rule types.
Package policy is the declarative half of policy-as-code: the `policy:` block of .graphlume.yml, its validation, and the catalogue of rule types.
check
Package check evaluates a repository's policy: block against an index and a git diff.
Package check evaluates a repository's policy: block against an index and a git diff.
Package portal serves the GraphLume portal: a small web application that asks the index the same questions an agent does, through the same tools.
Package portal serves the GraphLume portal: a small web application that asks the index the same questions an agent does, through the same tools.
Package registry is GraphLume's write layer: it owns index runs, the two-phase atomic swap that publishes them, and the deterministic digest that proves two indexing passes over the same tree produced the same content.
Package registry is GraphLume's write layer: it owns index runs, the two-phase atomic swap that publishes them, and the deterministic digest that proves two indexing passes over the same tree produced the same content.
Package report turns GraphLume's analysis results into artefacts other systems read: SARIF for code scanning, Markdown for a pull-request comment.
Package report turns GraphLume's analysis results into artefacts other systems read: SARIF for code scanning, Markdown for a pull-request comment.
resolve
gotypes
Package gotypes makes GraphLume's answers about Go code exact by default, using Go's own type checker from the standard library: go/parser, go/build, go/types.
Package gotypes makes GraphLume's answers about Go code exact by default, using Go's own type checker from the standard library: go/parser, go/build, go/types.
infer
Package infer binds unresolved references to symbol definitions using imports and receiver-type inference, and attaches a confidence level to every binding it makes.
Package infer binds unresolved references to symbol definitions using imports and receiver-type inference, and attaches a confidence level to every binding it makes.
scip
Package scip ingests SCIP indexes produced by compiler-backed indexers and translates them into GraphLume symbols and relationships.
Package scip ingests SCIP indexes produced by compiler-backed indexers and translates them into GraphLume symbols and relationships.
Package restapi serves GraphLume's tools over plain HTTP and JSON.
Package restapi serves GraphLume's tools over plain HTTP and JSON.
Package search provides retrieval over the registry.
Package search provides retrieval over the registry.
Package security is the last thing that runs before indexed content leaves the machine.
Package security is the last thing that runs before indexed content leaves the machine.
Package store owns GraphLume's persistence: schema migration, connection setup, and the storage interface the rest of the system codes against.
Package store owns GraphLume's persistence: schema migration, connection setup, and the storage interface the rest of the system codes against.
Package trace reads distributed-tracing exports and reduces them to the few facts GraphLume can line up against the static graph: which endpoints were really called, which functions really ran, which tables were really touched, and how long each took.
Package trace reads distributed-tracing exports and reduces them to the few facts GraphLume can line up against the static graph: which endpoints were really called, which functions really ran, which tables were really touched, and how long each took.
Package verify answers the question the loop never asked: did the change that was made honour the contract that was compiled?
Package verify answers the question the loop never asked: did the change that was made honour the contract that was compiled?
Package watch turns a directory tree into a stream of debounced, coalesced change sets.
Package watch turns a directory tree into a stream of debounced, coalesced change sets.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL