MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / record_hint_analytics

Function record_hint_analytics

src/hooks/mod.rs:218–236  ·  view source on GitHub ↗
(
    root: Option<&Path>,
    event: &str,
    agent: HintAgent,
    session_id: Option<&str>,
    hint_id: &str,
    hint: &ToolHint,
)

Source from the content-addressed store, hash-verified

216}
217
218fn 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
238fn record_workspace_status_analytics(
239 root: Option<&Path>,

Callers 7

record_hint_emittedFunction · 0.85
codex_prompt_hintFunction · 0.85
cursor_prompt_hintFunction · 0.85
deduped_cursor_hintFunction · 0.85

Calls 1

record_hook_analyticsFunction · 0.85

Tested by

no test coverage detected