feat(commands): expose directml.applicable in hardware_status (P2)

This commit is contained in:
iamdoubz
2026-07-06 07:21:50 -05:00
parent 281ccf0b18
commit ceb7e59164
+3 -1
View File
@@ -857,8 +857,10 @@ pub async fn hardware_status() -> WaResult<serde_json::Value> {
"modelInstalled": npu_model_installed(),
},
// DirectML GPU package (P2): shares the ONNX model with the NPU path;
// only the runtime differs. Drives a future Settings ▸ Hardware indicator.
// only the runtime differs. `applicable` gates the Settings ▸ Hardware
// card so it only shows when DirectML would actually help this build.
"directml": {
"applicable": crate::hardware::directml_would_help(),
"runtimeReady": crate::paths::directml_runtime_ready(),
"modelInstalled": npu_model_installed(),
},