Skip to content

Conversation

@jonaslagoni
Copy link
Contributor

@jonaslagoni jonaslagoni commented Dec 16, 2025

Note

Adds telemetry debug logging and updates generateWithConfig to accept a pre-realized context, with CLI adjustments and tests; minor config language resolution tweak.

  • Codegen / Generators:
    • generateWithConfig now accepts string | undefined | RunGeneratorContext and resolves context accordingly.
    • CLI generate command passes a pre-realized context in non-watch mode.
  • Configuration:
    • Simplify language resolution in realizeConfiguration to generator.language ?? config.language ?? 'typescript'.
  • Telemetry:
    • Add debug logging in trackEvent and sendEvent when CODEGEN_TELEMETRY_DEBUG==='1' (event payloads, config state, disabled/missing-config notices, "would send" preview).
  • Tests:
    • Add tests for generateWithConfig accepting path, undefined, and a pre-realized context; mock renderer to avoid file generation.

Written by Cursor Bugbot for commit d452c5e. This will update automatically on new commits. Configure here.

@netlify
Copy link

netlify bot commented Dec 16, 2025

Deploy Preview for the-codegen-project canceled.

Name Link
🔨 Latest commit 470c579
🔍 Latest deploy log https://app.netlify.com/projects/the-codegen-project/deploys/6941bc6c32982b00073c12f6

@netlify
Copy link

netlify bot commented Dec 16, 2025

Deploy Preview for the-codegen-project canceled.

Name Link
🔨 Latest commit d452c5e
🔍 Latest deploy log https://app.netlify.com/projects/the-codegen-project/deploys/6941bc7932982b00073c1305

@jonaslagoni jonaslagoni merged commit 5de66f9 into main Dec 16, 2025
21 checks passed
@jonaslagoni jonaslagoni deleted the telemetry_changes branch December 16, 2025 20:21
@jonaslagoni
Copy link
Contributor Author

🎉 This PR is included in version 0.59.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants