@codacy/verity-cli 0.20.1 → 0.20.2

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 +23 -1
  2. package/package.json +1 -1
package/bin/verity.js CHANGED
@@ -14824,6 +14824,7 @@ async function runMigration(opts = {}) {
14824
14824
  migrateGlobalCredentials(home, actions);
14825
14825
  await migrateLegacyHooks(root, actions);
14826
14826
  await migrateClaudeMd(root, actions);
14827
+ migrateStandardFile(root, actions);
14827
14828
  removeLegacyPackage(movedProjectDir, npmRemover, actions);
14828
14829
  return { actions, migrated: actions.length > 0 };
14829
14830
  }
@@ -14919,6 +14920,24 @@ async function migrateClaudeMd(root, actions) {
14919
14920
  printWarn(`Could not rewrite CLAUDE.md block: ${err.message}`);
14920
14921
  }
14921
14922
  }
14923
+ function migrateStandardFile(root, actions) {
14924
+ const gateMd = (0, import_node_path14.join)(root, "GATE.md");
14925
+ const verityMd = (0, import_node_path14.join)(root, "VERITY.md");
14926
+ if (!(0, import_node_fs20.existsSync)(gateMd) || (0, import_node_fs20.existsSync)(verityMd)) return;
14927
+ let moved = false;
14928
+ if (isGitRepo(root) && isGitTracked(root, "GATE.md")) {
14929
+ try {
14930
+ (0, import_node_child_process8.execSync)("git mv GATE.md VERITY.md", { cwd: root, stdio: "pipe" });
14931
+ moved = true;
14932
+ } catch {
14933
+ }
14934
+ }
14935
+ if (!moved) moveFile(gateMd, verityMd);
14936
+ const content = readFileSyncSafe(verityMd);
14937
+ const refreshed = content.split("GATE.md").join("VERITY.md");
14938
+ if (refreshed !== content) (0, import_node_fs20.writeFileSync)(verityMd, refreshed);
14939
+ actions.push("Renamed GATE.md \u2192 VERITY.md");
14940
+ }
14922
14941
  function removeLegacyPackage(movedProjectDir, npmRemover, actions) {
14923
14942
  if (!movedProjectDir) return;
14924
14943
  try {
@@ -15024,6 +15043,9 @@ async function needsMigration(root = repoRoot()) {
15024
15043
  if ((0, import_node_fs20.existsSync)(claudeMd) && hasLegacyMemoryBlock(readFileSyncSafe(claudeMd))) {
15025
15044
  return true;
15026
15045
  }
15046
+ if ((0, import_node_fs20.existsSync)((0, import_node_path14.join)(root, "GATE.md")) && !(0, import_node_fs20.existsSync)((0, import_node_path14.join)(root, "VERITY.md"))) {
15047
+ return true;
15048
+ }
15027
15049
  if (await hasLegacyHooksAt(root)) return true;
15028
15050
  return false;
15029
15051
  }
@@ -15779,7 +15801,7 @@ function registerRunCommand(program2) {
15779
15801
  }
15780
15802
 
15781
15803
  // src/cli.ts
15782
- program.name("verity").description("CLI for Verity quality gate service").version("0.20.1").option("--token <token>", "Override authentication token").option("--service-url <url>", "Override service URL").option("--verbose", "Log HTTP requests/responses to stderr");
15804
+ program.name("verity").description("CLI for Verity quality gate service").version("0.20.2").option("--token <token>", "Override authentication token").option("--service-url <url>", "Override service URL").option("--verbose", "Log HTTP requests/responses to stderr");
15783
15805
  registerAuthCommands(program);
15784
15806
  registerHooksCommands(program);
15785
15807
  registerIntentCommands(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/verity-cli",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "description": "CLI for Verity quality gate service",
5
5
  "homepage": "https://verity.md",
6
6
  "repository": {