@botbotgo/agent-harness 0.0.383 → 0.0.385

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.
@@ -1,2 +1,2 @@
1
- export declare const AGENT_HARNESS_VERSION = "0.0.383";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.385";
2
2
  export declare const AGENT_HARNESS_RELEASE_DATE = "2026-05-01";
@@ -1,2 +1,2 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.383";
1
+ export const AGENT_HARNESS_VERSION = "0.0.385";
2
2
  export const AGENT_HARNESS_RELEASE_DATE = "2026-05-01";
@@ -74,7 +74,7 @@ function renderMarkdownTableAsList(header, body) {
74
74
  .join("\n\n");
75
75
  }
76
76
  export function markdownToHtml(markdown) {
77
- const normalized = markdown.replace(/\r\n/g, "\n");
77
+ const normalized = markdown.replace(/\r\n/g, "\n").replace(/<br\s*\/?>/gi, "\n");
78
78
  const blocks = normalized.split(/\n\n+/);
79
79
  const html = [];
80
80
  for (const block of blocks) {
@@ -114,10 +114,11 @@ export function markdownToHtml(markdown) {
114
114
  }
115
115
  export function markdownToConsole(markdown) {
116
116
  if (!markdown.includes("\n")) {
117
- return renderInlineConsoleMarkdown(markdown.trim());
117
+ return renderInlineConsoleMarkdown(markdown.replace(/<br\s*\/?>/gi, "\n").trim());
118
118
  }
119
119
  const normalized = markdown
120
120
  .replace(/\r\n/g, "\n")
121
+ .replace(/<br\s*\/?>/gi, "\n")
121
122
  .replace(/^(#{1,6}\s+.+)$/gm, "\n$1\n")
122
123
  .replace(/^(\s*[-*_=])(?:\s*\1){2,}\s*$/gm, "\n$&\n");
123
124
  const blocks = normalized.split(/\n\n+/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.383",
3
+ "version": "0.0.385",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",