Skip to main content

writerslogic_warm/core/
mod.rs

1// Copyright 2024-2026 WritersLogic Contributors
2// SPDX-License-Identifier: Apache-2.0
3
4#[cfg(not(target_arch = "wasm32"))]
5pub mod admin;
6#[cfg(not(target_arch = "wasm32"))]
7pub(crate) mod admission;
8#[cfg(not(target_arch = "wasm32"))]
9pub mod agency;
10#[cfg(not(target_arch = "wasm32"))]
11pub(crate) mod atom_memory;
12#[cfg(not(target_arch = "wasm32"))]
13pub(crate) mod audit;
14#[cfg(not(target_arch = "wasm32"))]
15pub(crate) mod audit_effects;
16#[cfg(not(target_arch = "wasm32"))]
17pub mod cognition;
18#[cfg(not(target_arch = "wasm32"))]
19pub(crate) mod composite_memory;
20pub(crate) mod config;
21#[cfg(not(target_arch = "wasm32"))]
22pub(crate) mod decompose;
23#[cfg(not(target_arch = "wasm32"))]
24pub(crate) mod diffusion;
25pub mod documents;
26pub(crate) mod durable_file;
27#[cfg(feature = "local-embed")]
28pub mod embed;
29pub mod encoding;
30pub mod experience;
31#[cfg(feature = "experimental")]
32pub mod experimental;
33pub mod failpoint;
34pub(crate) mod schema;
35#[cfg(not(target_arch = "wasm32"))]
36pub mod vector_records;
37#[cfg(feature = "experimental")]
38pub use experimental::{
39    algebraic_codebook, block_codes, bloom_memory, bundle_subset, connection_graph,
40    counting_bloom_memory, fpe_time, kmer, operand_retriever, phase_graph,
41};
42#[cfg(not(target_arch = "wasm32"))]
43pub mod engine;
44pub mod entangled;
45pub(crate) mod error;
46#[cfg(not(target_arch = "wasm32"))]
47pub mod format;
48#[cfg(not(target_arch = "wasm32"))]
49pub(crate) mod graph;
50pub mod hardware;
51pub(crate) mod hash;
52pub mod hopfield;
53pub(crate) mod idf;
54#[cfg(not(target_arch = "wasm32"))]
55pub(crate) mod index;
56#[cfg(not(target_arch = "wasm32"))]
57pub(crate) mod indexed_memory;
58pub mod intersection;
59#[cfg(not(target_arch = "wasm32"))]
60pub(crate) mod ivf;
61#[cfg(feature = "security")]
62pub mod mask;
63#[cfg(not(target_arch = "wasm32"))]
64pub mod memory_api;
65#[cfg(feature = "local-models")]
66pub mod models;
67#[cfg(not(target_arch = "wasm32"))]
68pub(crate) mod nsg;
69pub mod phase_hvec;
70pub mod phase_resonator;
71pub(crate) mod posting;
72#[cfg(feature = "private-search")]
73pub mod private_query;
74#[cfg(feature = "provenance")]
75pub mod provenance;
76#[cfg(not(target_arch = "wasm32"))]
77pub mod qgraph;
78pub mod query_limits;
79#[cfg(not(target_arch = "wasm32"))]
80pub(crate) mod role;
81#[cfg(not(target_arch = "wasm32"))]
82pub(crate) mod rules;
83#[cfg(not(target_arch = "wasm32"))]
84pub mod sealed;
85#[cfg(not(target_arch = "wasm32"))]
86pub(crate) mod security;
87#[cfg(not(target_arch = "wasm32"))]
88pub use index::sparse_impact;
89#[cfg(not(target_arch = "wasm32"))]
90pub use index::sparse_store;
91#[cfg(feature = "security")]
92pub use security::scrub_stack;
93pub(crate) mod os_memory;
94#[cfg(target_arch = "x86_64")]
95pub(crate) mod simd_math;
96pub mod sparse;
97#[cfg(not(target_arch = "wasm32"))]
98pub(crate) mod storage;
99#[cfg(not(target_arch = "wasm32"))]
100pub(crate) mod store_lock;
101pub(crate) mod sync;
102pub(crate) mod text;
103pub(crate) mod tombstone;
104#[cfg(not(target_arch = "wasm32"))]
105pub(crate) mod triple_store;
106pub(crate) mod types;
107
108pub use config::WarmConfig as HmsConfig;
109pub use config::{VectorCandidateConfig, WarmConfig};
110#[cfg(not(target_arch = "wasm32"))]
111pub use engine::WarmCore;
112#[cfg(not(target_arch = "wasm32"))]
113pub use engine::WarmCore as HmsCore;
114#[cfg(not(target_arch = "wasm32"))]
115pub use engine::{
116    HistoryBounds, HistoryError, HistoryOptions, HistoryRevision, HistoryView, JournalPosition,
117    RevisionKind, TimeResolution,
118};
119#[cfg(not(target_arch = "wasm32"))]
120pub use engine::{PurgeStatus, PurgeTicket};
121pub use phase_hvec::PhaseHVec;
122pub use phase_resonator::{
123    phase_resonator_factorize, FactorResult, PhaseResonator, ResonatorConfig,
124};
125pub use schema::EmbeddingSpace;
126pub(crate) const MAX_RAW_FRAME_SIZE: usize = 50 * 1024 * 1024;