dsh-model-extension 1.2.3-alpha.2 → 1.2.3
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 +4 -2
- package/lib/client.js +7 -2
- package/lib/client.js.map +1 -1
- package/lib/index.js +17 -47
- package/lib/index.js.map +1 -1
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# dsh-model-extension
|
|
2
2
|
> 基于 deepseek-harness 的模型扩展插件
|
|
3
3
|
|
|
4
|
-
[](./LICENSE) [](https://www.npmjs.com/package/dsh-model-extension) [](./LICENSE) [](https://www.npmjs.com/package/dsh-model-extension) [](https://github.com/deepseek-ai/deepseek-harness)
|
|
5
5
|
|
|
6
6
|
| 供应商 | 模型 |
|
|
7
7
|
| --- | --- |
|
|
@@ -44,11 +44,13 @@ npm install
|
|
|
44
44
|
npm run build
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
插件不自行做版本门:能否装载由宿主按 `package.json` 的 `peerDependencies`(`@deepseek-ai/dsh*`)判定,跟随宿主版本时只改这一处。宿主自身的 settings schema 校验与 revision fence 保证不兼容的写入会被拒绝而非损坏数据。
|
|
48
48
|
|
|
49
49
|
## 版本历史
|
|
50
50
|
|
|
51
51
|
- **1.2.3**
|
|
52
|
+
- 🐛移除已作废的 dsh.adapter 逻辑
|
|
53
|
+
- npm publish
|
|
52
54
|
- **1.2.3-alpha.2**
|
|
53
55
|
- 💪适配deepseek harness 0.1.7-alpha.1
|
|
54
56
|
- **1.2.3-alpha.1**
|
package/lib/client.js
CHANGED
|
@@ -471,6 +471,11 @@ if (typeof document !== 'undefined' && document.querySelector('style[data-plugin
|
|
|
471
471
|
}
|
|
472
472
|
//#endregion
|
|
473
473
|
//#region src/client/extension-meta.ts
|
|
474
|
+
/**
|
|
475
|
+
* Shared extension metadata: enums pinned to the host release this extension
|
|
476
|
+
* was last verified against, and the extra locale keys the extension adds on
|
|
477
|
+
* top of the official Models page dictionaries.
|
|
478
|
+
*/
|
|
474
479
|
/** Thinking levels offered by llm-pi-ai (THINKING_LEVEL_GATE @ 0.1.2-alpha.4). Only `off` may carry an empty wire value. */
|
|
475
480
|
const THINKING_LEVELS = [
|
|
476
481
|
"off",
|
|
@@ -502,7 +507,7 @@ if (typeof document !== 'undefined' && document.querySelector('style[data-plugin
|
|
|
502
507
|
* copying pi-ai's catalog `compat` across verbatim would fail resolution on
|
|
503
508
|
* the withheld fields it also records (routing preferences, session affinity,
|
|
504
509
|
* deferred tools, grammar tools). Re-check against the host's COMPAT_GATES on
|
|
505
|
-
* every
|
|
510
|
+
* every host upgrade — the same drift gate the host keeps for itself.
|
|
506
511
|
*/
|
|
507
512
|
const COMPAT_FIELDS = {
|
|
508
513
|
"openai-completions": [
|
|
@@ -3524,7 +3529,7 @@ if (typeof document !== 'undefined' && document.querySelector('style[data-plugin
|
|
|
3524
3529
|
//#region src/client/index-extension.ts
|
|
3525
3530
|
/** Cordis service name (distinct from the npm package name). */
|
|
3526
3531
|
const name = "model-extension-client";
|
|
3527
|
-
/** Required services — mirrors the upstream Models section registration @ 0.1.7-
|
|
3532
|
+
/** Required services — mirrors the upstream Models section registration @ 0.1.7-rc.1. */
|
|
3528
3533
|
const inject = [
|
|
3529
3534
|
"slots",
|
|
3530
3535
|
"locale",
|