Skip to main content

Crate mnm_core

Crate mnm_core 

Source
Expand description

mnm-core — shared primitives for the midnight-manual workspace.

Phase 2 lands the foundational shared types: typed error envelope (error), embedding-model wire id (model_id), provenance / content / source / chunk types (provenance, types), XDG config discovery (config), auth-file reader (auth_file), and the scoring-policy loader (scoring_policy). Each module is independently usable and independently testable.

Modules§

auth_file
auth.toml reader (Phase-2 stub, expanded in Phase 7 with the writer).
config
Config-file discovery and shape.
error
Typed error envelope used by every cloud HTTP response, MCP tool result, and CLI exit-with-error path.
limits
Shared size limits used across the server (body cap) and CLI (upload batching).
model_id
{name}@{revision} embedding-model identifier wire format (D12, FR-038, FR-039).
paths
Shared XDG path helpers (D18).
provenance
document.provenance JSONB shape — the trust + verification metadata that drives the confidence-scoring blend in Phase 9 (US6, D24).
rerank
Shared reranking vocabulary for the VoyageAI reranking design.
scoring
Confidence-scoring compute layer (US6, D24).
scoring_policy
Scoring-policy TOML loader (Phase-2 stub; full validation lands in Phase 9 / US6).
types
Canonical wire types — the shapes returned by /v1/search, /v1/chunks/..., and the MCP search tool.
version_match
Version-interval parsing and match classification (version-provenance spec §2).

Constants§

VERSION
Crate version stamped at build time.