Skip to main content

rinne_core/
lib.rs

1//! `rinne-core` — the blackboard implementation (file tree + SQLite state) and
2//! the wiring glue. The shared types and seams live in `rinne-types` and the
3//! loop engine in `rinne-loop` (`MCP_SKILLS.md` §15); this crate re-exports both
4//! so existing `rinne_core::…` paths keep resolving.
5
6// The shared base. Re-export the modules and items so both this crate's
7// internals (`crate::dag`, `crate::Result`, …) and downstream crates'
8// `rinne_core::…` paths keep working unchanged.
9pub use rinne_types::dag::{Node, OnFail, Plan};
10pub use rinne_types::error::{Result, RinneError};
11pub use rinne_types::replanner::Replanner;
12pub use rinne_types::{dag, error, replanner, worker};
13pub use rinne_types::{
14    format_token_count, AuthMode, Capability, CheckpointTrigger, Constraints, ContextPacket,
15    EventSink, ExecStatus, ExecuteRequest, ExecuteResult, HumanSession, InlinedFile,
16    LatencyProfile, McpServerSpec, McpTransportKind, NamedCheckpoint, NodeStatus, QuotaModel, Role,
17    RolePins, Skill, ToolExecutor, ToolSpec, Transport, Usage, Worker, WorkerDescriptor,
18    WorkerEvent, WorkerFamily, BLACKBOARD_DIR, GATE_ACTIVE_KEY, HUMAN_SESSION_FILE,
19};
20
21// The loop engine. Re-export so existing `rinne_core::Engine`, `rinne_core::pool`,
22// `rinne_core::priors`, … paths keep resolving.
23pub use rinne_loop::{
24    pool, priors, Engine, EngineEvent, EngineOptions, EngineSink, HumanDecision, ResumeInput,
25    RunReport, StopReason, WorkerRegistry,
26};
27
28// This crate owns the blackboard (file tree) and the SQLite state.
29pub mod blackboard;
30pub mod state;
31
32pub use blackboard::{require_plan, Blackboard};
33pub use state::State;