pi-syntax-highlight 0.1.0 → 0.2.1

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +81 -40
  2. package/DEVELOPER.md +100 -0
  3. package/LICENSE +21 -0
  4. package/README.md +42 -44
  5. package/extensions/index.ts +5 -10
  6. package/package.json +20 -5
  7. package/src/detect-language.ts +205 -8
  8. package/src/emphasis.ts +82 -1
  9. package/src/highlight.ts +25 -9
  10. package/src/lru-cache.ts +30 -0
  11. package/src/markdown-fence-lang.ts +20 -87
  12. package/src/render-bash.ts +29 -2
  13. package/src/render-edit.ts +0 -6
  14. package/src/render-generic.ts +10 -21
  15. package/src/render-read.ts +8 -149
  16. package/src/render-utils.ts +8 -17
  17. package/src/resolve-renderers.ts +181 -240
  18. package/src/tokens.ts +1 -34
  19. package/src/active-theme.ts +0 -26
  20. package/src/markdown-style.ts +0 -134
  21. package/src/markdown-theme.ts +0 -53
  22. package/src/render-path.ts +0 -54
  23. package/src/render-write.ts +0 -81
  24. package/test/unit/active-theme.test.ts +0 -38
  25. package/test/unit/bash-preview.test.ts +0 -57
  26. package/test/unit/detect-language.test.ts +0 -124
  27. package/test/unit/emphasis.test.ts +0 -113
  28. package/test/unit/extensions-index.test.ts +0 -116
  29. package/test/unit/grep-parse.test.ts +0 -125
  30. package/test/unit/highlight.test.ts +0 -107
  31. package/test/unit/markdown-fence-lang.test.ts +0 -131
  32. package/test/unit/markdown-pipeline.test.ts +0 -153
  33. package/test/unit/markdown-render-parity.test.ts +0 -127
  34. package/test/unit/markdown-style.test.ts +0 -152
  35. package/test/unit/markdown-theme.test.ts +0 -86
  36. package/test/unit/render-bash.test.ts +0 -194
  37. package/test/unit/render-edit.test.ts +0 -214
  38. package/test/unit/render-find.test.ts +0 -139
  39. package/test/unit/render-generic.test.ts +0 -152
  40. package/test/unit/render-grep.test.ts +0 -338
  41. package/test/unit/render-ls.test.ts +0 -132
  42. package/test/unit/render-read.test.ts +0 -375
  43. package/test/unit/render-utils.test.ts +0 -324
  44. package/test/unit/render-write.test.ts +0 -143
  45. package/test/unit/resolve-renderers.test.ts +0 -474
  46. package/test/unit/style-path.test.ts +0 -74
  47. package/tsconfig.json +0 -15
