open-agents-ai 0.187.50 → 0.187.52
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 +12 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -260817,7 +260817,8 @@ TASK: ${task}` : task;
|
|
|
260817
260817
|
{ role: "user", content: userContent }
|
|
260818
260818
|
];
|
|
260819
260819
|
let toolDefs = await this.buildToolDefinitions();
|
|
260820
|
-
this.
|
|
260820
|
+
const baseInstructions = getSystemPromptForTier(this.options.modelTier);
|
|
260821
|
+
this.checkPromptToolParity(baseInstructions, toolDefs);
|
|
260821
260822
|
if (this._loopBlockedTools?.size) {
|
|
260822
260823
|
const blocked = this._loopBlockedTools;
|
|
260823
260824
|
const before = toolDefs.length;
|
|
@@ -290056,7 +290057,7 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
290056
290057
|
const rows = process.stdout.rows ?? 24;
|
|
290057
290058
|
const yellow = 178;
|
|
290058
290059
|
const contentTop = 4;
|
|
290059
|
-
const contentBottom = rows -
|
|
290060
|
+
const contentBottom = rows - 5;
|
|
290060
290061
|
const contentHeight = Math.max(5, contentBottom - contentTop + 1);
|
|
290061
290062
|
let buf = "\x1B[?2026h\x1B7\x1B[?25l";
|
|
290062
290063
|
for (let r2 = contentTop; r2 <= contentBottom; r2++) {
|
|
@@ -290130,7 +290131,7 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
290130
290131
|
const cols = process.stdout.columns ?? 80;
|
|
290131
290132
|
const rows = process.stdout.rows ?? 24;
|
|
290132
290133
|
const contentTop = 4;
|
|
290133
|
-
const contentBottom = rows -
|
|
290134
|
+
const contentBottom = rows - 5;
|
|
290134
290135
|
let buf = "\x1B7";
|
|
290135
290136
|
for (let r2 = contentTop; r2 <= contentBottom; r2++) {
|
|
290136
290137
|
buf += `\x1B[${r2};1H\x1B[48;5;0m\x1B[2K`;
|
|
@@ -307782,6 +307783,7 @@ ${entry.fullContent}`
|
|
|
307782
307783
|
streamTextBuffer = "";
|
|
307783
307784
|
if (chatText.length > 10) {
|
|
307784
307785
|
voice.speak(chatText);
|
|
307786
|
+
voice._spokenStreamText = true;
|
|
307785
307787
|
}
|
|
307786
307788
|
}
|
|
307787
307789
|
break;
|
|
@@ -307962,9 +307964,13 @@ When done, either call task_complete with your answer, or use FINAL_VAR(variable
|
|
|
307962
307964
|
}
|
|
307963
307965
|
}
|
|
307964
307966
|
if (voice?.enabled && result.summary) {
|
|
307965
|
-
const
|
|
307966
|
-
|
|
307967
|
-
|
|
307967
|
+
const alreadySpoken = voice._spokenStreamText;
|
|
307968
|
+
voice._spokenStreamText = false;
|
|
307969
|
+
if (!alreadySpoken) {
|
|
307970
|
+
const emoFinal = emotionEngine?.getState();
|
|
307971
|
+
const emoCtxFinal = emoFinal ? { valence: emoFinal.valence, arousal: emoFinal.arousal, label: emoFinal.label, emoji: emoFinal.emoji } : void 0;
|
|
307972
|
+
voice.speak(describeTaskComplete(result.summary, true, vLevel), emoCtxFinal);
|
|
307973
|
+
}
|
|
307968
307974
|
}
|
|
307969
307975
|
} else {
|
|
307970
307976
|
renderTaskIncomplete(result.turns, result.toolCalls, result.durationMs, tokens);
|
package/package.json
CHANGED