@lmzhen/dsh-memory-files 0.32.4 → 0.32.5

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 (2) hide show
  1. package/README.md +12 -22
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -1,33 +1,23 @@
1
1
  # @lmzhen/dsh-memory-files
2
2
 
3
- Local layered memory provider: registers the `files` provider into `ctx.memory` over the IO seam.
3
+ > 内部组件,把记忆存到 `MEMORY.md`/`USER.md`。
4
4
 
5
- ## Model surface
5
+ ## 你会看到
6
6
 
7
- - **Model-visible:** nothing of its own: `tool-memory` owns the tool and the injection.
8
- - **Prompt prefix / KV cache:** unchanged by this package: family-level rules single-sourced in `packages/README.md` §"Model-visible prompt prefix and the KV cache".
9
- - **Mount it?** yes — the `memory-files` provider row, in `evolution-host`/`evolution-all`/one-click `evolution-preset`.
7
+ 用户看到的是记忆被记住/自动带回来。
10
8
 
11
- ## Configuration
9
+ ## 什么时候会用到
12
10
 
13
- - `providerName` (default `files`): the registered name.
14
- - `memoryCharLimit` / `userCharLimit` (`2200` / `1375`) the budget the STORE enforces per target.
15
- Deprecated names (G0/S0.3): the canonical ids are the policy row's `memoryChars` /
16
- `userChars` (what the review planner reads). The two sides are not
17
- auto-synchronised — `/evolution doctor` reports the divergence (`budgetIssues`).
18
- Reading the legacy names still works; writing them is refused. Removal was planned for 0.7.0 and is deferred:
19
- both aliases still ship, so no later version is claimed here.
20
- - `root`: directory override; `''` means `$DSH_HOME/memories`.
21
- - `addDatePrefix` / `maxConsolidationFailures` (`false` / `3`) date prefixes on entries; consolidation failures one turn tolerates.
22
- - `threatExemptLabels` (default `[]`): benign threat labels for the MEMORY store (per-site rule in `evolution-threat`).
11
+ 每次写记忆、新会话注入时。
23
12
 
24
- ## Known limitations
13
+ ## 默认 / 前提
25
14
 
26
- - **The memory budget is configured in two places.** `memoryCharLimit`/`userCharLimit` (this package) is what the STORE enforces; `evolution-policy`'s `memoryChars`/`userChars` is what the review pipeline PLANS against. An unset limit follows the mounted policy, an explicit value wins, a contradiction warns once at load; `/evolution doctor` re-checks the pair at run time.
27
- - Nothing selects this provider implicitly: with `memory.provider` empty the FIRST registered provider serves every read/write: set the pin or row order decides.
15
+ 随记忆功能自动工作。
28
16
 
29
- **Runtime invariant:** No companion is published. The platform auto-assembles nothing and the family mounts no `<pkg>/invariant` cordis row, so a companion here would never execute (v37 S2.1 / I-3).
17
+ ## 边界
30
18
 
31
- ## Notes and history
19
+ 预算写满会拒绝,不会静默截断。
32
20
 
33
- - `memory.provider` pins the registry to one name (V27 G6.3), and with the pin empty the FIRST registered provider serves every read/write: so with two providers mounted, set the pin or the choice is row order.
21
+ ## 维护者参考:参数别名(G0/S0.3)
22
+
23
+ `memoryCharLimit` → `memoryChars`;`userCharLimit` → `userChars`。旧名仍可读,写入会拒绝。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-memory-files",
3
3
  "description": "Local layered memory provider (community build)",
4
- "version": "0.32.4",
4
+ "version": "0.32.5",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,17 +27,17 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.5",
30
- "@lmzhen/dsh-evolution-core": "^0.32.4"
30
+ "@lmzhen/dsh-evolution-core": "^0.32.5"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@deepseek-ai/cordis": "^4.0.5",
34
- "@lmzhen/dsh-evolution-io": "^0.32.4",
35
- "@lmzhen/dsh-memory": "^0.32.4"
34
+ "@lmzhen/dsh-evolution-io": "^0.32.5",
35
+ "@lmzhen/dsh-memory": "^0.32.5"
36
36
  },
37
37
  "devDependencies": {
38
- "@lmzhen/dsh-evolution-core": "^0.32.4",
39
- "@lmzhen/dsh-evolution-io": "^0.32.4",
40
- "@lmzhen/dsh-memory": "^0.32.4"
38
+ "@lmzhen/dsh-evolution-core": "^0.32.5",
39
+ "@lmzhen/dsh-evolution-io": "^0.32.5",
40
+ "@lmzhen/dsh-memory": "^0.32.5"
41
41
  },
42
42
  "engines": {
43
43
  "dsh": ">=0.2.1-rc.2 <0.2.2-0"