utils

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSystemInfo

func GetSystemInfo() string

func GetWorkDir

func GetWorkDir() string

func OpenURL added in v0.5.2

func OpenURL(url string) error

OpenURL opens the given URL in the user's default browser. It returns the error from launching the platform-specific opener (the command is started, not waited on).

Types

type EnvInfo

type EnvInfo struct {
	GitBranch   string // empty if not a git repo
	GitDirty    bool
	LastCommit  string // one-line: hash + subject
	ProjectType string // comma-joined list of detected project markers
	DirTree     string // shallow directory tree
}

EnvInfo is collected once at session start and injected into the system prompt.

func CollectEnvInfo

func CollectEnvInfo(pwd string) *EnvInfo

CollectEnvInfo gathers environment facts for pwd. All errors are suppressed — missing data is represented as empty strings/false.

Jump to

Keyboard shortcuts

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