Support admin scope skills. (#8296)

a new scope reads from /etc/codex
This commit is contained in:
xl-openai
2025-12-18 18:28:56 -08:00
committed by GitHub
parent d35337227a
commit 8120c8765b
3 changed files with 61 additions and 2 deletions

View File

@@ -1081,6 +1081,7 @@ pub enum SkillScope {
User,
Repo,
System,
Admin,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
@@ -1131,6 +1132,7 @@ impl From<CoreSkillScope> for SkillScope {
CoreSkillScope::User => Self::User,
CoreSkillScope::Repo => Self::Repo,
CoreSkillScope::System => Self::System,
CoreSkillScope::Admin => Self::Admin,
}
}
}