playwright-performance-regression 1.0.0 → 1.0.1

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/reporter.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkVREOANPX_cjs = require('./chunk-VREOANPX.cjs');
5
+ var chunkLEIBG5A4_cjs = require('./chunk-LEIBG5A4.cjs');
6
6
  var chunkW7NEFS5V_cjs = require('./chunk-W7NEFS5V.cjs');
7
7
  var fs = require('fs');
8
8
  var promises = require('fs/promises');
@@ -288,6 +288,21 @@ function runPass(command, env, cwd) {
288
288
  }
289
289
  });
290
290
  }
291
+ function readProcessTable() {
292
+ if (process.platform === "win32") return null;
293
+ try {
294
+ const out = child_process.spawnSync("ps", ["-A", "-o", "pid=,ppid=,args="], {
295
+ encoding: "utf8",
296
+ timeout: 2e3,
297
+ shell: false,
298
+ windowsHide: true,
299
+ maxBuffer: 16 * 1024 * 1024
300
+ });
301
+ return out.status === 0 && typeof out.stdout === "string" ? out.stdout : null;
302
+ } catch {
303
+ return null;
304
+ }
305
+ }
291
306
  function readPackageInfo(dir) {
292
307
  for (let current = dir; ; current = path.dirname(current)) {
293
308
  const file = path.join(current, "package.json");
@@ -1424,7 +1439,7 @@ function thresholdsFileName(prefix, kind2, env) {
1424
1439
  function thresholdsFilePaths(location) {
1425
1440
  const dir = resolvePath(location.configDir, location.dir);
1426
1441
  const path = (kind2) => resolvePath(dir, thresholdsFileName(location.filePrefix, kind2, location.env));
1427
- return Object.fromEntries(chunkVREOANPX_cjs.KINDS.map((kind2) => [kind2, path(kind2)]));
1442
+ return Object.fromEntries(chunkLEIBG5A4_cjs.KINDS.map((kind2) => [kind2, path(kind2)]));
1428
1443
  }
1429
1444
  async function loadFile(location, kind2) {
1430
1445
  const absolute = thresholdsFilePaths(location)[kind2];
@@ -1472,8 +1487,8 @@ async function loadFile(location, kind2) {
1472
1487
  };
1473
1488
  }
1474
1489
  async function loadThresholds(location) {
1475
- const files = await Promise.all(chunkVREOANPX_cjs.KINDS.map((kind2) => loadFile(location, kind2)));
1476
- return Object.fromEntries(chunkVREOANPX_cjs.KINDS.map((kind2, i) => [kind2, files[i]]));
1490
+ const files = await Promise.all(chunkLEIBG5A4_cjs.KINDS.map((kind2) => loadFile(location, kind2)));
1491
+ return Object.fromEntries(chunkLEIBG5A4_cjs.KINDS.map((kind2, i) => [kind2, files[i]]));
1477
1492
  }
1478
1493
 
1479
1494
  // src/core/evaluate/files.ts
@@ -1489,7 +1504,7 @@ function envlessPath(path, env) {
1489
1504
  return path.endsWith(suffix) ? `${path.slice(0, -suffix.length)}.json` : path;
1490
1505
  }
1491
1506
  function missingFileWarning(file, env) {
1492
- const derive = `Derive thresholds with \`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`${env === null ? "" : ` (environment "${env}")`}.`;
1507
+ const derive = `Derive thresholds with \`${chunkLEIBG5A4_cjs.THRESHOLDS_COMMAND}\`${env === null ? "" : ` (environment "${env}")`}.`;
1493
1508
  const envless = env !== null && file.envlessFileExists ? ` ${envlessPath(file.path, env)} exists but is not used for environment "${env}": thresholds of another environment would give false alarms or hide regressions.` : "";
1494
1509
  return {
1495
1510
  code: "THRESHOLDS_FILE_MISSING",
@@ -1501,7 +1516,7 @@ function emptyFileWarning(path, kind2, env) {
1501
1516
  return {
1502
1517
  code: "THRESHOLDS_FILE_EMPTY",
1503
1518
  message: `Thresholds file ${path} has no entries; ${KIND_NOUN[kind2]} keys are evaluated with default thresholds.`,
1504
- hint: `Derive thresholds with \`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`${env === null ? "" : ` (environment "${env}")`}.`
1519
+ hint: `Derive thresholds with \`${chunkLEIBG5A4_cjs.THRESHOLDS_COMMAND}\`${env === null ? "" : ` (environment "${env}")`}.`
1505
1520
  };
1506
1521
  }
1507
1522
  var MAX_KEYS_IN_MESSAGE = 3;
@@ -1513,7 +1528,7 @@ function keysOnDefaultsWarning(path, kind2, keys, env) {
1513
1528
  return {
1514
1529
  code: "THRESHOLDS_KEYS_ON_DEFAULTS",
1515
1530
  message: `${plural(keys.length, `${KIND_NOUN[kind2]} key`)} ${one ? "has" : "have"} no entry in ${path} and ${one ? "is" : "are"} evaluated with default thresholds: ${list2}.`,
1516
- hint: `New endpoints or steps, or keys renamed by a code or normalization change, get the default thresholds. Add entries with \`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`${env === null ? "" : ` (environment "${env}")`}; locked entries are kept.`
1531
+ hint: `New endpoints or steps, or keys renamed by a code or normalization change, get the default thresholds. Add entries with \`${chunkLEIBG5A4_cjs.THRESHOLDS_COMMAND}\`${env === null ? "" : ` (environment "${env}")`}; locked entries are kept.`
1517
1532
  };
1518
1533
  }
1519
1534
  function majorMinor(version2) {
@@ -1562,7 +1577,7 @@ function generatedWarnings(path, generated, cfg, env, source) {
1562
1577
  issues.push({
1563
1578
  code: "EVAL_PERCENTILE_MISMATCH",
1564
1579
  message: `Thresholds in ${path} were derived for ${generated.evaluatedPercentile}, but this run evaluates ${level}; the percentile limits are compared with ${level}.`,
1565
- hint: `Derive thresholds again with \`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\` after changing checks.time.percentile.level.`
1580
+ hint: `Derive thresholds again with \`${chunkLEIBG5A4_cjs.THRESHOLDS_COMMAND}\` after changing checks.time.percentile.level.`
1566
1581
  });
1567
1582
  }
1568
1583
  if (generated.env !== env) {
@@ -1583,7 +1598,7 @@ function generatedWarnings(path, generated, cfg, env, source) {
1583
1598
  }
1584
1599
  if (keys) {
1585
1600
  hints.push(
1586
- `Another normalization changes the keys: derive thresholds again with \`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`.`
1601
+ `Another normalization changes the keys: derive thresholds again with \`${chunkLEIBG5A4_cjs.THRESHOLDS_COMMAND}\`.`
1587
1602
  );
1588
1603
  }
1589
1604
  issues.push({
@@ -1598,14 +1613,14 @@ function unseenWarning(path, unseen) {
1598
1613
  return {
1599
1614
  code: "THRESHOLDS_UNSEEN_ENTRIES",
1600
1615
  message: `${plural(unseen.length, "entry", "entries")} in ${path} ${unseen.length === 1 ? "was" : "were"} not seen in this run.`,
1601
- hint: `Run the full suite, or remove stale entries with \`${chunkVREOANPX_cjs.PRUNE_COMMAND}\`.`
1616
+ hint: `Run the full suite, or remove stale entries with \`${chunkLEIBG5A4_cjs.PRUNE_COMMAND}\`.`
1602
1617
  };
1603
1618
  }
1604
1619
  function outdatedWarning(path, from, current) {
1605
1620
  return {
1606
1621
  code: "THRESHOLDS_FILE_OUTDATED",
1607
1622
  message: `Thresholds file ${path} has format version ${from}; it was read after migration to version ${current}.`,
1608
- hint: `The next thresholds run (\`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`) writes it in the current version and keeps locked entries.`
1623
+ hint: `The next thresholds run (\`${chunkLEIBG5A4_cjs.THRESHOLDS_COMMAND}\`) writes it in the current version and keeps locked entries.`
1609
1624
  };
1610
1625
  }
1611
1626
  function fileInfo(file, unseenKeys) {
@@ -1721,7 +1736,7 @@ function hashHex(input) {
1721
1736
  }
1722
1737
 
1723
1738
  // src/core/stats/classification.ts
1724
- var ABORT_TEXTS = new Set(chunkVREOANPX_cjs.ABORT_FAILURE_TEXTS);
1739
+ var ABORT_TEXTS = new Set(chunkLEIBG5A4_cjs.ABORT_FAILURE_TEXTS);
1725
1740
  function requestStatusLabel(sample) {
1726
1741
  const { status } = sample;
1727
1742
  if (typeof status === "number") return String(status);
@@ -2498,7 +2513,7 @@ function addKeyedRequest(aggregator, keyOf, sample, browserName) {
2498
2513
  function addKeyedApiRequest(aggregator, keyOf, sample) {
2499
2514
  const result2 = keyOf({ method: sample.method, url: sample.url, resourceType: "request" });
2500
2515
  if (!result2.ok) return result2;
2501
- const key2 = `${chunkVREOANPX_cjs.REQUEST_KEY_PREFIX}${result2.key}`;
2516
+ const key2 = `${chunkLEIBG5A4_cjs.REQUEST_KEY_PREFIX}${result2.key}`;
2502
2517
  const request = {
2503
2518
  method: sample.method,
2504
2519
  url: sample.url,
@@ -2709,7 +2724,7 @@ function qualifies(evaluation, gate) {
2709
2724
  return !isMuteActive(evaluation.muted);
2710
2725
  }
2711
2726
  function applyGate(perKey, gate) {
2712
- const all = chunkVREOANPX_cjs.KINDS.flatMap((kind2) => Object.values(perKey[kind2]));
2727
+ const all = chunkLEIBG5A4_cjs.KINDS.flatMap((kind2) => Object.values(perKey[kind2]));
2713
2728
  const qualified = all.filter(
2714
2729
  (e) => qualifies(e, gate) && e.checks.some((check2) => !check2.passed)
2715
2730
  );
@@ -2759,7 +2774,7 @@ function evaluationStatus2(perKey, thresholds, fatalToolError, kinds) {
2759
2774
  if (fatalToolError || kinds.some((kind2) => thresholds[kind2].status === "invalid")) {
2760
2775
  return "error";
2761
2776
  }
2762
- const checks = chunkVREOANPX_cjs.KINDS.flatMap((kind2) => Object.values(perKey[kind2])).flatMap((e) => e.checks);
2777
+ const checks = chunkLEIBG5A4_cjs.KINDS.flatMap((kind2) => Object.values(perKey[kind2])).flatMap((e) => e.checks);
2763
2778
  if (checks.some((c) => c.blocking)) return "failed";
2764
2779
  if (checks.some((c) => !c.passed)) return "warned";
2765
2780
  return "passed";
@@ -2771,7 +2786,7 @@ function evaluate(aggregates, thresholds, cfg, opts) {
2771
2786
  step: aggregates.steps ?? {}
2772
2787
  };
2773
2788
  const perKey = { api: {}, step: {} };
2774
- for (const kind2 of chunkVREOANPX_cjs.KINDS) {
2789
+ for (const kind2 of chunkLEIBG5A4_cjs.KINDS) {
2775
2790
  for (const key2 of Object.keys(byKind[kind2]).sort(compareText)) {
2776
2791
  const stats2 = byKind[kind2][key2];
2777
2792
  if (stats2 !== void 0) {
@@ -2784,7 +2799,7 @@ function evaluate(aggregates, thresholds, cfg, opts) {
2784
2799
  const toolErrors = [];
2785
2800
  const thresholdFiles = [];
2786
2801
  const unseenCount = { api: 0, step: 0 };
2787
- const activeKinds = chunkVREOANPX_cjs.KINDS.filter(
2802
+ const activeKinds = chunkLEIBG5A4_cjs.KINDS.filter(
2788
2803
  (kind2) => kind2 === "step" ? cfg.measure.steps.enabled : cfg.measure.api
2789
2804
  );
2790
2805
  for (const kind2 of activeKinds) {
@@ -2833,14 +2848,14 @@ function evaluate(aggregates, thresholds, cfg, opts) {
2833
2848
  api: countKind(perKey.api, unseenCount.api),
2834
2849
  step: countKind(perKey.step, unseenCount.step)
2835
2850
  };
2836
- if (chunkVREOANPX_cjs.KINDS.every((kind2) => Object.keys(byKind[kind2]).length === 0)) {
2851
+ if (chunkLEIBG5A4_cjs.KINDS.every((kind2) => Object.keys(byKind[kind2]).length === 0)) {
2837
2852
  warnings.push({
2838
2853
  code: "EVAL_NO_SAMPLES",
2839
2854
  message: "The run recorded no samples, so nothing was evaluated.",
2840
2855
  hint: "Check the integration: tests must use the fixtures from withPerfFixtures, and the measure options (include, exclude, resourceTypes) must not filter out every request."
2841
2856
  });
2842
2857
  }
2843
- const notEvaluated = chunkVREOANPX_cjs.KINDS.reduce((sum3, kind2) => sum3 + counts[kind2].fileEntriesNotEvaluated, 0);
2858
+ const notEvaluated = chunkLEIBG5A4_cjs.KINDS.reduce((sum3, kind2) => sum3 + counts[kind2].fileEntriesNotEvaluated, 0);
2844
2859
  if (notEvaluated > 0) {
2845
2860
  warnings.push({
2846
2861
  code: "THRESHOLDS_ENTRIES_NOT_EVALUATED",
@@ -2848,7 +2863,7 @@ function evaluate(aggregates, thresholds, cfg, opts) {
2848
2863
  hint: `Run more passes (run.passes or PW_PERF_PASSES), or accept that the endpoint is called rarely.`
2849
2864
  });
2850
2865
  }
2851
- const mutedKeys = chunkVREOANPX_cjs.KINDS.flatMap(
2866
+ const mutedKeys = chunkLEIBG5A4_cjs.KINDS.flatMap(
2852
2867
  (kind2) => Object.entries(perKey[kind2]).flatMap(
2853
2868
  ([key2, e]) => e.muted === null ? [] : [{ kind: kind2, key: key2, muted: e.muted }]
2854
2869
  )
@@ -4801,7 +4816,7 @@ function entrySelfConsistent(entry, aggregate2, kind2, cfg) {
4801
4816
  var MS_LIMITS = /* @__PURE__ */ new Set(["t", "median", "percentile", "p99"]);
4802
4817
  var TIME_LIMITS = ["median", "percentile", "p99"];
4803
4818
  function isComplete(entry) {
4804
- return chunkVREOANPX_cjs.LIMIT_NAMES.every((name) => entry[name] !== void 0);
4819
+ return chunkLEIBG5A4_cjs.LIMIT_NAMES.every((name) => entry[name] !== void 0);
4805
4820
  }
4806
4821
  function limitsOf(entry) {
4807
4822
  return {
@@ -4818,7 +4833,7 @@ function atMost(a, b) {
4818
4833
  return Math.round(a * 1e6) <= Math.round(b * 1e6);
4819
4834
  }
4820
4835
  function withinHysteresis(before, after, hysteresis) {
4821
- return chunkVREOANPX_cjs.LIMIT_NAMES.every((name) => {
4836
+ return chunkLEIBG5A4_cjs.LIMIT_NAMES.every((name) => {
4822
4837
  const a = before[name];
4823
4838
  const b = after[name];
4824
4839
  if (a === null || b === null) return a === b;
@@ -4877,11 +4892,11 @@ function refusal(report, cfg, existing) {
4877
4892
  {
4878
4893
  code: "THRESHOLDS_SOURCE_INCOMPLETE",
4879
4894
  message: `The source report is incomplete or untrustworthy (${incomplete.join("; ")}); no thresholds file was written.`,
4880
- hint: `Fix the cause and derive again with \`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`: thresholds are derived from complete runs only.`
4895
+ hint: `Fix the cause and derive again with \`${chunkLEIBG5A4_cjs.THRESHOLDS_COMMAND}\`: thresholds are derived from complete runs only.`
4881
4896
  }
4882
4897
  ];
4883
4898
  }
4884
- if (chunkVREOANPX_cjs.KINDS.every((kind2) => Object.keys(aggregatesOf(report, kind2)).length === 0)) {
4899
+ if (chunkLEIBG5A4_cjs.KINDS.every((kind2) => Object.keys(aggregatesOf(report, kind2)).length === 0)) {
4885
4900
  return [
4886
4901
  {
4887
4902
  code: "THRESHOLDS_EMPTY_REPORT",
@@ -4890,7 +4905,7 @@ function refusal(report, cfg, existing) {
4890
4905
  }
4891
4906
  ];
4892
4907
  }
4893
- const derivable = chunkVREOANPX_cjs.KINDS.some(
4908
+ const derivable = chunkLEIBG5A4_cjs.KINDS.some(
4894
4909
  (kind2) => Object.values(aggregatesOf(report, kind2)).some((stats2) => isDerivable(stats2, cfg.checks))
4895
4910
  );
4896
4911
  if (!derivable) {
@@ -4902,7 +4917,7 @@ function refusal(report, cfg, existing) {
4902
4917
  }
4903
4918
  ];
4904
4919
  }
4905
- const invalid = chunkVREOANPX_cjs.KINDS.flatMap((kind2) => {
4920
+ const invalid = chunkLEIBG5A4_cjs.KINDS.flatMap((kind2) => {
4906
4921
  const file = existing[kind2];
4907
4922
  return file.status === "invalid" ? file.issues.map(schemaIssueToIssue) : [];
4908
4923
  });
@@ -4915,7 +4930,7 @@ function generatedBlock(report, cfg, kind2, opts) {
4915
4930
  0
4916
4931
  );
4917
4932
  return {
4918
- tool: { name: chunkVREOANPX_cjs.PACKAGE_NAME, version: opts.toolVersion },
4933
+ tool: { name: chunkLEIBG5A4_cjs.PACKAGE_NAME, version: opts.toolVersion },
4919
4934
  env: opts.env,
4920
4935
  sourceRunId: report.runId,
4921
4936
  sourceRunStartedAt: report.startedAt,
@@ -4983,7 +4998,7 @@ function deriveKind(report, cfg, file, opts) {
4983
4998
  }
4984
4999
  if (keysDiffer) {
4985
5000
  hints.push(
4986
- `Another normalization changes the keys: entries of old keys are kept as unseen until removed with \`${chunkVREOANPX_cjs.PRUNE_COMMAND}\`.`
5001
+ `Another normalization changes the keys: entries of old keys are kept as unseen until removed with \`${chunkLEIBG5A4_cjs.PRUNE_COMMAND}\`.`
4987
5002
  );
4988
5003
  }
4989
5004
  warnings.push({
@@ -5042,7 +5057,7 @@ function deriveKind(report, cfg, file, opts) {
5042
5057
  };
5043
5058
  }
5044
5059
  function deriveThresholds(report, cfg, existing, opts) {
5045
- for (const kind2 of chunkVREOANPX_cjs.KINDS) {
5060
+ for (const kind2 of chunkLEIBG5A4_cjs.KINDS) {
5046
5061
  const found = existing[kind2].kind;
5047
5062
  if (found !== kind2) {
5048
5063
  throw new Error(`deriveThresholds: existing.${kind2} has kind "${found}"`);
@@ -5070,12 +5085,12 @@ function deriveThresholds(report, cfg, existing, opts) {
5070
5085
  warnings.push({
5071
5086
  code: "THRESHOLDS_SOURCE_TEST_MODE",
5072
5087
  message: "The source report comes from test mode, which runs fewer repetitions than a thresholds run.",
5073
- hint: `Prefer a report of a thresholds run (\`${chunkVREOANPX_cjs.THRESHOLDS_COMMAND}\`) as the source.`
5088
+ hint: `Prefer a report of a thresholds run (\`${chunkLEIBG5A4_cjs.THRESHOLDS_COMMAND}\`) as the source.`
5074
5089
  });
5075
5090
  }
5076
5091
  const files = [];
5077
5092
  let much = 0;
5078
- for (const kind2 of chunkVREOANPX_cjs.KINDS) {
5093
+ for (const kind2 of chunkLEIBG5A4_cjs.KINDS) {
5079
5094
  const file = existing[kind2];
5080
5095
  if (file.status === "invalid") throw new Error("deriveThresholds: unreachable invalid file");
5081
5096
  if ((kind2 !== "api" || !cfg.measure.api) && file.status === "missing") {
@@ -5102,7 +5117,7 @@ function limitChanges(before, after, loosenWarnRelative) {
5102
5117
  const a = limitsOf(before);
5103
5118
  const b = limitsOf(after);
5104
5119
  const changes = [];
5105
- for (const limit of chunkVREOANPX_cjs.LIMIT_NAMES) {
5120
+ for (const limit of chunkLEIBG5A4_cjs.LIMIT_NAMES) {
5106
5121
  const direction = changeDirection(limit, a[limit], b[limit]);
5107
5122
  if (direction === null) continue;
5108
5123
  const change = { limit, before: a[limit], after: b[limit], direction };
@@ -5145,7 +5160,7 @@ function keptKey(key2, before, after, stats2, kind2, cfg) {
5145
5160
  }
5146
5161
  const fresh = cfg.thresholds.update === "all" ? deriveEntry(stats2, kind2, cfg) : null;
5147
5162
  const old = limitsOf(before);
5148
- const kept = fresh !== null && chunkVREOANPX_cjs.LIMIT_NAMES.some((name) => fresh[name] !== old[name]);
5163
+ const kept = fresh !== null && chunkLEIBG5A4_cjs.LIMIT_NAMES.some((name) => fresh[name] !== old[name]);
5149
5164
  return { key: key2, category: "unchanged", changes: [], ...kept ? { withinHysteresis: true } : {} };
5150
5165
  }
5151
5166
  function diffThresholds(before, after, report, cfg) {
@@ -5178,7 +5193,7 @@ function diffThresholds(before, after, report, cfg) {
5178
5193
  if (muting !== null) diff.muted = { until: muting.until, expired: muting.expired };
5179
5194
  diffs.push(diff);
5180
5195
  }
5181
- const counts = Object.fromEntries(chunkVREOANPX_cjs.DIFF_CATEGORIES.map((c) => [c, 0]));
5196
+ const counts = Object.fromEntries(chunkLEIBG5A4_cjs.DIFF_CATEGORIES.map((c) => [c, 0]));
5182
5197
  for (const diff of diffs) counts[diff.category] += 1;
5183
5198
  return {
5184
5199
  kind: kind2,
@@ -5204,15 +5219,15 @@ function formatThresholdsDiffMarkdown(diffs, paths) {
5204
5219
  "",
5205
5220
  `## ${cell(path)} (${diff.fileStatus === "not-written" ? "not written" : diff.fileStatus})`,
5206
5221
  "",
5207
- chunkVREOANPX_cjs.diffCountsText(diff)
5222
+ chunkLEIBG5A4_cjs.diffCountsText(diff)
5208
5223
  );
5209
- const listed = diff.keys.filter((k) => chunkVREOANPX_cjs.LISTED_CATEGORIES.has(k.category));
5224
+ const listed = diff.keys.filter((k) => chunkLEIBG5A4_cjs.LISTED_CATEGORIES.has(k.category));
5210
5225
  if (listed.length > 0) {
5211
5226
  lines.push("", "| | Key | Before | After |", "|---|---|---|---|");
5212
5227
  for (const k of listed) {
5213
- const before = chunkVREOANPX_cjs.diffValuesText(k, "before", diff.level, " \xB7 ");
5214
- const after = chunkVREOANPX_cjs.diffValuesText(k, "after", diff.level, " \xB7 ");
5215
- lines.push(`| ${chunkVREOANPX_cjs.diffMarker(k)} | ${code(k.key)} | ${cell(before)} | ${cell(after)} |`);
5228
+ const before = chunkLEIBG5A4_cjs.diffValuesText(k, "before", diff.level, " \xB7 ");
5229
+ const after = chunkLEIBG5A4_cjs.diffValuesText(k, "after", diff.level, " \xB7 ");
5230
+ lines.push(`| ${chunkLEIBG5A4_cjs.diffMarker(k)} | ${code(k.key)} | ${cell(before)} | ${cell(after)} |`);
5216
5231
  }
5217
5232
  }
5218
5233
  const skipped2 = diff.keys.filter((k) => k.category === "skipped" && k.samples !== void 0);
@@ -5220,7 +5235,7 @@ function formatThresholdsDiffMarkdown(diffs, paths) {
5220
5235
  lines.push("", "Skipped (no entry derived):", "");
5221
5236
  for (const k of skipped2) {
5222
5237
  if (k.samples !== void 0)
5223
- lines.push(`- ${code(k.key)}: ${chunkVREOANPX_cjs.skippedReasonText(k.samples)}`);
5238
+ lines.push(`- ${code(k.key)}: ${chunkLEIBG5A4_cjs.skippedReasonText(k.samples)}`);
5224
5239
  }
5225
5240
  }
5226
5241
  const expired = diff.keys.filter((k) => k.muted?.expired === true);
@@ -5600,7 +5615,7 @@ var RULE_ORDER3 = [
5600
5615
  ];
5601
5616
  function violations(report) {
5602
5617
  const list2 = [];
5603
- for (const kind2 of chunkVREOANPX_cjs.KINDS) {
5618
+ for (const kind2 of chunkLEIBG5A4_cjs.KINDS) {
5604
5619
  const aggregates = aggregatesOf2(report, kind2);
5605
5620
  for (const [key2, aggregate2] of Object.entries(aggregates)) {
5606
5621
  for (const check2 of aggregate2.evaluation.checks) {
@@ -5611,7 +5626,7 @@ function violations(report) {
5611
5626
  }
5612
5627
  }
5613
5628
  return list2.sort(
5614
- (a, b) => Number(b.check.blocking) - Number(a.check.blocking) || (a.r === b.r ? 0 : b.r > a.r ? 1 : -1) || chunkVREOANPX_cjs.KINDS.indexOf(a.kind) - chunkVREOANPX_cjs.KINDS.indexOf(b.kind) || compareText7(a.key, b.key) || RULE_ORDER3.indexOf(a.check.rule) - RULE_ORDER3.indexOf(b.check.rule)
5629
+ (a, b) => Number(b.check.blocking) - Number(a.check.blocking) || (a.r === b.r ? 0 : b.r > a.r ? 1 : -1) || chunkLEIBG5A4_cjs.KINDS.indexOf(a.kind) - chunkLEIBG5A4_cjs.KINDS.indexOf(b.kind) || compareText7(a.key, b.key) || RULE_ORDER3.indexOf(a.check.rule) - RULE_ORDER3.indexOf(b.check.rule)
5615
5630
  );
5616
5631
  }
5617
5632
  function isMuted(evaluation) {
@@ -5671,7 +5686,7 @@ function issueBox(level, issues, limit, opts) {
5671
5686
  }
5672
5687
  function counterLines(report, opts) {
5673
5688
  const counts = report.evaluation.counts;
5674
- const shown = chunkVREOANPX_cjs.KINDS.filter(
5689
+ const shown = chunkLEIBG5A4_cjs.KINDS.filter(
5675
5690
  (kind2) => ALWAYS_SHOWN.has(kind2) || counts[kind2].keys > 0 || counts[kind2].unseenThresholdEntries > 0
5676
5691
  );
5677
5692
  const percentileOff = report.config.checks?.time?.percentile?.enabled === false;
@@ -5695,7 +5710,7 @@ function counterLines(report, opts) {
5695
5710
  function mutedLines(report, paint2) {
5696
5711
  const lines = [];
5697
5712
  const indent = " ".repeat("Muted: ".length);
5698
- for (const kind2 of chunkVREOANPX_cjs.KINDS) {
5713
+ for (const kind2 of chunkLEIBG5A4_cjs.KINDS) {
5699
5714
  const aggregates = aggregatesOf2(report, kind2);
5700
5715
  for (const key2 of Object.keys(aggregates).sort(compareText7)) {
5701
5716
  const muted = aggregates[key2]?.evaluation.muted;
@@ -5709,7 +5724,7 @@ function mutedLines(report, paint2) {
5709
5724
  function keysOnDefaults(report) {
5710
5725
  if (report.mode !== "test") return [];
5711
5726
  const list2 = [];
5712
- for (const kind2 of chunkVREOANPX_cjs.KINDS) {
5727
+ for (const kind2 of chunkLEIBG5A4_cjs.KINDS) {
5713
5728
  const file = report.thresholdFiles.find((f) => f.kind === kind2);
5714
5729
  if (file?.status !== "loaded") continue;
5715
5730
  const aggregates = Object.entries(aggregatesOf2(report, kind2));
@@ -5724,7 +5739,7 @@ function keysOnDefaults(report) {
5724
5739
  }
5725
5740
  }
5726
5741
  return list2.sort(
5727
- (a, b) => b.rank - a.rank || chunkVREOANPX_cjs.KINDS.indexOf(a.kind) - chunkVREOANPX_cjs.KINDS.indexOf(b.kind) || compareText7(a.key, b.key)
5742
+ (a, b) => b.rank - a.rank || chunkLEIBG5A4_cjs.KINDS.indexOf(a.kind) - chunkLEIBG5A4_cjs.KINDS.indexOf(b.kind) || compareText7(a.key, b.key)
5728
5743
  );
5729
5744
  }
5730
5745
  function defaultKeyLines(report, opts, m, paint2) {
@@ -5848,8 +5863,8 @@ function errorCauses(report) {
5848
5863
  }
5849
5864
  function resultLines(report, opts, m) {
5850
5865
  const counts = report.evaluation.counts;
5851
- const sum3 = (field3) => chunkVREOANPX_cjs.KINDS.reduce((total, kind2) => total + counts[kind2][field3], 0);
5852
- const failed = (blocking) => chunkVREOANPX_cjs.KINDS.reduce(
5866
+ const sum3 = (field3) => chunkLEIBG5A4_cjs.KINDS.reduce((total, kind2) => total + counts[kind2][field3], 0);
5867
+ const failed = (blocking) => chunkLEIBG5A4_cjs.KINDS.reduce(
5853
5868
  (total, kind2) => total + Object.values(aggregatesOf2(report, kind2)).reduce(
5854
5869
  (n, a) => n + a.evaluation.checks.filter((c) => !c.passed && (!blocking || c.blocking)).length,
5855
5870
  0
@@ -6075,9 +6090,9 @@ function markerStyle(marker) {
6075
6090
  }
6076
6091
  function fileLines(diff, path, opts, paint2) {
6077
6092
  const lines = [`Thresholds: ${path} (${fileStatusText(diff)})`];
6078
- const listed = diff.keys.filter((k) => chunkVREOANPX_cjs.LISTED_CATEGORIES.has(k.category));
6093
+ const listed = diff.keys.filter((k) => chunkLEIBG5A4_cjs.LISTED_CATEGORIES.has(k.category));
6079
6094
  const expired = diff.keys.filter((k) => k.muted?.expired === true);
6080
- if (diff.fileStatus !== "unchanged") lines.push(` ${chunkVREOANPX_cjs.diffCountsText(diff)}`);
6095
+ if (diff.fileStatus !== "unchanged") lines.push(` ${chunkLEIBG5A4_cjs.diffCountsText(diff)}`);
6081
6096
  const tableOpts = { width: opts.width, color: opts.color, ascii: opts.ascii === true };
6082
6097
  const shown = listed.slice(0, MAX_DIFF_ROWS);
6083
6098
  if (shown.length > 0) {
@@ -6090,9 +6105,9 @@ function fileLines(diff, path, opts, paint2) {
6090
6105
  { header: "change" }
6091
6106
  ],
6092
6107
  shown.map((k) => {
6093
- const marker = chunkVREOANPX_cjs.diffMarker(k);
6108
+ const marker = chunkLEIBG5A4_cjs.diffMarker(k);
6094
6109
  return {
6095
- cells: [marker, k.key, chunkVREOANPX_cjs.diffChangeText(k, diff.level, " ") + mutedSuffix(k)],
6110
+ cells: [marker, k.key, chunkLEIBG5A4_cjs.diffChangeText(k, diff.level, " ") + mutedSuffix(k)],
6096
6111
  cellStyles: [markerStyle(marker)]
6097
6112
  };
6098
6113
  }),
@@ -6111,7 +6126,7 @@ function fileLines(diff, path, opts, paint2) {
6111
6126
  ...table(
6112
6127
  [{ header: "skipped", flex: true, minWidth: MIN_KEY_WIDTH2 }, { header: "reason" }],
6113
6128
  skippedShown.map((k) => ({
6114
- cells: [k.key, k.samples === void 0 ? "" : chunkVREOANPX_cjs.skippedReasonText(k.samples)]
6129
+ cells: [k.key, k.samples === void 0 ? "" : chunkLEIBG5A4_cjs.skippedReasonText(k.samples)]
6115
6130
  })),
6116
6131
  tableOpts
6117
6132
  )
@@ -6312,11 +6327,11 @@ function usageText(usage, failed, long = false, over) {
6312
6327
  var METHODS = /* @__PURE__ */ new Set(["GET", "POST", "PUT", "PATCH", "DELETE"]);
6313
6328
  var STEP_SEPARATOR2 = " \u203A ";
6314
6329
  function endpointSource(key2) {
6315
- return chunkVREOANPX_cjs.isRequestKey(key2) ? "request" : "browser";
6330
+ return chunkLEIBG5A4_cjs.isRequestKey(key2) ? "request" : "browser";
6316
6331
  }
6317
6332
  function splitEndpoint(key2) {
6318
- const request = chunkVREOANPX_cjs.isRequestKey(key2);
6319
- const text2 = request ? key2.slice(chunkVREOANPX_cjs.REQUEST_KEY_PREFIX.length) : key2;
6333
+ const request = chunkLEIBG5A4_cjs.isRequestKey(key2);
6334
+ const text2 = request ? key2.slice(chunkLEIBG5A4_cjs.REQUEST_KEY_PREFIX.length) : key2;
6320
6335
  const space = text2.indexOf(" ");
6321
6336
  if (space <= 0) return { method: "", origin: "", path: text2, request };
6322
6337
  const method = text2.slice(0, space);
@@ -8088,7 +8103,7 @@ function testsTab(ctx) {
8088
8103
  }
8089
8104
 
8090
8105
  // src/html/render.ts
8091
- var DOCS_URL = `${chunkVREOANPX_cjs.REPOSITORY_URL}#readme`;
8106
+ var DOCS_URL = `${chunkLEIBG5A4_cjs.REPOSITORY_URL}#readme`;
8092
8107
  function chip2(name, content) {
8093
8108
  return html`<span class="chip">${icon(name)}${content}</span>`;
8094
8109
  }
@@ -8216,7 +8231,7 @@ function keyDialog() {
8216
8231
  );
8217
8232
  }
8218
8233
  function footer(report) {
8219
- return html`<footer><div class="wrap">Generated by <a href="${chunkVREOANPX_cjs.REPOSITORY_URL}" rel="noopener noreferrer">${report.tool.name}</a> v${report.tool.version}</div></footer>`;
8234
+ return html`<footer><div class="wrap">Generated by <a href="${chunkLEIBG5A4_cjs.REPOSITORY_URL}" rel="noopener noreferrer">${report.tool.name}</a> v${report.tool.version}</div></footer>`;
8220
8235
  }
8221
8236
  var CONTENT_SECURITY_POLICY = `default-src 'none'; script-src 'sha256-${SCRIPT_SHA256}'; style-src 'sha256-${STYLES_SHA256}'; img-src data:`;
8222
8237
  function renderHtmlReport(report) {
@@ -8227,7 +8242,7 @@ function renderHtmlReport(report) {
8227
8242
  html`<meta http-equiv="Content-Security-Policy" content="${CONTENT_SECURITY_POLICY}">`,
8228
8243
  html`<meta name="viewport" content="width=device-width, initial-scale=1">`,
8229
8244
  html`<meta name="color-scheme" content="light dark">`,
8230
- html`<meta name="generator" content="${`${chunkVREOANPX_cjs.PACKAGE_NAME} ${report.tool.version}`}">`,
8245
+ html`<meta name="generator" content="${`${chunkLEIBG5A4_cjs.PACKAGE_NAME} ${report.tool.version}`}">`,
8231
8246
  html`<link rel="icon" type="image/svg+xml" href="${FAVICON_URI}"><title>${report.suite === void 0 ? "" : `${report.suite.name} \xB7 `}Performance report ${report.runId}</title>`,
8232
8247
  html`<style>${trustedHtml(STYLES)}</style></head>`
8233
8248
  );
@@ -8579,7 +8594,7 @@ function testMeta(test, result2, file) {
8579
8594
  };
8580
8595
  }
8581
8596
  function sampleAttachments(result2) {
8582
- return result2.attachments.filter((a) => a.name === chunkVREOANPX_cjs.SAMPLES_ATTACHMENT_NAME).map((a) => a.body === void 0 ? "" : a.body.toString("utf8"));
8597
+ return result2.attachments.filter((a) => a.name === chunkLEIBG5A4_cjs.SAMPLES_ATTACHMENT_NAME).map((a) => a.body === void 0 ? "" : a.body.toString("utf8"));
8583
8598
  }
8584
8599
  function hasTraceOrVideo(result2) {
8585
8600
  return result2.attachments.some((a) => a.name === "trace" || a.name === "video");
@@ -8603,7 +8618,7 @@ function runSettings(registered, env, packageVersion) {
8603
8618
  perfConfigPassed: registered.perfConfigPassed ?? true
8604
8619
  };
8605
8620
  }
8606
- const read2 = chunkVREOANPX_cjs.readModeState(env);
8621
+ const read2 = chunkLEIBG5A4_cjs.readModeState(env);
8607
8622
  if (read2.ok && read2.value === null) return null;
8608
8623
  const mode2 = read2.ok && read2.value !== null ? read2.value : { mode: "test" };
8609
8624
  const resolved = chunkW7NEFS5V_cjs.resolveConfig(void 0, {
@@ -8626,7 +8641,7 @@ function runSettings(registered, env, packageVersion) {
8626
8641
  replacedReporters: []
8627
8642
  },
8628
8643
  registered: false,
8629
- warnings: [chunkVREOANPX_cjs.notWrappedWarning()],
8644
+ warnings: [chunkLEIBG5A4_cjs.notWrappedWarning()],
8630
8645
  toolErrors: read2.ok ? [] : read2.issues
8631
8646
  };
8632
8647
  }
@@ -8706,7 +8721,7 @@ var RunSession = class {
8706
8721
  this.warnings = [...settings.warnings];
8707
8722
  this.toolErrors = [...settings.toolErrors];
8708
8723
  this.startedAt = host.now();
8709
- this.runId = settings.mode.runId ?? chunkVREOANPX_cjs.generateRunId(this.startedAt, host.random);
8724
+ this.runId = settings.mode.runId ?? chunkLEIBG5A4_cjs.generateRunId(this.startedAt, host.random);
8710
8725
  this.configDir = host.cwd;
8711
8726
  this.conditions = { workers: 1, projects: [], overriddenSettings: [] };
8712
8727
  const keys = settings.config.keys;
@@ -8746,7 +8761,7 @@ var RunSession = class {
8746
8761
  });
8747
8762
  }
8748
8763
  info(line) {
8749
- this.host.stdout.write(`${chunkVREOANPX_cjs.PACKAGE_NAME}: ${line}
8764
+ this.host.stdout.write(`${chunkLEIBG5A4_cjs.PACKAGE_NAME}: ${line}
8750
8765
  `);
8751
8766
  }
8752
8767
  /** A hook threw: the error goes to the report and the outcome file (01-REQ-16). */
@@ -8764,7 +8779,7 @@ var RunSession = class {
8764
8779
  this.configLike = config;
8765
8780
  this.startedAt = this.host.now();
8766
8781
  if (this.settings.mode.runId === void 0) {
8767
- this.runId = chunkVREOANPX_cjs.generateRunId(this.startedAt, this.host.random);
8782
+ this.runId = chunkLEIBG5A4_cjs.generateRunId(this.startedAt, this.host.random);
8768
8783
  }
8769
8784
  const io = this.host.io;
8770
8785
  this.configDir = config.configFile === void 0 ? config.rootDir : io.directoryOf(config.configFile);
@@ -8877,11 +8892,11 @@ var RunSession = class {
8877
8892
  dependencies: this.conditions.projects.filter((p) => p.role !== "measured").map((p) => p.name),
8878
8893
  tests,
8879
8894
  passes: this.passes,
8880
- maxTests: this.settings.mode.maxTests ?? chunkVREOANPX_cjs.DEFAULT_MAX_TESTS,
8895
+ maxTests: this.settings.mode.maxTests ?? chunkLEIBG5A4_cjs.DEFAULT_MAX_TESTS,
8881
8896
  estimate: this.check ? null : startEstimate({ tests, passes: this.passes, msPerTest: this.lastMsPerTest() }),
8882
8897
  report: this.check ? null : io.relativeSlashPath(this.host.cwd, io.resolvePath(this.reportDir(), file)),
8883
8898
  // run.grep already selects the measured subset (04-REQ-65, 04-D-51).
8884
- tip: cfg.run.grep === null && chunkVREOANPX_cjs.testFilters(chunkVREOANPX_cjs.testArgsFromArgv(this.host.argv)).length === 0
8899
+ tip: cfg.run.grep === null && chunkLEIBG5A4_cjs.testFilters(chunkLEIBG5A4_cjs.testArgsFromArgv(this.host.argv)).length === 0
8885
8900
  },
8886
8901
  { width, color, ascii: asciiTerminal(this.host.env) }
8887
8902
  );
@@ -8939,7 +8954,7 @@ var RunSession = class {
8939
8954
  if (bodies.length > 1) {
8940
8955
  this.warnings.push({
8941
8956
  code: "ATTACHMENT_DUPLICATE",
8942
- message: `Test "${meta.title}" has ${bodies.length} ${chunkVREOANPX_cjs.SAMPLES_ATTACHMENT_NAME} attachments; all of them were processed.`,
8957
+ message: `Test "${meta.title}" has ${bodies.length} ${chunkLEIBG5A4_cjs.SAMPLES_ATTACHMENT_NAME} attachments; all of them were processed.`,
8943
8958
  hint: "Apply withPerfFixtures() once per test object."
8944
8959
  });
8945
8960
  }
@@ -9064,7 +9079,7 @@ var RunSession = class {
9064
9079
  reportInput(status, finishedAt, aggregates, evaluation, warnings, toolErrors) {
9065
9080
  return {
9066
9081
  meta: {
9067
- tool: { name: chunkVREOANPX_cjs.PACKAGE_NAME, version: this.settings.packageVersion },
9082
+ tool: { name: chunkLEIBG5A4_cjs.PACKAGE_NAME, version: this.settings.packageVersion },
9068
9083
  runId: this.runId,
9069
9084
  mode: this.mode,
9070
9085
  startedAt: this.startedAt.toISOString(),
@@ -9121,7 +9136,7 @@ var RunSession = class {
9121
9136
  this.recordInternalError("onEnd", error);
9122
9137
  outcome = this.fallbackOutcome({ status });
9123
9138
  for (const issue2 of outcome.toolErrors) {
9124
- this.host.stderr.write(`${chunkVREOANPX_cjs.PACKAGE_NAME}: ${issue2.code}: ${issue2.message}
9139
+ this.host.stderr.write(`${chunkLEIBG5A4_cjs.PACKAGE_NAME}: ${issue2.code}: ${issue2.message}
9125
9140
  `);
9126
9141
  }
9127
9142
  }
@@ -9174,7 +9189,7 @@ var RunSession = class {
9174
9189
  await this.host.io.writeJsonStable(path, file);
9175
9190
  } catch (error) {
9176
9191
  this.host.stderr.write(
9177
- `${chunkVREOANPX_cjs.PACKAGE_NAME}: ${label}: the pass file could not be written to ${path}: ${error instanceof Error ? error.message : String(error)}
9192
+ `${chunkLEIBG5A4_cjs.PACKAGE_NAME}: ${label}: the pass file could not be written to ${path}: ${error instanceof Error ? error.message : String(error)}
9178
9193
  `
9179
9194
  );
9180
9195
  return void 0;
@@ -9201,11 +9216,11 @@ var RunSession = class {
9201
9216
  const passInput = {
9202
9217
  execPath: this.host.execPath,
9203
9218
  argv: this.host.argv,
9204
- env: this.host.env,
9219
+ env: this.scriptEnv(info.scripts),
9205
9220
  scripts: info.scripts
9206
9221
  };
9207
- const command = chunkVREOANPX_cjs.passCommand(passInput);
9208
- const shape = chunkVREOANPX_cjs.runShape(passInput);
9222
+ const command = chunkLEIBG5A4_cjs.passCommand(passInput);
9223
+ const shape = chunkLEIBG5A4_cjs.runShape(passInput);
9209
9224
  const pm = packageManager({
9210
9225
  userAgent: this.host.env["npm_config_user_agent"] ?? null,
9211
9226
  lockFiles: info.lockFiles
@@ -9216,7 +9231,7 @@ var RunSession = class {
9216
9231
  this.info(`${label}: ${shown}`);
9217
9232
  const env = {
9218
9233
  ...this.host.env,
9219
- ...chunkVREOANPX_cjs.writeModeState({ ...this.settings.mode, runId: this.runId, pass: { index, total } })
9234
+ ...chunkLEIBG5A4_cjs.writeModeState({ ...this.settings.mode, runId: this.runId, pass: { index, total } })
9220
9235
  };
9221
9236
  const exit = await this.host.runPass(command, env);
9222
9237
  if (exit.error !== void 0) {
@@ -9402,7 +9417,7 @@ var RunSession = class {
9402
9417
  width,
9403
9418
  color,
9404
9419
  prune: this.pruned,
9405
- subset: chunkVREOANPX_cjs.testFilters(chunkVREOANPX_cjs.testArgsFromArgv(this.host.argv)).length > 0,
9420
+ subset: chunkLEIBG5A4_cjs.testFilters(chunkLEIBG5A4_cjs.testArgsFromArgv(this.host.argv)).length > 0,
9406
9421
  // Absolute, like the Report line of the summary (10, chapter 9.1; 09-REQ-30).
9407
9422
  diffPath: paths.thresholdsDiff,
9408
9423
  temporary,
@@ -9452,7 +9467,7 @@ var RunSession = class {
9452
9467
  if (this.settings.mode.runId !== void 0) {
9453
9468
  try {
9454
9469
  this.host.io.removeFileSync(
9455
- this.host.io.tempPath(chunkVREOANPX_cjs.checkStateFileName(this.settings.mode.runId))
9470
+ this.host.io.tempPath(chunkLEIBG5A4_cjs.checkStateFileName(this.settings.mode.runId))
9456
9471
  );
9457
9472
  } catch {
9458
9473
  }
@@ -9625,14 +9640,29 @@ var RunSession = class {
9625
9640
  }
9626
9641
  /** The words the run added to the test command, as for the next pass (09-REQ-32, 04-REQ-63). */
9627
9642
  runArgs() {
9628
- const shape = chunkVREOANPX_cjs.runShape({
9643
+ const { scripts } = this.host.io.readPackageInfo(this.host.cwd);
9644
+ const shape = chunkLEIBG5A4_cjs.runShape({
9629
9645
  execPath: this.host.execPath,
9630
9646
  argv: this.host.argv,
9631
- env: this.host.env,
9632
- scripts: this.host.io.readPackageInfo(this.host.cwd).scripts
9647
+ env: this.scriptEnv(scripts),
9648
+ scripts
9633
9649
  });
9634
9650
  return { script: shape.script !== null, tail: shape.tail };
9635
9651
  }
9652
+ scriptEnvCache = null;
9653
+ /**
9654
+ * The environment with npm_lifecycle_event of the script that started Playwright through
9655
+ * `npx` (04-REQ-63 point 2); the process table is read at most once per run.
9656
+ */
9657
+ scriptEnv(scripts) {
9658
+ this.scriptEnvCache ??= chunkLEIBG5A4_cjs.scriptEnv({
9659
+ env: this.host.env,
9660
+ scripts,
9661
+ pid: this.host.pid,
9662
+ processTable: this.host.processTable?.bind(this.host)
9663
+ });
9664
+ return this.scriptEnvCache;
9665
+ }
9636
9666
  /**
9637
9667
  * The test directory relative to INIT_CWD, the directory the package manager was called from
9638
9668
  * (e.g. the root of a monorepo), or null when it is the same or not below it: an INIT_CWD
@@ -9647,8 +9677,8 @@ var RunSession = class {
9647
9677
  }
9648
9678
  /** Commands of the project for each mode, for the Next: hint (09-REQ-32). */
9649
9679
  commands() {
9650
- const env = this.host.env;
9651
9680
  const info = this.host.io.readPackageInfo(this.configDir);
9681
+ const env = this.scriptEnv(this.host.io.readPackageInfo(this.host.cwd).scripts);
9652
9682
  const ctx = {
9653
9683
  env: this.settings.config.run.env,
9654
9684
  lifecycleEvent: env["npm_lifecycle_event"] ?? null,
@@ -9806,7 +9836,7 @@ var RunSession = class {
9806
9836
  */
9807
9837
  prune(warnings) {
9808
9838
  if (this.settings.mode.prune !== true) return false;
9809
- const filters = chunkVREOANPX_cjs.testFilters(chunkVREOANPX_cjs.testArgsFromArgv(this.host.argv));
9839
+ const filters = chunkLEIBG5A4_cjs.testFilters(chunkLEIBG5A4_cjs.testArgsFromArgv(this.host.argv));
9810
9840
  if (filters.length > 0) {
9811
9841
  warnings.push({
9812
9842
  code: "RUN_PRUNE_SKIPPED",
@@ -9834,7 +9864,7 @@ var RunSession = class {
9834
9864
  return file;
9835
9865
  } catch (error) {
9836
9866
  this.host.stderr.write(
9837
- `${chunkVREOANPX_cjs.PACKAGE_NAME}: OUTCOME_WRITE_FAILED: the outcome file could not be written to ${file}: ${error instanceof Error ? error.message : String(error)}
9867
+ `${chunkLEIBG5A4_cjs.PACKAGE_NAME}: OUTCOME_WRITE_FAILED: the outcome file could not be written to ${file}: ${error instanceof Error ? error.message : String(error)}
9838
9868
  `
9839
9869
  );
9840
9870
  return null;
@@ -9843,7 +9873,7 @@ var RunSession = class {
9843
9873
  };
9844
9874
  function configFileNotPassedWarning(entries2) {
9845
9875
  const names2 = new Set(entries2);
9846
- const file = chunkVREOANPX_cjs.CONFIG_FILE_EXTENSIONS.map((ext) => `${chunkVREOANPX_cjs.CONFIG_FILE_BASENAME}${ext}`).find(
9876
+ const file = chunkLEIBG5A4_cjs.CONFIG_FILE_EXTENSIONS.map((ext) => `${chunkLEIBG5A4_cjs.CONFIG_FILE_BASENAME}${ext}`).find(
9847
9877
  (name) => names2.has(name)
9848
9878
  );
9849
9879
  if (file === void 0) return null;
@@ -9910,6 +9940,8 @@ function processHost() {
9910
9940
  ci: readCiInfo(env),
9911
9941
  host: readHostInfo(env),
9912
9942
  execPath: process.execPath,
9943
+ pid: process.pid,
9944
+ processTable: readProcessTable,
9913
9945
  runPass: (command, passEnv) => runPass(command, passEnv, process.cwd())
9914
9946
  };
9915
9947
  }
@@ -9924,7 +9956,7 @@ var PerfReporter = class {
9924
9956
  let startError;
9925
9957
  try {
9926
9958
  const host = processHost();
9927
- const settings = runSettings(chunkVREOANPX_cjs.getRegistered(), host.env, chunkVREOANPX_cjs.version);
9959
+ const settings = runSettings(chunkLEIBG5A4_cjs.getRegistered(), host.env, chunkLEIBG5A4_cjs.version);
9928
9960
  session = settings === null ? null : new RunSession(host, settings);
9929
9961
  } catch (error) {
9930
9962
  startError = error;