Skip to main content

Crate khive_pack_git

Crate khive_pack_git 

Source
Expand description

khive-pack-git — the git-lifecycle pack (ADR-088, amended by ADR-088 Amendment 1).

Contributes three note kinds (commit, issue, pull_request) that make repository provenance queryable through the KG graph, and one agent-facing verb, git.digest(source, project?, max_items?, include?) (handlers), that drives the batch, cursor-based ingester (ingest) against either a local path or a remote https:// URL (cloned/fetched into a daemon-owned scratch cache, cache). See docs/adr/ADR-088-git-lifecycle-pack.md and docs/adr/ADR-088-amendment-1-git-digest.md.

VerbArgsWhat it does
git.digestsource, project?, max_items?, include?Ingest commit/issue/PR provenance from a local path or https:// URL, bounded and cursor-resumable

kkernel git-ingest remains the unbounded, all-kinds admin CLI path over the same shared ingest::run_ingest core.

Modules§

cache
Scratch-clone cache for git.digest’s remote-URL mode (ADR-088 Amendment 1).
handlers
git.digest verb handler (ADR-088 Amendment 1).
hook
KindHook implementations for the three note kinds this pack contributes.
ingest
Batch, cursor-based git-history ingester (ADR-088 §5).
refs
GitHub reference-grammar extraction (ADR-088 Amendment 1, ingest enrichment riders): Closes/Fixes/Resolves #N and bare #N mentions in commit messages and issue/PR bodies.
source
git.digest source resolution (ADR-088 Amendment 1): local paths vs. https:// remote URLs, canonicalization, and github.com owner/repo slug derivation for gh-based issue/PR ingestion.

Structs§

GitPack
Git-lifecycle pack (ADR-088, amended by ADR-088 Amendment 1) — registers commit / issue / pull_request note kinds populated by the batch ingester in src/ingest.rs, and one agent-facing verb, git.digest (src/handlers.rs). Extends the base edge contract with precedes commit→commit (parent→child lineage, ADR-088 Amendment 1 ingest enrichment) — the only new endpoint rule this pack contributes; everything else uses the base annotates contract.