feature: local-usage-stats (1/4) - #25
Closed
myk1yt wants to merge 11 commits into
Closed
Conversation
…cit-any Add new test file to eslint-suppressions.json with count of 26 no-explicit-any suppressions. These are standard test patterns (mock objects, private property access via 'as any') consistent with other test files in the suppressions list. Fixes CI lint failure in PR #25 compile (lint) job.
myk1yt
force-pushed
the
pr/b13-usage-store-v2
branch
from
August 4, 2026 11:34
1ed85e5 to
bae2ac9
Compare
myk1yt
force-pushed
the
pr/b13-usage-store-v2
branch
from
August 5, 2026 05:50
d16c665 to
4ced785
Compare
myk1yt
pushed a commit
that referenced
this pull request
Aug 5, 2026
…cit-any Add new test file to eslint-suppressions.json with count of 26 no-explicit-any suppressions. These are standard test patterns (mock objects, private property access via 'as any') consistent with other test files in the suppressions list. Fixes CI lint failure in PR #25 compile (lint) job.
myk1yt
pushed a commit
that referenced
this pull request
Aug 6, 2026
…cit-any Add new test file to eslint-suppressions.json with count of 26 no-explicit-any suppressions. These are standard test patterns (mock objects, private property access via 'as any') consistent with other test files in the suppressions list. Fixes CI lint failure in PR #25 compile (lint) job.
myk1yt
pushed a commit
that referenced
this pull request
Aug 6, 2026
…cit-any Add new test file to eslint-suppressions.json with count of 26 no-explicit-any suppressions. These are standard test patterns (mock objects, private property access via 'as any') consistent with other test files in the suppressions list. Fixes CI lint failure in PR #25 compile (lint) job.
myk1yt
force-pushed
the
pr/b13-usage-store-v2
branch
from
August 6, 2026 09:56
00cfd91 to
b1a03e3
Compare
myk1yt
force-pushed
the
pr/b13-usage-store-v2
branch
from
August 6, 2026 12:44
80c120f to
244e074
Compare
myk1yt
pushed a commit
that referenced
this pull request
Aug 6, 2026
…cit-any Add new test file to eslint-suppressions.json with count of 26 no-explicit-any suppressions. These are standard test patterns (mock objects, private property access via 'as any') consistent with other test files in the suppressions list. Fixes CI lint failure in PR #25 compile (lint) job.
myk1yt
pushed a commit
that referenced
this pull request
Aug 6, 2026
…cit-any Add new test file to eslint-suppressions.json with count of 26 no-explicit-any suppressions. These are standard test patterns (mock objects, private property access via 'as any') consistent with other test files in the suppressions list. Fixes CI lint failure in PR #25 compile (lint) job.
myk1yt
force-pushed
the
pr/b13-usage-store-v2
branch
from
August 7, 2026 09:19
a6c22cc to
244e074
Compare
…Org#1123) CI failure: E2E Tests (Mocked) failed with '404 No fixture matched' because usage-stats-store.test.ts calls startNewTask with probe tag USAGE_STATS_E2E_SMOKE but no fixture existed.
Owner
Author
|
Closing to recreate with main as target base branch. This PR had stale base branch references after fork sync. |
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.
Stack Position
feature/local-usage-statsDescription
Full Feature Description
feature/local-usage-statsusage-stats.ts,src/services/stats, the provider/task capture pathsTask.ts, the stats IPCusageStatsMessageHandler.ts, and the UIDashboardView.tsxanduseDashboardStatsStream.ts.Why Split Into 17 PRs
Instead of submitting this feature as a single unified PR, it was split into individual PRs because as code size grows, safely reviewing a PR becomes very difficult. The feature was broken into mutually exclusive individual PRs so that each can be reviewed independently.
What This PR Specifically Changes
Adds minimal-field usage event/query contracts, append-only segmented NDJSON store, lock/queue, idempotency, rotation/hard cap, and corrupt-line quarantine. Does not include aggregation, capture, or UI.
Included Files
packages/types/src/usage-stats.tssrc/services/stats/UsageEventStore.tssrc/services/stats/index.tspackages/types/src/__tests__/usage-stats.spec.tssrc/services/stats/__tests__/UsageEventStore.spec.tsExclusion Scope