@gemdoq/codi 0.2.2 → 0.2.4
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/cli.js +6 -8
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -153,7 +153,10 @@ var init_renderer = __esm({
|
|
|
153
153
|
unescape: true,
|
|
154
154
|
emoji: false,
|
|
155
155
|
width: process.stdout.columns || 100,
|
|
156
|
-
tab: 2
|
|
156
|
+
tab: 2,
|
|
157
|
+
// 제목에서 # 기호를 제거하고 깔끔하게 표시
|
|
158
|
+
showSectionPrefix: false,
|
|
159
|
+
reflowText: true
|
|
157
160
|
});
|
|
158
161
|
marked.setOptions({ renderer });
|
|
159
162
|
}
|
|
@@ -2276,20 +2279,15 @@ async function callLlmWithRetry(provider, conversation, registry, stream, option
|
|
|
2276
2279
|
callbacks: stream ? {
|
|
2277
2280
|
onToken: (text) => {
|
|
2278
2281
|
stopSpinner();
|
|
2279
|
-
if (showOutput && !streamedText) {
|
|
2280
|
-
process.stdout.write("\n" + renderAssistantPrefix() + "\n");
|
|
2281
|
-
}
|
|
2282
2282
|
streamedText += text;
|
|
2283
|
-
if (showOutput) {
|
|
2284
|
-
process.stdout.write(text);
|
|
2285
|
-
}
|
|
2286
2283
|
options.onToken?.(text);
|
|
2287
2284
|
}
|
|
2288
2285
|
} : void 0
|
|
2289
2286
|
});
|
|
2290
2287
|
if (streamedText) {
|
|
2291
2288
|
if (showOutput) {
|
|
2292
|
-
process.stdout.write("\n");
|
|
2289
|
+
process.stdout.write("\n" + renderAssistantPrefix() + "\n");
|
|
2290
|
+
console.log(renderMarkdown(streamedText));
|
|
2293
2291
|
}
|
|
2294
2292
|
return { ...response, _streamed: true };
|
|
2295
2293
|
}
|