@mizchi/vlmkit-core 0.24.0 → 0.28.0

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 (112) hide show
  1. package/dist/a11y-semantic.d.mts +1 -3
  2. package/dist/a11y-semantic.mjs +1 -2
  3. package/dist/animated-image.d.mts +1 -3
  4. package/dist/animated-image.mjs +1 -2
  5. package/dist/apng.d.mts +1 -3
  6. package/dist/apng.mjs +1 -2
  7. package/dist/arg-reader.d.mts +1 -3
  8. package/dist/arg-reader.mjs +1 -2
  9. package/dist/auth-state.d.mts +1 -3
  10. package/dist/auth-state.mjs +1 -2
  11. package/dist/authored-style-capture.d.mts +1 -3
  12. package/dist/authored-style-capture.mjs +1 -2
  13. package/dist/authored-style-diff.d.mts +2 -4
  14. package/dist/authored-style-diff.mjs +1 -2
  15. package/dist/bitmap-font.d.mts +1 -3
  16. package/dist/bitmap-font.mjs +1 -2
  17. package/dist/browser-launch.d.mts +1 -3
  18. package/dist/browser-launch.mjs +1 -2
  19. package/dist/cli-args.d.mts +1 -3
  20. package/dist/cli-args.mjs +1 -2
  21. package/dist/cli-error.d.mts +0 -2
  22. package/dist/cli-error.mjs +1 -2
  23. package/dist/computed-style-capture.d.mts +1 -3
  24. package/dist/computed-style-capture.mjs +1 -2
  25. package/dist/computed-style-diff.d.mts +0 -2
  26. package/dist/computed-style-diff.mjs +1 -2
  27. package/dist/diff-regions.d.mts +1 -3
  28. package/dist/diff-regions.mjs +1 -2
  29. package/dist/dom-equivalence.d.mts +1 -3
  30. package/dist/dom-equivalence.mjs +1 -2
  31. package/dist/dom-position-styles.d.mts +1 -3
  32. package/dist/dom-position-styles.mjs +1 -2
  33. package/dist/element-compare.d.mts +1 -3
  34. package/dist/element-compare.mjs +2 -3
  35. package/dist/filmstrip.d.mts +1 -3
  36. package/dist/filmstrip.mjs +1 -2
  37. package/dist/gate-config.d.mts +1 -3
  38. package/dist/gate-config.mjs +8 -4
  39. package/dist/gate-exit.d.mts +1 -3
  40. package/dist/gate-exit.mjs +1 -2
  41. package/dist/gif.d.mts +1 -3
  42. package/dist/gif.mjs +1 -2
  43. package/dist/heatmap-regions.d.mts +1 -3
  44. package/dist/heatmap-regions.mjs +1 -2
  45. package/dist/heatmap.d.mts +1 -3
  46. package/dist/heatmap.mjs +12 -8
  47. package/dist/image-resize.d.mts +1 -3
  48. package/dist/image-resize.mjs +1 -2
  49. package/dist/image-timing.d.mts +1 -3
  50. package/dist/image-timing.mjs +1 -2
  51. package/dist/index.d.mts +12 -12
  52. package/dist/index.mjs +11 -11
  53. package/dist/mask.d.mts +1 -3
  54. package/dist/mask.mjs +1 -2
  55. package/dist/motion-spec.d.mts +97 -0
  56. package/dist/motion-spec.mjs +145 -0
  57. package/dist/navigation-redirect.d.mts +1 -3
  58. package/dist/navigation-redirect.mjs +1 -2
  59. package/dist/page-load.d.mts +28 -3
  60. package/dist/page-load.mjs +34 -5
  61. package/dist/page-open.d.mts +5 -3
  62. package/dist/page-open.mjs +4 -3
  63. package/dist/plugin/args.d.mts +1 -3
  64. package/dist/plugin/args.mjs +3 -3
  65. package/dist/plugin/browser.d.mts +3 -3
  66. package/dist/plugin/browser.mjs +2 -2
  67. package/dist/plugin/cli-entry.d.mts +1 -3
  68. package/dist/plugin/cli-entry.mjs +1 -2
  69. package/dist/plugin/contract.d.mts +1 -3
  70. package/dist/plugin/contract.mjs +1 -2
  71. package/dist/plugin/index.d.mts +4 -6
  72. package/dist/plugin/index.mjs +7 -8
  73. package/dist/plugin/load.d.mts +1 -3
  74. package/dist/plugin/load.mjs +1 -2
  75. package/dist/plugin/registry.d.mts +1 -3
  76. package/dist/plugin/registry.mjs +1 -2
  77. package/dist/plugin/rule-prose.d.mts +1 -3
  78. package/dist/plugin/rule-prose.mjs +1 -2
  79. package/dist/plugin/rule-tier.d.mts +1 -3
  80. package/dist/plugin/rule-tier.mjs +1 -2
  81. package/dist/plugin/rules.d.mts +1 -3
  82. package/dist/plugin/rules.mjs +1 -2
  83. package/dist/plugin/runner.d.mts +1 -3
  84. package/dist/plugin/runner.mjs +14 -6
  85. package/dist/png-decode.d.mts +1 -3
  86. package/dist/png-decode.mjs +1 -2
  87. package/dist/png-utils.d.mts +1 -3
  88. package/dist/png-utils.mjs +1 -2
  89. package/dist/project-config.d.mts +1 -3
  90. package/dist/project-config.mjs +1 -2
  91. package/dist/rect-overlap.d.mts +1 -3
  92. package/dist/rect-overlap.mjs +1 -2
  93. package/dist/region-shift.d.mts +1 -2
  94. package/dist/region-shift.mjs +1 -2
  95. package/dist/run-ledger.d.mts +1 -3
  96. package/dist/run-ledger.mjs +1 -2
  97. package/dist/stable-selector.d.mts +1 -3
  98. package/dist/stable-selector.mjs +1 -2
  99. package/dist/terminal-colors.d.mts +1 -3
  100. package/dist/terminal-colors.mjs +1 -2
  101. package/dist/text-rows.d.mts +1 -3
  102. package/dist/text-rows.mjs +1 -2
  103. package/dist/types.d.mts +1 -3
  104. package/dist/version.d.mts +1 -3
  105. package/dist/version.mjs +2 -3
  106. package/dist/video-decode.d.mts +1 -3
  107. package/dist/video-decode.mjs +35 -32
  108. package/dist/video-frames.d.mts +11 -7
  109. package/dist/video-frames.mjs +23 -12
  110. package/dist/webp.d.mts +1 -3
  111. package/dist/webp.mjs +1 -2
  112. package/package.json +5 -5
