@hawkeyexl/manni 2.5.2 → 2.7.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.
package/dist/docmeta.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  buildProgram
4
- } from "./chunk-UJWQH3DJ.js";
4
+ } from "./chunk-3V4FMZHD.js";
5
5
  import {
6
6
  runIfMain
7
- } from "./chunk-4ZDL67X6.js";
7
+ } from "./chunk-2672QGFM.js";
8
8
 
9
9
  // src/docmeta.ts
10
10
  runIfMain(import.meta.url, () => buildProgram().name("docmeta"));
package/dist/index.d.ts CHANGED
@@ -3530,7 +3530,7 @@ interface CitationInput {
3530
3530
  /** How a citation's claim is anchored: by its lines, by a body marker, or not at all. */
3531
3531
  type CitationAnchor = "claim" | "marker" | null;
3532
3532
  type SourceStatus = "current" | "moved" | "moved-ambiguous" | "changed" | "missing" | "never-true" | "skipped";
3533
- type ClaimStatus = "current" | "moved" | "moved-ambiguous" | "changed" | "skipped";
3533
+ type ClaimStatus = "current" | "moved" | "moved-ambiguous" | "reanchored" | "changed" | "skipped";
3534
3534
  /** Where a misplaced marker is, and where it belongs (proposal 0054). */
3535
3535
  interface MisplacedMarkerReport {
3536
3536
  /** The paragraph the marker's run splits, in file lines. */
@@ -3555,7 +3555,7 @@ type MissingReason = "untracked" | "no-key" | "undecryptable" | "unreadable";
3555
3555
  * Every rule a finding can carry, stated once. The union and the default
3556
3556
  * severity table are derived from this array so the three cannot disagree.
3557
3557
  */
3558
- declare const CITE_RULES: readonly ["source-moved", "source-moved-ambiguous", "source-changed", "source-never-true", "source-missing", "claim-moved", "claim-moved-ambiguous", "claim-changed", "marker-orphan", "marker-invalid", "marker-repeated", "marker-misplaced", "anchor-invalid", "entry-invalid", "quote-drift"];
3558
+ declare const CITE_RULES: readonly ["source-moved", "source-moved-ambiguous", "source-changed", "source-never-true", "source-missing", "claim-moved", "claim-moved-ambiguous", "claim-reanchored", "claim-changed", "marker-orphan", "marker-invalid", "marker-repeated", "marker-misplaced", "anchor-invalid", "entry-invalid", "quote-drift"];
3559
3559
  type CiteRule = (typeof CITE_RULES)[number];
3560
3560
  /**
3561
3561
  * A rule's level: the family scale (`src/shared/severity.ts`) plus `off`,
@@ -3579,6 +3579,22 @@ interface ClaimEnd {
3579
3579
  candidateFileLines?: string[];
3580
3580
  /** For `changed`: the page lines at the claim now, for `--show-diff`. Pretty-only. */
3581
3581
  text?: string[];
3582
+ /**
3583
+ * For `changed` and `reanchored`: the baseline, the newest commit whose
3584
+ * page held the pin. Derived from the page's history, never stored (0053).
3585
+ */
3586
+ commitSha?: string;
3587
+ /** For `changed`: `false` when the walk hit a shallow boundary or its cap. */
3588
+ historyAvailable?: boolean;
3589
+ /** Subjects of the commits that touched the page since the baseline. Pretty-only. */
3590
+ commitsSince?: string[];
3591
+ /** Unified diff of the claim's lines since the baseline. Pretty-only, `--show-diff`. */
3592
+ diff?: string;
3593
+ /**
3594
+ * The claim's lines as they were at the baseline. Never serialized: it is
3595
+ * what `update --accept` reads to tell an edit from a replacement.
3596
+ */
3597
+ baselineText?: string[];
3582
3598
  }
3583
3599
  /** The source end of a classified citation. */
3584
3600
  interface SourceEnd {
@@ -3659,6 +3675,23 @@ type ShownFile = {
3659
3675
  } | {
3660
3676
  missing: "commit" | "path";
3661
3677
  };
3678
+ /** One commit that touched a path. */
3679
+ interface PageCommit {
3680
+ /** The full hash. */
3681
+ sha: string;
3682
+ subject: string;
3683
+ }
3684
+ /**
3685
+ * What `pageCommits` answers: the commits that touched a path, newest first.
3686
+ * `shallow` is a repository whose oldest commit may have an unfetched parent,
3687
+ * and `truncated` a list the cap cut short. Either means a walk that exhausts
3688
+ * the list cannot say the pin never held.
3689
+ */
3690
+ interface PageHistory {
3691
+ commits: PageCommit[];
3692
+ shallow: boolean;
3693
+ truncated: boolean;
3694
+ }
3662
3695
  /**
3663
3696
  * A thin git client over `execFile("git", …)`, memoized per call shape so a
3664
3697
  * page with a thousand citations against one path runs one `git show`.
@@ -3671,6 +3704,12 @@ interface GitClient {
3671
3704
  showFile(commit: string, path: string): Promise<ShownFile>;
3672
3705
  subjectsSince(commit: string, path: string): Promise<string[]>;
3673
3706
  diffSince(commit: string, path: string): Promise<string>;
3707
+ /**
3708
+ * The commits that touched `path`, newest first, at most `cap` of them. A
3709
+ * client without it reads no claim history, so a claim that no longer holds
3710
+ * is `changed` with no baseline.
3711
+ */
3712
+ pageCommits?(path: string, cap: number): Promise<PageHistory>;
3674
3713
  }
3675
3714
  /**
3676
3715
  * The files a source may resolve to. Built from `git ls-files` when git is
@@ -3699,6 +3738,16 @@ interface CheckPageOptions {
3699
3738
  * is inside a work tree. A caller that wants no git at all passes `noGit()`.
3700
3739
  */
3701
3740
  gitClient?: GitClient;
3741
+ /**
3742
+ * Directory the page's own path resolves from, and so the repository its
3743
+ * history is read in. Defaults to `root`, the same directory unless
3744
+ * `--root` sent the sources to another checkout.
3745
+ */
3746
+ pageRoot?: string;
3747
+ /** The client the page's history is read through. Defaults to one over `pageRoot`. */
3748
+ pageGitClient?: GitClient;
3749
+ /** How many commits the claim history walk reads. Defaults to `MAX_PAGE_COMMITS`. */
3750
+ pageCommitCap?: number;
3702
3751
  sourceIndex?: SourceIndex;
3703
3752
  /**
3704
3753
  * The page's citations as merged from a manifest, each with where it sits.
@@ -3816,6 +3865,11 @@ interface CheckOptions {
3816
3865
  * test hands in a fake.
3817
3866
  */
3818
3867
  gitClient?: GitClient;
3868
+ /**
3869
+ * The client every page's own history is read through, over the directory
3870
+ * the page paths resolve from. Defaults to one there; a test hands in a fake.
3871
+ */
3872
+ pageGitClient?: GitClient;
3819
3873
  /** Defaults to `process.env`; read for `MANNI_ENCRYPTION_KEY`. A test hands in its own. */
3820
3874
  env?: NodeJS.ProcessEnv;
3821
3875
  }
