mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
refactor: trim qqbot bridge exports
This commit is contained in:
@@ -227,7 +227,7 @@ function createQQBotApprovalCapability(): ChannelApprovalCapability {
|
||||
});
|
||||
}
|
||||
|
||||
export const qqbotApprovalCapability = createQQBotApprovalCapability();
|
||||
const qqbotApprovalCapability = createQQBotApprovalCapability();
|
||||
|
||||
let _cachedCapability: ChannelApprovalCapability | undefined;
|
||||
|
||||
|
||||
@@ -31,14 +31,14 @@ export const qqbotMeta = {
|
||||
order: 50,
|
||||
} as const;
|
||||
|
||||
export function validateQQBotSetupInput(params: {
|
||||
function validateQQBotSetupInput(params: {
|
||||
accountId: string;
|
||||
input: ChannelSetupInput;
|
||||
}): string | null {
|
||||
return engineValidateSetupInput(params.accountId, params.input);
|
||||
}
|
||||
|
||||
export function applyQQBotSetupAccountConfig(params: {
|
||||
function applyQQBotSetupAccountConfig(params: {
|
||||
cfg: OpenClawConfig;
|
||||
accountId: string;
|
||||
input: ChannelSetupInput;
|
||||
@@ -50,15 +50,15 @@ export function applyQQBotSetupAccountConfig(params: {
|
||||
) as OpenClawConfig;
|
||||
}
|
||||
|
||||
export function isQQBotConfigured(account: ResolvedQQBotAccount | undefined): boolean {
|
||||
function isQQBotConfigured(account: ResolvedQQBotAccount | undefined): boolean {
|
||||
return engineIsAccountConfigured(account as never);
|
||||
}
|
||||
|
||||
export function describeQQBotAccount(account: ResolvedQQBotAccount | undefined) {
|
||||
function describeQQBotAccount(account: ResolvedQQBotAccount | undefined) {
|
||||
return engineDescribeAccount(account as never);
|
||||
}
|
||||
|
||||
export function formatQQBotAllowFrom(params: {
|
||||
function formatQQBotAllowFrom(params: {
|
||||
allowFrom: Array<string | number> | undefined | null;
|
||||
}): string[] {
|
||||
return engineFormatAllowFrom(params.allowFrom);
|
||||
|
||||
@@ -9,9 +9,6 @@ import type { OpenClawPluginApi } from "openclaw/plugin-sdk/core";
|
||||
import { registerChannelTool } from "./channel.js";
|
||||
import { registerRemindTool } from "./remind.js";
|
||||
|
||||
export { registerChannelTool } from "./channel.js";
|
||||
export { registerRemindTool } from "./remind.js";
|
||||
|
||||
export function registerQQBotTools(api: OpenClawPluginApi): void {
|
||||
registerChannelTool(api);
|
||||
registerRemindTool(api);
|
||||
|
||||
@@ -38,7 +38,7 @@ export function resolveQQBotExecApprovalConfig(params: {
|
||||
};
|
||||
}
|
||||
|
||||
export function getQQBotExecApprovalApprovers(params: {
|
||||
function getQQBotExecApprovalApprovers(params: {
|
||||
cfg: OpenClawConfig;
|
||||
accountId?: string | null;
|
||||
}): string[] {
|
||||
|
||||
Reference in New Issue
Block a user