open-agents-ai 0.138.34 → 0.138.36
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 +14 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -54053,10 +54053,23 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
54053
54053
|
statusBar.scrollContentDown(lines);
|
|
54054
54054
|
});
|
|
54055
54055
|
process.stdin.pipe(mouseFilter);
|
|
54056
|
+
const { PassThrough } = await import("node:stream");
|
|
54057
|
+
const rlOutput = new PassThrough();
|
|
54058
|
+
rlOutput.on("data", (chunk) => {
|
|
54059
|
+
if (!statusBar.isActive) {
|
|
54060
|
+
process.stdout.write(chunk);
|
|
54061
|
+
return;
|
|
54062
|
+
}
|
|
54063
|
+
if (statusBar.isStreaming) {
|
|
54064
|
+
return;
|
|
54065
|
+
}
|
|
54066
|
+
process.stdout.write(chunk);
|
|
54067
|
+
});
|
|
54056
54068
|
const rl = readline2.createInterface({
|
|
54057
54069
|
input: mouseFilter,
|
|
54058
54070
|
// filtered stream, NOT raw stdin
|
|
54059
|
-
output:
|
|
54071
|
+
output: rlOutput,
|
|
54072
|
+
// forced to input row, NOT raw stdout
|
|
54060
54073
|
prompt: idlePrompt,
|
|
54061
54074
|
terminal: true,
|
|
54062
54075
|
historySize: MAX_HISTORY_LINES,
|
package/package.json
CHANGED