Skip to main content

rinne_types/
lib.rs

1//! `rinne-types` — the shared base every Rinne crate depends inward on
2//! (`MCP_SKILLS.md` §15).
3//!
4//! Holds the DAG schema, the capability vocabulary, the worker contract, the
5//! node/result types, and the cross-crate trait seams (`Worker`, `Replanner`).
6//! Nothing here depends on a concrete crate, so the conductor, loop engine, and
7//! workers can each evolve behind these stable types without a tangle.
8
9pub mod blackboard;
10pub mod dag;
11pub mod error;
12pub mod evaluator;
13pub mod graph;
14pub mod human;
15pub mod replanner;
16pub mod skip;
17pub mod skill;
18pub mod worker;
19
20pub use blackboard::{Blackboard, NodeStatus};
21pub use error::{Result, RinneError};
22pub use human::{
23    gate_iter_key, gate_ok_key, CheckpointTrigger, HumanSession, NamedCheckpoint, RolePins,
24    GATE_ACTIVE_KEY, HUMAN_SESSION_FILE,
25};
26pub use evaluator::{EvalContext, Evaluator, Gate};
27pub use replanner::Replanner;
28pub use skill::Skill;
29pub use worker::{
30    format_token_count, AuthMode, Capability, Constraints, ContextPacket, EventSink, ExecStatus,
31    ExecuteRequest, ExecuteResult, InlinedFile, LatencyProfile, McpServerSpec, McpTransportKind,
32    QuotaModel, Role, ToolExecutor, ToolSpec, Transport, Usage, Worker, WorkerDescriptor,
33    WorkerEvent, WorkerFamily,
34};
35
36/// The on-disk blackboard directory name, relative to the working repo.
37///
38/// Single source of truth for a run (`MCP_SKILLS.md` §12). Defined here so every
39/// crate refers to the same constant.
40pub const BLACKBOARD_DIR: &str = ".rinne";