@lmzhen/dsh-memory-files 0.3.83 → 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 +17 -17
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
# @lmzhen/dsh-memory-files
|
|
2
2
|
|
|
3
|
-
Local layered memory provider
|
|
3
|
+
Local layered memory provider: registers the `files` provider into `ctx.memory` over the IO seam.
|
|
4
4
|
|
|
5
|
-
## Model
|
|
5
|
+
## Model surface
|
|
6
6
|
|
|
7
|
-
|
|
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`.
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
## Configuration
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
- `providerName` (default `files`): the registered name.
|
|
14
|
+
- `memoryCharLimit` / `userCharLimit` (`2200` / `1375`) the budget the STORE enforces per target.
|
|
15
|
+
- `root`: directory override; `''` means `$DSH_HOME/memories`.
|
|
16
|
+
- `addDatePrefix` / `maxConsolidationFailures` (`false` / `3`) date prefixes on entries; consolidation failures one turn tolerates.
|
|
17
|
+
- `threatExemptLabels` (default `[]`): benign threat labels for the MEMORY store (per-site rule in `evolution-threat`).
|
|
12
18
|
|
|
13
|
-
|
|
19
|
+
## Known limitations
|
|
14
20
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
#### KV Cache effect
|
|
18
|
-
|
|
19
|
-
Independent of request-prefix construction. This package does not alter the assembled prompt or tool list.
|
|
20
|
-
|
|
21
|
-
## Known Limitations and Deferred Work
|
|
22
|
-
|
|
23
|
-
- **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 here follows the mounted policy (row order permitting — the policy must already be mounted when this row assembles), an explicit value wins, and an explicit value that contradicts the policy warns once at load. `/evolution doctor` re-checks the pair at run time and reports a `memory budget:` finding, which also catches the row-order case. "Unset" is read as "equal to the schema default": the loader fills defaults into the row config, so a row that pins the default value explicitly is indistinguishable from one that omits it.
|
|
21
|
+
- **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.
|
|
22
|
+
- Nothing selects this provider implicitly: with `memory.provider` empty the FIRST registered provider serves every read/write: set the pin or row order decides.
|
|
24
23
|
|
|
24
|
+
**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).
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
## Notes and history
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
- `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.
|
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.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
30
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
30
|
+
"@lmzhen/dsh-evolution-core": "^0.4.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
34
|
-
"@lmzhen/dsh-evolution-io": "^0.
|
|
35
|
-
"@lmzhen/dsh-memory": "^0.
|
|
34
|
+
"@lmzhen/dsh-evolution-io": "^0.4.0",
|
|
35
|
+
"@lmzhen/dsh-memory": "^0.4.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
39
|
-
"@lmzhen/dsh-evolution-io": "^0.
|
|
40
|
-
"@lmzhen/dsh-memory": "^0.
|
|
38
|
+
"@lmzhen/dsh-evolution-core": "^0.4.0",
|
|
39
|
+
"@lmzhen/dsh-evolution-io": "^0.4.0",
|
|
40
|
+
"@lmzhen/dsh-memory": "^0.4.0"
|
|
41
41
|
}
|
|
42
42
|
}
|