macp_runtime/lib.rs
1pub mod pb {
2 // Message types come from the transport-free `macp-pb` crate; the tonic
3 // service stubs (generated here via `.extern_path`) are merged in so the
4 // historical `macp_runtime::pb::*` surface is preserved exactly.
5 pub use macp_pb::pb::*;
6 tonic::include_proto!("macp.v1");
7}
8
9pub use macp_pb::{decision_pb, handoff_pb, multi_round_pb, proposal_pb, quorum_pb, task_pb};
10
11// The base vocabulary crate, re-exported whole. `macp-runtime`'s public
12// signatures already traffic in macp-core types, but four of the five lower
13// crates were reachable through this root and macp-core was not — so items
14// with no historical `macp_runtime::*` path (`commitment_hash`,
15// `mode::MessageContext`) could only be named by taking a second dependency.
16// Not aliased to `core`: that shadows the `core` extern prelude crate-wide.
17// The `error`/`session` shims below stay as the historical short paths.
18pub use macp_core;
19
20pub mod error;
21pub mod metrics;
22pub mod replay;
23pub mod runtime;
24pub mod session;
25pub mod stream_bus;
26
27// The mode layer and registry now live in `macp-modes`; the default governance
28// policy engine in `macp-policy`. Re-exported so existing `crate::mode`,
29// `crate::mode_registry`, and `crate::policy::*` paths (and the equivalent
30// downstream `macp_runtime::*` paths) resolve unchanged.
31pub use macp_modes::{mode, mode_registry};
32pub use macp_policy as policy;
33
34// The persistence layer (append-only log, session registry, storage backends)
35// now lives in `macp-storage`. Re-exported so `macp_runtime::{log_store,
36// registry, storage}` paths resolve unchanged.
37pub use macp_storage::{log_store, registry, storage};
38
39pub mod extensions;
40// Crate-private: the ListSessions page-token codec is a transport detail of
41// `server.rs`, deliberately not part of the published API surface.
42mod pagination;
43pub mod policy_engine;
44pub mod server;
45
46// Authentication and the request security layer now live in `macp-auth`.
47// Re-exported so `crate::{auth, security}` and downstream
48// `macp_runtime::{auth, security}` paths resolve unchanged.
49pub use macp_auth::{auth, security};