@lmzhen/dsh-evolution-feedback 0.32.3 → 0.32.4
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 +2 -2
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -154,7 +154,7 @@ var EvolutionFeedback = class EvolutionFeedback {
|
|
|
154
154
|
const cache = parseCache(rawCache, this.warn);
|
|
155
155
|
const maxSeq = events.reduce((max, event) => Math.max(max, event.seq), 0);
|
|
156
156
|
const floor = events[0]?.seq ?? 0;
|
|
157
|
-
const usableCache = cache && cache.lastSeq >= floor - 1 ? cache : null;
|
|
157
|
+
const usableCache = cache && cache.lastSeq >= floor - 1 && cache.lastSeq <= maxSeq ? cache : null;
|
|
158
158
|
const truth = usableCache ? foldWithDelta(usableCache, events, this.warn) : foldFeedbackState(events, this.warn);
|
|
159
159
|
const pickPending = (mode) => {
|
|
160
160
|
const picked = {};
|
|
@@ -190,7 +190,7 @@ var EvolutionFeedback = class EvolutionFeedback {
|
|
|
190
190
|
this.durableNote.delete(oldest);
|
|
191
191
|
}
|
|
192
192
|
if (truncated) this.warnOnce(TRUNCATED_TIMELINE_WARN);
|
|
193
|
-
else if (maxSeq > 0 && (!cache || cache.lastSeq
|
|
193
|
+
else if (maxSeq > 0 && (!cache || cache.lastSeq !== maxSeq)) try {
|
|
194
194
|
await io.writeText(path, JSON.stringify({
|
|
195
195
|
version: CACHE_VERSION,
|
|
196
196
|
lastSeq: maxSeq,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-feedback",
|
|
3
3
|
"description": "Feedback-to-quality scoring for self-evolution (community build)",
|
|
4
|
-
"version": "0.32.
|
|
4
|
+
"version": "0.32.4",
|
|
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.
|
|
30
|
+
"@lmzhen/dsh-evolution-core": "^0.32.4"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
34
|
-
"@lmzhen/dsh-evolution-io": "^0.32.
|
|
35
|
-
"@lmzhen/dsh-skill-usage": "^0.32.
|
|
34
|
+
"@lmzhen/dsh-evolution-io": "^0.32.4",
|
|
35
|
+
"@lmzhen/dsh-skill-usage": "^0.32.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lmzhen/dsh-evolution-io": "^0.32.
|
|
39
|
-
"@lmzhen/dsh-evolution-io-node": "^0.32.
|
|
40
|
-
"@lmzhen/dsh-skill-usage": "^0.32.
|
|
38
|
+
"@lmzhen/dsh-evolution-io": "^0.32.4",
|
|
39
|
+
"@lmzhen/dsh-evolution-io-node": "^0.32.4",
|
|
40
|
+
"@lmzhen/dsh-skill-usage": "^0.32.4"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"dsh": ">=0.2.1-rc.2 <0.2.2-0"
|