muse-code-sdk 1.4.24

Async Rust client for Muse Code over MSP
Documentation
// @generated from the MSP stable schema and protocol sources; do not edit by hand.

mod catch_all;

/// A grantable capability name. Open: the experimental-only `rawLog` entry
/// joins the stable domain as an additive open-enum extension when it graduates
/// — closed would make that a retype.
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum CapabilityName {
    /// `session/userShell`.
    UserShell,
    /// Native MCP definitions supplied at session construction.
    SessionMcp,
    /// The opt-in `session/listChanged` row change stream: granted-by-default
    /// delivery preference — the stream is emitted only on connections holding
    /// this grant.
    SessionListStream,
    /// First-party feedback submission through the host: the host-policy gate
    /// for `feedback/submit` — granted at `initialize` only when feedback is
    /// allowed on the install, never by client identity.
    Feedback,
    /// Settings-driven computer-use setup: the gate for `computerUseSetup/*` —
    /// granted at `initialize` only when computer use is offered on this host.
    ComputerUseSetup,
    /// Computer-use setup with no chat: `computerUseSetup/read` and `/start`
    /// without `sessionId`, `computerUseSetup/check`, and the host's
    /// `computerUseSetup/changed` — granted at `initialize` only when computer
    /// use is offered and the host composes host setup.
    ComputerUseHostSetup,
    /// Whether this host can rename sessions: granted on request where the
    /// session-name store exists (macOS, Linux; not the ephemeral profile),
    /// never on Windows. Advisory: `session/rename` is not gated by it.
    SessionRename,
    /// Cross-session peer messaging and admission: the one gate for `peer/*`
    /// and `admission/*` — granted at `initialize` iff the host serves the
    /// plane (unix platform with registry access over a spawner-is-client or
    /// same-user transport), refused on beyond-same-user transports.
    /// Experimental-tier only: the per-variant stability strips it from the
    /// stable render, like `rawLog` below.
    PeerMessaging,
    /// The raw-log altitude: the `log/*` record methods and `projection/*`; the
    /// `log/physical*` export has its own `rawLogPhysical` grant.
    /// Experimental-tier only: granted solely on connections that opted into
    /// `experimentalApi`; a v1 host never grants it as a stable surface. The
    /// per-variant stability strips it from the stable render, so the stable
    /// bundle names it only in reserved tables.
    RawLog,
    /// The physical export: `log/physicalSubscribe`, `log/physicalFiles`,
    /// `log/physicalUnsubscribe`. Experimental-tier only and independent of
    /// `rawLog`: either can be withheld alone.
    RawLogPhysical,
    /// The experimental `journal/*` surface: lets a client act as the
    /// durable store for the host's session journal. Experimental tier
    /// only, behind `experimentalApi`; not granted by default.
    Journal,
    /// The socket daemon's vacate contract, revision 1: a client that requests
    /// it re-resumes its sessions on the canonical socket after `vacated`, and
    /// a granted connection counts as one that follows a vacate.
    /// Experimental-tier only, because the contract's own words are; only the
    /// socket daemon acts on it. A later revision of the contract takes a new
    /// name.
    DaemonVacate,
    /// The serve process's launcher context in `InitializeResult`: a client
    /// that requests it is told the invocation id and context the launcher
    /// started this process with. Experimental-tier only; gates no method.
    LaunchContext,
    /// The Skill Provider: named only as `-32010`'s `data.capability` when a
    /// connection without the effective `initialize` member `skillProvider`
    /// sends `skillProvider/updated`. Never granted through
    /// `requestedCapabilities`: the client declares it in
    /// `capabilities.skillProvider` instead, so it is in no grantable list.
    SkillProvider,
    /// A value from a newer host, kept verbatim so an older client decodes the
    /// rest of the message. Never construct it with a known word.
    Unknown(String),
}