Skip to main content

CommandCapabilities

Struct CommandCapabilities 

Source
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

Source

pub const NONE: Self

Source

pub const SESSION: Self

Source

pub const MODEL: Self

Source

pub const COST: Self

Source

pub const MODE_POLICY: Self

Source

pub const SYSTEM_PROMPT: Self

Source

pub const SKILLS: Self

Source

pub const WORKSPACE: Self

Source

pub const PRESENTATION: Self

Source

pub const MEDIA: Self

Source

pub const MEMORY: Self

Memory-group host data (FEAT-019 D1).

Source

pub const PROJECT: Self

Project-group host data (FEAT-021 D1).

Source

pub const SKILL_GROUP: Self

Skills-group host data (FEAT-022 D1).

Source

pub const PLUGIN: Self

Plugin-group host data (FEAT-020 D1), appended after current main capabilities.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub const DEBUG_RECEIPTS: Self

Debug receipts authority; independent from diagnostics and other debug operations.

Source

pub const DEBUG_CHANGE: Self

Debug change authority; independent from diagnostics and other debug operations.

Source

pub const DEBUG_HISTORY: Self

Debug history authority; independent from diagnostics and other debug operations.

Source

pub const DEBUG_DIFF: Self

Debug diff authority; independent from diagnostics and other debug operations.

Source

pub const DEBUG_UNDO: Self

Debug undo authority; independent from diagnostics and other debug operations.

Source

pub const SESSION_STRUCTCOPY: Self

One human-selected structural copy; independent from export/recovery.

Source

pub const PERMISSIONS: Self

Permission observations and token-checked removal, independent of status.

Source

pub const CONFIG_STATUS: Self

Read-only status observations, with no permission mutation authority.

Source

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.

Source

pub const PET: Self

Pet presence/mode/sound/habitat host data (FEAT-028 D3), independent of general configuration and system settings.

Source

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.

Source

pub const LOGIN: Self

Account/provider session state for /login and /logout (FEAT-028 D3).

Source

pub const WORK_SURFACE: Self

Workbar placement/panel state for /workbar (FEAT-028 D3).

Source

pub const NAVIGATION: Self

Source

pub const VOICE_INPUT: Self

Source

pub const fn union(self, other: Self) -> Self

Source

pub const fn contains(self, capability: Self) -> bool

Source

pub const fn is_empty(self) -> bool

Trait Implementations§

Source§

impl BitOr for CommandCapabilities

Source§

type Output = CommandCapabilities

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl Clone for CommandCapabilities

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CommandCapabilities

Source§

impl Debug for CommandCapabilities

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CommandCapabilities

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for CommandCapabilities

Source§

impl PartialEq for CommandCapabilities

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CommandCapabilities

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.