Skip to content

Releases: thedotmack/claude-mem

v7.3.0

15 Dec 03:01

Choose a tag to compare

Features

  • Table-based search output: Unified timeline formatting with cleaner, more organized presentation of search results grouped by date and file
  • Simplified API: Removed unused format parameter from MCP search tools for cleaner interface
  • Shared formatting utilities: Extracted common timeline formatting logic into reusable module

Changes

  • Default model upgrade: Changed default model from Haiku to Sonnet for better observation quality
  • Removed fake URIs: Replaced claude-mem:// pseudo-protocol with actual HTTP API endpoints for citations

Bug Fixes

  • Fixed undefined debug function calls in MCP server
  • Fixed skillPath variable scoping bug in instructions endpoint
  • Extracted magic numbers to named constants for better code maintainability

v7.2.3 - Fix MCP Server Restart Timing

15 Dec 04:39

Choose a tag to compare

Bug Fixes

  • Fix MCP server failures on plugin updates: Add 2-second pre-restart delay in ensureWorkerVersionMatches() to give files time to sync before killing the old worker. This prevents the race condition where the worker restart happened too quickly after plugin file updates, causing "Worker service connection failed" errors.

Changes

  • Add PRE_RESTART_SETTLE_DELAY constant (2000ms) to hook-constants.ts
  • Add delay before ProcessManager.restart() call in worker-utils.ts
  • Fix pre-existing bug where port variable was undefined in error logging

🤖 Generated with Claude Code

v7.2.2

15 Dec 03:55

Choose a tag to compare

Changes

  • Refactor: Consolidate mem-search skill, remove desktop-skill duplication
    • Delete separate desktop-skill/ directory (was outdated)
    • Generate mem-search.zip during build from plugin/skills/mem-search/
    • Update docs with correct MCP tool list and new download path
    • Single source of truth for Claude Desktop skill

v7.2.1

14 Dec 20:45

Choose a tag to compare

Translation Script Enhancements

This release adds powerful enhancements to the README translation system, supporting 35 languages with improved efficiency and caching.

What's New

Translation Script Improvements:

  • Caching System: Smart .translation-cache.json tracks content hashes to skip re-translating unchanged content
  • Parallel Processing: --parallel <n> flag enables concurrent translations for faster execution
  • Force Re-translation: --force flag to override cache when needed
  • Tier-Based Scripts: Organized translation workflows by language priority
    • npm run translate:tier1 - 7 major languages (Chinese, Japanese, Korean, etc.)
    • npm run translate:tier2 - 8 strong tech scene languages (Hebrew, Arabic, Russian, etc.)
    • npm run translate:tier3 - 7 emerging markets (Vietnamese, Indonesian, Thai, etc.)
    • npm run translate:tier4 - 6 additional languages (Italian, Greek, Hungarian, etc.)
    • npm run translate:all - All 35 languages sequentially
  • Better Output Handling: Automatically strips markdown code fences if Claude wraps output
  • Translation Disclaimer: Adds community correction notice at top of translated files
  • Performance: Uses Bun runtime for faster execution

Supported Languages (35 Total)

Arabic, Bengali, Brazilian Portuguese, Bulgarian, Chinese (Simplified), Chinese (Traditional), Czech, Danish, Dutch, Estonian, Finnish, French, German, Greek, Hebrew, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Latvian, Lithuanian, Norwegian, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Spanish, Swedish, Thai, Turkish, Ukrainian, Vietnamese

Breaking Changes

None - fully backward compatible.

Installation

# Update via npm
npm install -g [email protected]

# Or reinstall plugin
claude plugin install thedotmack/claude-mem

Full Changelog: v7.2.0...v7.2.1

v7.2.0 - Automated Bug Report Generator

14 Dec 20:34

Choose a tag to compare

🎉 New Features

Automated Bug Report Generator

