Introduce executor-backed environment APIs

Route unified exec through Environment executor sessions and move AGENTS, skill content, and read_file reads onto the environment filesystem.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
starr-openai
2026-03-19 13:11:23 -07:00
parent b4b3ffc0fc
commit bba7b95d5e
12 changed files with 879 additions and 218 deletions

View File

@@ -2,6 +2,7 @@ mod client;
mod client_api;
mod connection;
mod environment;
mod executor;
mod fs;
mod local;
mod protocol;
@@ -29,12 +30,29 @@ pub use codex_app_server_protocol::FsRemoveResponse;
pub use codex_app_server_protocol::FsWriteFileParams;
pub use codex_app_server_protocol::FsWriteFileResponse;
pub use environment::Environment;
pub use environment::EnvironmentError;
pub use executor::ExecError;
pub use executor::ExecExit;
pub use executor::ExecOutputEvent;
pub use executor::ExecSession;
pub use executor::ExecSpawnRequest;
pub use executor::Executor;
pub use executor::InheritedFd;
pub use executor::LocalExecSession;
pub use executor::LocalExecutor;
pub use executor::PtySize;
pub use executor::RemoteExecSession;
pub use executor::RemoteExecutor;
pub use executor::SandboxKind;
pub use fs::CopyOptions;
pub use fs::CreateDirectoryOptions;
pub use fs::ExecutorFileSystem;
pub use fs::FileMetadata;
pub use fs::FileSystemResult;
pub use fs::FsError;
pub use fs::LocalFileSystem;
pub use fs::ReadDirectoryEntry;
pub use fs::RemoteFileSystem;
pub use fs::RemoveOptions;
pub use local::ExecServerLaunchCommand;
pub use local::SpawnedExecServer;