Coverage for session_buddy / core / lifecycle / __init__.py: 100.00%

4 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-04 00:43 -0800

1"""Session lifecycle management utilities. 

2 

3This package provides modular utilities for session lifecycle operations: 

4- Handoff documentation generation 

5- Project context analysis 

6- Session information parsing 

7 

8All modules are designed to be reusable components that reduce code duplication 

9in the session_manager module. 

10""" 

11 

12from session_buddy.core.lifecycle.handoff import ( 

13 build_handoff_header, 

14 build_quality_section, 

15 build_recommendations_section, 

16 build_static_sections, 

17 generate_handoff_documentation, 

18 save_handoff_documentation, 

19) 

20from session_buddy.core.lifecycle.project_context import ( 

21 add_python_context_indicators, 

22 analyze_project_context, 

23 check_ci_cd_exists, 

24 check_docs_exist, 

25 check_framework_imports, 

26 check_readme_exists, 

27 check_tests_exist, 

28 check_venv_exists, 

29 detect_python_frameworks, 

30 get_basic_project_indicators, 

31) 

32from session_buddy.core.lifecycle.session_info import ( 

33 SessionInfo, 

34 discover_session_files, 

35 extract_session_metadata, 

36 extract_session_recommendations, 

37 find_latest_handoff_file, 

38 parse_session_file, 

39 read_file_safely, 

40 read_previous_session_info, 

41) 

42 

43__all__ = [ 

44 # Session info 

45 "SessionInfo", 

46 # Project context 

47 "add_python_context_indicators", 

48 "analyze_project_context", 

49 # Handoff 

50 "build_handoff_header", 

51 "build_quality_section", 

52 "build_recommendations_section", 

53 "build_static_sections", 

54 "check_ci_cd_exists", 

55 "check_docs_exist", 

56 "check_framework_imports", 

57 "check_readme_exists", 

58 "check_tests_exist", 

59 "check_venv_exists", 

60 "detect_python_frameworks", 

61 "discover_session_files", 

62 "extract_session_metadata", 

63 "extract_session_recommendations", 

64 "find_latest_handoff_file", 

65 "generate_handoff_documentation", 

66 "get_basic_project_indicators", 

67 "parse_session_file", 

68 "read_file_safely", 

69 "read_previous_session_info", 

70 "save_handoff_documentation", 

71]