Skip to content

Commit c1bfb9c

Browse files
committed
refactor(qqbot): localize internal declarations
1 parent 8cbcc41 commit c1bfb9c

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

extensions/qqbot/src/engine/adapter/mention-gate.port.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
type ImplicitMentionKind = "reply_to_bot" | "quoted_bot" | "bot_thread_participant" | "native";
1212

1313
/** Facts about the current message's mention state. */
14-
export interface MentionFacts {
14+
interface MentionFacts {
1515
canDetectMention: boolean;
1616
wasMentioned: boolean;
1717
hasAnyMention?: boolean;
1818
implicitMentionKinds?: readonly ImplicitMentionKind[];
1919
}
2020

2121
/** Policy configuration for the mention gate. */
22-
export interface MentionPolicy {
22+
interface MentionPolicy {
2323
isGroup: boolean;
2424
requireMention: boolean;
2525
allowTextCommands: boolean;
@@ -28,7 +28,7 @@ export interface MentionPolicy {
2828
}
2929

3030
/** Result of the mention gate evaluation. */
31-
export interface MentionGateDecision {
31+
interface MentionGateDecision {
3232
effectiveWasMentioned: boolean;
3333
shouldSkip: boolean;
3434
shouldBypassMention: boolean;

extensions/qqbot/src/engine/commands/command-visibility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Qqbot plugin module classifies slash-command visibility for QQ group chats.
22
import type { QQBotGroupCommandLevel } from "../config/group.js";
33

4-
export type GroupCommandVisibility = "group" | "hidden" | "private" | "unknown";
4+
type GroupCommandVisibility = "group" | "hidden" | "private" | "unknown";
55

66
export const PRIVATE_CHAT_ONLY_TEXT = "该命令仅限私聊使用,请在私聊中发送。";
77

extensions/qqbot/src/engine/gateway/active-cfg.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import { getRuntimeConfig } from "openclaw/plugin-sdk/runtime-config-snapshot";
1515

1616
export type GatewayCfgLoader = () => OpenClawConfig;
1717

18-
export interface ActiveCfgProvider {
18+
interface ActiveCfgProvider {
1919
getActiveCfg(): OpenClawConfig;
2020
}
2121

22-
export interface ActiveCfgProviderOptions {
22+
interface ActiveCfgProviderOptions {
2323
fallback: OpenClawConfig;
2424
load?: GatewayCfgLoader;
2525
}

extensions/qqbot/src/engine/gateway/ws-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Agent } from "node:http";
33
import { resolveAmbientNodeProxyAgent } from "openclaw/plugin-sdk/extension-shared";
44
import WebSocket from "ws";
55

6-
export interface QQWSClientOptions {
6+
interface QQWSClientOptions {
77
gatewayUrl: string;
88
userAgent: string;
99
}

extensions/qqbot/src/engine/messaging/markdown-table-chunking.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type ActiveFence = {
1616
marker: string;
1717
};
1818

19-
export type QQBotMarkdownChunker = {
19+
type QQBotMarkdownChunker = {
2020
chunkText: (text: string, limit: number) => string[];
2121
flushPendingText: (limit: number) => string[];
2222
};

extensions/qqbot/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface QQBotExecApprovalConfig {
3737
target?: "dm" | "channel" | "both";
3838
}
3939

40-
export interface QQBotGroupConfig {
40+
interface QQBotGroupConfig {
4141
requireMention?: boolean;
4242
commandLevel?: QQBotGroupCommandLevel;
4343
ignoreOtherMentions?: boolean;

0 commit comments

Comments
 (0)