dsh-model-visibility 0.1.2 → 0.2.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.en.md +6 -6
- package/README.md +6 -6
- package/lib/client.js +660 -487
- package/lib/client.js.map +1 -1
- package/lib/index.js +13 -12
- package/lib/types/client/controller.d.ts +10 -38
- package/lib/types/client/index.d.ts +6 -1
- package/lib/types/client/locales.d.ts +1 -1
- package/lib/types/client/settings-nav-icon.d.ts +77 -0
- package/lib/types/index.d.ts +34 -10
- package/lib/types/namespace.d.ts +10 -0
- package/package.json +36 -34
package/README.en.md
CHANGED
|
@@ -17,10 +17,10 @@ Installs a dedicated **Model visibility** settings section (right after 模型 /
|
|
|
17
17
|
|
|
18
18
|

|
|
19
19
|
|
|
20
|
-
## Requirements
|
|
21
|
-
|
|
22
|
-
- **DeepSeek Harness ≥ 0.
|
|
23
|
-
- Node.js 22+
|
|
20
|
+
## Requirements
|
|
21
|
+
|
|
22
|
+
- **DeepSeek Harness ≥ 0.2.0-rc.1** (0.2.0 rebuilt settings on volatile configuration and `configForms`; use plugin 0.1.2 on 0.1.x hosts)
|
|
23
|
+
- Node.js 22+
|
|
24
24
|
|
|
25
25
|
## Install
|
|
26
26
|
|
|
@@ -32,8 +32,8 @@ Restart `dsh web` to activate.
|
|
|
32
32
|
|
|
33
33
|
## How it works
|
|
34
34
|
|
|
35
|
-
- **Host half** (`lib/index.js`):
|
|
36
|
-
- **Browser half** (`lib/client.js`): registers a `settings.section` page;
|
|
35
|
+
- **Host half** (`lib/index.js`): declares the `hidden` field `.volatile()`, so a settings-form write commits the new value into the same stable reference through the Loader (no plugin restart), and wraps `ctx.llm.listModels` at its source — both the conversation selector and the settings page receive the filtered catalog. Catalog membership is advisory in the harness, so hiding a model a session already uses never breaks that session's dispatch.
|
|
36
|
+
- **Browser half** (`lib/client.js`): registers a `settings.section` page; durable state rides 0.2.0's shared `ctx.configForms` form, the catalog arrives through `ctx.remote.session.modelCatalog()` and refreshes on `llm/adapters-updated`, and page state is the union of the filtered catalog and the hidden entries, each hidden entry labeled by the display-name snapshot captured when it was hidden.
|
|
37
37
|
|
|
38
38
|
## Uninstall
|
|
39
39
|
|
package/README.md
CHANGED
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
|
|
18
18
|

|
|
19
19
|
|
|
20
|
-
## 要求
|
|
21
|
-
|
|
22
|
-
- **DeepSeek Harness ≥ 0.
|
|
23
|
-
- Node.js 22+(构建与运行)
|
|
20
|
+
## 要求
|
|
21
|
+
|
|
22
|
+
- **DeepSeek Harness ≥ 0.2.0-rc.1**(0.2.0 以 volatile 配置与 `configForms` 重构了设置体系;0.1.x 宿主请使用本插件 0.1.2)
|
|
23
|
+
- Node.js 22+(构建与运行)
|
|
24
24
|
|
|
25
25
|
## 安装
|
|
26
26
|
|
|
@@ -32,8 +32,8 @@ dsh plugin --profile web add dsh-model-visibility
|
|
|
32
32
|
|
|
33
33
|
## 工作原理
|
|
34
34
|
|
|
35
|
-
- **宿主半**(`lib/index.js
|
|
36
|
-
- **浏览器半**(`lib/client.js`):向设置壳注册一个 `settings.section`
|
|
35
|
+
- **宿主半**(`lib/index.js`):`hidden` 字段声明为 `.volatile()`,设置表单写入时由 Loader 把新值原地提交进同一稳定引用(插件不重启),并在源头包装 `ctx.llm.listModels`——会话选择器与设置页拿到的目录都是过滤后的。目录成员资格在 harness 中是"建议性"的,因此隐藏一个正在使用的模型不影响其调度。
|
|
36
|
+
- **浏览器半**(`lib/client.js`):向设置壳注册一个 `settings.section` 分区页;持久状态经 0.2.0 的 `ctx.configForms` 共享表单读写,目录经 `ctx.remote.session.modelCatalog()` 读取并跟随 `llm/adapters-updated` 失效刷新;页面状态来自"过滤后目录 ∪ 隐藏条目"的并集,隐藏条目携带隐藏时抓取的显示名快照。
|
|
37
37
|
|
|
38
38
|
## 卸载
|
|
39
39
|
|