open-agents-ai 0.187.131 → 0.187.132
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 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -280504,6 +280504,17 @@ var init_status_bar = __esm({
|
|
|
280504
280504
|
_trueStdoutWrite = process.stdout.write.bind(process.stdout);
|
|
280505
280505
|
/** Only buffer actual content lines (not footer/scroll-region maintenance) */
|
|
280506
280506
|
_bufferContent = false;
|
|
280507
|
+
/** Temporarily suppress content-line buffering AND bg injection.
|
|
280508
|
+
* Used by overlay-leave callbacks to write UI chrome (banner, header)
|
|
280509
|
+
* through the bufferedWrite layer without polluting _contentLines or
|
|
280510
|
+
* injecting CONTENT_BG into non-content output. */
|
|
280511
|
+
_suspendContentLayer = false;
|
|
280512
|
+
suspendContentLayer() {
|
|
280513
|
+
this._suspendContentLayer = true;
|
|
280514
|
+
}
|
|
280515
|
+
resumeContentLayer() {
|
|
280516
|
+
this._suspendContentLayer = false;
|
|
280517
|
+
}
|
|
280507
280518
|
/** Write directly to the terminal, bypassing content bg/scrollback monkey-patch.
|
|
280508
280519
|
* ALL footer/input/braille rendering MUST use this, never process.stdout.write.
|
|
280509
280520
|
* Respects overlay isolation — when tuiSelect/dropPanel is on alt screen,
|
|
@@ -280539,6 +280550,9 @@ var init_status_bar = __esm({
|
|
|
280539
280550
|
const origBound = this._trueStdoutWrite;
|
|
280540
280551
|
const self2 = this;
|
|
280541
280552
|
const bufferedWrite = function(chunk, ...args) {
|
|
280553
|
+
if (self2._suspendContentLayer) {
|
|
280554
|
+
return origBound.call(process.stdout, chunk, ...args);
|
|
280555
|
+
}
|
|
280542
280556
|
let text;
|
|
280543
280557
|
if (typeof chunk === "string") text = chunk;
|
|
280544
280558
|
else if (Buffer.isBuffer(chunk)) text = chunk.toString();
|
|
@@ -309935,7 +309949,9 @@ ${opts.systemPromptAddition}` : `Working directory: ${repoRoot}`;
|
|
|
309935
309949
|
});
|
|
309936
309950
|
const { onOverlayLeave: onOverlayLeave2 } = await Promise.resolve().then(() => (init_overlay_lock(), overlay_lock_exports));
|
|
309937
309951
|
onOverlayLeave2(() => {
|
|
309952
|
+
statusBar.suspendContentLayer();
|
|
309938
309953
|
banner.renderCurrentFrame();
|
|
309954
|
+
statusBar.resumeContentLayer();
|
|
309939
309955
|
statusBar.disableMouseTracking();
|
|
309940
309956
|
statusBar.enableMouseTracking();
|
|
309941
309957
|
if (statusBar.isActive) {
|
package/package.json
CHANGED