@lmzhen/dsh-evolution-state-domain 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 +4 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @lmzhen/dsh-evolution-state-domain
|
|
2
2
|
|
|
3
3
|
storage-domain provider for evolution state
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ storage-domain provider for evolution state
|
|
|
9
9
|
|
|
10
10
|
#### What the model sees
|
|
11
11
|
|
|
12
|
-
`@
|
|
12
|
+
`@lmzhen/dsh-evolution-state-domain` registers no direct prompt or tool schema itself. Model-visible effects are owned by the packages that consume this service.
|
|
13
13
|
|
|
14
14
|
#### Token effect
|
|
15
15
|
|
package/lib/index.js
CHANGED
|
@@ -222,6 +222,10 @@ function apply(ctx) {
|
|
|
222
222
|
ctx.logger.warn(`evolution-state-domain: ${drifted.length} pending table entr(ies) were keyed by something other than record.id — re-keyed by id, so a drifted row is reachable by claim/resolve again`);
|
|
223
223
|
}
|
|
224
224
|
for (const { key, record } of drifted) try {
|
|
225
|
+
if (table.get(record.id) !== void 0) {
|
|
226
|
+
await table.delete(key);
|
|
227
|
+
continue;
|
|
228
|
+
}
|
|
225
229
|
await table.put(record.id, structuredClone(record));
|
|
226
230
|
await table.delete(key);
|
|
227
231
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-state-domain",
|
|
3
3
|
"description": "storage-domain provider for evolution state (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.83",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
33
33
|
"@deepseek-ai/dsh-storage-domain": "^0.1.5-rc.2",
|
|
34
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
34
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.83"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@deepseek-ai/dsh-storage-domain": "^0.1.5-rc.2",
|
|
38
38
|
"@deepseek-ai/dsh-storage": "^0.1.5-rc.2",
|
|
39
39
|
"@deepseek-ai/dsh-storage-json": "^0.1.5-rc.2",
|
|
40
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
40
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.83"
|
|
41
41
|
}
|
|
42
42
|
}
|