neosian 3.0.0

The state layer for LLM agents, as one static binary: the record, memory and the state process
//! The registration key `neosian` and the earlier `neosian-memory` (DESIGN
//! ยง40.53): every client is written under `neosian` for a new registration,
//! keeps the old key where ours stands, and is moved by the reinstall.

/// The key earlier releases wrote; ours by name wherever it stands
/// (an entry with a `url` excepted: neosian never writes one).
pub const OLD: &str = "neosian-memory";
/// The key this release writes; ours by receipt or adoption.
pub const NEW: &str = "neosian";
/// The clients whose `neosian` entry is ours only by the receipt or adoption:
/// the refresh's clients and Claude Desktop. The reinstall moves only those an
/// earlier release registered under the old key (`shipped`).
pub const CLIENTS: [&str; 9] = [
    "claude-code",
    "codex",
    "opencode",
    "muse-code",
    "cursor",
    "pi",
    "claude-desktop",
    "agy",
    "vibe",
];

pub fn renamed(client: &str) -> bool {
    CLIENTS.contains(&client)
}

/// Whether an earlier release wrote `neosian-memory` for this client. No
/// release did for Antigravity CLI or Mistral Vibe: a fresh entry there has
/// no move to make or undo, and an old key there is not ours by its name.
pub fn shipped(client: &str) -> bool {
    !["agy", "vibe"].contains(&client)
}