Coverage for src/lexigram/ai/cli/checks.py: 100%
6 statements
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-25 07:19 +0800
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-25 07:19 +0800
1"""CLI health checks for lexigram-ai."""
3from __future__ import annotations
5from typing import TYPE_CHECKING
7if TYPE_CHECKING:
8 from lexigram.contracts.core.di import ContainerResolverProtocol
11async def check_llm_provider(container: ContainerResolverProtocol) -> dict[str, object]:
12 """Check that an LLM provider is reachable.
14 Args:
15 container: Booted DI container.
17 Returns:
18 A HealthCheckResult-compatible dict.
19 """
20 return {
21 "status": "healthy",
22 "message": "LLM provider health check not yet implemented",
23 }
26async def check_subsystem_discovery(
27 container: ContainerResolverProtocol,
28) -> dict[str, object]:
29 """Check that AI subsystems are discoverable via entry points.
31 Args:
32 container: Booted DI container.
34 Returns:
35 A HealthCheckResult-compatible dict.
36 """
37 return {
38 "status": "healthy",
39 "message": "AI subsystem discovery check not yet implemented",
40 }