config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssistantConfig

type AssistantConfig struct {
	Command          string // Shell command to launch the assistant
	InterruptCount   int    // Number of Ctrl-C signals to send (default 1, claude needs 2)
	InterruptDelayMs int    // Delay between interrupts in milliseconds
}

AssistantConfig defines how to launch an AI assistant

type Config

type Config struct {
	Paths         *Paths
	PortStart     int
	PortRangeSize int
	Assistants    map[string]AssistantConfig
	UI            UISettings
}

Config holds the application configuration

func DefaultConfig

func DefaultConfig() (*Config, error)

DefaultConfig returns the default configuration

func (*Config) SaveUISettings

func (c *Config) SaveUISettings() error

SaveUISettings persists UI settings to the config file.

type Paths

type Paths struct {
	Home           string // ~/.amux
	WorkspacesRoot string // ~/.amux/workspaces
	RegistryPath   string // ~/.amux/projects.json
	MetadataRoot   string // ~/.amux/workspaces-metadata
	ConfigPath     string // ~/.amux/config.json
}

Paths holds all the file system paths used by the application

func DefaultPaths

func DefaultPaths() (*Paths, error)

DefaultPaths returns the default paths configuration

func (*Paths) EnsureDirectories

func (p *Paths) EnsureDirectories() error

EnsureDirectories creates all required directories if they don't exist

type UISettings

type UISettings struct {
	ShowKeymapHints bool
	Theme           string // Theme ID, defaults to "gruvbox"
}

UISettings stores user-facing display preferences.

Jump to

Keyboard shortcuts

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