CLI generate/clean commands with cross-platform support #10

Closed
opened 2026-01-21 20:45:28 +00:00 by jack · 0 comments
Owner

Summary

claude-mem generate and claude-mem clean CLI commands.

Changes

Validation Fixes

  • Folder existence check before processing
  • Path traversal prevention
  • No more blind mkdirSync

Cross-Platform

  • path.sep instead of hardcoded /
  • toDbPath() and toFsPath() utilities

CLI Commands

  • generate --dry-run: Preview CLAUDE.md generation
  • clean --dry-run: Preview cleanup

Shell Alias Installation

  • Auto alias setup in smart-install.js

Migrated-From: jack/claude-mem-fork#56

## Summary `claude-mem generate` and `claude-mem clean` CLI commands. ## Changes ### Validation Fixes - Folder existence check before processing - Path traversal prevention - No more blind `mkdirSync` ### Cross-Platform - `path.sep` instead of hardcoded `/` - `toDbPath()` and `toFsPath()` utilities ### CLI Commands - `generate --dry-run`: Preview CLAUDE.md generation - `clean --dry-run`: Preview cleanup ### Shell Alias Installation - Auto alias setup in smart-install.js -------- Migrated-From: jack/claude-mem-fork#56
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
customable/claude-mem#10
No description provided.