@hawkeyexl/manni 2.3.10 → 2.5.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/README.md +1 -1
- package/dist/{chunk-LORLZO3J.js → chunk-3V4EIH7H.js} +1690 -759
- package/dist/chunk-3V4EIH7H.js.map +1 -0
- package/dist/{chunk-TNT3ZROC.js → chunk-SXYSP33V.js} +3 -2
- package/dist/chunk-SXYSP33V.js.map +1 -0
- package/dist/{chunk-WXBLVCOZ.js → chunk-XCZJ25OT.js} +2 -2
- package/dist/cli.js +87 -3
- package/dist/cli.js.map +1 -1
- package/dist/docmeta.js +2 -2
- package/dist/index.d.ts +320 -12
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-LORLZO3J.js.map +0 -1
- package/dist/chunk-TNT3ZROC.js.map +0 -1
- /package/dist/{chunk-WXBLVCOZ.js.map → chunk-XCZJ25OT.js.map} +0 -0
package/dist/docmeta.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
buildProgram
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XCZJ25OT.js";
|
|
5
5
|
import {
|
|
6
6
|
runIfMain
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SXYSP33V.js";
|
|
8
8
|
|
|
9
9
|
// src/docmeta.ts
|
|
10
10
|
runIfMain(import.meta.url, () => buildProgram().name("docmeta"));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Buffer } from 'node:buffer';
|
|
2
2
|
import { InferenceProvider } from '@hawkeyexl/inference';
|
|
3
3
|
import { DatabaseSync } from 'node:sqlite';
|
|
4
|
+
import pc from 'picocolors';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* The error every tool under the umbrella throws for an operational failure.
|
|
@@ -3530,6 +3531,20 @@ interface CitationInput {
|
|
|
3530
3531
|
type CitationAnchor = "claim" | "marker" | null;
|
|
3531
3532
|
type SourceStatus = "current" | "moved" | "moved-ambiguous" | "changed" | "missing" | "never-true" | "skipped";
|
|
3532
3533
|
type ClaimStatus = "current" | "moved" | "moved-ambiguous" | "changed" | "skipped";
|
|
3534
|
+
/** Where a misplaced marker is, and where it belongs (proposal 0054). */
|
|
3535
|
+
interface MisplacedMarkerReport {
|
|
3536
|
+
/** The paragraph the marker's run splits, in file lines. */
|
|
3537
|
+
unit: string;
|
|
3538
|
+
/** The file line the marker takes once its run has moved. */
|
|
3539
|
+
to: number;
|
|
3540
|
+
}
|
|
3541
|
+
/** The marker that anchors a citation: its line, and its misplacement when it has one. */
|
|
3542
|
+
interface MarkerEnd {
|
|
3543
|
+
/** File line of the marker. */
|
|
3544
|
+
line: number;
|
|
3545
|
+
/** Present only when the marker line sits inside a paragraph. */
|
|
3546
|
+
misplaced?: MisplacedMarkerReport;
|
|
3547
|
+
}
|
|
3533
3548
|
/**
|
|
3534
3549
|
* Why a source could not be read: not a tracked file under the root, an
|
|
3535
3550
|
* encrypted source with no key to decrypt it, one that does not decrypt under
|
|
@@ -3540,7 +3555,7 @@ type MissingReason = "untracked" | "no-key" | "undecryptable" | "unreadable";
|
|
|
3540
3555
|
* Every rule a finding can carry, stated once. The union and the default
|
|
3541
3556
|
* severity table are derived from this array so the three cannot disagree.
|
|
3542
3557
|
*/
|
|
3543
|
-
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", "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-changed", "marker-orphan", "marker-invalid", "marker-repeated", "marker-misplaced", "anchor-invalid", "entry-invalid", "quote-drift"];
|
|
3544
3559
|
type CiteRule = (typeof CITE_RULES)[number];
|
|
3545
3560
|
/**
|
|
3546
3561
|
* A rule's level: the family scale (`src/shared/severity.ts`) plus `off`,
|
|
@@ -3606,6 +3621,8 @@ interface CitationResult {
|
|
|
3606
3621
|
* first line of the text a marker anchors. Where its findings sit.
|
|
3607
3622
|
*/
|
|
3608
3623
|
anchorLine?: number;
|
|
3624
|
+
/** The marker that names the entry, when one does, and its misplacement. */
|
|
3625
|
+
marker?: MarkerEnd;
|
|
3609
3626
|
/** `null` for an entry with no `claim`: a bare pin, or a marker with no drift check. */
|
|
3610
3627
|
claim: ClaimEnd | null;
|
|
3611
3628
|
source: SourceEnd;
|
|
@@ -3895,23 +3912,40 @@ interface UpdateOptions extends Omit<CheckOptions, "baseline" | "writeBaseline">
|
|
|
3895
3912
|
only?: string[];
|
|
3896
3913
|
dryRun?: boolean;
|
|
3897
3914
|
}
|
|
3898
|
-
/**
|
|
3915
|
+
/**
|
|
3916
|
+
* One end `update` rewrote.
|
|
3917
|
+
*
|
|
3918
|
+
* Read the typed pairs: `fromLines`/`toLines` for lines, `fromPin`/`toPin`
|
|
3919
|
+
* for pins. `from` and `to` carry the same values, but which of the two a row
|
|
3920
|
+
* holds depends on the row, so they are easy to misuse.
|
|
3921
|
+
*/
|
|
3899
3922
|
interface UpdateRewrite {
|
|
3900
3923
|
id?: string;
|
|
3901
3924
|
/** Index in the page's `citations`. */
|
|
3902
3925
|
index: number;
|
|
3903
3926
|
/** File line of the entry. */
|
|
3904
3927
|
line?: number;
|
|
3905
|
-
end: "claim" | "source";
|
|
3906
|
-
reason: "moved" | "accepted";
|
|
3928
|
+
end: "claim" | "source" | "marker";
|
|
3929
|
+
reason: "moved" | "accepted" | "re-anchored" | "shifted";
|
|
3907
3930
|
/** The status that was repaired. */
|
|
3908
|
-
status: "moved" | "changed" | "never-true";
|
|
3931
|
+
status: "moved" | "changed" | "never-true" | "misplaced" | "current";
|
|
3909
3932
|
/**
|
|
3910
|
-
* Before and after. A moved
|
|
3911
|
-
* `src`. An accepted end: its pin.
|
|
3933
|
+
* Before and after. A moved or shifted claim, and a moved marker: file
|
|
3934
|
+
* lines. A moved source: its `src`. An accepted or re-anchored end: its pin.
|
|
3935
|
+
* The typed pairs below say which, so prefer them.
|
|
3912
3936
|
*/
|
|
3913
3937
|
from: string;
|
|
3914
3938
|
to: string;
|
|
3939
|
+
/** A moved marker, or a moved or shifted claim: its file lines, before and after. */
|
|
3940
|
+
fromLines?: string;
|
|
3941
|
+
toLines?: string;
|
|
3942
|
+
/** An accepted or re-anchored end: its pin, before and after. */
|
|
3943
|
+
fromPin?: string;
|
|
3944
|
+
toPin?: string;
|
|
3945
|
+
/** A re-anchored claim: the span that held, in file lines. */
|
|
3946
|
+
lines?: string;
|
|
3947
|
+
/** A re-anchored claim: the span now pinned, in file lines. */
|
|
3948
|
+
newLines?: string;
|
|
3915
3949
|
/** An accepted claim: its first file line. */
|
|
3916
3950
|
at?: number;
|
|
3917
3951
|
/** An accepted claim a marker anchors: the marker's file line. Pretty-only. */
|
|
@@ -3947,6 +3981,44 @@ interface UpdateRun {
|
|
|
3947
3981
|
manifests?: ManifestChange[];
|
|
3948
3982
|
exitCode: 0 | 1;
|
|
3949
3983
|
}
|
|
3984
|
+
interface RemoveOptions extends Omit<CheckOptions, "baseline" | "writeBaseline" | "checkSources" | "showDiff"> {
|
|
3985
|
+
/**
|
|
3986
|
+
* `--only <id>`, repeatable: the entries to remove, each named by its id or
|
|
3987
|
+
* by its pointer (`/citations/N`). Required, and an empty list is a
|
|
3988
|
+
* refusal: `remove` never takes every citation off a page.
|
|
3989
|
+
*/
|
|
3990
|
+
only: string[];
|
|
3991
|
+
dryRun?: boolean;
|
|
3992
|
+
}
|
|
3993
|
+
/** One entry `remove` took out, and the markers that went with it. */
|
|
3994
|
+
interface Removal {
|
|
3995
|
+
id?: string;
|
|
3996
|
+
/** Index in the page's `citations`. Absent for a marker that named no entry. */
|
|
3997
|
+
index?: number;
|
|
3998
|
+
/** Where the entry was kept. Absent for a marker that named no entry. */
|
|
3999
|
+
origin?: {
|
|
4000
|
+
kind: OriginKind;
|
|
4001
|
+
file: string;
|
|
4002
|
+
line?: number;
|
|
4003
|
+
};
|
|
4004
|
+
/** File lines of the markers removed with it, in the page as it was. */
|
|
4005
|
+
markerLines: number[];
|
|
4006
|
+
}
|
|
4007
|
+
interface RemovePage {
|
|
4008
|
+
file: string;
|
|
4009
|
+
removed: Removal[];
|
|
4010
|
+
diff: string;
|
|
4011
|
+
written: boolean;
|
|
4012
|
+
/** The rewritten page, for the stdin input only: it has no file to be written to. */
|
|
4013
|
+
content?: string;
|
|
4014
|
+
}
|
|
4015
|
+
interface RemoveRun {
|
|
4016
|
+
pages: RemovePage[];
|
|
4017
|
+
/** Entries removed, counting a marker that named no entry as one. */
|
|
4018
|
+
removed: number;
|
|
4019
|
+
/** The manifests this run rewrote, each written once however many pages it holds. */
|
|
4020
|
+
manifests?: ManifestChange[];
|
|
4021
|
+
}
|
|
3950
4022
|
/** One citation `reencryptCitations` rewrote: where it sits, and its source before and after. */
|
|
3951
4023
|
interface ReencryptedCitation {
|
|
3952
4024
|
id?: string;
|
|
@@ -4043,6 +4115,9 @@ declare class CiteError extends ToolError {
|
|
|
4043
4115
|
* `claim-changed` is a warning, since it fires on any edit to a pinned
|
|
4044
4116
|
* paragraph, a typo fix beside the cited sentence included. A repository that
|
|
4045
4117
|
* wants either hard sets `severity: { claim-changed: error }`.
|
|
4118
|
+
* `marker-misplaced` is a warning too: it annotates the pull request, and one
|
|
4119
|
+
* `cite update` clears it, so a job that failed on it would block on a page
|
|
4120
|
+
* that was fine yesterday (proposal 0054, stress test 15).
|
|
4046
4121
|
*/
|
|
4047
4122
|
|
|
4048
4123
|
declare const DEFAULT_SEVERITY: Readonly<Record<CiteRule, CiteSeverity>>;
|
|
@@ -4091,6 +4166,7 @@ declare function hashRange(text: string, range?: LineRange, key?: string): strin
|
|
|
4091
4166
|
* ciphertext is longer still, so both are abbreviated for a person, and every
|
|
4092
4167
|
* report and every `add` line abbreviates them the same way.
|
|
4093
4168
|
*/
|
|
4169
|
+
|
|
4094
4170
|
/** `sha256-78af1d33…`, `hmac-sha256-5e0c1a2b…`: the prefix and eight hex digits. */
|
|
4095
4171
|
declare function shortPin(integrity: string): string;
|
|
4096
4172
|
/** The seven characters a person reads a commit by. */
|
|
@@ -4106,6 +4182,12 @@ declare function shortSrc(src: string): string;
|
|
|
4106
4182
|
* neither an indented source line nor a long one decides how it reads.
|
|
4107
4183
|
*/
|
|
4108
4184
|
declare function shortLine(text: string): string;
|
|
4185
|
+
/**
|
|
4186
|
+
* `line 9`, or `lines 9-12`: where on a page a span sits. Every refusal,
|
|
4187
|
+
* report and message that names one reads it this way, so `add`, `update`
|
|
4188
|
+
* and the reporters spell it once.
|
|
4189
|
+
*/
|
|
4190
|
+
declare function spellAt(lines: PageLines): string;
|
|
4109
4191
|
|
|
4110
4192
|
interface BuildIndexOptions {
|
|
4111
4193
|
/** `git ls-files` when this client reports git available; a walk when it does not, or with no client. */
|
|
@@ -4127,6 +4209,87 @@ type ReadSourceResult = {
|
|
|
4127
4209
|
*/
|
|
4128
4210
|
declare function readSource(root: string, index: SourceIndex, range: SourceRange, key?: string): Promise<ReadSourceResult>;
|
|
4129
4211
|
|
|
4212
|
+
/**
|
|
4213
|
+
* Misplaced markers, and what to do about them. Proposal 0054 is the record.
|
|
4214
|
+
*
|
|
4215
|
+
* A **marker run** is one or more consecutive lines that each hold one marker
|
|
4216
|
+
* and nothing else. A run is **misplaced** when the line directly above it and
|
|
4217
|
+
* the line directly below it are both unit text: deleting the run would join
|
|
4218
|
+
* them into one paragraph. Such a marker splits the paragraph for the renderer
|
|
4219
|
+
* and for the tool, and the lines above it are anchored by nothing.
|
|
4220
|
+
*
|
|
4221
|
+
* A misplaced marker belongs where `add --marker` writes one: above the first
|
|
4222
|
+
* line of the unit, or, for a `quote: true` entry, above the block it anchors.
|
|
4223
|
+
* A run moves in its own order, so two markers that were stacked stay stacked.
|
|
4224
|
+
*
|
|
4225
|
+
* The claim of a marker-anchored entry is read against three spans, in order:
|
|
4226
|
+
* the unit the marker belongs to, the span it anchors now, and the span it was
|
|
4227
|
+
* pinned over before PR #43 (marker lines included, down to the next blank
|
|
4228
|
+
* line or fence). The second or third holding means the pinned text is on the
|
|
4229
|
+
* page and the marker anchors a different span: `claim-moved`.
|
|
4230
|
+
*/
|
|
4231
|
+
|
|
4232
|
+
/** Whether a line is text a paragraph is made of. */
|
|
4233
|
+
declare function isUnitText(line: string | undefined, format: string): boolean;
|
|
4234
|
+
/** The run of marker-only lines that holds `line`. */
|
|
4235
|
+
declare function markerRunAt(lines: readonly string[], line: number, format: string, bodyLine: number): PageLines;
|
|
4236
|
+
/**
|
|
4237
|
+
* The paragraph a run splits, in file lines, marker lines included.
|
|
4238
|
+
* `undefined` when the run sits where `add` writes markers: after a blank
|
|
4239
|
+
* line, a fence, a bound line, or the body's first line.
|
|
4240
|
+
*/
|
|
4241
|
+
declare function splitUnit(lines: readonly string[], run: PageLines, format: string, bodyLine: number): PageLines | undefined;
|
|
4242
|
+
/**
|
|
4243
|
+
* The span a marker was pinned over before PR #43: from the line below it
|
|
4244
|
+
* through the next blank line or fence, marker lines included. `undefined`
|
|
4245
|
+
* when the line below is blank or a fence, so the old reading covered nothing.
|
|
4246
|
+
*/
|
|
4247
|
+
declare function pre43Span(lines: readonly string[], markerLine: number): PageLines | undefined;
|
|
4248
|
+
/** One marker line that splits a paragraph. */
|
|
4249
|
+
interface MisplacedMarker {
|
|
4250
|
+
/** File line of the marker. */
|
|
4251
|
+
line: number;
|
|
4252
|
+
/** The whole run of marker-only lines it belongs to. */
|
|
4253
|
+
run: PageLines;
|
|
4254
|
+
/** Its position in that run, counted from zero, so stacked markers keep their order. */
|
|
4255
|
+
order: number;
|
|
4256
|
+
/** The paragraph the run splits, in file lines as the page reads now. */
|
|
4257
|
+
unit: PageLines;
|
|
4258
|
+
/** The file line the marker belongs above. */
|
|
4259
|
+
place: number;
|
|
4260
|
+
/** Whether `place` is a fenced block the entry quotes rather than the unit's first line. */
|
|
4261
|
+
block: boolean;
|
|
4262
|
+
/** The file line the marker takes once the whole run has moved. */
|
|
4263
|
+
to: number;
|
|
4264
|
+
/** The entry the marker names, when one is anchored by it. */
|
|
4265
|
+
entry?: PageCitation;
|
|
4266
|
+
}
|
|
4267
|
+
/** Whether a misplaced marker at `line` splits a paragraph, and where it belongs. */
|
|
4268
|
+
declare function misplacedMarkerAt(page: PageCitations, lines: readonly string[], line: number, entry?: PageCitation): MisplacedMarker | undefined;
|
|
4269
|
+
/**
|
|
4270
|
+
* Every misplaced marker on a page, in the order the page reads. An orphan,
|
|
4271
|
+
* repeated or invalid marker is reported like any other: it splits the
|
|
4272
|
+
* paragraph whether or not it names an entry.
|
|
4273
|
+
*/
|
|
4274
|
+
declare function misplacedMarkers(page: PageCitations, lines: readonly string[]): MisplacedMarker[];
|
|
4275
|
+
/**
|
|
4276
|
+
* The span the pin covers once a misplaced run has moved: the joined unit,
|
|
4277
|
+
* pushed down by the markers now above it. A quote marker's pin covers its
|
|
4278
|
+
* block, which no move touches, so this is never asked of one.
|
|
4279
|
+
*/
|
|
4280
|
+
declare function movedUnit(misplaced: MisplacedMarker): PageLines;
|
|
4281
|
+
/** The unit's text, the run's marker lines left out: what the pin covers after the move. */
|
|
4282
|
+
declare function unitText(lines: readonly string[], misplaced: MisplacedMarker): string[];
|
|
4283
|
+
/**
|
|
4284
|
+
* The claim end of a marker-anchored entry, read against proposal 0054's
|
|
4285
|
+
* three spans. `misplaced` is the marker's misplacement, when it has one.
|
|
4286
|
+
*
|
|
4287
|
+
* For a misplaced marker at `moved`, `fileLines` is the span that held and
|
|
4288
|
+
* `newLines` the span the pin will cover once the marker moves. Both are file
|
|
4289
|
+
* lines: a marker-anchored claim has no body lines of its own.
|
|
4290
|
+
*/
|
|
4291
|
+
declare function markerClaimEnd(page: PageCitations, entry: PageCitation, lines: readonly string[], misplaced: MisplacedMarker | undefined): ClaimEnd;
|
|
4292
|
+
|
|
4130
4293
|
/**
|
|
4131
4294
|
* Markers: `cite <id>` inside the format's comment syntax.
|
|
4132
4295
|
*
|
|
@@ -4159,6 +4322,23 @@ interface StatementForm {
|
|
|
4159
4322
|
}
|
|
4160
4323
|
/** The forms per extractor name. Unknown formats have none. */
|
|
4161
4324
|
declare function statementForms(format: string): readonly StatementForm[];
|
|
4325
|
+
/**
|
|
4326
|
+
* Whether a line is a **bound line**: one the format makes a block on its own,
|
|
4327
|
+
* so no paragraph continues across it, and no pin covers it beside text.
|
|
4328
|
+
*
|
|
4329
|
+
* | Format | Bound lines |
|
|
4330
|
+
* |---|---|
|
|
4331
|
+
* | markdown, mdx | An ATX heading, and a line that is nothing but one tag. |
|
|
4332
|
+
* | html, xml | A line that is nothing but one tag. |
|
|
4333
|
+
* | asciidoc | A section title. |
|
|
4334
|
+
* | every format | An adornment: one of `-=~^"'*+#_:<>` repeated three or more times. |
|
|
4335
|
+
*
|
|
4336
|
+
* Proposal 0054 is the record, and its stress tests 8 and 9 say why a heading
|
|
4337
|
+
* and a tag line are read this way rather than joined to the text below them.
|
|
4338
|
+
* A tag line is bound in every format that reads one, so a marker under
|
|
4339
|
+
* `<body>` anchors the element below it and never the whole document.
|
|
4340
|
+
*/
|
|
4341
|
+
declare function isBoundLine(line: string, format: string): boolean;
|
|
4162
4342
|
/** Scan a body for statements. `from` maps body offsets/lines to file offsets/lines. */
|
|
4163
4343
|
declare function parseStatements(body: string, format: string, from?: {
|
|
4164
4344
|
offset: number;
|
|
@@ -4170,7 +4350,9 @@ declare function detectEol(text: string): "\n" | "\r\n";
|
|
|
4170
4350
|
* The paragraph starting at or after `offset` (skipping blank lines), as
|
|
4171
4351
|
* `{ start, end, line }` file offsets and the file line it starts on. A fence
|
|
4172
4352
|
* opener ends the search with no paragraph. Given a `format`, a marker-only
|
|
4173
|
-
* line is skipped like a blank one before the paragraph, and ends it after
|
|
4353
|
+
* line is skipped like a blank one before the paragraph, and ends it after,
|
|
4354
|
+
* and a bound line is a unit of one line: it ends a paragraph above it, and
|
|
4355
|
+
* stands alone when it is the first line found.
|
|
4174
4356
|
*/
|
|
4175
4357
|
declare function paragraphAfter(content: string, offset: number, format?: string): {
|
|
4176
4358
|
start: number;
|
|
@@ -4248,7 +4430,9 @@ declare function offsetOfLine(content: string, line: number): number;
|
|
|
4248
4430
|
* holds at the recorded lines: `current`. The same text is found verbatim
|
|
4249
4431
|
* elsewhere in the body: `moved`, once, or `moved-ambiguous`. Nowhere:
|
|
4250
4432
|
* `changed`, the sentence was edited. A marker-anchored claim pins what the
|
|
4251
|
-
* marker anchors, so
|
|
4433
|
+
* marker anchors, so its text never moves on the page; it is `current`,
|
|
4434
|
+
* `changed`, or, when the pin holds over a span the marker no longer anchors,
|
|
4435
|
+
* `moved`. `src/cite/core/reanchor.ts` reads those spans.
|
|
4252
4436
|
*/
|
|
4253
4437
|
|
|
4254
4438
|
declare function normalizeWhitespace(text: string): string;
|
|
@@ -4261,7 +4445,7 @@ declare function claimLine(claim: ClaimEnd): number | undefined;
|
|
|
4261
4445
|
* the hashing rule (`splitLines`). `null` for an entry with no `claim`: a
|
|
4262
4446
|
* bare pin, or a marker with no drift check on its sentence.
|
|
4263
4447
|
*/
|
|
4264
|
-
declare function claimEnd(page: PageCitations, entry: PageCitation, lines: readonly string[]): ClaimEnd | null;
|
|
4448
|
+
declare function claimEnd(page: PageCitations, entry: PageCitation, lines: readonly string[], misplaced?: MisplacedMarker): ClaimEnd | null;
|
|
4265
4449
|
/** What `update --accept` re-pins over: the paragraph or fenced block at a line. */
|
|
4266
4450
|
interface ClaimUnit {
|
|
4267
4451
|
lines: PageLines;
|
|
@@ -4387,8 +4571,45 @@ declare function validateEntry(entry: unknown): string | undefined;
|
|
|
4387
4571
|
declare function pickExtractor(file: string, format: string | undefined): MetadataExtractor;
|
|
4388
4572
|
/** File line of body line 1: the first line after the frontmatter, or 1. */
|
|
4389
4573
|
declare function bodyLineOf(content: string, bodyOffset: number): number;
|
|
4574
|
+
/**
|
|
4575
|
+
* A page's citation entries as they are written, each with where it sits: the
|
|
4576
|
+
* manifest's when one owns them, else the page's own frontmatter. The entries
|
|
4577
|
+
* are raw, so one the schema refuses is still in the list at its own index,
|
|
4578
|
+
* which is how `remove` reaches an entry `check` can only report.
|
|
4579
|
+
*/
|
|
4580
|
+
declare function citationInputs(file: string, extracted: ExtractedMetadata, injected?: readonly CitationInput[]): CitationInput[];
|
|
4390
4581
|
declare function readPage(file: string, content: string, opts?: ReadPageOptions): PageCitations;
|
|
4391
4582
|
|
|
4583
|
+
/** The new `claim.lines` of each entry the change moves, by where the entry lives. */
|
|
4584
|
+
interface Shifted {
|
|
4585
|
+
frontmatter: {
|
|
4586
|
+
index: number;
|
|
4587
|
+
lines: LineSpec;
|
|
4588
|
+
}[];
|
|
4589
|
+
manifest: Map<number, LineSpec>;
|
|
4590
|
+
}
|
|
4591
|
+
interface ShiftOptions {
|
|
4592
|
+
/** The entries to move: on a removal, the ones that survive it. */
|
|
4593
|
+
citations: readonly PageCitation[];
|
|
4594
|
+
/** File lines where a marker line is inserted, or where one is removed. */
|
|
4595
|
+
at: readonly number[];
|
|
4596
|
+
/** `1` for lines coming in, `-1` for lines going out. */
|
|
4597
|
+
delta: 1 | -1;
|
|
4598
|
+
/** File line of body line 1, since `claim.lines` count the body. */
|
|
4599
|
+
bodyLine: number;
|
|
4600
|
+
/** The page as the run reports it, for the refusal. */
|
|
4601
|
+
label: string;
|
|
4602
|
+
}
|
|
4603
|
+
/**
|
|
4604
|
+
* The entries whose claim lines move, each by however many of `at` sit above
|
|
4605
|
+
* them. An insertion at a claim's first line pushes the whole claim down; a
|
|
4606
|
+
* removal of that line is inside the claim instead, because the line is the
|
|
4607
|
+
* claim's own. Hence the two comparisons.
|
|
4608
|
+
*/
|
|
4609
|
+
declare function shiftedEntries(opts: ShiftOptions): Shifted;
|
|
4610
|
+
/** A copy of a manifest entry with its `claim.lines` replaced. */
|
|
4611
|
+
declare function withClaimLines(entry: unknown, lines: LineSpec): unknown;
|
|
4612
|
+
|
|
4392
4613
|
/** The one key cite keeps in a manifest. */
|
|
4393
4614
|
declare const CITATIONS_KEY = "citations";
|
|
4394
4615
|
/** A manifest that owns `citations` for one collection. */
|
|
@@ -4546,6 +4767,12 @@ declare class ManifestSet {
|
|
|
4546
4767
|
file: string;
|
|
4547
4768
|
line: number;
|
|
4548
4769
|
}>;
|
|
4770
|
+
/**
|
|
4771
|
+
* Take a page's `citations` key out of the manifest, for the removal that
|
|
4772
|
+
* leaves it with no entries. The entry itself goes when that key was all it
|
|
4773
|
+
* had, so a manifest never keeps a document nothing is recorded about.
|
|
4774
|
+
*/
|
|
4775
|
+
remove(manifest: CitationManifest, entry: string): Promise<void>;
|
|
4549
4776
|
/** The manifests this run rewrote, with the diff of each. */
|
|
4550
4777
|
changed(): {
|
|
4551
4778
|
path: string;
|
|
@@ -4593,6 +4820,17 @@ declare function checkCitations(page: {
|
|
|
4593
4820
|
declare function messageFor(source: SourceEnd): string;
|
|
4594
4821
|
/** The one place a claim end's message is composed, per status. */
|
|
4595
4822
|
declare function claimMessageFor(result: CitationResult): string;
|
|
4823
|
+
/**
|
|
4824
|
+
* The one place a `marker-misplaced` message is composed. A quote marker's
|
|
4825
|
+
* place is above the block it anchors; every other marker's is the first line
|
|
4826
|
+
* of the paragraph its run splits.
|
|
4827
|
+
*/
|
|
4828
|
+
declare function misplacedMessageFor(id: string | undefined, marker: {
|
|
4829
|
+
line: number;
|
|
4830
|
+
unit: string;
|
|
4831
|
+
place: number;
|
|
4832
|
+
block: boolean;
|
|
4833
|
+
}): string;
|
|
4596
4834
|
/** Findings for classified citations under a severity table; `off` rules produce none. */
|
|
4597
4835
|
declare function findingsFor(results: readonly CitationResult[], severity: Readonly<Record<CiteRule, CiteSeverity>>): CitationFinding[];
|
|
4598
4836
|
/**
|
|
@@ -4610,6 +4848,19 @@ declare function toValidationResult(report: PageCitationReport): ValidationResul
|
|
|
4610
4848
|
|
|
4611
4849
|
/** Append one entry to `citations` (creating the key), via the format's extractor. */
|
|
4612
4850
|
declare function appendFrontmatterCitation(content: string, format: string, citation: Citation, filePath?: string): string;
|
|
4851
|
+
/**
|
|
4852
|
+
* Take entries out of a page's `citations`, by their index in the list, and
|
|
4853
|
+
* write what is left back through the format's extractor. An empty list
|
|
4854
|
+
* removes the key: an entry deleted by hand once left a `citations:` with
|
|
4855
|
+
* nothing under it, and a page that carries no citations should say so by
|
|
4856
|
+
* carrying no key.
|
|
4857
|
+
*
|
|
4858
|
+
* The write is the inverse of `appendFrontmatterCitation` and goes the same
|
|
4859
|
+
* way, so a page manni can add to is a page manni can remove from.
|
|
4860
|
+
*/
|
|
4861
|
+
declare function removeFrontmatterCitations(content: string, format: string, drop: ReadonlySet<number>, filePath?: string): string;
|
|
4862
|
+
/** Delete the whole of 1-based `line`, its terminator included. */
|
|
4863
|
+
declare function removeLine(content: string, line: number): string;
|
|
4613
4864
|
/**
|
|
4614
4865
|
* The entry as a plain object, in the order a reader scans it, with every
|
|
4615
4866
|
* absent optional left out rather than written as `null`.
|
|
@@ -4686,6 +4937,12 @@ interface CiteRunOptions {
|
|
|
4686
4937
|
}) => void;
|
|
4687
4938
|
/** Told once when the root fell back to cwd. */
|
|
4688
4939
|
onNotice?: (message: string) => void;
|
|
4940
|
+
/**
|
|
4941
|
+
* Whether the run resolves `src:` paths at all. Default true. `false`
|
|
4942
|
+
* silences the notice about where they would resolve from, which `remove`
|
|
4943
|
+
* has no use for: it edits a page and never reads a source.
|
|
4944
|
+
*/
|
|
4945
|
+
resolvesSources?: boolean;
|
|
4689
4946
|
/** Defaults to `process.env`; a test hands in its own. */
|
|
4690
4947
|
env?: NodeJS.ProcessEnv;
|
|
4691
4948
|
}
|
|
@@ -4700,6 +4957,8 @@ declare function runCheck(opts: CheckOptions): Promise<CheckRun>;
|
|
|
4700
4957
|
|
|
4701
4958
|
declare function runAdd(opts: AddOptions): Promise<AddResult>;
|
|
4702
4959
|
|
|
4960
|
+
declare function runRemove(opts: RemoveOptions): Promise<RemoveRun>;
|
|
4961
|
+
|
|
4703
4962
|
declare function runUpdate(opts: UpdateOptions): Promise<UpdateRun>;
|
|
4704
4963
|
|
|
4705
4964
|
/**
|
|
@@ -4768,6 +5027,18 @@ declare function reencryptCitationEntries(page: {
|
|
|
4768
5027
|
citations: readonly CitationInput[];
|
|
4769
5028
|
}, opts: ReencryptOptions): Promise<ReencryptEntriesResult>;
|
|
4770
5029
|
|
|
5030
|
+
/**
|
|
5031
|
+
* Terminal color, decided once for every tool under the umbrella.
|
|
5032
|
+
*
|
|
5033
|
+
* clig.dev: color only on a TTY, never under `NO_COLOR` or `--no-color`. Each
|
|
5034
|
+
* tool's reporters take the decision as a boolean and build a palette from it,
|
|
5035
|
+
* so no reporter ever consults the environment on its own.
|
|
5036
|
+
*/
|
|
5037
|
+
|
|
5038
|
+
type Colors = ReturnType<typeof pc.createColors>;
|
|
5039
|
+
/** Build a picocolors palette with color explicitly on or off. */
|
|
5040
|
+
declare function palette(enabled: boolean): Colors;
|
|
5041
|
+
|
|
4771
5042
|
/**
|
|
4772
5043
|
* Pretty output for `check` and `update`.
|
|
4773
5044
|
*
|
|
@@ -4785,14 +5056,20 @@ interface PrettyOptions {
|
|
|
4785
5056
|
quiet?: boolean;
|
|
4786
5057
|
showDiff?: boolean;
|
|
4787
5058
|
reveal?: boolean;
|
|
5059
|
+
/** `remove --dry-run`: the footer says what the run would have removed. */
|
|
5060
|
+
dryRun?: boolean;
|
|
4788
5061
|
}
|
|
4789
5062
|
declare function renderCheckPretty(run: CheckRun, opts: PrettyOptions): string;
|
|
4790
5063
|
/** What one rewritten end says it did. */
|
|
4791
5064
|
declare function rewriteLine(rewrite: UpdateRewrite): string;
|
|
4792
5065
|
declare function renderUpdatePretty(run: UpdateRun, opts: PrettyOptions): string;
|
|
5066
|
+
/** What one removal says it did: the entry, where it was kept, and its markers. */
|
|
5067
|
+
declare function removalLine(removal: Removal, c: ReturnType<typeof palette>): string;
|
|
5068
|
+
declare function renderRemovePretty(run: RemoveRun, opts: PrettyOptions): string;
|
|
4793
5069
|
|
|
4794
5070
|
/**
|
|
4795
|
-
* JSON output. `{ summary, pages }` for check; the
|
|
5071
|
+
* JSON output. `{ summary, pages }` for check; the run itself for update and
|
|
5072
|
+
* remove.
|
|
4796
5073
|
*
|
|
4797
5074
|
* A citation prints its two ends and how they are anchored. `resolvedPath`,
|
|
4798
5075
|
* `diff`, `commitsSince` and a changed claim's current lines are left out of
|
|
@@ -4802,6 +5079,7 @@ declare function renderUpdatePretty(run: UpdateRun, opts: PrettyOptions): string
|
|
|
4802
5079
|
*/
|
|
4803
5080
|
|
|
4804
5081
|
declare function renderCheckJson(run: CheckRun): string;
|
|
5082
|
+
declare function renderRemoveJson(run: RemoveRun): string;
|
|
4805
5083
|
declare function renderUpdateJson(run: UpdateRun): string;
|
|
4806
5084
|
|
|
4807
5085
|
declare function renderCheckGithub(run: CheckRun): string;
|
|
@@ -4864,7 +5142,10 @@ type index$1_ManifestChange = ManifestChange;
|
|
|
4864
5142
|
type index$1_ManifestSet = ManifestSet;
|
|
4865
5143
|
declare const index$1_ManifestSet: typeof ManifestSet;
|
|
4866
5144
|
type index$1_ManifestWrite = ManifestWrite;
|
|
5145
|
+
type index$1_MarkerEnd = MarkerEnd;
|
|
4867
5146
|
type index$1_MintOptions = MintOptions;
|
|
5147
|
+
type index$1_MisplacedMarker = MisplacedMarker;
|
|
5148
|
+
type index$1_MisplacedMarkerReport = MisplacedMarkerReport;
|
|
4868
5149
|
type index$1_MissingReason = MissingReason;
|
|
4869
5150
|
type index$1_OriginKind = OriginKind;
|
|
4870
5151
|
type index$1_PageCitation = PageCitation;
|
|
@@ -4880,7 +5161,13 @@ type index$1_ReencryptCitationsResult = ReencryptCitationsResult;
|
|
|
4880
5161
|
type index$1_ReencryptEntriesResult = ReencryptEntriesResult;
|
|
4881
5162
|
type index$1_ReencryptOptions = ReencryptOptions;
|
|
4882
5163
|
type index$1_ReencryptedCitation = ReencryptedCitation;
|
|
5164
|
+
type index$1_Removal = Removal;
|
|
5165
|
+
type index$1_RemoveOptions = RemoveOptions;
|
|
5166
|
+
type index$1_RemovePage = RemovePage;
|
|
5167
|
+
type index$1_RemoveRun = RemoveRun;
|
|
4883
5168
|
declare const index$1_SRC_PATTERN: typeof SRC_PATTERN;
|
|
5169
|
+
type index$1_ShiftOptions = ShiftOptions;
|
|
5170
|
+
type index$1_Shifted = Shifted;
|
|
4884
5171
|
type index$1_ShownFile = ShownFile;
|
|
4885
5172
|
type index$1_SourceEnd = SourceEnd;
|
|
4886
5173
|
type index$1_SourceIndex = SourceIndex;
|
|
@@ -4897,6 +5184,7 @@ declare const index$1_blockMatches: typeof blockMatches;
|
|
|
4897
5184
|
declare const index$1_bodyLineOf: typeof bodyLineOf;
|
|
4898
5185
|
declare const index$1_buildSourceIndex: typeof buildSourceIndex;
|
|
4899
5186
|
declare const index$1_checkCitations: typeof checkCitations;
|
|
5187
|
+
declare const index$1_citationInputs: typeof citationInputs;
|
|
4900
5188
|
declare const index$1_claimEnd: typeof claimEnd;
|
|
4901
5189
|
declare const index$1_claimLine: typeof claimLine;
|
|
4902
5190
|
declare const index$1_claimMessageFor: typeof claimMessageFor;
|
|
@@ -4919,16 +5207,24 @@ declare const index$1_hashRange: typeof hashRange;
|
|
|
4919
5207
|
declare const index$1_historyOf: typeof historyOf;
|
|
4920
5208
|
declare const index$1_insertStatementBefore: typeof insertStatementBefore;
|
|
4921
5209
|
declare const index$1_insideFence: typeof insideFence;
|
|
5210
|
+
declare const index$1_isBoundLine: typeof isBoundLine;
|
|
4922
5211
|
declare const index$1_isCiteRule: typeof isCiteRule;
|
|
4923
5212
|
declare const index$1_isKeyedPin: typeof isKeyedPin;
|
|
5213
|
+
declare const index$1_isUnitText: typeof isUnitText;
|
|
4924
5214
|
declare const index$1_itemLine: typeof itemLine;
|
|
4925
5215
|
declare const index$1_lineAt: typeof lineAt;
|
|
4926
5216
|
declare const index$1_lineSpec: typeof lineSpec;
|
|
4927
5217
|
declare const index$1_loadCitationSidecars: typeof loadCitationSidecars;
|
|
4928
5218
|
declare const index$1_loadCiteConfig: typeof loadCiteConfig;
|
|
5219
|
+
declare const index$1_markerClaimEnd: typeof markerClaimEnd;
|
|
5220
|
+
declare const index$1_markerRunAt: typeof markerRunAt;
|
|
4929
5221
|
declare const index$1_markerUnit: typeof markerUnit;
|
|
4930
5222
|
declare const index$1_messageFor: typeof messageFor;
|
|
4931
5223
|
declare const index$1_mintCitation: typeof mintCitation;
|
|
5224
|
+
declare const index$1_misplacedMarkerAt: typeof misplacedMarkerAt;
|
|
5225
|
+
declare const index$1_misplacedMarkers: typeof misplacedMarkers;
|
|
5226
|
+
declare const index$1_misplacedMessageFor: typeof misplacedMessageFor;
|
|
5227
|
+
declare const index$1_movedUnit: typeof movedUnit;
|
|
4932
5228
|
declare const index$1_noGit: typeof noGit;
|
|
4933
5229
|
declare const index$1_normalizeText: typeof normalizeText;
|
|
4934
5230
|
declare const index$1_normalizeWhitespace: typeof normalizeWhitespace;
|
|
@@ -4942,15 +5238,21 @@ declare const index$1_parseSrc: typeof parseSrc;
|
|
|
4942
5238
|
declare const index$1_parseStatements: typeof parseStatements;
|
|
4943
5239
|
declare const index$1_pickExtractor: typeof pickExtractor;
|
|
4944
5240
|
declare const index$1_pinOfLines: typeof pinOfLines;
|
|
5241
|
+
declare const index$1_pre43Span: typeof pre43Span;
|
|
4945
5242
|
declare const index$1_rangeLines: typeof rangeLines;
|
|
4946
5243
|
declare const index$1_readCiteConfigFile: typeof readCiteConfigFile;
|
|
4947
5244
|
declare const index$1_readPage: typeof readPage;
|
|
4948
5245
|
declare const index$1_readSource: typeof readSource;
|
|
4949
5246
|
declare const index$1_reencryptCitationEntries: typeof reencryptCitationEntries;
|
|
4950
5247
|
declare const index$1_reencryptCitations: typeof reencryptCitations;
|
|
5248
|
+
declare const index$1_removalLine: typeof removalLine;
|
|
5249
|
+
declare const index$1_removeFrontmatterCitations: typeof removeFrontmatterCitations;
|
|
5250
|
+
declare const index$1_removeLine: typeof removeLine;
|
|
4951
5251
|
declare const index$1_renderCheckGithub: typeof renderCheckGithub;
|
|
4952
5252
|
declare const index$1_renderCheckJson: typeof renderCheckJson;
|
|
4953
5253
|
declare const index$1_renderCheckPretty: typeof renderCheckPretty;
|
|
5254
|
+
declare const index$1_renderRemoveJson: typeof renderRemoveJson;
|
|
5255
|
+
declare const index$1_renderRemovePretty: typeof renderRemovePretty;
|
|
4954
5256
|
declare const index$1_renderUpdateJson: typeof renderUpdateJson;
|
|
4955
5257
|
declare const index$1_renderUpdatePretty: typeof renderUpdatePretty;
|
|
4956
5258
|
declare const index$1_resolveCiteRun: typeof resolveCiteRun;
|
|
@@ -4959,7 +5261,9 @@ declare const index$1_rewriteLine: typeof rewriteLine;
|
|
|
4959
5261
|
declare const index$1_ruleId: typeof ruleId;
|
|
4960
5262
|
declare const index$1_runAdd: typeof runAdd;
|
|
4961
5263
|
declare const index$1_runCheck: typeof runCheck;
|
|
5264
|
+
declare const index$1_runRemove: typeof runRemove;
|
|
4962
5265
|
declare const index$1_runUpdate: typeof runUpdate;
|
|
5266
|
+
declare const index$1_shiftedEntries: typeof shiftedEntries;
|
|
4963
5267
|
declare const index$1_shortCommit: typeof shortCommit;
|
|
4964
5268
|
declare const index$1_shortLine: typeof shortLine;
|
|
4965
5269
|
declare const index$1_shortPin: typeof shortPin;
|
|
@@ -4967,11 +5271,13 @@ declare const index$1_shortSrc: typeof shortSrc;
|
|
|
4967
5271
|
declare const index$1_sidecarsFor: typeof sidecarsFor;
|
|
4968
5272
|
declare const index$1_sliceLines: typeof sliceLines;
|
|
4969
5273
|
declare const index$1_sourceRange: typeof sourceRange;
|
|
5274
|
+
declare const index$1_spellAt: typeof spellAt;
|
|
4970
5275
|
declare const index$1_spellLines: typeof spellLines;
|
|
4971
5276
|
declare const index$1_spellSource: typeof spellSource;
|
|
4972
5277
|
declare const index$1_splice: typeof splice;
|
|
4973
5278
|
declare const index$1_spliceEntryField: typeof spliceEntryField;
|
|
4974
5279
|
declare const index$1_splitLines: typeof splitLines;
|
|
5280
|
+
declare const index$1_splitUnit: typeof splitUnit;
|
|
4975
5281
|
declare const index$1_statementForms: typeof statementForms;
|
|
4976
5282
|
declare const index$1_toBodyLines: typeof toBodyLines;
|
|
4977
5283
|
declare const index$1_toFileLines: typeof toFileLines;
|
|
@@ -4979,10 +5285,12 @@ declare const index$1_toValidationResult: typeof toValidationResult;
|
|
|
4979
5285
|
declare const index$1_twoManifestsRefusal: typeof twoManifestsRefusal;
|
|
4980
5286
|
declare const index$1_unifiedDiff: typeof unifiedDiff;
|
|
4981
5287
|
declare const index$1_unitAt: typeof unitAt;
|
|
5288
|
+
declare const index$1_unitText: typeof unitText;
|
|
4982
5289
|
declare const index$1_urlManifestRefusal: typeof urlManifestRefusal;
|
|
4983
5290
|
declare const index$1_validateEntry: typeof validateEntry;
|
|
5291
|
+
declare const index$1_withClaimLines: typeof withClaimLines;
|
|
4984
5292
|
declare namespace index$1 {
|
|
4985
|
-
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_MintOptions as MintOptions, 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, index$1_SRC_PATTERN as SRC_PATTERN, 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_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_isCiteRule as isCiteRule, index$1_isKeyedPin as isKeyedPin, 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_markerUnit as markerUnit, index$1_messageFor as messageFor, index$1_mintCitation as mintCitation, 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_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_renderCheckGithub as renderCheckGithub, index$1_renderCheckJson as renderCheckJson, index$1_renderCheckPretty as renderCheckPretty, 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_runUpdate as runUpdate, 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_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_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_urlManifestRefusal as urlManifestRefusal, index$1_validateEntry as validateEntry };
|
|
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 };
|
|
4986
5294
|
}
|
|
4987
5295
|
|
|
4988
5296
|
/**
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
reencryptMetadata,
|
|
6
6
|
runKeyRotate,
|
|
7
7
|
runKeySet
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3V4EIH7H.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-
|
|
130
|
+
} from "./chunk-SXYSP33V.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.
|
|
3
|
+
"version": "2.5.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": {
|