Skip to content

Commit 7634357

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/653-settings-search
# Conflicts: # dsh-mneme/CHANGELOG.md
2 parents 91bba57 + 6839d1b commit 7634357

80 files changed

Lines changed: 3129 additions & 811 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 165 additions & 514 deletions
Large diffs are not rendered by default.

‎SECURITY.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ We actively maintain the latest minor version. Security fixes are backported to
1010

1111
| Version | Supported | Status |
1212
|---|---|---|
13-
| 0.13.x | ✅ Yes | Active development |
14-
| 0.12.x | ⚠️ Best-effort | Critical fixes only |
15-
| < 0.12.0 | ❌ No | Please upgrade to 0.13.x |
13+
| 0.14.x | ✅ Yes | Active development |
14+
| 0.13.x | ⚠️ Best-effort | Critical fixes only |
15+
| < 0.13.0 | ❌ No | Please upgrade to 0.14.x |
1616

17-
**End-of-life notice**: 0.12.x is in best-effort maintenance (critical fixes only). Its end-of-life date will be announced in advance; after that date no security fixes will be provided for 0.12.x. Security support for 0.11.x and below has ended — please upgrade to 0.13.x.
17+
**End-of-life notice**: 0.13.x is in best-effort maintenance (critical fixes only). Its end-of-life date will be announced in advance; after that date no security fixes will be provided for 0.13.x. Security support for 0.12.x and below has ended — please upgrade to 0.14.x.
1818

1919
---
2020

