@hawkeyexl/manni 2.12.0 → 3.0.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 +16 -12
- package/dist/{chunk-S7S34HVI.js → chunk-G7INFKNJ.js} +25 -9
- package/dist/chunk-G7INFKNJ.js.map +1 -0
- package/dist/{chunk-P4V5IMHM.js → chunk-I6PYC7EP.js} +5430 -1058
- package/dist/chunk-I6PYC7EP.js.map +1 -0
- package/dist/{chunk-UKRYPLZS.js → chunk-W75SLU7Z.js} +116 -156
- package/dist/chunk-W75SLU7Z.js.map +1 -0
- package/dist/cli.js +26 -11
- package/dist/cli.js.map +1 -1
- package/dist/docmeta.js +2 -2
- package/dist/index.d.ts +355 -184
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-P4V5IMHM.js.map +0 -1
- package/dist/chunk-S7S34HVI.js.map +0 -1
- package/dist/chunk-UKRYPLZS.js.map +0 -1
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-G7INFKNJ.js";
|
|
11
11
|
import {
|
|
12
12
|
CiteError,
|
|
13
13
|
KeyError,
|
|
@@ -40,15 +40,17 @@ import {
|
|
|
40
40
|
shortPin,
|
|
41
41
|
shortSrc,
|
|
42
42
|
spellSource
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-W75SLU7Z.js";
|
|
44
44
|
import {
|
|
45
45
|
COMMON_FORMAT_LIST,
|
|
46
|
+
CONCEPT_FIELDS,
|
|
46
47
|
FAMILY_CONFIG_NAMES,
|
|
47
48
|
OMITTED_WHEN_CLEAN,
|
|
48
49
|
REPORT_FORMATS,
|
|
49
50
|
REPORT_FORMAT_LIST,
|
|
50
51
|
STDIN_LABEL,
|
|
51
52
|
STDIN_TOKEN,
|
|
53
|
+
TERM_RELATION_FIELDS,
|
|
52
54
|
ToolError,
|
|
53
55
|
assertNonEmpty,
|
|
54
56
|
errorMessage,
|
|
@@ -57,6 +59,7 @@ import {
|
|
|
57
59
|
extractorByName,
|
|
58
60
|
extractorForExtension,
|
|
59
61
|
fail,
|
|
62
|
+
fieldPointer,
|
|
60
63
|
findConfigFile,
|
|
61
64
|
gitignoreOptions,
|
|
62
65
|
isErrorSeverity,
|
|
@@ -69,6 +72,7 @@ import {
|
|
|
69
72
|
palette,
|
|
70
73
|
programName,
|
|
71
74
|
readConfigFile,
|
|
75
|
+
registerTermLabelSource,
|
|
72
76
|
renderJunit,
|
|
73
77
|
renderSarif,
|
|
74
78
|
resolveBaselineRequest,
|
|
@@ -79,8 +83,9 @@ import {
|
|
|
79
83
|
shouldColor,
|
|
80
84
|
splitPageArgument,
|
|
81
85
|
terminalConfirm,
|
|
82
|
-
valeConfigPath
|
|
83
|
-
|
|
86
|
+
valeConfigPath,
|
|
87
|
+
valueAt
|
|
88
|
+
} from "./chunk-I6PYC7EP.js";
|
|
84
89
|
|
|
85
90
|
// src/cli.ts
|
|
86
91
|
import { Command as Command5 } from "commander";
|
|
@@ -1412,7 +1417,7 @@ function buildProgram3() {
|
|
|
1412
1417
|
[]
|
|
1413
1418
|
).option("--ext <list>", "comma-separated extensions for directory walks").option("--exclude <glob>", "glob to exclude; repeatable", collect, []).option("--as <format>", "force an input format for every input").option("-c, --config <path>", "path to a manni config file").option("--no-config", "ignore any discovered config file").option("--allow-empty", "treat zero matched files as success").option("--no-gitignore", "update files .gitignore covers").option("--no-check-sources", "refused: update needs the sources").option("--root <dir>", "directory src: paths resolve from (as check)").option("--accept", "re-mint changed and never-true entries at HEAD; prints old and new pins").option(
|
|
1414
1419
|
"--recommit",
|
|
1415
|
-
"re-record commit-sha where the recorded commit does not contain the pinned lines"
|
|
1420
|
+
"re-record commit-sha where the recorded commit does not contain the pinned lines, or is outside HEAD's history"
|
|
1416
1421
|
).option("--only <id>", "limit to entries with this id; repeatable", collect, []).option("--dry-run", "print the diffs; write nothing").option(
|
|
1417
1422
|
"-f, --format <format>",
|
|
1418
1423
|
`output: ${UPDATE_FORMATS.join(" | ")}`,
|
|
@@ -1996,7 +2001,7 @@ function foldValeSeverity(severity) {
|
|
|
1996
2001
|
}
|
|
1997
2002
|
|
|
1998
2003
|
// src/term/core/check.ts
|
|
1999
|
-
var REFERENCE_FIELDS =
|
|
2004
|
+
var REFERENCE_FIELDS = TERM_RELATION_FIELDS;
|
|
2000
2005
|
function checkTermSet(set, opts = {}) {
|
|
2001
2006
|
const levels = resolveSeverity(opts.severity);
|
|
2002
2007
|
const maxLength = opts.abstractMaxLength ?? DEFAULT_ABSTRACT_MAX_LENGTH;
|
|
@@ -3784,11 +3789,7 @@ function referencesOf(input) {
|
|
|
3784
3789
|
references2.push({ file: input.file, label, ...line === void 0 ? {} : { line } });
|
|
3785
3790
|
}
|
|
3786
3791
|
};
|
|
3787
|
-
add(input.metadata
|
|
3788
|
-
const graph = input.metadata["graph"];
|
|
3789
|
-
if (typeof graph === "object" && graph !== null && !Array.isArray(graph)) {
|
|
3790
|
-
add(graph["concepts"], "/graph/concepts");
|
|
3791
|
-
}
|
|
3792
|
+
for (const path of CONCEPT_FIELDS) add(valueAt(input.metadata, path), fieldPointer(path));
|
|
3792
3793
|
return references2;
|
|
3793
3794
|
}
|
|
3794
3795
|
function read7(input, readers, set) {
|
|
@@ -5568,7 +5569,21 @@ function renderFormatsPretty(rows) {
|
|
|
5568
5569
|
).join("\n");
|
|
5569
5570
|
}
|
|
5570
5571
|
|
|
5572
|
+
// src/term/commands/labels.ts
|
|
5573
|
+
async function termLabels(request) {
|
|
5574
|
+
const run = await resolveTermRun({
|
|
5575
|
+
cwd: request.cwd,
|
|
5576
|
+
inputs: [],
|
|
5577
|
+
...request.configPath === void 0 ? {} : { configPath: request.configPath },
|
|
5578
|
+
...request.noConfig === true ? { noConfig: true } : {}
|
|
5579
|
+
});
|
|
5580
|
+
if (run.inputs.length === 0 && run.manifests.length === 0) return [];
|
|
5581
|
+
const set = await loadSet(run, { inputs: [], allowEmpty: true });
|
|
5582
|
+
return set.terms.map((term) => ({ label: term.record.label, id: term.id }));
|
|
5583
|
+
}
|
|
5584
|
+
|
|
5571
5585
|
// src/term/cli.ts
|
|
5586
|
+
registerTermLabelSource(termLabels);
|
|
5572
5587
|
function colorFor2(options) {
|
|
5573
5588
|
return shouldColor({ noColor: !options.color, isTTY: process.stdout.isTTY });
|
|
5574
5589
|
}
|