Skip to main content

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// - [`elicitation`] — Elicitation hook family (human-in-the-loop:
28//                     approval, confirmation, step-up, …)
29// - [`error`] — Error types, violations, and result types
30
31pub mod cmf;
32pub mod config;
33pub mod context;
34pub mod delegation;
35pub mod elicitation;
36pub mod error;
37pub mod executor;
38pub mod extensions;
39pub mod factory;
40pub mod hooks;
41pub mod identity;
42pub mod manager;
43pub mod plugin;
44pub mod registry;
45pub mod visitor;