Skip to content

Releases: lehhair/dsh-html-artifact

dsh-html-artifact v0.1.0

Choose a tag to compare

@lehhair lehhair released this 15 Aug 03:26

dsh-html-artifact v0.1.0

HTML artifact 插件:模型通过 artifact 工具创建/修补 HTML 文档,GUI 在沙箱 iframe 里实时渲染。

功能

  • artifact 工具create / patch / read / destroy / listpatch 用 edit 风格 old_string/new_string 增量更新,模型只发变更不重发全量
  • 流式渲染:模型生成 create 参数时工具行即时出现,行内常驻桥 iframe 内容随流式更新(不重载)
  • 时间线快照:每个工具行显示该次调用时的渲染结果,create 行保持创建时状态,patch 行直接显示新结果
  • 交互提交:预览底部动作行(Source / Copy HTML / Submit interaction),收集 iframe 内用户交互数据(表单控件自动扫描 + __dshArtifactData 显式协议)→ Agent.followup 注入并立即唤醒 agent 读取分析
  • 最终交付断言:create/patch 结果即答案,模型不再复述正文
  • 纯扩展:零 core 改动,全部走开放注册面(tools / commands / slots / conversationEvents / sessions)

安装

dsh plugin --profile web add "https://github.com/lehhair/dsh-html-artifact/releases/download/v0.1.0/dsh-external-dsh-html-artifact-0.1.0.tgz"

安装后重启 dsh web 服务并刷新页面。