dsh-fish-soul 0.18.20 → 0.18.22
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/README.md +1 -1
- package/lib/channels/vendor/douyin-bridge/browser.mjs +26 -13
- package/lib/channels/vendor/qq-bridge.js +34 -0
- package/lib/db.js +8 -4
- package/lib/douyin-social.js +9 -2
- package/lib/gateway-media.js +15 -6
- package/lib/gateway-util.js +36 -0
- package/lib/gateway.js +52 -12
- package/lib/index.js +8 -20
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -120,6 +120,9 @@ export function eventCursorOf(browser) {
|
|
|
120
120
|
* ⇒ 按**真实时间**等,不看轮次。
|
|
121
121
|
*/
|
|
122
122
|
const CDP_WAIT_MS = Number(process.env.FISH_SOUL_CDP_WAIT_MS ?? 0) || 30_000
|
|
123
|
+
// 等 CDP 端口的上限:默认取进程启动时的环境变量(CI 注入 90000)。
|
|
124
|
+
// 函数形式让测试能在运行时调小,不用真等 30 秒(CI 在启动时注入,行为不变)。
|
|
125
|
+
const cdpWaitMs = () => Number(process.env.FISH_SOUL_CDP_WAIT_MS ?? 0) || CDP_WAIT_MS
|
|
123
126
|
|
|
124
127
|
/**
|
|
125
128
|
* 端口 → Browser 实例(**一个端口只允许一个实例**)。
|
|
@@ -332,31 +335,41 @@ export class Browser {
|
|
|
332
335
|
})()
|
|
333
336
|
})
|
|
334
337
|
|
|
335
|
-
// 等 CDP 端口起来(按真实时间等,不是按轮次 —— 见 CDP_WAIT_MS
|
|
338
|
+
// 等 CDP 端口起来(按真实时间等,不是按轮次 —— 见 CDP_WAIT_MS 的说明)。
|
|
339
|
+
//
|
|
340
|
+
// 🔴 顺序很关键:**先探端口,再看进程退没退。**
|
|
341
|
+
//
|
|
342
|
+
// Edge 158 把「拉起真正的浏览器」交给常驻的 watchdog 进程,我们 spawn 的
|
|
343
|
+
// 启动进程会在 ~110ms 就以 code=0 退出,而真正的 CDP 端口要 ~800ms 才应答。
|
|
344
|
+
// 旧代码一进循环就看 `exited`,端口还没起来就抛「profile 被占」——
|
|
345
|
+
// 永远等不到端口就绪那一刻(那个提示也是错的:profile 根本没被占)。
|
|
346
|
+
//
|
|
347
|
+
// 正确做法:只要端口应答了就算成功(无论我们的进程退没退,退了就接管
|
|
348
|
+
// watchdog 拉起来的那个实例);进程退了但端口迟迟不来,等到上限才认输。
|
|
336
349
|
let ver = null
|
|
337
|
-
const deadline = Date.now() +
|
|
350
|
+
const deadline = Date.now() + cdpWaitMs()
|
|
338
351
|
while (Date.now() < deadline) {
|
|
352
|
+
// 进程已退:端口应答 = watchdog 把真浏览器拉起来了 ⇒ 接管它,别重启。
|
|
339
353
|
if (exited) {
|
|
340
|
-
// 我们的进程退了,但端口可能被别人占着(老实例还活着)⇒ 接管它
|
|
341
354
|
ver = await this.probePort()
|
|
342
355
|
if (ver) {
|
|
343
356
|
this.log('启动进程已退出,但 CDP 端口可用 —— 接管已有实例')
|
|
344
357
|
this.attached = true
|
|
345
358
|
break
|
|
346
359
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
360
|
+
} else {
|
|
361
|
+
try {
|
|
362
|
+
const r = await fetch(`${this.base}/json/version`, { signal: AbortSignal.timeout(2000) })
|
|
363
|
+
if (r.ok) { ver = await r.json(); break }
|
|
364
|
+
} catch { /* 还没起来 */ }
|
|
352
365
|
}
|
|
353
|
-
try {
|
|
354
|
-
const r = await fetch(`${this.base}/json/version`, { signal: AbortSignal.timeout(2000) })
|
|
355
|
-
if (r.ok) { ver = await r.json(); break }
|
|
356
|
-
} catch { /* 还没起来 */ }
|
|
357
366
|
await sleep(250)
|
|
358
367
|
}
|
|
359
|
-
if (!ver)
|
|
368
|
+
if (!ver) {
|
|
369
|
+
throw new Error(exited
|
|
370
|
+
? `浏览器启动进程已退出,但 CDP 端口 ${this.port} 在 ${Math.round(cdpWaitMs() / 1000)} 秒内都没响应(profile 被占 / 端口冲突?换个 userDataDir 或 browserPort 再试)`
|
|
371
|
+
: `浏览器起来了但 CDP 端口 ${this.port} 没响应(端口被占用?)`)
|
|
372
|
+
}
|
|
360
373
|
this.log(`浏览器就绪:${ver.Browser}`)
|
|
361
374
|
|
|
362
375
|
await this.#attach(ver.webSocketDebuggerUrl)
|
|
@@ -165,6 +165,40 @@ export function 提取图块(message) {
|
|
|
165
165
|
return message.content.filter((b) => b && b.type === 'image' && b.attachment).slice(0, 10)
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
/**
|
|
169
|
+
* ⭐ 2026-11-21:模型有时会自己造格式——`[表情:比耶开心]` 这种纯文字标记,
|
|
170
|
+
* 代码里没有出站处理路径,会被当成普通文字发到 QQ 上,对方看到一串方括号。
|
|
171
|
+
* 这里兜底:把 `[表情:xx]` 换成 `` 发真图;
|
|
172
|
+
* 库里没有这个名字就剥掉,不把文字发出去。
|
|
173
|
+
*
|
|
174
|
+
* 只认精确匹配(文件名主体 = xx),不做模糊匹配——模糊匹配容易误伤,
|
|
175
|
+
* 比如 `[表情:OK]` 匹配到 `兔子OK.gif` 不是模型想要的。
|
|
176
|
+
*
|
|
177
|
+
* @param {string} 文字 模型回复的文本
|
|
178
|
+
* @param {string[]} stickerFiles _stickers/ 目录下的文件名列表(如 ['兔子OK.gif', '鲸鱼撒娇.gif'])
|
|
179
|
+
* @returns {string} 替换后的文本
|
|
180
|
+
*/
|
|
181
|
+
export function 兜底表情包(文字, stickerFiles) {
|
|
182
|
+
const 文本 = String(文字 || '');
|
|
183
|
+
if (!文本.includes('[表情:')) return 文本;
|
|
184
|
+
const 文件们 = Array.isArray(stickerFiles) ? stickerFiles : [];
|
|
185
|
+
// 建映射:文件名主体 → 完整文件名(取第一个匹配的)
|
|
186
|
+
const 映射 = new Map();
|
|
187
|
+
for (const f of 文件们) {
|
|
188
|
+
const 名 = String(f || '').trim();
|
|
189
|
+
if (!名) continue;
|
|
190
|
+
const 点 = 名.lastIndexOf('.');
|
|
191
|
+
if (点 <= 0) continue;
|
|
192
|
+
const 主体 = 名.slice(0, 点);
|
|
193
|
+
if (!映射.has(主体)) 映射.set(主体, 名);
|
|
194
|
+
}
|
|
195
|
+
return 文本.replace(/\[表情:([^\]]*)\]/g, (全, 名) => {
|
|
196
|
+
const 文件名 = 映射.get(String(名 || '').trim());
|
|
197
|
+
if (文件名) return ``;
|
|
198
|
+
return ''; // 库里没有就剥掉,别把文字发出去
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
|
|
168
202
|
/**
|
|
169
203
|
* ⭐ 2026-10-22:正文里那种 markdown 图片 `` 也当图片发。
|
|
170
204
|
* 伙伴发贴纸就是这么发的(``)——
|
package/lib/db.js
CHANGED
|
@@ -10,14 +10,18 @@
|
|
|
10
10
|
import { DatabaseSync } from 'node:sqlite';
|
|
11
11
|
import { mkdirSync } from 'node:fs';
|
|
12
12
|
import { homedir } from 'node:os';
|
|
13
|
-
import { join, resolve } from 'node:path';
|
|
13
|
+
import { basename, dirname, join, resolve } from 'node:path';
|
|
14
14
|
|
|
15
15
|
/** $DSH_HOME:环境变量缺省回退 ~/.dsh(与宿主其他插件一致)。 */
|
|
16
16
|
export function dshHome() {
|
|
17
17
|
const configured = process.env['DSH_HOME'];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
if (configured === undefined || configured.trim() === '') return join(homedir(), '.dsh');
|
|
19
|
+
const resolved = resolve(configured);
|
|
20
|
+
// 2026-11-21 事故回归锁:DSH_HOME 指到 fish-soul 子目录时,fishSoulDir() 会再拼一层
|
|
21
|
+
// fish-soul ⇒ 凭空新建 fish-soul/fish-soul/soul.db 空库(真库 81 人 vs 空库 0 行),
|
|
22
|
+
// 症状是「认不出任何人」且无任何报错,排查花了 4 轮。这里往上归一层:
|
|
23
|
+
// 错配置直接产出正确路径 —— 嵌套空库这个 bug 形态就写不出来了。
|
|
24
|
+
return basename(resolved) === 'fish-soul' ? dirname(resolved) : resolved;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
export function fishSoulDir() {
|
package/lib/douyin-social.js
CHANGED
|
@@ -17,7 +17,7 @@ import { extname, join, resolve } from 'node:path';
|
|
|
17
17
|
import { createHash } from 'node:crypto';
|
|
18
18
|
import { SocialBase, socialCfg, cleanSocialText } from './social.js';
|
|
19
19
|
import { DouyinPostJobs } from './douyin-post-jobs.js';
|
|
20
|
-
import {
|
|
20
|
+
import { 抠正文图, 兜底表情包 } from './channels/vendor/qq-bridge.js';
|
|
21
21
|
import { fishSoulDir, getKv, setKv } from './db.js';
|
|
22
22
|
import { isInside } from './gateway-util.js';
|
|
23
23
|
import { generateVideo, pruneVideos, videoGenConfig } from './video-gen.js';
|
|
@@ -56,7 +56,12 @@ const SEL = {
|
|
|
56
56
|
export const PAGE_TIMING = {
|
|
57
57
|
evalTimeoutMs: 12_000, // 单次 eval 的上限
|
|
58
58
|
waitBudgetMs: 60_000, // waitFor 的总预算
|
|
59
|
-
|
|
59
|
+
// 🔴 下限不是拍脑袋:单次导航上限(browser.mjs 内写死 15000)
|
|
60
|
+
// + 导航后等待(最多 2500)+ settle 尾段(最多 5500)= 23000。
|
|
61
|
+
// 给 15000 ⇒ 慢网(导航 >6.5s)时页面明明跳成功了,settle 却挤不进预算、
|
|
62
|
+
// 被误判成「导航超时:settle 没睡完」(2026-11-22 看评论真机报错)。
|
|
63
|
+
gotoTimeoutMs: 24_000, // 单次导航的上限(含 settle,见上面推导)
|
|
64
|
+
|
|
60
65
|
openWorkBudgetMs: 30_000, // openWork 整操作的总预算
|
|
61
66
|
replyBudgetMs: 30_000, // reply 整操作的总预算
|
|
62
67
|
// 转码单独给预算:视频传上去后要等抖音转码,实测 180 秒都还没转完。
|
|
@@ -1562,6 +1567,8 @@ export class DouyinSocial extends SocialBase {
|
|
|
1562
1567
|
out.text = r.text;
|
|
1563
1568
|
} catch { /* 没配嵌入模型 / 算失败:原样走,@ 那段发不出去就当没写 */ }
|
|
1564
1569
|
}
|
|
1570
|
+
// 兜底:模型自己造的 [表情:名字] 格式 —— 库里有的换成真图发,没有的剥掉
|
|
1571
|
+
out.text = 兜底表情包(out.text, (this.stickers?.list(this.workspacePath()) ?? []).map((x) => x.file));
|
|
1565
1572
|
const picked = 抠正文图(out.text);
|
|
1566
1573
|
out.text = picked.净文字;
|
|
1567
1574
|
const ws = String(this.workspacePath() ?? '').trim();
|
package/lib/gateway-media.js
CHANGED
|
@@ -321,23 +321,27 @@ export const mediaMethods = {
|
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
323
|
|
|
324
|
-
async admitImages(text, items, sessionId = '', { backlog } = {}) {
|
|
324
|
+
async admitImages(text, items, sessionId = '', { backlog, quotedImages } = {}) {
|
|
325
325
|
const imgs = [];
|
|
326
326
|
for (const { m } of items) for (const img of m.images) if (imgs.length < MAX_INBOUND_IMAGES) imgs.push({ img, m });
|
|
327
327
|
// #151:backlog 里的图接在本轮图后面,合计不超过 4 张。文字行由 index.js 渲染(这里只补图,避免重复)。
|
|
328
328
|
const backlogImgs = (backlog?.images ?? []).slice(0, Math.max(0, MAX_INBOUND_IMAGES - imgs.length));
|
|
329
329
|
const base = [{ type: 'text', text }];
|
|
330
330
|
for (const x of backlogImgs) imgs.push(x);
|
|
331
|
-
|
|
331
|
+
// 被引用的那条消息里的图:也进模型(单独一档,前面加一句说明,模型才知道哪张是被引用的那张)。
|
|
332
|
+
const quoted = (quotedImages ?? []).slice(0, Math.max(0, MAX_INBOUND_IMAGES - imgs.length));
|
|
333
|
+
if (imgs.length === 0 && quoted.length === 0) return base;
|
|
332
334
|
const attachments = service(this.ctx, 'attachments');
|
|
333
335
|
if (!attachments || typeof attachments.admitPromptContent !== 'function') {
|
|
334
336
|
// 宿主没提供 attachments:图片只能丢,但得留痕 —— 否则表现是「她说看不见图」而日志空白
|
|
335
|
-
this.log('warn', `[fish-soul] 宿主没有 attachments 服务,这 ${imgs.length} 张图送不进去(只转文字)`);
|
|
336
|
-
this.diag?.add('image-skip', { reason: 'no-service', count: imgs.length }, 'warn');
|
|
337
|
+
this.log('warn', `[fish-soul] 宿主没有 attachments 服务,这 ${imgs.length + quoted.length} 张图送不进去(只转文字)`);
|
|
338
|
+
this.diag?.add('image-skip', { reason: 'no-service', count: imgs.length + quoted.length }, 'warn');
|
|
337
339
|
return base;
|
|
338
340
|
}
|
|
339
341
|
const parts = [...base];
|
|
340
|
-
|
|
342
|
+
const quotedParts = [];
|
|
343
|
+
for (const [i, entry] of [...imgs, ...quoted].entries()) {
|
|
344
|
+
const { img, m } = entry;
|
|
341
345
|
// #151/#147:注入只换「下载」这半截,分类/限额仍由 fetchInboundImage 的契约管。
|
|
342
346
|
// imageDownload(img) 收图对象、返回 {ok, bytes?, reason?}(fetchInboundImage 形状)。
|
|
343
347
|
const dl = this.imageDownload ?? ((i) => fetchInboundImage(i));
|
|
@@ -357,7 +361,12 @@ export const mediaMethods = {
|
|
|
357
361
|
const bytes = r.bytes;
|
|
358
362
|
const mediaType = mediaTypeOf(bytes);
|
|
359
363
|
this.stickers?.remember(sessionId, { bytes, mediaType, sticker: img.sticker === true, summary: img.summary, from: m.nickname || m.userId });
|
|
360
|
-
|
|
364
|
+
const part = { type: 'image', data: bytes.toString('base64'), mediaType, name: `qq-${entry.quoteId || m.messageId || 'x'}-${i + 1}.${mediaType.split('/')[1]}` };
|
|
365
|
+
if (entry.quoted === true) quotedParts.push(part); else parts.push(part);
|
|
366
|
+
}
|
|
367
|
+
if (quotedParts.length > 0) {
|
|
368
|
+
parts.push({ type: 'text', text: '【下面这些是被引用的那条消息里的图】' });
|
|
369
|
+
parts.push(...quotedParts);
|
|
361
370
|
}
|
|
362
371
|
if (parts.length === 1) return base;
|
|
363
372
|
try {
|
package/lib/gateway-util.js
CHANGED
|
@@ -183,6 +183,42 @@ export function splitChannelId(channelId) {
|
|
|
183
183
|
return i < 0 ? [s, ''] : [s.slice(0, i), s.slice(i + 1)];
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
+
/**
|
|
187
|
+
* 会话 → 发起人的平台 uid(`qq:123` / `bili:456` / `douyin:789`);认不出返回空串。
|
|
188
|
+
*
|
|
189
|
+
* 2026-11-19 的真实事故:这个函数曾经签名是 `relaySenderId(db, session)`,但调用点只传了一个参数
|
|
190
|
+
* ⇒ db 顶掉 session 位 ⇒ 恒返回空串 ⇒ 白名单里任何人传话都回「认不出你是谁」。
|
|
191
|
+
* 抽成纯函数 + 依赖注入后,参数错位在类型层面就写不出来(只有一个参数,且必须传 session)。
|
|
192
|
+
*
|
|
193
|
+
* @param {object|undefined} session 会话对象(要有 channelId)
|
|
194
|
+
* @param {object} deps 依赖注入
|
|
195
|
+
* @param {(db:any, qq:string) => object|undefined} [deps.findPersonByQq]
|
|
196
|
+
* @param {(db:any, uid:string) => object|undefined} [deps.findPersonByBili]
|
|
197
|
+
* @param {any} [deps.db] 传给上面两个查询函数的库句柄
|
|
198
|
+
* @param {(channelId:string) => string} [deps.douyinIdentityOfChannel] 抖音那支要的游标反查
|
|
199
|
+
* @returns {string}
|
|
200
|
+
*/
|
|
201
|
+
export function relaySenderIdOf(session, deps = {}) {
|
|
202
|
+
const channelId = String(session?.channelId ?? '');
|
|
203
|
+
if (channelId === '') return '';
|
|
204
|
+
const [kind, id] = splitChannelId(channelId);
|
|
205
|
+
if (kind === 'private') {
|
|
206
|
+
const person = deps.findPersonByQq?.(deps.db, id);
|
|
207
|
+
return person?.qq_uin ? `qq:${person.qq_uin}` : '';
|
|
208
|
+
}
|
|
209
|
+
if (kind === 'bili') {
|
|
210
|
+
const person = deps.findPersonByBili?.(deps.db, id);
|
|
211
|
+
return person?.bili_uid ? `bili:${person.bili_uid}` : '';
|
|
212
|
+
}
|
|
213
|
+
if (kind === 'douyin') {
|
|
214
|
+
// 抖音的 channel_id 是昵称(`douyin:<昵称>`),**不是身份** —— 昵称能改、能撞名。
|
|
215
|
+
// 真实身份要从游标反查(`douyin.conv.<sha1(昵称)>` 里的 identity)。
|
|
216
|
+
const identity = String(deps.douyinIdentityOfChannel?.(channelId) ?? '').trim();
|
|
217
|
+
return /^douyin:\d+$/.test(identity) ? identity : '';
|
|
218
|
+
}
|
|
219
|
+
return '';
|
|
220
|
+
}
|
|
221
|
+
|
|
186
222
|
/** 内部 channel 名(memory.channel / 会话上下文用)。 */
|
|
187
223
|
export function sessionChannelOf(channelId) {
|
|
188
224
|
const [kind] = splitChannelId(channelId);
|
package/lib/gateway.js
CHANGED
|
@@ -45,7 +45,7 @@ import { safeDownload } from './safe-download.js';
|
|
|
45
45
|
import { behaviorMethods } from './gateway-behavior.js';
|
|
46
46
|
import { adapterOf, DouyinAdapter } from './douyin-adapter.js';
|
|
47
47
|
import { findRepeatedParagraphs, normSentText } from './behavior.js';
|
|
48
|
-
import { 该收这条, 提取正文, 提取图块, 拆成消息段,
|
|
48
|
+
import { 该收这条, 提取正文, 提取图块, 拆成消息段, 抠正文图, 兜底表情包 } from './channels/vendor/qq-bridge.js';
|
|
49
49
|
|
|
50
50
|
export { typingDelayMs, interjectScore, interjectConfig, platformOf, splitChannelId, sessionChannelOf, clampReplyWindow };
|
|
51
51
|
export const SOURCE_QQ = 'fish-soul/qq';
|
|
@@ -54,6 +54,13 @@ export const SOURCE_BILI = 'fish-soul/bili';
|
|
|
54
54
|
export const SOURCE_DOUYIN = 'fish-soul/douyin';
|
|
55
55
|
const OUR_SOURCES = new Set([SOURCE_QQ, SOURCE_PROACTIVE, SOURCE_BILI, SOURCE_DOUYIN]);
|
|
56
56
|
|
|
57
|
+
// 给秒级时间戳留 2 秒容差;缺任一边就宁可不取图。
|
|
58
|
+
function sameSelfMessageTime(storedAt, messageTime) {
|
|
59
|
+
const at = Number(storedAt);
|
|
60
|
+
const time = Number(messageTime);
|
|
61
|
+
return Number.isFinite(at) && at > 0 && Number.isFinite(time) && time > 0 && Math.abs(at - time * 1000) <= 2_000;
|
|
62
|
+
}
|
|
63
|
+
|
|
57
64
|
/**
|
|
58
65
|
* 这一轮的结束原因是不是「上下文超限 / 400」。
|
|
59
66
|
*
|
|
@@ -1568,17 +1575,46 @@ export class ChatGateway {
|
|
|
1568
1575
|
return '';
|
|
1569
1576
|
}
|
|
1570
1577
|
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1578
|
+
/**
|
|
1579
|
+
* 被引用的那条消息:给模型看的一行 + 那条消息里的图。
|
|
1580
|
+
*
|
|
1581
|
+
* 图为什么要单独拿:QQ 的引用消息事件里只有一个 `reply` 段(一个消息号),
|
|
1582
|
+
* 原文得问 OneBot(get_msg)才拿得到。以前只把原文的文字取出来 ——
|
|
1583
|
+
* 被引用的那条是张图时,她只看到「【引用 阿四:【图片】】」,
|
|
1584
|
+
* 图本身没进模型 ⇒ 群里引用一张图问「这啥」她只能瞎猜。
|
|
1585
|
+
*
|
|
1586
|
+
* @returns {{line: string, images: Array<object>}} line 空 = 这条消息没引用谁
|
|
1587
|
+
*/
|
|
1588
|
+
async quoteOf(replyId, channelId = '') {
|
|
1589
|
+
const id = String(replyId ?? '');
|
|
1590
|
+
const ch = String(channelId ?? '');
|
|
1591
|
+
if (id === '') return { line: '', images: [] };
|
|
1592
|
+
const own = this.ownMessageText(id, ch);
|
|
1593
|
+
// 库记录只补时间,避免旧版单存的文字把「本地记录」误判成跨天同一条。
|
|
1594
|
+
let ownAt = 0;
|
|
1595
|
+
if (own !== '' && ch !== '') {
|
|
1596
|
+
try { ownAt = Number(this.db.prepare('SELECT at FROM own_message WHERE channel_id = ? AND message_id = ?').get(ch, id)?.at ?? 0); } catch { /* 查库失败时宁可不取图 */ }
|
|
1597
|
+
}
|
|
1598
|
+
let msg = null;
|
|
1599
|
+
try { msg = await this.channel.getMessage?.(id); } catch { msg = null; }
|
|
1600
|
+
const n = msg ? normalizeMessageEvent({ post_type: 'message', message_type: msg.message_type ?? 'group', ...msg }, { selfId: this.channel.selfId }) : null;
|
|
1601
|
+
const images = (n?.images ?? []).slice(0, 2);
|
|
1602
|
+
if (own !== '') {
|
|
1603
|
+
// 文字用本地记录。图还要核对发送时间,不能只凭 selfId 判断:同号隔天也可能复用。
|
|
1604
|
+
const senderId = String(msg?.sender?.user_id ?? '');
|
|
1605
|
+
const isSame = senderId !== '' && senderId === String(this.channel.selfId ?? '') && sameSelfMessageTime(ownAt, msg?.time);
|
|
1606
|
+
return { line: `【引用 我自己:${own.slice(0, 40)}】`, images: isSame ? images : [] };
|
|
1607
|
+
}
|
|
1576
1608
|
// 取不到原文就说取不到,别让模型以为引用了句空话然后瞎接
|
|
1577
|
-
if (!msg) return '【引用了一条消息(原文没取到)】';
|
|
1578
|
-
const n = normalizeMessageEvent({ post_type: 'message', message_type: msg.message_type ?? 'group', ...msg }, { selfId: this.channel.selfId });
|
|
1609
|
+
if (!msg) return { line: '【引用了一条消息(原文没取到)】', images: [] };
|
|
1579
1610
|
const who = sanitizeName(n?.nickname || msg.sender?.nickname || '', '某人');
|
|
1580
1611
|
const text = (n?.text ?? '').trim();
|
|
1581
|
-
|
|
1612
|
+
const line = text === '' ? `【引用 ${who}:(不是文字消息)】` : `【引用 ${who}:${text.slice(0, 40)}】`;
|
|
1613
|
+
return { line, images };
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
async quoteLine(replyId, channelId = '') {
|
|
1617
|
+
return (await this.quoteOf(replyId, channelId)).line;
|
|
1582
1618
|
}
|
|
1583
1619
|
|
|
1584
1620
|
rememberRetryableTurn(id, entry) {
|
|
@@ -1697,12 +1733,14 @@ export class ChatGateway {
|
|
|
1697
1733
|
const route = adapterOf(this).routeOf(items, platform);
|
|
1698
1734
|
|
|
1699
1735
|
const lines = [];
|
|
1736
|
+
const quotedImages = [];
|
|
1700
1737
|
for (const { m } of items) {
|
|
1701
|
-
const quote = platform === 'qq' ? await this.
|
|
1702
|
-
const body = `${quote}${m.text || '(空消息)'}`;
|
|
1738
|
+
const quote = platform === 'qq' ? await this.quoteOf(m.replyId, channelId) : { line: '', images: [] };
|
|
1739
|
+
const body = `${quote.line}${m.text || '(空消息)'}`;
|
|
1703
1740
|
// 群里一行一个人:对方自己打的换行压成 ⏎,免得有人换行伪造「主人:……」(【】是插件生成的块,比如合并转发,对方打不出来,原样留着)
|
|
1704
1741
|
const flat = body.split(/(【[^】]*】)/).map((part, i) => (i % 2 === 1 ? part : part.replace(/\s*\n\s*/g, ' ⏎ '))).join('');
|
|
1705
1742
|
lines.push(chat.chatType === 'group' ? `${sanitizeName(m.nickname || m.userId, m.userId)}${masterTagOf(m.userId, this.masterQqSafe())}:${flat}` : body);
|
|
1743
|
+
for (const img of quote.images) quotedImages.push({ img, m, quoteId: String(m.replyId ?? ''), quoted: true });
|
|
1706
1744
|
}
|
|
1707
1745
|
// 多人群消息合批时不提供任何路径:不让模型把别人的录音当作当前说话人。
|
|
1708
1746
|
const sameSpeaker = speakers.length === 1 && speakers[0].person?.canonical_id && items.every(({ m, person }) => m.userId === speakers[0].userId && person?.canonical_id === speakers[0].person.canonical_id);
|
|
@@ -1710,7 +1748,7 @@ export class ChatGateway {
|
|
|
1710
1748
|
? items.flatMap(({ m }) => m.voicePaths ?? []) : [];
|
|
1711
1749
|
if (voicePaths.length) lines.push(`【本轮语音文件】可以用 sound_read 分析,路径为内部信息,不要在对外回复中输出:\n${voicePaths.join('\n')}`);
|
|
1712
1750
|
lines.push(...await this.videoNotes(items));
|
|
1713
|
-
const content = await this.admitImages(lines.join('\n'), items, agent.id, { backlog });
|
|
1751
|
+
const content = await this.admitImages(lines.join('\n'), items, agent.id, { backlog, quotedImages });
|
|
1714
1752
|
const last = items[items.length - 1].m;
|
|
1715
1753
|
const mentionItem = [...items].reverse().find(({ m }) => m.mentioned)?.m ?? last;
|
|
1716
1754
|
// 插话不引用(像自然接话);戳一戳没有真的消息可引用。replyTo 跟着这条 followup 消息的 source 走,不存共享 Map——并发 dispatch 各带各的,不会张冠李戴
|
|
@@ -2329,6 +2367,8 @@ export class ChatGateway {
|
|
|
2329
2367
|
this.log('warn', `[fish-soul] 按感觉挑表情失败:${String(error instanceof Error ? error.message : error)}`);
|
|
2330
2368
|
}
|
|
2331
2369
|
}
|
|
2370
|
+
// 兜底:模型自己造的 [表情:名字] 格式 —— 库里有的换成真图发,没有的剥掉,别把方括号发出去
|
|
2371
|
+
feelText = 兜底表情包(feelText, this.listStickers(row.workspace_path));
|
|
2332
2372
|
const picked = 抠正文图(feelText);
|
|
2333
2373
|
const 图 = this.moodPick(profile, picked.图, row);
|
|
2334
2374
|
const 净文字 = this.cleanOut(picked.净文字, row);
|
package/lib/index.js
CHANGED
|
@@ -49,7 +49,7 @@ import { loadSharp, sharpReady } from './imageconv.js';
|
|
|
49
49
|
import {
|
|
50
50
|
ChatGateway, SOURCE_QQ, SOURCE_PROACTIVE, SOURCE_BILI, SOURCE_DOUYIN, CHAT_TOOLS, RELAY_TOOL, RELAY_FRIEND_TOOL, DOUYIN_VIDEO_TOOL, WEB_TOOLS, OWN_WEB_TOOL, isOpenMotionTool, splitChannelId, sessionChannelOf
|
|
51
51
|
} from './gateway.js';
|
|
52
|
-
import { platformLabelOf, platformOf, parseRelayTarget, sourceLabelOf } from './gateway-util.js';
|
|
52
|
+
import { platformLabelOf, platformOf, parseRelayTarget, relaySenderIdOf, sourceLabelOf } from './gateway-util.js';
|
|
53
53
|
import { douyinVideoIdsOf } from './douyin-adapter.js';
|
|
54
54
|
import { VirtualClock } from './clock.js';
|
|
55
55
|
import { EmbeddingClient, VectorWorker, recall, recallSync, vectorRanks } from './retrieval.js';
|
|
@@ -609,25 +609,13 @@ async function startup(ctx, config, { log, gate }) {
|
|
|
609
609
|
* 对方 uid = 当前在跟她说话的那个人。
|
|
610
610
|
*/
|
|
611
611
|
function relaySenderId(session) {
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
}
|
|
619
|
-
if (kind === 'bili') {
|
|
620
|
-
const person = findPersonByBili(db, id);
|
|
621
|
-
return person?.bili_uid ? `bili:${person.bili_uid}` : '';
|
|
622
|
-
}
|
|
623
|
-
if (kind === 'douyin') {
|
|
624
|
-
// 抖音的 channel_id 是昵称(`douyin:<昵称>`),**不是身份** —— 昵称能改、能撞名。
|
|
625
|
-
// 真实身份要从游标反查(`douyin.conv.<sha1(昵称)>` 里的 identity,那是用会话 ID 推出来的)。
|
|
626
|
-
// 复用网关已有的实现,别在这里再写一份(PR #96 的冒充洞就是按昵称认人)。
|
|
627
|
-
const identity = String(gateway?.douyinIdentityOfChannel?.(channelId) ?? '').trim();
|
|
628
|
-
return /^douyin:\d+$/.test(identity) ? identity : '';
|
|
629
|
-
}
|
|
630
|
-
return '';
|
|
612
|
+
// 逻辑在 gateway-util.js 的纯函数里(依赖注入,参数错位写不出来)。
|
|
613
|
+
return relaySenderIdOf(session, {
|
|
614
|
+
db,
|
|
615
|
+
findPersonByQq,
|
|
616
|
+
findPersonByBili,
|
|
617
|
+
douyinIdentityOfChannel: (channelId) => gateway?.douyinIdentityOfChannel?.(channelId)
|
|
618
|
+
});
|
|
631
619
|
}
|
|
632
620
|
|
|
633
621
|
function sessionForTool(toolCtx, speakerName) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-fish-soul",
|
|
3
|
-
"version": "0.18.
|
|
4
|
-
"description": "鱼 · 人格、按人记忆(可纠正、有印象、能导入旧聊天记录)、日程自走与主动开口,直连 SnowLuma 收发 QQ(群里会自己插话),B站 / 抖音小号私信与自己刷视频;按功能选模型并统计用量花费,能听会说 QQ 语音、收藏表情包、学群里的梗,可选上网查;心情影响说话、去 AI 味、每个群的设定、按聊天选模型、每晚写日记、每周记忆存档与可选周记(DSH 插件,单角色 feiyu ,v0.18.
|
|
3
|
+
"version": "0.18.22",
|
|
4
|
+
"description": "鱼 · 人格、按人记忆(可纠正、有印象、能导入旧聊天记录)、日程自走与主动开口,直连 SnowLuma 收发 QQ(群里会自己插话),B站 / 抖音小号私信与自己刷视频;按功能选模型并统计用量花费,能听会说 QQ 语音、收藏表情包、学群里的梗,可选上网查;心情影响说话、去 AI 味、每个群的设定、按聊天选模型、每晚写日记、每周记忆存档与可选周记(DSH 插件,单角色 feiyu ,v0.18.22)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"files": [
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
|
-
"test": "node test/douyin-send.mjs && node test/douyin-mechanism.mjs && node test/douyin-route.mjs && node test/douyin-adapter.mjs && node test/douyin-contract.mjs && node test/memory-bulk-move.mjs && node test/safe-download.mjs && node test/douyin-exact-id.mjs && node test/douyin-pb-init.mjs && node test/douyin-conversation.mjs && node test/douyin-inbox.mjs && node test/douyin-quarantine.mjs && node test/douyin-send-target.mjs && node test/douyin-send-exclusive.mjs && node test/douyin-gap-dedupe.mjs && node test/douyin-message-id-dedupe.mjs && node test/douyin-share-card-dedupe.mjs && node test/douyin-share-card-dom.mjs && node test/douyin-inline-share.mjs && node test/douyin-short-link.mjs && node test/douyin-inline-ledger.mjs && node test/douyin-group-chat.mjs && node test/douyin-group-read.mjs && node test/douyin-group-reply.mjs && node test/session-overflow-recycle.mjs && node test/douyin-read-fail-retry.mjs && node test/douyin-read-cache.mjs && node test/douyin-dm-media-conv.mjs && node test/douyin-read-fail-retry-poll.mjs && node test/douyin-inbox-contract.mjs && node test/person-attribution.mjs && node test/memory-owner-reassign.mjs && node test/douyin-poll-and-timer-safety.mjs && node test/p2-limits.mjs && node test/resource-safety.mjs && node test/leftover-edge-cases.mjs && node test/douyin-master-person-merge.mjs && node test/douyin-master-uid.mjs && node test/douyin-identity-e2e.mjs && node test/douyin-post-jobs.mjs && node test/douyin-video-post.mjs && node test/douyin-video-trigger.mjs && node test/douyin-video-driver.mjs && node test/retrieval-filtered-vectors.mjs && node test/security-boundaries.mjs && node test/douyin-cdp-cursor.mjs && node test/douyin-nav-timeout.mjs && node test/persona-isolation.mjs && node test/smoke.mjs && node test/douyin-browser.mjs && node test/douyin-page-alive.mjs && node test/douyin-eval-timeout.mjs && node test/douyin-bridge-timeout.mjs && node test/douyin-goto-budget.mjs && node test/douyin-music.mjs && node test/douyin-ax-button.mjs && node test/startup-gate.mjs && node test/outbox.mjs && node test/import-coverage.mjs && node test/update-check.mjs && node test/issue-fixes.mjs && node test/import-resume.mjs && node test/maibot-extras.mjs && node test/slang-global.mjs && node test/worldinfo.mjs && node test/memory-bulk.mjs && node test/memory-tiers.mjs && node test/memory-weekly.mjs && node test/issue-98-self-archive.mjs && node test/issue-99-memory-order.mjs && node test/issue-115-memory-date.mjs && node test/issue-119-memory-page.mjs && node test/issue-125-memory-filter.mjs && node test/issue-78-diagnostic.mjs && node test/memory-storage.mjs && node test/memory-storage-restore.mjs && node test/backup-restore.mjs && node test/douyin-group.mjs && node test/review-fixes.mjs && node test/at-reads-video.mjs && node test/search-source.mjs && node test/followups.mjs && node test/detail-config.mjs && node test/qq-send-any-image.mjs && node test/qq-read-attachment.mjs && node test/qq-batch-window.mjs && node test/comment-video.mjs && node test/frames.mjs && node test/face-name.mjs && node test/comment-reply.mjs && node test/chat-comment.mjs && node test/at-target.mjs && node test/quota-caps.mjs && node test/client-lint.mjs && node test/client-panels.mjs && node test/dsh-desktop.mjs && node test/group-mention-only.mjs && node test/qq-private-allowlist.mjs && node test/issue-59-interject.mjs && node test/issue-59-diagnose.mjs && node test/diag-douyin-running.mjs && node test/sticker-backfill.mjs && node test/issue-118-sticker-diagnostics.mjs && node test/sticker-manage.mjs && node test/bili-emotes.mjs && node test/qq-outbound-sanitize.mjs && node test/person-delete.mjs && node test/qq-group-admin.mjs && node test/douyin-recovery.mjs && node test/session-preset.mjs && node test/qq-connect-error.mjs && node test/douyin-comment-bridge.mjs && node test/douyin-comment-write-unknown.mjs && node test/douyin-reply-verify-status.mjs && node test/bili-comment-emoji.mjs && node test/douyin-state-echo.mjs && node test/issue-75-proactive.mjs && node test/issue-76-capability.mjs && node test/douyin-http-browse.mjs && node test/douyin-verify-backoff.mjs && node test/douyin-digg-bridge.mjs && node test/memory-evidence-transcript.mjs && node test/chat-archive-default.mjs && node test/issue-113-desktop-archive.mjs && node test/dream-transcript-wire.mjs && node test/douyin-frames-collect.mjs && node test/master-qq-uin-rebind.mjs && node test/douyin-session-health.mjs && node test/douyin-delivered.mjs && node test/douyin-card-share.mjs && node test/douyin-push-drop.mjs && node test/douyin-stranger-dm.mjs && node test/douyin-uid-binding.mjs && node test/image-webp-fallback.mjs && node test/douyin-emoji-fallback.mjs && node test/relay-other-platform.mjs && node test/relay-to-friend.mjs && node test/relay-config-route.mjs && node test/share-fallback.mjs && node test/share-quota-refund.mjs && node test/issue-101-voice-files.mjs && node test/voice-volcengine.mjs && node test/voice-minimax-dashscope.mjs && node test/bili-switch-persist.mjs && node test/cross-channel-context.mjs && node test/reply-target.mjs && node test/shared-session.mjs && node test/outbound-quote-and-images.mjs && node test/dream-transcript-scope.mjs && node test/memory-date-context.mjs && node test/context-source-platform.mjs && node test/memory-source-label.mjs && node test/pending-delivery.mjs && node test/recall-window-78.mjs && node test/memory-recall-recent-78.mjs && node test/client-syntax.mjs && node test/diag-log.mjs && node test/check-rings.mjs && node test/release-workflow.mjs && node test/sticker-import-gif.mjs && node test/sticker-real-gif.mjs && node test/sticker-upload-binary.mjs && node test/sticker-vision-tags.mjs && node test/sticker-manual-tags.mjs && node test/sticker-auto-name.mjs && node test/self-update.mjs && node test/group-list.mjs && node test/douyin-inbox-noise.mjs && node test/douyin-inbox-diag.mjs && node test/douyin-inbox-stuck.mjs && node test/reply-window.mjs && node test/douyin-sticker-heuristic.mjs && node test/douyin-image-boundary.mjs && node test/media-image-boundary.mjs && node test/douyin-comment-identity-cid.mjs && node test/qq-mention-only-echo.mjs && node test/bili-panel-pagination.mjs && node test/bili-comment-visibility.mjs && node test/bili-allowlist.mjs && node test/douyin-master-uid-mismatch.mjs && node test/image-inbound-fail.mjs && node test/group-backlog-images.mjs && node test/group-master-tag.mjs && node test/check-
|
|
67
|
+
"test": "node test/check-test-chain.mjs && node test/check-release-version.mjs && node test/wire-helper.mjs && node test/marker-audit.mjs && node test/douyin-send.mjs && node test/douyin-mechanism.mjs && node test/douyin-route.mjs && node test/douyin-adapter.mjs && node test/douyin-contract.mjs && node test/memory-bulk-move.mjs && node test/safe-download.mjs && node test/douyin-exact-id.mjs && node test/douyin-pb-init.mjs && node test/douyin-conversation.mjs && node test/douyin-inbox.mjs && node test/douyin-quarantine.mjs && node test/douyin-send-target.mjs && node test/douyin-send-exclusive.mjs && node test/douyin-gap-dedupe.mjs && node test/douyin-message-id-dedupe.mjs && node test/douyin-share-card-dedupe.mjs && node test/douyin-share-card-dom.mjs && node test/douyin-inline-share.mjs && node test/douyin-short-link.mjs && node test/douyin-inline-ledger.mjs && node test/douyin-group-chat.mjs && node test/douyin-group-read.mjs && node test/douyin-group-reply.mjs && node test/session-overflow-recycle.mjs && node test/douyin-read-fail-retry.mjs && node test/douyin-read-cache.mjs && node test/douyin-dm-media-conv.mjs && node test/douyin-read-fail-retry-poll.mjs && node test/douyin-inbox-contract.mjs && node test/person-attribution.mjs && node test/memory-owner-reassign.mjs && node test/douyin-poll-and-timer-safety.mjs && node test/p2-limits.mjs && node test/resource-safety.mjs && node test/leftover-edge-cases.mjs && node test/douyin-master-person-merge.mjs && node test/douyin-master-uid.mjs && node test/douyin-identity-e2e.mjs && node test/douyin-post-jobs.mjs && node test/douyin-video-post.mjs && node test/douyin-video-trigger.mjs && node test/douyin-video-driver.mjs && node test/retrieval-filtered-vectors.mjs && node test/security-boundaries.mjs && node test/douyin-cdp-cursor.mjs && node test/douyin-nav-timeout.mjs && node test/persona-isolation.mjs && node test/smoke.mjs && node test/browser-launch-early-exit.mjs && node test/douyin-browser.mjs && node test/douyin-page-alive.mjs && node test/douyin-eval-timeout.mjs && node test/douyin-bridge-timeout.mjs && node test/douyin-goto-budget.mjs && node test/douyin-music.mjs && node test/douyin-ax-button.mjs && node test/startup-gate.mjs && node test/outbox.mjs && node test/import-coverage.mjs && node test/update-check.mjs && node test/issue-fixes.mjs && node test/import-resume.mjs && node test/maibot-extras.mjs && node test/slang-global.mjs && node test/worldinfo.mjs && node test/memory-bulk.mjs && node test/memory-tiers.mjs && node test/memory-weekly.mjs && node test/issue-98-self-archive.mjs && node test/issue-99-memory-order.mjs && node test/issue-115-memory-date.mjs && node test/issue-119-memory-page.mjs && node test/issue-125-memory-filter.mjs && node test/issue-78-diagnostic.mjs && node test/memory-storage.mjs && node test/memory-storage-restore.mjs && node test/backup-restore.mjs && node test/douyin-group.mjs && node test/review-fixes.mjs && node test/at-reads-video.mjs && node test/search-source.mjs && node test/followups.mjs && node test/detail-config.mjs && node test/qq-send-any-image.mjs && node test/qq-read-attachment.mjs && node test/qq-batch-window.mjs && node test/comment-video.mjs && node test/frames.mjs && node test/face-name.mjs && node test/comment-reply.mjs && node test/chat-comment.mjs && node test/at-target.mjs && node test/quota-caps.mjs && node test/client-lint.mjs && node test/client-panels.mjs && node test/dsh-desktop.mjs && node test/group-mention-only.mjs && node test/qq-private-allowlist.mjs && node test/issue-59-interject.mjs && node test/issue-59-diagnose.mjs && node test/diag-douyin-running.mjs && node test/sticker-backfill.mjs && node test/issue-118-sticker-diagnostics.mjs && node test/sticker-manage.mjs && node test/bili-emotes.mjs && node test/qq-outbound-sanitize.mjs && node test/person-delete.mjs && node test/qq-group-admin.mjs && node test/douyin-recovery.mjs && node test/session-preset.mjs && node test/qq-connect-error.mjs && node test/douyin-comment-bridge.mjs && node test/douyin-comment-write-unknown.mjs && node test/douyin-reply-verify-status.mjs && node test/bili-comment-emoji.mjs && node test/douyin-state-echo.mjs && node test/issue-75-proactive.mjs && node test/issue-76-capability.mjs && node test/douyin-http-browse.mjs && node test/douyin-verify-backoff.mjs && node test/douyin-digg-bridge.mjs && node test/memory-evidence-transcript.mjs && node test/chat-archive-default.mjs && node test/issue-113-desktop-archive.mjs && node test/dream-transcript-wire.mjs && node test/douyin-frames-collect.mjs && node test/master-qq-uin-rebind.mjs && node test/douyin-session-health.mjs && node test/douyin-delivered.mjs && node test/douyin-card-share.mjs && node test/douyin-push-drop.mjs && node test/douyin-stranger-dm.mjs && node test/douyin-uid-binding.mjs && node test/image-webp-fallback.mjs && node test/douyin-emoji-fallback.mjs && node test/relay-other-platform.mjs && node test/relay-to-friend.mjs && node test/relay-sender-id.mjs && node test/dsh-home-guard.mjs && node test/relay-config-route.mjs && node test/share-fallback.mjs && node test/share-quota-refund.mjs && node test/issue-101-voice-files.mjs && node test/voice-volcengine.mjs && node test/voice-minimax-dashscope.mjs && node test/bili-switch-persist.mjs && node test/cross-channel-context.mjs && node test/reply-target.mjs && node test/shared-session.mjs && node test/outbound-quote-and-images.mjs && node test/sticker-bracket-fallback.mjs && node test/dream-transcript-scope.mjs && node test/memory-date-context.mjs && node test/context-source-platform.mjs && node test/memory-source-label.mjs && node test/pending-delivery.mjs && node test/recall-window-78.mjs && node test/memory-recall-recent-78.mjs && node test/client-syntax.mjs && node test/diag-log.mjs && node test/check-rings.mjs && node test/release-workflow.mjs && node test/sticker-import-gif.mjs && node test/sticker-real-gif.mjs && node test/sticker-upload-binary.mjs && node test/sticker-vision-tags.mjs && node test/sticker-manual-tags.mjs && node test/sticker-auto-name.mjs && node test/self-update.mjs && node test/group-list.mjs && node test/douyin-inbox-noise.mjs && node test/douyin-inbox-diag.mjs && node test/douyin-inbox-stuck.mjs && node test/reply-window.mjs && node test/douyin-sticker-heuristic.mjs && node test/douyin-image-boundary.mjs && node test/media-image-boundary.mjs && node test/douyin-comment-identity-cid.mjs && node test/qq-mention-only-echo.mjs && node test/bili-panel-pagination.mjs && node test/bili-comment-visibility.mjs && node test/bili-allowlist.mjs && node test/douyin-master-uid-mismatch.mjs && node test/image-inbound-fail.mjs && node test/group-backlog-images.mjs && node test/group-master-tag.mjs && node test/check-route-guard.mjs && node test/check-client-imports.mjs && node test/chat-archive-fts.mjs && node test/chat-search-tool.mjs && node test/memory-invalidate-kind.mjs && node test/mood-guard.mjs && node test/time-awareness.mjs && node test/tts-strip-emoji.mjs && node test/session-reset-route.mjs && node test/check-secrets.mjs && node test/douyin-video-wire.mjs && node test/video-gen.mjs",
|
|
68
68
|
"test:douyin": "node test/parallel.mjs 4 --only douyin",
|
|
69
69
|
"test:fast": "node test/parallel.mjs 4 --skip \"douyin|browser\""
|
|
70
70
|
}
|