memorax-ai/dsh-render-engine--packages-ansi-render ↗★ 1
@ch4acko3/dsh-ansi-render
Safe ANSI terminal output rendering service for DeepSeek Harness Web plugins 适合需要向用户展示带颜色和样式的终端日志或命令行输出的插件开发者。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:memorax-ai/dsh-render-engine#9582bf138d3a6d7381a84359a4a0b878a1ea8952&path:packages/ansi-renderREADME
Read the full README ↗@ch4acko3/dsh-ansi-render
A browser-side Cordis service that renders ANSI terminal output as escaped HTML. It supports common SGR styles, 16-color, 256-color, true-color, and allowlisted HTTP or HTTPS terminal hyperlinks through ansi_up.
const result = ctx.ansiRenderer.render({
text: '\u001b[1;31mERROR\u001b[0m build failed',
})
console.log(result.html)
The service creates a fresh parser for each render call. It does not emulate a terminal, execute control sequences, or maintain cursor state between requests.