@lmzhen/dsh-evolution-feedback 0.3.58 → 0.3.59

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.
Files changed (2) hide show
  1. package/lib/index.js +5 -0
  2. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -102,6 +102,11 @@ var EvolutionFeedback = class EvolutionFeedback {
102
102
  };
103
103
  for (const [target, record] of Object.entries(truth.skills)) this.durableNote.set(this.noteKey("skills", target), record.lastNote);
104
104
  for (const [target, record] of Object.entries(truth.sessions)) this.durableNote.set(this.noteKey("sessions", target), record.lastNote);
105
+ while (this.durableNote.size > EvolutionFeedback.NOTE_CAP) {
106
+ const oldest = this.durableNote.keys().next().value;
107
+ if (oldest === void 0) break;
108
+ this.durableNote.delete(oldest);
109
+ }
105
110
  if (maxSeq > 0 && (!cache || cache.lastSeq < maxSeq)) try {
106
111
  await io.writeText(path, JSON.stringify({
107
112
  version: CACHE_VERSION,
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.3.58",
4
+ "version": "0.3.59",
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.58"
34
+ "@lmzhen/dsh-evolution-core": "^0.3.59"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
38
38
  "@deepseek-ai/cordis": "^4.0.1",
39
- "@lmzhen/dsh-evolution-io": "^0.3.58",
40
- "@lmzhen/dsh-skill-usage": "^0.3.58"
39
+ "@lmzhen/dsh-evolution-io": "^0.3.59",
40
+ "@lmzhen/dsh-skill-usage": "^0.3.59"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
44
- "@lmzhen/dsh-evolution-io": "^0.3.58",
45
- "@lmzhen/dsh-evolution-io-node": "^0.3.58",
46
- "@lmzhen/dsh-skill-usage": "^0.3.58"
44
+ "@lmzhen/dsh-evolution-io": "^0.3.59",
45
+ "@lmzhen/dsh-evolution-io-node": "^0.3.59",
46
+ "@lmzhen/dsh-skill-usage": "^0.3.59"
47
47
  }
48
48
  }