MCPcopy Create free account
hub / github.com/StarsTom/mobileCodexHelper / describe_service

Function describe_service

mobile_codex_control.py:417–423  ·  view source on GitHub ↗
(health_ok: bool, health_detail: str, listener: ListenerInfo | None)

Source from the content-addressed store, hash-verified

415
416
417def describe_service(health_ok: bool, health_detail: str, listener: ListenerInfo | None) -> str:
418 listener_text = describe_listener(listener)
419 if health_ok:
420 return f"{listener_text} | {health_detail}" if listener else health_detail
421 if listener:
422 return f"{listener_text} | 健康检查未通过:{health_detail}"
423 return health_detail
424
425
426def normalize_remote_health_detail(detail: str) -> str:

Callers 1

collect_statusFunction · 0.85

Calls 1

describe_listenerFunction · 0.85

Tested by

no test coverage detected