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
// Copyright (c) 2026 Kirky.X. All rights reserved.
// SPDX-License-Identifier: MIT
//! Unified service layer for CLI and MCP command handlers.
//!
//! Each command module defines:
//! - A `core` async function with shared business logic
//! - A CLI wrapper (`#[forge(cli = true)]`) that calls core + prints to stdout
//! - An MCP wrapper (`#[forge(mcp = true)]`) that calls core + returns the value
//!
//! Kit injection uses the global [`runtime::kit()`] accessor (Mutex-protected)
//! because sdforge's `#[forge]` macro generates standalone functions
//! that cannot accept injected state.
pub mod api_impact;
pub mod architecture;
pub mod clean;
pub mod community;
pub mod complexity;
pub mod context;
pub mod cross_service;
pub mod daemon;
pub mod dead_code;
pub mod detect_changes;
pub mod error;
pub mod export;
pub mod hook;
pub mod impact;
pub mod import;
pub mod index;
pub mod list;
pub mod lsp;
pub mod query;
pub mod rename;
pub mod route_map;
pub mod runtime;
pub mod search;
pub mod setup;
pub mod shape_check;
pub mod status;
pub mod tool_map;
pub mod trace;
pub use runtime::{init_kit, kit};