adapters

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package adapters wires the installed engine stack to a specific agent's configuration files (settings.json, .cursorrules, mcp.json, etc.). Each adapter is isolated — adding a new agent means adding one file.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("adapter not implemented yet")

Functions

func DetectInstalled

func DetectInstalled() []string

DetectInstalled returns the IDs of agents that look installed on this machine.

func Registry

func Registry() map[string]Adapter

Types

type Adapter

type Adapter interface {
	ID() string
	DisplayName() string
	Detect() bool
	Connect(opts ConnectOptions) error
	Disconnect() error
}

func List

func List() []Adapter

func Resolve

func Resolve(id string) (Adapter, error)

type Aider

type Aider struct{}

func (Aider) Connect

func (Aider) Connect(opts ConnectOptions) error

func (Aider) Detect

func (Aider) Detect() bool

func (Aider) Disconnect

func (Aider) Disconnect() error

func (Aider) DisplayName

func (Aider) DisplayName() string

func (Aider) ID

func (Aider) ID() string

type ClaudeCode

type ClaudeCode struct{}

func (ClaudeCode) Connect

func (c ClaudeCode) Connect(opts ConnectOptions) error

func (ClaudeCode) Detect

func (ClaudeCode) Detect() bool

func (ClaudeCode) Disconnect

func (c ClaudeCode) Disconnect() error

func (ClaudeCode) DisplayName

func (ClaudeCode) DisplayName() string

func (ClaudeCode) ID

func (ClaudeCode) ID() string

type Cline

type Cline struct{}

func (Cline) Connect

func (Cline) Connect(opts ConnectOptions) error

func (Cline) Detect

func (Cline) Detect() bool

func (Cline) Disconnect

func (Cline) Disconnect() error

func (Cline) DisplayName

func (Cline) DisplayName() string

func (Cline) ID

func (Cline) ID() string

type Codex

type Codex struct{}

func (Codex) Connect

func (c Codex) Connect(opts ConnectOptions) error

func (Codex) Detect

func (Codex) Detect() bool

func (Codex) Disconnect

func (c Codex) Disconnect() error

func (Codex) DisplayName

func (Codex) DisplayName() string

func (Codex) ID

func (Codex) ID() string

type ConnectOptions

type ConnectOptions struct {
	EnabledEngines []string
	Backend        string
	Manifest       string // path to multiversa.toml
}

ConnectOptions tells the adapter what to wire into the agent's config.

type Continue

type Continue struct{}

func (Continue) Connect

func (c Continue) Connect(opts ConnectOptions) error

func (Continue) Detect

func (Continue) Detect() bool

func (Continue) Disconnect

func (c Continue) Disconnect() error

func (Continue) DisplayName

func (Continue) DisplayName() string

func (Continue) ID

func (Continue) ID() string

type Cursor

type Cursor struct{}

func (Cursor) Connect

func (c Cursor) Connect(opts ConnectOptions) error

func (Cursor) Detect

func (Cursor) Detect() bool

func (Cursor) Disconnect

func (c Cursor) Disconnect() error

func (Cursor) DisplayName

func (Cursor) DisplayName() string

func (Cursor) ID

func (Cursor) ID() string

type GeminiCLI

type GeminiCLI struct{}

func (GeminiCLI) Connect

func (g GeminiCLI) Connect(opts ConnectOptions) error

func (GeminiCLI) Detect

func (GeminiCLI) Detect() bool

func (GeminiCLI) Disconnect

func (g GeminiCLI) Disconnect() error

func (GeminiCLI) DisplayName

func (GeminiCLI) DisplayName() string

func (GeminiCLI) ID

func (GeminiCLI) ID() string

type GenericMCP

type GenericMCP struct{}

GenericMCP is a fallback for any MCP-aware agent that doesn't have a dedicated adapter. Emits a portable MCP server manifest the user wires up manually.

func (GenericMCP) Connect

func (GenericMCP) Connect(opts ConnectOptions) error

func (GenericMCP) Detect

func (GenericMCP) Detect() bool

func (GenericMCP) Disconnect

func (GenericMCP) Disconnect() error

func (GenericMCP) DisplayName

func (GenericMCP) DisplayName() string

func (GenericMCP) ID

func (GenericMCP) ID() string

type OpenCode

type OpenCode struct{}

func (OpenCode) Connect

func (o OpenCode) Connect(opts ConnectOptions) error

func (OpenCode) Detect

func (OpenCode) Detect() bool

func (OpenCode) Disconnect

func (o OpenCode) Disconnect() error

func (OpenCode) DisplayName

func (OpenCode) DisplayName() string

func (OpenCode) ID

func (OpenCode) ID() string

type RooCode

type RooCode struct{}

func (RooCode) Connect

func (RooCode) Connect(opts ConnectOptions) error

func (RooCode) Detect

func (RooCode) Detect() bool

func (RooCode) Disconnect

func (RooCode) Disconnect() error

func (RooCode) DisplayName

func (RooCode) DisplayName() string

func (RooCode) ID

func (RooCode) ID() string

Jump to

Keyboard shortcuts

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