Skip to content

Add OneBot 11 adapter runtime - #1

Merged
Minecraft0122 merged 4 commits into
mainfrom
codex/onebot11-runtime
Nov 5, 2026
Merged

Minecraft0122 merged 4 commits into
mainfrom
codex/onebot11-runtime

Conversation

@Minecraft0122

Copy link
Copy Markdown
Contributor

已完成

  • 实现 OneBot 11 正向 WebSocket 运行时:Bearer 鉴权、身份握手、事件接收、群/私聊发送和群列表查询。
  • 提供适配器测试、启动、停止、重启、状态和能力 API;启用的实例会在服务启动时恢复,断线后自动退避重连。
  • 管理界面支持连接测试、启停控制、运行状态和最近错误展示。
  • 适配器 API 响应隐藏 AccessToken,编辑时留空可保留现有 token。
  • 增加协议模拟和 Web API 测试,更新实现状态及剩余工作文档。

尚未完成 / 验收限制

  • 尚无真实 OneBot 测试账号,未验证真实平台收发和平台差异。
  • 限流错误可识别,但尚未实现并验证平台要求的限流等待/重试行为。
  • Milky、Telegram、OpenQQ 运行时、Minecraft Bridge、消息转发和账号绑定仍未实现。
  • go test -race 未运行:当前本地 Go 环境禁用了 CGO。

验证

  • 本地:go test ./...、go vet ./...、npm run build 通过。
  • GitHub Actions:Build and Test #41323590462 通过;Database Integration #41323590533 通过(MySQL 8.4.11、MySQL 9.6.0、PostgreSQL 18.6)。

@Minecraft0122
Minecraft0122 merged commit 5ec3fd2 into main Nov 5, 2026
10 checks passed
@Minecraft0122
Minecraft0122 deleted the codex/onebot11-runtime branch November 5, 2026 14:38
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