prereq

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinTmuxMajor = 3
	MinTmuxMinor = 2
)

MinTmuxMajor/MinTmuxMinor is the oldest tmux leo supports: 3.2, the release that added `-e` to new-session. Leo passes agent env that way to keep credentials out of the pane's start command, so on an older tmux every spawn fails and the supervisor retries forever — agents appear to never start, with the real cause buried in the service log.

Variables

This section is empty.

Functions

func CheckTmux

func CheckTmux() bool

CheckTmux checks if tmux is installed and reachable.

func FindOpenClaw

func FindOpenClaw() string

FindOpenClaw searches for an OpenClaw installation in common locations.

func TmuxPath added in v0.12.1

func TmuxPath() string

TmuxPath returns the tmux binary leo will actually run, or "" if none. Delegates to tmux.Locate so a version check here inspects the same binary the supervisor spawns — a separate search order could otherwise validate one tmux and run another.

func TmuxVersion added in v0.12.1

func TmuxVersion() (raw string, ok bool)

TmuxVersion returns the raw `tmux -V` output and whether it satisfies leo's minimum. ok is true when tmux is missing (callers report absence separately) or when the version cannot be parsed.

Types

type BinaryResult added in v0.8.0

type BinaryResult struct {
	Path    string
	Version string
	OK      bool
}

BinaryResult holds the result of checking for a harness CLI binary.

func CheckBinary added in v0.8.0

func CheckBinary(name string) BinaryResult

CheckBinary checks if the named CLI binary is installed and reachable.

Jump to

Keyboard shortcuts

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