opencode

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(backend adapter.Backend) adapter.AgentAdapter

func NewWebProvider added in v0.8.0

func NewWebProvider() agentapi.Provider

NewWebProvider returns the OpenCode integration for the uam web service. It starts one `opencode serve` per project directory on first use and stops it when the last conversation on it closes or at Shutdown.

Close only detaches: it never aborts a turn or deletes the session. A turn keeps running while other open conversations keep the same server alive; closing the last conversation stops the server, which ends any turn still running on it.

func RunSupervisorCommand

func RunSupervisorCommand(args []string) error

Types

type ExitError

type ExitError struct {
	Code int
}

func (*ExitError) Error

func (e *ExitError) Error() string

func (*ExitError) ExitCode

func (e *ExitError) ExitCode() int

Jump to

Keyboard shortcuts

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