Help us shape the future of Go! Take the 2026 Go Developer Survey

healthcheck

package
v0.105.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAgent

func NewAgent(step agentlib.Step) *agentlib.Agent

NewAgent wraps any Step in a phase-agnostic *agentlib.Agent. The step is registered under all three canonical phase names so the healthcheck task succeeds regardless of which PHASE env the executor injects (planning, execution, ai_review per CLAUDE.md doctrine).

func NewClaudeStep

func NewClaudeStep(runner claudelib.ClaudeRunner) agentlib.Step

NewClaudeStep returns a Step that runs a "reply 'ok'" smoke prompt via the configured Claude CLI runner. Used by the agent-claude binary to verify that its Claude CLI dependency is reachable.

On success the Result.Message is populated with the trimmed reply text — this is intentional to capture the liveness response for operator log/audit.

func NewGeminiStep

func NewGeminiStep(parser agentlib.AIParser) agentlib.Step

NewGeminiStep returns a Step that calls the AIParser with a "reply 'ok'" prompt. Used by the agent-gemini binary to verify Gemini API reachability.

On success the Result.Message is populated with the reply text — this is intentional to capture the liveness response for operator log/audit.

func NewNopStep

func NewNopStep() agentlib.Step

NewNopStep returns a Step that immediately returns done with output "ok". No external calls — reaching this step proves the binary booted and the framework wired the phase. Used by pure-Go agent binaries.

func NewPiStep

func NewPiStep(runner pilib.Runner) agentlib.Step

NewPiStep returns a Step that runs a "reply 'ok'" smoke prompt via the configured Pi CLI runner. Used by the agent-pi binary to verify that its Pi CLI dependency is reachable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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