dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:vb2250158/dsh-codex-model-selector
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
智能规则等独立设置可通过公开 modelPickers.CatalogPicker 复用聊天模型选择器,支持常用模型、搜索和提供商分组。调用插件提供目录和保存回调;组件不切换聊天模型。
Independent settings can use modelPickers.CatalogPicker to share the chat model chooser, recent models, search, and provider groups. The caller supplies the catalog and save callback; the picker preserves the chat model selection.
接入字段与保存约定见 模型选择组件 API / Picker API。
This release requires DSH 0.2.1-alpha.1 or a compatible 0.2 release. See compatibility details.
fetch 被当作统计对象方法调用而触发 Illegal invocation,恢复实际请求记录参与常用模型排名。/usage/api 接口;成功选择记录从此版本开始保存在当前浏览器,规则草稿、失败选择和推理档位调整不计数。用量接口不可用时提示并使用已有记录,完整目录仍可操作。客户端更新后刷新页面生效。向模型列表设置提供 settings.model-redirect.picker 槽位,与输入框共用 ModelSelect 搜索下拉。规则编辑只回传草稿,不切换当前会话;Escape 关闭搜索列表。
输入框按钮显示“模型名称 · 提供商”,名称、大小写和空格取自模型目录;目录缺失时保留原始 ID。推理等级单独显示。
独立的模型选择器样式插件。紧凑卡片包含模型入口、推理等级分档滑条及默认等级重置;模型列表支持按提供方或模型的名称和 ID 本地搜索,模型和等级数据仍来自官方 modelDirectories 服务。选择经原有接口保存,不另建配置数据源。
安装:dsh plugin --profile web add github:vb2250158/dsh-codex-model-selector#<commit>,重启 DSH 并刷新页面。禁用插件会释放模型槽和样式,恢复官方选择器。无需修改官方源码。
组件基于 DeepSeek 的 MIT 授权 ModelSelect 改写,保留原有失败反馈、加载重试和模型分组。版权见 LICENSE。源码和构建产物均在此插件内维护。
验证:pnpm test,pnpm run build。
闪电按钮复用已安装订阅插件的 loadSpeed / setSpeed 注入接口:只有当前模型目录确认支持快速档时才可操作。普通速度控件在本插件启用时被同一槽位的较高优先级空视图替代,避免重复入口;卸载本插件自动恢复。快速模式会使用更多用量。底部按钮同时显示模型名称与推理等级。
配色全部继承 DSH 主题变量;插件只调整布局、尺寸和控件形状,不覆盖主题色。 滑条拖动过程中只预览档位,松手后提交一次。保存导致的临时失焦不会关闭卡片;点击外部或按 Escape 仍可关闭。 快速模式开启时,收起状态的模型按钮在模型名前显示实心闪电;首次加载也会读取已有速度状态。
将 <commit> 替换为本仓库完整提交号。插件代码与运行所需产物随 Git 交付;用户设置、凭据和聊天记录不属于本仓库。
上游组件来自 https://github.com/deepseek-ai/deepseek-harness 的 packages/client/ui-model-selection;本仓库维护独立插件改动,并保留 DeepSeek MIT 版权声明。测试词典是同一上游词典的本地测试夹具。
卡片中央的强度文字、模型名称与提供商名称共用一个换模型按钮;提供商名称来自当前模型目录,目录缺失时显示提供商 ID,长名称截断后可悬停查看。思考强度由下方滑条和右侧重置按钮调整。
拖动强度滑条时,卡片级别文字实时预览当前档位,松手后保存;取消拖动恢复已保存的级别。
The plugin list shows Model & reasoning selector in English and 模型与推理选择 in Chinese, following the DSH interface language. locale/en.json and locale/zh.json provide the title and description; icon.svg supplies self-contained artwork. The package exports and publishes these resources. The icon is adapted from Lucide; see ICON_LICENSE.txt.
The icon uses a centered 36 × 36 viewBox to leave more space around the artwork inside the plugin icon frame.
0.1.11 提供公开客户端服务 modelPickers.Picker,属性为 sessionId、current、locked、select。组件复用当前会话目录的可见模型和同一常用记录,只向调用者返回独立草稿选择,保持会话模型不变。调用者通过客户端依赖声明加载本插件,并注入 modelPickers 服务。嵌入模式在父浮层内展开,菜单材质由主题 MenuSurface 提供。
独立补齐入口 modelPickers.Picker 打开可搜索主题弹窗,沿用同一可见目录、常用排序和选中标记;选择只修改调用方草稿。onOpenChange 供外层菜单暂停外部点击关闭,避免弹窗交互卸载选择器。
The independent modelPickers.Picker opens a themed searchable dialog with the shared visible catalog, frequent models and current marker. Selection updates only the caller draft; onOpenChange lets an outer menu keep the dialog mounted.
modelPickers.Control accepts the same properties as Picker and reuses the composer’s single-line model/provider/effort control, frequent models, searchable catalog and reasoning slider. The caller owns saving; returning false does not record a successful selection. It never changes the session model itself.
modelPickers.Control 与 Picker 使用相同属性,复用输入框的单行模型、提供商和强度显示,以及常用模型、目录搜索和思考强度滑条。保存由调用方负责;返回 false 不计入成功选择。组件不会自行切换会话模型。
0.1.16 keeps focus on the active menu pane when returning from search, including Escape dismissal.
0.1.16 从搜索返回时保持焦点在当前菜单内,支持 Escape 逐层关闭。
Client integration tests use real Cordis plugin scopes. Set DSH_HARNESS_ROOT to a built DSH checkout to test its vendored Cordis runtime; otherwise tests use the declared development dependency.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。