@lmzhen/dsh-evolution-core 0.3.23 → 0.3.24

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 +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -2663,7 +2663,7 @@ function advanceReview(state, turn, signal, config) {
2663
2663
  state.lastTurn = turn;
2664
2664
  signal.substantive = signal.toolCalls >= config.substantiveMinToolCalls || signal.userChars >= config.substantiveMinUserChars || signal.assistantChars >= config.substantiveMinAgentChars;
2665
2665
  if (!signal.substantive) return null;
2666
- state.turnsSinceMemory += signal.memorySignal ? 1 : 0;
2666
+ state.turnsSinceMemory += signal.memorySignal ? 1 : Math.max(1, signal.toolCalls);
2667
2667
  state.turnsSinceSkill += signal.skillSignal ? 1 : Math.max(1, signal.toolCalls);
2668
2668
  const memoryDue = state.turnsSinceMemory >= config.memoryInterval;
2669
2669
  const skillDue = state.turnsSinceSkill >= config.skillInterval;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-core",
3
3
  "description": "Shared stores, prompts, signals and lifecycle logic for the dsh-evolution plugin family (community build)",
4
- "version": "0.3.23",
4
+ "version": "0.3.24",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },