in src/cli/utils/template.py [0:0]
def load_template_config(template_dir: pathlib.Path) -> dict[str, Any]:
"""Read .templateconfig.yaml file to get agent configuration."""
config_file = template_dir / TEMPLATE_CONFIG_FILE
if not config_file.exists():
return {}
try:
with open(config_file) as f:
config = yaml.safe_load(f)
return config if config else {}
except Exception as e:
logging.error(f"Error loading template config: {e}")
return {}