@@ -408,11 +408,11 @@ This project is licensed under the **MIT License**. See [LICENSE](https://github
408408

409409
| 版本 | 支持状态 | 说明 |
410410
|---|---|---|
411-
| 0.13.x | ✅ 支持 | 活跃开发中 |
412-
| 0.12.x | ⚠️ 尽力维护 | 仅关键修复 |
413-
| < 0.12.0 | ❌ 不支持 | 请升级至 0.13.x |
411+
| 0.14.x | ✅ 支持 | 活跃开发中 |
412+
| 0.13.x | ⚠️ 尽力维护 | 仅关键修复 |
413+
| < 0.13.0 | ❌ 不支持 | 请升级至 0.14.x |
414414

415-
**停止维护通知**:0.12.x 处于尽力维护阶段(仅关键修复)。停止维护的具体日期将提前公布;该日期之后将不再提供 0.12.x 的安全修复。0.11.x 及更早版本的安全支持已终止——请升级至 0.13.x。
415+
**停止维护通知**:0.13.x 处于尽力维护阶段(仅关键修复)。停止维护的具体日期将提前公布;该日期之后将不再提供 0.13.x 的安全修复。0.12.x 及更早版本的安全支持已终止——请升级至 0.14.x。
416416

417417
---
418418

‎dsh-mneme/CHANGELOG.md‎

Lines changed: 56 additions & 0 deletions
Large diffs are not rendered by default.

‎dsh-mneme/README.md‎

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
<p align="center"><strong>中文 | <a href="docs/SEMANTIC.md">English(语义增强)</a></strong></p>
1+
<p align="center">
2+
<img src="https://raw.githubusercontent.com/slow-stack/mneme/main/images/mneme-banner-hero.webp" alt="Mneme — The Memory That Dreams" width="100%" />
3+
</p>
24

3-
# dsh-mneme
5+
```
6+
$ cat ~/.dsh/memory/preferences.md
7+
# 你的偏好,写在本机磁盘上,随时能改
8+
```
9+
10+
<p align="center">
11+
<picture><source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/v/@modusensus/dsh-mneme?style=flat-square&label=npm&labelColor=B03A2E&color=EFE7D8&logoColor=1C1C1C"><img src="https://img.shields.io/npm/v/@modusensus/dsh-mneme?style=flat-square&label=npm&labelColor=B03A2E&color=111111&logoColor=FFFFFF" alt="npm version"></picture>
12+
<picture><source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/d18m/@modusensus/dsh-mneme?style=flat-square&label=downloads&labelColor=B03A2E&color=EFE7D8&logoColor=1C1C1C"><img src="https://img.shields.io/npm/d18m/@modusensus/dsh-mneme?style=flat-square&label=downloads&labelColor=B03A2E&color=111111&logoColor=FFFFFF" alt="npm downloads"></picture>
13+
<picture><source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/slow-stack/mneme/ci.yml?style=flat-square&label=CI&labelColor=B03A2E&color=EFE7D8"><img src="https://img.shields.io/github/actions/workflow/status/slow-stack/mneme/ci.yml?style=flat-square&label=CI&labelColor=B03A2E&color=111111" alt="CI"></picture>
14+
<picture><source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/badge/tests-3446%20total-EFE7D8?style=flat-square"><img src="https://img.shields.io/badge/tests-3446%20total-111111?style=flat-square" alt="tests"></picture>
15+
<picture><source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/badge/license-MIT-EFE7D8?style=flat-square&label=license&labelColor=B03A2E&logoColor=1C1C1C"><img src="https://img.shields.io/badge/license-MIT-111111?style=flat-square&label=license&labelColor=B03A2E&logoColor=FFFFFF" alt="license"></picture>
16+
<a href="https://github.com/awesome-dsh-plugin/awesome-dsh-plugin"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="Awesome"></a>
17+
</p>
418

5-
[![npm version](https://img.shields.io/npm/v/@modusensus/dsh-mneme?color=blue&label=npm)](https://www.npmjs.com/package/@modusensus/dsh-mneme)
6-
[![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
7-
[![Awesome](https://awesome-dsh-plugin.com/badge.svg)](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
8-
[![tests](https://img.shields.io/badge/tests-3401%20total-success)](https://github.com/slow-stack/mneme)
9-
[![CI](https://img.shields.io/github/actions/workflow/status/slow-stack/mneme/ci.yml)](https://github.com/slow-stack/mneme/actions)
10-
[![node](https://img.shields.io/badge/node-22%2B-blue)](https://nodejs.org)
11-
[![npm downloads](https://img.shields.io/npm/d18m/@modusensus/dsh-mneme.svg?color=blue&label=downloads)](https://www.npmjs.com/package/@modusensus/dsh-mneme)
12-
[![coverage](https://img.shields.io/codecov/c/github/slow-stack/mneme/main)](https://codecov.io/gh/slow-stack/mneme)
19+
<p align="center"><strong>中文 · <a href="docs/SEMANTIC.md">English(语义增强)</a></strong></p>
20+
21+
---
22+
23+
# dsh-mneme
1324

1425
> 给 DeepSeek Harness 的跨会话记忆插件:让 Agent 记住你、记住项目、自动整理记忆。**Mneme**(Μνήμη)——希腊记忆女神 Mnemosyne 之名,掌管记忆与梦境,正如 autoDream 在后台巩固记忆。
1526
@@ -290,6 +301,7 @@ v0.3.0 起新增**记忆基因**层:从记忆里抽取**命名实体**、**带
290301
| 版本 | 头条 |
291302
|------|------|
292303
| **v0.13.0**(2026-11-10) | 情绪终于有地方可放:`affective_context` 带情绪词与归因,三个独立会话才升成稳定倾向,不足就降级不丢弃 |
304+
| **v0.14.0**(2026-11-12) | 图像描述有了溯源表(摘要能回指哪张图),单次场合的情绪补上注入出口;召回侧两处静默截断(词法语料 500 行、注入池 200 行)改成全量 + 增量;后台 LLM 调用统一补 `sessionId` |
293305
| **v0.12.0**(2026-11-07) | pin 从「按类型猜」变成你亲手钉的事实;向量缓存从恒 0% 命中改为跟工作集自适应(1.8–2.4s → 370–424ms) |
294306
| **v0.11.0**(2026-11-05) | 记忆读得懂仓库:文件树与 import 图编译成模块划分与地志页 |
295307
| **v0.10.1**(2026-11-03) | 打开记忆详情不再崩掉整个宿主 |
@@ -763,7 +775,7 @@ src/
763775
├── api.js # HTTP 路由(Web 面板数据通道,含 /conflicts 冲突队列)
764776
└── index.js # 插件接线
765777
lib/ # src 的同步分发产物(npm run sync,prepack 钩子在发布时自动跑;一致性由 scripts/check-sync.js 在 CI 与 release.yml 校验——它只查不同步;唯一手写例外 lib/client.js——Web 面板 bundle,sync 不覆盖)
766-
test/ # 3401 个 node:test 测试(审计与三轴线压测不变量;src↔lib 一致性由 scripts/check-sync.js 发布闸门校验)
778+
test/ # 3446 个 node:test 测试(审计与三轴线压测不变量;src↔lib 一致性由 scripts/check-sync.js 发布闸门校验)
767779
scripts/ # e2e-dsh.js 端到端演示 · stress-dsh.js 三轴线压测 · sync-lib.js 同步 · check-sync.js 发布闸门 · benchmark-recall.js / benchmark-embed.js / benchmark-rerank.js 基准 · sync-test-badge.mjs 测试徽章 · build-runtime-manifest.mjs 运行时清单
768780
```
769781
@@ -772,7 +784,7 @@ scripts/ # e2e-dsh.js 端到端演示 · stress-dsh.js 三轴线压
772784
```bash
773785
cd dsh-mneme
774786
npm install # 安装 peer 依赖(以 devDependencies 形式,用于本地测试)
775-
npm test # 运行 3401 个测试
787+
npm test # 运行 3446 个测试
776788
npm run stress # 三轴线压测:长会话检索 / 冲突仲裁 / 多 Agent 并发(离线 mock LLM)
777789
npm run sync # 把 src/ 同步到 lib/(发布时由 prepack 钩子自动执行)
778790
```

‎dsh-mneme/assets/icon.png‎

118 KB
Loading

‎dsh-mneme/assets/icon.svg‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎dsh-mneme/docs/CONFIGURATION.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@
124124
| `summarizeProvider` / `summarizeModel` | 空 | 蒸馏专用模型路由 | 两者都非空才生效;空 = 用会话当前模型 |
125125
| `distillMaxChars` | `24000` | 喂给蒸馏 LLM 的完整转录上限(字符,1000–200000) | 调大更完整、更贵 |
126126
| `imageDescribeEnabled` **light** | `false` | 图像描述档([DISTILL.md](DISTILL.md) 的「描述档」):蒸馏时先用一个能看图的模型给每张图写一句描述,把描述并入转录再蒸馏 | opt-in;每张图多一次视觉调用,进 lightMode 强制关闭清单 |
127-
| `imageDescribeProvider` / `imageDescribeModel` | 空 | 描述档专用路由 | **两者都非空才生效,且留空 = 整档不跑**——与 `summarizeProvider` 的「空 = 跟随会话当前模型」语义刻意不同:蒸馏路由多是纯文本模型,拿它看图只会换回占位。宿主侧按 `inputModalities` 决定发不发图字节,本插件不读图、不存原图 |
127+
| `imageDescribeProvider` / `imageDescribeModel` | 空 | 描述档专用路由 | **两者都非空才生效,且留空 = 整档不跑**——与 `summarizeProvider` 的「空 = 跟随会话当前模型」语义刻意不同:蒸馏路由多是纯文本模型,拿它看图只会换回占位。宿主侧按 `inputModalities` 决定发不发图字节,本插件不读图、不存原图 || `imageDescribeProvider` / `imageDescribeModel` | 空 | 描述档专用路由 | **两者都非空才生效,且留空 = 整档不跑**——与 `summarizeProvider` 的「空 = 跟随会话当前模型」语义刻意不同:蒸馏路由多是纯文本模型,拿它看图只会换回占位。宿主侧按 `inputModalities` 决定发不发图字节,本插件不读图、不存原图 |
128+
| `imageMemoryEnabled` **light** | `false` | 图像溯源(v2):把「这条记忆的蒸馏窗口里出现过哪几张图」记进 `image_sources`,让记忆能回指原附件 | `imageDescribeEnabled` 的子开关(父关即不生效)。只在**本窗真有描述成功**时才写——没描述时图只是占位,挂上去等于把「同窗口」谎报成「因果」。只存宿主 `attachmentId` 与降级键,**不存图字节、不存路径**;进 lightMode 强制关闭清单 |
128129
| `summarizeMinIntervalMinutes` | `0` | 同会话两次蒸馏的最小间隔(分钟,≤10080) | 0 = 不限(#127 节流三键之一) |
129130
| `summarizeMaxEntriesPerRun` | `0` | 单次蒸馏最多落库条数(≤50) | 0 = 不限 |
130131
| `summarizeMinWindowChars` | `0` | 窗口可蒸馏文本下限(字符),不足直接跳过 LLM(#239) | 被挡窗口照常消费游标并留 skip 审计 |
@@ -250,6 +251,7 @@
250251
| `sleepAffectiveEnabled` **light** | `false` | 情感归因相位(#619):情境情绪写成 `affective_context` 关系,跨多次独立会话的稳定倾向才铸成 pattern | opt-in;`sleepModeEnabled` 的子相,父关着不跑;要调模型且依赖实体抽取 |
251252
| `sleepAffectiveTraitMinSessions` | `3` | 判「稳定倾向」所需的**独立会话**数(2–10) | 下界 2 是故意的:N=1 就是单次场合,正是必须禁止升特质的那个情形 |
252253
| `sleepAffectiveMaxRelationsPerRun` | `10` | 单轮最多写多少条 `affective_context` 关系(0–50) | 同 `sleepMaxPatternPerRun` 的角色;0 = 一条也不写 |
254+
| `affectiveInjectEnabled` **light** | `false` | 注入侧情绪注释(#619 补链):把 `attribution=occasion` 的情绪边作为一行注释挂到对应记忆下,让模型看见「她那天为什么那样」 | 默认关;`sleepAffectiveEnabled` 的子项——父关则无情绪边可挂;只挂 occasion,trait 已铸成 pattern 自己进注入;注释限 160 字(吃注入块预算) |
253255
| `sleepProvider` / `sleepModel` | 空 | sleep 专用路由 | 空 = 用巩固路由 / 当前模型 |
254256
| `sleepReasoningEffort` | 未配置 | 同 `dreamReasoningEffort` | — |
255257
| `sleepMaxTokens` | `8192` | 冲突/模式阶段输出预算(#257) | 原硬编码 2048 对 `full` 档必然截断 |
@@ -390,7 +392,7 @@
390392
`lightMode: true`(或面板 `panel_mode=light`)时,以下键被预设强制为 `false`——都是
391393
重型路径;核心循环(autoInject、autoSummarize、hotMemory*、质量过滤、关键词检索)不动:
392394

393-
`entityExtractionEnabled` · `autoDream` · `sleepModeEnabled` · `sleepAffectiveEnabled`(#619) · `rerankEnabled` ·
395+
`entityExtractionEnabled` · `autoDream` · `sleepModeEnabled` · `sleepAffectiveEnabled`(#619) · `affectiveInjectEnabled` · `rerankEnabled` ·
394396
`autoReindexOnBoot` · `hybridInject` · `injectGuidanceEnabled` · `searchSemanticDedup` ·
395397
`selectiveInjectEnabled` · `bm25SearchEnabled` · `entityRecallEnabled` ·
396398
`graphAnchoringEnabled` · `graphWeightEnabled` · `graphInjectHint` · `graphPassiveConfirm` ·
@@ -401,6 +403,7 @@
401403
`profileFactsEnabled`(2026-11-06) ·
402404
`preInjectGate.enabled`(#380) · `distillRecords.enabled`(#399) ·
403405
`imageDescribeEnabled`(每张图一次视觉调用) ·
406+
`imageMemoryEnabled`(图像溯源的写入) ·
404407
`diaryEnabled`(v0.13,每天一篇 = 一次 LLM 调用,属重型)
405408

406409
预设只是默认值而非强制:用户显式写进 feature_flags 的值在装配顺序上后展开、仍然生效

‎dsh-mneme/docs/DIRECTORIES.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
- `<os.tmpdir()>/mneme-choro-t1-*/`——T1 子进程的临时 overlay,跑完即删(`src/wiki/t1.js`)。
7676
- 原子写会产生与目标同目录的 `<目标>.tmp-<pid>-<rand>` 兄弟文件,崩溃时自清(`writeFileAtomic`)。
7777
- 分享包**没有固定目录**:`dsh-mneme share --out <path>` 由人指定落点(`bin/cli.mjs`)。
78-
- 包内只读资源:`runtime-manifest.json`(下载清单)、`locale/`(宿主面板注入槽)、`assets/icon.svg`。daemon 无 pid / socket / 日志文件——HTTP 是 TCP,审计都在 `memory.db` 里。
78+
- 包内只读资源:`runtime-manifest.json`(下载清单)、`locale/`(宿主面板注入槽)、`assets/icon.png`(插件列表图标,256×256 RGBA)。daemon 无 pid / socket / 日志文件——HTTP 是 TCP,审计都在 `memory.db` 里。
7979

8080
## 删了会怎样
8181

‎dsh-mneme/docs/DISTILL.md‎

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,4 +395,45 @@ emoji 占两个单元,切在中间就留下一个孤立的高位代理——
395395
恢复后全绿。
396396
`test/continuity.test.js` 那条静态 import 锁同步从「恰好一行」改成「恰好两行」——
397397
新增一行仍然转红,仍然要人看一眼它是不是纯的(`attachment-text.js` 不 import 任何东西,
398-
所以它不调模型这条约束没被削弱)。
398+
所以它不调模型这条约束没被削弱)。
399+
400+
### 图像溯源(`imageMemoryEnabled`,默认关)
401+
402+
描述档解决的是「图里的字进不进得了记忆」,这一档解决的是「进了记忆之后还能不能找回那张图」。
403+
落地只有一张表 `image_sources`(`src/store.js` 的 SCHEMA),每行是
404+
`(memory_id, session_id, seq, attachment_id, fallback_key, key_stability, …)`:它与既有的
405+
`memory_provenance`(记忆 ← 蒸馏窗口)拼起来,才回答得出「这条记忆 ← 这个窗口 ← 这几张图」。
406+
407+
四条设计约束,每条都踩过一遍:
408+
409+
1. **粒度是窗口级,不是逐条记忆。** 蒸馏是模型从整段转录里提炼的,没有任何信号能证明
410+
「这张图只贡献了第 3 条记忆」。拿描述文本跟记忆正文做匹配看起来能细化,实际会把
411+
「恰好同词」写成「确有此证」。归因宁可粗,不能编——所以本窗出现的图挂到本窗写成功的
412+
每条记忆上。这与 `memory_provenance` 的选择同源:能表达的只有窗口,就只记窗口。
413+
2. **只在真的有描述时才写。** 前置是 `describeStats.described > 0`。没描述时图只是一个
414+
`[图: …]` 占位,记忆里没有任何一句话是「从图里看出来的」;此时把窗口里的图挂上去,
415+
等于把「同窗口」谎报成「因果」。这是它做成 `imageDescribeEnabled` 子开关的原因
416+
(`INJECT_CHILD_FLAGS`),不是顺手加的层级。
417+
3. **只存引用,不存字节。** `attachment_id` 是宿主的 `AttachmentId`
418+
(`@deepseek-ai/dsh-attachment` 明确承诺「never a filesystem path or bearer URL」),
419+
交给宿主 `attachments.readImage()` 才是取图的正路。本表不存图、不存路径,273MB 那条
420+
边界没有变。
421+
4. **降级键必须自带不确定性。** 附件没有 `attachmentId` 时按元数据四元组 + 序号造键,
422+
此时 `key_stability = 'unstable'`:重发一次同名同尺寸的图就可能撞上同一个键。读侧
423+
必须能看见这个标记,不能把它当稳定外键去做「同一张图」的判断。
424+
425+
`seq` 是图块所在事件的 seq(窗口内定位),`created_at` 取本轮蒸馏时间。主键
426+
`(memory_id, session_id, seq, fallback_key)` 配 `ON CONFLICT DO NOTHING`,同窗口重跑不重复记账。
427+
上限 `IMAGE_SOURCE_MAX = 50`:50 张 × 本轮记忆条数的叉积都在同一个事务里,再高会把毫秒级
428+
提交拖成秒级;超出的不记——少记是「没证据」,记错才是「假证据」。
429+
430+
**审计**:写成功时 `llm_audit_logs.metadata.imageSources` = 实际插入行数;0 行不写键,
431+
默认关时审计行逐字节等于加它之前。与 `imageCount`(图块数)、`imageDescribed`
432+
(成功描述数)三者分工不同:一个说「看到了几张」,一个说「描述成几张」,一个说
433+
「记了几条溯源」。
434+
435+
**读出口**:`service.imageSourcesFor(memoryId)` → 按 `seq, fallback_key` 排的引用数组
436+
(camelCase,`attachmentId` 可能缺席)。
437+
438+
**不做的两件事**:不做按图找图(没有图像向量,做出来就是拿描述文本相似度冒充图像相似度),
439+
不把 `type='image'` 加进记忆类型(`TYPES` 是五道锁的源头,为一个溯源字段改类型表不划算)。

‎dsh-mneme/docs/SLEEP.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ flowchart TD
5353
| `sleepPatternLookbackDays` | `30` | 模式发现回溯的时间窗口(天) |
5454
| `sleepMaxPatternPerRun` | `3` | 单次运行最多创建的模式数量上限 |
5555
| `sleepAffectiveEnabled` | `false` | 情感归因相位(#619,opt-in):情境情绪写成 `affective_context` 关系,跨多次独立会话的稳定倾向才铸成 pattern。是 `sleepModeEnabled` 的子相,父开关关着整个 sleep 不跑 |
56+
| `affectiveInjectEnabled` | `false` | 注入侧情绪注释(#619 补链):单次场合的情绪边挂成记忆行下的一行注释。`sleepAffectiveEnabled` 的子项,父关则无从挂起 |
5657
| `sleepAffectiveTraitMinSessions` | `3` | 判「稳定倾向」所需的**独立会话**数(2–10)。下界 2 是故意的:N=1 就是单次场合,正是必须禁止升成特质的那个情形 |
5758
| `sleepAffectiveMaxRelationsPerRun` | `10` | 单轮最多写多少条 `affective_context` 关系(0–50,0 = 一条不写) |
5859
| `sleepProvider` | `''` | 睡眠模式专用 LLM Provider(留空则复用默认) |

0 commit comments

Comments
 (0)