@chenhw7/dsh-memory 0.5.1 → 0.8.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.
Files changed (94) hide show
  1. package/README.i18n.yaml +2 -0
  2. package/README.md +24 -15
  3. package/{README.zh-CN.md → README.zh.md} +22 -14
  4. package/cordis.patch.yml +10 -4
  5. package/lib/benchmark/index.d.ts +24 -7
  6. package/lib/benchmark/index.d.ts.map +1 -1
  7. package/lib/benchmark/index.js +55 -7
  8. package/lib/benchmark/index.js.map +1 -1
  9. package/lib/client/index.js +47 -31
  10. package/lib/context/conflict.d.ts +23 -10
  11. package/lib/context/conflict.d.ts.map +1 -1
  12. package/lib/context/conflict.js +59 -20
  13. package/lib/context/conflict.js.map +1 -1
  14. package/lib/context/index.d.ts +2 -6
  15. package/lib/context/index.d.ts.map +1 -1
  16. package/lib/context/index.js +29 -25
  17. package/lib/context/index.js.map +1 -1
  18. package/lib/context/policy.d.ts +17 -5
  19. package/lib/context/policy.d.ts.map +1 -1
  20. package/lib/context/policy.js +27 -9
  21. package/lib/context/policy.js.map +1 -1
  22. package/lib/index.d.ts +23 -1
  23. package/lib/index.d.ts.map +1 -1
  24. package/lib/index.js +20 -0
  25. package/lib/index.js.map +1 -1
  26. package/lib/notes/cleanup.d.ts +48 -0
  27. package/lib/notes/cleanup.d.ts.map +1 -0
  28. package/lib/notes/cleanup.js +98 -0
  29. package/lib/notes/cleanup.js.map +1 -0
  30. package/lib/notes/index.d.ts +23 -23
  31. package/lib/notes/index.d.ts.map +1 -1
  32. package/lib/notes/index.js +38 -131
  33. package/lib/notes/index.js.map +1 -1
  34. package/lib/notes/render.d.ts +13 -13
  35. package/lib/notes/render.d.ts.map +1 -1
  36. package/lib/notes/render.js +13 -13
  37. package/lib/notes/render.js.map +1 -1
  38. package/lib/notes/scope.d.ts +11 -10
  39. package/lib/notes/scope.d.ts.map +1 -1
  40. package/lib/notes/scope.js +11 -10
  41. package/lib/notes/scope.js.map +1 -1
  42. package/lib/notes/settings.d.ts +9 -20
  43. package/lib/notes/settings.d.ts.map +1 -1
  44. package/lib/notes/settings.js +9 -27
  45. package/lib/notes/settings.js.map +1 -1
  46. package/lib/remote/index.d.ts +67 -6
  47. package/lib/remote/index.d.ts.map +1 -1
  48. package/lib/remote/index.js +94 -9
  49. package/lib/remote/index.js.map +1 -1
  50. package/lib/remote/typert.remote-client.d.ts +8 -1
  51. package/lib/remote/typert.remote-client.js +6 -0
  52. package/lib/remote/types.d.ts +1 -1
  53. package/lib/remote/types.d.ts.map +1 -1
  54. package/lib/review/accumulator.d.ts +5 -5
  55. package/lib/review/accumulator.d.ts.map +1 -1
  56. package/lib/review/accumulator.js +3 -3
  57. package/lib/review/accumulator.js.map +1 -1
  58. package/lib/review/dedup.d.ts +23 -15
  59. package/lib/review/dedup.d.ts.map +1 -1
  60. package/lib/review/dedup.js +34 -83
  61. package/lib/review/dedup.js.map +1 -1
  62. package/lib/review/extract.d.ts.map +1 -1
  63. package/lib/review/extract.js +5 -2
  64. package/lib/review/extract.js.map +1 -1
  65. package/lib/review/index.d.ts.map +1 -1
  66. package/lib/review/index.js +28 -21
  67. package/lib/review/index.js.map +1 -1
  68. package/lib/scanner.d.ts +2 -0
  69. package/lib/scanner.d.ts.map +1 -1
  70. package/lib/scanner.js +22 -0
  71. package/lib/scanner.js.map +1 -1
  72. package/lib/store/bm25.d.ts +75 -1
  73. package/lib/store/bm25.d.ts.map +1 -1
  74. package/lib/store/bm25.js +162 -17
  75. package/lib/store/bm25.js.map +1 -1
  76. package/lib/store/cross-process.d.ts +155 -0
  77. package/lib/store/cross-process.d.ts.map +1 -0
  78. package/lib/store/cross-process.js +254 -0
  79. package/lib/store/cross-process.js.map +1 -0
  80. package/lib/store/index.d.ts +89 -7
  81. package/lib/store/index.d.ts.map +1 -1
  82. package/lib/store/index.js +466 -89
  83. package/lib/store/index.js.map +1 -1
  84. package/lib/tool/index.d.ts +17 -5
  85. package/lib/tool/index.d.ts.map +1 -1
  86. package/lib/tool/index.js +237 -24
  87. package/lib/tool/index.js.map +1 -1
  88. package/lib/types.d.ts +31 -2
  89. package/lib/types.d.ts.map +1 -1
  90. package/package.json +40 -31
  91. package/lib/notes/writer.d.ts +0 -65
  92. package/lib/notes/writer.d.ts.map +0 -1
  93. package/lib/notes/writer.js +0 -131
  94. package/lib/notes/writer.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ README.md: b752d91633d44b34824471af2510626d0513ab8f
2
+ README.zh.md: 0ecc22400acd99ce08004e6b6e2f3280d8688454
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  This is a **self-contained single package** (not a multi-package workspace). It depends on dsh core services as **peer dependencies** (provided by the dsh installation you already have) and ships its own `cordis.patch.yml` so `dsh plugin add` activates it as one profile layer.
6
6
 
7
- **English** | [简体中文](README.zh-CN.md)
7
+ **English** | [简体中文](README.zh.md)
8
8
 
9
9
  ## Interactive Deep-Dive
10
10
 
@@ -34,10 +34,10 @@ Your dsh agent normally forgets everything when you close a session. This bundle
34
34
 
