agentruntime

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HarnessCodex  = "codex"
	HarnessClaude = "claude"
)

Variables

View Source
var ErrPromptImagesUnsupported = errors.New("prompt images are unsupported for this agent harness")

Functions

func DisplayName

func DisplayName(harness string) string

DisplayName returns the user-facing harness label.

func SupportedHarnesses

func SupportedHarnesses() []string

SupportedHarnesses returns supported harness names in stable order.

func SupportedPromptImageHarnesses

func SupportedPromptImageHarnesses() []string

SupportedPromptImageHarnesses returns the harnesses that accept prompt images.

func SupportsPromptImages

func SupportsPromptImages(harness string) bool

SupportsPromptImages reports whether the selected harness accepts prompt image attachments.

func UnsupportedPromptImagesError

func UnsupportedPromptImagesError(harness string) error

UnsupportedPromptImagesError returns a stable error for unsupported image attachments.

Types

type RunOptions

type RunOptions struct {
	SkipGitRepoCheck bool
	ImagePaths       []string
	WritableDirs     []string
}

RunOptions controls provider-specific execution behavior.

type Runtime

type Runtime struct {
	Harness    string
	Command    string
	NPMPackage string
}

Runtime describes one executable LLM harness runtime.

func Default

func Default() Runtime

Default returns the default runtime selection.

func Resolve

func Resolve(harness, commandOverride string) (Runtime, error)

Resolve validates harness selection and applies defaults.

func (Runtime) BuildCommand

func (r Runtime) BuildCommand(targetDir, prompt string, opts RunOptions) (execx.Command, error)

BuildCommand builds an execution command for this runtime.

func (Runtime) PreflightCommand

func (r Runtime) PreflightCommand() execx.Command

PreflightCommand returns the command used to verify CLI availability.

func (Runtime) RequirementName

func (r Runtime) RequirementName() string

RequirementName returns the boot diagnostic requirement key for this runtime.

Jump to

Keyboard shortcuts

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