Coverage for src / infra / __init__.py: 100%

0 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2026-01-04 04:43 +0000

1"""Infrastructure layer for mala. 

2 

3This package contains all infrastructure concerns: 

4- clients/: External service clients (Anthropic, Beads CLI, Braintrust, Cerberus) 

5- io/: I/O utilities (config, event sink, logging, session log parsing) 

6- tools/: Command execution, environment, and locking utilities 

7- hooks/: Claude Agent SDK hooks (security, caching, locking) 

8 

9Infrastructure modules should not depend on: 

10- CLI layer (src.cli, src.main) 

11- Orchestration layer (src.orchestrator, src.orchestrator_factory, src.orchestrator_types) 

12- Pipeline layer (src.pipeline) 

13 

14They may depend on: 

15- Core layer (src.core.models, src.core.protocols, src.core.log_events) 

16- Domain layer for shared types (but not business logic) 

17"""