Commit f0b62ce
feat: Add Windows compatibility support
Add cross-platform utilities and guidelines to ensure the Empathy Framework
works correctly on Windows, macOS, and Linux.
Changes:
- Add platform_utils.py module with:
- Platform detection (is_windows, is_macos, is_linux)
- Platform-appropriate directories (logs, data, config, cache)
- Asyncio Windows event loop policy handling
- UTF-8 file utilities
- Path normalization helpers
- Fix hardcoded Unix paths:
- audit_logger.py: Use platform-appropriate default log directory
- cli.py: Call setup_asyncio_policy() at startup
- Add cross-platform coding guidelines to python-standards.md:
- File path handling with pathlib
- UTF-8 encoding for text files
- Asyncio policy setup for Windows
- Testing guidance for multi-platform
- Add check_platform_compat.py script for CI integration:
- Detects hardcoded paths, missing encoding, asyncio issues
- JSON output for CI parsing
- --strict mode for blocking builds
- Add comprehensive tests (40 tests in test_platform_utils.py)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 7d7a4e7 commit f0b62ce
File tree
6 files changed
+1169
-12
lines changed- .claude
- scripts
- src/empathy_os
- memory/security
- tests
6 files changed
+1169
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
0 commit comments