dsh-media-guard
v0.1.0-alpha.1 · 0 天前发布
Deterministic aggregate media budgets and safe request projections for DeepSeek Harness (DSH)
README
dsh-media-guard
Deterministic aggregate media budgets and safe request projections for DeepSeek Harness (DSH).
dsh-media-guard keeps multimodal sessions usable when individually valid images become unsafe in aggregate. DSH admits images per message, then re-sends every historical image on every model call with no aggregate ceiling, no compression, and no image-capable compaction — so multi-turn image sessions accumulate until the provider rejects the request. Before every agent-loop model call this plugin inventories the request's image attachment references, compresses and deduplicates them by content address, and replaces media that still cannot fit the budget with factual text Evidence Notes. The durable session log and original a
版本兼容矩阵
| 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
- dsh-media-guard
- Repo
- git+https://github.com/spyfree/dsh-media-guard.git
- Engines
{"node":"^22.19.0 || >=24.0.0"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"plugin":true,"kind":"server","client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-conversation","@deepseek-ai/dsh-client-locale"],"platform":"web"},"bundle":{"patch":"./cordis.patch.yml"}}