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

Function getNamedTemplateSection

agentContext/builder.go:633–644  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

631 displayCwd = env["cwd"]
632 }
633 displayCwd = filepath.ToSlash(displayCwd)
634 content := fmt.Sprintf(
635 "## Environment\n\n"+
636 "- Working directory: %s\n"+
637 "- Date: %s\n"+
638 "- Platform: %s\n"+
639 "- Shell: %s",
640 displayCwd,
641 nowForPrompt().Format("2006-01-02"),
642 env["platform"],
643 env["shell"],
644 )
645
646 return PromptSection{
647 Name: "environment-attachment",

Calls 1

Tested by

no test coverage detected