@arkhera30/cli 0.3.15 → 0.3.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/compose/docker-compose.yml +1 -1
- package/dist/index.js +17 -0
- package/package.json +1 -1
|
@@ -60,7 +60,7 @@ services:
|
|
|
60
60
|
- "${VAULT_PORT:-8000}:8000"
|
|
61
61
|
volumes:
|
|
62
62
|
# Knowledge-base repo — read/write; Vault clones on first boot if empty
|
|
63
|
-
- ${HORUS_DATA_PATH}/
|
|
63
|
+
- ${HORUS_DATA_PATH}/vaults/default:/data/knowledge-repo:rw
|
|
64
64
|
# Write-path workspace: staging area for draft pages before PR
|
|
65
65
|
- vault-workspace:/data/workspace
|
|
66
66
|
environment:
|
package/dist/index.js
CHANGED
|
@@ -672,6 +672,11 @@ var FORGE_SERVICE = ` # \u2500\u2500 Forge \u2500\u2500\u2500\u2500\u2500\u2500
|
|
|
672
672
|
- FORGE_SCAN_PATHS=\${FORGE_SCAN_PATHS:-/data/repos}
|
|
673
673
|
- FORGE_SESSION_TTL_MS=\${FORGE_SESSION_TTL_MS:-1800000}
|
|
674
674
|
- GITHUB_TOKEN=\${GITHUB_TOKEN:-}
|
|
675
|
+
# Fix git "dubious ownership" on bind-mounted repos (bug 4a32728f).
|
|
676
|
+
# Container UID differs from host UID that owns mounted repos.
|
|
677
|
+
- GIT_CONFIG_COUNT=1
|
|
678
|
+
- GIT_CONFIG_KEY_0=safe.directory
|
|
679
|
+
- GIT_CONFIG_VALUE_0=*
|
|
675
680
|
- TYPESENSE_HOST=typesense
|
|
676
681
|
- TYPESENSE_PORT=8108
|
|
677
682
|
- TYPESENSE_API_KEY=\${TYPESENSE_API_KEY:-horus-local-key}
|
|
@@ -2461,6 +2466,16 @@ function checkDataDir(dataDir) {
|
|
|
2461
2466
|
};
|
|
2462
2467
|
}
|
|
2463
2468
|
}
|
|
2469
|
+
function checkGhostDataDir() {
|
|
2470
|
+
const ghostDir = join5(HORUS_DIR, "horus-data");
|
|
2471
|
+
if (!existsSync7(ghostDir)) return null;
|
|
2472
|
+
return {
|
|
2473
|
+
status: "warn",
|
|
2474
|
+
label: "Ghost data directory",
|
|
2475
|
+
message: `Legacy directory ~/Horus/horus-data/ exists \u2014 this is not used by Horus`,
|
|
2476
|
+
hint: `Delete it: rm -rf "${ghostDir}"`
|
|
2477
|
+
};
|
|
2478
|
+
}
|
|
2464
2479
|
function checkDiskSpace(dataDir) {
|
|
2465
2480
|
const checkDir = existsSync7(dataDir) ? dataDir : join5(dataDir, "..");
|
|
2466
2481
|
try {
|
|
@@ -2585,6 +2600,8 @@ var doctorCommand = new Command8("doctor").description("Diagnose common Horus is
|
|
|
2585
2600
|
allResults.push(checkPort(ports.forge, "Forge"));
|
|
2586
2601
|
allResults.push(checkDataDir(dataDir));
|
|
2587
2602
|
allResults.push(checkDiskSpace(dataDir));
|
|
2603
|
+
const ghostCheck = checkGhostDataDir();
|
|
2604
|
+
if (ghostCheck) allResults.push(ghostCheck);
|
|
2588
2605
|
const runtimeOk = allResults[0].status !== "fail";
|
|
2589
2606
|
const composeOk = allResults[1].status !== "fail";
|
|
2590
2607
|
if (runtimeOk && composeOk) {
|