Skip to content

fix(core): declare @ag-ui/core as a dependency - #8144

Merged
AlemTuzlak merged 1 commit into
2.0.0from
alem/2.0-core-ag-ui-dep
Nov 2, 2026
Merged

AlemTuzlak merged 1 commit into
2.0.0from
alem/2.0-core-ag-ui-dep

Conversation

@AlemTuzlak

Copy link
Copy Markdown
Contributor

Every job that builds @copilotkit/core on 2.0.0 fails with Detected dependencies in bundle: @ag-ui/core. Core's public types import from @ag-ui/core, but core listed it only as a dev dependency. With CI=true, tsdown then fails the build. This PR moves @ag-ui/core from devDependencies to dependencies.

What does this PR do?

  • Moves @ag-ui/core (1.0.2) into the dependencies of @copilotkit/core.
  • Moves the same entry in 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

Checklist

  • I have read the Contribution Guide
  • If the PR changes or adds functionality, I have updated the relevant documentation
  • If the PR contains a breaking change, the title has ! (for example feat(react-core)!: ...) and the description has a BREAKING CHANGE: line with migration steps. See VERSIONING.md
  • "Allow edits by maintainers" is checked (lets us help iterate on your PR directly — faster turnaround for everyone)

Testing

Commands run

  • pnpm install --frozen-lockfile: passes.
  • CI=true pnpm nx run @copilotkit/core:build --skip-nx-cache: passes. On 2.0.0 without this change, the same command fails.

Manual test

  1. Check out 2.0.0. Run CI=true pnpm nx run @copilotkit/core:build --skip-nx-cache. The build fails with Detected dependencies in bundle: @ag-ui/core.
  2. Check out this branch. Run the same command. The build passes.

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/core now get @ag-ui/[email protected]. @ag-ui/client already depends on it, so most installs have it already. To undo, revert this PR.

🤖 Generated with Claude Code

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]>
@coderabbitai

coderabbitai Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 1
  • main

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@pkg-pr-new

pkg-pr-new Bot commented Nov 2, 2026

Copy link
Copy Markdown
@copilotkit/a2ui-renderer

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/a2ui-renderer@8144

@copilotkit/agentcore-runner

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/agentcore-runner@8144

@copilotkit/angular

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/angular@8144

@copilotkit/channels

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/channels@8144

@copilotkit/channels-core

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/channels-core@8144

@copilotkit/channels-discord

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/channels-discord@8144

@copilotkit/channels-intelligence

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/channels-intelligence@8144

@copilotkit/channels-slack

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/channels-slack@8144

@copilotkit/channels-teams

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/channels-teams@8144

@copilotkit/channels-ui

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/channels-ui@8144

@copilotkit/channels-whatsapp

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/channels-whatsapp@8144

@copilotkit/core

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/core@8144

@copilotkit/intelligence-langgraph

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/intelligence-langgraph@8144

@copilotkit/intelligence-mastra

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/intelligence-mastra@8144

@copilotkit/learning

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/learning@8144

@copilotkit/markdown-renderer

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/markdown-renderer@8144

@copilotkit/mcp-apps-renderer

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/mcp-apps-renderer@8144

@copilotkit/react-core

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/react-core@8144

@copilotkit/react-native

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/react-native@8144

@copilotkit/runtime

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/runtime@8144

@copilotkit/sdk-js

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/sdk-js@8144

@copilotkit/shared

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/shared@8144

@copilotkit/sqlite-runner

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/sqlite-runner@8144

@copilotkit/voice

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/voice@8144

@copilotkit/vue

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/vue@8144

@copilotkit/web-components

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/web-components@8144

@copilotkit/web-inspector

pnpm add https://pkg.pr.new/CopilotKit/CopilotKit/@copilotkit/web-inspector@8144

commit: bb58330

@AlemTuzlak
AlemTuzlak merged commit 6dc2c2d into 2.0.0 Nov 2, 2026
65 of 81 checks passed
@AlemTuzlak
AlemTuzlak deleted the alem/2.0-core-ag-ui-dep branch November 2, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant