Adds 40 rarely-used and Windows-version-specific commands across 9 existing
categories: 5 Windows 10-only (maxOsBuild 19045 — the first use of maxOsBuild
gating in the catalog), 11 Windows 11-only (minOsBuild 22000+, incl. 3 for
24H2/26100), and 24 rare cross-version diagnostics/info/security/dev commands.
Each command is wired with Cmd_<id>_Title/_Desc keys in all five resource
cultures (en, vi, ja, zh-Hans, es); reg-based HKCU tweaks include
affectedRegistryValues and confirmBeforeRun for Caution entries.
Also fixes TPM Status (info.tpm) and Defender Exclusions
(sec.defender.exclusions): both now require admin so their queries
(Get-CimInstance on MicrosoftTpm / Get-MpPreference) return data instead of
appearing blank — they run in-process without elevation today.
Adds CommandDefinitionTests coverage for maxOsBuild gating (Win10-only
commands hidden on Windows 11, visible on Windows 10).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds optional minOsBuild/maxOsBuild to a command; the WPF catalog
projection hides commands that do not apply to the current OS build, so
Windows 11-only tweaks never appear on Windows 10 (and vice-versa).
- Domain: CommandDefinition gains MinOsBuild/MaxOsBuild + the pure
AppliesToOsBuild(build) predicate (no Win32 dependency).
- Infrastructure: CommandDto maps the fields; CatalogLoader validates
positive values and maxOsBuild >= minOsBuild. ICatalogProvider still
returns the full set, so the Debug panel and tests are unaffected.
- WPF: CatalogViewModelBuilder.Build(catalog, osBuild) filters once,
centrally — covering the list, palette, category counts and every
dashboard. The OS build comes from the existing ISystemInfoService.
- Catalog: gate the Win11 context-menu, taskbar-alignment and
clock-seconds tweaks (minOsBuild 22000 / 22621).
Tests: AppliesToOsBuild theory + catalog range/positive validation;
189 pass. App launches without startup regressions.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>