"""
Utility modules for microdrama v3 workflow.
"""
from .path_utils_v3 import (
    get_story_path,
    get_take_path,
    get_stage_path,
    get_next_iteration,
    update_current_symlink,
    ensure_dir,
    get_stage_dirs,
    validate_story_structure
)

from .logging_utils_v3 import (
    log_event,
    log_init,
    log_stage_start,
    log_stage_complete,
    log_stage_error,
    log_feedback,
    log_assembly,
    get_log_entries,
    get_take_cost,
    get_stage_iterations
)

from .metadata_utils_v3 import (
    create_metadata,
    save_metadata,
    load_metadata,
    add_feedback,
    add_previous_iteration,
    get_session_id,
    save_prompt,
    load_prompt,
    save_session_id,
    load_session_id
)

__all__ = [
    # Path utils
    "get_story_path",
    "get_take_path",
    "get_stage_path",
    "get_next_iteration",
    "update_current_symlink",
    "ensure_dir",
    "get_stage_dirs",
    "validate_story_structure",
    # Logging utils
    "log_event",
    "log_init",
    "log_stage_start",
    "log_stage_complete",
    "log_stage_error",
    "log_feedback",
    "log_assembly",
    "get_log_entries",
    "get_take_cost",
    "get_stage_iterations",
    # Metadata utils
    "create_metadata",
    "save_metadata",
    "load_metadata",
    "add_feedback",
    "add_previous_iteration",
    "get_session_id",
    "save_prompt",
    "load_prompt",
    "save_session_id",
    "load_session_id"
]
