mostkia/dsh-htmlui ↗★ 0

@mostkia/dsh-htmlui

在沙盒中渲染智能体编写的HTML界面 适合需要让智能体生成并交互式渲染HTML/CSS/JS页面的任务。

包名
@mostkia/dsh-htmlui
兼容性
待验证
Harness 依赖范围
>=0.1.7-0 <0.2.0-0 || >=0.2.0-rc.1 <0.3.0-0 || >=0.2.1-alpha.1 <0.3.0-0
Cordis 依赖范围
>=4.0.0-rc.7 <5.0.0
版本
0.1.1
许可证
MIT
最近更新
2026年10月6日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mostkia/dsh-htmlui

Configuration

All row configuration is optional, and none of it needs a machine path:

- insert:
    - id: dsh-htmlui
      name: '@mostkia/dsh-htmlui'
      config:
        root: ''              # storage root, defaults to $DSH_HOME/htmlui
        maxInlineBytes: 16384 # cap on one inline html/css/js fragment
        actionPrompt: ''      # sentence appended to an [html-ui:action] message
        allowedOrigins: []    # extra trusted browser origins (see Security)

Runtime data lives under $DSH_HOME/htmlui: ui//index.html (the document as authored — clean and portable on disk, with nothing injected into it), templates// (hosted templates) or templates/.html (hand-written ones), state/.json (per-panel scratch), store/.json (the shared slots), and secret, which backs the capability tokens. Deleting a ui// directory by hand is always safe: the record goes with it and the interface disappears from the session. (Records whose session no longer exists are kept rather than collected, so an interface never vanishes just because its session was archived.)