forgehive 1.0.5 → 1.0.6
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/dist/cli.js +9 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -9450,7 +9450,7 @@ async function promptConfirm(question) {
|
|
|
9450
9450
|
});
|
|
9451
9451
|
});
|
|
9452
9452
|
}
|
|
9453
|
-
var ANSI = { bold: "\x1B[1m", dim: "\x1B[2m", reset: "\x1B[0m" };
|
|
9453
|
+
var ANSI = { bold: "\x1B[1m", dim: "\x1B[2m", reset: "\x1B[0m", cyan: "\x1B[36m", green: "\x1B[32m" };
|
|
9454
9454
|
var CAP_DISPLAY = {
|
|
9455
9455
|
// Sprache
|
|
9456
9456
|
javascript: "JavaScript",
|
|
@@ -9756,7 +9756,7 @@ function buildCapabilitySummary(ids) {
|
|
|
9756
9756
|
const sep = `${ANSI.dim} \xB7 ${ANSI.reset}`;
|
|
9757
9757
|
return rows.map(([label, capIds]) => {
|
|
9758
9758
|
const names = capIds.map((id) => CAP_DISPLAY[id] ?? id).join(sep);
|
|
9759
|
-
return ` ${ANSI.bold}${label.padEnd(labelWidth)}${ANSI.reset} ${names}`;
|
|
9759
|
+
return ` ${ANSI.green}\u2726${ANSI.reset} ${ANSI.bold}${label.padEnd(labelWidth)}${ANSI.reset} ${names}`;
|
|
9760
9760
|
}).join("\n");
|
|
9761
9761
|
}
|
|
9762
9762
|
if (command === "init") {
|
|
@@ -9778,13 +9778,17 @@ if (command === "init") {
|
|
|
9778
9778
|
console.log(` Nutze 'fh scan --update' um nur den Scan zu aktualisieren.`);
|
|
9779
9779
|
process.exit(0);
|
|
9780
9780
|
}
|
|
9781
|
-
process.stdout.write("\u{1F50D} Analysiere Projekt...");
|
|
9782
9781
|
const scanResult = scan(projectRoot);
|
|
9783
9782
|
const capMap = mapSignalsToCapabilities(scanResult);
|
|
9784
9783
|
const totalSignals = scanResult.signals.length;
|
|
9785
9784
|
const totalCaps = capMap.confirmed.length;
|
|
9786
|
-
|
|
9787
|
-
|
|
9785
|
+
const projectName = path40.basename(projectRoot);
|
|
9786
|
+
const sep51 = ANSI.dim + "\u2500".repeat(51) + ANSI.reset;
|
|
9787
|
+
console.log(`
|
|
9788
|
+
\u{1F50D} ${ANSI.cyan}${ANSI.bold}ForgeHive${ANSI.reset} ${ANSI.dim}\xB7${ANSI.reset} Stack Intelligence`);
|
|
9789
|
+
console.log(` ${ANSI.dim}${projectName} \xB7 ${totalSignals} Signale \xB7 ${totalCaps} Capabilities${ANSI.reset}`);
|
|
9790
|
+
console.log(sep51);
|
|
9791
|
+
console.log();
|
|
9788
9792
|
const block = loadClaudeMdBlock();
|
|
9789
9793
|
writeForgehiveDir(projectRoot, scanResult, capMap, block);
|
|
9790
9794
|
const hash = computeHash(projectRoot);
|