Skip to main content

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 caller;
13pub mod client;
14pub mod commands;
15pub mod mcp;
16pub mod paths;
17pub mod serve;
18pub mod skill_install;
19pub mod spawn;
20
21pub use client::{Client, Response};
22
23/// Returns the crate version (matches the workspace version).
24#[must_use]
25pub fn version() -> &'static str {
26    env!("CARGO_PKG_VERSION")
27}