dsh-model-extension 1.3.0 → 1.3.2
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/LICENSE +21 -21
- package/README.md +91 -87
- package/cordis.patch.yml +15 -15
- package/lib/client.js +242 -93
- package/lib/client.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +9 -8
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 lovezi0
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 lovezi0
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,87 +1,91 @@
|
|
|
1
|
-
# dsh-model-extension
|
|
2
|
-
> 基于 deepseek-harness 的模型扩展插件
|
|
3
|
-
|
|
4
|
-
[](./LICENSE) [](https://www.npmjs.com/package/dsh-model-extension) [ |  |
|
|
9
|
-
|
|
10
|
-
> **作者建议(非AI编写)**
|
|
11
|
-
> 安装该插件或该类型插件:clone仓库源码 -> 执行安全检查/扫描 -> 从源码构建 -> 安装
|
|
12
|
-
|
|
13
|
-
## 功能
|
|
14
|
-
|
|
15
|
-
- 新增「模型+」设置导航(通过 bundle patch 禁用官方模型设置页,本页为唯一模型设置页)。
|
|
16
|
-
- 模型目录每行展开区新增扩展配置:
|
|
17
|
-
- **推理挡位**(`reasoningEfforts`):声明模型支持的思考档位(off/minimal/low/medium/high/xhigh/max)及线上取值;
|
|
18
|
-
- **输入模态**(`input`):text / image;
|
|
19
|
-
- **兼容性**(`compat`):`supportsReasoningEffort` 开关与 `thinkingFormat` 线制格式。
|
|
20
|
-
- 支持通过 `models.json` 元数据自动预填。可通过插件下载或自行下载并放到 `$DSH_HOME/models.json` 供插件使用。
|
|
21
|
-
- **仅支持`https://models.dev/models.json`数据格式**。
|
|
22
|
-
- 支持 **DeepSeek 账号**路由(`deepseek-account`):置顶显示,无可用模型时整行隐藏;编辑卡片只含模型目录(账号不使用 API 密钥与地址)。
|
|
23
|
-
- 所有保存走 DSH 原生 `settings.mutate`,落盘 `$DSH_HOME/settings.yaml`。
|
|
24
|
-
|
|
25
|
-
## 安装
|
|
26
|
-
> Desktop 与 CLI 共享同一 `$DSH_HOME` 下的会话、设置、凭证与工作区,但**插件激活与 lockfile 彼此独立**——同一插件需要在两侧分别安装。
|
|
27
|
-
|
|
28
|
-
### Web / CLI(`web` profile)
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
# github
|
|
32
|
-
dsh plugin --profile web add github:lovezi0/dsh-model-extension
|
|
33
|
-
|
|
34
|
-
# npm
|
|
35
|
-
dsh plugin --profile web add dsh-model-extension
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Desktop(Electron 应用)
|
|
39
|
-
只能在 Desktop 应用内的**插件页**安装,安装源填以下任意一种:
|
|
40
|
-
|
|
41
|
-
- `github:lovezi0/dsh-model-extension`(git 源)
|
|
42
|
-
- `dsh-model-extension`(npm 源)
|
|
43
|
-
- 本机某一**绝对路径**(开发自测)
|
|
44
|
-
|
|
45
|
-
## 从源码构建
|
|
46
|
-
|
|
47
|
-
构建自包含——官方逻辑模块已 vendor 至 `src/client/vendor/`(`store` / `operations` / `schema-operations`,见文件头来源标注),无需 DeepSeek Harness 宿主源码:
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
npm install
|
|
51
|
-
npm run build
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## 版本历史
|
|
55
|
-
|
|
56
|
-
- **1.3.
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
- **1.
|
|
61
|
-
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
- **1.2.
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
- **1.
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
- **1.
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
1
|
+
# dsh-model-extension
|
|
2
|
+
> 基于 deepseek-harness 的模型扩展插件
|
|
3
|
+
|
|
4
|
+
[](./LICENSE) [](https://www.npmjs.com/package/dsh-model-extension) [](https://github.com/deepseek-ai/deepseek-harness) [](#安装)
|
|
5
|
+
|
|
6
|
+
| 供应商 | 模型 |
|
|
7
|
+
| --- | --- |
|
|
8
|
+
|  |  |
|
|
9
|
+
|
|
10
|
+
> **作者建议(非AI编写)**
|
|
11
|
+
> 安装该插件或该类型插件:clone仓库源码 -> 执行安全检查/扫描 -> 从源码构建 -> 安装
|
|
12
|
+
|
|
13
|
+
## 功能
|
|
14
|
+
|
|
15
|
+
- 新增「模型+」设置导航(通过 bundle patch 禁用官方模型设置页,本页为唯一模型设置页)。
|
|
16
|
+
- 模型目录每行展开区新增扩展配置:
|
|
17
|
+
- **推理挡位**(`reasoningEfforts`):声明模型支持的思考档位(off/minimal/low/medium/high/xhigh/max)及线上取值;
|
|
18
|
+
- **输入模态**(`input`):text / image;
|
|
19
|
+
- **兼容性**(`compat`):`supportsReasoningEffort` 开关与 `thinkingFormat` 线制格式。
|
|
20
|
+
- 支持通过 `models.json` 元数据自动预填。可通过插件下载或自行下载并放到 `$DSH_HOME/models.json` 供插件使用。
|
|
21
|
+
- **仅支持`https://models.dev/models.json`数据格式**。
|
|
22
|
+
- 支持 **DeepSeek 账号**路由(`deepseek-account`):置顶显示,无可用模型时整行隐藏;编辑卡片只含模型目录(账号不使用 API 密钥与地址)。
|
|
23
|
+
- 所有保存走 DSH 原生 `settings.mutate`,落盘 `$DSH_HOME/settings.yaml`。
|
|
24
|
+
|
|
25
|
+
## 安装
|
|
26
|
+
> Desktop 与 CLI 共享同一 `$DSH_HOME` 下的会话、设置、凭证与工作区,但**插件激活与 lockfile 彼此独立**——同一插件需要在两侧分别安装。
|
|
27
|
+
|
|
28
|
+
### Web / CLI(`web` profile)
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# github
|
|
32
|
+
dsh plugin --profile web add github:lovezi0/dsh-model-extension
|
|
33
|
+
|
|
34
|
+
# npm
|
|
35
|
+
dsh plugin --profile web add dsh-model-extension
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Desktop(Electron 应用)
|
|
39
|
+
只能在 Desktop 应用内的**插件页**安装,安装源填以下任意一种:
|
|
40
|
+
|
|
41
|
+
- `github:lovezi0/dsh-model-extension`(git 源)
|
|
42
|
+
- `dsh-model-extension`(npm 源)
|
|
43
|
+
- 本机某一**绝对路径**(开发自测)
|
|
44
|
+
|
|
45
|
+
## 从源码构建
|
|
46
|
+
|
|
47
|
+
构建自包含——官方逻辑模块已 vendor 至 `src/client/vendor/`(`store` / `operations` / `schema-operations`,见文件头来源标注),无需 DeepSeek Harness 宿主源码:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm install
|
|
51
|
+
npm run build
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## 版本历史
|
|
55
|
+
|
|
56
|
+
- **1.3.2**
|
|
57
|
+
- 🔥模型列表支持拖动排序
|
|
58
|
+
- **1.3.1**
|
|
59
|
+
- dsh peer [0.1.7 ... 0.2.0]
|
|
60
|
+
- **1.3.0**
|
|
61
|
+
- 💪适配 deepseek harness 0.1.7-rc.2
|
|
62
|
+
- 💪适配 deepseek harness 官方 Desktop
|
|
63
|
+
- 🐛修复 deepseek harness desktop 快速装入下拉框透明的问题
|
|
64
|
+
- **1.2.3**
|
|
65
|
+
- 🐛移除已作废的 dsh.adapter 逻辑
|
|
66
|
+
- npm publish
|
|
67
|
+
- **1.2.3-alpha.2**
|
|
68
|
+
- 💪适配deepseek harness 0.1.7-alpha.1
|
|
69
|
+
- **1.2.3-alpha.1**
|
|
70
|
+
- 🐛修复 llm-deepseek 获取模型错误的问题
|
|
71
|
+
- **1.2.1**
|
|
72
|
+
- 🐛修复非 openai-completions API 协议网关保存报错
|
|
73
|
+
- 💪快速装入 model id 显示对应的API协议
|
|
74
|
+
- **1.2.0**
|
|
75
|
+
- 🔥支持 dsh 内置 llm-pi-ai model 元数据快速装入
|
|
76
|
+
- 💪快速装入选项拆分,筛选模型更方便&准确
|
|
77
|
+
- 💪通过 llm-pi-ai 数据装入时,动态显示更多 model.compat
|
|
78
|
+
- **1.1.0**
|
|
79
|
+
- npm publish
|
|
80
|
+
- **1.1.0-alpha.1**
|
|
81
|
+
- 💪适配deepseek harness 0.1.5-alpha.2
|
|
82
|
+
- **1.0.0**
|
|
83
|
+
- 🔥重构[模型+]界面
|
|
84
|
+
- 🔥新增models.json元数据自动预填
|
|
85
|
+
- 🔥禁用官方模型设置页(bundle patch id 覆盖)
|
|
86
|
+
|
|
87
|
+
- **outdated(0.x)** — 开放deepseek harness内置模型扩展参数;v0.x 历史,见 [CHANGELOG.md](./CHANGELOG.md)
|
|
88
|
+
|
|
89
|
+
## 许可
|
|
90
|
+
|
|
91
|
+
MIT。包含自 [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness)(MIT)的 vendored 官方逻辑模块与派生代码。
|
package/cordis.patch.yml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
- insert:
|
|
2
|
-
- id: model-extension-row
|
|
3
|
-
name: dsh-model-extension
|
|
4
|
-
# Hide the official Models page: this plugin's Models+ page replaces it.
|
|
5
|
-
# Id-targeted override (a patch row WITHOUT `insert`) — applyEntryPatches
|
|
6
|
-
# assigns `disabled: true` onto the ui-settings-models entry created by the
|
|
7
|
-
# web-app bundle patch, so no new loader entry is created. An insert row with
|
|
8
|
-
# the same id would be a duplicate loader entry and crash the boot.
|
|
9
|
-
# Side effects (accepted): the official onboarding components living in that
|
|
10
|
-
# package disappear too; if a future DSH release renames the entry, the
|
|
11
|
-
# override no longer matches (warn + official page returns silently) and must
|
|
12
|
-
# be re-checked on adapter-anchor bumps.
|
|
13
|
-
- id: ui-settings-models
|
|
14
|
-
name: '@deepseek-ai/dsh-client-ui-settings-models'
|
|
15
|
-
disabled: true
|
|
1
|
+
- insert:
|
|
2
|
+
- id: model-extension-row
|
|
3
|
+
name: dsh-model-extension
|
|
4
|
+
# Hide the official Models page: this plugin's Models+ page replaces it.
|
|
5
|
+
# Id-targeted override (a patch row WITHOUT `insert`) — applyEntryPatches
|
|
6
|
+
# assigns `disabled: true` onto the ui-settings-models entry created by the
|
|
7
|
+
# web-app bundle patch, so no new loader entry is created. An insert row with
|
|
8
|
+
# the same id would be a duplicate loader entry and crash the boot.
|
|
9
|
+
# Side effects (accepted): the official onboarding components living in that
|
|
10
|
+
# package disappear too; if a future DSH release renames the entry, the
|
|
11
|
+
# override no longer matches (warn + official page returns silently) and must
|
|
12
|
+
# be re-checked on adapter-anchor bumps.
|
|
13
|
+
- id: ui-settings-models
|
|
14
|
+
name: '@deepseek-ai/dsh-client-ui-settings-models'
|
|
15
|
+
disabled: true
|