dsh-engramory 1.5.0 → 1.5.1
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 +1 -1
- package/README.md +1 -1
- package/client.js +1 -1
- package/index.js +12 -1
- package/package.json +4 -2
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.1`: 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.
|
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.1`:只写名字时,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
|
|
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.1'
|
|
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. */
|
package/index.js
CHANGED
|
@@ -667,13 +667,24 @@ function settingsRoutes(ctx, config, fiber) {
|
|
|
667
667
|
function ownEntry(editor, fiber) {
|
|
668
668
|
try {
|
|
669
669
|
if (fiber === undefined || typeof editor?.entries !== 'function') return undefined
|
|
670
|
-
const mine = editor.entries().filter((entry) => entry?.fiber
|
|
670
|
+
const mine = editor.entries().filter((entry) => holds(entry?.fiber, fiber))
|
|
671
671
|
return mine.length === 1 ? mine[0] : undefined
|
|
672
672
|
} catch {
|
|
673
673
|
return undefined
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
+
/**
|
|
678
|
+
* Whether what a row keeps as its fiber is `fiber`. A row keeps either the fiber itself
|
|
679
|
+
* (dsh 0.2.1's loader, cordis-plugin-loader 1.0.6, unwraps it) or what cordis' `plugin()`
|
|
680
|
+
* hands back (dsh 0.2.2-alpha.3 and 0.2.2-rc.1, loader 1.0.7-alpha.2 and 1.1.0): an object
|
|
681
|
+
* made with the fiber as its prototype, so that it can be awaited. Its `ctx.fiber` is the
|
|
682
|
+
* fiber, which is how 1.0.6 unwraps it.
|
|
683
|
+
*/
|
|
684
|
+
function holds(held, fiber) {
|
|
685
|
+
return held !== undefined && held !== null && (held === fiber || held.ctx?.fiber === fiber)
|
|
686
|
+
}
|
|
687
|
+
|
|
677
688
|
/** The settings the page edits, read the way apply() reads them. */
|
|
678
689
|
function editableSettings(raw) {
|
|
679
690
|
const config = raw !== null && typeof raw === 'object' ? raw : {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-engramory",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "DeepSeek Harness 的长期记忆插件:AI 记住的东西存成普通 markdown 文件,自动带上记忆索引(变了才再带),索引有大小上限。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh-plugin",
|
|
@@ -39,7 +39,9 @@
|
|
|
39
39
|
"0.2.1-rc.3": "compatible",
|
|
40
40
|
"0.2.1-rc.4": "compatible",
|
|
41
41
|
"0.2.1-rc.5": "compatible",
|
|
42
|
-
"0.2.2-alpha.2": "compatible"
|
|
42
|
+
"0.2.2-alpha.2": "compatible",
|
|
43
|
+
"0.2.2-alpha.3": "compatible",
|
|
44
|
+
"0.2.2-rc.1": "compatible"
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
},
|