1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! Frigg is organized as a pipeline: shared domain and settings types describe the contract,
//! indexing and storage build durable repository artifacts, search and graph layers answer
//! retrieval questions from those artifacts, and MCP plus watch turn the whole system into a
//! long-lived agent-facing service.
//!
//! Semantic map:
//! - `domain` — shared error, evidence, path-class, and workload vocabulary across layers.
//! - `settings` — runtime profile, semantic provider, lexical backend, and watch switches.
//! - `indexer` — manifests, symbol extraction, semantic chunks, and index planning.
//! - `storage` — durable SQLite state for manifests, projections, vectors, and provenance.
//! - `searcher` — lexical, path-witness, graph, and semantic hybrid retrieval + ranking policy.
//! - `graph` — heuristic and SCIP-backed precise navigation substrate.
//! - `embeddings` — local and remote embedding providers behind one readiness boundary.
//! - `mcp` — agent-facing tool surface, session adoption, recovery, and runtime caches.
//! - `watch` — lease-gated filesystem supervisor and debounced index scheduler.
//! - `agent_directive` / `context_efficiency` — Frigg-first policy text and savings telemetry.
//! - `test_support` — lightweight config helpers for integration tests.
/// Canonical agent directive text and rendering helpers reused across MCP, hooks, and docs checks.
/// Shared context-efficiency contracts, guards, and process-local summary caches.
/// Shared domain vocabulary reused across indexing, retrieval, provenance, and MCP responses so
/// each layer can exchange the same evidence model without translation glue.
/// Embedding providers and vector-readiness checks used when semantic search is enabled so
/// indexing and serving can gate semantic work through one capability boundary.
/// Symbol and relation graph primitives that power navigation-style retrieval on top of heuristic
/// and precise artifact ingestion.
/// Shared human-output block primitives used by CLI-facing renderers.
/// Repository artifact construction, including manifests, index planning, symbol extraction, and
/// semantic chunk generation that feed the search and MCP layers.
pub
pub
/// MCP delivery surface that exposes Frigg's repository tooling as stable agent-facing methods and
/// schemas.
pub
/// Retrieval orchestration that blends lexical, graph, and semantic evidence into stable ranked
/// results.
/// Runtime configuration shared by CLI, indexing, watch, and MCP startup so every entry point
/// resolves the same operating profile.
/// Durable repository state for manifests, retrieval projections, semantic artifacts, and
/// provenance.
/// Shared helpers for exercising the production wiring from tests without rebuilding fixture
/// setup in every suite.
pub
pub
/// Incremental freshness runtime that keeps attached workspaces indexed without pushing watch
/// logic into request handlers.
pub