Skip to main content

Module code

Module code 

Source
Expand description

Git snapshot and tree-sitter code index construction.

This module owns blocking Git, filesystem, and parser work. Application methods run these workflows behind explicit blocking-worker boundaries.

Structs§

CodeIndexPlan
Blocking plan for a checkpointed full repository index.

Enums§

CodeIndexError
Blocking code index failure.

Functions§

build_index_snapshot
Builds a code index snapshot from a clean Git commit or incremental diff.
changed_paths_for_diff
Returns changed paths for impact analysis without mutating the code index.
deleted_symbol_names_for_diff
Extracts symbol names removed by a diff so impact can include deleted APIs.
partition_changed_paths_for_selector
Splits diff paths by the same selector rules used by indexing and impact.
prepare_full_index_plan
Prepares a full repository index as a bounded, checkpointable batch plan.
preview_repository_scope
Returns a non-mutating preview of the effective repository indexing scope.
register_repository
Validates a Git worktree and creates a stable repository registration.
resolve_repository_ref
Resolves a repository ref selector to the exact commit used by storage.
resolve_repository_snapshot
Resolves a repository ref selector to the exact commit and tree hash.