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 ¶
CollectEnvInfo gathers environment facts for pwd. All errors are suppressed — missing data is represented as empty strings/false.
Click to show internal directories.
Click to hide internal directories.