Repository navigation
fix(core): declare @ag-ui/core as a dependency - #8144
Merged
Merged
Conversation
Core's public types (chat messages and tool-call layout) import from
@ag-ui/core, but core listed it only as a dev dependency. tsdown then
inlined it into the declaration bundle and, with CI set, failed the
build ("Detected dependencies in bundle: @ag-ui/core"). Every job that
builds core failed on 2.0.0 since #8113.
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
|
@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: |
2 of 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.
Every job that builds
@copilotkit/coreon2.0.0fails withDetected dependencies in bundle: @ag-ui/core. Core's public types import from@ag-ui/core, but core listed it only as a dev dependency. WithCI=true, tsdown then fails the build. This PR moves@ag-ui/corefromdevDependenciestodependencies.What does this PR do?
@ag-ui/core(1.0.2) into thedependenciesof@copilotkit/core.pnpm-lock.yaml. No other lockfile entry changes.The break started with #8113. Core's chat message and tool-call layout types import from
@ag-ui/core.Related PRs and Issues
bundle-sizejob builds2.0.0for comparison, so it stays red until this PR merges.Checklist
!(for examplefeat(react-core)!: ...) and the description has aBREAKING CHANGE:line with migration steps. See VERSIONING.mdTesting
Commands run
pnpm install --frozen-lockfile: passes.CI=true pnpm nx run @copilotkit/core:build --skip-nx-cache: passes. On2.0.0without this change, the same command fails.Manual test
2.0.0. RunCI=true pnpm nx run @copilotkit/core:build --skip-nx-cache. The build fails withDetected dependencies in bundle: @ag-ui/core.How this PR makes testing easy
The build command above is the test. There is no new automated test, because CI already builds core in every job.
Risk / rollback
Low risk. Installs of
@copilotkit/corenow get@ag-ui/[email protected].@ag-ui/clientalready depends on it, so most installs have it already. To undo, revert this PR.🤖 Generated with Claude Code