(state, step)
| 50 | |
| 51 | /** Whether the given step is now checked off in a freshly scanned state. */ |
| 52 | export function isStepDone(state, step) { |
| 53 | const k = stepKey(step); |
| 54 | const match = currentSteps(state).find((s) => stepKey(s) === k); |
| 55 | return !!(match && match.status === "done"); |
| 56 | } |
| 57 | |
| 58 | /** Construct the mutable, serializable run record broadcast to the canvas. */ |
| 59 | export function makeRun({ scope, maxSteps, startRank } = {}) { |
no test coverage detected