installer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 10 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 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 Config

type Config struct {
	HomeDir    string
	BinaryPath string
	Port       int
}

Config holds paths and options for installing or inspecting the plugin.

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

func NewOSLauncher(homeDir string) Launcher

NewOSLauncher returns the Linux XDG .desktop launcher manager.

type LauncherResult

type LauncherResult struct {
	UpdatedPath string
	ManualHint  string
}

LauncherResult describes what Setup changed or what manual step is needed.

type LauncherStatus

type LauncherStatus struct {
	Configured bool
	Detail     string
}

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.

func (*Manager) Status

func (m *Manager) Status(ctx context.Context) StatusReport

Status inspects the plugin directory, OS launcher, and live CDP endpoint.

func (*Manager) Uninstall

func (m *Manager) Uninstall(ctx context.Context) error

Uninstall removes the plugin directory and restores the OS launcher.

type StatusReport

type StatusReport struct {
	PluginInstalled bool
	PluginDir       string
	Launcher        LauncherStatus
	CDPReachable    bool
	ActiveTargets   int
}

StatusReport summarizes the current installation and runtime health.

Jump to

Keyboard shortcuts

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