mirror of
https://github.com/openai/codex.git
synced 2026-05-01 01:47:18 +00:00
Add skill approval event/response (#12633)
Set the stage for skill-level permission approval in addition to command-level. Behind a feature flag.
This commit is contained in:
15
codex-rs/protocol/src/skill_approval.rs
Normal file
15
codex-rs/protocol/src/skill_approval.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
use ts_rs::TS;
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
|
||||
pub struct SkillRequestApprovalEvent {
|
||||
pub item_id: String,
|
||||
pub skill_name: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
|
||||
pub struct SkillApprovalResponse {
|
||||
pub approved: bool,
|
||||
}
|
||||
Reference in New Issue
Block a user