@oxecli/oxe 1.0.29 → 1.0.30
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/ui.js +4 -9
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -300,16 +300,11 @@ export function tickDuration(seconds) {
|
|
|
300
300
|
// ---------------------------------------------------------------------------
|
|
301
301
|
const FENCE_MARKER_RE = /`{3,}/g;
|
|
302
302
|
export function printAiChunk(chunk) {
|
|
303
|
-
//
|
|
304
|
-
//
|
|
305
|
-
|
|
306
|
-
const leading = chunk.match(/^\n+/)?.[0].length ?? 0;
|
|
307
|
-
const body = chunk.slice(leading);
|
|
308
|
-
if (!body)
|
|
303
|
+
// Streaming commits are slices of the model's exact text. Do not trim or
|
|
304
|
+
// append newlines here, otherwise paragraph breaks from the AI disappear.
|
|
305
|
+
if (!chunk)
|
|
309
306
|
return;
|
|
310
|
-
process.stdout.write(
|
|
311
|
-
if (/^```/m.test(body))
|
|
312
|
-
process.stdout.write("\n");
|
|
307
|
+
process.stdout.write(markdownToAnsi(chunk));
|
|
313
308
|
}
|
|
314
309
|
export function safeCommitPoint(text) {
|
|
315
310
|
let idx = text.lastIndexOf("\n\n");
|