pub struct CommandCapabilities(/* private fields */);Expand description
Exact host capabilities exposed to one contextual command handler.
The set lives in the external contract crate so command registrations can
declare least authority without naming the TUI host. The dispatcher uses
the declaration to populate only those slots in CommandContexts.
Implementations§
Source§impl CommandCapabilities
impl CommandCapabilities
pub const NONE: Self
pub const SESSION: Self
pub const MODEL: Self
pub const COST: Self
pub const MODE_POLICY: Self
pub const SYSTEM_PROMPT: Self
pub const SKILLS: Self
pub const WORKSPACE: Self
pub const PRESENTATION: Self
pub const MEDIA: Self
Sourcepub const SKILL_GROUP: Self
pub const SKILL_GROUP: Self
Skills-group host data (FEAT-022 D1).
Sourcepub const PLUGIN: Self
pub const PLUGIN: Self
Plugin-group host data (FEAT-020 D1), appended after current main capabilities.
Sourcepub const SESSION_LIFECYCLE: Self
pub const SESSION_LIFECYCLE: Self
Session-lifecycle host data (FEAT-023 D3), the next non-conflicting bit
after PLUGIN. Required only by the seven host-dependent lifecycle
commands; /compact and /purge remain pure. Never widened by the
basic session capability.
Sourcepub const SESSION_CONTROL: Self
pub const SESSION_CONTROL: Self
Session-control host data (FEAT-024 D3), the next non-conflicting bit
after SESSION_LIFECYCLE. Required only by the seven host-dependent
control commands (/relay, /rename, /resume, /rc, /remote-env,
/title, /color); /remote-env and /color also declare
PRESENTATION. Bit 14 fit the
original u16 backing without speculative widening in FEAT-023.
Sourcepub const SESSION_EXPORT: Self
pub const SESSION_EXPORT: Self
Session-export host data (FEAT-025 D1), the next non-conflicting bit
after SESSION_CONTROL. Required only by the host-dependent /export
command (and its /daochu alias) and by /share, which publishes the
same redacted projection; every concrete App, snapshot, clipboard,
filesystem, history, and turn-handoff access stays behind the TUI export
adapter.
This filled the original 16-bit space. FEAT-029 widened the backing storage before allocating the next independent diagnostics authority; the published identity of this bit remains unchanged.
Sourcepub const DEBUG_DIAGNOSTICS: Self
pub const DEBUG_DIAGNOSTICS: Self
Debug diagnostics host data (FEAT-029 D3/D4). This is the first bit in the widened backing storage; other debug commands retain their own independent authority and do not borrow this facet.
Sourcepub const DEBUG_RECEIPTS: Self
pub const DEBUG_RECEIPTS: Self
Debug receipts authority; independent from diagnostics and other debug operations.
Sourcepub const DEBUG_CHANGE: Self
pub const DEBUG_CHANGE: Self
Debug change authority; independent from diagnostics and other debug operations.
Sourcepub const DEBUG_HISTORY: Self
pub const DEBUG_HISTORY: Self
Debug history authority; independent from diagnostics and other debug operations.
Sourcepub const DEBUG_DIFF: Self
pub const DEBUG_DIFF: Self
Debug diff authority; independent from diagnostics and other debug operations.
Sourcepub const DEBUG_UNDO: Self
pub const DEBUG_UNDO: Self
Debug undo authority; independent from diagnostics and other debug operations.
Sourcepub const SESSION_STRUCTCOPY: Self
pub const SESSION_STRUCTCOPY: Self
One human-selected structural copy; independent from export/recovery.
Sourcepub const PERMISSIONS: Self
pub const PERMISSIONS: Self
Permission observations and token-checked removal, independent of status.
Sourcepub const CONFIG_STATUS: Self
pub const CONFIG_STATUS: Self
Read-only status observations, with no permission mutation authority.
Sourcepub const CONFIG: Self
pub const CONFIG: Self
Config-group host data (FEAT-028 D3), the next non-conflicting bit after
CONFIG_STATUS. Read/write settings, keys, presets, the editability
audit and login/logout observations for the config command group. It does
not grant pet, trust, mode, or workspace authority.
Sourcepub const PET: Self
pub const PET: Self
Pet presence/mode/sound/habitat host data (FEAT-028 D3), independent of general configuration and system settings.
Sourcepub const TRUST: Self
pub const TRUST: Self
Workspace trust and trusted-path allow-list host data (FEAT-028 D3),
independent of the general config facet and of WORKSPACE operations.
Sourcepub const WORK_SURFACE: Self
pub const WORK_SURFACE: Self
Workbar placement/panel state for /workbar (FEAT-028 D3).
pub const NAVIGATION: Self
pub const VOICE_INPUT: Self
pub const fn union(self, other: Self) -> Self
pub const fn contains(self, capability: Self) -> bool
pub const fn is_empty(self) -> bool
Trait Implementations§
Source§impl BitOr for CommandCapabilities
impl BitOr for CommandCapabilities
Source§impl Clone for CommandCapabilities
impl Clone for CommandCapabilities
impl Copy for CommandCapabilities
Source§impl Debug for CommandCapabilities
impl Debug for CommandCapabilities
Source§impl Default for CommandCapabilities
impl Default for CommandCapabilities
impl Eq for CommandCapabilities
Source§impl PartialEq for CommandCapabilities
impl PartialEq for CommandCapabilities
impl StructuralPartialEq for CommandCapabilities
Auto Trait Implementations§
impl Forget for CommandCapabilities
impl Freeze for CommandCapabilities
impl Move for CommandCapabilities
impl RefUnwindSafe for CommandCapabilities
impl Send for CommandCapabilities
impl Sync for CommandCapabilities
impl Unpin for CommandCapabilities
impl UnsafeUnpin for CommandCapabilities
impl UnwindSafe for CommandCapabilities
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.