dsh-mnemon 0.2.15 → 0.3.0
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/README.md +18 -11
- package/README.zh-CN.md +18 -11
- package/SECURITY.md +12 -5
- package/lib/client.js +256 -24
- package/lib/contracts.js +36 -0
- package/lib/extension-sdk.js +238 -0
- package/lib/index.js +2230 -2993
- package/lib/kernel.js +1126 -0
- package/lib/layers/documents.js +31 -0
- package/lib/layers/memory-spaces.js +34 -0
- package/lib/layers/runtime.js +27 -0
- package/lib/provider-sdk.js +2 -0
- package/lib/registry-B9SdBRLo.js +2423 -0
- package/lib/strategy-default-three-tier.js +99 -0
- package/lib/strategy-sdk.js +56 -0
- package/lib/types/packages/contracts/src/index.d.ts +221 -0
- package/lib/types/packages/extension-sdk/src/index.d.ts +54 -0
- package/lib/types/packages/kernel/src/access.d.ts +14 -0
- package/lib/types/packages/kernel/src/catalog.d.ts +42 -0
- package/lib/types/packages/kernel/src/index.d.ts +5 -0
- package/lib/types/packages/kernel/src/kernel.d.ts +46 -0
- package/lib/types/packages/kernel/src/topology.d.ts +25 -0
- package/lib/types/packages/kernel/src/view.d.ts +78 -0
- package/lib/types/packages/layer-documents/src/index.d.ts +4 -0
- package/lib/types/packages/layer-memory-spaces/src/index.d.ts +4 -0
- package/lib/types/packages/layer-runtime/src/index.d.ts +4 -0
- package/lib/types/packages/provider-sdk/src/index.d.ts +19 -0
- package/lib/types/packages/strategy-default-three-tier/src/index.d.ts +7 -0
- package/lib/types/packages/strategy-sdk/src/index.d.ts +35 -0
- package/lib/types/{client → src/client}/api.d.ts +2 -1
- package/lib/types/{client → src/client}/locales.d.ts +34 -0
- package/lib/types/{contracts.d.ts → src/contracts.d.ts} +3 -0
- package/lib/types/{documents.d.ts → src/documents.d.ts} +7 -2
- package/lib/types/src/guidance.d.ts +23 -0
- package/lib/types/{index.d.ts → src/index.d.ts} +3 -1
- package/lib/types/{lifecycle.d.ts → src/lifecycle.d.ts} +5 -9
- package/lib/types/{live-runtime.d.ts → src/live-runtime.d.ts} +30 -3
- package/lib/types/{memory-bodies.d.ts → src/memory-bodies.d.ts} +3 -0
- package/lib/types/src/memory-receipts.d.ts +21 -0
- package/lib/types/src/memory-system/access.d.ts +2 -0
- package/lib/types/src/memory-system/catalog.d.ts +2 -0
- package/lib/types/src/memory-system/contracts.d.ts +2 -0
- package/lib/types/src/memory-system/defaults.d.ts +6 -0
- package/lib/types/src/memory-system/index.d.ts +7 -0
- package/lib/types/src/memory-system/kernel.d.ts +2 -0
- package/lib/types/src/memory-system/topology.d.ts +2 -0
- package/lib/types/src/memory-system/view.d.ts +2 -0
- package/lib/types/src/memory-view.d.ts +15 -0
- package/lib/types/src/provider-sdk.d.ts +4 -0
- package/lib/types/src/providers/memory-system.d.ts +6 -0
- package/lib/types/src/providers/registry.d.ts +23 -0
- package/lib/types/{runtime-memory.d.ts → src/runtime-memory.d.ts} +29 -3
- package/lib/types/src/search-tokens.d.ts +5 -0
- package/lib/types/{service.d.ts → src/service.d.ts} +9 -1
- package/lib/types/{shared → src/shared}/contracts.d.ts +25 -0
- package/lib/types/{subagent.d.ts → src/subagent.d.ts} +29 -19
- package/lib/types/{tools.d.ts → src/tools.d.ts} +2 -9
- package/package.json +45 -9
- package/lib/types/guidance.d.ts +0 -11
- /package/lib/types/{activity.d.ts → src/activity.d.ts} +0 -0
- /package/lib/types/{channels.d.ts → src/channels.d.ts} +0 -0
- /package/lib/types/{client → src/client}/GlobalLocationSetting.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonDialog.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonLogo.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonPackSection.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonSaveAction.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonSettingsCard.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonTurnTail.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonView.d.ts +0 -0
- /package/lib/types/{client → src/client}/MnemonViewAppearance.d.ts +0 -0
- /package/lib/types/{client → src/client}/ProviderIcon.d.ts +0 -0
- /package/lib/types/{client → src/client}/ProviderSettingsSection.d.ts +0 -0
- /package/lib/types/{client → src/client}/anchor.d.ts +0 -0
- /package/lib/types/{client → src/client}/dsh-compat.d.ts +0 -0
- /package/lib/types/{client → src/client}/index.d.ts +0 -0
- /package/lib/types/{client → src/client}/settings.d.ts +0 -0
- /package/lib/types/{client → src/client}/sidebar-entry.d.ts +0 -0
- /package/lib/types/{client → src/client}/use-request-version.d.ts +0 -0
- /package/lib/types/{client → src/client}/workspace-controller.d.ts +0 -0
- /package/lib/types/{client → src/client}/workspace-mount.d.ts +0 -0
- /package/lib/types/{commands.d.ts → src/commands.d.ts} +0 -0
- /package/lib/types/{config-values.d.ts → src/config-values.d.ts} +0 -0
- /package/lib/types/{config.d.ts → src/config.d.ts} +0 -0
- /package/lib/types/{pack.d.ts → src/pack.d.ts} +0 -0
- /package/lib/types/{process.d.ts → src/process.d.ts} +0 -0
- /package/lib/types/{provider-placement.d.ts → src/provider-placement.d.ts} +0 -0
- /package/lib/types/{providers → src/providers}/byterover.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/catalog.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/hindsight.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/holographic.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/honcho.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/http.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/mem0.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/openviking.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/provider.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/retaindb.d.ts +0 -0
- /package/lib/types/{providers → src/providers}/supermemory.d.ts +0 -0
- /package/lib/types/{recall-quality → src/recall-quality}/contracts.d.ts +0 -0
- /package/lib/types/{recall-quality → src/recall-quality}/engine.d.ts +0 -0
- /package/lib/types/{recall-quality → src/recall-quality}/index.d.ts +0 -0
- /package/lib/types/{recall-quality → src/recall-quality}/policies.d.ts +0 -0
- /package/lib/types/{recall-quality → src/recall-quality}/registry.d.ts +0 -0
- /package/lib/types/{review-activity.d.ts → src/review-activity.d.ts} +0 -0
- /package/lib/types/{rpc.d.ts → src/rpc.d.ts} +0 -0
- /package/lib/types/{runner.d.ts → src/runner.d.ts} +0 -0
- /package/lib/types/{settings.d.ts → src/settings.d.ts} +0 -0
- /package/lib/types/{storage-scope.d.ts → src/storage-scope.d.ts} +0 -0
- /package/lib/types/{version-updates.d.ts → src/version-updates.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<p align="center"><strong>English</strong> · <a href="./README.zh-CN.md">简体中文</a></p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
<img src="https://img.shields.io/badge/release-v0.
|
|
6
|
+
<img src="https://img.shields.io/badge/release-v0.3.0-5b5bd6" alt="release v0.3.0">
|
|
7
7
|
<img src="https://img.shields.io/badge/memory-3%20tiers-087c5b" alt="three memory tiers">
|
|
8
8
|
<img src="https://img.shields.io/badge/providers-9-c66a09" alt="nine providers">
|
|
9
9
|
<img src="https://img.shields.io/badge/Node.js-%E2%89%A520-43853d" alt="Node.js 20 or newer">
|
|
@@ -14,22 +14,24 @@
|
|
|
14
14
|
<p align="center">Three memory tiers · Nine long-term providers · One supervised workflow</p>
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
|
-
<a href="https://github.com/
|
|
18
|
-
<img src="https://raw.githubusercontent.com/
|
|
17
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/media/dsh-mnemon-memory-system-demo.mp4">
|
|
18
|
+
<img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/9196fd9991676a6bd9a84d615fcd301eb52e872a/docs/assets/media/dsh-mnemon-memory-system-demo-poster.jpg" alt="dsh-mnemon v0.2.0 live multi-memory snapshot and observable provider surfaces" width="1180">
|
|
19
19
|
</a>
|
|
20
20
|
</p>
|
|
21
21
|
|
|
22
22
|
<p align="center">
|
|
23
23
|
<a href="./docs/en/capabilities.md"><strong>Explore the capability map</strong></a> ·
|
|
24
24
|
<a href="./docs/en/getting-started.md">Start in five minutes</a> ·
|
|
25
|
-
<a href="./docs/en/releases/v0.
|
|
26
|
-
<a href="https://github.com/
|
|
25
|
+
<a href="./docs/en/releases/v0.3.0.md">Read the v0.3.0 notes</a> ·
|
|
26
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/media/dsh-mnemon-memory-system-demo.mp4">Watch the widescreen demo</a>
|
|
27
27
|
</p>
|
|
28
28
|
|
|
29
29
|
`dsh-mnemon` gives DSH one memory control plane without forcing every kind of knowledge into one database. Runtime Memory keeps compact context available every turn. Project Documents preserve complete narratives. Memory Spaces retrieve durable evidence on demand and can use **Mnemon, OpenViking, Honcho, Mem0, Hindsight, Holographic, RetainDB, ByteRover, or Supermemory**.
|
|
30
30
|
|
|
31
31
|
[Mnemon](https://github.com/mnemon-dev/mnemon) remains the official, prioritized native engine. The third tier is replaceable; the first two keep the same storage, workspace, and interaction model regardless of provider.
|
|
32
32
|
|
|
33
|
+
Since v0.3.0, the three tiers are the **default topology** of a composable kernel rather than the only shape hard-coded into every entry point. `MemoryBoot` wires trusted Layer, Adapter, Strategy, Guard, and `MemorySource` contributions into one runtime generation. Each user turn pins a lightweight `TurnView`: exact Runtime context enters Wake eagerly, while Documents and Memory Spaces contribute only bounded routing covers and keep complete recall authority Host-side. Users still install one `dsh-mnemon` package and keep the existing settings, tools, RPC, and UI workflow. See the [composable architecture](./docs/en/architecture.md#composable-memory-kernel) and [extension guide](./docs/en/extensions.md).
|
|
34
|
+
|
|
33
35
|
## Understand the scope in 30 seconds
|
|
34
36
|
|
|
35
37
|
| Tier | Keep here | How it reaches the Agent | Managed by |
|
|
@@ -52,7 +54,11 @@ The tiers are not copies. A useful rule is: **every-turn context goes to Runtime
|
|
|
52
54
|
| **Archive Document** | A task Agent creates a searchable cold reference before the Host moves the original | Supervised move |
|
|
53
55
|
| **Turn memory** | Expands exact recall, write, and Document-search activity; each item navigates to its source | Read-only |
|
|
54
56
|
|
|
55
|
-
|
|
57
|
+
Only the rows that explicitly name a task Agent spend a separate model context; **Search** and **Turn memory** are deterministic Host reads.
|
|
58
|
+
|
|
59
|
+
Task Agents do not reuse or consume the main conversation history. By default they follow DSH's new-session model route; **Settings → Memory System → Background task Agent** can select a dedicated Provider and model. That fixed route also applies to bounded Mnemon workers for idle checkpoint review, writes, evidence-bound answers, provider placement, memory migration, USER compaction, Document archiving, and metadata maintenance. Conversation Recall and Related stay direct Host reads and do not use this background route.
|
|
60
|
+
|
|
61
|
+
With DSH 0.1.1-rc.2, the first-party `deepseek-official/deepseek-v4-flash-vision-exp` route appears with an **Image input** label. Mnemon background jobs still send text-only prompts; multimodal conversation messages keep their DSH attachment references through lifecycle processing, and raw image bytes are never copied into memory.
|
|
56
62
|
|
|
57
63
|
## One Memory Space workflow, nine providers
|
|
58
64
|
|
|
@@ -76,9 +82,9 @@ See the [provider capability and deployment matrix](./docs/en/memory-providers.m
|
|
|
76
82
|
|
|
77
83
|
The following roughly 55-second capture comes from a live 1600×900 DSH WebUI. It deliberately pauses on full-page scrolling, page transitions, Provider cards, dialogs, button-state changes, and a completed read-only Agent Query. Destructive confirmations are deliberately not submitted.
|
|
78
84
|
|
|
79
|
-

|
|
80
86
|
|
|
81
|
-
[Watch the 1600×900 MP4](https://github.com/
|
|
87
|
+
[Watch the 1600×900 MP4](https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/media/dsh-mnemon-memory-system-demo.mp4) · [Open the page-by-page UI guide](./docs/en/ui-guide.md)
|
|
82
88
|
|
|
83
89
|
## Start in five minutes
|
|
84
90
|
|
|
@@ -142,7 +148,7 @@ The primary tab order is intentionally stable: **Status, Runtime, Documents, Mem
|
|
|
142
148
|
|
|
143
149
|
| Supervised distillation | Bounded Agent query |
|
|
144
150
|
|---|---|
|
|
145
|
-
| [](https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/screenshots/remember-dialog.png) | [](https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/screenshots/recall-agent-answer.png) |
|
|
146
152
|
|
|
147
153
|
The workbench makes the task boundary explicit before dispatch and keeps the returned answer beside its evidence scope. Conversation-native Turn memory and Save to memory remain enabled by default and can be changed independently under **Settings → Memory System → Conversation interface**.
|
|
148
154
|
|
|
@@ -150,7 +156,7 @@ The workbench makes the task boundary explicit before dispatch and keeps the ret
|
|
|
150
156
|
|
|
151
157
|
| Create explicitly | Route future distillation intelligently |
|
|
152
158
|
|---|---|
|
|
153
|
-
| [](https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/screenshots/memory-space-create-dialog.png) | [](https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/screenshots/distillation-strategy.png) |
|
|
154
160
|
|
|
155
161
|
Manual creation always asks the user to choose. Smart selection is a distillation policy: hard rules define the eligible set, then an optional prompt guides the Agent only when several candidates remain.
|
|
156
162
|
|
|
@@ -197,7 +203,8 @@ See [Operations, security, and troubleshooting](./docs/en/operations.md) for bac
|
|
|
197
203
|
| Configure scope, routing, and model selection | [Configuration](./docs/en/configuration.md) |
|
|
198
204
|
| Back up, update, or troubleshoot | [Operations](./docs/en/operations.md) |
|
|
199
205
|
| Integrate tools, commands, or RPC | [Interface reference](./docs/en/interfaces.md) |
|
|
200
|
-
|
|
|
206
|
+
| Build a Layer, Adapter, Strategy, Guard, or MemorySource extension | [Extension guide](./docs/en/extensions.md) |
|
|
207
|
+
| Review the release | [v0.3.0 release notes](./docs/en/releases/v0.3.0.md) |
|
|
201
208
|
|
|
202
209
|
See the [documentation hub](./docs/en/README.md) for the full map.
|
|
203
210
|
|
package/README.zh-CN.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<p align="center"><a href="./README.md">English</a> · <strong>简体中文</strong></p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
<img src="https://img.shields.io/badge/release-v0.
|
|
6
|
+
<img src="https://img.shields.io/badge/release-v0.3.0-5b5bd6" alt="发布版本 v0.3.0">
|
|
7
7
|
<img src="https://img.shields.io/badge/%E8%AE%B0%E5%BF%86-3%20%E5%B1%82-087c5b" alt="三层记忆">
|
|
8
8
|
<img src="https://img.shields.io/badge/Provider-9-c66a09" alt="九种 Provider">
|
|
9
9
|
<img src="https://img.shields.io/badge/Node.js-%E2%89%A520-43853d" alt="Node.js 20 或更新版本">
|
|
@@ -14,22 +14,24 @@
|
|
|
14
14
|
<p align="center">三层记忆 · 九种长期记忆 Provider · 一套受监督工作流</p>
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
|
-
<a href="https://github.com/
|
|
18
|
-
<img src="https://raw.githubusercontent.com/
|
|
17
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/media/dsh-mnemon-memory-system-demo.mp4">
|
|
18
|
+
<img src="https://raw.githubusercontent.com/omdsh-dev/dsh-mnemon/9196fd9991676a6bd9a84d615fcd301eb52e872a/docs/assets/media/dsh-mnemon-memory-system-demo-poster.jpg" alt="dsh-mnemon v0.2.0 多记忆体实时快照与 Provider 可观察范围" width="1180">
|
|
19
19
|
</a>
|
|
20
20
|
</p>
|
|
21
21
|
|
|
22
22
|
<p align="center">
|
|
23
23
|
<a href="./docs/zh-CN/capabilities.md"><strong>先看能力地图</strong></a> ·
|
|
24
24
|
<a href="./docs/zh-CN/getting-started.md">5 分钟开始</a> ·
|
|
25
|
-
<a href="./docs/zh-CN/releases/v0.
|
|
26
|
-
<a href="https://github.com/
|
|
25
|
+
<a href="./docs/zh-CN/releases/v0.3.0.md">v0.3.0 升级说明</a> ·
|
|
26
|
+
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/media/dsh-mnemon-memory-system-demo.mp4">观看宽屏实机演示</a>
|
|
27
27
|
</p>
|
|
28
28
|
|
|
29
29
|
`dsh-mnemon` 为 DSH 提供统一的记忆控制面,但不要求所有知识进入同一种数据库。运行时记忆让紧凑上下文每轮可用;项目档案保留完整叙事;记忆体按需召回长期证据,底层可选择 **Mnemon、OpenViking、Honcho、Mem0、Hindsight、Holographic、RetainDB、ByteRover 或 Supermemory**。
|
|
30
30
|
|
|
31
31
|
[Mnemon](https://github.com/mnemon-dev/mnemon) 仍是官方优先的原生引擎。可以替换的是第三层;无论选择哪个 Provider,前两层的存储、工作区和交互心智保持不变。
|
|
32
32
|
|
|
33
|
+
从 v0.3.0 开始,三层是可组合内核中的**默认拓扑**,不再是各入口各自写死的唯一结构。`MemoryBoot` 把受信任的 Layer、Adapter、Strategy、Guard 与 `MemorySource` 装配为一代运行图;每个用户回合固定一份轻量 `TurnView`:Runtime 精确内容 eager 进入 Wake,Documents 与 Memory Spaces 只给出有界路由封面,完整召回权限保留在 Host。用户仍只安装一个 `dsh-mnemon`,设置、工具、RPC 与 UI 工作流不变。参见[可组合架构](./docs/zh-CN/architecture.md#可组合记忆内核)与[扩展开发指南](./docs/zh-CN/extensions.md)。
|
|
34
|
+
|
|
33
35
|
## 30 秒理解能力边界
|
|
34
36
|
|
|
35
37
|
| 层级 | 适合保存 | 如何进入 Agent 上下文 | 由谁管理 |
|
|
@@ -52,7 +54,11 @@
|
|
|
52
54
|
| **归档档案** | 任务 Agent 先建立可检索冷引用,Host 验证后移动原文 | 受监督迁移 |
|
|
53
55
|
| **本回合记忆** | 展开本轮召回、写入和档案检索;点击条目精确跳转 | 只读 |
|
|
54
56
|
|
|
55
|
-
|
|
57
|
+
只有明确写出“任务 Agent”的行才会消耗独立模型上下文;**检索**和**本回合记忆**都是确定性的 Host 读取。
|
|
58
|
+
|
|
59
|
+
任务 Agent 不会复用或挤占主对话历史,默认跟随 DSH 新建会话时的模型路由;也可以在**设置 → 记忆系统 → 后台任务 Agent**单独指定 Provider 与模型。该固定路由也作用于空闲复盘、写入、证据问答、Provider 选择、记忆迁移、USER 压缩、档案归档和元信息维护等受限 Mnemon worker;对话中的 Recall 与 Related 仍由 Host 直接读取,不使用后台路由。
|
|
60
|
+
|
|
61
|
+
在 DSH 0.1.1-rc.2 中,第一方 `deepseek-official/deepseek-v4-flash-vision-exp` 路由会标记为**图片输入**。Mnemon 后台任务目前仍只发送文本 Prompt;多模态对话消息在生命周期处理中保留 DSH attachment 引用,不会把原始图片字节复制到记忆。
|
|
56
62
|
|
|
57
63
|
## 一套记忆体工作流,九种 Provider
|
|
58
64
|
|
|
@@ -76,9 +82,9 @@ Provider 能力差异会如实展示:引擎没有图谱边、删除语义或
|
|
|
76
82
|
|
|
77
83
|
下面约 55 秒的素材来自真实的 1600×900 DSH WebUI:在完整上下滑动、页面切换、Provider 卡片、弹窗、按钮状态变化和 Agent 答案上都保留了更清晰的停留,并包含一次真正完成的只读 Agent 查询。可能改变数据的确认按钮都没有提交。
|
|
78
84
|
|
|
79
|
-

|
|
80
86
|
|
|
81
|
-
[观看 1600×900 MP4](https://github.com/
|
|
87
|
+
[观看 1600×900 MP4](https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/media/dsh-mnemon-memory-system-demo.mp4) · [按页面查看交互指南](./docs/zh-CN/ui-guide.md)
|
|
82
88
|
|
|
83
89
|
## 5 分钟开始使用
|
|
84
90
|
|
|
@@ -142,7 +148,7 @@ dsh plugin --profile headless add "link:/absolute/path/to/dsh-mnemon"
|
|
|
142
148
|
|
|
143
149
|
| 受监督沉淀 | 有界 Agent 查询 |
|
|
144
150
|
|---|---|
|
|
145
|
-
| [](https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/screenshots/remember-dialog.png) | [](https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/screenshots/recall-agent-answer.png) |
|
|
146
152
|
|
|
147
153
|
工作台会在调度前明确展示任务边界,并把返回答案与本次证据范围放在一起。对话内的“本回合记忆”和“存入记忆”仍默认开启,可在**设置 → 记忆系统 → 对话界面**分别关闭。
|
|
148
154
|
|
|
@@ -150,7 +156,7 @@ dsh plugin --profile headless add "link:/absolute/path/to/dsh-mnemon"
|
|
|
150
156
|
|
|
151
157
|
| 明确选择底层 | 智能路由后续沉淀 |
|
|
152
158
|
|---|---|
|
|
153
|
-
| [](https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/screenshots/memory-space-create-dialog.png) | [](https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/screenshots/distillation-strategy.png) |
|
|
154
160
|
|
|
155
161
|
手动创建记忆体始终由用户明确选择。智能选择属于“沉淀策略”:硬规则定义候选范围,策略 Prompt 只在多个候选都合格时帮助任务 Agent 决策。
|
|
156
162
|
|
|
@@ -197,7 +203,8 @@ dsh plugin --profile headless add "link:/absolute/path/to/dsh-mnemon"
|
|
|
197
203
|
| 配置范围、路由与模型 | [配置参考](./docs/zh-CN/configuration.md) |
|
|
198
204
|
| 备份、更新或排障 | [运维指南](./docs/zh-CN/operations.md) |
|
|
199
205
|
| 接入工具、命令或 RPC | [接口参考](./docs/zh-CN/interfaces.md) |
|
|
200
|
-
|
|
|
206
|
+
| 开发 Layer、Adapter、Strategy、Guard 或 MemorySource 扩展 | [扩展开发指南](./docs/zh-CN/extensions.md) |
|
|
207
|
+
| 查看本次升级 | [v0.3.0 发布说明](./docs/zh-CN/releases/v0.3.0.md) |
|
|
201
208
|
|
|
202
209
|
完整目录见[文档中心](./docs/zh-CN/README.md)。
|
|
203
210
|
|
package/SECURITY.md
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
| Version | Supported |
|
|
8
8
|
|---|---|
|
|
9
|
-
| 0.
|
|
9
|
+
| 0.3.x (npm `dsh-mnemon`) | ✅ |
|
|
10
|
+
| < 0.3 | ❌ |
|
|
10
11
|
|
|
11
12
|
Only the latest published version receives security fixes. The plugin targets the DSH mainline snapshot it was verified against; see the compatibility baseline in [README.md](./README.md).
|
|
12
13
|
|
|
@@ -38,6 +39,7 @@ In scope:
|
|
|
38
39
|
|
|
39
40
|
- The plugin bundle (`lib/`, `cordis.patch.yml`): data-loss, privilege-escalation, path-traversal, secret-leak, and memory-corruption style issues in plugin code.
|
|
40
41
|
- The control plane: lock handling, revision conflict checks, atomic writes, and subagent isolation boundaries.
|
|
42
|
+
- The composable-memory boundary: Catalog/Topology generation checks, Strategy permission enforcement, non-bypassable Kernel Guards, and Plan/Receipt integrity.
|
|
41
43
|
- The WebUI: XSS or injection via rendered memory content.
|
|
42
44
|
|
|
43
45
|
Out of scope:
|
|
@@ -49,7 +51,9 @@ Out of scope:
|
|
|
49
51
|
## Known limitations
|
|
50
52
|
|
|
51
53
|
- There is no deterministic credential/secret detection today. Do not write keys, tokens, or private keys into Runtime Memory, Documents, or Memory Spaces.
|
|
52
|
-
-
|
|
54
|
+
- Cordis isolation provides lifecycle ownership and scope composition, not a security sandbox. Layer executors, Provider Adapters, Strategies, and Guards are ordinary JavaScript in the DSH Host process. Install extensions only from trusted sources.
|
|
55
|
+
- Model-generated Strategy source is not executed automatically. Manifests, permission wrapping, replay, and Kernel validation reduce accidental authority but cannot make hostile in-process code safe.
|
|
56
|
+
- Runtime Memory and Documents are local, and Mnemon Native is local by default. Enabled third-party Providers can make network or local-process calls and expose data according to their configured endpoints and credentials.
|
|
53
57
|
|
|
54
58
|
---
|
|
55
59
|
|
|
@@ -59,7 +63,8 @@ Out of scope:
|
|
|
59
63
|
|
|
60
64
|
| 版本 | 支持 |
|
|
61
65
|
|---|---|
|
|
62
|
-
| 0.
|
|
66
|
+
| 0.3.x(npm `dsh-mnemon`) | ✅ |
|
|
67
|
+
| < 0.3 | ❌ |
|
|
63
68
|
|
|
64
69
|
仅最新发布版本获得安全修复。插件以验证时的 DSH mainline 快照为兼容基线,见 [README.zh-CN.md](./README.zh-CN.md)。
|
|
65
70
|
|
|
@@ -79,11 +84,13 @@ Out of scope:
|
|
|
79
84
|
|
|
80
85
|
### 范围
|
|
81
86
|
|
|
82
|
-
**范围内**:插件 bundle 与 `cordis.patch.yml` 中的数据丢失、提权、路径穿越、秘密泄露类问题;控制面(锁、revision 冲突检查、原子写、子 Agent
|
|
87
|
+
**范围内**:插件 bundle 与 `cordis.patch.yml` 中的数据丢失、提权、路径穿越、秘密泄露类问题;控制面(锁、revision 冲突检查、原子写、子 Agent 隔离);可组合记忆边界(Catalog/Topology generation、Strategy 权限约束、不可绕过的 Kernel Guard、Plan/Receipt 完整性);WebUI 对记忆内容渲染的 XSS/注入。
|
|
83
88
|
|
|
84
89
|
**范围外**:上游依赖(`mnemon`、`cordis`、DSH 核心、React)自身的问题(报告给上游,我们可协助定位与临时规避);功能缺失、文档问题(走普通 issue);你自行写入记忆数据中的凭据或秘密(插件当前没有秘密检测器,见 README 披露)。
|
|
85
90
|
|
|
86
91
|
### 已知限制
|
|
87
92
|
|
|
88
93
|
- 当前没有确定性的凭据/秘密检测,请勿向热记忆、Documents 或 Memory Spaces 写入密钥、token、私钥。
|
|
89
|
-
-
|
|
94
|
+
- Cordis isolate 提供生命周期所有权和作用域组合,不是安全沙箱。Layer executor、Provider Adapter、Strategy 与 Guard 都是在 DSH Host 进程执行的普通 JavaScript,只能安装受信任来源的扩展。
|
|
95
|
+
- 模型生成的 Strategy 源码不会自动执行。manifest、权限封装、replay 与 Kernel 校验可以降低意外越权,但无法让恶意同进程代码变安全。
|
|
96
|
+
- Runtime Memory 与 Documents 为本地存储,Mnemon Native 默认本地;显式启用的三方 Provider 可能按配置 endpoint 与凭据发起网络调用或本地进程调用,并向对应服务暴露数据。
|