Skip to main content

UiCommand

Enum UiCommand 

Source
#[non_exhaustive]
pub enum UiCommand {
Show 25 variants ListRecentEvents(ListRecentEventsReq), GetEventDetail(GetEventDetailReq), FtsSearch(FtsSearchReq), ListPendingApprovals(ListPendingApprovalsReq), GetApprovalDetail(GetApprovalDetailReq), ResolveApproval(ResolveApprovalReq), ListPrivacyFindings(ListPrivacyFindingsReq), ListSessions(ListSessionsReq), ReplaySession(ReplaySessionReq), VerifyChain, ExportSessionReplay(ExportSessionReplayReq), ListServers, GetServerOnboarding(GetServerOnboardingReq), ListPendingToolApprovals, ListDriftedTools, ListDriftedServers, ApproveTool(ApproveToolReq), ApproveToolDrift(ApproveToolDriftReq), RejectToolDrift(RejectToolDriftReq), ApproveServerCommandDrift(ApproveServerCommandDriftReq), RejectServerCommandDrift(RejectServerCommandDriftReq), ListSandboxProfiles, GetSandboxProfile(GetSandboxProfileReq), UpsertSandboxProfile(UpsertSandboxProfileReq), BindServerSandboxProfile(BindServerSandboxProfileReq),
}
Expand description

UI 层的所有命令。每个变种带自己的 payload struct。

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ListRecentEvents(ListRecentEventsReq)

列最近的 AuditEvents(可选 session / 类型过滤)

§

GetEventDetail(GetEventDetailReq)

按 event_id 拿单条详细 payload

§

FtsSearch(FtsSearchReq)

FTS5 搜索 redacted_text

§

ListPendingApprovals(ListPendingApprovalsReq)

列 Pending 状态的 approvals

§

GetApprovalDetail(GetApprovalDetailReq)

拿某 approval 的完整细节(effect vector + decision)

§

ResolveApproval(ResolveApprovalReq)

批准 / 拒绝 / 取消

§

ListPrivacyFindings(ListPrivacyFindingsReq)

全局 Privacy Findings 聚合视图(label × count + 最近 scans 列表)

§

ListSessions(ListSessionsReq)

列所有 sessions

§

ReplaySession(ReplaySessionReq)

重放某 session(结构化事件 + 可选 verify_chain)

§

VerifyChain

单独触发 hash chain verify

§

ExportSessionReplay(ExportSessionReplayReq)

ISS-018 — Safe Export:把 session replay 渲染为 MD / HTML 文本, payload 已在 events 入库时由 vigil-redaction 脱敏,渲染层只读不改; 输出 content 由 caller 触发浏览器 download。

§

ListServers

列已登记的 servers

§

GetServerOnboarding(GetServerOnboardingReq)

取某 server 的 onboarding 数据(transport / argv / env keys)

§

ListPendingToolApprovals

列首次待批准的 tool descriptor

§

ListDriftedTools

列已 drift 的 tools

§

ListDriftedServers

列已 drift 的 servers

§

ApproveTool(ApproveToolReq)

首次批准 tool descriptor

§

ApproveToolDrift(ApproveToolDriftReq)

drift 后批准到新 hash

§

RejectToolDrift(RejectToolDriftReq)

drift reject(保留旧 hash)

§

ApproveServerCommandDrift(ApproveServerCommandDriftReq)

server command drift 批准

§

RejectServerCommandDrift(RejectServerCommandDriftReq)

server command drift 拒绝

§

ListSandboxProfiles

列所有 sandbox profiles

§

GetSandboxProfile(GetSandboxProfileReq)

按 id 取 profile

§

UpsertSandboxProfile(UpsertSandboxProfileReq)

新建或覆盖 profile(写命令)

§

BindServerSandboxProfile(BindServerSandboxProfileReq)

绑定 server → profile

Implementations§

Source§

impl UiCommand

Source

pub fn required_capability(&self) -> Capability

返回本命令要求的权限级别(ADR §I-8.4)。

Trait Implementations§

Source§

impl Clone for UiCommand

Source§

fn clone(&self) -> UiCommand

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 Debug for UiCommand

Source§

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

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

impl<'de> Deserialize<'de> for UiCommand

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for UiCommand

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for UiCommand

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for UiCommand

Source§

impl StructuralPartialEq for UiCommand

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<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> Same for T

Source§

type Output = T

Should always be Self
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,