@haisto/opencode-mem 2.14.3-beta.1 → 2.14.3-beta.2
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.
|
@@ -164,7 +164,7 @@ export class UserProfileManager {
|
|
|
164
164
|
decayFactor: Math.round(decayFactor * 100) / 100,
|
|
165
165
|
action: "decayed",
|
|
166
166
|
});
|
|
167
|
-
return { ...pref, confidence: newConfidence };
|
|
167
|
+
return { ...pref, confidence: newConfidence, lastUpdated: now };
|
|
168
168
|
}
|
|
169
169
|
decayLogs.push({
|
|
170
170
|
category: pref.category,
|
|
@@ -204,7 +204,7 @@ export class UserProfileManager {
|
|
|
204
204
|
if (age > decayThreshold) {
|
|
205
205
|
hasChanges = true;
|
|
206
206
|
const decayFactor = Math.max(0.5, 1 - (age - decayThreshold) / decayThreshold);
|
|
207
|
-
return { ...pattern, frequency: Math.floor(pattern.frequency * decayFactor) };
|
|
207
|
+
return { ...pattern, frequency: Math.floor(pattern.frequency * decayFactor), lastSeen: now };
|
|
208
208
|
}
|
|
209
209
|
return pattern;
|
|
210
210
|
})
|
|
@@ -216,7 +216,7 @@ export class UserProfileManager {
|
|
|
216
216
|
if (age > decayThreshold) {
|
|
217
217
|
hasChanges = true;
|
|
218
218
|
const decayFactor = Math.max(0.5, 1 - (age - decayThreshold) / decayThreshold);
|
|
219
|
-
return { ...workflow, frequency: Math.floor(workflow.frequency * decayFactor) };
|
|
219
|
+
return { ...workflow, frequency: Math.floor(workflow.frequency * decayFactor), lastSeen: now };
|
|
220
220
|
}
|
|
221
221
|
return workflow;
|
|
222
222
|
})
|
package/package.json
CHANGED