get-claudia 1.55.0 → 1.55.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to Claudia will be documented in this file.
4
4
 
5
+ ## 1.55.2 (2026-03-15)
6
+
7
+ - **BUG FIX: dbScan scope error** -- `dbScan` was declared inside the try block but referenced in the vault callback outside it. Moved declaration to outer scope.
8
+
9
+ ## 1.55.1 (2026-03-15)
10
+
11
+ - **BUG FIX: installer DB scan display** -- The memory database scan output was being overwritten by the progress renderer's ANSI cursor movements. Moved scan results to print after the renderer finishes so all legacy database stats are visible.
12
+
5
13
  ## 1.55.0 (2026-03-15)
6
14
 
7
15
  ### The Unified Memory Release
package/bin/index.js CHANGED
@@ -629,6 +629,7 @@ async function main() {
629
629
  // Run CLI-based setup (no Python daemon needed)
630
630
  let memoryOk = false;
631
631
  let rootCause = null;
632
+ let dbScan = null;
632
633
 
633
634
  try {
634
635
  // Step 1: Environment -- check Node.js version, detect/install/start Ollama
@@ -960,43 +961,9 @@ async function main() {
960
961
  }
961
962
  }
962
963
 
963
- // Scan existing databases and show stats
964
+ // Scan existing databases (results shown after renderer finishes)
964
965
  if (daemonOk) {
965
- const dbScan = scanExistingDatabases();
966
- if (dbScan.totalMemories > 0 || dbScan.hashDbs.length > 0) {
967
- renderer.stopSpinner();
968
- console.log('');
969
- console.log(`${colors.dim}${'─'.repeat(46)}${colors.reset}`);
970
- console.log(` ${colors.boldCyan}Memory Database Scan${colors.reset}`);
971
- console.log('');
972
-
973
- if (dbScan.unified.exists) {
974
- console.log(` ${colors.green}●${colors.reset} claudia.db: ${colors.bold}${dbScan.unified.memories}${colors.reset} memories, ${colors.bold}${dbScan.unified.entities}${colors.reset} entities`);
975
- }
976
-
977
- if (dbScan.hashDbs.length > 0) {
978
- const withData = dbScan.hashDbs.filter(d => d.memories > 0 || d.entities > 0);
979
- const empty = dbScan.hashDbs.filter(d => d.memories === 0 && d.entities === 0);
980
-
981
- if (withData.length > 0) {
982
- console.log('');
983
- console.log(` ${colors.yellow}Found ${withData.length} legacy database${withData.length !== 1 ? 's' : ''} to consolidate:${colors.reset}`);
984
- for (const db of withData) {
985
- console.log(` ${colors.dim}${db.name}${colors.reset}: ${db.memories} memories, ${db.entities} entities`);
986
- }
987
- console.log('');
988
- console.log(` ${colors.dim}These will be auto-merged into claudia.db on next startup.${colors.reset}`);
989
- }
990
- if (empty.length > 0) {
991
- console.log(` ${colors.dim}${empty.length} empty database${empty.length !== 1 ? 's' : ''} will be cleaned up automatically.${colors.reset}`);
992
- }
993
- } else if (dbScan.unified.exists && dbScan.unified.memories > 0) {
994
- console.log(` ${colors.dim}Unified database, no legacy files to consolidate.${colors.reset}`);
995
- }
996
-
997
- console.log(`${colors.dim}${'─'.repeat(46)}${colors.reset}`);
998
- renderer.startSpinner();
999
- }
966
+ dbScan = scanExistingDatabases();
1000
967
  }
1001
968
 
1002
969
  memoryOk = daemonOk || hasExistingDb;
@@ -1015,6 +982,7 @@ async function main() {
1015
982
  // Vault step, then completion
1016
983
  runVaultStep(renderer, () => {
1017
984
  renderer.render();
985
+ showDbScanResults(dbScan);
1018
986
  showCompletion(targetDir, isCurrentDir, memoryOk, rootCause);
1019
987
  });
1020
988
 
@@ -1084,6 +1052,42 @@ async function main() {
1084
1052
 
1085
1053
  // ── Completion block ──
1086
1054
 
1055
+ function showDbScanResults(dbScan) {
1056
+ if (!dbScan) return;
1057
+ if (dbScan.totalMemories === 0 && dbScan.hashDbs.length === 0) return;
1058
+
1059
+ console.log('');
1060
+ console.log(`${colors.dim}${'─'.repeat(46)}${colors.reset}`);
1061
+ console.log(` ${colors.boldCyan}Memory Database Scan${colors.reset}`);
1062
+ console.log('');
1063
+
1064
+ if (dbScan.unified.exists) {
1065
+ console.log(` ${colors.green}●${colors.reset} claudia.db: ${colors.bold}${dbScan.unified.memories}${colors.reset} memories, ${colors.bold}${dbScan.unified.entities}${colors.reset} entities`);
1066
+ }
1067
+
1068
+ if (dbScan.hashDbs.length > 0) {
1069
+ const withData = dbScan.hashDbs.filter(d => d.memories > 0 || d.entities > 0);
1070
+ const empty = dbScan.hashDbs.filter(d => d.memories === 0 && d.entities === 0);
1071
+
1072
+ if (withData.length > 0) {
1073
+ console.log('');
1074
+ console.log(` ${colors.yellow}Found ${withData.length} legacy database${withData.length !== 1 ? 's' : ''} to consolidate:${colors.reset}`);
1075
+ for (const db of withData) {
1076
+ console.log(` ${colors.dim}${db.name}${colors.reset}: ${db.memories} memories, ${db.entities} entities`);
1077
+ }
1078
+ console.log('');
1079
+ console.log(` ${colors.dim}These will be auto-merged into claudia.db on next startup.${colors.reset}`);
1080
+ }
1081
+ if (empty.length > 0) {
1082
+ console.log(` ${colors.dim}${empty.length} empty database${empty.length !== 1 ? 's' : ''} will be cleaned up automatically.${colors.reset}`);
1083
+ }
1084
+ } else if (dbScan.unified.exists && dbScan.unified.memories > 0) {
1085
+ console.log(` ${colors.dim}Unified database, no legacy files to consolidate.${colors.reset}`);
1086
+ }
1087
+
1088
+ console.log(`${colors.dim}${'─'.repeat(46)}${colors.reset}`);
1089
+ }
1090
+
1087
1091
  function showCompletion(targetDir, isCurrentDir, memoryInstalled, failureCause) {
1088
1092
  const rerunCmd = isCurrentDir ? 'npx get-claudia .' : `cd ${targetDir} && npx get-claudia .`;
1089
1093
  const launchCmd = isCurrentDir ? 'claude' : `cd ${targetDir} && claude`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "get-claudia",
3
- "version": "1.55.0",
3
+ "version": "1.55.2",
4
4
  "description": "An AI assistant who learns how you work.",
5
5
  "keywords": [
6
6
  "claudia",