dsh-model-extension 0.3.3 → 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 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
- ![模型扩展字段新排版效果图](assets/model-extension-mockup.png)
4
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) [![npm](https://img.shields.io/npm/v/dsh-model-extension.svg?label=npm&labelColor=000000&color=ff4b01)](https://www.npmjs.com/package/dsh-model-extension) [![DeepSeek Harness:0.1.2-rc.1](https://img.shields.io/badge/DeepSeek%20Harness-0.1.2--rc.1-success.svg?labelColor=4D6BFE)](https://github.com/deepseek-ai/deepseek-harness)
5
+
6
+ | 供应商 | 模型 |
7
+ | --- | --- |
8
+ | ![模型+ 供应商](assets/models-plus-demo-provider-tab.png) | ![模型+ 模型](assets/models-plus-demo-models-tab.png) |
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,46 +37,24 @@ dsh plugin --profile web add dsh-model-extension
34
37
 
35
38
  ## 从源码构建
36
39
 
37
- 构建期需要 DeepSeek Harness 宿主源码(版本须与 `package.json` 的 `dsh.adapter` 锚点一致):
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
- 插件运行时校验宿主版本与构建锚点严格一致;不一致则不注册并在日志中告警(插件其余部分不受影响)。升级 DSH 后需更新本插件源码适配漂移、修改 `dsh.adapter` 并重新构建。
47
+ 运行时 `dsh.adapter` 锚点仅作软校验:宿主版本与锚点不一致时记录告警并照常注册——宿主自身的 settings schema 校验与 revision fence 保证不兼容的写入会被拒绝而非损坏数据。
58
48
 
59
49
  ## 版本历史
60
50
 
61
- - **0.3.3**
62
- - 🔥适配deepseek harness 0.1.2-rc.1
63
- - **0.3.2**
64
- - **0.3.2.alpha.4**
65
- - 🔥适配deepseek harness 0.1.2-alpha.4
66
- - **0.3.1**
67
- - 原0.2.0发布
68
- - **0.3.0-rc1**
69
- - 💪支持deepseek harness 0.1.2-alpha.2
70
- - **0.2.0**
71
- - 🔥新增允许以 developer 角色发送系统提示
72
- - **0.1.1**
73
- - 🐛修复peer范围bug
74
- - **0.1.0**
75
- - 🔥新增[模型+]开启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)
76
57
 
77
58
  ## 许可
78
59
 
79
- MIT。包含自 [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness)(MIT)官方插件的派生代码。
60
+ MIT。包含自 [deepseek-harness](https://github.com/deepseek-ai/deepseek-harness)(MIT)的 vendored 官方逻辑模块与派生代码。
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