dsh-ark-quota
火山方舟订阅套餐剩余额度侧边栏小组件:宿主半区代理控制台 GetCodingPlanUsage,浏览器半区渲染 footer 固定小组件
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗Usage
- The widget polls
/ark-quotaeveryrefreshMs(default 5 min) and every time the settings namespace changes. - Click the ⟳ button (or
?force=1) for an immediate refetch. - When the keys are missing or wrong you'll see an error card; fix them in Settings → 方舟额度 (or re-run
node tools/check.mjs) and the widget updates itself.
Configuration
All settings live in the ark-quota settings namespace. The composition entry config in cordis.patch.yml is the base; the user layer in $DSH_HOME/settings.yaml overrides it and is hot-applied.
| key | type | default | description |
|---|---|---|---|
accessKeyId | string | "" (secret) | Volcengine AccessKey ID (signs every OpenAPI call) |
secretAccessKey | string | "" (secret) | Volcengine Secret Access Key |
region | string | cn-beijing | Ark region |
version | string | 2024-01-01 | control-plane OpenAPI version |
refreshMs | number | 300000 | proxy cache TTL before refetching |