Add presentation hint for quiet managed hooks

This commit is contained in:
Abhinav Vedmala
2026-05-13 12:14:03 +00:00
parent 27e67a8c2a
commit c2a65edb6e
37 changed files with 465 additions and 1 deletions
+16
View File
@@ -1518,6 +1518,20 @@ pub enum HookRunStatus {
Stopped,
}
#[derive(Debug, Clone, Copy, Default, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "snake_case")]
pub enum HookVisibilityHint {
#[default]
Default,
Hidden,
}
impl HookVisibilityHint {
pub fn is_default(&self) -> bool {
*self == Self::Default
}
}
#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
#[serde(rename_all = "snake_case")]
pub enum HookOutputEntryKind {
@@ -1549,6 +1563,8 @@ pub struct HookRunSummary {
pub display_order: i64,
pub status: HookRunStatus,
pub status_message: Option<String>,
#[serde(default)]
pub visibility_hint: HookVisibilityHint,
#[ts(type = "number")]
pub started_at: i64,
#[ts(type = "number | null")]