Repository navigation
chore: merge main into 2.0.0 - #8147
Merged
Merged
Conversation
Merge current main, retaining the feedback and tool-call UI wrappers and virtual-spacer scroll anchoring. Keep the resize story in the new Storybook setup and wait for a stable visible layout in the bottom-pin browser test. Validated 1990 React tests, 54 script tests, 21 browser cases and eight repetitions of the bottom-pin case. Build, types, Storybook, publint, attw, and scoped oxlint/oxfmt checks pass.
Hero, architecture, Automatic Learning loop and product stack, each as a light and a dark file so the README can swap them with <picture>.
Leads with the site's current positioning, adds a What's new section (Soar, continual learning, OpenBot, AG-UI 1.0 and A2UI 1.0, Channels), moves the quickstart to the /v2 imports, links the Vue and Angular quickstarts, and uses the approved Intelligence names (AG-UI Streams, User Memories, Automatic Learning, Self-hosted). The themed diagrams replace the single-theme banner, and the hero picture sits outside a link so GitHub keeps its dark source.
- Open the README with a CopilotKit wordmark banner built from the official logo, and move the animated hero diagram down to "Works with your stack". - Add a "Talk to an engineer" button and bring the GitHub Trending badge up under the other badges. - Lay out the agent column of the architecture diagram as a grid so it covers all twelve documented frameworks, and drop Web Components. - Rename Automatic Learning to Continual Learning in the README and diagrams.
- Replace the banner panel with the CopilotKit wordmark and kite on a transparent background, directly above the main links. - Drop the surfaces-and-frameworks overview image, which repeated the how-it-works diagram. - Add CopilotKit Soar, powered by OpenBot, to the surfaces table as early access.
Updated asset link in README and removed unnecessary div for community links.
…on release lines PRs into a release-line branch (e.g. 2.0.0) now fail when they break an API without changing anything under codemods/ or the migrate docs. A break is a `!` subject or a breaking-change footer in the title, description, or any commit, or a removal from the public API manifest. The dangerfile moves to TypeScript so Danger compiles it and resolves the rule's helpers in scripts/release/lib. Closes PE-1075.
…on release lines (#8085) Closes PE-1075. PRs into a release-line branch (e.g. `2.0.0`) that break an API now fail unless they also change something under `codemods/` or `showcase/shell-docs/src/content/docs/migrate/`. That is the kickoff rule: every 2.0 break ships with a codemod, or at least a migration note. ## What counts as a break - A `!` in the PR title or a `BREAKING CHANGE:` footer in the description. - The same markers in any commit in the PR. This reuses `isBreakingCommit` from the release-notes code, so the gate and the release notes agree. - A removal from the public API manifest (`scripts/release/public-api/manifest.v1.json`), even with no marker: a package that is no longer published, a removed entrypoint or export condition, narrower engines or peers, removed runtime factories or options, removed deprecated exports. Additions and version bumps don't count. When it fails, Danger comments with the list of reasons. ## How it runs - New workflow `static / breaking changes`. It runs only on PRs into `X.Y.Z` branches, so PRs into `main` are untouched. - It runs `pnpm check:public-api-manifest` first, so the manifest diff compares real state. - The rule lives in `dangerfile.ts` next to the existing LangGraph check, with its logic in `scripts/release/lib/breaking-change-gate.ts`. - `dangerfile.js` becomes `dangerfile.ts`. Danger evaluated the `.js` file as native ESM, which can't resolve the extensionless TS import. As `.ts`, Danger compiles it and resolves the helper. ## Verified - Release suite: 276 passed, including 14 new tests for the gate. - `danger pr` dry runs, with the release-line check bypassed in a throwaway copy, because no PR into `2.0.0` exists yet: - #7928 (`refactor(channels)!: retire the Telegram adapter`) fails with all reasons, including "`@copilotkit/channels-telegram` is no longer published" from the manifest diff. - #8077 passes. Not verified: a real run on GitHub; actionlint (runs in CI). ## Before it has an effect 1. Merge `main` into `2.0.0`, so the workflow is on the branch. 2. Make `static / breaking changes` a required check in the `2.0.0` ruleset (PE-1082). Until then it reports but does not block, and direct pushes to `2.0.0` bypass it. ## Open points - The codemod path is `codemods/`, where the v2-migration codemod lives, not the `tools/codemods` the ticket names. If the restructure moves it, `MIGRATION_PATH_PREFIXES` moves with it. - Any change under `docs/migrate/` counts as a migration note, because there is no dedicated 2.0 guide yet (PE-1088). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Release Workflow** * Pull requests targeting versioned release branches now receive automated checks for public API changes. * Breaking changes are flagged when they lack a recognized breaking-change marker or an accompanying migration document. * Checks also warn when changes affect only one of the Python and JavaScript LangGraph executors. * **Validation** * Added coverage for release-branch detection, API change checks, breaking-change markers, and migration-file selection. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
…e judge could not grade
…h and DeepSeek V4 Pro in the full preset
… enum values that read as types
clearCart{} and setVolume(number) instead of clearCartobject and
setVolumenumber. A union keeps its quotes when it mixes values and types,
or when a value reads as a type or a number. Descriptions are written on
one line.
… formula at 0% A guide line that names a standard component the catalog lacks is left out, so a reduced or custom catalog is not told to use Map or Slider. The loan example handles rate == 0, and the guide names the schema parts the way the lines notation writes them.
…of guessing log was the natural log and ignored a base; ln and log10 stay. The docs list the new operators and functions.
…fences A call must not run with args that an added closer moved, and valid JSON spread over lines is no longer reported as broken.
…lags and base comparisons - An empty tier has no rate and is left out of averages and comparisons. - A failed judge leaves the sample ungraded; a judge out of credit stops the run. - Nested spec keys are strict. - The default budget is $30, and held-out cases are interleaved. - Each command rejects flags it does not use. - --base compares only the groups both runs cover, and warns about stopped runs, other judges and other cases. - A reply cut at the token cap is not scored as broken A2UI.
Main was 2 KB under the 10% cap of the July baseline, so the larger markdown prompt went over it.
Addresses the width-resize case from #6089. Resizing a virtualized conversation leaves offscreen row heights measured at the old width, shifting the reader to another message. Merged main at `3f73c870b`, retaining the feedback and tool-call UI wrappers and current Storybook setup. The change invalidates width-dependent measurements and preserves the reading row and pixel offset. Hide/show restoration owns the position until its saved message settles; width restoration and TanStack compensation stand down during that interval. The bottom pin keeps ownership while pinned, and user input interrupts restoration. This retains main's running mean estimator, rendered rows, zero-height measurement cache, and `item.start < scrollOffset + scrollAdjustments` compensation rule. Width invalidation runs in the next animation frame, and native scroll anchoring is disabled on the virtual spacer. ### Reproduction Open **CopilotChatMessageView → VirtualizedResize** in Storybook. Scroll halfway through the 100 long messages, then use Narrow and Wide. The same message and offset should remain visible. Enable Pin to bottom and resize in both directions; the last message should remain at the bottom. ### Validation - `pnpm nx run @copilotkit/react-core:test:browser-scroll`: all 21 tests pass. The bottom-pin case also passed eight repetitions; it now waits for a stable visible layout before asserting the final position. - All 1,990 React-core unit tests and 54 script tests pass. - React-core build, typecheck, Storybook build, `publint`, `attw`, and scoped oxlint/oxfmt checks pass. Lint reports eight warnings and no errors. The merge hook's broad package-test task was replaced by the same Nx test/publint/attw checks scoped to react-core, with its build dependencies. All other commit hooks passed. Physical-device momentum was not tested.
… ship the improved prompt (#8102) ## Summary A tool that measures how well models write A2UI with our generative UI prompt, and the prompt and client changes it led to. ```text tools/genui-eval/ # new: the eval (cases, references, scoring, judge, CLI) packages/shared/ # the markdown prompt that ships: new guide, lines schema, calc description packages/react-core/ # calc: ^ pow sqrt exp ln log10 pi e; shorter catalog descriptions packages/core/ # fence parser repairs a line that is off by one closing brace ``` **The eval** runs the code that ships: the client's envelope and context, the runtime middleware, the built-in agent, and the real surface renderer in jsdom. It scores four tiers per sample (validity, fidelity, judgement, quality), with Wilson intervals. The judge compares each reply against a reference answer per case. 40 realistic cases (30 training, 10 held-out), 13 with app context (places, forecasts, product data). Backends: OpenRouter, the local Codex CLI (`codex:<model>`, no key, captured per call), or offline fakes. **The markdown prompt that ships** (`buildGenerativeUIMarkdownGuidelines` + schema): ```diff - Show UI when it conveys the answer better than prose ... (one paragraph) + Answer first; show UI whenever it makes the answer easier to use + Match the UI to the task: calculator / table / chart / map / timeline / diagram / form / quiz / ... + Make interactivity real; keep the data honest; design with restraint + Rules for closing braces of lists, calls and deep props (the main source of broken lines) + Lines that name a standard component the catalog lacks are left out - schema: compact JSON + schema: "lines" notation (one line per prop, bare enums, events as `action`, slots as `componentId`/`childList`) ``` The tool transport's guide text is unchanged, but it shares the shorter standard component descriptions, which were measured only on the markdown transport. **Client:** ```text calc x ^ y, pow, sqrt, exp, ln, log10, pi, e (loans, compound interest, growth) fence parser a complete line off by exactly one } or ] is repaired with jsonrepair when the result is shaped like an A2UI operation; a streaming line, a function call, an object over several lines and an array fence are never touched ``` ## Evidence Same model, same cases, same judge; before = the prompt on `main`, after = this branch. **GPT-5.6 Luna** (Codex backend, gpt-6-astra judge), 3 samples per case: | | validity | fidelity | judgement | quality | mean quality | |---|---|---|---|---|---| | training, before | 98% | 81% | 52% | 52% | 0.39 | | training, after | 94% | 79% | **92%** | **86%** | **0.65** | | held-out, before | 97% | 83% | 60% | 57% | 0.49 | | held-out, after | **100%** | 76% | **100%** | **92%** | **0.68** | **GPT-5.6 Terra**, training cases: validity 92% → **100%**, quality 52% → **96%**, 77 of 90 samples pass every tier. With powers in calc, the loan and compound interest answers now use `^` (3 of 3 each) instead of approximations. **All vendors on OpenRouter** (Opus 5.5 judge, 40 cases × 3, $22.91): | model | validity | fidelity | judgement | quality | |---|---|---|---|---| | GPT-6.1 Terra | 96% | 91% | 99% | 93% | | Sonnet 5.5 | 93% | 89% | 100% | 94% | | Gemini 3.8 Flash | 91% | 86% | 99% | 96% | | DeepSeek V4 Pro | 87% | 62% | 82% | 51% | (training cases; the held-out totals agree within their intervals.) Prompt size: 13,067 o200k tokens, down from 13,978 (catalog −20%, guide larger). Tests: shared 747, core 1539, react-core 2660, genui-eval 107, all passing. The prompt goldens of the markdown guide are regenerated; the tool goldens are unchanged. ## Merge Danger **Door:** two-way Every change is a prompt text, a description, or an additive client capability; reverting the commits restores the previous behaviour. **Blast Radius:** prompts Every markdown-transport app gets the new guide and the lines schema, so model output changes (more UI, measured better). The fence parser now accepts a line it used to drop, only when it is off by one closer and repairs into a valid operation. `jsonrepair` is a new dependency of `@copilotkit/core`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Added configurable Generative UI prompts and schema formats, with catalog-aware component guidance. * Expanded calculator expressions with exponentiation, additional math functions, and constants. * Added recovery for certain malformed, complete UI operation lines. * Added a tool to evaluate Generative UI output across models and transports, including offline runs, scoring, and reports. * **Documentation** * Added setup and workflow guidance for the evaluation tool. * Updated component descriptions and calculator capability guidance. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
#7845) ## What does this PR do? Adds the existing v1 deprecation guidance directly to `CopilotTextarea` and `CopilotTextareaProps`. The declaration postprocessor also needs a per-export check: otherwise, these annotations make its whole-file check skip notices for 12 other exports. Includes source language-service, built-declaration, and postprocessor regression tests; runtime logic and public exports are unchanged. Please let me know if you would prefer the necessary postprocessor fix in a separate PR. ## Related PRs and Issues Fixes #6819. ## Validation - Package build, type checks, all 6 package tests, publint, attw, formatting, and lint pass. The new TypeScript test also passes a separate strict type check. - `node --test scripts/deprecations/v1-dist-notices.test.mjs`: all 5 tests pass; the 3 new cases fail with the old postprocessor. - Build runs 2 checks against the emitted `.d.mts` and `.d.cts` files. Removing either target's notices from either file makes its check fail (4 negative cases). - Locally checked emitted declarations with the TypeScript language service: all 14 exports retain deprecation diagnostics, and both target hovers have one deprecated tag. The additional source/dist deprecation suites have 21/25 passing tests, retaining the same 4 baseline failures in API inventory and source-notice/documentation consistency checks. ## Checklist - [x] I have read the Contribution Guide. - [x] Relevant documentation: deprecation JSDoc is updated. - [x] No breaking changes. - [x] Allow edits by maintainers is enabled. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Deprecations** * Marked `CopilotTextarea` and `CopilotTextareaProps` as deprecated, with links to migration guidance and v2 documentation. * **Bug Fixes** * Prevented duplicate deprecation notices on shared exports and ensured repeated annotation does not add extra notices. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
The generative UI eval can report successful output after repairing malformed JSON, credit props removed by later updates, and attribute gains from a changed model to the prompt. Its markdown harness also removes state tools that the production BuiltInAgent offers. This follow-up to #8102 corrects those measurements and fixes a shipped schema ambiguity. - Preserve quotes for string enums such as `"true"` and `"false"`, keeping them distinct from boolean literals. - Preserve production state tools and tool choice in the harness; markdown mode still does not inject `render_ui`. - Score raw model validity separately from successful recovery, report repaired lines and recovered validity, and label legacy results. Skip validity comparisons across incompatible scoring definitions. - Check expected props on final reachable component instances, fixing credit from earlier or unreachable components. Resolve each scored prop independently so an unrelated accessibility failure cannot restore raw bindings as present props; inspect template instances beyond item 50. - Record generation parameters and skip baseline comparisons when a model alias changes model, pinned provider, or parameters. Mark legacy parameter equivalence as unverified. - Add an offline Nx test/typecheck workflow and document benchmark coverage. ## Validation Regression tests first reproduced the enum, request, raw-validity, final-prop, and baseline-comparison failures. The two latest fidelity regressions also failed before the correction and pass afterward through the real RenderChecker and scoreCode. - Latest eval-only update: all 121 genui-eval tests, eval typecheck, scoped formatting/lint, and normal repository hooks passed. - Earlier unchanged shared implementation: 747 shared tests passed. - Earlier unchanged React implementation: 2,662 React core tests passed, plus 54 script tests. The initial high-concurrency hook run failed timing-sensitive tests; the full suite and hooks passed with bounded workers. - Shared typecheck, shared/React builds, actionlint, and workflow security check passed for the existing changes. ## Remaining follow-ups — keep draft [Notion: Google-native SDK coverage and remaining eval gaps](https://app.notion.com/p/4093aa381852814a9db8df1d061acb13) contains seven follow-up issue drafts with evidence and acceptance criteria: - Native Google ADK/google-genai/A2UI agent SDK integration coverage. - Real browser interactions and visual checks. - Matched case weighting and case-aware confidence intervals for baseline comparisons. - Rejecting pending checks when a render worker exits. - Accounting for generation costs when a subsequent judge/provider failure excludes the sample. - Reproducible hashing of untracked file contents. - Auditing resolved A2UI SDK releases before retiring the existing `series.variable` compiler workaround. The eval remains a built-in-agent/React-renderer benchmark. Gemini through OpenRouter does not exercise the Google SDK paths. Codex remains a text-only approximation. Rendering checks do not establish working user interactions or browser visual quality. No SDK upgrades, releases, deployments, or prompt retuning are included. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Boolean `true` and `false` values now retain their quotes when rendered as string enum values, while boolean values remain unquoted. * Evaluation checks now assess properties on final rendered components, including instances generated from templates. * **New Features** * Evaluation reports distinguish raw validity from validity after repair and include recovered-validity rates and repaired-line counts. * Comparisons flag differences in model settings and avoid reporting deltas when runs are not comparable. * **Documentation** * Clarified evaluation coverage, scoring, repair behavior, and report compatibility. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Conflicts and follow-up fixes: - react-textarea and shared's conditions test: kept deleted. 2.0 removed them; main only added deprecation notices and reformatted the test. - react-core catalog-manifest and guide-components tests: moved from src/v2/generative-ui to src/generative-ui, where 2.0 moved that code. - v1-dist-notices test: kept 2.0's sdk-js case and ported main's two new annotation tests to sdk-js exports, because 2.0 has no react-textarea or v1 react-core inventory. - Angular showcase baseline: kept 2.0's baseline. The merged first load is 1,498,283 bytes, inside the budget. - pnpm-lock.yaml: regenerated from 2.0's lockfile. - genui-eval: import react-core from src/ and the runtime from its root, and expect the Zod 4 message for an invalid prop. - breaking-change-gate test: seed one service adapter and deprecation, because the 2.0 manifest has none. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 1
Please check the settings in the CodeRabbit UI or the
|
Contributor
Production Digest-Pinning AuditAll 43 services digest-pinned. Run 2026-11-02 06:55:08 PST — 0 finding(s). |
@copilotkit/a2ui-renderer
@copilotkit/agentcore-runner
@copilotkit/angular
@copilotkit/channels
@copilotkit/channels-core
@copilotkit/channels-discord
@copilotkit/channels-intelligence
@copilotkit/channels-slack
@copilotkit/channels-teams
@copilotkit/channels-ui
@copilotkit/channels-whatsapp
@copilotkit/core
@copilotkit/intelligence-langgraph
@copilotkit/intelligence-mastra
@copilotkit/learning
@copilotkit/markdown-renderer
@copilotkit/mcp-apps-renderer
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/runtime
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
Contributor
|
Size Change: +28.1 kB (+1.37%) Total Size: 2.08 MB 📦 View Changed
ℹ️ View Unchanged
|
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR merges
maininto2.0.0. It brings over the 105 commits frommainsince 29 October. Most of them change the generative UI catalog and prompt inreact-coreandshared. The PR also adds thegenui-evaltool and the breaking-change gate.Merge with "Create a merge commit". Do not squash this PR. A squash puts the
maincommits on2.0.0as one new commit. Then the next merge frommainconflicts again.What does this PR do?
Conflicts
packages/react-textarea/*,shared/.../conditions.test.tsmainonly added deprecation notices and reformatted the test.react-corecatalog-manifestandguide-componentstestssrc/v2/generative-ui/tosrc/generative-ui/. 2.0 moved that code there.scripts/deprecations/v1-dist-notices.test.mjsmaintosdk-jsexports, because 2.0 has noreact-textareaor v1react-coreexports.showcase/angular/performance-baseline.jsonpnpm-lock.yamlFixes for code from
mainthat does not run on 2.0tools/genui-evalimportsreact-corefromsrc/, notsrc/v2/. It imports the runtime from@copilotkit/runtime, not/v2.genui-evaltest expects the Zod 4 error message, because the 2.0react-coreuses Zod 4.breaking-change-gatetests add one service adapter and one deprecation to the manifest. The 2.0 manifest has none, and two tests removed one of each.Related PRs and Issues
2.0.0.Checklist
!(for examplefeat(react-core)!: ...) and the description has aBREAKING CHANGE:line with migration steps. See VERSIONING.mdTesting
Commands run (all passed)
pnpm nx run-many -t buildand-t check-typesfor every@copilotkit/*project. In a parallel run,vue-demoandangular-demofailed because the showcase build rebuiltsharedandcoreat the same time. They pass when they run alone.pnpm nx run-many -t testforshared,core,react-core,runtime,vue,angularandgenui-eval(121 tests).vitest run scripts/release/lib/breaking-change-gate.test.ts(14 tests) andnode --test scripts/deprecations/*.test.mjs.pnpm --dir showcase/angular build, which includes the bundle budget check.lint,check:packages,check:public-api-manifest,check-docs-snippets,validate-starter-deps,validate-channels-zod,package-licenses:testandcommitlint.check-formatreports 26 files. The same 26 files fail on2.0.0, and this merge changes none of them.Skipped: the dotnet, Go, Ruby and Python suites. These tools are not installed on my machine, and
maindid not change those packages.Manual test
pnpm install --frozen-lockfile.pnpm --dir tools/genui-eval test. All 121 tests pass on the 2.0 packages.git log --oneline origin/2.0.0..HEAD. Themaincommits show, with their own hashes.How this PR makes testing easy
The
maincommits bring their own tests. This PR adds no new artifact. It ports two tests to 2.0 and corrects three tests.Risk / rollback
mainthat 2.0 deleted is removed. Code that 2.0 moved follows the move. All lines thatmainadded inshared,coreandreact-coreare present after the merge.git revert -m 1 <merge-sha>.🤖 Generated with Claude Code