dsh-engramory 1.5.4 → 1.5.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 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.4`: by name alone, pnpm 11 (the desktop app's own included) by default
50
+ dsh-engramory@1.5.6`: 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.
@@ -56,7 +56,8 @@ these steps.
56
56
 
57
57
  Compatible dsh releases are listed in
58
58
  `dsh.compatibility.dshReleases` in [`package.json`](https://github.com/tinqiao-oss/engramory/blob/master/adapters/dsh/plugin/package.json); an unlisted release
59
- is unverified.
59
+ is unverified. `engines.dsh` gives only a floor (`>=0.1.0-rc.7`), so a newer dsh does
60
+ not refuse the install; it is just not verified yet.
60
61
 
61
62
  **Where the memory lives:**
62
63
 
package/README.md CHANGED
@@ -26,9 +26,9 @@ dsh plugin --profile <名字> add dsh-engramory
26
26
 
27
27
  卸载把 `add` 换成 `remove`。
28
28
 
29
- **升级要写上版本号**,比如 `dsh plugin --profile <名字> add dsh-engramory@1.5.4`:只写名字时,pnpm 11(桌面版自带的也是)默认只装发布满 24 小时的版本。桌面版的插件页对第三方插件没有「更新」按钮:先卸载,再搜 `dsh-engramory@<版本>` 安装,装完从托盘退出 dsh 再打开。记忆库和设置都会保留。记忆页底部的「检查更新」能查到最新版本号,并列出这几步。
29
+ **升级要写上版本号**,比如 `dsh plugin --profile <名字> add dsh-engramory@1.5.6`:只写名字时,pnpm 11(桌面版自带的也是)默认只装发布满 24 小时的版本。桌面版的插件页对第三方插件没有「更新」按钮:先卸载,再搜 `dsh-engramory@<版本>` 安装,装完从托盘退出 dsh 再打开。记忆库和设置都会保留。记忆页底部的「检查更新」能查到最新版本号,并列出这几步。
30
30
 
31
- 兼容的 dsh 版本见 [`package.json`](https://github.com/tinqiao-oss/engramory/blob/master/adapters/dsh/plugin/package.json) 里的 `dsh.compatibility.dshReleases`,没列出的版本未经验证。
31
+ 兼容的 dsh 版本见 [`package.json`](https://github.com/tinqiao-oss/engramory/blob/master/adapters/dsh/plugin/package.json) 里的 `dsh.compatibility.dshReleases`,没列出的版本未经验证。`engines.dsh` 只写了下限(`>=0.1.0-rc.7`),所以 dsh 出了新版也不会拒装,只是还没验证过。
32
32
 
33
33
  **记忆存在哪:**
34
34
 
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.4'
42
+ const VERSION = '1.5.6'
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
@@ -3100,9 +3100,13 @@ async function startMove(request, settings) {
3100
3100
  const source = await sourceProblem(state).catch(() => 'unreadable')
3101
3101
  if (source !== undefined) return json(400, { ok: false, error: 'source', reason: source })
3102
3102
  const written = { version: 1, id, phase: 'prepared', from: state.store, to: place.to }
3103
+ // a journal is written only as it reads back (journalOf): a place that is fine as typed
3104
+ // but not once resolved — a last name ending in a space, say — is refused here instead
3105
+ const journal = journalOf(written, root, state.fallback)
3106
+ if (journal === undefined) return json(400, { ok: false, error: 'place', reason: 'invalid' })
3103
3107
  await writeHomeJson(root, JOURNAL_FILE, written)
3104
3108
  handedOver = true
3105
- run(root, journalOf(written, root, state.fallback), settings, id, true)
3109
+ run(root, journal, settings, id, true)
3106
3110
  return json(202, { ok: true, id })
3107
3111
  } catch (error) {
3108
3112
  return json(500, { ok: false, error: 'failed', message: String(error?.message ?? error) })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-engramory",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "DeepSeek Harness 的长期记忆插件:AI 记住的东西存成普通 markdown 文件,自动带上记忆索引(变了才再带),索引有大小上限。",
5
5
  "keywords": [
6
6
  "dsh-plugin",
@@ -75,7 +75,8 @@
75
75
  "url": "https://github.com/tinqiao-oss/engramory/issues"
76
76
  },
77
77
  "engines": {
78
- "node": ">=18"
78
+ "node": ">=18",
79
+ "dsh": ">=0.1.0-rc.7"
79
80
  },
80
81
  "publishConfig": {
81
82
  "access": "public"