open-agents-ai 0.187.87 → 0.187.88
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 +15 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -279500,27 +279500,28 @@ var init_status_bar = __esm({
|
|
|
279500
279500
|
return this._cohereActive;
|
|
279501
279501
|
}
|
|
279502
279502
|
// ── Mouse tracking management ──────────────────────────────────────
|
|
279503
|
-
//
|
|
279504
|
-
//
|
|
279505
|
-
//
|
|
279506
|
-
//
|
|
279507
|
-
|
|
279503
|
+
// Uses ?1000h (normal tracking) instead of ?1002h (button-event tracking)
|
|
279504
|
+
// so the terminal handles text selection natively. ?1000h reports:
|
|
279505
|
+
// - Button press + release (header buttons, click-to-select)
|
|
279506
|
+
// - Scroll wheel events (content scrolling)
|
|
279507
|
+
// But does NOT capture drag/motion — the terminal handles that as
|
|
279508
|
+
// native text selection. Users can Ctrl+Shift+C to copy normally.
|
|
279509
|
+
/** Enable mouse tracking (clicks + scroll only — native selection works) */
|
|
279508
279510
|
enableMouseTracking() {
|
|
279509
279511
|
if (this._mouseTrackingEnabled || isOverlayActive())
|
|
279510
279512
|
return;
|
|
279511
279513
|
this._mouseTrackingEnabled = true;
|
|
279512
279514
|
if (process.stdout.isTTY) {
|
|
279513
|
-
this._trueStdoutWrite.call(process.stdout, "\x1B[?
|
|
279515
|
+
this._trueStdoutWrite.call(process.stdout, "\x1B[?1000h\x1B[?1006h");
|
|
279514
279516
|
}
|
|
279515
279517
|
}
|
|
279516
|
-
/** Disable mouse tracking entirely (only for overlay transitions + exit).
|
|
279517
|
-
* NOT called on idle — mouse stays active for clicks, scroll, buttons. */
|
|
279518
|
+
/** Disable mouse tracking entirely (only for overlay transitions + exit). */
|
|
279518
279519
|
disableMouseTracking() {
|
|
279519
279520
|
if (!this._mouseTrackingEnabled || isOverlayActive())
|
|
279520
279521
|
return;
|
|
279521
279522
|
this._mouseTrackingEnabled = false;
|
|
279522
279523
|
if (process.stdout.isTTY) {
|
|
279523
|
-
this._trueStdoutWrite.call(process.stdout, "\x1B[?
|
|
279524
|
+
this._trueStdoutWrite.call(process.stdout, "\x1B[?1000l\x1B[?1006l");
|
|
279524
279525
|
}
|
|
279525
279526
|
}
|
|
279526
279527
|
/** Schedule mouse tracking disable after idle timeout.
|
|
@@ -281185,7 +281186,7 @@ ${tuiBgSeq()}`);
|
|
|
281185
281186
|
function cleanup() {
|
|
281186
281187
|
stdin.removeListener("data", onData);
|
|
281187
281188
|
process.stdout.removeListener("resize", onResize);
|
|
281188
|
-
overlayWrite("\x1B[?1003l\x1B[?1002l\x1B[?1006l\x1B[?1049l\x1B[?25h");
|
|
281189
|
+
overlayWrite("\x1B[?1003l\x1B[?1002l\x1B[?1000l\x1B[?1006l\x1B[?1049l\x1B[?25h");
|
|
281189
281190
|
leaveOverlay();
|
|
281190
281191
|
if (typeof stdin.setRawMode === "function") {
|
|
281191
281192
|
stdin.setRawMode(hadRawMode ?? false);
|
|
@@ -288842,7 +288843,7 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
|
|
|
288842
288843
|
}
|
|
288843
288844
|
}
|
|
288844
288845
|
if (process.stdout.isTTY) {
|
|
288845
|
-
process.stdout.write("\x1B[?
|
|
288846
|
+
process.stdout.write("\x1B[?1000h\x1B[?1006h");
|
|
288846
288847
|
}
|
|
288847
288848
|
} catch (err) {
|
|
288848
288849
|
renderWarning(` Could not install system build deps: ${err instanceof Error ? err.message : String(err)}`);
|
|
@@ -295359,7 +295360,7 @@ async function showExposeDashboard(gateway, rl, ctx3) {
|
|
|
295359
295360
|
stopped = true;
|
|
295360
295361
|
process.stdin.removeListener("data", onData);
|
|
295361
295362
|
if (process.stdout.isTTY) {
|
|
295362
|
-
process.stdout.write("\x1B[?
|
|
295363
|
+
process.stdout.write("\x1B[?1000h\x1B[?1006h");
|
|
295363
295364
|
}
|
|
295364
295365
|
};
|
|
295365
295366
|
const origResolve = resolve39;
|
|
@@ -309783,7 +309784,7 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
309783
309784
|
process.stdin.setRawMode(true);
|
|
309784
309785
|
}
|
|
309785
309786
|
if (process.stdout.isTTY) {
|
|
309786
|
-
process.stdout.write("\x1B[?
|
|
309787
|
+
process.stdout.write("\x1B[?1000h\x1B[?1006h");
|
|
309787
309788
|
}
|
|
309788
309789
|
function persistHistoryLine(line) {
|
|
309789
309790
|
if (!line.trim())
|
|
@@ -311866,7 +311867,7 @@ ${result.content.slice(0, 2e3)}${result.content.length > 2e3 ? "\n[truncated]" :
|
|
|
311866
311867
|
sessionSudoPassword = input;
|
|
311867
311868
|
activeTask.runner.setSudoPassword(input);
|
|
311868
311869
|
if (process.stdout.isTTY) {
|
|
311869
|
-
process.stdout.write("\x1B[?
|
|
311870
|
+
process.stdout.write("\x1B[?1000h\x1B[?1006h");
|
|
311870
311871
|
}
|
|
311871
311872
|
statusBar.setInputStateProvider(() => ({
|
|
311872
311873
|
line: rl.line ?? "",
|
package/package.json
CHANGED