From d044421054aa7b6c2f7dc6fb9f456bd007efd70b Mon Sep 17 00:00:00 2001 From: VelikovPetar Date: Tue, 24 Nov 2026 16:04:25 +0100 Subject: [PATCH] docs(repo): mark OpenUI as published OpenUI 0.3.0 is on pub.dev, so list its pub badge in the README and drop the notes in CLAUDE.md, the release-pr skill and the first-release notice that still called it private. The skill's first-release steps now also transfer the new package to the getstream.io publisher. Co-Authored-By: Claude Opus 5.5 --- .claude/skills/release-pr/SKILL.md | 19 ++++++++++--------- .github/workflows/release_publish.yml | 2 +- CLAUDE.md | 12 ++++++------ README.md | 2 +- 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.claude/skills/release-pr/SKILL.md b/.claude/skills/release-pr/SKILL.md index 94a6d7d0..8c879ecd 100644 --- a/.claude/skills/release-pr/SKILL.md +++ b/.claude/skills/release-pr/SKILL.md @@ -37,8 +37,8 @@ per [Choosing the version](#choosing-the-version). ## Key facts for this repo - **Every publishable package is released in lockstep:** every `packages/*/pubspec.yaml` that isn't - `publish_to: none` — today `packages/stream_chat_flutter_ai` (core) and `packages/stream_chat_flutter_ai_a2ui`, - and `packages/stream_chat_flutter_ai_openui` once it is released. + `publish_to: none` — today `packages/stream_chat_flutter_ai` (core), `packages/stream_chat_flutter_ai_a2ui` and + `packages/stream_chat_flutter_ai_openui`. They always share one `version:`, and one `v` tag publishes all of them — so every one is bumped even when only some have changes. The packages that depend on core use `stream_chat_flutter_ai: ^`; that constraint lives in the root `melos.command.bootstrap.dependencies` list, and bootstrap copies it into every @@ -204,14 +204,15 @@ Don't write fresh bullets from `git log`. An unreleased user-facing change that is a gap to raise with the user, not one for this step to fill in. **A package's first release:** while a package that is meant to ship still has `publish_to: none` (and the -comment above it) in its pubspec — today only `packages/stream_chat_flutter_ai_openui/pubspec.yaml`; the A2UI and -OpenUI conformance packages and the examples stay private — delete both lines in this same PR. Until then the package is +comment above it) in its pubspec — today none; the A2UI and OpenUI conformance packages and the examples stay +private — delete both lines in this same PR. Until then the package is private, so `lint:pub`, `release:pub` and the release workflows skip it; from this release on it is published with the other packages. pub.dev can't create a package through automated publishing, so tell the user that `release_publish.yml` fails at the first newly public package, after core is published: a publisher member -uploads each newly public package's `` by hand from the `v` tag and enables automated publishing -on its pub.dev admin page, then re-runs `release_publish` once, which skips the packages already live and creates -the GitHub Release. +uploads each newly public package's `` by hand from the `v` tag, transfers it to the +`getstream.io` publisher (a first upload belongs to the uploader's account) and enables automated publishing on its +pub.dev admin page with the same settings as core's, then re-runs `release_publish` once, which skips the packages +already live and creates the GitHub Release. ### 4. Analyze, then commit @@ -249,8 +250,8 @@ melos run lint:pub ``` This is the real publish gate, and it now covers every publishable package: `lint:pub` skips versions already on -pub.dev, and `` isn't. Confirm the output shows each of them (today `stream_chat_flutter_ai` and -`stream_chat_flutter_ai_a2ui`, and `stream_chat_flutter_ai_openui` once public) being validated — if melos reports +pub.dev, and `` isn't. Confirm the output shows each of them (today `stream_chat_flutter_ai`, +`stream_chat_flutter_ai_a2ui` and `stream_chat_flutter_ai_openui`) being validated — if melos reports none, or fewer, a version bump (or dropping `publish_to: none`) didn't take. The A2UI and OpenUI dry runs resolve core through the workspace, so they pass although core `` isn't on pub.dev yet. Read failures carefully — pub reports two severities and only one blocks: diff --git a/.github/workflows/release_publish.yml b/.github/workflows/release_publish.yml index 55505ef4..26ad2fba 100644 --- a/.github/workflows/release_publish.yml +++ b/.github/workflows/release_publish.yml @@ -82,7 +82,7 @@ jobs: - name: 📝 First Release Notice if: failure() && steps.publish.outcome == 'failure' run: | - echo "::notice title=First release of a package::pub.dev can't create a package through automated publishing. A package's first version (such as stream_chat_flutter_ai_openui's) is uploaded by hand by a publisher member from this tag; then enable automated publishing on its pub.dev admin page and re-run this workflow." + echo "::notice title=First release of a package::pub.dev can't create a package through automated publishing. A package's first version is uploaded by hand by a publisher member from this tag; then enable automated publishing on its pub.dev admin page and re-run this workflow." - name: 🏷️ Extract Version Info if: github.event_name == 'push' diff --git a/CLAUDE.md b/CLAUDE.md index 3599b7bd..db34cd5a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -34,7 +34,7 @@ plugin for the core package's generative UI. It uses only the core package's pub `a2ui_core` type appears in its API, so the protocol library can be replaced. The same holds for `json_schema_builder`, the schema library `a2ui_core`'s catalogs are written in. -A third package, `stream_chat_flutter_ai_openui` (private until it is released), is the OpenUI renderer +A third package, `stream_chat_flutter_ai_openui`, is the OpenUI renderer plugin for the core package's generative UI. It uses only the core package's public API, and keeps its own port of OpenUI Lang (the parser, and later the evaluator and runtime) private inside `lib/src/core/`: code outside `lib/src/core/` imports only the files at its top level, so the port can be replaced. @@ -57,7 +57,7 @@ packages/stream_chat_flutter_ai/example # showcase app, publish_to: none packages/stream_chat_flutter_ai_a2ui/ # the A2UI renderer plugin packages/stream_chat_flutter_ai_a2ui/example # A2UI component gallery, publish_to: none packages/stream_chat_flutter_ai_a2ui_conformance/ # A2UI conformance suites (tests only), publish_to: none -packages/stream_chat_flutter_ai_openui/ # the OpenUI renderer plugin, publish_to: none until released +packages/stream_chat_flutter_ai_openui/ # the OpenUI renderer plugin packages/stream_chat_flutter_ai_openui/example # OpenUI conversation and program gallery, publish_to: none packages/stream_chat_flutter_ai_openui_conformance/ # OpenUI conformance suites (tests only), publish_to: none ``` @@ -140,10 +140,10 @@ sharing `.github/actions/package_analysis`), `pr_title` (conventional-commit enf ## Releasing Releases follow the same flow as `stream-chat-flutter` and `stream-feeds-flutter`. The published packages -(`stream_chat_flutter_ai` and `stream_chat_flutter_ai_a2ui`, and `stream_chat_flutter_ai_openui` once it is -released) are released **in lockstep**: they always share one `version:`, one `v` tag publishes all of them, -and the OpenUI and A2UI packages depend on `stream_chat_flutter_ai: ^`, which lives in the root -`melos.command.bootstrap` list like every other constraint and is copied into the packages by `melos bootstrap`. +(`stream_chat_flutter_ai`, `stream_chat_flutter_ai_a2ui` and `stream_chat_flutter_ai_openui`) are released +**in lockstep**: they always share one `version:`, one `v` tag publishes all of them, and the OpenUI and +A2UI packages depend on `stream_chat_flutter_ai: ^`, which lives in the root `melos.command.bootstrap` list +like every other constraint and is copied into the packages by `melos bootstrap`. Until its first release PR drops `publish_to: none`, a package is private and the release tooling skips it. 1. `/release-pr ` (`.claude/skills/release-pr/SKILL.md`) bumps every publishable package's version and the diff --git a/README.md b/README.md index 33514d4b..36e2d931 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ channel is documented as an optional integration. | --- | --- | --- | | [`stream_chat_flutter_ai`](packages/stream_chat_flutter_ai) | [![Pub](https://img.shields.io/pub/v/stream_chat_flutter_ai.svg)](https://pub.dev/packages/stream_chat_flutter_ai) | AI chat UI components: `StreamingMessageView`, `ChatComposer`, `AITypingIndicatorView`, `ChartView`, `CodeBlockView` and more. | | [`stream_chat_flutter_ai_a2ui`](packages/stream_chat_flutter_ai_a2ui) | [![Pub](https://img.shields.io/pub/v/stream_chat_flutter_ai_a2ui.svg)](https://pub.dev/packages/stream_chat_flutter_ai_a2ui) | Shows the interactive UI an agent writes in [A2UI](https://a2ui.org) in its replies, through the core package's generative UI. | -| [`stream_chat_flutter_ai_openui`](packages/stream_chat_flutter_ai_openui) | Not published yet | Shows the interactive UI an agent writes in [OpenUI Lang](https://github.com/thesysdev/openui) in its replies, through the core package's generative UI. | +| [`stream_chat_flutter_ai_openui`](packages/stream_chat_flutter_ai_openui) | [![Pub](https://img.shields.io/pub/v/stream_chat_flutter_ai_openui.svg)](https://pub.dev/packages/stream_chat_flutter_ai_openui) | Shows the interactive UI an agent writes in [OpenUI Lang](https://github.com/thesysdev/openui) in its replies, through the core package's generative UI. | See the [package README](packages/stream_chat_flutter_ai/README.md) for the full component reference.