codenexus 0.4.0-rc.1

A queryable code knowledge graph tool built on LadybugDB and tree-sitter
// Copyright (c) 2026 Kirky.X🌠
// 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;
#[cfg(feature = "diagram")]
pub mod arch_diff;
pub mod architecture;
#[cfg(any(feature = "cli", feature = "mcp"))]
pub mod ask;
pub mod budget;
#[cfg(feature = "cli")]
pub mod ci_gate;
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;
#[cfg(feature = "diagram")]
pub mod diagram;
pub mod error;
#[cfg(feature = "analysis")]
pub mod evolve;
pub mod export;
pub mod hook;
#[cfg(all(feature = "cli", feature = "hub"))]
pub mod hub;
pub mod impact;
pub mod import;
pub mod index;
#[cfg(all(feature = "cli", feature = "analysis"))]
pub mod lint;
pub mod list;
pub mod lsp;
pub mod project;
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 skill_sync;
pub mod status;
pub mod supply;
#[cfg(feature = "analysis")]
pub mod taint;
pub mod tool_map;
pub mod trace;

pub use runtime::{init_kit, kit};