Clack renderer feature#1390
Draft
justin-thurman wants to merge 21 commits into
Draft
Conversation
Implement Clack-based task rendering and tracer bullet the `auth` task
Implement logRenderer
Implement `broadcastRenderer` to fan out multiple `TaskRenderer`s
Fan out `auth` and `intro` output to Clack and file logging
Adds an optional output?: Writable seam to clackTaskLogRenderer, the intro/log wrappers, and renderer/index.ts intro, defaulting to process.stdout so runtime behavior is unchanged. Enables the Storybook capture harness to redirect Clack output to an in-memory sink.
settle.ts collapses a captured live-terminal stream into its final frame; captureTask.ts drives the real renderer/index.ts intro and clackTaskLogRenderer against an in-memory TTY sink and returns the settled ANSI, with a scoped CI reset (forcing TTY rendering) and pinned 80-col width. fixtures.ts holds the shared env/options/pkg. Tests cover settle's erase-block collapse and passthrough invariants, plus the two things Chromatic's pixel diff can't see: OSC 8 hyperlink structure and CI parity.
Implement Clack-based storybook rendering
Contributor
|
📦 Package Size: 7144 KB |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1390 +/- ##
==========================================
+ Coverage 81.22% 82.41% +1.19%
==========================================
Files 228 243 +15
Lines 4287 4624 +337
Branches 1229 1310 +81
==========================================
+ Hits 3482 3811 +329
- Misses 692 700 +8
Partials 113 113 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
📦 Published PR as canary version:
17.5.0--canary.1390.27278495931.0✨ Test out this PR locally via:
npm install chromatic@17.5.0--canary.1390.27278495931.0 # or yarn add chromatic@17.5.0--canary.1390.27278495931.0