Repository navigation
feat(codegen): generate initial command specs from OpenAPI (PRINFRA-121) - #19
Merged
somanshreddy merged 1 commit intoApr 2, 2026
Merged
Conversation
Collaborator
Author
This was referenced Apr 1, 2026
PRINFRA-121 CLI M1: OpenAPI codegen pipeline
Build the code generation pipeline that reads Scope
Mapping Rules
Acceptance Criteria
|
somanshreddy
force-pushed
the
04-01-feat_codegen_generate_initial_command_specs
branch
from
April 1, 2026 22:10
770922b to
cf47353
Compare
somanshreddy
marked this pull request as ready for review
April 1, 2026 22:16
jrusso1020
approved these changes
Apr 1, 2026
Collaborator
Author
Merge activity
|
somanshreddy
changed the base branch from
04-01-fix_cmd_register_generated_commands_as_nested_cobra_paths
to
graphite-base/19
April 2, 2026 00:01
somanshreddy
force-pushed
the
04-01-feat_codegen_generate_initial_command_specs
branch
from
April 2, 2026 00:02
cf47353 to
99c26e0
Compare
somanshreddy
deleted the
04-01-feat_codegen_generate_initial_command_specs
branch
April 2, 2026 00:04
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.

Description
Runs
make generateagainst the real HeyGen OpenAPI spec to produce command specs for all CLI-visible v3 endpoints.What gets generated: One Go file per group in
gen/, each containingcommand.Specstruct literals. Plusgen/registry.gowith theGroupsmap. These are the data definitions — zero logic. The builder (PR #18) and runtime (PR #20) handle execution.Groups generated (10):
video(4 commands),avatar(6),voice(2),video-agent(7)video-translate(12),webhook(7),asset(1),user(1),overdub(5)Also in this PR:
codegen/examples/overdub.yaml— examples for the new overdub endpointsGET /v3/user/me) usegetverb instead oflist, detected from the operation summary. This is the one heuristic in the naming algorithm — documented with an inline comment.user me getpatternReviewer note: ~1800 lines but ~1700 are generated boilerplate in
gen/. Review the template output by spot-checking 2-3 files, not line-by-line.Testing
All codegen golden tests pass. Generated code compiles.
Files
gen/*.go— generated command specs (10 files + registry)codegen/examples/overdub.yaml— examples for overdub endpointscodegen/grouper.go— singleton GET heuristiccodegen/grouper_test.go— test for user me getcodegen/testdata/test_spec.yaml— user endpoint addedcodegen/testdata/test_examples.yaml— user example added