Skip to content

feat: stabilize typegen output order#47

Draft
AkaraChen wants to merge 2 commits into
thwbh:mainfrom
AkaraChen:codex/stable-typegen-order
Draft

feat: stabilize typegen output order#47
AkaraChen wants to merge 2 commits into
thwbh:mainfrom
AkaraChen:codex/stable-typegen-order

Conversation

@AkaraChen
Copy link
Copy Markdown

@AkaraChen AkaraChen commented Apr 27, 2026

What changed

  • Sort command and event template contexts immediately before rendering generated files.
  • Sort generated type declarations with a local dependency-first ordering in the generator layer.
  • Apply the same output ordering to vanilla TypeScript and Zod generation.
  • Add an end-to-end regression test for stable generated order.

Scope

This avoids changing analysis traversal, lazy type resolution, dependency graph behavior, or cache hashing. Sorting is limited to generated output preparation.

Validation

  • cargo fmt --check
  • cargo test

@AkaraChen AkaraChen changed the title [codex] stabilize typegen output order feat: stabilize typegen output order Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant