Skip to content

Move examples to openuiLibrary and lang-core cloud prompts - #1119

Merged
AbhinRustagi merged 6 commits into
mainfrom
abhin/examples-openui-library-spec
Sep 2, 2026
Merged

Move examples to openuiLibrary and lang-core cloud prompts#1119
AbhinRustagi merged 6 commits into
mainfrom
abhin/examples-openui-library-spec

Conversation

@AbhinRustagi

@AbhinRustagi AbhinRustagi commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Examples now generate a spec from openuiLibrary (@openuidev/react-ui/genui-lib) and send it through generateSystemPrompt({ cloud: true, library }) in lang-core.
  • Cloud CLI templates follow the same lang-core call; artifactTool stays on thesys-server.
  • Stacked on Add a cloud flag to generateSystemPrompt in lang-core #1117 — pin is lang-core 0.2.17, so merge and publish that first.

Test plan

  • After lang-core 0.2.17 is published, run pnpm generate && pnpm dev in an example (e.g. vercel-ai-sdk)
  • Confirm the Cloud prompt is the config sentinel plus the generated library
  • Scaffold from templates/openui-cloud and check /api/chat uses { cloud: true }

@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openui-docs Ready Ready Preview Sep 2, 2026 2:38pm UTC

Request Review

@AbhinRustagi AbhinRustagi changed the title fix: move examples to use library from react-ui Move examples to openuiLibrary and lang-core cloud prompts Sep 2, 2026
@AbhinRustagi
AbhinRustagi changed the base branch from main to abhin/lang-core-cloud-prompt September 2, 2026 06:43
Base automatically changed from abhin/lang-core-cloud-prompt to main September 2, 2026 09:04
@AbhinRustagi
AbhinRustagi force-pushed the abhin/examples-openui-library-spec branch from c857a92 to 78b3162 Compare September 2, 2026 09:04
Fold the #1118 consumer switch into the library-spec work so Cloud callers use `{ cloud: true }` from lang-core while keeping the generated openuiLibrary spec.
Match lang-core — no ChatLibrary type, components is dropped on the wire.
Package manifests already pin that version; the locks still resolved 0.2.15/0.2.16.
@AbhinRustagi
AbhinRustagi merged commit 900f3e1 into main Sep 2, 2026
31 of 33 checks passed
@AbhinRustagi
AbhinRustagi deleted the abhin/examples-openui-library-spec branch September 2, 2026 16:06
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.

2 participants