open-agents-ai 0.187.55 → 0.187.57
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 +16 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -263605,12 +263605,23 @@ ${transcript}`
|
|
|
263605
263605
|
"val_bpb",
|
|
263606
263606
|
"best_val"
|
|
263607
263607
|
]);
|
|
263608
|
+
for (const tool of this.tools.values()) {
|
|
263609
|
+
const props = tool.parameters?.properties;
|
|
263610
|
+
if (props && typeof props === "object") {
|
|
263611
|
+
for (const paramName of Object.keys(props)) {
|
|
263612
|
+
IGNORE_LIST.add(paramName);
|
|
263613
|
+
}
|
|
263614
|
+
}
|
|
263615
|
+
}
|
|
263616
|
+
const SUBCOMMAND_PATTERNS = /^(join|leave|send|list|read|block|unblock|register|unregister|discover|invoke|retrieve|store|create|set|get|remote|priority|budget|pricing|metering|wallet|payment|inference|room|peer|target|dry)_/;
|
|
263608
263617
|
const missingTools = [];
|
|
263609
263618
|
for (const name10 of contextualNames) {
|
|
263610
263619
|
if (registeredNames.has(name10))
|
|
263611
263620
|
continue;
|
|
263612
263621
|
if (IGNORE_LIST.has(name10))
|
|
263613
263622
|
continue;
|
|
263623
|
+
if (SUBCOMMAND_PATTERNS.test(name10))
|
|
263624
|
+
continue;
|
|
263614
263625
|
let isPartial = false;
|
|
263615
263626
|
for (const reg of registeredNames) {
|
|
263616
263627
|
if (reg.includes(name10) || name10.includes(reg)) {
|
|
@@ -299529,8 +299540,8 @@ var init_status_bar = __esm({
|
|
|
299529
299540
|
/** Slow refresh timer for monitoring bar when braille spinner is off */
|
|
299530
299541
|
_monitorTimer = null;
|
|
299531
299542
|
/** Current dynamic footer height (min 5: buffer + topSep + 1 input line + bottomSep + metrics) */
|
|
299532
|
-
_currentFooterHeight =
|
|
299533
|
-
// input(1) +
|
|
299543
|
+
_currentFooterHeight = 4;
|
|
299544
|
+
// box-top(1) + input(1) + box-bottom(1) + metrics(1)
|
|
299534
299545
|
/** Timestamp when streaming started (for token rate calculation) */
|
|
299535
299546
|
_streamStartTime = 0;
|
|
299536
299547
|
/** Current package version (shown in metrics row, rightmost) */
|
|
@@ -311198,7 +311209,7 @@ ${result.text}`;
|
|
|
311198
311209
|
` - "On it, pulling in that dependency first"`,
|
|
311199
311210
|
` - "Yep, let me rethink the caching layer"`,
|
|
311200
311211
|
` - "Makes sense, I'll refactor that into a separate module"`,
|
|
311201
|
-
`- summary: expanded instruction for the main agent (e.g. "
|
|
311212
|
+
`- summary: expanded instruction for the main agent (e.g. "The user wants X instead of Y. Adjust your approach to prioritize Z. Specifically, they are asking you to...")`
|
|
311202
311213
|
].join("\n");
|
|
311203
311214
|
const result = await steerAgent.run(steerPrompt, "Steering sub-agent \u2014 interpret user input and produce instruction.");
|
|
311204
311215
|
const STEER_FALLBACKS = [
|
|
@@ -311215,7 +311226,7 @@ ${result.text}`;
|
|
|
311215
311226
|
];
|
|
311216
311227
|
const fbIdx = Math.floor(Math.random() * STEER_FALLBACKS.length);
|
|
311217
311228
|
let acknowledgment = STEER_FALLBACKS[fbIdx];
|
|
311218
|
-
let steering =
|
|
311229
|
+
let steering = input;
|
|
311219
311230
|
try {
|
|
311220
311231
|
const parsed = JSON.parse(result.summary || "{}");
|
|
311221
311232
|
if (parsed.acknowledgment)
|
|
@@ -311228,7 +311239,7 @@ ${result.text}`;
|
|
|
311228
311239
|
if (ackMatch)
|
|
311229
311240
|
acknowledgment = ackMatch[1].trim();
|
|
311230
311241
|
if (raw.length > 10)
|
|
311231
|
-
steering =
|
|
311242
|
+
steering = raw;
|
|
311232
311243
|
}
|
|
311233
311244
|
if (voiceEngine?.enabled) {
|
|
311234
311245
|
writeContent(() => renderVoiceText(acknowledgment));
|
package/package.json
CHANGED