2026-09-09 00:52:52 +08:00
|
|
|
# dsh-plugin-model-enhancer
|
|
|
|
|
|
2026-09-11 13:58:29 +08:00
|
|
|
DeepSeek Harness (DSH) Model Settings Enhancer & Codex Selector Plugin (Compatible with DSH 0.1.5-rc.2).
|
2026-09-09 00:52:52 +08:00
|
|
|
|
2026-09-11 13:58:29 +08:00
|
|
|
## ✨ Features
|
2026-09-09 00:52:52 +08:00
|
|
|
|
2026-09-11 13:58:29 +08:00
|
|
|
1. **Official Extension Slots Integration (Non-destructive to `ui-settings-models`)**:
|
|
|
|
|
- Integrates model enhancement configuration via `settings.models.footer` and `settings.models.provider-card` (targeted at `llm-pi-ai`).
|
|
|
|
|
- Supports models.dev auto-fill matching, prefilling missing capacities, image modalities (`input: ["text", "image"]`), and multi-level reasoning efforts (`minimal` / `low` / `medium` / `high` / `xhigh` / `max`).
|
|
|
|
|
- Uses `ctx.remote.settings.mutate` with revision fence checking for safe, non-destructive configuration persistence.
|
|
|
|
|
- Preserves official file attachment and upload pipeline (`ui-attachment` & `file-upload`), removing obsolete custom upload endpoint routes.
|
2026-09-09 00:52:52 +08:00
|
|
|
|
2026-09-11 13:58:29 +08:00
|
|
|
2. **Codex-style Model & Reasoning Effort Selector**:
|
|
|
|
|
- Injected into `conversation.input.right` seamlessly alongside the official composer.
|
|
|
|
|
- Reuses `ctx.modelDirectories` (`ModelDirectoryResolver`) for per-session directory resolution and selection dispatch.
|
|
|
|
|
- Interactive sliding track for reasoning effort adjustments and grouped model picker popup.
|
2026-09-09 00:52:52 +08:00
|
|
|
|
2026-09-11 13:58:29 +08:00
|
|
|
3. **models.dev Cache & Proxy**:
|
|
|
|
|
- Exposes exact WebServer proxy route `/api/models-dev/models` with in-memory caching and fallback.
|
2026-09-09 00:52:52 +08:00
|
|
|
|
2026-09-11 13:58:29 +08:00
|
|
|
4. **Full Bilingual Support (i18n)**:
|
|
|
|
|
- Dynamic localization supporting Simplified Chinese (`zh`) and English (`en`).
|
2026-09-09 00:52:52 +08:00
|
|
|
|
2026-09-11 13:58:29 +08:00
|
|
|
## 🛠 Building & Development
|
2026-09-09 00:52:52 +08:00
|
|
|
|
2026-09-11 13:58:29 +08:00
|
|
|
```bash
|
|
|
|
|
npm run build # Bundles client code to lib/client.js and emits types
|
|
|
|
|
npm test # Runs Vitest unit tests
|
|
|
|
|
npm run typecheck # TypeScript static type check
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 📦 Profile Configuration
|
|
|
|
|
|
|
|
|
|
In your profile's `package.json`:
|
2026-09-09 00:52:52 +08:00
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"dependencies": {
|
2026-09-11 13:58:29 +08:00
|
|
|
"dsh-plugin-model-enhancer": "file:../dsh-plugin-model-enhancer"
|
2026-09-09 00:52:52 +08:00
|
|
|
},
|
|
|
|
|
"dsh": {
|
|
|
|
|
"profile": {
|
|
|
|
|
"bundles": [
|
2026-09-11 13:58:29 +08:00
|
|
|
"@deepseek-ai/dsh-base",
|
|
|
|
|
"@deepseek-ai/dsh-web-app",
|
2026-09-09 00:52:52 +08:00
|
|
|
"dsh-plugin-model-enhancer"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 📄 License
|
|
|
|
|
MIT
|