@codacy/verity-cli 0.32.1 → 0.32.2-experimental.8843567

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 CHANGED
@@ -10,7 +10,7 @@ All notable changes to Verity are documented here. This project follows
10
10
  into its own heading when it is ready to be announced. -->
11
11
 
12
12
  **Verity ships as a Claude Code plugin.** `/plugin marketplace add codacy/verity`
13
- then `/plugin install verity@codacy` gives a working gate with nothing else to
13
+ then `/plugin install verity@verity` gives a working gate with nothing else to
14
14
  install — the plugin carries the CLI as a pinned dependency, and Claude Code
15
15
  installs and updates it for you.
16
16
 
@@ -64,6 +64,40 @@ installs are untouched.
64
64
  which is the ordinary case for someone whose first Verity install *is* the
65
65
  plugin.
66
66
 
67
+ ## [0.32.2] — 2026-09-10
68
+
69
+ **A patch for one bug, which stopped people before Verity was installed at all.**
70
+
71
+ ### 🔌 The plugin marketplace is named `verity`
72
+
73
+ `/plugin install verity@codacy` is now **`/plugin install verity@verity`**. The
74
+ `marketplace add` line is unchanged — `codacy/verity` is the repository, not the
75
+ name.
76
+
77
+ Marketplace names are a flat, global namespace on your machine: no per-org
78
+ scoping, so two repositories that declare the same `name` compete for one slot.
79
+ Verity published as `codacy`, which `codacy/codacy-skills` already had — so
80
+ anyone who used that marketplace got
81
+
82
+ ```
83
+ Cannot add marketplace "codacy": its network source differs from the one
84
+ declared for it in settings …
85
+ ```
86
+
87
+ and could never install Verity. The error names neither the file nor the fix.
88
+
89
+ **If you installed before this release**, the old plugin still runs but will
90
+ never update again:
91
+
92
+ ```
93
+ /plugin uninstall verity@codacy
94
+ /plugin marketplace add codacy/verity
95
+ /plugin install verity@verity
96
+ ```
97
+
98
+ `verity doctor` now detects both cases — a taken marketplace name, and a plugin
99
+ installed from the old one — and prints the file to edit and the commands to
100
+ run, so the next collision is a diagnosis rather than a dead end.
67
101
 
68
102
  ## [0.32.1] — 2026-09-09
69
103
 
package/bin/verity.js CHANGED
@@ -10509,7 +10509,7 @@ var SECURITY_PATTERNS = [
10509
10509
  /Dockerfile/
10510
10510
  ];
10511
10511
  var PROD_SERVICE_URL = "https://ofcamwrjwrkazqvdchko.supabase.co/functions/v1";
10512
- var DEFAULT_SERVICE_URL = "".length > 0 ? "" : PROD_SERVICE_URL;
10512
+ var DEFAULT_SERVICE_URL = "https://wukeddyzpijoegyajtnc.supabase.co/functions/v1".length > 0 ? "https://wukeddyzpijoegyajtnc.supabase.co/functions/v1" : PROD_SERVICE_URL;
10513
10513
  var GITHUB_CLIENT_ID = "Iv23li88HxAi3ZrbYzWh";
10514
10514
  var GITHUB_DEVICE_CODE_URL = "https://github.com/login/device/code";
10515
10515
  var GITHUB_ACCESS_TOKEN_URL = "https://github.com/login/oauth/access_token";
@@ -12917,6 +12917,52 @@ function marketplaceLocations() {
12917
12917
  }
12918
12918
  return out;
12919
12919
  }
