feat(uiverse): add Uiverse code and preview adapters#1000
Open
CissiBot wants to merge 1 commit intojackwener:mainfrom
Open
feat(uiverse): add Uiverse code and preview adapters#1000CissiBot wants to merge 1 commit intojackwener:mainfrom
CissiBot wants to merge 1 commit intojackwener:mainfrom
Conversation
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.
Description
Add a new browser adapter for Uiverse with
codeandpreviewcommands.This PR adds support for exporting Uiverse components as HTML, CSS, React, or Vue, and for capturing the preview element instead of the full page.
Related issue: N/A
Note:
cli-manifest.jsonis intentionally excluded from this PR because local regeneration pulled in large unrelated changes and environment-specific default paths. I can add a regenerated manifest in a follow-up if maintainers prefer.Type of Change
Checklist
Documentation (if adding/modifying an adapter)
docs/adapters/(if new adapter)docs/adapters/index.mdtable (if new adapter)docs/.vitepress/config.mts(if new adapter)README.md/README.zh-CN.mdwhen command discoverability changedCliErrorsubclasses instead of rawErrorScreenshots / Output
Validation run locally:
npm run buildnpx tsc --noEmitnpx vitest run --project adapter clis/uiverse/_shared.test.jsnpx opencli validate uiversenpx opencli uiverse code "Galahhad/strong-squid-82" --target react -f jsonnpx opencli uiverse preview "Galahhad/strong-squid-82" --output "/home/cc/apps/github/opencli/uiverse-pr-check.png" -f jsonPreview verification: the generated image contains only the component preview element, not the full page.