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

Function _cmd_stats

agents/wiki-agent/main.py:66–77  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

64
65
66def _cmd_stats(args: argparse.Namespace) -> int:
67 stats = wiki_db.stats(args.user_id)
68 if args.json:
69 print(json.dumps(stats, ensure_ascii=False, indent=2))
70 return 0
71 print(f"Wiki stats for {stats['user_id']}")
72 print(f"- Nodes: {stats['nodes']} {stats['nodes_by_type']}")
73 print(f"- Edges: {stats['edges']}")
74 print(f"- Citations: {stats['citations']}")
75 print(f"- Latest update: {stats.get('latest_update') or 'never'}")
76 print(f"- Wiki dir: {stats['wiki_dir']}")
77 return 0
78
79
80def _cmd_embed(args: argparse.Namespace) -> int:

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected