registry

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package registry holds the agent modules hopsesh was built with and checks that each one's Spec is complete.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As[T any](m agent.Module) (T, bool)

As returns a module's optional capability.

Types

type Registry

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

Registry is the set of agent modules.

func New

func New(mods ...agent.Module) (*Registry, error)

New checks and registers modules (in display order).

func (*Registry) All

func (r *Registry) All() []agent.Module

All returns every module.

func (*Registry) ByName

func (r *Registry) ByName(name string) (agent.ID, bool)

ByName returns the id of a module by its display name ("Claude Code").

func (*Registry) Get

func (r *Registry) Get(id agent.ID) (agent.Module, bool)

Get returns a module by id.

func (*Registry) IDs

func (r *Registry) IDs() []agent.ID

IDs returns the module ids, sorted.

func (*Registry) LoginEnv

func (r *Registry) LoginEnv() []string

LoginEnv lists every variable the modules need from a login shell.

func (*Registry) Specs

func (r *Registry) Specs() []agent.Spec

Specs returns every module's Spec.

func (*Registry) Worktrees

func (r *Registry) Worktrees() []string

Worktrees lists every module's agent-managed worktree folders.

Jump to

Keyboard shortcuts

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