@codacy/verity-cli 0.31.1-experimental.02b82ff → 0.31.1-experimental.80cf3ac
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/CHANGELOG.md +4 -3
- package/bin/verity.js +23 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -30,9 +30,10 @@ npm install -g @codacy/verity-cli
|
|
|
30
30
|
|
|
31
31
|
### 💬 The carried-findings notice tells the truth, and offers a way out
|
|
32
32
|
|
|
33
|
-
- It **no longer calls those findings "blocking."** They
|
|
34
|
-
|
|
35
|
-
turn,
|
|
33
|
+
- It **no longer calls those findings "blocking."** They did not *fail* your
|
|
34
|
+
run — a run that was otherwise passing printed "1 blocking finding(s)" every
|
|
35
|
+
turn, which reads as a failure that never happened. (It does still turn a PASS
|
|
36
|
+
into a WARN, and the notice now says only what is true.)
|
|
36
37
|
- It now **names the way to resolve them**, instead of repeating a problem with
|
|
37
38
|
no stated exit.
|
|
38
39
|
|
package/bin/verity.js
CHANGED
|
@@ -18459,7 +18459,7 @@ function channelSilence(input) {
|
|
|
18459
18459
|
// src/lib/cli-version.ts
|
|
18460
18460
|
function cliVersion() {
|
|
18461
18461
|
try {
|
|
18462
|
-
return true ? "0.31.1-experimental.
|
|
18462
|
+
return true ? "0.31.1-experimental.80cf3ac" : "dev";
|
|
18463
18463
|
} catch {
|
|
18464
18464
|
return "dev";
|
|
18465
18465
|
}
|
|
@@ -18711,7 +18711,7 @@ function describeOpenElsewhere(open) {
|
|
|
18711
18711
|
(+${open.length - 5} more)` : "";
|
|
18712
18712
|
return `STILL OPEN ELSEWHERE. ${open.length} finding(s) Verity raised earlier are still on disk in files this run did not review:
|
|
18713
18713
|
${lines.join("\n")}${more}
|
|
18714
|
-
They did not
|
|
18714
|
+
They did not fail this run \u2014 this verdict covers the current change only. The tree is not clean.
|
|
18715
18715
|
Fix them, or record a disposition: verity waive <pattern-id> --file <path> --reason "\u2026"`;
|
|
18716
18716
|
}
|
|
18717
18717
|
|
|
@@ -20890,6 +20890,25 @@ var import_node_path26 = require("node:path");
|
|
|
20890
20890
|
async function reconcile(run) {
|
|
20891
20891
|
const { actionSummary, allChanged, analyzable, baseline, baselineSessionId, codeDelta, contentHash, conversation, decision, foldResult, memory, memorySession, response, reviewable, securityFiles, turnId } = run;
|
|
20892
20892
|
const sentPaths = codeDelta.files.map((f) => f.path);
|
|
20893
|
+
if (memorySession) {
|
|
20894
|
+
try {
|
|
20895
|
+
const settledSites = response.metadata?.settled_sites;
|
|
20896
|
+
if (Array.isArray(settledSites)) {
|
|
20897
|
+
for (const site of settledSites) {
|
|
20898
|
+
const siteRecord = site;
|
|
20899
|
+
const file = typeof siteRecord?.file === "string" ? siteRecord.file : null;
|
|
20900
|
+
const patternId = typeof siteRecord?.pattern_id === "string" ? siteRecord.pattern_id : null;
|
|
20901
|
+
if (!file || !patternId) continue;
|
|
20902
|
+
appendEvent(memorySession.d, {
|
|
20903
|
+
k: "outcome",
|
|
20904
|
+
anchor_key: statementAnchorKey(file, patternId),
|
|
20905
|
+
outcome: "answered"
|
|
20906
|
+
});
|
|
20907
|
+
}
|
|
20908
|
+
}
|
|
20909
|
+
} catch {
|
|
20910
|
+
}
|
|
20911
|
+
}
|
|
20893
20912
|
let openElsewhere = [];
|
|
20894
20913
|
if (memorySession) {
|
|
20895
20914
|
try {
|
|
@@ -21050,20 +21069,6 @@ async function reconcile(run) {
|
|
|
21050
21069
|
})() : [];
|
|
21051
21070
|
if (memorySession) {
|
|
21052
21071
|
try {
|
|
21053
|
-
const settledSites = response.metadata?.settled_sites;
|
|
21054
|
-
if (Array.isArray(settledSites)) {
|
|
21055
|
-
for (const site of settledSites) {
|
|
21056
|
-
const s = site;
|
|
21057
|
-
const file = typeof s?.file === "string" ? s.file : null;
|
|
21058
|
-
const patternId = typeof s?.pattern_id === "string" ? s.pattern_id : null;
|
|
21059
|
-
if (!file || !patternId) continue;
|
|
21060
|
-
appendEvent(memorySession.d, {
|
|
21061
|
-
k: "outcome",
|
|
21062
|
-
anchor_key: statementAnchorKey(file, patternId),
|
|
21063
|
-
outcome: "answered"
|
|
21064
|
-
});
|
|
21065
|
-
}
|
|
21066
|
-
}
|
|
21067
21072
|
recordVerdict(memorySession.d, {
|
|
21068
21073
|
runId: response.run_id ?? turnId,
|
|
21069
21074
|
decision,
|
|
@@ -23602,8 +23607,8 @@ function registerTelemetryCommands(program2) {
|
|
|
23602
23607
|
}
|
|
23603
23608
|
|
|
23604
23609
|
// src/cli.ts
|
|
23605
|
-
program.name("verity").description("CLI for Verity quality gate service").version("0.31.1-experimental.
|
|
23606
|
-
installStderrLog(actionCommand.name(), process.argv.slice(2), "0.31.1-experimental.
|
|
23610
|
+
program.name("verity").description("CLI for Verity quality gate service").version("0.31.1-experimental.80cf3ac").option("--token <token>", "Override authentication token").option("--service-url <url>", "Override service URL").option("--verbose", "Log HTTP requests/responses to stderr").hook("preAction", async (_thisCommand, actionCommand) => {
|
|
23611
|
+
installStderrLog(actionCommand.name(), process.argv.slice(2), "0.31.1-experimental.80cf3ac");
|
|
23607
23612
|
setUserNamedServiceUrl(program.opts().serviceUrl);
|
|
23608
23613
|
try {
|
|
23609
23614
|
await foldLegacyLocalCredential();
|
package/package.json
CHANGED