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

1"""CLI health checks for lexigram-ai.""" 

2 

3from __future__ import annotations 

4 

5from typing import TYPE_CHECKING 

6 

7if TYPE_CHECKING: 

8 from lexigram.contracts.core.di import ContainerResolverProtocol 

9 

10 

11async def check_llm_provider(container: ContainerResolverProtocol) -> dict[str, object]: 

12 """Check that an LLM provider is reachable. 

13 

14 Args: 

15 container: Booted DI container. 

16 

17 Returns: 

18 A HealthCheckResult-compatible dict. 

19 """ 

20 return { 

21 "status": "healthy", 

22 "message": "LLM provider health check not yet implemented", 

23 } 

24 

25 

26async def check_subsystem_discovery( 

27 container: ContainerResolverProtocol, 

28) -> dict[str, object]: 

29 """Check that AI subsystems are discoverable via entry points. 

30 

31 Args: 

32 container: Booted DI container. 

33 

34 Returns: 

35 A HealthCheckResult-compatible dict. 

36 """ 

37 return { 

38 "status": "healthy", 

39 "message": "AI subsystem discovery check not yet implemented", 

40 }