stratagate-dsh 0.3.52 → 0.3.54

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/CHANGELOG.md CHANGED
@@ -1,5 +1,86 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.54 - 2026-11-18
4
+
5
+ - Dreaming 可根据跨会话的新记忆和变更自动整理 Event、目录、经验与每日笔记。整理在独立的 DSH 会话中运行,暂停后可以从保存的进度继续。
6
+ - 「高级设置」新增 Dreaming「立即整理」入口,可查看进度、暂停、继续或打开整理会话。
7
+ - 经验可以在普通会话中检索。Event 修正后的相关经验会进入复核,自动去重合并会将引用迁到保留的 Event。
8
+
9
+ ## 0.3.53 - 2026-11-17
10
+
11
+ - 调整记忆总览的字体、记忆柱、统计数字与留白;根据侧栏和面板可用宽度统一缩放,修复应用缩放后标题换行、统计说明挤压及内容过大的问题。
12
+ - 统一常驻画像、会话记忆、短期记忆、长期记忆、更多及二级页面的顶部:标题、版本号、工作区、Star 和导航使用同一套字体、尺寸、颜色与间距。
13
+ - 工作区与运行状态指示跟随实际读取结果,读取中、失败或有待处理任务时不再继续显示正常状态。
14
+
15
+
16
+ ## 0.3.52 - 2026-11-16
17
+
18
+ - 事件卡新增逐字引用:从来源消息里按相似度选一段原文作为引用,并在引用上标注「自动抽取、由算法选择、未独立验证是否充分支持摘要」。
19
+ - 引用来源写入事件元数据;升级后只回填缺少引用的旧卡,已有人工引用的卡保持不变,回填进度由旁表记录,重复启动不会重扫。
20
+ - 旧库只读兼容:该列不存在时历史数据照常读取,回填完成后再写入标记。
21
+
22
+ ## 0.3.51 - 2026-11-16
23
+
24
+ - 修复工具返回结果中的图片在会话记忆 L5 表面丢失:附件引用扫描现在同时覆盖 `tool/result`。
25
+
26
+ ## 0.3.50 - 2026-11-15
27
+
28
+ - 修复合并 agent 记忆时丢失来源:合并结果保留原候选的会话与来源关系;模型只返回标题/摘要时不再产生合成来源。
29
+
30
+ ## 0.3.49 - 2026-11-15
31
+
32
+ - 修复自动召回使用上一轮的输入:Agent 循环在系统提示组装之前就领取当前输入,现在把本轮消息桥接进请求路径检索,让第一笔模型请求直接使用本轮问题。
33
+ - 连续输入会累积领取内容;召回前清空已领取输入,避免跨轮残留。
34
+
35
+ ## 0.3.48 - 2026-11-14
36
+
37
+ - 高级设置界面打磨(纯前端)。
38
+
39
+ ## 0.3.47 - 2026-11-13
40
+
41
+ - 检索设置改成从「更多」菜单进入(纯前端)。
42
+
43
+ ## 0.3.46 - 2026-11-10
44
+
45
+ - 新增记忆总览:最近 7 天的记忆使用与采用情况、28 天热力格,按天聚合;每日笔记的条目数与最近写入时间直接从本地 Markdown 统计,不建证据批次。
46
+ - 面板第 6 轮视觉改版。
47
+ - Profile 总容量上限可在 2000–12000 字之间设置,维保触发线随上限移动(默认仍 6000)。
48
+ - 每日笔记的开关、时区与带入天数改为热更新,保存后无需重启。
49
+
50
+ ## 0.3.45 - 2026-11-09
51
+
52
+ - 修复被预留的轮次丢失,并保留表面来源。
53
+
54
+ ## 0.3.44 - 2026-11-07
55
+
56
+ - 图谱投影返回每条边的稳定 id,并把既有边交给模型,只有明确表达替换/更正时才 supersede;同一关系可以同时有多个当前目标,不再「目标不同就替换」。
57
+ - 停止 Block 表面的隐式替换,表面变更改走显式回归。
58
+
59
+ ## 0.3.43 - 2026-11-07
60
+
61
+ - 修复进行中的预留被清掉、附件引用丢失。
62
+ - 附件与记忆的来源关系在保存、合并路径上保留。
63
+
64
+ ## 0.3.42 - 2026-11-07
65
+
66
+ - 支持 DSH 0.2.2 运行时家族:该家族要求 Cordis 4.1.x / Schemastery 3.19.x 起,更早的现代宿主仍沿用原版本范围。
67
+
68
+ ## 0.3.41 - 2026-11-06
69
+
70
+ - 修复永久失败的表面仍在请求路径上重试。
71
+ - 路由容量变化时唤醒被阻塞的表面。
72
+ - 保护原生上下文范围,并限制表面重试。
73
+
74
+ ## 0.3.39 - 2026-11-04
75
+
76
+ - 本次发布没有代码改动:包内服务端源码与 0.3.38 逐文件相同。
77
+
78
+ ## 0.3.38 - 2026-11-03
79
+
80
+ - 新增语义向量检索:事件向量写入、存量回填与语义召回车道(与词法结果一起做 RRF 融合),以及 rerank 精排;默认关闭,需要配置 embedding / rerank 端点与模型。
81
+ - 修复审阅反馈的缺陷:正文改写后旧向量仍被当成新鲜(改为按正文指纹校验)、语义车道未复用结构化筛选、查询向量缓存未带端点与模型身份、权重为 0 时仍在发请求。
82
+ - 向量路增加最小余弦阈值,语义召回可以诚实地返回「没有找到」。
83
+
3
84
  ## 0.3.40 - 2026-11-04
