Skip to main content

wm_core/
lib.rs

1//! `WhiteMagic` core — types, traits, and the Gana taxonomy
2//!
3//! This crate defines the foundational types shared across all `WhiteMagic`
4//! subsystems: the 28 Gana enum, effect rows, tool traits, brain-wave states,
5//! and core error types.
6
7#![forbid(unsafe_code)]
8
9pub mod attestation;
10pub mod brain_wave;
11pub mod context;
12pub mod coords;
13pub mod effects;
14pub mod episodic;
15pub mod error;
16pub mod galaxy;
17pub mod gana;
18pub mod kdf;
19pub mod mutable;
20pub mod sandbox;
21pub mod security;
22pub mod time;
23pub mod tool;
24
25pub use attestation::{sign_ed25519, sign_hmac, verify_ed25519, verify_hmac};
26pub use brain_wave::BrainWave;
27pub use context::Context;
28pub use coords::{Coordinate5D, HolographicCoords, Zone, find_nearby};
29pub use effects::{Capability, CostEstimate, EffectRow, Resource, Sandbox};
30pub use episodic::{
31    EPISODIC_SCHEMA_VERSION, EpisodicCapturePolicy, EpisodicId, EpisodicKind, EpisodicRecord,
32    EvidenceRef, EvidenceRelation, MemoryTransition, Provenance, ProvenanceSource, ValidityState,
33    ValidityTransitionError,
34};
35pub use error::{CoreError, Result};
36pub use galaxy::Galaxy;
37pub use gana::Gana;
38pub use mutable::{
39    CycleEffectiveness, CycleStrategy, DynamicGalaxy, DynamicGalaxyRegistry, GanaMerge,
40    GanaRegistry, LearnedCycleStrategy, LearnedDreamCycle, PhaseEffectiveness,
41};
42pub use tool::{Args, Output, Tool, ToolStats, ToolStatsSnapshot};