@lmzhen/dsh-evolution-feedback 0.3.59 → 0.3.61

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 +9 -2
  2. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -100,8 +100,15 @@ var EvolutionFeedback = class EvolutionFeedback {
100
100
  ...this.state.sessions
101
101
  }
102
102
  };
103
- for (const [target, record] of Object.entries(truth.skills)) this.durableNote.set(this.noteKey("skills", target), record.lastNote);
104
- for (const [target, record] of Object.entries(truth.sessions)) this.durableNote.set(this.noteKey("sessions", target), record.lastNote);
103
+ const skillEntries = Object.entries(truth.skills);
104
+ const sessionEntries = Object.entries(truth.sessions);
105
+ const seedCount = Math.max(skillEntries.length, sessionEntries.length);
106
+ for (let i = 0; i < seedCount; i += 1) {
107
+ const skillEntry = skillEntries[i];
108
+ if (skillEntry) this.durableNote.set(this.noteKey("skills", skillEntry[0]), skillEntry[1].lastNote);
109
+ const sessionEntry = sessionEntries[i];
110
+ if (sessionEntry) this.durableNote.set(this.noteKey("sessions", sessionEntry[0]), sessionEntry[1].lastNote);
111
+ }
105
112
  while (this.durableNote.size > EvolutionFeedback.NOTE_CAP) {
106
113
  const oldest = this.durableNote.keys().next().value;
107
114
  if (oldest === void 0) break;
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.59",
4
+ "version": "0.3.61",
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.59"
34
+ "@lmzhen/dsh-evolution-core": "^0.3.61"
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.59",
40
- "@lmzhen/dsh-skill-usage": "^0.3.59"
39
+ "@lmzhen/dsh-evolution-io": "^0.3.61",
40
+ "@lmzhen/dsh-skill-usage": "^0.3.61"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
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"
44
+ "@lmzhen/dsh-evolution-io": "^0.3.61",
45
+ "@lmzhen/dsh-evolution-io-node": "^0.3.61",
46
+ "@lmzhen/dsh-skill-usage": "^0.3.61"
47
47
  }
48
48
  }