Repository navigation
docs: update Template System and Architecture section with accurate Context struct and file mapping - #276
Merged
Conversation
…ontext struct and file mapping Update the Context struct in the README to match the actual implementation in internal/templates/engine.go, which includes GenerateCI, GenerateCD, EnableAI, AIToggles, GenerateCommand, Skills, BuiltinConfigs, Vendor, and SandboxDeps fields. Expand the file mapping system description for Go, Rust, and TypeScript projects to include all generated files: config, logger, services, built-in tools, telemetry, Docker, CI/CD workflows, sandbox environments, AI documentation, issue templates, and dependabot config.
edenreich
marked this pull request as ready for review
July 14, 2026 19:26
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Jul 14, 2026
## [0.48.0](v0.47.1...v0.48.0) (2026-07-14) ### ✨ Features * bump Go version to 1.26.4 ([#279](#279)) ([4945a28](4945a28)) * generate OTel-aligned telemetry configuration from extended spec.telemetry ([#281](#281)) ([47c5b3d](47c5b3d)) ### 🐛 Bug Fixes * quote boolean and numeric env values in compose template ([#267](#267)) ([6198824](6198824)) ### 📚 Documentation * add missing CLI flags to README generate/init flag tables ([#275](#275)) ([db0a842](db0a842)) * document spec.telemetry OpenTelemetry generation ([#277](#277)) ([bd75c08](bd75c08)), references [#259](#259) * fix project structure diagrams and universal files section ([#274](#274)) ([17bad1b](17bad1b)), closes [#272](#272) * mark Service Injection code examples as illustrative with template references ([#278](#278)) ([69b9806](69b9806)) * remove missing example ref, document all examples ([#273](#273)) ([4e30aff](4e30aff)), closes [#268](#268) * update Template System and Architecture section with accurate Context struct and file mapping ([#276](#276)) ([352d084](352d084))
Contributor
|
🎉 This PR is included in version 0.48.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This was referenced Aug 7, 2026
inference-gateway-maintainer Bot
added a commit
that referenced
this pull request
Aug 7, 2026
Updates stale ADK #276 references in authz.go.tmpl - the fix has been released so comments now use present/past tense.
edenreich
pushed a commit
that referenced
this pull request
Aug 7, 2026
…agents (#357) * feat(generate): scaffold authorization decision hook in generated Go agents * feat(generate): gate authz on spec.server.authz instead of auth Make the authorization decision hook opt-in under its own spec.server.authz block instead of piggybacking on spec.server.auth.enabled. - Add AuthzConfig to schema.json with enabled bool + mode enum (allow-all, deny-all, custom) and regenerate types.go - Gate authz file generation, .adl-ignore protection, and main.go wiring on spec.server.authz.enabled - Update authz.go.tmpl to accept a mode parameter and act accordingly (allow-all, deny-all, or custom) - Update README.md.tmpl feature badge to reference authz - Update go-agent-authz.yaml example to use the authz block - Track upstream schema in inference-gateway/adl#159 * refactor(templates): use typed AuthzMode enum instead of raw strings in generated authz.go Replace magic string comparisons with an AuthzMode type and exported constants (ModeAllowAll, ModeDenyAll, ModeCustom) in the generated authz.go template. The BeforeTool function now accepts AuthzMode instead of string. Update main.go.tmpl to pass the typed constants based on the ADL spec value, removing the raw string interpolation. * feat(templates): add Identity type and IdentityFrom helper for caller-aware authz Add authz.Identity struct (Subject, Email, Issuer) mapping OIDC ID token claims and IdentityFrom(*ToolContext) helper that reads from toolCtx.State when the ADK surfaces claims (tracked in inference-gateway/adk#276). Returns empty Identity until then - the authz hook MUST allow calls through on empty identity. Update the BeforeTool doc comment to show identity-aware authz in the example. Add asString helper for safe map-value extraction. * chore: bump ADL_SCHEMA_VERSION to v0.25.0 and sync schema Updates stale ADK #276 references in authz.go.tmpl - the fix has been released so comments now use present/past tense. --------- Co-authored-by: inference-gateway-maintainer[bot] <246577062+inference-gateway-maintainer[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #269
Summary
Updated the "Template System & Architecture" section in README.md to accurately reflect the full
Contextstruct and file mapping system as implemented ininternal/templates/engine.goandinternal/templates/registry.go. The previous documentation showed a simplified 3-field struct and incomplete file lists for each language.Changes
Contextstruct to include all 12 fields from the actual implementation:ADL,Metadata,Language,GenerateCI,GenerateCD,EnableAI,AIToggles,GenerateCommand,Skills,BuiltinConfigs,Vendor, andSandboxDeps