@codacy/verity-cli 0.31.0-experimental.11042d4 → 0.31.0-experimental.2221878

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.
Files changed (2) hide show
  1. package/bin/verity.js +17 -6
  2. package/package.json +1 -1
package/bin/verity.js CHANGED
@@ -14419,6 +14419,7 @@ function reduce(state, events, now) {
14419
14419
  existing.line_sha = ev.line_sha ?? existing.line_sha;
14420
14420
  existing.register = ev.register;
14421
14421
  if (existing.outcome === "fixed") existing.outcome = "recurred";
14422
+ else if (existing.outcome !== "open") existing.outcome = "open";
14422
14423
  break;
14423
14424
  }
14424
14425
  byAnchor.set(ev.anchor_key, {
@@ -17229,7 +17230,8 @@ function registerStatusCommand(program2) {
17229
17230
  printInfo("");
17230
17231
  printInfo("--- Pending Items ---");
17231
17232
  for (const item of mem.pending_items) {
17232
- printInfo(` [${item.priority.toUpperCase()}] ${item.description}`);
17233
+ const priority = typeof item.priority === "string" && item.priority.length > 0 ? item.priority.toUpperCase() : "UNSPECIFIED";
17234
+ printInfo(` [${priority}] ${item.description ?? "(no description)"}`);
17233
17235
  }
17234
17236
  }
17235
17237
  const recentTasks = mem.recent_tasks;
@@ -18452,7 +18454,7 @@ function channelSilence(input) {
18452
18454
  // src/lib/cli-version.ts
18453
18455
  function cliVersion() {
18454
18456
  try {
18455
- return true ? "0.31.0-experimental.11042d4" : "dev";
18457
+ return true ? "0.31.0-experimental.2221878" : "dev";
18456
18458
  } catch {
18457
18459
  return "dev";
18458
18460
  }
@@ -18702,9 +18704,10 @@ function describeOpenElsewhere(open) {
18702
18704
  const lines = open.slice(0, 5).map((o) => ` ${o.file}:${o.line} [${o.pattern_id}]`);
18703
18705
  const more = open.length > 5 ? `
18704
18706
  (+${open.length - 5} more)` : "";
18705
- return `STILL OPEN ELSEWHERE. ${open.length} blocking finding(s) Verity raised earlier are still present in files this run did not review:
18707
+ return `STILL OPEN ELSEWHERE. ${open.length} finding(s) Verity raised earlier are still on disk in files this run did not review:
18706
18708
  ${lines.join("\n")}${more}
18707
- This verdict covers the current change only. The tree is not clean.`;
18709
+ They did not gate this run \u2014 this verdict covers the current change only. The tree is not clean.
18710
+ Fix them, or record a disposition: verity waive <pattern-id> --file <path> --reason "\u2026"`;
18708
18711
  }
18709
18712
 
18710
18713
  // src/commands/analyze/exit.ts
@@ -21042,6 +21045,14 @@ async function reconcile(run) {
21042
21045
  })() : [];
21043
21046
  if (memorySession) {
21044
21047
  try {
21048
+ const settledAnchors = response.metadata?.settled_anchors;
21049
+ if (Array.isArray(settledAnchors)) {
21050
+ for (const anchorKey of settledAnchors) {
21051
+ if (typeof anchorKey === "string" && anchorKey.length > 0) {
21052
+ appendEvent(memorySession.d, { k: "outcome", anchor_key: anchorKey, outcome: "answered" });
21053
+ }
21054
+ }
21055
+ }
21045
21056
  recordVerdict(memorySession.d, {
21046
21057
  runId: response.run_id ?? turnId,
21047
21058
  decision,
@@ -23580,8 +23591,8 @@ function registerTelemetryCommands(program2) {
23580
23591
  }
23581
23592
 
23582
23593
  // src/cli.ts
23583
- program.name("verity").description("CLI for Verity quality gate service").version("0.31.0-experimental.11042d4").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) => {
23584
- installStderrLog(actionCommand.name(), process.argv.slice(2), "0.31.0-experimental.11042d4");
23594
+ program.name("verity").description("CLI for Verity quality gate service").version("0.31.0-experimental.2221878").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) => {
23595
+ installStderrLog(actionCommand.name(), process.argv.slice(2), "0.31.0-experimental.2221878");
23585
23596
  setUserNamedServiceUrl(program.opts().serviceUrl);
23586
23597
  try {
23587
23598
  await foldLegacyLocalCredential();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/verity-cli",
3
- "version": "0.31.0-experimental.11042d4",
3
+ "version": "0.31.0-experimental.2221878",
4
4
  "description": "CLI for Verity quality gate service",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://verity.md",