dsh-engramory 1.0.5 → 1.0.6
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.en.md +9 -2
- package/README.md +2 -2
- package/client.js +713 -655
- package/index.js +2947 -2753
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -25,7 +25,8 @@ which is general-purpose agent memory: Claude Code, Codex and others can use the
|
|
|
25
25
|
- **The rules come with it.** What to save, how, and when to clean up: the rules
|
|
26
26
|
(a skill) are registered by the plugin, with no files to install.
|
|
27
27
|
- **A Memory page in the sidebar.** Read-only; it lists the notes by name and opens
|
|
28
|
-
one in your computer's default app
|
|
28
|
+
one in your computer's default app, with a check-up that flags broken links in the
|
|
29
|
+
index and notes left out of it.
|
|
29
30
|
|
|
30
31
|
## Install
|
|
31
32
|
|
|
@@ -138,7 +139,13 @@ owner, so a program forwarding other people's messages must leave it out.
|
|
|
138
139
|
- **Memory page:** *Memory* in the sidebar. It lists the global store and each
|
|
139
140
|
workspace's project store (with an absolute `indexPath`, that store alone; with a
|
|
140
141
|
relative one, none), with each index's size against the cap, its notes' names
|
|
141
|
-
by type, and its archive.
|
|
142
|
+
by type, and its archive. Each store comes with a check-up: the index's links to
|
|
143
|
+
files that are not there, the notes not in the index (recall starts from the index, so
|
|
144
|
+
the AI will not find them unless another note links to them), and notes with no type.
|
|
145
|
+
It goes by file names and the index's links alone, never through a symbolic link, and
|
|
146
|
+
is skipped when the index is over the cap, there is too much to check, or a file cannot
|
|
147
|
+
be read; `engramory_doctor.py` still does the full check.
|
|
148
|
+
Read-only, never a note's text; a name, *Open the index* and
|
|
142
149
|
*Open the folder* open on the machine dsh runs on; a machine with no desktop (a
|
|
143
150
|
headless server, a session over SSH) shows none of them. The switches at the top
|
|
144
151
|
(companion mode, and memory access once it is on) save as you flip them.
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- **每轮自动带上记忆索引。** 索引 `MEMORY.md` 只列笔记名字,插件每一步都把它放进上下文,AI 不用先读文件就知道自己记过什么,要细节再打开那条笔记。写入后下一轮就能看到;超出上限的部分不带上,并提醒 AI 压缩。
|
|
14
14
|
- **索引有硬上限。** 默认 200 行 / 25 KB。AI 用 dsh 的文件工具写索引时,只要插件算得出写完的样子,会超上限就在写入前拒绝,让它先压缩;压缩照样放行。细节见[上限怎么判](#上限怎么判)。
|
|
15
15
|
- **自带记忆规则。** 记什么、怎么记、什么时候清理,这套规则(skill)随插件注册,不用另外装文件。
|
|
16
|
-
- **侧栏多一个「记忆」页。**
|
|
16
|
+
- **侧栏多一个「记忆」页。** 只读,列出笔记名字,点名字用电脑上的默认程序打开;顺带体检,标出索引里的坏链接和没进索引的笔记。
|
|
17
17
|
|
|
18
18
|
## 安装
|
|
19
19
|
|
|
@@ -76,7 +76,7 @@ agent.followup(createUserMessage({
|
|
|
76
76
|

|
|
77
77
|
|
|
78
78
|
- **设置页**:dsh 的「插件」页里点开「Engramory 记忆」,能改大肥鱼模式、记忆权限和索引上限。保存走 dsh 自己的配置服务,写进你 profile 的 `cordis.patch.yml` 并重新加载插件。这个接口只有登录了的你能调,AI 没法调用它关掉社交模式。
|
|
79
|
-
- **记忆页**:左侧栏「记忆」。列出全局库和各工作区的项目库(设了绝对路径的 `indexPath`
|
|
79
|
+
- **记忆页**:左侧栏「记忆」。列出全局库和各工作区的项目库(设了绝对路径的 `indexPath` 时只列那一个,相对路径则列不出),显示索引离上限还有多远、按类型分组的笔记名字和归档。每个库附一段体检:索引里指向不存在的文件、不在索引里的笔记(AI 回忆从索引开始,除非别的笔记链到它们,否则通常找不到)、没写类型的笔记。体检只按文件名和索引里的链接判断,不顺着符号链接走;索引超上限、要核对的太多或有文件读不了时不做,完整检查仍用 `engramory_doctor.py`。只读,不显示正文;点名字、「打开索引」「打开文件夹」都在运行 dsh 的那台机器上打开;没有桌面的机器(无界面服务器、SSH 连过去的)不显示这些按钮。顶部的开关(大肥鱼模式,打开后还有记忆权限)拨了就保存。
|
|
80
80
|
|
|
81
81
|
## 配置
|
|
82
82
|
|