mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-16 11:41:08 +00:00
33 lines
986 B
TypeScript
33 lines
986 B
TypeScript
import type { ChannelPlugin } from "openclaw/plugin-sdk/core";
|
|
import { qqbotConfigAdapter, qqbotMeta, qqbotSetupAdapterShared } from "./channel-config-shared.js";
|
|
import { qqbotChannelConfigSchema } from "./config-schema.js";
|
|
import { qqbotSetupWizard } from "./setup-surface.js";
|
|
import type { ResolvedQQBotAccount } from "./types.js";
|
|
|
|
/**
|
|
* Setup-only QQBot plugin — lightweight subset used during `openclaw onboard`
|
|
* and `openclaw configure` without pulling the full runtime dependencies.
|
|
*/
|
|
export const qqbotSetupPlugin: ChannelPlugin<ResolvedQQBotAccount> = {
|
|
id: "qqbot",
|
|
setupWizard: qqbotSetupWizard,
|
|
meta: {
|
|
...qqbotMeta,
|
|
},
|
|
capabilities: {
|
|
chatTypes: ["direct", "group"],
|
|
media: true,
|
|
reactions: false,
|
|
threads: false,
|
|
blockStreaming: true,
|
|
},
|
|
reload: { configPrefixes: ["channels.qqbot"] },
|
|
configSchema: qqbotChannelConfigSchema,
|
|
config: {
|
|
...qqbotConfigAdapter,
|
|
},
|
|
setup: {
|
|
...qqbotSetupAdapterShared,
|
|
},
|
|
};
|