Skip to content

Add @latest to all npx @openuidev/cli commands - #373

Merged
zahlekhan merged 2 commits into
mainfrom
cursor/openui-command-latest-cddf
Apr 3, 2026
Merged

Add @latest to all npx @openuidev/cli commands#373
zahlekhan merged 2 commits into
mainfrom
cursor/openui-command-latest-cddf

Conversation

@zahlekhan

Copy link
Copy Markdown
Contributor

What

Fixed the issue where running npx @openuidev/cli without the @latest tag fails with "openui: command not found". This ensures users can successfully run CLI commands as documented.

Changes

  • Updated CLI README.md to include @latest in all install examples and generate commands
  • Updated all documentation files (system-prompts.mdx, standard-library.mdx, genui.mdx, from-scratch.mdx, nextjs.mdx, react-ui.mdx) to use @latest
  • Updated package.json scripts in examples to use @latest
  • Updated OpenUiGeneratesSchema.tsx visual component to show @latest in command example

Test Plan

  • Not applicable (documentation fix only)

Users can verify by running:

npx @openuidev/cli@latest --help

Checklist

  • I linked a related issue, if applicable (Slack thread)
  • I updated docs/README when needed
  • I considered backwards compatibility (additive change only)

Slack Thread

Open in Web Open in Cursor 

- Update CLI README with @latest for install and generate examples
- Update all documentation files to include @latest in CLI commands
- Update package.json scripts to use @latest
- Update OpenUiGeneratesSchema.tsx with @latest

Fixes issue where npx @openuidev/cli fails without @latest tag

Co-authored-by: Zahle Khan <zahle@thesys.dev>
@zahlekhan
zahlekhan marked this pull request as ready for review April 3, 2026 08:39
@zahlekhan
zahlekhan enabled auto-merge (squash) April 3, 2026 08:42
@zahlekhan
zahlekhan merged commit 29a6e6e into main Apr 3, 2026
1 check passed
@zahlekhan
zahlekhan deleted the cursor/openui-command-latest-cddf branch April 3, 2026 08:43
vishxrad pushed a commit that referenced this pull request Apr 3, 2026
- Update CLI README with @latest for install and generate examples
- Update all documentation files to include @latest in CLI commands
- Update package.json scripts to use @latest
- Update OpenUiGeneratesSchema.tsx with @latest

Fixes issue where npx @openuidev/cli fails without @latest tag

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
zahlekhan added a commit that referenced this pull request Apr 3, 2026
* added multi-agent exampl

* added streaming to the multi-agent-chat

* pnpm fix

* feat: add artifact demo example and defineArtifact() API (#408)

* feat: add openui-artifact-demo example

New example app demonstrating the OpenUI artifact system for displaying
AI-generated code in a resizable side panel.

- Custom ArtifactCodeBlock genui component with inline preview and artifact panel view
- Extends openuiChatLibrary with artifact-specific component and prompt rules
- Syntax highlighting via react-syntax-highlighter (Prism, vscDarkPlus)
- Copy-to-clipboard, language badges, filename headers
- Multiple artifacts per conversation, one active at a time
- Code-focused conversation starters (React, Python, CSS, SQL)

* styling fix for artifact panel

* feat: add Artifact() factory function in react-ui, migrate artifact demo

Adds Artifact() to @openuidev/react-ui — a factory that returns a
ComponentRenderer with automatic useId, useArtifact, and ArtifactPanel
wiring. Consumers provide preview/panel render functions; no manual
artifact boilerplate needed. No changes to lang-core or react-lang.

- react-ui: new Artifact() function with ArtifactControls injection
- example: migrate ArtifactCodeBlock to use Artifact()
- example: remove artifactId from schema and prompt, simplify InlinePreview

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* docs: add Artifacts page to chat layout docs

Explains the artifact system for consumers — Artifact() factory,
ArtifactControls, layout setup, headless hooks, and manual wiring
escape hatch. Placed under Chat Layouts after BottomTray.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Add @latest to all npx @openuidev/cli commands (#373)

- Update CLI README with @latest for install and generate examples
- Update all documentation files to include @latest in CLI commands
- Update package.json scripts to use @latest
- Update OpenUiGeneratesSchema.tsx with @latest

Fixes issue where npx @openuidev/cli fails without @latest tag

Co-authored-by: Cursor Agent <cursoragent@cursor.com>

* added multi-agent exampl

* pnpm fix

* Merge main and resolve lockfile conflicts

* Refactor assistant-message.tsx for tool output handling

---------

Co-authored-by: Visharad Kashyap <visharad@Visharads-MacBook-Pro.local>
Co-authored-by: Ankit Das <i-ankit@thesys.dev>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Zahle Khan <zahle@thesys.dev>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
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.

3 participants