tuna-agent 0.1.89 → 0.1.91
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.
|
@@ -224,7 +224,7 @@ export class ClaudeCodeAdapter {
|
|
|
224
224
|
prompt: userMessage,
|
|
225
225
|
cwd,
|
|
226
226
|
outputFormat: 'stream-json',
|
|
227
|
-
includePartialMessages:
|
|
227
|
+
includePartialMessages: true,
|
|
228
228
|
maxTurns: 200,
|
|
229
229
|
resumeSessionId: round > 0 ? sessionId : undefined,
|
|
230
230
|
signal,
|
|
@@ -312,7 +312,7 @@ export async function handleGenerateScript(ws, code, taskId, idea, topic, style,
|
|
|
312
312
|
cwd: CONTENT_CREATOR_DIR,
|
|
313
313
|
maxTurns: 4,
|
|
314
314
|
outputFormat: 'stream-json',
|
|
315
|
-
includePartialMessages:
|
|
315
|
+
includePartialMessages: true,
|
|
316
316
|
timeoutMs: 180000,
|
|
317
317
|
onStreamLine: (data) => {
|
|
318
318
|
if (streamChunks < 5) {
|
package/dist/daemon/index.js
CHANGED
|
@@ -784,7 +784,7 @@ ${skillContent.slice(0, 15000)}`;
|
|
|
784
784
|
cwd,
|
|
785
785
|
allowedTools: ['Read', 'Edit', 'Write', 'Bash', 'Glob', 'Grep'],
|
|
786
786
|
outputFormat: 'stream-json',
|
|
787
|
-
includePartialMessages:
|
|
787
|
+
includePartialMessages: true,
|
|
788
788
|
agentTeam: true,
|
|
789
789
|
maxTurns: 200,
|
|
790
790
|
resumeSessionId: sessionId,
|
|
@@ -878,7 +878,16 @@ ${skillContent.slice(0, 15000)}`;
|
|
|
878
878
|
startedAt: firstChunkIso || undefined,
|
|
879
879
|
});
|
|
880
880
|
}
|
|
881
|
-
|
|
881
|
+
else if (resultText.length > 0 && messageCount === 0) {
|
|
882
|
+
// No stream events but CLI returned a result (e.g. resumed session
|
|
883
|
+
// where --verbose doesn't emit stream_event entries)
|
|
884
|
+
console.log(`[Daemon] No stream events but got result (${resultText.length} chars) — sending as message`);
|
|
885
|
+
wsClient.sendPMMessage(taskId, {
|
|
886
|
+
sender: 'pm',
|
|
887
|
+
content: simplifyMarkdown(resultText),
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
lastResumeOutput = turnAccumulatedText.trim() || resultText || lastResumeOutput;
|
|
882
891
|
if (result.isError) {
|
|
883
892
|
wsClient.sendTaskFailed(taskId, result.result);
|
|
884
893
|
return;
|
package/dist/pm/planner.js
CHANGED
|
@@ -142,7 +142,7 @@ export async function planTask(task, onProgress, signal, onTextChunk, inputFiles
|
|
|
142
142
|
systemPrompt,
|
|
143
143
|
maxTurns,
|
|
144
144
|
outputFormat: 'stream-json',
|
|
145
|
-
includePartialMessages:
|
|
145
|
+
includePartialMessages: true,
|
|
146
146
|
onStreamLine: createPlanningStreamHandler(task.id, onProgress, onTextChunk),
|
|
147
147
|
signal,
|
|
148
148
|
inputFiles,
|
|
@@ -284,7 +284,7 @@ User message: ${userMessage}`;
|
|
|
284
284
|
maxTurns: 1,
|
|
285
285
|
lightweight: true,
|
|
286
286
|
outputFormat: 'stream-json',
|
|
287
|
-
includePartialMessages:
|
|
287
|
+
includePartialMessages: true,
|
|
288
288
|
inputFiles,
|
|
289
289
|
onStreamLine: onTextChunk ? (data) => {
|
|
290
290
|
// Parse stream_event → content_block_delta for real token streaming
|