feat: complete dsh-plugin-model-enhancer with models.dev prefill, paperclip upload, codex slider, and i18n

This commit is contained in:
2026-09-09 00:52:52 +08:00
commit 80bd332529
8 changed files with 6487 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
# dsh-plugin-model-enhancer
DeepSeek Harness (DSH) 自定义模型增强与交互插件。
## ✨ 特性一览
1. **设置页面模型目录增强**
- 支持图像/视觉(Vision)输入模态开关。
- 支持多档位推理思考深度(Reasoning Efforts,包含 `minimal` / `low` / `medium` / `high` / `xhigh` / `max`)。
- 官方模型目录与模型条目右侧状态胶囊徽标展示(图像、思考档位)。
- **models.dev 智能预填充**
- 单模型「智能补全」与对比确认弹窗(支持按项选用推荐值)。
- 顶部一键「一键补全」批量安全清洗与参数匹配。
2. **输入栏左侧连体药丸操作小岛(Pill Island)**
- 整合 `[+]`(命令菜单)与 `[📎]`(多模态图片/文件上传)为一体化胶囊岛。
- 正圆形 Hover 微光微交互。
3. **输入栏右下角 Codex 风格推理滑块与模型切换**
- 无边框极简常态,悬浮/激活呈现通透线框轮廓。
- 水平胶囊滑轨与海蓝渐变激活填充(Soft Sky-Blue Gradient)。
- 饱满悬浮大圆球(Thumb),突破滑槽高度,悬停/拖拽轻微弹性放大。
- 点击顶部模型名平滑展开带供应商分类徽标与细分割线的模型选择树。
4. **全面双语支持(i18n**
- 自动跟随 DSH 系统语言(中文 / English)无缝切换所有文案与档位标签。
## 📦 安装与配置
在 DSH Web Profile 的 `package.json` 中添加依赖并注册 bundle
```json
{
"dependencies": {
"dsh-plugin-model-enhancer": "^1.0.0"
},
"dsh": {
"profile": {
"bundles": [
"dsh-plugin-model-enhancer"
]
}
}
}
```
## 📄 License
MIT