Documentation
¶
Index ¶
Constants ¶
const ( StatusPass = "pass" StatusFail = "fail" StatusRecovered = "recovered" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckFunc ¶
type CheckFunc func() CheckResult
CheckFunc is a function that performs a health check.
type CheckResult ¶
CheckResult holds the outcome of a single health check.
func CheckAgentProcess ¶ added in v0.1.22
func CheckAgentProcess(tc *tmux.Client, sessionName, procName string) CheckResult
CheckAgentProcess verifies that a child process named procName is alive under the tmux pane for sessionName. procName is the value the agent reports via Agent.ProcessName() — "codex" for the codex agent. The check is agent-agnostic; this package has no dependency on any specific agent implementation.
func CheckEnvVars ¶
func CheckEnvVars(required []string) CheckResult
CheckEnvVars checks that all required environment variables are set. Returns fail with list of missing vars if any are absent.
func CheckPathEntries ¶
func CheckPathEntries(required []string) CheckResult
CheckPathEntries checks that all required binaries are available in PATH. An empty list always passes.
func CheckTmuxSession ¶
func CheckTmuxSession(client *tmux.Client, name string) CheckResult
CheckTmuxSession verifies that a tmux session with the given name exists.
func CheckWorkdir ¶
func CheckWorkdir(workdir string) CheckResult
CheckWorkdir verifies that the given directory exists and is a directory.
func (CheckResult) Passed ¶
func (r CheckResult) Passed() bool
Passed returns true if the check passed or was recovered.
type Results ¶
type Results struct {
Items []CheckResult
}
Results holds the outcomes of all executed checks.
func (Results) Failures ¶
func (r Results) Failures() []CheckResult
Failures returns only the failed check results.