Skip to content

refactor(agents): move Channels into agents/channels - #2162

Open
mattzcarey wants to merge 1 commit into
cloudflare:mainfrom
mattzcarey:refactor/move-channels-to-agents
Open

refactor(agents): move Channels into agents/channels#2162
mattzcarey wants to merge 1 commit into
cloudflare:mainfrom
mattzcarey:refactor/move-channels-to-agents

Conversation

@mattzcarey

Copy link
Copy Markdown
Contributor

Summary

  • moves the unpublished @cloudflare/channels package into agents/channels
  • renames the stateless ChannelHost coordinator to ChannelRouter
  • publishes the AI SDK, Slack, and TanStack AI adapters from agents/channels/*
  • moves the browser voice adapter to @cloudflare/voice/channels, avoiding an Agents/Voice package cycle
  • updates the Channels example, reference docs, design record, package exports, tests, lockfile, and changesets

Scope

This PR establishes the package boundary only. It does not add the planned RPC Channel or change Agent client RPC. That work will follow separately.

Channels remains stateless. Applications own storage, deduplication, retries, and durable handoff. ChannelRouter authenticates and normalizes ingress, asks each Channel for an application route, and resolves outbound surfaces.

Verification

  • pnpm run build
  • pnpm run check (113 TypeScript projects)
  • pnpm exec nx affected -t test --base=origin/main (21 projects)
  • Channels: 152 tests
  • Voice: 236 tests, including 9 browser voice Channel tests
  • Agents: 2,624 tests
  • AI Chat: 737 tests
  • Think: 888 tests

@changeset-bot

changeset-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b9b0fa3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 3 packages
Name Type
agents Minor
@cloudflare/voice Minor
@cloudflare/agent-think Patch

Click here to learn what changesets are, and how to add one.

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

@pkg-pr-new

pkg-pr-new Bot commented Aug 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@2162

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@2162

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@2162

hono-agents

npm i https://pkg.pr.new/hono-agents@2162

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@2162

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@2162

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@2162

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@2162

commit: b9b0fa3

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