Added comprehensive bug report tool that streamlines issue reporting with AI assistance:

  • Command: npm run bug-report
  • 🌎 Multi-language Support: Write in ANY language, auto-translates to English
  • 📊 Smart Diagnostics: Automatically collects:
    • Version information (claude-mem, Claude Code, Node.js, Bun)
    • Platform details (OS, version, architecture)
    • Worker status (running state, PID, port, uptime, stats)
    • Last 50 lines of logs (worker + silent debug)
    • Database info and configuration settings
  • 🤖 AI-Powered: Uses Claude Agent SDK to generate professional GitHub issues
  • 📝 Interactive: Multiline input support with intuitive prompts
  • 🔒 Privacy-Safe:
    • Auto-sanitizes all file paths (replaces home directory with ~)
    • Optional --no-logs flag to exclude logs
  • ⚡ Streaming Progress: Real-time character count and animated spinner
  • 🌐 One-Click Submit: Auto-opens GitHub with pre-filled title and body

Usage

From the plugin directory:

cd ~/.claude/plugins/marketplaces/thedotmack
npm run bug-report

Plugin Paths:

  • macOS/Linux: ~/.claude/plugins/marketplaces/thedotmack
  • Windows: %USERPROFILE%\.claude\plugins\marketplaces\thedotmack

Options:

npm run bug-report --no-logs    # Skip logs for privacy
npm run bug-report --verbose    # Show all diagnostics
npm run bug-report --help       # Show help

📚 Documentation

  • Updated README with bug report section and usage instructions
  • Enhanced GitHub issue template to feature automated tool
  • Added platform-specific directory paths

🔧 Technical Details

Files Added:

  • scripts/bug-report/cli.ts - Interactive CLI entry point
  • scripts/bug-report/index.ts - Core logic with Agent SDK integration
  • scripts/bug-report/collector.ts - System diagnostics collector

Files Modified:

  • package.json - Added bug-report script
  • README.md - New Bug Reports section
  • .github/ISSUE_TEMPLATE/bug_report.md - Updated with automated tool instructions

Full Changelog: v7.1.15...v7.2.0

v7.1.15

14 Dec 19:38

Choose a tag to compare

🐛 Bug Fixes

Worker Service Initialization

  • Fixed 404 error on /api/context/inject during worker startup
  • Route is now registered immediately instead of after database initialization
  • Prevents race condition on fresh installs and restarts
  • Added integration test for early context inject route access

Technical Details

The context hook was failing with Cannot GET /api/context/inject because the route was registered only after database initialization completed. This created a race condition where the hook could attempt to access the endpoint before it existed.

Implementation:

  • Added initializationComplete Promise to track async background initialization
  • Register /api/context/inject route immediately in setupRoutes()
  • Early handler blocks requests until initialization resolves (30s timeout)
  • Route handler duplicates logic from SearchRoutes.handleContextInject by design to prevent 404s

Testing:

  • Added integration test verifying route registration and timeout handling

Fixes #305
Related: PR #310

v7.1.14 - Enhanced Error Messages & Timezone Logging

14 Dec 04:39

Choose a tag to compare

Enhanced Error Handling & Logging

This patch release improves error message quality and logging across the claude-mem system.

Error Message Improvements

Standardized Hook Error Handling

  • Created shared error handlers (handleFetchError, handleWorkerError) for consistent error messages
  • Platform-aware restart instructions (macOS, Linux, Windows) with correct commands
  • Migrated all hooks (context, new, save, summary) to use standardized handlers
  • Enhanced error logging with actionable context before throwing restart instructions

ChromaSync Error Standardization

  • Consistent client initialization checks across all methods
  • Enhanced error messages with troubleshooting steps and restart instructions
  • Better context about which operation failed

Worker Service Improvements

  • Enhanced version endpoint error logging with status codes and response text
  • Improved worker restart error messages with PM2 commands
  • Better context in all worker-related error scenarios

Bug Fixes

  • Issue #260: Fixed happy_path_error__with_fallback misuse in save-hook causing false "Missing cwd" errors
  • Removed unnecessary happy_path_error calls from SDKAgent that were masking real error messages
  • Cleaned up migration logging to use console.log instead of console.error for non-error events

Logging Improvements

Timezone-Aware Timestamps

  • Worker logs now use local machine timezone instead of UTC
  • Maintains same format (YYYY-MM-DD HH:MM:SS.mmm) but reflects local time
  • Easier debugging and log correlation with system events
  • Enhanced worker-cli logging output format

Test Coverage

