xtrm-tools 2.1.13 → 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 +40 -0
- package/cli/dist/index.cjs.map +1 -1
- package/cli/package.json +1 -1
- package/config/hooks.json +9 -5
- package/config/mcp_servers.json +11 -0
- 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/hooks/main-guard.mjs +20 -0
- package/package.json +1 -1
- package/skills/using-xtrm/SKILL.md +271 -0
package/cli/dist/index.cjs
CHANGED
|
@@ -41264,6 +41264,7 @@ async function bootstrapProjectInit() {
|
|
|
41264
41264
|
}
|
|
41265
41265
|
await runBdInitForProject(projectRoot);
|
|
41266
41266
|
await runGitNexusInitForProject(projectRoot);
|
|
41267
|
+
await syncProjectMcpServers(projectRoot);
|
|
41267
41268
|
}
|
|
41268
41269
|
async function runBdInitForProject(projectRoot) {
|
|
41269
41270
|
console.log(kleur_default.bold("Running beads initialization (bd init)..."));
|
|
@@ -41438,6 +41439,13 @@ function readExistingPiValues(piAgentDir) {
|
|
|
41438
41439
|
if (auth?.zai?.key) values["ZAI_API_KEY"] = auth.zai.key;
|
|
41439
41440
|
} catch {
|
|
41440
41441
|
}
|
|
41442
|
+
try {
|
|
41443
|
+
const models = JSON.parse(require("fs").readFileSync(import_path12.default.join(piAgentDir, "models.json"), "utf8"));
|
|
41444
|
+
if (!values["DASHSCOPE_API_KEY"] && models?.providers?.dashscope?.apiKey) {
|
|
41445
|
+
values["DASHSCOPE_API_KEY"] = models.providers.dashscope.apiKey;
|
|
41446
|
+
}
|
|
41447
|
+
} catch {
|
|
41448
|
+
}
|
|
41441
41449
|
return values;
|
|
41442
41450
|
}
|
|
41443
41451
|
function isPiInstalled() {
|
|
@@ -41593,6 +41601,14 @@ function isDoltInstalled() {
|
|
|
41593
41601
|
return false;
|
|
41594
41602
|
}
|
|
41595
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
|
+
}
|
|
41596
41612
|
async function needsSettingsSync(repoRoot, target) {
|
|
41597
41613
|
const normalizedTarget = target.replace(/\\/g, "/").toLowerCase();
|
|
41598
41614
|
if (normalizedTarget.includes(".agents/skills")) return false;
|
|
@@ -41667,6 +41683,30 @@ async function runGlobalInstall(flags, installOpts = {}) {
|
|
|
41667
41683
|
}
|
|
41668
41684
|
}
|
|
41669
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
|
+
}
|
|
41670
41710
|
const diffTasks = new Listr(
|
|
41671
41711
|
targets.map((target) => ({
|
|
41672
41712
|
title: formatTargetLabel(target),
|