opencode

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package opencode publishes the immutable, independently installable OpenCode skills, agents, and lifecycle-hook artifacts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	// contains filtered or unexported fields
}

Component is one immutable OpenCode installation cell.

func NewComponent

func NewComponent(id artifact.ComponentID, bundle artifact.Bundle, defaultEnabled bool) (Component, error)

NewComponent validates one OpenCode component and its immutable payload.

func (Component) Bundle

func (c Component) Bundle() artifact.Bundle

func (Component) DefaultEnabled

func (c Component) DefaultEnabled() bool

func (Component) Extension

func (c Component) Extension() artifact.Extension

func (Component) ID

func (Component) IsValid

func (c Component) IsValid() bool

type TargetDescriptor

type TargetDescriptor struct {
	// contains filtered or unexported fields
}

TargetDescriptor is the immutable three-cell OpenCode target.

func Descriptor

func Descriptor() (TargetDescriptor, error)

Descriptor constructs the production target entirely from embedded generated bytes. Skills and agents default on; hooks remain explicit opt-in.

func NewTargetDescriptor

func NewTargetDescriptor(contract ir.RuntimeContractID, skills, agents, hooks Component) (TargetDescriptor, error)

func (TargetDescriptor) Agents

func (d TargetDescriptor) Agents() Component

func (TargetDescriptor) Component

func (d TargetDescriptor) Component(extension artifact.Extension) (Component, error)

func (TargetDescriptor) Components

func (d TargetDescriptor) Components() []Component

func (TargetDescriptor) Hooks

func (d TargetDescriptor) Hooks() Component

func (TargetDescriptor) IsValid

func (d TargetDescriptor) IsValid() bool

func (TargetDescriptor) RuntimeContractID

func (d TargetDescriptor) RuntimeContractID() ir.RuntimeContractID

func (TargetDescriptor) Skills

func (d TargetDescriptor) Skills() Component

Jump to

Keyboard shortcuts

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