Skip to content

dsh-output-styles 0.4.0 — output.render.* renderer protocol

Latest

Choose a tag to compare

@PerryLink PerryLink released this 16 Aug 16:22
· 5 commits to main since this release

dsh-output-styles 0.4.0 — the output.render.* presentation protocol.

What's new

  • Renderer registry: \ctx.outputRenderers\ with reversible
    egister(), pure presenters matched by tool/content-type, priority ordering, and the \output.render/before\ waterfall (listeners must
    ext()).
  • Per-session/per-tool rules:
    ules: [{ match: { tool: 'bash' }, style: 'concise' }], editable in the \output-style-rules\ settings section.
  • **/export [markdown|html] [--renderer=]**: session export through the renderer pipeline; every render keeps { original, rendered, rendererId, changed }\ so output stays reconstructable from the session log.
  • Built-in renderers \concise\ and \step-by-step; protocol docs in docs/renderer-protocol.md (+ 中文).
  • /style\ and per-session persistence stay fully compatible. 107 tests.

Install

\\sh
dsh plugin --profile web add dsh-output-styles
\\

Full changelog: https://github.com/PerryLink/dsh-output-styles/blob/main/CHANGELOG.md