Added comprehensive test suites:

  • tests/error-handling/hook-error-logging.test.ts - 12 tests for hook error handler behavior
  • tests/services/chroma-sync-errors.test.ts - ChromaSync error message consistency
  • tests/integration/hook-execution-environments.test.ts - Bun PATH resolution across shells
  • docs/context/TEST_AUDIT_2025-12-13.md - Comprehensive audit report

Files Changed

27 files changed: 1,435 additions, 200 deletions

What's Changed

  • Standardize and enhance error handling across hooks and worker service by @thedotmack in #295
  • Timezone-aware logging for worker service and CLI
  • Complete build with all plugin files included

Full Changelog: v7.1.12...v7.1.14

🤖 Generated with Claude Code

v7.1.13 - Enhanced Error Messages & Timezone Logging

14 Dec 04:34

Choose a tag to compare

Enhanced Error Handling & Logging

This patch release improves error message quality and logging across the claude-mem system.

Error Message Improvements

Standardized Hook Error Handling

  • Created shared error handlers (handleFetchError, handleWorkerError) for consistent error messages
  • Platform-aware restart instructions (macOS, Linux, Windows) with correct commands
  • Migrated all hooks (context, new, save, summary) to use standardized handlers
  • Enhanced error logging with actionable context before throwing restart instructions

ChromaSync Error Standardization

  • Consistent client initialization checks across all methods
  • Enhanced error messages with troubleshooting steps and restart instructions
  • Better context about which operation failed

Worker Service Improvements

  • Enhanced version endpoint error logging with status codes and response text
  • Improved worker restart error messages with PM2 commands
  • Better context in all worker-related error scenarios

Bug Fixes

  • Issue #260: Fixed happy_path_error__with_fallback misuse in save-hook causing false "Missing cwd" errors
  • Removed unnecessary happy_path_error calls from SDKAgent that were masking real error messages
  • Cleaned up migration logging to use console.log instead of console.error for non-error events

Logging Improvements

Timezone-Aware Timestamps

  • Worker logs now use local machine timezone instead of UTC
  • Maintains same format (YYYY-MM-DD HH:MM:SS.mmm) but reflects local time
  • Easier debugging and log correlation with system events

Test Coverage

Added comprehensive test suites:

  • tests/error-handling/hook-error-logging.test.ts - 12 tests for hook error handler behavior
  • tests/services/chroma-sync-errors.test.ts - ChromaSync error message consistency
  • tests/integration/hook-execution-environments.test.ts - Bun PATH resolution across shells
  • docs/context/TEST_AUDIT_2025-12-13.md - Comprehensive audit report

Files Changed

27 files changed: 1,435 additions, 200 deletions

What's Changed

  • Standardize and enhance error handling across hooks and worker service by @thedotmack in #295
  • Timezone-aware logging for worker service

Full Changelog: v7.1.12...v7.1.13

🤖 Generated with Claude Code

v7.1.12: Fix data directory creation on first install

14 Dec 03:24

Choose a tag to compare

What's Fixed

  • Fix data directory creation: Ensure ~/.claude-mem/ directory exists before writing PM2 migration marker file
    • Fixes ENOENT errors on first-time installation (issue #259)
    • Adds mkdirSync(dataDir, { recursive: true }) in startWorker() before marker file write
    • Resolves Windows installation failures introduced in f923c0c and exposed in 5d4e71d

Changes

  • Added directory creation check in src/shared/worker-utils.ts
  • All 52 tests passing

Full Changelog: v7.1.11...v7.1.12

v7.1.11

14 Dec 02:00

Choose a tag to compare

What's Changed

Refactor: Simplified hook execution by removing bun-wrapper indirection

Hooks are compiled to standard JavaScript and work perfectly with Node. The bun-wrapper was solving a problem that doesn't exist - hooks don't use Bun-specific APIs, they're just HTTP clients to the worker service.

Benefits:

  • Removes ~100 lines of code
  • Simpler cross-platform support (especially Windows)
  • No PATH resolution needed for hooks
  • Worker still uses Bun where performance matters
  • Follows YAGNI and Simple First principles

Fixes:

  • Fish shell compatibility issue (#264)

Full Changelog: v7.1.10...v7.1.11