docs(hooks): point bundled guard copies at their drift tests

This commit is contained in:
joseph02 2026-07-21 11:57:22 -07:00
parent b8dc8f87d2
commit 550ee29e9e
10 changed files with 40 additions and 0 deletions

View file

@ -1,3 +1,7 @@
// Bundled byte-identical into every hook adapter directory — each one installs
// standalone and cannot import across packages. Drift guards in
// gitnexus/test/unit/hooks.test.ts and test/unit/factory-plugin.test.ts fail if the
// copies diverge; fix them together.
/**
* Cross-platform best-effort probe: does another process hold dbPath open
* with a command line that looks like a GitNexus MCP/serve server?

View file

@ -1,3 +1,7 @@
// Bundled byte-identical into every hook adapter directory — each one installs
// standalone and cannot import across packages. Drift guards in
// gitnexus/test/unit/hooks.test.ts and test/unit/factory-plugin.test.ts fail if the
// copies diverge; fix them together.
const fs = require('fs');
const path = require('path');

View file

@ -1,3 +1,7 @@
# Bundled byte-identical into every hook adapter directory — each one installs
# standalone and cannot import across packages. Drift guards in
# gitnexus/test/unit/hooks.test.ts and test/unit/factory-plugin.test.ts fail if the
# copies diverge; fix them together.
$ErrorActionPreference = 'Stop'
$target = $env:GITNEXUS_HOOK_RM_TARGET
if ([string]::IsNullOrWhiteSpace($target)) { Write-Output '[]'; exit 0 }

View file

@ -1,3 +1,7 @@
// Bundled byte-identical into every hook adapter directory — each one installs
// standalone and cannot import across packages. Drift guards in
// gitnexus/test/unit/hooks.test.ts and test/unit/factory-plugin.test.ts fail if the
// copies diverge; fix them together.
const fs = require('fs');
const path = require('path');

View file

@ -1,3 +1,7 @@
// Bundled byte-identical into every hook adapter directory — each one installs
// standalone and cannot import across packages. Drift guards in
// gitnexus/test/unit/hooks.test.ts and test/unit/factory-plugin.test.ts fail if the
// copies diverge; fix them together.
/**
* Cross-platform best-effort probe: does another process hold dbPath open
* with a command line that looks like a GitNexus MCP/serve server?

View file

@ -1,3 +1,7 @@
// Bundled byte-identical into every hook adapter directory — each one installs
// standalone and cannot import across packages. Drift guards in
// gitnexus/test/unit/hooks.test.ts and test/unit/factory-plugin.test.ts fail if the
// copies diverge; fix them together.
const fs = require('fs');
const path = require('path');

View file

@ -1,3 +1,7 @@
# Bundled byte-identical into every hook adapter directory — each one installs
# standalone and cannot import across packages. Drift guards in
# gitnexus/test/unit/hooks.test.ts and test/unit/factory-plugin.test.ts fail if the
# copies diverge; fix them together.
$ErrorActionPreference = 'Stop'
$target = $env:GITNEXUS_HOOK_RM_TARGET
if ([string]::IsNullOrWhiteSpace($target)) { Write-Output '[]'; exit 0 }

View file

@ -1,3 +1,7 @@
// Bundled byte-identical into every hook adapter directory — each one installs
// standalone and cannot import across packages. Drift guards in
// gitnexus/test/unit/hooks.test.ts and test/unit/factory-plugin.test.ts fail if the
// copies diverge; fix them together.
/**
* Cross-platform best-effort probe: does another process hold dbPath open
* with a command line that looks like a GitNexus MCP/serve server?

View file

@ -1,3 +1,7 @@
// Bundled byte-identical into every hook adapter directory — each one installs
// standalone and cannot import across packages. Drift guards in
// gitnexus/test/unit/hooks.test.ts and test/unit/factory-plugin.test.ts fail if the
// copies diverge; fix them together.
const fs = require('fs');
const path = require('path');

View file

@ -1,3 +1,7 @@
# Bundled byte-identical into every hook adapter directory — each one installs
# standalone and cannot import across packages. Drift guards in
# gitnexus/test/unit/hooks.test.ts and test/unit/factory-plugin.test.ts fail if the
# copies diverge; fix them together.
$ErrorActionPreference = 'Stop'
$target = $env:GITNEXUS_HOOK_RM_TARGET
if ([string]::IsNullOrWhiteSpace($target)) { Write-Output '[]'; exit 0 }