agent.libx.js 0.93.39 → 0.93.40
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/cli.js +9 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -8010,7 +8010,15 @@ var MarkdownStream = class {
|
|
|
8010
8010
|
}
|
|
8011
8011
|
/** Commit the in-progress line as-is (already on screen), emit any buffered table, and reset for next turn. */
|
|
8012
8012
|
flush() {
|
|
8013
|
-
|
|
8013
|
+
let out = "";
|
|
8014
|
+
if (this.tableBuf.length && this.buf && !this.inFence && isTableRow(this.buf)) {
|
|
8015
|
+
if (this.lineRows > 1) out += `\x1B[${this.lineRows - 1}A\r\x1B[J`;
|
|
8016
|
+
else if (this.lineRows === 1) out += "\r\x1B[K";
|
|
8017
|
+
this.tableBuf.push(this.buf);
|
|
8018
|
+
this.buf = "";
|
|
8019
|
+
this.lineRows = 0;
|
|
8020
|
+
}
|
|
8021
|
+
out += this.tableBuf.length ? this.flushTable() : "";
|
|
8014
8022
|
this.buf = "";
|
|
8015
8023
|
this.inFence = false;
|
|
8016
8024
|
this.lineRows = 0;
|