Skip to content

Repository files navigation

dsh-better-display

English

推荐用 npm(可钉版本):

dsh plugin --profile web add dsh-better-display@0.3.1

也可以装 latest:

dsh plugin --profile web add dsh-better-display

备选:从 GitHub 直装(跟默认分支最新提交):

dsh plugin --profile web add github:aa2246740/dsh-better-display

PATH 上要有官方 dsh(没有就用 npx @deepseek-ai/dsh)和 pnpm。dsh plugin add 会在 $DSH_HOME/profiles/web 里跑 pnpm。仓库已提交编译好的 lib/,git / npm 安装都不用 prepare,也不用改 profile 的 allowBuilds。

然后重启这个 Host,再刷新页面。dsh plugin add 只写 profile,不会热挂正在跑的进程。

给 DeepSeek Harness 加一个 阅读 页签:执行时能看到步骤、思考和进度;整轮成功结束后把过程收起来,留下最终回答。原版「对话 / 轨迹」、输入框、模型选择、工具和审批都还在。阅读列保留宿主 ChatView 的 data-chat-flow 钩子,依赖该标记显示输入框的第三方皮肤不会把阅读页当成仅检视视图。

最终回答里的 ````mcp-app代码块会在阅读视图里挂成交互卡片,跑在<iframe sandbox="allow-scripts allow-forms">` 里,没有 `allow-same-origin`。卡片可以通过 JSON-RPC 把下一轮 prompt 填进输入框。技能包在 `skills/generative-mcpapps/`。设置里的 Better Display 可把产物改为右侧栏预览(默认仍用系统应用),打开半透明毛玻璃(默认关),设置过程自动折叠开关(默认开),并检测该技能是否已装进宿主技能目录。

面向 DeepSeek Harness 0.1.7-rc.1。只改展示,不改 Agent 执行、SDK 或模型凭据。Node.js ^22.19.0 || >=24。新会话默认进阅读。

0.3.0 保留现有阅读布局、折叠和动效,接入官方反馈、工具详情、文件卡片及文件链接;并修复重新开启自动折叠后仍保持展开的问题。接入范围和升级检查见 官方能力接入说明。

本地目录或 tarball:

dsh plugin --profile web add ./dsh-better-display
dsh plugin --profile web add ./dsh-better-display-0.3.1.tgz

dsh.bundle 是开机捕获的。不要再往 profile 的 cordis.patch.yml 手写同一条 insert,会重复挂载。

dsh plugin --profile web remove dsh-better-display

开发

npm test
npm run typecheck

许可

展示与 Markdown 部分来自 DeepSeek Harness(MIT)。动效参考 Transitions.dev。本仓库代码 MIT。

About

A calmer reading view for DeepSeek Harness: native process details, live reasoning, and clean final answers.

Topics

Resources

Stars

74 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages