dsh-kimi-quota-sidebar
Verifieddsh-kimi-quota-sidebar · v0.1.2 · MIT · Web UI
Show Kimi Code subscription quota in the DeepSeek Harness sidebar
Install
dsh plugin add dsh-kimi-quota-sidebar Confirm the layer applied with dsh --profile default --dump-config — see the install guide.
Source
Published to npm without a public repository. Inspect the package contents before installing.
Tags
Creators
Readme
dsh-kimi-quota-sidebar
在 DeepSeek Harness 左侧栏底部显示 Kimi Code 订阅余量。数据来自已安装的 dsh-kimi-subscription(需要 1.4.0 或更高版本),不需要再次配置账号或 API Key。
显示与交互
- 侧栏展开时,在设置入口上方显示 5 小时和每周剩余百分比及进度条。
- 采用与 DeepSeek 简洁侧栏卡片一致的无边框布局、2px 侧向留白、11px 标题和 4px 整宽进度条。
- 每项额度显示剩余百分比、已用量/总额度和重置时间;悬停可查看完整信息。
- 点击刷新按钮立即重新读取;后台每 60 秒检查一次,页面隐藏时暂停。
- 侧栏收起后保留
K图标和周余量百分比,悬停查看详情,点击刷新。 - 沿用订阅插件的缓存与刷新事件;不发送模型请求,不消耗模型额度。
- 支持中英文、错误重试、未连接状态,以及没有常见 5 小时/每周窗口时的通用额度行。
安装
先安装并连接 dsh-kimi-subscription,再安装本插件。需要 DSH 0.2.1-rc.3 或兼容的更高 0.2.x 版本。以下命令使用 desktop profile;其他环境请替换 profile 名称。
npm 公共仓库(推荐)
发布后,其它机器可直接安装,无需复制文件:
dsh plugin --profile desktop add [email protected]
也可以在 DSH 左侧 插件 → 添加插件 中输入 [email protected],安装后点击 立即启用。
本地开发安装
dsh plugin --profile desktop add "link:D:\path\to\dsh-kimi-quota-sidebar"
或构建安装包:
pnpm install
pnpm run check
pnpm pack --pack-destination .artifacts
dsh plugin --profile desktop add ".\.artifacts\dsh-kimi-quota-sidebar-0.1.2.tgz"
安装后刷新 DSH 页面。如果宿主没有热加载新插件,请手动重启 DSH 后再刷新。
开发与验证
pnpm install
pnpm run test
pnpm run build
pnpm run check
lib/client.js 是构建产物,由 scripts/build.mjs 通过 esbuild 生成;请修改 src/ 下的源文件,不要直接编辑产物。
数据与安全
- Host 入口仅为空
apply()加载器,用于注册 bundle;没有任何 Host 数据或凭据行为。 - 仅调用订阅插件已有的
/kimi-subscription通道的status和usageRPC。 - 不读取、保存或输出 API Key、OAuth token、原始凭据或账号标识。
- 不直接访问 Kimi API,不修改订阅插件配置,不接管模型路由或网页搜索。
License
MIT