Added typings for debug/logging/pretty-stream packages#819
Conversation
|
Warning Review limit reached
Next review available in: 47 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
WalkthroughTypeScript declarations and package metadata were added for the debug, logging, and pretty-stream packages. The changes define public APIs for debug initialization, GhostLogger configuration and methods, and PrettyStream construction and options. Each package now has a TypeScript entrypoint using CommonJS export assignments, with package manifests configured to publish or reference Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #819 +/- ##
==========================================
- Coverage 97.94% 97.14% -0.81%
==========================================
Files 98 42 -56
Lines 3359 1541 -1818
Branches 598 297 -301
==========================================
- Hits 3290 1497 -1793
+ Misses 18 12 -6
+ Partials 51 32 -19 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/debug/lib/debug.d.ts`:
- Around line 17-24: Update the DebugModule interface to expose the public
formatters property as a typed formatter map, alongside the existing names and
skips members. Use the established formatter type or map shape from the debug
declarations so TypeScript users can register custom formatters through
debug.formatters.
- Line 8: Update the Debugger.color declaration to accept both browser string
values and Node numeric ANSI codes returned by selectColor(). Extend the _base
type declaration to include the real debug module’s formatters property,
preserving the existing module shape.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 5095f734-3459-4007-af87-9f61c790033f
📒 Files selected for processing (10)
packages/debug/index.d.tspackages/debug/lib/debug.d.tspackages/debug/package.jsonpackages/logging/index.d.tspackages/logging/lib/GhostLogger.d.tspackages/logging/lib/logging.d.tspackages/logging/package.jsonpackages/pretty-stream/index.d.tspackages/pretty-stream/lib/PrettyStream.d.tspackages/pretty-stream/package.json
no ref these will eventually be fully re-written in TS, but these are core packages and to avoid any potential breakages this just adds basic typings files instead
no ref
these will eventually be fully re-written in TS, but these are core packages and to avoid any potential breakages this just adds basic typings files instead