(user_id: str, node_id: str, title: str = "", body: str = "")
| 3924 | { |
| 3925 | "src_id": method_id, |
| 3926 | "dst_id": paper_node["node_id"], |
| 3927 | "relation": "method_evidence", |
| 3928 | "weight": 0.45, |
| 3929 | "metadata": {"source": "daily_note"}, |
| 3930 | } |
| 3931 | ) |
| 3932 | |
| 3933 | return { |
| 3934 | "nodes": graph_nodes, |
| 3935 | "edges": graph_edges, |
| 3936 | "source": "daily_note", |
| 3937 | "query": "", |
| 3938 | "daily_notes": [str(path) for path in daily_notes], |
| 3939 | "daily_scope": scope, |
| 3940 | "daily_month": month, |
| 3941 | } |
| 3942 | |
| 3943 | |
| 3944 | def wiki_graph(user_id: str, query: str = "", limit: int = 24, daily_scope: str = "latest", daily_month: str = "") -> Dict[str, Any]: |
| 3945 | """Return user-scoped wiki nodes and edges for the desktop graph view.""" |
| 3946 | safe_limit = max(4, min(160, int(limit or 24))) |
| 3947 | query = str(query or "").strip() |
| 3948 | user_node_id = f"user:{user_id}" |
| 3949 | if not query and str(daily_scope or "").strip().lower() != "wiki_db": |
nothing calls this directly
no test coverage detected