diff options
| author | Adam Malczewski <[email protected]> | 2026-06-24 02:04:46 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-24 02:04:46 +0900 |
| commit | 41ca91a959ae245e76e50f1b55c8b21592bc6c50 (patch) | |
| tree | 289be7c0df654e75b6bc7552dd38bf0b9bda852d /packages/kernel/src | |
| parent | 3a688edee373cbbc291a149e50e1d2802e2e29a4 (diff) | |
| download | dispatch-41ca91a959ae245e76e50f1b55c8b21592bc6c50.tar.gz dispatch-41ca91a959ae245e76e50f1b55c8b21592bc6c50.zip | |
feat(system-prompt): rich system:os with WSL detection + Linux distro
system:os now returns a descriptive string instead of the raw platform:
- Linux: reads /etc/os-release for distro name (PRETTY_NAME or NAME+VERSION_ID)
- WSL detection: checks /proc/sys/fs/binfmt_misc/WSLInterop or 'microsoft'
in /proc/version — appends (WSL) to the distro string
- Non-Linux: returns process.platform as-is (darwin, win32, etc.)
Examples: 'Ubuntu 22.04 LTS', 'Ubuntu 22.04 LTS (WSL)', 'Debian 12',
'Linux (WSL)', 'darwin'. All file reads use injected fs adapters (testable).
7 new resolver tests. 1403 vitest pass. FE CR-9.
Diffstat (limited to 'packages/kernel/src')
0 files changed, 0 insertions, 0 deletions
