DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

zhw5594966 /

zhw5594966/dsh-agy-quota

Verified

This plugin has no description yet.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@7dc04882

dsh-agy-quota

在 DeepSeek Harness(DSH)的对话输入框右侧与设置页实时查看本机 Antigravity ACP worker 剩余额度与重置倒计时的只读 Cordis 插件。

View local Antigravity ACP worker quota and reset countdowns beside the composer and in Settings inside DeepSeek Harness (read-only loopback RPC, no OAuth).

Antigravity 额度插件预览

This project authorizes DSH Plugin to list this repository and display its plugin information. DSH Plugin is an independent community project, not affiliated with DeepSeek AI.

安装 / Install

方式一:通过 CLI 安装(推荐)

从 npm 安装(发布到 npm 后可用):

# Desktop profile
dsh plugin --profile desktop add dsh-agy-quota

# Web profile
dsh plugin --profile web add dsh-agy-quota

直接从 GitHub 仓库安装:

# Desktop profile
dsh plugin --profile desktop add github:zhw5594966/dsh-agy-quota

# Web profile
dsh plugin --profile web add github:zhw5594966/dsh-agy-quota

方式二:通过 DSH 图形界面安装

  1. 打开 DeepSeek Harness → 设置(Settings) → 插件(Plugins) → 添加插件(Add plugin)。
  2. 输入 dsh-agy-quota、github:zhw5594966/dsh-agy-quota,或选择本地解压目录完成安装并启用。

功能特性

  • 输入框旁紧凑指示器:在对话输入框右侧(conversation.input.right)展示当前最低剩余额度百分比与状态圆点(绿 / 黄 / 红),点击展开详情弹窗,支持手动刷新、Escape 关闭与点击外部自动收起。
  • 离线/空闲快照缓存:成功读取额度后自动将白名单过滤后的快照持久化到本地缓存;当本地 ACP worker 空闲退出、手动刷新或重启 DSH 时,继续保留并展示上次额度(标注「已缓存」与上次更新时间),待下次使用 Antigravity 时自动恢复实时刷新。
  • 独立设置页与插件配置面板:在 设置 → Antigravity 额度(settings.section)以及插件详情配置页(plugins.bundle.config)中查看各模型分组的 5 小时(Session) 与 每周(Weekly) 额度进度条、重置倒计时与计划名称。
  • 可配置显示策略:
    • 显示模式:仅在 Antigravity 会话中显示(默认),或始终显示。
    • 自动刷新间隔:30 / 60(默认)/ 120 / 300 秒。
  • 深浅色主题自适应 & 双语支持:自动适配 DSH 亮色 / 暗色主题 token,内置中文与英文界面。

兼容性与权限说明

项目 说明
插件分类(DSH Plugin Hub) UI & Experience(interface)
DeepSeek Harness 版本 >=0.2.2-rc.5 <0.2.3-0(见 package.json 的 engines.dsh)
支持 Profile desktop、web(需要 Web UI 与 connection / slots / locale / modelDirectories)
操作系统 当前仅支持 Windows 本机运行的 agy.exe acp --worker 进程
网络与权限 仅向本机回环地址 127.0.0.1 发送只读 RPC;无外部网络请求、无 OAuth 登录
数据与隐私 主机端采用严格白名单投影,本地缓存仅保存脱敏后的额度百分比与重置时间,不保存也不向浏览器传递任何凭证、Token 或原始账号信息
停用影响 关闭或卸载插件后,仅移除输入框指示器与设置页分区,不修改任何会话或模型配置

使用提示:首次使用若本机尚未运行 Antigravity ACP worker,先发起一次 Antigravity 模型对话再点击刷新即可读取额度;之后即使 worker 退出或重启 DSH,也会保留并展示最近一次缓存的额度。

目录结构

dsh-agy-quota/
├── package.json            # DSH/Cordis bundle 清单、exports 与 engines.dsh 声明
├── cordis.patch.yml        # Cordis 加载补丁(注册 agy-quota)
├── index.js                # Host 端:导出 apply(ctx),注册 /api/agy-quota/* RPC
├── client.js               # Client 端:输入框指示器、弹窗与设置页 UI
├── probe.mjs               # Windows 本机 ACP worker 端口发现与只读 RPC 探测
├── quota-core.mjs          # 额度白名单解析、倒计时格式化与缓存逻辑
├── icon.svg                # 插件图标(36x36 SVG)
├── locale/
│   ├── zh.json             # 中文元数据与详情页路径
│   └── en.json             # 英文元数据与详情页路径
├── docs/
│   ├── DETAIL.md           # 英文插件详情页(单图)
│   ├── DETAIL.zh.md        # 中文插件详情页(单图)
│   └── preview.svg         # 640x300 无字矢量预览图
├── .github/workflows/
│   ├── ci.yml              # PR / Push 语法、单测与打包校验
│   └── publish.yml         # Tag Release 与 npm 自动发布
├── SECURITY.md             # 安全模型与漏洞反馈说明
├── LICENSE                 # MIT License
└── THIRD_PARTY_NOTICES.md  # 第三方开源声明

开发与验证

npm run check
npm test
npm run pack:bundle

第三方声明

额度摘要结构解析参考了 Javis603/token-monitor(MIT License),详见 THIRD_PARTY_NOTICES.md。

License

MIT License — see LICENSE.

—/ 5

No ratings yet

Verified DSH bundle

Commit 7dc0488203f7

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout