mermaid-cli 0.22.0

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;
mod editor;
pub mod event_source;
pub mod instructions;
pub mod lifecycle;
pub mod memory;
pub mod plugin_assets;
mod project_config;
pub mod recorder;
pub mod replay;
pub mod run;
pub mod run_non_interactive;
pub mod sandbox_exec;
pub mod skills;
pub mod terminal;

// Public re-exports - the ONLY way to access app functionality
pub use config::{
    get_config_dir, init_config, load_config, load_config_or_warn, load_layered_config,
    load_layered_config_or_warn, load_project_scoped_config, persist_default_reasoning,
    persist_last_model, persist_ollama_allow_ram_offload, persist_ollama_num_ctx_for_model,
    persist_plan_config, persist_reasoning_for_model, persist_ui_theme, remove_user_config_key,
    resolve_model_id, update_user_config_key,
};
pub use event_source::event_to_msg;
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;