@@ -1,324 +0,0 @@
1
- import { test } from "node:test";
2
- import assert from "node:assert/strict";
3
- import { DEFAULT_MAX_BYTES, formatSize } from "@earendil-works/pi-coding-agent";
4
- import { Text, imageFallback } from "@earendil-works/pi-tui";
5
- import {
6
- buildListBody,
7
- diffChangeLine,
8
- isJsonDocument,
9
- moreLinesFooter,
10
- replaceTabs,
11
- reuseText,
12
- splitTrailingNotice,
13
- styleDiffLine,
14
- textOutput,
15
- truncatedNotice,
16
- truncationWarnings,
17
- type RenderContext,
18
- type TruncationParts,
19
- } from "../../src/render-utils.ts";
20
-
21
- const fakeTheme = {
22
- fg: (c: string, t: string) => `<${c}>${t}</${c}>`,
23
- bg: (c: string, t: string) => `<bg:${c}>${t}</bg:${c}>`,
24
- bold: (t: string) => `<b>${t}</b>`,
25
- };
26
-
27
- function renderContext(overrides: Partial<RenderContext> = {}): RenderContext {
28
- return {
29
- args: undefined,
30
- lastComponent: undefined,
31
- state: {},
32
- showImages: false,
33
- durationMs: undefined,
34
- ...overrides,
35
- };
36
- }
37
-
38
- test("textOutput: no result renders nothing", () => {
39
- assert.equal(textOutput(undefined), "");
40
- });
41
-
42
- test("textOutput: text blocks are joined by a newline", () => {
43
- const result = { content: [{ type: "text", text: "first" }, { type: "text", text: "second" }] };
44
- assert.equal(textOutput(result), "first\nsecond");
45
- });
46
-
47
- test("textOutput: SGR colors and carriage returns are stripped and the text is kept", () => {
48
- const result = { content: [{ type: "text", text: "\x1b[31mred\x1b[39m\r\nnext" }] };
49
- assert.equal(textOutput(result), "red\nnext");
50
- });
51
-
52
- test("textOutput: an OSC sequence is stripped and the text around it is kept", () => {
53
- const result = { content: [{ type: "text", text: "\x1b]0;title\x07visible" }] };
54
- assert.equal(textOutput(result), "visible");
55
- });
56
-
57
- test("textOutput: binary control characters are stripped", () => {
58
- const result = { content: [{ type: "text", text: "a\x01b\x08c" }] };
59
- assert.equal(textOutput(result), "abc");
60
- });
61
-
62
- test("textOutput: text without image blocks gets no fallback line", () => {
63
- const result = { content: [{ type: "text", text: "only text" }] };
64
- assert.equal(textOutput(result), "only text");
65
- assert.equal(textOutput(result, false), "only text");
66
- });
67
-
68
- test("textOutput: image blocks become the built-in fallback when images are hidden", () => {
69
- const result = {
70
- content: [
71
- { type: "text", text: "first" },
72
- { type: "image", mimeType: "image/png", data: "not-an-image" },
73
- { type: "text", text: "second" },
74
- ],
75
- };
76
- // The exact wording belongs to the package; comparing against its own
77
- // formatter keeps this test from pinning a format the host may change.
78
- assert.equal(textOutput(result, false), `first\nsecond\n${imageFallback("image/png")}`);
79
- });
80
-
81
- test("textOutput: an image without a mime type falls back to the placeholder one", () => {
82
- const result = { content: [{ type: "image" }] };
83
- assert.equal(textOutput(result, false), imageFallback("image/unknown"));
84
- });
85
-
86
- test("replaceTabs: a single tab becomes three spaces", () => {
87
- assert.equal(replaceTabs("\tconst x = 1;"), " const x = 1;");
88
- });
89
-
90
- test("replaceTabs: every tab of the line is replaced", () => {
91
- assert.equal(replaceTabs("a\tb\tc"), "a b c");
92
- });
93
-
94
- test("replaceTabs: a line without tabs is unchanged", () => {
95
- assert.equal(replaceTabs(" indented with spaces"), " indented with spaces");
96
- assert.equal(replaceTabs(""), "");
97
- });
98
-
99
- test("splitTrailingNotice: a blank-line-separated bracket block becomes the notice", () => {
100
- assert.deepEqual(splitTrailingNotice("a.ts:1: x \n\n[3 matches limit]"), {
101
- body: "a.ts:1: x",
102
- notice: "3 matches limit",
103
- });
104
- });
105
-
106
- test("splitTrailingNotice: a trailing bracket with no blank line before it stays in the body", () => {
107
- assert.deepEqual(splitTrailingNotice("const x = a[0]"), { body: "const x = a[0]" });
108
- });
109
-
110
- test("splitTrailingNotice: a block containing a newline is not a notice", () => {
111
- const output = "a.ts:1: x\n\n[first line,\nsecond line]";
112
- assert.deepEqual(splitTrailingNotice(output), { body: output });
113
- });
114
-
115
- test("splitTrailingNotice: an output that is only a notice has an empty body", () => {
116
- assert.deepEqual(splitTrailingNotice("\n\n[12 matches limit]"), {
117
- body: "",
118
- notice: "12 matches limit",
119
- });
120
- });
121
-
122
- test("moreLinesFooter: byte-identical to the built-in footer", () => {
123
- assert.equal(
124
- moreLinesFooter(5, fakeTheme, "<hint>"),
125
- "<muted>\n... (5 more lines,</muted> <hint><muted>)</muted>",
126
- );
127
- });
128
-
129
- test("truncationWarnings: nothing to report yields an empty list", () => {
130
- assert.deepEqual(truncationWarnings({}), []);
131
- assert.deepEqual(truncationWarnings({ extra: [] }), []);
132
- });
133
-
134
- test("truncationWarnings: the limit alone carries its label, and the bare word without one", () => {
135
- assert.deepEqual(truncationWarnings({ limitCount: 100, limitLabel: "matches limit" }), ["100 matches limit"]);
136
- assert.deepEqual(truncationWarnings({ limitCount: 50 }), ["50 limit"]);
137
- });
138
-
139
- test("truncationWarnings: line truncation reports the shown and total counts without the prefix", () => {
140
- assert.deepEqual(truncationWarnings({ truncatedBy: "lines", outputLines: 10, totalLines: 500 }), [
141
- "showing 10 of 500 lines",
142
- ]);
143
- });
144
-
145
- test("truncationWarnings: byte truncation reports the shown lines and the limit", () => {
146
- assert.deepEqual(truncationWarnings({ truncatedBy: "bytes", outputLines: 7, maxBytes: 1024 }), [
147
- `7 lines shown (${formatSize(1024)} limit)`,
148
- ]);
149
- // Without a recorded limit the built-in default stands in for it.
150
- assert.deepEqual(truncationWarnings({ truncatedBy: "bytes", outputLines: 7 }), [
151
- `7 lines shown (${formatSize(DEFAULT_MAX_BYTES)} limit)`,
152
- ]);
153
- // A caller that records only the limit still gets the byte wording.
154
- assert.deepEqual(truncationWarnings({ maxBytes: 2048 }), [`0 lines shown (${formatSize(2048)} limit)`]);
155
- });
156
-
157
- test("truncationWarnings: the limit-only byte style drops the line count", () => {
158
- const parts: TruncationParts = { truncatedBy: "bytes", maxBytes: 1024, byteStyle: "limit-only" };
159
- assert.deepEqual(truncationWarnings(parts), [`${formatSize(1024)} limit`]);
160
- assert.deepEqual(truncationWarnings({ ...parts, maxBytes: undefined }), [`${formatSize(DEFAULT_MAX_BYTES)} limit`]);
161
- });
162
-
163
- test("truncationWarnings: both warnings keep the built-in order, then the caller's own", () => {
164
- assert.deepEqual(
165
- truncationWarnings({
166
- limitCount: 100,
167
- limitLabel: "matches limit",
168
- truncatedBy: "bytes",
169
- maxBytes: 1048576,
170
- byteStyle: "limit-only",
171
- extra: ["some lines truncated"],
172
- }),
173
- ["100 matches limit", `${formatSize(1048576)} limit`, "some lines truncated"],
174
- );
175
- });
176
-
177
- test("truncatedNotice: nothing to report yields no line at all", () => {
178
- assert.equal(truncatedNotice({ limitLabel: "matches limit" }, fakeTheme), "");
179
- // An untruncated result carries the block but not its byte limit.
180
- assert.equal(
181
- truncatedNotice({ limitLabel: "matches limit", truncation: { truncated: false, maxBytes: 1024 } }, fakeTheme),
182
- "",
183
- );
184
- });
185
-
186
- test("truncatedNotice: the limit alone is prefixed and painted in the notice token", () => {
187
- assert.equal(
188
- truncatedNotice({ limitCount: 100, limitLabel: "matches limit" }, fakeTheme),
189
- "\n<warning>[Truncated: 100 matches limit]</warning>",
190
- );
191
- });
192
-
193
- test("truncatedNotice: the byte limit follows the count and uses the limit-only wording", () => {
194
- assert.equal(
195
- truncatedNotice(
196
- { limitCount: 100, limitLabel: "matches limit", truncation: { truncated: true, maxBytes: 1048576 } },
197
- fakeTheme,
198
- ),
199
- `\n<warning>[Truncated: 100 matches limit, ${formatSize(1048576)} limit]</warning>`,
200
- );
201
- });
202
-
203
- test("truncatedNotice: the caller's own notices come last", () => {
204
- assert.equal(
205
- truncatedNotice(
206
- {
207
- limitCount: 20,
208
- limitLabel: "results limit",
209
- truncation: { truncated: true, maxBytes: 1024 },
210
- extra: ["some lines truncated"],
211
- },
212
- fakeTheme,
213
- ),
214
- `\n<warning>[Truncated: 20 results limit, ${formatSize(1024)} limit, some lines truncated]</warning>`,
215
- );
216
- // An empty list adds nothing, which is what the callers pass when the tool
217
- // did not truncate any line.
218
- assert.equal(
219
- truncatedNotice({ limitCount: 20, limitLabel: "results limit", extra: [] }, fakeTheme),
220
- "\n<warning>[Truncated: 20 results limit]</warning>",
221
- );
222
- });
223
-
224
- test("diffChangeLine: added and removed lines carry their foreground over their own background", () => {
225
- assert.equal(
226
- diffChangeLine("+const b = 2;", fakeTheme),
227
- "<bg:toolSuccessBg><toolDiffAdded>+const b = 2;</toolDiffAdded></bg:toolSuccessBg>",
228
- );
229
- assert.equal(
230
- diffChangeLine("-const c = 3;", fakeTheme),
231
- "<bg:toolErrorBg><toolDiffRemoved>-const c = 3;</toolDiffRemoved></bg:toolErrorBg>",
232
- );
233
- });
234
-
235
- test("styleDiffLine: the three header forms share the function color", () => {
236
- for (const line of ["@@ -1,2 +1,3 @@", "+++ b/x.ts", "--- a/x.ts"]) {
237
- assert.equal(styleDiffLine(line, fakeTheme), `<syntaxFunction>${line}</syntaxFunction>`);
238
- }
239
- });
240
-
241
- test("styleDiffLine: added and removed lines go through the diff tokens", () => {
242
- assert.equal(
243
- styleDiffLine("+const b = 2;", fakeTheme),
244
- "<bg:toolSuccessBg><toolDiffAdded>+const b = 2;</toolDiffAdded></bg:toolSuccessBg>",
245
- );
246
- assert.equal(
247
- styleDiffLine("-const c = 3;", fakeTheme),
248
- "<bg:toolErrorBg><toolDiffRemoved>-const c = 3;</toolDiffRemoved></bg:toolErrorBg>",
249
- );
250
- });
251
-
252
- test("styleDiffLine: an unchanged line, and the diff header, stay in the content color", () => {
253
- assert.equal(styleDiffLine(" const a = 1;", fakeTheme), "<text> const a = 1;</text>");
254
- assert.equal(
255
- styleDiffLine("diff --git a/x.ts b/x.ts", fakeTheme),
256
- "<text>diff --git a/x.ts b/x.ts</text>",
257
- );
258
- });
259
-
260
- test("isJsonDocument: an object or an array is JSON, whatever the indentation is", () => {
261
- assert.equal(isJsonDocument('{"a":1}'), true);
262
- assert.equal(isJsonDocument('[1,2]'), true);
263
- assert.equal(isJsonDocument("\n {\"a\": 1}\n"), true);
264
- });
265
-
266
- test("isJsonDocument: text that does not open with a brace or a bracket is not JSON", () => {
267
- assert.equal(isJsonDocument("plain text"), false);
268
- assert.equal(isJsonDocument('"{"'), false);
269
- assert.equal(isJsonDocument(""), false);
270
- });
271
-
272
- test("isJsonDocument: an opener plus a failed parse is not JSON", () => {
273
- assert.equal(isJsonDocument('{"a": }'), false);
274
- assert.equal(isJsonDocument("[1,2"), false);
275
- });
276
-
277
- test("buildListBody: an empty body renders nothing", () => {
278
- assert.equal(
279
- buildListBody({
280
- body: "",
281
- expanded: false,
282
- collapsedLines: 2,
283
- theme: fakeTheme,
284
- expandHint: "<hint>",
285
- styleLine: (raw) => `<${raw}>`,
286
- }),
287
- "",
288
- );
289
- });
290
-
291
- test("buildListBody: the collapsed view styles only the visible lines and counts the rest", () => {
292
- const text = buildListBody({
293
- body: "l1\nl2\nl3",
294
- expanded: false,
295
- collapsedLines: 2,
296
- theme: fakeTheme,
297
- expandHint: "<hint>",
298
- styleLine: (raw) => `<${raw}>`,
299
- });
300
- assert.equal(text, "\n<l1>\n<l2><muted>\n... (1 more lines,</muted> <hint><muted>)</muted>");
301
- });
302
-
303
- test("buildListBody: the expanded view has no footer", () => {
304
- const text = buildListBody({
305
- body: "l1\nl2\nl3",
306
- expanded: true,
307
- collapsedLines: 2,
308
- theme: fakeTheme,
309
- expandHint: "<hint>",
310
- styleLine: (raw) => `<${raw}>`,
311
- });
312
- assert.equal(text, "\n<l1>\n<l2>\n<l3>");
313
- });
314
-
315
- test("reuseText: the previous component is reused when it is a Text", () => {
316
- const previous = new Text("", 0, 0);
317
- assert.equal(reuseText(renderContext({ lastComponent: previous })), previous);
318
- });
319
-
320
- test("reuseText: a fresh Text is built when the slot holds no Text", () => {
321
- const component = reuseText(renderContext());
322
- assert.ok(component instanceof Text);
323
- assert.notEqual(component, reuseText(renderContext()));
324
- });
@@ -1,143 +0,0 @@
1
- import { test } from "node:test";
2
- import assert from "node:assert/strict";
3
- import { setCapabilityOverrides } from "@earendil-works/pi-tui";
4
- import type { HighlightFn } from "../../src/highlight.ts";
5
- import { buildWriteCallText, buildWriteResultText, type WriteCallInput } from "../../src/render-write.ts";
6
- import { TOKEN } from "../../src/tokens.ts";
7
-
8
- const fakeTheme = {
9
- fg: (c: string, t: string) => `<${c}>${t}</${c}>`,
10
- bg: (c: string, t: string) => `<bg:${c}>${t}</bg:${c}>`,
11
- bold: (t: string) => `<b>${t}</b>`,
12
- };
13
-
14
- const EXPAND_HINT = "<hint>";
15
- const HEADER = "<toolTitle><b>write</b></toolTitle> <accent>a.ts</accent>";
16
- const FOOTER_2 = "<muted>\n... (2 more lines, 12 total,</muted> <hint><muted>)</muted>";
17
-
18
- // The header links the path unless the terminal says it cannot; the gate is
19
- // pinned so the assertions read the styled text alone.
20
- setCapabilityOverrides({ hyperlinks: false });
21
-
22
- interface HighlightCall {
23
- code: string;
24
- lang: string;
25
- }
26
-
27
- function makeHighlight(calls: HighlightCall[]): HighlightFn {
28
- return (code, lang) => {
29
- calls.push({ code, lang });
30
- // The tokenizer emits nothing for an empty line, so the fake must not invent
31
- // markup there either: the trailing-line trim compares against "".
32
- return code.split("\n").map((line) => (line === "" ? "" : `<${lang}>${line}</${lang}>`));
33
- };
34
- }
35
-
36
- function callInput(overrides: Partial<WriteCallInput> = {}): WriteCallInput {
37
- return {
38
- path: "a.ts",
39
- content: "",
40
- argsComplete: true,
41
- expanded: false,
42
- theme: fakeTheme,
43
- expandHint: EXPAND_HINT,
44
- highlight: makeHighlight([]),
45
- cwd: "/work",
46
- ...overrides,
47
- };
48
- }
49
-
50
- function numbered(from: number, count: number): string[] {
51
- return Array.from({ length: count }, (_, index) => `line${from + index}`);
52
- }
53
-
54
- test("buildWriteResultText: a failure is painted in the error color with the built-in prefix", () => {
55
- assert.equal(TOKEN.broken, "error");
56
- assert.equal(buildWriteResultText({ output: "denied", isError: true, theme: fakeTheme }), "\n<error>denied</error>");
57
- });
58
-
59
- test("buildWriteResultText: several text blocks stay inside the one color wrapper", () => {
60
- assert.equal(
61
- buildWriteResultText({ output: "first\nsecond", isError: true, theme: fakeTheme }),
62
- "\n<error>first\nsecond</error>",
63
- );
64
- });
65
-
66
- test("buildWriteResultText: a success and an empty failure render nothing", () => {
67
- assert.equal(buildWriteResultText({ output: "written 3 lines", isError: false, theme: fakeTheme }), "");
68
- assert.equal(buildWriteResultText({ output: "", isError: true, theme: fakeTheme }), "");
69
- });
70
-
71
- test("buildWriteCallText: the header alone while the content argument has not arrived", () => {
72
- assert.equal(buildWriteCallText(callInput()), HEADER);
73
- });
74
-
75
- test("buildWriteCallText: a content argument that is not a string is reported like the built-in", () => {
76
- assert.equal(
77
- buildWriteCallText(callInput({ content: null })),
78
- `${HEADER}\n\n<error>[invalid content arg - expected string]</error>`,
79
- );
80
- });
81
-
82
- test("buildWriteCallText: the preview is highlighted as one block after the blank line", () => {
83
- const calls: HighlightCall[] = [];
84
- const text = buildWriteCallText(callInput({ content: "const a = 1;\nconst b = 2;", highlight: makeHighlight(calls) }));
85
- assert.deepEqual(calls, [{ code: "const a = 1;\nconst b = 2;", lang: "typescript" }]);
86
- assert.equal(text, `${HEADER}\n\n<typescript>const a = 1;</typescript>\n<typescript>const b = 2;</typescript>`);
87
- });
88
-
89
- test("buildWriteCallText: twelve lines collapse to ten plus the footer with the total", () => {
90
- const content = numbered(1, 12).join("\n");
91
- const visible = Array.from({ length: 10 }, (_, index) => `<typescript>line${index + 1}</typescript>`);
92
- assert.equal(buildWriteCallText(callInput({ content })), `${HEADER}\n\n${visible.join("\n")}${FOOTER_2}`);
93
- });
94
-
95
- test("buildWriteCallText: expanded shows every line and no footer", () => {
96
- const content = numbered(1, 12).join("\n");
97
- const all = Array.from({ length: 12 }, (_, index) => `<typescript>line${index + 1}</typescript>`);
98
- assert.equal(buildWriteCallText(callInput({ content, expanded: true })), `${HEADER}\n\n${all.join("\n")}`);
99
- });
100
-
101
- test("buildWriteCallText: a path with no known grammar keeps every line in the plain color", () => {
102
- assert.equal(TOKEN.plain, "toolOutput");
103
- const calls: HighlightCall[] = [];
104
- const text = buildWriteCallText(
105
- callInput({ path: "notes", content: "plain\nmore", highlight: makeHighlight(calls) }),
106
- );
107
- assert.deepEqual(calls, []);
108
- assert.equal(
109
- text,
110
- "<toolTitle><b>write</b></toolTitle> <accent>notes</accent>\n\n<toolOutput>plain</toolOutput>\n<toolOutput>more</toolOutput>",
111
- );
112
- });
113
-
114
- test("buildWriteCallText: the total in the footer does not count trailing empty lines", () => {
115
- const content = `${numbered(1, 11).join("\n")}\n\n\n`;
116
- const visible = Array.from({ length: 10 }, (_, index) => `<typescript>line${index + 1}</typescript>`);
117
- assert.equal(
118
- buildWriteCallText(callInput({ content })),
119
- `${HEADER}\n\n${visible.join("\n")}<muted>\n... (1 more lines, 11 total,</muted> <hint><muted>)</muted>`,
120
- );
121
- });
122
-
123
- test("buildWriteCallText: while the argument streams only the first sixty lines are tokenized", () => {
124
- const calls: HighlightCall[] = [];
125
- const content = numbered(1, 70).join("\n");
126
- const text = buildWriteCallText(callInput({ content, argsComplete: false, expanded: true, highlight: makeHighlight(calls) }));
127
- assert.deepEqual(calls, [{ code: numbered(1, 60).join("\n"), lang: "typescript" }]);
128
- // The tail past the prefix stays plain, and it is still part of the preview.
129
- assert.equal(text.includes("<toolOutput>line61</toolOutput>"), true);
130
- assert.equal(text.includes("<typescript>line70</typescript>"), false);
131
- });
132
-
133
- test("buildWriteCallText: tabs are expanded and carriage returns dropped before the preview", () => {
134
- const text = buildWriteCallText(callInput({ content: "\tindented\r\nsecond\r" }));
135
- assert.equal(text, `${HEADER}\n\n<typescript> indented</typescript>\n<typescript>second</typescript>`);
136
- });
137
-
138
- test("buildWriteCallText: a missing path shows the placeholder instead of an empty slot", () => {
139
- assert.equal(
140
- buildWriteCallText(callInput({ path: "" })),
141
- "<toolTitle><b>write</b></toolTitle> <toolOutput>...</toolOutput>",
142
- );
143
- });