muse_code_sdk/msp/capability.rs
1// @generated from the MSP stable schema and protocol sources; do not edit by hand.
2
3mod catch_all;
4
5/// A grantable capability name. Open: the reserved `rawLog` entry joins this
6/// domain as an additive open-enum extension when the protocol spec un-defers —
7/// closed would make that a retype.
8#[derive(Debug, Clone, PartialEq, Eq)]
9#[non_exhaustive]
10pub enum CapabilityName {
11 /// `session/userShell`.
12 UserShell,
13 /// Native MCP definitions supplied at session construction.
14 SessionMcp,
15 /// The opt-in `session/listChanged` row change stream: granted-by-default
16 /// delivery preference — the stream is emitted only on connections holding
17 /// this grant.
18 SessionListStream,
19 /// First-party feedback submission through the host: the host-policy gate
20 /// for `feedback/submit` — granted at `initialize` only when feedback is
21 /// allowed on the install, never by client identity.
22 Feedback,
23 /// Settings-driven computer-use setup: the gate for `computerUseSetup/*` —
24 /// granted at `initialize` only when computer use is offered on this host.
25 ComputerUseSetup,
26 /// Computer-use setup with no chat: `computerUseSetup/read` and `/start`
27 /// without `sessionId`, `computerUseSetup/check`, and the host's
28 /// `computerUseSetup/changed` — granted at `initialize` only when computer
29 /// use is offered and the host composes host setup.
30 ComputerUseHostSetup,
31 /// Whether this host can rename sessions: granted on request where the
32 /// session-name store exists (macOS, Linux; not the ephemeral profile),
33 /// never on Windows. Advisory: `session/rename` is not gated by it.
34 SessionRename,
35 /// Cross-session peer messaging and admission: the one gate for `peer/*`
36 /// and `admission/*` — granted at `initialize` iff the host serves the
37 /// plane (unix platform with registry access over a spawner-is-client or
38 /// same-user transport), refused on beyond-same-user transports.
39 /// Experimental-tier only: the per-variant stability strips it from the
40 /// stable render, like `rawLog` below.
41 PeerMessaging,
42 /// The raw-log altitude: all `log/*` and `projection/*` methods.
43 /// Experimental-tier only: granted solely on connections that opted into
44 /// `experimentalApi`; a v1 host never grants it as a stable surface. The
45 /// per-variant stability strips it from the stable render, keeping the
46 /// governing rules "nowhere outside reserved tables" pin green.
47 RawLog,
48 /// A value from a newer host, kept verbatim so an older client decodes the
49 /// rest of the message. Never construct it with a known word.
50 Unknown(String),
51}