feat: v0.8.2 安全纵深补全 · 协议保真 · 断链修复 — 图片SSRF/根MEMORY.md保护根治 · Anthropic thinking回传+pause_turn续传 · 2523 用例全量回归 + E2E 扩充
CI / 类型检查 + Lint + 单元测试 (push) Failing after 9m45s
CI / 全量测试 (Electron ABI) (push) Failing after 6m28s
CI / 产物编译验证 (push) Successful in 11m18s

This commit is contained in:
2026-09-08 14:30:27 +08:00
parent 69776e447f
commit 4cd6e997b5
86 changed files with 4303 additions and 956 deletions
+8
View File
@@ -16,4 +16,12 @@ export type MemoryEmbedFn = (text: string) => Promise<number[] | null>;
export interface MemoryEmbedder {
embed: MemoryEmbedFn;
/**
* v0.8.2 P3-1: 嵌入模型标识(指纹)。
* 用户更换 embedding 模型后,旧向量与新查询向量维度/语义空间不匹配 ——
* 维度不同余弦静默为 0,同维不同模型产生噪声分数。Manager 以该标识标注
* 每条向量(embedding_model 列),检索时模型不匹配的向量视为缺失并惰性重算。
* 未提供时无法做指纹校验(旧向量一律接受 —— 保持旧行为兼容)。
*/
readonly modelName?: string;
}