DSH Plugins Marketplace

DSH Plugins

Plugins

/

Terminal & Clients

/

@dsh-external/viewboost

@

@dsh-external/viewboost

Manifest valid

viewboost: Enhance the right-side preview toolbar (Finder/Fullscreen/Copy/Copy File) + Token Usage Card + File Preview

ToolsUI (client)SkillshasBundlePatch

viewboost

DeepSeek Harness 右侧预览面板的工具栏增强:在访达显示、全屏、复制路径、复制文件,外加一个 Token 用量卡。

License: MIT Version Platform DSH

给 DSH 右侧的 aionui 预览面板工具栏加几个按钮,顺手在左下角放一个 Token 用量卡。不碰任何第三方插件源码。

预览工具栏

功能

按钮干什么
📁 在访达显示在 macOS Finder 里选中当前预览的文件(open -R)
⤢ 全屏预览面板全屏,按 Esc 退出
📋 复制路径复制文件绝对路径
⧉ 复制文件把文件引用放进剪贴板,Finder 里 Cmd+V 就能粘贴复制
📊 Token 用量左下角卡片:近 5h / 今日 / 本周用量,可选 MiniMax 配额状态

工具栏图标用的是 feather SVG,和 FanBox 同一套。

Token 用量卡

安装

前提:已经跑着一个 DeepSeek Harness 的 web profile。

直接装(推荐):

dsh plugin --profile web add github:AlexCHONG8/dsh-viewboost

或者本地 clone 后装:

git clone https://github.com/AlexCHONG8/dsh-viewboost.git
dsh plugin --profile web add link:/path/to/dsh-viewboost

装完重启 DSH(dsh web)就生效。插件随 profile 自动挂载,不用像动态插件那样每次去 Cordis 面板点「运行」。

用法

  1. 右侧文件树点开任意文件,预览工具栏会出现 4 个图标按钮
  2. 📁 Finder 弹出并选中该文件
  3. 📋 复制完整路径
  4. ⧉ 文件进剪贴板,切到 Finder 按 Cmd+V 粘贴(相当于复制文件)
  5. ⤢ 全屏预览,Esc 退出
  6. 📊 左下角 Token 用量卡

MiniMax 配额(可选)

往 ~/.dsh/viewboost.env(权限 0600)写:

MINIMAX_CN_API_KEY=sk-cp-...    # 国内版 api.minimaxi.com
# 或
MINIMAX_API_KEY=sk-...          # 国际版 api.minimax.io

卡片底部会显示真实的 Token Plan 状态(5h 滚动窗口 / 周配额剩余、倒计时)。

环境要求

  • 需要 DSH 的 web profile,目标是 aionui 右侧面板布局
  • macOS 功能最全(Finder 显示、文件引用剪贴板)
  • Linux / Windows:复制路径、全屏、用量卡能用,Finder 相关按钮自动降级

项目结构

viewboost/
├── dsh.plugin.json      # DSH 插件清单 (client.main)
├── cordis.patch.yml     # bundle patch(dsh plugin add 时自动挂载)
├── package.json         # npm 包 + dsh.bundle/client 声明
└── lib/
    ├── index.js         # Host: /viewboost/* HTTP 路由 (fs/subprocess/curl)
    └── client.js        # Client: 工具栏注入 + Token 卡 (module-loader 包装)

实现原理

  • Host 声明 inject: ['fs', 'webServer'],注册 /viewboost/{list,read,fileUrl,stat,thumb,binary,finder,copyfile,usage,minimax} 路由
  • Client 用 window.__ModuleLoader__.load() 包装,通过 fetch('/viewboost/...') 调 host
  • aionui 集成:MutationObserver 把按钮插进 .aionui-preview-col 工具栏(刷新按钮旁边),当前文件路径靠拦截 /aionui-panel/read|list 的 fetch 拿到
  • 复制:同步 execCommand('copy')(离屏 textarea,和官方 writeClipboard 一个思路)+ Clipboard API 双保险

迭代过程踩的坑都记在 docs/ITERATION-NOTES.md,想给 DSH 写插件的人可以看看。

特别致谢

灵感来自**花叔(Huashu)**的 FanBox:给 Agent 界面配「可视化浏览 + 文件预览」这个想法,还有工具栏那套 feather SVG 图标,都是从他那儿来的。这个插件算是我照着那份灵感手搓出来的。感谢花叔,没有 FanBox 就没有它。🙏

License

MIT,见 LICENSE。

Compatibility

DSH 0.2.1-alpha.2: failedDSH 0.2.0-rc.1: failedDSH 0.1.7-rc.2: failed

Versions

Latest versionPublishedSize
1.0.0——

Comments

Loading…

From the same category

dsh-purge

by kingcharleslzy-ai

Community-maintained dsh-purge fork with host-policy patches, prompt and rule settings, diagnostics, separate update-check and install controls, and local backup/rollback.

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 10.2k

MIT

JavaScript

Nov 18, 2026

dsh plugin --profile web add dsh-purge-community

by ccch1mneyyy

DSH 官方公众号收录的 TUI 补位插件:Claude Code 风,鲸鱼顶栏/实时状态/流式思考/双击 Esc 回滚/上下文进度+TPS。npm 一键装。 DSH official WeChat featured TUI plugin — Claude Code style: whale bar, live status, streaming thoughts, double-Esc rol

Terminal & ClientsManifest valid

★ 7.9k

↓ 19.2k/wk

MIT

TypeScript

Nov 19, 2026

dsh plugin --profile terminal add @deepseek-harness-tui/dsh-tui

by mmparko

DeepSeek Harness 破甲 (mirror of YuJunZhiXue/dsh-purge) — 上游即将删库,此为本仓库全量镜像:含全部分支/73 个 tag/完整提交历史。原作者署名与二开要求见 README 署名章节。

Terminal & ClientsManifest valid

★ 5.4k

↓ 17.9k/wk

MIT

JavaScript

Oct 13, 2026

dsh plugin --profile web add dsh-purge

by bowenliang123

The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,

Tools & CapabilitiesUI & ExperienceTerminal & ClientsManifest valid

★ 5.3k

↓ 123.5k/wk

Apache-2.0

TypeScript

Nov 18, 2026

dsh plugin --profile web add dsh-context

by strukto-ai

The World's First Virtual Terminal for AI Agents

Terminal & ClientsManifest valid

★ 3.8k

↓ 532/wk

Apache-2.0

TypeScript

Nov 19, 2026

dsh plugin --profile agent add @struktoai/mirage-dsh

by c1overzz

DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你

Tools & CapabilitiesNotifications & IntegrationsTerminal & ClientsManifest valid

★ 1.4k

↓ 9.9k/wk

MIT

JavaScript

Nov 12, 2026

dsh plugin --profile web add dsh-bili-scroll