stratagate-dsh 0.2.97 → 0.3.1

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,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.1 - Unreleased
4
+
5
+ - 修复 #113:明确 Graph canonical name 的来源是 Event ID 字符串数组,aliases/tags 才使用 `{ value, sourceEventIds }[]`。严格 schema 校验前,仅将 value 与实际 node.name 完全一致、字段与来源类型合法的对象数组归一为 name 来源;不匹配或异常结构仍拒绝,重试提示指出具体字段,原有 supplied Event 边界不变。
6
+ - 升级后首次配置 Graph projector 的 writer 打开命名空间时,仅为匹配旧 name schema 错误完整签名、来源均可暴露的终态失败 Graph jobs 排队一次有限重试周期;复用原 job 和后台 worker,持久化恢复标记,重启不反复清零。已完成、无关失败、遗忘/归档来源的 jobs 不自动恢复;无需手改 SQLite,原有人工 retry 入口保留。
7
+
8
+ ## 0.3.0 - 2026-10-06
9
+
10
+ - 将同名总览归为同一节:`.0` 保留各段独立来源的总览,`.1~N` 按来源去重并集分页;节身份不随新段落变化,浏览不写库、不增加模型调用。
11
+ - 小节按来源在章节成员中的最早位置排序,同位置由稳定节身份决定;模型把新总览放在前面时,已有小节编号仍保留,新事件形成的节追加。
12
+ - 将主题明确为长期大章节,章内支持具名小节;候选匹配结合有界成员线索,同名候选复用,避免按单个子功能或事件不断建章。
13
+ - 升级第 3 代主题整理器:节按长期类别归纳,同类缺陷、版本与处理状态进入同一节;第 2 代目录按历史额度重新整理,保留有效章的 ID、名称、成员顺序与创建时间,事件事实及全库预算不变。第 1 代碎章及无效旧派生语言仍退休。
14
+ - 增加失败历史批次的定向“重新整理”入口,校验来源及目录版本,排队为新的有限重试周期;重启继续、重复点击不重复排队,仍遵守每 10 分钟最多 2 批的历史额度。
15
+
16
+ - 升级长期记忆机制:默认提供精简的主题目录,支持按需展开主题概览,并通过 `memory_list_topics`、`memory_expand_topic` 和 `memory_search_events(topic_id)` 导航到真实事件。
17
+ - 主题与概览是可重建的导航层,事实依据仍来自 Event 与原始消息;浏览目录不产生证据批次,也不强化记忆,实际使用仍经过原有证据评估与采用流程。
18
+ - 兼容旧 schema-12 数据库。首次 writer 打开时冻结已有事件作为历史初始化集合,新命名空间立即完成空初始化;此后新增事件独立按增量整理,只读打开不迁移或写库。
19
+ - 历史整理按批进行,全库共享每 10 分钟最多 2 个历史任务的持久预算;新增事件优先,重启后继续未完成历史任务,已完成批次不重复处理。
20
+ - 校验所有生成来源的版本,来源修改、遗忘或归档后立即隐藏过期派生内容并拒绝迟到结果;稳定复用主题 ID,限制失败重试,避免失效主题或失败任务形成重复模型调用。
21
+
3
22
  ## 0.2.97 - 2026-10-05
4
23
 
5
24
  - 修复 #107:显式检索批次须在最终回答前完成证据评估与 `memory_record_use`;遗漏时先完成收尾,再生成完整用户答案,避免内部批次状态成为最后一条回答。
package/README.md CHANGED
@@ -8,14 +8,12 @@
8
8
 
9
9
  StrataGate is a cross-session memory plugin for DeepSeek Harness. Recent conversations stay detailed, older conversations become concise, and original records remain available when needed. Important decisions, preferences, and plans become long-term memories for future sessions.
10
10
 
