Release v3.6.5

Published from npm package build
Source: https://github.com/thedotmack/claude-mem-source
This commit is contained in:
Alex Newman
2025-09-14 14:36:54 -04:00
parent 8ebcb55b0d
commit d01c2afaa6
5 changed files with 97 additions and 78 deletions
+5 -3
View File
@@ -1,7 +1,7 @@
import { OptionValues } from 'commander';
import { readFileSync, writeFileSync, existsSync, chmodSync, mkdirSync, copyFileSync, statSync, readdirSync } from 'fs';
import { join, resolve, dirname } from 'path';
import { homedir } from 'os';
import { homedir, platform } from 'os';
import { execSync } from 'child_process';
import { fileURLToPath } from 'url';
import * as p from '@clack/prompts';
@@ -95,7 +95,8 @@ async function validatePrerequisites(): Promise<boolean> {
name: 'Claude Code CLI',
check: async () => {
try {
execSync('which claude', { stdio: 'ignore' });
const command = platform() === 'win32' ? 'where claude' : 'which claude';
execSync(command, { stdio: 'ignore' });
return { success: true, message: '' };
} catch {
return { success: false, message: 'Claude Code CLI not found. Please install: https://docs.anthropic.com/claude/docs/claude-code' };
@@ -184,7 +185,8 @@ async function validatePrerequisites(): Promise<boolean> {
// <Block> Claude binary path detection
function detectClaudePath(): string | null {
try {
const path = execSync('which claude', {
const command = platform() === 'win32' ? 'where claude' : 'which claude';
const path = execSync(command, {
encoding: 'utf8',
stdio: ['ignore', 'pipe', 'ignore']
}).trim();
@@ -613,6 +613,14 @@ export function outputSessionStartContent(params: {
// Overview section at bottom with session grouping
if (overviews.length > 0) {
const sessionGroups = groupOverviewsBySession(overviews);
// Sort groups by timestamp, newest first
sessionGroups.sort((a, b) => {
const timeA = a.earliestTimestamp?.getTime() || 0;
const timeB = b.earliestTimestamp?.getTime() || 0;
return timeB - timeA; // Descending order (newest first)
});
console.log('');
console.log(wrapText('🧠 Overviews', width));