vs_cli/lib.rs
1//! `vs` — the vibesurfer CLI.
2//!
3//! The binary at `src/main.rs` is the CLI front-end; this library
4//! holds the reusable pieces (client, active-session, spawn, command
5//! dispatch) so integration tests can construct flows without forking
6//! the binary.
7
8#![cfg_attr(not(any(unix, target_os = "windows")), forbid(unsafe_code))]
9#![cfg_attr(any(unix, target_os = "windows"), allow(unsafe_code))]
10
11pub mod active_session;
12pub mod client;
13pub mod commands;
14pub mod mcp;
15pub mod paths;
16pub mod serve;
17pub mod skill_install;
18pub mod spawn;
19
20pub use client::{Client, Response};
21
22/// Returns the crate version (matches the workspace version).
23#[must_use]
24pub fn version() -> &'static str {
25 env!("CARGO_PKG_VERSION")
26}