pub enum OperatorGateSubject {
Directory {
path: Option<String>,
},
Hooks {
count: Option<u32>,
},
McpServers,
Account,
ApiKey,
Appearance,
Unknown,
}Expand description
WHAT entity OperatorGateState is gating access to – narrower than
kind (which says what TYPE of question this is): two WorkspaceTrust
gates always share subject: Directory, but the path detail (when a
matcher can read one off the screen) distinguishes which directory.
Unknown is the honest reading for a kind whose screen text does not
name a concrete subject from this list (a vendor updater or onboarding
splash is not “about” a directory, a hook set, or an account) – it is
never upgraded into a guess.
Variants§
Directory
A project/workspace directory. path is the directory the screen
names, when a matcher can read one off the text; None means the
screen’s phrasing did not carry one, not that there is no directory.
Hooks
A set of shell hooks discovered inside an already-trusted directory.
count is the number reported on screen, when readable; None means
unreadable, never zero.
McpServers
MCP servers configured for the project.
Account
The signed-in account/identity.
ApiKey
An API key/credential value.
Appearance
Terminal color/text-style appearance.
Unknown
No concrete subject from this list applies to the matched kind.