Skip to content

refactor(platform): inject channel server/client via Platform DI#219

Merged
deepracticexs merged 2 commits intomainfrom
feat/channel-platform-injection
Mar 8, 2026
Merged

refactor(platform): inject channel server/client via Platform DI#219
deepracticexs merged 2 commits intomainfrom
feat/channel-platform-injection

Conversation

@deepracticexs
Copy link
Member

Summary

  • Rename WebSocketFactoryChannelClientFactory at the source type level
  • Add channelServer?: ChannelServer and channelClient?: ChannelClientFactory to AgentXPlatform interface
  • Server reads channelServer from Platform instead of importing WebSocketServer directly
  • Enables non-Node platforms (e.g. Cloudflare DO Hibernation API) to provide their own ChannelServer implementation

Test plan

  • bun run build passes (8/8 tasks)
  • CI checks pass
  • Verify changeset versions are correct

🤖 Generated with Claude Code

deepracticexs and others added 2 commits March 8, 2026 14:45
Rename WebSocketFactory → ChannelClientFactory at the source type level.
Server now reads channelServer from Platform instead of importing
WebSocketServer directly, enabling non-Node platforms (e.g. Cloudflare DO)
to provide their own ChannelServer implementation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@deepracticexs deepracticexs merged commit 87453dc into main Mar 8, 2026
5 checks passed
@deepracticexs deepracticexs deleted the feat/channel-platform-injection branch March 8, 2026 06:47
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