# Changelog ## 2025-08-30 - 5.4.0 - feat(daemon) Add CLI systemd service refresh on version mismatch and fix daemon memory leak; update dependencies - CLI: when client and daemon versions differ, prompt to refresh the systemd service and optionally disable/enable the service automatically - Daemon: clear pidusage state for PIDs on process exit/stop to prevent memory leaks in long-running monitors - Client: expose smartdaemon in client plugin exports and fix import path for tspm.servicemanager - Package: tighten dependency ranges (set specific versions) and add @types for pidusage and ps-tree - Misc: ensure IPC disconnects and PID/socket handling improvements were integrated alongside the above changes ## 2025-08-30 - 5.3.2 - fix(daemon) Improve daemon log delivery and process monitor memory accounting; gate debug output and update tests to numeric ProcessId - Deliver process logs only to subscribed clients instead of broadcasting to all connections (reduce unnecessary IPC traffic and noise) - Implement incremental log memory accounting in ProcessMonitor using an estimateLogSize helper and WeakMap to avoid repeated JSON.stringify and reduce CPU/memory overhead - Seed the incremental size map when loading persisted logs so memory accounting is accurate after restart - Trim logs incrementally by subtracting estimated sizes of removed entries (avoids O(n) recalculation) - Gate verbose console/debug output behind TSPM_DEBUG to prevent spamming in normal runs (applies to ProcessWrapper and ProcessMonitor) - Improve process wrapper stdout/stderr debug logging to be conditional on debug mode - Update tests to use numeric ProcessId via toProcessId(...) for consistency with typed IDs ## 2025-08-30 - 5.3.1 - fix(client(tspmIpcClient)) Use bare topic names for IPC client subscribe/unsubscribe to fix log subscription issues - Updated ts/client/tspm.ipcclient.ts to call ipcClient.subscribe/unsubscribe with the bare topic (e.g. 'logs.') instead of prefixed 'topic:<...>'. - Added comments clarifying that the IpcClient registers the 'topic:' prefix internally. - Fixes incorrect topic registration that could prevent log streaming handlers from receiving messages. ## 2025-08-30 - 5.3.0 - feat(cli/daemon/processmonitor) Add flexible target resolution and search command; improve restart/backoff and error handling - Add new cli command `search` to find processes by id or name fragment. - Allow flexible process targets in CLI commands (accepts numeric id, id:, or name: