ustal/stream-hub-plugins
最新稳定版本:v1.0.0
Composer 安装命令:
composer require ustal/stream-hub-plugins
包简介
Framework-agnostic feature modules for Stream Hub
README 文档
README
Framework-agnostic feature modules for Stream Hub.
In the v1 direction this repository is no longer a UI plugin pack. It now holds headless modules made of commands, handlers, and small workflow services.
This package targets stream-hub-core ^1.0.
Included Modules
MessageComposer
Current contents:
SendMessageCommandSendMessageCommandHandlerMessageEventFactory
The handler:
- builds a
StreamEventfor a user message; - dispatches low-level
AppendStreamEventCommandthroughModelCommandBusInterface; - does not talk to the backend directly.
The module expects an event identifier generator to be injected by the consuming integration.
StreamLifecycle
Current contents:
StartStreamCommandStartStreamCommandHandlerJoinStreamCommandJoinStreamCommandHandlerLeaveStreamCommandLeaveStreamCommandHandlerLifecycleSystemEventFactory
The handler:
- orchestrates low-level
CreateStreamCommand; - appends an initial system event through low-level
AppendStreamEventCommand; - dispatches low-level
JoinStreamCommandfor join scenarios; - appends a system event when a participant leaves;
- dispatches low-level
LeaveStreamCommandto update the participant model; - stays storage-agnostic and does not talk to the backend directly.
The module expects a system event identifier generator to be injected by the consuming integration.
Development
Install dependencies:
make install
Run tests:
make test
Run deptrac:
make deptrac
统计信息
- 总下载量: 143
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-07