Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .claude/skills/release-pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<X.Y.Z>` 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: ^<version>`; that
constraint lives in the root `melos.command.bootstrap.dependencies` list, and bootstrap copies it into every
Expand Down Expand Up @@ -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 `<version>` by hand from the `v<version>` 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 `<version>` by hand from the `v<version>` 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

Expand Down Expand Up @@ -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 `<version>` 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 `<version>` 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 `<version>` isn't on pub.dev yet. Read failures carefully —
pub reports two severities and only one blocks:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
12 changes: 6 additions & 6 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
```
Expand Down Expand Up @@ -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<version>` tag publishes all of them,
and the OpenUI and A2UI packages depend on `stream_chat_flutter_ai: ^<version>`, 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<version>` tag publishes all of them, and the OpenUI and
A2UI packages depend on `stream_chat_flutter_ai: ^<version>`, 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 <version>` (`.claude/skills/release-pr/SKILL.md`) bumps every publishable package's version and the
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down