stratagate-dsh 0.3.50 → 0.3.52
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/dist/client.js +2 -2
- package/dist/plugin.js +157 -15
- package/dist/plugin.js.map +1 -1
- package/docs/DSH.md +7 -0
- package/docs/DSH.zh-CN.md +2 -0
- package/package.json +1 -1
package/docs/DSH.md
CHANGED
|
@@ -157,6 +157,13 @@ memory_record_use memory_remember
|
|
|
157
157
|
memory_profile_update
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
+
When Event extraction leaves `quotes` empty, the runtime selects a relevant
|
|
161
|
+
fragment from the raw messages referenced by `sourceMessageIds`. Saved text is
|
|
162
|
+
always a verbatim substring; when no sufficiently relevant fragment exists,
|
|
163
|
+
the field stays empty. `memory_expand_event` marks an automatically selected
|
|
164
|
+
quote with `quotesOrigin: "auto_extracted"` and a short notice. Existing Events
|
|
165
|
+
are backfilled once on upgrade, without replacing any existing `quotes`.
|
|
166
|
+
|
|
160
167
|
`memory_get_blocks` returns a paginated directory: each row contains `id`,
|
|
161
168
|
`title`, `turnRange`, the injected `level`, and `targetLevel` when the decay target differs.
|
|
162
169
|
Read source content with `memory_expand_block`.
|
package/docs/DSH.zh-CN.md
CHANGED
|
@@ -155,6 +155,8 @@ memory_record_use memory_remember
|
|
|
155
155
|
memory_profile_update
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
+
Event 提取没有提供 `quotes` 时,运行时会从该 Event 的 `sourceMessageIds` 指向的原始消息中选择相关片段;保存内容始终是原文逐字子串,找不到足够相关的片段就保持为空。自动选择的引用在 `memory_expand_event` 的完整结果中带有 `quotesOrigin: "auto_extracted"` 和说明。已有历史 Event 在升级后只做一次同样的回填,已有 `quotes` 不会覆盖。
|
|
159
|
+
|
|
158
160
|
`memory_get_blocks` 返回分页目录,每项含 `id`、`title`、`turnRange`、实际注入的 `level`,以及目标层不同时的 `targetLevel`;
|
|
159
161
|
正文通过 `memory_expand_block` 获取。支持 `offset/limit`,默认每页 12 项,限制在 1–20 项,
|
|
160
162
|
返回 `total/offset/limit/nextOffset`,末页的 `nextOffset` 为 `null`。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stratagate-dsh",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.52",
|
|
4
4
|
"description": "Recent conversations stay vivid. Older ones fade into summaries, not oblivion. StrataGate gives DeepSeek Harness six-layer, time-decaying memory, while lasting events and relationships settle into a knowledge graph. Bring your memories from other AIs with you—no need to start over.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|