(lines: List[str])
| 3372 | "metadata": _compact_wiki_metadata(node.get("metadata") or {}), |
| 3373 | "score": node.get("score"), |
| 3374 | "updated_at": node.get("updated_at"), |
| 3375 | } |
| 3376 | for node in nodes |
| 3377 | ] |
| 3378 | } |
| 3379 | |
| 3380 | |
| 3381 | def _configured_wiki_root() -> Optional[Path]: |
| 3382 | raw = _env_text("PAPERFLOW_WIKI_DIR", "") |
| 3383 | if not raw: |
| 3384 | return None |
| 3385 | path = Path(raw).expanduser() |
| 3386 | if not path.is_absolute(): |
| 3387 | path = PROJECT_ROOT / path |
no outgoing calls
no test coverage detected