Skip to content

Releases: left0ver/dsh-intelligent-ui

Release list

v0.3.1

Choose a tag to compare

@left0ver left0ver released this 22 Oct 15:55

English · 简体中文

Demo

Changes in 0.3.1

  • An interface only when you ask for one: the model now shows an interface only when you ask for a calculator, a tool, a chart, or to adjust the numbers yourself. Every other question, including ones an interface could present well, is answered in text.

For example: "I take home $6,000 a month and spend $1,800 on rent, $700 on food, $300 on transport and $500 on fun. I want to save $50,000 for a down payment. Build me an interactive view of where my money goes and how long it will take."

Update

dsh plugin --profile web update @left0ver/dsh-intelligent-ui

See the README for the full instructions.


简体中文

效果展示

0.3.1 变更

  • 只在你要界面时才给界面:只有当你说出想要一个计算器、小工具、图表,或者想自己调数字时,模型才会给出界面。其他问题都用文字回答,即使用界面也能展示得不错。

例如:“我月薪 2 万,每月房租 5000、吃饭 3000、交通 800、娱乐 1500。想攒 30 万首付,做个界面让我自己调着看钱都花在哪、多久能攒够”

更新

dsh plugin --profile web update @left0ver/dsh-intelligent-ui

完整说明见 README。

v0.3.0

Choose a tag to compare

@left0ver left0ver released this 12 Oct 14:24

A DeepSeek Harness Web plugin: the model answers with an interface you can operate, not just text.

English · 简体中文

Demo

New in 0.3.0

  • Five new components: progress bars, badges, callouts, collapsible sections and colour swatches.
  • More chart types: area and pie charts, next to line and bar.
  • Richer tables: columns can be aligned, cells can be coloured row by row, and a table can be sorted by clicking a heading.
  • More inputs: date pickers and multi-line text boxes.
  • A third status colour: warn (amber), between good and bad.
  • {:else if} in conditions.
  • Fix: dollar amounts in prose ($6,000 … $50,000) are no longer rendered as a math formula.

All features

How it works

  • An interface instead of text: when a question is better answered by something you can explore, such as a calculator, a comparison or a dashboard, the model writes an interface. Ordinary questions still get ordinary answers, and you never need to mention the plugin.
  • Appears as it is written: each piece the model writes shows up at once.
  • Runs locally: dragging a slider, editing an input or switching a tab recalculates on the spot, with no further request to the model.
  • Sandboxed: the program the model writes runs in a sandbox, with no network and no access to the page's data.
  • Fixes its own mistakes: when the model's source has an error, the plugin tells it what is wrong and on which line, and the model rewrites it.
  • Fits in: follows DeepSeek Harness's light and dark themes, and its English and Chinese interface languages.

Components

Group Components
Layout box (rows and columns), card, callout, details (collapsible)
Text title, text, badge, stat (a headline figure)
Input slider, input (text, number, date, multi-line), select, checkbox, tabs, button
Data table (alignment, cell colours, sorting), chart (line, bar, area, pie), progress, swatch

Text, figures, badges, callouts, progress bars and table cells take a status colour: muted, good, warn or bad.

The model can also show parts conditionally ({#if}, {:else if}, {:else}) and repeat them over a list ({#each}).

Install

dsh plugin --profile web add @left0ver/dsh-intelligent-ui

To update from an earlier version:

dsh plugin --profile web update @left0ver/dsh-intelligent-ui

Built for DeepSeek Harness 0.2.0-rc.2. See the README for the full instructions.

Known limitations

  • The interface's state is not saved: reloading the page resets it.
  • The model cannot see what you do in the interface, so a follow-up question does not know where you left the sliders.

简体中文

DeepSeek Harness 的 Web 插件:模型直接给出可以操作的界面,而不只是文字回答。

效果展示

0.3.0 新增

  • 五个新组件:进度条、标签、提示框、可展开的小节、色块。
  • 更多图表类型:在折线图和柱状图之外,新增面积图和饼图。
  • 表格更好用:列可以设置对齐,单元格可以逐行着色,点表头可以排序。
  • 更多输入方式:日期选择和多行文本框。
  • 第三种状态色:warn(黄色),介于 good 和 bad 之间。
  • 条件支持 {:else if}。
  • 修复:正文里的美元金额($6,000 … $50,000)不再被渲染成数学公式。

全部功能

工作方式

  • 用界面代替文字:当一个问题更适合用可以摆弄的东西来回答时,比如计算器、对比、看板,模型会写出一个界面。普通问题仍然得到普通的回答,提问时不需要提到这个插件。
  • 边生成边显示:模型每写出一段,界面就多出一块。
  • 本地交互:拖动滑块、修改输入、切换页签后立即重算,不再请求模型。
  • 隔离运行:模型写的程序在沙箱里运行,不能联网,也读不到页面上的数据。
  • 自动纠错:模型写的源码有错时,插件会告诉它错在哪一行、错在哪里,模型据此重写。
  • 融入 dsh:跟随 DeepSeek Harness 的浅色和深色主题,以及中英文界面语言。

组件

类别 组件
布局 box(横排和竖排)、card、callout(提示框)、details(可展开)
文字 title、text、badge(标签)、stat(醒目的数字)
输入 slider、input(文本、数字、日期、多行)、select、checkbox、tabs、button
数据 table(对齐、单元格着色、排序)、chart(折线、柱状、面积、饼图)、progress、swatch(色块)

文字、数字、标签、提示框、进度条和表格单元格可以带状态色:muted、good、warn、bad。

模型还可以按条件显示内容({#if}、{:else if}、{:else}),以及按列表重复显示({#each})。

安装

dsh plugin --profile web add @left0ver/dsh-intelligent-ui

从旧版本更新:

dsh plugin --profile web update @left0ver/dsh-intelligent-ui

适配 DeepSeek Harness 0.2.0-rc.2。完整说明见 README。

已知限制

  • 界面的状态不会保存:刷新页面后会重置。
  • 模型看不到你在界面上的操作,所以追问时它不知道你把滑块拖到了哪里。