dsh-mnemon 0.3.3 → 0.3.5
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 +5 -3
- package/README.zh-CN.md +5 -3
- package/lib/client.js +126 -16
- package/lib/index.js +352 -110
- package/lib/types/src/client/MnemonTurnTail.d.ts +3 -2
- package/lib/types/src/client/MnemonView.d.ts +1 -1
- package/lib/types/src/client/api.d.ts +1 -0
- package/lib/types/src/client/dsh-compat.d.ts +34 -3
- package/lib/types/src/client/locales.d.ts +24 -0
- package/lib/types/src/client/subagent-token-usage.d.ts +3 -4
- package/lib/types/src/config-values.d.ts +5 -0
- package/lib/types/src/config.d.ts +1 -1
- package/lib/types/src/contracts.d.ts +18 -4
- package/lib/types/src/git-branch.d.ts +6 -0
- package/lib/types/src/memory-view.d.ts +8 -2
- package/lib/types/src/pack.d.ts +2 -1
- package/lib/types/src/rpc.d.ts +7 -7
- package/lib/types/src/runtime-memory.d.ts +22 -6
- package/lib/types/src/shared/contracts.d.ts +26 -1
- package/lib/types/src/subagent.d.ts +2 -1
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<p align="center">
|
|
25
25
|
<a href="./docs/en/capabilities.md"><strong>Explore the capability map</strong></a> ·
|
|
26
26
|
<a href="./docs/en/getting-started.md">Start in five minutes</a> ·
|
|
27
|
-
<a href="./docs/en/releases/v0.3.
|
|
27
|
+
<a href="./docs/en/releases/v0.3.5.md">Read the v0.3.5 notes</a> ·
|
|
28
28
|
<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>
|
|
29
29
|
</p>
|
|
30
30
|
|
|
@@ -108,7 +108,7 @@ Windows users can install the official v0.2.3-or-newer release ZIP. The expected
|
|
|
108
108
|
|
|
109
109
|
### 2. Install DSH and the plugin
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
The registry installation remains verified against DSH 0.1.1-rc.2, whose complete profiles require Node.js `^22.19.0 || >=24.0.0`; Node 20 lacks host primitives used by rc.2. Source compatibility is also verified against the source-only DSH 0.1.2-alpha.1 preview; it is not an npm installation target. The dsh-mnemon package itself retains Node.js 20 compatibility for older compatible DSH hosts. Use the exact published version below for a reproducible installation; plugin authors can follow the [alpha source workflow](./docs/en/development.md#dsh-012-alpha1-source-verification).
|
|
112
112
|
|
|
113
113
|
```sh
|
|
114
114
|
npm install -g @deepseek-ai/dsh@0.1.1-rc.2
|
|
@@ -170,6 +170,8 @@ Manual creation always asks the user to choose. Smart selection is a distillatio
|
|
|
170
170
|
| `workspace` | Uses `<workspace>/.mnemon`; local Providers that support workspace following move with the effective workspace |
|
|
171
171
|
| `custom` | An explicit path with global semantics, useful for team conventions or isolated environments |
|
|
172
172
|
|
|
173
|
+
Set `runtimeUserScope: global` together with `storageScope: workspace` to project the global USER.md profile and workspace MEMORY.md at the same time. User-profile writes stay global; project Runtime, Documents, Memory Spaces, and Provider state remain isolated. No existing entries are copied or deleted when switching.
|
|
174
|
+
|
|
173
175
|
Remote Provider workspaces, users, banks, projects, containers, and URIs remain their own namespaces; switching the DSH workspace never silently rewrites them. In workspace mode, the workbench may inspect one selected workspace while the current conversation continues to execute in its own cwd. Independent task Agents launched from the workbench use the inspected workspace even when no main session is selected.
|
|
174
176
|
|
|
175
177
|
## Web, conversation, and Headless share one system
|
|
@@ -206,7 +208,7 @@ See [Operations, security, and troubleshooting](./docs/en/operations.md) for bac
|
|
|
206
208
|
| Back up, update, or troubleshoot | [Operations](./docs/en/operations.md) |
|
|
207
209
|
| Integrate tools, commands, or RPC | [Interface reference](./docs/en/interfaces.md) |
|
|
208
210
|
| Build a Layer, Adapter, Strategy, Guard, or MemorySource extension | [Extension guide](./docs/en/extensions.md) |
|
|
209
|
-
| Review the release | [v0.3.
|
|
211
|
+
| Review the release | [v0.3.5 release notes](./docs/en/releases/v0.3.5.md) |
|
|
210
212
|
|
|
211
213
|
See the [documentation hub](./docs/en/README.md) for the full map.
|
|
212
214
|
|
package/README.zh-CN.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<p align="center">
|
|
25
25
|
<a href="./docs/zh-CN/capabilities.md"><strong>先看能力地图</strong></a> ·
|
|
26
26
|
<a href="./docs/zh-CN/getting-started.md">5 分钟开始</a> ·
|
|
27
|
-
<a href="./docs/zh-CN/releases/v0.3.
|
|
27
|
+
<a href="./docs/zh-CN/releases/v0.3.5.md">v0.3.5 升级说明</a> ·
|
|
28
28
|
<a href="https://github.com/omdsh-dev/dsh-mnemon/blob/e6ca446e45bdd17991f3c7c98560456de465282b/docs/assets/media/dsh-mnemon-memory-system-demo.mp4">观看宽屏实机演示</a>
|
|
29
29
|
</p>
|
|
30
30
|
|
|
@@ -108,7 +108,7 @@ Windows 推荐安装 v0.2.3 或更高版本的官方 ZIP;标准安装目录与
|
|
|
108
108
|
|
|
109
109
|
### 2. 安装 DSH 与插件
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
Registry 安装仍以 DSH 0.1.1-rc.2 验证;其完整 profile 需要 Node.js `^22.19.0 || >=24.0.0`,Node 20 缺少 rc.2 使用的宿主原语。源码兼容性也已针对仅提供源码的 DSH 0.1.2-alpha.1 预览版验证;它不是 npm 安装目标。dsh-mnemon 包本身仍为较旧且兼容的 DSH Host 保留 Node.js 20 支持。下面显式指定已发布版本以保证可复现安装;插件作者可参照 [alpha 源码验证流程](./docs/zh-CN/development.md#dsh-012-alpha1-源码验证)。
|
|
112
112
|
|
|
113
113
|
```sh
|
|
114
114
|
npm install -g @deepseek-ai/dsh@0.1.1-rc.2
|
|
@@ -170,6 +170,8 @@ dsh plugin --profile headless add "link:/absolute/path/to/dsh-mnemon"
|
|
|
170
170
|
| `workspace` | 使用 `<workspace>/.mnemon`;支持工作区跟随的本地 Provider 会随有效工作区切换 |
|
|
171
171
|
| `custom` | 显式路径的全局语义,适合团队约定或隔离环境 |
|
|
172
172
|
|
|
173
|
+
同时设置 `storageScope: workspace` 与 `runtimeUserScope: global`,即可让全局 USER.md 用户档案和工作区 MEMORY.md 同时进入投影。用户档案写入保持全局,项目 Runtime、Documents、Memory Spaces 与 Provider state 继续隔离;切换时不会复制或删除已有条目。
|
|
174
|
+
|
|
173
175
|
远程 Provider 的 workspace、user、bank、project、container 与 URI 保留自己的命名空间;切换 DSH 工作区不会暗中改写。工作区模式下,工作台可以查看一个选定工作区,而当前会话继续使用自己的 cwd;从工作台启动的独立任务 Agent 使用查看工作区,即使没有选中主会话也能正确执行。
|
|
174
176
|
|
|
175
177
|
## Web、对话与 Headless 使用同一套系统
|
|
@@ -206,7 +208,7 @@ dsh plugin --profile headless add "link:/absolute/path/to/dsh-mnemon"
|
|
|
206
208
|
| 备份、更新或排障 | [运维指南](./docs/zh-CN/operations.md) |
|
|
207
209
|
| 接入工具、命令或 RPC | [接口参考](./docs/zh-CN/interfaces.md) |
|
|
208
210
|
| 开发 Layer、Adapter、Strategy、Guard 或 MemorySource 扩展 | [扩展开发指南](./docs/zh-CN/extensions.md) |
|
|
209
|
-
| 查看本次升级 | [v0.3.
|
|
211
|
+
| 查看本次升级 | [v0.3.5 发布说明](./docs/zh-CN/releases/v0.3.5.md) |
|
|
210
212
|
|
|
211
213
|
完整目录见[文档中心](./docs/zh-CN/README.md)。
|
|
212
214
|
|