feat: building block run logs, definitions and versions (experimental) - #10
Draft
JohannesRudolph wants to merge 4 commits into
Draft
JohannesRudolph wants to merge 4 commits into
JohannesRudolph wants to merge 4 commits into
Conversation
yaml.JSONToYAML picks the scalar style from the first line alone, so a
string whose first line opens with an indicator character is written as
one escaped line. A building block run step's log hits this: terraform
opens with a `{` version banner.
Marshal with the literal style instead, which the exported JSONToYAML
takes no options for.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
"meshstack buildingblock run logs <uuid>" writes the run's steps with their status and messages, in the same formats a listing is written in. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
"meshstack buildingblock definition version list" takes --definition and is required to: the backend serves one definition's versions at a time, and reading them takes a permission on the owning workspace, so walking every definition would stop at the first foreign one with a 403. "meshstack buildingblock definition list" is what reports the uuid that flag takes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The tree grew four levels deep at "buildingblock definition version list", a hierarchy the API does not have: every kind sits flat under /api/meshobjects. Give each kind its own top-level command instead, with a short alias so the full name stays typable. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Coverage of the acceptance run against the meshStack backend, on
Uncovered functions
|
This was referenced Sep 22, 2026
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.
Experimental building block commands, stacked on #7.
Design decisions:
bbrun logs,bbdv list— the API has nodefinition/version hierarchy either. Aliases keep them typable; feat list commands #7's
runsubtree moves out ofbuildingblockwith them.statusonly, no steps.JSONToYAMLpicks the style from a string's first line, so a terraformlog, opening with
{, came out as one escaped line.--definitionis required. Reading a definition's versions takes a permission on the owningworkspace, so a walk over all of them stops at the first foreign one with a 403.
Checked against a live meshStack (2026.38.1).
🤖 Generated with Claude Code