1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! `kian-plugin` — Ctx registry, Plugin trait, five-mode dispatch, Disposer.
//!
//! DESIGN §7 assigns this crate the key interfaces `Ctx`, `Plugin`,
//! `Disposer`; the design mapping lives in DESIGN §6 ("Plugin system
//! (Cordis-inspired, Rust-ized)"). Static, compile-time registration only
//! in built-in (ADR-004) — no dynamic loading.
//!
//! The seam *definitions* live in [`kian_core::seams`]; this crate consumes
//! them and never redefines them.
//!
//! Modules:
//! - [`ctx`] — typed service registry, `Plugin`/`PluginSet` activation,
//! `Disposer`
//! - [`dispatch`] — five-mode typed-event dispatch (`emit` / `waterfall` /
//! `parallel` / `serial` / `bail`)
//! - [`hooks`] — the hook-plugin vocabulary (closed catalog, payload views,
//! capability grants), the hook-scoped tier-0 registry and the `HookBus`
//! dispatch core (PLUGIN-SPEC v2.2, ADR-028)
pub use ;
pub use ;
/// Compile-time plugin registration (ADR-004): assembles a [`PluginSet`]
/// from plugin values. The activation order is *not* the listing order —
/// [`PluginSet::activate`] derives a deterministic topological order from
/// the plugins' declared dependencies.
///
/// ```ignore
/// let set = kian_plugins![LoggingPlugin::new(), ToolsPlugin::new()];
/// let disposer = set.activate(&mut ctx)?;
/// ```