Repository navigation
upgrade AG-UI packages - #2161
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
## 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 detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ 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)
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed 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)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 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.
| "@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", |
There was a problem hiding this comment.
💡 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.jsonLength 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.
| "@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.
6fec072 to
2d7740f
Compare
🦋 Changeset detectedLatest commit: fd2248d The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Click here if you're a maintainer who wants to add another changeset to this PR |
|
Preview environments destroyed for this pull request. |
Test ResultsStatus: ✅ Passed (View Run) Commit: 66db577 Duration: 202.3s Total Tests: 33 Pass Rate: 100.0% Failed Tests: 0 🔍 Detailed Resultscoagents-research-canvasCoAgents Research Canvas (UI) - Local Depenencies
coagents-qa-nativeCoAgents QA Native (UI) - Local
coagents-qa-textCoAgents QA Text (UI) - Local
coagents-routingCoAgents Routing (UI) - Local
next-openaiNext OpenAI - Self Hosted
|
Co-authored-by: Tyler Slaton <[email protected]>
Checklist
Summary by CodeRabbit