mirror of
https://github.com/openai/codex.git
synced 2026-05-18 02:02:30 +00:00
nit 3
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user