feat: Added ai usage analytics#1
Open
irfanuddinahmad wants to merge 15 commits into
Open
Conversation
There was a problem hiding this comment.
license-eye has checked 4044 files.
| Valid | Invalid | Ignored | Fixed |
|---|---|---|---|
| 3164 | 2 | 878 | 0 |
Click to see the invalid file list
- backend/plugins/codex/service/connection_test_helper.go
- backend/plugins/cursor/service/connection_test_helper.go
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
irfanuddinahmad
force-pushed
the
feature/github-ai-analytics
branch
from
April 2, 2026 16:23
1994e4e to
925150a
Compare
aimanmuzaffar95
added a commit
that referenced
this pull request
Apr 29, 2026
…API support (Phase 2) (#1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a unified domain-layer schema for AI-assisted coding activity, adds migration scripts to support the new schema, implements foundational API logic and new Claude, Cursor and Codex plugins. Additionally, it introduces a per-user project mapping table to support Grafana dashboard visibility and registers all new migrations. The most important changes are grouped below:
AI Activity Unified Schema and Migrations:
AiActivitydomain model inbackend/core/models/domainlayer/ai/ai_activity.goto represent normalized, tool-agnostic records of AI-assisted coding activity. This model supports multiple providers and includes fields for code metrics, agentic outcomes, and cost/token metrics.20260331_add_ai_activities_unified_schema.goto add and update theai_activitiestable, including renaming legacy columns, and adding new fields for interface type and suggestion/acceptance counts.AiActivitytable in the domain info registry and included it in the list of domain tables. [1] [2]User-Project Mapping for Grafana:
user_project_mappingtable and its migration script (20260311_add_user_project_mapping.go) to map user logins to project names, enabling per-user project visibility in Grafana dashboards. [1] [2]These changes lay the groundwork for unified AI activity analytics and support for new AI tool plugins, while improving user/project management and plugin extensibility.