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
11pub mod error;
12pub mod metrics;
13pub mod replay;
14pub mod runtime;
15pub mod session;
16pub mod stream_bus;
17
18// The mode layer and registry now live in `macp-modes`; the default governance
19// policy engine in `macp-policy`. Re-exported so existing `crate::mode`,
20// `crate::mode_registry`, and `crate::policy::*` paths (and the equivalent
21// downstream `macp_runtime::*` paths) resolve unchanged.
22pub use macp_modes::{mode, mode_registry};
23pub use macp_policy as policy;
24
25// The persistence layer (append-only log, session registry, storage backends)
26// now lives in `macp-storage`. Re-exported so `macp_runtime::{log_store,
27// registry, storage}` paths resolve unchanged.
28pub use macp_storage::{log_store, registry, storage};
29
30pub mod extensions;
31pub mod policy_engine;
32pub mod server;
33
34// Authentication and the request security layer now live in `macp-auth`.
35// Re-exported so `crate::{auth, security}` and downstream
36// `macp_runtime::{auth, security}` paths resolve unchanged.
37pub use macp_auth::{auth, security};