@hawkeyexl/manni 2.8.0 → 2.8.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/cli.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  readStdin,
8
8
  reportConfig,
9
9
  splitList
10
- } from "./chunk-MHB242JA.js";
10
+ } from "./chunk-IQO55BTU.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-O6RXG33V.js";
43
+ } from "./chunk-FWB6LGBB.js";
44
44
  import {
45
45
  COMMON_FORMAT_LIST,
46
46
  FAMILY_CONFIG_NAMES,
@@ -80,7 +80,7 @@ import {
80
80
  splitPageArgument,
81
81
  terminalConfirm,
82
82
  valeConfigPath
83
- } from "./chunk-MB3DIO7S.js";
83
+ } from "./chunk-RLHN765L.js";
84
84
 
85
85
  // src/cli.ts
86
86
  import { Command as Command5 } from "commander";
package/dist/docmeta.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  buildProgram
4
- } from "./chunk-MHB242JA.js";
4
+ } from "./chunk-IQO55BTU.js";
5
5
  import {
6
6
  runIfMain
7
- } from "./chunk-MB3DIO7S.js";
7
+ } from "./chunk-RLHN765L.js";
8
8
 
9
9
  // src/docmeta.ts
10
10
  runIfMain(import.meta.url, () => buildProgram().name("docmeta"));
package/dist/index.d.ts CHANGED
@@ -4022,14 +4022,21 @@ interface UpdateRewrite {
4022
4022
  * against.
4023
4023
  */
4024
4024
  commitSha?: string;
4025
+ /**
4026
+ * A refused claim the word-overlap test refused: the share of the claim's
4027
+ * words, from 0 to 1, that its line still holds. Absent on a claim the
4028
+ * sentence test refused, which is how a report tells the two apart.
4029
+ */
4030
+ wordShare?: number;
4025
4031
  }
4026
4032
  interface UpdatePage {
4027
4033
  file: string;
4028
4034
  rewritten: UpdateRewrite[];
4029
4035
  /**
4030
4036
  * Claims `--accept` refused to re-pin, because the stored first line now
4031
- * holds text that shares no sentence with the claim at its baseline. Each
4032
- * carries `reason: "replaced"`, and each is work left undone: exit 1.
4037
+ * holds text that shares no sentence with the claim at its baseline, or too
4038
+ * few of its words. Each carries `reason: "replaced"`, and each is work left
4039
+ * undone: exit 1.
4033
4040
  */
4034
4041
  refused: UpdateRewrite[];
4035
4042
  skipped: CitationFinding[];
@@ -4545,12 +4552,13 @@ interface ClaimUnit {
4545
4552
  * different repair, so `update --accept` names which it hit rather than
4546
4553
  * leaving the entry skipped with no reason.
4547
4554
  */
4548
- type NoUnit = "outside" | "blank" | "fenced" | "not-a-paragraph" | "table-short";
4555
+ type NoUnit = "outside" | "blank" | "fenced" | "marker" | "not-a-paragraph" | "table-short" | "table-rule";
4549
4556
  /**
4550
4557
  * The paragraph, fenced block or table rows at a file line. Undefined when the
4551
- * line is blank, outside the body, or inside a fenced block rather than
4552
- * opening one: those are the claims `update --accept` skips, and `noUnitAt`
4553
- * says which of them it is.
4558
+ * line holds no claim at all: it is blank, outside the body, inside a fenced
4559
+ * block rather than opening one, another entry's marker, or a table rule.
4560
+ * Those are the claims `update --accept` skips, and `noUnitAt` says which of
4561
+ * them it is.
4554
4562
  *
4555
4563
  * A paragraph runs from this line to its end, not from the paragraph's own
4556
4564
  * first line. The line asked about is the claim's first line, and re-pinning
@@ -4562,9 +4570,9 @@ type NoUnit = "outside" | "blank" | "fenced" | "not-a-paragraph" | "table-short"
4562
4570
  * the number of rows `recorded` gives it, and refuses when the table no longer
4563
4571
  * reaches that far. Callers that know the claim's current span pass it.
4564
4572
  */
4565
- declare function unitAt(page: PageCitations, line: number, lines: readonly string[], recorded?: PageLines): ClaimUnit | undefined;
4573
+ declare function unitAt(page: PageCitations, line: number, lines: readonly string[], recorded?: PageLines, named?: boolean): ClaimUnit | undefined;
4566
4574
  /** Why `unitAt` found nothing at a file line, or undefined when it found a unit. */
4567
- declare function noUnitAt(page: PageCitations, line: number, lines: readonly string[], recorded?: PageLines): NoUnit | undefined;
4575
+ declare function noUnitAt(page: PageCitations, line: number, lines: readonly string[], recorded?: PageLines, named?: boolean): NoUnit | undefined;
4568
4576
  /** The lines a marker anchors now, for `update --accept` on a marker-anchored claim. */
4569
4577
  declare function markerUnit(page: PageCitations, entry: PageCitation, lines: readonly string[]): ClaimUnit | undefined;
4570
4578
 
@@ -5289,7 +5297,11 @@ interface PrettyOptions {
5289
5297
  dryRun?: boolean;
5290
5298
  }
5291
5299
  declare function renderCheckPretty(run: CheckRun, opts: PrettyOptions): string;
5292
- /** What one claim `--accept` refused to re-pin says, and what to do about it. */
5300
+ /**
5301
+ * What one claim `--accept` refused to re-pin says, and what to do about it.
5302
+ * The line names which test refused it: the share is printed when overlap is
5303
+ * what fired, and the text is called different when no sentence was shared.
5304
+ */
5293
5305
  declare function refusalLine(rewrite: UpdateRewrite): string;
5294
5306
  /** What one rewritten end says it did. */
5295
5307
  declare function rewriteLine(rewrite: UpdateRewrite): string;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  reencryptMetadata,
6
6
  runKeyRotate,
7
7
  runKeySet
8
- } from "./chunk-O6RXG33V.js";
8
+ } from "./chunk-FWB6LGBB.js";
9
9
  import {
10
10
  BinMissing,
11
11
  COMMON_FORMATS,
@@ -127,7 +127,7 @@ import {
127
127
  valueOf,
128
128
  vendorFileName,
129
129
  writeFileAtomic
130
- } from "./chunk-MB3DIO7S.js";
130
+ } from "./chunk-RLHN765L.js";
131
131
 
132
132
  // src/key/index.ts
133
133
  var key_exports = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawkeyexl/manni",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "One command line for documentation that is meant to be checked. `manni meta` validates the presence and format of document metadata (Markdown frontmatter and more) against JSON Schema, built for CI. Formerly docmeta.",
5
5
  "type": "module",
6
6
  "bin": {