refactor: trim qqbot bridge exports · openclaw/openclaw@71dd936
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -227,7 +227,7 @@ function createQQBotApprovalCapability(): ChannelApprovalCapability {
|
227 | 227 | }); |
228 | 228 | } |
229 | 229 | |
230 | | -export const qqbotApprovalCapability = createQQBotApprovalCapability(); |
| 230 | +const qqbotApprovalCapability = createQQBotApprovalCapability(); |
231 | 231 | |
232 | 232 | let _cachedCapability: ChannelApprovalCapability | undefined; |
233 | 233 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -31,14 +31,14 @@ export const qqbotMeta = {
|
31 | 31 | order: 50, |
32 | 32 | } as const; |
33 | 33 | |
34 | | -export function validateQQBotSetupInput(params: { |
| 34 | +function validateQQBotSetupInput(params: { |
35 | 35 | accountId: string; |
36 | 36 | input: ChannelSetupInput; |
37 | 37 | }): string | null { |
38 | 38 | return engineValidateSetupInput(params.accountId, params.input); |
39 | 39 | } |
40 | 40 | |
41 | | -export function applyQQBotSetupAccountConfig(params: { |
| 41 | +function applyQQBotSetupAccountConfig(params: { |
42 | 42 | cfg: OpenClawConfig; |
43 | 43 | accountId: string; |
44 | 44 | input: ChannelSetupInput; |
@@ -50,15 +50,15 @@ export function applyQQBotSetupAccountConfig(params: {
|
50 | 50 | ) as OpenClawConfig; |
51 | 51 | } |
52 | 52 | |
53 | | -export function isQQBotConfigured(account: ResolvedQQBotAccount | undefined): boolean { |
| 53 | +function isQQBotConfigured(account: ResolvedQQBotAccount | undefined): boolean { |
54 | 54 | return engineIsAccountConfigured(account as never); |
55 | 55 | } |
56 | 56 | |
57 | | -export function describeQQBotAccount(account: ResolvedQQBotAccount | undefined) { |
| 57 | +function describeQQBotAccount(account: ResolvedQQBotAccount | undefined) { |
58 | 58 | return engineDescribeAccount(account as never); |
59 | 59 | } |
60 | 60 | |
61 | | -export function formatQQBotAllowFrom(params: { |
| 61 | +function formatQQBotAllowFrom(params: { |
62 | 62 | allowFrom: Array<string | number> | undefined | null; |
63 | 63 | }): string[] { |
64 | 64 | return engineFormatAllowFrom(params.allowFrom); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,9 +9,6 @@ import type { OpenClawPluginApi } from "openclaw/plugin-sdk/core";
|
9 | 9 | import { registerChannelTool } from "./channel.js"; |
10 | 10 | import { registerRemindTool } from "./remind.js"; |
11 | 11 | |
12 | | -export { registerChannelTool } from "./channel.js"; |
13 | | -export { registerRemindTool } from "./remind.js"; |
14 | | - |
15 | 12 | export function registerQQBotTools(api: OpenClawPluginApi): void { |
16 | 13 | registerChannelTool(api); |
17 | 14 | registerRemindTool(api); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -38,7 +38,7 @@ export function resolveQQBotExecApprovalConfig(params: {
|
38 | 38 | }; |
39 | 39 | } |
40 | 40 | |
41 | | -export function getQQBotExecApprovalApprovers(params: { |
| 41 | +function getQQBotExecApprovalApprovers(params: { |
42 | 42 | cfg: OpenClawConfig; |
43 | 43 | accountId?: string | null; |
44 | 44 | }): string[] { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。