opencode

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package opencode is the first-party SkillOps hook installer for OpenCode. Unlike the JSON-hooks agents, OpenCode loads JS plugins, so installation drops an embedded quiver.js into ~/.config/opencode/plugins/ that shells out to `qvr _hook opencode <type>`.

Index

Constants

View Source
const AgentName = "opencode"

AgentName is the dispatch key: `qvr _hook opencode <type>`.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct{}

Adapter implements ops.HookInstaller.

func (*Adapter) Detect

func (a *Adapter) Detect() (ops.DetectionResult, error)

Detect reports whether OpenCode's config dir exists.

func (*Adapter) DisplayName

func (a *Adapter) DisplayName() string

func (*Adapter) Install

func (a *Adapter) Install(opts ops.InstallOptions) (ops.InstallResult, error)

Install writes the embedded plugin to ~/.config/opencode/plugins/quiver.js.

func (*Adapter) Name

func (a *Adapter) Name() string

func (*Adapter) Status

func (a *Adapter) Status() (ops.HookStatus, error)

Status reports whether the plugin is present and references qvr.

func (*Adapter) Uninstall

func (a *Adapter) Uninstall(opts ops.UninstallOptions) (ops.UninstallResult, error)

Uninstall removes the plugin file, restoring a pre-install backup when one exists (so a user's own quiver.js, if any, is preserved).

Jump to

Keyboard shortcuts

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