DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

yueyexiayu /

yueyexiayu/dsh-zhanshi

Verified

DSH desktop plugin: show this-turn images and videos inline in the conversation

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@a3490a16

zhanshi

DeepSeek Harness 桌面插件。把本轮新保存的图片和视频直接显示在对话里,不写进模型上下文。

预览挂在回合末尾交付区(和原来的「打开」卡片同一层,不会折进「N 次工具调用」)。图用 <img>,视频用 <video controls>,点图打开文件。来源是本轮成功的 present / write / edit / read_image,bash 里独立一行的 saved …png / wrote …mp4(或 cp/ffmpeg/-o 的写入目标),以及 shengcheng 结果里的 saved … 行。翻会话日志、ls 旧文件不会触发预览。present 的相对路径(如 street_dancing_girl.png)也会显示,用会话 cwd 拼成绝对路径。不负责生图。预览以 id: zhanshi 注册到 conversation.chat.turnTail 列表;没有媒体时组件返回空内容。

安装

包在 $DSH_HOME/plugins/zhanshi。在 $DSH_HOME/profiles/desktop/cordis.patch.yml 的 insert 里加入:

- id: zhanshi
  name: ../../plugins/zhanshi/lib/index.js

完全退出 DeepSeek Harness(macOS:⌘Q)再打开。已有会话重启后也会从事件重建预览。

说明

  • 不把媒体 ingest 成会话 attachment,避免进入下一轮视觉请求
  • 文件用相对路径 /api/file 读取(桌面是 dsh-app://,不能按 http origin 拼地址)
  • 每回合最多 16 个文件;忽略 node_modules / .git
  • 同一路径或同一文件名再生成时,预览跟最后一次 present/写入走,并用事件序号刷新图片地址,避免桌面端仍显示上一张
  • 卸载:只从 desktop patch 去掉该 insert,然后 ⌘Q

开发

node --check lib/index.js lib/client.js lib/parse.js
node --test
—/ 5

No ratings yet

Verified DSH bundle

Commit a3490a16226b

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout