casabot 1.1.7 → 1.1.8

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/tui/app.js CHANGED
@@ -4,14 +4,14 @@ import { render, Box, Text, Static, useInput, useApp, useStdout } from "ink";
4
4
  import TextInput from "ink-text-input";
5
5
  import Spinner from "ink-spinner";
6
6
  import Gradient from "ink-gradient";
7
- import { marked } from "marked";
7
+ import { Marked } from "marked";
8
8
  import { markedTerminal } from "marked-terminal";
9
9
  import { runAgent } from "../agent/base.js";
10
- marked.use({ gfm: true });
11
10
  function renderMarkdown(content) {
12
11
  const width = Math.max((process.stdout.columns ?? 80) - 8, 40);
13
- marked.use(markedTerminal({ showSectionPrefix: false, tab: 2, width }));
14
- return marked.parse(content, { async: false }).trimEnd();
12
+ const md = new Marked({ gfm: true });
13
+ md.use(markedTerminal({ showSectionPrefix: false, tab: 2, width, reflowText: true }));
14
+ return md.parse(content, { async: false }).trimEnd();
15
15
  }
16
16
  function truncateOutput(content, maxLines = 8) {
17
17
  const lines = content.split("\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "casabot",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "CasAbot — Skill-driven multi-agent orchestrator system",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/tui/app.tsx CHANGED
@@ -3,18 +3,17 @@ import { render, Box, Text, Static, useInput, useApp, useStdout } from "ink";
3
3
  import TextInput from "ink-text-input";
4
4
  import Spinner from "ink-spinner";
5
5
  import Gradient from "ink-gradient";
6
- import { marked } from "marked";
6
+ import { Marked } from "marked";
7
7
  import { markedTerminal } from "marked-terminal";
8
8
  import type { ChatProvider } from "../providers/base.js";
9
9
  import type { ConversationHistory, Message, Skill } from "../config/types.js";
10
10
  import { runAgent } from "../agent/base.js";
11
11
 
12
- marked.use({ gfm: true });
13
-
14
12
  function renderMarkdown(content: string): string {
15
13
  const width = Math.max((process.stdout.columns ?? 80) - 8, 40);
16
- marked.use(markedTerminal({ showSectionPrefix: false, tab: 2, width }));
17
- return (marked.parse(content, { async: false }) as string).trimEnd();
14
+ const md = new Marked({ gfm: true });
15
+ md.use(markedTerminal({ showSectionPrefix: false, tab: 2, width, reflowText: true }));
16
+ return (md.parse(content, { async: false }) as string).trimEnd();
18
17
  }
19
18
 
20
19
  function truncateOutput(content: string, maxLines = 8): string {