DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
P

dsh-plugin-peak-pricing

Plugin Peak Pricing

DeepSeek 峰谷定价时段徽章(Web 与 Desktop):在侧边栏设置按钮下方显示当前高峰/空闲时段与切换倒计时;侧边栏收起时悬停圆点查看浮窗详情。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:c-ling/dsh-plugin-peak-pricing#96f2af06ebed2163393697a17936f8b3b496346d
README兼容性版本

兼容性与来源证明

Plugin Peak Pricing 以 dsh-plugin-peak-pricing 发布,当前版本为 2.0.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/20

版本

2.0.1stable
2026/10/20
2.0.0stable
2026/10/20

相关插件

正在加载相关插件…

最新版
2.0.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 2
周下载
0
最近提交
2026/10/20
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Experimental Cot Translation Bundle@deepseek-ai/dsh-experimental-cot-translation-bundle扩展推理的实验性机器翻译Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Our Free Model@ebony-vinyl/dsh-our-free-modelOur Free Model — 在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 DeepSeek V4.1 Flash、Kimi K3 在内的前沿模型,桌面端另有 EAC 协付渠道;2.0 起接入 LobsterAI、Qoder、TRAE、Cline、Loomy、Raccoon、MiniMax、ZCode、Gemini 十个账号渠道(原有匿名免费通道保留)(登录、账号池、积分领取、本地 OpenAI 网关与局域网转发、数据看板与运行日志),六页毛玻璃界面统一呈现。Connect Workbuddydsh-connect-workbuddy把本机登录的 WorkBuddy 模型(国内版与国际版)接入 DeepSeek Harness:每次刷新按上游目录自动读取每个模型的积分倍率,支持逐模型图片输入开关、多账号切换与账号池自动换号,并提供每日签到、卡片与输入框里的胶囊积分读数等只读积分概览。

README

dsh-plugin-peak-pricing

DeepSeek Harness 峰谷定价时段徽章(DSH 双面插件,纯 UI、无状态、无网络请求), 目标运行时 DeepSeek Harness 0.2.1+(Web 与 Desktop)。

English

简介

  • 展开状态:侧边栏设置按钮下方贴底的一条单行卡片 ● 空闲时段 · 半价 · 2小时12分后进入高峰(黄点 = 高峰全价,绿点 = 空闲半价), 悬停显示北京时间详情。
  • 收起状态:Web/Linux 轨道内居中的彩色圆点(36px 圆形 hover,与设置按钮一致); 桌面端 0 宽收起时改用更紧凑的 28px 浮动圆点。悬停弹出与 DSH 官方 Tooltip 同配色/字号的浮窗显示完整文案。
  • Desktop 收起:macOS / Windows 桌面端收起侧边栏时整列宽度为 0,徽章把圆点固定到 视口左下角,仍然可以悬停查看详情;Web / Linux 保留 56px 轨道,沿用轨道内定位。
  • 每 30 秒刷新一次;时段边界一到自动切换。
  • 文案支持中英双语,随 DeepSeek Harness 的界面语言设置(Settings → General → Language)实时切换。

时段规则(北京时间 UTC+8,无夏令时):高峰 09:00–12:00、14:00–18:00,其余为空闲(半价); 自 2026-08-24 起,周六、周日全天为空闲时段(此前周末仍按上述时段规则)。

兼容性

  • 目标:DeepSeek Harness 0.2.1+。已在 Desktop 0.2.1-rc.2 的侧边栏结构上核对: sidebar.footer.action 仍是 list slot,footArea > footerActions + settingsArea 结构不变。
  • 0.2.1 的侧边栏样式类名是 CSS Module 构建 hash(0.1.x 的 hHd-Xa_* 已变为 _3WPZCG_*)。 v2.0.0 不再写死 hash,而是匹配稳定的类名后缀(footArea / collapsed / settingsArea) 和稳定的 data-slot="sidebar.footer.action" 属性,因此对后续 0.2.x 小版本更稳。
  • 0.1.x 不再是兼容目标;v2.0.0 起安装形态从「plain dependency + 手写 loader 行」切换为 「dsh.bundle + cordis.patch.yml bundle」。
  • 本插件没有 host 路由、没有持久化状态;所有时段计算都用浏览器本地时钟完成。

安装

Bundle 模式(0.2.x 推荐)

Web(dsh plugin 会把包加入 profile 的 dsh.profile.bundles,bundle patch 负责插入 loader 行):

dsh plugin --profile web add "github:c-ling/dsh-plugin-peak-pricing#v2.0.1"
# 或
npx @deepseek-ai/dsh plugin --profile web add "github:c-ling/dsh-plugin-peak-pricing#v2.0.1"

Desktop:使用 Desktop 自带 CLI 或「Plugins」页面(npx @deepseek-ai/dsh 会拒绝 --profile desktop,桌面 profile 由 Desktop App 管理):

"/Applications/DeepSeek Harness.app/Contents/Resources/runtime/cli/bin/dsh" \
  plugin --profile desktop add "github:c-ling/dsh-plugin-peak-pricing#v2.0.1"

