xtrm-tools 2.1.14 → 2.1.16
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/cli/dist/index.cjs +32 -0
- package/cli/dist/index.cjs.map +1 -1
- package/cli/package.json +1 -1
- package/config/hooks.json +9 -5
- package/hooks/README.md +72 -0
- package/hooks/beads-commit-gate.mjs +20 -46
- package/hooks/beads-edit-gate.mjs +19 -53
- package/hooks/beads-gate-core.mjs +209 -0
- package/hooks/beads-gate-messages.mjs +92 -0
- package/hooks/beads-memory-gate.mjs +9 -18
- package/hooks/beads-stop-gate.mjs +17 -46
- package/hooks/gitnexus/gitnexus-hook.cjs +222 -133
- package/package.json +1 -1
package/cli/dist/index.cjs
CHANGED
|
@@ -41601,6 +41601,14 @@ function isDoltInstalled() {
|
|
|
41601
41601
|
return false;
|
|
41602
41602
|
}
|
|
41603
41603
|
}
|
|
41604
|
+
function isGitnexusInstalled() {
|
|
41605
|
+
try {
|
|
41606
|
+
(0, import_child_process4.execSync)("gitnexus --version", { stdio: "ignore" });
|
|
41607
|
+
return true;
|
|
41608
|
+
} catch {
|
|
41609
|
+
return false;
|
|
41610
|
+
}
|
|
41611
|
+
}
|
|
41604
41612
|
async function needsSettingsSync(repoRoot, target) {
|
|
41605
41613
|
const normalizedTarget = target.replace(/\\/g, "/").toLowerCase();
|
|
41606
41614
|
if (normalizedTarget.includes(".agents/skills")) return false;
|
|
@@ -41675,6 +41683,30 @@ async function runGlobalInstall(flags, installOpts = {}) {
|
|
|
41675
41683
|
}
|
|
41676
41684
|
}
|
|
41677
41685
|
}
|
|
41686
|
+
console.log(t.bold("\n \u2699 gitnexus (code intelligence)"));
|
|
41687
|
+
console.log(t.muted(" GitNexus provides knowledge graph queries for impact analysis, execution flows, and symbol context."));
|
|
41688
|
+
const gitnexusOk = isGitnexusInstalled();
|
|
41689
|
+
if (gitnexusOk) {
|
|
41690
|
+
console.log(t.success(" \u2713 gitnexus already installed\n"));
|
|
41691
|
+
} else {
|
|
41692
|
+
let doInstallGitnexus = effectiveYes;
|
|
41693
|
+
if (!effectiveYes) {
|
|
41694
|
+
const { install } = await (0, import_prompts3.default)({
|
|
41695
|
+
type: "confirm",
|
|
41696
|
+
name: "install",
|
|
41697
|
+
message: "Install gitnexus globally? (recommended for MCP server and CLI tools)",
|
|
41698
|
+
initial: true
|
|
41699
|
+
});
|
|
41700
|
+
doInstallGitnexus = install;
|
|
41701
|
+
}
|
|
41702
|
+
if (doInstallGitnexus) {
|
|
41703
|
+
console.log(t.muted("\n Installing gitnexus..."));
|
|
41704
|
+
(0, import_child_process5.spawnSync)("npm", ["install", "-g", "gitnexus"], { stdio: "inherit" });
|
|
41705
|
+
console.log(t.success(" \u2713 gitnexus installed\n"));
|
|
41706
|
+
} else {
|
|
41707
|
+
console.log(t.muted(" \u2139 Skipped. Install later with: npm install -g gitnexus\n"));
|
|
41708
|
+
}
|
|
41709
|
+
}
|
|
41678
41710
|
const diffTasks = new Listr(
|
|
41679
41711
|
targets.map((target) => ({
|
|
41680
41712
|
title: formatTargetLabel(target),
|