agenthome

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TemplateDefault      = "default"
	TemplateGitHubSolver = "github-solver"
	TemplateAutonomous   = "autonomous"
	DefaultTemplate      = TemplateAutonomous

	// Deprecated template aliases kept for transition.
	TemplateRunDefaultAlias      = "run-default"
	TemplateSolveGitHubAlias     = "solve-github"
	TemplateServeControllerAlias = "serve-controller"
)

Variables

This section is empty.

Functions

func AssetsFS

func AssetsFS() (fs.FS, error)

AssetsFS returns the embedded agenthome assets filesystem rooted at assets/.

func AvailableTemplates

func AvailableTemplates() []string

func DefaultRoot

func DefaultRoot() (string, error)

func EnsureLayout

func EnsureLayout(agentHome string) error

func EnsureLayoutWithOptions

func EnsureLayoutWithOptions(agentHome string, opts InitOptions) error

func SaveConfig

func SaveConfig(agentHome string, cfg Config) error

func ValidateAgentID

func ValidateAgentID(id string) error

Types

type AgentConfig

type AgentConfig struct {
	ID      string `yaml:"id"`
	Profile string `yaml:"profile"`
}

type Config

type Config struct {
	Version       string         `yaml:"version"`
	Agent         AgentConfig    `yaml:"agent"`
	Runtime       RuntimeConfig  `yaml:"runtime,omitempty"`
	Subscriptions []Subscription `yaml:"subscriptions,omitempty"`
}

func LoadConfig

func LoadConfig(agentHome string) (Config, error)

type GitHubSubscription

type GitHubSubscription struct {
	Repos     []string                    `yaml:"repos,omitempty"`
	Transport GitHubSubscriptionTransport `yaml:"transport,omitempty"`
}

type GitHubSubscriptionTransport

type GitHubSubscriptionTransport struct {
	Mode         string `yaml:"mode,omitempty"` // auto, gh_forward, websocket
	WebsocketURL string `yaml:"websocket_url,omitempty"`
}

type InitOptions

type InitOptions struct {
	Template string
	Force    bool
}

type Persona

type Persona struct {
	ContractVersion string
	Role            string
	Body            string
	SourcePath      string
}

func LoadPersona

func LoadPersona(agentHome string) (Persona, error)

type Resolution

type Resolution struct {
	AgentID   string
	AgentHome string
	Ephemeral bool
}

func Resolve

func Resolve(opts ResolveOptions) (Resolution, error)

type ResolveOptions

type ResolveOptions struct {
	AgentID          string
	AgentHome        string
	Command          string
	EphemeralAllowed bool
}

type RuntimeConfig

type RuntimeConfig struct {
	Mounts []RuntimeMount `yaml:"mounts,omitempty"`
}

type RuntimeMount

type RuntimeMount struct {
	Path string `yaml:"path"`
	Mode string `yaml:"mode,omitempty"` // ro (default) | rw
}

type Subscription

type Subscription struct {
	GitHub *GitHubSubscription `yaml:"github,omitempty"`
}

Jump to

Keyboard shortcuts

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