@@ -1,4 +1,3 @@
1
- //#region src/plugin/args.d.ts
2
1
  /**
3
2
  * Argument helpers for writing a gate — the shapes `arg-reader` does not cover.
4
3
  *
@@ -88,5 +87,4 @@ export declare function vlmFlag(argv: readonly string[], name?: string): string
88
87
  * `discriminator` is for a gate where the source is not the whole question - drift
89
88
  * passes its `--selector`, since two selectors on one page are two different runs.
90
89
  */
91
- export declare function runOutputDir(gateDir: string, source: string, discriminator?: string): string;
92
- //#endregion
90
+ export declare function runOutputDir(gateDir: string, source: string, discriminator?: string): string;
@@ -1,9 +1,9 @@
1
- import { UsageError } from "../cli-error.mjs";
2
1
  import { readFlag, readInt, readPositionals } from "../arg-reader.mjs";
2
+ import { UsageError } from "../cli-error.mjs";
3
3
  import { basename, join, resolve } from "node:path";
4
4
  import { parseInstants } from "@mizchi/vlmkit-judge/frames.ts";
5
5
  import { createHash } from "node:crypto";
6
- //#region src/plugin/args.ts
6
+ // src/plugin/args.ts
7
7
  /**
8
8
  * Argument helpers for writing a gate — the shapes `arg-reader` does not cover.
9
9
  *
@@ -37,6 +37,7 @@ const COMMON_VALUE_FLAGS = [
37
37
  "--timeout",
38
38
  "--wait-until",
39
39
  "--har",
40
+ "--color-scheme",
40
41
  "--storage-state",
41
42
  "--allow",
42
43
  "--contract",
@@ -169,5 +170,4 @@ function runOutputDir(gateDir, source, discriminator = "") {
169
170
  const hash = createHash("sha1").update(resolve(source) + " " + discriminator).digest("hex").slice(0, 8);
170
171
  return join(process.cwd(), "test-results", gateDir, name.replace(/[^A-Za-z0-9._-]+/g, "-") + "-" + hash);
171
172
  }
172
- //#endregion
173
173
  export { firstPositional, firstPositionalOrUndefined, instantList, numberList, numberListFloat, optionalInt, runOutputDir, viewportFlag, vlmFlag, withoutOptionalValue };
@@ -1,6 +1,6 @@
1
- import { withAuthState } from "../auth-state.mjs";
2
1
  import { launchBrowser, withBrowser } from "../browser-launch.mjs";
3
- import { LedgerWrite, RunLedgerEntry, appendRunLedger, configureRunLedger, firstLedgerWrite } from "../run-ledger.mjs";
4
- import { describeRedirect } from "../navigation-redirect.mjs";
5
2
  import { HarReplay, applyHar, openSource } from "../page-open.mjs";
3
+ import { withAuthState } from "../auth-state.mjs";
4
+ import { describeRedirect } from "../navigation-redirect.mjs";
5
+ import { LedgerWrite, RunLedgerEntry, appendRunLedger, configureRunLedger, firstLedgerWrite } from "../run-ledger.mjs";
6
6
  export { type HarReplay, type LedgerWrite, type RunLedgerEntry, appendRunLedger, applyHar, configureRunLedger, describeRedirect, firstLedgerWrite, launchBrowser, openSource, withAuthState, withBrowser };
@@ -1,6 +1,6 @@
1
- import { withAuthState } from "../auth-state.mjs";
2
1
  import { launchBrowser, withBrowser } from "../browser-launch.mjs";
3
- import { describeRedirect } from "../navigation-redirect.mjs";
4
2
  import { applyHar, openSource } from "../page-open.mjs";
3
+ import { withAuthState } from "../auth-state.mjs";
4
+ import { describeRedirect } from "../navigation-redirect.mjs";
5
5
  import { appendRunLedger, configureRunLedger, firstLedgerWrite } from "../run-ledger.mjs";
6
6
  export { appendRunLedger, applyHar, configureRunLedger, describeRedirect, firstLedgerWrite, launchBrowser, openSource, withAuthState, withBrowser };
@@ -1,4 +1,3 @@
1
- //#region src/plugin/cli-entry.d.ts
2
1
  /**
3
2
  * @param moduleUrl always `import.meta.url` from the module asking.
4
3
  * @param dispatcherName the module's name in `vlmkit`'s command table, when it has
@@ -6,5 +5,4 @@
6
5
  * so for a dispatched command the env var is the entry signal and argv[1] is the
7
6
  * dispatcher rather than the module.
8
7
  */
9
- export declare function isCliEntry(moduleUrl: string, dispatcherName?: string): boolean;
10
- //#endregion
8
+ export declare function isCliEntry(moduleUrl: string, dispatcherName?: string): boolean;
@@ -1,7 +1,7 @@
1
1
  import { realpathSync } from "node:fs";
2
2
  import { resolve } from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
- //#region src/plugin/cli-entry.ts
4
+ // src/plugin/cli-entry.ts
5
5
  /**
6
6
  * "Was this module run, or imported?"
7
7
  *
@@ -65,5 +65,4 @@ function isCliEntry(moduleUrl, dispatcherName) {
65
65
  return false;
66
66
  }
67
67
  }
68
- //#endregion
69
68
  export { isCliEntry };
@@ -1,5 +1,4 @@
1
1
  import { RunLedgerEntry } from "../run-ledger.mjs";
2
- //#region src/plugin/contract.d.ts
3
2
  /**
4
3
  * Normalized finding severity.
5
4
  *
@@ -264,5 +263,4 @@ export declare function definePlugin(plugin: VlmkitPlugin): VlmkitPlugin;
264
263
  /** `check integrity` — the human-facing form of `command`. */
265
264
  export declare function gateCommandString(gate: AnyGateDefinition): string;
266
265
  /** Fully-qualified rule reference used in configs: `check.integrity/text-collision`. */
