dsh-model-extension 0.3.2-alpha.4 → 1.0.0
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 +21 -38
- package/assets/models-plus-demo-models-tab.png +0 -0
- package/assets/models-plus-demo-provider-tab.png +0 -0
- package/cordis.patch.yml +12 -0
- package/lib/client.js +1764 -1982
- package/lib/client.js.map +1 -1
- package/lib/index.js +183 -15
- package/lib/index.js.map +1 -1
- package/package.json +5 -4
- package/assets/model-extension-mockup.html +0 -105
- package/assets/model-extension-mockup.png +0 -0
package/README.md
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
# dsh-model-extension
|
|
2
2
|
> 基于 deepseek-harness 的模型扩展插件
|
|
3
|
-
> master分支已适配**deepseek harness 0.1.2-alpha.2+**
|
|
4
|
-
> 旧版本已切换分支归档,见`dsh-v0.1.1`
|
|
5
3
|
|
|
6
|
-
](./LICENSE) [](https://www.npmjs.com/package/dsh-model-extension) [](https://github.com/deepseek-ai/deepseek-harness)
|
|
5
|
+
|
|
6
|
+
| 供应商 | 模型 |
|
|
7
|
+
| --- | --- |
|
|
8
|
+
|  |  |
|
|
7
9
|
|
|
8
10
|
> **作者建议(非AI编写)**
|
|
9
11
|
> 安装该插件或该类型插件:clone仓库源码 -> 执行安全检查/扫描 -> 从源码构建 -> 安装
|
|
10
12
|
|
|
11
13
|
## 功能
|
|
12
14
|
|
|
13
|
-
-
|
|
14
|
-
- 页面标题显示当前适配的 DSH 版本。
|
|
15
|
+
- 新增「模型+」设置导航(通过 bundle patch 禁用官方模型设置页,本页为唯一模型设置页)。
|
|
15
16
|
- 模型目录每行展开区新增扩展配置:
|
|
16
17
|
- **推理挡位**(`reasoningEfforts`):声明模型支持的思考档位(off/minimal/low/medium/high/xhigh/max)及线上取值;
|
|
17
18
|
- **输入模态**(`input`):text / image;
|
|
18
19
|
- **兼容性**(`compat`):`supportsReasoningEffort` 开关与 `thinkingFormat` 线制格式。
|
|
20
|
+
- 支持通过 `models.json` 元数据自动预填。可通过插件下载或自行下载并放到 `$DSH_HOME/models.json` 供插件使用。
|
|
21
|
+
- **仅支持`https://models.dev/models.json`数据格式**。
|
|
19
22
|
- 所有保存走 DSH 原生 `settings.mutate`,落盘 `$DSH_HOME/settings.yaml`。
|
|
20
23
|
|
|
21
24
|
## 安装
|
|
@@ -34,44 +37,24 @@ dsh plugin --profile web add dsh-model-extension
|
|
|
34
37
|
|
|
35
38
|
## 从源码构建
|
|
36
39
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
1. 获取对应版本的 deepseek-harness 源码 checkout。
|
|
40
|
-
2. 在项目根创建 `build.local.yaml`(已被 gitignore,不会提交):
|
|
41
|
-
|
|
42
|
-
```yaml
|
|
43
|
-
deepseekHarness: <宿主源码绝对路径>
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
3. 构建:
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
npm install
|
|
50
|
-
npm run build
|
|
51
|
-
```
|
|
40
|
+
构建自包含——官方逻辑模块已 vendor 至 `src/client/vendor/`(`store` / `operations` / `schema-operations`,见文件头来源标注),无需 DeepSeek Harness 宿主源码:
|
|
52
41
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
42
|
+
```bash
|
|
43
|
+
npm install
|
|
44
|
+
npm run build
|
|
45
|
+
```
|
|
56
46
|
|
|
57
|
-
|
|
47
|
+
运行时 `dsh.adapter` 锚点仅作软校验:宿主版本与锚点不一致时记录告警并照常注册——宿主自身的 settings schema 校验与 revision fence 保证不兼容的写入会被拒绝而非损坏数据。
|
|
58
48
|
|
|
59
49
|
## 版本历史
|
|
60
50
|
|
|
61
|
-
- **0.
|
|
62
|
-
-
|
|
63
|
-
|
|
64
|
-
-
|
|
65
|
-
|
|
66
|
-
- **0.
|
|
67
|
-
- 💪支持deepseek harness 0.1.2-alpha.2
|
|
68
|
-
- **0.2.0**
|
|
69
|
-
- 🔥新增允许以 developer 角色发送系统提示
|
|
70
|
-
- **0.1.1**
|
|
71
|
-
- 🐛修复peer范围bug
|
|
72
|
-
- **0.1.0**
|
|
73
|
-
- 🔥新增[模型+]开启dsh隐藏设置
|
|
51
|
+
- **1.0.0**
|
|
52
|
+
- 🔥重构[模型+]界面
|
|
53
|
+
- 🔥新增models.json元数据自动预填
|
|
54
|
+
- 🔥禁用官方模型设置页(bundle patch id 覆盖)
|
|
55
|
+
|
|
56
|
+
- **outdated(0.x)** — 开放deepseek harness内置模型扩展参数;v0.x 历史,见 [CHANGELOG.md](./CHANGELOG.md)
|
|
74
57
|
|
|
75
58
|
## 许可
|
|
76
59
|
|
|
77
|
-
MIT。包含自 [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness)(MIT
|
|
60
|
+
MIT。包含自 [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness)(MIT)的 vendored 官方逻辑模块与派生代码。
|
|
Binary file
|
|
Binary file
|
package/cordis.patch.yml
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
- insert:
|
|
2
2
|
- id: model-extension-row
|
|
3
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
|