cpex_core/lib.rs
1// Location: ./crates/cpex-core/src/lib.rs
2// Copyright 2025
3// SPDX-License-Identifier: Apache-2.0
4// Authors: Teryl Taylor
5//
6// CPEX Core library root.
7//
8// Pure Rust plugin runtime with no FFI, WASM, or PyO3 dependencies.
9// Provides the PluginManager, 5-phase executor, hook registry,
10// unified config parser, and all core types.
11//
12// # Modules
13//
14// - [`plugin`] — Plugin trait, PluginRef, PluginMetadata, PluginConfig
15// - [`hooks`] — HookType (open string registry), payload/result traits
16// - [`executor`] — 5-phase execution engine (sequential → transform → audit → concurrent → fire_and_forget)
17// - [`manager`] — PluginManager lifecycle and hook dispatch
18// - [`registry`] — PluginInstanceRegistry and HookRegistry
19// - [`config`] — Unified YAML configuration parsing
20// - [`factory`] — Plugin factory registry for config-driven instantiation
21// - [`context`] — PluginContext (local_state + global_state)
22// - [`cmf`] — ContextForge Message Format (Message, ContentPart, enums)
23// - [`identity`] — IdentityResolve hook family (subject / client /
24// workload resolution from raw credentials)
25// - [`delegation`] — TokenDelegate hook family (outbound credential
26// minting for downstream calls)
27// - [`error`] — Error types, violations, and result types
28
29pub mod cmf;
30pub mod config;
31pub mod context;
32pub mod delegation;
33pub mod error;
34pub mod executor;
35pub mod extensions;
36pub mod factory;
37pub mod hooks;
38pub mod identity;
39pub mod manager;
40pub mod plugin;
41pub mod registry;
42pub mod visitor;