Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

1.0 KB
Raw Blame
pub mod agent;
pub mod app;
#[cfg(feature = "cli")]
pub mod cli;
// Download manager, native file dialogs/IO commands, and the system/tray
// command surface are desktop-only; the CLI uses std::fs and its own tools.
#[cfg(not(feature = "cli"))]
pub mod downloads;
#[cfg(not(feature = "cli"))]
pub mod filesystem;
pub mod mcp;
// Desktop-only: the webview navigation guard.
#[cfg(not(feature = "cli"))]
pub mod navigation;
pub mod openai_schema;
pub mod server;
// Desktop-only app setup (tray, theme, window wiring); pulls in Tauri GUI types
// (Wry/AppHandle) the headless `jan` CLI build does not link.
#[cfg(not(feature = "cli"))]
pub mod setup;
pub mod state;
#[cfg(not(feature = "cli"))]
pub mod system;
pub mod threads;

// `custom_updater`/`hmac_client` (the HMAC-signed request-signing bits) are
// also used by the headless CLI's usage ping (`cli::telemetry`); only
// `commands`/`session` are Tauri-specific and stay desktop-only, see
// `updater::mod`.
#[cfg(not(any(target_os = "android", target_os = "ios")))]
pub mod updater;