Skip to main content

Crate saferskills

Crate saferskills 

Source
Expand description

SaferSkills CLI — library root.

The binary (src/main.rs) is a thin shell over this library: it parses the clap tree, resolves output config, dispatches to a commands::run_* fn, and maps the result to a process exit code. Everything testable lives here.

Module map (mirrors openlatch-client minus its daemon/hook/auth/cloud subsystems):

Re-exports§

pub use core::config;
pub use core::error;
pub use core::http;
pub use core::registry;
pub use core::telemetry;

Modules§

agents
Agent model + detection + writer dispatch.
api
Typed endpoint wrappers + client-side name resolution.
cli
Command-line surface: the clap tree, global flags, and output-config resolution.
commands
Command handlers. Dispatch is a single match in main.rs over the clap enum → one free run_* fn per command (no command trait).
core
Shared leaf modules: config + local state, the error model, the HTTP client, the install registry, the Proof-of-Work solver, and telemetry.
tui
Interactive terminal UI for the search command (the only TUI surface).