Skip to content

fix(docs): migrate shared catalog samples to A2UI 1.0 - #8164

Merged
contextablemark merged 2 commits into
mainfrom
mark/fix-a2ui-shared-catalog-184
Nov 4, 2026
Merged

contextablemark merged 2 commits into
mainfrom
mark/fix-a2ui-shared-catalog-184

Conversation

@contextablemark

@contextablemark contextablemark commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

The shared standard catalog still emitted version: "v1.0", which CopilotKit 1.84 rejects. Emit canonical "1.0" operations and upgrade the standalone docs renderer from 1.81.0 to published 1.84.0 in the same change. This fixes both the docs component previews/copyable operations and the examples/v2/a2ui-markdown catalog, which already consumes the workspace 1.84 renderer.

Add a regression that checks every shared sample operation against the real published 1.84 validator and standard catalog manifest. Pin @copilotkit/shared directly as a test dependency and update the standalone npm lockfile. Older A2UI catalogs are unchanged.

Validation:

  • Regression failed with the previous producer (v1.0 versus 1.0); passes after the migration.
  • Clean standalone npm ci; scoped formatter/lint; docs generation and explicit typecheck; 91 test files / 585 tests pass.
  • Docs production build passes, with no tracked generated output changes.
  • Nx builds of react-core/runtime and the a2ui-markdown example pass.
  • Real Chrome on production builds: docs layout renders; bound form fields submit their edited values; button events work; displayed operations use 1.0. The markdown catalog renders all 39 samples / 88 canonical operations, with a working button event and no page errors.

Follow-up to #8155. This uses published 1.84.0 packages; there is no package release blocker or compatibility shim.

Summary by CodeRabbit

  • Bug Fixes
    • Generated showcase operations now use the standard 1.0 version format instead of v1.0 for surface creation and related data-model and component updates. This aligns the version shown in sample operations and initial-data examples. The condition for generating optional data-model updates remains unchanged.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Catalog operations now use version "1.0" instead of "v1.0". Shell-docs adds dependencies and tests that check package version alignment and validate generated operations against the standard UI manifest.

Changes: Catalog operation versions

Layer / File(s) Summary
Update catalog operation versions
showcase/shared/generative-ui-catalog/operations.ts
The createSurface, optional updateDataModel, and updateComponents operations now use version "1.0".
Validate generated catalog operations
showcase/shell-docs/src/components/__tests__/standard-catalog-data.test.ts, showcase/shell-docs/package.json
The test validates sample operations against the standard UI manifest, tracks created surfaces, and checks package version alignment. The package adds @ag-ui/core and @copilotkit/shared, and upgrades @copilotkit/react-core.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

  • CopilotKit/CopilotKit#8139: The operations now use the canonical "1.0" version, addressing the protocol-version gap for CopilotKit-owned producers. The separate Angular catalog constructor incompatibility is not addressed.
Merge Risk: Minimal · up to c2082

The catalog version migration and matching dependency updates present no identified merge-blocking issue. Mergeable subject to normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: migrating shared catalog samples to A2UI 1.0.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files. (1 skipped: 1 unsupported.)

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share
Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 6341d5a and c2082cd.

Files ignored due to path filters: 1
  • showcase/shell-docs/package-lock.json is excluded by !**/package-lock.json, !**/package-lock.json
Files selected for processing: 2
  • showcase/shell-docs/package.json
  • showcase/shell-docs/src/components/__tests__/standard-catalog-data.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 43 services digest-pinned.

Run 2026-11-04 06:11:49 PST — 0 finding(s).

@contextablemark
contextablemark marked this pull request as ready for review November 3, 2026 17:36
mme
mme previously approved these changes Nov 4, 2026

@mme mme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks. "v1.0" becomes "1.0" in all three operations, and nothing else in the repo still emits "v1.0". Running every sample through the published validator is a nice regression guard.

Two small, non-blocking notes:

  • The lockfile now has two copies of @ag-ui/core: 1.0.3 at the top level, pulled in by @copilotkit/shared's range, and 1.0.2 nested under the client, encoder, proto and react-core packages. That's harmless for the docs app, and an override would dedupe it if you care.
  • @copilotkit/shared is pinned separately from @copilotkit/react-core. If one gets bumped without the other, the test would validate the samples against a different version than the renderer ships. Bumping them together (or a short comment next to the pin) would keep that from drifting.

Assert that the published shared validator and React renderer stay pinned
to the same version.

Pin AG-UI core to the exact 1.0.2 version required by the renderer and
transport packages, removing four redundant nested copies without overrides.
@contextablemark
contextablemark added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 857f174 Nov 4, 2026
41 checks passed
@contextablemark
contextablemark deleted the mark/fix-a2ui-shared-catalog-184 branch November 4, 2026 14:46
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