mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
## What changed - Honor `RuntimeAgentInstances` and the configured runtime auth mode for Analytics plan discovery and report requests to OpenAI endpoints. - Share installation ID resolution and Codex runtime registration setup through `codex-runtime-agent-instance`. - Preserve typed runtime authentication errors so expired credentials retain the “Sign in again to load Analytics” guidance. ## Testing Add coverage for both runtime auth modes across regional and staging endpoints, fresh assertions for each request, sign-in guidance after bootstrap failure, redirect rejection, and invalid organization/project selectors. GitOrigin-RevId: 50e0d959b3abd81ebe7a6a584e272f14cf52e504
38 lines
1.3 KiB
Rust
38 lines
1.3 KiB
Rust
//! Ephemeral OpenAI runtimes: composite registration and per-request assertions.
|
|
|
|
mod actor;
|
|
mod auth;
|
|
mod binding;
|
|
mod bootstrap;
|
|
mod installation_id;
|
|
mod manager;
|
|
mod registration;
|
|
mod runtime;
|
|
|
|
pub use actor::AgentHost;
|
|
pub use actor::AuthenticatedActor;
|
|
pub use bootstrap::ActorInfo;
|
|
pub use bootstrap::AgentHostAuthorization;
|
|
pub use bootstrap::AuthenticatedActorAuthorization;
|
|
pub use bootstrap::PlatformResourceSelection;
|
|
pub use bootstrap::RuntimeRegistrationMetadata;
|
|
pub use bootstrap::RuntimeRegistrationRequest;
|
|
pub use bootstrap::RuntimeRegistrationResponse;
|
|
pub use bootstrap::RuntimeRole;
|
|
pub use codex_http_client::is_openai_api_url;
|
|
|
|
pub use auth::RuntimeAuth;
|
|
pub use binding::RuntimeAuthBinding;
|
|
pub use binding::RuntimeAuthError;
|
|
pub use installation_id::resolve_installation_id;
|
|
pub use manager::RuntimeAuthManager;
|
|
pub use registration::DEFAULT_REGISTRATION_URL;
|
|
pub use registration::RegistrationError;
|
|
pub use registration::RegistrationErrorCode;
|
|
pub use registration::RuntimeRegistrationClient;
|
|
pub use runtime::RuntimeAgentInstance;
|
|
pub use runtime::RuntimeRegistration;
|
|
|
|
/// Harness-owned lazy runtime, shared before any request requires registration.
|
|
pub type RuntimeAuthSlot = std::sync::Arc<std::sync::OnceLock<std::sync::Arc<RuntimeAuthManager>>>;
|