open-agents-ai 0.161.0 → 0.162.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 +11 -34
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -57557,12 +57557,19 @@ var init_status_bar = __esm({
|
|
|
57557
57557
|
/** Schedule mouse tracking disable after idle timeout.
|
|
57558
57558
|
* Called after each content write or stream end. Cancelled by scroll/stream start.
|
|
57559
57559
|
*
|
|
57560
|
-
*
|
|
57561
|
-
*
|
|
57562
|
-
*
|
|
57563
|
-
*
|
|
57560
|
+
* When mouse tracking is OFF, the terminal handles text selection natively —
|
|
57561
|
+
* user can click-drag to select and Ctrl+Shift+C to copy.
|
|
57562
|
+
* Mouse tracking re-enables on scroll, stream start, or header/tab area mouse motion.
|
|
57563
|
+
*
|
|
57564
|
+
* This is the v0.138.67 behavior that worked: mouse on during activity, off during idle.
|
|
57564
57565
|
*/
|
|
57565
57566
|
scheduleMouseIdle() {
|
|
57567
|
+
if (this._mouseIdleTimer)
|
|
57568
|
+
clearTimeout(this._mouseIdleTimer);
|
|
57569
|
+
this._mouseIdleTimer = setTimeout(() => {
|
|
57570
|
+
this._mouseIdleTimer = null;
|
|
57571
|
+
this.disableMouseTracking();
|
|
57572
|
+
}, _StatusBar.MOUSE_IDLE_MS);
|
|
57566
57573
|
}
|
|
57567
57574
|
/** Cancel mouse idle timer (user is actively scrolling or streaming started) */
|
|
57568
57575
|
cancelMouseIdle() {
|
|
@@ -57624,10 +57631,6 @@ var init_status_bar = __esm({
|
|
|
57624
57631
|
const footerStart = rows - fh - tabBarH + 1;
|
|
57625
57632
|
if (row >= footerStart)
|
|
57626
57633
|
return;
|
|
57627
|
-
if (type === "press") {
|
|
57628
|
-
this.disableMouseTracking();
|
|
57629
|
-
this._scheduleMouseReEnable();
|
|
57630
|
-
}
|
|
57631
57634
|
}
|
|
57632
57635
|
/** Copy current selection to clipboard. Returns true if copied. */
|
|
57633
57636
|
copySelection() {
|
|
@@ -57662,26 +57665,6 @@ var init_status_bar = __esm({
|
|
|
57662
57665
|
this.renderFooterAndPositionInput();
|
|
57663
57666
|
}, 1500);
|
|
57664
57667
|
}
|
|
57665
|
-
/** Timer for re-enabling mouse tracking after content area click */
|
|
57666
|
-
_mouseReEnableTimer = null;
|
|
57667
|
-
/** Schedule re-enabling mouse tracking after content area selection.
|
|
57668
|
-
* Called when user clicks in content area (which disables tracking). */
|
|
57669
|
-
_scheduleMouseReEnable() {
|
|
57670
|
-
if (this._mouseReEnableTimer)
|
|
57671
|
-
clearTimeout(this._mouseReEnableTimer);
|
|
57672
|
-
this._mouseReEnableTimer = setTimeout(() => {
|
|
57673
|
-
this._mouseReEnableTimer = null;
|
|
57674
|
-
this.enableMouseTracking();
|
|
57675
|
-
}, 5e3);
|
|
57676
|
-
}
|
|
57677
|
-
/** Re-enable mouse tracking immediately (called from keyboard handler) */
|
|
57678
|
-
reEnableMouseTracking() {
|
|
57679
|
-
if (this._mouseReEnableTimer) {
|
|
57680
|
-
clearTimeout(this._mouseReEnableTimer);
|
|
57681
|
-
this._mouseReEnableTimer = null;
|
|
57682
|
-
}
|
|
57683
|
-
this.enableMouseTracking();
|
|
57684
|
-
}
|
|
57685
57668
|
// ── Agent View Management (WO-NA1) ────────────────────────────
|
|
57686
57669
|
/** Register a new sub-agent view with its own content buffer */
|
|
57687
57670
|
registerAgentView(id, label, type, taskSummary) {
|
|
@@ -58787,10 +58770,6 @@ ${CONTENT_BG_SEQ}`);
|
|
|
58787
58770
|
if (key?.name === "escape" || s === "\x1B") {
|
|
58788
58771
|
sawEscape = true;
|
|
58789
58772
|
sawEscapeTime = Date.now();
|
|
58790
|
-
if (self._mouseReEnableTimer && s.length === 1) {
|
|
58791
|
-
self.reEnableMouseTracking();
|
|
58792
|
-
return;
|
|
58793
|
-
}
|
|
58794
58773
|
if (onEscape && s.length === 1)
|
|
58795
58774
|
onEscape();
|
|
58796
58775
|
return;
|
|
@@ -58871,8 +58850,6 @@ ${CONTENT_BG_SEQ}`);
|
|
|
58871
58850
|
self.renderFooterAndPositionInput();
|
|
58872
58851
|
}
|
|
58873
58852
|
}
|
|
58874
|
-
if (self._mouseReEnableTimer)
|
|
58875
|
-
self.reEnableMouseTracking();
|
|
58876
58853
|
return origTtyWrite(s, key);
|
|
58877
58854
|
} catch {
|
|
58878
58855
|
}
|
package/package.json
CHANGED