@openclaw-china/qqbot 2026.3.22 → 2026.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +44 -10
- package/dist/index.js +604 -240
- package/dist/index.js.map +1 -1
- package/openclaw.plugin.json +4 -2
- package/package.json +2 -2
- package/skills/qqbot-contact-send/SKILL.md +1 -1
- package/skills/qqbot-contact-send/scripts/prepare_send.py +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
declare const QQBOT_CHANNEL_ID: "qqbot";
|
|
4
|
+
declare const QQBOT_CONFIG_CHANNEL_ID: "qqbot-china";
|
|
3
5
|
declare const QQBotC2CMarkdownDeliveryModeSchema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["passive", "proactive-table-only", "proactive-all"]>>>;
|
|
4
6
|
type QQBotC2CMarkdownDeliveryMode = z.input<typeof QQBotC2CMarkdownDeliveryModeSchema>;
|
|
5
7
|
declare const QQBotC2CMarkdownChunkStrategySchema: z.ZodDefault<z.ZodOptional<z.ZodEnum<["markdown-block", "length"]>>>;
|
|
@@ -11,6 +13,7 @@ declare const QQBotAccountSchema: z.ZodObject<{
|
|
|
11
13
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
12
14
|
appId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
13
15
|
clientSecret: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
16
|
+
streaming: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14
17
|
displayAliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, unknown>>>;
|
|
15
18
|
asr: z.ZodOptional<z.ZodObject<{
|
|
16
19
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -58,6 +61,7 @@ declare const QQBotAccountSchema: z.ZodObject<{
|
|
|
58
61
|
keepDays?: number | undefined;
|
|
59
62
|
}>>;
|
|
60
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
streaming: boolean;
|
|
61
65
|
markdownSupport: boolean;
|
|
62
66
|
c2cMarkdownDeliveryMode: "passive" | "proactive-table-only" | "proactive-all";
|
|
63
67
|
c2cMarkdownChunkStrategy: "markdown-block" | "length";
|
|
@@ -97,6 +101,7 @@ declare const QQBotAccountSchema: z.ZodObject<{
|
|
|
97
101
|
enabled?: boolean | undefined;
|
|
98
102
|
appId?: unknown;
|
|
99
103
|
clientSecret?: unknown;
|
|
104
|
+
streaming?: boolean | undefined;
|
|
100
105
|
displayAliases?: Record<string, unknown> | undefined;
|
|
101
106
|
asr?: {
|
|
102
107
|
enabled?: boolean | undefined;
|
|
@@ -133,6 +138,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
133
138
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
134
139
|
appId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
135
140
|
clientSecret: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
141
|
+
streaming: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
136
142
|
displayAliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, unknown>>>;
|
|
137
143
|
asr: z.ZodOptional<z.ZodObject<{
|
|
138
144
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -186,6 +192,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
186
192
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
187
193
|
appId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
188
194
|
clientSecret: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
195
|
+
streaming: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
189
196
|
displayAliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, unknown>>>;
|
|
190
197
|
asr: z.ZodOptional<z.ZodObject<{
|
|
191
198
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -233,6 +240,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
233
240
|
keepDays?: number | undefined;
|
|
234
241
|
}>>;
|
|
235
242
|
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
streaming: boolean;
|
|
236
244
|
markdownSupport: boolean;
|
|
237
245
|
c2cMarkdownDeliveryMode: "passive" | "proactive-table-only" | "proactive-all";
|
|
238
246
|
c2cMarkdownChunkStrategy: "markdown-block" | "length";
|
|
@@ -272,6 +280,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
272
280
|
enabled?: boolean | undefined;
|
|
273
281
|
appId?: unknown;
|
|
274
282
|
clientSecret?: unknown;
|
|
283
|
+
streaming?: boolean | undefined;
|
|
275
284
|
displayAliases?: Record<string, unknown> | undefined;
|
|
276
285
|
asr?: {
|
|
277
286
|
enabled?: boolean | undefined;
|
|
@@ -304,6 +313,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
304
313
|
} | undefined;
|
|
305
314
|
}>>>;
|
|
306
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
streaming: boolean;
|
|
307
317
|
markdownSupport: boolean;
|
|
308
318
|
c2cMarkdownDeliveryMode: "passive" | "proactive-table-only" | "proactive-all";
|
|
309
319
|
c2cMarkdownChunkStrategy: "markdown-block" | "length";
|
|
@@ -340,6 +350,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
340
350
|
} | undefined;
|
|
341
351
|
defaultAccount?: string | undefined;
|
|
342
352
|
accounts?: Record<string, {
|
|
353
|
+
streaming: boolean;
|
|
343
354
|
markdownSupport: boolean;
|
|
344
355
|
c2cMarkdownDeliveryMode: "passive" | "proactive-table-only" | "proactive-all";
|
|
345
356
|
c2cMarkdownChunkStrategy: "markdown-block" | "length";
|
|
@@ -380,6 +391,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
380
391
|
enabled?: boolean | undefined;
|
|
381
392
|
appId?: unknown;
|
|
382
393
|
clientSecret?: unknown;
|
|
394
|
+
streaming?: boolean | undefined;
|
|
383
395
|
displayAliases?: Record<string, unknown> | undefined;
|
|
384
396
|
asr?: {
|
|
385
397
|
enabled?: boolean | undefined;
|
|
@@ -416,6 +428,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
416
428
|
enabled?: boolean | undefined;
|
|
417
429
|
appId?: unknown;
|
|
418
430
|
clientSecret?: unknown;
|
|
431
|
+
streaming?: boolean | undefined;
|
|
419
432
|
displayAliases?: Record<string, unknown> | undefined;
|
|
420
433
|
asr?: {
|
|
421
434
|
enabled?: boolean | undefined;
|
|
@@ -451,8 +464,8 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
451
464
|
type QQBotConfig = z.input<typeof QQBotConfigSchema>;
|
|
452
465
|
type QQBotAccountConfig = z.input<typeof QQBotAccountSchema>;
|
|
453
466
|
interface PluginConfig {
|
|
454
|
-
channels?: {
|
|
455
|
-
qqbot?: QQBotConfig;
|
|
467
|
+
channels?: Record<string, unknown> & {
|
|
468
|
+
"qqbot-china"?: QQBotConfig;
|
|
456
469
|
};
|
|
457
470
|
}
|
|
458
471
|
declare const DEFAULT_ACCOUNT_ID = "default";
|
|
@@ -462,13 +475,14 @@ interface ResolvedQQBotAccount {
|
|
|
462
475
|
enabled: boolean;
|
|
463
476
|
configured: boolean;
|
|
464
477
|
appId?: string;
|
|
478
|
+
streaming?: boolean;
|
|
465
479
|
markdownSupport?: boolean;
|
|
466
480
|
c2cMarkdownDeliveryMode?: QQBotC2CMarkdownDeliveryMode;
|
|
467
481
|
c2cMarkdownChunkStrategy?: QQBotC2CMarkdownChunkStrategy;
|
|
468
482
|
typingHeartbeatMode?: QQBotTypingHeartbeatMode;
|
|
469
483
|
}
|
|
470
484
|
interface QQBotSendResult {
|
|
471
|
-
channel:
|
|
485
|
+
channel: typeof QQBOT_CHANNEL_ID;
|
|
472
486
|
messageId?: string;
|
|
473
487
|
timestamp?: number | string;
|
|
474
488
|
refIdx?: string;
|
|
@@ -499,7 +513,7 @@ interface WizardPrompter {
|
|
|
499
513
|
}
|
|
500
514
|
|
|
501
515
|
declare const qqbotPlugin: {
|
|
502
|
-
id:
|
|
516
|
+
id: "qqbot";
|
|
503
517
|
meta: {
|
|
504
518
|
id: "qqbot";
|
|
505
519
|
label: "QQ Bot";
|
|
@@ -553,6 +567,9 @@ declare const qqbotPlugin: {
|
|
|
553
567
|
clientSecret: {
|
|
554
568
|
type: string;
|
|
555
569
|
};
|
|
570
|
+
streaming: {
|
|
571
|
+
type: string;
|
|
572
|
+
};
|
|
556
573
|
displayAliases: {
|
|
557
574
|
type: string;
|
|
558
575
|
additionalProperties: {
|
|
@@ -670,6 +687,9 @@ declare const qqbotPlugin: {
|
|
|
670
687
|
clientSecret: {
|
|
671
688
|
type: string;
|
|
672
689
|
};
|
|
690
|
+
streaming: {
|
|
691
|
+
type: string;
|
|
692
|
+
};
|
|
673
693
|
displayAliases: {
|
|
674
694
|
type: string;
|
|
675
695
|
additionalProperties: {
|
|
@@ -776,7 +796,7 @@ declare const qqbotPlugin: {
|
|
|
776
796
|
};
|
|
777
797
|
};
|
|
778
798
|
reload: {
|
|
779
|
-
configPrefixes:
|
|
799
|
+
configPrefixes: "channels.qqbot-china"[];
|
|
780
800
|
};
|
|
781
801
|
onboarding: {
|
|
782
802
|
channel: "qqbot";
|
|
@@ -894,6 +914,14 @@ declare const qqbotPlugin: {
|
|
|
894
914
|
};
|
|
895
915
|
};
|
|
896
916
|
|
|
917
|
+
type QQBotPartialReplyPayload = {
|
|
918
|
+
text?: string;
|
|
919
|
+
};
|
|
920
|
+
type QQBotReplyOptions = {
|
|
921
|
+
disableBlockStreaming?: boolean;
|
|
922
|
+
onPartialReply?: (payload: QQBotPartialReplyPayload) => Promise<void> | void;
|
|
923
|
+
[key: string]: unknown;
|
|
924
|
+
};
|
|
897
925
|
interface PluginRuntime {
|
|
898
926
|
log?: (msg: string) => void;
|
|
899
927
|
error?: (msg: string) => void;
|
|
@@ -958,7 +986,7 @@ interface PluginRuntime {
|
|
|
958
986
|
ctx: unknown;
|
|
959
987
|
cfg: unknown;
|
|
960
988
|
dispatcher?: unknown;
|
|
961
|
-
replyOptions?:
|
|
989
|
+
replyOptions?: QQBotReplyOptions;
|
|
962
990
|
}) => Promise<{
|
|
963
991
|
queuedFinal: boolean;
|
|
964
992
|
counts: {
|
|
@@ -982,7 +1010,7 @@ interface PluginRuntime {
|
|
|
982
1010
|
onReplyStart?: () => Promise<void> | void;
|
|
983
1011
|
humanDelay?: unknown;
|
|
984
1012
|
};
|
|
985
|
-
replyOptions?:
|
|
1013
|
+
replyOptions?: QQBotReplyOptions;
|
|
986
1014
|
}) => Promise<unknown>;
|
|
987
1015
|
dispatchReplyWithBufferedBlockDispatcher?: (params: {
|
|
988
1016
|
ctx: unknown;
|
|
@@ -1001,7 +1029,7 @@ interface PluginRuntime {
|
|
|
1001
1029
|
onReplyStart?: () => Promise<void> | void;
|
|
1002
1030
|
humanDelay?: unknown;
|
|
1003
1031
|
};
|
|
1004
|
-
replyOptions?:
|
|
1032
|
+
replyOptions?: QQBotReplyOptions;
|
|
1005
1033
|
}) => Promise<unknown>;
|
|
1006
1034
|
finalizeInboundContext?: (ctx: unknown) => unknown;
|
|
1007
1035
|
createReplyDispatcher?: (params: unknown) => unknown;
|
|
@@ -1096,7 +1124,7 @@ interface MoltbotPluginApi {
|
|
|
1096
1124
|
}
|
|
1097
1125
|
|
|
1098
1126
|
declare const plugin: {
|
|
1099
|
-
id:
|
|
1127
|
+
id: "qqbot";
|
|
1100
1128
|
name: string;
|
|
1101
1129
|
description: string;
|
|
1102
1130
|
configSchema: {
|
|
@@ -1118,6 +1146,9 @@ declare const plugin: {
|
|
|
1118
1146
|
clientSecret: {
|
|
1119
1147
|
type: string;
|
|
1120
1148
|
};
|
|
1149
|
+
streaming: {
|
|
1150
|
+
type: string;
|
|
1151
|
+
};
|
|
1121
1152
|
displayAliases: {
|
|
1122
1153
|
type: string;
|
|
1123
1154
|
additionalProperties: {
|
|
@@ -1235,6 +1266,9 @@ declare const plugin: {
|
|
|
1235
1266
|
clientSecret: {
|
|
1236
1267
|
type: string;
|
|
1237
1268
|
};
|
|
1269
|
+
streaming: {
|
|
1270
|
+
type: string;
|
|
1271
|
+
};
|
|
1238
1272
|
displayAliases: {
|
|
1239
1273
|
type: string;
|
|
1240
1274
|
additionalProperties: {
|
|
@@ -1342,4 +1376,4 @@ declare const plugin: {
|
|
|
1342
1376
|
register(api: MoltbotPluginApi): void;
|
|
1343
1377
|
};
|
|
1344
1378
|
|
|
1345
|
-
export { DEFAULT_ACCOUNT_ID, type KnownQQBotTarget, type MoltbotPluginApi, type QQBotAccountConfig, type QQBotConfig, type QQBotSendResult, type ResolvedQQBotAccount, clearKnownQQBotTargets, plugin as default, getKnownQQBotTarget, getQQBotRuntime, listKnownQQBotTargets, qqbotPlugin, removeKnownQQBotTarget, sendProactiveQQBotMessage, setQQBotRuntime };
|
|
1379
|
+
export { DEFAULT_ACCOUNT_ID, type KnownQQBotTarget, type MoltbotPluginApi, QQBOT_CHANNEL_ID, QQBOT_CONFIG_CHANNEL_ID, type QQBotAccountConfig, type QQBotConfig, type QQBotSendResult, type ResolvedQQBotAccount, clearKnownQQBotTargets, plugin as default, getKnownQQBotTarget, getQQBotRuntime, listKnownQQBotTargets, qqbotPlugin, removeKnownQQBotTarget, sendProactiveQQBotMessage, setQQBotRuntime };
|