@lmzhen/dsh-memory-files 0.3.26 → 0.3.27
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/lib/index.js +1 -2
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -51,8 +51,7 @@ function apply(ctx, rawConfig) {
|
|
|
51
51
|
return await serializedWrite(() => store.applyBatch(target, normalized));
|
|
52
52
|
},
|
|
53
53
|
snapshot: async () => {
|
|
54
|
-
const memory = await store.read("memory");
|
|
55
|
-
const user = await store.read("user");
|
|
54
|
+
const [memory, user] = await serializedWrite(async () => [await store.read("memory"), await store.read("user")]);
|
|
56
55
|
const text = JSON.stringify([memory, user]);
|
|
57
56
|
return {
|
|
58
57
|
version: 1,
|
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.27",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
34
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
34
|
+
"@lmzhen/dsh-evolution-core": "^0.3.27"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
38
38
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
39
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
40
|
-
"@lmzhen/dsh-memory": "^0.3.
|
|
39
|
+
"@lmzhen/dsh-evolution-io": "^0.3.27",
|
|
40
|
+
"@lmzhen/dsh-memory": "^0.3.27"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
44
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
45
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
46
|
-
"@lmzhen/dsh-memory": "^0.3.
|
|
44
|
+
"@lmzhen/dsh-evolution-core": "^0.3.27",
|
|
45
|
+
"@lmzhen/dsh-evolution-io": "^0.3.27",
|
|
46
|
+
"@lmzhen/dsh-memory": "^0.3.27"
|
|
47
47
|
}
|
|
48
48
|
}
|