refactor(ui): rename contact type label CLI to COM (companion)

The MeshCore community uses "companion" not "client" for type 1 nodes.
Rename the CLI label to COM across all UI, API, JS, and docs to align
with official terminology. Includes cache migration for old CLI entries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-03-21 14:37:30 +01:00
parent 8ba5381921
commit 33a71bed17
18 changed files with 68 additions and 65 deletions
+3 -3
View File
@@ -30,7 +30,7 @@ EXPECTED_CONTACT_FIELDS = {
}
# Valid contact types in text format
VALID_CONTACT_TYPES = {"CLI", "REP", "ROOM", "SENS"}
VALID_CONTACT_TYPES = {"COM", "REP", "ROOM", "SENS"}
# Expected fields in /health response
EXPECTED_HEALTH_FIELDS = {
@@ -148,7 +148,7 @@ class CompatChecker:
return
# Parse using same logic as cli.py parse_contacts()
type_counts = {"CLI": 0, "REP": 0, "ROOM": 0, "SENS": 0}
type_counts = {"COM": 0, "REP": 0, "ROOM": 0, "SENS": 0}
parsed = 0
unparsed_lines = []
@@ -247,7 +247,7 @@ class CompatChecker:
stdout = data.get("stdout", "").strip()
if not stdout:
self.add(self.WARN, cat, "empty response (no CLI contacts)")
self.add(self.WARN, cat, "empty response (no COM contacts)")
return
# contact_info returns multiple JSON objects (one per contact)