dsh-fish-soul 0.16.1 → 0.16.3
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.js +9 -7
- package/lib/client.soul.js +21 -0
- package/lib/config-schema.js +1 -0
- package/lib/gateway.js +32 -4
- package/lib/index.js +68 -7
- package/lib/llm.js +4 -0
- package/lib/routes-v07.js +29 -1
- package/lib/routes.js +1 -0
- package/lib/stickers.js +72 -2
- package/package.json +2 -2
package/README.md
CHANGED
package/lib/client.js
CHANGED
|
@@ -504,7 +504,7 @@ window.__ModuleLoader__.load({
|
|
|
504
504
|
const [busy, setBusy] = react.useState(false);
|
|
505
505
|
const [form, setForm, patch] = useForm(data, () => ({
|
|
506
506
|
enabled: qq.enabled === true, wsUrl: qq.wsUrl ?? "ws://127.0.0.1:3001", accessToken: "", masterQqUin: data.masterQqUin ?? "",
|
|
507
|
-
groupAllowList: (qq.groupAllowList ?? []).join(", "), allGroups: qq.allGroups === true, followUpCount: qq.followUpCount ?? 3, followUpSeconds: qq.followUpSeconds ?? 120, batchMs: qq.batchMs ?? 3000, replyWindowMinutes: qq.replyWindowMinutes ?? 120,
|
|
507
|
+
groupAllowList: (qq.groupAllowList ?? []).join(", "), allGroups: qq.allGroups === true, mentionOnly: qq.mentionOnly === true, followUpCount: qq.followUpCount ?? 3, followUpSeconds: qq.followUpSeconds ?? 120, batchMs: qq.batchMs ?? 3000, replyWindowMinutes: qq.replyWindowMinutes ?? 120,
|
|
508
508
|
callNames: (qq.callNames ?? []).join(", "), ij: { ...(qq.interject ?? {}), chance: Math.round((qq.interject?.chance ?? 0.05) * 100), keywords: (qq.interject?.keywords ?? []).join(", ") },
|
|
509
509
|
stickersPerDay: qq.stickers?.perDay ?? 10,
|
|
510
510
|
ga: { enabled: qq.groupAdmin?.enabled === true, groupId: qq.groupAdmin?.groupId ?? "", announce: qq.groupAdmin?.announce !== false, autoApprove: qq.groupAdmin?.autoApprove !== false }
|
|
@@ -516,7 +516,7 @@ window.__ModuleLoader__.load({
|
|
|
516
516
|
setForm(next);
|
|
517
517
|
const res = await api("POST", "/channels/qq-config", {
|
|
518
518
|
enabled: next.enabled, wsUrl: next.wsUrl, ...(next.accessToken !== "" ? { accessToken: next.accessToken } : {}),
|
|
519
|
-
masterQqUin: next.masterQqUin, groupAllowList: split(next.groupAllowList), allGroups: next.allGroups === true,
|
|
519
|
+
masterQqUin: next.masterQqUin, groupAllowList: split(next.groupAllowList), allGroups: next.allGroups === true, mentionOnly: next.mentionOnly === true,
|
|
520
520
|
followUpCount: Number(next.followUpCount), followUpSeconds: Number(next.followUpSeconds), batchMs: Number(next.batchMs), replyWindowMinutes: Number(next.replyWindowMinutes), callNames: split(next.callNames),
|
|
521
521
|
interject: { enabled: next.ij.enabled === true, chance: Number(next.ij.chance) / 100, cooldownMinutes: Number(next.ij.cooldownMinutes), maxPerHour: Number(next.ij.maxPerHour), keywords: split(next.ij.keywords) },
|
|
522
522
|
groupAdmin: { enabled: next.ga.enabled === true, groupId: next.ga.groupId, announce: next.ga.announce === true, autoApprove: next.ga.autoApprove === true }
|
|
@@ -549,7 +549,9 @@ window.__ModuleLoader__.load({
|
|
|
549
549
|
form.enabled ? Row({ title: "主人 QQ" }, field("masterQqUin", { inputMode: "numeric" })) : null,
|
|
550
550
|
form.enabled ? Row({ title: "所有群" }, h(Switch, { label: "所有群", checked: form.allGroups, onChange: (v) => save({ allGroups: v }) }), Muted(form.allGroups ? "任何群里 @ 都回" : "只回下面列的群")) : null,
|
|
551
551
|
form.enabled && !form.allGroups ? Row({ title: "只在这些群" }, field("groupAllowList", { placeholder: "群号,逗号分隔;空 = 谁都不回" })) : null,
|
|
552
|
-
form.enabled ? Row({ title: "
|
|
552
|
+
form.enabled ? Row({ title: "群里只回点名", desc: "打开后:只在她被 @ 或叫名字时开口,关掉「接着听」和「自己想插一句」。几个机器人待在同一个群、互相接话刷屏时打开它" },
|
|
553
|
+
h(Switch, { label: "群里只回点名", checked: form.mentionOnly === true, onChange: (v) => save({ mentionOnly: v }) })) : null,
|
|
554
|
+
form.enabled && !form.mentionOnly ? Row({ title: "点名后接着听" },
|
|
553
555
|
Num({ min: 0, max: 20, value: form.followUpCount, "aria-label": "条数", onChange: (e) => patch({ followUpCount: e.target.value }), onBlur: () => save() }), Muted("条"),
|
|
554
556
|
Num({ min: 0, max: 1800, value: form.followUpSeconds, "aria-label": "秒数", onChange: (e) => patch({ followUpSeconds: e.target.value }), onBlur: () => save() }), Muted("秒")) : null,
|
|
555
557
|
form.enabled ? Row({ title: "连着发几条时", desc: "你连着发消息,她等你停手再一起回;0 = 每条都回" },
|
|
@@ -567,10 +569,10 @@ window.__ModuleLoader__.load({
|
|
|
567
569
|
form.enabled && form.ga.enabled ? Row({ title: "入群申请" },
|
|
568
570
|
h(Switch, { label: "自动同意", checked: form.ga.autoApprove === true, onChange: (v) => save({ ga: { ...form.ga, autoApprove: v } }) }),
|
|
569
571
|
Muted(form.ga.autoApprove === true ? "有人申请就同意" : "私聊通知你,回「/鱼 同意」或「/鱼 拒绝」")) : null,
|
|
570
|
-
form.enabled ? Row({ title: "群里主动插话" }, h(Switch, { label: "群里主动插话", checked: ij.enabled === true, onChange: (v) => save({ ij: { ...ij, enabled: v } }) })) : null,
|
|
571
|
-
form.enabled && ij.enabled ? Row({ title: "插话概率" }, ijNum("chance", "插话概率", 0, 100), Muted("%"), ijNum("maxPerHour", "每小时最多", 0, 30), Muted("次/小时")) : null,
|
|
572
|
-
form.enabled && ij.enabled ? Row({ title: "说完话后冷却" }, ijNum("cooldownMinutes", "冷却", 0, 1440), Muted("分钟")) : null,
|
|
573
|
-
form.enabled && ij.enabled ? Row({ title: "感兴趣的话题" }, Input({ value: ij.keywords ?? "", placeholder: "猫, 原神, 考研", onChange: (e) => patch({ ij: { ...ij, keywords: e.target.value } }), onBlur: () => save() })) : null,
|
|
572
|
+
form.enabled && !form.mentionOnly ? Row({ title: "群里主动插话" }, h(Switch, { label: "群里主动插话", checked: ij.enabled === true, onChange: (v) => save({ ij: { ...ij, enabled: v } }) })) : null,
|
|
573
|
+
form.enabled && !form.mentionOnly && ij.enabled ? Row({ title: "插话概率" }, ijNum("chance", "插话概率", 0, 100), Muted("%"), ijNum("maxPerHour", "每小时最多", 0, 30), Muted("次/小时")) : null,
|
|
574
|
+
form.enabled && !form.mentionOnly && ij.enabled ? Row({ title: "说完话后冷却" }, ijNum("cooldownMinutes", "冷却", 0, 1440), Muted("分钟")) : null,
|
|
575
|
+
form.enabled && !form.mentionOnly && ij.enabled ? Row({ title: "感兴趣的话题" }, Input({ value: ij.keywords ?? "", placeholder: "猫, 原神, 考研", onChange: (e) => patch({ ij: { ...ij, keywords: e.target.value } }), onBlur: () => save() })) : null,
|
|
574
576
|
form.enabled ? Row({ title: "收藏表情包", desc: qq.stickers?.collect !== false ? undefined : "看到喜欢的表情会存下来,之后自己用" },
|
|
575
577
|
h(Switch, { label: "收藏表情包", checked: qq.stickers?.collect !== false, onChange: (v) => run("/stickers/config", { collect: v }, v ? "会收藏喜欢的表情了" : "不再收藏表情", "保存失败") }),
|
|
576
578
|
Num({ min: 0, max: 100, value: form.stickersPerDay, "aria-label": "每天收藏几张", onChange: (e) => patch({ stickersPerDay: e.target.value }), onBlur: () => { if (form.stickersPerDay !== "") run("/stickers/config", { perDay: form.stickersPerDay }, "每天的上限改了", "保存失败"); } }),
|
package/lib/client.soul.js
CHANGED
|
@@ -680,6 +680,22 @@ window.__ModuleLoader__.load({
|
|
|
680
680
|
if (errors.length > 0) notify(errors.join(";"));
|
|
681
681
|
load();
|
|
682
682
|
}
|
|
683
|
+
// 没标签的进不了「按感觉挑」的池子(pickByFeel 只认有标签的),所以这个数字是问题的入口
|
|
684
|
+
const untaggedCount = items.filter((x) => (x.tags ?? []).length === 0).length;
|
|
685
|
+
async function backfill() {
|
|
686
|
+
setBusy(true);
|
|
687
|
+
const r = await api("POST", "/stickers/backfill", { workspacePath: data.workspacePath ?? "" });
|
|
688
|
+
setBusy(false);
|
|
689
|
+
if (!r?.ok) { notify(r?.error ?? "补标签失败"); return; }
|
|
690
|
+
const parts = [`${r.tagged} 张打上了标签`];
|
|
691
|
+
if (r.skipped > 0) parts.push(`${r.skipped} 张没打上`);
|
|
692
|
+
if (r.embedded > 0) parts.push(`${r.embedded} 张补了向量`);
|
|
693
|
+
notify(parts.join(","));
|
|
694
|
+
// 一张都没打上时把后端给的失败原因直接显示出来,别让人去翻日志
|
|
695
|
+
if (r.hint) notify(`为什么没打上:${r.hint}`);
|
|
696
|
+
load();
|
|
697
|
+
}
|
|
698
|
+
|
|
683
699
|
return Group({ title: "表情包", aside: items.length ? Tag(String(items.length), "outline") : null },
|
|
684
700
|
// B站 私信能用平台自带的表情:正文写 [doge] 这种码,服务端自己渲染成图。
|
|
685
701
|
// 默认关——要打一次面板接口,且面板按账号不同,先确认拿得到再开。
|
|
@@ -712,6 +728,11 @@ window.__ModuleLoader__.load({
|
|
|
712
728
|
} }),
|
|
713
729
|
Button({ variant: "ghost", disabled: busy, "aria-label": "导入本地图片", onClick: () => picker.current?.click() }, busy ? "导入中…" : "选图导入"),
|
|
714
730
|
Muted("不占每天收藏的额度")),
|
|
731
|
+
// 老表情补标签:没标签的进不了「按感觉挑」的池子,她就只会反复用那几张有标签的
|
|
732
|
+
Row({ title: "给没标签的表情补标签",
|
|
733
|
+
desc: `让模型看一眼图,打上「得意 / 看戏 / 表示同意」这类短词,之后她才能按感觉挑。现在 ${untaggedCount} 张没标签` },
|
|
734
|
+
Button({ variant: "ghost", disabled: busy || untaggedCount === 0, "aria-label": "补标签", onClick: backfill }, busy ? "补标签中…" : "补标签"),
|
|
735
|
+
untaggedCount === 0 ? Muted("都打上了") : null),
|
|
715
736
|
items.length === 0 ? Empty("还没有表情包。聊天里看到喜欢的,她会自己存下来;你也可以直接把图片放进工作区的 _stickers 目录") : h("div", { className: "fs-stickers" }, items.slice(0, 60).map((x) => h(StickerCard, { key: `${x.workspacePath}/${x.file}`, x, api, apiBase, notify, refresh: load, relTime, ui, onRemove: remove }))));
|
|
716
737
|
}
|
|
717
738
|
|
package/lib/config-schema.js
CHANGED
|
@@ -14,6 +14,7 @@ export function fishSoulConfigSchema(z) {
|
|
|
14
14
|
followUpCount: z.number().default(3),
|
|
15
15
|
followUpSeconds: z.number().default(120),
|
|
16
16
|
followUpSmart: z.boolean().default(false), // #59 她自己说"这轮聊完了"就不接着听(默认关)
|
|
17
|
+
mentionOnly: z.boolean().default(false), // 群里只回点名:关掉"接着听"和"自己插话",只在她被 @ / 叫名字时开口(默认关,老行为不变)
|
|
17
18
|
batchMs: z.number().default(3000),
|
|
18
19
|
replyWindowMinutes: z.number().default(120), // 超过多久的旧消息只记不回(单位:分钟)。默认 120:断线补拉 / 程序重启后积压的老消息,以前 10 分钟就全被当成旧消息不回,太容易「明明在线却不吭声」
|
|
19
20
|
callNames: z.array(z.string()).default([]), // 叫这些名字也算点名;空 = 人格卡名字(≥2 个字才算)
|
package/lib/gateway.js
CHANGED
|
@@ -225,6 +225,7 @@ export class ChatGateway {
|
|
|
225
225
|
followUpCount: Number.isFinite(Number(q.followUpCount)) ? Number(q.followUpCount) : 3,
|
|
226
226
|
followUpSeconds: Number.isFinite(Number(q.followUpSeconds)) ? Number(q.followUpSeconds) : 120,
|
|
227
227
|
followUpSmart: q.followUpSmart === true, // #59 她说"这轮聊完了"就不接着听(默认关)
|
|
228
|
+
mentionOnly: q.mentionOnly === true, // 群里只回点名:关掉接听和插话(默认关,老行为不变)
|
|
228
229
|
batchMs: Number.isFinite(Number(q.batchMs)) ? Number(q.batchMs) : 3000,
|
|
229
230
|
replyWindowMinutes: clampReplyWindow(q.replyWindowMinutes),
|
|
230
231
|
callNames: Array.isArray(q.callNames) ? q.callNames.map((x) => String(x).trim()).filter(Boolean) : [],
|
|
@@ -630,8 +631,23 @@ export class ChatGateway {
|
|
|
630
631
|
this.waiters.clear();
|
|
631
632
|
}
|
|
632
633
|
|
|
634
|
+
/**
|
|
635
|
+
* 这个会话是不是我们自己建的(人格卡 / 瞬态块只挂在这种会话上)。
|
|
636
|
+
*
|
|
637
|
+
* 🔴 内存 `bound` 优先,查不到再问库 —— 和 {@link chatForSession} 的语义对齐。
|
|
638
|
+
* 只查内存的版本有两个漏点:
|
|
639
|
+
* ① 宿主重启后 `bound` 在构造函数里重建,但如果会话是在那之后被**别的路径**
|
|
640
|
+
* 恢复的(不是我们的 ensureSession),内存里就没有它;
|
|
641
|
+
* ② 判定用在「要不要注入人格」这种**放行**场景上,漏判 = 该注入的没注入
|
|
642
|
+
* (记忆进不了提示词),比多判一次更隐蔽。
|
|
643
|
+
* 反过来多判(把用户自己的会话认成我们的)才是 #40 那个漏人格的病 ——
|
|
644
|
+
* 所以这里必须**严格按 chat_session 表的登记**认,不能用工作区 / 标题这类弱信号。
|
|
645
|
+
*/
|
|
633
646
|
isOurSession(sessionId) {
|
|
634
|
-
|
|
647
|
+
if (sessionId === undefined || sessionId === null) return false;
|
|
648
|
+
const id = String(sessionId);
|
|
649
|
+
if (this.bound.has(id)) return true;
|
|
650
|
+
return findChatSessionBySessionId(this.db, id) !== null;
|
|
635
651
|
}
|
|
636
652
|
|
|
637
653
|
/** 会话 id → 聊天信息(插件重启后 index.js 用它重建"当前说话人")。 */
|
|
@@ -1095,9 +1111,21 @@ export class ChatGateway {
|
|
|
1095
1111
|
if (!friend) reason = '不是好友';
|
|
1096
1112
|
} else {
|
|
1097
1113
|
const called = !m.mentioned && this.callNames(cfg).some((n) => m.text.includes(n));
|
|
1114
|
+
/**
|
|
1115
|
+
* 群里只回点名(`qq.mentionOnly`,默认关)。
|
|
1116
|
+
*
|
|
1117
|
+
* 为什么要这个开关:几个机器人待在同一个群,一个点名、另一个接听 → 互相触发,
|
|
1118
|
+
* 每轮都算「被点名」⇒ 无限来回刷屏。闸门(白名单 / 插话概率 / 每小时上限)
|
|
1119
|
+
* 全是按群和按时间的,没有一条能识别「对面也是机器人」。
|
|
1120
|
+
*
|
|
1121
|
+
* 打开后:接听和插话整个关掉,只在她真被 @ 或叫名字时开口。
|
|
1122
|
+
* 默认关 ⇒ 老行为不变(既有测试守着「默认会接着听」)。
|
|
1123
|
+
*/
|
|
1124
|
+
const mentionOnly = cfg.mentionOnly === true;
|
|
1098
1125
|
const gate = 该收这条({
|
|
1099
|
-
全听: false, 点名: m.mentioned || called,
|
|
1100
|
-
|
|
1126
|
+
全听: false, 点名: m.mentioned || called,
|
|
1127
|
+
接听: mentionOnly ? null : this.follow.get(m.channelId) ?? null,
|
|
1128
|
+
条: mentionOnly ? 0 : cfg.followUpCount, 秒: cfg.followUpSeconds, 现在: Date.now()
|
|
1101
1129
|
});
|
|
1102
1130
|
if (!stale && !paused) {
|
|
1103
1131
|
if (gate.接听 === null) this.follow.delete(m.channelId);
|
|
@@ -1109,7 +1137,7 @@ export class ChatGateway {
|
|
|
1109
1137
|
if (called) m.mentioned = true;
|
|
1110
1138
|
} else {
|
|
1111
1139
|
decision = 'ignore';
|
|
1112
|
-
if (!stale && !paused) {
|
|
1140
|
+
if (!stale && !paused && !mentionOnly) {
|
|
1113
1141
|
const score = this.interjectChance(m, person, cfg);
|
|
1114
1142
|
if (score > 0 && this.random() < score) {
|
|
1115
1143
|
this.interjects.get(m.channelId)?.push(Date.now());
|
package/lib/index.js
CHANGED
|
@@ -241,6 +241,21 @@ async function startup(ctx, config, { log, gate }) {
|
|
|
241
241
|
/** LLM 调用(日程 / Dream / 刷视频 / 导入 / 学说法):按功能选模型、记用量;支持 AbortSignal。 */
|
|
242
242
|
const llmRouter = new LlmRouter({ ctx, db, getConfig, log });
|
|
243
243
|
const callLlm = (prompt, opts) => llmRouter.call(prompt, opts);
|
|
244
|
+
/**
|
|
245
|
+
* 看图打标用的回调(表情包补标签 / 导入表情包共用)。
|
|
246
|
+
*
|
|
247
|
+
* `needImages: true` 是关键:宿主送不进图时 llm 直接回 null,而不是退回纯文字 ——
|
|
248
|
+
* 模型看不见图却会照着提示词编一段描述,编出来的标签比没标签更糟。
|
|
249
|
+
* 超时也当没标签(导入 / 补标签都不该被一个卡住的模型吊死)。
|
|
250
|
+
*/
|
|
251
|
+
const visionTag = async (prompt, images) => {
|
|
252
|
+
try {
|
|
253
|
+
return await Promise.race([
|
|
254
|
+
llmRouter.call(prompt, { feature: 'other', maxTokens: 60, images, needImages: true, signal: AbortSignal.timeout(20_000) }),
|
|
255
|
+
new Promise((r) => { const t = setTimeout(() => r(null), 20_000); t.unref?.(); })
|
|
256
|
+
]);
|
|
257
|
+
} catch { return null; }
|
|
258
|
+
};
|
|
244
259
|
|
|
245
260
|
step(STARTUP_STEPS[2]);
|
|
246
261
|
// ── QQ 渠道(SnowLuma WS 直连)与会话网关 ──
|
|
@@ -851,7 +866,7 @@ async function startup(ctx, config, { log, gate }) {
|
|
|
851
866
|
'不想接话就只输出 [不回]。');
|
|
852
867
|
}
|
|
853
868
|
if ((isQq || isBili || isDouyin) && biliCfg().enabled === true) {
|
|
854
|
-
const seen = browser.contextLines(
|
|
869
|
+
const seen = browser.contextLines();
|
|
855
870
|
if (seen.length > 0) lines.push('[你最近在 B站刷到的(想聊再提,别硬塞)]', ...seen);
|
|
856
871
|
}
|
|
857
872
|
if ((isQq || isBili || isDouyin) && douyinCfg().enabled === true) {
|
|
@@ -890,17 +905,26 @@ async function startup(ctx, config, { log, gate }) {
|
|
|
890
905
|
const agentId = payload?.agent?.id;
|
|
891
906
|
const message = payload?.message ?? {};
|
|
892
907
|
const source = message?.source ?? {};
|
|
893
|
-
// #78:正常会话的 setupAgent 挂了 registerAgentSections,但宿主 rc.1 的 agent.ctx
|
|
894
|
-
// 时序问题可能导致实际没挂上(用户报「正常聊天也挂不到记忆」)。
|
|
895
|
-
// mountSectionsFor 有幂等保护(sectionsMounted),所有会话都在 inbox 时补挂一次做保险。
|
|
896
|
-
mountSectionsFor(payload?.agent);
|
|
897
|
-
if (source.kind === SOURCE_QQ || source.kind === SOURCE_PROACTIVE || source.kind === SOURCE_BILI || source.kind === SOURCE_DOUYIN) return;
|
|
898
908
|
if (agentId === undefined || agentId === null) return;
|
|
899
909
|
// #78:**在 DSH 界面里打开我们的会话打字**时,isOurSession 是 true,但消息不走
|
|
900
910
|
// gateway.dispatch(那条路只服务 QQ / B站 / 抖音 的入站),于是没有 beginTurn、
|
|
901
911
|
// 也没有 note —— 动态页整片空白。用户原话:「只能在 QQ 上说话才能正常调起功能」。
|
|
902
912
|
// 现在这条路也登记一轮:身份按 DSH 桌面端算(#57:桌面端就是主人自己的环境)。
|
|
903
913
|
const ours = gateway?.isOurSession(agentId) === true;
|
|
914
|
+
/**
|
|
915
|
+
* 🔴 补挂人格段必须带守卫(2026-11-14 用户反馈:开新会话被注入了肥鱼的人格)。
|
|
916
|
+
*
|
|
917
|
+
* `agent/inbox/inserted` 对宿主里**每一个**会话都会来 —— 包括用户自己开的技术对话。
|
|
918
|
+
* 以前这里是无条件 `mountSectionsFor(payload?.agent)`(注释写「所有会话补挂一次做保险」),
|
|
919
|
+
* 于是那些会话的每次组装都带上人格卡 + 瞬态块,新会话直接被注入成肥鱼。
|
|
920
|
+
* 这正是 #40 修过一次的老病(当时挂在全局 ctx.systemPrompt 上),换条路又开回来了。
|
|
921
|
+
*
|
|
922
|
+
* 只该服务两种会话:
|
|
923
|
+
* ① 我们自己建/恢复的(`ours`)—— setup 时挂过,这里是时序保险;
|
|
924
|
+
* ② 别的插件把 QQ 消息转进它建的会话 —— 由下面 `if (person !== null)` 那一处负责。
|
|
925
|
+
*/
|
|
926
|
+
if (ours) mountSectionsFor(payload?.agent);
|
|
927
|
+
if (source.kind === SOURCE_QQ || source.kind === SOURCE_PROACTIVE || source.kind === SOURCE_BILI || source.kind === SOURCE_DOUYIN) return;
|
|
904
928
|
const qqUin = String(source.userId ?? source.qqUin ?? source.user_id ?? '');
|
|
905
929
|
// 我们的会话在 DSH 里被打开时,说话的人就是主人自己 —— 不去猜 QQ 号(那会建出幽灵 person)
|
|
906
930
|
const person = ours || qqUin === '' ? (ours ? ensureMasterPerson(db, clock.now()) : null) : resolveOrCreatePerson(db, {
|
|
@@ -959,6 +983,43 @@ async function startup(ctx, config, { log, gate }) {
|
|
|
959
983
|
const voice = new VoiceService({ db, getConfig: () => voiceConfig(currentConfig.voice, currentConfig.embedding), fetchImpl: (...args) => (testHooks.voiceFetch ?? globalThis.fetch)(...args), log });
|
|
960
984
|
const stickersBox = new StickerBox({ db, getConfig: () => stickerConfig(currentConfig.stickers), log });
|
|
961
985
|
const stickers = stickersBox;
|
|
986
|
+
/**
|
|
987
|
+
* 启动后补一次「老表情的标签」。
|
|
988
|
+
*
|
|
989
|
+
* 聊天收藏那条路不打标(标签只来自她当场写的 / OneBot summary),真机实测 11 张里
|
|
990
|
+
* 6 张没标签 ⇒ 进不了「按感觉挑」的池子 ⇒ 她永远只用那几张有标签的。
|
|
991
|
+
*
|
|
992
|
+
* 三个约束:
|
|
993
|
+
* ① **不阻塞启动**:延迟 20 秒(等宿主模型和网关就绪),失败只记 warn;
|
|
994
|
+
* ② **只跑一次**:kv 记 `stickers.backfilled`(版本号),补完就置位;
|
|
995
|
+
* ③ **没配模型就不跑**:`needImages` 打不了标就别白跑一遍。
|
|
996
|
+
*/
|
|
997
|
+
const STICKER_BACKFILL_REV = 1;
|
|
998
|
+
ctx.effect(() => {
|
|
999
|
+
const timer = setTimeout(() => {
|
|
1000
|
+
void (async () => {
|
|
1001
|
+
try {
|
|
1002
|
+
if ((Number(getKv(db, 'stickers.backfilled', 0)) || 0) >= STICKER_BACKFILL_REV) return;
|
|
1003
|
+
const ws = gateway?.workspacePath?.() ?? '';
|
|
1004
|
+
if (ws === '') return;
|
|
1005
|
+
const ecfg = embeddingCfg();
|
|
1006
|
+
const canEmbed = ecfg.enabled !== false && String(ecfg.baseURL ?? '') !== '';
|
|
1007
|
+
const r = await stickersBox.backfillTags({
|
|
1008
|
+
workspacePath: ws, vision: visionTag,
|
|
1009
|
+
embedder: canEmbed ? embedder : null,
|
|
1010
|
+
opts: { limit: 40, model: String(ecfg.model ?? '') }
|
|
1011
|
+
});
|
|
1012
|
+
// 没打上任何一张(模型没视觉 / 图都读不到)就别置位,下次启动再试
|
|
1013
|
+
if (r.tagged > 0) setKv(db, 'stickers.backfilled', STICKER_BACKFILL_REV);
|
|
1014
|
+
log('info', `[fish-soul] 表情包补标签:${r.tagged} 张打上、${r.skipped} 张跳过(共 ${r.total})`);
|
|
1015
|
+
} catch (error) {
|
|
1016
|
+
log('warn', `[fish-soul] 表情包补标签失败:${String(error instanceof Error ? error.message : error)}`);
|
|
1017
|
+
}
|
|
1018
|
+
})();
|
|
1019
|
+
}, 20_000);
|
|
1020
|
+
timer.unref?.();
|
|
1021
|
+
return () => clearTimeout(timer);
|
|
1022
|
+
}, 'dsh-fish-soul: sticker backfill');
|
|
962
1023
|
// B站 私信平台表情面板(写 `[doge]` 就能发表情);默认关,拿不到就退回硬编码那三个
|
|
963
1024
|
const biliEmotes = new BiliEmotes({ getConfig: () => currentConfig, client: biliClient, log });
|
|
964
1025
|
const slang = new SlangLearner({
|
|
@@ -1115,7 +1176,7 @@ async function startup(ctx, config, { log, gate }) {
|
|
|
1115
1176
|
step(STARTUP_STEPS[14]);
|
|
1116
1177
|
registerRoutes(ctx, {
|
|
1117
1178
|
gate,
|
|
1118
|
-
db, clock, embedder, worker, life, getConfig, saveConfig, log, gateway, channel, bili, biliClient, browser, biliSocial, douyinSocial,
|
|
1179
|
+
db, clock, embedder, embeddingCfg, worker, life, getConfig, saveConfig, log, gateway, channel, bili, biliClient, browser, biliSocial, douyinSocial,
|
|
1119
1180
|
douyin, douyinHost, douyinBrowser, backup, historyImporter, updater, worldBooks,
|
|
1120
1181
|
llmRouter, voice, stickers, slang, persona, reloadPersona, webConfig, hasWebTools, webUsedToday, hostWebAvailable, hostWebState, runWebSearch,
|
|
1121
1182
|
journal, digester, diary, weekly, storage, chatArchive, diag,
|
package/lib/llm.js
CHANGED
|
@@ -176,8 +176,12 @@ export class LlmRouter {
|
|
|
176
176
|
const { parts, dropped } = await this.promptPartsDetailed(prompt, images, f);
|
|
177
177
|
// needImages:图是这个调用的全部意义(看图打标)。图没送进去就别问了 ——
|
|
178
178
|
// 模型看不见图却会照着提示词编一段像模像样的答案,那比没有答案更糟。
|
|
179
|
+
// 🔴 这里以前是静默 return:调用方只看到 null,日志一片空白,
|
|
180
|
+
// 表现是「模型说看不清」而查不出到底是图没送进去还是模型不认图。
|
|
181
|
+
// 看图打标 / 导入表情全靠这条路,所以必须留一行,带上具体原因。
|
|
179
182
|
if (dropped && needImages) {
|
|
180
183
|
this.lastError = 'IMAGE_NOT_ADMITTED';
|
|
184
|
+
this.log('warn', `[fish-soul] ${f}:图没送进模型(${target.model || '(宿主默认)'}),这次要的就是图,放弃`);
|
|
181
185
|
return null;
|
|
182
186
|
}
|
|
183
187
|
for await (const chunk of llm.stream({
|
package/lib/routes-v07.js
CHANGED
|
@@ -83,7 +83,7 @@ export function onboardingSteps(deps) {
|
|
|
83
83
|
* @returns {Promise<boolean>} 处理了就返回 true
|
|
84
84
|
*/
|
|
85
85
|
export async function handleV07Route({ method, path, url, req, res, send, readBody, sameOrigin, deps }) {
|
|
86
|
-
const { db, getConfig, saveConfig, llmRouter, voice, stickers, slang, gateway, webConfig, hasWebTools, webUsedToday, hostWebAvailable, hostWebState, runWebSearch } = deps;
|
|
86
|
+
const { db, getConfig, saveConfig, llmRouter, voice, stickers, slang, gateway, webConfig, hasWebTools, webUsedToday, hostWebAvailable, hostWebState, runWebSearch, embedder, embeddingCfg } = deps;
|
|
87
87
|
const post = method === 'POST';
|
|
88
88
|
const body = async () => {
|
|
89
89
|
const raw = await readBody(req);
|
|
@@ -293,6 +293,34 @@ export async function handleV07Route({ method, path, url, req, res, send, readBo
|
|
|
293
293
|
send(200, { ok: true, config: stickerConfig({ ...(getConfig().stickers ?? {}), ...s }) });
|
|
294
294
|
return true;
|
|
295
295
|
}
|
|
296
|
+
// 给还没标签的老表情补打标签 + 补向量(面板按钮)。
|
|
297
|
+
// 为什么需要单独一个入口:聊天收藏那条路不打标,靠 summary 捡标签在真机上大半是
|
|
298
|
+
// `[动画表情]`(当噪声丢掉)⇒ 一批表情永远没标签、进不了「按感觉挑」的池子。
|
|
299
|
+
if (path === '/stickers/backfill' && post) {
|
|
300
|
+
if (!guard()) return true;
|
|
301
|
+
const b = await body();
|
|
302
|
+
if (!stickers) { send(200, { ok: false, error: '表情包没起来' }); return true; }
|
|
303
|
+
const ws = str(b.workspacePath, 500);
|
|
304
|
+
if (ws !== '' && !knownWorkspace(ws)) { send(200, { ok: false, error: '这个工作区不认识' }); return true; }
|
|
305
|
+
// 嵌入模型没配就只打标签(向量留给下次「按感觉挑」时懒补,`embedStickers` 是幂等的)
|
|
306
|
+
const ecfg = typeof embeddingCfg === 'function' ? embeddingCfg() : (embeddingCfg ?? {});
|
|
307
|
+
const canEmbed = embedder !== undefined && ecfg.enabled !== false && String(ecfg.baseURL ?? '') !== '';
|
|
308
|
+
const r = await stickers.backfillTags({
|
|
309
|
+
workspacePath: ws,
|
|
310
|
+
vision,
|
|
311
|
+
embedder: canEmbed ? embedder : null,
|
|
312
|
+
opts: { limit: Math.min(100, Math.max(1, Math.floor(Number(b.limit) || 40))), model: String(ecfg.model ?? '') }
|
|
313
|
+
});
|
|
314
|
+
// 一张都没打上时把 llm 那边的最后一条错误带回去 —— 面板直接能看到「图没送进去」还是
|
|
315
|
+
// 「模型不认图」,不用去翻运行日志。这是「有些表情没标签」最常问的那个问题。
|
|
316
|
+
const hint = r.tagged === 0 && r.total > 0
|
|
317
|
+
? (llmRouter?.lastError === 'IMAGE_NOT_ADMITTED'
|
|
318
|
+
? '图没送进模型(宿主的附件库没接收),检查宿主版本 / 附件服务'
|
|
319
|
+
: (llmRouter?.lastError || '模型没回出可用的标签,看运行日志'))
|
|
320
|
+
: '';
|
|
321
|
+
send(200, { ok: true, ...r, hint });
|
|
322
|
+
return true;
|
|
323
|
+
}
|
|
296
324
|
if (path === '/stickers/rename' && post) {
|
|
297
325
|
if (!guard()) return true;
|
|
298
326
|
const b = await body();
|
package/lib/routes.js
CHANGED
|
@@ -664,6 +664,7 @@ export function registerRoutes(ctx, deps) {
|
|
|
664
664
|
followUpCount: Math.min(20, Math.max(0, Math.floor(Number(body.followUpCount ?? cur.followUpCount ?? 3)) || 0)),
|
|
665
665
|
followUpSeconds: Math.min(1800, Math.max(0, Math.floor(Number(body.followUpSeconds ?? cur.followUpSeconds ?? 120)) || 0)),
|
|
666
666
|
followUpSmart: body.followUpSmart === undefined ? cur.followUpSmart === true : body.followUpSmart === true,
|
|
667
|
+
mentionOnly: body.mentionOnly === undefined ? cur.mentionOnly === true : body.mentionOnly === true,
|
|
667
668
|
// 超过多久的旧消息只记不回(分钟)。夹取规则见 clampReplyWindow 的注释。
|
|
668
669
|
replyWindowMinutes: clampReplyWindow(body.replyWindowMinutes ?? cur.replyWindowMinutes),
|
|
669
670
|
batchMs: Math.min(15000, Math.max(0, Math.floor(Number(body.batchMs ?? cur.batchMs ?? 3000)) || 0)),
|
package/lib/stickers.js
CHANGED
|
@@ -589,15 +589,85 @@ export class StickerBox {
|
|
|
589
589
|
let out = null;
|
|
590
590
|
try {
|
|
591
591
|
out = await vision(VISION_TAG_PROMPT, [{ data: o.bytes.toString('base64'), mediaType: o.mediaType ?? 'image/png', name: o.file }]);
|
|
592
|
-
} catch {
|
|
592
|
+
} catch (error) {
|
|
593
|
+
this.log?.('warn', `[fish-soul] 表情「${o.file}」看图打标抛错:${String(error instanceof Error ? error.message : error).slice(0, 120)}`);
|
|
594
|
+
return [];
|
|
595
|
+
}
|
|
596
|
+
// 三种失败要分得开,否则「有些表情没标签」永远只能猜:
|
|
597
|
+
// ① 回了 null ⇒ 图没送进模型 / 模型没视觉(llm.js 那边已经留了 warn)
|
|
598
|
+
// ② 回了「看不清」⇒ 图进去了但模型没认出来
|
|
599
|
+
// ③ 回了一段话但不像标签 ⇒ 提示词 / 模型理解问题
|
|
600
|
+
if (out === null || out === undefined || String(out).trim() === '') {
|
|
601
|
+
this.log?.('warn', `[fish-soul] 表情「${o.file}」看图打标没拿到回复(图可能没送进模型,见上一行)`);
|
|
602
|
+
return [];
|
|
603
|
+
}
|
|
593
604
|
const tags = tagsFromVision(out);
|
|
594
|
-
if (tags.length === 0)
|
|
605
|
+
if (tags.length === 0) {
|
|
606
|
+
this.log?.('warn', `[fish-soul] 表情「${o.file}」看图打标回的不像标签:「${String(out).replace(/\s+/g, ' ').slice(0, 60)}」`);
|
|
607
|
+
return [];
|
|
608
|
+
}
|
|
595
609
|
hit.tags = tags;
|
|
596
610
|
hit.tagsBy = 'vision';
|
|
597
611
|
setKv(this.db, 'stickers.collected', all.slice(0, DIR_CAP));
|
|
598
612
|
return tags;
|
|
599
613
|
}
|
|
600
614
|
|
|
615
|
+
/**
|
|
616
|
+
* 给库里**所有还没标签**的表情补打标签,再顺手补向量。
|
|
617
|
+
*
|
|
618
|
+
* 为什么需要:聊天里收藏那条路(`collect()`)根本不打标 —— 标签只来自她当场写的
|
|
619
|
+
* `[收藏表情:名字|标签]` 或 OneBot summary。真机实测 11 张里 6 张无标签,其中 5 张
|
|
620
|
+
* summary 是 `[动画表情]`(被当噪声丢了)。无标签 ⇒ `embedStickers` 跳过它(只处理有标签的)
|
|
621
|
+
* ⇒ 永远进不了「按感觉挑」的池子 ⇒ 她只能反复用那几张有标签的。
|
|
622
|
+
*
|
|
623
|
+
* 每张最多花 `budgetMs`;`onProgress` 让面板能显示进度。一张失败不影响后面的。
|
|
624
|
+
*
|
|
625
|
+
* @param {object} o
|
|
626
|
+
* @param {string} [o.workspacePath] 只补这个工作区(不传 = 全部)
|
|
627
|
+
* @param {(prompt: string, images: Array<{data: string, mediaType: string, name: string}>) => Promise<string|null>} [o.vision]
|
|
628
|
+
* @param {{embed: Function, getConfig?: Function}} [o.embedder]
|
|
629
|
+
* @param {{limit?: number, model?: string, onProgress?: (p: {done: number, total: number, tagged: number}) => void}} [o.opts]
|
|
630
|
+
* @returns {Promise<{tagged: number, skipped: number, embedded: number, total: number}>}
|
|
631
|
+
*/
|
|
632
|
+
async backfillTags({ workspacePath = '', vision = null, embedder = null, opts = {} } = {}) {
|
|
633
|
+
const limit = Math.max(1, Math.round(Number(opts.limit) || 40));
|
|
634
|
+
const all = this.collected();
|
|
635
|
+
const want = (x) => (workspacePath === '' || sameWs(x.workspacePath, workspacePath));
|
|
636
|
+
const todo = all.filter((x) => want(x) && (x.tags ?? []).length === 0).slice(0, limit);
|
|
637
|
+
const result = { tagged: 0, skipped: 0, embedded: 0, total: todo.length };
|
|
638
|
+
for (const [i, hit] of todo.entries()) {
|
|
639
|
+
const img = this.readStickerBytes(hit);
|
|
640
|
+
if (img === null) { result.skipped++; opts.onProgress?.({ done: i + 1, total: todo.length, tagged: result.tagged }); continue; }
|
|
641
|
+
const tags = await this.tagByVision({ file: hit.file, bytes: img.bytes, mediaType: img.mediaType, workspacePath: hit.workspacePath }, vision);
|
|
642
|
+
if (tags.length === 0) result.skipped++;
|
|
643
|
+
else result.tagged++;
|
|
644
|
+
opts.onProgress?.({ done: i + 1, total: todo.length, tagged: result.tagged });
|
|
645
|
+
}
|
|
646
|
+
// 补完标签再补向量:`embedStickers` 只认有标签的,所以必须在这一步之后
|
|
647
|
+
if (embedder) {
|
|
648
|
+
const targets = [...new Set(all.filter(want).map((x) => x.workspacePath))];
|
|
649
|
+
for (const ws of targets) result.embedded += await this.embedStickers(ws, embedder, { model: opts.model ?? '' });
|
|
650
|
+
}
|
|
651
|
+
return result;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* 从收藏记录读回图片字节 + 推断 mediaType(面板补打标要原图)。
|
|
656
|
+
* 收藏记录里**没存 mediaType**(只有文件名),所以从扩展名反推 —— 反推不出就是读不到。
|
|
657
|
+
* @returns {{bytes: Buffer, mediaType: string}|null}
|
|
658
|
+
*/
|
|
659
|
+
readStickerBytes(hit) {
|
|
660
|
+
const file = String(hit?.file ?? '');
|
|
661
|
+
if (file === '') return null;
|
|
662
|
+
const ext = extname(file).slice(1).toLowerCase();
|
|
663
|
+
if (!IMAGE_EXT.has(ext)) return null;
|
|
664
|
+
const mediaType = `image/${ext === 'jpg' ? 'jpeg' : ext}`;
|
|
665
|
+
try {
|
|
666
|
+
const bytes = readFileSync(join(hit.workspacePath, '_stickers', basename(file)));
|
|
667
|
+
return bytes.length > VISION_MAX_BYTES ? null : { bytes, mediaType };
|
|
668
|
+
} catch { return null; }
|
|
669
|
+
}
|
|
670
|
+
|
|
601
671
|
/** 设置页删一张:收藏的和主人自己放的都能删;文件已经没了就把收藏记录也删掉。 */
|
|
602
672
|
remove(file, workspacePath) {
|
|
603
673
|
const ws = String(workspacePath ?? '');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-fish-soul",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "鱼 · 人格、按人记忆(可纠正、有印象、能导入旧聊天记录)、日程自走与主动开口,直连 SnowLuma 收发 QQ(群里会自己插话),B站 / 抖音小号私信与自己刷视频;按功能选模型并统计用量花费,能听会说 QQ 语音、收藏表情包、学群里的梗,可选上网查;心情影响说话、去 AI 味、每个群的设定、按聊天选模型、每晚写日记、每周记忆存档与可选周记(DSH 插件,单角色 feiyu ,v0.15.37)",
|
|
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/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-read-fail-retry.mjs && node test/douyin-read-cache.mjs && node test/douyin-dm-media-conv.mjs && node test/douyin-read-fail-retry-poll.mjs && node test/douyin-inbox-contract.mjs && node test/person-attribution.mjs && node test/memory-owner-reassign.mjs && node test/douyin-poll-and-timer-safety.mjs && node test/p2-limits.mjs && node test/resource-safety.mjs && node test/leftover-edge-cases.mjs && node test/douyin-master-uid.mjs && node test/douyin-identity-e2e.mjs && node test/douyin-post-jobs.mjs && node test/retrieval-filtered-vectors.mjs && node test/security-boundaries.mjs && node test/douyin-cdp-cursor.mjs && node test/smoke.mjs && node test/douyin-browser.mjs && node test/douyin-music.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/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-78-diagnostic.mjs && node test/memory-storage.mjs && node test/memory-storage-restore.mjs && node test/backup-restore.mjs && node test/douyin-group.mjs && node test/review-fixes.mjs && node test/at-reads-video.mjs && node test/search-source.mjs && node test/followups.mjs && node test/detail-config.mjs && node test/qq-send-any-image.mjs && node test/qq-read-attachment.mjs && node test/qq-batch-window.mjs && node test/comment-video.mjs && node test/frames.mjs && node test/face-name.mjs && node test/comment-reply.mjs && node test/chat-comment.mjs && node test/at-target.mjs && node test/quota-caps.mjs && node test/client-lint.mjs && node test/client-panels.mjs && node test/dsh-desktop.mjs && node test/issue-59-interject.mjs && node test/issue-59-diagnose.mjs && node test/sticker-manage.mjs && node test/bili-emotes.mjs && node test/qq-outbound-sanitize.mjs && node test/person-delete.mjs && node test/qq-group-admin.mjs && node test/douyin-recovery.mjs && node test/session-preset.mjs && node test/qq-connect-error.mjs && node test/douyin-comment-bridge.mjs && node test/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/dream-transcript-wire.mjs && node test/douyin-frames-collect.mjs && node test/master-qq-uin-rebind.mjs && node test/douyin-session-health.mjs && node test/douyin-delivered.mjs && node test/douyin-card-share.mjs && node test/douyin-push-drop.mjs && node test/douyin-stranger-dm.mjs && node test/douyin-uid-binding.mjs && node test/image-webp-fallback.mjs && node test/douyin-emoji-fallback.mjs && node test/relay-other-platform.mjs && node test/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/memory-source-label.mjs && node test/pending-delivery.mjs && node test/recall-window-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",
|
|
67
|
+
"test": "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-read-fail-retry.mjs && node test/douyin-read-cache.mjs && node test/douyin-dm-media-conv.mjs && node test/douyin-read-fail-retry-poll.mjs && node test/douyin-inbox-contract.mjs && node test/person-attribution.mjs && node test/memory-owner-reassign.mjs && node test/douyin-poll-and-timer-safety.mjs && node test/p2-limits.mjs && node test/resource-safety.mjs && node test/leftover-edge-cases.mjs && node test/douyin-master-person-merge.mjs && node test/douyin-master-uid.mjs && node test/douyin-identity-e2e.mjs && node test/douyin-post-jobs.mjs && node test/retrieval-filtered-vectors.mjs && node test/security-boundaries.mjs && node test/douyin-cdp-cursor.mjs && node test/persona-isolation.mjs && node test/smoke.mjs && node test/douyin-browser.mjs && node test/douyin-music.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/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-78-diagnostic.mjs && node test/memory-storage.mjs && node test/memory-storage-restore.mjs && node test/backup-restore.mjs && node test/douyin-group.mjs && node test/review-fixes.mjs && node test/at-reads-video.mjs && node test/search-source.mjs && node test/followups.mjs && node test/detail-config.mjs && node test/qq-send-any-image.mjs && node test/qq-read-attachment.mjs && node test/qq-batch-window.mjs && node test/comment-video.mjs && node test/frames.mjs && node test/face-name.mjs && node test/comment-reply.mjs && node test/chat-comment.mjs && node test/at-target.mjs && node test/quota-caps.mjs && node test/client-lint.mjs && node test/client-panels.mjs && node test/dsh-desktop.mjs && node test/group-mention-only.mjs && node test/issue-59-interject.mjs && node test/issue-59-diagnose.mjs && node test/sticker-backfill.mjs && node test/sticker-manage.mjs && node test/bili-emotes.mjs && node test/qq-outbound-sanitize.mjs && node test/person-delete.mjs && node test/qq-group-admin.mjs && node test/douyin-recovery.mjs && node test/session-preset.mjs && node test/qq-connect-error.mjs && node test/douyin-comment-bridge.mjs && node test/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/dream-transcript-wire.mjs && node test/douyin-frames-collect.mjs && node test/master-qq-uin-rebind.mjs && node test/douyin-session-health.mjs && node test/douyin-delivered.mjs && node test/douyin-card-share.mjs && node test/douyin-push-drop.mjs && node test/douyin-stranger-dm.mjs && node test/douyin-uid-binding.mjs && node test/image-webp-fallback.mjs && node test/douyin-emoji-fallback.mjs && node test/relay-other-platform.mjs && node test/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/memory-source-label.mjs && node test/pending-delivery.mjs && node test/recall-window-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",
|
|
68
68
|
"eval": "node test/eval/persona-eval.mjs"
|
|
69
69
|
}
|
|
70
70
|
}
|