- Accueil
- Plugins
- Utilisation et facturation
- deepseek-plugin-liangwengu
deepseek-plugin-liangwengu
vincibeans/deepseek-plugin-liangwengu
Plug-in Liang Wengu DSH : affiche la période hors pointe actuelle de la puissance de calcul sur le côté droit de la barre de titre de la session (côté gauche du bouton d'exportation du journal) (09h00-12h00 et 14h00-18h00 pour Liang Wenfeng en semaine, et Liang Wengu pour le reste du temps, y compris tout le week-end), et compte à rebours le temps restant de la période actuelle en temps réel ; la période de vallée est calculée sur plusieurs jours, jusqu'à 09h00 du jour ouvrable suivant. Adapté à dsh-v0.1.2-alpha.1 ~ rc.1.
Installer
dsh plugin --profile web add github:vincibeans/deepseek-plugin-liangwenguREADME
Install
需要已安装 DSH,并至少成功启动过一次 Web GUI。从 npm 安装(按 dist-tag 选择):
- npm
latest(0.1.1-rc.2)— 兼容 dsh v0.1.1-rc.2(旧 client-runtime 代):dsh plugin --profile web add liangwengu - npm
next(0.1.2-rc.1)— 兼容 dsh v0.1.2-alpha.1 ~ rc.1:dsh plugin --profile web add liangwengu@next - npm
alpha(0.1.2-alpha.5)— 兼容 dsh v0.1.2-alpha.1 ~ rc.1(与next同一契约代):dsh plugin --profile web add liangwengu@alpha
源码安装(GitHub Release v0.1.2-rc.1 即当前源码版):dsh plugin --profile web add .。
Quickstart
dsh plugin --profile web add liangwengu@alpha
dsh --profile web --dump-config # 看到 liangwengu 层即安装成功
# 重启 dsh web,打开会话,标题栏右侧出现时段胶囊
它能做什么
- 当前时段: 工作日 09:00–12:00 与 14:00–18:00 显示「梁文峰」,其余时间含整个周末显示「梁文谷」。
- 实时倒计时: 标签下方显示当前时段剩余时间,每秒刷新,到点自动切换。
- 跨天谷期: 周五 18:00 起连续到周一 09:00,最长 63 小时,超过 24 小时按天显示。
- 固定北京时间: 用 Asia/Shanghai 计算,与你浏览器所在时区无关。
- 夜间模式: 跟随 DSH 主题自动切换配色。
显示规则
| 日期 | 时段 | 显示 |
|---|---|---|
| 周一至周五 | 09:00–12:00、14:00–18:00 | 梁文峰 |
| 周一至周五 | 其余时间 | 梁文谷 |
| 周六、周日 | 全天 | 梁文谷 |
兼容性
- dsh v0.1.2-alpha.1 ~ rc.1(支持): 本插件面向
dsh-v0.1.2-alpha.1~dsh-v0.1.2-alpha.5五个 tag 共同的客户端插件契约构建——dsh.client声明、window.__ModuleLoader__.load({ id, factory })形状、ctx.slots.inject / register注册面、会话标题栏conversation.session.header.utilities槽位与平台 seed 表(react)五个版本上逐字一致(alpha.4 / alpha.5 的模块系统仅版本号与 web 包./invariant导出清理,契约未变)。 - dsh v0.1.2-rc.1(支持):
dsh-v0.1.2-alpha.5..dsh-v0.1.2-rc.1逐行核对,整个仓库只有全仓包package.json版本号变更(非package.json文件零变化、非版本行零变化),插件消费的契约面与 alpha.5 逐字一致;conversation.session.header.utilities槽位、slots服务与 react 平台 seed 均在 rc.1 tag 上复核。 - CI 在 alpha.1 ~ alpha.5 与 rc.1 六个 tag 上分别执行 typecheck + build + test(见
.github/workflows/ci.yml的矩阵)。 - 0.1.1-rc.2 及更早(不支持): 该代使用
@deepseek-ai/dsh-client-runtime,客户端上下文契约不同(非 cordisContext),本插件不兼容。 - 浏览器 bundle 运行时只 require
react与react/jsx-runtime(均在平台 seed 表内),无其他运行时依赖;@deepseek-ai/*全部为 type-only 引用,不在 bundle 中。
验证:pnpm run typecheck(ctx.slots 增广经 tsconfig paths 固定到本包安装的 cordis 拷贝)、pnpm test(时段/倒计时逻辑冒烟)。
License
MIT
Plugins associés
DeepSeek-Balance-Whale-Widget
meteornox/deepseek-balance-whale-widget
dsh-context
bowenliang123/dsh-context
dsh-cost-meter
han-1413141/dsh-cost-meter
TokenLedger
zh667/tokenledger