@openclaw/qqbot 2026.5.2 → 2026.5.3-beta.2
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/api.js +646 -0
- package/dist/approval-cg0SVahb.js +94 -0
- package/dist/channel-N6Y_Rcjp.js +551 -0
- package/dist/channel-plugin-api.js +2 -0
- package/dist/channel.setup-ByCRAe5H.js +25 -0
- package/dist/config-D6545NkC.js +94 -0
- package/dist/config-schema-DFcjQw73.js +309 -0
- package/dist/exec-approvals-COUsM6wZ.js +138 -0
- package/dist/gateway-CmSUJKSt.js +6726 -0
- package/dist/handler-runtime-Bqm6N0WG.js +120 -0
- package/dist/index.js +29 -0
- package/dist/narrowing-BoieBTIU.js +25 -0
- package/dist/outbound-BJfhwrPg.js +1357 -0
- package/dist/request-context-DXtpwWui.js +921 -0
- package/dist/resolve-D_06fV6-.js +284 -0
- package/dist/runtime-BJAS3eXW.js +18 -0
- package/dist/runtime-api.js +2 -0
- package/dist/secret-contract-api.js +56 -0
- package/dist/sender-p-B14eLG.js +1987 -0
- package/dist/setup-entry.js +15 -0
- package/dist/setup-plugin-api.js +2 -0
- package/dist/string-normalize-Ci6NM5DE.js +98 -0
- package/dist/target-parser-Y0prnrXD.js +245 -0
- package/package.json +15 -6
- package/api.ts +0 -56
- package/channel-plugin-api.ts +0 -1
- package/index.ts +0 -29
- package/runtime-api.ts +0 -9
- package/setup-entry.ts +0 -9
- package/setup-plugin-api.ts +0 -3
- package/src/bridge/approval/capability.ts +0 -237
- package/src/bridge/approval/handler-runtime.ts +0 -204
- package/src/bridge/bootstrap.ts +0 -135
- package/src/bridge/channel-entry.ts +0 -18
- package/src/bridge/commands/framework-context-adapter.ts +0 -60
- package/src/bridge/commands/framework-registration.ts +0 -47
- package/src/bridge/commands/from-parser.test.ts +0 -86
- package/src/bridge/commands/from-parser.ts +0 -60
- package/src/bridge/commands/result-dispatcher.ts +0 -76
- package/src/bridge/config-shared.ts +0 -132
- package/src/bridge/config.ts +0 -111
- package/src/bridge/gateway.ts +0 -174
- package/src/bridge/logger.ts +0 -31
- package/src/bridge/narrowing.ts +0 -31
- package/src/bridge/plugin-version.test.ts +0 -146
- package/src/bridge/plugin-version.ts +0 -102
- package/src/bridge/runtime.ts +0 -25
- package/src/bridge/sdk-adapter.ts +0 -131
- package/src/bridge/setup/finalize.ts +0 -144
- package/src/bridge/setup/surface.ts +0 -34
- package/src/bridge/tools/channel.ts +0 -58
- package/src/bridge/tools/index.ts +0 -15
- package/src/bridge/tools/remind.test.ts +0 -124
- package/src/bridge/tools/remind.ts +0 -91
- package/src/channel.setup.ts +0 -33
- package/src/channel.ts +0 -288
- package/src/command-auth.test.ts +0 -62
- package/src/config-schema.ts +0 -84
- package/src/config.test.ts +0 -364
- package/src/engine/access/access-control.test.ts +0 -198
- package/src/engine/access/access-control.ts +0 -226
- package/src/engine/access/index.ts +0 -16
- package/src/engine/access/resolve-policy.test.ts +0 -59
- package/src/engine/access/resolve-policy.ts +0 -57
- package/src/engine/access/sender-match.test.ts +0 -60
- package/src/engine/access/sender-match.ts +0 -55
- package/src/engine/access/types.ts +0 -53
- package/src/engine/adapter/audio.port.ts +0 -27
- package/src/engine/adapter/commands.port.ts +0 -22
- package/src/engine/adapter/history.port.ts +0 -52
- package/src/engine/adapter/index.ts +0 -139
- package/src/engine/adapter/mention-gate.port.ts +0 -50
- package/src/engine/adapter/types.ts +0 -38
- package/src/engine/api/api-client.ts +0 -212
- package/src/engine/api/media-chunked.test.ts +0 -336
- package/src/engine/api/media-chunked.ts +0 -622
- package/src/engine/api/media.ts +0 -218
- package/src/engine/api/messages.ts +0 -293
- package/src/engine/api/retry.ts +0 -217
- package/src/engine/api/routes.ts +0 -95
- package/src/engine/api/token.ts +0 -271
- package/src/engine/approval/index.test.ts +0 -22
- package/src/engine/approval/index.ts +0 -224
- package/src/engine/commands/builtin/log-helpers.ts +0 -319
- package/src/engine/commands/builtin/register-all.ts +0 -17
- package/src/engine/commands/builtin/register-approve.ts +0 -201
- package/src/engine/commands/builtin/register-basic.ts +0 -95
- package/src/engine/commands/builtin/register-clear-storage.ts +0 -187
- package/src/engine/commands/builtin/register-logs.ts +0 -20
- package/src/engine/commands/builtin/register-streaming.ts +0 -137
- package/src/engine/commands/builtin/state.ts +0 -31
- package/src/engine/commands/slash-command-auth.ts +0 -48
- package/src/engine/commands/slash-command-handler.ts +0 -146
- package/src/engine/commands/slash-commands-impl.test.ts +0 -8
- package/src/engine/commands/slash-commands-impl.ts +0 -61
- package/src/engine/commands/slash-commands.ts +0 -199
- package/src/engine/config/credential-backup.test.ts +0 -88
- package/src/engine/config/credential-backup.ts +0 -107
- package/src/engine/config/credentials.ts +0 -76
- package/src/engine/config/group.test.ts +0 -234
- package/src/engine/config/group.ts +0 -299
- package/src/engine/config/resolve.test.ts +0 -152
- package/src/engine/config/resolve.ts +0 -283
- package/src/engine/config/setup-logic.ts +0 -84
- package/src/engine/engine-import-boundary.test.ts +0 -73
- package/src/engine/gateway/codec.ts +0 -47
- package/src/engine/gateway/constants.ts +0 -117
- package/src/engine/gateway/event-dispatcher.ts +0 -177
- package/src/engine/gateway/gateway-connection.ts +0 -371
- package/src/engine/gateway/gateway.ts +0 -291
- package/src/engine/gateway/inbound-attachments.test.ts +0 -126
- package/src/engine/gateway/inbound-attachments.ts +0 -360
- package/src/engine/gateway/inbound-context.ts +0 -195
- package/src/engine/gateway/inbound-pipeline.self-echo.test.ts +0 -218
- package/src/engine/gateway/inbound-pipeline.ts +0 -235
- package/src/engine/gateway/interaction-handler.ts +0 -220
- package/src/engine/gateway/message-queue.test.ts +0 -282
- package/src/engine/gateway/message-queue.ts +0 -499
- package/src/engine/gateway/outbound-dispatch.test.ts +0 -231
- package/src/engine/gateway/outbound-dispatch.ts +0 -575
- package/src/engine/gateway/reconnect.ts +0 -199
- package/src/engine/gateway/stages/access-stage.ts +0 -132
- package/src/engine/gateway/stages/assembly-stage.ts +0 -156
- package/src/engine/gateway/stages/content-stage.test.ts +0 -77
- package/src/engine/gateway/stages/content-stage.ts +0 -77
- package/src/engine/gateway/stages/envelope-stage.test.ts +0 -152
- package/src/engine/gateway/stages/envelope-stage.ts +0 -144
- package/src/engine/gateway/stages/group-gate-stage.ts +0 -292
- package/src/engine/gateway/stages/index.ts +0 -18
- package/src/engine/gateway/stages/quote-stage.ts +0 -113
- package/src/engine/gateway/stages/refidx-stage.ts +0 -62
- package/src/engine/gateway/stages/stub-contexts.ts +0 -116
- package/src/engine/gateway/types.ts +0 -264
- package/src/engine/gateway/typing-keepalive.ts +0 -79
- package/src/engine/group/activation.test.ts +0 -114
- package/src/engine/group/activation.ts +0 -147
- package/src/engine/group/history.test.ts +0 -314
- package/src/engine/group/history.ts +0 -321
- package/src/engine/group/mention.test.ts +0 -141
- package/src/engine/group/mention.ts +0 -197
- package/src/engine/group/message-gating.test.ts +0 -188
- package/src/engine/group/message-gating.ts +0 -216
- package/src/engine/messaging/decode-media-path.ts +0 -82
- package/src/engine/messaging/media-source.ts +0 -215
- package/src/engine/messaging/media-type-detect.ts +0 -37
- package/src/engine/messaging/outbound-audio-port.ts +0 -38
- package/src/engine/messaging/outbound-deliver.ts +0 -810
- package/src/engine/messaging/outbound-media-send.ts +0 -702
- package/src/engine/messaging/outbound-reply.ts +0 -27
- package/src/engine/messaging/outbound-result-helpers.ts +0 -54
- package/src/engine/messaging/outbound-types.ts +0 -45
- package/src/engine/messaging/outbound.ts +0 -485
- package/src/engine/messaging/reply-dispatcher.ts +0 -597
- package/src/engine/messaging/reply-limiter.ts +0 -164
- package/src/engine/messaging/sender.ts +0 -729
- package/src/engine/messaging/streaming-c2c.ts +0 -1192
- package/src/engine/messaging/streaming-media-send.ts +0 -544
- package/src/engine/messaging/target-parser.ts +0 -104
- package/src/engine/ref/format-message-ref.ts +0 -142
- package/src/engine/ref/format-ref-entry.test.ts +0 -60
- package/src/engine/ref/format-ref-entry.ts +0 -27
- package/src/engine/ref/store.ts +0 -208
- package/src/engine/ref/types.ts +0 -27
- package/src/engine/session/known-users.ts +0 -137
- package/src/engine/session/session-store.ts +0 -204
- package/src/engine/tools/channel-api.ts +0 -244
- package/src/engine/tools/remind-logic.test.ts +0 -280
- package/src/engine/tools/remind-logic.ts +0 -377
- package/src/engine/types.ts +0 -313
- package/src/engine/utils/attachment-tags.test.ts +0 -186
- package/src/engine/utils/attachment-tags.ts +0 -174
- package/src/engine/utils/audio.test.ts +0 -250
- package/src/engine/utils/audio.ts +0 -585
- package/src/engine/utils/data-paths.ts +0 -38
- package/src/engine/utils/diagnostics.ts +0 -109
- package/src/engine/utils/file-utils.test.ts +0 -72
- package/src/engine/utils/file-utils.ts +0 -225
- package/src/engine/utils/format.test.ts +0 -68
- package/src/engine/utils/format.ts +0 -70
- package/src/engine/utils/image-size.test.ts +0 -158
- package/src/engine/utils/image-size.ts +0 -249
- package/src/engine/utils/log.test.ts +0 -28
- package/src/engine/utils/log.ts +0 -61
- package/src/engine/utils/media-tags.test.ts +0 -32
- package/src/engine/utils/media-tags.ts +0 -177
- package/src/engine/utils/payload.test.ts +0 -68
- package/src/engine/utils/payload.ts +0 -145
- package/src/engine/utils/platform-storage-laziness.test.ts +0 -63
- package/src/engine/utils/platform.test.ts +0 -148
- package/src/engine/utils/platform.ts +0 -343
- package/src/engine/utils/request-context.ts +0 -60
- package/src/engine/utils/string-normalize.ts +0 -91
- package/src/engine/utils/stt.test.ts +0 -104
- package/src/engine/utils/stt.ts +0 -100
- package/src/engine/utils/text-parsing.test.ts +0 -29
- package/src/engine/utils/text-parsing.ts +0 -155
- package/src/engine/utils/upload-cache.ts +0 -96
- package/src/engine/utils/voice-text.ts +0 -15
- package/src/exec-approvals.ts +0 -218
- package/src/manifest-schema.test.ts +0 -56
- package/src/qqbot-test-support.ts +0 -29
- package/src/types.ts +0 -210
- package/tsconfig.json +0 -16
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it, vi, beforeEach } from "vitest";
|
|
2
|
-
import type { InboundContext } from "./inbound-context.js";
|
|
3
|
-
import { dispatchOutbound } from "./outbound-dispatch.js";
|
|
4
|
-
import type { GatewayAccount, GatewayPluginRuntime } from "./types.js";
|
|
5
|
-
|
|
6
|
-
const sendVoiceMessageMock = vi.hoisted(() =>
|
|
7
|
-
vi.fn(async () => ({ id: "voice-1", timestamp: "2026-04-25T00:00:00.000Z" })),
|
|
8
|
-
);
|
|
9
|
-
const sendMediaMock = vi.hoisted(() =>
|
|
10
|
-
vi.fn(async () => ({ id: "media-1", timestamp: "2026-04-25T00:00:00.000Z" })),
|
|
11
|
-
);
|
|
12
|
-
const sendTextMock = vi.hoisted(() =>
|
|
13
|
-
vi.fn(async () => ({ id: "text-1", timestamp: "2026-04-25T00:00:00.000Z" })),
|
|
14
|
-
);
|
|
15
|
-
const audioFileToSilkBase64Mock = vi.hoisted(() => vi.fn(async () => "silk-base64"));
|
|
16
|
-
|
|
17
|
-
vi.mock("../messaging/sender.js", () => ({
|
|
18
|
-
accountToCreds: (account: GatewayAccount) => ({
|
|
19
|
-
appId: account.appId,
|
|
20
|
-
clientSecret: account.clientSecret,
|
|
21
|
-
}),
|
|
22
|
-
buildDeliveryTarget: (target: { type: string; senderId: string; groupOpenid?: string }) => ({
|
|
23
|
-
type: target.type === "group" ? "group" : target.type === "c2c" ? "c2c" : target.type,
|
|
24
|
-
id: target.type === "group" ? target.groupOpenid : target.senderId,
|
|
25
|
-
}),
|
|
26
|
-
initApiConfig: vi.fn(),
|
|
27
|
-
sendFileMessage: vi.fn(),
|
|
28
|
-
sendImage: vi.fn(),
|
|
29
|
-
sendText: sendTextMock,
|
|
30
|
-
sendVideoMessage: vi.fn(),
|
|
31
|
-
sendVoiceMessage: sendVoiceMessageMock,
|
|
32
|
-
sendMedia: sendMediaMock,
|
|
33
|
-
withTokenRetry: async (_creds: unknown, fn: () => Promise<unknown>) => await fn(),
|
|
34
|
-
}));
|
|
35
|
-
|
|
36
|
-
vi.mock("../utils/audio.js", () => ({
|
|
37
|
-
audioFileToSilkBase64: audioFileToSilkBase64Mock,
|
|
38
|
-
}));
|
|
39
|
-
|
|
40
|
-
const account: GatewayAccount = {
|
|
41
|
-
accountId: "qq-main",
|
|
42
|
-
appId: "app",
|
|
43
|
-
clientSecret: "secret",
|
|
44
|
-
markdownSupport: false,
|
|
45
|
-
config: {},
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
function makeInbound(overrides: Partial<InboundContext> = {}): InboundContext {
|
|
49
|
-
return {
|
|
50
|
-
event: {
|
|
51
|
-
type: "c2c",
|
|
52
|
-
senderId: "user-openid",
|
|
53
|
-
messageId: "msg-1",
|
|
54
|
-
content: "voice",
|
|
55
|
-
timestamp: "2026-04-25T00:00:00.000Z",
|
|
56
|
-
},
|
|
57
|
-
route: { sessionKey: "qqbot:c2c:user-openid", accountId: "qq-main" },
|
|
58
|
-
isGroupChat: false,
|
|
59
|
-
peerId: "user-openid",
|
|
60
|
-
qualifiedTarget: "qqbot:c2c:user-openid",
|
|
61
|
-
fromAddress: "qqbot:c2c:user-openid",
|
|
62
|
-
parsedContent: "voice",
|
|
63
|
-
userContent: "voice",
|
|
64
|
-
quotePart: "",
|
|
65
|
-
dynamicCtx: "",
|
|
66
|
-
userMessage: "voice",
|
|
67
|
-
agentBody: "voice",
|
|
68
|
-
body: "voice",
|
|
69
|
-
systemPrompts: [],
|
|
70
|
-
attachments: {
|
|
71
|
-
attachmentInfo: "",
|
|
72
|
-
imageUrls: [],
|
|
73
|
-
imageMediaTypes: [],
|
|
74
|
-
voiceAttachmentPaths: [],
|
|
75
|
-
voiceAttachmentUrls: [],
|
|
76
|
-
voiceAsrReferTexts: [],
|
|
77
|
-
voiceTranscripts: [],
|
|
78
|
-
voiceTranscriptSources: [],
|
|
79
|
-
attachmentLocalPaths: [],
|
|
80
|
-
},
|
|
81
|
-
localMediaPaths: [],
|
|
82
|
-
localMediaTypes: [],
|
|
83
|
-
remoteMediaUrls: [],
|
|
84
|
-
remoteMediaTypes: [],
|
|
85
|
-
uniqueVoicePaths: [],
|
|
86
|
-
uniqueVoiceUrls: [],
|
|
87
|
-
uniqueVoiceAsrReferTexts: [],
|
|
88
|
-
voiceMediaTypes: [],
|
|
89
|
-
hasAsrReferFallback: false,
|
|
90
|
-
voiceTranscriptSources: [],
|
|
91
|
-
commandAuthorized: false,
|
|
92
|
-
blocked: false,
|
|
93
|
-
skipped: false,
|
|
94
|
-
typing: { keepAlive: null },
|
|
95
|
-
...overrides,
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function makeRuntime(params: {
|
|
100
|
-
onFinalize?: (ctx: Record<string, unknown>) => void;
|
|
101
|
-
onDeliver?: (
|
|
102
|
-
deliver: (
|
|
103
|
-
payload: { text?: string; audioAsVoice?: boolean },
|
|
104
|
-
info: { kind: string },
|
|
105
|
-
) => Promise<void>,
|
|
106
|
-
) => Promise<void>;
|
|
107
|
-
}): GatewayPluginRuntime {
|
|
108
|
-
return {
|
|
109
|
-
channel: {
|
|
110
|
-
activity: { record: vi.fn() },
|
|
111
|
-
routing: {
|
|
112
|
-
resolveAgentRoute: vi.fn(() => ({
|
|
113
|
-
sessionKey: "qqbot:c2c:user-openid",
|
|
114
|
-
accountId: "qq-main",
|
|
115
|
-
})),
|
|
116
|
-
},
|
|
117
|
-
reply: {
|
|
118
|
-
dispatchReplyWithBufferedBlockDispatcher: vi.fn(async (rawParams: unknown) => {
|
|
119
|
-
const deliver = (
|
|
120
|
-
rawParams as {
|
|
121
|
-
dispatcherOptions: {
|
|
122
|
-
deliver: (
|
|
123
|
-
payload: { text?: string; audioAsVoice?: boolean },
|
|
124
|
-
info: { kind: string },
|
|
125
|
-
) => Promise<void>;
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
).dispatcherOptions.deliver;
|
|
129
|
-
await params.onDeliver?.(deliver);
|
|
130
|
-
}),
|
|
131
|
-
finalizeInboundContext: vi.fn((rawCtx: Record<string, unknown>) => {
|
|
132
|
-
params.onFinalize?.(rawCtx);
|
|
133
|
-
return rawCtx;
|
|
134
|
-
}),
|
|
135
|
-
formatInboundEnvelope: vi.fn(() => "voice"),
|
|
136
|
-
resolveEffectiveMessagesConfig: vi.fn(() => ({})),
|
|
137
|
-
resolveEnvelopeFormatOptions: vi.fn(() => ({})),
|
|
138
|
-
},
|
|
139
|
-
session: {
|
|
140
|
-
resolveStorePath: vi.fn(() => "/tmp/openclaw/qqbot-sessions.json"),
|
|
141
|
-
recordInboundSession: vi.fn(async () => undefined),
|
|
142
|
-
},
|
|
143
|
-
turn: {
|
|
144
|
-
run: vi.fn(async (rawParams: unknown) => {
|
|
145
|
-
const params = rawParams as {
|
|
146
|
-
raw: unknown;
|
|
147
|
-
adapter: {
|
|
148
|
-
ingest: (raw: unknown) => unknown;
|
|
149
|
-
resolveTurn: (...args: unknown[]) => unknown;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
const input = await params.adapter.ingest(params.raw);
|
|
153
|
-
const turn = (await params.adapter.resolveTurn(
|
|
154
|
-
input,
|
|
155
|
-
{
|
|
156
|
-
kind: "message",
|
|
157
|
-
canStartAgentTurn: true,
|
|
158
|
-
},
|
|
159
|
-
{},
|
|
160
|
-
)) as { runDispatch: () => Promise<unknown> };
|
|
161
|
-
return { dispatchResult: await turn.runDispatch() };
|
|
162
|
-
}),
|
|
163
|
-
},
|
|
164
|
-
text: {
|
|
165
|
-
chunkMarkdownText: (text: string) => [text],
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
tts: {
|
|
169
|
-
textToSpeech: vi.fn(async () => ({
|
|
170
|
-
success: true,
|
|
171
|
-
audioPath: "/tmp/openclaw-qqbot/tts.wav",
|
|
172
|
-
provider: "test-tts",
|
|
173
|
-
outputFormat: "wav",
|
|
174
|
-
})),
|
|
175
|
-
},
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
describe("dispatchOutbound", () => {
|
|
180
|
-
beforeEach(() => {
|
|
181
|
-
vi.clearAllMocks();
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
it("marks voice-only inbound as audio without adding voice paths to MediaPaths", async () => {
|
|
185
|
-
let finalized: Record<string, unknown> | undefined;
|
|
186
|
-
const runtime = makeRuntime({ onFinalize: (ctx) => (finalized = ctx) });
|
|
187
|
-
|
|
188
|
-
await dispatchOutbound(
|
|
189
|
-
makeInbound({
|
|
190
|
-
uniqueVoicePaths: ["/tmp/qqbot/voice.wav"],
|
|
191
|
-
voiceMediaTypes: ["audio/wav"],
|
|
192
|
-
}),
|
|
193
|
-
{ runtime, cfg: {}, account },
|
|
194
|
-
);
|
|
195
|
-
|
|
196
|
-
expect(finalized).toMatchObject({
|
|
197
|
-
MediaType: "audio/wav",
|
|
198
|
-
MediaTypes: ["audio/wav"],
|
|
199
|
-
QQVoiceAttachmentPaths: ["/tmp/qqbot/voice.wav"],
|
|
200
|
-
});
|
|
201
|
-
expect(finalized).not.toHaveProperty("MediaPath");
|
|
202
|
-
expect(finalized).not.toHaveProperty("MediaPaths");
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
it("synthesizes plain audioAsVoice text as a QQ voice reply", async () => {
|
|
206
|
-
const runtime = makeRuntime({
|
|
207
|
-
onDeliver: async (deliver) => {
|
|
208
|
-
await deliver({ text: "read this aloud", audioAsVoice: true }, { kind: "block" });
|
|
209
|
-
},
|
|
210
|
-
});
|
|
211
|
-
|
|
212
|
-
await dispatchOutbound(makeInbound(), { runtime, cfg: {}, account });
|
|
213
|
-
|
|
214
|
-
expect(runtime.tts.textToSpeech).toHaveBeenCalledWith({
|
|
215
|
-
text: "read this aloud",
|
|
216
|
-
cfg: {},
|
|
217
|
-
channel: "qqbot",
|
|
218
|
-
accountId: "qq-main",
|
|
219
|
-
});
|
|
220
|
-
expect(audioFileToSilkBase64Mock).toHaveBeenCalledWith("/tmp/openclaw-qqbot/tts.wav");
|
|
221
|
-
expect(sendMediaMock).toHaveBeenCalledWith(
|
|
222
|
-
expect.objectContaining({
|
|
223
|
-
kind: "voice",
|
|
224
|
-
source: { base64: "silk-base64" },
|
|
225
|
-
msgId: "msg-1",
|
|
226
|
-
ttsText: "read this aloud",
|
|
227
|
-
}),
|
|
228
|
-
);
|
|
229
|
-
expect(sendTextMock).not.toHaveBeenCalled();
|
|
230
|
-
});
|
|
231
|
-
});
|