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
67
68
69
70
71
72
73
74
75
76
77
78
79
//! Command Router Module - clap-noun-verb v26.5.19 Auto-Discovery
//!
//! This module provides the entry point for clap-noun-verb auto-discovery.
//! All noun modules with `\[verb\]` functions are automatically discovered and registered.
//!
//! ## Architecture
//! ```text
//! cmds (router) -> auto-discovery -> [verb] functions -> domain (async logic)
//! ```
//!
//! ## Removed Commands
//!
//! The following commands were removed in v26.5.19:
//! - `ggen generate` → Use `ggen sync`
//! - `ggen validate` → Use `ggen sync --validate-only`
//! - `ggen template *` → Use `ggen sync`
//! - `ggen project *` → Add back in v26.5.19+
//! - `ggen graph *` → Add back in v26.5.19+
//! - `ggen ontology *` → Add back in v26.5.19+
//! - `ggen marketplace *` → Add back in v26.5.19+
//! - `ggen ai *` → Add back in v26.5.19+
//! - `ggen test *` → Add back in v26.5.19+
//! - `ggen utils *` → Add back in v26.5.19+
//! - `ggen ci *` → Add back in v26.5.19+
//! - `ggen workflow *` → Add back in v26.5.19+
// Shared helpers for command modules
// Core commands: ggen sync & ggen init
// ARCHIVED (v26.5.28): ambiguous noun, gated behind default-off `experimental`.
// Command modules - clap-noun-verb auto-discovery
// ARCHIVED (v26.5.28): a2a/framework/mcp/sigma not provable as finished; gated
// behind default-off `experimental` so they leave the default CLI surface while
// the code is preserved (non-deletion doctrine). See cmds/mod.rs feature note.
// AGI-facing lifecycle surface over ggen_core::agent::PackAgent (`ggen agent <verb>`)
// capability surfaces → atomic packs (`ggen capability enable/list/inspect`)
// Framework bridge commands (LangChain, etc.)
// ggen lsp noun (start/check/init/serve/mine/metrics/replay/field-status/emit_pack/verify_pack) — opt-in: --features lsp
// MCP delivered via `ggen lsp serve --protocol mcp` (lsp feature) + ggen-lsp-mcp binary
// ggen ontology noun (list/status/info/search) — embedded and marketplace ontology management
// Singular alias for `packs` noun (golden-path: ggen pack add <name>)
// lockfile-oriented multi-pack management (`ggen packs install/list/validate/show`)
// pack-install receipt emitter (full-closure, fail-closed) — invoked by `pack add`
// ggen receipt verify / info — cryptographic receipt CLI surface (BUG-005)
use crate*;
/// Setup and run the command router using clap-noun-verb v26.5.19 auto-discovery