@codacy/verity-cli 0.33.3-experimental.03bb89a → 0.33.3-experimental.38bbc15

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 +6 -6
  2. package/package.json +1 -1
package/bin/verity.js CHANGED
@@ -22639,7 +22639,7 @@ function channelSilence(input) {
22639
22639
  // src/lib/cli-version.ts
22640
22640
  function cliVersion() {
22641
22641
  try {
22642
- return true ? "0.33.3-experimental.03bb89a" : "dev";
22642
+ return true ? "0.33.3-experimental.38bbc15" : "dev";
22643
22643
  } catch {
22644
22644
  return "dev";
22645
22645
  }
@@ -27039,7 +27039,7 @@ var LUNA_SCHEMA = {
27039
27039
  var LUNA_INSTRUCTIONS = `You select SMALL pieces of code worth building a formal model of (a Lean 4 transition system with bounded exploration). The goal is to find bugs, not to model the codebase.
27040
27040
  For each file you are given its git-history signals and an excerpt. Score each 0-1 for "a model of one function here would likely expose a real bug": high for check-then-act guards, retries, caches, dedup keys, locks/leases, status transitions, money, concurrent writes; low for glue, rendering, configuration, or code whose correctness is obvious from reading.
27041
27041
  Name the single symbol (function) most worth modelling, and the applicable properties from the catalogue only. Reasons: at most 3, each a short concrete sentence about THIS code. Return every file you were given, exactly once.
27042
- When a file lists \`changed\` lines, this is a review of a push: the excerpt is numbered and shows the code around the changes. The symbol you name MUST contain at least one changed line, and the score is about what the change touches \u2014 a file with risky code elsewhere whose changed function is glue, logging or rendering scores LOW. Score 0.7 or more only when the changed function itself has a shape a model can refute (a check then an act, a retry, a dedup, concurrent writes, a status transition, money moving).`;
27042
+ When a file lists \`changed\` lines, this is a review of a push: the excerpt is numbered around the changes (changed lines starred). Name the function that CONTAINS a changed line, and score THAT FUNCTION'S CURRENT CODE as a whole \u2014 how likely a model of it exposes a real bug \u2014 never the edit itself. A one-line change (a log line, a rename, a comment) to a function that checks then acts, retries, dedups, moves money, grants access or changes a status still scores high: the push touched risky code, and a latent bug in it is exactly what this is for. Score low only when the changed function is itself glue, wiring, command registration, rendering, configuration or plainly correct.`;
27043
27043
  var lunaRanker = {
27044
27044
  name: "luna",
27045
27045
  async rank(candidates2, ctx) {
@@ -29017,7 +29017,7 @@ async function mapPool(items, limit, fn) {
29017
29017
 
29018
29018
  // src/lib/prove/auto.ts
29019
29019
  var AUTO_MODELS_DIR = `${MODELS_DIR}/.auto`;
29020
- var DEFAULT_MIN_SCORE = 0.7;
29020
+ var DEFAULT_MIN_SCORE = 0.8;
29021
29021
  var LARGE_PUSH_FILES = 25;
29022
29022
  var DAILY_MODEL_CAP = 5;
29023
29023
  var PUSH_COST_CAP_USD = 1;
@@ -32328,7 +32328,7 @@ function registerInitCommand(program2) {
32328
32328
  ...telemetryChoice ? { telemetry: telemetryChoice } : {},
32329
32329
  init: {
32330
32330
  completed_at: (/* @__PURE__ */ new Date()).toISOString(),
32331
- cli_version: true ? "0.33.3-experimental.03bb89a" : "dev"
32331
+ cli_version: true ? "0.33.3-experimental.38bbc15" : "dev"
32332
32332
  }
32333
32333
  });
32334
32334
  } catch (err) {
@@ -33776,8 +33776,8 @@ function registerLeanCommand(program2) {
33776
33776
  }
33777
33777
 
33778
33778
  // src/cli.ts
33779
- program.name("verity").description("CLI for Verity quality gate service").version("0.33.3-experimental.03bb89a").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) => {
33780
- installStderrLog(actionCommand.name(), process.argv.slice(2), "0.33.3-experimental.03bb89a");
33779
+ program.name("verity").description("CLI for Verity quality gate service").version("0.33.3-experimental.38bbc15").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) => {
33780
+ installStderrLog(actionCommand.name(), process.argv.slice(2), "0.33.3-experimental.38bbc15");
33781
33781
  setUserNamedServiceUrl(program.opts().serviceUrl);
33782
33782
  try {
33783
33783
  await foldLegacyLocalCredential();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/verity-cli",
3
- "version": "0.33.3-experimental.03bb89a",
3
+ "version": "0.33.3-experimental.38bbc15",
4
4
  "description": "CLI for Verity quality gate service",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://verity.md",