pub enum InstallMethod {
Standalone {
release_dir: AbsolutePathBuf,
resources_dir: Option<AbsolutePathBuf>,
platform: StandalonePlatform,
},
Npm,
Bun,
Pnpm,
Brew,
Other,
}Variants§
Standalone
Fields
release_dir: AbsolutePathBufThe managed standalone release directory. Legacy installs use paths
such as
~/.codex/packages/standalone/releases/0.111.0-x86_64-unknown-linux-musl.
Package-layout installs use the package root that contains bin/,
codex-resources/, and codex-path/.
resources_dir: Option<AbsolutePathBuf>The bundled resource directory for managed dependencies.
platform: StandalonePlatformThe platform of the standalone release, either Unix or Windows.
Npm
A Codex binary launched through the npm-managed codex.js shim.
Bun
A Codex binary launched through the bun-managed codex.js shim.
Pnpm
A Codex binary launched through the pnpm-managed codex.js shim.
Brew
A Codex binary that appears to come from a Homebrew install prefix.
Other
Any other execution environment.
This commonly covers cargo run, app-bundled Codex binaries, custom
internal launchers, and tests that execute Codex from an arbitrary path.
Trait Implementations§
Source§impl Clone for InstallMethod
impl Clone for InstallMethod
Source§fn clone(&self) -> InstallMethod
fn clone(&self) -> InstallMethod
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more