utils

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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

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