mirror of
https://github.com/openai/codex.git
synced 2026-11-08 20:40:33 +00:00
1. Added SessionSource::Custom(String) and --session-source. 2. Enforced plugin and skill products by session_source. 3. Applied the same filtering to curated background refresh.
41 lines
1.3 KiB
Rust
41 lines
1.3 KiB
Rust
//! Rollout module: persistence and discovery of session rollout files.
|
|
|
|
use std::sync::LazyLock;
|
|
|
|
use codex_protocol::protocol::SessionSource;
|
|
|
|
pub const SESSIONS_SUBDIR: &str = "sessions";
|
|
pub const ARCHIVED_SESSIONS_SUBDIR: &str = "archived_sessions";
|
|
pub static INTERACTIVE_SESSION_SOURCES: LazyLock<Vec<SessionSource>> = LazyLock::new(|| {
|
|
vec![
|
|
SessionSource::Cli,
|
|
SessionSource::VSCode,
|
|
SessionSource::Custom("atlas".to_string()),
|
|
SessionSource::Custom("chatgpt".to_string()),
|
|
]
|
|
});
|
|
|
|
pub(crate) mod error;
|
|
pub mod list;
|
|
pub(crate) mod metadata;
|
|
pub(crate) mod policy;
|
|
pub mod recorder;
|
|
pub(crate) mod session_index;
|
|
pub(crate) mod truncation;
|
|
|
|
pub use codex_protocol::protocol::SessionMeta;
|
|
pub(crate) use error::map_session_init_error;
|
|
pub use list::find_archived_thread_path_by_id_str;
|
|
pub use list::find_thread_path_by_id_str;
|
|
#[deprecated(note = "use find_thread_path_by_id_str")]
|
|
pub use list::find_thread_path_by_id_str as find_conversation_path_by_id_str;
|
|
pub use list::rollout_date_parts;
|
|
pub use recorder::RolloutRecorder;
|
|
pub use recorder::RolloutRecorderParams;
|
|
pub use session_index::append_thread_name;
|
|
pub use session_index::find_thread_name_by_id;
|
|
pub use session_index::find_thread_path_by_name_str;
|
|
|
|
#[cfg(test)]
|
|
pub mod tests;
|