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

Function GetPromptBudgetProfile

agentContext/builder.go:515–526  ·  view source on GitHub ↗
(role string)

Source from the content-addressed store, hash-verified

513func GetEnvInfo() map[string]string {
514 if hook := currentPromptHooks().EnvInfo; hook != nil {
515 return hook()
516 }
517 cwd, err := os.Getwd()
518 if err != nil {
519 cwd = ""
520 }
521 shell := os.Getenv("SHELL")
522 if shell == "" {
523 shell = os.Getenv("COMSPEC")
524 }
525 if shell == "" {
526 shell = "unknown"
527 }
528 return map[string]string{
529 "cwd": cwd,

Calls

no outgoing calls

Tested by

no test coverage detected