Skip to content

lang-core: parseMessage and buildMessage for stored messages - #1305

Open
Aditya-thesys wants to merge 2 commits into
mainfrom
feat/lang-core-message-protocol
Open

Aditya-thesys wants to merge 2 commits into
mainfrom
feat/lang-core-message-protocol

Conversation

@Aditya-thesys

@Aditya-thesys Aditya-thesys commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

OpenUI 1.0 message protocol (spec section 7).

  • lang-core: parseMessage(raw, { streaming }) returns { content, context, attributes, end } from a stored message with ]]>openui: marker lines; buildMessage(...) writes one. Attributes use the query form (?thesys=true&libraryVersion=0.1.0).
  • react-lang: Renderer accepts a stored message as response. The context is host-defined; the Renderer does not read it.
  • react-ui: sentinelParser is replaced by parseMessage / buildMessage. Stored bytes are unchanged; the legacy <content>/<context> XML is still read.
  • Responses without markers behave exactly as before.

@vercel

vercel Bot commented Oct 6, 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 Oct 7, 2026 12:36pm UTC

Request Review

@Aditya-thesys
Aditya-thesys force-pushed the feat/lang-core-message-protocol branch from b92fd67 to ac47ea1 Compare October 6, 2026 17:03
@Aditya-thesys Aditya-thesys changed the title lang-core: message protocol helpers, Renderer reads stored messages lang-core: parseMessage and buildMessage for stored messages Oct 6, 2026
…ssage)

lang-core reads and writes the marker lines of spec section 7 (content,
context, end). Attributes are a URL query string on the content marker,
as muse writes it. The react-lang Renderer accepts a stored message as
response and renders its content. Responses without markers parse as
before.

This branch was successfully deployed

1 active deployment
Preview — 942829dd Deployed Oct 7, 2026 by vercel[bot]
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