dsh-client-ui-model-selection-search
界面增强 活跃维护

dsh-client-ui-model-selection-search

mohith-das/dsh-client-ui-model-selection-search

为官方模型选择组件新增菜单内嵌搜索框,支持按模型名称、提供商、ID快速筛选模型,无需滚动长列表即可定位所需模型,操作更便捷。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
68 KB
仓库大小
26 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:mohith-das/dsh-client-ui-model-selection-search
git clone https://github.com/mohith-das/dsh-client-ui-model-selection-search.git
git clone git@github.com:mohith-das/dsh-client-ui-model-selection-search.git
README.md main

dsh-client-ui-model-selection-search

npm version

A fork of @deepseek-ai/dsh-client-ui-model-selection (the DeepSeek Harness
web UI's model picker) that adds an in-menu search box for filtering models
by name, provider, or id.

Derived from
deepseek-ai/deepseek-harness
at tag dsh-v0.1.1-rc.2, via the fork at
mohith-das/deepseek-harness,
branch fork-base-0.1.1-rc.2. Only packages/client/ui-model-selection is
carried here — see that repo for full provenance and the source diff.

What changed

  • A search input appears above the model list when the picker is open.
  • Typing filters groups/models client-side by model name, model id, group
    name, or group id (no extra network calls — the directory is already
    resident).
  • The input autofocuses when the model pane opens.
  • Enter in the search box selects the first matching model.
  • Escape clears the query before closing the pane, matching the existing
    two-step escape behavior.

Install into a dsh profile

Published to npm as dsh-client-ui-model-selection-search (a different name
than the module it replaces, since only DeepSeek can publish under the
@deepseek-ai scope). The built client.js still self-registers under the
original module id, so it's installed as a pnpm alias override — the
dependency key stays the upstream name, only the resolved package changes:

// ~/.dsh/profiles/<profile>/package.json
{
  "pnpm": {
    "overrides": {
      "@deepseek-ai/dsh-client-ui-model-selection": "npm:dsh-client-ui-model-selection-search@^0.1.0"
    }
  }
}

Then reinstall the profile's dependencies (dsh plugin --profile <profile> install
or an equivalent pnpm install inside the profile directory) and restart
dsh web. For local development instead of the published package, point the
override at a local path instead:
"@deepseek-ai/dsh-client-ui-model-selection": "file:/absolute/path/to/dsh-client-ui-model-selection-search".

License

MIT, matching the upstream package.