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

Function _run_git

deployments/desktop/shared/agents.py:1356–1372  ·  view source on GitHub ↗
(
    args: List[str],
    cwd: Path,
    *,
    check: bool = True,
    timeout: int = 60,
    input: Optional[str] = None,
)

Source from the content-addressed store, hash-verified

1354 "kind": "embedding",
1355 "ok": True,
1356 "provider": getattr(provider, "name", "unknown"),
1357 "model": getattr(provider, "model", "unknown"),
1358 "dimensions": len(vector),
1359 }
1360 raise ValueError("kind must be 'llm' or 'embedding'")
1361
1362
1363def _export_root() -> Path:
1364 root = PROJECT_ROOT / "data" / "desktop_exports"
1365 root.mkdir(parents=True, exist_ok=True)
1366 return root
1367
1368
1369def _export_sources() -> List[Tuple[str, Path]]:
1370 return [
1371 ("papers", Path(_configured_path("PAPERFLOW_PDF_DIR", "data/exports")).resolve()),
1372 ("reading_reports", Path(_configured_path("PAPERFLOW_READING_REPORTS_DIR", "data/exports")).resolve()),
1373 ("wiki", Path(_configured_path("PAPERFLOW_WIKI_DIR", "data/wiki")).resolve()),
1374 ]
1375

Callers 6

_git_outputFunction · 0.85
_ensure_notes_git_repoFunction · 0.85
_rebase_notes_branchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected