okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221apps/host: the owner's UI and the Node App Host0b3299a01

main
316 B6 linesraw
1/** v1 had Computer / Model / Tune / Prepare / Ready. v2 folds Tune into Model. */
2export function migrateSetup(setup = {}) {
3  if (setup.flowVersion === 2) return setup;
4  const oldStep = Math.max(1, Math.min(5, Number(setup.step) || 1));
5  return { ...setup, flowVersion: 2, step: [0, 1, 2, 2, 3, 4][oldStep] };
6}