Skip to main content

surjection_core/
lib.rs

1//! Core library of Surjection.
2//!
3//! This crate never reads process-global state (`std::env`, home directory
4//! lookups, the system clock) outside [`env`]. Callers inject an [`Env`] and an
5//! [`Fs`]; the CLI and the app build them from the process, tests build them
6//! from a temp root.
7
8pub mod access;
9pub mod adapters;
10pub mod agent;
11pub mod apply;
12pub mod brand;
13pub mod catalog;
14pub mod diagnostics;
15pub mod eject;
16pub mod env;
17pub mod error;
18pub mod formats;
19pub mod fs;
20pub mod layering;
21pub mod local_settings;
22pub mod mcp_source;
23pub mod migrate;
24pub mod model;
25pub mod paths;
26pub mod process;
27pub mod remote;
28pub mod scan;
29pub mod secrets;
30pub mod skills;
31pub mod sources;
32pub mod store;
33pub mod versions;
34
35pub use env::{Clock, Env, EnvBuilder, FixedClock, KnownFolder, Os, SystemClock};
36pub use error::{CoreError, ErrorCode};
37pub use fs::{Fs, RealFs};