dsh-engramory 1.5.3 → 1.5.4

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.3`: by name alone, pnpm 11 (the desktop app's own included) by default
50
+ dsh-engramory@1.5.4`: 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.
@@ -293,8 +293,8 @@ writable. This table is pinned by `node --test` in CI.
293
293
  that links out of the project, set `indexPath`. A project's root is found by
294
294
  its `.git` only, and a project store created mid-session can take ten seconds to appear.
295
295
  - **Social mode knows you by what dsh's window sends.** Apart from a bridge's owner
296
- messages, only what you type in dsh's own window is yours, and not when the browser's
297
- time zone cannot be read. A kind of
296
+ messages, only what you type in dsh's own window (and its Continue generating) is
297
+ yours, and not when the browser's time zone cannot be read. A kind of
298
298
  message a later dsh adds counts as someone else's until this plugin knows it: your
299
299
  conversation may lose the memory, never the other way round.
300
300
  - **What the memory page opens is checked by path.** dsh's opener resolves the path once
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.3`:只写名字时,pnpm 11(桌面版自带的也是)默认只装发布满 24 小时的版本。桌面版的插件页对第三方插件没有「更新」按钮:先卸载,再搜 `dsh-engramory@<版本>` 安装,装完从托盘退出 dsh 再打开。记忆库和设置都会保留。记忆页底部的「检查更新」能查到最新版本号,并列出这几步。
29
+ **升级要写上版本号**,比如 `dsh plugin --profile <名字> add dsh-engramory@1.5.4`:只写名字时,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
 
@@ -142,7 +142,7 @@ agent.followup(createUserMessage({
142
142
 
143
143
  - **只拦 dsh 的文件工具**:`write`、`edit`,以及有的版本和预设带的 `str_replace_editor`;别的插件提供的同名工具也照样判。shell、MCP 文件工具和外部编辑器写入都绕过上限;改完索引跑 `engramory_check.py`,定期跑 `engramory_doctor.py`。
144
144
  - **全局库要用记忆页「更换存储地址」搬过去才找得到。** 自己挪到别处的不会自动找到(挪回来再用记忆页搬,或者设 `indexPath`);项目库是指向项目外的链接时要设 `indexPath`;项目根只按 `.git` 认;会话中途新建的项目库最多十秒后才出现。
145
- - **社交模式靠 dsh 窗口发来的信息认你。** 除了接入插件标明的主人消息,只有 dsh 自己窗口里打的字算你的;浏览器读不出时区时也认不出。dsh 以后新加的消息种类,插件认识之前都算别人的:你的会话可能拿不到记忆,但不会把记忆漏给别人。
145
+ - **社交模式靠 dsh 窗口发来的信息认你。** 除了接入插件标明的主人消息,只有 dsh 自己窗口里打的字(和点的「继续生成」)算你的;浏览器读不出时区时也认不出。dsh 以后新加的消息种类,插件认识之前都算别人的:你的会话可能拿不到记忆,但不会把记忆漏给别人。
146
146
  - **记忆页打开文件前按路径检查。** dsh 的打开功能拿到路径后还会再解析一次,如果恰好在这一刻有程序改动记忆库里的文件,桌面最终打开的可能是别的东西(dsh 自己打开工作区文件也是这样)。
147
147
  - **实验性功能**:大肥鱼模式、社交模式、设置页、记忆页和更换存储地址在小版本里也可能改。
148
148
 
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.3'
42
+ const VERSION = '1.5.4'
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
@@ -1538,17 +1538,27 @@ const INERT_PRODUCERS = new Set([
1538
1538
  */
1539
1539
  const ACTION_CARD_NOTICE = 'action-cards'
1540
1540
 
1541
+ /**
1542
+ * dsh 0.2.2-rc.2's `retry` kind: the empty prompt its window sends from Continue generating
1543
+ * after a failed request. dsh-api-session-controller's `prompt` stamps it as it stamps a
1544
+ * typed prompt — kind `retry` for empty content, `user` otherwise, the same request id,
1545
+ * time zone and `principal` — so it is judged by the same marks: the owner's from the
1546
+ * owner's own window, anyone else's otherwise.
1547
+ */
1548
+ const RETRY = 'retry'
1549
+
1541
1550
  /**
1542
1551
  * Who wrote one user message, by the source dsh stamps on it (a message queued in
1543
1552
  * `agent/inbox/spliced` or committed in `user/message`):
1544
- * 'owner' the signed-in owner, typing in dsh's own window (desktop or web): dsh's
1545
- * browser client sends every prompt with a request id and the browser's time
1546
- * zone, and dsh records any caller other than the owner as `principal`. Or a
1553
+ * 'owner' the signed-in owner, typing in dsh's own window (desktop or web), or asking
1554
+ * it to continue (RETRY): dsh's browser client sends every prompt with a
1555
+ * request id and the browser's time zone, and dsh records any caller other
1556
+ * than the owner as `principal`. Or a
1547
1557
  * plugin declared the message the owner's: `speaker: { role: 'owner' }` on its
1548
1558
  * source — the standard a chat bridge follows for the owner's own chat (README);
1549
- * 'other' anyone else: dsh's `user` kind without both marks (a program calling dsh
1550
- * web's API, `dsh headless`, an editor or terminal client, a bridge writing that
1551
- * kind), any kind dsh's own producers do not use (`plugin:<name>`, as chat
1559
+ * 'other' anyone else: dsh's `user` or `retry` kind without both marks (a program
1560
+ * calling dsh web's API, `dsh headless`, an editor or terminal client, a bridge
1561
+ * writing that kind), any kind dsh's own producers do not use (`plugin:<name>`, as chat
1552
1562
  * bridges write, or any other), `speaker: { role: 'guest' }`, and a source that
1553
1563
  * cannot be read. Anyone in a group, the owner included: a `speaker` whose
1554
1564
  * `chat` is set to anything but 'private' ('group' is the standard) — the whole
@@ -1566,7 +1576,7 @@ function speakerOf(source) {
1566
1576
  if (speaker?.role === 'owner') return 'owner'
1567
1577
  if (speaker?.role === 'guest') return 'other'
1568
1578
  const kind = source.kind === 'plugin' ? legacyKind(source.plugin) : source.kind
1569
- if (kind === 'user') {
1579
+ if (kind === 'user' || kind === RETRY) {
1570
1580
  return typeof source.rpcId === 'string' && typeof source.clientTimeZone === 'string' &&
1571
1581
  source.principal === undefined ? 'owner' : 'other'
1572
1582
  }
@@ -1675,8 +1685,9 @@ const SPEAKERS = {
1675
1685
  // log rather than seed it from a checkpoint the fold no longer means (2: pre-release shapes;
1676
1686
  // 3: a message in a group chat is someone else's, the owner's included; 4: dsh 0.1's own
1677
1687
  // `{ kind: 'plugin' }` messages are nobody's, no longer an outsider's; 5: dsh 0.2.2's
1678
- // `action-cards` notices are nobody's, no longer an outsider's, ACTION_CARD_NOTICE).
1679
- stateVersion: 5,
1688
+ // `action-cards` notices are nobody's, no longer an outsider's, ACTION_CARD_NOTICE; 6: dsh
1689
+ // 0.2.2-rc.2's `retry` is judged as a typed prompt is, no longer always an outsider's, RETRY).
1690
+ stateVersion: 6,
1680
1691
  // dsh only calls `parse`, on a checkpoint before folding on from it; no zod needed.
1681
1692
  stateSchema: {
1682
1693
  parse(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-engramory",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "DeepSeek Harness 的长期记忆插件:AI 记住的东西存成普通 markdown 文件,自动带上记忆索引(变了才再带),索引有大小上限。",
5
5
  "keywords": [
6
6
  "dsh-plugin",
@@ -41,7 +41,9 @@
41
41
  "0.2.1-rc.5": "compatible",
42
42
  "0.2.2-alpha.2": "compatible",
43
43
  "0.2.2-alpha.3": "compatible",
44
- "0.2.2-rc.1": "compatible"
44
+ "0.2.2-rc.1": "compatible",
45
+ "0.2.2-rc.2": "compatible",
46
+ "0.2.2-rc.3": "compatible"
45
47
  }
46
48
  }
47
49
  },