Confused by commit line logic

Team

regarding /analytics/ai-code/commits API. two scenarios need to be clarified.

Scenario 1:

some developers added new lines after AI code generated. will it still treat the original generate codes as AI Lines ?

Scenario 2:

some developers added new space in AI codes or formatted the codes after AI code generated. will it still treat the original generate codes as AI Lines ?

curl -X GET “https://api.cursor.com/analytics/ai-code/commits?startDate=7d&endDate=now&page=1&pageSize=100”
-u YOUR_API_KEY:

Response:

{ “items”: [ { “commitHash”: “a1b2c3d4”, “userId”: “user_3k9x8q…”, “userEmail”: “[email protected]”, “repoName”: “company/repo”, “branchName”: “main”, “isPrimaryBranch”: true, “totalLinesAdded”: 120, “totalLinesDeleted”: 30, “tabLinesAdded”: 50, “tabLinesDeleted”: 10, “composerLinesAdded”: 40, “composerLinesDeleted”: 5, “nonAiLinesAdded”: 30, “nonAiLinesDeleted”: 15, “message”: “重构:抽取 analytics 客户端”, “commitTs”: “2025-07-30T14:12:03.000Z”, “createdAt”: “2025-07-30T14:12:30.000Z” } ], “totalCount”: 42, “page”: 1, “pageSize”: 100}