@lmzhen/dsh-evolution-feedback 0.17.1 → 0.18.1
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 +8 -2
- package/package.json +8 -8
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "@deepseek-ai/schemastery";
|
|
2
|
-
import { EVENT_LOG_VERSION, appendEvolutionEvent, clampedNumber, eventsFile, evolutionEventPayloadIssue, evolutionIoAdapter, evolutionRoot, listEventArchives, parseEvolutionEvents, readEvolutionTimeline, transactIo } from "@lmzhen/dsh-evolution-core";
|
|
2
|
+
import { EVENT_LOG_VERSION, appendEvolutionEvent, clampedNumber, eventsFile, evolutionEventPayloadIssue, evolutionIoAdapter, evolutionRoot, isPresent, isUnknown, listEventArchives, parseEvolutionEvents, probeText, readEvolutionTimeline, transactIo } from "@lmzhen/dsh-evolution-core";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
//#region lib/types/index.js
|
|
5
5
|
/**
|
|
@@ -323,7 +323,13 @@ var EvolutionFeedback = class EvolutionFeedback {
|
|
|
323
323
|
if (!path || !eventsPath || !recordIo) return;
|
|
324
324
|
try {
|
|
325
325
|
const { events, malformed } = await readEvolutionTimeline(recordIo, eventsPath);
|
|
326
|
-
if (events.length > 0
|
|
326
|
+
if (events.length > 0) {
|
|
327
|
+
const activeProbe = await probeText(recordIo, eventsPath);
|
|
328
|
+
if (!isPresent(activeProbe)) {
|
|
329
|
+
if (isUnknown(activeProbe)) this.warnOnce(`evolution-feedback: the active event log ${eventsPath} could not be read (${activeProbe.reason}); withholding the cache write until it can be read`);
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
327
333
|
if (malformed) {
|
|
328
334
|
this.warnOnce(TRUNCATED_TIMELINE_WARN);
|
|
329
335
|
return;
|
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.
|
|
4
|
+
"version": "0.18.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
30
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
29
|
+
"@deepseek-ai/schemastery": "^3.18.4",
|
|
30
|
+
"@lmzhen/dsh-evolution-core": "^0.18.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
34
|
-
"@lmzhen/dsh-evolution-io": "^0.
|
|
35
|
-
"@lmzhen/dsh-skill-usage": "^0.
|
|
34
|
+
"@lmzhen/dsh-evolution-io": "^0.18.1",
|
|
35
|
+
"@lmzhen/dsh-skill-usage": "^0.18.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lmzhen/dsh-evolution-io": "^0.
|
|
39
|
-
"@lmzhen/dsh-evolution-io-node": "^0.
|
|
40
|
-
"@lmzhen/dsh-skill-usage": "^0.
|
|
38
|
+
"@lmzhen/dsh-evolution-io": "^0.18.1",
|
|
39
|
+
"@lmzhen/dsh-evolution-io-node": "^0.18.1",
|
|
40
|
+
"@lmzhen/dsh-skill-usage": "^0.18.1"
|
|
41
41
|
}
|
|
42
42
|
}
|