Restore ACP usage telemetry / 恢复 ACP 用量遥测 - #10
Merged
Conversation
Problem: The extension only consumed legacy usage updates, while current Reasonix ACP versions publish usage through advertised namespaced status methods. Usage cards and cache telemetry therefore stayed empty. Root cause: Non-session/update notifications were ignored, and no client path discovered, validated, or synchronized the Reasonix status schema. Fix: Discover schema v1 status capabilities, validate initial and streaming snapshots, reject stale sequences, and map turn/cumulative telemetry into the existing usage UI. Preserve legacy usage compatibility and refresh patched transitive development dependencies required by the audit gate. Verification: npm audit --audit-level=high; npm run lint; npm test (51 tests); npm run test:vscode; npm run smoke:acp against Reasonix v1.19.1; npm run package:vsix; npm run verify:vsix-contents.
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.
Problem
Usage cards and the status-bar cache rate remained empty with current Reasonix ACP releases. The extension only consumed the legacy
session/update: usageshape and ignored the namespaced status notifications advertised by Reasonix 1.19+.Reasonix 1.17.21 did not publish usage over ACP at all, so relaxing the legacy validator could not fix the reported version combination.
Fix
_reasonix.io/session/statusand_reasonix.io/session/status_updatethroughagentCapabilities._meta.session/update: usagepath for older compatible backends.Compatibility
session/update: usageVerification
npm audit --audit-level=highnpm run lintnpm test(51 tests)npm run test:vscodenpm run smoke:acpagainst Reasonix 1.19.1 with status schema v1npm run package:vsixnpm run verify:vsix-contentsCloses #4