Skip to content

upgrade AG-UI packages - #2161

Merged
tylerslaton merged 2 commits into
mainfrom
mme/update-ag-ui
Jul 15, 2025
Merged

tylerslaton merged 2 commits into
mainfrom
mme/update-ag-ui

Conversation

@mme

@mme mme commented Jul 15, 2025 •

Copy link
Copy Markdown
Contributor

Checklist

  • I have read the Contribution Guide
  • If the PR changes or adds functionality, I have updated the relevant documentation

Summary by CodeRabbit

  • Chores
    • Updated several dependencies to newer versions for improved stability and compatibility.

@vercel

vercel Bot commented Jul 15, 2025 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
copilotkit-feature-viewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 15, 2025 2:32pm
demo-viewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 15, 2025 2:32pm
docs ❌ Failed (Inspect) Jul 15, 2025 2:32pm
examples-coagents-ai-travel-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 15, 2025 2:32pm
examples-coagents-research-canvas-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 15, 2025 2:32pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
examples-coagents-ai-researcher-ui ⬜️ Ignored (Inspect) Visit Preview Jul 15, 2025 2:32pm

@coderabbitai

coderabbitai Bot commented Jul 15, 2025 •

Copy link
Copy Markdown
Contributor
## Walkthrough

The dependency versions of several `@ag-ui` scoped packages in the `CopilotKit/packages/runtime/package.json` file were updated to newer patch releases. No other changes were made to the file or to exported or public entities.

## Changes

| File(s)                        | Change Summary                                                                                               |
|-------------------------------|--------------------------------------------------------------------------------------------------------------|
| CopilotKit/packages/runtime/package.json | Bumped versions of `@ag-ui/client`, `@ag-ui/core`, `@ag-ui/encoder`, `@ag-ui/proto` from `0.0.34` to `0.0.35` and `@ag-ui/langgraph` from `0.0.6` to `0.0.7`. |
| CopilotKit/.changeset/two-mayflies-rhyme.md | Added new changeset file specifying a patch update for `@copilotkit/runtime` describing the AG-UI package upgrades. |

## Possibly related PRs

- CopilotKit/CopilotKit#2145: Updates the versions of the same `@ag-ui` dependencies in the same file, indicating a sequence of related version bumps.
- CopilotKit/CopilotKit#1968: Adds the `@ag-ui/langgraph` dependency and integrates LangGraph agent, related by dependency but not direct code changes.
- CopilotKit/CopilotKit#2022: Updates the version of `@ag-ui/langgraph` in the runtime package.json, related by dependency version upgrade.

## Suggested labels

`preview`

## Suggested reviewers

- mme
- suhasdeshpande
- ranst91
- ataibarkai

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2d7740f and fd2248d.

📒 Files selected for processing (1)
  • CopilotKit/.changeset/two-mayflies-rhyme.md (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • CopilotKit/.changeset/two-mayflies-rhyme.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Test (18.x)
  • GitHub Check: Test (20.x)

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cb8f6be and 6fec072.

📒 Files selected for processing (1)
  • CopilotKit/packages/runtime/package.json (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
CopilotKit/packages/runtime/**

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • .cursor/rules/copilotkit-architecture.mdc
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/package.json : Review [CopilotKit/package.json] for workspace setup
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/react-ui/** : UI components for copilot interfaces should be placed in CopilotKit/packages/react-ui/
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/react-ui/**/* : Add [react-ui/] for pre-built components when building a simple Copilot or customizing UI components
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/package.json : Use [CopilotKit/package.json] for workspace setup
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/package.json : Workspace configuration should be maintained in CopilotKit/package.json
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/agent-development.mdc:0-0
Timestamp: 2025-07-04T14:01:21.727Z
Learning: Applies to **/agent-js/**/*.{js,ts,jsx,tsx} : Install '@copilotkit/sdk-js' package for JavaScript agents.
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/react-core/**/* : Use [react-core/] for basic integration when building a simple Copilot
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/sdk-js/**/* : Use [sdk-js/] package for developing JavaScript agents
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/react-core/** : Core React components and hooks for CopilotKit should be placed in CopilotKit/packages/react-core/
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/utilities/**/* : Check [utilities/] for shared configurations
CopilotKit/packages/runtime/package.json (11)
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/package.json : Review [CopilotKit/package.json] for workspace setup
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/package.json : Use [CopilotKit/package.json] for workspace setup
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/package.json : Workspace configuration should be maintained in CopilotKit/package.json
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/agent-development.mdc:0-0
Timestamp: 2025-07-04T14:01:21.727Z
Learning: Applies to **/agent-js/**/*.{js,ts,jsx,tsx} : Install '@copilotkit/sdk-js' package for JavaScript agents.
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/runtime-client-gql/** : GraphQL client for runtime communication should be implemented in CopilotKit/packages/runtime-client-gql/
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/react-core/**/* : Use [react-core/] for basic integration when building a simple Copilot
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/react-ui/**/* : Add [react-ui/] for pre-built components when building a simple Copilot or customizing UI components
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/quick-reference.mdc:0-0
Timestamp: 2025-07-04T14:02:44.814Z
Learning: Applies to CopilotKit/packages/sdk-js/**/* : Use [sdk-js/] package for developing JavaScript agents
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/runtime/** : Core runtime for executing copilot actions should be implemented in CopilotKit/packages/runtime/
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/copilotkit-architecture.mdc:0-0
Timestamp: 2025-07-04T14:01:37.282Z
Learning: Applies to CopilotKit/packages/react-textarea/** : Textarea component with AI integration should be implemented in CopilotKit/packages/react-textarea/
Learnt from: CR
PR: CopilotKit/CopilotKit#0
File: .cursor/rules/examples-and-demos.mdc:0-0
Timestamp: 2025-07-04T14:02:08.498Z
Learning: Applies to examples/*/package.json : Each example project should have a package.json file specifying dependencies.

Comment on lines +50 to 55
"@ag-ui/client": "0.0.35",
"@ag-ui/core": "0.0.35",
"@ag-ui/encoder": "0.0.35",
"@ag-ui/langgraph": "0.0.7",
"@ag-ui/proto": "0.0.35",
"@anthropic-ai/sdk": "^0.27.3",

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.

💡 Verification agent

🧩 Analysis chain

Keep peer ranges in-sync with the bumped dependency versions

Good to see the patch-level upgrades to the @ag-ui/* packages.
However, the corresponding peerDependencies still advertise >=0.0.34, which means consumers that satisfy the peer range but pull 0.0.34 could end up with duplicate copies in their tree (your app uses 0.0.35 via dependencies, the host app brings in 0.0.34 to satisfy the peer).

Consider bumping the peer floor to >=0.0.35 to guarantee a single version and avoid subtle runtime mismatches.

   "peerDependencies": {
-    "@ag-ui/client": ">=0.0.34",
-    "@ag-ui/core": ">=0.0.34",
-    "@ag-ui/encoder": ">=0.0.34",
-    "@ag-ui/proto": ">=0.0.34"
+    "@ag-ui/client": ">=0.0.35",
+    "@ag-ui/core": ">=0.0.35",
+    "@ag-ui/encoder": ">=0.0.35",
+    "@ag-ui/proto": ">=0.0.35"
   },

🏁 Script executed:

#!/bin/bash
# Inspect dependencies and peerDependencies in the runtime package
rg -n '"dependencies"' -A6 CopilotKit/packages/runtime/package.json
echo
rg -n '"peerDependencies"' -A6 CopilotKit/packages/runtime/package.json

Length of output: 578


Bump peerDependencies floor for @Ag-ui packages to avoid version mismatches

The runtime package’s dependencies have been upgraded to 0.0.35, but the peerDependencies still allow >=0.0.34. Consumers satisfying only >=0.0.34 could pull in 0.0.34 alongside your 0.0.35, leading to duplicate copies and subtle runtime errors. Please update the peer floor to >=0.0.35.

• File: packages/runtime/package.json
Lines 82–86

   "peerDependencies": {
-    "@ag-ui/client": ">=0.0.34",
-    "@ag-ui/core": ">=0.0.34",
-    "@ag-ui/encoder": ">=0.0.34",
-    "@ag-ui/proto": ">=0.0.34"
+    "@ag-ui/client": ">=0.0.35",
+    "@ag-ui/core": ">=0.0.35",
+    "@ag-ui/encoder": ">=0.0.35",
+    "@ag-ui/proto": ">=0.0.35"
   },
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"@ag-ui/client": "0.0.35",
"@ag-ui/core": "0.0.35",
"@ag-ui/encoder": "0.0.35",
"@ag-ui/langgraph": "0.0.7",
"@ag-ui/proto": "0.0.35",
"@anthropic-ai/sdk": "^0.27.3",
"peerDependencies": {
"@ag-ui/client": ">=0.0.35",
"@ag-ui/core": ">=0.0.35",
"@ag-ui/encoder": ">=0.0.35",
"@ag-ui/proto": ">=0.0.35"
},
🤖 Prompt for AI Agents
In CopilotKit/packages/runtime/package.json around lines 82 to 86, the
peerDependencies for the @ag-ui packages currently allow versions >=0.0.34,
which can cause version mismatches with the upgraded dependencies at 0.0.35.
Update the peerDependencies version floor for all @ag-ui packages to >=0.0.35 to
ensure consistency and prevent duplicate package versions.

@changesets-bot-copilotkit

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fd2248d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@copilotkit/runtime Patch
@copilotkit/runtime-client-gql Patch
@copilotkit/react-core Patch
@copilotkit/react-textarea Patch
@copilotkit/react-ui Patch
@copilotkit/sdk-js Patch
@copilotkit/shared Patch

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Jul 15, 2025 •

Copy link
Copy Markdown
Contributor

Preview environments destroyed for this pull request.

@github-actions

github-actions Bot commented Jul 15, 2025 •

Copy link
Copy Markdown
Contributor

Test Results

Status: ✅ Passed (View Run)

Commit: 66db577

Duration: 202.3s

Total Tests: 33

Pass Rate: 100.0%

Failed Tests: 0

🔍 Detailed Results

coagents-research-canvas

CoAgents Research Canvas (UI) - Local Depenencies

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -
CrewAI chromium ✅ PASSED -

coagents-qa-native

CoAgents QA Native (UI) - Local

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -

coagents-qa-text

CoAgents QA Text (UI) - Local

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -
OpenAI (LGC Python) chromium ✅ PASSED -
Anthropic (LGC Python) chromium ✅ PASSED -
OpenAI (LGC JS) chromium ✅ PASSED -
Anthropic (LGC JS) chromium ✅ PASSED -

coagents-routing

CoAgents Routing (UI) - Local

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -

next-openai

Next OpenAI - Self Hosted

Model Browser Status Video
OpenAI chromium ✅ PASSED -
Anthropic chromium ✅ PASSED -
LangChain (OpenAI) chromium ✅ PASSED -
Groq chromium ✅ PASSED -

@tylerslaton
tylerslaton merged commit 88ceae2 into main Jul 15, 2025
@tylerslaton
tylerslaton deleted the mme/update-ag-ui branch July 15, 2025 15:23

This branch had an error being deployed

1 failed and 4 active deployments
Preview – docs — fd2248d7 Deployed Jul 15, 2025 by vercel[bot]
Preview – examples-coagents-research-canvas-ui — fd2248d7 Deployed Jul 15, 2025 by vercel[bot]
Preview – examples-coagents-ai-travel-app — fd2248d7 Deployed Jul 15, 2025 by vercel[bot]
Preview – demo-viewer — fd2248d7 Deployed Jul 15, 2025 by vercel[bot]
Preview – copilotkit-feature-viewer — fd2248d7 Deployed Jul 15, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants