feat(solid): allow passing custom CliRenderer to render() #469
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.
Adds support for passing a custom
CliRendererinstance to therender()function as the second parameter, while maintaining backwards compatibility with the existing config-based API.This enables use cases like rendering OpenTUI in a web browser via WebSocket, where you need a custom renderer implementation instead of the default CLI renderer.
render()now accepts eitherCliRendererConfig(existing) orCliRendererinstance (new)render()now returns{ dispose }for cleanup when using custom rendererThis PR was written by Opus 4.5 under the strict supervision of @remorses