@hawkeyexl/manni 2.8.3 → 2.8.5

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-KGI7B6DD.js";
64
+ } from "./chunk-4UI4MDAG.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-KYTHN2VT.js.map
1520
+ //# sourceMappingURL=chunk-JI52FTKZ.js.map
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  readStdin,
8
8
  reportConfig,
9
9
  splitList
10
- } from "./chunk-KYTHN2VT.js";
10
+ } from "./chunk-JI52FTKZ.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-DGC4CCK3.js";
43
+ } from "./chunk-GRPDC5BY.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-KGI7B6DD.js";
83
+ } from "./chunk-4UI4MDAG.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-KYTHN2VT.js";
4
+ } from "./chunk-JI52FTKZ.js";
5
5
  import {
6
6
  runIfMain
7
- } from "./chunk-KGI7B6DD.js";
7
+ } from "./chunk-4UI4MDAG.js";
8
8
 
9
9
  // src/docmeta.ts
10
10
  runIfMain(import.meta.url, () => buildProgram().name("docmeta"));
package/dist/index.d.ts CHANGED
@@ -3425,7 +3425,17 @@ declare function applyFrontmatter(content: string, patch: MetadataPatch, options
3425
3425
  * target is locked — on Windows that is a real and recoverable situation, and
3426
3426
  * refusing to write at all would be worse than a non-atomic write.
3427
3427
  */
3428
- declare function writeFileAtomic(path: string,
3428
+ declare function writeFileAtomic(
3429
+ /**
3430
+ * Absolute, or relative to the process's current directory. The manifest
3431
+ * cache is keyed on absolute paths, and the invalidation in the `finally`
3432
+ * below resolves `path` against that same implicit directory — so a caller
3433
+ * that resolved its own path against some other base would invalidate a key
3434
+ * no cache holds, and the stale parse would survive the write. That miss is
3435
+ * silent, which is why the requirement is stated here rather than left to be
3436
+ * discovered.
3437
+ */
3438
+ path: string,
3429
3439
  /**
3430
3440
  * A `Uint8Array` writes byte-for-byte. `schemas vendor` needs that: the
3431
3441
  * integrity pin it records is taken over exactly what the server sent, and a
@@ -4541,10 +4551,20 @@ declare function claimLine(claim: ClaimEnd): number | undefined;
4541
4551
  * bare pin, or a marker with no drift check on its sentence.
4542
4552
  */
4543
4553
  declare function claimEnd(page: PageCitations, entry: PageCitation, lines: readonly string[], misplaced?: MisplacedMarker): ClaimEnd | null;
4544
- /** What `update --accept` re-pins over: the paragraph or fenced block at a line. */
4554
+ /**
4555
+ * What `update --accept` re-pins over: the paragraph, whole fenced block, or
4556
+ * lines inside a fenced block at a line.
4557
+ *
4558
+ * The three kinds are not interchangeable. `"block"` covers a fence, its
4559
+ * content and its closing fence, which is the only shape a `quote: true`
4560
+ * entry may hold. `"fenced-lines"` covers content lines inside a block and
4561
+ * neither fence, which is what a claim minted over part of a code sample
4562
+ * holds. `"paragraph"` covers prose, and table rows too, since `ClaimUnit`
4563
+ * draws no line between them.
4564
+ */
4545
4565
  interface ClaimUnit {
4546
4566
  lines: PageLines;
4547
- kind: "paragraph" | "block";
4567
+ kind: "paragraph" | "block" | "fenced-lines";
4548
4568
  text: string[];
4549
4569
  }
4550
4570
  /**
@@ -4552,13 +4572,13 @@ interface ClaimUnit {
4552
4572
  * different repair, so `update --accept` names which it hit rather than
4553
4573
  * leaving the entry skipped with no reason.
4554
4574
  */
4555
- type NoUnit = "outside" | "blank" | "fenced" | "marker" | "not-a-paragraph" | "table-short" | "table-rule";
4575
+ type NoUnit = "outside" | "blank" | "fence-crossed" | "marker" | "not-a-paragraph" | "table-short" | "table-rule";
4556
4576
  /**
4557
- * The paragraph, fenced block or table rows at a file line. Undefined when the
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.
4577
+ * The paragraph, fenced block, fenced lines or table rows at a file line.
4578
+ * Undefined when the line holds no claim at all: it is blank, outside the
4579
+ * body, another entry's marker, a table rule, or a line whose claim runs out
4580
+ * of the fenced block it starts in. Those are the claims `update --accept`
4581
+ * skips, and `noUnitAt` says which of them it is.
4562
4582
  *
4563
4583
  * A paragraph runs from this line to its end, not from the paragraph's own
4564
4584
  * first line. The line asked about is the claim's first line, and re-pinning
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  reencryptMetadata,
6
6
  runKeyRotate,
7
7
  runKeySet
8
- } from "./chunk-DGC4CCK3.js";
8
+ } from "./chunk-GRPDC5BY.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-KGI7B6DD.js";
130
+ } from "./chunk-4UI4MDAG.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.3",
3
+ "version": "2.8.5",
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": {