35
35
  - **Persistent memory** — facts, preferences, and conventions stored in a durable KV backend with audit logging.
36
36
  - **Three-layer scoping** — `global` (cross-project), `project` (per-repo, auto-detected), and `user` (cross-project profile).
37
- - **Eight model-facing tools** — `memory_search`, `memory_add`, `memory_replace`, `memory_remove`, `memory_list`, `memory_get`, `memory_pin`, `memory_unpin`.
38
- - **BM25 relevance search** — dependency-free Okapi BM25 over CJK-aware tokenization (Latin word tokens; CJK unigrams + bigrams), pinned entries surfaced ahead of equal-relevance matches. Retrieval quality is not vibes: a fixed golden set (24 entries × 24 queries, English + Chinese) is evaluated in CI — success@5 = 100%, MRR = 0.958 — with injection-cost numbers per prompt mode (see [docs/INDEX_MODE_EVALUATION.zh-CN.md](docs/INDEX_MODE_EVALUATION.zh-CN.md)).
37
+ - **Nine model-facing tools** — `memory_search`, `memory_add`, `memory_replace`, `memory_remove`, `memory_list`, `memory_get`, `memory_pin`, `memory_unpin`, `memory_forget`.
38
+ - **BM25 relevance search** — dependency-free Okapi BM25 over CJK-aware tokenization (Latin word tokens; CJK unigrams + bigrams), pinned entries surfaced ahead of equal-relevance matches. Retrieval quality is not vibes: a fixed golden set (35 entries × 35 query sets, English + Chinese) is evaluated in CI — success@5 = 100%, MRR = 0.902 — with injection-cost numbers per prompt mode (see [TECH_DESIGN §7.9](docs/TECH_DESIGN.md)).
39
39
  - **Automatic learning** — a projection accumulator watches the conversation for explicit remember-intent, corrections, and *verified failure streaks* (repeated same-signature tool failures resolved by a success), then runs LLM extraction when enough candidates accumulate. Admission rules exclude anything the repository already records (code structure, git history, fixed-bug narratives), and model-handwritten date prefixes are stripped so timestamps always come from the program.
40
- - **In-repo project notes** — coding conventions and a pitfall log render into your repo (`docs/agent-memory/` by default) as git-manageable markdown, inject into every session's system prompt, and stay discoverable via a managed `AGENTS.md` pointer. A drift guard backs up externally edited notes files instead of silently overwriting them.
40
+ - **Project notes prompt section** — coding conventions and a pitfall log render into every session's system prompt (`project-notes` section). Nothing is written into your repository: memory lives entirely in the host-side store, is managed in the Memory settings UI, and upgrades automatically clean up notes files left by ≤0.5.x installs.
41
41
  - **Dedup pipeline** — two-stage deduplication (stop-word-filtered Jaccard prefilter + optional LLM judge with bounded merges) prevents near-duplicate accumulation; a low-frequency curator pass re-summarizes oversized entries.
42
42
  - **Two-tier memory lifecycle** — pin important memories; overdue project-scoped entries are removed while overdue `global`/`user` entries are soft-decayed (hidden from standing injections, still searchable, un-stamped on recall); entries can also be manually archived from the UI; every write is audited.
43
43
  - **Step-level auto recall (opt-in)** — on each agent step, a BM25 search keyed on the step's user text appends a fenced `<recalled-memory>` message without touching the system prompt, keeping the KV-cache prefix stable.
@@ -81,6 +81,13 @@ Your dsh agent normally forgets everything when you close a session. This bundle
81
81
 
82
82
  - A profile you want to add memory to (this guide uses `web`).
83
83
 
