fix(cli): report component scan progress headlessly - #807
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
mldangelo-oai
left a comment
There was a problem hiding this comment.
Thanks for tracking this down and keeping the fix focused. Forwarding the existing progress and cost events makes long-running component scans much easier to follow in CI, and the tests cover headless and CI output alongside the existing dashboard behavior. Required CI checks and the focused local tests and TypeScript/format checks pass. Looks good!
One CI limitation: npm's advisory endpoint timed out during the optional dependency audit. This PR leaves dependency files unchanged.
Summary
Headless and CI runs of
scan-componentsnow report per-component progress and estimated cost. Previously, those runs only printed component lifecycle transitions because scan observers were registered only when the interactive dashboard was active.Fixes #803
Changes
Testing
Independent validation of commit
a33bbcf000c70d367a2a89cabba4d58b3dc4b9cd:tsc --noEmitpassed.git diff --checkpassed.The focused local tests use synthetic repositories and mocked scans.
Risk and rollout
This adds progress and cost lines to headless stderr output, making long-running component scans easier to monitor. JSON results remain on stdout. The interactive dashboard continues to receive the existing scan events. No new command, flag, environment variable, or dependency is introduced. Suitable for a normal patch release.
Public disclosure review