stratagate-dsh 0.2.15 → 0.2.16

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.
@@ -1,6 +1,6 @@
1
1
  # StrataGate for DeepSeek Harness
2
2
 
3
- [English](README.md) · [简体中文](README.zh-CN.md)
3
+ [English](../README.md) · [简体中文](README.zh-CN.md)
4
4
 
5
5
  面向 DeepSeek Harness 的自动、本地优先跨会话记忆。StrataGate 能够记住用户偏好、项目决策、已完成的对话和工具结果;Agent 回答前会检查找回的证据,并可将其展开追溯到原始消息。无需单独部署记忆服务器。
6
6
 
@@ -70,9 +70,9 @@ DSH_HOME/stratagate/memory.db
70
70
  - 默认不保存子 Agent 的对话轮次;同一项目中的子 Agent 仍然可以读取项目记忆。
71
71
  - 每个 DSH 对话轮次都有持久化的写入回执,因此重放或重试不会导致重复保存。
72
72
  - StrataGate 会执行现有的 Block 摘要、Event 提取、Element 投影、搜索、Evidence Gate(证据门控)以及仅在使用后触发的强化。
73
- - 每次主模型调用前,插件都会注入完整 open tail、每个已封 Block 当前衰减指针所指向的层级,以及最多 4 条激活 Event 和 4 条 active ElementFact。
73
+ - 每次主模型调用前,插件只会注入当前会话的 open tail 与已封 Block,并额外注入最多 4 条项目级激活 Event 和 4 条 active ElementFact。Block 仍会作为来源证据持久化,但绝不会自动带入其他会话。
74
74
 
75
- 激活查询由当前人类消息和 open tail 最近两个 turn 组成。现有 BM25 搜索继续作为词面相关性门槛,只有 pinned 和 safety 记忆可以例外进入候选;现有记忆权重提供第二路排序,再由 RRF 融合相关性与权重排序。激活区固定使用约 900 tokens 的预算,不会随数据库增大而增长。
75
+ 激活查询由当前人类消息和当前会话 open tail 的最近两个 turn 组成。现有 BM25 搜索继续作为词面相关性门槛,只有 pinned 和 safety 记忆可以例外进入候选;现有记忆权重提供第二路排序,再由 RRF 融合相关性与权重排序。激活区固定使用约 900 tokens 的预算,不会随数据库增大而增长。
76
76
 
77
77
  自动上下文只包含精简的 Event 与 fact 字段,并明确标注为历史背景而非指令。构建自动上下文不会调用 `recordMemoryUse`,不会增加 `mentionCount`,也不会更新 `lastAdoptedTurn`。现有 `memory_*` 工具仍用于更深入、经过 Evidence Gate 的主动检索,也是触发采用强化的唯一入口。
78
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratagate-dsh",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "Automatic local-first cross-session memory for DeepSeek Harness with source-traceable recall",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,7 +17,7 @@
17
17
  "./cordis.patch.yml": "./cordis.patch.yml",
18
18
  "./package.json": "./package.json"
19
19
  },
20
- "files": ["dist", "cordis.patch.yml", "README.md", "CHANGELOG.md", "LICENSE"],
20
+ "files": ["dist", "cordis.patch.yml", "README.md", "docs/README.zh-CN.md", "CHANGELOG.md", "LICENSE"],
21
21
  "dsh": {
22
22
  "bundle": { "patch": "./cordis.patch.yml" },
23
23
  "client": {
@@ -33,6 +33,13 @@
33
33
  "prepare": "npm run build"
34
34
  },
35
35
  "keywords": [
36
+ "memory",
37
+ "dsh",
38
+ "deepseek",
39
+ "plugin",
40
+ "agent",
41
+ "cross-session",
42
+ "evidence",
36
43
  "deepseek-harness",
37
44
  "dsh-plugin",
38
45
  "agent-memory",
@@ -42,6 +49,9 @@
42
49
  "conversation-memory",
43
50
  "long-term-memory",
44
51
  "local-first",
52
+ "time-decay",
53
+ "usage-reinforcement",
54
+ "source-traceability",
45
55
  "source-tracing",
46
56
  "evidence-gate"
47
57
  ],