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
//! # openeruka
//!
//! Open core types and traits for the [Eruka](https://eruka.dirmacs.com) context memory system.
//!
//! Eruka is a structured, knowledge-state-aware memory layer for AI agents.
//! This crate provides the vocabulary every consumer needs: types for fields,
//! entities, edges, and the epistemological states that make Eruka different.
//!
//! ## Quick start
//!
//! ```rust
//! use openeruka::{KnowledgeState, FieldPath, Confidence};
//!
//! let path = FieldPath::new("identity/company_name").unwrap();
//! assert_eq!(path.as_str(), "identity/company_name");
//!
//! // The core invariant: Confirmed facts resist Inferred overwrites
//! assert!( KnowledgeState::Confirmed.can_overwrite(&KnowledgeState::Inferred));
//! assert!(!KnowledgeState::Inferred.can_overwrite(&KnowledgeState::Confirmed));
//!
//! let c = Confidence::new(0.9);
//! assert_eq!(c.value(), 0.9);
//! ```
//!
//! ## Related
//!
//! - [`openeruka-client`](https://crates.io/crates/openeruka-client) — typed HTTP client for a hosted Eruka instance
//! - [eruka-mcp](https://github.com/dirmacs/eruka-mcp) — MCP server for Claude Desktop / Claude Code
//! - [Eruka hosted API](https://eruka.dirmacs.com)
//! - [DIRMACS](https://dirmacs.com)
pub use ;
pub use ;
pub use ;
pub use ErukaError;