xovris 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +14 -14
- package/dist/{collector-join-Clmi1Zd4.js → collector-join-CNyz1iZg.js} +1 -1
- package/dist/{findings-Byf5SGMG.js → findings-C_FlMyHx.js} +1 -1
- package/dist/{finishing-BbU1rLJs.js → finishing-CumRayPn.js} +1 -1
- package/dist/{gated-write-B4sTpeuD.js → gated-write-CyonzzSN.js} +1 -1
- package/dist/{hunt-CLbLxW_a.js → hunt-dH6Zd4Cr.js} +14 -3
- package/dist/{languages-DEXeFxgO.js → languages-DiBnBghs.js} +1 -1
- package/dist/{merge-BIp5BCYF.js → merge-JbPzZY-_.js} +3 -3
- package/dist/{review-ui-BpNWzPD7.js → review-ui-vvkzuC1G.js} +1 -1
- package/dist/{sbom-BmjbJiT_.js → sbom-zzUYlMbe.js} +1 -1
- package/dist/{secrets-scan-D-J49MTr.js → secrets-scan-EX_yKKLG.js} +1 -1
- package/dist/{sourcemaps-CbnUEHCi.js → sourcemaps-BgD4TTSB.js} +2 -2
- package/dist/{src-B0vsXZ7G.js → src-CwHd09_C.js} +19876 -1601
- package/dist/{trace-ZFYWd9DD.js → trace-BeldSC9Q.js} +1 -1
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as guardStrip, G as leaveBy, J as reviewChange, K as forAgents, M as commandRunner, N as undoFixes, R as valueCopy, S as revertOne, W as handOff, X as readsForShape, Y as stackChain, Z as testsFirst, at as probeNames, ct as parseDiff, et as refreshDeprecations, it as assumptionsOf, nt as dirReader, ot as readingsOf, q as readsForReview, rt as workOut, st as newFileDiff, x as fixAll, z as applyGuarded } from "./src-
|
|
1
|
+
import { F as guardStrip, G as leaveBy, J as reviewChange, K as forAgents, M as commandRunner, N as undoFixes, R as valueCopy, S as revertOne, W as handOff, X as readsForShape, Y as stackChain, Z as testsFirst, at as probeNames, ct as parseDiff, et as refreshDeprecations, it as assumptionsOf, nt as dirReader, ot as readingsOf, q as readsForReview, rt as workOut, st as newFileDiff, x as fixAll, z as applyGuarded } from "./src-CwHd09_C.js";
|
|
2
2
|
import { a as whoami, c as Cancelled, d as ApiFailure, f as CLI_AGENT, l as clackUi, n as login, o as writeFileAtomic, p as CLI_VERSION, r as logout, s as signIn, t as apiCommand, u as Api } from "./apicmd-jzeA2Hy4.js";
|
|
3
|
-
import { a as gatedWriteFile, i as gatedWrite, n as gatedRun, t as MANIFEST_FILES } from "./gated-write-
|
|
4
|
-
import { i as splitCommandLine, n as collectorAt, r as joinCollector, t as addExporter } from "./collector-join-
|
|
5
|
-
import { a as reviewSarif, i as reviewJson, n as progressLine, r as renderReview, s as styleFor, t as leftToFix } from "./review-ui-
|
|
3
|
+
import { a as gatedWriteFile, i as gatedWrite, n as gatedRun, t as MANIFEST_FILES } from "./gated-write-CyonzzSN.js";
|
|
4
|
+
import { i as splitCommandLine, n as collectorAt, r as joinCollector, t as addExporter } from "./collector-join-CNyz1iZg.js";
|
|
5
|
+
import { a as reviewSarif, i as reviewJson, n as progressLine, r as renderReview, s as styleFor, t as leftToFix } from "./review-ui-vvkzuC1G.js";
|
|
6
6
|
import { builtinModules } from "node:module";
|
|
7
7
|
import { mkdir, mkdtemp, readFile, readdir, rm, stat, unlink, writeFile } from "node:fs/promises";
|
|
8
8
|
import { homedir, tmpdir } from "node:os";
|
|
@@ -11840,7 +11840,7 @@ async function main(argv) {
|
|
|
11840
11840
|
}, ui, sys, secrets, io), ui);
|
|
11841
11841
|
case "logout": return logout(io);
|
|
11842
11842
|
case "sourcemaps": {
|
|
11843
|
-
const { sayUpload, uploadSourceMaps } = await import("./sourcemaps-
|
|
11843
|
+
const { sayUpload, uploadSourceMaps } = await import("./sourcemaps-BgD4TTSB.js");
|
|
11844
11844
|
const dir = positional[1] ?? "dist";
|
|
11845
11845
|
let isDir$2 = false;
|
|
11846
11846
|
try {
|
|
@@ -11956,7 +11956,7 @@ async function main(argv) {
|
|
|
11956
11956
|
case "receipt": return guarded(() => receiptCommand(positional[1], positional[2], value("--key"), ui, sys), ui);
|
|
11957
11957
|
case "verify": return guarded(() => verify$1(o, ui, sys, secrets, true), ui);
|
|
11958
11958
|
case "secrets": {
|
|
11959
|
-
const { secretsCommand } = await import("./secrets-scan-
|
|
11959
|
+
const { secretsCommand } = await import("./secrets-scan-EX_yKKLG.js");
|
|
11960
11960
|
return secretsCommand({
|
|
11961
11961
|
cwd: o.cwd,
|
|
11962
11962
|
installHook: flag("--install-hook"),
|
|
@@ -11994,7 +11994,7 @@ async function main(argv) {
|
|
|
11994
11994
|
stack: flag("--stack")
|
|
11995
11995
|
}, sys, io.out);
|
|
11996
11996
|
case "merge": {
|
|
11997
|
-
const { mergeCommand } = await import("./merge-
|
|
11997
|
+
const { mergeCommand } = await import("./merge-JbPzZY-_.js");
|
|
11998
11998
|
return mergeCommand({
|
|
11999
11999
|
cwd: o.cwd,
|
|
12000
12000
|
entries: positional.slice(1),
|
|
@@ -12007,7 +12007,7 @@ async function main(argv) {
|
|
|
12007
12007
|
}
|
|
12008
12008
|
case "tests":
|
|
12009
12009
|
case "touches": {
|
|
12010
|
-
const f = await import("./finishing-
|
|
12010
|
+
const f = await import("./finishing-CumRayPn.js");
|
|
12011
12011
|
const fo = {
|
|
12012
12012
|
cwd: o.cwd,
|
|
12013
12013
|
module: positional[1] ?? "",
|
|
@@ -12017,7 +12017,7 @@ async function main(argv) {
|
|
|
12017
12017
|
};
|
|
12018
12018
|
return command === "tests" ? f.testsCommand(fo, io.out) : f.touchesCommand(fo, io.out);
|
|
12019
12019
|
}
|
|
12020
|
-
case "resolve": return (await import("./finishing-
|
|
12020
|
+
case "resolve": return (await import("./finishing-CumRayPn.js")).resolveCommand({
|
|
12021
12021
|
cwd: o.cwd,
|
|
12022
12022
|
module: "",
|
|
12023
12023
|
files: positional.slice(1),
|
|
@@ -12026,7 +12026,7 @@ async function main(argv) {
|
|
|
12026
12026
|
test: many("--test", "--test")
|
|
12027
12027
|
}, io.out);
|
|
12028
12028
|
case "hunt": {
|
|
12029
|
-
const { huntCommand } = await import("./hunt-
|
|
12029
|
+
const { huntCommand } = await import("./hunt-dH6Zd4Cr.js");
|
|
12030
12030
|
return huntCommand({
|
|
12031
12031
|
cwd: positional[1] ?? o.cwd,
|
|
12032
12032
|
env: process.env,
|
|
@@ -12046,7 +12046,7 @@ async function main(argv) {
|
|
|
12046
12046
|
}, sys, io);
|
|
12047
12047
|
}
|
|
12048
12048
|
case "findings": {
|
|
12049
|
-
const { findingsCommand } = await import("./findings-
|
|
12049
|
+
const { findingsCommand } = await import("./findings-C_FlMyHx.js");
|
|
12050
12050
|
const read$1 = {
|
|
12051
12051
|
severity: value("--severity"),
|
|
12052
12052
|
category: value("--category"),
|
|
@@ -12071,7 +12071,7 @@ async function main(argv) {
|
|
|
12071
12071
|
}, { api: o.api }, sys, secrets, io);
|
|
12072
12072
|
}
|
|
12073
12073
|
case "sbom": {
|
|
12074
|
-
const { sbomCommand } = await import("./sbom-
|
|
12074
|
+
const { sbomCommand } = await import("./sbom-zzUYlMbe.js");
|
|
12075
12075
|
return sbomCommand({
|
|
12076
12076
|
cwd: positional[1] ?? o.cwd,
|
|
12077
12077
|
...value("--live") ? { live: value("--live") } : {},
|
|
@@ -12081,7 +12081,7 @@ async function main(argv) {
|
|
|
12081
12081
|
});
|
|
12082
12082
|
}
|
|
12083
12083
|
case "languages": {
|
|
12084
|
-
const { languagesCommand } = await import("./languages-
|
|
12084
|
+
const { languagesCommand } = await import("./languages-DiBnBghs.js");
|
|
12085
12085
|
return languagesCommand({
|
|
12086
12086
|
gaps: flag("--gaps"),
|
|
12087
12087
|
json: flag("--json"),
|
|
@@ -12089,7 +12089,7 @@ async function main(argv) {
|
|
|
12089
12089
|
});
|
|
12090
12090
|
}
|
|
12091
12091
|
case "trace": {
|
|
12092
|
-
const { traceCommand } = await import("./trace-
|
|
12092
|
+
const { traceCommand } = await import("./trace-BeldSC9Q.js");
|
|
12093
12093
|
return traceCommand({
|
|
12094
12094
|
cwd: o.cwd,
|
|
12095
12095
|
fix: flag("--fix"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as gatedService } from "./gated-write-
|
|
1
|
+
import { r as gatedService } from "./gated-write-CyonzzSN.js";
|
|
2
2
|
import { readFile, writeFile } from "node:fs/promises";
|
|
3
3
|
import { isAbsolute, resolve } from "node:path";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as FACET_AXES, l as checkFacetQuery, lt as SEVERITIES, o as EFFORTS, s as EFFORT_UNMEASURED } from "./src-
|
|
1
|
+
import { c as FACET_AXES, l as checkFacetQuery, lt as SEVERITIES, o as EFFORTS, s as EFFORT_UNMEASURED } from "./src-CwHd09_C.js";
|
|
2
2
|
import { i as tokenFor, u as Api } from "./apicmd-jzeA2Hy4.js";
|
|
3
3
|
|
|
4
4
|
//#region src/findings.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as jobRunner, I as writeProven, L as contentDigest, d as generateTests, f as proveResolution, p as touchesFor, u as applyTouches } from "./src-
|
|
1
|
+
import { B as jobRunner, I as writeProven, L as contentDigest, d as generateTests, f as proveResolution, p as touchesFor, u as applyTouches } from "./src-CwHd09_C.js";
|
|
2
2
|
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
3
3
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
4
4
|
import { execFileSync } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as writeProven, L as contentDigest, P as filesOf, R as valueCopy, z as applyGuarded } from "./src-
|
|
1
|
+
import { I as writeProven, L as contentDigest, P as filesOf, R as valueCopy, z as applyGuarded } from "./src-CwHd09_C.js";
|
|
2
2
|
import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
|
|
3
3
|
import { tmpdir } from "node:os";
|
|
4
4
|
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as HUNT_CLASSES, t as huntRepository } from "./src-
|
|
2
|
-
import { o as stripAnsi, s as styleFor } from "./review-ui-
|
|
1
|
+
import { n as HUNT_CLASSES, t as huntRepository } from "./src-CwHd09_C.js";
|
|
2
|
+
import { o as stripAnsi, s as styleFor } from "./review-ui-vvkzuC1G.js";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { existsSync, statSync } from "node:fs";
|
|
5
5
|
|
|
@@ -18,6 +18,9 @@ function renderHunt(r, o) {
|
|
|
18
18
|
if (f.path.length > 1) lines.push(` Reached by: ${f.path.join(" <- ")}`);
|
|
19
19
|
}
|
|
20
20
|
if (r.unread.length) lines.push("", `${r.unread.length} ${r.unread.length === 1 ? "file was" : "files were"} not read: ${r.unread.slice(0, 5).map((u) => `${u.file} (${u.why})`).join("; ")}${r.unread.length > 5 ? ` and ${r.unread.length - 5} more` : ""}`);
|
|
21
|
+
if (r.candidates?.length) lines.push("", `${r.candidates.length} ${r.candidates.length === 1 ? "candidate" : "candidates"} held, not shown by a test on the code as it stands: ${r.candidates.map((c) => `${c.file}:${c.line} ${c.title}`).join("; ")}`);
|
|
22
|
+
const read = r.contents ?? [];
|
|
23
|
+
if (read.length) lines.push("", `${read.length} ${read.length === 1 ? "file" : "files"} that are not text read by their own format: ${read.slice(0, 5).map((c) => `${c.file} (${c.kind}, ${c.parts.length ? `${c.parts.length} parts` : `${c.text.length} characters`})`).join("; ")}${read.length > 5 ? ` and ${read.length - 5} more` : ""}`);
|
|
21
24
|
for (const n of r.notes) lines.push(n);
|
|
22
25
|
lines.push("", r.findings.length ? "Xovris fixes these with npx xovris fix: each fix written only when your own tests prove it, and undone with one command. Do it yourself instead: each finding names its line and how to make it happen." : "Nothing to fix.");
|
|
23
26
|
return `${lines.map((l) => o.colour ? l : stripAnsi(l)).join("\n")}\n`;
|
|
@@ -35,8 +38,13 @@ async function huntCommand(o, out) {
|
|
|
35
38
|
return 2;
|
|
36
39
|
}
|
|
37
40
|
let r;
|
|
41
|
+
const servers = process.env["VITEST"] === void 0 ? {} : null;
|
|
38
42
|
try {
|
|
39
|
-
r = await huntRepository(root,
|
|
43
|
+
r = await huntRepository(root, {
|
|
44
|
+
...wanted.length ? { classes: wanted } : {},
|
|
45
|
+
...o.env.XOVRIS_WORLD_GRAMMARS === "off" ? {} : { world: {} },
|
|
46
|
+
servers
|
|
47
|
+
});
|
|
40
48
|
} catch (e) {
|
|
41
49
|
out(`The hunt could not read ${root} (${e instanceof Error ? e.message : String(e)}). Nothing was changed.\n`);
|
|
42
50
|
return 2;
|
|
@@ -46,7 +54,10 @@ async function huntCommand(o, out) {
|
|
|
46
54
|
languages: r.languages,
|
|
47
55
|
findings: r.findings,
|
|
48
56
|
unread: r.unread,
|
|
57
|
+
contents: r.contents ?? [],
|
|
58
|
+
candidates: r.candidates ?? [],
|
|
49
59
|
notes: r.notes,
|
|
60
|
+
...r.meaning ? { meaning: r.meaning } : {},
|
|
50
61
|
ms: r.ms,
|
|
51
62
|
engine: r.engine
|
|
52
63
|
})}\n`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as runMergeQueue, i as queueOrder, nt as dirReader, r as gitQueueRepo, rt as workOut } from "./src-
|
|
2
|
-
import "./gated-write-
|
|
3
|
-
import { i as splitCommandLine } from "./collector-join-
|
|
1
|
+
import { a as runMergeQueue, i as queueOrder, nt as dirReader, r as gitQueueRepo, rt as workOut } from "./src-CwHd09_C.js";
|
|
2
|
+
import "./gated-write-CyonzzSN.js";
|
|
3
|
+
import { i as splitCommandLine } from "./collector-join-CNyz1iZg.js";
|
|
4
4
|
|
|
5
5
|
//#region src/merge.ts
|
|
6
6
|
async function mergeCommand(o, sys, out) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { lt as SEVERITIES, ut as SEVERITY_LABEL } from "./src-
|
|
1
|
+
import { lt as SEVERITIES, ut as SEVERITY_LABEL } from "./src-CwHd09_C.js";
|
|
2
2
|
|
|
3
3
|
//#region src/review-ui.ts
|
|
4
4
|
/** Colour only for a person at a terminal that asked for none of the plain modes (no-color.org; CI is never a terminal). */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as osvAdvisories, U as dependenciesIn, V as npmDependencies, _ as spdxOf, b as withLicences, g as sbomOf, h as lockOfBom, m as HOSTING_FILES, ot as readingsOf, v as spdxTagValue, y as lockfilesIn } from "./src-
|
|
1
|
+
import { H as osvAdvisories, U as dependenciesIn, V as npmDependencies, _ as spdxOf, b as withLicences, g as sbomOf, h as lockOfBom, m as HOSTING_FILES, ot as readingsOf, v as spdxTagValue, y as lockfilesIn } from "./src-CwHd09_C.js";
|
|
2
2
|
import { basename, dirname, join, relative, resolve } from "node:path";
|
|
3
3
|
import { existsSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as secretFindings, Q as findSecrets, ct as parseDiff } from "./src-
|
|
1
|
+
import { $ as secretFindings, Q as findSecrets, ct as parseDiff } from "./src-CwHd09_C.js";
|
|
2
2
|
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
3
3
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { execFileSync } from "node:child_process";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./src-
|
|
2
|
-
import { i as gatedWrite } from "./gated-write-
|
|
1
|
+
import "./src-CwHd09_C.js";
|
|
2
|
+
import { i as gatedWrite } from "./gated-write-CyonzzSN.js";
|
|
3
3
|
import { basename, dirname, join, sep } from "node:path";
|
|
4
4
|
import { readFileSync, readdirSync, realpathSync, statSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { createHash } from "node:crypto";
|