@kvell007/embed-labs-cli 0.1.0-alpha.25 → 0.1.0-alpha.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1177,11 +1177,11 @@ async function doctor() {
|
|
|
1177
1177
|
const bridgeHealth = await apiDoctorCheck("bridge_health", "Local Bridge health", `${bridgeBaseUrl}/healthz`, "bridge_unreachable", `Local Bridge is unreachable at ${bridgeBaseUrl}.`, renderHealthSummary, healthStatus);
|
|
1178
1178
|
checks.push(bridgeHealth);
|
|
1179
1179
|
if (isUsableDoctorCheck(bridgeHealth)) {
|
|
1180
|
-
checks.push(await apiDoctorCheck("device_scan", "Device
|
|
1180
|
+
checks.push(await apiDoctorCheck("device_scan", "Device inventory", `${bridgeBaseUrl}/v1/devices`, "bridge_unreachable", `Local Bridge is unreachable at ${bridgeBaseUrl}.`, renderDeviceScanSummary, warningIfWarnings));
|
|
1181
1181
|
checks.push(await apiDoctorCheck("debug_tools", "Debug tool scan", `${bridgeBaseUrl}/v1/debug/tools`, "bridge_unreachable", `Local Bridge is unreachable at ${bridgeBaseUrl}.`, renderDebugToolScanSummary, warningIfWarnings));
|
|
1182
1182
|
}
|
|
1183
1183
|
else {
|
|
1184
|
-
checks.push(dependentDoctorCheck("device_scan", "Device
|
|
1184
|
+
checks.push(dependentDoctorCheck("device_scan", "Device inventory", `${bridgeBaseUrl}/v1/devices`, "Device inventory requires a reachable Local Bridge."));
|
|
1185
1185
|
checks.push(dependentDoctorCheck("debug_tools", "Debug tool scan", `${bridgeBaseUrl}/v1/debug/tools`, "Debug tool scan requires a reachable Local Bridge."));
|
|
1186
1186
|
}
|
|
1187
1187
|
checks.push(await apiDoctorCheck("cloud_api_health", "Cloud API health", `${cloudBaseUrl}/healthz`, "cloud_api_unreachable", `Cloud API is unreachable at ${cloudBaseUrl}.`, renderHealthSummary, healthStatus));
|
|
@@ -1374,7 +1374,7 @@ function warningIfWarnings(data) {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
function renderDeviceScanSummary(result) {
|
|
1376
1376
|
const warningText = result.warnings?.length ? ` ${result.warnings.length} warning(s).` : "";
|
|
1377
|
-
return `Device
|
|
1377
|
+
return `Device inventory snapshot: ${result.devices.length} device(s), ${result.usb.length} USB item(s), ${result.serial.length} serial port(s).${warningText}`;
|
|
1378
1378
|
}
|
|
1379
1379
|
function renderDebugToolScanSummary(result) {
|
|
1380
1380
|
const available = result.tools.filter((tool) => tool.available).length;
|