Replace Markdown with Text component for tool execution
- Add background color support to Text component - Replace Markdown component with Text in ToolExecutionComponent - Use chalk.bold for formatting instead of markdown syntax - Remove unnecessary markdown parsing overhead
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { Agent, AgentState, ThinkingLevel } from "@mariozechner/pi-agent";
|
||||
import type { Agent, AgentEvent, AgentState, ThinkingLevel } from "@mariozechner/pi-agent";
|
||||
import type { AssistantMessage, Message } from "@mariozechner/pi-ai";
|
||||
import type { SlashCommand } from "@mariozechner/pi-tui";
|
||||
import {
|
||||
@@ -166,7 +166,7 @@ export class TuiRenderer {
|
||||
this.isInitialized = true;
|
||||
}
|
||||
|
||||
async handleEvent(event: import("@mariozechner/pi-agent").AgentEvent, state: AgentState): Promise<void> {
|
||||
async handleEvent(event: AgentEvent, state: AgentState): Promise<void> {
|
||||
if (!this.isInitialized) {
|
||||
await this.init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user