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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! Dialect registrar trait for `khive-mcp` (ADR-025 + ADR-027).
//!
//! A `DialectRegistrar` encapsulates which packs an external dialect crate
//! knows about and how to instantiate them by name. `KhiveMcpServer` is the
//! generic dispatch shell; the KG dialect is hardwired via `KgDialect`.
//!
//! ## v0.1.x status
//!
//! `khive-mcp` ships with the KG dialect hardwired: `server.rs` calls
//! `KgDialect::register(...)` directly. The `DialectRegistrar` trait exists
//! as a named seam for a future composable shell; wiring a second dialect
//! still requires adding a Cargo dependency and a `register(...)` call in
//! `server.rs`. A future ADR may introduce generic registrar composition.
use ;
/// Register named packs from a dialect into a [`VerbRegistryBuilder`].
///
/// Implementations return `Ok(())` for every name they recognise and
/// `Err(name)` for names they do not handle. `KhiveMcpServer` accumulates
/// errors and surfaces them as [`PackRegError`](crate::server::PackRegError)
/// if an unknown name is encountered.
/// The built-in KG dialect registrar.
///
/// Delegates to [`khive_dialect_kg::register_pack`] so `khive-mcp`'s server
/// module does not import `KgPack` or `GtdPack` directly.
;