安装后重启宿主:Web 重启 dsh web;Desktop 退出并重新打开 App。 client-modules 按进程缓存包裁决,新 bundle 不重启不会生效。

本包声明了 dsh.bundle,不会再出现 declares no dsh.bundle — installed as a plain dependency 警告。

手动模式(plain dependency)

如果不想用 bundle,也可以把包作为普通依赖安装,然后自己加 loader 行。 不要同时把包加入 dsh.profile.bundles,否则会重复激活。

# pnpm 不在 PATH 上时
cd ~/.dsh/profiles/web
corepack pnpm add "github:c-ling/dsh-plugin-peak-pricing#v2.0.1"

在 ~/.dsh/profiles/web/cordis.patch.yml 增加:

- insert:
    - id: dsh-plugin-peak-pricing
      name: 'dsh-plugin-peak-pricing'

然后重启 dsh web 并硬刷新页面。Desktop 端不推荐手动改 profile; 请用上面的 Desktop CLI 或 Plugins 页面。

验证

cd dsh-plugin-peak-pricing
node --check lib/index.js lib/client.js
node --test
python3 -m json.tool package.json

预期:11 项测试全绿,覆盖 factory id、sidebar.footer.action 注册、中英词典 parity、 工作日/周末/政策生效前后的时段计算,以及 0.2.1 脚部选择器。

页面侧验证(重启后):

  1. 展开侧边栏:设置按钮下方出现时段卡片;切换 Settings → General → Language, 文案应原地切换为中文/英文。
  2. Web 收起侧边栏:出现 56px 轨道,设置按钮下方是彩色圆点;悬停显示浮窗。
  3. Desktop 收起侧边栏(macOS / Windows):圆点固定在窗口左下角,悬停仍可查看详情。

本插件没有 /api/... 路由。不要用旧的匿名 GET /plugins/dsh-plugin-peak-pricing/client.js 验证:0.2.1 不再提供该路径, 客户端 bundle 通过认证后的启动图加载。也不要因为 /api/... 返回 401 就认为插件已加载—— /api 认证门会在路由分发前返回 401。

更新

用新的 #v2.0.1 重新执行安装命令即可;bundle 模式不需要改 cordis.patch.yml:

dsh plugin --profile web add "github:c-ling/dsh-plugin-peak-pricing#v2.0.1"
# Desktop
"/Applications/DeepSeek Harness.app/Contents/Resources/runtime/cli/bin/dsh" \
  plugin --profile desktop add "github:c-ling/dsh-plugin-peak-pricing#v2.0.1"

重启宿主,然后硬刷新页面 / 重开 Desktop。

卸载

dsh plugin --profile web remove dsh-plugin-peak-pricing
# 或手动:cd ~/.dsh/profiles/web && corepack pnpm remove dsh-plugin-peak-pricing

Desktop 用 Plugins 页面移除,或用 Desktop 自带 CLI plugin --profile desktop remove ...。 bundle 模式会同时移除 dsh.profile.bundles 中的条目;手动模式还需删除 cordis.patch.yml 中对应的 insert 行。本插件无状态、无持久化数据,卸载后布局完全还原。

开发

node --check lib/index.js lib/client.js
node --test
python3 -m json.tool package.json
git diff --check

客户端为手写 factory-CJS bundle(window.__ModuleLoader__.load({ id: "dsh-plugin-peak-pricing", factory })), 无构建步骤;UI 通过 sidebar.footer.action 插槽注册,inject: ["slots", "locale"] 保证 fiber 在插槽就绪后 apply,并通过 locale 服务注册中英文案字典。

0.2.1 脚部定位相关 CSS 集中在 lib/client.js 的 css 数组:

  • 展开/轨道态:[class*='footArea'] / [class*='collapsed'] + :has(.dsh-peak-region);
  • 桌面端 0 宽收起:html[data-platform='darwin'] / html[data-windows-titlebar] + [data-sidebar-collapsed],圆点 position: fixed;
  • 共享 footer 的其它插件条目在桌面收起时通过 [data-slot='sidebar.footer.action'] > :not(.dsh-peak-region) 隐藏,避免残影。
  • 颜色 token:展开卡片用 --dsw-alias-button-elevated-fill + --dsw-alias-border-l3;tooltip 用 --dsw-alias-tooltip-bg + 官方白字、13px/20px 字号,与 DSH 内置按钮/Tooltip 保持一致。

测试文件:test/client.test.mjs(VM 执行 bundle、时段逻辑、词典与 CSS 断言)、 test/host.test.mjs(host 空实现 + bundle manifest/patch)。

已知限制

  • 定位依赖侧边栏脚部的稳定类名后缀(footArea / collapsed)和 data-slot="sidebar.footer.action"。如果未来 DSH 改掉这些约定,徽章仍会渲染在 footer 操作条中(功能不受影响),但可能回到设置按钮上方;需要同步更新 lib/client.js 中的 :has() 选择器。
  • 桌面端收起态的左下角圆点位置是固定的(left:12px; bottom:12px)。如果未来桌面窗口 增加左下角控件,可能需要调整这个偏移。
  • 时段判断使用本机时钟;系统时间被手动修改时会立即反映到下一次 30 秒刷新。

License

MIT