Summary
Ensure session/history storage paths work correctly on Windows.
Current State
src/storage/history.ts handles macOS (~/Library/Application Support/jam/) and Linux (~/.local/share/jam/) with a Windows fallback to %APPDATA%/jam/, but this path handling needs testing and may need adjustments.
Tasks
Files
src/storage/history.ts — getSessionDir() function
src/storage/history.test.ts — add platform-specific tests
Acceptance Criteria
Summary
Ensure session/history storage paths work correctly on Windows.
Current State
src/storage/history.tshandles macOS (~/Library/Application Support/jam/) and Linux (~/.local/share/jam/) with a Windows fallback to%APPDATA%/jam/, but this path handling needs testing and may need adjustments.Tasks
getSessionDir()works correctly on Windowspath.joinshould handle this)ensureDir()creates directories correctly on Windowsprocess.platformvaluesFiles
src/storage/history.ts—getSessionDir()functionsrc/storage/history.test.ts— add platform-specific testsAcceptance Criteria