Documentation
¶
Index ¶
- func Expand(s string, vars TemplateVars) (string, error)
- func ExpandPath(p string) string
- func ExpandSlice(ss []string, vars TemplateVars) ([]string, error)
- func LegacyRuntimeDirs() []string
- func ParseDurationWithDays(s string) time.Duration
- func ResolvePath(p string) string
- type Agent
- type Approvals
- type Config
- type Keybindings
- type Messages
- type Notifications
- type Paths
- type SandboxConfig
- type StatusBar
- type TemplateVars
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandPath ¶ added in v0.11.0
func ExpandSlice ¶
func ExpandSlice(ss []string, vars TemplateVars) ([]string, error)
func LegacyRuntimeDirs ¶ added in v0.11.0
func LegacyRuntimeDirs() []string
LegacyRuntimeDirs returns paths where older versions stored the socket and PID file (TMPDIR or /tmp fallbacks). Used during startup to detect and clean up an orphaned daemon after the socket location changed.
func ParseDurationWithDays ¶ added in v0.3.0
func ResolvePath ¶ added in v0.16.5
Types ¶
type Agent ¶
type Agent struct {
Command string `toml:"command"`
Args []string `toml:"args"`
ResumeArgs []string `toml:"resume_args"`
ForkArgs []string `toml:"fork_args"`
Env map[string]string `toml:"env"`
IdleTimeout string `toml:"idle_timeout"`
Sandbox SandboxConfig `toml:"sandbox"`
}
func (Agent) IdleTimeoutDuration ¶
type Approvals ¶ added in v0.13.0
type Approvals struct {
Mode string `toml:"mode"`
AutoPop bool `toml:"auto_pop"`
Timeout string `toml:"timeout"`
Command string `toml:"command"`
}
func (Approvals) TimeoutDuration ¶ added in v0.13.0
type Config ¶
type Config struct {
DefaultAgent string `toml:"default_agent"`
GitHubUsername string `toml:"github_username"`
BranchPrefix string `toml:"branch_prefix"`
FetchOnCreate bool `toml:"fetch_on_create"`
AllowedRepoPaths []string `toml:"allowed_repo_paths"`
StatusBar StatusBar `toml:"status_bar"`
Keybindings Keybindings `toml:"keybindings"`
Notifications Notifications `toml:"notifications"`
Messages Messages `toml:"messages"`
Sandbox SandboxConfig `toml:"sandbox"`
Approvals Approvals `toml:"approvals"`
Agents map[string]Agent `toml:"agents"`
}
func LoadOrDefault ¶
func (*Config) RepoPathAllowed ¶ added in v0.11.0
type Keybindings ¶
type Keybindings struct {
Prefix string `toml:"prefix"`
NewSession string `toml:"new_session"`
ForkSession string `toml:"fork_session"`
DeleteSession string `toml:"delete_session"`
Detach string `toml:"detach"`
SessionList string `toml:"session_list"`
NextSession string `toml:"next_session"`
PrevSession string `toml:"prev_session"`
LastSession string `toml:"last_session"`
ResumeSession string `toml:"resume_session"`
RenameSession string `toml:"rename_session"`
Search string `toml:"search"`
ScrollMode string `toml:"scroll_mode"`
Shell string `toml:"shell"`
}
type Messages ¶ added in v0.3.0
func (Messages) MaxAgeDuration ¶ added in v0.3.0
type Notifications ¶ added in v0.2.0
type Paths ¶
type Paths struct {
ConfigFile string
DataDir string
RuntimeDir string
SocketPath string
PIDFile string
StateFile string
LogDir string
DaemonLog string
MessagesDB string
}
func ResolvePaths ¶
func ResolvePaths() Paths
func (Paths) EnsureDirs ¶
type SandboxConfig ¶ added in v0.11.0
type SandboxConfig struct {
Enabled bool `json:"enabled" toml:"enabled"`
Disabled *bool `json:"disabled,omitempty" toml:"disabled,omitempty"`
Command string `json:"command,omitempty" toml:"command"`
Features []string `json:"features,omitempty" toml:"features"`
ReadDirs []string `json:"read_dirs,omitempty" toml:"read_dirs"`
WriteDirs []string `json:"write_dirs,omitempty" toml:"write_dirs"`
}
func (SandboxConfig) Merge ¶ added in v0.11.0
func (s SandboxConfig) Merge(agent SandboxConfig) SandboxConfig
type TemplateVars ¶
Click to show internal directories.
Click to hide internal directories.