Coverage for src/orchestration/cli_support.py: 100%

1"""CLI support module for re-exporting infra utilities.

2

3 This module is part of the orchestration layer and provides CLI-safe access

4 to infrastructure utilities. CLI imports from this module instead of directly

5 from infra layer modules.

6

7 This maintains the architectural boundary: CLI -> orchestration -> infra.

8"""

9

10 from __future__ import annotations

11

12# Environment configuration (from src.infra.tools.env)

13 from src.infra.tools.env import (

14 USER_CONFIG_DIR,

15 get_runs_dir,

16 load_user_env,

17)

18

19# BeadsClient (from src.infra.clients.beads_client)

20 from src.infra.clients.beads_client import BeadsClient

21

22# Locking utilities (from src.infra.tools.locking)

23 from src.infra.tools.locking import get_lock_dir

24

25# Run metadata

26 from src.infra.io.log_output.run_metadata import (

27 get_running_instances,

28 get_running_instances_for_dir,

29)

30

31# Console utilities

32 from src.infra.io.log_output.console import (

33 Colors,

34 log,

35 set_verbose,

36)

37

38 __all__ = [

39 "USER_CONFIG_DIR",

40 "BeadsClient",

41 "Colors",

42 "get_lock_dir",

43 "get_running_instances",

44 "get_running_instances_for_dir",

45 "get_runs_dir",

46 "load_user_env",

47 "log",

48 "set_verbose",

49]