binpath

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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".

View Source
const (
	DefaultCodex = "codex"
	DefaultMCode = "mcode"
)

Default executable names, used when the matching env var is unset.

Variables

This section is empty.

Functions

func Codex

func Codex() string

Codex returns the codex executable to probe and spawn.

func MCode

func MCode() string

MCode returns the mcode executable to probe and spawn.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL