"""出题模块 — benchmark 加载、分层采样、赛题合成与 v2 出题管线。"""

from app.question_gen.families import ALL_FAMILIES, QuestionFamilySpec
from app.question_gen.gates import GateReport, run_gates
from app.question_gen.generator_v2 import CandidateQuestion, generate_one_v2
from app.question_gen.loader import load_benchmark, stratified_sample
from app.question_gen.pipeline_v2 import PipelineConfig, PipelineResult, run_pipeline_v2
from app.question_gen.synthesizer import (
    TASK_TYPE_LEVEL_MAP,
    AnchorContext,
    generate_one,
    sample_anchor,
)

__all__ = [
    # v1 接口
    "load_benchmark",
    "stratified_sample",
    "TASK_TYPE_LEVEL_MAP",
    "AnchorContext",
    "generate_one",
    "sample_anchor",
    # v2 接口
    "run_pipeline_v2",
    "PipelineConfig",
    "PipelineResult",
    "QuestionFamilySpec",
    "ALL_FAMILIES",
    "CandidateQuestion",
    "generate_one_v2",
    "GateReport",
    "run_gates",
]