4
85
 
5
86
  - 设置页新增向量检索与结果精排配置:支持 OpenAI 兼容 API 地址、密钥、模型列表读取、启停和检索参数保存。
package/README.md CHANGED
@@ -69,7 +69,7 @@ StrataGate is a cross-session memory plugin for DeepSeek Harness. Daily notes he
69
69
 
70
70
  (1) **Events record what happened.** Important decisions, preferences, requirements, and changes become Events with scope, time, and source references. AI evaluates potential duplicates; uncertain cases can be reviewed by the user, and the processing history remains traceable. → [Event memory](#event-cards)
71
71
 
72
- (2) **The topic directory shows what has been remembered.** Related Events form chapters, sections, and source-linked overviews. The agent can browse topics before retrieving specific Events. Users can also start Dreaming, a dedicated agent that reviews and organizes the existing directory. → [Topic directory](#memory-topics)
72
+ (2) **The topic directory shows what has been remembered.** Related Events form chapters, sections, and source-linked overviews. The agent can browse topics before retrieving specific Events. Users can also start Dreaming, a dedicated agent that reviews and organizes historical memory. → [Topic directory](#memory-topics)
73
73
 
74
74
  (3) **The optional knowledge graph organizes current state.** When enabled, it derives current information and relationships about people, projects, tools, and other entities from Events, retaining their sources. The graph is off by default; Event cards, topics, and ordinary retrieval work independently. → [Current-state graph](#current-state-graph)
75
75
 
@@ -293,9 +293,9 @@ A Topic represents a lasting subject such as “Project X,” with sections for
293
293
 
294
294
  For “Where did we leave the project's technical plan?”, the agent can find the topic, read its overview, then retrieve specific Events to verify agreed choices and outstanding decisions.
295
295
 
296
- **Dreaming helps organize an existing directory.** Users can start a dedicated agent from the directory page to review existing Events and overviews and adjust chapters, sections, Event membership, and overview content. Its progress can be viewed, paused, resumed, or terminated; saved changes remain preserved.
296
+ **Dreaming reviews historical memory.** Start it from the directory even when there are no unassigned Events. Its dedicated agent can inspect conversations across sessions, correct missing or erroneous Events, consolidate duplicates, update daily notes, and maintain the directory and reusable experiences. It also starts automatically when new material exists, the main agent has been idle for about 30 minutes, and at least 24 hours have passed since the last automatic start. You can view, pause, resume, or stop a run; saved changes are kept.
297
297
 
298
- Dreaming organizes the directory and overviews without rewriting original Event facts or reinforcing memory through organization or reading. **The directory helps locate information; specific facts still need checking against their sources.**
298
+ Dreaming can remove incorrect or redundant derived Events. It keeps original conversations, earlier facts that were true at the time, and Profile settings. Later sessions can look up reusable methods with `memory_search_experiences`. **The directory helps locate information; specific facts still need checking against their sources.**
299
299
 
300
300
  <a id="persistent-profile"></a>
301
301
 
@@ -523,7 +523,7 @@ npm run build
523
523
  | [DeepSeek Harness guide](docs/DSH.md) | Installation, configuration, UI, memory tools, and recovery |
524
524
  | [Memory directory and topic overviews (Chinese)](docs/MEMORY_TOPICS.zh-CN.md) | Chapters and sections, source tracing, background organization, budgets, and recovery |
525
525
  | [Event extraction rules (Chinese)](docs/event-extractor.md) | Extraction decisions, scope, duplicates and historical relationships, and compatibility |
526
- | [Dreaming directory organization (Chinese)](https://github.com/diqierjia/StrataGate-AgentMemory/blob/main/docs/dreaming-agent.md) | Organization scope, run controls, source protection, and recovery |
526
+ | [Dreaming memory maintenance (Chinese)](https://github.com/diqierjia/StrataGate-AgentMemory/blob/main/docs/dreaming-agent.md) | Scope, triggers, deletion, and recovery |
527
527
  | [Optional knowledge graph (Chinese)](https://github.com/diqierjia/StrataGate-AgentMemory/blob/main/docs/knowledge-graph.md) | Defaults, enabling, pausing, disabling, and historical backfill |
528
528
  | [Manual level selection (Chinese)](https://github.com/diqierjia/StrataGate-AgentMemory/blob/main/docs/user-operation-priority.md) | Content preview, application, insufficient capacity, and recovery |
529
529
  | [Architecture](docs/ARCHITECTURE.md) | Layering, Events and graph, retrieval, evidence gate, weights, storage, and core APIs |
package/README.zh-CN.md CHANGED
@@ -69,7 +69,7 @@ StrataGate 是 DeepSeek Harness 的跨会话记忆插件。每日笔记帮助接
69
69
 
70
70
  (1) **事件记录“发生过什么”。** 重要决定、偏好、要求和变化会被整理为 Event,保留适用范围、时间和来源。重复候选由 AI 判断,难以确定的内容可交给用户复核,处理历史可以追溯。→ [事件记忆](#event-cards)
71
71
 
72
- (2) **主题目录说明“记过哪些内容”。** 相关事件整理为章节、小节和带来源的概览。Agent 可以先浏览主题,再查找具体事件;用户也可以启动 Dreaming,让专门的 Agent 检查和整理已有目录。→ [主题目录](#memory-topics)
72
+ (2) **主题目录说明“记过哪些内容”。** 相关事件整理为章节、小节和带来源的概览。Agent 可以先浏览主题,再查找具体事件;用户也可以启动 Dreaming,让独立 Agent 整理历史记忆。→ [主题目录](#memory-topics)
73
73
 
74
74
  (3) **知识图谱按需整理当前状态。** 开启后,图谱根据事件整理人物、项目、工具等实体的当前信息与关系,并保留来源。图谱默认关闭,不影响事件卡、主题目录和普通检索的使用。→ [当前状态图谱](#current-state-graph)
75
75
 
@@ -293,9 +293,9 @@ Block 的展示变化由指数衰减控制:
293
293
 
294
294
  例如,用户问“之前项目技术方案讨论到哪了”,Agent 可以先找到主题、查看概览,再查找具体事件,核对已确定的方案和待决定的问题。
295
295
 
296
- **Dreaming 帮助整理已有目录。** 用户可以从目录页启动专门的 Agent,让它检查已有事件和概览,调整章节、小节、事件归属及概览内容。运行过程可以查看、暂停、继续或终止;已经保存的修改保留。
296
+ **Dreaming 整理历史记忆。** 从目录页点「整理记忆」,独立 Agent 按需查阅跨会话的原文、Event 和笔记,补记遗漏、修正错误、合并重复内容,并整理目录和可复用经验。主 Agent 空闲约 30 分钟、有新增或更新内容,且距上次自动运行至少 24 小时时,也会自动启动。运行可查看、暂停、继续或终止,已保存的修改会保留。
297
297
 
298
- Dreaming 整理的是目录与概览,不改写原始 Event 事实,也不因整理或读取而强化记忆。**目录帮助定位,具体事实仍需沿来源查证。**
298
+ 重复或确认错误的派生 Event 可以实际删除,真实变化仍保留前后记录。原始对话和 Profile 保持原样,读取不强化记忆。后续会话可以用 `memory_search_experiences` 查找适用的历史经验。**目录帮助定位,具体事实仍需沿来源查证。**
299
299
 
300
300
  <a id="persistent-profile"></a>
301
301
 
@@ -525,7 +525,7 @@ npm run build
525
525
  | [DeepSeek Harness 使用说明](docs/DSH.zh-CN.md) | 安装、配置、界面、记忆工具和恢复机制 |
526
526
  | [记忆目录与主题概览](docs/MEMORY_TOPICS.zh-CN.md) | 章节与小节、来源追溯、后台整理、预算和恢复 |
527
527
  | [事件提取规则](docs/event-extractor.md) | 提取判断、适用范围、重复与历史关系,以及兼容边界 |
528
- | [Dreaming 目录整理](https://github.com/diqierjia/StrataGate-AgentMemory/blob/main/docs/dreaming-agent.md) | 目录整理范围、运行控制、来源保护与恢复 |
528
+ | [Dreaming 记忆整理](https://github.com/diqierjia/StrataGate-AgentMemory/blob/main/docs/dreaming-agent.md) | 整理范围、启动条件、删除语义和恢复 |
529
529
  | [可选知识图谱](https://github.com/diqierjia/StrataGate-AgentMemory/blob/main/docs/knowledge-graph.md) | 默认状态、开启、暂停、关闭及历史补建 |
530
530
  | [手动层级选择](https://github.com/diqierjia/StrataGate-AgentMemory/blob/main/docs/user-operation-priority.md) | 内容预览、实际应用、容量不足与恢复操作 |
531
531
  | [架构文档](docs/ARCHITECTURE.md) | 分层规则、事件与图谱、检索、证据门、权重、存储和核心 API |