mirror of
https://github.com/openai/codex.git
synced 2026-11-08 20:40:33 +00:00
Add presentation hint for quiet managed hooks
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user