dsh-fish-soul 0.19.16 → 0.19.18
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/bili-playback.js +44 -15
- package/lib/browse.js +1 -1
- package/lib/channels/douyin-fastpath.js +5 -2
- package/lib/client.models.js +6 -0
- package/lib/config-schema.js +4 -1
- package/lib/index.js +2 -1
- package/lib/routes-v07.js +9 -1
- package/package.json +3 -3
package/README.md
CHANGED
package/lib/bili-playback.js
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { spawn } from 'node:child_process';
|
|
22
22
|
import { mkdirSync } from 'node:fs';
|
|
23
|
-
import { homedir } from 'node:os';
|
|
24
23
|
import { join } from 'node:path';
|
|
25
24
|
import { detectBrowsers, pickBrowser } from './browsers.js';
|
|
26
25
|
import { dshHome } from './db.js';
|
|
@@ -30,33 +29,61 @@ const VIDEO_READY_TIMEOUT_MS = 25_000;
|
|
|
30
29
|
const POLL_MS = 1000;
|
|
31
30
|
|
|
32
31
|
/** 极简 CDP 客户端:连浏览器的 webSocketDebuggerUrl,按 sessionId 收发。 */
|
|
33
|
-
class Cdp {
|
|
32
|
+
export class Cdp {
|
|
34
33
|
constructor(ws) {
|
|
35
34
|
this.ws = ws;
|
|
36
35
|
this.nextId = 1;
|
|
37
36
|
this.pending = new Map();
|
|
37
|
+
this.closed = false;
|
|
38
38
|
ws.addEventListener('message', (ev) => {
|
|
39
39
|
let msg = null;
|
|
40
40
|
try { msg = JSON.parse(String(ev.data)); } catch { return; }
|
|
41
41
|
if (!msg?.id || !this.pending.has(msg.id)) return;
|
|
42
|
-
const { resolve, reject } = this.pending.get(msg.id);
|
|
42
|
+
const { resolve, reject, timer } = this.pending.get(msg.id);
|
|
43
43
|
this.pending.delete(msg.id);
|
|
44
|
+
clearTimeout(timer);
|
|
44
45
|
if (msg.error) reject(new Error(`${msg.error.message} (${msg.error.code})`));
|
|
45
46
|
else resolve(msg.result ?? {});
|
|
46
47
|
});
|
|
48
|
+
const disconnect = () => {
|
|
49
|
+
if (this.closed) return;
|
|
50
|
+
this.closed = true;
|
|
51
|
+
this.rejectAll(new Error('CDP 连接已关闭'));
|
|
52
|
+
};
|
|
53
|
+
ws.addEventListener('close', disconnect);
|
|
54
|
+
ws.addEventListener('error', disconnect);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
rejectAll(error) {
|
|
58
|
+
for (const { reject, timer } of this.pending.values()) {
|
|
59
|
+
clearTimeout(timer);
|
|
60
|
+
reject(error);
|
|
61
|
+
}
|
|
62
|
+
this.pending.clear();
|
|
47
63
|
}
|
|
48
64
|
|
|
49
|
-
send(method, params = {}, sessionId) {
|
|
65
|
+
send(method, params = {}, sessionId, { timeoutMs = 15_000 } = {}) {
|
|
66
|
+
if (this.closed) return Promise.reject(new Error('CDP 连接已关闭'));
|
|
50
67
|
const id = this.nextId++;
|
|
51
68
|
const msg = { id, method, params };
|
|
52
69
|
if (sessionId) msg.sessionId = sessionId;
|
|
53
70
|
return new Promise((resolve, reject) => {
|
|
54
|
-
|
|
55
|
-
|
|
71
|
+
const timer = setTimeout(() => {
|
|
72
|
+
this.pending.delete(id);
|
|
73
|
+
reject(new Error(`CDP ${method} 超过 ${timeoutMs}ms 未响应`));
|
|
74
|
+
}, timeoutMs);
|
|
75
|
+
this.pending.set(id, { resolve, reject, timer });
|
|
76
|
+
try { this.ws.send(JSON.stringify(msg)); } catch (error) {
|
|
77
|
+
clearTimeout(timer);
|
|
78
|
+
this.pending.delete(id);
|
|
79
|
+
reject(error);
|
|
80
|
+
}
|
|
56
81
|
});
|
|
57
82
|
}
|
|
58
83
|
|
|
59
84
|
close() {
|
|
85
|
+
this.closed = true;
|
|
86
|
+
this.rejectAll(new Error('CDP 连接已关闭'));
|
|
60
87
|
try { this.ws.close(); } catch { /* 已经关了 */ }
|
|
61
88
|
}
|
|
62
89
|
}
|
|
@@ -89,7 +116,8 @@ export class BiliPlayback {
|
|
|
89
116
|
}
|
|
90
117
|
|
|
91
118
|
cfg() {
|
|
92
|
-
const
|
|
119
|
+
const root = this.getConfig?.() ?? {};
|
|
120
|
+
const browse = (root.bili ?? root).browse ?? {};
|
|
93
121
|
return browse.playback ?? {};
|
|
94
122
|
}
|
|
95
123
|
|
|
@@ -212,7 +240,10 @@ export class BiliPlayback {
|
|
|
212
240
|
const ws = new WebSocket(wsUrl);
|
|
213
241
|
await new Promise((resolve, reject) => {
|
|
214
242
|
ws.addEventListener('open', resolve, { once: true });
|
|
215
|
-
ws.addEventListener('error', () =>
|
|
243
|
+
ws.addEventListener('error', () => {
|
|
244
|
+
try { ws.close(); } catch { /* 已经关了 */ }
|
|
245
|
+
reject(new Error('CDP 连接失败'));
|
|
246
|
+
}, { once: true });
|
|
216
247
|
});
|
|
217
248
|
const cdp = new Cdp(ws);
|
|
218
249
|
state.cdp = cdp;
|
|
@@ -242,7 +273,7 @@ export class BiliPlayback {
|
|
|
242
273
|
}, sessionId);
|
|
243
274
|
} catch { /* 单个 cookie 失败不致命 */ }
|
|
244
275
|
}
|
|
245
|
-
if (state.aborted)
|
|
276
|
+
if (state.aborted) return { ok: false, aborted: true, bvid };
|
|
246
277
|
await cdp.send('Page.navigate', { url: `https://www.bilibili.com/video/${bvid}` }, sessionId);
|
|
247
278
|
|
|
248
279
|
const evalJs = async (expression) => {
|
|
@@ -262,7 +293,7 @@ export class BiliPlayback {
|
|
|
262
293
|
return !v.paused || v.currentTime > 0;
|
|
263
294
|
})()`));
|
|
264
295
|
}
|
|
265
|
-
if (!started)
|
|
296
|
+
if (!started) return { ok: false, error: '播放器没起来', bvid };
|
|
266
297
|
|
|
267
298
|
const deadline = Date.now() + seconds * 1000 + 5000;
|
|
268
299
|
// 注意单位:currentTime 是「片子里的秒」,走完一条片子要 duration 秒的片子时间,
|
|
@@ -282,16 +313,14 @@ export class BiliPlayback {
|
|
|
282
313
|
if (last >= mediaTarget - 0.5) break; // 目标长度到了
|
|
283
314
|
}
|
|
284
315
|
state.played = last;
|
|
285
|
-
await closeTarget();
|
|
286
|
-
await release(cdp);
|
|
287
|
-
cdp.close();
|
|
288
316
|
return { ok: true, bvid, seconds, rate: speed, played: Math.round(last), aborted: state.aborted };
|
|
289
317
|
} catch (error) {
|
|
290
318
|
this.log('warn', `[fish-soul] 播放留痕失败(${bvid}):${String(error instanceof Error ? error.message : error)}`);
|
|
319
|
+
return { ok: false, bvid, error: String(error instanceof Error ? error.message : error) };
|
|
320
|
+
} finally {
|
|
291
321
|
try { await closeTarget(); } catch { /* 标签可能已经被收掉 */ }
|
|
292
322
|
try { await release(state.cdp); } catch { /* 浏览器已经没了 */ }
|
|
293
|
-
|
|
294
|
-
return { ok: false, bvid, error: String(error instanceof Error ? error.message : error) };
|
|
323
|
+
state.cdp?.close();
|
|
295
324
|
}
|
|
296
325
|
})();
|
|
297
326
|
|
package/lib/browse.js
CHANGED
|
@@ -80,7 +80,7 @@ export class BiliBrowser {
|
|
|
80
80
|
* @param {(level: string, msg: string) => void} [deps.log]
|
|
81
81
|
* @param {[number, number]} [deps.watchDelayMs] 两条视频之间"看"多久(真实毫秒)
|
|
82
82
|
*/
|
|
83
|
-
constructor({ db, clock, client, getConfig, callLlm, persona, worker, log, watchDelayMs = [8000, 20000], share, shareFallback, note, frames, playback
|
|
83
|
+
constructor({ db, clock, client, getConfig, callLlm, persona, worker, log, watchDelayMs = [8000, 20000], share, shareFallback, note, frames, playback }) {
|
|
84
84
|
this.share = share ?? null; // 刷到特别想分享的:交给自走层排一条主动消息(带链接)
|
|
85
85
|
// #133:模型没标 [分享] 时的兜底(最近几天没分享过就主动挑一条)。
|
|
86
86
|
// ⚠️ 漏了这个参数整个兜底就是死代码(afterRound 里 self.shareFallback 恒 undefined)。
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
* cookie 读取、inbox 的 failRead/markReadFailed),所以本项目既有打桩点不变。
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
import { getKv } from '../db.js';
|
|
18
|
+
import { sha1 } from './douyin-pure.js';
|
|
19
|
+
|
|
17
20
|
/**
|
|
18
21
|
* 读抖音 Cookie 明文(快路径要)。拿不到返回空串 —— 调用方退 DOM。
|
|
19
22
|
* @param {{ cookieHeader?: () => string }} http 注入的 DouyinHttp 实例
|
|
@@ -164,7 +167,7 @@ export async function resolveConversationList({ ctx, readAllConversations, readL
|
|
|
164
167
|
let batch = null;
|
|
165
168
|
if (ctx.douyinCookieText() !== '') {
|
|
166
169
|
try {
|
|
167
|
-
const r = await readAllConversations({ cookie: ctx.douyinCookieText(), limit:
|
|
170
|
+
const r = await readAllConversations({ cookie: ctx.douyinCookieText(), limit: readLimit });
|
|
168
171
|
if (r?.ok) batch = r;
|
|
169
172
|
else if (r?.kind === 'login') {
|
|
170
173
|
// Cookie 真失效:这里就说清楚,别拖到浏览器那层报一个难懂的错
|
|
@@ -247,7 +250,7 @@ export async function resolveConversationList({ ctx, readAllConversations, readL
|
|
|
247
250
|
* 拿到陌生人之后它只是个名字,`readViaHttp` 匹配不上会返回 null,
|
|
248
251
|
* 自动退回 DOM 建立身份 —— 这正是「第一次见」该走的路。
|
|
249
252
|
*/
|
|
250
|
-
if (Date.now() - (ctx._lastDomListAt ?? 0) >
|
|
253
|
+
if (Date.now() - (ctx._lastDomListAt ?? 0) > domListEveryMs) {
|
|
251
254
|
ctx._lastDomListAt = Date.now();
|
|
252
255
|
try {
|
|
253
256
|
const dom = await ctx.driver.list();
|
package/lib/client.models.js
CHANGED
|
@@ -192,6 +192,10 @@ window.__ModuleLoader__.load({
|
|
|
192
192
|
}
|
|
193
193
|
async function saveSessionAllow(v) { // #37 会话工具放行档位
|
|
194
194
|
const r = await api("POST", "/models/config", { sessionAllow: v });
|
|
195
|
+
async function saveDesktopAsMaster(v) {
|
|
196
|
+
const r = await api("POST", "/models/config", { tools: { desktopAsMaster: v } });
|
|
197
|
+
if (r.ok) setWeb(r.web);
|
|
198
|
+
}
|
|
195
199
|
if (!r?.ok) notify(r?.error ?? "保存失败");
|
|
196
200
|
else load();
|
|
197
201
|
}
|
|
@@ -212,6 +216,8 @@ window.__ModuleLoader__.load({
|
|
|
212
216
|
h(Seg, { label: "聊天会话能用哪些工具", value: w.sessionAllow ?? "memory", onChange: (v) => saveSessionAllow(v), options: [
|
|
213
217
|
{ value: "memory", label: "只记忆+上网" }, { value: "master", label: "只对主人放开" }, { value: "all", label: "全放开" }
|
|
214
218
|
] })),
|
|
219
|
+
Row({ title: "桌面会话继承主人身份", desc: "开着时任何 DSH 桌面会话都被当成主人,recall 能读到全部私聊记忆。同一台机器既跑工作会话又跑 QQ 人格时建议关掉" },
|
|
220
|
+
h(Switch, { label: "桌面会话继承主人身份", checked: w.desktopAsMaster !== false, onChange: (v) => saveDesktopAsMaster(v) })),
|
|
215
221
|
Row({ title: "搜索服务", desc: cur.id === "host" && w.hostState === "unknown" ? `${cur.hint}。插件这边检测不到不代表没有(DSH 的联网工具常按会话挂载),打开后问她一件最近的事试试;查成过一次这里会显示「用过」` : cur.hint },
|
|
216
222
|
Select({ value: cur.id, "aria-label": "搜索服务", onChange: (e) => { setResult(null); save({ provider: e.target.value }); } },
|
|
217
223
|
...providers.map((p) => h("option", { key: p.id, value: p.id }, p.id === "host" && w.hostState === "unknown" ? `${p.label}(没检测到)` : p.id === "host" && w.hostState === "seen" ? `${p.label}(用过)` : p.label)))),
|
package/lib/config-schema.js
CHANGED
|
@@ -119,7 +119,10 @@ export function fishSoulConfigSchema(z) {
|
|
|
119
119
|
baseURL: z.string().default('') // SearXNG 地址
|
|
120
120
|
}).default({}),
|
|
121
121
|
// #37 聊天会话(QQ / B站 / 抖音)放行哪些工具:memory 只放记忆 + 联网(默认)| master 主人的私聊会话放开宿主全部工具 | all 所有会话全放
|
|
122
|
-
sessionAllow: z.string().default('memory')
|
|
122
|
+
sessionAllow: z.string().default('memory'),
|
|
123
|
+
// #255:桌面会话(channel=dsh)是否继承主人身份(默认 true 保持现行为)。
|
|
124
|
+
// 关掉后 dsh 会话 ownerId 保持 UNKNOWN,recall 不返回私聊记忆。
|
|
125
|
+
desktopAsMaster: z.boolean().default(true)
|
|
123
126
|
}).default({}),
|
|
124
127
|
onboarding: z.object({ dismissed: z.boolean().default(false) }).default({}),
|
|
125
128
|
storage: z.object({ auto: z.boolean().default(true), keep: z.number().default(10), warnMB: z.number().default(1024), freeMB: z.number().default(512) }).default({}),
|
package/lib/index.js
CHANGED
|
@@ -610,7 +610,8 @@ async function startup(ctx, config, { log, gate }) {
|
|
|
610
610
|
let ownerId = sp?.ownerId ?? UNKNOWN_OWNER;
|
|
611
611
|
let person = sp?.person ?? null;
|
|
612
612
|
// #57:桌面端(dsh channel)认作主人——DSH 桌面端是主人自己的环境,没有"别人"。
|
|
613
|
-
|
|
613
|
+
// #255:可关。关掉后 dsh 会话保持 UNKNOWN_OWNER,recall 不再返回私聊记忆。
|
|
614
|
+
if (ch === 'dsh' && ownerId === UNKNOWN_OWNER && (getConfig().tools?.desktopAsMaster !== false)) {
|
|
614
615
|
person = ensureMasterPerson(db, clock.now());
|
|
615
616
|
ownerId = `user:${person.canonical_id}`;
|
|
616
617
|
}
|
package/lib/routes-v07.js
CHANGED
|
@@ -122,7 +122,8 @@ export async function handleV07Route({ method, path, url, req, res, send, readBo
|
|
|
122
122
|
enabled: w.enabled, perDay: w.perDay, usedToday: webUsedToday?.() ?? 0, available: hasWebTools?.() === true,
|
|
123
123
|
provider: w.provider, providers: WEB_PROVIDERS, hostAvailable: hostWebAvailable?.() === true, hostState: hostWebState?.() ?? 'unknown',
|
|
124
124
|
hasApiKey: w.apiKey !== '', apiKeyMasked: maskKey(w.apiKey), baseURL: w.baseURL,
|
|
125
|
-
sessionAllow: gateway?.sessionAllowMode?.() ?? 'memory' // #37 聊天会话工具放行档位
|
|
125
|
+
sessionAllow: gateway?.sessionAllowMode?.() ?? 'memory', // #37 聊天会话工具放行档位
|
|
126
|
+
desktopAsMaster: getConfig().tools?.desktopAsMaster !== false // #255 桌面会话是否继承主人身份(默认 true)
|
|
126
127
|
};
|
|
127
128
|
};
|
|
128
129
|
|
|
@@ -180,6 +181,13 @@ export async function handleV07Route({ method, path, url, req, res, send, readBo
|
|
|
180
181
|
if (v === 'memory' || v === 'master' || v === 'all') tools.sessionAllow = v;
|
|
181
182
|
patch.tools = tools;
|
|
182
183
|
}
|
|
184
|
+
// #255:桌面会话认主开关(默认 true)
|
|
185
|
+
if (typeof b.desktopAsMaster === 'boolean' || typeof b.tools?.desktopAsMaster === 'boolean') {
|
|
186
|
+
const v = typeof b.tools?.desktopAsMaster === 'boolean' ? b.tools.desktopAsMaster : b.desktopAsMaster;
|
|
187
|
+
const tools = patch.tools ?? {};
|
|
188
|
+
tools.desktopAsMaster = v;
|
|
189
|
+
patch.tools = tools;
|
|
190
|
+
}
|
|
183
191
|
saveConfig(patch);
|
|
184
192
|
send(200, { ok: true, web: webState() });
|
|
185
193
|
return true;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-fish-soul",
|
|
3
|
-
"version": "0.19.
|
|
4
|
-
"description": "鱼 · 人格、按人记忆(可纠正、有印象、能导入旧聊天记录)、日程自走与主动开口,直连 SnowLuma 收发 QQ(群里会自己插话),B站 / 抖音小号私信与自己刷视频;按功能选模型并统计用量花费,能听会说 QQ 语音、收藏表情包、学群里的梗,可选上网查;心情影响说话、去 AI 味、每个群的设定、按聊天选模型、每晚写日记、每周记忆存档与可选周记(DSH 插件,单角色 feiyu
|
|
3
|
+
"version": "0.19.18",
|
|
4
|
+
"description": "鱼 · 人格、按人记忆(可纠正、有印象、能导入旧聊天记录)、日程自走与主动开口,直连 SnowLuma 收发 QQ(群里会自己插话),B站 / 抖音小号私信与自己刷视频;按功能选模型并统计用量花费,能听会说 QQ 语音、收藏表情包、学群里的梗,可选上网查;心情影响说话、去 AI 味、每个群的设定、按聊天选模型、每晚写日记、每周记忆存档与可选周记(DSH 插件,单角色 feiyu)",
|
|
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/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-meta-lines.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/issue-239-maxtokens-wire.mjs && node test/issue-239-maxtokens.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 && node test/issue-244-paragraph-split.mjs && node test/issue-244-cleanout-e2e.mjs && node test/issue-247-media-url.mjs && node test/check-fork-pr-gate.mjs && node test/check-pr-hygiene.mjs && node test/check-import-cycles.mjs && node test/check-file-size-budget.mjs && node test/check-file-size-budget-rule.mjs && node test/check-silent-catch.mjs && node test/check-silent-catch-rule.mjs && node test/douyin-fastpath.mjs && node test/douyin-post-id-backfill.mjs && node test/douyin-canary-panel.mjs && node test/douyin-note-text.mjs && node test/bili-playback.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-meta-lines.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/dsh-desktop-as-master.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/issue-239-maxtokens-wire.mjs && node test/issue-239-maxtokens.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 && node test/issue-244-paragraph-split.mjs && node test/issue-244-cleanout-e2e.mjs && node test/issue-247-media-url.mjs && node test/check-fork-pr-gate.mjs && node test/check-pr-hygiene.mjs && node test/check-import-cycles.mjs && node test/check-file-size-budget.mjs && node test/check-file-size-budget-rule.mjs && node test/check-silent-catch.mjs && node test/check-silent-catch-rule.mjs && node test/douyin-fastpath.mjs && node test/douyin-post-id-backfill.mjs && node test/douyin-canary-panel.mjs && node test/douyin-note-text.mjs && node test/bili-playback.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"
|