@vosjs/cli 0.45.0 → 0.45.2

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.
package/README.md CHANGED
@@ -93,7 +93,7 @@ vos plan take --reuse # re-time that cut onto
93
93
  **`vos session`: takeover mode, local.** A production app behind an emailed code, SSO, a passkey or a CAPTCHA has no form to script and no test auth to mint from, so a person signs in once and the recorder reuses that session:
94
94
 
95
95
  ```bash
96
- vos session open https://app.acme.com --name acme # a plain Chrome window opens; sign in, close it
96
+ vos session open https://app.acme.com --name acme # a plain Chrome window opens; sign in, quit it (⌘Q on a Mac, closing the window is not quitting)
97
97
  vos session check acme --url https://app.acme.com/dashboard # does it still open the page? exit 0, or 4
98
98
  vos record --actions actions.json --out take --session acme --strict
99
99
  vos session list · vos session rm acme
@@ -391,7 +391,8 @@ import {
391
391
  resolvePins,
392
392
  spanOutputExtent,
393
393
  zoomCoversRect,
394
- cameraModel
394
+ cameraModel,
395
+ unionFitLevel
395
396
  } from "@vosjs/studio-core";
396
397
  import { TYPEFACE_CATALOG, findFontFamily, findTypeface } from "@vosjs/shared";
397
398
  var STEP_KINDS_ALL = [
@@ -1792,8 +1793,14 @@ function framingWarnings(docIn, doc, zoom, overlays, warnings) {
1792
1793
  0.02,
1793
1794
  cameraModel(docIn.frame)
1794
1795
  )) {
1796
+ const together = unionFitLevel(
1797
+ { x: x0 * w, y: y0 * h, w: rect.w * w, h: rect.h * h },
1798
+ w,
1799
+ h
1800
+ );
1801
+ const fix = together < 1.2 ? `the ${under.length} presses under it do not share one window at any zoom, so split it, one span per press (vos plan replans auto spans)` : together < z.level ? `lower the level to ${together.toFixed(2)}\xD7 or below, or split the span` : `move cx/cy toward it`;
1795
1802
  warnings.push(
1796
- `${spanName("zoom", z)}: points beside what was clicked at ${under[0].t.toFixed(1)}s \u2014 the target (center ${((x0 + x1) / 2).toFixed(2)}, ${((y0 + y1) / 2).toFixed(2)}) sits outside the visible window; move cx/cy toward it or lower the level`
1803
+ `${spanName("zoom", z)}: points beside what was clicked at ${under[0].t.toFixed(1)}s \u2014 the target (center ${((x0 + x1) / 2).toFixed(2)}, ${((y0 + y1) / 2).toFixed(2)}) sits outside the visible window; ${fix}`
1797
1804
  );
1798
1805
  }
1799
1806
  }
@@ -7498,8 +7505,9 @@ async function openSession(name, url, opts = { log: () => {
7498
7505
  "--window-size=1100,800",
7499
7506
  url
7500
7507
  ];
7508
+ const leave = process.platform === "darwin" ? "then quit Chrome with \u2318Q (closing the window alone leaves it running, and this waiting)" : "then close the window";
7501
7509
  opts.log(
7502
- `a Chrome window opened on session "${name}": sign in to ${new URL(url).host}, then close the window`
7510
+ `a Chrome window opened on session "${name}": sign in to ${new URL(url).host}, ${leave}`
7503
7511
  );
7504
7512
  return new Promise((resolve10, reject) => {
7505
7513
  const child = spawn(exe, args, { stdio: "ignore" });
@@ -12665,4 +12673,4 @@ export {
12665
12673
  verbHelp,
12666
12674
  run
12667
12675
  };
12668
- //# sourceMappingURL=chunk-JRRM7P5G.js.map
12676
+ //# sourceMappingURL=chunk-ZVIKNQVK.js.map