11
- [![CI](https://github.com/diqierjia/StrataGate-AgentMemory/actions/workflows/ci.yml/badge.svg)](https://github.com/diqierjia/StrataGate-AgentMemory/actions/workflows/ci.yml)
12
- [![npm version](https://img.shields.io/npm/v/stratagate-dsh.svg)](https://www.npmjs.com/package/stratagate-dsh)
13
- [![npm downloads](https://img.shields.io/npm/dt/stratagate-dsh.svg)](https://www.npmjs.com/package/stratagate-dsh)
14
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
15
- [![GitHub stars](https://img.shields.io/github/stars/diqierjia/StrataGate-AgentMemory?style=social&label=Stars)](https://github.com/diqierjia/StrataGate-AgentMemory/stargazers)
16
- [![dshfind: StrataGate-AgentMemory — A 73](https://dshfind.com/api/badge/diqierjia/StrataGate-AgentMemory?lang=en)](https://dshfind.com/en/plugins/diqierjia/StrataGate-AgentMemory?ref=badge)
17
- [![Awesome DSH Plugin](https://awesome-dsh-plugin.com/badge.svg)](https://awesome-dsh-plugin.com)
18
- [![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](CONTRIBUTING.md)
11
+ <p align="center">
12
+ <a href="https://github.com/diqierjia/StrataGate-AgentMemory/actions/workflows/ci.yml"><img src="https://github.com/diqierjia/StrataGate-AgentMemory/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
13
+ <a href="https://www.npmjs.com/package/stratagate-dsh"><img src="https://img.shields.io/npm/v/stratagate-dsh.svg" alt="npm version" /></a>
14
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a>
15
+ <a href="https://github.com/diqierjia/StrataGate-AgentMemory/stargazers"><img src="https://img.shields.io/github/stars/diqierjia/StrataGate-AgentMemory?style=social&amp;label=Stars" alt="GitHub stars" /></a>
16
+ </p>
19
17
 
20
18
  [中文说明](README.zh-CN.md) · [DeepSeek Harness guide](docs/DSH.md) · [Architecture](docs/ARCHITECTURE.md) · [Full evaluation](docs/EVALUATION.md)
21
19
 
@@ -23,6 +21,36 @@ StrataGate is a cross-session memory plugin for DeepSeek Harness. Recent convers
23
21
 
24
22
  </div>
25
23
 
24
+ ---
25
+
26
+ <div align="center">
27
+
28
+ <h3 align="center">Community &amp; downloads</h3>
29
+
30
+ <table align="center">
31
+ <tr>
32
+ <td align="center">
33
+ <a href="https://dshfind.com/en/plugins/diqierjia/StrataGate-AgentMemory?ref=badge">
34
+ <img src="https://dshfind.com/api/card/diqierjia/StrataGate-AgentMemory?lang=en" alt="StrataGate on dshfind: rating and cumulative downloads" width="350" />
35
+ </a>
36
+ </td>
37
+ <td align="center">
38
+ <strong>npm downloads</strong><br /><br />
39
+ <a href="https://www.npmjs.com/package/stratagate-dsh"><img src="https://img.shields.io/npm/dt/stratagate-dsh.svg?label=total%20downloads" alt="Total npm downloads" /></a><br />
40
+ <a href="https://www.npmjs.com/package/stratagate-dsh"><img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.npmjs.org%2Fdownloads%2Fpoint%2Flast-month%2Fstratagate-dsh&amp;query=%24.downloads&amp;label=last%2030%20days&amp;color=brightgreen" alt="npm downloads in the last 30 days" /></a>
41
+ </td>
42
+ </tr>
43
+ </table>
44
+
45
+ <p align="center">
46
+ <a href="https://awesome-dsh-plugin.com"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="Awesome DSH Plugin" /></a>
47
+ <a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg" alt="Contributions welcome" /></a>
48
+ </p>
49
+
50
+ </div>
51
+
52
+ ---
53
+
26
54
  ## Why StrataGate?
27
55
 
28
56
  1. **Short-term memory: details fade as the conversation progresses and expand when needed.**
package/README.zh-CN.md CHANGED
@@ -8,15 +8,12 @@
8
8
 
9
9
  StrataGate 是 DeepSeek Harness 的跨会话记忆插件。近期对话保留细节,较早对话逐渐简化,需要时可以找回原文;重要决定、偏好和计划会整理为长期记忆,供后续会话使用。
10
10
 
11
- [![CI](https://github.com/diqierjia/StrataGate-AgentMemory/actions/workflows/ci.yml/badge.svg)](https://github.com/diqierjia/StrataGate-AgentMemory/actions/workflows/ci.yml)
12
- [![npm version](https://img.shields.io/npm/v/stratagate-dsh.svg)](https://www.npmjs.com/package/stratagate-dsh)
13
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
14
- [![GitHub stars](https://img.shields.io/github/stars/diqierjia/StrataGate-AgentMemory?style=social&label=Stars)](https://github.com/diqierjia/StrataGate-AgentMemory/stargazers)
15
- [![dshfind: StrataGate-AgentMemory — A 73](https://dshfind.com/api/badge/diqierjia/StrataGate-AgentMemory?lang=en)](https://dshfind.com/en/plugins/diqierjia/StrataGate-AgentMemory?ref=badge)
16
- [![Awesome DSH Plugin](https://awesome-dsh-plugin.com/badge.svg)](https://awesome-dsh-plugin.com)
17
- [![欢迎贡献](https://img.shields.io/badge/%E6%AC%A2%E8%BF%8E%E8%B4%A1%E7%8C%AE-brightgreen.svg)](CONTRIBUTING.zh-CN.md)
18
-
19
- [![dshfind](https://dshfind.com/api/card/diqierjia/StrataGate-AgentMemory?lang=zh)](https://dshfind.com/zh/plugins/diqierjia/StrataGate-AgentMemory?ref=badge)
11
+ <p align="center">
12
+ <a href="https://github.com/diqierjia/StrataGate-AgentMemory/actions/workflows/ci.yml"><img src="https://github.com/diqierjia/StrataGate-AgentMemory/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
13
+ <a href="https://www.npmjs.com/package/stratagate-dsh"><img src="https://img.shields.io/npm/v/stratagate-dsh.svg" alt="npm version" /></a>
14
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a>
15
+ <a href="https://github.com/diqierjia/StrataGate-AgentMemory/stargazers"><img src="https://img.shields.io/github/stars/diqierjia/StrataGate-AgentMemory?style=social&amp;label=Stars" alt="GitHub stars" /></a>
16
+ </p>
20
17
 
21
18
  [English](README.md) · [DeepSeek Harness 插件说明](docs/DSH.zh-CN.md) · [架构说明](docs/ARCHITECTURE.md) · [完整评测](docs/EVALUATION.md)
22
19
 
@@ -24,6 +21,36 @@ StrataGate 是 DeepSeek Harness 的跨会话记忆插件。近期对话保留细
24
21
 
25
22
  </div>
26
23
 
24
+ ---
25
+
26
+ <div align="center">
27
+
28
+ <h3 align="center">社区与下载</h3>
29
+
30
+ <table align="center">
31
+ <tr>
32
+ <td align="center">
33
+ <a href="https://dshfind.com/zh/plugins/diqierjia/StrataGate-AgentMemory?ref=badge">
34
+ <img src="https://dshfind.com/api/card/diqierjia/StrataGate-AgentMemory?lang=zh" alt="StrataGate 的 dshfind 收录、评分与累计下载" width="350" />
35
+ </a>
36
+ </td>
37
+ <td align="center">
38
+ <strong>npm 下载统计</strong><br /><br />
39
+ <a href="https://www.npmjs.com/package/stratagate-dsh"><img src="https://img.shields.io/npm/dt/stratagate-dsh.svg?label=%E7%B4%AF%E8%AE%A1%E4%B8%8B%E8%BD%BD" alt="npm 累计下载量" /></a><br />
40
+ <a href="https://www.npmjs.com/package/stratagate-dsh"><img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.npmjs.org%2Fdownloads%2Fpoint%2Flast-month%2Fstratagate-dsh&amp;query=%24.downloads&amp;label=%E8%BF%91%2030%20%E5%A4%A9&amp;color=brightgreen" alt="npm 近 30 天下载量" /></a>
41
+ </td>
42
+ </tr>
43
+ </table>
44
+
45
+ <p align="center">
46
+ <a href="https://awesome-dsh-plugin.com"><img src="https://awesome-dsh-plugin.com/badge.svg" alt="Awesome DSH Plugin" /></a>
47
+ <a href="CONTRIBUTING.zh-CN.md"><img src="https://img.shields.io/badge/%E6%AC%A2%E8%BF%8E%E8%B4%A1%E7%8C%AE-brightgreen.svg" alt="欢迎贡献" /></a>
48
+ </p>
49
+
50
+ </div>
51
+
52
+ ---
53
+
27
54
  ## 为什么选择 StrataGate?
28
55
 
29
56
  1. **短期记忆:随对话推进逐渐模糊,需要时重新展开。**
@@ -91,6 +118,8 @@ DSH_HOME/stratagate/memory.db
91
118
 
92
119
  自动召回目前最多带入 4 条 Event 和 4 个图谱节点,总预算约 900 tokens。当前会话另由分层 Block 和尚未封存的对话提供。
93
120
 
121
+ 同时提供约 400 词元的记忆目录,说明当前空间记过哪些主题;大目录可分类分页浏览。Agent 按需展开有来源的主题概览,再检索真实事件取证。主题在后台用已有事件分批整理,查看目录不调用模型、不强化记忆。→ [记忆目录与主题整合](docs/MEMORY_TOPICS.zh-CN.md)
122
+
94
123
  ## 核心设计
95
124
 
96
125
  | 机制 | 变化的内容 | 保留的内容 |