claude-mem 12.4.4 → 12.4.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.
@@ -339,61 +339,6 @@ function installUv() {
339
339
  }
340
340
  }
341
341
 
342
- /**
343
- * Add shell alias for claude-mem command
344
- */
345
- function installCLI() {
346
- const WORKER_CLI = join(ROOT, 'scripts', 'worker-service.cjs');
347
- const bunPath = getBunPath() || 'bun';
348
- const aliasLine = `alias claude-mem='${bunPath} "${WORKER_CLI}"'`;
349
- const markerPath = join(ROOT, '.cli-installed');
350
-
351
- // Skip if already installed
352
- if (existsSync(markerPath)) return;
353
-
354
- try {
355
- if (IS_WINDOWS) {
356
- // Windows: Add to PATH via PowerShell profile
357
- const profilePath = join(process.env.USERPROFILE || homedir(), 'Documents', 'PowerShell', 'Microsoft.PowerShell_profile.ps1');
358
- const profileDir = join(process.env.USERPROFILE || homedir(), 'Documents', 'PowerShell');
359
- const functionDef = `function claude-mem { & "${bunPath}" "${WORKER_CLI}" $args }\n`;
360
-
361
- if (!existsSync(profileDir)) {
362
- execSync(`mkdir "${profileDir}"`, { stdio: 'ignore', shell: true });
363
- }
364
-
365
- const existingContent = existsSync(profilePath) ? readFileSync(profilePath, 'utf-8') : '';
366
- if (!existingContent.includes('function claude-mem')) {
367
- writeFileSync(profilePath, existingContent + '\n' + functionDef);
368
- console.error(`✅ PowerShell function added to profile`);
369
- console.error(' Restart your terminal to use: claude-mem <command>');
370
- }
371
- } else {
372
- // Unix: Add alias to shell configs
373
- const shellConfigs = [
374
- join(homedir(), '.bashrc'),
375
- join(homedir(), '.zshrc')
376
- ];
377
-
378
- for (const config of shellConfigs) {
379
- if (existsSync(config)) {
380
- const content = readFileSync(config, 'utf-8');
381
- if (!content.includes('alias claude-mem=')) {
382
- writeFileSync(config, content + '\n' + aliasLine + '\n');
383
- console.error(`✅ Alias added to ${config}`);
384
- }
385
- }
386
- }
387
- console.error(' Restart your terminal to use: claude-mem <command>');
388
- }
389
-
390
- writeFileSync(markerPath, new Date().toISOString());
391
- } catch (error) {
392
- console.error(`⚠️ Could not add shell alias: ${error.message}`);
393
- console.error(` Use directly: ${bunPath} "${WORKER_CLI}" <command>`);
394
- }
395
- }
396
-
397
342
  /**
398
343
  * Check if dependencies need to be installed
399
344
  */
@@ -629,8 +574,8 @@ try {
629
574
  // Worker will be started fresh by next hook in chain (worker-service.cjs start)
630
575
  }
631
576
 
632
- // Step 4: Install CLI to PATH
633
- installCLI();
577
+ // Step 4 (removed in #2054): legacy `claude-mem` shell alias was deleted.
578
+ // Users invoke the CLI via `npx claude-mem <cmd>` or `bunx claude-mem <cmd>`.
634
579
 
635
580
  // Step 5: Warn if the bundled native binary is incompatible with this platform
636
581
  checkBinaryPlatformCompatibility();