mirror of
https://github.com/openai/codex.git
synced 2026-11-16 06:54:36 +00:00
Require content kinds for extension prompt fragments (#40177)
## What changed - Require each `PromptFragment` to include a producer-owned `ContentItemKind`. - Re-export `ContentItemKind` from `codex_extension_api` and assign stable kinds to skills, memories, examples, and test contributors. - Limit prompt slots to developer policy and developer capabilities, and combine contributed fragments into a single developer update. ## Testing - Update extension registry tests to verify fragment ordering with the new content-kind metadata. GitOrigin-RevId: ef8624a9b4ae9dce025bca9c0954d91dd8075e85
This commit is contained in:
1 parent
eff640f458
commit
546eed94ac
9 files changed
+67
-83
No files matched your search
@@ -128,6 +128,9 @@ impl codex_extension_api::ContextContributor for GuardianMemoryContextProbe {
|
||||
{
|
||||
vec![codex_extension_api::PromptFragment::developer_policy(
|
||||
GUARDIAN_MEMORY_CONTEXT_PROBE,
|
||||
codex_extension_api::ContentItemKind(
|
||||
"guardian.memory_context_probe".to_string(),
|
||||
),
|
||||
)]
|
||||
} else {
|
||||
Vec::new()
|
||||
|
||||
Reference in new issue
Block a user