(project_id: &str, timestamp: i64, event_kind: &str)
| 127 | } |
| 128 | |
| 129 | fn analytics_event(project_id: &str, timestamp: i64, event_kind: &str) -> AnalyticsEventInsert { |
| 130 | AnalyticsEventInsert { |
| 131 | provider: "codex".to_string(), |
| 132 | project_id: project_id.to_string(), |
| 133 | session_id: Some("analytics-session".to_string()), |
| 134 | timestamp, |
| 135 | event_kind: event_kind.to_string(), |
| 136 | hook_name: None, |
| 137 | tool_name: None, |
| 138 | tool_category: None, |
| 139 | skill_name: None, |
| 140 | hint_category: None, |
| 141 | hint_id: None, |
| 142 | outcome: None, |
| 143 | metadata_json: None, |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | async fn seed_durable_analytics(db_path: &Path, project_root: &Path) { |
| 148 | let gdb = GlobalDb::open_at(db_path).await.expect("open global db"); |
no outgoing calls
no test coverage detected