Skip to content

Releases: kbtime/DSH-plugin

v0.2.1 — 修复命令注册 API

Choose a tag to compare

@kbtime kbtime released this 14 Aug 03:38

修复:/usage 此前使用 Cordis 内建 CLI 命令 API(ctx.command),与 DSH GUI 斜杠目录(dsh-commands 宿主注册表)不互通,导致 /usage 在聊天中不会被识别为命令。

本次改为 ctx.commands.register({ name, description, handler }) 正确注册:

  • /usage —— 累计用量与费用总览
  • /usage context —— 当前对话上下文占用(同一命令的参数形式,避免命令名点号限制)

安装:dsh plugin --profile web add github:kbtime/DSH-plugin#v0.2.1

v0.2.0 — 人民币计价

Choose a tag to compare

@kbtime kbtime released this 14 Aug 02:43

改为人民币计价(¥/百万 tokens),数据源:api-docs.deepseek.com/zh-cn/quick_start/pricing

定价变更

  • 旧价:Pro 命中 ¥0.025 / 未命中 ¥3 / 输出 ¥6;Flash ¥0.02 / ¥1 / ¥2
  • 峰谷价(北京时间 8-17 00:00 起):
    • 高峰(北京时间 9:00-12:00、14:00-18:00):Pro ¥0.30 / ¥9 / ¥27;Flash ¥0.10 / ¥3 / ¥9
    • 空闲(其余时段):Pro ¥0.15 / ¥4.5 / ¥13.5;Flash ¥0.05 / ¥1.5 / ¥4.5
  • 费用展示直接使用人民币,不再做美元换算

安装:dsh plugin --profile web add github:kbtime/DSH-plugin#v0.2.0

v0.1.0 — 峰谷计价支持

Choose a tag to compare

@kbtime kbtime released this 14 Aug 02:25

首次发布。

  • 统计每次 LLM 调用的完整 TokenUsage(输入/输出/缓存/推理 tokens)
  • 按 DeepSeek 官方定价计算费用(USD,含人民币换算展示)
  • 支持即将启用的峰谷计价(2026-08-16 16:00 UTC 自动切换 peak/off-peak)
  • 缓存命中率统计(cacheRead/cacheWrite)
  • 当前对话上下文占用监控(vs 1M 窗口)
  • /usage 与 /usage.context 查询命令

安装:

dsh plugin --profile web add github:kbtime/DSH-plugin#v0.1.0