Repository navigation
Conversation
RawClient.Post and RawClient.Put send the JSON as the caller gives it and return meshStack's response unparsed, so that the CLI can write a building block it read raw, or one from a file, and print the response. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
'meshstack buildingblock upgrade <uuid>' moves a building block to the latest released version of its definition, or to the one --version names. It sends back only the inputs given with --input, such as a payment method that the new version adds, because meshStack keeps the values of the inputs an upgrade leaves out and rejects the STATIC ones. With --wait, it waits until the run of the upgrade has ended. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
'meshstack buildingblock create -f <file|->' posts the building block and prints meshStack's response. With --wait, it waits until the first run of the new building block has ended, whose uuid a pipe into 'buildingblock wait' did not know. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Coverage of the acceptance run against the meshStack backend, on
Uncovered functions
|
|
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.



Stacked on #86 (which is stacked on #85), because
--waithere uses the wait changes there; it shows only its own three commits.Creating or upgrading a building block meant a raw
meshstack apicall with a hand-built body. This PR adds two commands, one commit each, on top of a small client change:feat(client):RawClient.PostandRawClient.Putsend JSON as the caller gives it and return meshStack's response unparsed, asRawClient.GetandListalready do. The provider is unaffected:RawClientis the CLI's alone.meshstack bb upgrade <uuid>moves a block to the latest released version of its definition (read from the definition'sstatus.latestReleasedVersionUuid), or to the one--versionnames. It reads the block and sends back its metadata, target, display name and parents with the new version, plus only the inputs given with--input <name>=<value>: meshStack keeps the values of the inputs an upgrade leaves out, and rejects STATIC ones, which is what made the hand-built body hard. A value that is valid JSON goes out as JSON, any other as a string, so a payment method is--input 'payment_method={"kind": "meshPaymentMethod", "name": "…"}'.--waitwaits for the upgrade's run.meshstack bb create -f <file|->posts a building block and prints the response.--waitwaits for the first run: piping the response intobb waitdid not work, as the uuid is unknown before the create.The
meshstack-cliskill now orders throughbb createand has a section Upgrading a building block.Test plan
task lintgo test ./...: a test against the fake meshStack checks the bodybb upgradesends: the latest released version, and only the given inputs.bb createis plain request plumbing.🤖 Generated with Claude Code