dsh-plugin-model-tuning 3.1.0 → 3.1.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 +1 -1
- package/client.js +10 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
> **v3 边界收缩(2026-10,基线 dsh 0.2.1-rc.1)**:v2 合并进来的「标题生成路由」交还官方 `session-title-llm` 行,「模型参数」页交还官方 Models 页。官方已经能做的,本插件不再复制;官方没有的,见下面两节。重叠盘点记录见 [docs/PLUGIN-SCOPE-dsh-0.2.1-rc.1.md](../docs/PLUGIN-SCOPE-dsh-0.2.1-rc.1.md)。
|
|
9
9
|
|
|
10
|
-
> 兼容性:`engines.dsh` = `>=0.2.0-rc.2 <0.3.0-0`,已在 dsh 0.2.1-rc.3 上实测运行。3.1.
|
|
10
|
+
> 兼容性:`engines.dsh` = `>=0.2.0-rc.2 <0.3.0-0`,已在 dsh 0.2.1-rc.3 上实测运行。3.1.x 起模型目录优先读 `models.catalog` 命名空间(dsh 0.2.3-alpha.3 起从 session 迁移),回落 `session.modelCatalog`,新旧运行时通用;两个命名空间都经 `ctx.get('remote.<name>')` 读取——`ctx.remote.<name>` 的属性代理只对声明注入的服务有效,而 `remote.models` 不能进 inject(rc 通道没有该服务,会永久 PENDING)。
|
|
11
11
|
|
|
12
12
|
## 1. 兼容与推理(官方 Models 页扩展)
|
|
13
13
|
|
package/client.js
CHANGED
|
@@ -940,24 +940,21 @@ window.__ModuleLoader__.load({
|
|
|
940
940
|
/**
|
|
941
941
|
* The deployment model catalog. DSH 0.2.3-alpha.3 moved it out of the
|
|
942
942
|
* session namespace into `models` (the models-remote upgrade guide);
|
|
943
|
-
* older runtimes answer `session.modelCatalog` instead.
|
|
944
|
-
*
|
|
945
|
-
*
|
|
946
|
-
*
|
|
947
|
-
*
|
|
948
|
-
*
|
|
943
|
+
* older runtimes answer `session.modelCatalog` instead.
|
|
944
|
+
*
|
|
945
|
+
* Both namespaces are read through `ctx.get('remote.<name>')`, never as
|
|
946
|
+
* `ctx.remote.<name>`: the property proxy only resolves *declared*
|
|
947
|
+
* injections, and `remote.models` must not be declared because the rc
|
|
948
|
+
* channel never provides it (an inject on a service no runtime provides
|
|
949
|
+
* parks this fiber forever). `ctx.get` reads the service store directly,
|
|
950
|
+
* so one build serves both channels.
|
|
949
951
|
*/
|
|
950
952
|
async function readModelCatalog() {
|
|
951
|
-
|
|
952
|
-
try {
|
|
953
|
-
models = remote.models;
|
|
954
|
-
} catch {
|
|
955
|
-
models = undefined; /* the namespace is absent on older runtimes */
|
|
956
|
-
}
|
|
953
|
+
const models = typeof ctx.get === "function" ? ctx.get("remote.models") : undefined;
|
|
957
954
|
if (models !== undefined && models !== null && typeof models.catalog === "function") {
|
|
958
955
|
return unwrap(await models.catalog());
|
|
959
956
|
}
|
|
960
|
-
const session = remote.session;
|
|
957
|
+
const session = typeof ctx.get === "function" ? ctx.get("remote.session") : undefined;
|
|
961
958
|
if (session !== undefined && session !== null && typeof session.modelCatalog === "function") {
|
|
962
959
|
return unwrap(await session.modelCatalog());
|
|
963
960
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-model-tuning",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"engines": { "dsh": ">=0.2.0-rc.2 <0.3.0-0" },
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": ["dsh-plugin", "deepseek-harness", "dsh", "model", "settings", "reasoning", "compat", "image-generation"],
|