PerryLink/dsh-output-styles ↗★ 10

dsh-output-styles

运行时输出样式切换工具 适合需要在DSH中动态切换和配置类似Claude Code输出样式的用户。

套件
dsh-output-styles
相容性
待驗證
Harness 依賴範圍
>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0
Cordis 依賴範圍
^4.0.4
版本
0.6.21
授權
Apache-2.0
最近更新
2026年9月25日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PerryLink/dsh-output-styles

Configuration

All tunables are Schemastery Config fields (changeable from cordis.yml). Invalid values fail the load.

defaultStyle and rules are declared volatile(), so on a host that composes the settings forms seam they are live, Web-editable fields: edit them under Plugins → dsh-output-styles in the Web UI and the running plugin adopts the new value without a remount. Every other field stays composition-only and needs a reload. A committed value is validated before it is applied — an invalid one is rejected and the running values are left unchanged.

KeyDefaultWeb-editableMeaning
stylesDir[]noStyle-library directories, resolved against cwd; later entries override earlier ones. [] = the bundled styles/ only
maxStyleChars4000noStyle-body budget (≥ 1); longer bodies are truncated with a marker
defaultStyle''yesStyle for sessions that never selected one; '' = no style. A name that is not in the live library is refused rather than injected
compatJsontruenoLoad Claude Code outputStyles JSON entries (single objects or arrays)
sectionOrder90noOrder of the injected section (0 = persona, 100–199 = tool guidance)
truncationMarker"\n\n[style truncated]"noMarker appended at the truncation point
includeBuiltinstruenoInclude the package's bundled styles/ as the lowest-priority layer
watchStylestruenoReload the library when a style file changes on disk
rules[]yesPer-session/per-tool render rules: [{ match: { tool?, contentType?, session? }, style, priority? }]
enableExporttruenoRegister the /transcript command (Markdown/HTML session export, renderer-aware; --save writes with approval)
respectCoreOutputStylestruenoWhen a core outputStyles service is detected, skip this plugin's prompt injection (keep hot-switch / rules / export)

Migrating from 0.1.6 or earlier. Those versions kept two plugin-owned settings sections, output-style (style) and output-style-rules (rules). The 0.1.7 host deleted the API they were built on, so both sections are gone. Move any value you had there into the corresponding Config field — output-style.style → defaultStyle, output-style-rules.rules → rules — in your profile patch (cordis.yml), or set it on the Plugins page. Per-session choices made with /style are unaffected: they live in the output_style storage domain.