CodexWrapper.Commands.Apply (CodexWrapper v0.4.0)

Copy Markdown View Source

Apply command -- apply an agent diff as git apply.

Wraps codex apply <task-id>.

Usage

config = CodexWrapper.Config.new(working_dir: "/path/to/repo")

{:ok, output} = CodexWrapper.Commands.Apply.execute(config, "abc-123")

Summary

Functions

Build the argument list for the apply command.

Apply the diff from the given task ID.

Functions

build_args(task_id)

@spec build_args(String.t()) :: [String.t()]

Build the argument list for the apply command.

execute(config, task_id)

@spec execute(CodexWrapper.Config.t(), String.t()) ::
  {:ok, String.t()} | {:error, term()}

Apply the diff from the given task ID.