open-agents-ai 0.180.0 → 0.181.0
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 +24 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51373,10 +51373,32 @@ var init_stream_renderer = __esm({
|
|
|
51373
51373
|
* Feed a streamed token into the renderer.
|
|
51374
51374
|
* Tokens are buffered per-line and flushed with syntax highlighting.
|
|
51375
51375
|
*/
|
|
51376
|
+
/** Track whether we've shown the thinking indicator */
|
|
51377
|
+
thinkingIndicatorShown = false;
|
|
51378
|
+
thinkingTokenCount = 0;
|
|
51376
51379
|
write(token, kind) {
|
|
51377
51380
|
if (!this.enabled)
|
|
51378
51381
|
return;
|
|
51379
51382
|
this.tokenCount++;
|
|
51383
|
+
if (kind === "thinking") {
|
|
51384
|
+
this.thinkingTokenCount++;
|
|
51385
|
+
if (!this.thinkingIndicatorShown) {
|
|
51386
|
+
this.thinkingIndicatorShown = true;
|
|
51387
|
+
this.writeRaw(dimText(" \u23BF ") + dimItalic("thinking...") + "\n");
|
|
51388
|
+
this.lineStarted = false;
|
|
51389
|
+
}
|
|
51390
|
+
if (this.thinkingTokenCount % 50 === 0) {
|
|
51391
|
+
process.stdout.write(`\x1B[1A\x1B[2K${dimText(" \u23BF ")}${dimItalic(`thinking... (${this.thinkingTokenCount} tokens)`)}
|
|
51392
|
+
`);
|
|
51393
|
+
}
|
|
51394
|
+
return;
|
|
51395
|
+
}
|
|
51396
|
+
if (this.thinkingIndicatorShown && kind === "content") {
|
|
51397
|
+
this.thinkingIndicatorShown = false;
|
|
51398
|
+
process.stdout.write(`\x1B[1A\x1B[2K${dimText(" \u23BF ")}${dimItalic(`thought for ${this.thinkingTokenCount} tokens`)}
|
|
51399
|
+
`);
|
|
51400
|
+
this.thinkingTokenCount = 0;
|
|
51401
|
+
}
|
|
51380
51402
|
if (kind === "tool_args" && !this.inToolArgs) {
|
|
51381
51403
|
this.flushPartial(kind);
|
|
51382
51404
|
this.inToolArgs = true;
|
|
@@ -57427,8 +57449,8 @@ var init_status_bar = __esm({
|
|
|
57427
57449
|
/** Mouse tracking state — disabled when idle to allow native text selection */
|
|
57428
57450
|
_mouseTrackingEnabled = true;
|
|
57429
57451
|
_mouseIdleTimer = null;
|
|
57430
|
-
static MOUSE_IDLE_MS =
|
|
57431
|
-
// disable after
|
|
57452
|
+
static MOUSE_IDLE_MS = 500;
|
|
57453
|
+
// disable after 0.5s idle — fast enough for text selection
|
|
57432
57454
|
/** Text selection state — tracks click-drag selection for copy */
|
|
57433
57455
|
_textSelection = new TextSelection({
|
|
57434
57456
|
getContentLines: () => this._contentLines,
|
package/package.json
CHANGED