Skip to content

v0.2.1 — 修复命令注册 API

Latest

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