lean-ctx-engine-ext 3.12.11

LeanCTX | Engine extensions: the engine modules above the core (setup, reports, graph analysis, knowledge routing, sandboxing).
Documentation
// SPDX-License-Identifier: Apache-2.0
//! LeanCTX | Engine extensions: the engine modules above the core, split
//! upward out of the Engine (crate split cut 2, docs/internal/engine-core-split.md).
//!
//! Nothing in the Engine uses these modules; they depend on the Engine
//! library (package lean-ctx-engine, lib `lean_ctx`) and the crates above
//! use them. The moved modules keep their engine paths: the crate root
//! glob-imports the engine and `core` re-exports `lean_ctx::core::*` next
//! to the moved modules, so `crate::core::X`, `crate::test_env` and
//! `super::X` resolve unchanged and each move stays a pure rename.
#![recursion_limit = "256"]
// Every `unsafe` block must carry a `// SAFETY:` comment justifying soundness.
#![warn(clippy::undocumented_unsafe_blocks)]

// The glob keeps `crate::X` paths of the moved modules resolving to the Engine.
#[allow(unused_imports, clippy::wildcard_imports)]
use lean_ctx::*;

pub mod core;

pub mod compound_lexer;
/// Protected GitLab source bootstrap for agent launches.
pub mod gitlab_bootstrap;
pub mod heatmap;
pub mod mcp_stdio;
pub mod report;
pub mod rewrite_registry;

/// The containment helper test of this crate's unit-test harness, at the path
/// the Engine starts its helpers and guards on (`shell::containment::tests`).
/// The moved sandbox and GitLab bootstrap tests spawn this harness as their
/// guard. The module shadows the glob-imported engine `shell`, so it
/// re-exports the engine paths those tests use next to the helper.
#[cfg(all(test, unix))]
mod shell {
    #[allow(unused_imports)]
    pub(crate) use lean_ctx::shell::*;

    pub(crate) mod containment {
        #[allow(unused_imports)]
        pub(crate) use lean_ctx::shell::containment::*;

        pub(crate) mod tests {
            pub(crate) use lean_ctx::shell::containment::tests::*;

            #[test]
            #[ignore = "subprocess helper for the containment tests"]
            fn containment_helper() {
                lean_ctx::shell::containment::tests::containment_helper_main();
            }
        }
    }
}