Skip to content

feat: wire header params into Command constructor#17

Merged
maxholman merged 1 commit intoblock65:masterfrom
maxholman:feat/command-constructor-headers
Apr 9, 2026
Merged

feat: wire header params into Command constructor#17
maxholman merged 1 commit intoblock65:masterfrom
maxholman:feat/command-constructor-headers

Conversation

@maxholman
Copy link
Copy Markdown
Contributor

Summary

  • Generated commands with header params get a typed headers second constructor arg
  • Headers passed as 4th arg to super() (requires @block65/rest-client@12.1.0)
  • 4th generic CommandHeaders type arg added to extends Command<...>
  • Commands without headers are completely unchanged

Test plan

  • Snapshot test shows constructor(input, headers) with super(..., headers)
  • All 9 tests pass

🤖 Generated with Claude Code

When an operation has header parameters, the generated command gets a
separate typed `headers` second constructor arg passed as the 4th arg
to super(). Commands without headers are unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@maxholman maxholman merged commit 2275ee3 into block65:master Apr 9, 2026
1 check passed
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