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