Skip to main content

orbok_core/
lib.rs

1//! # orbok-core
2//!
3//! Shared vocabulary for the `orbok` local-first document search
4//! application: typed identifiers, the RFC-001 data lifecycle classes,
5//! lifecycle status enums shared between the catalog (RFC-002) and the
6//! scanner (RFC-004), pipeline version constants, error types, and time
7//! helpers.
8//!
9//! This crate is dependency-light by design. It must not depend on the
10//! database, the file system layer, or the UI.
11
12pub mod data_class;
13pub mod error;
14pub mod id;
15pub mod privacy;
16pub mod status;
17pub mod timeutil;
18pub mod versions;
19
20#[cfg(test)]
21mod tests;
22
23pub use data_class::{CleanupAction, CleanupPlan, DataClass, StorageCategory};
24pub use error::{ErrorCategory, OrbokError, OrbokResult};
25pub use id::{
26    ChunkId, EmbeddingId, EventId, ExtractionId, FileId, JobId, ModelId, QueryId, SourceId,
27};
28pub use privacy::{DiagnosticsPolicy, LocalDataCategory, PrivacyMode, PrivacySettings};
29pub use status::{
30    FileStatus, HiddenFilePolicy, IndexMode, JobStatus, JobType, PersistenceMode, SourceStatus,
31    SourceType, SymlinkPolicy,
32};
33pub use timeutil::{now_iso8601, system_time_iso8601};