Skip to content

feat(vue): native generative UI with the standard catalog - #8280

Merged
AlemTuzlak merged 30 commits into
mainfrom
feat/vue-generative-ui
Nov 9, 2026
Merged

AlemTuzlak merged 30 commits into
mainfrom
feat/vue-generative-ui

Conversation

@AlemTuzlak

@AlemTuzlak AlemTuzlak commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

A Vue app can now let the agent render its own Vue components in the chat or in named places on the page. This is the same native generative UI that React (#7819) and Angular (#8105) have. It includes all 69 components of the standard catalog. To try it, run the Vue demo and open /generative-ui or /generative-ui-standard (steps below).

What does this PR do?

It adds a new entry, @copilotkit/vue/v2/generative-ui. Its exports have the same names as React's /v2/generative-ui.

  • Setup: <CopilotKitProvider :generativeUI="{ ui }"> turns the feature on. It supports the tool transport (render_ui) and the markdown transport (a2ui fences).
  • Where UI goes: the agent renders into the chat, or into a <GenerativeUISurface id="..."> on the page. The default slot of the surface is the fallback content.
  • App state and functions: useGenerativeUIState and useGenerativeUIFunction connect generated UI to the app.
  • Standard catalog: standardUI has all 69 components as Vue SFCs. Chart and Map are opt-in with app.use(GenerativeUIChart) and app.use(GenerativeUIMap). Without the plugins, Chart shows a table and Map shows a list.
  • Chat card: a #generative-ui-surface slot on CopilotChat, CopilotPopup and CopilotSidebar replaces the default card.

How a generated Vue component gets its props:

  • Data props are normal Vue props. Declare them explicitly in the SFC.
  • A writable prop x is the prop x plus an update:x emit, so defineModel("x") works.
  • Events are optional function props. The component awaits the result.
  • child() and childList() keys are named slots. A list slot gives one VNode for each child.

Other changes:

  • Shared helpers: the framework-free helpers of Angular's standard catalog (style, URL, chart config, map guards) moved to @copilotkit/shared/generative-ui. Angular imports them from there, and its behavior does not change. React still has its own copies. openUrl checks that window.open exists, so the Hermes API scan from feat(react-native): generative UI with custom native catalogs #8260 passes.
  • Shared with React: toError, withCause and the surface activity content parser moved from react-core to @copilotkit/shared/generative-ui and @copilotkit/core/generative-ui. React re-exports them, so its exports do not change. Vue uses the same code.
  • Docs: the 9 generative UI guide pages have a Vue tab, next to the React Native tab from feat(react-native): generative UI with custom native catalogs #8260. New Vue reference pages: GenerativeUISurface, useGenerativeUIState, useGenerativeUIFunction. CopilotKitProvider and CopilotChat reference pages are updated.
  • Demo: the Nuxt demo has two new pages:
    • /generative-ui: a store page, ported from the React demo. The agent renders into named places on the page.
    • /generative-ui-standard: standardUI in the chat. Charts are turned on with a Nuxt plugin that calls app.use(GenerativeUIChart).
  • Hardening from feat(react-native): generative UI with custom native catalogs #8260, in Vue too: an activity message with malformed content is skipped, not thrown. A throwing app error fallback stays inside its node. A failure is reported once per place. The surface boundary resets when new content arrives.
  • Parity: packages/vue/PARITY.md has the matrix rows and the intentional divergences.

Each commit is one piece of the port, so you can review the PR commit by commit.

Related PRs and Issues

Checklist

  • I have read the Contribution Guide
  • If the PR changes or adds functionality, I have updated the relevant documentation
  • If the PR contains a breaking change, the title has ! (for example feat(react-core)!: ...) and the description has a BREAKING CHANGE: line with migration steps. See VERSIONING.md (no breaking change: all additions)
  • "Allow edits by maintainers" is checked (lets us help iterate on your PR directly — faster turnaround for everyone)

Testing

Commands run

  • pnpm nx run-many -t build,test,check-types,publint,attw -p @copilotkit/vue: pass. 161 test files, 1787 tests passed, 1 skipped. 42 of the files test generative UI.
  • pnpm nx run-many -t test,build -p @copilotkit/shared @copilotkit/angular @copilotkit/core: pass, after the merge of main. The core tests include the Hermes API scan.
  • pnpm check:public-api-manifest: current.
  • pnpm nx run-many -t build,test,check-types,publint,attw -p @copilotkit/vue @copilotkit/shared @copilotkit/core @copilotkit/react-core @copilotkit/angular: pass, after the review fixes.
  • The shell-docs CI steps (npm run pretypecheck, npm run test:ci, npm run typecheck in showcase/shell-docs): pass. Shell-docs has no Nx target.
  • pnpm --filter @copilotkit/vue-demo lint: pass. The demo build passes with NODE_OPTIONS=--max-old-space-size=8192. It runs out of memory at the default size on main too.

Manual test (needs an OpenAI key)

  1. Run pnpm nx run @copilotkit/vue:build.
  2. Run OPENAI_API_KEY=... pnpm -C examples/v2/vue/demo dev and open http://localhost:3000/generative-ui.
  3. Click "Add" on a featured product. The cart badge shows "Cart 1, $179".
  4. Click the "Buy headphones" suggestion. The agent renders 3 product cards in the "Headphones" area, not in the chat. The first card shows "In cart: 1" from the app state.
  5. Click "Add to cart" on a generated card. The cart badge changes to "Cart 2, $358".
  6. Click the "Featured products" suggestion. The generated cards go away and the featured list comes back.
  7. Open http://localhost:3000/generative-ui-standard. Click "Compare laptops", then "Revenue chart", then "Trip form". Each answer is a card in the chat: a table with a badge, a chart.js bar chart, and a form with a text field, a select, a checkbox and a button.

I did these steps in headless Chromium against a real OpenAI model. All steps passed with no console errors. The pages stayed responsive during the agent runs, and the generated form took typed text, a select choice and a checkbox.

How this PR makes testing easy

  • Vue tests for every layer: catalog types, root composable, SurfaceView, surfaces, the chat card, the markdown transport, provider wiring, and each standard component group. Where the case translates, the test names are the same as the React tests.
  • showcase/shell-docs/src/lib/__tests__/vue-generative-ui-docs.test.ts pins the Vue docs to the code: the reference props, the chat slot props, the camelCase :generativeUI binding, and the imported names.
  • Type tests in .test-d.ts files. check-types now runs them through tsconfig.typetests.json.
  • The /generative-ui and /generative-ui-standard pages in examples/v2/vue/demo.

Risk / rollback

The risk is low for current users. Everything is new and opt-in: nothing changes unless an app sets generativeUI or imports /v2/generative-ui.

  • Shared areas: the existing code this PR changes is CopilotKitProvider.vue, the chat components (to pass the slot on), Angular's imports of the moved helpers, and React's imports of toError, withCause and the content parser. The React tests pass unchanged.
  • Bundle: importing @copilotkit/vue/v2 alone does not load the standard catalog. A check of the built output confirms this.
  • Peers: chart.js and maplibre-gl are optional peers. The demo adds chart.js as a dependency for its chart.
  • Rollback: revert the PR.

Public API change

Before

<CopilotKitProvider runtime-url="/api/copilotkit">
  <CopilotChat />
</CopilotKitProvider>

After

<script setup lang="ts">
import { standardUI } from "@copilotkit/vue/v2/generative-ui";
</script>

<template>
  <CopilotKitProvider runtime-url="/api/copilotkit" :generativeUI="{ ui: standardUI }">
    <CopilotChat />
  </CopilotKitProvider>
</template>

Write the binding in camelCase (:generativeUI). Vue reads :generative-ui as a different prop, generativeUi. The existing openGenerativeUI prop works the same way.

🤖 Generated with Claude Code

AlemTuzlak and others added 24 commits November 9, 2026 14:16
Move the style, URL, chart config and map helpers of Angular's standard
catalog to @copilotkit/shared/generative-ui so the Vue port can reuse them.
Angular imports them from shared with no behavior change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ns, selects and list items

Co-Authored-By: Claude Opus 5.5 <[email protected]>
CopilotKitProvider takes generativeUI={ ui } and registers the surface,
function-call and render_ui renderers. CopilotChat, CopilotPopup and
CopilotSidebar take a #generative-ui-surface slot, and the assistant message
renders a2ui fences as surfaces with the markdown transport.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d map entries

Adds the generative-ui, generative-ui/chart and generative-ui/map subpaths,
keeps chart.js, maplibre-gl and the core/shared generative-ui code external,
type-checks the .test-d.ts type tests, and updates the public API manifest.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
useId is new in Vue 3.5. The standard components now use useStandardId,
which is useId when Vue has it and a module counter otherwise.

Also corrects test comments that still described the provider wiring as
pending.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app

railway-app Bot commented Nov 9, 2026

Copy link
Copy Markdown

This PR was not deployed automatically as @AlemTuzlak does not have access to the Railway project.

In order to get automatic PR deploys, please add @AlemTuzlak to your workspace on Railway.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install timed out. The project may have too many dependencies for the sandbox.

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

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 43 services digest-pinned.

Run 2026-11-09 07:29:42 PST — 0 finding(s).

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Size Change: +16.8 kB (+0.68%)

Total Size: 2.47 MB

📦 View Changed
Filename Size Change
packages/core/dist/generative-ui/index.cjs 37.3 kB +480 B (+1.3%)
packages/core/dist/generative-ui/index.mjs 37.2 kB +465 B (+1.26%)
packages/react-core/dist/chat-BEggqH4S.mjs 0 B -19.2 kB (removed) 🏆
packages/react-core/dist/chat-BnsrQ0VS.cjs 18.4 kB +18.4 kB (new file) 🆕
packages/react-core/dist/chat-dPii75tI.cjs 0 B -19.6 kB (removed) 🏆
packages/react-core/dist/chat-IWySXWXP.mjs 18 kB +18 kB (new file) 🆕
packages/react-core/dist/copilotkit-4j70NNna.mjs 0 B -139 kB (removed) 🏆
packages/react-core/dist/copilotkit-C_hENF6p.cjs 136 kB +136 kB (new file) 🆕
packages/react-core/dist/copilotkit-CgjSXXnA.cjs 0 B -136 kB (removed) 🏆
packages/react-core/dist/copilotkit-DAYYDsMu.mjs 139 kB +139 kB (new file) 🆕
packages/react-core/dist/index.umd.js 85.9 kB -1.22 kB (-1.4%)
packages/react-core/dist/MarkdownSurfaces-BCVdnDAk.cjs 2.63 kB +2.63 kB (new file) 🆕
packages/react-core/dist/MarkdownSurfaces-CjJduaJR.mjs 2.55 kB +2.55 kB (new file) 🆕
packages/react-core/dist/MarkdownSurfaces-DUY30nYv.mjs 0 B -2.55 kB (removed) 🏆
packages/react-core/dist/MarkdownSurfaces-yQQoI3zg.cjs 0 B -2.63 kB (removed) 🏆
packages/react-core/dist/refs-Cm_0uxk4.cjs 0 B -588 B (removed) 🏆
packages/react-core/dist/refs-DL7ITFFD.cjs 590 B +590 B (new file) 🆕
packages/react-core/dist/use-generative-ui-root-1NJR22b6.cjs 0 B -4.54 kB (removed) 🏆
packages/react-core/dist/use-generative-ui-root-CaTyBFNR.cjs 4.53 kB +4.53 kB (new file) 🆕
packages/react-core/dist/use-generative-ui-root-V8YHNAp3.mjs 0 B -4.51 kB (removed) 🏆
packages/react-core/dist/use-generative-ui-root-WI9ERMpo.mjs 4.51 kB +4.51 kB (new file) 🆕
packages/react-core/dist/v2/generative-ui.cjs 47.8 kB -1 B (0%)
packages/react-core/dist/v2/generative-ui.mjs 46.9 kB +1 B (0%)
packages/react-core/dist/v2/generative-ui/native.cjs 998 B +18 B (+1.84%)
packages/react-core/dist/v2/generative-ui/native.mjs 860 B -3 B (-0.35%)
packages/react-core/dist/v2/index.cjs 4.34 kB +1 B (+0.02%)
packages/react-core/dist/v2/index.mjs 4.33 kB -1 B (-0.02%)
packages/react-core/dist/v2/index.umd.js 160 kB -1.25 kB (-0.77%)
packages/shared/dist/generative-ui/index.cjs 3.33 kB +388 B (+13.21%) ⚠️
packages/shared/dist/generative-ui/index.mjs 2.65 kB +324 B (+13.93%) ⚠️
packages/shared/dist/generative-ui/standard/chart-config.cjs 3.92 kB +3.92 kB (new file) 🆕
packages/shared/dist/generative-ui/standard/chart-config.mjs 3.88 kB +3.88 kB (new file) 🆕
packages/shared/dist/generative-ui/standard/map-helpers.cjs 2.14 kB +2.14 kB (new file) 🆕
packages/shared/dist/generative-ui/standard/map-helpers.mjs 2.1 kB +2.1 kB (new file) 🆕
packages/shared/dist/generative-ui/standard/style-helpers.cjs 2.02 kB +2.02 kB (new file) 🆕
packages/shared/dist/generative-ui/standard/style-helpers.mjs 1.98 kB +1.98 kB (new file) 🆕
packages/shared/dist/generative-ui/standard/url.cjs 792 B +792 B (new file) 🆕
packages/shared/dist/generative-ui/standard/url.mjs 778 B +778 B (new file) 🆕
packages/shared/dist/generative-ui/thrown.cjs 1.18 kB +1.18 kB (new file) 🆕
packages/shared/dist/generative-ui/thrown.mjs 1.17 kB +1.17 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size
packages/a2ui-renderer/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/a2ui-renderer/dist/a2ui-types.cjs 472 B
packages/a2ui-renderer/dist/a2ui-types.mjs 469 B
packages/a2ui-renderer/dist/index.cjs 979 B
packages/a2ui-renderer/dist/index.mjs 637 B
packages/a2ui-renderer/dist/index.umd.js 13.8 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/A2uiSurface.cjs 1.52 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/A2uiSurface.mjs 1.46 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/adapter.cjs 1.87 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/adapter.mjs 1.8 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/AudioPlayer.cjs 920 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/AudioPlayer.mjs 508 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Button.cjs 1.04 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Button.mjs 631 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Card.cjs 845 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Card.mjs 435 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/CheckBox.cjs 1.11 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/CheckBox.mjs 1.04 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChildList.cjs 799 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChildList.mjs 737 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChoicePicker.cjs 1.65 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/ChoicePicker.mjs 1.58 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Column.cjs 856 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Column.mjs 802 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/DateTimeInput.cjs 1.12 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/DateTimeInput.mjs 1.05 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Divider.cjs 856 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Divider.mjs 446 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Icon.cjs 877 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Icon.mjs 469 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Image.cjs 995 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Image.mjs 587 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/List.cjs 920 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/List.mjs 508 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Modal.cjs 1.21 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Modal.mjs 1.15 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Row.cjs 855 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Row.mjs 801 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Slider.cjs 1.07 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Slider.mjs 1 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Tabs.cjs 1.11 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Tabs.mjs 1.06 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Text.cjs 919 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Text.mjs 504 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/TextField.cjs 1.22 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/TextField.mjs 1.15 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Video.cjs 788 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/components/Video.mjs 378 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/index.cjs 928 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/index.mjs 855 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/utils.cjs 594 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/basic/utils.mjs 571 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Button.cjs 998 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Button.mjs 593 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/ChildList.cjs 800 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/ChildList.mjs 735 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Column.cjs 1.08 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Column.mjs 1.02 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Row.cjs 1.07 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Row.mjs 1.01 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Text.cjs 894 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/Text.mjs 839 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/TextField.cjs 1.21 kB
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/components/TextField.mjs 802 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/index.cjs 849 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/catalog/minimal/index.mjs 804 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/index.cjs 310 B
packages/a2ui-renderer/dist/react-renderer/a2ui-react/index.mjs 325 B
packages/a2ui-renderer/dist/react-renderer/catalog-utils.cjs 930 B
packages/a2ui-renderer/dist/react-renderer/catalog-utils.mjs 875 B
packages/a2ui-renderer/dist/react-renderer/core/A2UIProvider.cjs 2.02 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIProvider.mjs 1.94 kB
packages/a2ui-renderer/dist/react-renderer/core/A2UIRenderer.cjs 909 B
packages/a2ui-renderer/dist/react-renderer/core/A2UIRenderer.mjs 847 B
packages/a2ui-renderer/dist/react-renderer/create-catalog.cjs 1.35 kB
packages/a2ui-renderer/dist/react-renderer/create-catalog.mjs 1.28 kB
packages/a2ui-renderer/dist/react-renderer/filter-catalog.cjs 622 B
packages/a2ui-renderer/dist/react-renderer/filter-catalog.mjs 569 B
packages/a2ui-renderer/dist/react-renderer/hooks/useA2UI.cjs 316 B
packages/a2ui-renderer/dist/react-renderer/hooks/useA2UI.mjs 309 B
packages/a2ui-renderer/dist/react-renderer/index.cjs 427 B
packages/a2ui-renderer/dist/react-renderer/index.mjs 568 B
packages/a2ui-renderer/dist/react-renderer/lib/utils.cjs 236 B
packages/a2ui-renderer/dist/react-renderer/lib/utils.mjs 188 B
packages/a2ui-renderer/dist/react-renderer/styles/index.cjs 239 B
packages/a2ui-renderer/dist/react-renderer/styles/index.mjs 231 B
packages/a2ui-renderer/dist/react-renderer/theme/ThemeContext.cjs 436 B
packages/a2ui-renderer/dist/react-renderer/theme/ThemeContext.mjs 381 B
packages/core/dist/a2ui-markdown-BxZr1mEU.mjs 13.8 kB
packages/core/dist/a2ui-markdown-DkMXFQih.cjs 13.9 kB
packages/core/dist/index.cjs 94.4 kB
packages/core/dist/index.mjs 93.9 kB
packages/core/dist/index.umd.js 114 kB
packages/mcp-apps-renderer/dist/activity.cjs 259 B
packages/mcp-apps-renderer/dist/activity.mjs 170 B
packages/mcp-apps-renderer/dist/activity.umd.js 2.24 kB
packages/mcp-apps-renderer/dist/constants.cjs 714 B
packages/mcp-apps-renderer/dist/constants.mjs 712 B
packages/mcp-apps-renderer/dist/content-schema.cjs 768 B
packages/mcp-apps-renderer/dist/content-schema.mjs 765 B
packages/mcp-apps-renderer/dist/follow-up.cjs 796 B
packages/mcp-apps-renderer/dist/follow-up.mjs 794 B
packages/mcp-apps-renderer/dist/index.mjs 369 B
packages/mcp-apps-renderer/dist/request-queue.mjs 2.39 kB
packages/mcp-apps-renderer/dist/sandbox.mjs 2 kB
packages/mcp-apps-renderer/dist/session.mjs 6.91 kB
packages/react-core/dist/index.cjs 17.8 kB
packages/react-core/dist/index.mjs 17.7 kB
packages/react-core/dist/refs-DiZXJ63p.mjs 495 B
packages/react-core/dist/v2/context.cjs 1.58 kB
packages/react-core/dist/v2/context.mjs 1.5 kB
packages/react-core/dist/v2/headless.cjs 17.7 kB
packages/react-core/dist/v2/headless.mjs 17.2 kB
packages/react-native/dist/chunk-C0xms8kb.cjs 546 B
packages/react-native/dist/components/index.cjs 8.81 kB
packages/react-native/dist/components/index.mjs 8.62 kB
packages/react-native/dist/CopilotKitProvider-CXQGv39c.mjs 1.43 kB
packages/react-native/dist/CopilotKitProvider-zSfbWwIg.cjs 1.55 kB
packages/react-native/dist/generative-ui/index.cjs 7.72 kB
packages/react-native/dist/generative-ui/index.mjs 7.48 kB
packages/react-native/dist/headless.cjs 633 B
packages/react-native/dist/headless.mjs 373 B
packages/react-native/dist/index.cjs 6.8 kB
packages/react-native/dist/index.mjs 6.41 kB
packages/react-native/dist/polyfills.cjs 2.35 kB
packages/react-native/dist/polyfills.mjs 2.35 kB
packages/react-native/dist/polyfills/crypto.cjs 373 B
packages/react-native/dist/polyfills/crypto.mjs 381 B
packages/react-native/dist/polyfills/dom.cjs 540 B
packages/react-native/dist/polyfills/dom.mjs 550 B
packages/react-native/dist/polyfills/encoding.cjs 332 B
packages/react-native/dist/polyfills/encoding.mjs 307 B
packages/react-native/dist/polyfills/location.cjs 236 B
packages/react-native/dist/polyfills/location.mjs 244 B
packages/react-native/dist/polyfills/streams.cjs 371 B
packages/react-native/dist/polyfills/streams.mjs 339 B
packages/react-textarea/dist/index.cjs 17.7 kB
packages/react-textarea/dist/index.mjs 17 kB
packages/react-textarea/dist/index.umd.js 18.5 kB
packages/react-ui/dist/index.cjs 25.3 kB
packages/react-ui/dist/index.mjs 24.6 kB
packages/react-ui/dist/index.umd.js 26.6 kB
packages/runtime-client-gql/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/runtime-client-gql/dist/client/conversion.cjs 1.52 kB
packages/runtime-client-gql/dist/client/conversion.mjs 1.45 kB
packages/runtime-client-gql/dist/client/CopilotRuntimeClient.cjs 1.58 kB
packages/runtime-client-gql/dist/client/CopilotRuntimeClient.mjs 1.54 kB
packages/runtime-client-gql/dist/client/types.cjs 701 B
packages/runtime-client-gql/dist/client/types.mjs 642 B
packages/runtime-client-gql/dist/graphql/@generated/gql.cjs 850 B
packages/runtime-client-gql/dist/graphql/@generated/gql.mjs 850 B
packages/runtime-client-gql/dist/graphql/@generated/graphql.cjs 2.4 kB
packages/runtime-client-gql/dist/graphql/@generated/graphql.mjs 2.36 kB
packages/runtime-client-gql/dist/graphql/definitions/mutations.cjs 740 B
packages/runtime-client-gql/dist/graphql/definitions/mutations.mjs 732 B
packages/runtime-client-gql/dist/graphql/definitions/queries.cjs 316 B
packages/runtime-client-gql/dist/graphql/definitions/queries.mjs 304 B
packages/runtime-client-gql/dist/index.cjs 679 B
packages/runtime-client-gql/dist/index.mjs 495 B
packages/runtime-client-gql/dist/index.umd.js 9.58 kB
packages/runtime-client-gql/dist/message-conversion/agui-to-gql.cjs 1.72 kB
packages/runtime-client-gql/dist/message-conversion/agui-to-gql.mjs 1.7 kB
packages/runtime-client-gql/dist/message-conversion/gql-to-agui.cjs 1.56 kB
packages/runtime-client-gql/dist/message-conversion/gql-to-agui.mjs 1.53 kB
packages/runtime-client-gql/dist/package.cjs 181 B
packages/runtime-client-gql/dist/package.mjs 116 B
packages/shared/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/shared/dist/a2ui-catalog-schema.cjs 4.2 kB
packages/shared/dist/a2ui-catalog-schema.mjs 4.13 kB
packages/shared/dist/a2ui-envelope.cjs 2.44 kB
packages/shared/dist/a2ui-envelope.mjs 2.42 kB
packages/shared/dist/a2ui-prompts.cjs 4.57 kB
packages/shared/dist/a2ui-prompts.mjs 4.54 kB
packages/shared/dist/attachments/content.cjs 255 B
packages/shared/dist/attachments/content.mjs 253 B
packages/shared/dist/attachments/utils.cjs 1.83 kB
packages/shared/dist/attachments/utils.mjs 1.79 kB
packages/shared/dist/constants/index.cjs 501 B
packages/shared/dist/constants/index.mjs 480 B
packages/shared/dist/debug.cjs 454 B
packages/shared/dist/debug.mjs 452 B
packages/shared/dist/event-transforms/index.cjs 335 B
packages/shared/dist/event-transforms/index.mjs 165 B
packages/shared/dist/event-transforms/open-generative-ui-middleware.cjs 2.42 kB
packages/shared/dist/event-transforms/open-generative-ui-middleware.mjs 2.35 kB
packages/shared/dist/event-transforms/recorded-events.cjs 988 B
packages/shared/dist/event-transforms/recorded-events.mjs 925 B
packages/shared/dist/finalize-events.cjs 1.94 kB
packages/shared/dist/finalize-events.mjs 1.88 kB
packages/shared/dist/generative-ui/basic-functions.cjs 2.5 kB
packages/shared/dist/generative-ui/basic-functions.mjs 2.45 kB
packages/shared/dist/generative-ui/catalog/catalog-export.cjs 4.5 kB
packages/shared/dist/generative-ui/catalog/catalog-export.mjs 4.46 kB
packages/shared/dist/generative-ui/catalog/catalog.cjs 4.18 kB
packages/shared/dist/generative-ui/catalog/catalog.mjs 4.14 kB
packages/shared/dist/generative-ui/catalog/errors.cjs 203 B
packages/shared/dist/generative-ui/catalog/errors.mjs 198 B
packages/shared/dist/generative-ui/catalog/json-schema.cjs 466 B
packages/shared/dist/generative-ui/catalog/json-schema.mjs 405 B
packages/shared/dist/generative-ui/catalog/refs.cjs 414 B
packages/shared/dist/generative-ui/catalog/refs.mjs 369 B
packages/shared/dist/generative-ui/catalog/schema.cjs 1.17 kB
packages/shared/dist/generative-ui/catalog/schema.mjs 1.15 kB
packages/shared/dist/generative-ui/child-refs.cjs 2.34 kB
packages/shared/dist/generative-ui/child-refs.mjs 2.27 kB
packages/shared/dist/generative-ui/clone-value.cjs 4.37 kB
packages/shared/dist/generative-ui/clone-value.mjs 4.36 kB
packages/shared/dist/generative-ui/compact-schema.cjs 2.97 kB
packages/shared/dist/generative-ui/compact-schema.mjs 2.94 kB
packages/shared/dist/generative-ui/is-record.cjs 308 B
packages/shared/dist/generative-ui/is-record.mjs 301 B
packages/shared/dist/generative-ui/prompt-spec.cjs 8.13 kB
packages/shared/dist/generative-ui/prompt-spec.mjs 8.1 kB
packages/shared/dist/generative-ui/prompt.cjs 1.64 kB
packages/shared/dist/generative-ui/prompt.mjs 1.6 kB
packages/shared/dist/generative-ui/render-ui-args.cjs 1.48 kB
packages/shared/dist/generative-ui/render-ui-args.mjs 1.46 kB
packages/shared/dist/generative-ui/schema-render.cjs 3.92 kB
packages/shared/dist/generative-ui/schema-render.mjs 3.88 kB
packages/shared/dist/generative-ui/standard/chart.cjs 985 B
packages/shared/dist/generative-ui/standard/chart.mjs 928 B
packages/shared/dist/generative-ui/standard/checks.cjs 1.21 kB
packages/shared/dist/generative-ui/standard/checks.mjs 1.16 kB
packages/shared/dist/generative-ui/standard/components.cjs 328 B
packages/shared/dist/generative-ui/standard/components.mjs 327 B
packages/shared/dist/generative-ui/standard/composites.cjs 2.06 kB
packages/shared/dist/generative-ui/standard/composites.mjs 1.99 kB
packages/shared/dist/generative-ui/standard/data.cjs 2.33 kB
packages/shared/dist/generative-ui/standard/data.mjs 2.25 kB
packages/shared/dist/generative-ui/standard/declarations.cjs 519 B
packages/shared/dist/generative-ui/standard/declarations.mjs 488 B
packages/shared/dist/generative-ui/standard/feedback.cjs 1.45 kB
packages/shared/dist/generative-ui/standard/feedback.mjs 1.39 kB
packages/shared/dist/generative-ui/standard/inputs.cjs 3.42 kB
packages/shared/dist/generative-ui/standard/inputs.mjs 3.31 kB
packages/shared/dist/generative-ui/standard/layout.cjs 3.31 kB
packages/shared/dist/generative-ui/standard/layout.mjs 3.2 kB
packages/shared/dist/generative-ui/standard/map.cjs 475 B
packages/shared/dist/generative-ui/standard/map.mjs 426 B
packages/shared/dist/generative-ui/standard/media.cjs 2.37 kB
packages/shared/dist/generative-ui/standard/media.mjs 2.29 kB
packages/shared/dist/generative-ui/standard/parameter-order.cjs 1.71 kB
packages/shared/dist/generative-ui/standard/parameter-order.mjs 1.69 kB
packages/shared/dist/generative-ui/standard/styles.cjs 1.7 kB
packages/shared/dist/generative-ui/standard/styles.mjs 1.7 kB
packages/shared/dist/generative-ui/standard/text.cjs 2.34 kB
packages/shared/dist/generative-ui/standard/text.mjs 2.25 kB
packages/shared/dist/generative-ui/standard/theme.cjs 1.67 kB
packages/shared/dist/generative-ui/standard/theme.mjs 1.66 kB
packages/shared/dist/generative-ui/standard/tokens.cjs 3.08 kB
packages/shared/dist/generative-ui/standard/tokens.mjs 2.96 kB
packages/shared/dist/generative-ui/types.cjs 1.57 kB
packages/shared/dist/generative-ui/types.mjs 1.51 kB
packages/shared/dist/generative-ui/validate-operation.cjs 5.61 kB
packages/shared/dist/generative-ui/validate-operation.mjs 5.55 kB
packages/shared/dist/index.cjs 4.16 kB
packages/shared/dist/index.mjs 3.48 kB
packages/shared/dist/index.umd.js 69.9 kB
packages/shared/dist/intelligence-routing-fields.cjs 778 B
packages/shared/dist/intelligence-routing-fields.mjs 775 B
packages/shared/dist/logger.cjs 112 B
packages/shared/dist/logger.mjs 112 B
packages/shared/dist/open-generative-ui-prompts.cjs 1.59 kB
packages/shared/dist/open-generative-ui-prompts.mjs 1.59 kB
packages/shared/dist/package.cjs 181 B
packages/shared/dist/package.mjs 116 B
packages/shared/dist/standard-schema.cjs 740 B
packages/shared/dist/standard-schema.mjs 737 B
packages/shared/dist/telemetry/index.cjs 358 B
packages/shared/dist/telemetry/index.mjs 250 B
packages/shared/dist/telemetry/lambda-client.cjs 1.59 kB
packages/shared/dist/telemetry/lambda-client.mjs 1.58 kB
packages/shared/dist/telemetry/model-host.cjs 1.63 kB
packages/shared/dist/telemetry/model-host.mjs 1.63 kB
packages/shared/dist/telemetry/sampling.cjs 956 B
packages/shared/dist/telemetry/sampling.mjs 935 B
packages/shared/dist/telemetry/telemetry-client.cjs 1.89 kB
packages/shared/dist/telemetry/telemetry-client.mjs 1.83 kB
packages/shared/dist/telemetry/telemetry-disabled.cjs 454 B
packages/shared/dist/telemetry/telemetry-disabled.mjs 451 B
packages/shared/dist/telemetry/utils.cjs 271 B
packages/shared/dist/telemetry/utils.mjs 268 B
packages/shared/dist/transcription-errors.cjs 951 B
packages/shared/dist/transcription-errors.mjs 944 B
packages/shared/dist/utils/clipboard.cjs 407 B
packages/shared/dist/utils/clipboard.mjs 405 B
packages/shared/dist/utils/conditions.cjs 540 B
packages/shared/dist/utils/conditions.mjs 536 B
packages/shared/dist/utils/console-styling.cjs 1.23 kB
packages/shared/dist/utils/console-styling.mjs 1.21 kB
packages/shared/dist/utils/dashboard-url.cjs 415 B
packages/shared/dist/utils/dashboard-url.mjs 413 B
packages/shared/dist/utils/errors.cjs 4.51 kB
packages/shared/dist/utils/errors.mjs 4.41 kB
packages/shared/dist/utils/index.cjs 1.5 kB
packages/shared/dist/utils/index.mjs 1.82 kB
packages/shared/dist/utils/inspector-learning.cjs 2.74 kB
packages/shared/dist/utils/inspector-learning.mjs 2.73 kB
packages/shared/dist/utils/inspector-metadata.cjs 1.44 kB
packages/shared/dist/utils/inspector-metadata.mjs 1.43 kB
packages/shared/dist/utils/inspector-visibility.cjs 285 B
packages/shared/dist/utils/inspector-visibility.mjs 282 B
packages/shared/dist/utils/json-schema.cjs 1.97 kB
packages/shared/dist/utils/json-schema.mjs 1.91 kB
packages/shared/dist/utils/random-id.cjs 618 B
packages/shared/dist/utils/random-id.mjs 559 B
packages/shared/dist/utils/requests.cjs 706 B
packages/shared/dist/utils/requests.mjs 704 B
packages/shared/dist/utils/row-render-keys.cjs 3.38 kB
packages/shared/dist/utils/row-render-keys.mjs 3.36 kB
packages/shared/dist/utils/types.cjs 161 B
packages/shared/dist/utils/types.mjs 160 B
packages/voice/dist/_virtual/_rolldown/runtime.cjs 516 B
packages/voice/dist/index.cjs 175 B
packages/voice/dist/index.mjs 95 B
packages/voice/dist/index.umd.js 1.5 kB
packages/voice/dist/transcription/transcription-service-openai.cjs 495 B
packages/voice/dist/transcription/transcription-service-openai.mjs 434 B
packages/web-inspector/dist/assets/inspector-logo-kite.cjs 2.36 kB
packages/web-inspector/dist/assets/inspector-logo-kite.mjs 2.3 kB
packages/web-inspector/dist/assets/inspector-logo.cjs 4.32 kB
packages/web-inspector/dist/assets/inspector-logo.mjs 4.23 kB
packages/web-inspector/dist/components/generative-ui-view.cjs 7.95 kB
packages/web-inspector/dist/components/generative-ui-view.mjs 7.93 kB
packages/web-inspector/dist/components/learning-view.cjs 11.2 kB
packages/web-inspector/dist/components/learning-view.mjs 11.2 kB
packages/web-inspector/dist/index.cjs 132 kB
packages/web-inspector/dist/index.mjs 132 kB
packages/web-inspector/dist/index.umd.js 209 kB
packages/web-inspector/dist/lib/context-helpers.cjs 866 B
packages/web-inspector/dist/lib/context-helpers.mjs 835 B
packages/web-inspector/dist/lib/home-briefing.cjs 2.8 kB
packages/web-inspector/dist/lib/home-briefing.mjs 2.79 kB
packages/web-inspector/dist/lib/hud-config.cjs 1.34 kB
packages/web-inspector/dist/lib/hud-config.mjs 1.33 kB
packages/web-inspector/dist/lib/hud-defaults.cjs 287 B
packages/web-inspector/dist/lib/hud-defaults.mjs 285 B
packages/web-inspector/dist/lib/hud-loader.cjs 557 B
packages/web-inspector/dist/lib/hud-loader.mjs 546 B
packages/web-inspector/dist/lib/inspector-learning.cjs 754 B
packages/web-inspector/dist/lib/inspector-learning.mjs 732 B
packages/web-inspector/dist/lib/inspector-metadata.cjs 760 B
packages/web-inspector/dist/lib/inspector-metadata.mjs 750 B
packages/web-inspector/dist/lib/inspector-nav.cjs 685 B
packages/web-inspector/dist/lib/inspector-nav.mjs 661 B
packages/web-inspector/dist/lib/json-block.cjs 1.95 kB
packages/web-inspector/dist/lib/json-block.mjs 1.91 kB
packages/web-inspector/dist/lib/learning-setup.cjs 1.12 kB
packages/web-inspector/dist/lib/learning-setup.mjs 1.09 kB
packages/web-inspector/dist/lib/notification-loader.cjs 792 B
packages/web-inspector/dist/lib/notification-loader.mjs 786 B
packages/web-inspector/dist/lib/notifications.cjs 2.39 kB
packages/web-inspector/dist/lib/notifications.mjs 2.37 kB
packages/web-inspector/dist/lib/onboarding-prompt.cjs 2.38 kB
packages/web-inspector/dist/lib/onboarding-prompt.mjs 2.37 kB
packages/web-inspector/dist/lib/persistence.cjs 3.61 kB
packages/web-inspector/dist/lib/persistence.mjs 3.52 kB
packages/web-inspector/dist/lib/pop-out.cjs 1.07 kB
packages/web-inspector/dist/lib/pop-out.mjs 1.05 kB
packages/web-inspector/dist/lib/telemetry.cjs 5.59 kB
packages/web-inspector/dist/lib/telemetry.mjs 5.38 kB
packages/web-inspector/dist/lib/thread-selection.cjs 566 B
packages/web-inspector/dist/lib/thread-selection.mjs 563 B
packages/web-inspector/dist/package.cjs 181 B
packages/web-inspector/dist/package.mjs 116 B
packages/web-inspector/dist/styles/generated.cjs 20.1 kB
packages/web-inspector/dist/styles/generated.mjs 20 kB
packages/web-inspector/dist/styles/notification-article.cjs 1.44 kB
packages/web-inspector/dist/styles/notification-article.mjs 1.44 kB

compressed-size-action

@pkg-pr-new

pkg-pr-new Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
@copilotkit/a2ui-renderer

pnpm add https://pkg.pr.new/@copilotkit/a2ui-renderer@8280

@copilotkit/agentcore-runner

pnpm add https://pkg.pr.new/@copilotkit/agentcore-runner@8280

@copilotkit/angular

pnpm add https://pkg.pr.new/@copilotkit/angular@8280

@copilotkit/channels

pnpm add https://pkg.pr.new/@copilotkit/channels@8280

@copilotkit/channels-core

pnpm add https://pkg.pr.new/@copilotkit/channels-core@8280

@copilotkit/channels-discord

pnpm add https://pkg.pr.new/@copilotkit/channels-discord@8280

@copilotkit/channels-intelligence

pnpm add https://pkg.pr.new/@copilotkit/channels-intelligence@8280

@copilotkit/channels-slack

pnpm add https://pkg.pr.new/@copilotkit/channels-slack@8280

@copilotkit/channels-teams

pnpm add https://pkg.pr.new/@copilotkit/channels-teams@8280

@copilotkit/channels-ui

pnpm add https://pkg.pr.new/@copilotkit/channels-ui@8280

@copilotkit/channels-whatsapp

pnpm add https://pkg.pr.new/@copilotkit/channels-whatsapp@8280

@copilotkit/core

pnpm add https://pkg.pr.new/@copilotkit/core@8280

@copilotkit/intelligence-langgraph

pnpm add https://pkg.pr.new/@copilotkit/intelligence-langgraph@8280

@copilotkit/intelligence-mastra

pnpm add https://pkg.pr.new/@copilotkit/intelligence-mastra@8280

@copilotkit/learning

pnpm add https://pkg.pr.new/@copilotkit/learning@8280

@copilotkit/mcp-apps-renderer

pnpm add https://pkg.pr.new/@copilotkit/mcp-apps-renderer@8280

@copilotkit/react-core

pnpm add https://pkg.pr.new/@copilotkit/react-core@8280

@copilotkit/react-native

pnpm add https://pkg.pr.new/@copilotkit/react-native@8280

@copilotkit/react-textarea

pnpm add https://pkg.pr.new/@copilotkit/react-textarea@8280

@copilotkit/react-ui

pnpm add https://pkg.pr.new/@copilotkit/react-ui@8280

@copilotkit/runtime

pnpm add https://pkg.pr.new/@copilotkit/runtime@8280

@copilotkit/runtime-client-gql

pnpm add https://pkg.pr.new/@copilotkit/runtime-client-gql@8280

@copilotkit/sdk-js

pnpm add https://pkg.pr.new/@copilotkit/sdk-js@8280

@copilotkit/shared

pnpm add https://pkg.pr.new/@copilotkit/shared@8280

@copilotkit/sqlite-runner

pnpm add https://pkg.pr.new/@copilotkit/sqlite-runner@8280

@copilotkit/voice

pnpm add https://pkg.pr.new/@copilotkit/voice@8280

@copilotkit/vue

pnpm add https://pkg.pr.new/@copilotkit/vue@8280

@copilotkit/web-components

pnpm add https://pkg.pr.new/@copilotkit/web-components@8280

@copilotkit/web-inspector

pnpm add https://pkg.pr.new/@copilotkit/web-inspector@8280

commit: 35f787f

The /generative-ui-standard page passes standardUI to CopilotKitProvider and
lets the agent answer in the chat with cards, tables, charts and forms.
Charts are turned on with the GenerativeUIChart plugin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@mxmzb mxmzb 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.

Nice port: the tests, the build and the built chunk graph all look good (/v2 and /v2/generative-ui share one copy of the provider injection keys). The main theme of this review: the branch was cut before #8260 landed, and #8260 hardened the React generative UI that this port mirrors. A few of those fixes need to come over to Vue too. Details are inline.

Missing docs test for Vue. #8260 added showcase/shell-docs/src/lib/__tests__/react-native-generative-ui-docs.test.ts, which pins snippets and reference prop names to the code. This PR adds a lot of Vue docs with nothing that keeps them in sync. The snippets are correct today (I checked them), so this is about keeping them that way. Worth pinning in a Vue equivalent:

  • the props in GenerativeUISurface.mdx against GenerativeUISurfaceProps
  • the nested generativeUI keys in CopilotKitProvider.mdx against runtime-context.ts
  • the chat slot props against GenerativeUIChatSurfaceSlotProps
  • no :generative-ui= binding anywhere in the docs, README or demo (the camelCase pitfall)
  • every @copilotkit/vue/v2/generative-ui* import resolving to a real export

export function openUrl(href: string | undefined) {
if (!href || typeof window === "undefined") return;
const safe = safeHref(href);
if (safe) window.open(safe, "_blank", "noopener,noreferrer");

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.

This fails main's Hermes API scan once the branch is rebased. I merged main locally and ran core's tests; hermes-globals.test.ts fails with:

shared/src/generative-ui/standard/url.ts:48: window.location or window.open; use a feature check

Moving this into @copilotkit/shared/generative-ui puts it on the React Native path. On RN window is an alias of global, so the typeof window guard passes and window.open(...) throws. Suggest a function check, with the marker on this line so the scan accepts it:

if (typeof window === "undefined" || typeof window.open !== "function") return;
const safe = safeHref(url);
if (safe) window.open(safe, "_blank", "noopener,noreferrer"); // hermes-ok: feature-checked

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 64b435a (the merge of main). openUrl now returns when typeof window.open !== "function", and the two lines that use window.open carry // hermes-ok:. The Hermes API scan in core passes.

message.role === "activity" &&
message.activityType === GENERATIVE_UI_ACTIVITY_TYPE
) {
manager.ingest(

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.

An activity message with malformed content (for example null) throws here: manager.ingest reads content.surfaceId without a check. That happens inside the agent's onMessagesChanged during the run, and the messages after it are not ingested.

#8260 fixed this in React: ingestMessages in packages/react-core/src/v2/generative-ui/use-generative-ui-root.ts (on main) parses the content first, skips a malformed message, and warns once per distinct issue in development. Could you port that, with a test for null content?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in e3c2e9f. ingestMessages parses the content first, skips a malformed message, and warns once per distinct issue in development, the same as React. To keep one copy, 0ca589a moves GenerativeUISurfaceContentSchema and parseGenerativeUISurfaceContent to @copilotkit/core/generative-ui. React re-exports them from activity.ts, and the Vue chat renderer uses the same schema. New tests in use-generative-ui-root.test.ts cover null, a string, missing operations, and a NaN rejected index. With the old ingest, the null case fails with your TypeError.

},
);
onErrorCaptured((cause) => {
if (isShowingFallback) return;

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.

The comment above says a fallback's own error goes to the boundary above "as in React". That was true before #8260. React now wraps the fallback in a FallbackGuard (packages/react-core/src/v2/generative-ui/boundaries.tsx on main), so a throwing app errorBoundary.fallback stays inside its node. Here it reaches SurfaceBoundary and the whole surface is replaced, for good (see the next comment).

#8260 also reports each failure once per place until its content changes. Here a component that keeps failing reports to onError again on every new revision.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in e3c2e9f. A FallbackGuard now wraps the app's errorBoundary.fallback. When the fallback throws, the default fallback with Retry shows in its place, and onError gets "The error fallback of threw: ..." with the original error as cause. The failure stays in its node. Each boundary and guard now reports a failure once until it renders without one, so a component that keeps failing across revisions reports once. A different error reports again. Tests: boundaries.test.ts.

* chat or the host page. It reports the error with the kind "render" and
* shows the default fallback for the whole surface.
*/
export const SurfaceBoundary = defineComponent({

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.

Once this boundary catches an error, it never resets: the surface shows the fallback for the rest of its life, even when the agent sends new content. React's SurfaceBoundary resets when its revision prop changes, and offers Retry when the surface is retryable.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in e3c2e9f. SurfaceBoundary takes a revision that changes when new content of the surface arrives: a new applied operation, or a rebuilt surface. It resets on that change, and a failure that stays the same is reported once. I left out Retry on purpose. Vue has one surface boundary, and it sits inside the root. That matches React's inner boundary, which has no Retry: the failure comes back the same until the content changes. Vue has no host root that can fail on its own, so there is no outer boundary to retry.

const RETRY_STYLE = { marginLeft: "8px", textDecoration: "underline" };

/** A thrown value as an `Error`. A thrown string becomes its message. */
function toError(cause: unknown) {

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.

Small parity point from #8260: a thrown non-Error value (undefined, null, 0, "") becomes Error("undefined") etc. and the original value is lost. React now keeps it as the error's cause (withCause in boundaries.tsx on main, set with defineProperty, because older engines lack the cause option).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed. 0ca589a moves toError and withCause to @copilotkit/shared/generative-ui, React re-exports them, and the Vue boundaries use them. A thrown undefined now becomes "A value that is not an Error was thrown: undefined", with the value kept as cause (test in boundaries.test.ts).

AlemTuzlak and others added 4 commits November 9, 2026 16:18
Resolve the docs conflicts with React Native generative UI (#8260): the
generative UI pages keep both the React Native and the Vue tabs.

openUrl in @copilotkit/shared/generative-ui now checks for window.open,
so the Hermes API scan from #8260 passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ntent parser

Move the framework-free toError and withCause from react-core's boundaries
to @copilotkit/shared/generative-ui, and the surface activity content
schema and parser from react-core's activity module to
@copilotkit/core/generative-ui, so the Vue port uses the same code. React
re-exports them, so its exports do not change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Skip an activity message with malformed content (for example null),
  with one development warning per issue, instead of throwing inside the
  agent's run.
- Guard the app's errorBoundary.fallback: when it throws, the default
  fallback with Retry stands in, and the failure stays in its node.
- Report a failure once per place until it renders without one, not again
  on every revision.
- Reset the surface boundary when new content of the surface arrives.
- Keep a thrown value that is not an Error as the cause.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Check the reference props of GenerativeUISurface, the generativeUI keys of
CopilotKitProvider and the chat slot props against their types, that no
page, README or demo binds the kebab-case :generative-ui, and that every
name imported from @copilotkit/vue/v2/generative-ui* is exported.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AlemTuzlak

Copy link
Copy Markdown
Contributor Author

Thanks for the review. Every point is done:

  • Merge of main: 64b435a. The docs pages keep both the React Native and Vue tabs.
  • Shared code: 0ca589a moves toError, withCause and the activity content parser to shared and core. React re-exports them.
  • Hardening of feat(react-native): generative UI with custom native catalogs #8260: e3c2e9f ports it to Vue. Details are in the inline replies.
  • Docs test: 35f787f adds showcase/shell-docs/src/lib/__tests__/vue-generative-ui-docs.test.ts. It pins the five things you listed: the GenerativeUISurface props, the nested generativeUI keys, the chat slot props, no :generative-ui= binding in docs, README or demo, and every @copilotkit/vue/v2/generative-ui* import resolving to a real export.

Checks: nx run-many -t build,test,check-types,publint,attw passes for vue, shared, core, react-core and angular. The shell-docs CI steps pass too.

@AlemTuzlak
AlemTuzlak added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit 280fd63 Nov 9, 2026
88 of 89 checks passed
@AlemTuzlak
AlemTuzlak deleted the feat/vue-generative-ui branch November 9, 2026 15:54
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

❌ Showcase Build Failed

The Docker build triggered by this PR's merge failed.

Run: https://github.com/CopilotKit/CopilotKit/actions/runs/42649318407
Commit: 280fd638

@AlemTuzlak — please check the build logs and fix the issue.

AlemTuzlak added a commit that referenced this pull request Nov 10, 2026
Brings in main up to c5f8a4f: Vue generative UI (#8280), React
Native generative UI (#8260), the A2UI playground demo (#8100, #8285,
#8289) and the showcase/docs fixes.

Adapted to 2.0.0:
- react-core: main's /v2/generative-ui/native entry ships as
  /generative-ui/native; the purity, dist-context-types and docs tests
  use the root subpaths.
- Vue generative UI: wired into the thin provider through
  ɵassembleActivityRenderers, prose renders with the provider's markdown
  renderer instead of streamdown-vue, Math shows its TeX source (no
  katex), icons load from the optional `lucide` peer instead of
  lucide-vue-next. No stylesheet import in the docs.
- React Native: zod is not a peer on 2.0.0, so the docs ask for zod 4
  and drop the zod 3 advice. The UTF-8 polyfill classes live in
  polyfills/encoding.ts so no shared chunk loads before the polyfill
  barrel (main's new barrel-order gate).
- examples: the A2UI playground goes under examples/demos, the Vue demo
  pages under examples/dev/by-frontend/vue/demo.
- Lint and knip baselines take the new generative UI code from main.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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