opencode

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package opencode is the opencode harness adapter (stub).

It implements harness.Adapter by driving the opencode CLI/MCP headless. This scaffold provides the type and signatures; the process-driving body is filled in by the HARNESS requirements. The adapter is configured offline-only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// ConfigPath is the hardened, offline opencode config.
	ConfigPath string
}

Adapter drives the opencode harness.

func New

func New(configPath string) *Adapter

New returns an opencode Adapter using the given config path.

func (*Adapter) Drive

func (a *Adapter) Drive(ctx context.Context, req *rtmx.Requirement) (harness.Diff, error)

Drive is not yet implemented in the scaffold.

func (*Adapter) Health

func (a *Adapter) Health(ctx context.Context) error

Health is not yet implemented in the scaffold.

func (*Adapter) Name

func (a *Adapter) Name() string

Name reports the adapter identity.

Jump to

Keyboard shortcuts

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