terraphim_agent 1.20.3

Terraphim AI Agent CLI - Command-line interface with interactive REPL and ASCII graph visualization
Documentation
//! Shared Learning System for Terraphim AI
//!
//! This module provides a shared learning store that aggregates learnings
//! across agents, deduplicates using BM25, and promotes learnings based on
//! trust levels (L1/L2/L3) with Gitea wiki synchronization.
//!
//! # Architecture
//!
//! ```text
//! Learning Capture → BM25 Deduplication → Trust Promotion → Gitea Wiki Sync
//!        ↓                    ↓                  ↓                  ↓
//!  Multiple Sources    Merge Duplicates   L1→L2→L3          Wiki Pages
//! ```
//!
//! # Trust Levels
//!
//! - **L1 (Unverified)**: Auto-captured from various sources, advisory only
//! - **L2 (Peer-Validated)**: Applied 3+ times across 2+ agents with positive outcome
//! - **L3 (Human-Approved)**: CTO review via `/evolve` or Gitea issue approval

mod markdown_store;
mod store;
mod types;
mod wiki_sync;

pub use markdown_store::{MarkdownLearningStore, MarkdownStoreConfig, MarkdownStoreError};
pub use store::{SharedLearningStore, StoreConfig};
pub use terraphim_types::shared_learning::SuggestionStatus;
pub use types::{LearningSource as SharedLearningSource, SharedLearning, TrustLevel};
pub use wiki_sync::{GiteaWikiClient, WikiSyncError};

#[cfg(feature = "shared-learning")]
pub use terraphim_types::shared_learning::LearningStore;

#[cfg(feature = "cross-agent-injection")]
pub mod injector;
#[cfg(feature = "cross-agent-injection")]
pub use injector::{InjectionError, InjectionResult, InjectorConfig, LearningInjector};