@ou6235/dsh-modelpicker 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -39,7 +39,7 @@ The stock picker flattens every model into one column: with many providers you s
39
39
 
40
40
  ```sh
41
41
  # 方式一:从 npm registry 安装(推荐,无 git 克隆步骤)
42
- dsh plugin --profile desktop add dsh-modelpicker
42
+ dsh plugin --profile desktop add @ou6235/dsh-modelpicker
43
43
 
44
44
  # 方式二:从 git 源安装
45
45
  dsh plugin --profile desktop add github:ou6235/dsh-modelpicker
@@ -48,8 +48,9 @@ dsh plugin --profile desktop add github:ou6235/dsh-modelpicker
48
48
  dsh plugin --profile desktop add link:<路径>
49
49
  ```
50
50
 
51
- > 仓库名与 npm 包名一致,均为 `dsh-modelpicker`;DSH 以 `package.json` 的 `name` 作为插件身份。
52
- > 注意:npm 上已被占用的 `dsh-model-picker`(带连字符)是**另一个包**,与本插件无关。
51
+ > 仓库名 `dsh-modelpicker` 与 npm 包名 `@ou6235/dsh-modelpicker` 指向同一个插件:DSH 以 `package.json` 的 `name` 作为插件身份。
52
+ >
53
+ > **关于包名**:npm 上无 scope 的 `dsh-modelpicker` 因与已存在的 `dsh-model-picker`(另一个包)过于相似而被 npm 名称策略拒绝,故发布于 scope 下。安装时请使用带 scope 的完整名称。
53
54
 
54
55
  装入后**刷新页面即可生效**,不需要重启 DSH。插件在 `cordis.patch.yml` 里插入一行:
55
56
 
package/cordis.patch.yml CHANGED
@@ -1,6 +1,10 @@
1
- # dsh-modelpicker bundle patch: mounts the enhanced model picker over the
2
- # composer's model seat in the dsh web GUI.
1
+ # @ou6235/dsh-modelpicker bundle patch: mounts the enhanced model picker over
2
+ # the composer's model seat in the dsh web GUI.
3
+ #
4
+ # `name` must be the EXACT npm package name — the loader resolves this specifier
5
+ # from the profile's node_modules, so a scoped package needs its scope here even
6
+ # though `id` is an arbitrary local row label.
3
7
 
4
8
  - insert:
5
9
  - id: dsh-modelpicker
6
- name: 'dsh-modelpicker'
10
+ name: '@ou6235/dsh-modelpicker'
package/lib/client.js CHANGED
@@ -1,11 +1,11 @@
1
- // Browser half of dsh-modelpicker. Loaded through the web plugin loader
1
+ // Browser half of @ou6235/dsh-modelpicker. Loaded through the web plugin loader
2
2
  // (window.__ModuleLoader__); React comes from the platform module table.
3
3
  // Replaces the shipped composer model seat (conversation.input.model) with a
4
4
  // left provider column / right model list layout — both independently
5
5
  // scrollable — plus a cross-provider search box. Data rides the SAME
6
6
  // per-session ModelDirectory as the /model popup (ctx.modelDirectories), so
7
7
  // a switch made in either surface is what the other shows next.
8
- window.__ModuleLoader__.load({ id: 'dsh-modelpicker', factory: (require) => {
8
+ window.__ModuleLoader__.load({ id: '@ou6235/dsh-modelpicker', factory: (require) => {
9
9
  var module = { exports: {} }; var exports = module.exports;
10
10
 
11
11
  const React = require('react')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ou6235/dsh-modelpicker",
3
3
  "description": "Enhanced model picker for the DeepSeek Harness web GUI: a provider rail with an independently scrolling model list, cross-provider search, and a portaled popup that stays fully usable in small windows",
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "type": "module",
6
6
  "main": "lib/host.js",
7
7
  "exports": {