Skip to content

Commit 5fccf47

Browse files
grubmeshiclaude
andcommitted
feat(client): read basedOnDraftVersion from the building block status
meshStack reports whether the block is on a draft version of its definition, which lets a PUT change its parent building blocks on that version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 6f2eee1 commit 5fccf47

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎client/building_block_v2.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ type MeshBuildingBlockV2Status struct {
249249
// LatestDryRunUuid is the latest dry (DETECT) run, but only when it is the newest run; nil otherwise.
250250
// Ungated like LatestRunUuid.
251251
LatestDryRunUuid *string `json:"latestDryRunUuid" tfsdk:"latest_dry_run_uuid"`
252+
// BasedOnDraftVersion is nil from a meshStack that predates the field.
253+
BasedOnDraftVersion *bool `json:"basedOnDraftVersion" tfsdk:"-"`
252254
// RunStartFailure says why meshStack could not start the run it was last asked for, phrased for the
253255
// user, and is nil while nothing stands in the way of a run. meshStack records it, and stamps
254256
// RunStartFailedOn anew, each time a request for a run fails to start one.

0 commit comments

Comments
 (0)