waygraph 0.12.26 → 0.12.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +7 -8
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2565,9 +2565,10 @@ async function runStepMode(engine, start, end, context, page, mem, resolved, slo
2565
2565
  const stubBeforeTodos = stubBeforePhase.todos || [];
2566
2566
  const isNavBlock = r.block.__waygraphKind === "nav";
2567
2567
  const autoNow = await currentAutoplay();
2568
- // Auto-next: tuck stepper on NavBlocks so the page transition fills the frame.
2569
- // Video recording still collapses every step.
2570
- const forceCollapsed = !!process.env.WAYGRAPH_VIDEO || (autoNow && isNavBlock);
2568
+ // Video recording: keep chrome compact. Live auto-next used to force-collapse
2569
+ // every NavBlock and hid the stepper (todos / modules) - only collapse while
2570
+ // act() runs (markStepRunning) so Playwright clicks hit the page, not the panel.
2571
+ const forceCollapsed = !!process.env.WAYGRAPH_VIDEO;
2571
2572
  const requires = r.block.requires ?? [];
2572
2573
  const keys = requires.map((k) => {
2573
2574
  let value = "<not yet set>";
@@ -2622,8 +2623,7 @@ async function runStepMode(engine, start, end, context, page, mem, resolved, slo
2622
2623
  }
2623
2624
  }
2624
2625
  const recordingVideo = !!process.env.WAYGRAPH_VIDEO;
2625
- const autoCollapsePanel = recordingVideo || (await currentAutoplay() && isNavBlock) || forceCollapsed;
2626
- await markStepRunning(page, { autoCollapsePanel });
2626
+ await markStepRunning(page, {});
2627
2627
  // NavBlock click-nav: label the upcoming Locator.click demo cursor as
2628
2628
  // "nav: <block>" so pia/demo watchers see cursor+pulse on click nav
2629
2629
  // (not only on regular Block clicks).
@@ -2799,8 +2799,7 @@ async function runStepMode(engine, start, end, context, page, mem, resolved, slo
2799
2799
  episodeTitle: r.episodeTitle,
2800
2800
  stepperMode,
2801
2801
  todos: stubAfterTodos,
2802
- // After a nav under auto-next, stay compact until the next action block expands.
2803
- forceCollapsed: !!process.env.WAYGRAPH_VIDEO || ((await currentAutoplay()) && isNavBlock),
2802
+ forceCollapsed: !!process.env.WAYGRAPH_VIDEO,
2804
2803
  });
2805
2804
  await gate();
2806
2805
  }
@@ -4197,7 +4196,7 @@ Aliases (compat): \`chain <spec>\` -> run --blocks; \`chain auto A B\` -> auto -
4197
4196
 
4198
4197
  Project path optional (defaults to cwd). Flags beat WAYGRAPH_* env.
4199
4198
  \`run\`/\`demo\`/\`auto\`: Flow export, .flow.ts path, or "a then b" chain (auto also explores).
4200
- Hide stepper = compact "N / M · block" pill. Auto-next auto-hides on NavBlocks.
4199
+ Hide stepper = compact "N / M · block" pill. Collapses while a step runs (clicks hit the page). Video mode stays compact.
4201
4200
  `);
4202
4201
  process.exit(0);
4203
4202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waygraph",
3
- "version": "0.12.26",
3
+ "version": "0.12.27",
4
4
  "type": "module",
5
5
  "description": "A typed graph of reusable Blocks for driving a browser through E2E flows.",
6
6
  "license": "MIT",