(yaml *strings.Builder, tools map[string]any, mcpTools []string, indent string)
| 653 | } |
| 654 | |
| 655 | func (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 |
no test coverage detected