pitboard-core 0.14.0

The engine behind Pitboard: switches Claude Code, Codex and Claude Desktop between accounts by parking and restoring their logins. Its API serves Pitboard's own front ends.
Documentation
//! What Pitboard does by itself, for a front end somebody asked to: the app with its setting
//! on, or `pitboard watch` running in a terminal.
//!
//! Each thing it does is a duty: a rule that judges from what Pitboard already knows, a look
//! at its files that waits on nobody, and an act under the lock every change takes. The
//! automatic switch ([`crate::duty::autoswitch`]) and the warm-up ([`crate::duty::warm`]) are two. What
//! every duty shares is here: how often a front end decides, how long something that came to
//! nothing waits before it is tried again, and how what was tried is kept between runs. What
//! each duty decides, and what it does, is its own.

pub mod autoswitch;
pub mod cadence;
pub(crate) mod ledger;
pub mod warm;

/// What a duty's look at the files alone came to.
#[derive(Debug)]
pub enum Look<T> {
    /// This stands, and nothing is to be done under the lock.
    Stands(Box<T>),
    /// Something may be due: only a decision under the lock can say.
    Act,
}