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 sentiment = data.score > 0 ? 'approved (thumbs up)' : 'rejected (thumbs down)';
695
- const commentPart = data.comment ? ` User feedback: "${data.comment}"` : '';
696
- const memoryText = `User ${sentiment} task "${data.taskTitle}".${commentPart} Task description: ${data.taskDescription.substring(0, 200)}`;
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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuna-agent",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "Tuna Agent - Run AI coding tasks on your machine",
5
5
  "bin": {
6
6
  "tuna-agent": "dist/cli/index.js"