Repository navigation
fix: use latest agui dependencies to include required fixes - #2145
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
|
""" WalkthroughThe Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous 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). (11)
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
🧹 Nitpick comments (1)
CopilotKit/packages/runtime/package.json (1)
82-85: Peer range should reflect the same minimum but also allow future patch releasesYou widened the peer range to
>=0.0.34, which is good, but it’s effectively identical to^0.0.34while being less explicit about the upper bound (< 0.1.0 assumed).
For consistency with the rest of the repo (and npm expectations) consider:- "@ag-ui/client": ">=0.0.34", + "@ag-ui/client": "^0.0.34",(do the same for the other three). This still enforces 0.0.34 as the minimum, consumes patch updates automatically, and communicates intent more clearly to consumers.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
CopilotKit/pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (1)
CopilotKit/packages/runtime/package.json(2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`CopilotKit/packages/runtime/**`: Core runtime for executing copilot actions should be implemented in CopilotKit/packages/runtime/
CopilotKit/packages/runtime/**: Core runtime for executing copilot actions should be implemented in CopilotKit/packages/runtime/
📄 Source: CodeRabbit Inference Engine (.cursor/rules/copilotkit-architecture.mdc)
List of files the instruction was applied to:
CopilotKit/packages/runtime/package.json
🧠 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/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-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/react-core/**/* : Use [react-core/] for basic integration when building a simple Copilot
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/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-ui/** : UI components for copilot interfaces should be placed in CopilotKit/packages/react-ui/
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/
CopilotKit/packages/runtime/package.json (14)
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/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/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/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.
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 examples/coagents-starter/agent-js/**/* : Check [coagents-starter/agent-js/] for JavaScript agent example
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/sdk-js/** : JavaScript SDK for backend integration should be implemented in CopilotKit/packages/sdk-js/
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/
⏰ 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). (11)
- GitHub Check: Build Images (coagents-qa-text, ui)
- GitHub Check: Build Images (coagents-research-canvas, ui)
- GitHub Check: Build Images (next-openai, next-openai)
- GitHub Check: Build Images (coagents-routing, agent, python, local-deps)
- GitHub Check: Build Images (coagents-qa-native, ui)
- GitHub Check: Build Images (coagents-qa-text, agent, python, local-deps)
- GitHub Check: Build Images (coagents-qa-native, agent, python, local-deps)
- GitHub Check: Build Images (coagents-research-canvas, agent, python, local-deps)
- GitHub Check: Build Images (coagents-routing, ui)
- GitHub Check: Test (18.x)
- GitHub Check: Test (20.x)
| "dependencies": { | ||
| "@ag-ui/client": "0.0.28", | ||
| "@ag-ui/core": "0.0.28", | ||
| "@ag-ui/encoder": "0.0.28", | ||
| "@ag-ui/langgraph": "0.0.4", | ||
| "@ag-ui/proto": "0.0.28", | ||
| "@ag-ui/client": "0.0.34", | ||
| "@ag-ui/core": "0.0.34", | ||
| "@ag-ui/encoder": "0.0.34", | ||
| "@ag-ui/langgraph": "0.0.5", | ||
| "@ag-ui/proto": "0.0.34", | ||
| "@anthropic-ai/sdk": "^0.27.3", |
There was a problem hiding this comment.
💡 Verification agent
🧩 Analysis chain
Double-check workspace-wide alignment after bumping the @ag-ui/* versions
The runtime package now hard-pins:
"@ag-ui/*": "0.0.34"
"@ag-ui/langgraph": "0.0.5"
- If any sibling workspaces still reference
0.0.28(or an olderlanggraph), pnpm will install both versions side-by-side, bloatingnode_modulesand risking subtle runtime conflicts (e.g. class identity mismatches). - A strict pin without a caret means every subsequent patch from
0.0.35+will be missed until another manual bump. Consider~0.0.34(patch-level) or keep the previous caret (^) strategy if you want automatic patch uptake.
Request verifying the rest of the monorepo and lockfile before publishing:
🏁 Script executed:
#!/bin/bash
# List every workspace dependency on @ag-ui/* and highlight mismatches
rg --json '"@ag-ui/' |
jq -r '.data.lines.text' |
sort -uLength of output: 1327
Ensure @Ag-ui versions stay in sync across the monorepo
We still have mixed pins for @ag-ui/client, core, encoder and proto—some workspaces are on 0.0.28/>=0.0.28 while runtime now hard-pins 0.0.34. This will cause duplicate installs and potential class-identity conflicts.
• Update all packages/**/package.json entries for @ag-ui/{client,core,encoder,proto} to the same range (for example, ^0.0.34 or ~0.0.34 to pick up patch releases).
• Keep @ag-ui/langgraph at 0.0.5 everywhere if that’s the intended version.
• After bumping, run pnpm install (or pnpm update) and commit the regenerated lockfile.
To verify alignment:
rg --json '"@ag-ui/' |
jq -r '.data.lines.text' |
sort -u🤖 Prompt for AI Agents
In CopilotKit/packages/runtime/package.json around lines 49 to 55, the versions
of @ag-ui packages are inconsistently pinned across the monorepo, which can
cause duplicate installs and conflicts. Update all @ag-ui/client, @ag-ui/core,
@ag-ui/encoder, and @ag-ui/proto dependencies in every packages/**/package.json
to use the same version range, such as ^0.0.34 or ~0.0.34, to allow patch
updates. Keep @ag-ui/langgraph fixed at 0.0.5 if that is the intended version.
After updating all package.json files, run pnpm install or pnpm update to
regenerate the lockfile and commit the changes. Use the provided rg and jq
command to verify all versions are aligned.
5890707 to
40c505b
Compare
|
|
Preview environments destroyed for this pull request. |
Test ResultsStatus: ✅ Passed (View Run) Commit: 3d3d9be Duration: 217.1s 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
|
This PR upgrades all AGUI packages, so fixes for AGUI related items are available
Summary by CodeRabbit