@arcreflex/agent-transcripts 0.1.16 → 0.1.17
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/package.json +1 -1
- package/src/render-html.ts +12 -10
package/package.json
CHANGED
package/src/render-html.ts
CHANGED
|
@@ -304,23 +304,25 @@ main {
|
|
|
304
304
|
color: var(--fg);
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
/* Shiki
|
|
308
|
-
.
|
|
309
|
-
|
|
307
|
+
/* Markdown-highlighted content (Shiki renders as <pre>, but this is prose) */
|
|
308
|
+
.markdown-body pre {
|
|
309
|
+
white-space: pre-wrap;
|
|
310
|
+
overflow-wrap: break-word;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.markdown-body .shiki {
|
|
310
314
|
background: transparent !important;
|
|
311
315
|
border: none;
|
|
312
316
|
padding: 0;
|
|
313
317
|
margin: 0;
|
|
314
318
|
}
|
|
315
319
|
|
|
316
|
-
.
|
|
317
|
-
.thinking .shiki span {
|
|
320
|
+
.markdown-body .shiki span {
|
|
318
321
|
color: var(--shiki-light);
|
|
319
322
|
}
|
|
320
323
|
|
|
321
324
|
@media (prefers-color-scheme: dark) {
|
|
322
|
-
.
|
|
323
|
-
.thinking .shiki span {
|
|
325
|
+
.markdown-body .shiki span {
|
|
324
326
|
color: var(--shiki-dark);
|
|
325
327
|
}
|
|
326
328
|
}
|
|
@@ -755,7 +757,7 @@ async function renderMessage(
|
|
|
755
757
|
</div>
|
|
756
758
|
${msg.rawJson ? renderRawToggle() : ""}
|
|
757
759
|
<div class="rendered-view">
|
|
758
|
-
<div class="content">${await contentToHtml(msg.content)}</div>
|
|
760
|
+
<div class="content markdown-body">${await contentToHtml(msg.content)}</div>
|
|
759
761
|
</div>
|
|
760
762
|
${msg.rawJson ? `<div class="raw-view">${rawJson}</div>` : ""}
|
|
761
763
|
</div>`;
|
|
@@ -767,13 +769,13 @@ async function renderMessage(
|
|
|
767
769
|
rendered += `
|
|
768
770
|
<details>
|
|
769
771
|
<summary>thinking...</summary>
|
|
770
|
-
<div class="thinking">${await contentToHtml(msg.thinking)}</div>
|
|
772
|
+
<div class="thinking markdown-body">${await contentToHtml(msg.thinking)}</div>
|
|
771
773
|
</details>`;
|
|
772
774
|
}
|
|
773
775
|
|
|
774
776
|
if (msg.content.trim()) {
|
|
775
777
|
rendered += `
|
|
776
|
-
<div class="content">${await contentToHtml(msg.content)}</div>`;
|
|
778
|
+
<div class="content markdown-body">${await contentToHtml(msg.content)}</div>`;
|
|
777
779
|
}
|
|
778
780
|
|
|
779
781
|
const header = ctx.showAssistantHeader
|