@open-take/runtime 0.4.3 → 0.4.4

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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { PrecheckRefusal, captureTake, captureTakeCDP, ensureChrome, inspectPage, planTargets, precheckPlan, resolveChrome, resolveNavigateUrl } from "./cdp-capture-iGdBAriK.js";
1
+ import { PrecheckRefusal, captureTake, captureTakeCDP, ensureChrome, inspectPage, planTargets, precheckPlan, resolveChrome, resolveNavigateUrl } from "./cdp-capture-Ckt-tZVU.js";
2
2
  import { appendFile, copyFile, mkdir, mkdtemp, readFile, readdir, rename, rm, stat, unlink, writeFile } from "node:fs/promises";
3
3
  import { homedir, tmpdir } from "node:os";
4
4
  import { basename, dirname, extname, join, normalize, resolve } from "node:path";
@@ -2961,13 +2961,16 @@ const asDefects = (gate, issues) => issues.map((i) => ({
2961
2961
  ...i.fix ? { fix: i.fix } : {}
2962
2962
  }));
2963
2963
  /** capture-time skipped steps as defects — error-severity: the beat is gone
2964
- * from the video, which is exactly what the strict exit refuses. */
2964
+ * from the video, which is exactly what the strict exit refuses. The fix
2965
+ * copy follows the reason: a focus skip means the target RESOLVED and the
2966
+ * not-found copy ("point the target at an element that exists") would send
2967
+ * the repair round at the wrong dimension. */
2965
2968
  const skippedDefects = (skipped) => skipped.map((s) => ({
2966
2969
  gate: "capture",
2967
2970
  severity: "error",
2968
2971
  path: `steps[${s.step}]`,
2969
2972
  message: `${s.action} ${JSON.stringify(s.target ?? "")}: step SKIPPED at capture (${s.reason}) — the video is missing this beat`,
2970
- fix: "point the target at an element that exists when this step runs (a pre-capture warning above may name the impostor or the late binding), or drop the step; then re-make"
2973
+ fix: s.reason.startsWith("focus never reached") ? "the target resolved but never took focus — have an earlier step click/open the control that arms this field, retarget the step at the element that actually receives the text, or drop the step; then re-make" : "point the target at an element that exists when this step runs (a pre-capture warning above may name the impostor or the late binding), or drop the step; then re-make"
2971
2974
  }));
2972
2975
  /** Settle underruns whose beat DID go quiet carry a measured number the
2973
2976
  * author can copy — the one defect class where the fix is literally a