tuna-agent 0.1.24 → 0.1.25
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.
|
@@ -206,6 +206,9 @@ export class ClaudeCodeAdapter {
|
|
|
206
206
|
}
|
|
207
207
|
// Track last output for reflection
|
|
208
208
|
lastTaskOutput = turnAccumulatedText.trim();
|
|
209
|
+
if (lastTaskOutput) {
|
|
210
|
+
console.log(`[Reflection] Captured ${lastTaskOutput.length} chars of task output for reflection`);
|
|
211
|
+
}
|
|
209
212
|
// Send finalized message for the last turn's remaining text
|
|
210
213
|
if (turnAccumulatedText.trim()) {
|
|
211
214
|
ws.sendPMMessage(task.id, {
|
|
@@ -677,7 +680,7 @@ export class ClaudeCodeAdapter {
|
|
|
677
680
|
return;
|
|
678
681
|
try {
|
|
679
682
|
// Step 1: Generate AI-powered reflection via Ollama
|
|
680
|
-
console.log(`[Reflection] Generating AI reflection for task ${task.id} (${status})
|
|
683
|
+
console.log(`[Reflection] Generating AI reflection for task ${task.id} (${status}), input: ${resultSummary.substring(0, 150)}...`);
|
|
681
684
|
const { callMem0Reflect, callMem0AddMemory } = await import('../mcp/setup.js');
|
|
682
685
|
const aiReflection = await callMem0Reflect(task.description, resultSummary, status);
|
|
683
686
|
if (!aiReflection) {
|