@chenhw7/dsh-memory 0.3.0 → 0.4.0

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.md CHANGED
@@ -35,6 +35,7 @@ Your dsh agent normally forgets everything when you close a session. This bundle
35
35
  - **Compaction-aware flush** — when compaction shadows old context, the raw events are scanned for anything worth remembering.
36
36
  - **Security scanning, write *and* load time** — API keys, tokens, prompt-injection patterns, and exfiltration attempts are blocked from being saved; anything that slips through is redacted (`[BLOCKED: …]`) wherever it would re-enter a prompt.
37
37
  - **Frontend-configurable** — all settings exposed through four cards in the dsh settings UI, apply live.
38
+ - **Memory manager UI (read-only, phase 1)** — a dedicated "Memory" section in the dsh settings UI browses the entire web-profile store: health dashboard, scope and workspace filters, BM25 search, category chips, remote paging, and soft-decay markers — in English and Chinese.
38
39
 
39
40
  ## Install
40
41
 
@@ -85,7 +86,7 @@ pnpm dsh plugin add --profile web @chenhw7/dsh-memory
85
86
  To pin a specific version:
86
87
 
87
88
  ```sh
88
- dsh plugin add --profile web @chenhw7/dsh-memory@0.3.0
89
+ dsh plugin add --profile web @chenhw7/dsh-memory@0.4.0
89
90
  ```
90
91
 
91
92
  ### From a local checkout
@@ -108,8 +109,8 @@ If you'd rather not install from the npm registry, pack a tarball from a checkou
108
109
  ```sh
109
110
  cd dsh-memory
110
111
  npm install && npm run build
111
- npm pack # produces chenhw7-dsh-memory-0.3.0.tgz
112
- dsh plugin add --profile web ./chenhw7-dsh-memory-0.3.0.tgz
112
+ npm pack # produces chenhw7-dsh-memory-0.4.0.tgz
113
+ dsh plugin add --profile web ./chenhw7-dsh-memory-0.4.0.tgz
113
114
  ```
114
115
 
115
116
  ## Update
@@ -321,7 +322,7 @@ The bundle inserts seven rows over `dsh-base`, each pointing at this package's o
321
322
  | `memory-review` | `@chenhw7/dsh-memory/review` | Automatic extraction (projection + failure-streak pitfalls + flush + dedup + janitor + curator) and the `memory-review` settings namespace |
322
323
  | `memory-notes` | `@chenhw7/dsh-memory/notes` | Project-notes export (render conventions/pitfalls + atomic write + AGENTS.md pointer), registers `ctx.projectNotes` |
323
324
  | `memory-context` | `@chenhw7/dsh-memory/context` | System-prompt injection (`memory` @90 + `project-notes` @91), step-level auto recall, owns the `memory` settings namespace |
324
- | `memory-remote` | `@chenhw7/dsh-memory/remote-service` | `@Remote` service for a future memory management UI |
325
+ | `memory-remote` | `@chenhw7/dsh-memory/remote-service` | `@Remote` service behind the settings UI's Memory section (consumed over the `/api` channel) |
325
326
 
326
327
  **Storage**: this bundle does **not** insert `storage-json` / `storage-domain` rows. The `dsh-web-app` bundle already provides them (with the correct root path under `$DSH_HOME/storages`). Inserting them here would clobber that config (patches replace whole rows, last-write-wins). The memory store provider consumes the `storageDomain` service as a peer dependency.
327
328
 
package/README.zh-CN.md CHANGED
@@ -32,6 +32,7 @@
32
32
  - **压缩时自动落盘** — 当压缩使旧上下文失效时,扫描原始事件并保留值得记住的内容。
33
33
  - **安全扫描:写入时 + 读取时** — API Key、Token、提示注入模式和泄露尝试会被阻止写入;漏网内容在重新进入 prompt 的任何位置都会被替换为 `[BLOCKED: …]` 占位符。
34
34
  - **前端可配置** — 所有设置通过 dsh 设置界面的四张卡片暴露,实时生效。
35
+ - **记忆管理中心(一期只读)** — dsh 设置界面新增独立「记忆」区,可浏览整个 web profile 的记忆库:健康仪表盘、作用域与工作区筛选、BM25 搜索、类别筛选、远程分页与软衰减标记,中英双语。
35
36
 
36
37
  ## 安装
37
38
 
@@ -83,7 +84,7 @@ pnpm dsh plugin add --profile web @chenhw7/dsh-memory
83
84
  需要锁定特定版本时:
84
85
 
85
86
  ```sh
86
- dsh plugin add --profile web @chenhw7/dsh-memory@0.3.0
87
+ dsh plugin add --profile web @chenhw7/dsh-memory@0.4.0
87
88
  ```
88
89
 
89
90
  ### 从本地 checkout 安装
@@ -106,8 +107,8 @@ pnpm 不会为 `file:` 依赖运行构建脚本,所以不需要 `allowBuilds`
106
107
  ```sh
107
108
  cd dsh-memory
108
109
  npm install && npm run build
109
- npm pack # 生成 chenhw7-dsh-memory-0.3.0.tgz
110
- dsh plugin add --profile web ./chenhw7-dsh-memory-0.3.0.tgz
110
+ npm pack # 生成 chenhw7-dsh-memory-0.4.0.tgz
111
+ dsh plugin add --profile web ./chenhw7-dsh-memory-0.4.0.tgz
111
112
  ```
112
113
 
113
114
  ## 更新
@@ -319,7 +320,7 @@ memory:
319
320
  | `memory-review` | `@chenhw7/dsh-memory/review` | 自动提取(投影 + 失败序列踩坑 + flush + 去重 + janitor + curator),持有 `memory-review` 设置命名空间 |
320
321
  | `memory-notes` | `@chenhw7/dsh-memory/notes` | 项目笔记导出(渲染约定/踩坑 + 原子写 + AGENTS.md 指针),注册 `ctx.projectNotes` |
321
322
  | `memory-context` | `@chenhw7/dsh-memory/context` | 系统提示注入(`memory` @90 + `project-notes` @91)、步级自动召回,持有 `memory` 设置命名空间 |
322
- | `memory-remote` | `@chenhw7/dsh-memory/remote-service` | 面向未来记忆管理 UI 的 `@Remote` 服务 |
323
+ | `memory-remote` | `@chenhw7/dsh-memory/remote-service` | 记忆管理 UI 的 `@Remote` 服务(设置「记忆」区经 `/api` 通道消费) |
323
324
 
324
325
  **存储**:本 bundle **不**插入 `storage-json` / `storage-domain` 行。`dsh-web-app` bundle 已经提供它们(并在 `$DSH_HOME/storages` 下使用正确的根路径)。如果在这里重复插入,会覆盖已有配置(patch 会替换整行,后写覆盖先写)。memory store provider 将 `storageDomain` 服务作为 peer dependency 使用。
325
326