Auto-collect non-sensitive environment info to attach to a feedback issue. Kept deliberately small — no paths, no API keys, no usernames.
(ctx)
| 2158 | |
| 2159 | |
| 2160 | def _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 | |
| 2175 | def _build_feedback_url( |