Something went wrong. Try again.
fork of prime agent with changes i want but are not upstreamable probqbly (and some fixes)
Something went wrong. Try again.
635 B · 15 lines
TypeScript
at main
12345678910111213141516import { Box, Container, Text } from "@earendil-works/pi-tui";import type { SessionSlashCommandResultMessage } from "../../../core/messages.js";import { theme } from "../theme/theme.js";
/** Renders a durable session-command outcome with user-message spacing. */export class SlashCommandResultMessageComponent extends Container { constructor(message: SessionSlashCommandResultMessage) { super(); const contentBox = new Box(2, 1, (text: string) => theme.getUserMessageBackgroundColor()(text)); contentBox.addChild(new Text(message.content, 0, 0)); this.addChild(contentBox); }
setExpanded(_expanded: boolean): void {}}