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 status;
16pub mod timeutil;
17pub mod versions;
18
19#[cfg(test)]
20mod tests;
21
22pub use data_class::{CleanupAction, CleanupPlan, DataClass, StorageCategory};
23pub use error::{ErrorCategory, OrbokError, OrbokResult};
24pub use id::{ChunkId, EventId, ExtractionId, FileId, JobId, ModelId, QueryId, SourceId};
25pub use status::{
26    FileStatus, HiddenFilePolicy, IndexMode, JobStatus, JobType, PersistenceMode, SourceStatus,
27    SourceType, SymlinkPolicy,
28};
29pub use timeutil::{now_iso8601, system_time_iso8601};