Documentation
¶
Overview ¶
Package binpath resolves which executable each agent adapter should probe and spawn.
By default every engine is looked up by bare name on PATH ("codex", "codex", ...). That breaks in images where PATH is not under our control: e2b's base image, for instance, ships its own /usr/local/bin entries that can shadow the ones we install, and a bare-name lookup then resolves to the wrong (or no) binary. The symptom is the worst kind — `oac-daemon connect` reports "no supported agent CLI available" and the device never dials in, with no indication of which lookup failed.
The env overrides below let an image or operator pin an absolute path instead. They are read in ONE place so the version probe (CheckCLIAvailable) and the run-time spawn (sessionConfig) can never disagree: a probe that succeeds against /custom/codex while the run spawns PATH's `codex` would advertise a capability the daemon cannot actually honour.
Index ¶
Constants ¶
const ( EnvCodex = "OAC_RUNTIME_CODEX_BIN" EnvMCode = "OAC_RUNTIME_MCODE_BIN" )
Env var names for the per-engine executable overrides. Empty or unset means "look up the default name on PATH".
const ( DefaultCodex = "codex" DefaultMCode = "mcode" )
Default executable names, used when the matching env var is unset.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.