StarsHarryZhu/dsh-intelligent-UI ↗★ 0

dsh-intelligent-ui

Intelligent UI for DeepSeek Harness: the model writes a small catalogued interface program, the chat renders it as a native card, and every control change recomputes in the browser with zero model calls. 适合需要通过滑块、图表等控件在浏览器中免Token交互的用户。

패키지
dsh-intelligent-ui
호환성
미검증
Harness peer 범위
>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0
Cordis peer 범위
^4.0.2
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 10. 16.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:StarsHarryZhu/dsh-intelligent-UI

dsh-intelligent-ui

Interactive cards in DeepSeek Harness chats. The model writes a small interface program; the chat draws it as a native card — sliders, inputs, choices, metrics, tables, charts, progress bars, and answer buttons — and every control recomputes in your browser without another model call.

中文

What it does

  • Registers one tool, ui_render. The model passes a program in source; the plugin validates it against a fixed component catalog and stores the compiled program with the tool result.
  • Draws the card in the tool row while the reply is being written (with a live preview as the program streams in), and under the reply once the turn is finished.
  • Recomputes every figure locally when you move a control. Nothing is sent until you press a button, which sends its text as your next message.
  • Uses the host's theme, fonts, and language; works in light and dark mode.
  • Never runs model-written code: the program is data, drawn only by the plugin's own components.

A program looks like this:

@state seats = 8 min=1 max=50
@calc monthly = seats * 29
card "Team plan"
  slider "Seats" bind=seats
  metric "Monthly cost" value=monthly unit=USD
  text "{seats} seats cost {monthly} USD a month."

Install

Install the package into a profile with the Plugin Manager (Settings → Plugins → install from a local folder), or from a DSH agent with plugin_manager install_bundle. Restart the harness after installing or rebuilding, and reload the page.

Then ask for something a card answers better than prose, for example: “Show me what a team plan costs at $29 per seat, with a slider for the number of seats.”

Uninstall

Disable or remove the bundle in Settings → Plugins. Sessions keep opening; earlier calls show as ordinary tool rows. The plugin adds no session event types.

Compatibility

SurfaceStatus
HarnessDeepSeek Harness 0.2.x web UI
Node`^22.19.0
PlatformsAll (no native code, no network access)

Development

node scripts/link-dev.mjs   # link the toolchain from the sibling harness checkout
node build.js               # type-check, build, and self-check the bundle
node node_modules/vitest/vitest.mjs run

See AGENTS.md for the rules of the tree and docs/VERIFY.md for the live checklist.

License

MIT License © 2026 Starfield.