@hawkeyexl/manni 2.8.2 → 2.8.3
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-WCNU53MJ.js → chunk-DGC4CCK3.js} +21 -78
- package/dist/chunk-DGC4CCK3.js.map +1 -0
- package/dist/{chunk-KEW557TN.js → chunk-KGI7B6DD.js} +204 -101
- package/dist/chunk-KGI7B6DD.js.map +1 -0
- package/dist/{chunk-7UBCWTCO.js → chunk-KYTHN2VT.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/docmeta.js +2 -2
- package/dist/index.d.ts +41 -33
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-KEW557TN.js.map +0 -1
- package/dist/chunk-WCNU53MJ.js.map +0 -1
- /package/dist/{chunk-7UBCWTCO.js.map → chunk-KYTHN2VT.js.map} +0 -0
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
supportedExtensions,
|
|
62
62
|
terminalConfirm,
|
|
63
63
|
toJsonText
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-KGI7B6DD.js";
|
|
65
65
|
|
|
66
66
|
// src/meta/cli.ts
|
|
67
67
|
import { existsSync } from "node:fs";
|
|
@@ -1517,4 +1517,4 @@ export {
|
|
|
1517
1517
|
reportConfig,
|
|
1518
1518
|
buildProgram
|
|
1519
1519
|
};
|
|
1520
|
-
//# sourceMappingURL=chunk-
|
|
1520
|
+
//# sourceMappingURL=chunk-KYTHN2VT.js.map
|
package/dist/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
readStdin,
|
|
8
8
|
reportConfig,
|
|
9
9
|
splitList
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KYTHN2VT.js";
|
|
11
11
|
import {
|
|
12
12
|
CiteError,
|
|
13
13
|
KeyError,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
shortPin,
|
|
41
41
|
shortSrc,
|
|
42
42
|
spellSource
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-DGC4CCK3.js";
|
|
44
44
|
import {
|
|
45
45
|
COMMON_FORMAT_LIST,
|
|
46
46
|
FAMILY_CONFIG_NAMES,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
splitPageArgument,
|
|
81
81
|
terminalConfirm,
|
|
82
82
|
valeConfigPath
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-KGI7B6DD.js";
|
|
84
84
|
|
|
85
85
|
// src/cli.ts
|
|
86
86
|
import { Command as Command5 } from "commander";
|
package/dist/docmeta.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
buildProgram
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KYTHN2VT.js";
|
|
5
5
|
import {
|
|
6
6
|
runIfMain
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KGI7B6DD.js";
|
|
8
8
|
|
|
9
9
|
// src/docmeta.ts
|
|
10
10
|
runIfMain(import.meta.url, () => buildProgram().name("docmeta"));
|
package/dist/index.d.ts
CHANGED
|
@@ -4979,41 +4979,61 @@ interface SplicedManifest {
|
|
|
4979
4979
|
*/
|
|
4980
4980
|
declare function spliceManifestValue(text: string, options: SpliceManifestOptions): SplicedManifest;
|
|
4981
4981
|
|
|
4982
|
-
/** One
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
entry: string;
|
|
4986
|
-
join: string;
|
|
4987
|
-
file: string;
|
|
4988
|
-
value: unknown[];
|
|
4989
|
-
} | {
|
|
4990
|
-
kind: "remove";
|
|
4982
|
+
/** One entry's one key: what an edit rewrites, and what a conflict is about. */
|
|
4983
|
+
interface ManifestKey {
|
|
4984
|
+
/** The entry, as the manifest spells it. */
|
|
4991
4985
|
entry: string;
|
|
4986
|
+
/** The key of that entry the edit rewrites. */
|
|
4987
|
+
key: string;
|
|
4988
|
+
/** How entry keys are compared; `path` normalizes separators. */
|
|
4992
4989
|
join: string;
|
|
4990
|
+
}
|
|
4991
|
+
/** One edit a run made, replayable onto bytes read later. */
|
|
4992
|
+
interface ManifestOp$1 extends ManifestKey {
|
|
4993
|
+
/** The manifest as the run names it in its own messages. */
|
|
4993
4994
|
file: string;
|
|
4994
|
-
}
|
|
4995
|
-
/** An entry this run rewrote, and what it held before the run
|
|
4996
|
-
interface
|
|
4997
|
-
|
|
4998
|
-
join: string;
|
|
4999
|
-
/** The entry's `citations` as they were read, encoded for comparison. */
|
|
4995
|
+
}
|
|
4996
|
+
/** An entry's key this run rewrote, and what it held before the run did. */
|
|
4997
|
+
interface KeyBase extends ManifestKey {
|
|
4998
|
+
/** The value as it was read, encoded so absence cannot collide. */
|
|
5000
4999
|
value: string;
|
|
5001
5000
|
}
|
|
5002
5001
|
/** One manifest held for the length of a run: its text before, and now. */
|
|
5003
|
-
interface HeldManifest {
|
|
5002
|
+
interface HeldManifest$1<Op extends ManifestOp$1> {
|
|
5004
5003
|
/** Absolute path, the write target. */
|
|
5005
5004
|
path: string;
|
|
5006
5005
|
/** The manifest as the run reports it. */
|
|
5007
5006
|
file: string;
|
|
5008
|
-
/** The bytes
|
|
5007
|
+
/** The bytes the run's edits were computed from. */
|
|
5009
5008
|
before: string;
|
|
5010
5009
|
/** The bytes as the run has rewritten them. */
|
|
5011
5010
|
text: string;
|
|
5012
5011
|
/** Every edit this run made, in order, for a replay onto newer bytes. */
|
|
5013
|
-
ops:
|
|
5014
|
-
/** Each entry this run rewrote,
|
|
5015
|
-
bases: Map<string,
|
|
5012
|
+
ops: Op[];
|
|
5013
|
+
/** Each entry key this run rewrote, and what it held first. */
|
|
5014
|
+
bases: Map<string, KeyBase>;
|
|
5015
|
+
}
|
|
5016
|
+
/** What a caller may substitute when it writes the manifests it held. */
|
|
5017
|
+
interface CommitIo$1<Change> {
|
|
5018
|
+
/** The byte writer; an atomic write unless a test says otherwise. */
|
|
5019
|
+
write?: (path: string, text: string) => Promise<void>;
|
|
5020
|
+
/** The compare-and-swap re-read, for a test counting the retries. */
|
|
5021
|
+
read?: (path: string) => Promise<string>;
|
|
5022
|
+
/** Called after each manifest lands, in write order. */
|
|
5023
|
+
after?: (change: Change) => void;
|
|
5024
|
+
/** Called when one manifest fails to land; must throw. */
|
|
5025
|
+
onError?: (change: Change, error: unknown) => Promise<never>;
|
|
5016
5026
|
}
|
|
5027
|
+
|
|
5028
|
+
/** One edit this run made, replayable onto bytes read later. */
|
|
5029
|
+
type ManifestOp = ManifestOp$1 & ({
|
|
5030
|
+
kind: "splice";
|
|
5031
|
+
value: unknown[];
|
|
5032
|
+
} | {
|
|
5033
|
+
kind: "remove";
|
|
5034
|
+
});
|
|
5035
|
+
/** One manifest held for the length of a run: its text before, and now. */
|
|
5036
|
+
type HeldManifest = HeldManifest$1<ManifestOp>;
|
|
5017
5037
|
/** One manifest this run rewrote, as `changed()` and `commit()` report it. */
|
|
5018
5038
|
interface ManifestChange {
|
|
5019
5039
|
path: string;
|
|
@@ -5028,19 +5048,7 @@ interface ManifestChange {
|
|
|
5028
5048
|
diff: string;
|
|
5029
5049
|
}
|
|
5030
5050
|
/** What `commit()` does with each manifest it settles. */
|
|
5031
|
-
|
|
5032
|
-
/** The byte writer; `writeFileAtomic` unless a test says otherwise. */
|
|
5033
|
-
write?: (path: string, text: string) => Promise<void>;
|
|
5034
|
-
/**
|
|
5035
|
-
* The compare-and-swap re-read, for a test counting the retries. It is that
|
|
5036
|
-
* loop's read alone, not a general hook: `hold()` reads the file itself.
|
|
5037
|
-
*/
|
|
5038
|
-
read?: (path: string) => Promise<string>;
|
|
5039
|
-
/** Called after each manifest lands, in write order. */
|
|
5040
|
-
after?: (change: ManifestChange) => void;
|
|
5041
|
-
/** Called when one manifest fails to land; must throw. */
|
|
5042
|
-
onError?: (change: ManifestChange, error: unknown) => Promise<never>;
|
|
5043
|
-
}
|
|
5051
|
+
type CommitIo = CommitIo$1<ManifestChange>;
|
|
5044
5052
|
/** Every manifest one run writes, read once and spliced in memory. */
|
|
5045
5053
|
declare class ManifestSet {
|
|
5046
5054
|
private readonly held;
|
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-DGC4CCK3.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-KGI7B6DD.js";
|
|
131
131
|
|
|
132
132
|
// src/key/index.ts
|
|
133
133
|
var key_exports = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hawkeyexl/manni",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.3",
|
|
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": {
|