tuna-agent 0.1.14 β 0.1.15
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.
|
@@ -691,9 +691,13 @@ Instructions:
|
|
|
691
691
|
async storeRatingMemory(data) {
|
|
692
692
|
if (!process.env.MEM0_SSH_HOST)
|
|
693
693
|
return;
|
|
694
|
-
const
|
|
695
|
-
const
|
|
696
|
-
const
|
|
694
|
+
const rating = data.score > 0 ? 'GOOD (π)' : 'BAD (π)';
|
|
695
|
+
const taskContext = (data.taskTitle || data.taskDescription).substring(0, 100);
|
|
696
|
+
const parts = [`[USER RATING: ${rating}] Task: "${taskContext}"`];
|
|
697
|
+
if (data.comment) {
|
|
698
|
+
parts.push(`User comment: "${data.comment}"`);
|
|
699
|
+
}
|
|
700
|
+
const memoryText = parts.join('. ');
|
|
697
701
|
try {
|
|
698
702
|
console.log(`[RatingβMem0] Storing rating for task "${data.taskTitle}" (${data.score > 0 ? 'π' : 'π'})`);
|
|
699
703
|
const { callMem0AddMemory } = await import('../mcp/setup.js');
|