(repo_dir: Path, remote_url: str, branch: str)
| 1404 | f"- Path: {report.get('report_path') or ''}", |
| 1405 | f"- Saved: {report.get('saved_at') or ''}", |
| 1406 | "", |
| 1407 | str(report.get("snippet") or "").strip(), |
| 1408 | "", |
| 1409 | ] |
| 1410 | ) |
| 1411 | lines.extend(["## Wiki Nodes", ""]) |
| 1412 | for node in wiki_nodes: |
| 1413 | lines.extend( |
| 1414 | [ |
| 1415 | f"### {node.get('title') or node.get('node_id')}", |
| 1416 | "", |
| 1417 | f"- Type: {node.get('node_type') or ''}", |
| 1418 | f"- Path: {node.get('file_path') or ''}", |
| 1419 | "", |
| 1420 | str(node.get("body") or "")[:1200], |
| 1421 | "", |
| 1422 | ] |
| 1423 | ) |
| 1424 | output.write_text("\n".join(lines).rstrip() + "\n", encoding="utf-8") |
| 1425 | return {"format": "markdown", "path": str(output), "display_path": _display_path(output), "count": len(reports) + len(wiki_nodes)} |
| 1426 | |
| 1427 | if normalized == "zip": |
no test coverage detected