Skip to main content

Module sync

Module sync 

Source

Structs§

ReconcileReport
Cold-Start Reconciliation Report

Enums§

SyncError

Constants§

EXTRACTION_LEVEL
Extraction level code-kb asks for on a new artifact: symbol core plus structural facts, without the identifier, literal, and source-region tables code-kb never reads.
PINNED_JULIE_VERSION

Functions§

compute_content_hash_matches
Check if disk content matches the stored hash in the database.
create_index
Cold-start background sweep: checks filesystem against SQLite files records. Streams disk checks and uses an in-memory SQLite index to eliminate repository-wide heap HashMaps. Creates a missing index. A git worktree copies its parent repository’s index and reconciles it against the worktree files, which is much faster than a full scan; anything else runs a full scan.
delete_file
Delete a file’s extraction records from the database.
ensure_fresh_file
Tier 2: Just-In-Time Staleness Guard Checks if a file on disk has been modified since it was indexed in SQLite. If dirty or missing from index, re-extracts the file synchronously (< 5ms).
ensure_index_matches_extractor
Rebuilds the index when it was written by a julie-extract other than the one in use or at another extraction level. Returns true when a rebuild ran. The old artifact is removed first because the extractor refuses to write into an artifact with an older schema.
execute_julie_extract
Run julie-extract command with arguments.
find_julie_extract_binary
Discovers the julie-extract binary and caches the result.
installed_extractor_version
Version reported by the julie-extract binary in use, or the pin when none was found.
reconcile_offline_edits
scan_workspace
Initial or full scan to build/refresh the database.
update_file
Tier 1 & Incremental Update: updates a single file in the database.