合并插件:壁纸定制(原图不压缩、裁剪编辑器、左/中/右分区不透明度、MP4/WebM 动态壁纸)+ Steam 创意工坊壁纸提取(内置 scripts/extract_scene_pkg.py 解析 scene.pkg/.tex,支持预览/下载)+ DeepSeek 余额与用量小组件 + OpenCode Go 套餐用量(会话顶部药丸按钮显示滚动/周/月用量百分比,点开展开进度条与重置倒计时)。各 API key 均由 host 从 DSH 凭据库读取,不入源码/浏览器。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:AppliedYuu/dsh-WallpaperAndCost
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
A merged DSH web plugin combining wallpaper customization and the DeepSeek balance & usage widget.
Features
🎨 Wallpaper (壁纸)
- 8 built-in curated gradients (暮色 / 深渊 / 晨曦 / 森林 / 星夜 / 暖阳 / 青空 / 石墨)
- Upload your own images at full original resolution (no compression), stored in IndexedDB
- 动态壁纸:上传 MP4/WebM 视频,自动静音循环播放(铺底
<video>元素,object-fit: cover) - Crop editor: drag to pan + zoom (100%–250%) with a live viewport-proportional preview
- Independent absolute opacity sliders (0–100%) for the left sidebar, the conversation column and the right sidebar — the right-sidebar slider now drives both the dsh-better-sidebar panel and DSH's official right sidebar (dsh-client-ui-sidebar-right, detected via
[data-sidebar-right-panel]); the slider auto-appears whenever either sidebar is present - Wallpaper choice persists across restarts (localStorage + IndexedDB)
- 创意工坊壁纸提取(服务器目录):输入 Wallpaper Engine 创意工坊条目文件夹的绝对路径(
…steamapps\workshop\content\431960\<id>),由内置的scripts/extract_scene_pkg.py解析scene.pkg/.tex(含 LZ4 解压、DXT/RGBA→PNG、内嵌 MP4),提取最佳壁纸供预览与下载。需要运行 DSH 的机器装有 Python 3(脚本为纯 Python,Pillow 可选)。- 桌面端支持「选择文件夹…」:DSH Desktop(Windows)上可直接用系统原生文件夹选择器选取条目文件夹,自动填入绝对路径,避免手输/粘贴路径出错而报"文件夹不存在"。
- 路径自动规整 + 明确报错:路径会先去空白、剥成对引号、展开
~,并校验是否为绝对路径;读取失败会区分「文件夹不存在」「没有权限读取该文件夹(含 Windows 受控文件夹访问拦截)」「路径不是文件夹」,不再把权限问题笼统报成"文件夹不存在"。
🔍 Wallpaper Engine 创意工坊提取脚本
- 仓库自带独立脚本
scripts/extract_scene_pkg.py,可单独命令行使用:python scripts/extract_scene_pkg.py --folder <创意工坊条目文件夹> --out <输出目录> python scripts/extract_scene_pkg.py <scene.pkg> # 或直接解析单个 pkg python scripts/extract_scene_pkg.py <scene.pkg> --list # 只列出包内文件 - 支持容器:PKGV(scene.pkg)、TEXV0005/TEXI0001/TEXB000x(.tex)。内容类型:内嵌 JPEG/MP4、DXT1/3/5→.dds(有 Pillow 转 .png)、RGBA8888/R8 裸像素→.png、其余文件原样导出。
- 浏览器端另有无需 Python 的「从 Wallpaper 导入」入口(File System Access API 纯 JS 解包),两者互补。
💰 Balance & usage (余额与用量)
- Balance button in the conversation header: balance, today's consumption, this session's token usage & estimated cost
- Official DeepSeek CNY price table with peak/valley windows, per-model and per-window breakdown
- Platform consumption (
DEEPSEEK_PLATFORM_TOKEN) is read from DSH's credential store by the host (ctx.credentials.resolve), the same wayDEEPSEEK_API_KEYandOPENCODE_GO_API_KEYare — no in-widget token capture - The DeepSeek API key never leaves the host (host-side routes only)
🟢 OpenCode Go 用量 (rolling / weekly / monthly)
- 会话头部新增一个
Go按钮(与余额按钮并列于顶端):默认只显示滚动 / 周 / 月三个用量的百分比 - 点开后用进度条展示每个窗口用量,并显示各自的重置时间(平时隐藏,展开可见)
- 数据来自 OpenCode Go 官方用量接口
GET https://opencode.ai/zen/go/v1/usage(Bearer 鉴权),由 host 端代理,key 与余额相同方式通过ctx.credentials.resolve("OPENCODE_GO_API_KEY")获取,从不入源码/浏览器 - 该接口为社区发现的非官方文档化接口,响应结构可能随 OpenCode 变动;窗口解析做了兼容(
usage.前缀或裸窗口、resetsAt或resetsInSeconds)
Install
dsh plugin --profile web add dsh-WallpaperAndCost
or from GitHub:
dsh plugin --profile web add github:<owner>/dsh-WallpaperAndCost
Restart DSH afterwards.
Requirements
- DSH web profile
DEEPSEEK_API_KEYcredential (设置 → 模型) for the balance feature- Optional
DEEPSEEK_PLATFORM_TOKEN(set in 设置 → 模型) for exact platform consumption figures
Structure
lib/index.js— host half: balance/cost API routes (/api/deepseek-balance,/api/deepseek-session-cost) + workshop extraction routes (/api/wallpaper-workshop/extract,/api/wallpaper-workshop/file) + OpenCode Go usage route (/api/opencode-go-usage)lib/client.js— browser half: wallpaper + balance widget + OpenCode usage widget + workshop extraction UI (no build step required)scripts/extract_scene_pkg.py— standalone Wallpaper Engine.pkg/.texextraction engine (called by the host route; also usable as a CLI)cordis.patch.yml— bundle patch mounting the plugin row
License
MIT
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-task-board★ 8296
侧边栏多列任务看板:卡片交给真实 DSH 智能体会话执行,支持 cron 定时(Host 侧到点执行,关浏览器也生效)。
zhu1090093659/dsh-web#packages/dsh-web-all★ 8296
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。
omdsh-dev/DSH-better-sidebar★ 3968
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。
ccch1mneyyy/dsh-TUI★ 3948
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 3877
右下角常驻的小鲸鱼挂件:余额、今日已用与每轮对话消耗(含峰谷价),余额预警与今日预算的泡泡内容都可编辑;泡泡点击序列模块化自定义,支持并列加权 A/B、随机台词与随机图片;内置 30+ 厂商模板(OpenAI / OpenRouter / Kimi / 硅基流动 / 方舟 / 智谱 / MiniMax 等),按模型查余额与订阅额度;另有任务结束音效、导入音频、自定义角色与资源管理。数据全在本机,无遥测。
Devin-AXIS/deepseek-design#deepseek-idesign★ 1413
可视化设计工作室,支持网站、App 原型、海报、信息卡、报告和杂志的模板创建、元素编辑、选区级 AI 草稿衔接与导出。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。