Documentation
¶
Index ¶
- Variables
- func DisplayName(name string) string
- func IsValidAgent(name string) bool
- func Register(a Agent)
- type Agent
- type Claude
- func (c *Claude) ContainerMounts(cfgDir string) []Mount
- func (c *Claude) DetectHostConfig() (string, error)
- func (c *Claude) DisplayName() string
- func (c *Claude) GetDockerfileInstall(buildCtx string) (string, error)
- func (c *Claude) GetFullDockerfile(version string) (string, error)
- func (c *Claude) GetInstalledVersion(rt container.Runtime, img string) (string, error)
- func (c *Claude) GetLatestVersion() (string, error)
- func (c *Claude) HostConfigPaths() []string
- func (c *Claude) ImportConfig(src, dst string) error
- func (c *Claude) Name() string
- type Codex
- func (c *Codex) BinaryName() string
- func (c *Codex) ContainerMounts(cfgDir string) []Mount
- func (c *Codex) DetectHostConfig() (string, error)
- func (c *Codex) DisplayName() string
- func (c *Codex) GetDockerfileInstall(buildCtx string) (string, error)
- func (c *Codex) GetFullDockerfile(version string) (string, error)
- func (c *Codex) GetInstalledVersion(rt container.Runtime, img string) (string, error)
- func (c *Codex) GetLatestVersion() (string, error)
- func (c *Codex) HostConfigPaths() []string
- func (c *Codex) ImportConfig(src, dst string) error
- func (c *Codex) Name() string
- type Mount
- type OpenCode
- func (o *OpenCode) BinaryName() string
- func (o *OpenCode) ContainerMounts(cfgDir string) []Mount
- func (o *OpenCode) DetectHostConfig() (string, error)
- func (o *OpenCode) DisplayName() string
- func (o *OpenCode) GetDockerfileInstall(buildCtx string) (string, error)
- func (o *OpenCode) GetFullDockerfile(version string) (string, error)
- func (o *OpenCode) GetInstalledVersion(rt container.Runtime, img string) (string, error)
- func (o *OpenCode) GetLatestVersion() (string, error)
- func (o *OpenCode) HostConfigPaths() []string
- func (o *OpenCode) ImportConfig(src, dst string) error
- func (o *OpenCode) Name() string
Constants ¶
This section is empty.
Variables ¶
var AgentNames = []string{"claude", "codex", "opencode"}
AgentNames is the list of all supported agent names.
Functions ¶
func DisplayName ¶
DisplayName returns the human-readable name for an agent.
func IsValidAgent ¶
IsValidAgent returns true if the name is a known agent.
Types ¶
type Agent ¶
type Agent interface {
Name() string
DisplayName() string
GetLatestVersion() (string, error)
GetInstalledVersion(rt container.Runtime, img string) (string, error)
GetDockerfileInstall(buildCtx string) (string, error)
GetFullDockerfile(version string) (string, error)
HostConfigPaths() []string
ContainerMounts(cfgDir string) []Mount
DetectHostConfig() (string, error)
ImportConfig(src, dst string) error
}
Agent is the interface that all agent implementations must satisfy.
type Claude ¶
type Claude struct{}
Claude implements the Agent interface for Claude Code.
func (*Claude) ContainerMounts ¶
func (*Claude) DetectHostConfig ¶
func (*Claude) DisplayName ¶
func (*Claude) GetDockerfileInstall ¶
func (*Claude) GetFullDockerfile ¶
func (*Claude) GetInstalledVersion ¶
func (*Claude) GetLatestVersion ¶
func (*Claude) HostConfigPaths ¶
func (*Claude) ImportConfig ¶
type Codex ¶
type Codex struct{}
Codex implements the Agent interface for OpenAI Codex.
func (*Codex) BinaryName ¶
BinaryName returns the platform-specific binary tarball name.
func (*Codex) ContainerMounts ¶
func (*Codex) DetectHostConfig ¶
func (*Codex) DisplayName ¶
func (*Codex) GetDockerfileInstall ¶
func (*Codex) GetInstalledVersion ¶
func (*Codex) GetLatestVersion ¶
func (*Codex) HostConfigPaths ¶
func (*Codex) ImportConfig ¶
type OpenCode ¶
type OpenCode struct{}
OpenCode implements the Agent interface for OpenCode.
func (*OpenCode) BinaryName ¶
BinaryName returns the platform-specific binary tarball name (musl build for Alpine).
func (*OpenCode) ContainerMounts ¶
func (*OpenCode) DetectHostConfig ¶
func (*OpenCode) DisplayName ¶
func (*OpenCode) GetDockerfileInstall ¶
func (*OpenCode) GetFullDockerfile ¶
GetFullDockerfile returns the complete Dockerfile for OpenCode. Builds on exitbox-base with pre-downloaded musl binary (same pattern as Claude/Codex).