dsh-fish-soul 0.19.10 → 0.19.11
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/douyin-panel.mjs +25 -14
- package/lib/client.js +5 -3
- package/lib/index.js +4 -2
- package/lib/life.js +10 -2
- package/lib/routes-soul.js +2 -0
- package/lib/soul-memory.js +42 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -25,12 +25,12 @@ async function closePanel(b) {
|
|
|
25
25
|
/**
|
|
26
26
|
* 把浏览器窗口撑大。
|
|
27
27
|
*
|
|
28
|
-
* 🔴
|
|
29
|
-
* ·
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* ⇒
|
|
28
|
+
* 🔴 抖音私信面板对窗口尺寸挑剔,但门槛不是一成不变的:
|
|
29
|
+
* · 2026-10 实测(dpr 1.25 的 1920×1080 屏):视口 1532 宽时聊天输入框落在
|
|
30
|
+
* 视口外、面板可能渲染成 0×0 ⇒ 当时按「≥1800 宽」守门。
|
|
31
|
+
* · 2026-11 实测(1600×781 视口,dpr 1):私信面板已改成**固定 336px 宽的右侧栏**
|
|
32
|
+
* (紧贴右边缘),1600 宽下面板/输入框/表情/上传全部完整可用(#236)。
|
|
33
|
+
* ⇒ 门槛按现在的界面重算为 ≥1200×700(见下方 PANEL_MIN_W/H)。
|
|
34
34
|
*
|
|
35
35
|
* ⚠️ 只能改**真实窗口尺寸**(`Browser.setWindowBounds`)。
|
|
36
36
|
* `Emulation.setDeviceMetricsOverride` 不管用 —— 抖音用自己算的宽度做布局。
|
|
@@ -184,20 +184,29 @@ async function ensureWindowVisible(b) {
|
|
|
184
184
|
return false
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
// #236:私信面板早已改成固定 336px 宽的右侧栏(紧贴右边缘),不再是早年
|
|
188
|
+
// 「列表 324 + 聊天区 ~500」的浮层。1600×781 视口(dpr 1)实测:
|
|
189
|
+
// 面板 336×713 完整在视口内、输入框/表情/上传全可用(2026-11 实测)。
|
|
190
|
+
// ⇒ 宽度只要装得下 336 + 会话列表 + 边距就行,1200 留足余量;
|
|
191
|
+
// 高度 700 对应视口 781 时输入框底边 752、余量 29px。
|
|
192
|
+
const PANEL_MIN_W = 1200
|
|
193
|
+
const PANEL_MIN_H = 700
|
|
194
|
+
|
|
187
195
|
async function growWindow(b, vp = null) {
|
|
188
196
|
const cur = vp || await b.eval(`({ w: innerWidth, h: innerHeight, sw: screen.availWidth, sh: screen.availHeight })`).catch(() => null)
|
|
189
197
|
if (!cur) return false
|
|
190
|
-
//
|
|
191
|
-
if (cur.w >=
|
|
192
|
-
// 屏幕本身不够宽 ——
|
|
193
|
-
if (Number(cur.sw || 0) <
|
|
198
|
+
// 够大就别动(动了反而把面板关掉,见上方注释 ①)
|
|
199
|
+
if (cur.w >= PANEL_MIN_W && cur.h >= PANEL_MIN_H) return false
|
|
200
|
+
// 屏幕本身不够宽 —— 撑不上去,别动窗口
|
|
201
|
+
if (Number(cur.sw || 0) < PANEL_MIN_W) return false
|
|
194
202
|
|
|
195
203
|
try {
|
|
196
204
|
const { windowId } = await b.send('Browser.getWindowForTarget', { targetId: b.targetId })
|
|
197
205
|
await b.send('Browser.setWindowBounds', {
|
|
198
206
|
windowId,
|
|
199
|
-
//
|
|
200
|
-
|
|
207
|
+
// 高度上限 1120:带窗口装饰的桌面 1040 撑不到 900(1040 - 143 = 897),
|
|
208
|
+
// 差 3px 永远命中不了「够大就别动」⇒ 面板没开时每次读私信都 resize 一次(#236)
|
|
209
|
+
bounds: { width: Math.min(1920, cur.sw), height: Math.min(1120, cur.sh), windowState: 'normal' },
|
|
201
210
|
})
|
|
202
211
|
await sleep(2500)
|
|
203
212
|
const after = await b.eval(`({ w: innerWidth, h: innerHeight })`).catch(() => null)
|
|
@@ -283,7 +292,9 @@ async function ensurePanel(b) {
|
|
|
283
292
|
// 所以这里只在「屏幕够宽 + 还没进会话」时才撑,别每次读都动它。
|
|
284
293
|
// 细节见 growWindow 的注释。
|
|
285
294
|
const vp = await b.eval(`({ w: innerWidth, h: innerHeight, sw: screen.availWidth, sh: screen.availHeight })`).catch(() => null)
|
|
286
|
-
|
|
295
|
+
// #236:屏幕不够宽时 growWindow 自己会放弃,这里不用先拦(拦了反而把
|
|
296
|
+
// 1600/1920@125% 的机器挡在门外,也让 growWindow 里的 sw 检查变成死代码)
|
|
297
|
+
if (vp && (vp.w < PANEL_MIN_W || vp.h < PANEL_MIN_H)) {
|
|
287
298
|
await growWindow(b, vp).catch(() => {})
|
|
288
299
|
}
|
|
289
300
|
|
|
@@ -720,4 +731,4 @@ async function hasInput(b) {
|
|
|
720
731
|
})()`)
|
|
721
732
|
}
|
|
722
733
|
|
|
723
|
-
export { closePanel, ensureWindowVisible, parkWindow, showWindow, growWindow, ensurePanel, enterChat, hasInput }
|
|
734
|
+
export { closePanel, ensureWindowVisible, parkWindow, showWindow, growWindow, ensurePanel, enterChat, hasInput, PANEL_MIN_W, PANEL_MIN_H }
|
package/lib/client.js
CHANGED
|
@@ -441,9 +441,11 @@ window.__ModuleLoader__.load({
|
|
|
441
441
|
h(Switch, { label: "整理时对照聊天原文", checked: d.transcriptReview === true, onChange: (v) => save({ transcriptReview: v }) })),
|
|
442
442
|
d.transcriptReview === true ? Row({ title: "最多看几句", desc: "一次给多少条原文,太多会占掉整理用的上下文" },
|
|
443
443
|
Num({ min: 1, max: 200, value: tMax, onChange: (e) => setTMax(e.target.value), onBlur: () => { const n = Number(tMax); if (n >= 1 && n !== d.transcriptMaxLines) save({ transcriptMaxLines: n }); } }), Muted("句")) : null,
|
|
444
|
-
|
|
445
|
-
Button({ disabled: busy || d.running || d.pending === 0, onClick: now }, busy ? "整理中…" : "现在整理"))
|
|
446
|
-
|
|
444
|
+
Row({ title: "上次", meta: lastText },
|
|
445
|
+
Button({ disabled: busy || d.running || d.pending === 0, onClick: now }, busy ? "整理中…" : "现在整理")),
|
|
446
|
+
// #239:有被丢弃的批次时显示出来,不然用户只看到「没记住」查不到原因
|
|
447
|
+
d.dropped ? Row({ title: "有聊天没记成", desc: `${relTime(d.dropped.at, Date.now())} · ${d.dropped.channelId || '未知聊天'} · ${d.dropped.lines} 行因模型连续失败 ${d.dropped.streak} 次被丢弃${d.dropped.lastText ? `(最后一句:${d.dropped.lastText})` : ""}` }) : null);
|
|
448
|
+
}
|
|
447
449
|
|
|
448
450
|
// ── 自走与主动 ──
|
|
449
451
|
function LifePane({ data, refresh, notify }) {
|
package/lib/index.js
CHANGED
|
@@ -540,8 +540,10 @@ async function startup(ctx, config, { log, gate }) {
|
|
|
540
540
|
const prefetches = [];
|
|
541
541
|
for (const one of sp) {
|
|
542
542
|
if (one.ownerId === UNKNOWN_OWNER) continue;
|
|
543
|
-
//
|
|
544
|
-
|
|
543
|
+
// #221:硬插回合(proactive)不该顺手把别的待办标 surfaced——它们谁都没被说出口,
|
|
544
|
+
// 标了 surfaced 就既不会再被软插、也走不了正常投递,只能等 6 小时兜底回收。
|
|
545
|
+
// 只在真正有人开口的那轮(!proactive)才做顺口提起。
|
|
546
|
+
if (!proactive) dueReasons.push(...life.surfacePendingFor(one.ownerId));
|
|
545
547
|
if (!proactive) one.moodFresh = markMoodSaid(db, one.ownerId, clock.now());
|
|
546
548
|
prefetches.push(prefetchVec(one, ch === 'qq-group' || ch === 'douyin-group'));
|
|
547
549
|
}
|
package/lib/life.js
CHANGED
|
@@ -668,13 +668,21 @@ export class LifeEngine {
|
|
|
668
668
|
*/
|
|
669
669
|
surfacePendingFor(ownerId, limit = 2) {
|
|
670
670
|
if (!ownerId || ownerId === 'user:unknown') return [];
|
|
671
|
+
// #221:上一轮顺口提起过、对方之后开口了(= 已接话讨论)→ 直接标 done,
|
|
672
|
+
// 别再等 6 小时兜底回收后重发一遍。
|
|
673
|
+
const now = this.clock.now();
|
|
674
|
+
const lastInteraction = this.lastInteractionVirtualMs.get(ownerId) ?? 0;
|
|
675
|
+
this.db.prepare(`
|
|
676
|
+
UPDATE pending SET status = 'done'
|
|
677
|
+
WHERE character_id = 'feiyu' AND owner_id = ? AND status = 'surfaced'
|
|
678
|
+
AND surfaced_at IS NOT NULL AND surfaced_at < ?
|
|
679
|
+
`).run(ownerId, lastInteraction);
|
|
671
680
|
const rows = this.db.prepare(`
|
|
672
681
|
SELECT id, reason FROM pending
|
|
673
682
|
WHERE character_id = 'feiyu' AND owner_id = ? AND status = 'pending' AND due_at <= ?
|
|
674
683
|
ORDER BY due_at ASC LIMIT ?
|
|
675
|
-
`).all(ownerId,
|
|
684
|
+
`).all(ownerId, now, limit);
|
|
676
685
|
// surfaced_at 用来兜底回收:提起不等于说到,那轮她没提,这条过一阵要能回到 pending(#80)
|
|
677
|
-
const now = this.clock.now();
|
|
678
686
|
const mark = this.db.prepare("UPDATE pending SET status = 'surfaced', surfaced_at = ? WHERE id = ?");
|
|
679
687
|
for (const r of rows) mark.run(now, r.id);
|
|
680
688
|
return rows.map((r) => r.reason);
|
package/lib/routes-soul.js
CHANGED
|
@@ -171,6 +171,8 @@ export async function handleSoulRoute({ method, path, url, req, res, send, readB
|
|
|
171
171
|
...transcriptCfg(m), // 让设置页读得到;也让人从接口能看出这个开关的样子
|
|
172
172
|
pending: journal?.pendingCount() ?? 0, running: digester?.running === true,
|
|
173
173
|
last: digester?.last ?? getKv(db, 'digest.last', null),
|
|
174
|
+
// #239:最近一次「连续失败被丢弃」的记录 —— 没有这个,用户只看到没记住、查不到原因
|
|
175
|
+
dropped: (getKv(db, 'digest.dropped', []) ?? [])[0] ?? null,
|
|
174
176
|
};
|
|
175
177
|
};
|
|
176
178
|
if (path === '/memory/state' && method === 'GET') { send(200, memState()); return true; }
|
package/lib/soul-memory.js
CHANGED
|
@@ -375,7 +375,7 @@ export class ChatJournal {
|
|
|
375
375
|
this.onAdd = onAdd;
|
|
376
376
|
this.keepRecent = keepRecent;
|
|
377
377
|
this.maxPending = maxPending;
|
|
378
|
-
/** @type {Map<string, {recent: Array<any>, pending: Array<any>, lastAt: number}>} */
|
|
378
|
+
/** @type {Map<string, {recent: Array<any>, pending: Array<any>, lastAt: number, retryAt?: number}>} */
|
|
379
379
|
this.chats = new Map();
|
|
380
380
|
/** @type {Map<string, number>} */
|
|
381
381
|
this.dirty = new Map();
|
|
@@ -489,7 +489,11 @@ export class ChatJournal {
|
|
|
489
489
|
const out = [];
|
|
490
490
|
for (const [id, c] of this.chats) {
|
|
491
491
|
if (c.pending.length === 0 || !c.pending.some((l) => !l.self)) continue;
|
|
492
|
-
|
|
492
|
+
// 🔴 #239:刚失败放回的那批要退避,否则 lastAt 还是老时间 ⇒ 每 30 秒 tick 重新选中。
|
|
493
|
+
// 只约束 idle 那一支:攒够 maxLines 是既有契约,退避期内也必须整理(审查抓到的回归 A)。
|
|
494
|
+
// retryAt 只在内存里(和 failBackoff 一样):重启丢一次退避是安全的。
|
|
495
|
+
const idleDue = now - c.lastAt >= idleMs && now >= (c.retryAt ?? 0);
|
|
496
|
+
if (idleDue || c.pending.length >= maxLines) out.push(id);
|
|
493
497
|
}
|
|
494
498
|
return out;
|
|
495
499
|
}
|
|
@@ -499,15 +503,25 @@ export class ChatJournal {
|
|
|
499
503
|
if (!c) return [];
|
|
500
504
|
const lines = c.pending;
|
|
501
505
|
c.pending = [];
|
|
506
|
+
// 取走就清退避:这批要么整理成功,要么丢弃;留着 stale 的 retryAt 会压住后来的新消息
|
|
507
|
+
delete c.retryAt;
|
|
502
508
|
this.persistPending(channelId);
|
|
503
509
|
return lines;
|
|
504
510
|
}
|
|
505
511
|
|
|
506
|
-
/**
|
|
507
|
-
|
|
512
|
+
/**
|
|
513
|
+
* 整理失败:放回去下次再试(不超过上限)。
|
|
514
|
+
* `retryAfterMs` 是这批内容最早什么时候可以再试 —— 不设的话 lastAt 不变,
|
|
515
|
+
* due() 会每 30 秒重新选中同一批(#239:模型持续不可用时把失败次数放大到几十倍)。
|
|
516
|
+
* @param {number} [now] 调用方的时间基准(虚拟钟 / 测试)。不传就不设退避。
|
|
517
|
+
*/
|
|
518
|
+
putBack(channelId, lines, retryAfterMs = 0, now = null) {
|
|
508
519
|
const c = this.chats.get(channelId);
|
|
509
520
|
if (!c) return;
|
|
510
521
|
c.pending = [...lines, ...c.pending].slice(-this.maxPending);
|
|
522
|
+
// 没有可靠的时间基准就不设退避(退回老行为)。用消息时间当基准会算成过去
|
|
523
|
+
// —— 一批 1 小时前的消息 + 5 分钟退避 = 55 分钟前,due() 立刻又选中,比不退避更糟。
|
|
524
|
+
c.retryAt = now === null ? 0 : Number(now) + Math.max(0, Number(retryAfterMs) || 0);
|
|
511
525
|
this.persistPending(channelId);
|
|
512
526
|
}
|
|
513
527
|
|
|
@@ -664,13 +678,18 @@ export class ChatDigester {
|
|
|
664
678
|
this.running = true;
|
|
665
679
|
const onFail = () => {
|
|
666
680
|
const streak = (this.failBackoff.get(channelId)?.streak ?? 0) + 1;
|
|
681
|
+
// 🔴 #239:连续 5 次失败仍然丢弃这批(不能无限重试烧钱,既有契约),
|
|
682
|
+
// 但**必须留痕**:报告者的失败率 91%,说明模型在持续挂,而丢弃是静默的
|
|
683
|
+
// —— 用户只看到「一条记忆都没记住」,查不到原因。
|
|
667
684
|
if (streak >= 5) {
|
|
668
685
|
this.failBackoff.delete(channelId);
|
|
669
|
-
this.
|
|
686
|
+
this.recordDropped(channelId, lines, streak);
|
|
687
|
+
this.log('warn', `[fish-soul] 聊完整理(${channelId})连续失败 ${streak} 次,丢弃这批 ${lines.length} 行以免重复消耗 token`);
|
|
670
688
|
return;
|
|
671
689
|
}
|
|
672
|
-
this.journal.putBack(channelId, lines.slice(-40));
|
|
673
690
|
const wait = Math.min(60 * 60_000, 5 * 60_000 * 2 ** (streak - 1));
|
|
691
|
+
// 放回时带上退避,别让 due() 每 30 秒重新选中同一批
|
|
692
|
+
this.journal.putBack(channelId, lines.slice(-40), wait, this.now());
|
|
674
693
|
this.failBackoff.set(channelId, { streak, until: this.now() + wait });
|
|
675
694
|
};
|
|
676
695
|
try {
|
|
@@ -687,6 +706,23 @@ export class ChatDigester {
|
|
|
687
706
|
}
|
|
688
707
|
}
|
|
689
708
|
|
|
709
|
+
/**
|
|
710
|
+
* 记下「这批聊天因为连续失败被丢弃」(#239)。
|
|
711
|
+
* 丢弃本身是对的(不能无限重试烧钱),但静默丢弃会让用户只看到
|
|
712
|
+
* 「一条记忆都没记住」却查不到原因。这里留一条可查的记录。
|
|
713
|
+
*/
|
|
714
|
+
recordDropped(channelId, lines, streak) {
|
|
715
|
+
try {
|
|
716
|
+
const logs = getKv(this.db, 'digest.dropped', []) ?? [];
|
|
717
|
+
logs.unshift({
|
|
718
|
+
at: this.now(), channelId, streak,
|
|
719
|
+
lines: lines.length,
|
|
720
|
+
lastText: String(lines[lines.length - 1]?.text ?? '').slice(0, 120),
|
|
721
|
+
});
|
|
722
|
+
setKv(this.db, 'digest.dropped', logs.slice(0, 20));
|
|
723
|
+
} catch { /* 留痕失败不能影响主流程 */ }
|
|
724
|
+
}
|
|
725
|
+
|
|
690
726
|
async run(channelId, lines) {
|
|
691
727
|
const now = this.clock.now();
|
|
692
728
|
const isGroup = channelId.startsWith('group:') || channelId.startsWith('douyin-group:');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-fish-soul",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.11",
|
|
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-live-fails.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/repeat-guard-cross-turn.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/check-secrets-nickname.mjs && node test/check-docs-freshness.mjs && node test/check-package-json-format.mjs && node test/wire-limits.mjs && node test/check-chromium-suites.mjs && node test/check-no-stash-scripts.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 && node test/prefetch-vec-await.mjs && node test/wave2-token-optimizations.mjs && node test/wave3-memory-retrieval.mjs && node test/rc5-token-inflation.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-live-fails.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/repeat-guard-cross-turn.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-panel-width-threshold.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/check-secrets-nickname.mjs && node test/check-docs-freshness.mjs && node test/check-package-json-format.mjs && node test/wire-limits.mjs && node test/check-chromium-suites.mjs && node test/check-no-stash-scripts.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 && node test/prefetch-vec-await.mjs && node test/wave2-token-optimizations.mjs && node test/wave3-memory-retrieval.mjs && node test/rc5-token-inflation.mjs && node test/pending-surfaced-closure.mjs && node test/memory-digest-retry-239.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"
|