dsh-fish-soul 0.19.4 → 0.19.5

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  让一个 QQ 小号背后有"同一个人":固定人格、按人记记忆、有自己的生活节奏、会主动开口;同一个"她"同时出现在 QQ、B站、抖音。
4
4
 
5
- DSH 插件(单角色 `feiyu`)。版本 **0.19.4**。
5
+ DSH 插件(单角色 `feiyu`)。版本 **0.19.5**。
6
6
 
7
7
  QQ 交流群:**1125962189**
8
8
 
@@ -1401,11 +1401,38 @@ export async function sendEmoji({ browser, name = '', uname = '', expectConvId =
1401
1401
  for (let i = 0; i < 16; i++) {
1402
1402
  await sleep(1000)
1403
1403
  const after = await browser.eval(COUNT_EMOJI).catch(() => [])
1404
- if (hasNewBubble(before, after)) return { ok: true, verified: true, name: picked.name, url: picked.src }
1404
+ if (hasNewBubble(before, after)) {
1405
+ await closeEmojiPanel(browser)
1406
+ return { ok: true, verified: true, name: picked.name, url: picked.src }
1407
+ }
1405
1408
  }
1409
+ await closeEmojiPanel(browser)
1406
1410
  return { ok: false, submitted: true, error: '点了表情,但消息列表里没出现新的表情气泡', name: picked.name }
1407
1411
  }
1408
1412
 
1413
+ /**
1414
+ * 关掉表情面板(发完收尾)。
1415
+ *
1416
+ * 不关的话面板会一直挂在那儿:主人下次进会话看到一个开着的面板,观感很差,
1417
+ * 而且挡着输入区。点一次面板以外的地方即可;面板可能已经自己关了,所以幂等、失败不报。
1418
+ */
1419
+ async function closeEmojiPanel(browser) {
1420
+ try {
1421
+ await browser.eval(`(() => {
1422
+ const panel = document.querySelector('[class*="emojiPanel"]')
1423
+ if (!panel) return 'gone'
1424
+ const r = panel.getBoundingClientRect()
1425
+ const x = Math.round(r.left - 12), y = Math.round(r.top - 12)
1426
+ const el = document.elementFromPoint(Math.max(1, x), Math.max(1, y)) || document.body
1427
+ const o = { bubbles: true, cancelable: true, view: window, clientX: Math.max(1, x), clientY: Math.max(1, y) }
1428
+ el.dispatchEvent(new MouseEvent('mousedown', o))
1429
+ el.dispatchEvent(new MouseEvent('mouseup', o))
1430
+ el.dispatchEvent(new MouseEvent('click', o))
1431
+ return 'clicked'
1432
+ })()`)
1433
+ } catch { /* 关不掉不影响已经发出去的表情 */ }
1434
+ }
1435
+
1409
1436
  /** 登录态检查 */
1410
1437
  export async function checkLogin(browser) {
1411
1438
  const ck = await browser.cookies(['https://www.douyin.com/', 'https://www.douyin.com/user/self'])
@@ -80,6 +80,7 @@ window.__ModuleLoader__.load({
80
80
  const [report, setReport] = react.useState(null);
81
81
  const [showShot, setShowShot] = react.useState(false);
82
82
  const [framesPerDay, setFramesPerDay] = react.useState("");
83
+ const [noteText, setNoteText] = react.useState("");
83
84
  react.useEffect(() => { if (framesPerDay === "" && br.framesPerDay !== undefined) setFramesPerDay(String(br.framesPerDay)); }, [br.framesPerDay]);
84
85
  // 待确认的抖音身份(昵称配了但还没主人确认过)。
85
86
  // 放在面板里而不是自动绑定 —— 主人是唯一能看懂 uid 的人。
@@ -276,9 +277,10 @@ window.__ModuleLoader__.load({
276
277
  video.enabled ? Tag(`今天视频 ${so.video?.todayCount ?? 0} / ${video.perDay ?? 1}`, "outline") : null) : null },
277
278
  Row({ title: "自己发图文", desc: "把想说的话做成文字卡片,在创作者中心发图文;创作者中心可能要单独登录一次" },
278
279
  post.enabled ? Button({ disabled: busy || so.post?.running === true || so.video?.running === true || Boolean(so.postPending) || d.enabled !== true || !running, onClick: async () => {
279
- if (await confirm({ title: "现在发一条图文?", description: "将在抖音创作者中心公开发布一条图文动态。", confirmLabel: "发布" })) await act("/douyin/post-now", {}, "发出去了", "没发成");
280
+ if (await confirm({ title: "现在发一条图文?", description: "将在抖音创作者中心公开发布一条图文动态。", confirmLabel: "发布" })) await act("/douyin/post-now", { text: noteText.trim() }, "发出去了", "没发成");
280
281
  } }, so.post?.running ? "正在发…" : "现在发一条") : null,
281
282
  sw("自己发图文", post.enabled === true, (v) => save({ post: { enabled: v } }))),
283
+ post.enabled ? Row({ title: "指定内容", desc: "留空则按她此刻的心情随机写一条" }, Input({ value: noteText, onChange: (e) => setNoteText(e.target.value), placeholder: "想发什么就写在这里", "aria-label": "图文指定内容" })) : null,
282
284
  post.enabled ? Row({ title: "每天最多" }, Num({ min: 0, max: 5, "aria-label": "每天最多几条", ...bind("postPerDay") }), Muted("条")) : null,
283
285
  // 视频:生成要调付费接口(按条计费)—— 开关旁边必须写清楚这是花钱的操作,点击前也要二次确认。
284
286
  Row({ title: "自己发视频", desc: "生成视频要调用付费接口(按条计费),每发一条都真花钱;创作者中心也要先登录过" },
@@ -743,8 +743,10 @@ export class DouyinBrowser {
743
743
  const d = await this.host.exclusive('看分享的抖音', () => this.readDetail({ browser: this.host.browser, id, commentLimit: 3 }), { maxMs: 45_000 });
744
744
  if (!d?.ok) continue;
745
745
  const hot = (d.comments ?? []).slice(0, 2).map((c) => oneLine(c.text ?? c, 60)).filter(Boolean);
746
+ const shot = await this.frameForWatch(d, id);
746
747
  const text = `【抖音视频:${oneLine(d.desc, 120) || '(没有文案)'};作者 ${oneLine(d.author, 20) || '未知'}` +
747
- (hot.length ? `;热评:${hot.join(' / ')}` : '') + '】';
748
+ (hot.length ? `;热评:${hot.join(' / ')}` : '') +
749
+ (shot ? `;画面:${shot}` : '') + '】';
748
750
  this.described.set(id, { text, at: Date.now() });
749
751
  if (this.described.size > 200) this.described.delete(this.described.keys().next().value);
750
752
  notes.push(text);
@@ -760,10 +762,14 @@ export class DouyinBrowser {
760
762
  const d = det.detail;
761
763
  const cm = await this.http.comments(id, { count: 3 });
762
764
  const sum = extractWorkSummary(d, cm.ok ? cm.list : []);
765
+ // 抽帧看画面(默认关,共用"自己刷视频"那个开关与每日配额):
766
+ // 私信里分享的视频也该看得见画面,不能只给文案 + 热评(用户反馈 2026-11-25)。
767
+ const shot = sum.imageCount > 0 ? '' : await this.frameForWatch(d, id);
763
768
  return `【抖音${sum.imageCount > 0 ? '图文' : '视频'}:${oneLine(sum.title, 120) || '(没有文案)'};作者 ${oneLine(sum.author, 20) || '未知'}`
764
769
  + (sum.imageCount > 0 ? `;共 ${sum.imageCount} 张图` : '')
765
770
  + (sum.music ? `;BGM:${oneLine(sum.music, 40)}` : '')
766
771
  + (sum.ocr ? `;画面文字:${oneLine(sum.ocr, 80)}` : '')
772
+ + (shot ? `;画面:${shot}` : '')
767
773
  + (sum.topComments.length ? `;热评:${sum.topComments.join(' / ')}` : '') + '】';
768
774
  }
769
775
  }
@@ -14,10 +14,12 @@ export const RELAY_TOOL = 'send_elsewhere';
14
14
  export const RELAY_FRIEND_TOOL = 'relay_to_friend';
15
15
  /** 抖音发视频:主人在私聊里让她做一条视频并发抖音。 */
16
16
  export const DOUYIN_VIDEO_TOOL = 'make_douyin_video';
17
+ /** 抖音发图文:主人在私聊里让她发一条文字卡片。 */
18
+ export const DOUYIN_NOTE_TOOL = 'make_douyin_note';
17
19
  /** 定时任务(#190):AI 只能看和改已经排好的任务 —— 建与删只走设置页。 */
18
20
  export const SCHEDULED_TASK_TOOLS = ['scheduled_tasks_list', 'scheduled_tasks_update'];
19
21
  /** 聊天会话里放行的插件工具(记忆 + 跨平台转达 + 熟人传话 + 抖音发视频 + 定时任务)。 */
20
- export const CHAT_TOOLS = [...QQ_SESSION_TOOLS, RELAY_TOOL, RELAY_FRIEND_TOOL, DOUYIN_VIDEO_TOOL, ...SCHEDULED_TASK_TOOLS];
22
+ export const CHAT_TOOLS = [...QQ_SESSION_TOOLS, RELAY_TOOL, RELAY_FRIEND_TOOL, DOUYIN_VIDEO_TOOL, DOUYIN_NOTE_TOOL, ...SCHEDULED_TASK_TOOLS];
21
23
  /** OpenMotion MCP 工具名识别(兼容 mcp__openmotion__* 与 openmotion_*)。 */
22
24
  export function isOpenMotionTool(name) {
23
25
  const s = String(name ?? '');
package/lib/gateway.js CHANGED
@@ -38,7 +38,7 @@ import { Outbox, classifySendError } from './outbox.js';
38
38
  import { safeDownload } from './safe-download.js';
39
39
  import { behaviorMethods } from './gateway-behavior.js';
40
40
  import {
41
- sessionMethods, QQ_SESSION_TOOLS, RELAY_TOOL, RELAY_FRIEND_TOOL, DOUYIN_VIDEO_TOOL,
41
+ sessionMethods, QQ_SESSION_TOOLS, RELAY_TOOL, RELAY_FRIEND_TOOL, DOUYIN_VIDEO_TOOL, DOUYIN_NOTE_TOOL,
42
42
  SCHEDULED_TASK_TOOLS, CHAT_TOOLS, isOpenMotionTool, WEB_TOOLS, OWN_WEB_TOOL,
43
43
  IMAGE_EXT, OVERFLOW_SESSION_KEY, SWITCH_BLOCKED_SESSION_KEY, dedicatedWorkspacePath
44
44
  } from './gateway-session.js';
@@ -59,7 +59,7 @@ const normUidKey = (uid) => {
59
59
  export {
60
60
  typingDelayMs, interjectScore, interjectConfig, platformOf, splitChannelId, sessionChannelOf, clampReplyWindow,
61
61
  SOURCE_QQ, SOURCE_PROACTIVE, SOURCE_BILI, SOURCE_DOUYIN,
62
- QQ_SESSION_TOOLS, RELAY_TOOL, RELAY_FRIEND_TOOL, DOUYIN_VIDEO_TOOL, SCHEDULED_TASK_TOOLS, CHAT_TOOLS,
62
+ QQ_SESSION_TOOLS, RELAY_TOOL, RELAY_FRIEND_TOOL, DOUYIN_VIDEO_TOOL, DOUYIN_NOTE_TOOL, SCHEDULED_TASK_TOOLS, CHAT_TOOLS,
63
63
  isOpenMotionTool, WEB_TOOLS, OWN_WEB_TOOL, dedicatedWorkspacePath
64
64
  };
65
65
 
@@ -408,6 +408,7 @@ export class ChatGateway extends gatewayMixins() {
408
408
  return adapterOf(this).douyinUinBinding(uid);
409
409
  }
410
410
 
411
+
411
412
  bindDouyinUin(uid, qq) {
412
413
  return adapterOf(this).bindDouyinUin(uid, qq);
413
414
  }
@@ -416,6 +417,25 @@ export class ChatGateway extends gatewayMixins() {
416
417
  return adapterOf(this).douyinIdentityOfChannel(channelId);
417
418
  }
418
419
 
420
+ /**
421
+ * 工具授权用的「主人私聊」判定(#220)。
422
+ *
423
+ * 为什么不用 isMasterChannel:它对抖音通道恒 false(channelId 是昵称,不是授权身份),
424
+ * 于是「主人自己的抖音私聊」里发图文/视频永远被误拒。这里把授权拆到平台:
425
+ * · QQ → isMasterChannel(`private:<主人QQ>`,安全);
426
+ * · 抖音 → 这个会话的**真实对端身份** == 主人的抖音身份(`douyin:<uid>`,认 uid 不认昵称);
427
+ * · 其余 → isMasterChannel(B站按 masterUid,群一律 false)。
428
+ */
429
+ isMasterPrivateChat(channelId) {
430
+ if (platformOf(channelId) === 'douyin') {
431
+ const identity = this.douyinIdentityOfChannel(channelId);
432
+ if (identity === '') return false;
433
+ const master = this.masterDouyinIdentity?.() ?? adapterOf(this).masterDouyinIdentity();
434
+ return master !== '' && identity === master;
435
+ }
436
+ return this.isMasterChannel(channelId);
437
+ }
438
+
419
439
  /** 记忆里这个人挂着的 QQ 号(认人用的是真实 ID,改昵称也不丢);没有就返回 ''。 */
420
440
  linkedQqOf(chat) {
421
441
  const [kind, id] = splitChannelId(chat?.channelId);
@@ -11,7 +11,7 @@ export function registerExtraTools(ctx, deps) {
11
11
  parseRoleIso, sessionForTool, UNKNOWN_OWNER, recall, reinforce,
12
12
  gateway, douyinSocial, getConfig, webConfig, ownSearchReady, runWebSearch, formatSearch,
13
13
  relaySenderId, parseRelayTarget, log,
14
- RELAY_TOOL, RELAY_FRIEND_TOOL, DOUYIN_VIDEO_TOOL, OWN_WEB_TOOL
14
+ RELAY_TOOL, RELAY_FRIEND_TOOL, DOUYIN_VIDEO_TOOL, DOUYIN_NOTE_TOOL, OWN_WEB_TOOL
15
15
  } = deps;
16
16
 
17
17
  const textOutput = {
@@ -169,7 +169,7 @@ export function registerExtraTools(ctx, deps) {
169
169
  const session = sessionForTool(toolCtx);
170
170
  const channelId = String(session.channelId ?? '');
171
171
  if (channelId === '' || gateway === null) return '不知道现在是在哪个聊天里,先不发。';
172
- if (!gateway.isMasterChannel(channelId)) return '这个只能在主人的私聊里用。';
172
+ if (!gateway.isMasterPrivateChat(channelId)) return '这个只能在主人的私聊里用。';
173
173
  const text = String(args.text ?? '').trim();
174
174
  if (text === '') return '内容是空的,没发。';
175
175
  const platform = String(args.platform ?? '');
@@ -236,7 +236,7 @@ export function registerExtraTools(ctx, deps) {
236
236
  const session = sessionForTool(toolCtx);
237
237
  const channelId = String(session.channelId ?? '');
238
238
  if (channelId === '' || gateway === null) return '不知道现在是在哪个聊天里,先不发。';
239
- if (!gateway.isMasterChannel(channelId)) return '这个只能在主人的私聊里用。';
239
+ if (!gateway.isMasterPrivateChat(channelId)) return '这个只能在主人的私聊里用。';
240
240
  if ((getConfig().douyin ?? {}).enabled !== true) return '抖音总开关没开(设置页「抖音」→ 抖音接入)。';
241
241
  if (!douyinSocial) return '抖音模块没加载。';
242
242
  if (!douyinSocial.cfg().video.enabled) return '还没打开「自己发视频」(设置页「抖音」→ 作品和评论 → 自己发视频)。';
@@ -259,6 +259,39 @@ export function registerExtraTools(ctx, deps) {
259
259
  }
260
260
  })), 'dsh-fish-soul: make_douyin_video');
261
261
 
262
+ // ── 工具:make_douyin_note(主人在私聊里让她发一条图文到抖音)──
263
+ ctx.effect(() => ctx.tools.register(defineTool({
264
+ name: DOUYIN_NOTE_TOOL,
265
+ description: '把文字做成卡片并发一条抖音图文。只有主人明确要求(「发条抖音图文」「发一条图文到抖音」这类)时才用,别自己找机会用。只能在主人的私聊里用。',
266
+ parameters: objectSchema({
267
+ text: { type: 'string', description: '图文配文(会印在文字卡片上;不填就按此刻心情写一条)' }
268
+ }),
269
+ output: textOutput,
270
+ async execute(args, toolCtx) {
271
+ const session = sessionForTool(toolCtx);
272
+ const channelId = String(session.channelId ?? '');
273
+ if (channelId === '' || gateway === null) return '不知道现在是在哪个聊天里,先不发。';
274
+ if (!gateway.isMasterPrivateChat(channelId)) return '这个只能在主人的私聊里用。';
275
+ if ((getConfig().douyin ?? {}).enabled !== true) return '抖音总开关没开(设置页「抖音」→ 抖音接入)。';
276
+ if (!douyinSocial) return '抖音模块没加载。';
277
+ if (!douyinSocial.cfg().post.enabled) return '还没打开「自己发图文」(设置页「抖音」→ 作品和评论 → 自己发图文)。';
278
+ const blocked = douyinSocial.postBlockReason?.();
279
+ if (blocked) return `现在发不了:${blocked}。`;
280
+ if (douyinSocial.posting) return '正在发另一条作品,稍等会儿再试。';
281
+ if (!douyinSocial.ready) return `抖音还没准备好:${douyinSocial.notReadyText()}。`;
282
+ const text = String(args?.text ?? '').trim();
283
+ try {
284
+ const r = await douyinSocial.post({ force: true, kind: 'post', ...(text !== '' ? { text } : {}) });
285
+ if (!r?.ok) return `没发成:${r?.error ?? '原因不明'}。`;
286
+ return `已经发布到抖音了:${r.text}。`;
287
+ } catch (error) {
288
+ const msg = String(error instanceof Error ? error.message : error);
289
+ log('warn', `[fish-soul] 聊天触发发抖音图文失败:${msg}`);
290
+ return `没发成:${msg.slice(0, 120)}。`;
291
+ }
292
+ }
293
+ })), 'dsh-fish-soul: make_douyin_note');
294
+
262
295
  // ── 工具:fish_search(自己填 key 的搜索服务;只在鱼的聊天会话里能用,开关 / 次数由上面的护栏管)──
263
296
  ctx.effect(() => ctx.tools.register(defineTool({
264
297
  name: OWN_WEB_TOOL,
package/lib/index.js CHANGED
@@ -48,7 +48,7 @@ import { DouyinHttp } from './douyin-http.js';
48
48
  import { fishSoulConfigSchema } from './config-schema.js';
49
49
  import { loadSharp, sharpReady } from './imageconv.js';
50
50
  import {
51
- 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
+ ChatGateway, SOURCE_QQ, SOURCE_PROACTIVE, SOURCE_BILI, SOURCE_DOUYIN, CHAT_TOOLS, RELAY_TOOL, RELAY_FRIEND_TOOL, DOUYIN_VIDEO_TOOL, DOUYIN_NOTE_TOOL, WEB_TOOLS, OWN_WEB_TOOL, isOpenMotionTool, splitChannelId, sessionChannelOf
52
52
  } from './gateway.js';
53
53
  import { platformLabelOf, platformOf, parseRelayTarget, relaySenderIdOf, sourceLabelOf } from './gateway-util.js';
54
54
  import { douyinVideoIdsOf } from './douyin-adapter.js';
@@ -1364,7 +1364,7 @@ async function startup(ctx, config, { log, gate }) {
1364
1364
  parseRoleIso, sessionForTool, UNKNOWN_OWNER, recall, reinforce,
1365
1365
  gateway, douyinSocial, getConfig, webConfig, ownSearchReady, runWebSearch, formatSearch,
1366
1366
  relaySenderId, parseRelayTarget, log,
1367
- RELAY_TOOL, RELAY_FRIEND_TOOL, DOUYIN_VIDEO_TOOL, OWN_WEB_TOOL
1367
+ RELAY_TOOL, RELAY_FRIEND_TOOL, DOUYIN_VIDEO_TOOL, DOUYIN_NOTE_TOOL, OWN_WEB_TOOL
1368
1368
  });
1369
1369
 
1370
1370
  // ── 工具:chat_search(翻原始聊天记录,核对「他到底说没说过」)──
@@ -313,7 +313,7 @@ export async function handleDouyinRoute({ method, path, req, send, readBody, sam
313
313
  if (!douyinSocial) { send(200, { ok: false, error: '抖音模块没加载' }); return true; }
314
314
  if (path === '/douyin/post-now') {
315
315
  if (!douyinSocial.cfg().post.enabled) { send(200, { ok: false, error: '先打开「自己发图文」' }); return true; }
316
- const r = await douyinSocial.post({ force: true });
316
+ const r = await douyinSocial.post({ force: true, kind: 'post', text: String(body.text ?? '').trim() });
317
317
  send(200, r.ok ? { ok: true, text: r.text } : { ok: false, error: r.error ?? '没发成' });
318
318
  return true;
319
319
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-fish-soul",
3
- "version": "0.19.4",
3
+ "version": "0.19.5",
4
4
  "description": "鱼 · 人格、按人记忆(可纠正、有印象、能导入旧聊天记录)、日程自走与主动开口,直连 SnowLuma 收发 QQ(群里会自己插话),B站 / 抖音小号私信与自己刷视频;按功能选模型并统计用量花费,能听会说 QQ 语音、收藏表情包、学群里的梗,可选上网查;心情影响说话、去 AI 味、每个群的设定、按聊天选模型、每晚写日记、每周记忆存档与可选周记(DSH 插件,单角色 feiyu ,v0.18.23)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -64,7 +64,7 @@
64
64
  }
65
65
  },
66
66
  "scripts": {
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-push-poll-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-note-upload-poll.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/diary-topics-217.mjs && node test/smoke.mjs && node test/life-context-interaction.mjs && node test/life-clock-refresh.mjs && node test/browser-launch-early-exit.mjs && node test/douyin-browser.mjs && node test/douyin-crash-restore.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/llm-roomy-budget.mjs && node test/llm-failure-backoff.mjs && node test/llm-budget-and-social-backoff.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/voice-paragraph-split.mjs && node test/voice-paragraph-split-wire.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-link.mjs && node test/bili-comment-visibility.mjs && node test/bili-allowlist.mjs && node test/douyin-master-uid-mismatch.mjs && node test/vision-model.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/douyin-self-uid.mjs && node test/douyin-group-cursor.mjs && node test/douyin-dom-text.mjs && node test/video-gen.mjs && node test/scheduled-tasks.mjs && node test/scheduled-tasks-ui.mjs && node test/douyin-wave12-fixes.mjs",
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-push-poll-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-note-upload-poll.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/diary-topics-217.mjs && node test/smoke.mjs && node test/life-context-interaction.mjs && node test/life-clock-refresh.mjs && node test/browser-launch-early-exit.mjs && node test/douyin-browser.mjs && node test/douyin-crash-restore.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/llm-roomy-budget.mjs && node test/llm-failure-backoff.mjs && node test/llm-budget-and-social-backoff.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/voice-paragraph-split.mjs && node test/voice-paragraph-split-wire.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/douyin-emoji-panel-close.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-link.mjs && node test/bili-comment-visibility.mjs && node test/bili-allowlist.mjs && node test/douyin-master-uid-mismatch.mjs && node test/vision-model.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/douyin-self-uid.mjs && node test/douyin-group-cursor.mjs && node test/douyin-dom-text.mjs && node test/video-gen.mjs && node test/scheduled-tasks.mjs && node test/scheduled-tasks-ui.mjs && node test/douyin-wave12-fixes.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
  "typecheck": "npx --yes -p typescript tsc -p tsconfig.check.json"