dsh-fish-soul 0.19.19 → 0.19.20
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/client.soul.js +10 -6
- package/lib/life.js +82 -6
- package/package.json +2 -2
package/README.md
CHANGED
package/lib/client.soul.js
CHANGED
|
@@ -943,12 +943,16 @@ window.__ModuleLoader__.load({
|
|
|
943
943
|
const dreamKey = x.id ?? `${x.at}-${x.name}-${i}`;
|
|
944
944
|
const head = [
|
|
945
945
|
h("span", { className: "fs-step-dot", "data-tone": "success", key: "d", "aria-hidden": true }),
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
946
|
+
// #252 ②:合并重复也要说出来 —— 「留新的、旧的标已替换」如果面板不显示,
|
|
947
|
+
// 主人只会觉得某条记忆莫名其妙没了(这批设计的前提就是「能查、能恢复」)。
|
|
948
|
+
h("span", { className: "fs-item-main", key: "m" }, `${x.name}:${[x.profile ? "更新了印象" : "", x.outdated?.length ? `${x.outdated.length} 条记忆判为过时` : "", x.merged?.length ? `${x.merged.length} 条重复记忆合并到新说法` : ""].filter(Boolean).join(",")}`),
|
|
949
|
+
h("span", { className: "fs-item-meta", key: "t" }, h("span", { className: "num" }, relTime(x.at, now)))];
|
|
950
|
+
const rows = [...(x.outdated ?? []).map((o) => `#${o.id}「${o.content}」→ #${o.by}:${o.reason}`),
|
|
951
|
+
...(x.merged ?? []).map((o) => `#${o.id}「${o.content}」和 #${o.by} 说的是同一件事,已合并`)]; // #252 ②
|
|
952
|
+
if (rows.length === 0) return h("div", { className: "fs-step", key: dreamKey }, h("div", { className: "fs-step-head" }, ...head));
|
|
953
|
+
return h("details", { className: "fs-step", key: dreamKey },
|
|
954
|
+
h("summary", { className: "fs-step-head" }, ...head, ui.Icon("chevron", 12)),
|
|
955
|
+
h("div", { className: "fs-step-body" }, h("ul", null, rows.map((line, j) => h("li", { key: j }, line)))));
|
|
952
956
|
})))) : null,
|
|
953
957
|
section === "stickers" ? h(StickerShelf, { api, apiBase, notify, relTime, ui }) : null,
|
|
954
958
|
section === "slang" ? h(SlangShelf, { api, notify, relTime, ui }) : null);
|
package/lib/life.js
CHANGED
|
@@ -1102,12 +1102,12 @@ export class LifeEngine {
|
|
|
1102
1102
|
};
|
|
1103
1103
|
try {
|
|
1104
1104
|
const latestRows = this.db.prepare(`
|
|
1105
|
-
SELECT id, kind, content, emotion, importance, created_at, channel, channel_id FROM memory
|
|
1105
|
+
SELECT id, kind, content, emotion, importance, importance_locked, created_at, channel, channel_id, about FROM memory
|
|
1106
1106
|
WHERE character_id = 'feiyu' AND owner_id = ? AND status = 'active' AND valid_to IS NULL
|
|
1107
1107
|
ORDER BY created_at DESC LIMIT 35
|
|
1108
1108
|
`).all(ownerId);
|
|
1109
1109
|
const coreRows = this.db.prepare(`
|
|
1110
|
-
SELECT id, kind, content, emotion, importance, created_at, channel, channel_id FROM memory
|
|
1110
|
+
SELECT id, kind, content, emotion, importance, importance_locked, created_at, channel, channel_id, about FROM memory
|
|
1111
1111
|
WHERE character_id = 'feiyu' AND owner_id = ? AND status = 'active' AND valid_to IS NULL AND kind = 'fact' AND importance >= 3
|
|
1112
1112
|
ORDER BY importance DESC, updated_at DESC LIMIT 15
|
|
1113
1113
|
`).all(ownerId);
|
|
@@ -1144,13 +1144,20 @@ export class LifeEngine {
|
|
|
1144
1144
|
`"suggestedRelationStage":"stranger|acquaintance|friend|close|null"` +
|
|
1145
1145
|
(writeProfile ? `,"profileFields":{${PROFILE_FIELDS.map(([k, l]) => `"${k}":"${l}(≤30 字,不知道就空)"`).join(',')}}` : '') +
|
|
1146
1146
|
',"outdated":[{"id":旧记忆编号,"by":推翻它的新记忆编号,"reason":"..."}],' +
|
|
1147
|
-
'"corrected":[{"id":记错的记忆编号,"reason":"原文说的是什么,这条记错在哪"}]
|
|
1147
|
+
'"corrected":[{"id":记错的记忆编号,"reason":"原文说的是什么,这条记错在哪"}],' +
|
|
1148
|
+
'"duplicates":[[编号,编号,...]]}。' +
|
|
1148
1149
|
// 两种失效必须分开填,别混:
|
|
1149
1150
|
// outdated = 曾经是真的,后来事情变了(搬家、换工作、分手)⇒ 要填 by(哪条新记忆说明的)。
|
|
1150
1151
|
// corrected = 从来没真过,是记错了或听信了对方随口编的 ⇒ 不要填 by,
|
|
1151
1152
|
// reason 里写「原文实际说的是什么」,因为这条会从历史真相里彻底排除。
|
|
1152
1153
|
'outdated 只填被更新的记忆明确推翻的旧事实(比如搬家、换工作、分手),拿不准就空着;' +
|
|
1153
1154
|
'corrected 只填和原文明确冲突的(下面给了原文时才有意义),拿不准就空着 —— 宁可漏填,别把真事判成记错。' +
|
|
1155
|
+
// 合并重复(#252 ②):同义不同字的两条(「不学吉他了」/「吉他课停了」)字面相似度很低,
|
|
1156
|
+
// 只有看见全部记忆的模型判得出来 —— 写入路径的 Jaccard 去重天生抓不到这种。
|
|
1157
|
+
// 合并是**留最新那条、旧的标「已替换」**(主人可在设置页恢复),不是删除,所以宁严不宽:
|
|
1158
|
+
// 只是补充细节、或者互相冲突的都不算重复(冲突用 outdated)。
|
|
1159
|
+
'duplicates 只填「说的是同一件事、只是换了说法」的记忆编号分组(每组 2~4 个编号,必须都在上面的近期记忆里),' +
|
|
1160
|
+
'拿不准就空着 —— 宁可漏合并,别把两件不同的事并成一件。' +
|
|
1154
1161
|
// #167:模型不知道今天是几号就会自己猜。写进印象的绝对日期一律以开头给的「今天」为准。
|
|
1155
1162
|
'要写具体日期(几月几号)时以开头给的「今天」为准,别自己估;不确定就写相对说法,别编一个日期。' +
|
|
1156
1163
|
(profile ? `现在的印象:${profile.text}。` : '') +
|
|
@@ -1172,6 +1179,7 @@ export class LifeEngine {
|
|
|
1172
1179
|
const byId = new Map(recent.map((m) => [m.id, m]));
|
|
1173
1180
|
const outdated = [];
|
|
1174
1181
|
const corrected = [];
|
|
1182
|
+
const mergedDupes = [];
|
|
1175
1183
|
this.db.exec('BEGIN');
|
|
1176
1184
|
try {
|
|
1177
1185
|
// 兜底补写 pending(审查 #02)
|
|
@@ -1197,12 +1205,80 @@ export class LifeEngine {
|
|
|
1197
1205
|
// 新登记的待办要重新挂闹钟,否则要等下一轮 tick 才发现它(#80)
|
|
1198
1206
|
this.armPendingAlarm();
|
|
1199
1207
|
}
|
|
1208
|
+
// 合并重复(#252 ②):模型判「说的是同一件事」的几条 → 留最新那条,其余标「已替换」。
|
|
1209
|
+
// 🔴 合并是语义上不可逆的损失,只**标状态**、一行都不删:victim 留在库里,
|
|
1210
|
+
// valid_to + superseded_by 记清出处,设置页能恢复(同 outdated / corrected)。
|
|
1211
|
+
// 🔴 顺序必须在这里(outdated / corrected 之前):那两个循环会把行标成非 active,
|
|
1212
|
+
// 而 byId 是模型调用前的快照,之后就看不出状态了 —— 先合并再失效,
|
|
1213
|
+
// 避免把一条刚被判「记错」的行当成「留下来的新说法」。
|
|
1214
|
+
// 🔴 保守闸(宁可漏合,别把两件事并成一件):
|
|
1215
|
+
// ① recent 已按 owner 过滤 ⇒ 只并同一个人;再要求 `about` 一致 ——
|
|
1216
|
+
// 「小明在准备考研」和「主人在准备考研」字面很像,但记的是两个人(同 soul-memory
|
|
1217
|
+
// 那条「记错人比不记坏得多」的立场);
|
|
1218
|
+
// ② 只并 fact / event / feeling —— episode / weekly 的语义是「某段时间」;
|
|
1219
|
+
// ③ importance >= 5 或 importance_locked = 1 的一条都不动(主人钉住的);
|
|
1220
|
+
// ④ 组内 2~4 条(和提示词一致),认不出的编号先剔掉再数。
|
|
1221
|
+
// 🔴 周记引用 **不排除**,改成合并前把 weekly_source 改指 keep:
|
|
1222
|
+
// 排他式保护会让功能在真机上几乎失效(真机库里 self 449/558 条被周记引用),
|
|
1223
|
+
// 而 weekly_source 本身不受触发器监视 —— 先把来源从 victim 挪到 keep,
|
|
1224
|
+
// victim 后来的 status 变化就匹配不到任何 summary,连坐不会发生,
|
|
1225
|
+
// 周记还继续算「有效」(它的来源换成了同一件事的新说法)。
|
|
1226
|
+
// 模型这一轮自己说要推翻 / 说记错的那几条,不能当「留下来的新说法」——
|
|
1227
|
+
// 它们是即将失效的行(byId 是模型调用前的快照,这里看不出状态变化)。
|
|
1228
|
+
const doomed = new Set();
|
|
1229
|
+
for (const o of [...(Array.isArray(parsed.outdated) ? parsed.outdated : []), ...(Array.isArray(parsed.corrected) ? parsed.corrected : [])]) {
|
|
1230
|
+
const n = Number(o?.id);
|
|
1231
|
+
if (Number.isInteger(n)) doomed.add(n);
|
|
1232
|
+
}
|
|
1233
|
+
/** 这一轮被并掉的行:后面的组不能再拿它当 keep,outdated 也不能指向它。 */
|
|
1234
|
+
const mergedAway = new Set();
|
|
1235
|
+
/** victim 上挂着的周记来源改指 keep(weekly_source 有 UNIQUE(source_id),要删了再插)。 */
|
|
1236
|
+
const repointWeekly = (victimId, keepId) => {
|
|
1237
|
+
const sums = this.db.prepare('SELECT summary_id FROM weekly_source WHERE source_id = ?').all(victimId);
|
|
1238
|
+
if (sums.length === 0) return;
|
|
1239
|
+
this.db.prepare('DELETE FROM weekly_source WHERE source_id = ?').run(victimId);
|
|
1240
|
+
const ins = this.db.prepare('INSERT OR IGNORE INTO weekly_source (summary_id, source_id) VALUES (?, ?)');
|
|
1241
|
+
for (const s of sums) ins.run(s.summary_id, keepId);
|
|
1242
|
+
};
|
|
1243
|
+
for (const group of (Array.isArray(parsed.duplicates) ? parsed.duplicates : []).slice(0, 3)) {
|
|
1244
|
+
if (!Array.isArray(group)) continue;
|
|
1245
|
+
const rows = [];
|
|
1246
|
+
for (const raw of group) {
|
|
1247
|
+
const row = byId.get(Number(raw));
|
|
1248
|
+
if (row === undefined) continue;
|
|
1249
|
+
if (!['fact', 'event', 'feeling'].includes(String(row.kind))) continue;
|
|
1250
|
+
if ((row.importance ?? 1) >= 5 || Number(row.importance_locked ?? 0) === 1) continue;
|
|
1251
|
+
if (doomed.has(row.id) || mergedAway.has(row.id)) continue;
|
|
1252
|
+
if (rows.some((x) => x.id === row.id)) continue;
|
|
1253
|
+
// about 必须一致(「关于谁」不同就不是同一件事)
|
|
1254
|
+
if (rows.length > 0 && String(rows[0].about ?? '') !== String(row.about ?? '')) continue;
|
|
1255
|
+
rows.push(row);
|
|
1256
|
+
}
|
|
1257
|
+
// 编号对不上库里的行(模型编的)会在上面被 continue 掉;剩一条时什么都不做。
|
|
1258
|
+
if (rows.length < 2 || rows.length > 4) continue;
|
|
1259
|
+
// 留最新那条(同一时刻就用编号大的,跟 created_at 同序)
|
|
1260
|
+
rows.sort((a, b) => (b.created_at - a.created_at) || (b.id - a.id));
|
|
1261
|
+
const keep = rows[0];
|
|
1262
|
+
for (const old of rows.slice(1)) {
|
|
1263
|
+
if (mergedDupes.length >= 6) break;
|
|
1264
|
+
// changes === 0 = 这条已经被前面的组标过了(或者已经不是 active),不重复记。
|
|
1265
|
+
// UPDATE 里再夹一次 ★5 / 锁住 —— 快照到现在,主人可能刚把它锁上。
|
|
1266
|
+
repointWeekly(old.id, keep.id);
|
|
1267
|
+
const r = this.db.prepare("UPDATE memory SET status = 'outdated', invalid_kind = 'superseded', valid_to = ?, superseded_by = ?, updated_at = ? WHERE id = ? AND status = 'active' AND valid_to IS NULL AND importance < 5 AND COALESCE(importance_locked, 0) = 0")
|
|
1268
|
+
.run(nowVirtual, keep.id, nowVirtual, old.id);
|
|
1269
|
+
if (r.changes === 0) continue;
|
|
1270
|
+
this.db.prepare('DELETE FROM vec WHERE memory_id = ?').run(old.id);
|
|
1271
|
+
mergedAway.add(old.id);
|
|
1272
|
+
mergedDupes.push({ id: old.id, by: keep.id, content: String(old.content ?? '').slice(0, 80) });
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1200
1275
|
// 被推翻的旧记忆:只认这批里有的编号,新的必须比旧的晚
|
|
1201
1276
|
for (const o of (Array.isArray(parsed.outdated) ? parsed.outdated : [])) {
|
|
1202
1277
|
if (outdated.length >= 3) break;
|
|
1203
1278
|
const old = byId.get(Number(o?.id));
|
|
1204
1279
|
const by = byId.get(Number(o?.by));
|
|
1205
|
-
|
|
1280
|
+
// by 不能是本轮刚被并掉的行(否则 superseded_by 指向一条已失效的记忆)
|
|
1281
|
+
if (!old || !by || old.id === by.id || mergedAway.has(by.id) || by.created_at < old.created_at || (old.importance ?? 1) >= 5) continue;
|
|
1206
1282
|
this.db.prepare("UPDATE memory SET status = 'outdated', invalid_kind = 'superseded', valid_to = ?, superseded_by = ?, updated_at = ? WHERE id = ? AND status = 'active'")
|
|
1207
1283
|
.run(nowVirtual, by.id, nowVirtual, old.id);
|
|
1208
1284
|
this.db.prepare('DELETE FROM vec WHERE memory_id = ?').run(old.id);
|
|
@@ -1257,13 +1333,13 @@ export class LifeEngine {
|
|
|
1257
1333
|
try { settleAffinity(this.db, person.canonical_id, 0, nowVirtual); } catch { /* 老库没有列 */ }
|
|
1258
1334
|
try { ensureBirthdayPending(this.db, ownerId, name, nowVirtual); } catch { /* 不要紧 */ }
|
|
1259
1335
|
}
|
|
1260
|
-
if (outdated.length > 0 || corrected.length > 0 || (writeProfile && profileText !== '')) {
|
|
1336
|
+
if (outdated.length > 0 || corrected.length > 0 || mergedDupes.length > 0 || (writeProfile && profileText !== '')) {
|
|
1261
1337
|
const logs = getKv(this.db, 'dream.log', []) ?? [];
|
|
1262
1338
|
// transcriptLines:这次带了几行原文(0 = 没带)。
|
|
1263
1339
|
// 没有这个数,从外面根本看不出「对照原文」到底生效了没有 ——
|
|
1264
1340
|
// 加了开关却没观测点,是上次表情包那轮踩过的坑。
|
|
1265
1341
|
logs.unshift({
|
|
1266
|
-
at: Date.now(), ownerId, name, outdated, corrected,
|
|
1342
|
+
at: Date.now(), ownerId, name, outdated, corrected, merged: mergedDupes,
|
|
1267
1343
|
profile: writeProfile && profileText !== '',
|
|
1268
1344
|
transcriptLines: transcriptLines === '' ? 0 : transcriptLines.split('\n').length,
|
|
1269
1345
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-fish-soul",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.20",
|
|
4
4
|
"description": "鱼 · 人格、按人记忆(可纠正、有印象、能导入旧聊天记录)、日程自走与主动开口,直连 SnowLuma 收发 QQ(群里会自己插话),B站 / 抖音小号私信与自己刷视频;按功能选模型并统计用量花费,能听会说 QQ 语音、收藏表情包、学群里的梗,可选上网查;心情影响说话、去 AI 味、每个群的设定、按聊天选模型、每晚写日记、每周记忆存档与可选周记(DSH 插件,单角色 feiyu)",
|
|
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-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/prompts.mjs && node test/prompts-route.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/retrieval-tier-weights.mjs && node test/retrieval-tier-weights-route.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/desktop-as-master-switch.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/prompts.mjs && node test/prompts-route.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/retrieval-tier-weights.mjs && node test/retrieval-tier-weights-route.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/desktop-as-master-switch.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/dream-merge-duplicates.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"
|