MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _collect_feedback_diagnostics

Function _collect_feedback_diagnostics

openkb/cli.py:2160–2172  ·  view source on GitHub ↗

Auto-collect non-sensitive environment info to attach to a feedback issue. Kept deliberately small — no paths, no API keys, no usernames.

(ctx)

Source from the content-addressed store, hash-verified

2158
2159
2160def _collect_feedback_diagnostics(ctx) -> dict[str, str]:
2161 """Auto-collect non-sensitive environment info to attach to a feedback
2162 issue. Kept deliberately small — no paths, no API keys, no usernames.
2163 """
2164 import platform
2165
2166 kb_dir = _find_kb_dir(ctx.obj.get("kb_dir_override") if ctx.obj else None)
2167 return {
2168 "openkb": _openkb_version(),
2169 "python": platform.python_version(),
2170 "platform": f"{platform.system()} {platform.release()}",
2171 "kb_initialised": "yes" if kb_dir else "no",
2172 }
2173
2174
2175def _build_feedback_url(

Calls 3

_find_kb_dirFunction · 0.85
_openkb_versionFunction · 0.70
getMethod · 0.45