MCPcopy Create free account
hub / github.com/github/gh-aw / renderShellEnvironmentPolicyToml

Method renderShellEnvironmentPolicyToml

pkg/workflow/codex_engine.go:655–668  ·  view source on GitHub ↗
(yaml *strings.Builder, tools map[string]any, mcpTools []string, indent string)

Source from the content-addressed store, hash-verified

653}
654
655func (e *CodexEngine) renderShellEnvironmentPolicyToml(yaml *strings.Builder, tools map[string]any, mcpTools []string, indent string) {
656 sortedEnvVars := e.getShellEnvironmentPolicyVars(tools, mcpTools)
657
658 yaml.WriteString(indent + "[shell_environment_policy]\n")
659 yaml.WriteString(indent + "inherit = \"core\"\n")
660 yaml.WriteString(indent + "include_only = [")
661 for i, envVar := range sortedEnvVars {
662 if i > 0 {
663 yaml.WriteString(", ")
664 }
665 yaml.WriteString("\"" + envVar + "\"")
666 }
667 yaml.WriteString("]\n")
668}
669
670// RenderMCPConfig is implemented in codex_mcp.go
671

Callers 1

RenderMCPConfigMethod · 0.95

Calls 1

Tested by

no test coverage detected