Builtin Library
README.md
world_vcs.statusRead
Reads the derived-output part of a staging-area status payload for world.vcsStatus.
-
derivedView(decoded)answers{ derived, sealed, unavailable }from the decoded__spacetime_vcs.statuspayload:derivedlists the named stage's reservations and then those of each sealed stage (sealedInis the sealed commit's id),sealedlists each sealed commit in the order it was sealed with the required outputs not yetdoneaswaitingOnand thefailedreservations with their error, andunavailablemaps each capability the backend lacks to its refusal text. -
reservationLines(status)answers the lineszm statusprints for the reservations staging areas hold: the reported area's own, counted by state, and each other unsealed area that holds any, with its caller, account and session.statusLines(status)prints them first. -
reservedCount(total, byState)states a count and its breakdown,257 (250 computing, 7 failed).
local view = require("modules.world_vcs.statusRead").derivedView(decodedStatus)
for _, commit in ipairs(view.sealed) do print(commit.commitId, #commit.waitingOn) end