open-agents-ai 0.10.2 → 0.10.3
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.
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9565,8 +9565,15 @@ function startTask(task, config, repoRoot, voice) {
|
|
|
9565
9565
|
const promise = runner.run(task, `Working directory: ${repoRoot}`).then((result) => {
|
|
9566
9566
|
if (result.completed) {
|
|
9567
9567
|
renderTaskComplete(result.summary, result.turns, result.toolCalls, result.durationMs);
|
|
9568
|
+
if (voice?.enabled && result.summary) {
|
|
9569
|
+
const ttsText = result.summary.length > 300 ? result.summary.slice(0, 300) + "..." : result.summary;
|
|
9570
|
+
voice.speak(`Task complete. ${ttsText}`);
|
|
9571
|
+
}
|
|
9568
9572
|
} else {
|
|
9569
9573
|
renderTaskIncomplete(result.turns, result.toolCalls, result.durationMs);
|
|
9574
|
+
if (voice?.enabled) {
|
|
9575
|
+
voice.speak("Task did not complete.");
|
|
9576
|
+
}
|
|
9570
9577
|
}
|
|
9571
9578
|
try {
|
|
9572
9579
|
saveSession(repoRoot, {
|
package/package.json
CHANGED