1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// @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,
/// 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),
}