Documentation
¶
Overview ¶
Package installer manages the Antigravity plugin bundle and OS launcher configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstallResult ¶
type InstallResult struct {
PluginDir string
BinaryDest string
Launcher LauncherResult
}
InstallResult summarizes the installed plugin and launcher paths.
type Launcher ¶
type Launcher interface {
Setup(ctx context.Context, port int) (LauncherResult, error)
Restore(ctx context.Context) error
Status(ctx context.Context, port int) LauncherStatus
}
Launcher configures the OS application launcher so Antigravity starts with CDP enabled.
func NewOSLauncher ¶
NewOSLauncher returns the Linux XDG .desktop launcher manager.
type LauncherResult ¶
LauncherResult describes what Setup changed or what manual step is needed.
type LauncherStatus ¶
LauncherStatus reports whether the OS launcher is configured for CDP.
type LinuxLauncher ¶
type LinuxLauncher struct {
// contains filtered or unexported fields
}
LinuxLauncher manages XDG .desktop overrides so Antigravity launches with CDP enabled.
func (*LinuxLauncher) Restore ¶
func (l *LinuxLauncher) Restore(_ context.Context) error
Restore removes the user-level .desktop override or restores its backup.
func (*LinuxLauncher) Setup ¶
func (l *LinuxLauncher) Setup(_ context.Context, port int) (LauncherResult, error)
Setup creates or updates a user-level .desktop entry with --remote-debugging-port=<port>.
func (*LinuxLauncher) Status ¶
func (l *LinuxLauncher) Status(_ context.Context, port int) LauncherStatus
Status checks whether any user .desktop override contains the debugging port flag.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager orchestrates plugin installation, uninstallation, and status checks.
func NewManager ¶
func NewManager(cfg Config, launcher Launcher, discoverer cdp.TargetDiscoverer) *Manager
NewManager creates a Manager with the provided configuration, launcher, and CDP discoverer.
func (*Manager) Install ¶
func (m *Manager) Install(ctx context.Context) (InstallResult, error)
Install copies the binary into the plugin bundle, writes plugin.json and sidecar.json, and configures the OS launcher to pass --remote-debugging-port.
type StatusReport ¶
type StatusReport struct {
PluginInstalled bool
PluginDir string
Launcher LauncherStatus
CDPReachable bool
ActiveTargets int
}
StatusReport summarizes the current installation and runtime health.