Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
// Tauri command surface + the AppHandle-driven server lifecycle are
// desktop-only; the CLI drives MCP through `core::cli::mcp`.
#[cfg(not(feature = "cli"))]
pub mod commands;
pub mod constants;
#[cfg(not(feature = "cli"))]
pub mod helpers;
// Server connection generations and tool-name routing: shared by the desktop
// commands, the CLI and the agent loop.
pub mod identity;
#[cfg(not(feature = "cli"))]
pub mod lockfile;
pub mod models;
// OAuth for remote MCP servers: Tauri-free so the CLI drives it today and the
// desktop activation stack can adopt it unchanged.
pub mod oauth;
#[cfg(not(feature = "cli"))]
pub mod progress;
// The server direction: Jan's own toolset offered to other agents. Tauri-free,
// so it is built in both feature configs.
pub mod server;
pub mod truncate;
#[cfg(test)]
#[cfg(not(feature = "cli"))]
mod tests;