Skip to main content

pitboard_core/
lib.rs

1//! The engine behind pitboard: parking and restoring a person's own Claude Code logins, and
2//! reading what each has left. It serves pitboard's own front ends, the command line and the
3//! native apps, which reach it through [`service::Pitboard`] with an explicit
4//! [`context::Context`].
5
6pub mod api;
7pub mod context;
8pub mod doctor;
9pub mod error;
10pub mod service;
11pub mod state;
12pub mod status;
13pub mod statusline;
14pub mod switch;
15pub mod time;
16pub mod usage;
17
18pub(crate) mod atomic;
19pub(crate) mod audit;
20pub(crate) mod claude;
21pub(crate) mod configfile;
22pub(crate) mod home;
23pub(crate) mod lock;
24pub(crate) mod park;
25#[cfg(target_os = "macos")]
26pub(crate) mod process;
27pub(crate) mod readings;
28pub(crate) mod slot;
29pub(crate) mod store;
30
31/// What the integration tests reach into: they plant and inspect parked logins in the real
32/// store, and must never touch the credential slot this machine's Claude Code reads.
33#[cfg(feature = "test-support")]
34#[doc(hidden)]
35pub mod testing {
36    pub use crate::claude::live_service;
37    pub use crate::slot::{LIVE_SERVICE, dir_hash, service_for_dir};
38    pub use crate::store::{vault_delete, vault_read, vault_write};
39}