feat(plugin): add structured debug logging and skill progress reporting#179
feat(plugin): add structured debug logging and skill progress reporting#179onlycastle merged 8 commits intomainfrom
Conversation
Environment-gated logging (BETTERPROMPT_DEBUG=1) that writes to stderr to avoid interfering with JSON-RPC on stdout. Error-level logs always emit. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add debug/info/error calls to session hooks, config resolution, debounce state machine transitions, and native dependency installation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add tool-name and duration tracking to wrapToolExecution, plus startup and shutdown lifecycle logs to the MCP server bootstrap. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Standardize [bp] status lines across all 14 analysis skills so users see step-by-step progress during the analysis pipeline. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Code ReviewFound 2 issues:
Generated with Claude Code If useful, react with a thumbs-up. Otherwise, thumbs-down. |
The 3-tier logger (debug/info/error) had info gated identically to debug, making the distinction meaningless. info is used for lifecycle events (server start, native dep install) that should always be visible. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
BETTERPROMPT_DEBUG=1) that writes to stderr, preserving JSON-RPC on stdout[bp]progress status lines across all 14 analysis skillswrapToolExecutionwith tool-name tracking and duration metricsChanges
feat(plugin): add structured debug logger utility— newlib/logger.tsfeat(plugin): instrument hooks and core libs with debug logging— hooks, config, debounce, native-depsfeat(plugin): instrument MCP server with debug logging— server.ts, server-entry.tsfeat(plugin): add progress reporting to analysis skills— 14 SKILL.md fileschore(plugin): rebuild distTest Plan
npx tsc --noEmit)npm test)npx tsup)BETTERPROMPT_DEBUG=1and verify stderr logging output/bp-analyzeand verify[bp]progress lines appearGenerated with Claude Code using /ship-it