@lmzhen/dsh-memory-files 0.3.82 → 0.3.83
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 +2 -2
- package/lib/index.js +3 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @lmzhen/dsh-memory-files
|
|
2
2
|
|
|
3
3
|
Local layered memory provider
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ Local layered memory provider
|
|
|
8
8
|
|
|
9
9
|
#### What the model sees
|
|
10
10
|
|
|
11
|
-
`@
|
|
11
|
+
`@lmzhen/dsh-memory-files` registers no direct prompt or tool schema itself. Model-visible effects are owned by the packages that consume this service.
|
|
12
12
|
|
|
13
13
|
#### Token effect
|
|
14
14
|
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
+
import { resolve } from "node:path";
|
|
2
3
|
import z from "@deepseek-ai/schemastery";
|
|
3
4
|
import { DEFAULT_CONSOLIDATION_FAILURES, DEFAULT_MEMORY_CHAR_LIMIT, DEFAULT_USER_CHAR_LIMIT, MemoryStore, clampedNumber, evolutionIoAdapter, makeSerialQueue } from "@lmzhen/dsh-evolution-core";
|
|
4
5
|
//#region lib/types/index.js
|
|
@@ -45,7 +46,8 @@ function apply(ctx, rawConfig = {}) {
|
|
|
45
46
|
if (explicitLimit("userCharLimit") && budget.user !== void 0 && config.userCharLimit !== budget.user) ctx.logger.warn(`memory-files: userCharLimit=${config.userCharLimit} contradicts evolution-policy userChars=${budget.user} — same divergence as memoryCharLimit`);
|
|
46
47
|
const io = evolutionIoAdapter(() => ctx.evolutionIo.provider());
|
|
47
48
|
const serializedWrite = makeSerialQueue();
|
|
48
|
-
const
|
|
49
|
+
const trimmedRoot = (config.root || "").trim();
|
|
50
|
+
const resolvedRoot = trimmedRoot === "" ? "" : resolve(trimmedRoot);
|
|
49
51
|
const store = new MemoryStore({
|
|
50
52
|
memoryCharLimit: config.memoryCharLimit,
|
|
51
53
|
userCharLimit: config.userCharLimit,
|
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.3.
|
|
4
|
+
"version": "0.3.83",
|
|
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.3.
|
|
30
|
+
"@lmzhen/dsh-evolution-core": "^0.3.83"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
34
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
35
|
-
"@lmzhen/dsh-memory": "^0.3.
|
|
34
|
+
"@lmzhen/dsh-evolution-io": "^0.3.83",
|
|
35
|
+
"@lmzhen/dsh-memory": "^0.3.83"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
39
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
40
|
-
"@lmzhen/dsh-memory": "^0.3.
|
|
38
|
+
"@lmzhen/dsh-evolution-core": "^0.3.83",
|
|
39
|
+
"@lmzhen/dsh-evolution-io": "^0.3.83",
|
|
40
|
+
"@lmzhen/dsh-memory": "^0.3.83"
|
|
41
41
|
}
|
|
42
42
|
}
|