Skip to main content

wm_core/
lib.rs

1//! `WhiteMagic` v4 Core — Types, Traits, and 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 mutable;
19pub mod security;
20pub mod time;
21pub mod tool;
22
23pub use attestation::{sign_ed25519, sign_hmac, verify_ed25519, verify_hmac};
24pub use brain_wave::BrainWave;
25pub use context::Context;
26pub use coords::{Coordinate5D, HolographicCoords, Zone, find_nearby};
27pub use effects::{Capability, CostEstimate, EffectRow, Resource, Sandbox};
28pub use episodic::{
29    EPISODIC_SCHEMA_VERSION, EpisodicCapturePolicy, EpisodicId, EpisodicKind, EpisodicRecord,
30    EvidenceRef, EvidenceRelation, MemoryTransition, Provenance, ProvenanceSource, ValidityState,
31    ValidityTransitionError,
32};
33pub use error::{CoreError, Result};
34pub use galaxy::Galaxy;
35pub use gana::Gana;
36pub use mutable::{
37    CycleEffectiveness, CycleStrategy, DynamicGalaxy, DynamicGalaxyRegistry, GanaMerge,
38    GanaRegistry, LearnedCycleStrategy, LearnedDreamCycle, PhaseEffectiveness,
39};
40pub use tool::{Args, Output, Tool, ToolStats, ToolStatsSnapshot};