fix(cli): adopt required product-quality API contract - #58
Merged
Merged
Conversation
Rationale: The checked-in public OpenAPI snapshot predates CNAP b45c0af’s operations.list Akua-Context header and the explicit system-managed machine-selection contract. Regenerating from those two producer-backed corrections makes the supported CLI accept and forward the workspace context and permit omitted compute_config_id. Rejected: Hand-editing the generated executor would bypass the sole-source OpenAPI contract and fail deterministic generation checks. Fetching the complete latest public snapshot would pull unrelated product evolution into this targeted launch-blocker repair. Risk: This updates only the two snapshot fragments proven against b45c0af; a future full snapshot adoption remains independently auditable. Tested: bun run test -- test/generated-command.test.ts; mise run generate:check; mise run check; git diff --check.
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.
Summary
operations.listAkua-Context header in the canonical CLI OpenAPI snapshotmachines.create.compute_config_idcontractScope
Exactly five files; no handwritten executor path, no unrelated endpoint adoption, and no production mutation.
Verification
bun run test -- test/generated-command.test.tsmise run generate:checkmise run check(19 files, 183 tests)git diff --checkRationale: the prior snapshot rejected a required workspace context envelope and a valid system-managed machine request before transport. The two source fragments match CNAP commit
b45c0af936f0e3c01429480229f3b02cc95a53db.