dsh-intelligent-ui
其他 活跃维护

dsh-intelligent-ui

left0ver/dsh-intelligent-ui

将模型输出从纯文本升级为交互式界面组件,支持点击、输入等实时操作。作为插件集成到现有流程,无需额外开发,让AI回答直接成为可用的工具面板,体验更直观高效。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
12.5 MB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:left0ver/dsh-intelligent-ui
git clone https://github.com/left0ver/dsh-intelligent-ui.git
git clone git@github.com:left0ver/dsh-intelligent-ui.git
README.md main
# dsh-intelligent-ui **A [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) Web plugin: the model answers with an interface you can operate, not just text.** [![DSH CLI](https://img.shields.io/badge/DSH_CLI-0.2.0--rc.2-4f46e5?style=flat-square)](https://raw.githubusercontent.com/left0ver/dsh-intelligent-ui/main/package.json) [![npm version](https://img.shields.io/npm/v/@left0ver/dsh-intelligent-ui?style=flat-square&logo=npm)](https://www.npmjs.com/package/@left0ver/dsh-intelligent-ui) [![MIT License](https://img.shields.io/badge/license-MIT-22c55e?style=flat-square)](https://raw.githubusercontent.com/left0ver/dsh-intelligent-ui/main/LICENSE) English · [简体中文](https://github.com/left0ver/dsh-intelligent-ui/blob/main/README.zh.md)

Demo

Features

  • 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.
  • Common controls: sliders, inputs, selects, checkboxes, tabs, buttons, tables, progress bars, badges, callouts, collapsible sections, colour swatches, and line, bar, area and pie charts.
  • Sandboxed: the program the model writes runs in a sandbox, with no network and no access to the page's data.

Quick start

1. Install

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

A freshly published version may be held back by pnpm's minimum release age. If so, add these two lines to ~/.dsh/profiles/web/pnpm-workspace.yaml and install again:

minimumReleaseAgeExclude:
  - '@left0ver/dsh-intelligent-ui'

2. Start

dsh web

3. Ask

Ask for a calculator, a tool, a chart, or to adjust the numbers yourself. Ordinary questions are still 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 and uninstall

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

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.

Acknowledgements

Thanks to Disdjj/intelligent-ui-demo for its analysis of how OpenAI implements Intelligent UI, which this plugin builds on.

License

MIT