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

Function _daily_note_roots

deployments/desktop/shared/agents.py:3295–3305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3293 text = str(value or "").lower()
3294 return {token for token in re.split(r"[\s,;,;/]+", text) if token}
3295
3296
3297def _wiki_topic_tokens(node: Dict[str, Any]) -> Set[str]:
3298 metadata = node.get("metadata") if isinstance(node.get("metadata"), dict) else {}
3299 tokens = _wiki_keyword_tokens(node.get("keywords"))
3300 tokens.update(_wiki_keyword_tokens(metadata.get("canonical_name")))
3301 tokens.update(_wiki_keyword_tokens(node.get("title")))
3302 return tokens
3303
3304
3305def _daily_note_roots() -> List[Path]:
3306 roots: List[Path] = []
3307 for env_name in ("PAPERFLOW_READING_REPORTS_DIR", "PAPERFLOW_PDF_DIR"):
3308 path = Path(_configured_path(env_name, "data/exports")).expanduser()

Callers 2

_all_daily_note_pathsFunction · 0.85

Calls 1

_configured_pathFunction · 0.85

Tested by

no test coverage detected