surjection-core 1.1.0

Core library of Surjection: MCP servers, skills and secret references for AI coding clients
Documentation
//! Single source of brand strings (SPEC Appendix C). A rename touches this
//! module, the crate names and the docs, nothing else.

/// Product display name and window title.
pub const PRODUCT_NAME: &str = "Surjection";
/// Project, repository and CLI package name (`cargo install surjection`).
pub const PACKAGE_NAME: &str = "surjection";
/// Typed CLI binary name.
pub const BIN_NAME: &str = "surject";
/// Desktop app binary name (Tauri `mainBinaryName`).
pub const APP_BIN_NAME: &str = "surjection";
/// GitHub repository (`owner/name`).
pub const REPO: &str = "DailenG/surjection";
/// Tauri identifier; also what `surject --identify` prints.
pub const APP_ID: &str = "dev.surject.surjection";

/// Data directory name under `%LOCALAPPDATA%` on Windows.
pub const DATA_DIR_WINDOWS: &str = "Surjection";
/// Data directory name under `${XDG_DATA_HOME:-~/.local/share}` on Linux.
pub const DATA_DIR_LINUX: &str = "surjection";
/// Data directory name under `~/Library/Application Support` on macOS.
pub const DATA_DIR_MACOS: &str = "Surjection";
/// Environment variable that overrides the data directory.
pub const HOME_ENV_VAR: &str = "SURJECTION_HOME";
/// Debug builds of the CLI read a test keyring file from this variable
/// instead of the OS keyring; release builds refuse keyring calls while it
/// is set.
pub const TEST_KEYRING_ENV_VAR: &str = "SURJECTION_TEST_KEYRING";
/// Debug builds of core use the archive at this absolute path as
/// SkillSpector's private uv (its pin read from `<archive>.pin.json`
/// beside it, the archive served by `skillspector::uv_download` instead
/// of GitHub); release builds ignore it.
pub const TEST_UV_ARCHIVE_ENV_VAR: &str = "SURJECTION_TEST_UV_ARCHIVE";
/// Variable names `surject exec` stage 1 hands to stage 2 under `op run`.
pub const EXEC_ENV_VAR: &str = "SURJECTION_EXEC_ENV";
/// Prefix of every message `surject exec` writes (stderr only).
pub const EXEC_PREFIX: &str = "surject-exec:";

/// Per-project manifest directory (`<P>/.surjection/`).
pub const PROJECT_DIR: &str = ".surjection";
/// Prefix of git commit trailers written to the store (`Surjection-Op: ...`).
pub const TRAILER_PREFIX: &str = "Surjection-";
/// OS keyring service name.
pub const KEYRING_SERVICE: &str = "surjection";

/// Store commit author and committer name prefix (`surjection <machine-label>`).
pub const COMMIT_AUTHOR_NAME: &str = "surjection";
/// Domain of store commit e-mail addresses (`<machine-id>@surjection.invalid`).
pub const COMMIT_EMAIL_DOMAIN: &str = "surjection.invalid";
/// `Surjection-Client` trailer name of the CLI (`surject-cli/<version>`).
pub const CLI_CLIENT_NAME: &str = "surject-cli";
/// `Surjection-Client` trailer name of the desktop app (`surjection-app/<version>`).
pub const APP_CLIENT_NAME: &str = "surjection-app";

/// Names Loadout 1.0.x used (the product's former name). Read for
/// compatibility and by `surject migrate loadout`; never written.
pub mod legacy {
    /// Former product name.
    pub const PRODUCT_NAME: &str = "Loadout";
    /// Former typed CLI binary name (now the `loadout` shim).
    pub const BIN_NAME: &str = "loadout";
    /// Former desktop binary name.
    pub const APP_BIN_NAME: &str = "agent-loadout-app";
    /// Former Tauri identifier (WebView profile folder name).
    pub const APP_ID: &str = "dev.dailen.loadout";
    /// Former data directory names.
    pub const DATA_DIR_WINDOWS: &str = "Loadout";
    pub const DATA_DIR_LINUX: &str = "loadout";
    pub const DATA_DIR_MACOS: &str = "Loadout";
    /// Honored when `SURJECTION_HOME` is unset.
    pub const HOME_ENV_VAR: &str = "LOADOUT_HOME";
    /// Honored when `SURJECTION_LOG` is unset.
    pub const LOG_ENV_VAR: &str = "LOADOUT_LOG";
    /// Former per-project manifest directory, still read and written in place.
    pub const PROJECT_DIR: &str = ".loadout";
    /// Former commit trailer prefix, still parsed in history.
    pub const TRAILER_PREFIX: &str = "Loadout-";
    /// Former keyring service; entries under it still resolve.
    pub const KEYRING_SERVICE: &str = "loadout";
    /// Former bundled agent skill id.
    pub const SKILL_ID: &str = "loadout";
}