(
root: Option<&Path>,
event: &str,
agent: HintAgent,
session_id: Option<&str>,
hint_id: &str,
hint: &ToolHint,
)
| 216 | } |
| 217 | |
| 218 | fn record_hint_analytics( |
| 219 | root: Option<&Path>, |
| 220 | event: &str, |
| 221 | agent: HintAgent, |
| 222 | session_id: Option<&str>, |
| 223 | hint_id: &str, |
| 224 | hint: &ToolHint, |
| 225 | ) { |
| 226 | record_hook_analytics( |
| 227 | root, |
| 228 | event, |
| 229 | serde_json::json!({ |
| 230 | "agent": agent.as_key(), |
| 231 | "session_id": session_id, |
| 232 | "category": hint.category.as_key(), |
| 233 | "hint_id": hint_id, |
| 234 | }), |
| 235 | ); |
| 236 | } |
| 237 | |
| 238 | fn record_workspace_status_analytics( |
| 239 | root: Option<&Path>, |
no test coverage detected