**流式消息** - 新增 StreamSender 类,支持流式消息分片发送 - 实现消息队列异步处理,防止阻塞心跳 - 支持 C2C/Group 流式消息 **架构重构** - 移除 clawdbot/moltbot 旧配置,统一为 qqbot - 新增 upgrade-and-run.sh 一键升级脚本 - 重构 api/channel/gateway/outbound 模块 - 新增富媒体消息发送接口
28 lines
897 B
TypeScript
28 lines
897 B
TypeScript
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
import { emptyPluginConfigSchema } from "openclaw/plugin-sdk";
|
|
|
|
import { qqbotPlugin } from "./src/channel.js";
|
|
import { setQQBotRuntime } from "./src/runtime.js";
|
|
|
|
const plugin = {
|
|
id: "qqbot",
|
|
name: "QQ Bot (Stream)",
|
|
description: "QQ Bot channel plugin with streaming message support",
|
|
configSchema: emptyPluginConfigSchema(),
|
|
register(api: OpenClawPluginApi) {
|
|
setQQBotRuntime(api.runtime);
|
|
api.registerChannel({ plugin: qqbotPlugin });
|
|
},
|
|
};
|
|
|
|
export default plugin;
|
|
|
|
export { qqbotPlugin } from "./src/channel.js";
|
|
export { setQQBotRuntime, getQQBotRuntime } from "./src/runtime.js";
|
|
export { qqbotOnboardingAdapter } from "./src/onboarding.js";
|
|
export * from "./src/types.js";
|
|
export * from "./src/api.js";
|
|
export * from "./src/config.js";
|
|
export * from "./src/gateway.js";
|
|
export * from "./src/outbound.js";
|