From d2cfc3aeebf76a598ba5c85810510d252b511f4d Mon Sep 17 00:00:00 2001 From: Daniel Miller Date: Fri, 8 May 2026 14:24:43 -0400 Subject: [PATCH] fix: render .env.example template in agentex init The .env.example.j2 template file exists in every template directory but was missing from the root_templates dict in init.py, so it was silently dropped during project generation. Add it so generated projects include a .env.example with LITELLM_API_KEY and OPENAI_BASE_URL placeholders, guiding users to put credentials in .env instead of manifest.yaml. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/agentex/lib/cli/commands/init.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/agentex/lib/cli/commands/init.py b/src/agentex/lib/cli/commands/init.py index 1ceec1b88..f7726565a 100644 --- a/src/agentex/lib/cli/commands/init.py +++ b/src/agentex/lib/cli/commands/init.py @@ -75,6 +75,7 @@ def create_project_structure( # Create root files root_templates = { ".dockerignore.j2": ".dockerignore", + ".env.example.j2": ".env.example", "manifest.yaml.j2": "manifest.yaml", "README.md.j2": "README.md", "environments.yaml.j2": "environments.yaml",