@hawkeyexl/manni 2.5.0 → 2.5.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.
@@ -61,7 +61,7 @@ import {
61
61
  supportedExtensions,
62
62
  terminalConfirm,
63
63
  toJsonText
64
- } from "./chunk-SXYSP33V.js";
64
+ } from "./chunk-22WVCFP4.js";
65
65
 
66
66
  // src/meta/cli.ts
67
67
  import { existsSync } from "node:fs";
@@ -1517,4 +1517,4 @@ export {
1517
1517
  reportConfig,
1518
1518
  buildProgram
1519
1519
  };
1520
- //# sourceMappingURL=chunk-XCZJ25OT.js.map
1520
+ //# sourceMappingURL=chunk-KZDTVSFK.js.map
@@ -71,7 +71,7 @@ import {
71
71
  withValueAt,
72
72
  writeEncryptionKey,
73
73
  writeFileAtomic
74
- } from "./chunk-SXYSP33V.js";
74
+ } from "./chunk-22WVCFP4.js";
75
75
 
76
76
  // src/meta/core/reencrypt.ts
77
77
  import { extname } from "node:path";
@@ -5315,4 +5315,4 @@ export {
5315
5315
  runKeyRotate,
5316
5316
  runKeySet
5317
5317
  };
5318
- //# sourceMappingURL=chunk-3V4EIH7H.js.map
5318
+ //# sourceMappingURL=chunk-NFCH7HCA.js.map
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  readStdin,
8
8
  reportConfig,
9
9
  splitList
10
- } from "./chunk-XCZJ25OT.js";
10
+ } from "./chunk-KZDTVSFK.js";
11
11
  import {
12
12
  CiteError,
13
13
  KeyError,
@@ -40,7 +40,7 @@ import {
40
40
  shortPin,
41
41
  shortSrc,
42
42
  spellSource
43
- } from "./chunk-3V4EIH7H.js";
43
+ } from "./chunk-NFCH7HCA.js";
44
44
  import {
45
45
  COMMON_FORMAT_LIST,
46
46
  OMITTED_WHEN_CLEAN,
@@ -78,7 +78,7 @@ import {
78
78
  splitPageArgument,
79
79
  terminalConfirm,
80
80
  valeConfigPath
81
- } from "./chunk-SXYSP33V.js";
81
+ } from "./chunk-22WVCFP4.js";
82
82
 
83
83
  // src/cli.ts
84
84
  import { Command as Command5 } from "commander";
@@ -433,7 +433,7 @@ async function runCheck2(opts, deps) {
433
433
  const results = outcome2.pages.map((page) => finishPage(page, opts.severity));
434
434
  return {
435
435
  results,
436
- summary: summarize(results, outcome2, sitemap.source, opts.crawl)
436
+ summary: summarize(results, outcome2, sitemap, opts.crawl)
437
437
  };
438
438
  } finally {
439
439
  await analyzer.close();
@@ -465,7 +465,10 @@ function summarize(results, { discovered, skipped: skipped2, duplicates }, sitem
465
465
  failed,
466
466
  violations,
467
467
  bySeverity,
468
- sitemap,
468
+ sitemap: sitemap.source,
469
+ // The count the progress line already reported as `(N pages)`, so the
470
+ // report cannot disagree with the narration that preceded it.
471
+ sitemapPages: sitemap.urls.length,
469
472
  crawl: crawl2
470
473
  };
471
474
  }
@@ -723,7 +726,11 @@ function where(run, c) {
723
726
  const { summary } = run;
724
727
  if (!summary.crawl) return "no crawl";
725
728
  if (summary.sitemap === null) return "no sitemap; followed links";
726
- return `sitemap: ${c.cyan(summary.sitemap)}`;
729
+ const found = `sitemap: ${c.cyan(summary.sitemap)}`;
730
+ const n = summary.sitemapPages;
731
+ if (n === 0) return `${found}, 0 pages; followed links`;
732
+ if (n >= summary.discovered) return found;
733
+ return `${found}, ${n} page${n === 1 ? "" : "s"}; followed links for the rest`;
727
734
  }
728
735
  function scoreText(page) {
729
736
  return page.score === null ? "n/a" : String(page.score);