opencode

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package opencode reserves the OpenCode CLI adapter. Caps are declared so the orchestrator can reason about the agent, but Parse and Invoke fail closed until a real stream has been recorded from `opencode exec --json`.

Writing a parser from documentation produces one that passes its own tests and fails on real output, so this package deliberately has no parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct{}

Adapter implements agent.Adapter for OpenCode.

func New

func New() *Adapter

New returns the OpenCode adapter.

func (*Adapter) Caps

func (a *Adapter) Caps() agent.Caps

Caps declares what is known about OpenCode without a recorded stream. Whether its stream exposes a skill-invocation event is unverified, so SupportsSkillInvocation stays false — claiming otherwise would silently zero trigger measurement.

func (*Adapter) InstallSkill

func (a *Adapter) InstallSkill(string, string) error

InstallSkill is not implemented without a verified layout.

func (*Adapter) Invoke

Invoke is not implemented.

func (*Adapter) Name

func (a *Adapter) Name() string

Name identifies the adapter.

func (*Adapter) Parse

func (a *Adapter) Parse(agent.RawStream) (*agent.Result, error)

Parse is not implemented — no recorded fixture exists for this CLI.

Jump to

Keyboard shortcuts

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