File size: 1,956 Bytes
f5e83c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# utils/__init__.py — FitPlan Pro utility package
# Exposes all helper functions directly from the utils package
# Usage: from utils import save_plan, get_active_plan, update_streak etc.

from utils.db import (
    save_plan,
    get_active_plan,
    delete_active_plan,
    save_progress,
    get_progress,
    get_all_progress,
    get_streak,
    save_streak,
)

from utils.progress_tracker import (
    build_workout_checks,
    build_dietary_checks,
    merge_checks,
    load_day_progress,
    toggle_workout_item,
    toggle_dietary_item,
    mark_day_complete,
    unmark_day,
    get_plan_stats,
    get_today_day_number,
    get_completion_heatmap,
)

from utils.streak_manager import (
    update_streak,
    get_streak_display,
    check_streak_milestone,
)

from utils.plan_manager import (
    build_combined_prompt,
    parse_plan_response,
    generate_full_plan,
)

from utils.workout_components import (
    render_safety_cautions,
    render_exercise_timer,
    render_stretch_videos,
    render_full_workout_day,
)

__all__ = [
    # db
    "save_plan",
    "get_active_plan",
    "delete_active_plan",
    "save_progress",
    "get_progress",
    "get_all_progress",
    "get_streak",
    "save_streak",
    # progress_tracker
    "build_workout_checks",
    "build_dietary_checks",
    "merge_checks",
    "load_day_progress",
    "toggle_workout_item",
    "toggle_dietary_item",
    "mark_day_complete",
    "unmark_day",
    "get_plan_stats",
    "get_today_day_number",
    "get_completion_heatmap",
    # streak_manager
    "update_streak",
    "get_streak_display",
    "check_streak_milestone",
    # plan_manager
    "build_combined_prompt",
    "parse_plan_response",
    "generate_full_plan",
    # workout_components
    "render_safety_cautions",
    "render_exercise_timer",
    "render_stretch_videos",
    "render_full_workout_day",
]