File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111type 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 ;
Original file line number Diff line number Diff line change 11// Qqbot plugin module classifies slash-command visibility for QQ group chats.
22import type { QQBotGroupCommandLevel } from "../config/group.js" ;
33
4- export type GroupCommandVisibility = "group" | "hidden" | "private" | "unknown" ;
4+ type GroupCommandVisibility = "group" | "hidden" | "private" | "unknown" ;
55
66export const PRIVATE_CHAT_ONLY_TEXT = "该命令仅限私聊使用,请在私聊中发送。" ;
77
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ import { getRuntimeConfig } from "openclaw/plugin-sdk/runtime-config-snapshot";
1515
1616export 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}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type { Agent } from "node:http";
33import { resolveAmbientNodeProxyAgent } from "openclaw/plugin-sdk/extension-shared" ;
44import WebSocket from "ws" ;
55
6- export interface QQWSClientOptions {
6+ interface QQWSClientOptions {
77 gatewayUrl : string ;
88 userAgent : string ;
99}
Original file line number Diff line number Diff 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} ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments