diff --git a/codex-rs/ext/extension-api/examples/enabled_extensions.rs b/codex-rs/ext/extension-api/examples/enabled_extensions.rs index ab92f4acb5..0917ceb71c 100644 --- a/codex-rs/ext/extension-api/examples/enabled_extensions.rs +++ b/codex-rs/ext/extension-api/examples/enabled_extensions.rs @@ -38,7 +38,7 @@ fn main() { // Build the prompt let prompt_fragments = registry - .prompt_contributors() + .context_contributors() .iter() .flat_map(|contributor| contributor.contribute(&root_context)) .collect::>(); diff --git a/codex-rs/ext/extension-api/src/registry.rs b/codex-rs/ext/extension-api/src/registry.rs index 8de1473715..64495cccb4 100644 --- a/codex-rs/ext/extension-api/src/registry.rs +++ b/codex-rs/ext/extension-api/src/registry.rs @@ -91,7 +91,7 @@ impl ExtensionRegistryBuilder { pub fn build(self) -> ExtensionRegistry { ExtensionRegistry { approval_interceptor_contributors: self.approval_interceptor_contributors, - prompt_contributors: self.context_contributors, + context_contributors: self.context_contributors, tool_contributors: self.tool_contributors, output_contributors: self.output_contributors, } @@ -100,10 +100,10 @@ impl ExtensionRegistryBuilder { /// Immutable typed registry produced after extensions are installed. pub struct ExtensionRegistry { - approval_interceptor_contributors: Vec>>, - prompt_contributors: Vec>>, + context_contributors: Vec>>, tool_contributors: Vec>>, output_contributors: HashMap>, + approval_interceptor_contributors: Vec>>, } impl ExtensionRegistry { @@ -115,8 +115,8 @@ impl ExtensionRegistry { } /// Returns the registered prompt contributors. - pub fn prompt_contributors(&self) -> &[Arc>] { - &self.prompt_contributors + pub fn context_contributors(&self) -> &[Arc>] { + &self.context_contributors } /// Returns the registered native tool contributors.