@codacy/verity-cli 0.34.2-experimental.3b25de0 → 0.34.2-experimental.ae05391

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 +13 -5
  2. package/package.json +1 -1
package/bin/verity.js CHANGED
@@ -27313,7 +27313,7 @@ function channelSilence(input) {
27313
27313
  // src/lib/cli-version.ts
27314
27314
  function cliVersion() {
27315
27315
  try {
27316
- return true ? "0.34.2-experimental.3b25de0" : "dev";
27316
+ return true ? "0.34.2-experimental.ae05391" : "dev";
27317
27317
  } catch {
27318
27318
  return "dev";
27319
27319
  }
@@ -37530,7 +37530,7 @@ async function runFormalPhaseTargets(input) {
37530
37530
  }
37531
37531
  const next = await runFormalPhase({ ...input, exclude, skipStanding: true, costCapUsd: cap2 - spent, progress: {} });
37532
37532
  if (next.status !== "checked" && next.skip && !NOTHING_ELSE_QUALIFIES.has(next.skip)) stoppedAt = { skip: next.skip, ...next.detail ? { detail: next.detail } : {} };
37533
- if (!next.target) break;
37533
+ if (!next.target || next.status !== "checked" && exclude.has(`${next.target.file}#${next.target.symbol}`)) break;
37534
37534
  exclude.add(`${next.target.file}#${next.target.symbol}`);
37535
37535
  outcomes.push(next);
37536
37536
  if (next.status !== "checked") break;
@@ -37935,6 +37935,14 @@ function oneShotLostOutcome(input) {
37935
37935
  return input.agentGate === "FAIL" && input.agentBlocking ? "block" : "allow-without-review";
37936
37936
  }
37937
37937
  function withAgentVerdict(oneShot, agent) {
37938
+ if (agent.one_shot_source === "none" && agent.findings_mode === "agent" && agent.gate_decision !== null) {
37939
+ return {
37940
+ ...oneShot,
37941
+ gate_decision: worstGate(agent.gate_decision, "WARN", "WARN"),
37942
+ findings: agent.findings.filter((f) => f.agent_added === true),
37943
+ agent_review: { ...agent.agent_review, gate_decision_before: oneShot.gate_decision ?? null, one_shot_source: "none", cleared: [], downgraded: [] }
37944
+ };
37945
+ }
37938
37946
  if (agent.one_shot_source === "none" && typeof oneShot.gate_decision === "string") {
37939
37947
  const added = agent.findings.filter((f) => f.agent_added === true);
37940
37948
  return {
@@ -40712,7 +40720,7 @@ function registerInitCommand(program2) {
40712
40720
  ...telemetryChoice ? { telemetry: telemetryChoice } : {},
40713
40721
  init: {
40714
40722
  completed_at: (/* @__PURE__ */ new Date()).toISOString(),
40715
- cli_version: true ? "0.34.2-experimental.3b25de0" : "dev"
40723
+ cli_version: true ? "0.34.2-experimental.ae05391" : "dev"
40716
40724
  }
40717
40725
  });
40718
40726
  } catch (err2) {
@@ -42253,8 +42261,8 @@ function registerLeanCommand(program2) {
42253
42261
  }
42254
42262
 
42255
42263
  // src/cli.ts
42256
- program.name("verity").description("CLI for Verity quality gate service").version("0.34.2-experimental.3b25de0").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) => {
42257
- installStderrLog(actionCommand.name(), process.argv.slice(2), "0.34.2-experimental.3b25de0");
42264
+ program.name("verity").description("CLI for Verity quality gate service").version("0.34.2-experimental.ae05391").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) => {
42265
+ installStderrLog(actionCommand.name(), process.argv.slice(2), "0.34.2-experimental.ae05391");
42258
42266
  setUserNamedServiceUrl(program.opts().serviceUrl);
42259
42267
  try {
42260
42268
  await foldLegacyLocalCredential();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/verity-cli",
3
- "version": "0.34.2-experimental.3b25de0",
3
+ "version": "0.34.2-experimental.ae05391",
4
4
  "description": "CLI for Verity quality gate service",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://verity.md",