dsh-plugin-model-enhancer (adapted for DSH 0.1.5-rc.2)

DeepSeek Harness (DSH) Model Settings Enhancer Plugin (Adapted for DSH 0.1.5-rc.2).

Features

  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).
    • Delegates session-level model and reasoning selection completely to official DSH 0.1.5-rc.2 core components.
  2. models.dev Cache & Proxy:

    • Exposes exact WebServer proxy route /api/models-dev/models with in-memory caching and fallback.
  3. Full Bilingual Support (i18n):

    • Dynamic localization supporting Simplified Chinese (zh) and English (en).

🛠 Building & Development

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:

{
  "dependencies": {
    "dsh-plugin-model-enhancer": "file:../dsh-plugin-model-enhancer"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "dsh-plugin-model-enhancer"
      ]
    }
  }
}

📄 License

MIT

S
Description
DSH plugin: enhanced model settings with image input, reasoning efforts, models.dev auto-fill, paperclip upload and Codex-style slider
Readme
358 KiB
Languages
TypeScript 54.7%
JavaScript 45.3%