@agent_memory/dsh 0.0.0-stage → 0.4.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/LICENSE +21 -0
- package/README.md +40 -2
- package/client/client.js +1825 -0
- package/cordis.patch.yml +8 -0
- package/dist/plugin.mjs +6554 -0
- package/dist/plugin.mjs.map +7 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +56 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Agent Memory contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @agent_memory/dsh
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Local, human-approved long-term memory for **DeepSeek Harness** (DSH).
|
|
4
|
+
|
|
5
|
+
每个 Agent Memory 是本地 Markdown 文件;注入是每会话冻结一次的快照;模型的写入以「提案 → 人审批」为主,没有自动改写规则的通道。
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
推荐在 DSH 内安装:
|
|
10
|
+
|
|
11
|
+
1. DSH → 设置 → 插件(Plugins)→ 从文件安装;
|
|
12
|
+
2. 选择 `agent-memory-dsh-<version>.tgz`;
|
|
13
|
+
3. 完整重启 DSH,侧栏出现「记忆」。
|
|
14
|
+
|
|
15
|
+
或:
|
|
16
|
+
|
|
17
|
+
```powershell
|
|
18
|
+
dsh plugin add "path\to\agent-memory-dsh-<version>.tgz"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
开发期可用源码链接:`npm run plugin:install` / `npm run plugin:revert`。
|
|
22
|
+
|
|
23
|
+
## First use
|
|
24
|
+
|
|
25
|
+
- 打开侧栏「记忆」:按 事实 / 坑 / 经验 浏览、搜索、新建、修订、删除;
|
|
26
|
+
- 「提案」展示模型想改/想加的记忆,采纳后才生效;
|
|
27
|
+
- 「偏好与规则」编辑 USER.md / RULES.md;SOUL.md 只显示路径,改完点「一键封存」;
|
|
28
|
+
- 数据目录默认 `~/.dsh/memory`,可用 `mem doctor` 检查。
|
|
29
|
+
|
|
30
|
+
## Commands
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
/mem proposals 待审提案
|
|
34
|
+
/mem decide <id> accept|reject
|
|
35
|
+
/mem-fact /mem-pitfall /mem-exp 回顾本轮并生成对应提案
|
|
36
|
+
/mem help
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## License
|
|
40
|
+
|
|
41
|
+
MIT.
|