12920
+ var VERITY_MARKETPLACE = "verity";
12921
+ var VERITY_MARKETPLACE_REPO = "codacy/verity";
12922
+ function marketplaceConflict() {
12923
+ const wanted = VERITY_MARKETPLACE;
12924
+ for (const file of ["settings.json", "settings.local.json"]) {
12925
+ const path = (0, import_node_path7.join)(claudeConfigDir(), file);
12926
+ const declared = readJsonFile(path)?.extraKnownMarketplaces ?? null;
12927
+ const entry2 = declared && typeof declared === "object" ? declared[wanted] : void 0;
12928
+ if (entry2 && typeof entry2 === "object") {
12929
+ const src = entry2.source;
12930
+ if (!pointsAtVerity(src)) {
12931
+ return { name: wanted, declaredAs: describeSource(src), settingsFile: path };
12932
+ }
12933
+ }
12934
+ }
12935
+ const known = readJsonFile((0, import_node_path7.join)(claudeConfigDir(), "plugins", "known_marketplaces.json"));
12936
+ const entry = known?.[wanted];
12937
+ if (entry && typeof entry === "object" && !pointsAtVerity(entry.source)) {
12938
+ return { name: wanted, declaredAs: describeSource(entry.source) };
12939
+ }
12940
+ return null;
12941
+ }
12942
+ function pointsAtVerity(src) {
12943
+ if (!src || typeof src !== "object") return false;
12944
+ const repo = typeof src.repo === "string" ? src.repo : "";
12945
+ if (repo.toLowerCase() === VERITY_MARKETPLACE_REPO) return true;
12946
+ const url = typeof src.url === "string" ? src.url : "";
12947
+ return /github\.com[/:]codacy\/verity(\.git)?\/?$/i.test(url);
12948
+ }
12949
+ function describeSource(src) {
12950
+ if (!src || typeof src !== "object") return "an unrecognised source";
12951
+ const kind = typeof src.source === "string" ? src.source : "unknown";
12952
+ const target = typeof src.repo === "string" && src.repo || typeof src.url === "string" && src.url || typeof src.path === "string" && src.path || "";
12953
+ return target ? `${kind} \u2192 ${target}` : kind;
12954
+ }
12955
+ function legacyMarketplaceInstall() {
12956
+ const plugins = readJsonFile((0, import_node_path7.join)(claudeConfigDir(), "plugins", "installed_plugins.json"))?.plugins;
12957
+ if (!plugins || typeof plugins !== "object") return null;
12958
+ for (const key of Object.keys(plugins)) {
12959
+ const at = key.lastIndexOf("@");
12960
+ if (at <= 0) continue;
12961
+ if (key.slice(0, at) !== "verity") continue;
12962
+ if (key.slice(at + 1) !== VERITY_MARKETPLACE) return key;
12963
+ }
12964
+ return null;
12965
+ }
12920
12966
  function realpathOr(p) {
12921
12967
  try {
12922
12968
  return import_node_fs6.realpathSync.native(p);
@@ -20872,7 +20918,7 @@ function channelSilence(input) {
20872
20918
  // src/lib/cli-version.ts
20873
20919
  function cliVersion() {
20874
20920
  try {
20875
- return true ? "0.32.1" : "dev";
20921
+ return true ? "0.32.2-experimental.8843567" : "dev";
20876
20922
  } catch {
20877
20923
  return "dev";
20878
20924
  }
@@ -25284,6 +25330,18 @@ async function buildReport() {
25284
25330
  if (state?.telemetry === "deferred") {
25285
25331
  next.push('Telemetry was requested but needs a token \u2014 run "verity login", then "verity telemetry install".');
25286
25332
  }
25333
+ const conflict = marketplaceConflict();
25334
+ if (conflict) {
25335
+ next.push(
25336
+ `The marketplace name "${conflict.name}" is already taken on this machine by ${conflict.declaredAs}, so "/plugin marketplace add codacy/verity" will be refused. ` + (conflict.settingsFile ? `Remove the "${conflict.name}" entry from extraKnownMarketplaces in ${conflict.settingsFile} ` : `Run "/plugin marketplace remove ${conflict.name}" `) + "and restart Claude Code, then add it again."
25337
+ );
25338
+ }
25339
+ const legacy = legacyMarketplaceInstall();
25340
+ if (legacy) {
25341
+ next.push(
25342
+ `The Verity plugin is installed as "${legacy}", from a marketplace name Verity no longer publishes under \u2014 it still runs, but it will never see another update. Run "/plugin uninstall ${legacy}", then "/plugin marketplace add codacy/verity" and "/plugin install verity@verity".`
25343
+ );
25344
+ }
25287
25345
  return {
25288
25346
  prerequisites: prereqs.checks,
25289
25347
  blocked: prereqs.blocked,
@@ -26686,7 +26744,7 @@ function registerInitCommand(program2) {
26686
26744
  ...telemetryChoice ? { telemetry: telemetryChoice } : {},
26687
26745
  init: {
26688
26746
  completed_at: (/* @__PURE__ */ new Date()).toISOString(),
26689
- cli_version: true ? "0.32.1" : "dev"
26747
+ cli_version: true ? "0.32.2-experimental.8843567" : "dev"
26690
26748
  }
26691
26749
  });
26692
26750
  } catch (err) {
@@ -27366,8 +27424,8 @@ function registerTelemetryCommands(program2) {
27366
27424
  }
27367
27425
 
27368
27426
  // src/cli.ts
27369
- program.name("verity").description("CLI for Verity quality gate service").version("0.32.1").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) => {
27370
- installStderrLog(actionCommand.name(), process.argv.slice(2), "0.32.1");
27427
+ program.name("verity").description("CLI for Verity quality gate service").version("0.32.2-experimental.8843567").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) => {
27428
+ installStderrLog(actionCommand.name(), process.argv.slice(2), "0.32.2-experimental.8843567");
27371
27429
  setUserNamedServiceUrl(program.opts().serviceUrl);
27372
27430
  try {
27373
27431
  await foldLegacyLocalCredential();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/verity-cli",
3
- "version": "0.32.1",
3
+ "version": "0.32.2-experimental.8843567",
4
4
  "description": "CLI for Verity quality gate service",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://verity.md",