YSwo-fei/dsh-api-heal ↗★ 0

dsh-api-heal

监听凭据失败并调用续期入口,自动修复无效API密钥。 用于解决API密钥失效问题。适合使用特定上游渠道、需要自动维护接口可用性的用户。

套件
dsh-api-heal
相容性
待驗證
Harness 依賴範圍
0.2.0-rc.2
Cordis 依賴範圍
^4.0.2
版本
0.1.0
授權
MIT
最近更新
2026年10月10日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YSwo-fei/dsh-api-heal

配置(profile cordis.patch.yml 里可覆盖)

键默认说明
enabledtrue总开关
autoHealtrue关掉就只剩手动 heal_api
cooldownMs60000两次自动自愈之间的最短间隔,防抖
requestTimeoutMs30000单次上游调用超时
webBaseUrl""留空则依次用 webServer.port/host → $DSH_WEB_URL → http://127.0.0.1:19387
registerRoutestrue是否开状态路由

例如在 profile 的 cordis.patch.yml 末尾加:

- id: api-heal
  name: dsh-api-heal
  config:
    cooldownMs: 15000
    autoHeal: true