From a262dfbaaa86bce7f8fa5da95336fb17238d4022 Mon Sep 17 00:00:00 2001 From: joseph02 Date: Sat, 22 Aug 2026 20:05:58 -0700 Subject: [PATCH] refactor(hooks): drop the drift-note comments, the tests already enforce it --- gitnexus-claude-plugin/hooks/hook-db-lock-probe.cjs | 1 - gitnexus-claude-plugin/hooks/hook-lock.js | 1 - gitnexus-claude-plugin/hooks/win-rm-list-json.ps1 | 1 - gitnexus-cursor-integration/hooks/hook-lock.cjs | 1 - gitnexus-factory-plugin/hooks/hook-db-lock-probe.cjs | 1 - gitnexus-factory-plugin/hooks/hook-lock.js | 1 - gitnexus-factory-plugin/hooks/win-rm-list-json.ps1 | 1 - gitnexus/hooks/claude/hook-db-lock-probe.cjs | 1 - gitnexus/hooks/claude/hook-lock.cjs | 1 - gitnexus/hooks/claude/win-rm-list-json.ps1 | 1 - 10 files changed, 10 deletions(-) diff --git a/gitnexus-claude-plugin/hooks/hook-db-lock-probe.cjs b/gitnexus-claude-plugin/hooks/hook-db-lock-probe.cjs index eb0709758..4376795e2 100644 --- a/gitnexus-claude-plugin/hooks/hook-db-lock-probe.cjs +++ b/gitnexus-claude-plugin/hooks/hook-db-lock-probe.cjs @@ -1,4 +1,3 @@ -// Byte-identical across all hook adapter dirs; drift-guarded by hooks.test.ts / factory-plugin.test.ts. Edit all copies. /** * Cross-platform best-effort probe: does another process hold dbPath open * with a command line that looks like a GitNexus MCP/serve server? diff --git a/gitnexus-claude-plugin/hooks/hook-lock.js b/gitnexus-claude-plugin/hooks/hook-lock.js index d9c5913bc..759856384 100644 --- a/gitnexus-claude-plugin/hooks/hook-lock.js +++ b/gitnexus-claude-plugin/hooks/hook-lock.js @@ -1,4 +1,3 @@ -// Byte-identical across all hook adapter dirs; drift-guarded by hooks.test.ts / factory-plugin.test.ts. Edit all copies. const fs = require('fs'); const path = require('path'); diff --git a/gitnexus-claude-plugin/hooks/win-rm-list-json.ps1 b/gitnexus-claude-plugin/hooks/win-rm-list-json.ps1 index 0db965080..5c1564e30 100644 --- a/gitnexus-claude-plugin/hooks/win-rm-list-json.ps1 +++ b/gitnexus-claude-plugin/hooks/win-rm-list-json.ps1 @@ -1,4 +1,3 @@ -# Byte-identical across all hook adapter dirs; drift-guarded by hooks.test.ts / factory-plugin.test.ts. Edit all copies. $ErrorActionPreference = 'Stop' $target = $env:GITNEXUS_HOOK_RM_TARGET if ([string]::IsNullOrWhiteSpace($target)) { Write-Output '[]'; exit 0 } diff --git a/gitnexus-cursor-integration/hooks/hook-lock.cjs b/gitnexus-cursor-integration/hooks/hook-lock.cjs index d9c5913bc..759856384 100644 --- a/gitnexus-cursor-integration/hooks/hook-lock.cjs +++ b/gitnexus-cursor-integration/hooks/hook-lock.cjs @@ -1,4 +1,3 @@ -// Byte-identical across all hook adapter dirs; drift-guarded by hooks.test.ts / factory-plugin.test.ts. Edit all copies. const fs = require('fs'); const path = require('path'); diff --git a/gitnexus-factory-plugin/hooks/hook-db-lock-probe.cjs b/gitnexus-factory-plugin/hooks/hook-db-lock-probe.cjs index eb0709758..4376795e2 100644 --- a/gitnexus-factory-plugin/hooks/hook-db-lock-probe.cjs +++ b/gitnexus-factory-plugin/hooks/hook-db-lock-probe.cjs @@ -1,4 +1,3 @@ -// Byte-identical across all hook adapter dirs; drift-guarded by hooks.test.ts / factory-plugin.test.ts. Edit all copies. /** * Cross-platform best-effort probe: does another process hold dbPath open * with a command line that looks like a GitNexus MCP/serve server? diff --git a/gitnexus-factory-plugin/hooks/hook-lock.js b/gitnexus-factory-plugin/hooks/hook-lock.js index d9c5913bc..759856384 100644 --- a/gitnexus-factory-plugin/hooks/hook-lock.js +++ b/gitnexus-factory-plugin/hooks/hook-lock.js @@ -1,4 +1,3 @@ -// Byte-identical across all hook adapter dirs; drift-guarded by hooks.test.ts / factory-plugin.test.ts. Edit all copies. const fs = require('fs'); const path = require('path'); diff --git a/gitnexus-factory-plugin/hooks/win-rm-list-json.ps1 b/gitnexus-factory-plugin/hooks/win-rm-list-json.ps1 index 0db965080..5c1564e30 100644 --- a/gitnexus-factory-plugin/hooks/win-rm-list-json.ps1 +++ b/gitnexus-factory-plugin/hooks/win-rm-list-json.ps1 @@ -1,4 +1,3 @@ -# Byte-identical across all hook adapter dirs; drift-guarded by hooks.test.ts / factory-plugin.test.ts. Edit all copies. $ErrorActionPreference = 'Stop' $target = $env:GITNEXUS_HOOK_RM_TARGET if ([string]::IsNullOrWhiteSpace($target)) { Write-Output '[]'; exit 0 } diff --git a/gitnexus/hooks/claude/hook-db-lock-probe.cjs b/gitnexus/hooks/claude/hook-db-lock-probe.cjs index eb0709758..4376795e2 100644 --- a/gitnexus/hooks/claude/hook-db-lock-probe.cjs +++ b/gitnexus/hooks/claude/hook-db-lock-probe.cjs @@ -1,4 +1,3 @@ -// Byte-identical across all hook adapter dirs; drift-guarded by hooks.test.ts / factory-plugin.test.ts. Edit all copies. /** * Cross-platform best-effort probe: does another process hold dbPath open * with a command line that looks like a GitNexus MCP/serve server? diff --git a/gitnexus/hooks/claude/hook-lock.cjs b/gitnexus/hooks/claude/hook-lock.cjs index d9c5913bc..759856384 100644 --- a/gitnexus/hooks/claude/hook-lock.cjs +++ b/gitnexus/hooks/claude/hook-lock.cjs @@ -1,4 +1,3 @@ -// Byte-identical across all hook adapter dirs; drift-guarded by hooks.test.ts / factory-plugin.test.ts. Edit all copies. const fs = require('fs'); const path = require('path'); diff --git a/gitnexus/hooks/claude/win-rm-list-json.ps1 b/gitnexus/hooks/claude/win-rm-list-json.ps1 index 0db965080..5c1564e30 100644 --- a/gitnexus/hooks/claude/win-rm-list-json.ps1 +++ b/gitnexus/hooks/claude/win-rm-list-json.ps1 @@ -1,4 +1,3 @@ -# Byte-identical across all hook adapter dirs; drift-guarded by hooks.test.ts / factory-plugin.test.ts. Edit all copies. $ErrorActionPreference = 'Stop' $target = $env:GITNEXUS_HOOK_RM_TARGET if ([string]::IsNullOrWhiteSpace($target)) { Write-Output '[]'; exit 0 }