Documentation
¶
Overview ¶
Package binresolve resolves the agentpaas-harness binary and Python SDK directory shared by the daemon pack path and the CLI install path.
The logic here is ported from the daemon's internal helpers (resolveHarnessBinary / resolveSDKDir) so both code paths stay in sync.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Executable = os.Executable
Executable returns the path to the current executable. Tests may override it.
Functions ¶
func HarnessBinary ¶
func HarnessBinary() string
HarnessBinary finds the agentpaas-harness binary for container images. It prefers the linux/arm64 cross-compile (agentpaas-harness-linux) over the darwin/arm64 Mac binary (agentpaas-harness). Returns an empty string if not found; callers fall back to pack.BuildImage's own exec.LookPath and clear error.
func SDKDir ¶
SDKDir finds the Python SDK directory (containing agentpaas_sdk) relative to the harness binary. The SDK lives in a "python/" subdirectory alongside the harness binary (e.g. /usr/local/bin → /usr/local/python). If not found there, it checks common repo locations. Returns "" if not found.
Types ¶
This section is empty.