open-agents-ai 0.138.37 → 0.138.38
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 +17 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -53365,6 +53365,7 @@ ${entry.fullContent}`
|
|
|
53365
53365
|
streamTextBuffer = "";
|
|
53366
53366
|
if (!isNeovimActive()) {
|
|
53367
53367
|
if (stream?.enabled) {
|
|
53368
|
+
stream?.muteReadline?.();
|
|
53368
53369
|
if (statusBar?.isActive)
|
|
53369
53370
|
statusBar.beginContentWrite();
|
|
53370
53371
|
stream.renderer.onStreamStart();
|
|
@@ -53404,6 +53405,7 @@ ${entry.fullContent}`
|
|
|
53404
53405
|
stream.renderer.onStreamEnd();
|
|
53405
53406
|
if (statusBar?.isActive)
|
|
53406
53407
|
statusBar.endContentWrite();
|
|
53408
|
+
stream?.unmuteReadline?.();
|
|
53407
53409
|
}
|
|
53408
53410
|
if (config.verbose && streamDurationMs > 0) {
|
|
53409
53411
|
const streamChars = event.content?.length ?? 0;
|
|
@@ -54059,23 +54061,9 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
54059
54061
|
statusBar.scrollContentDown(lines);
|
|
54060
54062
|
});
|
|
54061
54063
|
process.stdin.pipe(mouseFilter);
|
|
54062
|
-
const { PassThrough } = await import("node:stream");
|
|
54063
|
-
const rlOutput = new PassThrough();
|
|
54064
|
-
rlOutput.on("data", (chunk) => {
|
|
54065
|
-
if (!statusBar.isActive) {
|
|
54066
|
-
process.stdout.write(chunk);
|
|
54067
|
-
return;
|
|
54068
|
-
}
|
|
54069
|
-
if (statusBar.isStreaming) {
|
|
54070
|
-
return;
|
|
54071
|
-
}
|
|
54072
|
-
process.stdout.write(chunk);
|
|
54073
|
-
});
|
|
54074
54064
|
const rl = readline2.createInterface({
|
|
54075
54065
|
input: mouseFilter,
|
|
54076
|
-
|
|
54077
|
-
output: rlOutput,
|
|
54078
|
-
// forced to input row, NOT raw stdout
|
|
54066
|
+
output: process.stdout,
|
|
54079
54067
|
prompt: idlePrompt,
|
|
54080
54068
|
terminal: true,
|
|
54081
54069
|
historySize: MAX_HISTORY_LINES,
|
|
@@ -55756,7 +55744,20 @@ Execute this skill now. Follow the behavioral guidance above.`;
|
|
|
55756
55744
|
statusBar.setProcessing(true);
|
|
55757
55745
|
const task = startTask(skillPrompt, currentConfig, repoRoot, voiceEngine, {
|
|
55758
55746
|
enabled: streamEnabled,
|
|
55759
|
-
renderer: streamRenderer
|
|
55747
|
+
renderer: streamRenderer,
|
|
55748
|
+
muteReadline: () => {
|
|
55749
|
+
if (rl.output) {
|
|
55750
|
+
rl._savedOutput = rl.output;
|
|
55751
|
+
rl.output = null;
|
|
55752
|
+
}
|
|
55753
|
+
},
|
|
55754
|
+
unmuteReadline: () => {
|
|
55755
|
+
if (rl._savedOutput) {
|
|
55756
|
+
rl.output = rl._savedOutput;
|
|
55757
|
+
delete rl._savedOutput;
|
|
55758
|
+
}
|
|
55759
|
+
showPrompt();
|
|
55760
|
+
}
|
|
55760
55761
|
}, {
|
|
55761
55762
|
contextStores,
|
|
55762
55763
|
taskMemoryStore: taskMemoryStore ?? void 0,
|
package/package.json
CHANGED