84
+ > [!IMPORTANT]
85
+ > **Harness channel: `alpha` (0.1.2-alpha.x).** This bundle is built against the
86
+ > `@deepseek-ai/dsh-settings` 0.1.2-alpha API (`ctx.settings.installSection`)
87
+ > and declares `^0.1.2-alpha.2` peers. Install dsh from the `alpha` channel —
88
+ > the rc (`next`) line ships the removed module-level helpers and cannot load
89
+ > this bundle. See [Known Limitations](#known-limitations).
90
+
84
91
  ### From npm (recommended)
85
92
 
86
93
  One command. The published tarball ships prebuilt, so pnpm does not run any build script on your machine and no extra pnpm configuration is needed:
@@ -141,6 +148,10 @@ With a source checkout:
141
148
  pnpm dsh plugin --profile web update @chenhw7/dsh-memory
142
149
  ```
143
150
 
151
+ ### Upgrading from 0.5.x
152
+
153
+ Version 0.6 stops exporting memory into repository files. The `docs/agent-memory/CONVENTIONS.md` / `PITFALLS.md` renders and the managed `AGENTS.md` pointer block are gone; memory is prompt-injected and managed in the Memory settings UI only. On the first session in each project, the plugin removes what ≤0.5.x left behind: the managed pointer block is stripped from `AGENTS.md` (a pointer-only `AGENTS.md` is deleted) and the generated files under `docs/agent-memory/` are deleted (only files the plugin generated; anything else in that directory is kept). You can also delete them by hand at any time — nothing writes there anymore.
154
+
144
155
  ## Uninstall
145
156
 
146
157
  Remove the plugin from a profile:
@@ -212,17 +223,15 @@ Every namespace resolves in layers: schema defaults → the composition `config:
212
223
 
213
224
  | Setting | Default | Meaning |
214
225
  |---|---|---|
215
- | `memoryMode` | `policy-only` | `full`: inject memory content + guidance. `policy-only`: inject guidance only, model searches on demand. `custom`: inject user-defined policy text. `off`: no injection. `index`: inject an existence index (one line per entry) so the model can see what is stored and route to `memory_get`/`memory_search`. |
226
+ | `memoryMode` | `index` | `full`: inject memory content + guidance. `policy-only`: inject guidance only, model searches on demand. `custom`: inject user-defined policy text. `off`: no injection. `index`: inject an existence index (one line per entry) so the model can see what is stored and route to `memory_get`/`memory_search`. |
216
227
  | `memoryPolicyCustomText` | — | Custom policy text used when `memoryMode` is `custom`. |
217
228
  | `memoryCharLimit` | `5000` | Character budget for the frozen per-session memory snapshot injected in `full` mode (`0` = no content). |
218
229
  | `memoryMaxEntries` | `20` | Entry-count cap for the same frozen snapshot (`0` = no limit). The snapshot ends with a `≈N tokens` estimate so injection cost stays visible. |
219
230
  | `maxSearchResults` | `50` | Default cap for `memory_search` / `memory_list` when the call omits `limit`; read live by the tool plugin. `0` = no limit. |
220
231
  | `decayDays` | `30` | Lifecycle window for entries not recalled within N days; read live by the review plugin's janitor. `0` = disabled. Overdue `project` entries are **removed** (hard decay); overdue `global`/`user` entries are instead **soft-decayed** — stamped `stale`, hidden from injection surfaces and notes files, still searchable, un-stamped automatically once recalled. Pinned entries are always exempt. |
221
- | `notesEnabled` | `true` | Export project notes (conventions + pitfall log) into the repo and inject them into the system prompt. Entries rendered into the notes files are excluded from the memory section to avoid double injection. |
222
- | `notesDir` | `docs/agent-memory` | Repo-relative directory holding the generated `CONVENTIONS.md` / `PITFALLS.md`. |
232
+ | `notesEnabled` | `true` | Inject the project-notes prompt section (conventions + pitfall log) into the system prompt. Entries rendered into the section are excluded from the memory section to avoid double injection. No repo files are written. |
223
233
  | `notesCharLimit` | `4000` | Character budget for the injected `project-notes` prompt section. |
224
- | `notesAgentsPointer` | `true` | Maintain the managed pointer block in the repo's `AGENTS.md`. |
225
- | `notesMaxEntriesPerFile` | `100` | Max entries per generated notes file (newest kept). |
234
+ | `notesMaxEntriesPerFile` | `100` | Max entries rendered into the project-notes section (newest kept). |
226
235
  | `autoRecallEnabled` | `false` | Step-level auto recall: on every agent step, run a BM25 search over the store keyed on the step's user text and append a fenced `<recalled-memory>` message. The system prompt is untouched, so the KV-cache prefix stays stable. |
227
236
  | `autoRecallLimit` | `5` | Max entries in one auto-recall fence (min 1). The fence itself is capped at 1200 characters. |
228
237
  | `autoRecallMinChars` | `12` | Skip recall when the step's user text is shorter than this many characters (min 1). |
@@ -258,7 +267,7 @@ memory:
258
267
  maxSearchResults: 100
259
268
  ```
260
269
 
261
- By default, extraction, judging, and curation use the **same model the user is chatting with** — the session's provider/model route. To run them on a dedicated cheaper model, set `extractionModelProvider` and `extractionModelModel` (in the composition config or the UI — the UI offers dropdowns fed by the host model catalog):
270
+ By default, extraction, judging, and curation use the **same model the user is chatting with** — the session's provider/model route. To run them on a dedicated cheaper model, set `extractionModelProvider` and `extractionModelModel` (in the composition config or the UI — the UI offers dropdowns fed by the host model catalog). Naming a provider here sends conversation excerpts and stored entries to it, so pick one you trust with conversation content; leaving both empty adds no data path beyond the model you are already talking to:
262
271
 
263
272
  ```yaml
264
273
  memory-review:
@@ -271,16 +280,14 @@ Example `$DSH_HOME/settings.yaml` (both namespaces):
271
280
 
272
281
  ```yaml
273
282
  memory:
274
- memoryMode: policy-only
283
+ memoryMode: index
275
284
  memoryPolicyCustomText: ""
276
285
  memoryCharLimit: 5000
277
286
  memoryMaxEntries: 20
278
287
  maxSearchResults: 50
279
288
  decayDays: 30
280
289
  notesEnabled: true
281
- notesDir: docs/agent-memory
282
290
  notesCharLimit: 4000
283
- notesAgentsPointer: true
284
291
  notesMaxEntriesPerFile: 100
285
292
  autoRecallEnabled: false
286
293
  autoRecallLimit: 5
@@ -334,9 +341,9 @@ The bundle inserts seven rows over `dsh-base`, each pointing at this package's o
334
341
  |---|---|---|
335
342
  | `memory-root` | `@chenhw7/dsh-memory` | No-op root entry for client-module scanner discovery |
336
343
  | `memory-store` | `@chenhw7/dsh-memory/store` | Opens the `memory` domain (entries + audit + suggestion-queue tables), registers `ctx.memory` (BM25 search + two-tier decay) |
337
- | `tool-memory` | `@chenhw7/dsh-memory/tool` | Eight model-facing tools (confirm-mode writes queue as proposals) |
344
+ | `tool-memory` | `@chenhw7/dsh-memory/tool` | Nine model-facing tools (confirm-mode writes queue as proposals) |
338
345
  | `memory-review` | `@chenhw7/dsh-memory/review` | Automatic extraction (projection + failure-streak pitfalls + flush + dedup + janitor + curator + human-review queue) and the `memory-review` settings namespace |
339
- | `memory-notes` | `@chenhw7/dsh-memory/notes` | Project-notes export (render conventions/pitfalls + atomic write with drift guard + AGENTS.md pointer), registers `ctx.projectNotes` |
346
+ | `memory-notes` | `@chenhw7/dsh-memory/notes` | Project-notes prompt projection (render conventions/pitfalls into the `project-notes` section; no repo files), registers `ctx.projectNotes`; cleans up ≤0.5.x file-export artifacts on session start |
340
347
  | `memory-context` | `@chenhw7/dsh-memory/context` | System-prompt injection (`memory` @90 + `project-notes` @91), step-level auto recall, owns the `memory` settings namespace |
341
348
  | `memory-remote` | `@chenhw7/dsh-memory/remote-service` | `@Remote` service behind the settings UI's Memory section (consumed over the `/api` channel) |
342
349
 
@@ -362,7 +369,9 @@ The bundle inserts seven rows over `dsh-base`, each pointing at this package's o
362
369
  - **No semantic/vector retrieval** — `memory_search` is BM25 lexical ranking over structured KV entries (Latin word tokens, CJK unigrams + bigrams), not embeddings; synonyms that share no tokens will not match.
363
370
  - **Extraction quality tracks the session model** — review/flush/curator reuse the session's routed provider/model unless explicitly overridden.
364
371
  - **Mid-session extractions stay out of the prompt until the next compaction or session** — the injected snapshot is frozen for KV-cache stability; step-level auto recall (opt-in) covers per-step freshness instead.
372
+ - **Memory read/write is gated only at the transport layer** — the management UI's RPC methods carry no per-method authorization, so any host the dsh host admits through its `trustedHosts` setting can read and write the whole memory store, and written content reaches later sessions' system prompts. Keep the fence at loopback unless every admitted host is trusted ([threat model](docs/TECH_DESIGN.md)).
365
373
  - **dsh is in developer preview** — breaking changes are expected; this bundle's peer dependency ranges track the dsh release line.
374
+ - **Alpha channel (0.1.2-alpha.x) required** — the bundle uses the 0.1.2-alpha settings API (`ctx.settings.installSection`, host-only projection registrations) and declares `^0.1.2-alpha.2` peers. The rc (`next`) line still ships the removed module-level `installSettingsSection` helper and cannot load this bundle; install dsh from the `alpha` dist-tag. The client bundle likewise targets the alpha client packages (`@deepseek-ai/dsh-client-store` / `dsh-client-ui-settings`), which replaced the removed `dsh-client-runtime`.
366
375
 
367
376
  ## License
368
377
 
@@ -31,10 +31,10 @@
31
31
 
32
32
  - **持久化记忆** — 将事实、偏好和约定存储在持久的 KV 后端中,带审计日志。
33
33
  - **三层作用域** — `global`(跨项目)、`project`(按仓库自动检测)、`user`(跨项目 profile)。
34
- - **八个模型可用工具** — `memory_search`、`memory_add`、`memory_replace`、`memory_remove`、`memory_list`、`memory_get`、`memory_pin`、`memory_unpin`。
35
- - **BM25 相关性检索** — 零依赖的 Okapi BM25,CJK 感知分词(Latin 逐词;CJK 一元 + 相邻二元 bigram),固定(pin)条目在同等相关时优先靠前。检索质量不是玄学:固定 golden set(24 条 × 24 组查询,中英混合)在 CI 中实测——success@5 = 100%、MRR = 0.958——并附各注入模式的成本数字(见 [docs/INDEX_MODE_EVALUATION.zh-CN.md](docs/INDEX_MODE_EVALUATION.zh-CN.md))。
34
+ - **九个模型可用工具** — `memory_search`、`memory_add`、`memory_replace`、`memory_remove`、`memory_list`、`memory_get`、`memory_pin`、`memory_unpin`、`memory_forget`。
35
+ - **BM25 相关性检索** — 零依赖的 Okapi BM25,CJK 感知分词(Latin 逐词;CJK 一元 + 相邻二元 bigram),固定(pin)条目在同等相关时优先靠前。检索质量不是玄学:固定 golden set(35 条 × 35 组查询,中英混合)在 CI 中实测——success@5 = 100%、MRR = 0.902——并附各注入模式的成本数字(见 [TECH_DESIGN §7.9](docs/TECH_DESIGN.zh.md))。
36
36
  - **自动学习** — 投影累加器观察对话中的显式记忆意图、修正语句以及*已验证的失败序列*(同签名连续失败后最终成功),候选足够多时运行 LLM 提取。准入规则排除一切"仓库已记录的内容"(代码结构、git 历史、已修复 bug 的经过),模型手写的日期前缀会被剥离,时间戳永远由程序盖戳。
37
- - **仓库内项目笔记** — 编码约定与踩坑日志渲染为仓库内可 git 管理的 markdown(默认 `docs/agent-memory/`),每次会话注入 system prompt,并在 `AGENTS.md` 中维护一行托管指针块供其他工具发现。漂移守卫保证被外部手改过的笔记文件会被备份而非静默覆盖。
37
+ - **项目笔记 prompt 段落** — 编码约定与踩坑日志渲染进每次会话的 system prompt(`project-notes` 段)。不向仓库写入任何文件:记忆完全保存在 host 侧存储中,在 Memory 设置 UI 里管理;升级时自动清理 ≤0.5.x 留下的笔记文件。
38
38
  - **去重管线** — 两阶段去重(停用词过滤的 Jaccard 预过滤 + 可选 LLM 裁决,合并长度有上限),防止近似重复条目累积;低频 curator pass 会将过长条目改写为简洁单行。
39
39
  - **两层记忆生命周期** — 固定重要记忆;过期的 project 作用域条目被移除,而过期的 `global`/`user` 条目做软衰减(从常驻注入面隐藏但仍可搜索,再次召回即解除);条目也可以从界面手动归档;每次写入都有审计。
40
40
  - **步级自动召回(可选)** — 每个 agent step 用该步用户文本对 store 做 BM25 搜索,追加一块带围栏的 `<recalled-memory>` 消息;不触碰 system prompt,保持 KV-cache 前缀稳定。
@@ -79,6 +79,12 @@
79
79
 
80
80
  - 准备一个要添加记忆能力的 profile(本文以 `web` 为例)。
81
81
 
82
+ > [!IMPORTANT]
83
+ > **Harness 渠道:`alpha`(0.1.2-alpha.x)。** 本 bundle 按 `@deepseek-ai/dsh-settings`
84
+ > 0.1.2-alpha API(`ctx.settings.installSection`)构建,peer 范围为 `^0.1.2-alpha.2`。
85
+ > 请从 `alpha` 渠道安装 dsh——rc(`next`)线仍带着已被移除的模块级 helper,无法加载
86
+ > 本 bundle。见[已知限制](#已知限制)。
87
+
82
88
  ### 从 npm 安装(推荐)
83
89
 
84
90
  一条命令。npm 上的 tarball 是预构建的,安装时 pnpm 不会在你的机器上运行任何构建脚本,也不需要额外的 pnpm 配置:
@@ -139,6 +145,10 @@ dsh plugin --profile web update @chenhw7/dsh-memory
139
145
  pnpm dsh plugin --profile web update @chenhw7/dsh-memory
140
146
  ```
141
147
 
148
+ ### 从 0.5.x 升级
149
+
150
+ 0.6 版本停止向仓库导出记忆文件:`docs/agent-memory/CONVENTIONS.md` / `PITFALLS.md` 渲染文件与 `AGENTS.md` 托管指针块一并移除,记忆只通过 prompt 注入并在 Memory 设置 UI 中管理。升级后在每个项目的第一次会话里,插件会自动清理 ≤0.5.x 留下的产物:从 `AGENTS.md` 中剥离托管指针块(若文件只含指针块则整文件删除),并删除 `docs/agent-memory/` 下由插件生成的文件(只删插件生成的;目录中的其他文件保留)。你也可以随时手动删除它们——现在不会再有任何文件被写入仓库。
151
+
142
152
  ## 卸载
143
153
 
144
154
  从 profile 中移除插件:
@@ -210,17 +220,15 @@ dsh web
210
220
 
211
221
  | 设置 | 默认值 | 说明 |
212
222
  |---|---|---|
213
- | `memoryMode` | `policy-only` | `full`:注入记忆内容 + 指引;`policy-only`:只注入指引,模型按需搜索;`custom`:注入用户自定义策略文本;`off`:不注入;`index`:注入存在性索引(每个条目一行),模型可看见存了什么并路由到 `memory_get`/`memory_search`。 |
223
+ | `memoryMode` | `index` | `full`:注入记忆内容 + 指引;`policy-only`:只注入指引,模型按需搜索;`custom`:注入用户自定义策略文本;`off`:不注入;`index`:注入存在性索引(每个条目一行),模型可看见存了什么并路由到 `memory_get`/`memory_search`。 |
214
224
  | `memoryPolicyCustomText` | — | 当 `memoryMode` 为 `custom` 时使用的自定义策略文本。 |
215
225
  | `memoryCharLimit` | `5000` | 会话内冻结记忆快照注入 `full` 模式时的字符预算(`0` = 不注入内容)。 |
216
226
  | `memoryMaxEntries` | `20` | 同一冻结快照的条目数上限(`0` = 无限制)。快照尾部附 `≈N tokens` 估算,注入成本始终可见。 |
217
227
  | `maxSearchResults` | `50` | `memory_search` / `memory_list` 在调用未传 `limit` 时的默认返回条数上限,由工具插件实时读取。`0` = 无限制。 |
218
228
  | `decayDays` | `30` | N 天内未召回条目的生命周期窗口,由 review 插件的 janitor 实时读取。`0` = 禁用。过期的 `project` 条目被**移除**(硬衰减);过期的 `global`/`user` 条目改为**软衰减**——打上 `stale` 戳,从注入面和笔记文件中隐藏但仍可搜索,再次召回即自动解除。固定(pin)条目始终豁免。 |
219
- | `notesEnabled` | `true` | 启用项目笔记的仓库内文件导出与 system prompt 注入。已渲染进笔记文件的条目会从 memory 段落中排除,避免重复注入。 |
220
- | `notesDir` | `docs/agent-memory` | 仓库内生成 `CONVENTIONS.md` / `PITFALLS.md` 的目录。 |
229
+ | `notesEnabled` | `true` | 注入项目笔记 prompt 段落(约定 + 踩坑日志)。已渲染进该段落的条目会从 memory 段落中排除,避免重复注入。不写任何仓库文件。 |
221
230
  | `notesCharLimit` | `4000` | 注入的 `project-notes` 段落字符上限。 |
222
- | `notesAgentsPointer` | `true` | 维护仓库 `AGENTS.md` 中的托管指针块。 |
223
- | `notesMaxEntriesPerFile` | `100` | 每个生成笔记文件的最大条目数(保留最新)。 |
231
+ | `notesMaxEntriesPerFile` | `100` | 渲染进项目笔记段落的最大条目数(保留最新)。 |
224
232
  | `autoRecallEnabled` | `false` | 步级自动召回:每个 agent step 用该步用户文本对 store 做 BM25 搜索,追加一块带围栏的 `<recalled-memory>` 消息。不触碰 system prompt,保持 KV-cache 前缀稳定。 |
225
233
  | `autoRecallLimit` | `5` | 单次自动召回围栏内的最大条数(最小 1)。围栏本身上限 1200 字符。 |
226
234
  | `autoRecallMinChars` | `12` | 该步用户文本短于该字符数时跳过召回(最小 1)。 |
@@ -256,7 +264,7 @@ memory:
256
264
  maxSearchResults: 100
257
265
  ```
258
266
 
259
- 默认情况下,提取、去重裁决和 curation 使用**与用户对话相同的模型**——即会话的 provider/model 路由。若要在专用廉价模型上运行,设置 `extractionModelProvider` 和 `extractionModelModel`(在组合配置或 UI 中均可——UI 提供由宿主模型目录驱动的下拉框):
267
+ 默认情况下,提取、去重裁决和 curation 使用**与用户对话相同的模型**——即会话的 provider/model 路由。若要在专用廉价模型上运行,设置 `extractionModelProvider` 和 `extractionModelModel`(在组合配置或 UI 中均可——UI 提供由宿主模型目录驱动的下拉框)。在此指定 provider 会把对话摘录与已存条目发送给它,因此请选择你愿意托付对话内容的一方;两者留空则不会新增任何数据通路,只用你本来就在对话的模型:
260
268
 
261
269
  ```yaml
262
270
  memory-review:
@@ -269,16 +277,14 @@ memory-review:
269
277
 
270
278
  ```yaml
271
279
  memory:
272
- memoryMode: policy-only
280
+ memoryMode: index
273
281
  memoryPolicyCustomText: ""
274
282
  memoryCharLimit: 5000
275
283
  memoryMaxEntries: 20
276
284
  maxSearchResults: 50
277
285
  decayDays: 30
278
286
  notesEnabled: true
279
- notesDir: docs/agent-memory
280
287
  notesCharLimit: 4000
281
- notesAgentsPointer: true
282
288
  notesMaxEntriesPerFile: 100
283
289
  autoRecallEnabled: false
284
290
  autoRecallLimit: 5
@@ -332,9 +338,9 @@ memory:
332
338
  |---|---|---|
333
339
  | `memory-root` | `@chenhw7/dsh-memory` | 无操作根条目,供 client-module 扫描器发现 |
334
340
  | `memory-store` | `@chenhw7/dsh-memory/store` | 打开 `memory` 域(entries + audit + 待确认队列三张表),注册 `ctx.memory`(BM25 检索 + 两层衰减) |
335
- | `tool-memory` | `@chenhw7/dsh-memory/tool` | 八个模型可用工具(人审模式下写入改为入队) |
341
+ | `tool-memory` | `@chenhw7/dsh-memory/tool` | 九个模型可用工具(人审模式下写入改为入队) |
336
342
  | `memory-review` | `@chenhw7/dsh-memory/review` | 自动提取(投影 + 失败序列踩坑 + flush + 去重 + janitor + curator + 人审队列),持有 `memory-review` 设置命名空间 |
337
- | `memory-notes` | `@chenhw7/dsh-memory/notes` | 项目笔记导出(渲染约定/踩坑 + 带漂移守卫的原子写 + AGENTS.md 指针),注册 `ctx.projectNotes` |
343
+ | `memory-notes` | `@chenhw7/dsh-memory/notes` | 项目笔记 prompt 投影(渲染约定/踩坑进 `project-notes` 段落;0.6 起不写仓库文件),注册 `ctx.projectNotes`;会话创建时清理 ≤0.5.x 的文件导出残留 |
338
344
  | `memory-context` | `@chenhw7/dsh-memory/context` | 系统提示注入(`memory` @90 + `project-notes` @91)、步级自动召回,持有 `memory` 设置命名空间 |
339
345
  | `memory-remote` | `@chenhw7/dsh-memory/remote-service` | 记忆管理 UI 的 `@Remote` 服务(设置「记忆」区经 `/api` 通道消费) |
340
346
 
@@ -360,7 +366,9 @@ memory:
360
366
  - **无语义/向量检索** — `memory_search` 是对结构化 KV 条目的 BM25 词法排序(Latin 逐词、CJK 一元 + 二元分词),不是 embeddings;不含相同词元的同义表述无法命中。
361
367
  - **提取质量跟随会话模型** — review/flush/curator 复用会话当前路由的 provider/model,除非显式覆盖。
362
368
  - **会话中途的提取在下次压缩或新会话前不会出现在提示里** — 注入快照为 KV-cache 稳定性而冻结;步级自动召回(可选)提供逐步新鲜度。
369
+ - **记忆的读写只在传输层设闸** — 管理 UI 的 RPC 方法没有方法级鉴权,因此任何被 dsh 宿主 `trustedHosts` 放行的主机都能读写整个记忆库,而写入的内容会进入后续会话的 system prompt。除非放行的每台主机都可信,否则把围栏保持在 loopback(见[威胁模型](docs/TECH_DESIGN.zh.md))。
363
370
  - **dsh 仍处于开发者预览阶段** — 可能会有破坏性变更;本 bundle 的 peer dependency 范围跟随 dsh 发布线。
371
+ - **要求 alpha 渠道(0.1.2-alpha.x)** — 本 bundle 使用 0.1.2-alpha 的 settings API(`ctx.settings.installSection`、host-only 投影注册),peer 范围为 `^0.1.2-alpha.2`。rc(`next`)线仍是旧的模块级 `installSettingsSection` helper,无法加载本 bundle;请从 `alpha` dist-tag 安装 dsh。client bundle 同样对齐 alpha 客户端包(`@deepseek-ai/dsh-client-store` / `dsh-client-ui-settings`),它们取代了已移除的 `dsh-client-runtime`。
364
372
 
365
373
  ## 许可证
366
374
 
package/cordis.patch.yml CHANGED
@@ -1,8 +1,9 @@
1
1
  # @chenhw7/dsh-memory — long-term memory bundle patch for the DeepSeek Harness.
2
2
  #
3
3
  # Installs the memory store provider, six model-facing memory tools, automatic
4
- # review + flush extraction, the project-notes exporter, and system-prompt
5
- # context injection as ONE layer over dsh-base. The memory rows point at this
4
+ # review + flush extraction, the project-notes prompt projection, and
5
+ # system-prompt context injection as ONE layer over dsh-base. The memory rows
6
+ # point at this
6
7
  # package's own export sub-paths; the two storage rows are NOT inserted here
7
8
  # because dsh-web-app already provides them (storage-json + storage-domain
8
9
  # with the correct root path). For a headless profile that has no storage
@@ -34,7 +35,8 @@
34
35
  name: '@chenhw7/dsh-memory/review'
35
36
 
36
37
  # Project notes: renders habit/convention/pitfall entries from the store
37
- # into in-repo files (CONVENTIONS.md / PITFALLS.md) + AGENTS.md pointer.
38
+ # into the `project-notes` prompt section (no repo files since 0.6) and
39
+ # cleans up file-export artifacts left by ≤0.5.x.
38
40
  - id: memory-notes
39
41
  name: '@chenhw7/dsh-memory/notes'
40
42
 
@@ -42,6 +44,10 @@
42
44
  - id: memory-context
43
45
  name: '@chenhw7/dsh-memory/context'
44
46
 
45
- # @Remote service for the memory management UI (§3.8).
47
+ # @Remote service for the memory management UI (§7.7). The write switch
48
+ # defaults to false (deny by default — see the remote-write-guard Agent
49
+ # Note); this deployment drives the management UI, so it opts in here.
46
50
  - id: memory-remote
47
51
  name: '@chenhw7/dsh-memory/remote-service'
52
+ config:
53
+ remoteWritesEnabled: true
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * Recall evaluation baseline (P1-4) and injection-cost comparison (P1-8).
3
3
  *
4
- * A fixed golden-set fixture — 24 topically distinct entries across the three
5
- * scopes (English + CJK), each with one known relevant query — turns "the
6
- * retrieval is strong" from a structural claim into numbers: precision@k,
7
- * recall@k, and MRR over the shipping BM25 search, plus per-mode standing
8
- * injection cost (characters ≈ tokens). Any future retrieval change
9
- * (tokenization, weights, budgets) must run against this baseline first.
4
+ * A fixed golden-set fixture — 35 topically distinct entries across the three
5
+ * scopes (English + CJK; the original 24 plus the wave-3 synonym and inflection
6
+ * slices) with 35 known relevant queries — turns "the retrieval is strong"
7
+ * from a structural claim into numbers: precision@k, recall@k, and MRR over
8
+ * the shipping BM25 search, plus per-mode standing injection cost (characters
9
+ * ≈ tokens). Any future retrieval change (tokenization, weights, budgets) must
10
+ * run against this baseline first.
10
11
  *
11
12
  * Pure module: builds its own store-shaped searcher via a callback, so both
12
13
  * the real DomainMemoryStore (spec) and offline copies can be evaluated.
@@ -35,12 +36,28 @@ export interface GoldenCase {
35
36
  * The fixed memory fixture. Entries are deliberately topically separated so
36
37
  * BM25 can discriminate them; several share a few decoy tokens (e.g. two
37
38
  * entries mention 端口/port) to keep precision honest.
39
+ *
40
+ * Fixture growth history: the original 24 entries (g1–g8, p1–p8, u1–u8) are
41
+ * topically disjoint with keyword-style queries — they measure "can find",
42
+ * not synonym/inflection behavior. Wave-3 retrieval work (conservative Latin
43
+ * stemming, summary indexing) needed adversarial cases, so two groups were
44
+ * APPENDED without touching the original block:
45
+ * - synonym/paraphrase pairs (s1–s4b): the query words never appear verbatim
46
+ * in the entry — recall comes only from the summary field, which is why
47
+ * summary indexing is load-bearing for this slice; s4/s4b are a mirrored
48
+ * pair (zh content + en summary / en content + zh summary) that also pins
49
+ * the summary path's cross-language direction;
50
+ * - Latin inflection pairs (f1–f4): query and content share a stem but not a
51
+ * surface form (test/tests/testing, configure/configuration, build/builds,
52
+ * deploy/deployment) — these miss without conservative stemming.
38
53
  */
39
54
  export declare const GOLDEN_ENTRIES: readonly GoldenEntry[];
40
55
  /**
41
56
  * The golden query table: each query names exactly the entries a correct
42
57
  * search must return within the top-k. Queries mix keyword style ("redis
43
- * 缓存") and question style ("数据库迁移什么时候执行").
58
+ * 缓存"), question style ("数据库迁移什么时候执行"), synonym paraphrase
59
+ * ("凭据 怎么 管理" for the secrets entry), and Latin inflections
60
+ * ("unit tests 怎么跑" against "Component tests ... vitest").
44
61
  */
45
62
  export declare const GOLDEN_CASES: readonly GoldenCase[];
46
63
  /** Minimal search face the evaluator needs (satisfied by MemoryStore.search). */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/benchmark/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,wEAAwE;AACxE,MAAM,WAAW,WAAW;IAC1B,kDAAkD;IAClD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAC7C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,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AAE,aAAa,GAAG,OAAO,GAAG,MAAM,CAAA;IAC/C,mCAAmC;IACnC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,0EAA0E;IAC1E,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,+EAA+E;IAC/E,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,qEAAqE;IACrE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,EAC3B,eAAe,EAAE,MAAM,EACvB,IAAI,GAAE;IAAE,eAAe,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,GAC3D,aAAa,CAQf;AAED,+EAA+E;AAC/E,wBAAgB,aAAa,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAGzD"}
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * Recall evaluation baseline (P1-4) and injection-cost comparison (P1-8).
3
3
  *
4
- * A fixed golden-set fixture — 24 topically distinct entries across the three
5
- * scopes (English + CJK), each with one known relevant query — turns "the
6
- * retrieval is strong" from a structural claim into numbers: precision@k,
7
- * recall@k, and MRR over the shipping BM25 search, plus per-mode standing
8
- * injection cost (characters ≈ tokens). Any future retrieval change
9
- * (tokenization, weights, budgets) must run against this baseline first.
4
+ * A fixed golden-set fixture — 35 topically distinct entries across the three
5
+ * scopes (English + CJK; the original 24 plus the wave-3 synonym and inflection
6
+ * slices) with 35 known relevant queries — turns "the retrieval is strong"
7
+ * from a structural claim into numbers: precision@k, recall@k, and MRR over
8
+ * the shipping BM25 search, plus per-mode standing injection cost (characters
9
+ * ≈ tokens). Any future retrieval change (tokenization, weights, budgets) must
10
+ * run against this baseline first.
10
11
  *
11
12
  * Pure module: builds its own store-shaped searcher via a callback, so both
12
13
  * the real DomainMemoryStore (spec) and offline copies can be evaluated.
@@ -17,6 +18,20 @@
17
18
  * The fixed memory fixture. Entries are deliberately topically separated so
18
19
  * BM25 can discriminate them; several share a few decoy tokens (e.g. two
19
20
  * entries mention 端口/port) to keep precision honest.
21
+ *
22
+ * Fixture growth history: the original 24 entries (g1–g8, p1–p8, u1–u8) are
23
+ * topically disjoint with keyword-style queries — they measure "can find",
24
+ * not synonym/inflection behavior. Wave-3 retrieval work (conservative Latin
25
+ * stemming, summary indexing) needed adversarial cases, so two groups were
26
+ * APPENDED without touching the original block:
27
+ * - synonym/paraphrase pairs (s1–s4b): the query words never appear verbatim
28
+ * in the entry — recall comes only from the summary field, which is why
29
+ * summary indexing is load-bearing for this slice; s4/s4b are a mirrored
30
+ * pair (zh content + en summary / en content + zh summary) that also pins
31
+ * the summary path's cross-language direction;
32
+ * - Latin inflection pairs (f1–f4): query and content share a stem but not a
33
+ * surface form (test/tests/testing, configure/configuration, build/builds,
34
+ * deploy/deployment) — these miss without conservative stemming.
20
35
  */
21
36
  export const GOLDEN_ENTRIES = [
22
37
  // ── global (8) ──
@@ -45,11 +60,31 @@ export const GOLDEN_ENTRIES = [
45
60
  { id: 'u6', scope: 'user', content: 'The user dislikes emoji anywhere in commit messages or changelogs' },
46
61
  { id: 'u7', scope: 'user', content: '用户偏好 vim 键位绑定,编辑器与终端都保持一致', category: 'preference' },
47
62
  { id: 'u8', scope: 'user', content: 'Morning standup notes are posted to the team wiki page before ten' },
63
+ // ── synonym/paraphrase slice (s1–s6) ──
64
+ // The query's own words never appear in the content; only the human-written
65
+ // summary carries the query vocabulary. These cases are the acceptance
66
+ // signal for summary indexing: before it, the whole slice misses.
67
+ { id: 's1', scope: 'global', content: '始终先在分支上完成改动,确认流水线通过后再合入主干', summary: '代码合并策略:合并前必须通过 CI 检查', category: 'procedure' },
68
+ { id: 's2', scope: 'global', content: 'Secrets are injected at runtime; never bake credentials into image layers', summary: '凭据管理:禁止把密钥写进镜像', category: 'convention' },
69
+ { id: 's3', scope: 'project', projectName: 'demo-repo', content: 'The checkout flow talks to the payments adapter over the internal gateway', summary: '订单支付走内部网关的 payments 服务', category: 'insight' },
70
+ { id: 's4', scope: 'project', projectName: 'demo-repo', content: 'Cache invalidation happens on the write path, not on a TTL clock', summary: '缓存失效由写路径主动触发而非到期', category: 'insight' },
71
+ { id: 's4b', scope: 'project', projectName: 'demo-repo', content: '缓存键带构建哈希,发布后自动整体刷新', summary: 'Cache entries expire by build hash, invalidating wholesale on deploy', category: 'insight' },
72
+ { id: 's5', scope: 'user', content: '用户喜欢在解释里穿插真实代码片段,而不是纯文字描述', summary: '讲解风格:多贴示例代码少空谈', category: 'preference' },
73
+ { id: 's6', scope: 'user', content: '用户不希望助手重复确认已经明确过的决定', summary: '不要反复追问已拍板的事项', category: 'preference' },
74
+ // ── Latin inflection slice (f1–f4) ──
75
+ // Query and content share a stem but never a surface token — conservative
76
+ // suffix stemming (s/es/ies, ed, ing) is what makes them hit.
77
+ { id: 'f1', scope: 'global', content: 'Component tests run through vitest with jsdom enabled', summary: '组件层的 testing 由 vitest 承担', category: 'convention' },
78
+ { id: 'f2', scope: 'project', projectName: 'demo-repo', content: 'A fresh clone needs one command to configure the local environment', summary: '克隆后第一步是 configuration 脚本', category: 'procedure' },
79
+ { id: 'f3', scope: 'project', projectName: 'demo-repo', content: 'The release pipeline builds artifacts then signs them with cosign', summary: '发版流程:先 builds 再签名', category: 'procedure' },
80
+ { id: 'f4', scope: 'user', content: '用户要求每次改动都附带回滚方案,防止部署失败无法恢复', summary: 'deploy 前必须准备 rollback 预案', category: 'preference' },
48
81
  ];
49
82
  /**
50
83
  * The golden query table: each query names exactly the entries a correct
51
84
  * search must return within the top-k. Queries mix keyword style ("redis
52
- * 缓存") and question style ("数据库迁移什么时候执行").
85
+ * 缓存"), question style ("数据库迁移什么时候执行"), synonym paraphrase
86
+ * ("凭据 怎么 管理" for the secrets entry), and Latin inflections
87
+ * ("unit tests 怎么跑" against "Component tests ... vitest").
53
88
  */
54
89
  export const GOLDEN_CASES = [
55
90
  { query: 'package manager preference pnpm', relevant: ['g1'], lang: 'en' },
@@ -76,6 +111,19 @@ export const GOLDEN_CASES = [
76
111
  { query: 'emoji commit messages dislike', relevant: ['u6'], lang: 'en' },
77
112
  { query: 'vim 键位 编辑器 偏好', relevant: ['u7'], lang: 'zh' },
78
113
  { query: 'standup notes where posted morning wiki', relevant: ['u8'], lang: 'en' },
114
+ // ── synonym/paraphrase slice: query vocabulary lives only in the summary ──
115
+ { query: '合并代码 前 检查 通过', relevant: ['s1'], lang: 'zh' },
116
+ { query: '镜像 里 能不能 放 密码 凭据', relevant: ['s2'], lang: 'zh' },
117
+ { query: '支付 请求 走 哪个 网关', relevant: ['s3'], lang: 'zh' },
118
+ { query: 'cache expiry invalidation behavior', relevant: ['s4'], lang: 'en' },
119
+ { query: '缓存 什么时候 过期 失效', relevant: ['s4b'], lang: 'zh' },
120
+ { query: '讲解 风格 要不要 贴 代码', relevant: ['s5'], lang: 'zh' },
121
+ { query: '已经 决定 的事 别 再问', relevant: ['s6'], lang: 'zh' },
122
+ // ── Latin inflection slice: stem shared, surface form different ──
123
+ { query: 'unit tests 组件层 怎么 跑', relevant: ['f1'], lang: 'zh' },
124
+ { query: 'new clone configuring steps', relevant: ['f2'], lang: 'en' },
125
+ { query: 'release builds signing artifacts', relevant: ['f3'], lang: 'en' },
126
+ { query: 'deployment 回滚 预案 要求', relevant: ['f4'], lang: 'zh' },
79
127
  ];
80
128
  function sliceStats(perCase, k) {
81
129
  if (perCase.length === 0)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/benchmark/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAsBH;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAA2B;IACpD,mBAAmB;IACnB,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,2EAA2E,EAAE;IACnH,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ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