fix(report): scope-aware usage reporting for project vs user#118
Merged
Conversation
The digest command now defaults to English for all labels and removes individual user rankings to avoid exposing personal metrics. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The pull command already outputs English but the E2E assertion still expected the old Chinese string. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…roject repo Previously reportUsageToTeam pushed all dashboard sessions to every active scope indiscriminately. Now project scope only receives sessions whose cwd is under projectRoot, and user scope excludes those sessions. Snapshot writes are merged (not overwritten) so each scope's idempotency state is preserved independently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
Test plan
scope-filter.test.ts覆盖 filterEventsByScope 各种边界team-push-interventions.test.ts和conversation-token-metrics.test.ts无回归npx tsc --noEmit通过teamai pull验证 project repo 和 user repo 分别只收到各自 scope 的数据🤖 Generated with Claude Code