Skip to content

Migrate Cloud examples and templates to lang-core generateSystemPrompt - #1118

Closed
AbhinRustagi wants to merge 1 commit into
abhin/lang-core-cloud-promptfrom
abhin/cloud-prompt-migrate-examples
Closed

Migrate Cloud examples and templates to lang-core generateSystemPrompt#1118
AbhinRustagi wants to merge 1 commit into
abhin/lang-core-cloud-promptfrom
abhin/cloud-prompt-migrate-examples

Conversation

@AbhinRustagi

Copy link
Copy Markdown
Contributor

Summary

  • Cloud examples, CLI templates, and leftover docs now call generateSystemPrompt({ cloud: true }) from lang-core.
  • artifactTool stays on thesys-server where routes still need it.
  • Stacked on Add a cloud flag to generateSystemPrompt in lang-core #1117 — examples pin lang-core 0.2.17, so merge that first (and publish) before this one.

Test plan

  • After lang-core 0.2.17 is published, install an example (e.g. vercel-ai-sdk) and confirm chat still streams
  • Scaffold from templates/openui-cloud and check /api/chat uses { cloud: true }
  • Custom-library examples (shadcn, vue, svelte) still send the library on the wire

Cloud callers now use `{ cloud: true }` from lang-core instead of thesys-server, and keep artifactTool where the route still needs it.
@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 6:22am UTC

Request Review

AbhinRustagi added a commit that referenced this pull request Sep 2, 2026
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.
@AbhinRustagi

Copy link
Copy Markdown
Contributor Author

Folded into #1119 so the example/template work sits in one PR behind #1117.

AbhinRustagi added a commit that referenced this pull request Sep 2, 2026
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.
AbhinRustagi added a commit that referenced this pull request Sep 2, 2026
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.
AbhinRustagi added a commit that referenced this pull request Sep 2, 2026
* fix: move examples to use library from react-ui

* Migrate Cloud examples and templates to lang-core generateSystemPrompt

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.

* Use LibrarySpec in Cloud example prompts

Match lang-core — no ChatLibrary type, components is dropped on the wire.

* Point example and Cloud template lockfiles at published lang-core 0.2.17

Package manifests already pin that version; the locks still resolved 0.2.15/0.2.16.

* feat: add generate:apiKey

* fix: update templates
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