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

Function update_wiki_node

deployments/desktop/shared/agents.py:3926–3946  ·  view source on GitHub ↗
(user_id: str, node_id: str, title: str = "", body: str = "")

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_wiki_node_payloadFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected