@deep-tui/plugin-render-run-command
v0.1.0
Published
Prettified run_command output rendering for Deep TUI's TUI.
Readme
@deep-tui/plugin-render-run-command
Renders run_command activity in Deep TUI's TUI as a compact Claude-style block.
The command is shell-highlighted and wrapped, while output keeps a short
head/tail preview, omitted-line count, failure status, and elapsed time:
• Ran pnpm test
│ > test output
│ checking packages...
│ [12 lines omitted]
│ Tests passed
└ 1.2sNon-zero exits and signals render with the danger tone, timeouts use the
warning tone, and tool failures ({ error: "..." }) are displayed inline.
Durable conversations store tool output as JSON text; this renderer parses
that JSON back into the structured form, so resumed sessions render the same
way as live runs.
The plugin is a pure TUI event renderer. It replaces only run_command
tool-call and tool-result events whose output matches the process-tool result
shape. Other tools and unstructured run_command results fall through to the
default renderer.
Configuration
compact: falserestores the detailed output box (defaulttrue);previewLinescontrols compact head/tail output lines (default 3);maxStdoutLineslimits visible stdout lines (default 80);maxStderrLineslimits visible stderr lines (default 40);maxTotalLinescaps the complete rendered body before the footer (default 240);maxLineLengthis the command syntax-highlighting safety threshold; longer commands remain complete, render plain, and wrap (default 4000);showToolName: falsehides the tool name in the completion footer.
