unified-agent-api-codex 0.3.7

Async wrapper around the Codex CLI for programmatic prompting
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::ffi::OsString;

use crate::{ApplyDiffArtifacts, CodexClient, CodexError, UpdateCommandRequest};

impl CodexClient {
    /// Runs `codex update` and returns captured output.
    pub async fn update(
        &self,
        request: UpdateCommandRequest,
    ) -> Result<ApplyDiffArtifacts, CodexError> {
        self.run_simple_command_with_overrides(vec![OsString::from("update")], request.overrides)
            .await
    }
}