Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHandler ¶
type GitHandler struct{}
GitHandler handles generic git repositories
func (*GitHandler) CheckUpdate ¶
CheckUpdate checks if updates are available
type GitHubHandler ¶
type GitHubHandler struct{}
GitHubHandler handles GitHub repositories
func (*GitHubHandler) CheckUpdate ¶
func (g *GitHubHandler) CheckUpdate(source config.Source, currentCommit string) (bool, string, error)
CheckUpdate checks if updates are available
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
Installer manages agent installation
func New ¶
func New(cfg *config.Config, track *tracker.Tracker, resolver *conflict.Resolver, opts Options) *Installer
New creates a new installer instance
func (*Installer) InstallSource ¶
InstallSource installs agents from a specific source
func (*Installer) UninstallAll ¶
UninstallAll removes all installed agents
func (*Installer) UninstallSource ¶
UninstallSource removes agents from a specific source
func (*Installer) UpdateSource ¶
UpdateSource updates agents from a specific source
type LocalHandler ¶
type LocalHandler struct{}
LocalHandler handles local file system sources
func (*LocalHandler) CheckUpdate ¶
func (l *LocalHandler) CheckUpdate(source config.Source, currentCommit string) (bool, string, error)
CheckUpdate checks if local source has been modified
type SourceHandler ¶
type SourceHandler interface {
Fetch(source config.Source, destDir string) (string, string, error)
CheckUpdate(source config.Source, currentCommit string) (bool, string, error)
}
SourceHandler interface for different source types
type SubagentsHandler ¶
type SubagentsHandler struct {
// contains filtered or unexported fields
}
SubagentsHandler handles subagents.sh marketplace
func NewSubagentsHandler ¶
func NewSubagentsHandler(cfg *config.Config) (*SubagentsHandler, error)
func (*SubagentsHandler) CheckUpdate ¶
func (s *SubagentsHandler) CheckUpdate(source config.Source, currentCommit string) (bool, string, error)
CheckUpdate implements SourceHandler interface