MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / nowForPrompt

Function nowForPrompt

agentContext/builder.go:626–631  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

624func BuildEnvSection(cwd string) PromptSection {
625 env := GetEnvInfo()
626 displayCwd := cwd
627 if hook := currentPromptHooks().EnvInfo; hook != nil && env["cwd"] != "" {
628 displayCwd = env["cwd"]
629 }
630 if displayCwd == "" {
631 displayCwd = env["cwd"]
632 }
633 displayCwd = filepath.ToSlash(displayCwd)
634 content := fmt.Sprintf(

Callers 1

BuildEnvSectionFunction · 0.85

Calls 1

currentPromptHooksFunction · 0.85

Tested by

no test coverage detected