| 3768 | except OSError: |
| 3769 | return {} |
| 3770 | summaries: Dict[str, Dict[str, Any]] = {} |
| 3771 | current_topic = "" |
| 3772 | index = 0 |
| 3773 | while index < len(lines): |
| 3774 | line = lines[index].strip() |
| 3775 | if line.startswith("# ") and not line.startswith("## "): |
| 3776 | current_topic = line[2:].strip() |
| 3777 | index += 1 |
| 3778 | continue |
| 3779 | if current_topic and line == "## PaperFlow Summary": |
| 3780 | block: List[str] = [] |
| 3781 | index += 1 |
| 3782 | while index < len(lines) and not lines[index].startswith("## ") and not lines[index].startswith("# "): |
| 3783 | block.append(lines[index].strip()) |