267
- export declare function ruleRef(gateId: string, ruleId: string): string;
268
- //#endregion
266
+ export declare function ruleRef(gateId: string, ruleId: string): string;
@@ -1,4 +1,4 @@
1
- //#region src/plugin/contract.ts
1
+ // src/plugin/contract.ts
2
2
  const FINDING_SEVERITIES = [
3
3
  "suspect",
4
4
  "warn",
@@ -47,5 +47,4 @@ function gateCommandString(gate) {
47
47
  function ruleRef(gateId, ruleId) {
48
48
  return `${gateId}/${ruleId}`;
49
49
  }
50
- //#endregion
51
50
  export { FINDING_SEVERITIES, GATE_CATEGORIES, GATE_CATEGORY_ORDER, defineGate, definePlugin, gateCommandString, ruleRef };
@@ -1,13 +1,12 @@
1
- import { hasFlag, readAll, readChoice, readFlag, readInt, readNumber, readPositionals, tokenizeCommand } from "../arg-reader.mjs";
2
- import { UsageError } from "../cli-error.mjs";
3
1
  import { AnyGateDefinition, FINDING_SEVERITIES, Finding, FindingSeverity, GATE_CATEGORIES, GATE_CATEGORY_ORDER, GateCategory, GateContext, GateDefinition, GateInput, RuleDefinition, RuleView, VlmkitPlugin, defineGate, definePlugin, gateCommandString, ruleRef } from "./contract.mjs";
4
2
  import { AppliedRules, RULE_SETTINGS, RuleSetting, RuleSettingEntry, RuleSettings } from "./rules.mjs";
5
- import { DEFAULT_PAGE_LOAD_TIMEOUT_MS, DEFAULT_PAGE_LOAD_WAIT_UNTIL, PAGE_LOAD_INPUTS, PAGE_LOAD_VALUE_FLAGS, PAGE_LOAD_WAIT_UNTIL, PageLoadOptions, PageLoadWaitUntil, navigationOptions, parsePageLoad, pickPageLoad } from "../page-load.mjs";
3
+ import { COLOR_SCHEMES, COLOR_SCHEME_INPUT, COLOR_SCHEME_VALUE_FLAGS, ColorScheme, DEFAULT_PAGE_LOAD_TIMEOUT_MS, DEFAULT_PAGE_LOAD_WAIT_UNTIL, PAGE_LOAD_INPUTS, PAGE_LOAD_VALUE_FLAGS, PAGE_LOAD_WAIT_UNTIL, PageLoadOptions, PageLoadWaitUntil, applyColorScheme, navigationOptions, parseColorScheme, parsePageLoad, pickPageLoad } from "../page-load.mjs";
4
+ import { hasFlag, readAll, readChoice, readFlag, readInt, readNumber, readPositionals, tokenizeCommand } from "../arg-reader.mjs";
6
5
  import { firstPositional, firstPositionalOrUndefined, instantList, numberList, numberListFloat, optionalInt, runOutputDir, viewportFlag, vlmFlag, withoutOptionalValue } from "./args.mjs";
7
6
  import { isCliEntry } from "./cli-entry.mjs";
7
+ import { UsageError } from "../cli-error.mjs";
8
8
  import { BOLD, CYAN, DIM, GREEN, RED, RESET, YELLOW, hr } from "../terminal-colors.mjs";
9
9
  import { CONFIG_CANDIDATES, CONFIG_FILE, STATE_DIR, debugEnabled, readEnv, resolveStatePath } from "../project-config.mjs";
10
- //#region src/plugin/index.d.ts
11
10
  /**
12
11
  * `@mizchi/vlmkit-core/plugin` — the whole surface a gate plugin needs.
13
12
  *
@@ -77,5 +76,4 @@ import { CONFIG_CANDIDATES, CONFIG_FILE, STATE_DIR, debugEnabled, readEnv, resol
77
76
  * ```
78
77
  */
79
78
  export declare const PLUGIN_API_VERSION: 1;
80
- //#endregion
81
- export { type AnyGateDefinition, type AppliedRules, BOLD, CONFIG_CANDIDATES, CONFIG_FILE, CYAN, DEFAULT_PAGE_LOAD_TIMEOUT_MS, DEFAULT_PAGE_LOAD_WAIT_UNTIL, DIM, FINDING_SEVERITIES, type Finding, type FindingSeverity, GATE_CATEGORIES, GATE_CATEGORY_ORDER, GREEN, type GateCategory, type GateContext, type GateDefinition, type GateInput, PAGE_LOAD_INPUTS, PAGE_LOAD_VALUE_FLAGS, PAGE_LOAD_WAIT_UNTIL, type PageLoadOptions, type PageLoadWaitUntil, RED, RESET, RULE_SETTINGS, type RuleDefinition, type RuleSetting, type RuleSettingEntry, type RuleSettings, type RuleView, STATE_DIR, UsageError, type VlmkitPlugin, YELLOW, debugEnabled, defineGate, definePlugin, firstPositional, firstPositionalOrUndefined, gateCommandString, hasFlag, hr, instantList, isCliEntry, navigationOptions, numberList, numberListFloat, optionalInt, parsePageLoad, pickPageLoad, readAll, readChoice, readEnv, readFlag, readInt, readNumber, readPositionals, resolveStatePath, ruleRef, runOutputDir, tokenizeCommand, viewportFlag, vlmFlag, withoutOptionalValue };
79
+ export { type AnyGateDefinition, type AppliedRules, BOLD, COLOR_SCHEMES, COLOR_SCHEME_INPUT, COLOR_SCHEME_VALUE_FLAGS, CONFIG_CANDIDATES, CONFIG_FILE, CYAN, type ColorScheme, DEFAULT_PAGE_LOAD_TIMEOUT_MS, DEFAULT_PAGE_LOAD_WAIT_UNTIL, DIM, FINDING_SEVERITIES, type Finding, type FindingSeverity, GATE_CATEGORIES, GATE_CATEGORY_ORDER, GREEN, type GateCategory, type GateContext, type GateDefinition, type GateInput, PAGE_LOAD_INPUTS, PAGE_LOAD_VALUE_FLAGS, PAGE_LOAD_WAIT_UNTIL, type PageLoadOptions, type PageLoadWaitUntil, RED, RESET, RULE_SETTINGS, type RuleDefinition, type RuleSetting, type RuleSettingEntry, type RuleSettings, type RuleView, STATE_DIR, UsageError, type VlmkitPlugin, YELLOW, applyColorScheme, debugEnabled, defineGate, definePlugin, firstPositional, firstPositionalOrUndefined, gateCommandString, hasFlag, hr, instantList, isCliEntry, navigationOptions, numberList, numberListFloat, optionalInt, parseColorScheme, parsePageLoad, pickPageLoad, readAll, readChoice, readEnv, readFlag, readInt, readNumber, readPositionals, resolveStatePath, ruleRef, runOutputDir, tokenizeCommand, viewportFlag, vlmFlag, withoutOptionalValue };
@@ -1,13 +1,13 @@
1
- import { UsageError } from "../cli-error.mjs";
1
+ import { FINDING_SEVERITIES, GATE_CATEGORIES, GATE_CATEGORY_ORDER, defineGate, definePlugin, gateCommandString, ruleRef } from "./contract.mjs";
2
+ import { RULE_SETTINGS } from "./rules.mjs";
3
+ import { COLOR_SCHEMES, COLOR_SCHEME_INPUT, COLOR_SCHEME_VALUE_FLAGS, DEFAULT_PAGE_LOAD_TIMEOUT_MS, DEFAULT_PAGE_LOAD_WAIT_UNTIL, PAGE_LOAD_INPUTS, PAGE_LOAD_VALUE_FLAGS, PAGE_LOAD_WAIT_UNTIL, applyColorScheme, navigationOptions, parseColorScheme, parsePageLoad, pickPageLoad } from "../page-load.mjs";
2
4
  import { hasFlag, readAll, readChoice, readFlag, readInt, readNumber, readPositionals, tokenizeCommand } from "../arg-reader.mjs";
5
+ import { firstPositional, firstPositionalOrUndefined, instantList, numberList, numberListFloat, optionalInt, runOutputDir, viewportFlag, vlmFlag, withoutOptionalValue } from "./args.mjs";
3
6
  import { isCliEntry } from "./cli-entry.mjs";
7
+ import { UsageError } from "../cli-error.mjs";
4
8
  import { BOLD, CYAN, DIM, GREEN, RED, RESET, YELLOW, hr } from "../terminal-colors.mjs";
5
- import { FINDING_SEVERITIES, GATE_CATEGORIES, GATE_CATEGORY_ORDER, defineGate, definePlugin, gateCommandString, ruleRef } from "./contract.mjs";
6
- import { RULE_SETTINGS } from "./rules.mjs";
7
- import { DEFAULT_PAGE_LOAD_TIMEOUT_MS, DEFAULT_PAGE_LOAD_WAIT_UNTIL, PAGE_LOAD_INPUTS, PAGE_LOAD_VALUE_FLAGS, PAGE_LOAD_WAIT_UNTIL, navigationOptions, parsePageLoad, pickPageLoad } from "../page-load.mjs";
8
9
  import { CONFIG_CANDIDATES, CONFIG_FILE, STATE_DIR, debugEnabled, readEnv, resolveStatePath } from "../project-config.mjs";
9
- import { firstPositional, firstPositionalOrUndefined, instantList, numberList, numberListFloat, optionalInt, runOutputDir, viewportFlag, vlmFlag, withoutOptionalValue } from "./args.mjs";
10
- //#region src/plugin/index.ts
10
+ // src/plugin/index.ts
11
11
  /**
12
12
  * `@mizchi/vlmkit-core/plugin` — the whole surface a gate plugin needs.
13
13
  *
@@ -77,5 +77,4 @@ import { firstPositional, firstPositionalOrUndefined, instantList, numberList, n
77
77
  * ```
78
78
  */
79
79
  const PLUGIN_API_VERSION = 1;
80
- //#endregion
81
- export { BOLD, CONFIG_CANDIDATES, CONFIG_FILE, CYAN, DEFAULT_PAGE_LOAD_TIMEOUT_MS, DEFAULT_PAGE_LOAD_WAIT_UNTIL, DIM, FINDING_SEVERITIES, GATE_CATEGORIES, GATE_CATEGORY_ORDER, GREEN, PAGE_LOAD_INPUTS, PAGE_LOAD_VALUE_FLAGS, PAGE_LOAD_WAIT_UNTIL, PLUGIN_API_VERSION, RED, RESET, RULE_SETTINGS, STATE_DIR, UsageError, YELLOW, debugEnabled, defineGate, definePlugin, firstPositional, firstPositionalOrUndefined, gateCommandString, hasFlag, hr, instantList, isCliEntry, navigationOptions, numberList, numberListFloat, optionalInt, parsePageLoad, pickPageLoad, readAll, readChoice, readEnv, readFlag, readInt, readNumber, readPositionals, resolveStatePath, ruleRef, runOutputDir, tokenizeCommand, viewportFlag, vlmFlag, withoutOptionalValue };
80
+ export { BOLD, COLOR_SCHEMES, COLOR_SCHEME_INPUT, COLOR_SCHEME_VALUE_FLAGS, CONFIG_CANDIDATES, CONFIG_FILE, CYAN, DEFAULT_PAGE_LOAD_TIMEOUT_MS, DEFAULT_PAGE_LOAD_WAIT_UNTIL, DIM, FINDING_SEVERITIES, GATE_CATEGORIES, GATE_CATEGORY_ORDER, GREEN, PAGE_LOAD_INPUTS, PAGE_LOAD_VALUE_FLAGS, PAGE_LOAD_WAIT_UNTIL, PLUGIN_API_VERSION, RED, RESET, RULE_SETTINGS, STATE_DIR, UsageError, YELLOW, applyColorScheme, debugEnabled, defineGate, definePlugin, firstPositional, firstPositionalOrUndefined, gateCommandString, hasFlag, hr, instantList, isCliEntry, navigationOptions, numberList, numberListFloat, optionalInt, parseColorScheme, parsePageLoad, pickPageLoad, readAll, readChoice, readEnv, readFlag, readInt, readNumber, readPositionals, resolveStatePath, ruleRef, runOutputDir, tokenizeCommand, viewportFlag, vlmFlag, withoutOptionalValue };
@@ -1,5 +1,4 @@
1
1
  import { VlmkitPlugin } from "./contract.mjs";
2
- //#region src/plugin/load.d.ts
3
2
  export interface LoadedPlugin {
4
3
  plugin: VlmkitPlugin;
5
4
  /** Specifier as written in the config, for error messages. */
@@ -30,5 +29,4 @@ export declare function loadPlugins(specifiers: readonly string[], options?: Loa
30
29
  export declare function readPluginSpecifiers(cwd?: string): {
31
30
  specifiers: string[];
32
31
  configPath: string | null;
33
- };
34
- //#endregion
32
+ };
@@ -2,7 +2,7 @@ import { CONFIG_FILE } from "../project-config.mjs";
2
2
  import { existsSync, readFileSync } from "node:fs";
3
3
  import { isAbsolute, resolve } from "node:path";
4
4
  import { pathToFileURL } from "node:url";
5
- //#region src/plugin/load.ts
5
+ // src/plugin/load.ts
6
6
  /**
7
7
  * Loading third-party gate plugins.
8
8
  *
@@ -94,5 +94,4 @@ function readPluginSpecifiers(cwd = process.cwd()) {
94
94
  configPath
95
95
  };
96
96
  }
97
- //#endregion
98
97
  export { asPlugin, loadPlugins, readPluginSpecifiers };
@@ -1,6 +1,5 @@
1
1
  import { AnyGateDefinition, GateCategory, VlmkitPlugin } from "./contract.mjs";
2
2
  import { RuleSettings } from "./rules.mjs";
3
- //#region src/plugin/registry.d.ts
4
3
  export interface RegisteredGate {
5
4
  gate: AnyGateDefinition;
6
5
  /** Plugin that supplied it — named in conflict errors and `--plugins` listings. */
@@ -54,5 +53,4 @@ export declare function validateGateCommands(registry: GateRegistry, commands: r
54
53
  * a gate-scoped block, so this checks the qualified forms and reports a bare
55
54
  * key as needing a scope rather than guessing which gate it meant.
56
55
  */
57
- export declare function validateRuleSettings(registry: GateRegistry, settings: RuleSettings, scope?: AnyGateDefinition): string[];
58
- //#endregion
56
+ export declare function validateRuleSettings(registry: GateRegistry, settings: RuleSettings, scope?: AnyGateDefinition): string[];
@@ -1,6 +1,6 @@
1
1
  import { GATE_CATEGORY_ORDER, gateCommandString } from "./contract.mjs";
2
2
  import { validateGateDefinition } from "./rules.mjs";
3
- //#region src/plugin/registry.ts
3
+ // src/plugin/registry.ts
4
4
  var Registry = class {
5
5
  plugins;
6
6
  gates = [];
@@ -156,5 +156,4 @@ function validateRuleSettings(registry, settings, scope) {
156
156
  }
157
157
  return problems;
158
158
  }
159
- //#endregion
160
159
  export { createGateRegistry, editDistance, validateGateCommands, validateRuleSettings };
@@ -1,6 +1,5 @@
1
1
  import { FindingSeverity, RuleView } from "./contract.mjs";
2
2
  import { TieredRow } from "./rule-tier.mjs";
3
- //#region src/plugin/rule-prose.d.ts
4
3
  /** The shape all seven reports' rows already have. */
5
4
  export interface IssueLike {
6
5
  kind: string;
@@ -35,5 +34,4 @@ export declare function tierIssues<T extends IssueLike>(issues: readonly T[], ru
35
34
  * the reader has no way to tell a measurement from a policy. The suffix names the rule id
36
35
  * because that is the string they would edit to change it back.
37
36
  */
38
- export declare function retuneNote<T extends IssueLike>(entry: TieredRow<T>): string;
39
- //#endregion
37
+ export declare function retuneNote<T extends IssueLike>(entry: TieredRow<T>): string;
@@ -1,5 +1,5 @@
1
1
  import { applyRuleTiers, hiddenByRuleNote } from "./rule-tier.mjs";
2
- //#region src/plugin/rule-prose.ts
2
+ // src/plugin/rule-prose.ts
3
3
  /**
4
4
  * Tier a report's `issues[]` and derive the status word.
5
5
  *
@@ -30,5 +30,4 @@ function tierIssues(issues, rules) {
30
30
  function retuneNote(entry) {
31
31
  return entry.tier === entry.row.severity ? "" : ` [${entry.row.kind} re-tuned to ${entry.tier}]`;
32
32
  }
33
- //#endregion
34
33
  export { retuneNote, tierIssues };
@@ -1,5 +1,4 @@
1
1
  import { FindingSeverity, RuleView } from "./contract.mjs";
2
- //#region src/plugin/rule-tier.d.ts
3
2
  /** A rule's effective setting: a severity, or `off` when the project turned it off. */
4
3
  export type RuleTier = "off" | FindingSeverity;
5
4
  /**
@@ -59,5 +58,4 @@ export declare function applyRuleTiers<T>(rows: readonly T[], ruleOf: (row: T) =
59
58
  * palettes, and they wrap this in their own `DIM`. Deliberately not silent when the count is
60
59
  * zero either — it returns `undefined` so a formatter cannot print an empty bullet.
61
60
  */
62
- export declare function hiddenByRuleNote(hiddenByRule: Map<string, number>): string | undefined;
63
- //#endregion
61
+ export declare function hiddenByRuleNote(hiddenByRule: Map<string, number>): string | undefined;
@@ -1,4 +1,4 @@
1
- //#region src/plugin/rule-tier.ts
1
+ // src/plugin/rule-tier.ts
2
2
  /**
3
3
  * What to print a row as: the explicit project setting, or the severity the finding was
4
4
  * emitted at.
@@ -73,5 +73,4 @@ function hiddenByRuleNote(hiddenByRule) {
73
73
  if (hiddenByRule.size === 0) return void 0;
74
74
  return `${[...hiddenByRule.values()].reduce((a, b) => a + b, 0)} finding(s) not shown — rule turned off (${[...hiddenByRule].map(([rule, n]) => `${rule} x${n}`).join(", ")})`;
75
75
  }
76
- //#endregion
77
76
  export { applyRuleTiers, hiddenByRuleNote, ruleTier, ruleViewFrom };
@@ -1,5 +1,4 @@
1
1
  import { AnyGateDefinition, Finding, FindingSeverity } from "./contract.mjs";
2
- //#region src/plugin/rules.d.ts
3
2
  /** `"off"` drops the finding; a severity re-tunes it (usually `suspect` → `warn`). */
4
3
  export type RuleSetting = "off" | FindingSeverity;
5
4
  export declare const RULE_SETTINGS: readonly RuleSetting[];
@@ -106,5 +105,4 @@ export declare function countFindings(findings: readonly Finding[]): FindingCoun
106
105
  * duplicate rule ids make a setting ambiguous, a non-slug id breaks config
107
106
  * keys, and an empty command cannot be dispatched.
108
107
  */
109
- export declare function validateGateDefinition(gate: AnyGateDefinition): string[];
110
- //#endregion
108
+ export declare function validateGateDefinition(gate: AnyGateDefinition): string[];
@@ -1,6 +1,6 @@
1
1
  import { UsageError } from "../cli-error.mjs";
2
2
  import { FINDING_SEVERITIES, ruleRef } from "./contract.mjs";
3
- //#region src/plugin/rules.ts
3
+ // src/plugin/rules.ts
4
4
  /**
5
5
  * Rule settings — the eslint-shaped layer that lets a project re-tune or
6
6
  * switch off one rule instead of one whole gate.
@@ -184,5 +184,4 @@ function validateGateDefinition(gate) {
184
184
  }
185
185
  return problems;
186
186
  }
187
- //#endregion
188
187
  export { RULE_SETTINGS, applyRuleSettings, countFindings, parseAnnotatedRuleSettings, parseRuleSettings, resolveRules, validateGateDefinition };
@@ -1,7 +1,6 @@
1
1
  import { LedgerWrite } from "../run-ledger.mjs";
2
2
  import { AnyGateDefinition, Finding, GateDefinition } from "./contract.mjs";
3
3
  import { AppliedRules, FindingCounts, RuleSettings } from "./rules.mjs";
4
- //#region src/plugin/runner.d.ts
5
4
  /** Flags the runner owns. A gate's `parse` never sees these as its own. */
6
5
  export declare const SHARED_GATE_FLAGS: readonly ["--json", "--advisory", "--fail-on-suspect", "--rule", "--rules", "--timing", "--ledger", "--no-ledger", "--help", "-h"];
7
6
  export interface SharedFlags {
@@ -193,5 +192,4 @@ export declare function runGateCli<Report, Options>(gate: GateDefinition<Report,
193
192
  * but the page) or slow at everything else (a formatter doing real work — the
194
193
  * defect `formatA11yTouchReport` had, where a "formatter" ran a policy).
195
194
  */
196
- export declare function formatGateTiming(outcome: GateOutcome): string;
197
- //#endregion
195
+ export declare function formatGateTiming(outcome: GateOutcome): string;
@@ -1,12 +1,12 @@
1
1
  import { UsageError } from "../cli-error.mjs";
2
+ import { GATE_EXIT_HELP } from "../gate-exit.mjs";
2
3
  import { authStateNotice, resetAuthStateNotice } from "../auth-state.mjs";
4
+ import { LEDGER_RELATIVE_PATH, VLMKIT_IGNORE_ENTRIES, appendRunLedger, configureRunLedger, firstLedgerWrite, isGitIgnored, isGitRepo } from "../run-ledger.mjs";
3
5
  import { BOLD, CYAN, DIM, RED, RESET, YELLOW } from "../terminal-colors.mjs";
4
6
  import { gateCommandString } from "./contract.mjs";
5
7
  import { RULE_SETTINGS, applyRuleSettings, countFindings, resolveRules } from "./rules.mjs";
6
- import { GATE_EXIT_HELP } from "../gate-exit.mjs";
7
- import { LEDGER_RELATIVE_PATH, VLMKIT_IGNORE_ENTRIES, appendRunLedger, configureRunLedger, firstLedgerWrite, isGitIgnored, isGitRepo } from "../run-ledger.mjs";
8
8
  import { relative } from "node:path";
9
- //#region src/plugin/runner.ts
9
+ // src/plugin/runner.ts
10
10
  /**
11
11
  * The core gate runner — the part every gate stopped having to write.
12
12
  *
@@ -428,12 +428,21 @@ async function runGateCli(gate, argv, options = {}) {
428
428
  }
429
429
  const unknown = unknownGateFlags(gate, argv);
430
430
  if (unknown.length > 0) {
431
+ const names = (gate.inputs ?? []).map((i) => `--${i.name}`);
432
+ const outputs = [
433
+ "--out",
434
+ "--output",
435
+ "--out-dir",
436
+ "--outdir"
437
+ ];
431
438
  const near = unknown.flatMap((flag) => {
432
- const best = (gate.inputs ?? []).map((i) => `--${i.name}`).map((name) => ({
439
+ if (outputs.includes(flag) && names.includes("--frames")) return [`${flag} → --frames`];
440
+ const best = names.map((name) => ({
433
441
  name,
434
442
  d: editDistance(flag, name)
435
443
  })).sort((x, y) => x.d - y.d)[0];
436
- return best && best.d <= 2 ? [`${flag} → ${best.name}`] : [];
444
+ const word = flag.replace(/^--/, "").length;
445
+ return best && best.d <= Math.min(2, Math.max(1, Math.floor(word / 3))) ? [`${flag} → ${best.name}`] : [];
437
446
  });
438
447
  (options.err ?? ((text) => console.error(text)))(`warn: ${unknown.join(", ")} ${unknown.length === 1 ? "is not an option" : "are not options"} of vlmkit ${gateCommandString(gate)} and ${unknown.length === 1 ? "was" : "were"} ignored (--help lists its options)${near.length > 0 ? `; did you mean ${near.join(", ")}?` : ""}`);
439
448
  }
@@ -477,5 +486,4 @@ function formatGateTiming(outcome) {
477
486
  ` ${BOLD}${"total".padEnd(10)}${`${t.totalMs.toFixed(1)}ms`.padStart(9)}${RESET}`
478
487
  ].join("\n");
479
488
  }
480
- //#endregion
481
489
  export { SHARED_GATE_FLAGS, formatGateHelp, formatGateTiming, formatRuleNotes, formatRuleTable, newOutputNotice, parseSharedFlags, runGate, runGateCli, stripSharedFlags, unknownGateFlags, unpinnedLiveInput, withExitIntent };
@@ -1,5 +1,4 @@
1
1
  import { PngData } from "./png-utils.mjs";
2
- //#region src/png-decode.d.ts
3
2
  /** Decoded pixels as they were stored: 3 (RGB) or 4 (RGBA) bytes a pixel, rows packed. */
4
3
  export interface PngPixels {
5
4
  width: number;
@@ -15,5 +14,4 @@ export declare function tableCrc32(bytes: Uint8Array): number;
15
14
  /** A PNG as RGBA. */
16
15
  export declare function decodePngBuffer(buffer: Uint8Array): PngData;
17
16
  /** A PNG's pixels without widening RGB to RGBA: a screenshot is RGB, and the copy is a third of the decode. */
18
- export declare function decodePngPixels(buffer: Uint8Array): PngPixels;
19
- //#endregion
17
+ export declare function decodePngPixels(buffer: Uint8Array): PngPixels;
@@ -1,6 +1,6 @@
1
1
  import * as zlib from "node:zlib";
2
2
  import { PNG } from "pngjs";
3
- //#region src/png-decode.ts
3
+ // src/png-decode.ts
4
4
  /**
5
5
  * A PNG decoder for the one shape a browser screenshot has — 8-bit RGB or RGBA, not interlaced —
6
6
  * in a tight loop over typed arrays, falling back to pngjs for anything else.
@@ -157,5 +157,4 @@ function viaPngjs(buffer) {
157
157
  data: new Uint8Array(png.data.buffer, png.data.byteOffset, png.data.byteLength)
158
158
  };
159
159
  }
160
- //#endregion
161
160
  export { decodePngBuffer, decodePngPixels, tableCrc32 };
@@ -1,4 +1,3 @@
1
- //#region src/png-utils.d.ts
2
1
  export interface PngData {
3
2
  width: number;
4
3
  height: number;
@@ -55,5 +54,4 @@ export declare function decodePng(path: string): Promise<PngData>;
55
54
  /**
56
55
  * Write RGBA pixel data to a PNG file.
57
56
  */
58
- export declare function encodePng(path: string, data: PngData): Promise<void>;
59
- //#endregion
57
+ export declare function encodePng(path: string, data: PngData): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import { readFile, writeFile } from "node:fs/promises";
2
- //#region src/png-utils.ts
2
+ // src/png-utils.ts
3
3
  /**
4
4
  * PNG I/O utilities
5
5
  *
@@ -100,5 +100,4 @@ async function encodePng(path, data) {
100
100
  const buffer = PNG.sync.write(png);
101
101
  await writeFile(path, buffer);
102
102
  }
103
- //#endregion
104
103
  export { cropImage, cropRegion, decodePng, encodePng, measureChangeMagnitude };
@@ -1,4 +1,3 @@
1
- //#region src/project-config.d.ts
2
1
  export declare const STATE_DIR = ".vlmkit";
3
2
  export declare const CONFIG_FILE = "vlmkit.config.json";
4
3
  export declare const CONFIG_CANDIDATES: readonly ["vlmkit.config.json", "vlmkit.config.toml"];
@@ -7,5 +6,4 @@ export declare function resolveStatePath(cwd: string, entry: string): string;
7
6
  /** Read a canonical VLMKIT_* environment variable. */
8
7
  export declare function readEnv(suffix: string): string | undefined;
9
8
  export declare function debugEnabled(): boolean;
10
- export declare const ENV_SUFFIXES: readonly ["BASE_URL", "CAPTURE_BACKEND", "CONFIG_FILE", "CONFIG_PATH", "LLM_MODEL", "LLM_PROVIDER", "PROJECT_ROOT", "VLM_MODEL"];
11
- //#endregion
9
+ export declare const ENV_SUFFIXES: readonly ["BASE_URL", "CAPTURE_BACKEND", "CONFIG_FILE", "CONFIG_PATH", "LLM_MODEL", "LLM_PROVIDER", "PROJECT_ROOT", "VLM_MODEL"];
@@ -1,5 +1,5 @@
1
1
  import { resolve } from "node:path";
2
- //#region src/project-config.ts
2
+ // src/project-config.ts
3
3
  const STATE_DIR = ".vlmkit";
4
4
  const CONFIG_FILE = "vlmkit.config.json";
5
5
  const CONFIG_CANDIDATES = [CONFIG_FILE, "vlmkit.config.toml"];
@@ -24,5 +24,4 @@ const ENV_SUFFIXES = [
24
24
  "PROJECT_ROOT",
25
25
  "VLM_MODEL"
26
26
  ];
27
- //#endregion
28
27
  export { CONFIG_CANDIDATES, CONFIG_FILE, ENV_SUFFIXES, STATE_DIR, debugEnabled, readEnv, resolveStatePath };
@@ -1,4 +1,3 @@
1
- //#region src/rect-overlap.d.ts
2
1
  /**
3
2
  * How much two boxes overlap, in one place.
4
3
  *
@@ -36,5 +35,4 @@ export declare function overlapArea(a: OverlapBox, b: OverlapBox): number;
36
35
  * hand every caller a value that fails every comparison it is put into. `NaN > threshold` is false,
37
36
  * so the case would read as "not similar" in some callers and be silently skipped in others.
38
37
  */
39
- export declare function iou(a: OverlapBox, b: OverlapBox): number;
40
- //#endregion
38
+ export declare function iou(a: OverlapBox, b: OverlapBox): number;
@@ -1,4 +1,4 @@
1
- //#region src/rect-overlap.ts
1
+ // src/rect-overlap.ts
2
2
  /**
3
3
  * Area shared by two boxes, and 0 when they do not overlap at all.
4
4
  *
@@ -24,5 +24,4 @@ function iou(a, b) {
24
24
  const union = a.width * a.height + b.width * b.height - inter;
25
25
  return union > 0 ? inter / union : 0;
26
26
  }
27
- //#endregion
28
27
  export { iou, overlapArea };
@@ -1,5 +1,4 @@
1
1
  import { PngData } from "./png-utils.mjs";
2
- //#region src/region-shift.d.ts
3
2
  export interface RegionShiftEstimate {
4
3
  /** Content moved by +dx px horizontally in current (vs baseline). */
5
4
  dx: number;
@@ -15,4 +14,4 @@ interface RegionRect {
15
14
  height: number;
16
15
  }
17
16
  export declare function estimateRegionShift(baseline: PngData, current: PngData, region: RegionRect, maxOffset?: number): RegionShiftEstimate | null;
18
- //#endregion
17
+ export {};
@@ -1,4 +1,4 @@
1
- //#region src/region-shift.ts
1
+ // src/region-shift.ts
2
2
  const MIN_REGION_EDGE = 8;
3
3
  const MIN_PEAK = .6;
4
4
  /** The shifted-lag peak must beat the zero-lag correlation by this much. */
@@ -124,5 +124,4 @@ function lumaAt(img, x, y) {
124
124
  function clamp(value, min, max) {
125
125
  return Math.max(min, Math.min(max, value));
126
126
  }
127
- //#endregion
128
127
  export { estimateRegionShift };
@@ -1,4 +1,3 @@
1
- //#region src/run-ledger.d.ts
2
1
  export interface RunLedgerEntry {
3
2
  /** Tool name, e.g. "build-page", "check-breakpoints", "verify-markup". */
4
3
  tool: string;
@@ -63,5 +62,4 @@ export declare function appendRunLedger(entry: RunLedgerEntry, options?: AppendR
63
62
  */
64
63
  export declare function isGitIgnored(cwd: string, target: string): boolean;
65
64
  /** Is this working directory a git repo at all? Nothing to advise if it is not. */
66
- export declare function isGitRepo(cwd: string): boolean;
67
- //#endregion
65
+ export declare function isGitRepo(cwd: string): boolean;
@@ -1,6 +1,6 @@
1
1
  import { appendFileSync, existsSync, mkdirSync, readFileSync } from "node:fs";
2
2
  import { dirname, join, relative, resolve } from "node:path";
3
- //#region src/run-ledger.ts
3
+ // src/run-ledger.ts
4
4
  /**
5
5
  * Append-only run ledger for agent-loop tools.
6
6
  *
@@ -119,5 +119,4 @@ function isGitIgnored(cwd, target) {
119
119
  function isGitRepo(cwd) {
120
120
  return existsSync(join(cwd, ".git"));
121
121
  }
122
- //#endregion
123
122
  export { LEDGER_RELATIVE_PATH, VLMKIT_IGNORE_ENTRIES, appendRunLedger, configureRunLedger, firstLedgerWrite, isGitIgnored, isGitRepo };
@@ -1,4 +1,3 @@
1
- //#region src/stable-selector.d.ts
2
1
  /**
3
2
  * The one in-page selector generator, as a script fragment.
4
3
  *
@@ -45,5 +44,4 @@
45
44
  * `page.evaluate`, so it carries its own copy on purpose and the uniqueness test is
46
45
  * what holds the two in agreement.
47
46
  */
48
- export declare const STABLE_SELECTOR_JS = "\n function stableSelector(el) {\n if (!el || !el.tagName) return \"(no target)\";\n const id = el.getAttribute && el.getAttribute(\"id\");\n if (id) return \"#\" + CSS.escape(id);\n const classes = el.classList ? Array.from(el.classList).slice(0, 3) : [];\n if (classes.length > 0) {\n const selector = el.tagName.toLowerCase() + classes.map((c) => \".\" + CSS.escape(c)).join(\"\");\n if (document.querySelectorAll(selector).length === 1) return selector;\n }\n const parent = el.parentElement;\n if (!parent) return el.tagName.toLowerCase();\n const siblings = Array.from(parent.children).filter((item) => item.tagName === el.tagName);\n return stableSelector(parent) + \" > \" + el.tagName.toLowerCase() + \":nth-of-type(\" + (siblings.indexOf(el) + 1) + \")\";\n }\n";
49
- //#endregion
47
+ export declare const STABLE_SELECTOR_JS = "\n function stableSelector(el) {\n if (!el || !el.tagName) return \"(no target)\";\n const id = el.getAttribute && el.getAttribute(\"id\");\n if (id) return \"#\" + CSS.escape(id);\n const classes = el.classList ? Array.from(el.classList).slice(0, 3) : [];\n if (classes.length > 0) {\n const selector = el.tagName.toLowerCase() + classes.map((c) => \".\" + CSS.escape(c)).join(\"\");\n if (document.querySelectorAll(selector).length === 1) return selector;\n }\n const parent = el.parentElement;\n if (!parent) return el.tagName.toLowerCase();\n const siblings = Array.from(parent.children).filter((item) => item.tagName === el.tagName);\n return stableSelector(parent) + \" > \" + el.tagName.toLowerCase() + \":nth-of-type(\" + (siblings.indexOf(el) + 1) + \")\";\n }\n";
@@ -1,4 +1,4 @@
1
- //#region src/stable-selector.ts
1
+ // src/stable-selector.ts
2
2
  /**
3
3
  * The one in-page selector generator, as a script fragment.
4
4
  *
@@ -61,5 +61,4 @@ const STABLE_SELECTOR_JS = `
61
61
  return stableSelector(parent) + " > " + el.tagName.toLowerCase() + ":nth-of-type(" + (siblings.indexOf(el) + 1) + ")";
62
62
  }
63
63
  `;
64
- //#endregion
65
64
  export { STABLE_SELECTOR_JS };
@@ -1,4 +1,3 @@
1
- //#region src/terminal-colors.d.ts
2
1
  /** Shared ANSI terminal color codes and helpers */
3
2
  export declare const DIM = "";
4
3
  export declare const RESET = "";
@@ -7,5 +6,4 @@ export declare const RED = "";
7
6
  export declare const YELLOW = "";
8
7
  export declare const CYAN = "";
9
8
  export declare const BOLD = "";
10
- export declare function hr(width?: number): void;
11
- //#endregion
9
+ export declare function hr(width?: number): void;
@@ -1,4 +1,4 @@
1
- //#region src/terminal-colors.ts
1
+ // src/terminal-colors.ts
2
2
  /** Shared ANSI terminal color codes and helpers */
3
3
  const DIM = "\x1B[2m";
4
4
  const RESET = "\x1B[0m";
@@ -10,5 +10,4 @@ const BOLD = "\x1B[1m";
10
10
  function hr(width = 72) {
11
11
  console.log(`${DIM}${"─".repeat(width)}${RESET}`);
12
12
  }
13
- //#endregion
14
13
  export { BOLD, CYAN, DIM, GREEN, RED, RESET, YELLOW, hr };
@@ -1,4 +1,3 @@
1
- //#region src/text-rows.d.ts
2
1
  export interface TextRow {
3
2
  /** Optional OCR/debug text when a caller can supply it. Pixel extraction does not infer this. */
4
3
  text?: string;
@@ -116,5 +115,4 @@ export interface TypographyMismatch {
116
115
  * surfaced.
117
116
  */
118
117
  export declare function compareRowTypography(baseline: TextRow[], variant: TextRow[], minDensityDelta?: number): TypographyMismatch[];
119
- export declare function computeRowGapDeltas(baseline: TextRow[], variant: TextRow[], minAbsoluteDelta?: number): RowGapDelta[];
120
- //#endregion
118
+ export declare function computeRowGapDeltas(baseline: TextRow[], variant: TextRow[], minAbsoluteDelta?: number): RowGapDelta[];
@@ -1,6 +1,6 @@
1
1
  import { readFile } from "node:fs/promises";
2
2
  import { PNG } from "pngjs";
3
- //#region src/text-rows.ts
3
+ // src/text-rows.ts
4
4
  /**
5
5
  * Text-row y-position extraction.
6
6
  *
@@ -242,5 +242,4 @@ function computeRowGapDeltas(baseline, variant, minAbsoluteDelta = 2) {
242
242
  }
243
243
  return out;
244
244
  }
245
- //#endregion
246
245
  export { compareRowTypography, computeRowGapDeltas, extractTextRowsFromFile, extractTextRowsFromRgba, matchTextRows };
package/dist/types.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/types.d.ts
2
1
  export interface PlaywrightReport {
3
2
  config: {
4
3
  rootDir: string;
@@ -495,5 +494,4 @@ export interface HtmlSource {
495
494
  url?: string;
496
495
  /** Label (for reports) */
497
496
  label?: string;
498
- }
499
- //#endregion
497
+ }