@openclaw-china/qqbot 2026.3.21 → 2026.3.29
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 +35 -3
- package/dist/index.js +426 -67
- package/dist/index.js.map +1 -1
- package/openclaw.plugin.json +2 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ declare const QQBotAccountSchema: z.ZodObject<{
|
|
|
11
11
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
12
12
|
appId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
13
13
|
clientSecret: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
14
|
+
streaming: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14
15
|
displayAliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, unknown>>>;
|
|
15
16
|
asr: z.ZodOptional<z.ZodObject<{
|
|
16
17
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -58,6 +59,7 @@ declare const QQBotAccountSchema: z.ZodObject<{
|
|
|
58
59
|
keepDays?: number | undefined;
|
|
59
60
|
}>>;
|
|
60
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
streaming: boolean;
|
|
61
63
|
markdownSupport: boolean;
|
|
62
64
|
c2cMarkdownDeliveryMode: "passive" | "proactive-table-only" | "proactive-all";
|
|
63
65
|
c2cMarkdownChunkStrategy: "markdown-block" | "length";
|
|
@@ -97,6 +99,7 @@ declare const QQBotAccountSchema: z.ZodObject<{
|
|
|
97
99
|
enabled?: boolean | undefined;
|
|
98
100
|
appId?: unknown;
|
|
99
101
|
clientSecret?: unknown;
|
|
102
|
+
streaming?: boolean | undefined;
|
|
100
103
|
displayAliases?: Record<string, unknown> | undefined;
|
|
101
104
|
asr?: {
|
|
102
105
|
enabled?: boolean | undefined;
|
|
@@ -133,6 +136,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
133
136
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
134
137
|
appId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
135
138
|
clientSecret: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
139
|
+
streaming: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
136
140
|
displayAliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, unknown>>>;
|
|
137
141
|
asr: z.ZodOptional<z.ZodObject<{
|
|
138
142
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -186,6 +190,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
186
190
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
187
191
|
appId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
188
192
|
clientSecret: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
193
|
+
streaming: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
189
194
|
displayAliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, unknown>>>;
|
|
190
195
|
asr: z.ZodOptional<z.ZodObject<{
|
|
191
196
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -233,6 +238,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
233
238
|
keepDays?: number | undefined;
|
|
234
239
|
}>>;
|
|
235
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
streaming: boolean;
|
|
236
242
|
markdownSupport: boolean;
|
|
237
243
|
c2cMarkdownDeliveryMode: "passive" | "proactive-table-only" | "proactive-all";
|
|
238
244
|
c2cMarkdownChunkStrategy: "markdown-block" | "length";
|
|
@@ -272,6 +278,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
272
278
|
enabled?: boolean | undefined;
|
|
273
279
|
appId?: unknown;
|
|
274
280
|
clientSecret?: unknown;
|
|
281
|
+
streaming?: boolean | undefined;
|
|
275
282
|
displayAliases?: Record<string, unknown> | undefined;
|
|
276
283
|
asr?: {
|
|
277
284
|
enabled?: boolean | undefined;
|
|
@@ -304,6 +311,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
304
311
|
} | undefined;
|
|
305
312
|
}>>>;
|
|
306
313
|
}, "strip", z.ZodTypeAny, {
|
|
314
|
+
streaming: boolean;
|
|
307
315
|
markdownSupport: boolean;
|
|
308
316
|
c2cMarkdownDeliveryMode: "passive" | "proactive-table-only" | "proactive-all";
|
|
309
317
|
c2cMarkdownChunkStrategy: "markdown-block" | "length";
|
|
@@ -340,6 +348,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
340
348
|
} | undefined;
|
|
341
349
|
defaultAccount?: string | undefined;
|
|
342
350
|
accounts?: Record<string, {
|
|
351
|
+
streaming: boolean;
|
|
343
352
|
markdownSupport: boolean;
|
|
344
353
|
c2cMarkdownDeliveryMode: "passive" | "proactive-table-only" | "proactive-all";
|
|
345
354
|
c2cMarkdownChunkStrategy: "markdown-block" | "length";
|
|
@@ -380,6 +389,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
380
389
|
enabled?: boolean | undefined;
|
|
381
390
|
appId?: unknown;
|
|
382
391
|
clientSecret?: unknown;
|
|
392
|
+
streaming?: boolean | undefined;
|
|
383
393
|
displayAliases?: Record<string, unknown> | undefined;
|
|
384
394
|
asr?: {
|
|
385
395
|
enabled?: boolean | undefined;
|
|
@@ -416,6 +426,7 @@ declare const QQBotConfigSchema: z.ZodObject<{
|
|
|
416
426
|
enabled?: boolean | undefined;
|
|
417
427
|
appId?: unknown;
|
|
418
428
|
clientSecret?: unknown;
|
|
429
|
+
streaming?: boolean | undefined;
|
|
419
430
|
displayAliases?: Record<string, unknown> | undefined;
|
|
420
431
|
asr?: {
|
|
421
432
|
enabled?: boolean | undefined;
|
|
@@ -462,6 +473,7 @@ interface ResolvedQQBotAccount {
|
|
|
462
473
|
enabled: boolean;
|
|
463
474
|
configured: boolean;
|
|
464
475
|
appId?: string;
|
|
476
|
+
streaming?: boolean;
|
|
465
477
|
markdownSupport?: boolean;
|
|
466
478
|
c2cMarkdownDeliveryMode?: QQBotC2CMarkdownDeliveryMode;
|
|
467
479
|
c2cMarkdownChunkStrategy?: QQBotC2CMarkdownChunkStrategy;
|
|
@@ -553,6 +565,9 @@ declare const qqbotPlugin: {
|
|
|
553
565
|
clientSecret: {
|
|
554
566
|
type: string;
|
|
555
567
|
};
|
|
568
|
+
streaming: {
|
|
569
|
+
type: string;
|
|
570
|
+
};
|
|
556
571
|
displayAliases: {
|
|
557
572
|
type: string;
|
|
558
573
|
additionalProperties: {
|
|
@@ -670,6 +685,9 @@ declare const qqbotPlugin: {
|
|
|
670
685
|
clientSecret: {
|
|
671
686
|
type: string;
|
|
672
687
|
};
|
|
688
|
+
streaming: {
|
|
689
|
+
type: string;
|
|
690
|
+
};
|
|
673
691
|
displayAliases: {
|
|
674
692
|
type: string;
|
|
675
693
|
additionalProperties: {
|
|
@@ -894,6 +912,14 @@ declare const qqbotPlugin: {
|
|
|
894
912
|
};
|
|
895
913
|
};
|
|
896
914
|
|
|
915
|
+
type QQBotPartialReplyPayload = {
|
|
916
|
+
text?: string;
|
|
917
|
+
};
|
|
918
|
+
type QQBotReplyOptions = {
|
|
919
|
+
disableBlockStreaming?: boolean;
|
|
920
|
+
onPartialReply?: (payload: QQBotPartialReplyPayload) => Promise<void> | void;
|
|
921
|
+
[key: string]: unknown;
|
|
922
|
+
};
|
|
897
923
|
interface PluginRuntime {
|
|
898
924
|
log?: (msg: string) => void;
|
|
899
925
|
error?: (msg: string) => void;
|
|
@@ -958,7 +984,7 @@ interface PluginRuntime {
|
|
|
958
984
|
ctx: unknown;
|
|
959
985
|
cfg: unknown;
|
|
960
986
|
dispatcher?: unknown;
|
|
961
|
-
replyOptions?:
|
|
987
|
+
replyOptions?: QQBotReplyOptions;
|
|
962
988
|
}) => Promise<{
|
|
963
989
|
queuedFinal: boolean;
|
|
964
990
|
counts: {
|
|
@@ -982,7 +1008,7 @@ interface PluginRuntime {
|
|
|
982
1008
|
onReplyStart?: () => Promise<void> | void;
|
|
983
1009
|
humanDelay?: unknown;
|
|
984
1010
|
};
|
|
985
|
-
replyOptions?:
|
|
1011
|
+
replyOptions?: QQBotReplyOptions;
|
|
986
1012
|
}) => Promise<unknown>;
|
|
987
1013
|
dispatchReplyWithBufferedBlockDispatcher?: (params: {
|
|
988
1014
|
ctx: unknown;
|
|
@@ -1001,7 +1027,7 @@ interface PluginRuntime {
|
|
|
1001
1027
|
onReplyStart?: () => Promise<void> | void;
|
|
1002
1028
|
humanDelay?: unknown;
|
|
1003
1029
|
};
|
|
1004
|
-
replyOptions?:
|
|
1030
|
+
replyOptions?: QQBotReplyOptions;
|
|
1005
1031
|
}) => Promise<unknown>;
|
|
1006
1032
|
finalizeInboundContext?: (ctx: unknown) => unknown;
|
|
1007
1033
|
createReplyDispatcher?: (params: unknown) => unknown;
|
|
@@ -1118,6 +1144,9 @@ declare const plugin: {
|
|
|
1118
1144
|
clientSecret: {
|
|
1119
1145
|
type: string;
|
|
1120
1146
|
};
|
|
1147
|
+
streaming: {
|
|
1148
|
+
type: string;
|
|
1149
|
+
};
|
|
1121
1150
|
displayAliases: {
|
|
1122
1151
|
type: string;
|
|
1123
1152
|
additionalProperties: {
|
|
@@ -1235,6 +1264,9 @@ declare const plugin: {
|
|
|
1235
1264
|
clientSecret: {
|
|
1236
1265
|
type: string;
|
|
1237
1266
|
};
|
|
1267
|
+
streaming: {
|
|
1268
|
+
type: string;
|
|
1269
|
+
};
|
|
1238
1270
|
displayAliases: {
|
|
1239
1271
|
type: string;
|
|
1240
1272
|
additionalProperties: {
|