@@ -3926,9 +3980,17 @@ interface UpdateRewrite {
3926
3980
  /** File line of the entry. */
3927
3981
  line?: number;
3928
3982
  end: "claim" | "source" | "marker";
3929
- reason: "moved" | "accepted" | "re-anchored" | "shifted";
3930
- /** The status that was repaired. */
3931
- status: "moved" | "changed" | "never-true" | "misplaced" | "current";
3983
+ /**
3984
+ * `re-anchored` covers both re-pins: the pin held over another span (0054),
3985
+ * and the words held while the anchor moved (0053). `status` is what tells
3986
+ * those apart. `replaced` is a claim `--accept` refused to re-pin.
3987
+ */
3988
+ reason: "moved" | "accepted" | "re-anchored" | "shifted" | "replaced";
3989
+ /**
3990
+ * The status that was repaired. `replaced` is a claim whose line held
3991
+ * wholly other text, accepted because `--only` named it.
3992
+ */
3993
+ status: "moved" | "changed" | "reanchored" | "replaced" | "never-true" | "misplaced" | "current";
3932
3994
  /**
3933
3995
  * Before and after. A moved or shifted claim, and a moved marker: file
3934
3996
  * lines. A moved source: its `src`. An accepted or re-anchored end: its pin.
@@ -3946,7 +4008,7 @@ interface UpdateRewrite {
3946
4008
  lines?: string;
3947
4009
  /** A re-anchored claim: the span now pinned, in file lines. */
3948
4010
  newLines?: string;
3949
- /** An accepted claim: its first file line. */
4011
+ /** An accepted, re-anchored or refused claim: the file line of its first body line. */
3950
4012
  at?: number;
3951
4013
  /** An accepted claim a marker anchors: the marker's file line. Pretty-only. */
3952
4014
  markerLine?: number;
@@ -3954,12 +4016,22 @@ interface UpdateRewrite {
3954
4016
  text?: string;
3955
4017
  /** An accepted source: its `src`. */
3956
4018
  src?: string;
3957
- /** An accepted source: the commit recorded in the entry, when it records one. */
4019
+ /**
4020
+ * An accepted source: the commit recorded in the entry, when it records
4021
+ * one. A re-anchored or refused claim: the baseline its words were read
4022
+ * against.
4023
+ */
3958
4024
  commitSha?: string;
3959
4025
  }
3960
4026
  interface UpdatePage {
3961
4027
  file: string;
3962
4028
  rewritten: UpdateRewrite[];
4029
+ /**
4030
+ * 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.
4033
+ */
4034
+ refused: UpdateRewrite[];
3963
4035
  skipped: CitationFinding[];
3964
4036
  diff: string;
3965
4037
  written: boolean;
@@ -4112,6 +4184,9 @@ declare class CiteError extends ToolError {
4112
4184
  * `source-moved` is a warning because `cite update` fixes it mechanically,
4113
4185
  * and a PR job that failed on it would make the ratchet noisy. `claim-moved`
4114
4186
  * is a notice: the text is found verbatim, so nothing drifted.
4187
+ * `claim-reanchored` is a notice for the same reason (proposal 0053): the
4188
+ * words the pin covered are found unchanged since the baseline, so only the
4189
+ * layout moved, and plain `cite update` re-pins it.
4115
4190
  * `claim-changed` is a warning, since it fires on any edit to a pinned
4116
4191
  * paragraph, a typo fix beside the cited sentence included. A repository that
4117
4192
  * wants either hard sets `severity: { claim-changed: error }`.
@@ -4473,7 +4548,13 @@ declare function gitClient(root: string): GitClient;
4473
4548
  * citation carries a commit, or `--show-diff` asked for diffs, so history
4474
4549
  * would have been read. Said through `onNotice`; never a finding.
4475
4550
  */
4476
- declare const GIT_UNAVAILABLE_HISTORY = "git is not available here, so citations are checked without history: no never-true, no diffs, no commit subjects.";
4551
+ declare const GIT_UNAVAILABLE_HISTORY = "git is not available here, so citations are checked without history: no never-true, no reanchored claims, no diffs, no commit subjects.";
4552
+ /**
4553
+ * What a run says, once, when a claim's walk ran out of commits before the
4554
+ * pin held: a shallow checkout, or the 256-commit cap. Without the rest of
4555
+ * the history a layout change and an edit read the same.
4556
+ */
4557
+ declare const PAGE_HISTORY_UNAVAILABLE = "the page history ends before the pin held; use fetch-depth: 0 to tell reanchored claims from changed ones";
4477
4558
  /** What `add` and `update --accept` say, once, when a commit would have been recorded and git is not there. */
4478
4559
  declare const GIT_UNAVAILABLE_COMMIT = "git is not available here, so the citation records no commit.";
4479
4560
  /**
@@ -4482,6 +4563,127 @@ declare const GIT_UNAVAILABLE_COMMIT = "git is not available here, so the citati
4482
4563
  */
4483
4564
  declare function noGit(): GitClient;
4484
4565
 
4566
+ /**
4567
+ * The claim end read against the page's own history. Proposal 0053 is the
4568
+ * record, and the source end's `historyOf` is the shape it follows.
4569
+ *
4570
+ * A claim that no longer holds says nothing on its own: the pin is a hash, and
4571
+ * 0044 chose never to copy the text. So the baseline is derived. It is the
4572
+ * newest commit whose page still held the pinned text, found by walking the
4573
+ * commits that touched the page, newest first. Nothing is stored, so a squash,
4574
+ * a rebase or an uncommitted page cannot make it wrong.
4575
+ *
4576
+ * With a baseline there are three strings, each normalized the same way.
4577
+ * `W0` is the text the pin covered then, `W1` the text the anchor covers now,
4578
+ * and `P0` the whole page body then. The claim is **reanchored** when `W0`
4579
+ * sits inside `W1` and `W1` sits inside `P0`: every word the pin covered is
4580
+ * still there, and every word the claim covers now was on the page already.
4581
+ * Anything else is **changed**, which is what the first condition catches for
4582
+ * an edit inside the claim and the second for a sentence added beside it.
4583
+ */
4584
+
4585
+ /**
4586
+ * How many commits that touched the page one walk reads. A page with a long
4587
+ * history stops here, and the run says the history ended before the pin held.
4588
+ */
4589
+ declare const MAX_PAGE_COMMITS = 256;
4590
+ /** A page's marker-only lines dropped: the lines whose words a claim is made of. */
4591
+ declare function stripMarkers(lines: readonly string[], format: string): string[];
4592
+ /**
4593
+ * The words a span of lines holds: marker-only lines dropped, then every run
4594
+ * of whitespace collapsed to one space and both ends trimmed. Punctuation,
4595
+ * emphasis and inline markup are words here, as 0044 stress test 18 has it.
4596
+ */
4597
+ declare function claimWords(lines: readonly string[], format: string): string;
4598
+ /**
4599
+ * A text split into sentences, each with its whitespace collapsed and its
4600
+ * case dropped. What `update --accept` intersects, so a line that now holds
4601
+ * wholly other text is refused rather than blessed.
4602
+ */
4603
+ declare function sentencesOf(text: string): string[];
4604
+ /** Whether two texts share at least one sentence. */
4605
+ declare function sharesSentence(a: string, b: string): boolean;
4606
+ /** `true` when `inner`'s words sit inside `outer`'s, in order, at word boundaries. */
4607
+ declare function holdsWords(outer: string, inner: string): boolean;
4608
+ /**
4609
+ * Every run of whole body lines whose words hold `inner`, minimal under
4610
+ * containment. The page's words are laid out once with the line each
4611
+ * character came from, so a run is read off each occurrence rather than
4612
+ * searched for line by line.
4613
+ */
4614
+ declare function runsHolding(lines: readonly string[], format: string, bodyLine: number, inner: string): PageLines[];
4615
+ /** What the walk needs to read one entry's history. */
4616
+ interface ClaimHistoryInput {
4617
+ /** The page as it is now: its format, its body line, and the marker. */
4618
+ page: PageCitations;
4619
+ entry: PageCitation;
4620
+ /** The claim end `claimEnd` classified as `changed`. */
4621
+ claim: ClaimEnd;
4622
+ /** The page's path, as the client below resolves it. */
4623
+ path: string;
4624
+ git: GitClient;
4625
+ /** The manifest that owns the entry, at the path the config declares now. */
4626
+ manifest?: string;
4627
+ /** Commits to read. Defaults to `MAX_PAGE_COMMITS`. */
4628
+ cap?: number;
4629
+ }
4630
+ /**
4631
+ * What the page's history says about a claim that no longer holds.
4632
+ * `unavailable` is a walk that ran out of commits, so no verdict is safe.
4633
+ * `none` is a walk that reached the entry's birth, or a client with no
4634
+ * history to read.
4635
+ */
4636
+ type ClaimHistory = {
4637
+ kind: "unavailable";
4638
+ } | {
4639
+ kind: "none";
4640
+ } | {
4641
+ kind: "baseline";
4642
+ /** The newest commit whose page held the pin, as the full hash. */
4643
+ commit: string;
4644
+ /** Subjects of the commits that touched the page after it, newest first. */
4645
+ commitsSince: string[];
4646
+ /** `W0`: the words the pin covered at the baseline. */
4647
+ words: string;
4648
+ /** `P0`: the words the whole page body held at the baseline. */
4649
+ pageWords: string;
4650
+ /** The pinned lines as they were, for the diff. */
4651
+ lines: string[];
4652
+ /** The file lines they sat at, for the diff's label. */
4653
+ at: string;
4654
+ };
4655
+ /**
4656
+ * The newest commit whose page held the pin, and what it held. Walks the
4657
+ * commits that touched the page, newest first, stopping at the entry's birth
4658
+ * and at the cap.
4659
+ */
4660
+ declare function claimHistory(input: ClaimHistoryInput): Promise<ClaimHistory>;
4661
+ /** A unified diff of the claim's lines, from the baseline to now, with file-line labels. */
4662
+ declare function claimDiff(input: {
4663
+ file: string;
4664
+ commit: string;
4665
+ was: {
4666
+ at: string;
4667
+ lines: readonly string[];
4668
+ };
4669
+ now: {
4670
+ at: string;
4671
+ lines: readonly string[];
4672
+ };
4673
+ }): string;
4674
+ /** What `refineClaim` needs beyond the history it was given. */
4675
+ interface RefineClaimInput extends Omit<ClaimHistoryInput, "git" | "cap"> {
4676
+ /** The page now, under the hashing rule. */
4677
+ lines: readonly string[];
4678
+ history: ClaimHistory;
4679
+ }
4680
+ /**
4681
+ * The claim end the words test leaves: `reanchored` where only the layout
4682
+ * moved, `moved-ambiguous` where the claim's words now sit in several runs,
4683
+ * and `changed` with its baseline otherwise.
4684
+ */
4685
+ declare function refineClaim(input: RefineClaimInput): ClaimEnd;
4686
+
4485
4687
  /**
4486
4688
  * Source-side classification of one citation.
4487
4689
  *
@@ -5060,6 +5262,8 @@ interface PrettyOptions {
5060
5262
  dryRun?: boolean;
5061
5263
  }
5062
5264
  declare function renderCheckPretty(run: CheckRun, opts: PrettyOptions): string;
5265
+ /** What one claim `--accept` refused to re-pin says, and what to do about it. */
5266
+ declare function refusalLine(rewrite: UpdateRewrite): string;
5063
5267
  /** What one rewritten end says it did. */
5064
5268
  declare function rewriteLine(rewrite: UpdateRewrite): string;
5065
5269
  declare function renderUpdatePretty(run: UpdateRun, opts: PrettyOptions): string;
@@ -5116,6 +5320,8 @@ type index$1_CiteRun = CiteRun;
5116
5320
  type index$1_CiteRunOptions = CiteRunOptions;
5117
5321
  type index$1_CiteSeverity = CiteSeverity;
5118
5322
  type index$1_ClaimEnd = ClaimEnd;
5323
+ type index$1_ClaimHistory = ClaimHistory;
5324
+ type index$1_ClaimHistoryInput = ClaimHistoryInput;
5119
5325
  type index$1_ClaimStatus = ClaimStatus;
5120
5326
  type index$1_ClaimUnit = ClaimUnit;
5121
5327
  type index$1_ClassifyOptions = ClassifyOptions;
@@ -5135,6 +5341,7 @@ type index$1_LoadSidecarOptions = LoadSidecarOptions;
5135
5341
  type index$1_LoadedCiteConfig = LoadedCiteConfig;
5136
5342
  declare const index$1_MARKER_JSON: typeof MARKER_JSON;
5137
5343
  declare const index$1_MAX_MARKERS_PER_PAGE: typeof MAX_MARKERS_PER_PAGE;
5344
+ declare const index$1_MAX_PAGE_COMMITS: typeof MAX_PAGE_COMMITS;
5138
5345
  declare const index$1_MAX_RANGE_LINES: typeof MAX_RANGE_LINES;
5139
5346
  declare const index$1_MOVE_BUDGET_BYTES: typeof MOVE_BUDGET_BYTES;
5140
5347
  declare const index$1_MOVE_WINDOW_LINES: typeof MOVE_WINDOW_LINES;
@@ -5148,9 +5355,12 @@ type index$1_MisplacedMarker = MisplacedMarker;
5148
5355
  type index$1_MisplacedMarkerReport = MisplacedMarkerReport;
5149
5356
  type index$1_MissingReason = MissingReason;
5150
5357
  type index$1_OriginKind = OriginKind;
5358
+ declare const index$1_PAGE_HISTORY_UNAVAILABLE: typeof PAGE_HISTORY_UNAVAILABLE;
5151
5359
  type index$1_PageCitation = PageCitation;
5152
5360
  type index$1_PageCitationReport = PageCitationReport;
5153
5361
  type index$1_PageCitations = PageCitations;
5362
+ type index$1_PageCommit = PageCommit;
5363
+ type index$1_PageHistory = PageHistory;
5154
5364
  type index$1_PageLines = PageLines;
5155
5365
  type index$1_PageSidecar = PageSidecar;
5156
5366
  type index$1_PrettyOptions = PrettyOptions;
@@ -5161,6 +5371,7 @@ type index$1_ReencryptCitationsResult = ReencryptCitationsResult;
5161
5371
  type index$1_ReencryptEntriesResult = ReencryptEntriesResult;
5162
5372
  type index$1_ReencryptOptions = ReencryptOptions;
5163
5373
  type index$1_ReencryptedCitation = ReencryptedCitation;
5374
+ type index$1_RefineClaimInput = RefineClaimInput;
5164
5375
  type index$1_Removal = Removal;
5165
5376
  type index$1_RemoveOptions = RemoveOptions;
5166
5377
  type index$1_RemovePage = RemovePage;
@@ -5185,9 +5396,12 @@ declare const index$1_bodyLineOf: typeof bodyLineOf;
5185
5396
  declare const index$1_buildSourceIndex: typeof buildSourceIndex;
5186
5397
  declare const index$1_checkCitations: typeof checkCitations;
5187
5398
  declare const index$1_citationInputs: typeof citationInputs;
5399
+ declare const index$1_claimDiff: typeof claimDiff;
5188
5400
  declare const index$1_claimEnd: typeof claimEnd;
5401
+ declare const index$1_claimHistory: typeof claimHistory;
5189
5402
  declare const index$1_claimLine: typeof claimLine;
5190
5403
  declare const index$1_claimMessageFor: typeof claimMessageFor;
5404
+ declare const index$1_claimWords: typeof claimWords;
5191
5405
  declare const index$1_classifyCitation: typeof classifyCitation;
5192
5406
  declare const index$1_detectEol: typeof detectEol;
5193
5407
  declare const index$1_duplicateJoinRefusal: typeof duplicateJoinRefusal;
@@ -5205,6 +5419,7 @@ declare const index$1_gitClient: typeof gitClient;
5205
5419
  declare const index$1_hashLines: typeof hashLines;
5206
5420
  declare const index$1_hashRange: typeof hashRange;
5207
5421
  declare const index$1_historyOf: typeof historyOf;
5422
+ declare const index$1_holdsWords: typeof holdsWords;
5208
5423
  declare const index$1_insertStatementBefore: typeof insertStatementBefore;
5209
5424
  declare const index$1_insideFence: typeof insideFence;
5210
5425
  declare const index$1_isBoundLine: typeof isBoundLine;
@@ -5245,6 +5460,8 @@ declare const index$1_readPage: typeof readPage;
5245
5460
  declare const index$1_readSource: typeof readSource;
5246
5461
  declare const index$1_reencryptCitationEntries: typeof reencryptCitationEntries;
5247
5462
  declare const index$1_reencryptCitations: typeof reencryptCitations;
5463
+ declare const index$1_refineClaim: typeof refineClaim;
5464
+ declare const index$1_refusalLine: typeof refusalLine;
5248
5465
  declare const index$1_removalLine: typeof removalLine;
5249
5466
  declare const index$1_removeFrontmatterCitations: typeof removeFrontmatterCitations;
5250
5467
  declare const index$1_removeLine: typeof removeLine;
@@ -5263,6 +5480,9 @@ declare const index$1_runAdd: typeof runAdd;
5263
5480
  declare const index$1_runCheck: typeof runCheck;
5264
5481
  declare const index$1_runRemove: typeof runRemove;
5265
5482
  declare const index$1_runUpdate: typeof runUpdate;
5483
+ declare const index$1_runsHolding: typeof runsHolding;
5484
+ declare const index$1_sentencesOf: typeof sentencesOf;
5485
+ declare const index$1_sharesSentence: typeof sharesSentence;
5266
5486
  declare const index$1_shiftedEntries: typeof shiftedEntries;
5267
5487
  declare const index$1_shortCommit: typeof shortCommit;
5268
5488
  declare const index$1_shortLine: typeof shortLine;
@@ -5279,6 +5499,7 @@ declare const index$1_spliceEntryField: typeof spliceEntryField;
5279
5499
  declare const index$1_splitLines: typeof splitLines;
5280
5500
  declare const index$1_splitUnit: typeof splitUnit;
5281
5501
  declare const index$1_statementForms: typeof statementForms;
5502
+ declare const index$1_stripMarkers: typeof stripMarkers;
5282
5503
  declare const index$1_toBodyLines: typeof toBodyLines;
5283
5504
  declare const index$1_toFileLines: typeof toFileLines;
5284
5505
  declare const index$1_toValidationResult: typeof toValidationResult;
@@ -5290,7 +5511,7 @@ declare const index$1_urlManifestRefusal: typeof urlManifestRefusal;
5290
5511
  declare const index$1_validateEntry: typeof validateEntry;
5291
5512
  declare const index$1_withClaimLines: typeof withClaimLines;
5292
5513
  declare namespace index$1 {
5293
- export { type index$1_AddOptions as AddOptions, type index$1_AddResult as AddResult, type index$1_BuildIndexOptions as BuildIndexOptions, index$1_CITATIONS_KEY as CITATIONS_KEY, index$1_CITE_RULES as CITE_RULES, index$1_CITE_SECTION as CITE_SECTION, type index$1_CheckOptions as CheckOptions, type index$1_CheckPageOptions as CheckPageOptions, type index$1_CheckRun as CheckRun, type index$1_Citation as Citation, type index$1_CitationAnchor as CitationAnchor, type index$1_CitationClaim as CitationClaim, type index$1_CitationFinding as CitationFinding, type index$1_CitationInput as CitationInput, type index$1_CitationManifest as CitationManifest, type index$1_CitationOrigin as CitationOrigin, type index$1_CitationResult as CitationResult, type index$1_CitationSidecars as CitationSidecars, type index$1_CitationSource as CitationSource, type index$1_CiteConfig as CiteConfig, index$1_CiteError as CiteError, type index$1_CiteRule as CiteRule, type index$1_CiteRun as CiteRun, type index$1_CiteRunOptions as CiteRunOptions, type index$1_CiteSeverity as CiteSeverity, type index$1_ClaimEnd as ClaimEnd, type index$1_ClaimStatus as ClaimStatus, type index$1_ClaimUnit as ClaimUnit, type index$1_ClassifyOptions as ClassifyOptions, index$1_DEFAULT_CITE_BASELINE_PATH as DEFAULT_CITE_BASELINE_PATH, index$1_DEFAULT_SEVERITY as DEFAULT_SEVERITY, type index$1_EntryPath as EntryPath, index$1_FILE_PATTERN as FILE_PATTERN, type index$1_FindWindowsOptions as FindWindowsOptions, index$1_GIT_UNAVAILABLE_COMMIT as GIT_UNAVAILABLE_COMMIT, index$1_GIT_UNAVAILABLE_HISTORY as GIT_UNAVAILABLE_HISTORY, type index$1_GitClient as GitClient, type index$1_HeldManifest as HeldManifest, type index$1_History as History, type index$1_InlineStatement as InlineStatement, type index$1_LineSpec as LineSpec, type index$1_LoadSidecarOptions as LoadSidecarOptions, type index$1_LoadedCiteConfig as LoadedCiteConfig, index$1_MARKER_JSON as MARKER_JSON, index$1_MAX_MARKERS_PER_PAGE as MAX_MARKERS_PER_PAGE, index$1_MAX_RANGE_LINES as MAX_RANGE_LINES, index$1_MOVE_BUDGET_BYTES as MOVE_BUDGET_BYTES, index$1_MOVE_WINDOW_LINES as MOVE_WINDOW_LINES, type index$1_ManifestChange as ManifestChange, index$1_ManifestSet as ManifestSet, type index$1_ManifestWrite as ManifestWrite, type index$1_MarkerEnd as MarkerEnd, type index$1_MintOptions as MintOptions, type index$1_MisplacedMarker as MisplacedMarker, type index$1_MisplacedMarkerReport as MisplacedMarkerReport, type index$1_MissingReason as MissingReason, type index$1_OriginKind as OriginKind, type index$1_PageCitation as PageCitation, type index$1_PageCitationReport as PageCitationReport, type index$1_PageCitations as PageCitations, type index$1_PageLines as PageLines, type index$1_PageSidecar as PageSidecar, type index$1_PrettyOptions as PrettyOptions, index$1_RULE_ID_PREFIX as RULE_ID_PREFIX, type index$1_ReadPageOptions as ReadPageOptions, type index$1_ReadSourceResult as ReadSourceResult, type index$1_ReencryptCitationsResult as ReencryptCitationsResult, type index$1_ReencryptEntriesResult as ReencryptEntriesResult, type index$1_ReencryptOptions as ReencryptOptions, type index$1_ReencryptedCitation as ReencryptedCitation, type index$1_Removal as Removal, type index$1_RemoveOptions as RemoveOptions, type index$1_RemovePage as RemovePage, type index$1_RemoveRun as RemoveRun, index$1_SRC_PATTERN as SRC_PATTERN, type index$1_ShiftOptions as ShiftOptions, type index$1_Shifted as Shifted, type index$1_ShownFile as ShownFile, type index$1_SourceEnd as SourceEnd, type index$1_SourceIndex as SourceIndex, type index$1_SourceRange as SourceRange, type index$1_SourceStatus as SourceStatus, type index$1_StatementForm as StatementForm, type index$1_UpdateOptions as UpdateOptions, type index$1_UpdatePage as UpdatePage, type index$1_UpdateRewrite as UpdateRewrite, type index$1_UpdateRun as UpdateRun, index$1_anchoredLines as anchoredLines, index$1_appendFrontmatterCitation as appendFrontmatterCitation, index$1_blockMatches as blockMatches, index$1_bodyLineOf as bodyLineOf, index$1_buildSourceIndex as buildSourceIndex, index$1_checkCitations as checkCitations, index$1_citationInputs as citationInputs, index$1_claimEnd as claimEnd, index$1_claimLine as claimLine, index$1_claimMessageFor as claimMessageFor, index$1_classifyCitation as classifyCitation, index$1_detectEol as detectEol, index$1_duplicateJoinRefusal as duplicateJoinRefusal, index$1_entryObject as entryObject, index$1_errorSite as errorSite, index$1_fenceSpanAt as fenceSpanAt, index$1_fencedBlockAfter as fencedBlockAfter, index$1_fencedBlockAt as fencedBlockAt, index$1_fencedBlocks as fencedBlocks, index$1_findWindows as findWindows, index$1_findingsFor as findingsFor, index$1_formatSrc as formatSrc, index$1_formatStatement as formatStatement, index$1_gitClient as gitClient, index$1_hashLines as hashLines, index$1_hashRange as hashRange, index$1_historyOf as historyOf, index$1_insertStatementBefore as insertStatementBefore, index$1_insideFence as insideFence, index$1_isBoundLine as isBoundLine, index$1_isCiteRule as isCiteRule, index$1_isKeyedPin as isKeyedPin, index$1_isUnitText as isUnitText, index$1_itemLine as itemLine, index$1_lineAt as lineAt, index$1_lineSpec as lineSpec, index$1_loadCitationSidecars as loadCitationSidecars, index$1_loadCiteConfig as loadCiteConfig, index$1_markerClaimEnd as markerClaimEnd, index$1_markerRunAt as markerRunAt, index$1_markerUnit as markerUnit, index$1_messageFor as messageFor, index$1_mintCitation as mintCitation, index$1_misplacedMarkerAt as misplacedMarkerAt, index$1_misplacedMarkers as misplacedMarkers, index$1_misplacedMessageFor as misplacedMessageFor, index$1_movedUnit as movedUnit, index$1_noGit as noGit, index$1_normalizeText as normalizeText, index$1_normalizeWhitespace as normalizeWhitespace, index$1_offsetOfLine as offsetOfLine, index$1_orphanRefusal as orphanRefusal, index$1_ownedMessage as ownedMessage, index$1_paragraphAfter as paragraphAfter, index$1_parseCiteConfig as parseCiteConfig, index$1_parseLines as parseLines, index$1_parseSrc as parseSrc, index$1_parseStatements as parseStatements, index$1_pickExtractor as pickExtractor, index$1_pinOfLines as pinOfLines, index$1_pre43Span as pre43Span, index$1_rangeLines as rangeLines, index$1_readCiteConfigFile as readCiteConfigFile, index$1_readPage as readPage, index$1_readSource as readSource, index$1_reencryptCitationEntries as reencryptCitationEntries, index$1_reencryptCitations as reencryptCitations, index$1_removalLine as removalLine, index$1_removeFrontmatterCitations as removeFrontmatterCitations, index$1_removeLine as removeLine, index$1_renderCheckGithub as renderCheckGithub, index$1_renderCheckJson as renderCheckJson, index$1_renderCheckPretty as renderCheckPretty, index$1_renderRemoveJson as renderRemoveJson, index$1_renderRemovePretty as renderRemovePretty, index$1_renderUpdateJson as renderUpdateJson, index$1_renderUpdatePretty as renderUpdatePretty, index$1_resolveCiteRun as resolveCiteRun, index$1_resolveSeverity as resolveSeverity, index$1_rewriteLine as rewriteLine, index$1_ruleId as ruleId, index$1_runAdd as runAdd, index$1_runCheck as runCheck, index$1_runRemove as runRemove, index$1_runUpdate as runUpdate, index$1_shiftedEntries as shiftedEntries, index$1_shortCommit as shortCommit, index$1_shortLine as shortLine, index$1_shortPin as shortPin, index$1_shortSrc as shortSrc, index$1_sidecarsFor as sidecarsFor, index$1_sliceLines as sliceLines, index$1_sourceRange as sourceRange, index$1_spellAt as spellAt, index$1_spellLines as spellLines, index$1_spellSource as spellSource, index$1_splice as splice, index$1_spliceEntryField as spliceEntryField, index$1_splitLines as splitLines, index$1_splitUnit as splitUnit, index$1_statementForms as statementForms, index$1_toBodyLines as toBodyLines, index$1_toFileLines as toFileLines, index$1_toValidationResult as toValidationResult, index$1_twoManifestsRefusal as twoManifestsRefusal, index$1_unifiedDiff as unifiedDiff, index$1_unitAt as unitAt, index$1_unitText as unitText, index$1_urlManifestRefusal as urlManifestRefusal, index$1_validateEntry as validateEntry, index$1_withClaimLines as withClaimLines };
5514
+ export { type index$1_AddOptions as AddOptions, type index$1_AddResult as AddResult, type index$1_BuildIndexOptions as BuildIndexOptions, index$1_CITATIONS_KEY as CITATIONS_KEY, index$1_CITE_RULES as CITE_RULES, index$1_CITE_SECTION as CITE_SECTION, type index$1_CheckOptions as CheckOptions, type index$1_CheckPageOptions as CheckPageOptions, type index$1_CheckRun as CheckRun, type index$1_Citation as Citation, type index$1_CitationAnchor as CitationAnchor, type index$1_CitationClaim as CitationClaim, type index$1_CitationFinding as CitationFinding, type index$1_CitationInput as CitationInput, type index$1_CitationManifest as CitationManifest, type index$1_CitationOrigin as CitationOrigin, type index$1_CitationResult as CitationResult, type index$1_CitationSidecars as CitationSidecars, type index$1_CitationSource as CitationSource, type index$1_CiteConfig as CiteConfig, index$1_CiteError as CiteError, type index$1_CiteRule as CiteRule, type index$1_CiteRun as CiteRun, type index$1_CiteRunOptions as CiteRunOptions, type index$1_CiteSeverity as CiteSeverity, type index$1_ClaimEnd as ClaimEnd, type index$1_ClaimHistory as ClaimHistory, type index$1_ClaimHistoryInput as ClaimHistoryInput, type index$1_ClaimStatus as ClaimStatus, type index$1_ClaimUnit as ClaimUnit, type index$1_ClassifyOptions as ClassifyOptions, index$1_DEFAULT_CITE_BASELINE_PATH as DEFAULT_CITE_BASELINE_PATH, index$1_DEFAULT_SEVERITY as DEFAULT_SEVERITY, type index$1_EntryPath as EntryPath, index$1_FILE_PATTERN as FILE_PATTERN, type index$1_FindWindowsOptions as FindWindowsOptions, index$1_GIT_UNAVAILABLE_COMMIT as GIT_UNAVAILABLE_COMMIT, index$1_GIT_UNAVAILABLE_HISTORY as GIT_UNAVAILABLE_HISTORY, type index$1_GitClient as GitClient, type index$1_HeldManifest as HeldManifest, type index$1_History as History, type index$1_InlineStatement as InlineStatement, type index$1_LineSpec as LineSpec, type index$1_LoadSidecarOptions as LoadSidecarOptions, type index$1_LoadedCiteConfig as LoadedCiteConfig, index$1_MARKER_JSON as MARKER_JSON, index$1_MAX_MARKERS_PER_PAGE as MAX_MARKERS_PER_PAGE, index$1_MAX_PAGE_COMMITS as MAX_PAGE_COMMITS, index$1_MAX_RANGE_LINES as MAX_RANGE_LINES, index$1_MOVE_BUDGET_BYTES as MOVE_BUDGET_BYTES, index$1_MOVE_WINDOW_LINES as MOVE_WINDOW_LINES, type index$1_ManifestChange as ManifestChange, index$1_ManifestSet as ManifestSet, type index$1_ManifestWrite as ManifestWrite, type index$1_MarkerEnd as MarkerEnd, type index$1_MintOptions as MintOptions, type index$1_MisplacedMarker as MisplacedMarker, type index$1_MisplacedMarkerReport as MisplacedMarkerReport, type index$1_MissingReason as MissingReason, type index$1_OriginKind as OriginKind, index$1_PAGE_HISTORY_UNAVAILABLE as PAGE_HISTORY_UNAVAILABLE, type index$1_PageCitation as PageCitation, type index$1_PageCitationReport as PageCitationReport, type index$1_PageCitations as PageCitations, type index$1_PageCommit as PageCommit, type index$1_PageHistory as PageHistory, type index$1_PageLines as PageLines, type index$1_PageSidecar as PageSidecar, type index$1_PrettyOptions as PrettyOptions, index$1_RULE_ID_PREFIX as RULE_ID_PREFIX, type index$1_ReadPageOptions as ReadPageOptions, type index$1_ReadSourceResult as ReadSourceResult, type index$1_ReencryptCitationsResult as ReencryptCitationsResult, type index$1_ReencryptEntriesResult as ReencryptEntriesResult, type index$1_ReencryptOptions as ReencryptOptions, type index$1_ReencryptedCitation as ReencryptedCitation, type index$1_RefineClaimInput as RefineClaimInput, type index$1_Removal as Removal, type index$1_RemoveOptions as RemoveOptions, type index$1_RemovePage as RemovePage, type index$1_RemoveRun as RemoveRun, index$1_SRC_PATTERN as SRC_PATTERN, type index$1_ShiftOptions as ShiftOptions, type index$1_Shifted as Shifted, type index$1_ShownFile as ShownFile, type index$1_SourceEnd as SourceEnd, type index$1_SourceIndex as SourceIndex, type index$1_SourceRange as SourceRange, type index$1_SourceStatus as SourceStatus, type index$1_StatementForm as StatementForm, type index$1_UpdateOptions as UpdateOptions, type index$1_UpdatePage as UpdatePage, type index$1_UpdateRewrite as UpdateRewrite, type index$1_UpdateRun as UpdateRun, index$1_anchoredLines as anchoredLines, index$1_appendFrontmatterCitation as appendFrontmatterCitation, index$1_blockMatches as blockMatches, index$1_bodyLineOf as bodyLineOf, index$1_buildSourceIndex as buildSourceIndex, index$1_checkCitations as checkCitations, index$1_citationInputs as citationInputs, index$1_claimDiff as claimDiff, index$1_claimEnd as claimEnd, index$1_claimHistory as claimHistory, index$1_claimLine as claimLine, index$1_claimMessageFor as claimMessageFor, index$1_claimWords as claimWords, index$1_classifyCitation as classifyCitation, index$1_detectEol as detectEol, index$1_duplicateJoinRefusal as duplicateJoinRefusal, index$1_entryObject as entryObject, index$1_errorSite as errorSite, index$1_fenceSpanAt as fenceSpanAt, index$1_fencedBlockAfter as fencedBlockAfter, index$1_fencedBlockAt as fencedBlockAt, index$1_fencedBlocks as fencedBlocks, index$1_findWindows as findWindows, index$1_findingsFor as findingsFor, index$1_formatSrc as formatSrc, index$1_formatStatement as formatStatement, index$1_gitClient as gitClient, index$1_hashLines as hashLines, index$1_hashRange as hashRange, index$1_historyOf as historyOf, index$1_holdsWords as holdsWords, index$1_insertStatementBefore as insertStatementBefore, index$1_insideFence as insideFence, index$1_isBoundLine as isBoundLine, index$1_isCiteRule as isCiteRule, index$1_isKeyedPin as isKeyedPin, index$1_isUnitText as isUnitText, index$1_itemLine as itemLine, index$1_lineAt as lineAt, index$1_lineSpec as lineSpec, index$1_loadCitationSidecars as loadCitationSidecars, index$1_loadCiteConfig as loadCiteConfig, index$1_markerClaimEnd as markerClaimEnd, index$1_markerRunAt as markerRunAt, index$1_markerUnit as markerUnit, index$1_messageFor as messageFor, index$1_mintCitation as mintCitation, index$1_misplacedMarkerAt as misplacedMarkerAt, index$1_misplacedMarkers as misplacedMarkers, index$1_misplacedMessageFor as misplacedMessageFor, index$1_movedUnit as movedUnit, index$1_noGit as noGit, index$1_normalizeText as normalizeText, index$1_normalizeWhitespace as normalizeWhitespace, index$1_offsetOfLine as offsetOfLine, index$1_orphanRefusal as orphanRefusal, index$1_ownedMessage as ownedMessage, index$1_paragraphAfter as paragraphAfter, index$1_parseCiteConfig as parseCiteConfig, index$1_parseLines as parseLines, index$1_parseSrc as parseSrc, index$1_parseStatements as parseStatements, index$1_pickExtractor as pickExtractor, index$1_pinOfLines as pinOfLines, index$1_pre43Span as pre43Span, index$1_rangeLines as rangeLines, index$1_readCiteConfigFile as readCiteConfigFile, index$1_readPage as readPage, index$1_readSource as readSource, index$1_reencryptCitationEntries as reencryptCitationEntries, index$1_reencryptCitations as reencryptCitations, index$1_refineClaim as refineClaim, index$1_refusalLine as refusalLine, index$1_removalLine as removalLine, index$1_removeFrontmatterCitations as removeFrontmatterCitations, index$1_removeLine as removeLine, index$1_renderCheckGithub as renderCheckGithub, index$1_renderCheckJson as renderCheckJson, index$1_renderCheckPretty as renderCheckPretty, index$1_renderRemoveJson as renderRemoveJson, index$1_renderRemovePretty as renderRemovePretty, index$1_renderUpdateJson as renderUpdateJson, index$1_renderUpdatePretty as renderUpdatePretty, index$1_resolveCiteRun as resolveCiteRun, index$1_resolveSeverity as resolveSeverity, index$1_rewriteLine as rewriteLine, index$1_ruleId as ruleId, index$1_runAdd as runAdd, index$1_runCheck as runCheck, index$1_runRemove as runRemove, index$1_runUpdate as runUpdate, index$1_runsHolding as runsHolding, index$1_sentencesOf as sentencesOf, index$1_sharesSentence as sharesSentence, index$1_shiftedEntries as shiftedEntries, index$1_shortCommit as shortCommit, index$1_shortLine as shortLine, index$1_shortPin as shortPin, index$1_shortSrc as shortSrc, index$1_sidecarsFor as sidecarsFor, index$1_sliceLines as sliceLines, index$1_sourceRange as sourceRange, index$1_spellAt as spellAt, index$1_spellLines as spellLines, index$1_spellSource as spellSource, index$1_splice as splice, index$1_spliceEntryField as spliceEntryField, index$1_splitLines as splitLines, index$1_splitUnit as splitUnit, index$1_statementForms as statementForms, index$1_stripMarkers as stripMarkers, index$1_toBodyLines as toBodyLines, index$1_toFileLines as toFileLines, index$1_toValidationResult as toValidationResult, index$1_twoManifestsRefusal as twoManifestsRefusal, index$1_unifiedDiff as unifiedDiff, index$1_unitAt as unitAt, index$1_unitText as unitText, index$1_urlManifestRefusal as urlManifestRefusal, index$1_validateEntry as validateEntry, index$1_withClaimLines as withClaimLines };
5294
5515
  }
5295
5516
 
5296
5517
  /**
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  reencryptMetadata,
6
6
  runKeyRotate,
7
7
  runKeySet
8
- } from "./chunk-V22X36RJ.js";
8
+ } from "./chunk-ELRE54LH.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-4ZDL67X6.js";
130
+ } from "./chunk-2672QGFM.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.5.2",
3
+ "version": "2.7.0",
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": {