feat: add opt-in debug diagnostics - #572
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #572 +/- ##
==========================================
+ Coverage 91.25% 91.56% +0.31%
==========================================
Files 30 31 +1
Lines 1212 1269 +57
Branches 301 317 +16
==========================================
+ Hits 1106 1162 +56
- Misses 47 48 +1
Partials 59 59 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Queued — the merge queue status continues in this comment ↓. |
Unit Test Results 1 files 28 suites 1s ⏱️ Results for commit 52120de. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
✨ PR Review
LGTM
Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Review using Guidelines Learn how
|
| Filename | Overview |
|---|---|
| src/utils/debug.ts | Adds strict debug opt-in, bounded stderr output, and structural redaction for diagnostic payloads. |
| src/utils/telemetry-wrapper.ts | Logs redacted tool invocation diagnostics when debug mode is enabled. |
| src/utils/hevyClientKubb.ts | Logs sanitized API response metadata from the success and error interceptors. |
| src/utils/debug.test.ts | Adds tests for debug opt-in behavior, redaction, output bounds, and failure handling. |
Reviews (3): Last reviewed commit: "fix: redact debug parameter keys" | Re-trigger Greptile
|
@Mergifyio refresh |
✅ Pull request refreshed |
Merge Queue Status
This pull request spent 2 minutes in the queue, including 1 minute 19 seconds running CI. Required conditions to merge
|
Summary
HEVY_MCP_DEBUG=1opt-in structured diagnostics written only to stderr.Testing
npm run buildnpx vitest run --exclude 'tests/integration/**'npm run checknpm run check:typesnpm run check:changesetResolves #557
✨ PR Description
Purpose: Add opt-in privacy-bounded stderr diagnostics for tool invocations and sanitized Hevy API response metadata.
Main changes:
Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how