anamnesis-core 0.1.0

Core domain types and adapter trait for Anamnesis
Documentation
//! Anamnesis core: domain types, adapter trait, and query model.
//!
//! This crate has **no IO**. It defines the contract every other crate
//! (`store`, `cli`, `mcp-server`, `adapter-*`) implements or consumes.

#![forbid(unsafe_code)]
#![warn(missing_docs)]

pub mod adapter;
pub mod audit;
pub mod chunk;
pub mod chunker;
pub mod config;
pub mod contract;
pub mod discovery;
pub mod embedding;
pub mod error;
pub mod model;
pub mod query;

pub use audit::{Audit, AuditEntry};
pub use config::{Config, ConfigError, EmbeddingConfig, ServerConfig, SourceEntry};

pub use adapter::{HealthStatus, MemoryAdapter, RawDelta, RawRecord, ScanOpts, WatchOpts};
pub use chunk::{Chunk, ContentHash};
pub use chunker::{estimate_tokens, Chunker, ChunkerConfig};
pub use discovery::{Confidence, DetectOpts, DetectedSource, Discovery, SourceDetector};
pub use embedding::{EmbeddingProvider, EmbeddingTask, ModelId};
pub use error::{Error, Result};
pub use model::{
    AnamnesisRecord, Embedding, Kind, Provenance, RecordId, Scope, SourceDescriptor, SCHEMA_VERSION,
};
pub use query::{Query, SearchMode, TimeRange};

/// Alias matching the `docs/BLUEPRINT.md ยง3.3` 5-layer model. `RawArtifact`
/// is the reader-layer output; structurally identical to `RawRecord`.
pub type RawArtifact = RawRecord;