@yinan_chen/pi-claude-code-ui 0.8.1 → 0.8.2
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/claude-view.ts +2 -1
package/package.json
CHANGED
package/src/claude-view.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Box, Container, Markdown, truncateToWidth, visibleWidth } from "@earend
|
|
|
3
3
|
import { getMarkdownTheme, keyText } from "@earendil-works/pi-coding-agent";
|
|
4
4
|
import { BUILTIN_NAMES, PROCESS_TOOL_NAMES, bold, canExpandTool, expandHint, failedTool, fg, fit, headerOf, isBlank, isImageLine, oneLine, paintBackground, paintTool, prefixed, prefixZones, resultIndent, RESULT_CONT, targetOf, type ToolAppearance, type ToolView } from "./claude-tools.ts";
|
|
5
5
|
import { animateRunningSummary } from "./running-effect.ts";
|
|
6
|
+
import { normalizeForeignLines } from "./foreign-normalizer.ts";
|
|
6
7
|
|
|
7
8
|
export interface ClaudeConfig extends ToolAppearance {
|
|
8
9
|
detailsBackground: string;
|
|
@@ -727,7 +728,7 @@ export function createClaudeView(
|
|
|
727
728
|
const api = {
|
|
728
729
|
enabled: () => !disabled,
|
|
729
730
|
fail, hookMode, renderChat, dispose,
|
|
730
|
-
toolExecRender: (self: any, orig: Function, width: number) => renderTool(self, orig, width),
|
|
731
|
+
toolExecRender: (self: any, orig: Function, width: number) => normalizeForeignLines(renderTool(self, orig, width)),
|
|
731
732
|
toolExecHandleMouse: (self: any, orig: Function, event: any) => disabled ? orig.call(self, event) : Container.prototype.handleMouse.call(self, event),
|
|
732
733
|
assistantRender: renderAssistant,
|
|
733
734
|
assistantUpdateContent(self: any, orig: Function, message: any, streaming?: boolean) {
|