mermaid-cli 0.14.2

Open-source AI pair programmer with agentic capabilities. Local-first with Ollama, native tool calling, and beautiful TUI.
Documentation
// Gateway module for app - follows the Train Station Pattern
// All external access must go through this gateway

// Private submodules - not directly accessible from outside
mod config;
pub mod event_source;
pub mod instructions;
pub mod lifecycle;
pub mod memory;
pub mod recorder;
pub mod replay;
pub mod run;
pub mod run_non_interactive;
pub mod terminal;

// Public re-exports - the ONLY way to access app functionality
pub use config::{
    CompactionConfig, Config, McpServerConfig, MemoryConfig, SafetyConfig, UserProviderConfig,
    get_config_dir, init_config, load_config, load_config_or_warn, persist_default_reasoning,
    persist_last_model, persist_ollama_allow_ram_offload, persist_ollama_num_ctx_for_model,
    persist_reasoning_for_model, resolve_model_id, save_config,
};
pub use event_source::{event_to_msg, parse_slash_command};
pub use lifecycle::RuntimeLifecycle;
pub use recorder::{
    RECORDING_FORMAT_VERSION, RecordLine, Recorder, Replay, ReplayEntry, SessionHeader,
};
pub use replay::{ReplayReport, replay_recording, run_replay};
pub use run::{InteractiveOptions, run_interactive_with};
pub use run_non_interactive::{RunOptions, RunResult, format_result, run_non_interactive_with};
pub use terminal::TerminalGuard;