import { html } from "lit"; import { SquareTerminal } from "lucide"; import { i18n } from "../../utils/i18n.js"; import { renderHeader } from "../renderer-registry.js"; // Bash tool has undefined details (only uses output) export class BashRenderer { render(params, result) { const state = result ? (result.isError ? "error" : "complete") : "inprogress"; // With result: show command + output if (result && params?.command) { const output = result.content ?.filter((c) => c.type === "text") .map((c) => c.text) .join("\n") || ""; const combined = output ? `> ${params.command}\n\n${output}` : `> ${params.command}`; return { content: html `