Skip to main content

svault_ai/
lib.rs

1//! Svault — an AI-aware secret access layer.
2//!
3//! The crate is organized into a reusable [`core`] and a set of frontends that
4//! drive it:
5//!
6//! - [`core`] — crypto, vault storage, the policy engine, the AI judge, and
7//!   supporting primitives. Frontend-agnostic.
8//! - [`daemon`] — the Unix unlock daemon and its client.
9//! - [`tui`] — the interactive terminal UI.
10//! - [`cli`] — the `svault` command-line interface (entry point: [`cli::run`]).
11//! - [`mcp`] — the local Model Context Protocol server (`svault mcp`), a stdio
12//!   JSON-RPC frontend that exposes gated secret access to AI agents.
13//! - [`gui`] — placeholder for a future graphical frontend.
14//!
15//! The `svault` binary ([`main`](../main/index.html)) is a thin wrapper over
16//! [`cli::run`]. Each frontend reuses [`core`] without touching the others.
17//!
18//! Note: the [`core`] module deliberately shadows the std `core` crate; the
19//! source uses `std` throughout, so this is safe. Reach the std crate with
20//! `::core` if ever needed.
21
22pub mod cli;
23pub mod core;
24pub mod daemon;
25pub mod gui;
26pub mod mcp;
27pub mod tui;