@mostkia/dsh-htmlui
在沙盒中渲染智能体编写的HTML界面 适合需要让智能体生成并交互式渲染HTML/CSS/JS页面的任务。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mostkia/dsh-htmlui说明文档
阅读完整 README ↗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.)