Constant CODEX
Source pub const CODEX: &str = "// Codex CLI configuration script\n// Generates ~/.codex/config.toml for OpenAI Codex CLI\n\nlet env = #{};\nlet config = \"\";\n\nif ctx.provider.type == \"self\" || ctx.provider.type == \"openai\" {\n // For native OpenAI or self-auth, minimal config\n // Codex will use its built-in OpenAI provider\n config = `# Codex CLI configuration (managed by ringlet)\n`;\n} else {\n // For openai-compatible providers (MiniMax, Z.AI, etc.)\n // Generate full config.toml with custom provider\n config = `# Codex CLI configuration (managed by ringlet)\nmodel = \"` + ctx.profile.model + `\"\nmodel_provider = \"ringlet\"\n\n[model_providers.ringlet]\nname = \"` + ctx.provider.name + `\"\nbase_url = \"` + ctx.profile.endpoint + `\"\nenv_key = \"` + ctx.provider.auth_env_key + `\"\nwire_api = \"chat\"\n`;\n\n // Set API key env var\n env[ctx.provider.auth_env_key] = \"${API_KEY}\";\n}\n\n// Return the output\n#{\n files: #{\n \".codex/config.toml\": config\n },\n env: env,\n args: [],\n hooks: (),\n mcp_servers: ()\n}\n";