dsh-structured-render
已验证@ch4acko3/dsh-structured-render · v0.1.2 · MIT · Web 界面
Safe expandable structured data rendering service for DeepSeek Harness Web plugins
安装
dsh plugin add @ch4acko3/dsh-structured-render 用 dsh --profile default --dump-config 确认 layer 已生效 —— 参见安装指南。
源码
发布到 npm 但没有公开仓库。安装前请检查包内容。
标签
说明文档
@ch4acko3/dsh-structured-render
Safe, theme-aware structured data rendering for DeepSeek Harness Web plugins.
export const inject = ['structuredRenderer']
export function apply(ctx) {
const result = ctx.structuredRenderer.render({
label: 'response',
value: { ready: true, items: [{ id: 1 }, { id: 2 }] },
expandedDepth: 2,
})
console.log(result.html)
console.log(result.nodeCount)
}
The service accepts JSON-compatible values, escapes labels and strings, and uses native <details> elements for keyboard-accessible disclosure. expandedDepth controls how many levels begin open and defaults to 1.