MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _ensure_notes_git_repo

Function _ensure_notes_git_repo

deployments/desktop/shared/agents.py:1406–1424  ·  view source on GitHub ↗
(repo_dir: Path, remote_url: str, branch: str)

Source from the content-addressed store, hash-verified

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":

Callers 1

Calls 2

_run_gitFunction · 0.85
_git_outputFunction · 0.85

Tested by

no test coverage detected