@moguiyu/dsh-tavily-backend
v0.1.0 · 2 天前发布
Tavily settings backend for the DeepSeek Harness: usage endpoint, flat key-list manager with usage strategies, and the web_search on/off toggle.
README
@moguiyu/dsh-tavily-backend
Local HTTP backend for the Tavily Search settings card. One composition row registers
three routes on the harness webServer:
| Route | Purpose |
|---|---|
| GET /api/tavily-usage | Per-key Tavily /usage data + totals (no secrets) |
| GET/POST /api/tavily-manager | Flat key list (masked values, saved dates), strategy-ordered writes, ?reveal=<masked> |
| GET/POST /api/tavily-toggle | Persisted on/off for the web provider; POST flips the live provider |
State lives in ~/.dsh/tavily-manager.json and ~/.dsh/tavily-toggle.json (mode 600, no
secrets). Pure helpers (maskValue, parseKeyList, orderKeys, …) are exported fromsrc/lib.js and unit-tested with node --test.
See the workspace README for install and configurati
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- @moguiyu/dsh-tavily-backend
- Repo
- git+https://github.com/moguiyu/dsh-tavily.git
- Engines
{}- Weekly DL
- 122
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}