Jinsong-Zhou / dsh-html-canvas

목록에 있음

A DeepSeek Harness plugin that turns AI-generated HTML into a click-to-edit canvas beside the chat

main기타 소스 보기

설치

npx -y @deepseek-ai/dsh plugin --profile web add @jinsong-zhou/dsh-html-canvas@latest

이 명령은 GitHub 저장소 주소에서 생성됩니다. 실행 전에 업스트림 README와 소스를 검토하고 재현성이 필요하면 release 또는 commit을 고정하세요.

README

유지 관리자가 작성한 문서 스냅샷입니다.

GitHub에서 보기 ↗
커밋 8e3db79동기화 2026. 8. 18.

dsh-html-canvas

English | 简体中文

A DeepSeek Harness plugin that turns AI-generated HTML into a click-to-edit canvas beside the chat.

A DSH agent can build a complete HTML page, but the Web UI only shows it as a code block that most people can't read, let alone edit — this plugin closes that gap: the agent hands the finished page to one tool, it renders in a canvas beside the chat, and anyone can change it by clicking the text on the page, no source code ever.

dsh-html-canvas

Features

  • Click-to-edit — any text on the rendered page is editable: headings, buttons, nav links, bare <div> text, even text inserted later by page scripts.
  • Side-by-side, not overlapping — the canvas squeezes the chat column instead of covering it, and resizes with a drag handle.
  • Lives in the chat — the tool call renders as a link; close the canvas anytime and click the link to reopen it with edits and width intact.
  • Safe and localized — sandboxed iframe, no editor artifacts in the output, UI text follows the DSH locale (English / 中文).

Install

npx -y @deepseek-ai/dsh plugin --profile web add @jinsong-zhou/dsh-html-canvas@latest

Then restart the DSH web process and refresh the browser. For a local checkout, declare a file: dependency in the profile's package.json and insert it in cordis.patch.yml:

- insert:
    - id: html-canvas
      name: '@jinsong-zhou/dsh-html-canvas'

Usage

Ask the agent for any page — "make me an Apple-style personal homepage" — the canvas opens with the result, and you click the text to change it.

Development

node tests/host.test.mjs      # host contract (plugin must stay dependency-free)
node tests/client.test.mjs    # client behavior
DSH_WEB_URL=http://127.0.0.1:<port> node tests/verify-deployment.mjs

Note: the host half imports nothing by design — a bundled @deepseek-ai/* dependency gets hoisted into the profile and shadows the host's copy, which breaks every tool call. The tests guard this.

License

MIT

프로젝트 파일 및 신호

표시된 항목은 디렉터리 스냅샷에서 감지된 공개 저장소 신호입니다.

테스트감지됨

저장소 정보

언어
JavaScript
라이선스
MIT
마지막 업데이트
2026. 8. 14. 오전 2:27

신중하게 설치하기

소스 코드, 권한, 수명 주기 스크립트, 의존성 및 네트워크 접근을 검토하고 신뢰하지 않는 플러그인은 격리 환경에서 테스트하세요.