Skip to content

feat(uiverse): add Uiverse code and preview adapters#1000

Open
CissiBot wants to merge 1 commit intojackwener:mainfrom
CissiBot:feat/uiverse-adapter
Open

feat(uiverse): add Uiverse code and preview adapters#1000
CissiBot wants to merge 1 commit intojackwener:mainfrom
CissiBot:feat/uiverse-adapter

Conversation

@CissiBot
Copy link
Copy Markdown

@CissiBot CissiBot commented Apr 13, 2026

Description

Add a new browser adapter for Uiverse with code and preview commands.

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.json is 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

  • 🐛 Bug fix
  • ✨ New feature
  • 🌐 New site adapter
  • 📝 Documentation
  • ♻️ Refactor
  • 🔧 CI / build / tooling

Checklist

  • I ran the checks relevant to this PR
  • I updated tests or docs if needed
  • I included output or screenshots when useful

Documentation (if adding/modifying an adapter)

  • Added doc page under docs/adapters/ (if new adapter)
  • Updated docs/adapters/index.md table (if new adapter)
  • Updated sidebar in docs/.vitepress/config.mts (if new adapter)
  • Updated README.md / README.zh-CN.md when command discoverability changed
  • Used positional args for the command's primary subject unless a named flag is clearly better
  • Normalized expected adapter failures to CliError subclasses instead of raw Error

Screenshots / Output

Validation run locally:

  • npm run build
  • npx tsc --noEmit
  • npx vitest run --project adapter clis/uiverse/_shared.test.js
  • npx opencli validate uiverse
  • npx opencli uiverse code "Galahhad/strong-squid-82" --target react -f json
  • npx opencli uiverse preview "Galahhad/strong-squid-82" --output "/home/cc/apps/github/opencli/uiverse-pr-check.png" -f json

Preview verification: the generated image contains only the component preview element, not the full page.

@CissiBot CissiBot changed the title feat(uiverse): add code and preview adapters feat(uiverse): add Uiverse code and preview adapters Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant