This commit is contained in:
jif-oai
2026-05-07 22:08:46 +01:00
parent 22068b02b6
commit 7dd7ddb053
2 changed files with 7 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
/// Prompt region targeted by a contributed fragment.
// All this file should be replaced by the existing fragment implementation ofc
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum PromptSlot {
DeveloperPolicy,
@@ -7,7 +8,6 @@ pub enum PromptSlot {
SeparateDeveloper,
}
/// One text fragment contributed to prompt assembly by an extension. (wiring not done yet on purpose)
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct PromptFragment {
slot: PromptSlot,

View File

@@ -1,15 +1,7 @@
//! Semantic ports and typed assembly for first-party Codex extensions.
//!
//! This crate owns the small stable assembly layer: host-independent semantic
//! ports plus the registry used to collect their implementations. Port
//! contracts should live here only once they can be expressed without pulling
//! `codex-core` internals across the boundary.
#![forbid(unsafe_code)]
mod contributors;
mod extension;
mod registry;
mod state;
pub use contributors::ApprovalInterceptorContributor;
pub use contributors::ContextContributor;
@@ -24,3 +16,7 @@ pub use contributors::ToolHandler;
pub use extension::CodexExtension;
pub use registry::ExtensionRegistry;
pub use registry::ExtensionRegistryBuilder;
pub use state::ExtensionData;
pub use state::Stores;
pub use state::Thread;
pub use state::Turn;