dsh-engramory 1.5.2 → 1.5.3
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 +8 -5
- package/README.md +2 -2
- package/client.js +8 -1
- package/index.js +5053 -4986
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -47,7 +47,7 @@ dsh plugin --profile <name> add dsh-engramory
|
|
|
47
47
|
To uninstall, use `remove` instead of `add`.
|
|
48
48
|
|
|
49
49
|
**Name the version to upgrade**, as in `dsh plugin --profile <name> add
|
|
50
|
-
dsh-engramory@1.5.
|
|
50
|
+
dsh-engramory@1.5.3`: by name alone, pnpm 11 (the desktop app's own included) by default
|
|
51
51
|
installs only a version published at least 24 hours ago. The desktop app's Plugins page has no *Update*
|
|
52
52
|
for a plugin from outside dsh: uninstall it, search for `dsh-engramory@<version>` and
|
|
53
53
|
install that, then quit dsh from the tray and open it again. Your memory and settings stay.
|
|
@@ -178,9 +178,9 @@ owner, so a program forwarding other people's messages must leave it out.
|
|
|
178
178
|
never through a symbolic link, and is skipped when the index is over the cap, there is
|
|
179
179
|
too much to check, or a file cannot be read; `engramory_doctor.py` still does the full
|
|
180
180
|
check. Where the listing was cut short or a store could not be read, the page says so,
|
|
181
|
-
rather than counting that as nothing. Read-only, never a note's text; a name
|
|
182
|
-
the
|
|
183
|
-
|
|
181
|
+
rather than counting that as nothing. Read-only, never a note's text; a name and *Open
|
|
182
|
+
the folder* open on the machine dsh runs on; a machine with no desktop (a headless
|
|
183
|
+
server, a session over SSH) shows neither. A short *How to use
|
|
184
184
|
it* follows, open while there is no memory yet. At the foot, the plugin's version and
|
|
185
185
|
*Check for updates*: only when clicked, it asks npm (npmmirror when npm cannot be
|
|
186
186
|
reached) for the latest version number, with nothing from your memory, and lists the
|
|
@@ -211,7 +211,10 @@ path, then click *Move it there*:
|
|
|
211
211
|
at the end of the index. Nothing in the new place is written over.
|
|
212
212
|
- **Cut short, nothing is lost.** Each step is written down first: dsh closed before the
|
|
213
213
|
switch, the move is undone when it opens again and the memory stays where it was;
|
|
214
|
-
closed after, the move is finished when it opens again.
|
|
214
|
+
closed after, the move is finished when it opens again. An error after the switch (a
|
|
215
|
+
file in the old place held open by another program, say) leaves the memory moved: the
|
|
216
|
+
page says so, and that the old place is not cleared yet, which dsh carries on with every
|
|
217
|
+
minute.
|
|
215
218
|
- **Every dsh on this computer moves with it.** The place is kept in
|
|
216
219
|
`.engramory-memory.json` in dsh's home folder, which the desktop app, the command line
|
|
217
220
|
and `dsh web` all follow (their plugin configs are their own; the global store is
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ dsh plugin --profile <名字> add dsh-engramory
|
|
|
26
26
|
|
|
27
27
|
卸载把 `add` 换成 `remove`。
|
|
28
28
|
|
|
29
|
-
**升级要写上版本号**,比如 `dsh plugin --profile <名字> add dsh-engramory@1.5.
|
|
29
|
+
**升级要写上版本号**,比如 `dsh plugin --profile <名字> add dsh-engramory@1.5.3`:只写名字时,pnpm 11(桌面版自带的也是)默认只装发布满 24 小时的版本。桌面版的插件页对第三方插件没有「更新」按钮:先卸载,再搜 `dsh-engramory@<版本>` 安装,装完从托盘退出 dsh 再打开。记忆库和设置都会保留。记忆页底部的「检查更新」能查到最新版本号,并列出这几步。
|
|
30
30
|
|
|
31
31
|
兼容的 dsh 版本见 [`package.json`](https://github.com/tinqiao-oss/engramory/blob/master/adapters/dsh/plugin/package.json) 里的 `dsh.compatibility.dshReleases`,没列出的版本未经验证。
|
|
32
32
|
|
|
@@ -90,7 +90,7 @@ agent.followup(createUserMessage({
|
|
|
90
90
|
- **选文件夹**用的是 dsh 自己的选择窗口,弹在 dsh 运行的那台电脑的屏幕上。dsh 认为你不在那台电脑前时(比如它跑在远程服务器上)没有这个按钮,填路径即可;在本机启动 dsh、再经 ssh 端口转发从别的电脑打开时,dsh 仍当你在本机,窗口会弹在本机屏幕上。选的文件夹里已经有东西时(比如直接选了网盘根目录),会在里面新建一个 `Engramory` 文件夹放记忆。选完只是填进路径,点「搬过去」才搬。
|
|
91
91
|
|
|
92
92
|
- **整个搬过去,旧位置自动清理。** 先复制到新位置、逐个文件核对,没问题才切换;再把旧位置改名挪开,和新位置逐个比对后删掉。搬的那几秒里后写进旧位置的,会补进新位置;同一个文件两边都改过的,旧位置那份存成新位置里名字带 `.old-<编号>` 的文件,索引末尾加一行指向它,不会覆盖新位置的内容。
|
|
93
|
-
- **中途被打断也不丢。** 每一步都先记下来:还没切换时 dsh
|
|
93
|
+
- **中途被打断也不丢。** 每一步都先记下来:还没切换时 dsh 被关了,下次打开就撤销,记忆还在原处;切换之后被打断,下次打开接着做完。切换之后出错(比如旧位置有文件被别的程序占着),记忆页会说已经搬到新位置、旧位置还没清理完,dsh 每分钟自动接着清理。
|
|
94
94
|
- **这台电脑上的 dsh 一起换。** 位置记在 dsh 主目录的 `.engramory-memory.json` 里,桌面版、命令行和 `dsh web` 都按它走(插件配置各是各的,全局库是共用的)。别删这个文件:删了就回到默认位置,搬走的记忆就找不到了。
|
|
95
95
|
- **搬的那几秒 AI 存不了记忆**,会被告知过一会儿再存;搬完以后它要是还往旧位置写,会被拦下并告诉它新位置。
|
|
96
96
|
- **不能搬到**:网络路径、整个盘、用户主目录或 dsh 主目录(以及它们的上级)、dsh 主目录里别的地方、名叫 `.engramory-memory` 的文件夹(会被当成项目库)、记忆库自己里面。库里有目录链接或特殊文件时不搬,要手动处理。设了 `indexPath` 时不能搬。
|
package/client.js
CHANGED
|
@@ -39,7 +39,7 @@ window.__ModuleLoader__.load({
|
|
|
39
39
|
/** How often the page looks again at a move it did not start, while one is under way. */
|
|
40
40
|
const MOVE_FOLLOW_MS = 2000
|
|
41
41
|
/** This plugin's version, for the feedback footer; a test keeps it equal to package.json's. */
|
|
42
|
-
const VERSION = '1.5.
|
|
42
|
+
const VERSION = '1.5.3'
|
|
43
43
|
/** Where feedback goes: a new issue on the repository, or the project's mailbox. Opening
|
|
44
44
|
* the link is the browser's (the desktop app hands it to the system's); the footer submits
|
|
45
45
|
* nothing by itself. */
|
|
@@ -118,6 +118,7 @@ window.__ModuleLoader__.load({
|
|
|
118
118
|
placeStillMoving: '还在搬,过一会儿刷新这一页看看。',
|
|
119
119
|
placeEnded: '这次搬家已经结束,记忆库现在在上面写的位置。',
|
|
120
120
|
placeMoveFailed: '没搬成:{reason}',
|
|
121
|
+
placeMovedUnfinished: '已经搬到新位置,记忆库现在在上面写的位置;旧位置还没清理完:{reason} dsh 每分钟会自动接着清理,不用再搬一次。',
|
|
121
122
|
placeResuming: '有一次搬家还没做完,dsh 会自动接着做完。',
|
|
122
123
|
placeResumingWhy: '上次停在:{reason}会自动再试。',
|
|
123
124
|
placePinned: '配置里固定了索引(indexPath),记忆库就在它所在的文件夹,这里不能搬。',
|
|
@@ -312,6 +313,7 @@ window.__ModuleLoader__.load({
|
|
|
312
313
|
placeStillMoving: 'Still moving. Refresh this page in a little while.',
|
|
313
314
|
placeEnded: 'The move is over: the memory is where it says above.',
|
|
314
315
|
placeMoveFailed: 'Not moved: {reason}',
|
|
316
|
+
placeMovedUnfinished: 'Moved: the memory is where it says above. Clearing the old place did not finish: {reason} dsh carries on with it every minute; there is nothing to move again.',
|
|
315
317
|
placeResuming: 'A move is not finished yet; dsh finishes it on its own.',
|
|
316
318
|
placeResumingWhy: 'It last stopped at: {reason} It will try again.',
|
|
317
319
|
placePinned: 'An index is pinned (indexPath): the memory is in its folder, and is not moved here.',
|
|
@@ -997,6 +999,11 @@ button.eng-row:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-ho
|
|
|
997
999
|
setBanner({ tone: 'ok', text: outcome.conflicts > 0
|
|
998
1000
|
? t('placeMovedConflicts', { count: outcome.conflicts }) : t('placeMoved') })
|
|
999
1001
|
onMoved?.()
|
|
1002
|
+
} else if (outcome?.done === true && outcome.moved === true) {
|
|
1003
|
+
// stopped after the switch: the store has moved, the old place is cleared later
|
|
1004
|
+
setText('')
|
|
1005
|
+
setBanner({ tone: 'error', text: t('placeMovedUnfinished', { reason: whyNot(t, outcome.error, outcome.detail) }) })
|
|
1006
|
+
onMoved?.()
|
|
1000
1007
|
} else if (outcome?.done === true) {
|
|
1001
1008
|
setBanner({ tone: 'error', text: t('placeMoveFailed', { reason: whyNot(t, outcome.error, outcome.detail) }) })
|
|
1002
1009
|
} else {
|